From 3950b2e9ba1b74c49b16328fa650cb99f676cc2d Mon Sep 17 00:00:00 2001
From: leonelg99 <lguerrico@alu.ing.unlp.edu.ar>
Date: Wed, 18 Sep 2024 20:37:14 -0300
Subject: [PATCH] x

---
 src/main/webapp/clients/index.html            |   2 +-
 src/main/webapp/history/index.html            |   2 +-
 src/main/webapp/home/index.html               |   2 +-
 src/main/webapp/index.html                    |   2 +-
 src/main/webapp/inventory/index.html          |   2 +-
 src/main/webapp/main-4GNIG5GO.js              | 153 ++++++++++++++++++
 src/main/webapp/main-4GNIG5GO.js.map          |   1 +
 src/main/webapp/production/add/index.html     |   2 +-
 src/main/webapp/production/index.html         |   2 +-
 src/main/webapp/profile/index.html            |   2 +-
 src/main/webapp/providers/index.html          |   2 +-
 src/main/webapp/recipes/add/index.html        |   2 +-
 src/main/webapp/recipes/index.html            |   2 +-
 src/main/webapp/server/chunk-H47QWUUI.mjs     | 147 +++++++++++++++++
 src/main/webapp/server/chunk-H47QWUUI.mjs.map |   1 +
 src/main/webapp/server/index.server.html      |   2 +-
 src/main/webapp/server/main.server.mjs        |   2 +-
 src/main/webapp/server/server.mjs             |   2 +-
 src/main/webapp/users/index.html              |   2 +-
 19 files changed, 317 insertions(+), 15 deletions(-)
 create mode 100644 src/main/webapp/main-4GNIG5GO.js
 create mode 100644 src/main/webapp/main-4GNIG5GO.js.map
 create mode 100644 src/main/webapp/server/chunk-H47QWUUI.mjs
 create mode 100644 src/main/webapp/server/chunk-H47QWUUI.mjs.map

diff --git a/src/main/webapp/clients/index.html b/src/main/webapp/clients/index.html
index dd70e8f..9520dc8 100644
--- a/src/main/webapp/clients/index.html
+++ b/src/main/webapp/clients/index.html
@@ -10,6 +10,6 @@
 /*# sourceMappingURL=login.component-V4GLU5XR.css.map */</style></head>
 <body><!--nghm-->
   <app-root _nghost-ng-c3984273398 ng-version="17.3.11" ngh="1" ng-server-context="ssg"><router-outlet _ngcontent-ng-c3984273398></router-outlet><app-login _nghost-ng-c1255512367 ngh="0"><div _ngcontent-ng-c1255512367 class="container-fluid vh-100 d-flex flex-column justify-content-center align-items-center login-background" style="overflow: hidden;"><div _ngcontent-ng-c1255512367 class="logo-container mb-5"><img _ngcontent-ng-c1255512367 src="assets/logo_salacomunitaria.svg" alt="Logo principal" class="img-fluid logo-principal"></div><div _ngcontent-ng-c1255512367 class="login-container col-12 col-md-8 col-lg-8 col-xl-4"><form _ngcontent-ng-c1255512367 novalidate class="login-form p-4 shadow ng-untouched ng-pristine ng-invalid"><div _ngcontent-ng-c1255512367 class="input-group mb-3"><span _ngcontent-ng-c1255512367 class="input-group-text text-white align-items-center justify-content-center"><i _ngcontent-ng-c1255512367 class="bi bi-envelope"></i></span><input _ngcontent-ng-c1255512367 type="email" id="email" formcontrolname="email" placeholder="Ingrese su email" aria-label="Email" class="form-control login-input text-white ng-untouched ng-pristine ng-invalid" value></div><div _ngcontent-ng-c1255512367 class="input-group mb-3"><span _ngcontent-ng-c1255512367 class="input-group-text text-white align-items-center justify-content-center"><i _ngcontent-ng-c1255512367 class="bi bi-lock"></i></span><input _ngcontent-ng-c1255512367 type="password" id="password" formcontrolname="password" placeholder="Ingrese su contraseña" aria-label="Contraseña" class="form-control login-input text-white ng-untouched ng-pristine ng-invalid" value></div><button _ngcontent-ng-c1255512367 type="submit" class="btn login-btn w-100 text-white"> LOGIN </button><div _ngcontent-ng-c1255512367 class="error-container"><span _ngcontent-ng-c1255512367 class="error-message"><!--ngetn--></span></div><div _ngcontent-ng-c1255512367 class="form-check"><input _ngcontent-ng-c1255512367 type="checkbox" id="rememberMe" formcontrolname="rememberMe" class="form-check-input ng-untouched ng-pristine ng-valid"><label _ngcontent-ng-c1255512367 for="rememberMe" class="form-check-label">Recordarme</label></div></form></div><footer _ngcontent-ng-c1255512367 class="footer mt-auto py-3 w-100"><div _ngcontent-ng-c1255512367 class="container d-flex justify-content-center align-items-center footer-container"><img _ngcontent-ng-c1255512367 src="assets/logo_informatica.png" alt="Logo facultad Informatica" class="logo-footer mx-2"><div _ngcontent-ng-c1255512367 class="vr"></div><img _ngcontent-ng-c1255512367 src="assets/logo_unlp.png" alt="Logo UNLP" class="logo-footer mx-2"><div _ngcontent-ng-c1255512367 class="vr"></div><img _ngcontent-ng-c1255512367 src="assets/logo_veterinaria.png" alt="Logo facultad Veterinaria" class="logo-footer mx-2"></div></footer></div></app-login><!----></app-root>
-<script src="polyfills-FEUDNLVJ.js" type="module"></script><script src="scripts-7Z5T4CMR.js" defer></script><script src="main-YAAPIBWJ.js" type="module"></script>
+<script src="polyfills-FEUDNLVJ.js" type="module"></script><script src="scripts-7Z5T4CMR.js" defer></script><script src="main-4GNIG5GO.js" type="module"></script>
 
 <script id="ng-state" type="application/json">{"__nghData__":[{},{"c":{"0":[{"i":"c1255512367","r":1}]}}]}</script></body></html>
\ No newline at end of file
diff --git a/src/main/webapp/history/index.html b/src/main/webapp/history/index.html
index dd70e8f..9520dc8 100644
--- a/src/main/webapp/history/index.html
+++ b/src/main/webapp/history/index.html
@@ -10,6 +10,6 @@
 /*# sourceMappingURL=login.component-V4GLU5XR.css.map */</style></head>
 <body><!--nghm-->
   <app-root _nghost-ng-c3984273398 ng-version="17.3.11" ngh="1" ng-server-context="ssg"><router-outlet _ngcontent-ng-c3984273398></router-outlet><app-login _nghost-ng-c1255512367 ngh="0"><div _ngcontent-ng-c1255512367 class="container-fluid vh-100 d-flex flex-column justify-content-center align-items-center login-background" style="overflow: hidden;"><div _ngcontent-ng-c1255512367 class="logo-container mb-5"><img _ngcontent-ng-c1255512367 src="assets/logo_salacomunitaria.svg" alt="Logo principal" class="img-fluid logo-principal"></div><div _ngcontent-ng-c1255512367 class="login-container col-12 col-md-8 col-lg-8 col-xl-4"><form _ngcontent-ng-c1255512367 novalidate class="login-form p-4 shadow ng-untouched ng-pristine ng-invalid"><div _ngcontent-ng-c1255512367 class="input-group mb-3"><span _ngcontent-ng-c1255512367 class="input-group-text text-white align-items-center justify-content-center"><i _ngcontent-ng-c1255512367 class="bi bi-envelope"></i></span><input _ngcontent-ng-c1255512367 type="email" id="email" formcontrolname="email" placeholder="Ingrese su email" aria-label="Email" class="form-control login-input text-white ng-untouched ng-pristine ng-invalid" value></div><div _ngcontent-ng-c1255512367 class="input-group mb-3"><span _ngcontent-ng-c1255512367 class="input-group-text text-white align-items-center justify-content-center"><i _ngcontent-ng-c1255512367 class="bi bi-lock"></i></span><input _ngcontent-ng-c1255512367 type="password" id="password" formcontrolname="password" placeholder="Ingrese su contraseña" aria-label="Contraseña" class="form-control login-input text-white ng-untouched ng-pristine ng-invalid" value></div><button _ngcontent-ng-c1255512367 type="submit" class="btn login-btn w-100 text-white"> LOGIN </button><div _ngcontent-ng-c1255512367 class="error-container"><span _ngcontent-ng-c1255512367 class="error-message"><!--ngetn--></span></div><div _ngcontent-ng-c1255512367 class="form-check"><input _ngcontent-ng-c1255512367 type="checkbox" id="rememberMe" formcontrolname="rememberMe" class="form-check-input ng-untouched ng-pristine ng-valid"><label _ngcontent-ng-c1255512367 for="rememberMe" class="form-check-label">Recordarme</label></div></form></div><footer _ngcontent-ng-c1255512367 class="footer mt-auto py-3 w-100"><div _ngcontent-ng-c1255512367 class="container d-flex justify-content-center align-items-center footer-container"><img _ngcontent-ng-c1255512367 src="assets/logo_informatica.png" alt="Logo facultad Informatica" class="logo-footer mx-2"><div _ngcontent-ng-c1255512367 class="vr"></div><img _ngcontent-ng-c1255512367 src="assets/logo_unlp.png" alt="Logo UNLP" class="logo-footer mx-2"><div _ngcontent-ng-c1255512367 class="vr"></div><img _ngcontent-ng-c1255512367 src="assets/logo_veterinaria.png" alt="Logo facultad Veterinaria" class="logo-footer mx-2"></div></footer></div></app-login><!----></app-root>
-<script src="polyfills-FEUDNLVJ.js" type="module"></script><script src="scripts-7Z5T4CMR.js" defer></script><script src="main-YAAPIBWJ.js" type="module"></script>
+<script src="polyfills-FEUDNLVJ.js" type="module"></script><script src="scripts-7Z5T4CMR.js" defer></script><script src="main-4GNIG5GO.js" type="module"></script>
 
 <script id="ng-state" type="application/json">{"__nghData__":[{},{"c":{"0":[{"i":"c1255512367","r":1}]}}]}</script></body></html>
\ No newline at end of file
diff --git a/src/main/webapp/home/index.html b/src/main/webapp/home/index.html
index dd70e8f..9520dc8 100644
--- a/src/main/webapp/home/index.html
+++ b/src/main/webapp/home/index.html
@@ -10,6 +10,6 @@
 /*# sourceMappingURL=login.component-V4GLU5XR.css.map */</style></head>
 <body><!--nghm-->
   <app-root _nghost-ng-c3984273398 ng-version="17.3.11" ngh="1" ng-server-context="ssg"><router-outlet _ngcontent-ng-c3984273398></router-outlet><app-login _nghost-ng-c1255512367 ngh="0"><div _ngcontent-ng-c1255512367 class="container-fluid vh-100 d-flex flex-column justify-content-center align-items-center login-background" style="overflow: hidden;"><div _ngcontent-ng-c1255512367 class="logo-container mb-5"><img _ngcontent-ng-c1255512367 src="assets/logo_salacomunitaria.svg" alt="Logo principal" class="img-fluid logo-principal"></div><div _ngcontent-ng-c1255512367 class="login-container col-12 col-md-8 col-lg-8 col-xl-4"><form _ngcontent-ng-c1255512367 novalidate class="login-form p-4 shadow ng-untouched ng-pristine ng-invalid"><div _ngcontent-ng-c1255512367 class="input-group mb-3"><span _ngcontent-ng-c1255512367 class="input-group-text text-white align-items-center justify-content-center"><i _ngcontent-ng-c1255512367 class="bi bi-envelope"></i></span><input _ngcontent-ng-c1255512367 type="email" id="email" formcontrolname="email" placeholder="Ingrese su email" aria-label="Email" class="form-control login-input text-white ng-untouched ng-pristine ng-invalid" value></div><div _ngcontent-ng-c1255512367 class="input-group mb-3"><span _ngcontent-ng-c1255512367 class="input-group-text text-white align-items-center justify-content-center"><i _ngcontent-ng-c1255512367 class="bi bi-lock"></i></span><input _ngcontent-ng-c1255512367 type="password" id="password" formcontrolname="password" placeholder="Ingrese su contraseña" aria-label="Contraseña" class="form-control login-input text-white ng-untouched ng-pristine ng-invalid" value></div><button _ngcontent-ng-c1255512367 type="submit" class="btn login-btn w-100 text-white"> LOGIN </button><div _ngcontent-ng-c1255512367 class="error-container"><span _ngcontent-ng-c1255512367 class="error-message"><!--ngetn--></span></div><div _ngcontent-ng-c1255512367 class="form-check"><input _ngcontent-ng-c1255512367 type="checkbox" id="rememberMe" formcontrolname="rememberMe" class="form-check-input ng-untouched ng-pristine ng-valid"><label _ngcontent-ng-c1255512367 for="rememberMe" class="form-check-label">Recordarme</label></div></form></div><footer _ngcontent-ng-c1255512367 class="footer mt-auto py-3 w-100"><div _ngcontent-ng-c1255512367 class="container d-flex justify-content-center align-items-center footer-container"><img _ngcontent-ng-c1255512367 src="assets/logo_informatica.png" alt="Logo facultad Informatica" class="logo-footer mx-2"><div _ngcontent-ng-c1255512367 class="vr"></div><img _ngcontent-ng-c1255512367 src="assets/logo_unlp.png" alt="Logo UNLP" class="logo-footer mx-2"><div _ngcontent-ng-c1255512367 class="vr"></div><img _ngcontent-ng-c1255512367 src="assets/logo_veterinaria.png" alt="Logo facultad Veterinaria" class="logo-footer mx-2"></div></footer></div></app-login><!----></app-root>
-<script src="polyfills-FEUDNLVJ.js" type="module"></script><script src="scripts-7Z5T4CMR.js" defer></script><script src="main-YAAPIBWJ.js" type="module"></script>
+<script src="polyfills-FEUDNLVJ.js" type="module"></script><script src="scripts-7Z5T4CMR.js" defer></script><script src="main-4GNIG5GO.js" type="module"></script>
 
 <script id="ng-state" type="application/json">{"__nghData__":[{},{"c":{"0":[{"i":"c1255512367","r":1}]}}]}</script></body></html>
\ No newline at end of file
diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html
index dd70e8f..9520dc8 100644
--- a/src/main/webapp/index.html
+++ b/src/main/webapp/index.html
@@ -10,6 +10,6 @@
 /*# sourceMappingURL=login.component-V4GLU5XR.css.map */</style></head>
 <body><!--nghm-->
   <app-root _nghost-ng-c3984273398 ng-version="17.3.11" ngh="1" ng-server-context="ssg"><router-outlet _ngcontent-ng-c3984273398></router-outlet><app-login _nghost-ng-c1255512367 ngh="0"><div _ngcontent-ng-c1255512367 class="container-fluid vh-100 d-flex flex-column justify-content-center align-items-center login-background" style="overflow: hidden;"><div _ngcontent-ng-c1255512367 class="logo-container mb-5"><img _ngcontent-ng-c1255512367 src="assets/logo_salacomunitaria.svg" alt="Logo principal" class="img-fluid logo-principal"></div><div _ngcontent-ng-c1255512367 class="login-container col-12 col-md-8 col-lg-8 col-xl-4"><form _ngcontent-ng-c1255512367 novalidate class="login-form p-4 shadow ng-untouched ng-pristine ng-invalid"><div _ngcontent-ng-c1255512367 class="input-group mb-3"><span _ngcontent-ng-c1255512367 class="input-group-text text-white align-items-center justify-content-center"><i _ngcontent-ng-c1255512367 class="bi bi-envelope"></i></span><input _ngcontent-ng-c1255512367 type="email" id="email" formcontrolname="email" placeholder="Ingrese su email" aria-label="Email" class="form-control login-input text-white ng-untouched ng-pristine ng-invalid" value></div><div _ngcontent-ng-c1255512367 class="input-group mb-3"><span _ngcontent-ng-c1255512367 class="input-group-text text-white align-items-center justify-content-center"><i _ngcontent-ng-c1255512367 class="bi bi-lock"></i></span><input _ngcontent-ng-c1255512367 type="password" id="password" formcontrolname="password" placeholder="Ingrese su contraseña" aria-label="Contraseña" class="form-control login-input text-white ng-untouched ng-pristine ng-invalid" value></div><button _ngcontent-ng-c1255512367 type="submit" class="btn login-btn w-100 text-white"> LOGIN </button><div _ngcontent-ng-c1255512367 class="error-container"><span _ngcontent-ng-c1255512367 class="error-message"><!--ngetn--></span></div><div _ngcontent-ng-c1255512367 class="form-check"><input _ngcontent-ng-c1255512367 type="checkbox" id="rememberMe" formcontrolname="rememberMe" class="form-check-input ng-untouched ng-pristine ng-valid"><label _ngcontent-ng-c1255512367 for="rememberMe" class="form-check-label">Recordarme</label></div></form></div><footer _ngcontent-ng-c1255512367 class="footer mt-auto py-3 w-100"><div _ngcontent-ng-c1255512367 class="container d-flex justify-content-center align-items-center footer-container"><img _ngcontent-ng-c1255512367 src="assets/logo_informatica.png" alt="Logo facultad Informatica" class="logo-footer mx-2"><div _ngcontent-ng-c1255512367 class="vr"></div><img _ngcontent-ng-c1255512367 src="assets/logo_unlp.png" alt="Logo UNLP" class="logo-footer mx-2"><div _ngcontent-ng-c1255512367 class="vr"></div><img _ngcontent-ng-c1255512367 src="assets/logo_veterinaria.png" alt="Logo facultad Veterinaria" class="logo-footer mx-2"></div></footer></div></app-login><!----></app-root>
-<script src="polyfills-FEUDNLVJ.js" type="module"></script><script src="scripts-7Z5T4CMR.js" defer></script><script src="main-YAAPIBWJ.js" type="module"></script>
+<script src="polyfills-FEUDNLVJ.js" type="module"></script><script src="scripts-7Z5T4CMR.js" defer></script><script src="main-4GNIG5GO.js" type="module"></script>
 
 <script id="ng-state" type="application/json">{"__nghData__":[{},{"c":{"0":[{"i":"c1255512367","r":1}]}}]}</script></body></html>
\ No newline at end of file
diff --git a/src/main/webapp/inventory/index.html b/src/main/webapp/inventory/index.html
index dd70e8f..9520dc8 100644
--- a/src/main/webapp/inventory/index.html
+++ b/src/main/webapp/inventory/index.html
@@ -10,6 +10,6 @@
 /*# sourceMappingURL=login.component-V4GLU5XR.css.map */</style></head>
 <body><!--nghm-->
   <app-root _nghost-ng-c3984273398 ng-version="17.3.11" ngh="1" ng-server-context="ssg"><router-outlet _ngcontent-ng-c3984273398></router-outlet><app-login _nghost-ng-c1255512367 ngh="0"><div _ngcontent-ng-c1255512367 class="container-fluid vh-100 d-flex flex-column justify-content-center align-items-center login-background" style="overflow: hidden;"><div _ngcontent-ng-c1255512367 class="logo-container mb-5"><img _ngcontent-ng-c1255512367 src="assets/logo_salacomunitaria.svg" alt="Logo principal" class="img-fluid logo-principal"></div><div _ngcontent-ng-c1255512367 class="login-container col-12 col-md-8 col-lg-8 col-xl-4"><form _ngcontent-ng-c1255512367 novalidate class="login-form p-4 shadow ng-untouched ng-pristine ng-invalid"><div _ngcontent-ng-c1255512367 class="input-group mb-3"><span _ngcontent-ng-c1255512367 class="input-group-text text-white align-items-center justify-content-center"><i _ngcontent-ng-c1255512367 class="bi bi-envelope"></i></span><input _ngcontent-ng-c1255512367 type="email" id="email" formcontrolname="email" placeholder="Ingrese su email" aria-label="Email" class="form-control login-input text-white ng-untouched ng-pristine ng-invalid" value></div><div _ngcontent-ng-c1255512367 class="input-group mb-3"><span _ngcontent-ng-c1255512367 class="input-group-text text-white align-items-center justify-content-center"><i _ngcontent-ng-c1255512367 class="bi bi-lock"></i></span><input _ngcontent-ng-c1255512367 type="password" id="password" formcontrolname="password" placeholder="Ingrese su contraseña" aria-label="Contraseña" class="form-control login-input text-white ng-untouched ng-pristine ng-invalid" value></div><button _ngcontent-ng-c1255512367 type="submit" class="btn login-btn w-100 text-white"> LOGIN </button><div _ngcontent-ng-c1255512367 class="error-container"><span _ngcontent-ng-c1255512367 class="error-message"><!--ngetn--></span></div><div _ngcontent-ng-c1255512367 class="form-check"><input _ngcontent-ng-c1255512367 type="checkbox" id="rememberMe" formcontrolname="rememberMe" class="form-check-input ng-untouched ng-pristine ng-valid"><label _ngcontent-ng-c1255512367 for="rememberMe" class="form-check-label">Recordarme</label></div></form></div><footer _ngcontent-ng-c1255512367 class="footer mt-auto py-3 w-100"><div _ngcontent-ng-c1255512367 class="container d-flex justify-content-center align-items-center footer-container"><img _ngcontent-ng-c1255512367 src="assets/logo_informatica.png" alt="Logo facultad Informatica" class="logo-footer mx-2"><div _ngcontent-ng-c1255512367 class="vr"></div><img _ngcontent-ng-c1255512367 src="assets/logo_unlp.png" alt="Logo UNLP" class="logo-footer mx-2"><div _ngcontent-ng-c1255512367 class="vr"></div><img _ngcontent-ng-c1255512367 src="assets/logo_veterinaria.png" alt="Logo facultad Veterinaria" class="logo-footer mx-2"></div></footer></div></app-login><!----></app-root>
-<script src="polyfills-FEUDNLVJ.js" type="module"></script><script src="scripts-7Z5T4CMR.js" defer></script><script src="main-YAAPIBWJ.js" type="module"></script>
+<script src="polyfills-FEUDNLVJ.js" type="module"></script><script src="scripts-7Z5T4CMR.js" defer></script><script src="main-4GNIG5GO.js" type="module"></script>
 
 <script id="ng-state" type="application/json">{"__nghData__":[{},{"c":{"0":[{"i":"c1255512367","r":1}]}}]}</script></body></html>
\ No newline at end of file
diff --git a/src/main/webapp/main-4GNIG5GO.js b/src/main/webapp/main-4GNIG5GO.js
new file mode 100644
index 0000000..4313354
--- /dev/null
+++ b/src/main/webapp/main-4GNIG5GO.js
@@ -0,0 +1,153 @@
+import{a as Tn}from"./chunk-7P57MJ5M.js";import{a as ze,b as An,c as p_,g as Uc}from"./chunk-NAAU5XYX.js";function kD(e,t){return Object.is(e,t)}var Li=null,Bf=!1,Uf=1,$c=Symbol("SIGNAL");function hn(e){let t=Li;return Li=e,t}var W0={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:()=>{}};function f_(e){if(Bf)throw new Error("");if(Li===null)return;Li.consumerOnSignalRead(e);let t=Li.nextProducerIndex++;if(qc(Li),t<Li.producerNode.length&&Li.producerNode[t]!==e&&Ad(Li)){let i=Li.producerNode[t];qf(i,Li.producerIndexOfThis[t])}Li.producerNode[t]!==e&&(Li.producerNode[t]=e,Li.producerIndexOfThis[t]=Ad(Li)?b_(e,Li,t):0),Li.producerLastReadVersion[t]=e.version}function jD(){Uf++}function VD(e){if(!(Ad(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Uf)){if(!e.producerMustRecompute(e)&&!Y0(e)){e.dirty=!1,e.lastCleanEpoch=Uf;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=Uf}}function h_(e){if(e.liveConsumerNode===void 0)return;let t=Bf;Bf=!0;try{for(let i of e.liveConsumerNode)i.dirty||BD(i)}finally{Bf=t}}function m_(){return Li?.consumerAllowSignalWrites!==!1}function BD(e){e.dirty=!0,h_(e),e.consumerMarkedDirty?.(e)}function g_(e){return e&&(e.nextProducerIndex=0),hn(e)}function v_(e,t){if(hn(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(Ad(e))for(let i=e.nextProducerIndex;i<e.producerNode.length;i++)qf(e.producerNode[i],e.producerIndexOfThis[i]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Y0(e){qc(e);for(let t=0;t<e.producerNode.length;t++){let i=e.producerNode[t],n=e.producerLastReadVersion[t];if(n!==i.version||(VD(i),n!==i.version))return!0}return!1}function y_(e){if(qc(e),Ad(e))for(let t=0;t<e.producerNode.length;t++)qf(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)}function b_(e,t,i){if(__(e),qc(e),e.liveConsumerNode.length===0)for(let n=0;n<e.producerNode.length;n++)e.producerIndexOfThis[n]=b_(e.producerNode[n],e,n);return e.liveConsumerIndexOfThis.push(i),e.liveConsumerNode.push(t)-1}function qf(e,t){if(__(e),qc(e),e.liveConsumerNode.length===1)for(let n=0;n<e.producerNode.length;n++)qf(e.producerNode[n],e.producerIndexOfThis[n]);let i=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[i],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[i],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let n=e.liveConsumerIndexOfThis[t],r=e.liveConsumerNode[t];qc(r),r.producerIndexOfThis[n]=t}}function Ad(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function qc(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function __(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function UD(){throw new Error}var C_=UD;function w_(){C_()}function E_(e){C_=e}var qD=null;function S_(e){let t=Object.create(x_);t.value=e;let i=()=>(f_(t),t.value);return i[$c]=t,i}function K0(e,t){m_()||w_(),e.equal(e.value,t)||(e.value=t,$D(e))}function I_(e,t){m_()||w_(),K0(e,t(e.value))}var x_=An(ze({},W0),{equal:kD,value:void 0});function $D(e){e.version++,jD(),h_(e),qD?.()}function Nt(e){return typeof e=="function"}function Hc(e){let i=e(n=>{Error.call(n),n.stack=new Error().stack});return i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i}var $f=Hc(e=>function(i){e(this),this.message=i?`${i.length} errors occurred during unsubscription:
+${i.map((n,r)=>`${r+1}) ${n.toString()}`).join(`
+  `)}`:"",this.name="UnsubscriptionError",this.errors=i});function Pl(e,t){if(e){let i=e.indexOf(t);0<=i&&e.splice(i,1)}}var li=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:i}=this;if(i)if(this._parentage=null,Array.isArray(i))for(let o of i)o.remove(this);else i.remove(this);let{initialTeardown:n}=this;if(Nt(n))try{n()}catch(o){t=o instanceof $f?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{D_(o)}catch(s){t=t??[],s instanceof $f?t=[...t,...s.errors]:t.push(s)}}if(t)throw new $f(t)}}add(t){var i;if(t&&t!==this)if(this.closed)D_(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(i=this._finalizers)!==null&&i!==void 0?i:[]).push(t)}}_hasParent(t){let{_parentage:i}=this;return i===t||Array.isArray(i)&&i.includes(t)}_addParent(t){let{_parentage:i}=this;this._parentage=Array.isArray(i)?(i.push(t),i):i?[i,t]:t}_removeParent(t){let{_parentage:i}=this;i===t?this._parentage=null:Array.isArray(i)&&Pl(i,t)}remove(t){let{_finalizers:i}=this;i&&Pl(i,t),t instanceof e&&t._removeParent(this)}};li.EMPTY=(()=>{let e=new li;return e.closed=!0,e})();var Q0=li.EMPTY;function Hf(e){return e instanceof li||e&&"closed"in e&&Nt(e.remove)&&Nt(e.add)&&Nt(e.unsubscribe)}function D_(e){Nt(e)?e():e.unsubscribe()}var Po={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var zc={setTimeout(e,t,...i){let{delegate:n}=zc;return n?.setTimeout?n.setTimeout(e,t,...i):setTimeout(e,t,...i)},clearTimeout(e){let{delegate:t}=zc;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function zf(e){zc.setTimeout(()=>{let{onUnhandledError:t}=Po;if(t)t(e);else throw e})}function Ol(){}var M_=Z0("C",void 0,void 0);function A_(e){return Z0("E",void 0,e)}function T_(e){return Z0("N",e,void 0)}function Z0(e,t,i){return{kind:e,value:t,error:i}}var Rl=null;function Gc(e){if(Po.useDeprecatedSynchronousErrorHandling){let t=!Rl;if(t&&(Rl={errorThrown:!1,error:null}),e(),t){let{errorThrown:i,error:n}=Rl;if(Rl=null,i)throw n}}else e()}function F_(e){Po.useDeprecatedSynchronousErrorHandling&&Rl&&(Rl.errorThrown=!0,Rl.error=e)}var Ll=class extends li{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Hf(t)&&t.add(this)):this.destination=GD}static create(t,i,n){return new Wc(t,i,n)}next(t){this.isStopped?X0(T_(t),this):this._next(t)}error(t){this.isStopped?X0(A_(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?X0(M_,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},HD=Function.prototype.bind;function J0(e,t){return HD.call(e,t)}var e1=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:i}=this;if(i.next)try{i.next(t)}catch(n){Gf(n)}}error(t){let{partialObserver:i}=this;if(i.error)try{i.error(t)}catch(n){Gf(n)}else Gf(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(i){Gf(i)}}},Wc=class extends Ll{constructor(t,i,n){super();let r;if(Nt(t)||!t)r={next:t??void 0,error:i??void 0,complete:n??void 0};else{let o;this&&Po.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&J0(t.next,o),error:t.error&&J0(t.error,o),complete:t.complete&&J0(t.complete,o)}):r=t}this.destination=new e1(r)}};function Gf(e){Po.useDeprecatedSynchronousErrorHandling?F_(e):zf(e)}function zD(e){throw e}function X0(e,t){let{onStoppedNotification:i}=Po;i&&zc.setTimeout(()=>i(e,t))}var GD={closed:!0,next:Ol,error:zD,complete:Ol};var Yc=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ur(e){return e}function t1(...e){return n1(e)}function n1(e){return e.length===0?Ur:e.length===1?e[0]:function(i){return e.reduce((n,r)=>r(n),i)}}var Zt=(()=>{class e{constructor(i){i&&(this._subscribe=i)}lift(i){let n=new e;return n.source=this,n.operator=i,n}subscribe(i,n,r){let o=YD(i)?i:new Wc(i,n,r);return Gc(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(i){try{return this._subscribe(i)}catch(n){i.error(n)}}forEach(i,n){return n=N_(n),new n((r,o)=>{let s=new Wc({next:a=>{try{i(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(i){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(i)}[Yc](){return this}pipe(...i){return n1(i)(this)}toPromise(i){return i=N_(i),new i((n,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>n(o))})}}return e.create=t=>new e(t),e})();function N_(e){var t;return(t=e??Po.Promise)!==null&&t!==void 0?t:Promise}function WD(e){return e&&Nt(e.next)&&Nt(e.error)&&Nt(e.complete)}function YD(e){return e&&e instanceof Ll||WD(e)&&Hf(e)}function i1(e){return Nt(e?.lift)}function zt(e){return t=>{if(i1(t))return t.lift(function(i){try{return e(i,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Vt(e,t,i,n,r){return new r1(e,t,i,n,r)}var r1=class extends Ll{constructor(t,i,n,r,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=i?function(a){try{i(a)}catch(l){t.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:i}=this;super.unsubscribe(),!i&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function Kc(){return zt((e,t)=>{let i=null;e._refCount++;let n=Vt(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){i=null;return}let r=e._connection,o=i;i=null,r&&(!o||r===o)&&r.unsubscribe(),t.unsubscribe()});e.subscribe(n),n.closed||(i=e.connect())})}var Qc=class extends Zt{constructor(t,i){super(),this.source=t,this.subjectFactory=i,this._subject=null,this._refCount=0,this._connection=null,i1(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new li;let i=this.getSubject();t.add(this.source.subscribe(Vt(i,void 0,()=>{this._teardown(),i.complete()},n=>{this._teardown(),i.error(n)},()=>this._teardown()))),t.closed&&(this._connection=null,t=li.EMPTY)}return t}refCount(){return Kc()(this)}};var P_=Hc(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var yi=(()=>{class e extends Zt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(i){let n=new Wf(this,this);return n.operator=i,n}_throwIfClosed(){if(this.closed)throw new P_}next(i){Gc(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(i)}})}error(i){Gc(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=i;let{observers:n}=this;for(;n.length;)n.shift().error(i)}})}complete(){Gc(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:i}=this;for(;i.length;)i.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var i;return((i=this.observers)===null||i===void 0?void 0:i.length)>0}_trySubscribe(i){return this._throwIfClosed(),super._trySubscribe(i)}_subscribe(i){return this._throwIfClosed(),this._checkFinalizedStatuses(i),this._innerSubscribe(i)}_innerSubscribe(i){let{hasError:n,isStopped:r,observers:o}=this;return n||r?Q0:(this.currentObservers=null,o.push(i),new li(()=>{this.currentObservers=null,Pl(o,i)}))}_checkFinalizedStatuses(i){let{hasError:n,thrownError:r,isStopped:o}=this;n?i.error(r):o&&i.complete()}asObservable(){let i=new Zt;return i.source=this,i}}return e.create=(t,i)=>new Wf(t,i),e})(),Wf=class extends yi{constructor(t,i){super(),this.destination=t,this.source=i}next(t){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,t)}error(t){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,t)}complete(){var t,i;(i=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||i===void 0||i.call(t)}_subscribe(t){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(t))!==null&&n!==void 0?n:Q0}};var ii=class extends yi{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let i=super._subscribe(t);return!i.closed&&t.next(this._value),i}getValue(){let{hasError:t,thrownError:i,_value:n}=this;if(t)throw i;return this._throwIfClosed(),n}next(t){super.next(this._value=t)}};var o1={now(){return(o1.delegate||Date).now()},delegate:void 0};var Yf=class extends li{constructor(t,i){super()}schedule(t,i=0){return this}};var Td={setInterval(e,t,...i){let{delegate:n}=Td;return n?.setInterval?n.setInterval(e,t,...i):setInterval(e,t,...i)},clearInterval(e){let{delegate:t}=Td;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var Kf=class extends Yf{constructor(t,i){super(t,i),this.scheduler=t,this.work=i,this.pending=!1}schedule(t,i=0){var n;if(this.closed)return this;this.state=t;let r=this.id,o=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(o,r,i)),this.pending=!0,this.delay=i,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(o,this.id,i),this}requestAsyncId(t,i,n=0){return Td.setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,i,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return i;i!=null&&Td.clearInterval(i)}execute(t,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(t,i);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,i){let n=!1,r;try{this.work(t)}catch(o){n=!0,r=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){let{id:t,scheduler:i}=this,{actions:n}=i;this.work=this.state=this.scheduler=null,this.pending=!1,Pl(n,this),t!=null&&(this.id=this.recycleAsyncId(i,t,null)),this.delay=null,super.unsubscribe()}}};var Zc=class e{constructor(t,i=e.now){this.schedulerActionCtor=t,this.now=i}schedule(t,i=0,n){return new this.schedulerActionCtor(this,t).schedule(n,i)}};Zc.now=o1.now;var Qf=class extends Zc{constructor(t,i=Zc.now){super(t,i),this.actions=[],this._active=!1}flush(t){let{actions:i}=this;if(this._active){i.push(t);return}let n;this._active=!0;do if(n=t.execute(t.state,t.delay))break;while(t=i.shift());if(this._active=!1,n){for(;t=i.shift();)t.unsubscribe();throw n}}};var s1=new Qf(Kf),O_=s1;var qr=new Zt(e=>e.complete());function Zf(e){return e&&Nt(e.schedule)}function R_(e){return e[e.length-1]}function Jf(e){return Nt(R_(e))?e.pop():void 0}function Na(e){return Zf(R_(e))?e.pop():void 0}function k_(e,t,i,n){function r(o){return o instanceof i?o:new i(function(s){s(o)})}return new(i||(i=Promise))(function(o,s){function a(h){try{p(n.next(h))}catch(v){s(v)}}function l(h){try{p(n.throw(h))}catch(v){s(v)}}function p(h){h.done?o(h.value):r(h.value).then(a,l)}p((n=n.apply(e,t||[])).next())})}function L_(e){var t=typeof Symbol=="function"&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function kl(e){return this instanceof kl?(this.v=e,this):new kl(e)}function j_(e,t,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i.apply(e,t||[]),r,o=[];return r={},a("next"),a("throw"),a("return",s),r[Symbol.asyncIterator]=function(){return this},r;function s(g){return function(S){return Promise.resolve(S).then(g,v)}}function a(g,S){n[g]&&(r[g]=function(I){return new Promise(function(A,x){o.push([g,I,A,x])>1||l(g,I)})},S&&(r[g]=S(r[g])))}function l(g,S){try{p(n[g](S))}catch(I){w(o[0][3],I)}}function p(g){g.value instanceof kl?Promise.resolve(g.value.v).then(h,v):w(o[0][2],g)}function h(g){l("next",g)}function v(g){l("throw",g)}function w(g,S){g(S),o.shift(),o.length&&l(o[0][0],o[0][1])}}function V_(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],i;return t?t.call(e):(e=typeof L_=="function"?L_(e):e[Symbol.iterator](),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(o){i[o]=e[o]&&function(s){return new Promise(function(a,l){s=e[o](s),r(a,l,s.done,s.value)})}}function r(o,s,a,l){Promise.resolve(l).then(function(p){o({value:p,done:a})},s)}}var Xf=e=>e&&typeof e.length=="number"&&typeof e!="function";function eh(e){return Nt(e?.then)}function th(e){return Nt(e[Yc])}function nh(e){return Symbol.asyncIterator&&Nt(e?.[Symbol.asyncIterator])}function ih(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function KD(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var rh=KD();function oh(e){return Nt(e?.[rh])}function sh(e){return j_(this,arguments,function*(){let i=e.getReader();try{for(;;){let{value:n,done:r}=yield kl(i.read());if(r)return yield kl(void 0);yield yield kl(n)}}finally{i.releaseLock()}})}function ah(e){return Nt(e?.getReader)}function Gn(e){if(e instanceof Zt)return e;if(e!=null){if(th(e))return QD(e);if(Xf(e))return ZD(e);if(eh(e))return JD(e);if(nh(e))return B_(e);if(oh(e))return XD(e);if(ah(e))return eM(e)}throw ih(e)}function QD(e){return new Zt(t=>{let i=e[Yc]();if(Nt(i.subscribe))return i.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ZD(e){return new Zt(t=>{for(let i=0;i<e.length&&!t.closed;i++)t.next(e[i]);t.complete()})}function JD(e){return new Zt(t=>{e.then(i=>{t.closed||(t.next(i),t.complete())},i=>t.error(i)).then(null,zf)})}function XD(e){return new Zt(t=>{for(let i of e)if(t.next(i),t.closed)return;t.complete()})}function B_(e){return new Zt(t=>{tM(e,t).catch(i=>t.error(i))})}function eM(e){return B_(sh(e))}function tM(e,t){var i,n,r,o;return k_(this,void 0,void 0,function*(){try{for(i=V_(e);n=yield i.next(),!n.done;){let s=n.value;if(t.next(s),t.closed)return}}catch(s){r={error:s}}finally{try{n&&!n.done&&(o=i.return)&&(yield o.call(i))}finally{if(r)throw r.error}}t.complete()})}function Er(e,t,i,n=0,r=!1){let o=t.schedule(function(){i(),r?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(o),!r)return o}function lh(e,t=0){return zt((i,n)=>{i.subscribe(Vt(n,r=>Er(n,e,()=>n.next(r),t),()=>Er(n,e,()=>n.complete(),t),r=>Er(n,e,()=>n.error(r),t)))})}function ch(e,t=0){return zt((i,n)=>{n.add(e.schedule(()=>i.subscribe(n),t))})}function U_(e,t){return Gn(e).pipe(ch(t),lh(t))}function q_(e,t){return Gn(e).pipe(ch(t),lh(t))}function $_(e,t){return new Zt(i=>{let n=0;return t.schedule(function(){n===e.length?i.complete():(i.next(e[n++]),i.closed||this.schedule())})})}function H_(e,t){return new Zt(i=>{let n;return Er(i,t,()=>{n=e[rh](),Er(i,t,()=>{let r,o;try{({value:r,done:o}=n.next())}catch(s){i.error(s);return}o?i.complete():i.next(r)},0,!0)}),()=>Nt(n?.return)&&n.return()})}function uh(e,t){if(!e)throw new Error("Iterable cannot be null");return new Zt(i=>{Er(i,t,()=>{let n=e[Symbol.asyncIterator]();Er(i,t,()=>{n.next().then(r=>{r.done?i.complete():i.next(r.value)})},0,!0)})})}function z_(e,t){return uh(sh(e),t)}function G_(e,t){if(e!=null){if(th(e))return U_(e,t);if(Xf(e))return $_(e,t);if(eh(e))return q_(e,t);if(nh(e))return uh(e,t);if(oh(e))return H_(e,t);if(ah(e))return z_(e,t)}throw ih(e)}function Bn(e,t){return t?G_(e,t):Gn(e)}function mt(...e){let t=Na(e);return Bn(e,t)}function ls(e,t){let i=Nt(e)?e:()=>e,n=r=>r.error(i());return new Zt(t?r=>t.schedule(n,0,r):n)}function a1(e){return!!e&&(e instanceof Zt||Nt(e.lift)&&Nt(e.subscribe))}var Js=Hc(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function W_(e){return e instanceof Date&&!isNaN(e)}function ut(e,t){return zt((i,n)=>{let r=0;i.subscribe(Vt(n,o=>{n.next(e.call(t,o,r++))}))})}var{isArray:nM}=Array;function iM(e,t){return nM(t)?e(...t):e(t)}function dh(e){return ut(t=>iM(e,t))}var{isArray:rM}=Array,{getPrototypeOf:oM,prototype:sM,keys:aM}=Object;function ph(e){if(e.length===1){let t=e[0];if(rM(t))return{args:t,keys:null};if(lM(t)){let i=aM(t);return{args:i.map(n=>t[n]),keys:i}}}return{args:e,keys:null}}function lM(e){return e&&typeof e=="object"&&oM(e)===sM}function fh(e,t){return e.reduce((i,n,r)=>(i[n]=t[r],i),{})}function Fd(...e){let t=Na(e),i=Jf(e),{args:n,keys:r}=ph(e);if(n.length===0)return Bn([],t);let o=new Zt(cM(n,t,r?s=>fh(r,s):Ur));return i?o.pipe(dh(i)):o}function cM(e,t,i=Ur){return n=>{Y_(t,()=>{let{length:r}=e,o=new Array(r),s=r,a=r;for(let l=0;l<r;l++)Y_(t,()=>{let p=Bn(e[l],t),h=!1;p.subscribe(Vt(n,v=>{o[l]=v,h||(h=!0,a--),a||n.next(i(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function Y_(e,t,i){e?Er(i,e,t):t()}function K_(e,t,i,n,r,o,s,a){let l=[],p=0,h=0,v=!1,w=()=>{v&&!l.length&&!p&&t.complete()},g=I=>p<n?S(I):l.push(I),S=I=>{o&&t.next(I),p++;let A=!1;Gn(i(I,h++)).subscribe(Vt(t,x=>{r?.(x),o?g(x):t.next(x)},()=>{A=!0},void 0,()=>{if(A)try{for(p--;l.length&&p<n;){let x=l.shift();s?Er(t,s,()=>S(x)):S(x)}w()}catch(x){t.error(x)}}))};return e.subscribe(Vt(t,g,()=>{v=!0,w()})),()=>{a?.()}}function ri(e,t,i=1/0){return Nt(t)?ri((n,r)=>ut((o,s)=>t(n,o,r,s))(Gn(e(n,r))),i):(typeof t=="number"&&(i=t),zt((n,r)=>K_(n,r,e,i)))}function Pa(e=1/0){return ri(Ur,e)}function Q_(){return Pa(1)}function Oa(...e){return Q_()(Bn(e,Na(e)))}function hh(e){return new Zt(t=>{Gn(e()).subscribe(t)})}function Nd(...e){let t=Jf(e),{args:i,keys:n}=ph(e),r=new Zt(o=>{let{length:s}=i;if(!s){o.complete();return}let a=new Array(s),l=s,p=s;for(let h=0;h<s;h++){let v=!1;Gn(i[h]).subscribe(Vt(o,w=>{v||(v=!0,p--),a[h]=w},()=>l--,void 0,()=>{(!l||!v)&&(p||o.next(n?fh(n,a):a),o.complete())}))}});return t?r.pipe(dh(t)):r}function Z_(e=0,t,i=O_){let n=-1;return t!=null&&(Zf(t)?i=t:n=t),new Zt(r=>{let o=W_(e)?+e-i.now():e;o<0&&(o=0);let s=0;return i.schedule(function(){r.closed||(r.next(s++),0<=n?this.schedule(void 0,n):r.complete())},o)})}function Sr(e,t){return zt((i,n)=>{let r=0;i.subscribe(Vt(n,o=>e.call(t,o,r++)&&n.next(o)))})}function nt(e){return zt((t,i)=>{let n=null,r=!1,o;n=t.subscribe(Vt(i,void 0,void 0,s=>{o=Gn(e(s,nt(e)(t))),n?(n.unsubscribe(),n=null,o.subscribe(i)):r=!0})),r&&(n.unsubscribe(),n=null,o.subscribe(i))})}function J_(e,t,i,n,r){return(o,s)=>{let a=i,l=t,p=0;o.subscribe(Vt(s,h=>{let v=p++;l=a?e(l,h,v):(a=!0,h),n&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}function Xs(e,t){return Nt(t)?ri(e,t,1):ri(e,1)}function Ra(e){return zt((t,i)=>{let n=!1;t.subscribe(Vt(i,r=>{n=!0,i.next(r)},()=>{n||i.next(e),i.complete()}))})}function ro(e){return e<=0?()=>qr:zt((t,i)=>{let n=0;t.subscribe(Vt(i,r=>{++n<=e&&(i.next(r),e<=n&&i.complete())}))})}function X_(){return zt((e,t)=>{e.subscribe(Vt(t,Ol))})}function Pd(e){return ut(()=>e)}function l1(e,t){return t?i=>Oa(t.pipe(ro(1),X_()),i.pipe(l1(e))):ri((i,n)=>Gn(e(i,n)).pipe(ro(1),Pd(i)))}function c1(e,t=s1){let i=Z_(e,t);return l1(()=>i)}function mh(e=uM){return zt((t,i)=>{let n=!1;t.subscribe(Vt(i,r=>{n=!0,i.next(r)},()=>n?i.complete():i.error(e())))})}function uM(){return new Js}function jl(e){return zt((t,i)=>{try{t.subscribe(i)}finally{i.add(e)}})}function Oo(e,t){let i=arguments.length>=2;return n=>n.pipe(e?Sr((r,o)=>e(r,o,n)):Ur,ro(1),i?Ra(t):mh(()=>new Js))}function Jc(e){return e<=0?()=>qr:zt((t,i)=>{let n=[];t.subscribe(Vt(i,r=>{n.push(r),e<n.length&&n.shift()},()=>{for(let r of n)i.next(r);i.complete()},void 0,()=>{n=null}))})}function u1(e,t){let i=arguments.length>=2;return n=>n.pipe(e?Sr((r,o)=>e(r,o,n)):Ur,Jc(1),i?Ra(t):mh(()=>new Js))}function d1(e){return zt((t,i)=>{let n,r=!1,o,s=()=>{n=t.subscribe(Vt(i,void 0,void 0,a=>{o||(o=new yi,Gn(e(o)).subscribe(Vt(i,()=>n?s():r=!0))),o&&o.next(a)})),r&&(n.unsubscribe(),n=null,r=!1,s())};s()})}function Xc(e,t){return zt(J_(e,t,arguments.length>=2,!0))}function p1(...e){let t=Na(e);return zt((i,n)=>{(t?Oa(e,i,t):Oa(e,i)).subscribe(n)})}function Ir(e,t){return zt((i,n)=>{let r=null,o=0,s=!1,a=()=>s&&!r&&n.complete();i.subscribe(Vt(n,l=>{r?.unsubscribe();let p=0,h=o++;Gn(e(l,h)).subscribe(r=Vt(n,v=>n.next(t?t(l,v,h,p++):v),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function f1(e){return zt((t,i)=>{Gn(e).subscribe(Vt(i,()=>i.complete(),Ol)),!i.closed&&t.subscribe(i)})}function Di(e,t,i){let n=Nt(e)||t||i?{next:e,error:t,complete:i}:e;return n?zt((r,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;r.subscribe(Vt(o,l=>{var p;(p=n.next)===null||p===void 0||p.call(n,l),o.next(l)},()=>{var l;a=!1,(l=n.complete)===null||l===void 0||l.call(n),o.complete()},l=>{var p;a=!1,(p=n.error)===null||p===void 0||p.call(n,l),o.error(l)},()=>{var l,p;a&&((l=n.unsubscribe)===null||l===void 0||l.call(n)),(p=n.finalize)===null||p===void 0||p.call(n)}))}):Ur}var zC="https://g.co/ng/security#xss",ct=class extends Error{constructor(t,i){super(em(t,i)),this.code=t}};function em(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function Yd(e){return{toString:e}.toString()}var gh="__parameters__";function dM(e){return function(...i){if(e){let n=e(...i);for(let r in n)this[r]=n[r]}}}function GC(e,t,i){return Yd(()=>{let n=dM(t);function r(...o){if(this instanceof r)return n.apply(this,o),this;let s=new r(...o);return a.annotation=s,a;function a(l,p,h){let v=l.hasOwnProperty(gh)?l[gh]:Object.defineProperty(l,gh,{value:[]})[gh];for(;v.length<=h;)v.push(null);return(v[h]=v[h]||[]).push(s),l}}return i&&(r.prototype=Object.create(i.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}var $r=globalThis;function On(e){for(let t in e)if(e[t]===On)return t;throw Error("Could not find renamed property on target object.")}function pM(e,t){for(let i in t)t.hasOwnProperty(i)&&!e.hasOwnProperty(i)&&(e[i]=t[i])}function ur(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(ur).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let i=t.indexOf(`
+`);return i===-1?t:t.substring(0,i)}function N1(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var fM=On({__forward_ref__:On});function Fi(e){return e.__forward_ref__=Fi,e.toString=function(){return ur(this())},e}function lr(e){return WC(e)?e():e}function WC(e){return typeof e=="function"&&e.hasOwnProperty(fM)&&e.__forward_ref__===Fi}function qe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Kn(e){return{providers:e.providers||[],imports:e.imports||[]}}function tm(e){return eC(e,KC)||eC(e,QC)}function YC(e){return tm(e)!==null}function eC(e,t){return e.hasOwnProperty(t)?e[t]:null}function hM(e){let t=e&&(e[KC]||e[QC]);return t||null}function tC(e){return e&&(e.hasOwnProperty(nC)||e.hasOwnProperty(mM))?e[nC]:null}var KC=On({\u0275prov:On}),nC=On({\u0275inj:On}),QC=On({ngInjectableDef:On}),mM=On({ngInjectorDef:On}),dt=class{constructor(t,i){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof i=="number"?this.__NG_ELEMENT_ID__=i:i!==void 0&&(this.\u0275prov=qe({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function ZC(e){return e&&!!e.\u0275providers}var gM=On({\u0275cmp:On}),vM=On({\u0275dir:On}),yM=On({\u0275pipe:On}),bM=On({\u0275mod:On}),Th=On({\u0275fac:On}),Rd=On({__NG_ELEMENT_ID__:On}),iC=On({__NG_ENV_ID__:On});function Mi(e){return typeof e=="string"?e:e==null?"":String(e)}function _M(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Mi(e)}function CM(e,t){let i=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new ct(-200,e)}function Ov(e,t){throw new ct(-201,!1)}var Gt=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}(Gt||{}),P1;function JC(){return P1}function xr(e){let t=P1;return P1=e,t}function XC(e,t,i){let n=tm(e);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(i&Gt.Optional)return null;if(t!==void 0)return t;Ov(e,"Injector")}var wM={},Ld=wM,O1="__NG_DI_FLAG__",Fh="ngTempTokenPath",EM="ngTokenPath",SM=/\n/gm,IM="\u0275",rC="__source",ru;function xM(){return ru}function La(e){let t=ru;return ru=e,t}function DM(e,t=Gt.Default){if(ru===void 0)throw new ct(-203,!1);return ru===null?XC(e,void 0,t):ru.get(e,t&Gt.Optional?null:void 0,t)}function Ye(e,t=Gt.Default){return(JC()||DM)(lr(e),t)}function Pe(e,t=Gt.Default){return Ye(e,nm(t))}function nm(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function R1(e){let t=[];for(let i=0;i<e.length;i++){let n=lr(e[i]);if(Array.isArray(n)){if(n.length===0)throw new ct(900,!1);let r,o=Gt.Default;for(let s=0;s<n.length;s++){let a=n[s],l=MM(a);typeof l=="number"?l===-1?r=a.token:o|=l:r=a}t.push(Ye(r,o))}else t.push(Ye(n))}return t}function ew(e,t){return e[O1]=t,e.prototype[O1]=t,e}function MM(e){return e[O1]}function AM(e,t,i,n){let r=e[Fh];throw t[rC]&&r.unshift(t[rC]),e.message=TM(`
+`+e.message,r,i,n),e[EM]=r,e[Fh]=null,e}function TM(e,t,i,n=null){e=e&&e.charAt(0)===`
+`&&e.charAt(1)==IM?e.slice(2):e;let r=ur(t);if(Array.isArray(t))r=t.map(ur).join(" -> ");else if(typeof t=="object"){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):ur(a)))}r=`{${o.join(", ")}}`}return`${i}${n?"("+n+")":""}[${r}]: ${e.replace(SM,`
+  `)}`}var Kd=ew(GC("Optional"),8);var im=ew(GC("SkipSelf"),4);function Ul(e,t){let i=e.hasOwnProperty(Th);return i?e[Th]:null}function FM(e,t,i){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],o=t[n];if(i&&(r=i(r),o=i(o)),o!==r)return!1}return!0}function NM(e){return e.flat(Number.POSITIVE_INFINITY)}function Rv(e,t){e.forEach(i=>Array.isArray(i)?Rv(i,t):t(i))}function tw(e,t,i){t>=e.length?e.push(i):e.splice(t,0,i)}function Nh(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function PM(e,t){let i=[];for(let n=0;n<e;n++)i.push(t);return i}function OM(e,t,i,n){let r=e.length;if(r==t)e.push(i,n);else if(r===1)e.push(n,e[0]),e[0]=i;else{for(r--,e.push(e[r-1],e[r]);r>t;){let o=r-2;e[r]=e[o],r--}e[t]=i,e[t+1]=n}}function rm(e,t,i){let n=Qd(e,t);return n>=0?e[n|1]=i:(n=~n,OM(e,n,t,i)),n}function h1(e,t){let i=Qd(e,t);if(i>=0)return e[i|1]}function Qd(e,t){return RM(e,t,1)}function RM(e,t,i){let n=0,r=e.length>>i;for(;r!==n;){let o=n+(r-n>>1),s=e[o<<i];if(t===s)return o<<i;s>t?r=o:n=o+1}return~(r<<i)}var su={},cr=[],ql=new dt(""),nw=new dt("",-1),iw=new dt(""),Ph=class{get(t,i=Ld){if(i===Ld){let n=new Error(`NullInjectorError: No provider for ${ur(t)}!`);throw n.name="NullInjectorError",n}return i}},rw=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(rw||{}),ds=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(ds||{}),xt=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(xt||{});function LM(e,t,i){let n=e.length;for(;;){let r=e.indexOf(t,i);if(r===-1)return r;if(r===0||e.charCodeAt(r-1)<=32){let o=t.length;if(r+o===n||e.charCodeAt(r+o)<=32)return r}i=r+1}}function L1(e,t,i){let n=0;for(;n<i.length;){let r=i[n];if(typeof r=="number"){if(r!==0)break;n++;let o=i[n++],s=i[n++],a=i[n++];e.setAttribute(t,s,a,o)}else{let o=r,s=i[++n];kM(o)?e.setProperty(t,o,s):e.setAttribute(t,o,s),n++}}return n}function ow(e){return e===3||e===4||e===6}function kM(e){return e.charCodeAt(0)===64}function kd(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let i=-1;for(let n=0;n<t.length;n++){let r=t[n];typeof r=="number"?i=r:i===0||(i===-1||i===2?oC(e,i,r,null,t[++n]):oC(e,i,r,null,null))}}return e}function oC(e,t,i,n,r){let o=0,s=e.length;if(t===-1)s=-1;else for(;o<e.length;){let a=e[o++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=o-1;break}}}for(;o<e.length;){let a=e[o];if(typeof a=="number")break;if(a===i){if(n===null){r!==null&&(e[o+1]=r);return}else if(n===e[o+1]){e[o+2]=r;return}}o++,n!==null&&o++,r!==null&&o++}s!==-1&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,i),n!==null&&e.splice(o++,0,n),r!==null&&e.splice(o++,0,r)}var sw="ng-template";function jM(e,t,i,n){let r=0;if(n){for(;r<t.length&&typeof t[r]=="string";r+=2)if(t[r]==="class"&&LM(t[r+1].toLowerCase(),i,0)!==-1)return!0}else if(Lv(e))return!1;if(r=t.indexOf(1,r),r>-1){let o;for(;++r<t.length&&typeof(o=t[r])=="string";)if(o.toLowerCase()===i)return!0}return!1}function Lv(e){return e.type===4&&e.value!==sw}function VM(e,t,i){let n=e.type===4&&!i?sw:e.value;return t===n}function BM(e,t,i){let n=4,r=e.attrs,o=r!==null?$M(r):0,s=!1;for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="number"){if(!s&&!Ro(n)&&!Ro(l))return!1;if(s&&Ro(l))continue;s=!1,n=l|n&1;continue}if(!s)if(n&4){if(n=2|n&1,l!==""&&!VM(e,l,i)||l===""&&t.length===1){if(Ro(n))return!1;s=!0}}else if(n&8){if(r===null||!jM(e,r,l,i)){if(Ro(n))return!1;s=!0}}else{let p=t[++a],h=UM(l,r,Lv(e),i);if(h===-1){if(Ro(n))return!1;s=!0;continue}if(p!==""){let v;if(h>o?v="":v=r[h+1].toLowerCase(),n&2&&p!==v){if(Ro(n))return!1;s=!0}}}}return Ro(n)||s}function Ro(e){return(e&1)===0}function UM(e,t,i,n){if(t===null)return-1;let r=0;if(n||!i){let o=!1;for(;r<t.length;){let s=t[r];if(s===e)return r;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=t[++r];for(;typeof a=="string";)a=t[++r];continue}else{if(s===4)break;if(s===0){r+=4;continue}}r+=o?1:2}return-1}else return HM(t,e)}function aw(e,t,i=!1){for(let n=0;n<t.length;n++)if(BM(e,t[n],i))return!0;return!1}function qM(e){let t=e.attrs;if(t!=null){let i=t.indexOf(5);if(!(i&1))return t[i+1]}return null}function $M(e){for(let t=0;t<e.length;t++){let i=e[t];if(ow(i))return t}return e.length}function HM(e,t){let i=e.indexOf(4);if(i>-1)for(i++;i<e.length;){let n=e[i];if(typeof n=="number")return-1;if(n===t)return i;i++}return-1}function zM(e,t){e:for(let i=0;i<t.length;i++){let n=t[i];if(e.length===n.length){for(let r=0;r<e.length;r++)if(e[r]!==n[r])continue e;return!0}}return!1}function sC(e,t){return e?":not("+t.trim()+")":t}function GM(e){let t=e[0],i=1,n=2,r="",o=!1;for(;i<e.length;){let s=e[i];if(typeof s=="string")if(n&2){let a=e[++i];r+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else n&8?r+="."+s:n&4&&(r+=" "+s);else r!==""&&!Ro(s)&&(t+=sC(o,r),r=""),n=s,o=o||!Ro(n);i++}return r!==""&&(t+=sC(o,r)),t}function WM(e){return e.map(GM).join(",")}function YM(e){let t=[],i=[],n=1,r=2;for(;n<e.length;){let o=e[n];if(typeof o=="string")r===2?o!==""&&t.push(o,e[++n]):r===8&&i.push(o);else{if(!Ro(r))break;r=o}n++}return{attrs:t,classes:i}}function Re(e){return Yd(()=>{let t=pw(e),i=An(ze({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===rw.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||ds.Emulated,styles:e.styles||cr,_:null,schemas:e.schemas||null,tView:null,id:""});fw(i);let n=e.dependencies;return i.directiveDefs=lC(n,!1),i.pipeDefs=lC(n,!0),i.id=ZM(i),i})}function KM(e){return ja(e)||lw(e)}function QM(e){return e!==null}function Qn(e){return Yd(()=>({type:e.type,bootstrap:e.bootstrap||cr,declarations:e.declarations||cr,imports:e.imports||cr,exports:e.exports||cr,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function aC(e,t){if(e==null)return su;let i={};for(let n in e)if(e.hasOwnProperty(n)){let r=e[n],o,s,a=xt.None;Array.isArray(r)?(a=r[0],o=r[1],s=r[2]??o):(o=r,s=r),t?(i[o]=a!==xt.None?[n,a]:n,t[o]=s):i[o]=n}return i}function Bt(e){return Yd(()=>{let t=pw(e);return fw(t),t})}function om(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function ja(e){return e[gM]||null}function lw(e){return e[vM]||null}function cw(e){return e[yM]||null}function uw(e){let t=ja(e)||lw(e)||cw(e);return t!==null?t.standalone:!1}function dw(e,t){let i=e[bM]||null;if(!i&&t===!0)throw new Error(`Type ${ur(e)} does not have '\u0275mod' property.`);return i}function pw(e){let 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||su,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||cr,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:aC(e.inputs,t),outputs:aC(e.outputs),debugInfo:null}}function fw(e){e.features?.forEach(t=>t(e))}function lC(e,t){if(!e)return null;let i=t?cw:KM;return()=>(typeof e=="function"?e():e).map(n=>i(n)).filter(QM)}function ZM(e){let t=0,i=[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(let r of i)t=Math.imul(31,t)+r.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function qa(e){return{\u0275providers:e}}function JM(...e){return{\u0275providers:hw(!0,e),\u0275fromNgModule:!0}}function hw(e,...t){let i=[],n=new Set,r,o=s=>{i.push(s)};return Rv(t,s=>{let a=s;k1(a,o,[],n)&&(r||=[],r.push(a))}),r!==void 0&&mw(r,o),i}function mw(e,t){for(let i=0;i<e.length;i++){let{ngModule:n,providers:r}=e[i];kv(r,o=>{t(o,n)})}}function k1(e,t,i,n){if(e=lr(e),!e)return!1;let r=null,o=tC(e),s=!o&&ja(e);if(!o&&!s){let l=e.ngModule;if(o=tC(l),o)r=l;else return!1}else{if(s&&!s.standalone)return!1;r=e}let a=n.has(r);if(s){if(a)return!1;if(n.add(r),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let p of l)k1(p,t,i,n)}}else if(o){if(o.imports!=null&&!a){n.add(r);let p;try{Rv(o.imports,h=>{k1(h,t,i,n)&&(p||=[],p.push(h))})}finally{}p!==void 0&&mw(p,t)}if(!a){let p=Ul(r)||(()=>new r);t({provide:r,useFactory:p,deps:cr},r),t({provide:iw,useValue:r,multi:!0},r),t({provide:ql,useValue:()=>Ye(r),multi:!0},r)}let l=o.providers;if(l!=null&&!a){let p=e;kv(l,h=>{t(h,p)})}}else return!1;return r!==e&&e.providers!==void 0}function kv(e,t){for(let i of e)ZC(i)&&(i=i.\u0275providers),Array.isArray(i)?kv(i,t):t(i)}var XM=On({provide:String,useValue:On});function gw(e){return e!==null&&typeof e=="object"&&XM in e}function eA(e){return!!(e&&e.useExisting)}function tA(e){return!!(e&&e.useFactory)}function au(e){return typeof e=="function"}function nA(e){return!!e.useClass}var sm=new dt(""),Sh={},iA={},m1;function jv(){return m1===void 0&&(m1=new Ph),m1}var Xi=class{},jd=class extends Xi{get destroyed(){return this._destroyed}constructor(t,i,n,r){super(),this.parent=i,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,V1(t,s=>this.processProvider(s)),this.records.set(nw,eu(void 0,this)),r.has("environment")&&this.records.set(Xi,eu(void 0,this));let o=this.records.get(sm);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(iw,cr,Gt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=hn(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let i=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of i)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),hn(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let i=La(this),n=xr(void 0),r;try{return t()}finally{La(i),xr(n)}}get(t,i=Ld,n=Gt.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(iC))return t[iC](this);n=nm(n);let r,o=La(this),s=xr(void 0);try{if(!(n&Gt.SkipSelf)){let l=this.records.get(t);if(l===void 0){let p=lA(t)&&tm(t);p&&this.injectableDefInScope(p)?l=eu(j1(t),Sh):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l)}let a=n&Gt.Self?jv():this.parent;return i=n&Gt.Optional&&i===Ld?null:i,a.get(t,i)}catch(a){if(a.name==="NullInjectorError"){if((a[Fh]=a[Fh]||[]).unshift(ur(t)),o)throw a;return AM(a,t,"R3InjectorError",this.source)}else throw a}finally{xr(s),La(o)}}resolveInjectorInitializers(){let t=hn(null),i=La(this),n=xr(void 0),r;try{let o=this.get(ql,cr,Gt.Self);for(let s of o)s()}finally{La(i),xr(n),hn(t)}}toString(){let t=[],i=this.records;for(let n of i.keys())t.push(ur(n));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ct(205,!1)}processProvider(t){t=lr(t);let i=au(t)?t:lr(t&&t.provide),n=oA(t);if(!au(t)&&t.multi===!0){let r=this.records.get(i);r||(r=eu(void 0,Sh,!0),r.factory=()=>R1(r.multi),this.records.set(i,r)),i=t,r.multi.push(t)}this.records.set(i,n)}hydrate(t,i){let n=hn(null);try{return i.value===Sh&&(i.value=iA,i.value=i.factory()),typeof i.value=="object"&&i.value&&aA(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}finally{hn(n)}}injectableDefInScope(t){if(!t.providedIn)return!1;let i=lr(t.providedIn);return typeof i=="string"?i==="any"||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(t){let i=this._onDestroyHooks.indexOf(t);i!==-1&&this._onDestroyHooks.splice(i,1)}};function j1(e){let t=tm(e),i=t!==null?t.factory:Ul(e);if(i!==null)return i;if(e instanceof dt)throw new ct(204,!1);if(e instanceof Function)return rA(e);throw new ct(204,!1)}function rA(e){if(e.length>0)throw new ct(204,!1);let i=hM(e);return i!==null?()=>i.factory(e):()=>new e}function oA(e){if(gw(e))return eu(void 0,e.useValue);{let t=vw(e);return eu(t,Sh)}}function vw(e,t,i){let n;if(au(e)){let r=lr(e);return Ul(r)||j1(r)}else if(gw(e))n=()=>lr(e.useValue);else if(tA(e))n=()=>e.useFactory(...R1(e.deps||[]));else if(eA(e))n=()=>Ye(lr(e.useExisting));else{let r=lr(e&&(e.useClass||e.provide));if(sA(e))n=()=>new r(...R1(e.deps));else return Ul(r)||j1(r)}return n}function eu(e,t,i=!1){return{factory:e,value:t,multi:i?[]:void 0}}function sA(e){return!!e.deps}function aA(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function lA(e){return typeof e=="function"||typeof e=="object"&&e instanceof dt}function V1(e,t){for(let i of e)Array.isArray(i)?V1(i,t):i&&ZC(i)?V1(i.\u0275providers,t):t(i)}function Bo(e,t){e instanceof jd&&e.assertNotDestroyed();let i,n=La(e),r=xr(void 0);try{return t()}finally{La(n),xr(r)}}function yw(){return JC()!==void 0||xM()!=null}function cA(e){if(!yw())throw new ct(-203,!1)}function uA(e){return typeof e=="function"}var Hr=0,Rt=1,St=2,ki=3,Lo=4,Gr=5,oo=6,Vd=7,ko=8,lu=9,jo=10,Un=11,Bd=12,cC=13,hu=14,zr=15,Zd=16,tu=17,ta=18,am=19,bw=20,ka=21,g1=22,$l=23,Ti=25,_w=1,Ud=6,na=7,Oh=8,cu=9,Dr=10,Vv=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Vv||{});function ea(e){return Array.isArray(e)&&typeof e[_w]=="object"}function ms(e){return Array.isArray(e)&&e[_w]===!0}function Bv(e){return(e.flags&4)!==0}function Jd(e){return e.componentOffset>-1}function lm(e){return(e.flags&1)===1}function Va(e){return!!e.template}function Cw(e){return(e[St]&512)!==0}var B1=class{constructor(t,i,n){this.previousValue=t,this.currentValue=i,this.firstChange=n}isFirstChange(){return this.firstChange}};function ww(e,t,i,n){t!==null?t.applyValueToInputSignal(t,n):e[i]=n}function qn(){return Ew}function Ew(e){return e.type.prototype.ngOnChanges&&(e.setInput=pA),dA}qn.ngInherit=!0;function dA(){let e=Iw(this),t=e?.current;if(t){let i=e.previous;if(i===su)e.previous=t;else for(let n in t)i[n]=t[n];e.current=null,this.ngOnChanges(t)}}function pA(e,t,i,n,r){let o=this.declaredInputs[n],s=Iw(e)||fA(e,{previous:su,current:null}),a=s.current||(s.current={}),l=s.previous,p=l[o];a[o]=new B1(p&&p.currentValue,i,l===su),ww(e,t,r,i)}var Sw="__ngSimpleChanges__";function Iw(e){return e[Sw]||null}function fA(e,t){return e[Sw]=t}var uC=null;var cs=function(e,t,i){uC?.(e,t,i)},xw="svg",hA="math",mA=!1;function gA(){return mA}function Vo(e){for(;Array.isArray(e);)e=e[Hr];return e}function Dw(e,t){return Vo(t[e])}function Wr(e,t){return Vo(t[e.index])}function Mw(e,t){return e.data[t]}function Uv(e,t){return e[t]}function $a(e,t){let i=t[e];return ea(i)?i:i[Hr]}function vA(e){return(e[St]&4)===4}function qv(e){return(e[St]&128)===128}function yA(e){return ms(e[ki])}function uu(e,t){return t==null?null:e[t]}function Aw(e){e[tu]=0}function bA(e){e[St]&1024||(e[St]|=1024,qv(e)&&qd(e))}function _A(e,t){for(;e>0;)t=t[hu],e--;return t}function $v(e){return!!(e[St]&9216||e[$l]?.dirty)}function U1(e){e[jo].changeDetectionScheduler?.notify(1),$v(e)?qd(e):e[St]&64&&(gA()?(e[St]|=1024,qd(e)):e[jo].changeDetectionScheduler?.notify())}function qd(e){e[jo].changeDetectionScheduler?.notify();let t=$d(e);for(;t!==null&&!(t[St]&8192||(t[St]|=8192,!qv(t)));)t=$d(t)}function Tw(e,t){if((e[St]&256)===256)throw new ct(911,!1);e[ka]===null&&(e[ka]=[]),e[ka].push(t)}function CA(e,t){if(e[ka]===null)return;let i=e[ka].indexOf(t);i!==-1&&e[ka].splice(i,1)}function $d(e){let t=e[ki];return ms(t)?t[ki]:t}var Lt={lFrame:Lw(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function wA(){return Lt.lFrame.elementDepthCount}function EA(){Lt.lFrame.elementDepthCount++}function SA(){Lt.lFrame.elementDepthCount--}function Fw(){return Lt.bindingsEnabled}function mu(){return Lt.skipHydrationRootTNode!==null}function IA(e){return Lt.skipHydrationRootTNode===e}function xA(e){Lt.skipHydrationRootTNode=e}function DA(){Lt.skipHydrationRootTNode=null}function Pt(){return Lt.lFrame.lView}function bi(){return Lt.lFrame.tView}function fe(e){return Lt.lFrame.contextLView=e,e[ko]}function he(e){return Lt.lFrame.contextLView=null,e}function dr(){let e=Nw();for(;e!==null&&e.type===64;)e=e.parent;return e}function Nw(){return Lt.lFrame.currentTNode}function MA(){let e=Lt.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Kl(e,t){let i=Lt.lFrame;i.currentTNode=e,i.isParent=t}function Hv(){return Lt.lFrame.isParent}function zv(){Lt.lFrame.isParent=!1}function AA(){return Lt.lFrame.contextLView}function gu(){let e=Lt.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function cm(){return Lt.lFrame.bindingIndex}function TA(e){return Lt.lFrame.bindingIndex=e}function Gv(){return Lt.lFrame.bindingIndex++}function vu(e){let t=Lt.lFrame,i=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,i}function FA(){return Lt.lFrame.inI18n}function NA(e,t){let i=Lt.lFrame;i.bindingIndex=i.bindingRootIndex=e,q1(t)}function PA(){return Lt.lFrame.currentDirectiveIndex}function q1(e){Lt.lFrame.currentDirectiveIndex=e}function OA(e){let t=Lt.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Pw(){return Lt.lFrame.currentQueryIndex}function Wv(e){Lt.lFrame.currentQueryIndex=e}function RA(e){let t=e[Rt];return t.type===2?t.declTNode:t.type===1?e[Gr]:null}function Ow(e,t,i){if(i&Gt.SkipSelf){let r=t,o=e;for(;r=r.parent,r===null&&!(i&Gt.Host);)if(r=RA(o),r===null||(o=o[hu],r.type&10))break;if(r===null)return!1;t=r,e=o}let n=Lt.lFrame=Rw();return n.currentTNode=t,n.lView=e,!0}function Yv(e){let t=Rw(),i=e[Rt];Lt.lFrame=t,t.currentTNode=i.firstChild,t.lView=e,t.tView=i,t.contextLView=e,t.bindingIndex=i.bindingStartIndex,t.inI18n=!1}function Rw(){let e=Lt.lFrame,t=e===null?null:e.child;return t===null?Lw(e):t}function Lw(e){let 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 e!==null&&(e.child=t),t}function kw(){let e=Lt.lFrame;return Lt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var jw=kw;function Kv(){let e=kw();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 LA(e){return(Lt.lFrame.contextLView=_A(e,Lt.lFrame.contextLView))[ko]}function Uo(){return Lt.lFrame.selectedIndex}function Hl(e){Lt.lFrame.selectedIndex=e}function Qv(){let e=Lt.lFrame;return Mw(e.tView,e.selectedIndex)}function gs(){Lt.lFrame.currentNamespace=xw}function Vw(){return Lt.lFrame.currentNamespace}var Bw=!0;function um(){return Bw}function vs(e){Bw=e}function kA(e,t,i){let{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(n){let s=Ew(t);(i.preOrderHooks??=[]).push(e,s),(i.preOrderCheckHooks??=[]).push(e,s)}r&&(i.preOrderHooks??=[]).push(0-e,r),o&&((i.preOrderHooks??=[]).push(e,o),(i.preOrderCheckHooks??=[]).push(e,o))}function dm(e,t){for(let i=t.directiveStart,n=t.directiveEnd;i<n;i++){let o=e.data[i].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:p,ngOnDestroy:h}=o;s&&(e.contentHooks??=[]).push(-i,s),a&&((e.contentHooks??=[]).push(i,a),(e.contentCheckHooks??=[]).push(i,a)),l&&(e.viewHooks??=[]).push(-i,l),p&&((e.viewHooks??=[]).push(i,p),(e.viewCheckHooks??=[]).push(i,p)),h!=null&&(e.destroyHooks??=[]).push(i,h)}}function Ih(e,t,i){Uw(e,t,3,i)}function xh(e,t,i,n){(e[St]&3)===i&&Uw(e,t,i,n)}function v1(e,t){let i=e[St];(i&3)===t&&(i&=16383,i+=1,e[St]=i)}function Uw(e,t,i,n){let r=n!==void 0?e[tu]&65535:0,o=n??-1,s=t.length-1,a=0;for(let l=r;l<s;l++)if(typeof t[l+1]=="number"){if(a=t[l],n!=null&&a>=n)break}else t[l]<0&&(e[tu]+=65536),(a<o||o==-1)&&(jA(e,i,t,l),e[tu]=(e[tu]&4294901760)+l+2),l++}function dC(e,t){cs(4,e,t);let i=hn(null);try{t.call(e)}finally{hn(i),cs(5,e,t)}}function jA(e,t,i,n){let r=i[n]<0,o=i[n+1],s=r?-i[n]:i[n],a=e[s];r?e[St]>>14<e[tu]>>16&&(e[St]&3)===t&&(e[St]+=16384,dC(a,o)):dC(a,o)}var ou=-1,zl=class{constructor(t,i,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n}};function VA(e){return e instanceof zl}function BA(e){return(e.flags&8)!==0}function UA(e){return(e.flags&16)!==0}function qw(e){return e!==ou}function Rh(e){return e&32767}function qA(e){return e>>16}function Lh(e,t){let i=qA(e),n=t;for(;i>0;)n=n[hu],i--;return n}var $1=!0;function kh(e){let t=$1;return $1=e,t}var $A=256,$w=$A-1,Hw=5,HA=0,us={};function zA(e,t,i){let n;typeof i=="string"?n=i.charCodeAt(0)||0:i.hasOwnProperty(Rd)&&(n=i[Rd]),n==null&&(n=i[Rd]=HA++);let r=n&$w,o=1<<r;t.data[e+(r>>Hw)]|=o}function jh(e,t){let i=zw(e,t);if(i!==-1)return i;let n=t[Rt];n.firstCreatePass&&(e.injectorIndex=t.length,y1(n.data,e),y1(t,null),y1(n.blueprint,null));let r=Zv(e,t),o=e.injectorIndex;if(qw(r)){let s=Rh(r),a=Lh(r,t),l=a[Rt].data;for(let p=0;p<8;p++)t[o+p]=a[s+p]|l[s+p]}return t[o+8]=r,o}function y1(e,t){e.push(0,0,0,0,0,0,0,0,t)}function zw(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Zv(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let i=0,n=null,r=t;for(;r!==null;){if(n=Qw(r),n===null)return ou;if(i++,r=r[hu],n.injectorIndex!==-1)return n.injectorIndex|i<<16}return ou}function H1(e,t,i){zA(e,t,i)}function GA(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let i=e.attrs;if(i){let n=i.length,r=0;for(;r<n;){let o=i[r];if(ow(o))break;if(o===0)r=r+2;else if(typeof o=="number")for(r++;r<n&&typeof i[r]=="string";)r++;else{if(o===t)return i[r+1];r=r+2}}}return null}function Gw(e,t,i){if(i&Gt.Optional||e!==void 0)return e;Ov(t,"NodeInjector")}function Ww(e,t,i,n){if(i&Gt.Optional&&n===void 0&&(n=null),!(i&(Gt.Self|Gt.Host))){let r=e[lu],o=xr(void 0);try{return r?r.get(t,n,i&Gt.Optional):XC(t,n,i&Gt.Optional)}finally{xr(o)}}return Gw(n,t,i)}function Yw(e,t,i,n=Gt.Default,r){if(e!==null){if(t[St]&2048&&!(n&Gt.Self)){let s=QA(e,t,i,n,us);if(s!==us)return s}let o=Kw(e,t,i,n,us);if(o!==us)return o}return Ww(t,i,n,r)}function Kw(e,t,i,n,r){let o=YA(i);if(typeof o=="function"){if(!Ow(t,e,n))return n&Gt.Host?Gw(r,i,n):Ww(t,i,n,r);try{let s;if(s=o(n),s==null&&!(n&Gt.Optional))Ov(i);else return s}finally{jw()}}else if(typeof o=="number"){let s=null,a=zw(e,t),l=ou,p=n&Gt.Host?t[zr][Gr]:null;for((a===-1||n&Gt.SkipSelf)&&(l=a===-1?Zv(e,t):t[a+8],l===ou||!fC(n,!1)?a=-1:(s=t[Rt],a=Rh(l),t=Lh(l,t)));a!==-1;){let h=t[Rt];if(pC(o,a,h.data)){let v=WA(a,t,i,s,n,p);if(v!==us)return v}l=t[a+8],l!==ou&&fC(n,t[Rt].data[a+8]===p)&&pC(o,a,t)?(s=h,a=Rh(l),t=Lh(l,t)):a=-1}}return r}function WA(e,t,i,n,r,o){let s=t[Rt],a=s.data[e+8],l=n==null?Jd(a)&&$1:n!=s&&(a.type&3)!==0,p=r&Gt.Host&&o===a,h=Dh(a,s,i,l,p);return h!==null?Gl(t,s,h,a):us}function Dh(e,t,i,n,r){let o=e.providerIndexes,s=t.data,a=o&1048575,l=e.directiveStart,p=e.directiveEnd,h=o>>20,v=n?a:a+h,w=r?a+h:p;for(let g=v;g<w;g++){let S=s[g];if(g<l&&i===S||g>=l&&S.type===i)return g}if(r){let g=s[l];if(g&&Va(g)&&g.type===i)return l}return null}function Gl(e,t,i,n){let r=e[i],o=t.data;if(VA(r)){let s=r;s.resolving&&CM(_M(o[i]));let a=kh(s.canSeeViewProviders);s.resolving=!0;let l,p=s.injectImpl?xr(s.injectImpl):null,h=Ow(e,n,Gt.Default);try{r=e[i]=s.factory(void 0,o,e,n),t.firstCreatePass&&i>=n.directiveStart&&kA(i,o[i],t)}finally{p!==null&&xr(p),kh(a),s.resolving=!1,jw()}}return r}function YA(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Rd)?e[Rd]:void 0;return typeof t=="number"?t>=0?t&$w:KA:t}function pC(e,t,i){let n=1<<e;return!!(i[t+(e>>Hw)]&n)}function fC(e,t){return!(e&Gt.Self)&&!(e&Gt.Host&&t)}var Bl=class{constructor(t,i){this._tNode=t,this._lView=i}get(t,i,n){return Yw(this._tNode,this._lView,t,nm(n),i)}};function KA(){return new Bl(dr(),Pt())}function Zn(e){return Yd(()=>{let t=e.prototype.constructor,i=t[Th]||z1(t),n=Object.prototype,r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==n;){let o=r[Th]||z1(r);if(o&&o!==i)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function z1(e){return WC(e)?()=>{let t=z1(lr(e));return t&&t()}:Ul(e)}function QA(e,t,i,n,r){let o=e,s=t;for(;o!==null&&s!==null&&s[St]&2048&&!(s[St]&512);){let a=Kw(o,s,i,n|Gt.Self,us);if(a!==us)return a;let l=o.parent;if(!l){let p=s[bw];if(p){let h=p.get(i,us,n);if(h!==us)return h}l=Qw(s),s=s[hu]}o=l}return r}function Qw(e){let t=e[Rt],i=t.type;return i===2?t.declTNode:i===1?e[Gr]:null}function Jv(e){return GA(dr(),e)}function hC(e,t=null,i=null,n){let r=Zw(e,t,i,n);return r.resolveInjectorInitializers(),r}function Zw(e,t=null,i=null,n,r=new Set){let o=[i||cr,JM(e)];return n=n||(typeof e=="object"?void 0:ur(e)),new jd(o,t||jv(),n||null,r)}var qo=(()=>{let t=class t{static create(n,r){if(Array.isArray(n))return hC({name:""},r,n,"");{let o=n.name??"";return hC({name:o},n.parent,n.providers,o)}}};t.THROW_IF_NOT_FOUND=Ld,t.NULL=new Ph,t.\u0275prov=qe({token:t,providedIn:"any",factory:()=>Ye(nw)}),t.__NG_ELEMENT_ID__=-1;let e=t;return e})();var ZA="ngOriginalError";function b1(e){return e[ZA]}var ps=class{constructor(){this._console=console}handleError(t){let i=this._findOriginalError(t);this._console.error("ERROR",t),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(t){let i=t&&b1(t);for(;i&&b1(i);)i=b1(i);return i||null}},Jw=new dt("",{providedIn:"root",factory:()=>Pe(ps).handleError.bind(void 0)}),Xv=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=JA,t.__NG_ENV_ID__=n=>n;let e=t;return e})(),G1=class extends Xv{constructor(t){super(),this._lView=t}onDestroy(t){return Tw(this._lView,t),()=>CA(this._lView,t)}};function JA(){return new G1(Pt())}function XA(){return yu(dr(),Pt())}function yu(e,t){return new Rn(Wr(e,t))}var Rn=(()=>{let t=class t{constructor(n){this.nativeElement=n}};t.__NG_ELEMENT_ID__=XA;let e=t;return e})();function eT(e){return e instanceof Rn?e.nativeElement:e}var W1=class extends yi{constructor(t=!1){super(),this.destroyRef=void 0,this.__isAsync=t,yw()&&(this.destroyRef=Pe(Xv,{optional:!0})??void 0)}emit(t){let i=hn(null);try{super.next(t)}finally{hn(i)}}subscribe(t,i,n){let r=t,o=i||(()=>null),s=n;if(t&&typeof t=="object"){let l=t;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=_1(o),r&&(r=_1(r)),s&&(s=_1(s)));let a=super.subscribe({next:r,error:o,complete:s});return t instanceof li&&t.add(a),a}};function _1(e){return t=>{setTimeout(e,void 0,t)}}var ot=W1;function tT(){return this._results[Symbol.iterator]()}var Y1=class e{get changes(){return this._changes??=new ot}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let i=e.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=tT)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,i){return this._results.reduce(t,i)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,i){this.dirty=!1;let n=NM(t);(this._changesDetected=!FM(this._results,n,i))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}},nT="ngSkipHydration",iT="ngskiphydration";function Xw(e){let t=e.mergedAttrs;if(t===null)return!1;for(let i=0;i<t.length;i+=2){let n=t[i];if(typeof n=="number")return!1;if(typeof n=="string"&&n.toLowerCase()===iT)return!0}return!1}function e5(e){return e.hasAttribute(nT)}function Vh(e){return(e.flags&128)===128}function rT(e){if(Vh(e))return!0;let t=e.parent;for(;t;){if(Vh(e)||Xw(t))return!0;t=t.parent}return!1}var t5=new Map,oT=0;function sT(){return oT++}function aT(e){t5.set(e[am],e)}function lT(e){t5.delete(e[am])}var mC="__ngContext__";function Ba(e,t){ea(t)?(e[mC]=t[am],aT(t)):e[mC]=t}function n5(e){return r5(e[Bd])}function i5(e){return r5(e[Lo])}function r5(e){for(;e!==null&&!ms(e);)e=e[Lo];return e}var K1;function o5(e){K1=e}function Xd(){if(K1!==void 0)return K1;if(typeof document<"u")return document;throw new ct(210,!1)}var pm=new dt("",{providedIn:"root",factory:()=>cT}),cT="ng",ey=new dt(""),_i=new dt("",{providedIn:"platform",factory:()=>"unknown"});var ty=new dt("",{providedIn:"root",factory:()=>Xd().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function uT(){let e=new Ql;return Pe(_i)==="browser"&&(e.store=dT(Xd(),Pe(pm))),e}var Ql=(()=>{let t=class t{constructor(){this.store={},this.onSerializeCallbacks={}}get(n,r){return this.store[n]!==void 0?this.store[n]:r}set(n,r){this.store[n]=r}remove(n){delete this.store[n]}hasKey(n){return this.store.hasOwnProperty(n)}get isEmpty(){return Object.keys(this.store).length===0}onSerialize(n,r){this.onSerializeCallbacks[n]=r}toJson(){for(let n in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(n))try{this.store[n]=this.onSerializeCallbacks[n]()}catch(r){console.warn("Exception in onSerialize callback: ",r)}return JSON.stringify(this.store).replace(/</g,"\\u003C")}};t.\u0275prov=qe({token:t,providedIn:"root",factory:uT});let e=t;return e})();function dT(e,t){let i=e.getElementById(t+"-state");if(i?.textContent)try{return JSON.parse(i.textContent)}catch(n){console.warn("Exception while restoring TransferState for app "+t,n)}return{}}var s5="h",a5="b",Q1=function(e){return e.FirstChild="f",e.NextSibling="n",e}(Q1||{}),pT="e",fT="t",ny="c",l5="x",Bh="r",hT="i",mT="n",gT="d",vT="__nghData__",c5=vT,C1="ngh",yT="nghm",u5=()=>null;function bT(e,t,i=!1){let n=e.getAttribute(C1);if(n==null)return null;let[r,o]=n.split("|");if(n=i?o:r,!n)return null;let s=o?`|${o}`:"",a=i?r:s,l={};if(n!==""){let h=t.get(Ql,null,{optional:!0});h!==null&&(l=h.get(c5,[])[Number(n)])}let p={data:l,firstChild:e.firstChild??null};return i&&(p.firstChild=e,fm(p,0,e.nextSibling)),a?e.setAttribute(C1,a):e.removeAttribute(C1),p}function _T(){u5=bT}function iy(e,t,i=!1){return u5(e,t,i)}function CT(e){let t=e._lView;return t[Rt].type===2?null:(Cw(t)&&(t=t[Ti]),t)}function wT(e){return e.textContent?.replace(/\s/gm,"")}function ET(e){let t=Xd(),i=t.createNodeIterator(e,NodeFilter.SHOW_COMMENT,{acceptNode(o){let s=wT(o);return s==="ngetn"||s==="ngtns"?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n,r=[];for(;n=i.nextNode();)r.push(n);for(let o of r)o.textContent==="ngetn"?o.replaceWith(t.createTextNode("")):o.remove()}function fm(e,t,i){e.segmentHeads??={},e.segmentHeads[t]=i}function Z1(e,t){return e.segmentHeads?.[t]??null}function ST(e,t){let i=e.data,n=i[pT]?.[t]??null;return n===null&&i[ny]?.[t]&&(n=ry(e,t)),n}function d5(e,t){return e.data[ny]?.[t]??null}function ry(e,t){let i=d5(e,t)??[],n=0;for(let r of i)n+=r[Bh]*(r[l5]??1);return n}function hm(e,t){if(typeof e.disconnectedNodes>"u"){let i=e.data[gT];e.disconnectedNodes=i?new Set(i):null}return!!e.disconnectedNodes?.has(t)}var vh=new dt(""),p5=!1,f5=new dt("",{providedIn:"root",factory:()=>p5}),IT=new dt(""),yh;function xT(){if(yh===void 0&&(yh=null,$r.trustedTypes))try{yh=$r.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return yh}function mm(e){return xT()?.createHTML(e)||e}var bh;function h5(){if(bh===void 0&&(bh=null,$r.trustedTypes))try{bh=$r.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return bh}function gC(e){return h5()?.createHTML(e)||e}function vC(e){return h5()?.createScriptURL(e)||e}var Uh=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${zC})`}};function Ha(e){return e instanceof Uh?e.changingThisBreaksApplicationSecurity:e}function gm(e,t){let i=DT(e);if(i!=null&&i!==t){if(i==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${i} (see ${zC})`)}return i===t}function DT(e){return e instanceof Uh&&e.getTypeName()||null}function MT(e){let t=new X1(e);return AT()?new J1(t):t}var J1=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let i=new window.DOMParser().parseFromString(mm(t),"text/html").body;return i===null?this.inertDocumentHelper.getInertBodyElement(t):(i.removeChild(i.firstChild),i)}catch{return null}}},X1=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let i=this.inertDocument.createElement("template");return i.innerHTML=mm(t),i}};function AT(){try{return!!new window.DOMParser().parseFromString(mm(""),"text/html")}catch{return!1}}var TT=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function oy(e){return e=String(e),e.match(TT)?e:"unsafe:"+e}function ra(e){let t={};for(let i of e.split(","))t[i]=!0;return t}function ep(...e){let t={};for(let i of e)for(let n in i)i.hasOwnProperty(n)&&(t[n]=!0);return t}var m5=ra("area,br,col,hr,img,wbr"),g5=ra("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),v5=ra("rp,rt"),FT=ep(v5,g5),NT=ep(g5,ra("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")),PT=ep(v5,ra("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")),yC=ep(m5,NT,PT,FT),y5=ra("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),OT=ra("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"),RT=ra("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"),LT=ep(y5,OT,RT),kT=ra("script,style,template"),ev=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let i=t.firstChild,n=!0,r=[];for(;i;){if(i.nodeType===Node.ELEMENT_NODE?n=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,n&&i.firstChild){r.push(i),i=BT(i);continue}for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let o=VT(i);if(o){i=o;break}i=r.pop()}}return this.buf.join("")}startElement(t){let i=bC(t).toLowerCase();if(!yC.hasOwnProperty(i))return this.sanitizedSomething=!0,!kT.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);let n=t.attributes;for(let r=0;r<n.length;r++){let o=n.item(r),s=o.name,a=s.toLowerCase();if(!LT.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=o.value;y5[a]&&(l=oy(l)),this.buf.push(" ",s,'="',_C(l),'"')}return this.buf.push(">"),!0}endElement(t){let i=bC(t).toLowerCase();yC.hasOwnProperty(i)&&!m5.hasOwnProperty(i)&&(this.buf.push("</"),this.buf.push(i),this.buf.push(">"))}chars(t){this.buf.push(_C(t))}};function jT(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function VT(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw b5(t);return t}function BT(e){let t=e.firstChild;if(t&&jT(e,t))throw b5(t);return t}function bC(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function b5(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var UT=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,qT=/([^\#-~ |!])/g;function _C(e){return e.replace(/&/g,"&amp;").replace(UT,function(t){let i=t.charCodeAt(0),n=t.charCodeAt(1);return"&#"+((i-55296)*1024+(n-56320)+65536)+";"}).replace(qT,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var _h;function _5(e,t){let i=null;try{_h=_h||MT(e);let n=t?String(t):"";i=_h.getInertBodyElement(n);let r=5,o=n;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=i.innerHTML,i=_h.getInertBodyElement(n)}while(n!==o);let a=new ev().sanitizeChildren(CC(i)||i);return mm(a)}finally{if(i){let n=CC(i)||i;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function CC(e){return"content"in e&&$T(e)?e.content:null}function $T(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var tp=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}(tp||{});function C5(e){let t=sy();return t?gC(t.sanitize(tp.HTML,e)||""):gm(e,"HTML")?gC(Ha(e)):_5(Xd(),Mi(e))}function HT(e){let t=sy();return t?t.sanitize(tp.URL,e)||"":gm(e,"URL")?Ha(e):oy(Mi(e))}function zT(e){let t=sy();if(t)return vC(t.sanitize(tp.RESOURCE_URL,e)||"");if(gm(e,"ResourceURL"))return vC(Ha(e));throw new ct(904,!1)}function GT(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?zT:HT}function w5(e,t,i){return GT(t,i)(e)}function sy(){let e=Pt();return e&&e[jo].sanitizer}var WT=/^>|^->|<!--|-->|--!>|<!-$/g,YT=/(<|>)/g,KT="\u200B$1\u200B";function QT(e){return e.replace(WT,t=>t.replace(YT,KT))}function ZT(e){return e.ownerDocument.body}function E5(e){return e instanceof Function?e():e}function Od(e){return(e??Pe(qo)).get(_i)==="browser"}var fs=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(fs||{}),JT;function ay(e,t){return JT(e,t)}function nu(e,t,i,n,r){if(n!=null){let o,s=!1;ms(n)?o=n:ea(n)&&(s=!0,n=n[Hr]);let a=Vo(n);e===0&&i!==null?r==null?M5(t,i,a):qh(t,i,a,r||null,!0):e===1&&i!==null?qh(t,i,a,r||null,!0):e===2?dy(t,a,s):e===3&&t.destroyNode(a),o!=null&&fF(t,e,o,i,r)}}function ly(e,t){return e.createText(t)}function XT(e,t,i){e.setValue(t,i)}function cy(e,t){return e.createComment(QT(t))}function vm(e,t,i){return e.createElement(t,i)}function eF(e,t){S5(e,t),t[Hr]=null,t[Gr]=null}function tF(e,t,i,n,r,o){n[Hr]=r,n[Gr]=t,bm(e,n,i,1,r,o)}function S5(e,t){t[jo].changeDetectionScheduler?.notify(1),bm(e,t,t[Un],2,null,null)}function nF(e){let t=e[Bd];if(!t)return w1(e[Rt],e);for(;t;){let i=null;if(ea(t))i=t[Bd];else{let n=t[Dr];n&&(i=n)}if(!i){for(;t&&!t[Lo]&&t!==e;)ea(t)&&w1(t[Rt],t),t=t[ki];t===null&&(t=e),ea(t)&&w1(t[Rt],t),i=t&&t[Lo]}t=i}}function iF(e,t,i,n){let r=Dr+n,o=i.length;n>0&&(i[r-1][Lo]=t),n<o-Dr?(t[Lo]=i[r],tw(i,Dr+n,t)):(i.push(t),t[Lo]=null),t[ki]=i;let s=t[Zd];s!==null&&i!==s&&rF(s,t);let a=t[ta];a!==null&&a.insertView(e),U1(t),t[St]|=128}function rF(e,t){let i=e[cu],r=t[ki][ki][zr];t[zr]!==r&&(e[St]|=Vv.HasTransplantedViews),i===null?e[cu]=[t]:i.push(t)}function I5(e,t){let i=e[cu],n=i.indexOf(t);i.splice(n,1)}function tv(e,t){if(e.length<=Dr)return;let i=Dr+t,n=e[i];if(n){let r=n[Zd];r!==null&&r!==e&&I5(r,n),t>0&&(e[i-1][Lo]=n[Lo]);let o=Nh(e,Dr+t);eF(n[Rt],n);let s=o[ta];s!==null&&s.detachView(o[Rt]),n[ki]=null,n[Lo]=null,n[St]&=-129}return n}function x5(e,t){if(!(t[St]&256)){let i=t[Un];i.destroyNode&&bm(e,t,i,3,null,null),nF(t)}}function w1(e,t){if(t[St]&256)return;let i=hn(null);try{t[St]&=-129,t[St]|=256,t[$l]&&y_(t[$l]),sF(e,t),oF(e,t),t[Rt].type===1&&t[Un].destroy();let n=t[Zd];if(n!==null&&ms(t[ki])){n!==t[ki]&&I5(n,t);let r=t[ta];r!==null&&r.detachView(e)}lT(t)}finally{hn(i)}}function oF(e,t){let i=e.cleanup,n=t[Vd];if(i!==null)for(let o=0;o<i.length-1;o+=2)if(typeof i[o]=="string"){let s=i[o+3];s>=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[i[o+1]];i[o].call(s)}n!==null&&(t[Vd]=null);let r=t[ka];if(r!==null){t[ka]=null;for(let o=0;o<r.length;o++){let s=r[o];s()}}}function sF(e,t){let i;if(e!=null&&(i=e.destroyHooks)!=null)for(let n=0;n<i.length;n+=2){let r=t[i[n]];if(!(r instanceof zl)){let o=i[n+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=r[o[s]],l=o[s+1];cs(4,a,l);try{l.call(a)}finally{cs(5,a,l)}}else{cs(4,r,o);try{o.call(r)}finally{cs(5,r,o)}}}}}function D5(e,t,i){return aF(e,t.parent,i)}function aF(e,t,i){let n=t;for(;n!==null&&n.type&40;)t=n,n=t.parent;if(n===null)return i[Hr];{let{componentOffset:r}=n;if(r>-1){let{encapsulation:o}=e.data[n.directiveStart+r];if(o===ds.None||o===ds.Emulated)return null}return Wr(n,i)}}function qh(e,t,i,n,r){e.insertBefore(t,i,n,r)}function M5(e,t,i){e.appendChild(t,i)}function wC(e,t,i,n,r){n!==null?qh(e,t,i,n,r):M5(e,t,i)}function lF(e,t,i,n){e.removeChild(t,i,n)}function uy(e,t){return e.parentNode(t)}function cF(e,t){return e.nextSibling(t)}function A5(e,t,i){return dF(e,t,i)}function uF(e,t,i){return e.type&40?Wr(e,i):null}var dF=uF,EC;function ym(e,t,i,n){let r=D5(e,n,t),o=t[Un],s=n.parent||t[Gr],a=A5(s,n,t);if(r!=null)if(Array.isArray(i))for(let l=0;l<i.length;l++)wC(o,r,i[l],a,!1);else wC(o,r,i,a,!1);EC!==void 0&&EC(o,n,t,i,r)}function Mh(e,t){if(t!==null){let i=t.type;if(i&3)return Wr(t,e);if(i&4)return nv(-1,e[t.index]);if(i&8){let n=t.child;if(n!==null)return Mh(e,n);{let r=e[t.index];return ms(r)?nv(-1,r):Vo(r)}}else{if(i&32)return ay(t,e)()||Vo(e[t.index]);{let n=T5(e,t);if(n!==null){if(Array.isArray(n))return n[0];let r=$d(e[zr]);return Mh(r,n)}else return Mh(e,t.next)}}}return null}function T5(e,t){if(t!==null){let n=e[zr][Gr],r=t.projection;return n.projection[r]}return null}function nv(e,t){let i=Dr+e+1;if(i<t.length){let n=t[i],r=n[Rt].firstChild;if(r!==null)return Mh(n,r)}return t[na]}function dy(e,t,i){let n=uy(e,t);n&&lF(e,n,t,i)}function F5(e){e.textContent=""}function py(e,t,i,n,r,o,s){for(;i!=null;){let a=n[i.index],l=i.type;if(s&&t===0&&(a&&Ba(Vo(a),n),i.flags|=2),(i.flags&32)!==32)if(l&8)py(e,t,i.child,n,r,o,!1),nu(t,e,r,a,o);else if(l&32){let p=ay(i,n),h;for(;h=p();)nu(t,e,r,h,o);nu(t,e,r,a,o)}else l&16?N5(e,t,n,i,r,o):nu(t,e,r,a,o);i=s?i.projectionNext:i.next}}function bm(e,t,i,n,r,o){py(i,n,e.firstChild,t,r,o,!1)}function pF(e,t,i){let n=t[Un],r=D5(e,i,t),o=i.parent||t[Gr],s=A5(o,i,t);N5(n,0,t,i,r,s)}function N5(e,t,i,n,r,o){let s=i[zr],l=s[Gr].projection[n.projection];if(Array.isArray(l))for(let p=0;p<l.length;p++){let h=l[p];nu(t,e,r,h,o)}else{let p=l,h=s[ki];Vh(n)&&(p.flags|=128),py(e,t,p,h,r,o,!0)}}function fF(e,t,i,n,r){let o=i[na],s=Vo(i);o!==s&&nu(t,e,n,o,r);for(let a=Dr;a<i.length;a++){let l=i[a];bm(l[Rt],l,e,t,n,o)}}function hF(e,t,i,n,r){if(t)r?e.addClass(i,n):e.removeClass(i,n);else{let o=n.indexOf("-")===-1?void 0:fs.DashCase;r==null?e.removeStyle(i,n,o):(typeof r=="string"&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=fs.Important),e.setStyle(i,n,r,o))}}function mF(e,t,i){e.setAttribute(t,"style",i)}function P5(e,t,i){i===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",i)}function O5(e,t,i){let{mergedAttrs:n,classes:r,styles:o}=i;n!==null&&L1(e,t,n),r!==null&&P5(e,t,r),o!==null&&mF(e,t,o)}var Ni={};function b(e=1){R5(bi(),Pt(),Uo()+e,!1)}function R5(e,t,i,n){if(!n)if((t[St]&3)===3){let o=e.preOrderCheckHooks;o!==null&&Ih(t,o,i)}else{let o=e.preOrderHooks;o!==null&&xh(t,o,0,i)}Hl(i)}function ee(e,t=Gt.Default){let i=Pt();if(i===null)return Ye(e,t);let n=dr();return Yw(n,i,lr(e),t)}function L5(){let e="invalid";throw new Error(e)}function k5(e,t,i,n,r,o){let s=hn(null);try{let a=null;r&xt.SignalBased&&(a=t[n][$c]),a!==null&&a.transformFn!==void 0&&(o=a.transformFn(o)),r&xt.HasDecoratorInputTransform&&(o=e.inputTransforms[n].call(t,o)),e.setInput!==null?e.setInput(t,a,o,i,n):ww(t,a,n,o)}finally{hn(s)}}function gF(e,t){let i=e.hostBindingOpCodes;if(i!==null)try{for(let n=0;n<i.length;n++){let r=i[n];if(r<0)Hl(~r);else{let o=r,s=i[++n],a=i[++n];NA(s,o);let l=t[o];a(2,l)}}}finally{Hl(-1)}}function _m(e,t,i,n,r,o,s,a,l,p,h){let v=t.blueprint.slice();return v[Hr]=r,v[St]=n|4|128|8|64,(p!==null||e&&e[St]&2048)&&(v[St]|=2048),Aw(v),v[ki]=v[hu]=e,v[ko]=i,v[jo]=s||e&&e[jo],v[Un]=a||e&&e[Un],v[lu]=l||e&&e[lu]||null,v[Gr]=o,v[am]=sT(),v[oo]=h,v[bw]=p,v[zr]=t.type==2?e[zr]:v,v}function bu(e,t,i,n,r){let o=e.data[t];if(o===null)o=vF(e,t,i,n,r),FA()&&(o.flags|=32);else if(o.type&64){o.type=i,o.value=n,o.attrs=r;let s=MA();o.injectorIndex=s===null?-1:s.injectorIndex}return Kl(o,!0),o}function vF(e,t,i,n,r){let o=Nw(),s=Hv(),a=s?o:o&&o.parent,l=e.data[t]=SF(e,a,i,t,n,r);return e.firstChild===null&&(e.firstChild=l),o!==null&&(s?o.child==null&&l.parent!==null&&(o.child=l):o.next===null&&(o.next=l,l.prev=o)),l}function j5(e,t,i,n){if(i===0)return-1;let r=t.length;for(let o=0;o<i;o++)t.push(n),e.blueprint.push(n),e.data.push(null);return r}function V5(e,t,i,n,r){let o=Uo(),s=n&2;try{Hl(-1),s&&t.length>Ti&&R5(e,t,Ti,!1),cs(s?2:0,r),i(n,r)}finally{Hl(o),cs(s?3:1,r)}}function fy(e,t,i){if(Bv(t)){let n=hn(null);try{let r=t.directiveStart,o=t.directiveEnd;for(let s=r;s<o;s++){let a=e.data[s];if(a.contentQueries){let l=i[s];a.contentQueries(1,l,s)}}}finally{hn(n)}}}function hy(e,t,i){Fw()&&(TF(e,t,i,Wr(i,t)),(i.flags&64)===64&&H5(e,t,i))}function my(e,t,i=Wr){let n=t.localNames;if(n!==null){let r=t.index+1;for(let o=0;o<n.length;o+=2){let s=n[o+1],a=s===-1?i(t,e):e[s];e[r++]=a}}}function B5(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=gy(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function gy(e,t,i,n,r,o,s,a,l,p,h){let v=Ti+n,w=v+r,g=yF(v,w),S=typeof p=="function"?p():p;return g[Rt]={type:e,blueprint:g,template:i,queries:null,viewQuery:a,declTNode:t,data:g.slice().fill(null,v),bindingStartIndex:v,expandoStartIndex:w,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:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:S,incompleteFirstPass:!1,ssrId:h}}function yF(e,t){let i=[];for(let n=0;n<t;n++)i.push(n<e?null:Ni);return i}function bF(e,t,i,n){let o=n.get(f5,p5)||i===ds.ShadowDom,s=e.selectRootElement(t,o);return _F(s),s}function _F(e){U5(e)}var U5=()=>null;function CF(e){e5(e)?F5(e):ET(e)}function wF(){U5=CF}function EF(e,t,i,n){let r=W5(t);r.push(i),e.firstCreatePass&&Y5(e).push(n,r.length-1)}function SF(e,t,i,n,r,o){let s=t?t.injectorIndex:-1,a=0;return mu()&&(a|=128),{type:i,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:o,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}}function SC(e,t,i,n,r){for(let o in t){if(!t.hasOwnProperty(o))continue;let s=t[o];if(s===void 0)continue;n??={};let a,l=xt.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let p=o;if(r!==null){if(!r.hasOwnProperty(o))continue;p=r[o]}e===0?IC(n,i,p,a,l):IC(n,i,p,a)}return n}function IC(e,t,i,n,r){let o;e.hasOwnProperty(i)?(o=e[i]).push(t,n):o=e[i]=[t,n],r!==void 0&&o.push(r)}function IF(e,t,i){let n=t.directiveStart,r=t.directiveEnd,o=e.data,s=t.attrs,a=[],l=null,p=null;for(let h=n;h<r;h++){let v=o[h],w=i?i.get(v):null,g=w?w.inputs:null,S=w?w.outputs:null;l=SC(0,v.inputs,h,l,g),p=SC(1,v.outputs,h,p,S);let I=l!==null&&s!==null&&!Lv(t)?UF(l,h,s):null;a.push(I)}l!==null&&(l.hasOwnProperty("class")&&(t.flags|=8),l.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=l,t.outputs=p}function xF(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function q5(e,t,i,n,r,o,s,a){let l=Wr(t,i),p=t.inputs,h;!a&&p!=null&&(h=p[n])?(yy(e,i,h,n,r),Jd(t)&&DF(i,t.index)):t.type&3?(n=xF(n),r=s!=null?s(r,t.value||"",n):r,o.setProperty(l,n,r)):t.type&12}function DF(e,t){let i=$a(t,e);i[St]&16||(i[St]|=64)}function vy(e,t,i,n){if(Fw()){let r=n===null?null:{"":-1},o=NF(e,i),s,a;o===null?s=a=null:[s,a]=o,s!==null&&$5(e,t,i,s,r,a),r&&PF(i,n,r)}i.mergedAttrs=kd(i.mergedAttrs,i.attrs)}function $5(e,t,i,n,r,o){for(let p=0;p<n.length;p++)H1(jh(i,t),e,n[p].type);RF(i,e.data.length,n.length);for(let p=0;p<n.length;p++){let h=n[p];h.providersResolver&&h.providersResolver(h)}let s=!1,a=!1,l=j5(e,t,n.length,null);for(let p=0;p<n.length;p++){let h=n[p];i.mergedAttrs=kd(i.mergedAttrs,h.hostAttrs),LF(e,i,t,l,h),OF(l,h,r),h.contentQueries!==null&&(i.flags|=4),(h.hostBindings!==null||h.hostAttrs!==null||h.hostVars!==0)&&(i.flags|=64);let v=h.type.prototype;!s&&(v.ngOnChanges||v.ngOnInit||v.ngDoCheck)&&((e.preOrderHooks??=[]).push(i.index),s=!0),!a&&(v.ngOnChanges||v.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(i.index),a=!0),l++}IF(e,i,o)}function MF(e,t,i,n,r){let o=r.hostBindings;if(o){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;AF(s)!=a&&s.push(a),s.push(i,n,o)}}function AF(e){let t=e.length;for(;t>0;){let i=e[--t];if(typeof i=="number"&&i<0)return i}return 0}function TF(e,t,i,n){let r=i.directiveStart,o=i.directiveEnd;Jd(i)&&kF(t,i,e.data[r+i.componentOffset]),e.firstCreatePass||jh(i,t),Ba(n,t);let s=i.initialInputs;for(let a=r;a<o;a++){let l=e.data[a],p=Gl(t,e,a,i);if(Ba(p,t),s!==null&&BF(t,a-r,p,l,i,s),Va(l)){let h=$a(i.index,t);h[ko]=Gl(t,e,a,i)}}}function H5(e,t,i){let n=i.directiveStart,r=i.directiveEnd,o=i.index,s=PA();try{Hl(o);for(let a=n;a<r;a++){let l=e.data[a],p=t[a];q1(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&FF(l,p)}}finally{Hl(-1),q1(s)}}function FF(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function NF(e,t){let i=e.directiveRegistry,n=null,r=null;if(i)for(let o=0;o<i.length;o++){let s=i[o];if(aw(t,s.selectors,!1))if(n||(n=[]),Va(s))if(s.findHostDirectiveDefs!==null){let a=[];r=r||new Map,s.findHostDirectiveDefs(s,a,r),n.unshift(...a,s);let l=a.length;iv(e,t,l)}else n.unshift(s),iv(e,t,0);else r=r||new Map,s.findHostDirectiveDefs?.(s,n,r),n.push(s)}return n===null?null:[n,r]}function iv(e,t,i){t.componentOffset=i,(e.components??=[]).push(t.index)}function PF(e,t,i){if(t){let n=e.localNames=[];for(let r=0;r<t.length;r+=2){let o=i[t[r+1]];if(o==null)throw new ct(-301,!1);n.push(t[r],o)}}}function OF(e,t,i){if(i){if(t.exportAs)for(let n=0;n<t.exportAs.length;n++)i[t.exportAs[n]]=e;Va(t)&&(i[""]=e)}}function RF(e,t,i){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+i,e.providerIndexes=t}function LF(e,t,i,n,r){e.data[n]=r;let o=r.factory||(r.factory=Ul(r.type,!0)),s=new zl(o,Va(r),ee);e.blueprint[n]=s,i[n]=s,MF(e,t,n,j5(e,i,r.hostVars,Ni),r)}function kF(e,t,i){let n=Wr(t,e),r=B5(i),o=e[jo].rendererFactory,s=16;i.signals?s=4096:i.onPush&&(s=64);let a=Cm(e,_m(e,r,null,s,n,t,null,o.createRenderer(n,i),null,null,null));e[t.index]=a}function jF(e,t,i,n,r,o){let s=Wr(e,t);VF(t[Un],s,o,e.value,i,n,r)}function VF(e,t,i,n,r,o,s){if(o==null)e.removeAttribute(t,r,i);else{let a=s==null?Mi(o):s(o,n||"",r);e.setAttribute(t,r,a,i)}}function BF(e,t,i,n,r,o){let s=o[t];if(s!==null)for(let a=0;a<s.length;){let l=s[a++],p=s[a++],h=s[a++],v=s[a++];k5(n,i,l,p,h,v)}}function UF(e,t,i){let n=null,r=0;for(;r<i.length;){let o=i[r];if(o===0){r+=4;continue}else if(o===5){r+=2;continue}if(typeof o=="number")break;if(e.hasOwnProperty(o)){n===null&&(n=[]);let s=e[o];for(let a=0;a<s.length;a+=3)if(s[a]===t){n.push(o,s[a+1],s[a+2],i[r+1]);break}}r+=2}return n}function z5(e,t,i,n){return[e,!0,0,t,null,n,null,i,null,null]}function G5(e,t){let i=e.contentQueries;if(i!==null){let n=hn(null);try{for(let r=0;r<i.length;r+=2){let o=i[r],s=i[r+1];if(s!==-1){let a=e.data[s];Wv(o),a.contentQueries(2,t[s],s)}}}finally{hn(n)}}}function Cm(e,t){return e[Bd]?e[cC][Lo]=t:e[Bd]=t,e[cC]=t,t}function rv(e,t,i){Wv(0);let n=hn(null);try{t(e,i)}finally{hn(n)}}function W5(e){return e[Vd]||(e[Vd]=[])}function Y5(e){return e.cleanup||(e.cleanup=[])}function K5(e,t){let i=e[lu],n=i?i.get(ps,null):null;n&&n.handleError(t)}function yy(e,t,i,n,r){for(let o=0;o<i.length;){let s=i[o++],a=i[o++],l=i[o++],p=t[s],h=e.data[s];k5(h,p,n,a,l,r)}}function np(e,t,i){let n=Dw(t,e);XT(e[Un],n,i)}function qF(e,t){let i=$a(t,e),n=i[Rt];$F(n,i);let r=i[Hr];r!==null&&i[oo]===null&&(i[oo]=iy(r,i[lu])),by(n,i,i[ko])}function $F(e,t){for(let i=t.length;i<e.blueprint.length;i++)t.push(e.blueprint[i])}function by(e,t,i){Yv(t);try{let n=e.viewQuery;n!==null&&rv(1,n,i);let r=e.template;r!==null&&V5(e,t,r,1,i),e.firstCreatePass&&(e.firstCreatePass=!1),t[ta]?.finishViewCreation(e),e.staticContentQueries&&G5(e,t),e.staticViewQueries&&rv(2,e.viewQuery,i);let o=e.components;o!==null&&HF(t,o)}catch(n){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),n}finally{t[St]&=-5,Kv()}}function HF(e,t){for(let i=0;i<t.length;i++)qF(e,t[i])}function zF(e,t,i,n){let r=hn(null);try{let o=t.tView,a=e[St]&4096?4096:16,l=_m(e,o,i,a,null,t,null,null,n?.injector??null,n?.embeddedViewInjector??null,n?.dehydratedView??null),p=e[t.index];l[Zd]=p;let h=e[ta];return h!==null&&(l[ta]=h.createEmbeddedView(o)),by(o,l,i),l}finally{hn(r)}}function xC(e,t){return!t||t.firstChild===null||Vh(e)}function GF(e,t,i,n=!0){let r=t[Rt];if(iF(r,t,e,i),n){let s=nv(i,e),a=t[Un],l=uy(a,e[na]);l!==null&&tF(r,e[Gr],a,t,l,s)}let o=t[oo];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function $h(e,t,i,n,r=!1){for(;i!==null;){let o=t[i.index];o!==null&&n.push(Vo(o)),ms(o)&&WF(o,n);let s=i.type;if(s&8)$h(e,t,i.child,n);else if(s&32){let a=ay(i,t),l;for(;l=a();)n.push(l)}else if(s&16){let a=T5(t,i);if(Array.isArray(a))n.push(...a);else{let l=$d(t[zr]);$h(l[Rt],l,a,n,!0)}}i=r?i.projectionNext:i.next}return n}function WF(e,t){for(let i=Dr;i<e.length;i++){let n=e[i],r=n[Rt].firstChild;r!==null&&$h(n[Rt],n,r,t)}e[na]!==e[Hr]&&t.push(e[na])}var Q5=[];function YF(e){return e[$l]??KF(e)}function KF(e){let t=Q5.pop()??Object.create(ZF);return t.lView=e,t}function QF(e){e.lView[$l]!==e&&(e.lView=null,Q5.push(e))}var ZF=An(ze({},W0),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{qd(e.lView)},consumerOnSignalRead(){this.lView[$l]=this}}),Z5=100;function J5(e,t=!0,i=0){let n=e[jo],r=n.rendererFactory,o=!1;o||r.begin?.();try{JF(e,i)}catch(s){throw t&&K5(e,s),s}finally{o||(r.end?.(),n.inlineEffectRunner?.flush())}}function JF(e,t){ov(e,t);let i=0;for(;$v(e);){if(i===Z5)throw new ct(103,!1);i++,ov(e,1)}}function XF(e,t,i,n){let r=t[St];if((r&256)===256)return;let o=!1;!o&&t[jo].inlineEffectRunner?.flush(),Yv(t);let s=null,a=null;!o&&e4(e)&&(a=YF(t),s=g_(a));try{Aw(t),TA(e.bindingStartIndex),i!==null&&V5(e,t,i,2,n);let l=(r&3)===3;if(!o)if(l){let v=e.preOrderCheckHooks;v!==null&&Ih(t,v,null)}else{let v=e.preOrderHooks;v!==null&&xh(t,v,0,null),v1(t,0)}if(t4(t),X5(t,0),e.contentQueries!==null&&G5(e,t),!o)if(l){let v=e.contentCheckHooks;v!==null&&Ih(t,v)}else{let v=e.contentHooks;v!==null&&xh(t,v,1),v1(t,1)}gF(e,t);let p=e.components;p!==null&&tE(t,p,0);let h=e.viewQuery;if(h!==null&&rv(2,h,n),!o)if(l){let v=e.viewCheckHooks;v!==null&&Ih(t,v)}else{let v=e.viewHooks;v!==null&&xh(t,v,2),v1(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[g1]){for(let v of t[g1])v();t[g1]=null}o||(t[St]&=-73)}catch(l){throw qd(t),l}finally{a!==null&&(v_(a,s),QF(a)),Kv()}}function e4(e){return e.type!==2}function X5(e,t){for(let i=n5(e);i!==null;i=i5(i))for(let n=Dr;n<i.length;n++){let r=i[n];eE(r,t)}}function t4(e){for(let t=n5(e);t!==null;t=i5(t)){if(!(t[St]&Vv.HasTransplantedViews))continue;let i=t[cu];for(let n=0;n<i.length;n++){let r=i[n],o=r[ki];bA(r)}}}function n4(e,t,i){let n=$a(t,e);eE(n,i)}function eE(e,t){qv(e)&&ov(e,t)}function ov(e,t){let n=e[Rt],r=e[St],o=e[$l],s=!!(t===0&&r&16);if(s||=!!(r&64&&t===0),s||=!!(r&1024),s||=!!(o?.dirty&&Y0(o)),o&&(o.dirty=!1),e[St]&=-9217,s)XF(n,e,n.template,e[ko]);else if(r&8192){X5(e,1);let a=n.components;a!==null&&tE(e,a,1)}}function tE(e,t,i){for(let n=0;n<t.length;n++)n4(e,t[n],i)}function _y(e){for(e[jo].changeDetectionScheduler?.notify();e;){e[St]|=64;let t=$d(e);if(Cw(e)&&!t)return e;e=t}return null}var Wl=class{get rootNodes(){let t=this._lView,i=t[Rt];return $h(i,t,i.firstChild,[])}constructor(t,i,n=!0){this._lView=t,this._cdRefInjectingView=i,this.notifyErrorHandler=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[ko]}set context(t){this._lView[ko]=t}get destroyed(){return(this._lView[St]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[ki];if(ms(t)){let i=t[Oh],n=i?i.indexOf(this):-1;n>-1&&(tv(t,n),Nh(i,n))}this._attachedToViewContainer=!1}x5(this._lView[Rt],this._lView)}onDestroy(t){Tw(this._lView,t)}markForCheck(){_y(this._cdRefInjectingView||this._lView)}detach(){this._lView[St]&=-129}reattach(){U1(this._lView),this._lView[St]|=128}detectChanges(){this._lView[St]|=1024,J5(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ct(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,S5(this._lView[Rt],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new ct(902,!1);this._appRef=t,U1(this._lView)}},ia=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=o4;let e=t;return e})(),i4=ia,r4=class extends i4{constructor(t,i,n){super(),this._declarationLView=t,this._declarationTContainer=i,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,i){return this.createEmbeddedViewImpl(t,i)}createEmbeddedViewImpl(t,i,n){let r=zF(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:i,dehydratedView:n});return new Wl(r)}};function o4(){return wm(dr(),Pt())}function wm(e,t){return e.type&4?new r4(t,e,yu(e,t)):null}function nE(e){let t=e[Ud]??[],n=e[ki][Un];for(let r of t)s4(r,n);e[Ud]=cr}function s4(e,t){let i=0,n=e.firstChild;if(n){let r=e.data[Bh];for(;i<r;){let o=n.nextSibling;dy(t,n,!1),n=o,i++}}}function iE(e){nE(e);for(let t=Dr;t<e.length;t++)Hh(e[t])}function a4(e){let t=e[oo]?.i18nNodes;if(t){let i=e[Un];for(let n of t.values())dy(i,n,!1);e[oo].i18nNodes=void 0}}function Hh(e){a4(e);let t=e[Rt];for(let i=Ti;i<t.bindingStartIndex;i++)if(ms(e[i])){let n=e[i];iE(n)}else ea(e[i])&&Hh(e[i])}function l4(e){let t=e._views;for(let i of t){let n=CT(i);if(n!==null&&n[Hr]!==null)if(ea(n))Hh(n);else{let r=n[Hr];Hh(r),iE(n)}}}var c4=new RegExp(`^(\\d+)*(${a5}|${s5})*(.*)`);function u4(e){let t=e.match(c4),[i,n,r,o]=t,s=n?parseInt(n,10):r,a=[];for(let[l,p,h]of o.matchAll(/(f|n)(\d*)/g)){let v=parseInt(h,10)||1;a.push(p,v)}return[s,...a]}function d4(e){return!e.prev&&e.parent?.type===8}function E1(e){return e.index-Ti}function p4(e,t){let i=e.i18nNodes;if(i){let n=i.get(t);return n&&i.delete(t),n}return null}function Em(e,t,i,n){let r=E1(n),o=p4(e,r);if(!o){let s=e.data[mT];if(s?.[r])o=h4(s[r],i);else if(t.firstChild===n)o=e.firstChild;else{let a=n.prev===null,l=n.prev??n.parent;if(d4(n)){let p=E1(n.parent);o=Z1(e,p)}else{let p=Wr(l,i);if(a)o=p.firstChild;else{let h=E1(l),v=Z1(e,h);if(l.type===2&&v){let g=ry(e,h)+1;o=Sm(g,v)}else o=p.nextSibling}}}}return o}function Sm(e,t){let i=t;for(let n=0;n<e;n++)i=i.nextSibling;return i}function f4(e,t){let i=e;for(let n=0;n<t.length;n+=2){let r=t[n],o=t[n+1];for(let s=0;s<o;s++)switch(r){case Q1.FirstChild:i=i.firstChild;break;case Q1.NextSibling:i=i.nextSibling;break}}return i}function h4(e,t){let[i,...n]=u4(e),r;if(i===s5)r=t[zr][Hr];else if(i===a5)r=ZT(t[zr][Hr]);else{let o=Number(i);r=Vo(t[o+Ti])}return f4(r,n)}function m4(e,t){let i=[];for(let n of t)for(let r=0;r<(n[l5]??1);r++){let o={data:n,firstChild:null};n[Bh]>0&&(o.firstChild=e,e=Sm(n[Bh],e)),i.push(o)}return[e,i]}var rE=()=>null;function g4(e,t){let i=e[Ud];return!t||i===null||i.length===0?null:i[0].data[hT]===t?i.shift():(nE(e),null)}function v4(){rE=g4}function DC(e,t){return rE(e,t)}var zh=class{},sv=class{},Gh=class{};function y4(e){let t=Error(`No component factory found for ${ur(e)}.`);return t[b4]=e,t}var b4="ngComponent";var av=class{resolveComponentFactory(t){throw y4(t)}},Im=(()=>{let t=class t{};t.NULL=new av;let e=t;return e})(),Hd=class{},Gi=(()=>{let t=class t{constructor(){this.destroyNode=null}};t.__NG_ELEMENT_ID__=()=>_4();let e=t;return e})();function _4(){let e=Pt(),t=dr(),i=$a(t.index,e);return(ea(i)?i:e)[Un]}var C4=(()=>{let t=class t{};t.\u0275prov=qe({token:t,providedIn:"root",factory:()=>null});let e=t;return e})(),S1={};var MC=new Set;function Zl(e){MC.has(e)||(MC.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function AC(...e){}function w4(){let e=typeof $r.requestAnimationFrame=="function",t=$r[e?"requestAnimationFrame":"setTimeout"],i=$r[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&i){let n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);let r=i[Zone.__symbol__("OriginalDelegate")];r&&(i=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:i}}var xn=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ot(!1),this.onMicrotaskEmpty=new ot(!1),this.onStable=new ot(!1),this.onError=new ot(!1),typeof Zone>"u")throw new ct(908,!1);Zone.assertZonePatched();let r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&i,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=w4().nativeRequestAnimationFrame,I4(r)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new ct(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new ct(909,!1)}run(t,i,n){return this._inner.run(t,i,n)}runTask(t,i,n,r){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,t,E4,AC,AC);try{return o.runTask(s,i,n)}finally{o.cancelTask(s)}}runGuarded(t,i,n){return this._inner.runGuarded(t,i,n)}runOutsideAngular(t){return this._outer.run(t)}},E4={};function Cy(e){if(e._nesting==0&&!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 S4(e){e.isCheckStableRunning||e.lastRequestAnimationFrameId!==-1||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call($r,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,lv(e),e.isCheckStableRunning=!0,Cy(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),lv(e))}function I4(e){let t=()=>{S4(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,r,o,s,a)=>{if(x4(a))return i.invokeTask(r,o,s,a);try{return TC(e),i.invokeTask(r,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),FC(e)}},onInvoke:(i,n,r,o,s,a,l)=>{try{return TC(e),i.invoke(r,o,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),FC(e)}},onHasTask:(i,n,r,o)=>{i.hasTask(r,o),n===r&&(o.change=="microTask"?(e._hasPendingMicrotasks=o.microTask,lv(e),Cy(e)):o.change=="macroTask"&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(i,n,r,o)=>(i.handleError(r,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}function lv(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.lastRequestAnimationFrameId!==-1?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function TC(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function FC(e){e._nesting--,Cy(e)}function x4(e){return!Array.isArray(e)||e.length!==1?!1:e[0].data?.__ignore_ng_zone__===!0}var iu=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(iu||{}),D4={destroy(){}};function _u(e,t){!t&&cA(_u);let i=t?.injector??Pe(qo);if(!Od(i))return D4;Zl("NgAfterNextRender");let n=i.get(wy),r=n.handler??=new uv,o=t?.phase??iu.MixedReadWrite,s=()=>{r.unregister(l),a()},a=i.get(Xv).onDestroy(s),l=Bo(i,()=>new cv(o,()=>{s(),e()}));return r.register(l),{destroy:s}}var cv=class{constructor(t,i){this.phase=t,this.callbackFn=i,this.zone=Pe(xn),this.errorHandler=Pe(ps,{optional:!0}),Pe(zh,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(t){this.errorHandler?.handleError(t)}}},uv=class{constructor(){this.executingCallbacks=!1,this.buckets={[iu.EarlyRead]:new Set,[iu.Write]:new Set,[iu.MixedReadWrite]:new Set,[iu.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(let t of Object.values(this.buckets))for(let i of t)i.invoke();this.executingCallbacks=!1;for(let t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(let t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}},wy=(()=>{let t=class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let r of n)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=qe({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function Wh(e,t,i){let n=i?e.styles:null,r=i?e.classes:null,o=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")o=a;else if(o==1)r=N1(r,a);else if(o==2){let l=a,p=t[++s];n=N1(n,l+": "+p+";")}}i?e.styles=n:e.stylesWithoutHost=n,i?e.classes=r:e.classesWithoutHost=r}var Yh=class extends Im{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let i=ja(t);return new du(i,this.ngModule)}};function NC(e){let t=[];for(let i in e){if(!e.hasOwnProperty(i))continue;let n=e[i];n!==void 0&&t.push({propName:Array.isArray(n)?n[0]:n,templateName:i})}return t}function M4(e){let t=e.toLowerCase();return t==="svg"?xw:t==="math"?hA:null}var dv=class{constructor(t,i){this.injector=t,this.parentInjector=i}get(t,i,n){n=nm(n);let r=this.injector.get(t,S1,n);return r!==S1||i===S1?r:this.parentInjector.get(t,i,n)}},du=class extends Gh{get inputs(){let t=this.componentDef,i=t.inputTransforms,n=NC(t.inputs);if(i!==null)for(let r of n)i.hasOwnProperty(r.propName)&&(r.transform=i[r.propName]);return n}get outputs(){return NC(this.componentDef.outputs)}constructor(t,i){super(),this.componentDef=t,this.ngModule=i,this.componentType=t.type,this.selector=WM(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!i}create(t,i,n,r){let o=hn(null);try{r=r||this.ngModule;let s=r instanceof Xi?r:r?.injector;s&&this.componentDef.getStandaloneInjector!==null&&(s=this.componentDef.getStandaloneInjector(s)||s);let a=s?new dv(t,s):t,l=a.get(Hd,null);if(l===null)throw new ct(407,!1);let p=a.get(C4,null),h=a.get(wy,null),v=a.get(zh,null),w={rendererFactory:l,sanitizer:p,inlineEffectRunner:null,afterRenderEventManager:h,changeDetectionScheduler:v},g=l.createRenderer(null,this.componentDef),S=this.componentDef.selectors[0][0]||"div",I=n?bF(g,n,this.componentDef.encapsulation,a):vm(g,S,M4(S)),A=512;this.componentDef.signals?A|=4096:this.componentDef.onPush||(A|=16);let x=null;I!==null&&(x=iy(I,a,!0));let P=gy(0,null,null,1,0,null,null,null,null,null,null),U=_m(null,P,null,A,null,null,w,g,a,null,x);Yv(U);let q,Q;try{let J=this.componentDef,le,Y=null;J.findHostDirectiveDefs?(le=[],Y=new Map,J.findHostDirectiveDefs(J,le,Y),le.push(J)):le=[J];let Ae=A4(U,I),Me=T4(Ae,I,J,le,U,w,g);Q=Mw(P,Ti),I&&P4(g,J,I,n),i!==void 0&&O4(Q,this.ngContentSelectors,i),q=N4(Me,J,le,Y,U,[R4]),by(P,U,null)}finally{Kv()}return new pv(this.componentType,q,yu(Q,U),U,Q)}finally{hn(o)}}},pv=class extends sv{constructor(t,i,n,r,o){super(),this.location=n,this._rootLView=r,this._tNode=o,this.previousInputValues=null,this.instance=i,this.hostView=this.changeDetectorRef=new Wl(r,void 0,!1),this.componentType=t}setInput(t,i){let n=this._tNode.inputs,r;if(n!==null&&(r=n[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),i))return;let o=this._rootLView;yy(o[Rt],o,r,t,i),this.previousInputValues.set(t,i);let s=$a(this._tNode.index,o);_y(s)}}get injector(){return new Bl(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function A4(e,t){let i=e[Rt],n=Ti;return e[n]=t,bu(i,n,2,"#host",null)}function T4(e,t,i,n,r,o,s){let a=r[Rt];F4(n,e,t,s);let l=null;t!==null&&(l=iy(t,r[lu]));let p=o.rendererFactory.createRenderer(t,i),h=16;i.signals?h=4096:i.onPush&&(h=64);let v=_m(r,B5(i),null,h,r[e.index],e,o,p,null,null,l);return a.firstCreatePass&&iv(a,e,n.length-1),Cm(r,v),r[e.index]=v}function F4(e,t,i,n){for(let r of e)t.mergedAttrs=kd(t.mergedAttrs,r.hostAttrs);t.mergedAttrs!==null&&(Wh(t,t.mergedAttrs,!0),i!==null&&O5(n,i,t))}function N4(e,t,i,n,r,o){let s=dr(),a=r[Rt],l=Wr(s,r);$5(a,r,s,i,null,n);for(let h=0;h<i.length;h++){let v=s.directiveStart+h,w=Gl(r,a,v,s);Ba(w,r)}H5(a,r,s),l&&Ba(l,r);let p=Gl(r,a,s.directiveStart+s.componentOffset,s);if(e[ko]=r[ko]=p,o!==null)for(let h of o)h(p,t);return fy(a,s,r),p}function P4(e,t,i,n){if(n)L1(e,i,["ng-version","17.3.11"]);else{let{attrs:r,classes:o}=YM(t.selectors[0]);r&&L1(e,i,r),o&&o.length>0&&P5(e,i,o.join(" "))}}function O4(e,t,i){let n=e.projection=[];for(let r=0;r<t.length;r++){let o=i[r];n.push(o!=null?Array.from(o):null)}}function R4(){let e=dr();dm(Pt()[Rt],e)}var oa=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=L4;let e=t;return e})();function L4(){let e=dr();return sE(e,Pt())}var k4=oa,oE=class extends k4{constructor(t,i,n){super(),this._lContainer=t,this._hostTNode=i,this._hostLView=n}get element(){return yu(this._hostTNode,this._hostLView)}get injector(){return new Bl(this._hostTNode,this._hostLView)}get parentInjector(){let t=Zv(this._hostTNode,this._hostLView);if(qw(t)){let i=Lh(t,this._hostLView),n=Rh(t),r=i[Rt].data[n+8];return new Bl(r,i)}else return new Bl(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let i=PC(this._lContainer);return i!==null&&i[t]||null}get length(){return this._lContainer.length-Dr}createEmbeddedView(t,i,n){let r,o;typeof n=="number"?r=n:n!=null&&(r=n.index,o=n.injector);let s=DC(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(i||{},o,s);return this.insertImpl(a,r,xC(this._hostTNode,s)),a}createComponent(t,i,n,r,o){let s=t&&!uA(t),a;if(s)a=i;else{let S=i||{};a=S.index,n=S.injector,r=S.projectableNodes,o=S.environmentInjector||S.ngModuleRef}let l=s?t:new du(ja(t)),p=n||this.parentInjector;if(!o&&l.ngModule==null){let I=(s?p:this.parentInjector).get(Xi,null);I&&(o=I)}let h=ja(l.componentType??{}),v=DC(this._lContainer,h?.id??null),w=v?.firstChild??null,g=l.create(p,r,w,o);return this.insertImpl(g.hostView,a,xC(this._hostTNode,v)),g}insert(t,i){return this.insertImpl(t,i,!0)}insertImpl(t,i,n){let r=t._lView;if(yA(r)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let l=r[ki],p=new oE(l,l[Gr],l[ki]);p.detach(p.indexOf(t))}}let o=this._adjustIndex(i),s=this._lContainer;return GF(s,r,o,n),t.attachToViewContainerRef(),tw(I1(s),o,t),t}move(t,i){return this.insert(t,i)}indexOf(t){let i=PC(this._lContainer);return i!==null?i.indexOf(t):-1}remove(t){let i=this._adjustIndex(t,-1),n=tv(this._lContainer,i);n&&(Nh(I1(this._lContainer),i),x5(n[Rt],n))}detach(t){let i=this._adjustIndex(t,-1),n=tv(this._lContainer,i);return n&&Nh(I1(this._lContainer),i)!=null?new Wl(n):null}_adjustIndex(t,i=0){return t??this.length+i}};function PC(e){return e[Oh]}function I1(e){return e[Oh]||(e[Oh]=[])}function sE(e,t){let i,n=t[e.index];return ms(n)?i=n:(i=z5(n,t,null,e),t[e.index]=i,Cm(t,i)),aE(i,t,e,n),new oE(i,e,t)}function j4(e,t){let i=e[Un],n=i.createComment(""),r=Wr(t,e),o=uy(i,r);return qh(i,o,n,cF(i,r),!1),n}var aE=lE,Ey=()=>!1;function V4(e,t,i){return Ey(e,t,i)}function lE(e,t,i,n){if(e[na])return;let r;i.type&8?r=Vo(n):r=j4(t,i),e[na]=r}function B4(e,t,i){if(e[na]&&e[Ud])return!0;let n=i[oo],r=t.index-Ti;if(!n||rT(t)||hm(n,r))return!1;let s=Z1(n,r),a=n.data[ny]?.[r],[l,p]=m4(s,a);return e[na]=l,e[Ud]=p,!0}function U4(e,t,i,n){Ey(e,i,t)||lE(e,t,i,n)}function q4(){aE=U4,Ey=B4}var fv=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},hv=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let i=t.queries;if(i!==null){let n=t.contentQueries!==null?t.contentQueries[0]:i.length,r=[];for(let o=0;o<n;o++){let s=i.getByIndex(o),a=this.queries[s.indexInDeclarationView];r.push(a.clone())}return new e(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let i=0;i<this.queries.length;i++)Sy(t,i).matches!==null&&this.queries[i].setDirty()}},Kh=class{constructor(t,i,n=null){this.flags=i,this.read=n,typeof t=="string"?this.predicate=Q4(t):this.predicate=t}},mv=class e{constructor(t=[]){this.queries=t}elementStart(t,i){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,i)}elementEnd(t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementEnd(t)}embeddedTView(t){let i=null;for(let n=0;n<this.length;n++){let r=i!==null?i.length:0,o=this.getByIndex(n).embeddedTView(t,r);o&&(o.indexInDeclarationView=n,i!==null?i.push(o):i=[o])}return i!==null?new e(i):null}template(t,i){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,i)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},gv=class e{constructor(t,i=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}elementStart(t,i){this.isApplyingToNode(i)&&this.matchTNode(t,i)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,i){this.elementStart(t,i)}embeddedTView(t,i){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,i),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let i=this._declarationNodeIndex,n=t.parent;for(;n!==null&&n.type&8&&n.index!==i;)n=n.parent;return i===(n!==null?n.index:-1)}return this._appliesToNextNode}matchTNode(t,i){let n=this.metadata.predicate;if(Array.isArray(n))for(let r=0;r<n.length;r++){let o=n[r];this.matchTNodeWithReadOption(t,i,$4(i,o)),this.matchTNodeWithReadOption(t,i,Dh(i,t,o,!1,!1))}else n===ia?i.type&4&&this.matchTNodeWithReadOption(t,i,-1):this.matchTNodeWithReadOption(t,i,Dh(i,t,n,!1,!1))}matchTNodeWithReadOption(t,i,n){if(n!==null){let r=this.metadata.read;if(r!==null)if(r===Rn||r===oa||r===ia&&i.type&4)this.addMatch(i.index,-2);else{let o=Dh(i,t,r,!1,!1);o!==null&&this.addMatch(i.index,o)}else this.addMatch(i.index,n)}}addMatch(t,i){this.matches===null?this.matches=[t,i]:this.matches.push(t,i)}};function $4(e,t){let i=e.localNames;if(i!==null){for(let n=0;n<i.length;n+=2)if(i[n]===t)return i[n+1]}return null}function H4(e,t){return e.type&11?yu(e,t):e.type&4?wm(e,t):null}function z4(e,t,i,n){return i===-1?H4(t,e):i===-2?G4(e,t,n):Gl(e,e[Rt],i,t)}function G4(e,t,i){if(i===Rn)return yu(t,e);if(i===ia)return wm(t,e);if(i===oa)return sE(t,e)}function cE(e,t,i,n){let r=t[ta].queries[n];if(r.matches===null){let o=e.data,s=i.matches,a=[];for(let l=0;s!==null&&l<s.length;l+=2){let p=s[l];if(p<0)a.push(null);else{let h=o[p];a.push(z4(t,h,s[l+1],i.metadata.read))}}r.matches=a}return r.matches}function vv(e,t,i,n){let r=e.queries.getByIndex(i),o=r.matches;if(o!==null){let s=cE(e,t,r,i);for(let a=0;a<o.length;a+=2){let l=o[a];if(l>0)n.push(s[a/2]);else{let p=o[a+1],h=t[-l];for(let v=Dr;v<h.length;v++){let w=h[v];w[Zd]===w[ki]&&vv(w[Rt],w,p,n)}if(h[cu]!==null){let v=h[cu];for(let w=0;w<v.length;w++){let g=v[w];vv(g[Rt],g,p,n)}}}}}return n}function W4(e,t){return e[ta].queries[t].queryList}function uE(e,t,i){let n=new Y1((i&4)===4);return EF(e,t,n,n.destroy),(t[ta]??=new hv).queries.push(new fv(n))-1}function Y4(e,t,i){let n=bi();return n.firstCreatePass&&(dE(n,new Kh(e,t,i),-1),(t&2)===2&&(n.staticViewQueries=!0)),uE(n,Pt(),t)}function K4(e,t,i,n){let r=bi();if(r.firstCreatePass){let o=dr();dE(r,new Kh(t,i,n),o.index),Z4(r,e),(i&2)===2&&(r.staticContentQueries=!0)}return uE(r,Pt(),i)}function Q4(e){return e.split(",").map(t=>t.trim())}function dE(e,t,i){e.queries===null&&(e.queries=new mv),e.queries.track(new gv(t,i))}function Z4(e,t){let i=e.contentQueries||(e.contentQueries=[]),n=i.length?i[i.length-1]:-1;t!==n&&i.push(e.queries.length-1,t)}function Sy(e,t){return e.queries.getByIndex(t)}function J4(e,t){let i=e[Rt],n=Sy(i,t);return n.crossesNgTemplate?vv(i,e,t,[]):cE(i,e,n,t)}function Iy(e,t){Zl("NgSignals");let i=S_(e),n=i[$c];return t?.equal&&(n.equal=t.equal),i.set=r=>K0(n,r),i.update=r=>I_(n,r),i.asReadonly=X4.bind(i),i}function X4(){let e=this[$c];if(e.readonlyFn===void 0){let t=()=>this();t[$c]=e,e.readonlyFn=t}return e.readonlyFn}function eN(e){return Object.getPrototypeOf(e.prototype).constructor}function _n(e){let t=eN(e.type),i=!0,n=[e];for(;t;){let r;if(Va(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new ct(903,!1);r=t.\u0275dir}if(r){if(i){n.push(r);let s=e;s.inputs=Ch(e.inputs),s.inputTransforms=Ch(e.inputTransforms),s.declaredInputs=Ch(e.declaredInputs),s.outputs=Ch(e.outputs);let a=r.hostBindings;a&&oN(e,a);let l=r.viewQuery,p=r.contentQueries;if(l&&iN(e,l),p&&rN(e,p),tN(e,r),pM(e.outputs,r.outputs),Va(r)&&r.data.animation){let h=e.data;h.animation=(h.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let s=0;s<o.length;s++){let a=o[s];a&&a.ngInherit&&a(e),a===_n&&(i=!1)}}t=Object.getPrototypeOf(t)}nN(n)}function tN(e,t){for(let i in t.inputs){if(!t.inputs.hasOwnProperty(i)||e.inputs.hasOwnProperty(i))continue;let n=t.inputs[i];if(n!==void 0&&(e.inputs[i]=n,e.declaredInputs[i]=t.declaredInputs[i],t.inputTransforms!==null)){let r=Array.isArray(n)?n[0]:n;if(!t.inputTransforms.hasOwnProperty(r))continue;e.inputTransforms??={},e.inputTransforms[r]=t.inputTransforms[r]}}}function nN(e){let t=0,i=null;for(let n=e.length-1;n>=0;n--){let r=e[n];r.hostVars=t+=r.hostVars,r.hostAttrs=kd(r.hostAttrs,i=kd(i,r.hostAttrs))}}function Ch(e){return e===su?{}:e===cr?[]:e}function iN(e,t){let i=e.viewQuery;i?e.viewQuery=(n,r)=>{t(n,r),i(n,r)}:e.viewQuery=t}function rN(e,t){let i=e.contentQueries;i?e.contentQueries=(n,r,o)=>{t(n,r,o),i(n,r,o)}:e.contentQueries=t}function oN(e,t){let i=e.hostBindings;i?e.hostBindings=(n,r)=>{t(n,r),i(n,r)}:e.hostBindings=t}function so(e){let t=e.inputConfig,i={};for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];Array.isArray(r)&&r[3]&&(i[n]=r[3])}e.inputTransforms=i}var Ua=class{},zd=class{};var yv=class extends Ua{constructor(t,i,n){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Yh(this);let r=dw(t);this._bootstrapComponents=E5(r.bootstrap),this._r3Injector=Zw(t,i,[{provide:Ua,useValue:this},{provide:Im,useValue:this.componentFactoryResolver},...n],ur(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(i=>i()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},bv=class extends zd{constructor(t){super(),this.moduleType=t}create(t){return new yv(this.moduleType,t,[])}};var Qh=class extends Ua{constructor(t){super(),this.componentFactoryResolver=new Yh(this),this.instance=null;let i=new jd([...t.providers,{provide:Ua,useValue:this},{provide:Im,useValue:this.componentFactoryResolver}],t.parent||jv(),t.debugName,new Set(["environment"]));this.injector=i,t.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function xm(e,t,i=null){return new Qh({providers:e,parent:t,debugName:i,runEnvironmentInitializers:!0}).injector}var Cu=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ii(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function pE(e){return xy(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function sN(e,t){if(Array.isArray(e))for(let i=0;i<e.length;i++)t(e[i]);else{let i=e[Symbol.iterator](),n;for(;!(n=i.next()).done;)t(n.value)}}function xy(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function Dm(e,t,i){return e[t]=i}function aN(e,t){return e[t]}function hs(e,t,i){let n=e[t];return Object.is(n,i)?!1:(e[t]=i,!0)}function Gd(e,t,i,n){let r=hs(e,t,i);return hs(e,t+1,n)||r}function fE(e,t,i,n,r){let o=Gd(e,t,i,n);return hs(e,t+2,r)||o}function hE(e,t,i,n,r,o){let s=Gd(e,t,i,n);return Gd(e,t+2,r,o)||s}function ip(e){return(e.flags&32)===32}function lN(e,t,i,n,r,o,s,a,l){let p=t.consts,h=bu(t,e,4,s||null,uu(p,a));vy(t,i,h,uu(p,l)),dm(t,h);let v=h.tView=gy(2,h,n,r,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,p,null);return t.queries!==null&&(t.queries.template(t,h),v.queries=t.queries.embeddedTView(h)),h}function R(e,t,i,n,r,o,s,a){let l=Pt(),p=bi(),h=e+Ti,v=p.firstCreatePass?lN(h,p,l,t,i,n,r,o,s):p.data[h];Kl(v,!1);let w=mE(p,l,v,e);um()&&ym(p,l,w,v),Ba(w,l);let g=z5(w,l,w,v);return l[h]=g,Cm(l,g),V4(g,v,l),lm(v)&&hy(p,l,v),s!=null&&my(l,v,a),R}var mE=gE;function gE(e,t,i,n){return vs(!0),t[Un].createComment("")}function cN(e,t,i,n){let r=t[oo],o=!r||mu()||ip(i)||hm(r,n);if(vs(o),o)return gE(e,t,i,n);let s=r.data[fT]?.[n]??null;s!==null&&i.tView!==null&&i.tView.ssrId===null&&(i.tView.ssrId=s);let a=Em(r,e,t,i);fm(r,n,a);let l=ry(r,n);return Sm(l,a)}function uN(){mE=cN}function Wt(e,t,i,n){let r=Pt(),o=Gv();if(hs(r,o,t)){let s=bi(),a=Qv();jF(a,r,e,t,i,n)}return Wt}function vE(e,t,i,n){return hs(e,Gv(),i)?t+Mi(i)+n:Ni}function dN(e,t,i,n,r,o){let s=cm(),a=Gd(e,s,i,r);return vu(2),a?t+Mi(i)+n+Mi(r)+o:Ni}function pN(e,t,i,n,r,o,s,a){let l=cm(),p=fE(e,l,i,r,s);return vu(3),p?t+Mi(i)+n+Mi(r)+o+Mi(s)+a:Ni}function fN(e,t,i,n,r,o,s,a,l,p){let h=cm(),v=hE(e,h,i,r,s,l);return vu(4),v?t+Mi(i)+n+Mi(r)+o+Mi(s)+a+Mi(l)+p:Ni}function hN(e,t,i,n,r,o,s,a,l,p,h,v){let w=cm(),g=hE(e,w,i,r,s,l);return g=hs(e,w+4,h)||g,vu(5),g?t+Mi(i)+n+Mi(r)+o+Mi(s)+a+Mi(l)+p+Mi(h)+v:Ni}function wh(e,t){return e<<17|t<<2}function Yl(e){return e>>17&32767}function mN(e){return(e&2)==2}function gN(e,t){return e&131071|t<<17}function _v(e){return e|2}function pu(e){return(e&131068)>>2}function x1(e,t){return e&-131069|t<<2}function vN(e){return(e&1)===1}function Cv(e){return e|1}function yN(e,t,i,n,r,o){let s=o?t.classBindings:t.styleBindings,a=Yl(s),l=pu(s);e[n]=i;let p=!1,h;if(Array.isArray(i)){let v=i;h=v[1],(h===null||Qd(v,h)>0)&&(p=!0)}else h=i;if(r)if(l!==0){let w=Yl(e[a+1]);e[n+1]=wh(w,a),w!==0&&(e[w+1]=x1(e[w+1],n)),e[a+1]=gN(e[a+1],n)}else e[n+1]=wh(a,0),a!==0&&(e[a+1]=x1(e[a+1],n)),a=n;else e[n+1]=wh(l,0),a===0?a=n:e[l+1]=x1(e[l+1],n),l=n;p&&(e[n+1]=_v(e[n+1])),OC(e,h,n,!0),OC(e,h,n,!1),bN(t,h,e,n,o),s=wh(a,l),o?t.classBindings=s:t.styleBindings=s}function bN(e,t,i,n,r){let o=r?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&Qd(o,t)>=0&&(i[n+1]=Cv(i[n+1]))}function OC(e,t,i,n){let r=e[i+1],o=t===null,s=n?Yl(r):pu(r),a=!1;for(;s!==0&&(a===!1||o);){let l=e[s],p=e[s+1];_N(l,t)&&(a=!0,e[s+1]=n?Cv(p):_v(p)),s=n?Yl(p):pu(p)}a&&(e[i+1]=n?_v(r):Cv(r))}function _N(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Qd(e,t)>=0:!1}var Ai={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function yE(e){return e.substring(Ai.key,Ai.keyEnd)}function CN(e){return e.substring(Ai.value,Ai.valueEnd)}function wN(e){return CE(e),bE(e,fu(e,0,Ai.textEnd))}function bE(e,t){let i=Ai.textEnd;return i===t?-1:(t=Ai.keyEnd=SN(e,Ai.key=t,i),fu(e,t,i))}function EN(e){return CE(e),_E(e,fu(e,0,Ai.textEnd))}function _E(e,t){let i=Ai.textEnd,n=Ai.key=fu(e,t,i);return i===n?-1:(n=Ai.keyEnd=IN(e,n,i),n=RC(e,n,i,58),n=Ai.value=fu(e,n,i),n=Ai.valueEnd=xN(e,n,i),RC(e,n,i,59))}function CE(e){Ai.key=0,Ai.keyEnd=0,Ai.value=0,Ai.valueEnd=0,Ai.textEnd=e.length}function fu(e,t,i){for(;t<i&&e.charCodeAt(t)<=32;)t++;return t}function SN(e,t,i){for(;t<i&&e.charCodeAt(t)>32;)t++;return t}function IN(e,t,i){let n;for(;t<i&&((n=e.charCodeAt(t))===45||n===95||(n&-33)>=65&&(n&-33)<=90||n>=48&&n<=57);)t++;return t}function RC(e,t,i,n){return t=fu(e,t,i),t<i&&t++,t}function xN(e,t,i){let n=-1,r=-1,o=-1,s=t,a=s;for(;s<i;){let l=e.charCodeAt(s++);if(l===59)return a;l===34||l===39?a=s=LC(e,l,s,i):t===s-4&&o===85&&r===82&&n===76&&l===40?a=s=LC(e,41,s,i):l>32&&(a=s),o=r,r=n,n=l&-33}return a}function LC(e,t,i,n){let r=-1,o=i;for(;o<n;){let s=e.charCodeAt(o++);if(s==t&&r!==92)return o;s==92&&r===92?r=0:r=s}throw new Error}function _(e,t,i){let n=Pt(),r=Gv();if(hs(n,r,t)){let o=bi(),s=Qv();q5(o,s,n,e,t,n[Un],i,!1)}return _}function wv(e,t,i,n,r){let o=t.inputs,s=r?"class":"style";yy(e,i,o[s],s,n)}function za(e,t){return AN(e,t,null,!0),za}function Ga(e){wE(IE,DN,e,!1)}function DN(e,t){for(let i=EN(t);i>=0;i=_E(t,i))IE(e,yE(t),CN(t))}function Ci(e){wE(RN,MN,e,!0)}function MN(e,t){for(let i=wN(t);i>=0;i=bE(t,i))rm(e,yE(t),!0)}function AN(e,t,i,n){let r=Pt(),o=bi(),s=vu(2);if(o.firstUpdatePass&&SE(o,e,s,n),t!==Ni&&hs(r,s,t)){let a=o.data[Uo()];xE(o,a,r,r[Un],e,r[s+1]=kN(t,i),n,s)}}function wE(e,t,i,n){let r=bi(),o=vu(2);r.firstUpdatePass&&SE(r,null,o,n);let s=Pt();if(i!==Ni&&hs(s,o,i)){let a=r.data[Uo()];if(DE(a,n)&&!EE(r,o)){let l=n?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(i=N1(l,i||"")),wv(r,a,s,i,n)}else LN(r,a,s,s[Un],s[o+1],s[o+1]=ON(e,t,i),n,o)}}function EE(e,t){return t>=e.expandoStartIndex}function SE(e,t,i,n){let r=e.data;if(r[i+1]===null){let o=r[Uo()],s=EE(e,i);DE(o,n)&&t===null&&!s&&(t=!1),t=TN(r,o,t,n),yN(r,o,t,i,s,n)}}function TN(e,t,i,n){let r=OA(e),o=n?t.residualClasses:t.residualStyles;if(r===null)(n?t.classBindings:t.styleBindings)===0&&(i=D1(null,e,t,i,n),i=Wd(i,t.attrs,n),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==r)if(i=D1(r,e,t,i,n),o===null){let l=FN(e,t,n);l!==void 0&&Array.isArray(l)&&(l=D1(null,e,t,l[1],n),l=Wd(l,t.attrs,n),NN(e,t,n,l))}else o=PN(e,t,n)}return o!==void 0&&(n?t.residualClasses=o:t.residualStyles=o),i}function FN(e,t,i){let n=i?t.classBindings:t.styleBindings;if(pu(n)!==0)return e[Yl(n)]}function NN(e,t,i,n){let r=i?t.classBindings:t.styleBindings;e[Yl(r)]=n}function PN(e,t,i){let n,r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<r;o++){let s=e[o].hostAttrs;n=Wd(n,s,i)}return Wd(n,t.attrs,i)}function D1(e,t,i,n,r){let o=null,s=i.directiveEnd,a=i.directiveStylingLast;for(a===-1?a=i.directiveStart:a++;a<s&&(o=t[a],n=Wd(n,o.hostAttrs,r),o!==e);)a++;return e!==null&&(i.directiveStylingLast=a),n}function Wd(e,t,i){let n=i?1:2,r=-1;if(t!==null)for(let o=0;o<t.length;o++){let s=t[o];typeof s=="number"?r=s:r===n&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),rm(e,s,i?!0:t[++o]))}return e===void 0?null:e}function ON(e,t,i){if(i==null||i==="")return cr;let n=[],r=Ha(i);if(Array.isArray(r))for(let o=0;o<r.length;o++)e(n,r[o],!0);else if(typeof r=="object")for(let o in r)r.hasOwnProperty(o)&&e(n,o,r[o]);else typeof r=="string"&&t(n,r);return n}function IE(e,t,i){rm(e,t,Ha(i))}function RN(e,t,i){let n=String(t);n!==""&&!n.includes(" ")&&rm(e,n,i)}function LN(e,t,i,n,r,o,s,a){r===Ni&&(r=cr);let l=0,p=0,h=0<r.length?r[0]:null,v=0<o.length?o[0]:null;for(;h!==null||v!==null;){let w=l<r.length?r[l+1]:void 0,g=p<o.length?o[p+1]:void 0,S=null,I;h===v?(l+=2,p+=2,w!==g&&(S=v,I=g)):v===null||h!==null&&h<v?(l+=2,S=h):(p+=2,S=v,I=g),S!==null&&xE(e,t,i,n,S,I,s,a),h=l<r.length?r[l]:null,v=p<o.length?o[p]:null}}function xE(e,t,i,n,r,o,s,a){if(!(t.type&3))return;let l=e.data,p=l[a+1],h=vN(p)?kC(l,t,i,r,pu(p),s):void 0;if(!Zh(h)){Zh(o)||mN(p)&&(o=kC(l,null,i,r,a,s));let v=Dw(Uo(),i);hF(n,s,v,r,o)}}function kC(e,t,i,n,r,o){let s=t===null,a;for(;r>0;){let l=e[r],p=Array.isArray(l),h=p?l[1]:l,v=h===null,w=i[r+1];w===Ni&&(w=v?cr:void 0);let g=v?h1(w,n):h===n?w:void 0;if(p&&!Zh(g)&&(g=h1(l,n)),Zh(g)&&(a=g,s))return a;let S=e[r+1];r=s?Yl(S):pu(S)}if(t!==null){let l=o?t.residualClasses:t.residualStyles;l!=null&&(a=h1(l,n))}return a}function Zh(e){return e!==void 0}function kN(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=ur(Ha(e)))),e}function DE(e,t){return(e.flags&(t?8:16))!==0}function jN(e,t,i,n,r,o){let s=t.consts,a=uu(s,r),l=bu(t,e,2,n,a);return vy(t,i,l,uu(s,o)),l.attrs!==null&&Wh(l,l.attrs,!1),l.mergedAttrs!==null&&Wh(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function d(e,t,i,n){let r=Pt(),o=bi(),s=Ti+e,a=r[Un],l=o.firstCreatePass?jN(s,o,r,t,i,n):o.data[s],p=ME(o,r,l,a,t,e);r[s]=p;let h=lm(l);return Kl(l,!0),O5(a,p,l),!ip(l)&&um()&&ym(o,r,p,l),wA()===0&&Ba(p,r),EA(),h&&(hy(o,r,l),fy(o,l,r)),n!==null&&my(r,l),d}function u(){let e=dr();Hv()?zv():(e=e.parent,Kl(e,!1));let t=e;IA(t)&&DA(),SA();let i=bi();return i.firstCreatePass&&(dm(i,e),Bv(e)&&i.queries.elementEnd(e)),t.classesWithoutHost!=null&&BA(t)&&wv(i,t,Pt(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&UA(t)&&wv(i,t,Pt(),t.stylesWithoutHost,!1),u}function z(e,t,i,n){return d(e,t,i,n),u(),z}var ME=(e,t,i,n,r,o)=>(vs(!0),vm(n,r,Vw()));function VN(e,t,i,n,r,o){let s=t[oo],a=!s||mu()||ip(i)||hm(s,o);if(vs(a),a)return vm(n,r,Vw());let l=Em(s,e,t,i);return d5(s,o)&&fm(s,o,l.nextSibling),s&&(Xw(i)||e5(l))&&Jd(i)&&(xA(i),F5(l)),l}function BN(){ME=VN}function UN(e,t,i,n,r){let o=t.consts,s=uu(o,n),a=bu(t,e,8,"ng-container",s);s!==null&&Wh(a,s,!0);let l=uu(o,r);return vy(t,i,a,l),t.queries!==null&&t.queries.elementStart(t,a),a}function pr(e,t,i){let n=Pt(),r=bi(),o=e+Ti,s=r.firstCreatePass?UN(o,r,n,t,i):r.data[o];Kl(s,!0);let a=AE(r,n,s,e);return n[o]=a,um()&&ym(r,n,a,s),Ba(a,n),lm(s)&&(hy(r,n,s),fy(r,s,n)),i!=null&&my(n,s),pr}function fr(){let e=dr(),t=bi();return Hv()?zv():(e=e.parent,Kl(e,!1)),t.firstCreatePass&&(dm(t,e),Bv(e)&&t.queries.elementEnd(e)),fr}function $o(e,t,i){return pr(e,t,i),fr(),$o}var AE=(e,t,i,n)=>(vs(!0),cy(t[Un],""));function qN(e,t,i,n){let r,o=t[oo],s=!o||mu()||ip(i);if(vs(s),s)return cy(t[Un],"");let a=Em(o,e,t,i),l=ST(o,n);return fm(o,n,a),r=Sm(l,a),r}function $N(){AE=qN}function je(){return Pt()}var Vl=void 0;function HN(e){let t=e,i=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return i===1&&n===0?1:5}var zN=["en",[["a","p"],["AM","PM"],Vl],[["AM","PM"],Vl,Vl],[["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"]],Vl,[["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"]],Vl,[["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}",Vl,"{1} 'at' {0}",Vl],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",HN],M1={};function ao(e){let t=GN(e),i=jC(t);if(i)return i;let n=t.split("-")[0];if(i=jC(n),i)return i;if(n==="en")return zN;throw new ct(701,!1)}function jC(e){return e in M1||(M1[e]=$r.ng&&$r.ng.common&&$r.ng.common.locales&&$r.ng.common.locales[e]),M1[e]}var ci=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}(ci||{});function GN(e){return e.toLowerCase().replace(/_/g,"-")}var Jh="en-US";var WN=Jh;function YN(e){typeof e=="string"&&(WN=e.toLowerCase().replace(/_/g,"-"))}function TE(e,t,i){let n=e[Un];switch(i){case Node.COMMENT_NODE:return cy(n,t);case Node.TEXT_NODE:return ly(n,t);case Node.ELEMENT_NODE:return vm(n,t,null)}}var KN=(e,t,i,n)=>(vs(!0),TE(e,i,n));function QN(e,t,i,n){return vs(!0),TE(e,i,n)}function ZN(){KN=QN}function X(e,t,i,n){let r=Pt(),o=bi(),s=dr();return XN(o,r,r[Un],s,e,t,n),X}function JN(e,t,i,n){let r=e.cleanup;if(r!=null)for(let o=0;o<r.length-1;o+=2){let s=r[o];if(s===i&&r[o+1]===n){let a=t[Vd],l=r[o+2];return a.length>l?a[l]:null}typeof s=="string"&&(o+=2)}return null}function XN(e,t,i,n,r,o,s){let a=lm(n),p=e.firstCreatePass&&Y5(e),h=t[ko],v=W5(t),w=!0;if(n.type&3||s){let I=Wr(n,t),A=s?s(I):I,x=v.length,P=s?q=>s(Vo(q[n.index])):n.index,U=null;if(!s&&a&&(U=JN(e,t,r,n.index)),U!==null){let q=U.__ngLastListenerFn__||U;q.__ngNextListenerFn__=o,U.__ngLastListenerFn__=o,w=!1}else{o=BC(n,t,h,o,!1);let q=i.listen(A,r,o);v.push(o,q),p&&p.push(r,P,x,x+1)}}else o=BC(n,t,h,o,!1);let g=n.outputs,S;if(w&&g!==null&&(S=g[r])){let I=S.length;if(I)for(let A=0;A<I;A+=2){let x=S[A],P=S[A+1],Q=t[x][P].subscribe(o),J=v.length;v.push(o,Q),p&&p.push(r,n.index,J,-(J+1))}}}function VC(e,t,i,n){let r=hn(null);try{return cs(6,t,i),i(n)!==!1}catch(o){return K5(e,o),!1}finally{cs(7,t,i),hn(r)}}function BC(e,t,i,n,r){return function o(s){if(s===Function)return n;let a=e.componentOffset>-1?$a(e.index,t):t;_y(a);let l=VC(t,i,n,s),p=o.__ngNextListenerFn__;for(;p;)l=VC(t,i,p,s)&&l,p=p.__ngNextListenerFn__;return r&&l===!1&&s.preventDefault(),l}}function j(e=1){return LA(e)}function eP(e,t){let i=null,n=qM(e);for(let r=0;r<t.length;r++){let o=t[r];if(o==="*"){i=r;continue}if(n===null?aw(e,o,!0):zM(n,o))return r}return i}function lo(e){let t=Pt()[zr][Gr];if(!t.projection){let i=e?e.length:1,n=t.projection=PM(i,null),r=n.slice(),o=t.child;for(;o!==null;){let s=e?eP(o,e):0;s!==null&&(r[s]?r[s].projectionNext=o:n[s]=o,r[s]=o),o=o.next}}}function Yr(e,t=0,i){let n=Pt(),r=bi(),o=bu(r,Ti+e,16,null,i||null);o.projection===null&&(o.projection=t),zv(),(!n[oo]||mu())&&(o.flags&32)!==32&&pF(r,n,o)}function dn(e,t,i,n,r){let o=Pt(),s=vE(o,t,i,n);if(s!==Ni){let a=bi(),l=Qv();q5(a,l,o,e,s,o[Un],r,!1)}return dn}function co(e,t,i,n){K4(e,t,i,n)}function Dy(e,t,i){Y4(e,t,i)}function Mr(e){let t=Pt(),i=bi(),n=Pw();Wv(n+1);let r=Sy(i,n);if(e.dirty&&vA(t)===((r.metadata.flags&2)===2)){if(r.matches===null)e.reset([]);else{let o=J4(t,n);e.reset(o,eT),e.notifyOnChanges()}return!0}return!1}function Ar(){return W4(Pt(),Pw())}function tP(e,t,i,n){i>=e.data.length&&(e.data[i]=null,e.blueprint[i]=null),t[i]=n}function vt(e){let t=AA();return Uv(t,Ti+e)}function C(e,t=""){let i=Pt(),n=bi(),r=e+Ti,o=n.firstCreatePass?bu(n,r,1,t,null):n.data[r],s=FE(n,i,o,t,e);i[r]=s,um()&&ym(n,i,s,o),Kl(o,!1)}var FE=(e,t,i,n,r)=>(vs(!0),ly(t[Un],n));function nP(e,t,i,n,r){let o=t[oo],s=!o||mu()||ip(i)||hm(o,r);return vs(s),s?ly(t[Un],n):Em(o,e,t,i)}function iP(){FE=nP}function on(e){return yt("",e,""),on}function yt(e,t,i){let n=Pt(),r=vE(n,e,t,i);return r!==Ni&&np(n,Uo(),r),yt}function rp(e,t,i,n,r){let o=Pt(),s=dN(o,e,t,i,n,r);return s!==Ni&&np(o,Uo(),s),rp}function Tr(e,t,i,n,r,o,s){let a=Pt(),l=pN(a,e,t,i,n,r,o,s);return l!==Ni&&np(a,Uo(),l),Tr}function op(e,t,i,n,r,o,s,a,l){let p=Pt(),h=fN(p,e,t,i,n,r,o,s,a,l);return h!==Ni&&np(p,Uo(),h),op}function My(e,t,i,n,r,o,s,a,l,p,h){let v=Pt(),w=hN(v,e,t,i,n,r,o,s,a,l,p,h);return w!==Ni&&np(v,Uo(),w),My}function rP(e,t,i){let n=bi();if(n.firstCreatePass){let r=Va(e);Ev(i,n.data,n.blueprint,r,!0),Ev(t,n.data,n.blueprint,r,!1)}}function Ev(e,t,i,n,r){if(e=lr(e),Array.isArray(e))for(let o=0;o<e.length;o++)Ev(e[o],t,i,n,r);else{let o=bi(),s=Pt(),a=dr(),l=au(e)?e:lr(e.provide),p=vw(e),h=a.providerIndexes&1048575,v=a.directiveStart,w=a.providerIndexes>>20;if(au(e)||!e.multi){let g=new zl(p,r,ee),S=T1(l,t,r?h:h+w,v);S===-1?(H1(jh(a,s),o,l),A1(o,e,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(g),s.push(g)):(i[S]=g,s[S]=g)}else{let g=T1(l,t,h+w,v),S=T1(l,t,h,h+w),I=g>=0&&i[g],A=S>=0&&i[S];if(r&&!A||!r&&!I){H1(jh(a,s),o,l);let x=aP(r?sP:oP,i.length,r,n,p);!r&&A&&(i[S].providerFactory=x),A1(o,e,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(x),s.push(x)}else{let x=NE(i[r?S:g],p,!r&&n);A1(o,e,g>-1?g:S,x)}!r&&n&&A&&i[S].componentProviders++}}}function A1(e,t,i,n){let r=au(t),o=nA(t);if(r||o){let l=(o?lr(t.useClass):t).prototype.ngOnDestroy;if(l){let p=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){let h=p.indexOf(i);h===-1?p.push(i,[n,l]):p[h+1].push(n,l)}else p.push(i,l)}}}function NE(e,t,i){return i&&e.componentProviders++,e.multi.push(t)-1}function T1(e,t,i,n){for(let r=i;r<n;r++)if(t[r]===e)return r;return-1}function oP(e,t,i,n){return Sv(this.multi,[])}function sP(e,t,i,n){let r=this.multi,o;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=Gl(i,i[Rt],this.providerFactory.index,n);o=a.slice(0,s),Sv(r,o);for(let l=s;l<a.length;l++)o.push(a[l])}else o=[],Sv(r,o);return o}function Sv(e,t){for(let i=0;i<e.length;i++){let n=e[i];t.push(n())}return t}function aP(e,t,i,n,r){let o=new zl(e,i,ee);return o.multi=[],o.index=t,o.componentProviders=0,NE(o,r,n&&!i),o}function Wi(e,t=[]){return i=>{i.providersResolver=(n,r)=>rP(n,r?r(e):e,t)}}var lP=(()=>{let t=class t{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=hw(!1,n.type),o=r.length>0?xm([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};t.\u0275prov=qe({token:t,providedIn:"environment",factory:()=>new t(Ye(Xi))});let e=t;return e})();function Ve(e){Zl("NgStandalone"),e.getStandaloneInjector=t=>t.get(lP).getOrCreateStandaloneInjector(e)}function ys(e,t,i){let n=gu()+e,r=Pt();return r[n]===Ni?Dm(r,n,i?t.call(i):t()):aN(r,n)}function ye(e,t,i,n){return OE(Pt(),gu(),e,t,i,n)}function PE(e,t,i,n,r){return RE(Pt(),gu(),e,t,i,n,r)}function Mm(e,t,i,n,r,o){return cP(Pt(),gu(),e,t,i,n,r,o)}function Ay(e,t){let i=e[t];return i===Ni?void 0:i}function OE(e,t,i,n,r,o){let s=t+i;return hs(e,s,r)?Dm(e,s+1,o?n.call(o,r):n(r)):Ay(e,s+1)}function RE(e,t,i,n,r,o,s){let a=t+i;return Gd(e,a,r,o)?Dm(e,a+2,s?n.call(s,r,o):n(r,o)):Ay(e,a+2)}function cP(e,t,i,n,r,o,s,a){let l=t+i;return fE(e,l,r,o,s)?Dm(e,l+3,a?n.call(a,r,o,s):n(r,o,s)):Ay(e,l+3)}function Am(e,t){let i=bi(),n,r=e+Ti;i.firstCreatePass?(n=uP(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks??=[]).push(r,n.onDestroy)):n=i.data[r];let o=n.factory||(n.factory=Ul(n.type,!0)),s,a=xr(ee);try{let l=kh(!1),p=o();return kh(l),tP(i,Pt(),r,p),p}finally{xr(a)}}function uP(e,t){if(t)for(let i=t.length-1;i>=0;i--){let n=t[i];if(e===n.name)return n}}function LE(e,t,i){let n=e+Ti,r=Pt(),o=Uv(r,n);return jE(r,n)?OE(r,gu(),t,o.transform,i,o):o.transform(i)}function kE(e,t,i,n){let r=e+Ti,o=Pt(),s=Uv(o,r);return jE(o,r)?RE(o,gu(),t,s.transform,i,n,s):s.transform(i,n)}function jE(e,t){return e[Rt].data[t].pure}function Ty(e,t){return wm(e,t)}var Tm=(()=>{let t=class t{log(n){console.log(n)}warn(n){console.warn(n)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();var VE=new dt("");function Jl(e){return!!e&&typeof e.then=="function"}function BE(e){return!!e&&typeof e.subscribe=="function"}var Fm=new dt(""),UE=(()=>{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=Pe(Fm,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(Jl(s))n.push(s);else if(BE(s)){let a=new Promise((l,p)=>{s.subscribe({complete:l,error:p})});n.push(a)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Xl=new dt("");function dP(){E_(()=>{throw new ct(600,!1)})}function pP(e){return e.isBoundToModule}function fP(e,t,i){try{let n=i();return Jl(n)?n.catch(r=>{throw t.runOutsideAngular(()=>e.handleError(r)),r}):n}catch(n){throw t.runOutsideAngular(()=>e.handleError(n)),n}}var Wa=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Pe(Jw),this.afterRenderEffectManager=Pe(wy),this.externalTestViews=new Set,this.beforeRender=new yi,this.afterTick=new yi,this.componentTypes=[],this.components=[],this.isStable=Pe(Cu).hasPendingTasks.pipe(ut(n=>!n)),this._injector=Pe(Xi)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){let o=n instanceof Gh;if(!this._injector.get(UE).done){let g=!o&&uw(n),S=!1;throw new ct(405,S)}let a;o?a=n:a=this._injector.get(Im).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let l=pP(a)?void 0:this._injector.get(Ua),p=r||a.selector,h=a.create(qo.NULL,[],p,l),v=h.location.nativeElement,w=h.injector.get(VE,null);return w?.registerApplication(v),h.onDestroy(()=>{this.detachView(h.hostView),F1(this.components,h),w?.unregisterApplication(v)}),this._loadComponent(h),h}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new ct(101,!1);let r=hn(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,hn(r)}}detectChangesInAttachedViews(n){let r=0,o=this.afterRenderEffectManager;for(;;){if(r===Z5)throw new ct(103,!1);if(n){let s=r===0;this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:l}of this._views)hP(a,s,l)}if(r++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Iv(s))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Iv(s))))break}}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;F1(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(Xl,[]);[...this._bootstrapListeners,...r].forEach(o=>o(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),()=>F1(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new ct(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function F1(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}var Eh;function Fy(e){Eh??=new WeakMap;let t=Eh.get(e);if(t)return t;let i=e.isStable.pipe(Oo(n=>n)).toPromise().then(()=>{});return Eh.set(e,i),e.onDestroy(()=>Eh?.delete(e)),i}function hP(e,t,i){!t&&!Iv(e)||mP(e,i,t)}function Iv(e){return $v(e)}function mP(e,t,i){let n;i?(n=0,e[St]|=1024):e[St]&64?n=0:n=1,J5(e,t,n)}var xv=class{constructor(t,i){this.ngModuleFactory=t,this.componentFactories=i}},Nm=(()=>{let t=class t{compileModuleSync(n){return new bv(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=dw(n),s=E5(o.declarations).reduce((a,l)=>{let p=ja(l);return p&&a.push(new du(p)),a},[]);return new xv(r,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var gP=(()=>{let t=class t{constructor(){this.zone=Pe(xn),this.applicationRef=Pe(Wa)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function vP(e){return[{provide:xn,useFactory:e},{provide:ql,multi:!0,useFactory:()=>{let t=Pe(gP,{optional:!0});return()=>t.initialize()}},{provide:ql,multi:!0,useFactory:()=>{let t=Pe(CP);return()=>{t.initialize()}}},{provide:Jw,useFactory:yP}]}function yP(){let e=Pe(xn),t=Pe(ps);return i=>e.runOutsideAngular(()=>t.handleError(i))}function bP(e){let t=vP(()=>new xn(_P(e)));return qa([[],t])}function _P(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var CP=(()=>{let t=class t{constructor(){this.subscription=new li,this.initialized=!1,this.zone=Pe(xn),this.pendingTasks=Pe(Cu)}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(()=>{xn.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{xn.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function wP(){return typeof $localize<"u"&&$localize.locale||Jh}var Pm=new dt("",{providedIn:"root",factory:()=>Pe(Pm,Gt.Optional|Gt.SkipSelf)||wP()});var qE=new dt("");var Ah=null;function EP(e=[],t){return qo.create({name:t,providers:[{provide:sm,useValue:"platform"},{provide:qE,useValue:new Set([()=>Ah=null])},...e]})}function SP(e=[]){if(Ah)return Ah;let t=EP(e);return Ah=t,dP(),IP(t),t}function IP(e){e.get(ey,null)?.forEach(i=>i())}var bs=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=xP;let e=t;return e})();function xP(e){return DP(dr(),Pt(),(e&16)===16)}function DP(e,t,i){if(Jd(e)&&!i){let n=$a(e.index,t);return new Wl(n,n)}else if(e.type&47){let n=t[zr];return new Wl(n,t)}return null}var Dv=class{constructor(){}supports(t){return pE(t)}create(t){return new Mv(t)}},MP=(e,t)=>t,Mv=class{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||MP}forEachItem(t){let i;for(i=this._itHead;i!==null;i=i._next)t(i)}forEachOperation(t){let i=this._itHead,n=this._removalsHead,r=0,o=null;for(;i||n;){let s=!n||i&&i.currentIndex<UC(n,r,o)?i:n,a=UC(s,r,o),l=s.currentIndex;if(s===n)r--,n=n._nextRemoved;else if(i=i._next,s.previousIndex==null)r++;else{o||(o=[]);let p=a-r,h=l-r;if(p!=h){for(let w=0;w<p;w++){let g=w<o.length?o[w]:o[w]=0,S=g+w;h<=S&&S<p&&(o[w]=g+1)}let v=s.previousIndex;o[v]=h-p}}a!==l&&t(s,a,l)}}forEachPreviousItem(t){let i;for(i=this._previousItHead;i!==null;i=i._nextPrevious)t(i)}forEachAddedItem(t){let i;for(i=this._additionsHead;i!==null;i=i._nextAdded)t(i)}forEachMovedItem(t){let i;for(i=this._movesHead;i!==null;i=i._nextMoved)t(i)}forEachRemovedItem(t){let i;for(i=this._removalsHead;i!==null;i=i._nextRemoved)t(i)}forEachIdentityChange(t){let i;for(i=this._identityChangesHead;i!==null;i=i._nextIdentityChange)t(i)}diff(t){if(t==null&&(t=[]),!pE(t))throw new ct(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let i=this._itHead,n=!1,r,o,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)o=t[a],s=this._trackByFn(a,o),i===null||!Object.is(i.trackById,s)?(i=this._mismatch(i,o,s,a),n=!0):(n&&(i=this._verifyReinsertion(i,o,s,a)),Object.is(i.item,o)||this._addIdentityChange(i,o)),i=i._next}else r=0,sN(t,a=>{s=this._trackByFn(r,a),i===null||!Object.is(i.trackById,s)?(i=this._mismatch(i,a,s,r),n=!0):(n&&(i=this._verifyReinsertion(i,a,s,r)),Object.is(i.item,a)||this._addIdentityChange(i,a)),i=i._next,r++}),this.length=r;return this._truncate(i),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,i,n,r){let o;return t===null?o=this._itTail:(o=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),t!==null?(Object.is(t.item,i)||this._addIdentityChange(t,i),this._reinsertAfter(t,o,r)):(t=this._linkedRecords===null?null:this._linkedRecords.get(n,r),t!==null?(Object.is(t.item,i)||this._addIdentityChange(t,i),this._moveAfter(t,o,r)):t=this._addAfter(new Av(i,n),o,r)),t}_verifyReinsertion(t,i,n,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;t!==null;){let i=t._next;this._addToRemovals(this._unlink(t)),t=i}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,i,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let r=t._prevRemoved,o=t._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,i,n),this._addToMoves(t,n),t}_moveAfter(t,i,n){return this._unlink(t),this._insertAfter(t,i,n),this._addToMoves(t,n),t}_addAfter(t,i,n){return this._insertAfter(t,i,n),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,i,n){let r=i===null?this._itHead:i._next;return t._next=r,t._prev=i,r===null?this._itTail=t:r._prev=t,i===null?this._itHead=t:i._next=t,this._linkedRecords===null&&(this._linkedRecords=new Xh),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let i=t._prev,n=t._next;return i===null?this._itHead=n:i._next=n,n===null?this._itTail=i:n._prev=i,t}_addToMoves(t,i){return t.previousIndex===i||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Xh),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,i){return t.item=i,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Av=class{constructor(t,i){this.item=t,this.trackById=i,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Tv=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,i){let n;for(n=this._head;n!==null;n=n._nextDup)if((i===null||i<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){let i=t._prevDup,n=t._nextDup;return i===null?this._head=n:i._nextDup=n,n===null?this._tail=i:n._prevDup=i,this._head===null}},Xh=class{constructor(){this.map=new Map}put(t){let i=t.trackById,n=this.map.get(i);n||(n=new Tv,this.map.set(i,n)),n.add(t)}get(t,i){let n=t,r=this.map.get(n);return r?r.get(t,i):null}remove(t){let i=t.trackById;return this.map.get(i).remove(t)&&this.map.delete(i),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function UC(e,t,i){let n=e.previousIndex;if(n===null)return n;let r=0;return i&&n<i.length&&(r=i[n]),n+t+r}var Fv=class{constructor(){}supports(t){return t instanceof Map||xy(t)}create(){return new Nv}},Nv=class{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 this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(t){let i;for(i=this._mapHead;i!==null;i=i._next)t(i)}forEachPreviousItem(t){let i;for(i=this._previousMapHead;i!==null;i=i._nextPrevious)t(i)}forEachChangedItem(t){let i;for(i=this._changesHead;i!==null;i=i._nextChanged)t(i)}forEachAddedItem(t){let i;for(i=this._additionsHead;i!==null;i=i._nextAdded)t(i)}forEachRemovedItem(t){let i;for(i=this._removalsHead;i!==null;i=i._nextRemoved)t(i)}diff(t){if(!t)t=new Map;else if(!(t instanceof Map||xy(t)))throw new ct(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let i=this._mapHead;if(this._appendAfter=null,this._forEach(t,(n,r)=>{if(i&&i.key===r)this._maybeAddToChanges(i,n),this._appendAfter=i,i=i._next;else{let o=this._getOrCreateRecordForKey(r,n);i=this._insertBeforeOrAppend(i,o)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let n=i;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,i){if(t){let n=t._prev;return i._next=t,i._prev=n,t._prev=i,n&&(n._next=i),t===this._mapHead&&(this._mapHead=i),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(t,i){if(this._records.has(t)){let r=this._records.get(t);this._maybeAddToChanges(r,i);let o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}let n=new Pv(t);return this._records.set(t,n),n.currentValue=i,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,i){Object.is(i,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=i,this._addToChanges(t))}_addToAdditions(t){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){this._changesHead===null?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,i){t instanceof Map?t.forEach(i):Object.keys(t).forEach(n=>i(t[n],n))}},Pv=class{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 qC(){return new Ny([new Dv])}var Ny=(()=>{let t=class t{constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||qC()),deps:[[t,new im,new Kd]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new ct(901,!1)}};t.\u0275prov=qe({token:t,providedIn:"root",factory:qC});let e=t;return e})();function $C(){return new Py([new Fv])}var Py=(()=>{let t=class t{constructor(n){this.factories=n}static create(n,r){if(r){let o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||$C()),deps:[[t,new im,new Kd]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r)return r;throw new ct(901,!1)}};t.\u0275prov=qe({token:t,providedIn:"root",factory:$C});let e=t;return e})();function $E(e){try{let{rootComponent:t,appProviders:i,platformProviders:n}=e,r=SP(n),o=[bP(),...i||[]],a=new Qh({providers:o,parent:r,debugName:"",runEnvironmentInitializers:!1}).injector,l=a.get(xn);return l.run(()=>{a.resolveInjectorInitializers();let p=a.get(ps,null),h;l.runOutsideAngular(()=>{h=l.onError.subscribe({next:g=>{p.handleError(g)}})});let v=()=>a.destroy(),w=r.get(qE);return w.add(v),a.onDestroy(()=>{h.unsubscribe(),w.delete(v)}),fP(p,l,()=>{let g=a.get(UE);return g.runInitializers(),g.donePromise.then(()=>{let S=a.get(Pm,Jh);YN(S||Jh);let I=a.get(Wa);return t!==void 0&&I.bootstrap(t),I})})})}catch(t){return Promise.reject(t)}}var HC=!1,AP=!1;function TP(){HC||(HC=!0,_T(),BN(),iP(),$N(),uN(),q4(),v4(),wF(),ZN())}function FP(e,t){return Fy(e)}function HE(){return qa([{provide:vh,useFactory:()=>{let e=!0;return Od()&&(e=!!Pe(Ql,{optional:!0})?.get(c5,null)),e&&Zl("NgHydration"),e}},{provide:ql,useValue:()=>{AP=!!Pe(IT,{optional:!0}),Od()&&Pe(vh)&&(NP(),TP())},multi:!0},{provide:f5,useFactory:()=>Od()&&Pe(vh)},{provide:Xl,useFactory:()=>{if(Od()&&Pe(vh)){let e=Pe(Wa),t=Pe(qo);return()=>{FP(e,t).then(()=>{l4(e)})}}return()=>{}},multi:!0}])}function NP(){let e=Xd(),t;for(let i of e.body.childNodes)if(i.nodeType===Node.COMMENT_NODE&&i.textContent?.trim()===yT){t=i;break}if(!t)throw new ct(-507,!1)}function Wn(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function sp(e,t=NaN){return!isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}function zE(e){let t=ja(e);if(!t)return null;let i=new du(t);return{get selector(){return i.selector},get type(){return i.componentType},get inputs(){return i.inputs},get outputs(){return i.outputs},get ngContentSelectors(){return i.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var JE=null;function ca(){return JE}function XE(e){JE??=e}var qm=class{};var Jn=new dt(""),$y=(()=>{let t=class t{historyGo(n){throw new Error("")}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=qe({token:t,factory:()=>Pe(PP),providedIn:"platform"});let e=t;return e})(),eS=new dt(""),PP=(()=>{let t=class t extends $y{constructor(){super(),this._doc=Pe(Jn),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ca().getBaseHref(this._doc)}onPopState(n){let r=ca().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=ca().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=qe({token:t,factory:()=>new t,providedIn:"platform"});let e=t;return e})();function Hy(e,t){if(e.length==0)return t;if(t.length==0)return e;let i=0;return e.endsWith("/")&&i++,t.startsWith("/")&&i++,i==2?e+t.substring(1):i==1?e+t:e+"/"+t}function GE(e){let t=e.match(/#|\?|$/),i=t&&t.index||e.length,n=i-(e[i-1]==="/"?1:0);return e.slice(0,n)+e.slice(i)}function aa(e){return e&&e[0]!=="?"?"?"+e:e}var ua=(()=>{let t=class t{historyGo(n){throw new Error("")}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=qe({token:t,factory:()=>Pe(zy),providedIn:"root"});let e=t;return e})(),tS=new dt(""),zy=(()=>{let t=class t extends ua{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??Pe(Jn).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Hy(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+aa(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,s){let a=this.prepareExternalUrl(o+aa(s));this._platformLocation.pushState(n,r,a)}replaceState(n,r,o,s){let a=this.prepareExternalUrl(o+aa(s));this._platformLocation.replaceState(n,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};t.\u0275fac=function(r){return new(r||t)(Ye($y),Ye(tS,8))},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),nS=(()=>{let t=class t extends ua{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],r!=null&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=Hy(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,s){let a=this.prepareExternalUrl(o+aa(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,r,a)}replaceState(n,r,o,s){let a=this.prepareExternalUrl(o+aa(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};t.\u0275fac=function(r){return new(r||t)(Ye($y),Ye(tS,8))},t.\u0275prov=qe({token:t,factory:t.\u0275fac});let e=t;return e})(),Eu=(()=>{let t=class t{constructor(n){this._subject=new ot,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=LP(GE(WE(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+aa(r))}normalize(n){return t.stripTrailingSlash(RP(this._basePath,WE(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+aa(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+aa(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}};t.normalizeQueryParams=aa,t.joinWithSlash=Hy,t.stripTrailingSlash=GE,t.\u0275fac=function(r){return new(r||t)(Ye(ua))},t.\u0275prov=qe({token:t,factory:()=>OP(),providedIn:"root"});let e=t;return e})();function OP(){return new Eu(Ye(ua))}function RP(e,t){if(!e||!t.startsWith(e))return t;let i=t.substring(e.length);return i===""||["/",";","?","#"].includes(i[0])?i:t}function WE(e){return e.replace(/\/index.html$/,"")}function LP(e){if(new RegExp("^(https?:)?//").test(e)){let[,i]=e.split(/\/\/[^\/]+/);return i}return e}var hr=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(hr||{}),Ln=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(Ln||{}),Kr=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(Kr||{}),Ya={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function kP(e){return ao(e)[ci.LocaleId]}function jP(e,t,i){let n=ao(e),r=[n[ci.DayPeriodsFormat],n[ci.DayPeriodsStandalone]],o=uo(r,t);return uo(o,i)}function VP(e,t,i){let n=ao(e),r=[n[ci.DaysFormat],n[ci.DaysStandalone]],o=uo(r,t);return uo(o,i)}function BP(e,t,i){let n=ao(e),r=[n[ci.MonthsFormat],n[ci.MonthsStandalone]],o=uo(r,t);return uo(o,i)}function UP(e,t){let n=ao(e)[ci.Eras];return uo(n,t)}function Om(e,t){let i=ao(e);return uo(i[ci.DateFormat],t)}function Rm(e,t){let i=ao(e);return uo(i[ci.TimeFormat],t)}function Lm(e,t){let n=ao(e)[ci.DateTimeFormat];return uo(n,t)}function Hm(e,t){let i=ao(e),n=i[ci.NumberSymbols][t];if(typeof n>"u"){if(t===Ya.CurrencyDecimal)return i[ci.NumberSymbols][Ya.Decimal];if(t===Ya.CurrencyGroup)return i[ci.NumberSymbols][Ya.Group]}return n}function iS(e){if(!e[ci.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[ci.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function qP(e){let t=ao(e);return iS(t),(t[ci.ExtraData][2]||[]).map(n=>typeof n=="string"?Oy(n):[Oy(n[0]),Oy(n[1])])}function $P(e,t,i){let n=ao(e);iS(n);let r=[n[ci.ExtraData][0],n[ci.ExtraData][1]],o=uo(r,t)||[];return uo(o,i)||[]}function uo(e,t){for(let i=t;i>-1;i--)if(typeof e[i]<"u")return e[i];throw new Error("Locale data API: locale data undefined")}function Oy(e){let[t,i]=e.split(":");return{hours:+t,minutes:+i}}var HP=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,km={},zP=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,la=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(la||{}),gn=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(gn||{}),mn=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(mn||{});function GP(e,t,i,n){let r=tO(e);t=sa(i,t)||t;let s=[],a;for(;t;)if(a=zP.exec(t),a){s=s.concat(a.slice(1));let h=s.pop();if(!h)break;t=h}else{s.push(t);break}let l=r.getTimezoneOffset();n&&(l=oS(n,l),r=eO(r,n,!0));let p="";return s.forEach(h=>{let v=JP(h);p+=v?v(r,i,l):h==="''"?"'":h.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),p}function $m(e,t,i){let n=new Date(0);return n.setFullYear(e,t,i),n.setHours(0,0,0),n}function sa(e,t){let i=kP(e);if(km[i]??={},km[i][t])return km[i][t];let n="";switch(t){case"shortDate":n=Om(e,Kr.Short);break;case"mediumDate":n=Om(e,Kr.Medium);break;case"longDate":n=Om(e,Kr.Long);break;case"fullDate":n=Om(e,Kr.Full);break;case"shortTime":n=Rm(e,Kr.Short);break;case"mediumTime":n=Rm(e,Kr.Medium);break;case"longTime":n=Rm(e,Kr.Long);break;case"fullTime":n=Rm(e,Kr.Full);break;case"short":let r=sa(e,"shortTime"),o=sa(e,"shortDate");n=jm(Lm(e,Kr.Short),[r,o]);break;case"medium":let s=sa(e,"mediumTime"),a=sa(e,"mediumDate");n=jm(Lm(e,Kr.Medium),[s,a]);break;case"long":let l=sa(e,"longTime"),p=sa(e,"longDate");n=jm(Lm(e,Kr.Long),[l,p]);break;case"full":let h=sa(e,"fullTime"),v=sa(e,"fullDate");n=jm(Lm(e,Kr.Full),[h,v]);break}return n&&(km[i][t]=n),n}function jm(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(i,n){return t!=null&&n in t?t[n]:i})),e}function Ho(e,t,i="-",n,r){let o="";(e<0||r&&e<=0)&&(r?e=-e+1:(e=-e,o=i));let s=String(e);for(;s.length<t;)s="0"+s;return n&&(s=s.slice(s.length-t)),o+s}function WP(e,t){return Ho(e,3).substring(0,t)}function wi(e,t,i=0,n=!1,r=!1){return function(o,s){let a=YP(e,o);if((i>0||a>-i)&&(a+=i),e===gn.Hours)a===0&&i===-12&&(a=12);else if(e===gn.FractionalSeconds)return WP(a,t);let l=Hm(s,Ya.MinusSign);return Ho(a,t,l,n,r)}}function YP(e,t){switch(e){case gn.FullYear:return t.getFullYear();case gn.Month:return t.getMonth();case gn.Date:return t.getDate();case gn.Hours:return t.getHours();case gn.Minutes:return t.getMinutes();case gn.Seconds:return t.getSeconds();case gn.FractionalSeconds:return t.getMilliseconds();case gn.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function $n(e,t,i=hr.Format,n=!1){return function(r,o){return KP(r,o,e,t,i,n)}}function KP(e,t,i,n,r,o){switch(i){case mn.Months:return BP(t,r,n)[e.getMonth()];case mn.Days:return VP(t,r,n)[e.getDay()];case mn.DayPeriods:let s=e.getHours(),a=e.getMinutes();if(o){let p=qP(t),h=$P(t,r,n),v=p.findIndex(w=>{if(Array.isArray(w)){let[g,S]=w,I=s>=g.hours&&a>=g.minutes,A=s<S.hours||s===S.hours&&a<S.minutes;if(g.hours<S.hours){if(I&&A)return!0}else if(I||A)return!0}else if(w.hours===s&&w.minutes===a)return!0;return!1});if(v!==-1)return h[v]}return jP(t,r,n)[s<12?0:1];case mn.Eras:return UP(t,n)[e.getFullYear()<=0?0:1];default:let l=i;throw new Error(`unexpected translation type ${l}`)}}function Vm(e){return function(t,i,n){let r=-1*n,o=Hm(i,Ya.MinusSign),s=r>0?Math.floor(r/60):Math.ceil(r/60);switch(e){case la.Short:return(r>=0?"+":"")+Ho(s,2,o)+Ho(Math.abs(r%60),2,o);case la.ShortGMT:return"GMT"+(r>=0?"+":"")+Ho(s,1,o);case la.Long:return"GMT"+(r>=0?"+":"")+Ho(s,2,o)+":"+Ho(Math.abs(r%60),2,o);case la.Extended:return n===0?"Z":(r>=0?"+":"")+Ho(s,2,o)+":"+Ho(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${e}"`)}}}var QP=0,Um=4;function ZP(e){let t=$m(e,QP,1).getDay();return $m(e,0,1+(t<=Um?Um:Um+7)-t)}function rS(e){let t=e.getDay(),i=t===0?-3:Um-t;return $m(e.getFullYear(),e.getMonth(),e.getDate()+i)}function Ry(e,t=!1){return function(i,n){let r;if(t){let o=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,s=i.getDate();r=1+Math.floor((s+o)/7)}else{let o=rS(i),s=ZP(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return Ho(r,e,Hm(n,Ya.MinusSign))}}function Bm(e,t=!1){return function(i,n){let o=rS(i).getFullYear();return Ho(o,e,Hm(n,Ya.MinusSign),t)}}var Ly={};function JP(e){if(Ly[e])return Ly[e];let t;switch(e){case"G":case"GG":case"GGG":t=$n(mn.Eras,Ln.Abbreviated);break;case"GGGG":t=$n(mn.Eras,Ln.Wide);break;case"GGGGG":t=$n(mn.Eras,Ln.Narrow);break;case"y":t=wi(gn.FullYear,1,0,!1,!0);break;case"yy":t=wi(gn.FullYear,2,0,!0,!0);break;case"yyy":t=wi(gn.FullYear,3,0,!1,!0);break;case"yyyy":t=wi(gn.FullYear,4,0,!1,!0);break;case"Y":t=Bm(1);break;case"YY":t=Bm(2,!0);break;case"YYY":t=Bm(3);break;case"YYYY":t=Bm(4);break;case"M":case"L":t=wi(gn.Month,1,1);break;case"MM":case"LL":t=wi(gn.Month,2,1);break;case"MMM":t=$n(mn.Months,Ln.Abbreviated);break;case"MMMM":t=$n(mn.Months,Ln.Wide);break;case"MMMMM":t=$n(mn.Months,Ln.Narrow);break;case"LLL":t=$n(mn.Months,Ln.Abbreviated,hr.Standalone);break;case"LLLL":t=$n(mn.Months,Ln.Wide,hr.Standalone);break;case"LLLLL":t=$n(mn.Months,Ln.Narrow,hr.Standalone);break;case"w":t=Ry(1);break;case"ww":t=Ry(2);break;case"W":t=Ry(1,!0);break;case"d":t=wi(gn.Date,1);break;case"dd":t=wi(gn.Date,2);break;case"c":case"cc":t=wi(gn.Day,1);break;case"ccc":t=$n(mn.Days,Ln.Abbreviated,hr.Standalone);break;case"cccc":t=$n(mn.Days,Ln.Wide,hr.Standalone);break;case"ccccc":t=$n(mn.Days,Ln.Narrow,hr.Standalone);break;case"cccccc":t=$n(mn.Days,Ln.Short,hr.Standalone);break;case"E":case"EE":case"EEE":t=$n(mn.Days,Ln.Abbreviated);break;case"EEEE":t=$n(mn.Days,Ln.Wide);break;case"EEEEE":t=$n(mn.Days,Ln.Narrow);break;case"EEEEEE":t=$n(mn.Days,Ln.Short);break;case"a":case"aa":case"aaa":t=$n(mn.DayPeriods,Ln.Abbreviated);break;case"aaaa":t=$n(mn.DayPeriods,Ln.Wide);break;case"aaaaa":t=$n(mn.DayPeriods,Ln.Narrow);break;case"b":case"bb":case"bbb":t=$n(mn.DayPeriods,Ln.Abbreviated,hr.Standalone,!0);break;case"bbbb":t=$n(mn.DayPeriods,Ln.Wide,hr.Standalone,!0);break;case"bbbbb":t=$n(mn.DayPeriods,Ln.Narrow,hr.Standalone,!0);break;case"B":case"BB":case"BBB":t=$n(mn.DayPeriods,Ln.Abbreviated,hr.Format,!0);break;case"BBBB":t=$n(mn.DayPeriods,Ln.Wide,hr.Format,!0);break;case"BBBBB":t=$n(mn.DayPeriods,Ln.Narrow,hr.Format,!0);break;case"h":t=wi(gn.Hours,1,-12);break;case"hh":t=wi(gn.Hours,2,-12);break;case"H":t=wi(gn.Hours,1);break;case"HH":t=wi(gn.Hours,2);break;case"m":t=wi(gn.Minutes,1);break;case"mm":t=wi(gn.Minutes,2);break;case"s":t=wi(gn.Seconds,1);break;case"ss":t=wi(gn.Seconds,2);break;case"S":t=wi(gn.FractionalSeconds,1);break;case"SS":t=wi(gn.FractionalSeconds,2);break;case"SSS":t=wi(gn.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Vm(la.Short);break;case"ZZZZZ":t=Vm(la.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Vm(la.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Vm(la.Long);break;default:return null}return Ly[e]=t,t}function oS(e,t){e=e.replace(/:/g,"");let i=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(i)?t:i}function XP(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function eO(e,t,i){let n=i?-1:1,r=e.getTimezoneOffset(),o=oS(t,r);return XP(e,n*(o-r))}function tO(e){if(YE(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[r,o=1,s=1]=e.split("-").map(a=>+a);return $m(r,o-1,s)}let i=parseFloat(e);if(!isNaN(e-i))return new Date(i);let n;if(n=e.match(HP))return nO(n)}let t=new Date(e);if(!YE(t))throw new Error(`Unable to convert "${e}" into a date`);return t}function nO(e){let t=new Date(0),i=0,n=0,r=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(i=Number(e[9]+e[10]),n=Number(e[9]+e[11])),r.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-i,a=Number(e[5]||0)-n,l=Number(e[6]||0),p=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return o.call(t,s,a,l,p),t}function YE(e){return e instanceof Date&&!isNaN(e.valueOf())}function zm(e,t){t=encodeURIComponent(t);for(let i of e.split(";")){let n=i.indexOf("="),[r,o]=n==-1?[i,""]:[i.slice(0,n),i.slice(n+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}var ky=/\s+/,KE=[],kt=(()=>{let t=class t{constructor(n,r){this._ngEl=n,this._renderer=r,this.initialClasses=KE,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(ky):KE}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(ky):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(ky).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};t.\u0275fac=function(r){return new(r||t)(ee(Rn),ee(Gi))},t.\u0275dir=Bt({type:t,selectors:[["","ngClass",""]],inputs:{klass:[xt.None,"class","klass"],ngClass:"ngClass"},standalone:!0});let e=t;return e})();var jy=class{constructor(t,i,n,r){this.$implicit=t,this.ngForOf=i,this.index=n,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Cn=(()=>{let t=class t{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,s,a)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new jy(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)r.remove(s===null?void 0:s);else if(s!==null){let l=r.get(s);r.move(l,a),QE(l,o)}});for(let o=0,s=r.length;o<s;o++){let l=r.get(o).context;l.index=o,l.count=s,l.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{let s=r.get(o.currentIndex);QE(s,o)})}static ngTemplateContextGuard(n,r){return!0}};t.\u0275fac=function(r){return new(r||t)(ee(oa),ee(ia),ee(Ny))},t.\u0275dir=Bt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let e=t;return e})();function QE(e,t){e.context.$implicit=t.item}var st=(()=>{let t=class t{constructor(n,r){this._viewContainer=n,this._context=new Vy,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){ZE("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){ZE("ngIfElse",n),this._elseTemplateRef=n,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(n,r){return!0}};t.\u0275fac=function(r){return new(r||t)(ee(oa),ee(ia))},t.\u0275dir=Bt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let e=t;return e})(),Vy=class{constructor(){this.$implicit=null,this.ngIf=null}};function ZE(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${ur(t)}'.`)}var Su=(()=>{let t=class t{constructor(n,r,o){this._ngEl=n,this._differs=r,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,r){let[o,s]=n.split("."),a=o.indexOf("-")===-1?void 0:fs.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,s?`${r}${s}`:r,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(n){n.forEachRemovedItem(r=>this._setStyle(r.key,null)),n.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}};t.\u0275fac=function(r){return new(r||t)(ee(Rn),ee(Py),ee(Gi))},t.\u0275dir=Bt({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let e=t;return e})(),Iu=(()=>{let t=class t{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):!1,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}};t.\u0275fac=function(r){return new(r||t)(ee(oa))},t.\u0275dir=Bt({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[qn]});let e=t;return e})();function iO(e,t){return new ct(2100,!1)}var rO="mediumDate",oO=new dt(""),sO=new dt(""),sS=(()=>{let t=class t{constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,s){if(n==null||n===""||n!==n)return null;try{let a=r??this.defaultOptions?.dateFormat??rO,l=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return GP(n,a,s||this.locale,l)}catch(a){throw iO(t,a.message)}}};t.\u0275fac=function(r){return new(r||t)(ee(Pm,16),ee(oO,24),ee(sO,24))},t.\u0275pipe=om({name:"date",type:t,pure:!0,standalone:!0});let e=t;return e})();var rt=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=Qn({type:t}),t.\u0275inj=Kn({});let e=t;return e})(),Gy="browser",aO="server";function zo(e){return e===Gy}function ec(e){return e===aO}var aS=(()=>{let t=class t{};t.\u0275prov=qe({token:t,providedIn:"root",factory:()=>zo(Pe(_i))?new By(Pe(Jn),window):new Uy});let e=t;return e})(),By=class{constructor(t,i){this.document=t,this.window=i,this.offset=()=>[0,0]}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(t){this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){let i=lO(this.document,t);i&&(this.scrollToElement(i),i.focus())}setHistoryScrollRestoration(t){this.window.history.scrollRestoration=t}scrollToElement(t){let i=t.getBoundingClientRect(),n=i.left+this.window.pageXOffset,r=i.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1])}};function lO(e,t){let i=e.getElementById(t)||e.getElementsByName(t)[0];if(i)return i;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;for(;r;){let o=r.shadowRoot;if(o){let s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}r=n.nextNode()}}return null}var Uy=class{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}},wu=class{};var lp=class{},cp=class{},_s=class e{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
+`).forEach(i=>{let n=i.indexOf(":");if(n>0){let r=i.slice(0,n),o=r.toLowerCase(),s=i.slice(n+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((i,n)=>{this.setHeaderEntries(n,i)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([i,n])=>{this.setHeaderEntries(i,n)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let i=this.headers.get(t.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,i){return this.clone({name:t,value:i,op:"a"})}set(t,i){return this.clone({name:t,value:i,op:"s"})}delete(t,i){return this.clone({name:t,value:i,op:"d"})}maybeSetNormalizedName(t,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(i=>{this.headers.set(i,t.headers.get(i)),this.normalizedNames.set(i,t.normalizedNames.get(i))})}clone(t){let i=new e;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([t]),i}applyUpdate(t){let i=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(t.name,i);let r=(t.op==="a"?this.headers.get(i):void 0)||[];r.push(...n),this.headers.set(i,r);break;case"d":let o=t.value;if(!o)this.headers.delete(i),this.normalizedNames.delete(i);else{let s=this.headers.get(i);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,s)}break}}setHeaderEntries(t,i){let n=(Array.isArray(i)?i:[i]).map(o=>o.toString()),r=t.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(t,r)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>t(this.normalizedNames.get(i),this.headers.get(i)))}};var Ky=class{encodeKey(t){return lS(t)}encodeValue(t){return lS(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function uO(e,t){let i=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[s,a]=o==-1?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],l=i.get(s)||[];l.push(a),i.set(s,l)}),i}var dO=/%(\d[a-f0-9])/gi,pO={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function lS(e){return encodeURIComponent(e).replace(dO,(t,i)=>pO[i]??t)}function Gm(e){return`${e}`}var Qa=class e{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Ky,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=uO(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(i=>{let n=t.fromObject[i],r=Array.isArray(n)?n.map(Gm):[Gm(n)];this.map.set(i,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let i=this.map.get(t);return i?i[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,i){return this.clone({param:t,value:i,op:"a"})}appendAll(t){let i=[];return Object.keys(t).forEach(n=>{let r=t[n];Array.isArray(r)?r.forEach(o=>{i.push({param:n,value:o,op:"a"})}):i.push({param:n,value:r,op:"a"})}),this.clone(i)}set(t,i){return this.clone({param:t,value:i,op:"s"})}delete(t,i){return this.clone({param:t,value:i,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let i=this.encoder.encodeKey(t);return this.map.get(t).map(n=>i+"="+this.encoder.encodeValue(n)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let i=new e({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(t),i}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let i=(t.op==="a"?this.map.get(t.param):void 0)||[];i.push(Gm(t.value)),this.map.set(t.param,i);break;case"d":if(t.value!==void 0){let n=this.map.get(t.param)||[],r=n.indexOf(Gm(t.value));r!==-1&&n.splice(r,1),n.length>0?this.map.set(t.param,n):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var Qy=class{constructor(){this.map=new Map}set(t,i){return this.map.set(t,i),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function fO(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function cS(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function uS(e){return typeof Blob<"u"&&e instanceof Blob}function dS(e){return typeof FormData<"u"&&e instanceof FormData}function hO(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var ap=class e{constructor(t,i,n,r){this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let o;if(fO(this.method)||r?(this.body=n!==void 0?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new _s,this.context??=new Qy,!this.params)this.params=new Qa,this.urlWithParams=i;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=i;else{let a=i.indexOf("?"),l=a===-1?"?":a<i.length-1?"&":"";this.urlWithParams=i+l+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||cS(this.body)||uS(this.body)||dS(this.body)||hO(this.body)?this.body:this.body instanceof Qa?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||dS(this.body)?null:uS(this.body)?this.body.type||null:cS(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof Qa?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(t={}){let i=t.method||this.method,n=t.url||this.url,r=t.responseType||this.responseType,o=t.transferCache??this.transferCache,s=t.body!==void 0?t.body:this.body,a=t.withCredentials??this.withCredentials,l=t.reportProgress??this.reportProgress,p=t.headers||this.headers,h=t.params||this.params,v=t.context??this.context;return t.setHeaders!==void 0&&(p=Object.keys(t.setHeaders).reduce((w,g)=>w.set(g,t.setHeaders[g]),p)),t.setParams&&(h=Object.keys(t.setParams).reduce((w,g)=>w.set(g,t.setParams[g]),h)),new e(i,n,s,{params:h,headers:p,context:v,reportProgress:l,responseType:r,withCredentials:a,transferCache:o})}},Za=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Za||{}),up=class{constructor(t,i=dp.Ok,n="OK"){this.headers=t.headers||new _s,this.status=t.status!==void 0?t.status:i,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},Ym=class e extends up{constructor(t={}){super(t),this.type=Za.ResponseHeader}clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},tc=class e extends up{constructor(t={}){super(t),this.type=Za.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Ka=class extends up{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},dp=function(e){return e[e.Continue=100]="Continue",e[e.SwitchingProtocols=101]="SwitchingProtocols",e[e.Processing=102]="Processing",e[e.EarlyHints=103]="EarlyHints",e[e.Ok=200]="Ok",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MultiStatus=207]="MultiStatus",e[e.AlreadyReported=208]="AlreadyReported",e[e.ImUsed=226]="ImUsed",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.Unused=306]="Unused",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.LengthRequired=411]="LengthRequired",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.UriTooLong=414]="UriTooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.ImATeapot=418]="ImATeapot",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.UnprocessableEntity=422]="UnprocessableEntity",e[e.Locked=423]="Locked",e[e.FailedDependency=424]="FailedDependency",e[e.TooEarly=425]="TooEarly",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.PreconditionRequired=428]="PreconditionRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",e[e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HttpVersionNotSupported=505]="HttpVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.LoopDetected=508]="LoopDetected",e[e.NotExtended=510]="NotExtended",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",e}(dp||{});function Wy(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var ui=(()=>{let t=class t{constructor(n){this.handler=n}request(n,r,o={}){let s;if(n instanceof ap)s=n;else{let p;o.headers instanceof _s?p=o.headers:p=new _s(o.headers);let h;o.params&&(o.params instanceof Qa?h=o.params:h=new Qa({fromObject:o.params})),s=new ap(n,r,o.body!==void 0?o.body:null,{headers:p,context:o.context,params:h,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=mt(s).pipe(Xs(p=>this.handler.handle(p)));if(n instanceof ap||o.observe==="events")return a;let l=a.pipe(Sr(p=>p instanceof tc));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(ut(p=>{if(p.body!==null&&!(p.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return p.body}));case"blob":return l.pipe(ut(p=>{if(p.body!==null&&!(p.body instanceof Blob))throw new Error("Response is not a Blob.");return p.body}));case"text":return l.pipe(ut(p=>{if(p.body!==null&&typeof p.body!="string")throw new Error("Response is not a string.");return p.body}));case"json":default:return l.pipe(ut(p=>p.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new Qa().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Wy(o,r))}post(n,r,o={}){return this.request("POST",n,Wy(o,r))}put(n,r,o={}){return this.request("PUT",n,Wy(o,r))}};t.\u0275fac=function(r){return new(r||t)(Ye(lp))},t.\u0275prov=qe({token:t,factory:t.\u0275fac});let e=t;return e})(),mO=/^\)\]\}',?\n/,gO="X-Request-URL";function pS(e){if(e.url)return e.url;let t=gO.toLocaleLowerCase();return e.headers.get(t)}var Yy=(()=>{let t=class t{constructor(){this.fetchImpl=Pe(Zy,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=Pe(xn)}handle(n){return new Zt(r=>{let o=new AbortController;return this.doRequest(n,o.signal,r).then(Jy,s=>r.error(new Ka({error:s}))),()=>o.abort()})}doRequest(n,r,o){return Uc(this,null,function*(){let s=this.createRequestInit(n),a;try{let S=this.fetchImpl(n.urlWithParams,ze({signal:r},s));vO(S),o.next({type:Za.Sent}),a=yield S}catch(S){o.error(new Ka({error:S,status:S.status??0,statusText:S.statusText,url:n.urlWithParams,headers:S.headers}));return}let l=new _s(a.headers),p=a.statusText,h=pS(a)??n.urlWithParams,v=a.status,w=null;if(n.reportProgress&&o.next(new Ym({headers:l,status:v,statusText:p,url:h})),a.body){let S=a.headers.get("content-length"),I=[],A=a.body.getReader(),x=0,P,U,q=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Uc(this,null,function*(){for(;;){let{done:J,value:le}=yield A.read();if(J)break;if(I.push(le),x+=le.length,n.reportProgress){U=n.responseType==="text"?(U??"")+(P??=new TextDecoder).decode(le,{stream:!0}):void 0;let Y=()=>o.next({type:Za.DownloadProgress,total:S?+S:void 0,loaded:x,partialText:U});q?q.run(Y):Y()}}}));let Q=this.concatChunks(I,x);try{let J=a.headers.get("Content-Type")??"";w=this.parseBody(n,Q,J)}catch(J){o.error(new Ka({error:J,headers:new _s(a.headers),status:a.status,statusText:a.statusText,url:pS(a)??n.urlWithParams}));return}}v===0&&(v=w?dp.Ok:0),v>=200&&v<300?(o.next(new tc({body:w,headers:l,status:v,statusText:p,url:h})),o.complete()):o.error(new Ka({error:w,headers:l,status:v,statusText:p,url:h}))})}parseBody(n,r,o){switch(n.responseType){case"json":let s=new TextDecoder().decode(r).replace(mO,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((s,a)=>r[s]=a.join(",")),r.Accept??="application/json, text/plain, */*",!r["Content-Type"]){let s=n.detectContentTypeHeader();s!==null&&(r["Content-Type"]=s)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o}}concatChunks(n,r){let o=new Uint8Array(r),s=0;for(let a of n)o.set(a,s),s+=a.length;return o}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=qe({token:t,factory:t.\u0275fac});let e=t;return e})(),Zy=class{};function Jy(){}function vO(e){e.then(Jy,Jy)}function yO(e,t){return t(e)}function bO(e,t,i){return(n,r)=>Bo(i,()=>t(n,o=>e(o,r)))}var Xy=new dt(""),wS=new dt(""),ES=new dt("");var fS=(()=>{let t=class t extends lp{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=Pe(Cu);let o=Pe(ES,{optional:!0});this.backend=o??n}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(Xy),...this.injector.get(wS,[])]));this.chain=o.reduceRight((s,a)=>bO(s,a,this.injector),yO)}let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(jl(()=>this.pendingTasks.remove(r)))}};t.\u0275fac=function(r){return new(r||t)(Ye(cp),Ye(Xi))},t.\u0275prov=qe({token:t,factory:t.\u0275fac});let e=t;return e})();var _O=/^\)\]\}',?\n/;function CO(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var hS=(()=>{let t=class t{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new ct(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?Bn(r.\u0275loadImpl()):mt(null)).pipe(Ir(()=>new Zt(s=>{let a=r.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((A,x)=>a.setRequestHeader(A,x.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let A=n.detectContentTypeHeader();A!==null&&a.setRequestHeader("Content-Type",A)}if(n.responseType){let A=n.responseType.toLowerCase();a.responseType=A!=="json"?A:"text"}let l=n.serializeBody(),p=null,h=()=>{if(p!==null)return p;let A=a.statusText||"OK",x=new _s(a.getAllResponseHeaders()),P=CO(a)||n.url;return p=new Ym({headers:x,status:a.status,statusText:A,url:P}),p},v=()=>{let{headers:A,status:x,statusText:P,url:U}=h(),q=null;x!==dp.NoContent&&(q=typeof a.response>"u"?a.responseText:a.response),x===0&&(x=q?dp.Ok:0);let Q=x>=200&&x<300;if(n.responseType==="json"&&typeof q=="string"){let J=q;q=q.replace(_O,"");try{q=q!==""?JSON.parse(q):null}catch(le){q=J,Q&&(Q=!1,q={error:le,text:q})}}Q?(s.next(new tc({body:q,headers:A,status:x,statusText:P,url:U||void 0})),s.complete()):s.error(new Ka({error:q,headers:A,status:x,statusText:P,url:U||void 0}))},w=A=>{let{url:x}=h(),P=new Ka({error:A,status:a.status||0,statusText:a.statusText||"Unknown Error",url:x||void 0});s.error(P)},g=!1,S=A=>{g||(s.next(h()),g=!0);let x={type:Za.DownloadProgress,loaded:A.loaded};A.lengthComputable&&(x.total=A.total),n.responseType==="text"&&a.responseText&&(x.partialText=a.responseText),s.next(x)},I=A=>{let x={type:Za.UploadProgress,loaded:A.loaded};A.lengthComputable&&(x.total=A.total),s.next(x)};return a.addEventListener("load",v),a.addEventListener("error",w),a.addEventListener("timeout",w),a.addEventListener("abort",w),n.reportProgress&&(a.addEventListener("progress",S),l!==null&&a.upload&&a.upload.addEventListener("progress",I)),a.send(l),s.next({type:Za.Sent}),()=>{a.removeEventListener("error",w),a.removeEventListener("abort",w),a.removeEventListener("load",v),a.removeEventListener("timeout",w),n.reportProgress&&(a.removeEventListener("progress",S),l!==null&&a.upload&&a.upload.removeEventListener("progress",I)),a.readyState!==a.DONE&&a.abort()}})))}};t.\u0275fac=function(r){return new(r||t)(Ye(wu))},t.\u0275prov=qe({token:t,factory:t.\u0275fac});let e=t;return e})(),SS=new dt(""),wO="XSRF-TOKEN",EO=new dt("",{providedIn:"root",factory:()=>wO}),SO="X-XSRF-TOKEN",IO=new dt("",{providedIn:"root",factory:()=>SO}),Km=class{},xO=(()=>{let t=class t{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=zm(n,this.cookieName),this.lastCookieString=n),this.lastToken}};t.\u0275fac=function(r){return new(r||t)(Ye(Jn),Ye(_i),Ye(EO))},t.\u0275prov=qe({token:t,factory:t.\u0275fac});let e=t;return e})();function DO(e,t){let i=e.url.toLowerCase();if(!Pe(SS)||e.method==="GET"||e.method==="HEAD"||i.startsWith("http://")||i.startsWith("https://"))return t(e);let n=Pe(Km).getToken(),r=Pe(IO);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}var e2=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(e2||{});function IS(e,t){return{\u0275kind:e,\u0275providers:t}}function xS(...e){let t=[ui,hS,fS,{provide:lp,useExisting:fS},{provide:cp,useExisting:hS},{provide:Xy,useValue:DO,multi:!0},{provide:SS,useValue:!0},{provide:Km,useClass:xO}];for(let i of e)t.push(...i.\u0275providers);return qa(t)}function DS(e){return IS(e2.Interceptors,e.map(t=>({provide:Xy,useValue:t,multi:!0})))}function MS(){return IS(e2.Fetch,[Yy,{provide:cp,useExisting:Yy},{provide:ES,useExisting:Yy}])}var mS="b",gS="h",vS="s",yS="st",bS="u",_S="rt",Wm=new dt(""),MO=["GET","HEAD"];function AO(e,t){let v=Pe(Wm),{isCacheActive:i}=v,n=p_(v,["isCacheActive"]),{transferCache:r,method:o}=e;if(!i||o==="POST"&&!n.includePostRequests&&!r||o!=="POST"&&!MO.includes(o)||r===!1||n.filter?.(e)===!1)return t(e);let s=Pe(Ql),a=FO(e),l=s.get(a,null),p=n.includeHeaders;if(typeof r=="object"&&r.includeHeaders&&(p=r.includeHeaders),l){let{[mS]:w,[_S]:g,[gS]:S,[vS]:I,[yS]:A,[bS]:x}=l,P=w;switch(g){case"arraybuffer":P=new TextEncoder().encode(w).buffer;break;case"blob":P=new Blob([w]);break}let U=new _s(S);return mt(new tc({body:P,headers:U,status:I,statusText:A,url:x}))}let h=ec(Pe(_i));return t(e).pipe(Di(w=>{w instanceof tc&&h&&s.set(a,{[mS]:w.body,[gS]:TO(w.headers,p),[vS]:w.status,[yS]:w.statusText,[bS]:w.url||"",[_S]:e.responseType})}))}function TO(e,t){if(!t)return{};let i={};for(let n of t){let r=e.getAll(n);r!==null&&(i[n]=r)}return i}function CS(e){return[...e.keys()].sort().map(t=>`${t}=${e.getAll(t)}`).join("&")}function FO(e){let{params:t,method:i,responseType:n,url:r}=e,o=CS(t),s=e.serializeBody();s instanceof URLSearchParams?s=CS(s):typeof s!="string"&&(s="");let a=[i,n,r,s,o].join("|"),l=NO(a);return l}function NO(e){let t=0;for(let i of e)t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,t.toString()}function AS(e){return[{provide:Wm,useFactory:()=>(Zl("NgHttpTransferCache"),ze({isCacheActive:!0},e))},{provide:wS,useValue:AO,multi:!0,deps:[Ql,Wm]},{provide:Xl,multi:!0,useFactory:()=>{let t=Pe(Wa),i=Pe(Wm);return()=>{Fy(t).then(()=>{i.isCacheActive=!1})}}}]}var i2=class extends qm{constructor(){super(...arguments),this.supportsDOMEvents=!0}},r2=class e extends i2{static makeCurrent(){XE(new e)}onAndCancel(t,i,n){return t.addEventListener(i,n),()=>{t.removeEventListener(i,n)}}dispatchEvent(t,i){t.dispatchEvent(i)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,i){return i=i||this.getDefaultDocument(),i.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,i){return i==="window"?window:i==="document"?t:i==="body"?t.body:null}getBaseHref(t){let i=PO();return i==null?null:OO(i)}resetBaseElement(){pp=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return zm(document.cookie,t)}},pp=null;function PO(){return pp=pp||document.querySelector("base"),pp?pp.getAttribute("href"):null}function OO(e){return new URL(e,document.baseURI).pathname}var RO=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=qe({token:t,factory:t.\u0275fac});let e=t;return e})(),o2=new dt(""),PS=(()=>{let t=class t{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(s=>s.supports(n)),!r)throw new ct(5101,!1);return this._eventNameToPlugin.set(n,r),r}};t.\u0275fac=function(r){return new(r||t)(Ye(o2),Ye(xn))},t.\u0275prov=qe({token:t,factory:t.\u0275fac});let e=t;return e})(),Qm=class{constructor(t){this._doc=t}},t2="ng-app-id",OS=(()=>{let t=class t{constructor(n,r,o,s={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=ec(s),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${t2}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=r,s.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let o=this.styleNodesInDOM,s=o?.get(r);if(s?.parentNode===n)return o.delete(r),s.removeAttribute(t2),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(t2,this.appId),n.appendChild(a),a}}addStyleToHost(n,r){let o=this.getStyleElement(n,r),s=this.styleRef,a=s.get(r)?.elements;a?a.push(o):s.set(r,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};t.\u0275fac=function(r){return new(r||t)(Ye(Jn),Ye(pm),Ye(ty,8),Ye(_i))},t.\u0275prov=qe({token:t,factory:t.\u0275fac});let e=t;return e})(),n2={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/"},l2=/%COMP%/g,RS="%COMP%",LO=`_nghost-${RS}`,kO=`_ngcontent-${RS}`,jO=!0,VO=new dt("",{providedIn:"root",factory:()=>jO});function BO(e){return kO.replace(l2,e)}function UO(e){return LO.replace(l2,e)}function LS(e,t){return t.map(i=>i.replace(l2,e))}var TS=(()=>{let t=class t{constructor(n,r,o,s,a,l,p,h=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=p,this.nonce=h,this.rendererByCompId=new Map,this.platformIsServer=ec(l),this.defaultRenderer=new fp(n,a,p,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===ds.ShadowDom&&(r=An(ze({},r),{encapsulation:ds.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof Zm?o.applyToHost(n):o instanceof hp&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,s=o.get(r.id);if(!s){let a=this.doc,l=this.ngZone,p=this.eventManager,h=this.sharedStylesHost,v=this.removeStylesOnCompDestroy,w=this.platformIsServer;switch(r.encapsulation){case ds.Emulated:s=new Zm(p,h,r,this.appId,v,a,l,w);break;case ds.ShadowDom:return new s2(p,h,n,r,a,l,this.nonce,w);default:s=new hp(p,h,r,v,a,l,w);break}o.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(r){return new(r||t)(Ye(PS),Ye(OS),Ye(pm),Ye(VO),Ye(Jn),Ye(_i),Ye(xn),Ye(ty))},t.\u0275prov=qe({token:t,factory:t.\u0275fac});let e=t;return e})(),fp=class{constructor(t,i,n,r){this.eventManager=t,this.doc=i,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,i){return i?this.doc.createElementNS(n2[i]||i,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,i){(FS(t)?t.content:t).appendChild(i)}insertBefore(t,i,n){t&&(FS(t)?t.content:t).insertBefore(i,n)}removeChild(t,i){t&&t.removeChild(i)}selectRootElement(t,i){let n=typeof t=="string"?this.doc.querySelector(t):t;if(!n)throw new ct(-5104,!1);return i||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,i,n,r){if(r){i=r+":"+i;let o=n2[r];o?t.setAttributeNS(o,i,n):t.setAttribute(i,n)}else t.setAttribute(i,n)}removeAttribute(t,i,n){if(n){let r=n2[n];r?t.removeAttributeNS(r,i):t.removeAttribute(`${n}:${i}`)}else t.removeAttribute(i)}addClass(t,i){t.classList.add(i)}removeClass(t,i){t.classList.remove(i)}setStyle(t,i,n,r){r&(fs.DashCase|fs.Important)?t.style.setProperty(i,n,r&fs.Important?"important":""):t.style[i]=n}removeStyle(t,i,n){n&fs.DashCase?t.style.removeProperty(i):t.style[i]=""}setProperty(t,i,n){t!=null&&(t[i]=n)}setValue(t,i){t.nodeValue=i}listen(t,i,n){if(typeof t=="string"&&(t=ca().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${i}`);return this.eventManager.addEventListener(t,i,this.decoratePreventDefault(n))}decoratePreventDefault(t){return i=>{if(i==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(i)):t(i))===!1&&i.preventDefault()}}};function FS(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var s2=class extends fp{constructor(t,i,n,r,o,s,a,l){super(t,o,s,l),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let p=LS(r.id,r.styles);for(let h of p){let v=document.createElement("style");a&&v.setAttribute("nonce",a),v.textContent=h,this.shadowRoot.appendChild(v)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,i){return super.appendChild(this.nodeOrShadowRoot(t),i)}insertBefore(t,i,n){return super.insertBefore(this.nodeOrShadowRoot(t),i,n)}removeChild(t,i){return super.removeChild(this.nodeOrShadowRoot(t),i)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},hp=class extends fp{constructor(t,i,n,r,o,s,a,l){super(t,o,s,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=l?LS(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Zm=class extends hp{constructor(t,i,n,r,o,s,a,l){let p=r+"-"+n.id;super(t,i,n,o,s,a,l,p),this.contentAttr=BO(p),this.hostAttr=UO(p)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,i){let n=super.createElement(t,i);return super.setAttribute(n,this.contentAttr,""),n}},qO=(()=>{let t=class t extends Qm{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}};t.\u0275fac=function(r){return new(r||t)(Ye(Jn))},t.\u0275prov=qe({token:t,factory:t.\u0275fac});let e=t;return e})(),NS=["alt","control","meta","shift"],$O={"\b":"Backspace","	":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},HO={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},zO=(()=>{let t=class t extends Qm{constructor(n){super(n)}supports(n){return t.parseEventName(n)!=null}addEventListener(n,r,o){let s=t.parseEventName(r),a=t.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ca().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let s=t._normalizeKey(r.pop()),a="",l=r.indexOf("code");if(l>-1&&(r.splice(l,1),a="code."),NS.forEach(h=>{let v=r.indexOf(h);v>-1&&(r.splice(v,1),a+=h+".")}),a+=s,r.length!=0||s.length===0)return null;let p={};return p.domEventName=o,p.fullKey=a,p}static matchEventFullKeyCode(n,r){let o=$O[n.key]||n.key,s="";return r.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),NS.forEach(a=>{if(a!==o){let l=HO[a];l(n)&&(s+=a+".")}}),s+=o,s===r)}static eventCallback(n,r,o){return s=>{t.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>r(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};t.\u0275fac=function(r){return new(r||t)(Ye(Jn))},t.\u0275prov=qe({token:t,factory:t.\u0275fac});let e=t;return e})();function kS(e,t){return $E(ze({rootComponent:e},GO(t)))}function GO(e){return{appProviders:[...ZO,...e?.providers??[]],platformProviders:QO}}function WO(){r2.makeCurrent()}function YO(){return new ps}function KO(){return o5(document),document}var QO=[{provide:_i,useValue:Gy},{provide:ey,useValue:WO,multi:!0},{provide:Jn,useFactory:KO,deps:[]}];var ZO=[{provide:sm,useValue:"root"},{provide:ps,useFactory:YO,deps:[]},{provide:o2,useClass:qO,multi:!0,deps:[Jn,xn,_i]},{provide:o2,useClass:zO,multi:!0,deps:[Jn]},TS,OS,PS,{provide:Hd,useExisting:TS},{provide:wu,useClass:RO,deps:[]},[]];var jS=(()=>{let t=class t{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};t.\u0275fac=function(r){return new(r||t)(Ye(Jn))},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var a2=function(e){return e[e.NoHttpTransferCache=0]="NoHttpTransferCache",e[e.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",e}(a2||{});function VS(...e){let t=[],i=new Set,n=i.has(a2.HttpTransferCacheOptions);for(let{\u0275providers:r,\u0275kind:o}of e)i.add(o),r.length&&t.push(r);return qa([[],HE(),i.has(a2.NoHttpTransferCache)||n?[]:AS({}),t])}var Ut="primary",Tp=Symbol("RouteTitle"),f2=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let i=this.params[t];return Array.isArray(i)?i[0]:i}return null}getAll(t){if(this.has(t)){let i=this.params[t];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function Tu(e){return new f2(e)}function XO(e,t,i){let n=i.path.split("/");if(n.length>e.length||i.pathMatch==="full"&&(t.hasChildren()||n.length<e.length))return null;let r={};for(let o=0;o<n.length;o++){let s=n[o],a=e[o];if(s.startsWith(":"))r[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,n.length),posParams:r}}function e6(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;++i)if(!ws(e[i],t[i]))return!1;return!0}function ws(e,t){let i=e?h2(e):void 0,n=t?h2(t):void 0;if(!i||!n||i.length!=n.length)return!1;let r;for(let o=0;o<i.length;o++)if(r=i[o],!YS(e[r],t[r]))return!1;return!0}function h2(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function YS(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;let i=[...e].sort(),n=[...t].sort();return i.every((r,o)=>n[o]===r)}else return e===t}function KS(e){return e.length>0?e[e.length-1]:null}function tl(e){return a1(e)?e:Jl(e)?Bn(Promise.resolve(e)):mt(e)}var t6={exact:ZS,subset:JS},QS={exact:n6,subset:i6,ignored:()=>!0};function BS(e,t,i){return t6[i.paths](e.root,t.root,i.matrixParams)&&QS[i.queryParams](e.queryParams,t.queryParams)&&!(i.fragment==="exact"&&e.fragment!==t.fragment)}function n6(e,t){return ws(e,t)}function ZS(e,t,i){if(!ic(e.segments,t.segments)||!eg(e.segments,t.segments,i)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let n in t.children)if(!e.children[n]||!ZS(e.children[n],t.children[n],i))return!1;return!0}function i6(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(i=>YS(e[i],t[i]))}function JS(e,t,i){return XS(e,t,t.segments,i)}function XS(e,t,i,n){if(e.segments.length>i.length){let r=e.segments.slice(0,i.length);return!(!ic(r,i)||t.hasChildren()||!eg(r,i,n))}else if(e.segments.length===i.length){if(!ic(e.segments,i)||!eg(e.segments,i,n))return!1;for(let r in t.children)if(!e.children[r]||!JS(e.children[r],t.children[r],n))return!1;return!0}else{let r=i.slice(0,e.segments.length),o=i.slice(e.segments.length);return!ic(e.segments,r)||!eg(e.segments,r,n)||!e.children[Ut]?!1:XS(e.children[Ut],t,o,n)}}function eg(e,t,i){return t.every((n,r)=>QS[i](e[r].parameters,n.parameters))}var Ja=class{constructor(t=new wn([],{}),i={},n=null){this.root=t,this.queryParams=i,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Tu(this.queryParams),this._queryParamMap}toString(){return s6.serialize(this)}},wn=class{constructor(t,i){this.segments=t,this.children=i,this.parent=null,Object.values(i).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return tg(this)}},nc=class{constructor(t,i){this.path=t,this.parameters=i}get parameterMap(){return this._parameterMap??=Tu(this.parameters),this._parameterMap}toString(){return tI(this)}};function r6(e,t){return ic(e,t)&&e.every((i,n)=>ws(i.parameters,t[n].parameters))}function ic(e,t){return e.length!==t.length?!1:e.every((i,n)=>i.path===t[n].path)}function o6(e,t){let i=[];return Object.entries(e.children).forEach(([n,r])=>{n===Ut&&(i=i.concat(t(r,n)))}),Object.entries(e.children).forEach(([n,r])=>{n!==Ut&&(i=i.concat(t(r,n)))}),i}var Fp=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=qe({token:t,factory:()=>new Cp,providedIn:"root"});let e=t;return e})(),Cp=class{parse(t){let i=new g2(t);return new Ja(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(t){let i=`/${mp(t.root,!0)}`,n=c6(t.queryParams),r=typeof t.fragment=="string"?`#${a6(t.fragment)}`:"";return`${i}${n}${r}`}},s6=new Cp;function tg(e){return e.segments.map(t=>tI(t)).join("/")}function mp(e,t){if(!e.hasChildren())return tg(e);if(t){let i=e.children[Ut]?mp(e.children[Ut],!1):"",n=[];return Object.entries(e.children).forEach(([r,o])=>{r!==Ut&&n.push(`${r}:${mp(o,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}else{let i=o6(e,(n,r)=>r===Ut?[mp(e.children[Ut],!1)]:[`${r}:${mp(n,!1)}`]);return Object.keys(e.children).length===1&&e.children[Ut]!=null?`${tg(e)}/${i[0]}`:`${tg(e)}/(${i.join("//")})`}}function eI(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Jm(e){return eI(e).replace(/%3B/gi,";")}function a6(e){return encodeURI(e)}function m2(e){return eI(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ng(e){return decodeURIComponent(e)}function US(e){return ng(e.replace(/\+/g,"%20"))}function tI(e){return`${m2(e.path)}${l6(e.parameters)}`}function l6(e){return Object.entries(e).map(([t,i])=>`;${m2(t)}=${m2(i)}`).join("")}function c6(e){let t=Object.entries(e).map(([i,n])=>Array.isArray(n)?n.map(r=>`${Jm(i)}=${Jm(r)}`).join("&"):`${Jm(i)}=${Jm(n)}`).filter(i=>i);return t.length?`?${t.join("&")}`:""}var u6=/^[^\/()?;#]+/;function c2(e){let t=e.match(u6);return t?t[0]:""}var d6=/^[^\/()?;=#]+/;function p6(e){let t=e.match(d6);return t?t[0]:""}var f6=/^[^=?&#]+/;function h6(e){let t=e.match(f6);return t?t[0]:""}var m6=/^[^&#]+/;function g6(e){let t=e.match(m6);return t?t[0]:""}var g2=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new wn([],{}):new wn([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(i).length>0)&&(n[Ut]=new wn(t,i)),n}parseSegment(){let t=c2(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new ct(4009,!1);return this.capture(t),new nc(ng(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let i=p6(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let r=c2(this.remaining);r&&(n=r,this.capture(n))}t[ng(i)]=ng(n)}parseQueryParam(t){let i=h6(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let s=g6(this.remaining);s&&(n=s,this.capture(n))}let r=US(i),o=US(n);if(t.hasOwnProperty(r)){let s=t[r];Array.isArray(s)||(s=[s],t[r]=s),s.push(o)}else t[r]=o}parseParens(t){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=c2(this.remaining),r=this.remaining[n.length];if(r!=="/"&&r!==")"&&r!==";")throw new ct(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Ut);let s=this.parseChildren();i[o]=Object.keys(s).length===1?s[Ut]:new wn([],s),this.consumeOptional("//")}return i}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new ct(4011,!1)}};function nI(e){return e.segments.length>0?new wn([],{[Ut]:e}):e}function iI(e){let t={};for(let[n,r]of Object.entries(e.children)){let o=iI(r);if(n===Ut&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[n]=o)}let i=new wn(e.segments,t);return v6(i)}function v6(e){if(e.numberOfChildren===1&&e.children[Ut]){let t=e.children[Ut];return new wn(e.segments.concat(t.segments),t.children)}return e}function Fu(e){return e instanceof Ja}function y6(e,t,i=null,n=null){let r=rI(e);return oI(r,t,i,n)}function rI(e){let t;function i(o){let s={};for(let l of o.children){let p=i(l);s[l.outlet]=p}let a=new wn(o.url,s);return o===e&&(t=a),a}let n=i(e.root),r=nI(n);return t??r}function oI(e,t,i,n){let r=e;for(;r.parent;)r=r.parent;if(t.length===0)return u2(r,r,r,i,n);let o=b6(t);if(o.toRoot())return u2(r,r,new wn([],{}),i,n);let s=_6(o,r,e),a=s.processChildren?yp(s.segmentGroup,s.index,o.commands):aI(s.segmentGroup,s.index,o.commands);return u2(r,s.segmentGroup,a,i,n)}function ig(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function wp(e){return typeof e=="object"&&e!=null&&e.outlets}function u2(e,t,i,n,r){let o={};n&&Object.entries(n).forEach(([l,p])=>{o[l]=Array.isArray(p)?p.map(h=>`${h}`):`${p}`});let s;e===t?s=i:s=sI(e,t,i);let a=nI(iI(s));return new Ja(a,o,r)}function sI(e,t,i){let n={};return Object.entries(e.children).forEach(([r,o])=>{o===t?n[r]=i:n[r]=sI(o,t,i)}),new wn(e.segments,n)}var rg=class{constructor(t,i,n){if(this.isAbsolute=t,this.numberOfDoubleDots=i,this.commands=n,t&&n.length>0&&ig(n[0]))throw new ct(4003,!1);let r=n.find(wp);if(r&&r!==KS(n))throw new ct(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function b6(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new rg(!0,0,e);let t=0,i=!1,n=e.reduce((r,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,p])=>{a[l]=typeof p=="string"?p.split("/"):p}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?i=!0:a===".."?t++:a!=""&&r.push(a))}),r):[...r,o]},[]);return new rg(i,t,n)}var Mu=class{constructor(t,i,n){this.segmentGroup=t,this.processChildren=i,this.index=n}};function _6(e,t,i){if(e.isAbsolute)return new Mu(t,!0,0);if(!i)return new Mu(t,!1,NaN);if(i.parent===null)return new Mu(i,!0,0);let n=ig(e.commands[0])?0:1,r=i.segments.length-1+n;return C6(i,r,e.numberOfDoubleDots)}function C6(e,t,i){let n=e,r=t,o=i;for(;o>r;){if(o-=r,n=n.parent,!n)throw new ct(4005,!1);r=n.segments.length}return new Mu(n,!1,r-o)}function w6(e){return wp(e[0])?e[0].outlets:{[Ut]:e}}function aI(e,t,i){if(e??=new wn([],{}),e.segments.length===0&&e.hasChildren())return yp(e,t,i);let n=E6(e,t,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndex<e.segments.length){let o=new wn(e.segments.slice(0,n.pathIndex),{});return o.children[Ut]=new wn(e.segments.slice(n.pathIndex),e.children),yp(o,0,r)}else return n.match&&r.length===0?new wn(e.segments,{}):n.match&&!e.hasChildren()?v2(e,t,i):n.match?yp(e,0,r):v2(e,t,i)}function yp(e,t,i){if(i.length===0)return new wn(e.segments,{});{let n=w6(i),r={};if(Object.keys(n).some(o=>o!==Ut)&&e.children[Ut]&&e.numberOfChildren===1&&e.children[Ut].segments.length===0){let o=yp(e.children[Ut],t,i);return new wn(e.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(r[o]=aI(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{n[o]===void 0&&(r[o]=s)}),new wn(e.segments,r)}}function E6(e,t,i){let n=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};for(;r<e.segments.length;){if(n>=i.length)return o;let s=e.segments[r],a=i[n];if(wp(a))break;let l=`${a}`,p=n<i.length-1?i[n+1]:null;if(r>0&&l===void 0)break;if(l&&p&&typeof p=="object"&&p.outlets===void 0){if(!$S(l,p,s))return o;n+=2}else{if(!$S(l,{},s))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}function v2(e,t,i){let n=e.segments.slice(0,t),r=0;for(;r<i.length;){let o=i[r];if(wp(o)){let l=S6(o.outlets);return new wn(n,l)}if(r===0&&ig(i[0])){let l=e.segments[t];n.push(new nc(l.path,qS(i[0]))),r++;continue}let s=wp(o)?o.outlets[Ut]:`${o}`,a=r<i.length-1?i[r+1]:null;s&&a&&ig(a)?(n.push(new nc(s,qS(a))),r+=2):(n.push(new nc(s,{})),r++)}return new wn(n,{})}function S6(e){let t={};return Object.entries(e).forEach(([i,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(t[i]=v2(new wn([],{}),0,n))}),t}function qS(e){let t={};return Object.entries(e).forEach(([i,n])=>t[i]=`${n}`),t}function $S(e,t,i){return e==i.path&&ws(t,i.parameters)}var bp="imperative",ji=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(ji||{}),po=class{constructor(t,i){this.id=t,this.url=i}},Nu=class extends po{constructor(t,i,n="imperative",r=null){super(t,i),this.type=ji.NavigationStart,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Go=class extends po{constructor(t,i,n){super(t,i),this.urlAfterRedirects=n,this.type=ji.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Zr=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(Zr||{}),og=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(og||{}),Xa=class extends po{constructor(t,i,n,r){super(t,i),this.reason=n,this.code=r,this.type=ji.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},el=class extends po{constructor(t,i,n,r){super(t,i),this.reason=n,this.code=r,this.type=ji.NavigationSkipped}},Ep=class extends po{constructor(t,i,n,r){super(t,i),this.error=n,this.target=r,this.type=ji.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},sg=class extends po{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=ji.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},y2=class extends po{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=ji.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},b2=class extends po{constructor(t,i,n,r,o){super(t,i),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=o,this.type=ji.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},_2=class extends po{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=ji.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},C2=class extends po{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=ji.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},w2=class{constructor(t){this.route=t,this.type=ji.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},E2=class{constructor(t){this.route=t,this.type=ji.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},S2=class{constructor(t){this.snapshot=t,this.type=ji.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},I2=class{constructor(t){this.snapshot=t,this.type=ji.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},x2=class{constructor(t){this.snapshot=t,this.type=ji.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},D2=class{constructor(t){this.snapshot=t,this.type=ji.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ag=class{constructor(t,i,n){this.routerEvent=t,this.position=i,this.anchor=n,this.type=ji.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},Sp=class{},Ip=class{constructor(t){this.url=t}};var M2=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Np,this.attachRef=null}},Np=(()=>{let t=class t{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new M2,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),lg=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let i=this.pathFromRoot(t);return i.length>1?i[i.length-2]:null}children(t){let i=A2(t,this._root);return i?i.children.map(n=>n.value):[]}firstChild(t){let i=A2(t,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(t){let i=T2(t,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return T2(t,this._root).map(i=>i.value)}};function A2(e,t){if(e===t.value)return t;for(let i of t.children){let n=A2(e,i);if(n)return n}return null}function T2(e,t){if(e===t.value)return[t];for(let i of t.children){let n=T2(e,i);if(n.length)return n.unshift(t),n}return[]}var Qr=class{constructor(t,i){this.value=t,this.children=i}toString(){return`TreeNode(${this.value})`}};function Du(e){let t={};return e&&e.children.forEach(i=>t[i.value.outlet]=i),t}var cg=class extends lg{constructor(t,i){super(t),this.snapshot=i,B2(this,t)}toString(){return this.snapshot.toString()}};function lI(e){let t=I6(e),i=new ii([new nc("",{})]),n=new ii({}),r=new ii({}),o=new ii({}),s=new ii(""),a=new Fr(i,n,o,s,r,Ut,e,t.root);return a.snapshot=t.root,new cg(new Qr(a,[]),t)}function I6(e){let t={},i={},n={},r="",o=new xp([],t,n,r,i,Ut,e,null,{});return new ug("",new Qr(o,[]))}var Fr=class{constructor(t,i,n,r,o,s,a,l){this.urlSubject=t,this.paramsSubject=i,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(ut(p=>p[Tp]))??mt(void 0),this.url=t,this.params=i,this.queryParams=n,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(ut(t=>Tu(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ut(t=>Tu(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function V2(e,t,i="emptyOnly"){let n,{routeConfig:r}=e;return t!==null&&(i==="always"||r?.path===""||!t.component&&!t.routeConfig?.loadComponent)?n={params:ze(ze({},t.params),e.params),data:ze(ze({},t.data),e.data),resolve:ze(ze(ze(ze({},e.data),t.data),r?.data),e._resolvedData)}:n={params:ze({},e.params),data:ze({},e.data),resolve:ze(ze({},e.data),e._resolvedData??{})},r&&uI(r)&&(n.resolve[Tp]=r.title),n}var xp=class{get title(){return this.data?.[Tp]}constructor(t,i,n,r,o,s,a,l,p){this.url=t,this.params=i,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=p}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Tu(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Tu(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(n=>n.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${i}')`}},ug=class extends lg{constructor(t,i){super(i),this.url=t,B2(this,i)}toString(){return cI(this._root)}};function B2(e,t){t.value._routerState=e,t.children.forEach(i=>B2(e,i))}function cI(e){let t=e.children.length>0?` { ${e.children.map(cI).join(", ")} } `:"";return`${e.value}${t}`}function d2(e){if(e.snapshot){let t=e.snapshot,i=e._futureSnapshot;e.snapshot=i,ws(t.queryParams,i.queryParams)||e.queryParamsSubject.next(i.queryParams),t.fragment!==i.fragment&&e.fragmentSubject.next(i.fragment),ws(t.params,i.params)||e.paramsSubject.next(i.params),e6(t.url,i.url)||e.urlSubject.next(i.url),ws(t.data,i.data)||e.dataSubject.next(i.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function F2(e,t){let i=ws(e.params,t.params)&&r6(e.url,t.url),n=!e.parent!=!t.parent;return i&&!n&&(!e.parent||F2(e.parent,t.parent))}function uI(e){return typeof e.title=="string"||e.title===null}var U2=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ut,this.activateEvents=new ot,this.deactivateEvents=new ot,this.attachEvents=new ot,this.detachEvents=new ot,this.parentContexts=Pe(Np),this.location=Pe(oa),this.changeDetector=Pe(bs),this.environmentInjector=Pe(Xi),this.inputBinder=Pe(mg,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ct(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ct(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ct(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new ct(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,p=new N2(n,l,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:p,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=Bt({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[qn]});let e=t;return e})(),N2=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,i,n){this.route=t,this.childContexts=i,this.parent=n}get(t,i){return t===Fr?this.route:t===Np?this.childContexts:this.parent.get(t,i)}},mg=new dt(""),HS=(()=>{let t=class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:r}=n,o=Fd([r.queryParams,r.params,r.data]).pipe(Ir(([s,a,l],p)=>(l=ze(ze(ze({},s),a),l),p===0?mt(l):Promise.resolve(l)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(n);return}let a=zE(r.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:l}of a.inputs)n.activatedComponentRef.setInput(l,s[l])});this.outletDataSubscriptions.set(n,o)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=qe({token:t,factory:t.\u0275fac});let e=t;return e})();function x6(e,t,i){let n=Dp(e,t._root,i?i._root:void 0);return new cg(n,t)}function Dp(e,t,i){if(i&&e.shouldReuseRoute(t.value,i.value.snapshot)){let n=i.value;n._futureSnapshot=t.value;let r=D6(e,t,i);return new Qr(n,r)}else{if(e.shouldAttach(t.value)){let o=e.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Dp(e,a)),s}}let n=M6(t.value),r=t.children.map(o=>Dp(e,o));return new Qr(n,r)}}function D6(e,t,i){return t.children.map(n=>{for(let r of i.children)if(e.shouldReuseRoute(n.value,r.value.snapshot))return Dp(e,n,r);return Dp(e,n)})}function M6(e){return new Fr(new ii(e.url),new ii(e.params),new ii(e.queryParams),new ii(e.fragment),new ii(e.data),e.outlet,e.component,e)}var dI="ngNavigationCancelingError";function pI(e,t){let{redirectTo:i,navigationBehaviorOptions:n}=Fu(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=fI(!1,Zr.Redirect);return r.url=i,r.navigationBehaviorOptions=n,r}function fI(e,t){let i=new Error(`NavigationCancelingError: ${e||""}`);return i[dI]=!0,i.cancellationCode=t,i}function A6(e){return hI(e)&&Fu(e.url)}function hI(e){return!!e&&e[dI]}var T6=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=Re({type:t,selectors:[["ng-component"]],standalone:!0,features:[Ve],decls:1,vars:0,template:function(r,o){r&1&&z(0,"router-outlet")},dependencies:[U2],encapsulation:2});let e=t;return e})();function F6(e,t){return e.providers&&!e._injector&&(e._injector=xm(e.providers,t,`Route: ${e.path}`)),e._injector??t}function q2(e){let t=e.children&&e.children.map(q2),i=t?An(ze({},e),{children:t}):ze({},e);return!i.component&&!i.loadComponent&&(t||i.loadChildren)&&i.outlet&&i.outlet!==Ut&&(i.component=T6),i}function Es(e){return e.outlet||Ut}function N6(e,t){let i=e.filter(n=>Es(n)===t);return i.push(...e.filter(n=>Es(n)!==t)),i}function Pp(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let i=t.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}var P6=(e,t,i,n)=>ut(r=>(new P2(t,r.targetRouterState,r.currentRouterState,i,n).activate(e),r)),P2=class{constructor(t,i,n,r,o){this.routeReuseStrategy=t,this.futureState=i,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=o}activate(t){let i=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,n,t),d2(this.futureState.root),this.activateChildRoutes(i,n,t)}deactivateChildRoutes(t,i,n){let r=Du(i);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,r[s],n),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(t,i,n){let r=t.value,o=i?i.value:null;if(r===o)if(r.component){let s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(t,i,s.children)}else this.deactivateChildRoutes(t,i,n);else o&&this.deactivateRouteAndItsChildren(i,n)}deactivateRouteAndItsChildren(t,i){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,i):this.deactivateRouteAndOutlet(t,i)}detachAndStoreRouteSubtree(t,i){let n=i.getContext(t.value.outlet),r=n&&t.value.component?n.children:i,o=Du(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,i){let n=i.getContext(t.value.outlet),r=n&&t.value.component?n.children:i,o=Du(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(t,i,n){let r=Du(i);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new D2(o.value.snapshot))}),t.children.length&&this.forwardEvent(new I2(t.value.snapshot))}activateRoutes(t,i,n){let r=t.value,o=i?i.value:null;if(d2(r),r===o)if(r.component){let s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,i,s.children)}else this.activateChildRoutes(t,i,n);else if(r.component){let s=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),d2(a.route.value),this.activateChildRoutes(t,null,s.children)}else{let a=Pp(r.snapshot);s.attachRef=null,s.route=r,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,n)}},dg=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Au=class{constructor(t,i){this.component=t,this.route=i}};function O6(e,t,i){let n=e._root,r=t?t._root:null;return gp(n,r,i,[n.value])}function R6(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Ou(e,t){let i=Symbol(),n=t.get(e,i);return n===i?typeof e=="function"&&!YC(e)?e:t.get(e):n}function gp(e,t,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Du(t);return e.children.forEach(s=>{L6(s,o[s.value.outlet],i,n.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>_p(a,i.getContext(s),r)),r}function L6(e,t,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=t?t.value:null,a=i?i.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=k6(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new dg(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?gp(e,t,a?a.children:null,n,r):gp(e,t,i,n,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Au(a.outlet.component,s))}else s&&_p(t,a,r),r.canActivateChecks.push(new dg(n)),o.component?gp(e,null,a?a.children:null,n,r):gp(e,null,i,n,r);return r}function k6(e,t,i){if(typeof i=="function")return i(e,t);switch(i){case"pathParamsChange":return!ic(e.url,t.url);case"pathParamsOrQueryParamsChange":return!ic(e.url,t.url)||!ws(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!F2(e,t)||!ws(e.queryParams,t.queryParams);case"paramsChange":default:return!F2(e,t)}}function _p(e,t,i){let n=Du(e),r=e.value;Object.entries(n).forEach(([o,s])=>{r.component?t?_p(s,t.children.getContext(o),i):_p(s,null,i):_p(s,t,i)}),r.component?t&&t.outlet&&t.outlet.isActivated?i.canDeactivateChecks.push(new Au(t.outlet.component,r)):i.canDeactivateChecks.push(new Au(null,r)):i.canDeactivateChecks.push(new Au(null,r))}function Op(e){return typeof e=="function"}function j6(e){return typeof e=="boolean"}function V6(e){return e&&Op(e.canLoad)}function B6(e){return e&&Op(e.canActivate)}function U6(e){return e&&Op(e.canActivateChild)}function q6(e){return e&&Op(e.canDeactivate)}function $6(e){return e&&Op(e.canMatch)}function mI(e){return e instanceof Js||e?.name==="EmptyError"}var Xm=Symbol("INITIAL_VALUE");function Pu(){return Ir(e=>Fd(e.map(t=>t.pipe(ro(1),p1(Xm)))).pipe(ut(t=>{for(let i of t)if(i!==!0){if(i===Xm)return Xm;if(i===!1||i instanceof Ja)return i}return!0}),Sr(t=>t!==Xm),ro(1)))}function H6(e,t){return ri(i=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=i;return s.length===0&&o.length===0?mt(An(ze({},i),{guardsResult:!0})):z6(s,n,r,e).pipe(ri(a=>a&&j6(a)?G6(n,o,e,t):mt(a)),ut(a=>An(ze({},i),{guardsResult:a})))})}function z6(e,t,i,n){return Bn(e).pipe(ri(r=>Z6(r.component,r.route,i,t,n)),Oo(r=>r!==!0,!0))}function G6(e,t,i,n){return Bn(t).pipe(Xs(r=>Oa(Y6(r.route.parent,n),W6(r.route,n),Q6(e,r.path,i),K6(e,r.route,i))),Oo(r=>r!==!0,!0))}function W6(e,t){return e!==null&&t&&t(new x2(e)),mt(!0)}function Y6(e,t){return e!==null&&t&&t(new S2(e)),mt(!0)}function K6(e,t,i){let n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||n.length===0)return mt(!0);let r=n.map(o=>hh(()=>{let s=Pp(t)??i,a=Ou(o,s),l=B6(a)?a.canActivate(t,e):Bo(s,()=>a(t,e));return tl(l).pipe(Oo())}));return mt(r).pipe(Pu())}function Q6(e,t,i){let n=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>R6(s)).filter(s=>s!==null).map(s=>hh(()=>{let a=s.guards.map(l=>{let p=Pp(s.node)??i,h=Ou(l,p),v=U6(h)?h.canActivateChild(n,e):Bo(p,()=>h(n,e));return tl(v).pipe(Oo())});return mt(a).pipe(Pu())}));return mt(o).pipe(Pu())}function Z6(e,t,i,n,r){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return mt(!0);let s=o.map(a=>{let l=Pp(t)??r,p=Ou(a,l),h=q6(p)?p.canDeactivate(e,t,i,n):Bo(l,()=>p(e,t,i,n));return tl(h).pipe(Oo())});return mt(s).pipe(Pu())}function J6(e,t,i,n){let r=t.canLoad;if(r===void 0||r.length===0)return mt(!0);let o=r.map(s=>{let a=Ou(s,e),l=V6(a)?a.canLoad(t,i):Bo(e,()=>a(t,i));return tl(l)});return mt(o).pipe(Pu(),gI(n))}function gI(e){return t1(Di(t=>{if(Fu(t))throw pI(e,t)}),ut(t=>t===!0))}function X6(e,t,i,n){let r=t.canMatch;if(!r||r.length===0)return mt(!0);let o=r.map(s=>{let a=Ou(s,e),l=$6(a)?a.canMatch(t,i):Bo(e,()=>a(t,i));return tl(l)});return mt(o).pipe(Pu(),gI(n))}var Mp=class{constructor(t){this.segmentGroup=t||null}},pg=class extends Error{constructor(t){super(),this.urlTree=t}};function xu(e){return ls(new Mp(e))}function eR(e){return ls(new ct(4e3,!1))}function tR(e){return ls(fI(!1,Zr.GuardRejected))}var O2=class{constructor(t,i){this.urlSerializer=t,this.urlTree=i}lineralizeSegments(t,i){let n=[],r=i.root;for(;;){if(n=n.concat(r.segments),r.numberOfChildren===0)return mt(n);if(r.numberOfChildren>1||!r.children[Ut])return eR(t.redirectTo);r=r.children[Ut]}}applyRedirectCommands(t,i,n){let r=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),t,n);if(i.startsWith("/"))throw new pg(r);return r}applyRedirectCreateUrlTree(t,i,n,r){let o=this.createSegmentGroup(t,i.root,n,r);return new Ja(o,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(t,i){let n={};return Object.entries(t).forEach(([r,o])=>{if(typeof o=="string"&&o.startsWith(":")){let a=o.substring(1);n[r]=i[a]}else n[r]=o}),n}createSegmentGroup(t,i,n,r){let o=this.createSegments(t,i.segments,n,r),s={};return Object.entries(i.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(t,l,n,r)}),new wn(o,s)}createSegments(t,i,n,r){return i.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,r):this.findOrReturn(o,n))}findPosParam(t,i,n){let r=n[i.path.substring(1)];if(!r)throw new ct(4001,!1);return r}findOrReturn(t,i){let n=0;for(let r of i){if(r.path===t.path)return i.splice(n),r;n++}return t}},R2={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function nR(e,t,i,n,r){let o=$2(e,t,i);return o.matched?(n=F6(t,n),X6(n,t,i,r).pipe(ut(s=>s===!0?o:ze({},R2)))):mt(o)}function $2(e,t,i){if(t.path==="**")return iR(i);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||i.length>0)?ze({},R2):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(t.matcher||XO)(i,e,t);if(!r)return ze({},R2);let o={};Object.entries(r.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=r.consumed.length>0?ze(ze({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function iR(e){return{matched:!0,parameters:e.length>0?KS(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function zS(e,t,i,n){return i.length>0&&sR(e,i,n)?{segmentGroup:new wn(t,oR(n,new wn(i,e.children))),slicedSegments:[]}:i.length===0&&aR(e,i,n)?{segmentGroup:new wn(e.segments,rR(e,i,n,e.children)),slicedSegments:i}:{segmentGroup:new wn(e.segments,e.children),slicedSegments:i}}function rR(e,t,i,n){let r={};for(let o of i)if(gg(e,t,o)&&!n[Es(o)]){let s=new wn([],{});r[Es(o)]=s}return ze(ze({},n),r)}function oR(e,t){let i={};i[Ut]=t;for(let n of e)if(n.path===""&&Es(n)!==Ut){let r=new wn([],{});i[Es(n)]=r}return i}function sR(e,t,i){return i.some(n=>gg(e,t,n)&&Es(n)!==Ut)}function aR(e,t,i){return i.some(n=>gg(e,t,n))}function gg(e,t,i){return(e.hasChildren()||t.length>0)&&i.pathMatch==="full"?!1:i.path===""}function lR(e,t,i,n){return Es(e)!==n&&(n===Ut||!gg(t,i,e))?!1:$2(t,e,i).matched}function cR(e,t,i){return t.length===0&&!e.children[i]}var L2=class{};function uR(e,t,i,n,r,o,s="emptyOnly"){return new k2(e,t,i,n,r,s,o).recognize()}var dR=31,k2=class{constructor(t,i,n,r,o,s,a){this.injector=t,this.configLoader=i,this.rootComponentType=n,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new O2(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new ct(4002,`'${t.segmentGroup}'`)}recognize(){let t=zS(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(ut(i=>{let n=new xp([],Object.freeze({}),Object.freeze(ze({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ut,this.rootComponentType,null,{}),r=new Qr(n,i),o=new ug("",r),s=y6(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,Ut).pipe(nt(n=>{if(n instanceof pg)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Mp?this.noMatchError(n):n}))}inheritParamsAndData(t,i){let n=t.value,r=V2(n,i,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(o=>this.inheritParamsAndData(o,n))}processSegmentGroup(t,i,n,r){return n.segments.length===0&&n.hasChildren()?this.processChildren(t,i,n):this.processSegment(t,i,n,n.segments,r,!0).pipe(ut(o=>o instanceof Qr?[o]:[]))}processChildren(t,i,n){let r=[];for(let o of Object.keys(n.children))o==="primary"?r.unshift(o):r.push(o);return Bn(r).pipe(Xs(o=>{let s=n.children[o],a=N6(i,o);return this.processSegmentGroup(t,a,s,o)}),Xc((o,s)=>(o.push(...s),o)),Ra(null),u1(),ri(o=>{if(o===null)return xu(n);let s=vI(o);return pR(s),mt(s)}))}processSegment(t,i,n,r,o,s){return Bn(i).pipe(Xs(a=>this.processSegmentAgainstRoute(a._injector??t,i,a,n,r,o,s).pipe(nt(l=>{if(l instanceof Mp)return mt(null);throw l}))),Oo(a=>!!a),nt(a=>{if(mI(a))return cR(n,r,o)?mt(new L2):xu(n);throw a}))}processSegmentAgainstRoute(t,i,n,r,o,s,a){return lR(n,r,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(t,r,n,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,r,i,n,o,s):xu(r):xu(r)}expandSegmentAgainstRouteUsingRedirect(t,i,n,r,o,s){let{matched:a,consumedSegments:l,positionalParamSegments:p,remainingSegments:h}=$2(i,r,o);if(!a)return xu(i);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>dR&&(this.allowRedirects=!1));let v=this.applyRedirects.applyRedirectCommands(l,r.redirectTo,p);return this.applyRedirects.lineralizeSegments(r,v).pipe(ri(w=>this.processSegment(t,n,i,w.concat(h),s,!1)))}matchSegmentAgainstRoute(t,i,n,r,o){let s=nR(i,n,r,t,this.urlSerializer);return n.path==="**"&&(i.children={}),s.pipe(Ir(a=>a.matched?(t=n._injector??t,this.getChildConfig(t,n,r).pipe(Ir(({routes:l})=>{let p=n._loadedInjector??t,{consumedSegments:h,remainingSegments:v,parameters:w}=a,g=new xp(h,w,Object.freeze(ze({},this.urlTree.queryParams)),this.urlTree.fragment,hR(n),Es(n),n.component??n._loadedComponent??null,n,mR(n)),{segmentGroup:S,slicedSegments:I}=zS(i,h,v,l);if(I.length===0&&S.hasChildren())return this.processChildren(p,l,S).pipe(ut(x=>x===null?null:new Qr(g,x)));if(l.length===0&&I.length===0)return mt(new Qr(g,[]));let A=Es(n)===o;return this.processSegment(p,l,S,I,A?Ut:o,!0).pipe(ut(x=>new Qr(g,x instanceof Qr?[x]:[])))}))):xu(i)))}getChildConfig(t,i,n){return i.children?mt({routes:i.children,injector:t}):i.loadChildren?i._loadedRoutes!==void 0?mt({routes:i._loadedRoutes,injector:i._loadedInjector}):J6(t,i,n,this.urlSerializer).pipe(ri(r=>r?this.configLoader.loadChildren(t,i).pipe(Di(o=>{i._loadedRoutes=o.routes,i._loadedInjector=o.injector})):tR(i))):mt({routes:[],injector:t})}};function pR(e){e.sort((t,i)=>t.value.outlet===Ut?-1:i.value.outlet===Ut?1:t.value.outlet.localeCompare(i.value.outlet))}function fR(e){let t=e.value.routeConfig;return t&&t.path===""}function vI(e){let t=[],i=new Set;for(let n of e){if(!fR(n)){t.push(n);continue}let r=t.find(o=>n.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...n.children),i.add(r)):t.push(n)}for(let n of i){let r=vI(n.children);t.push(new Qr(n.value,r))}return t.filter(n=>!i.has(n))}function hR(e){return e.data||{}}function mR(e){return e.resolve||{}}function gR(e,t,i,n,r,o){return ri(s=>uR(e,t,i,n,s.extractedUrl,r,o).pipe(ut(({state:a,tree:l})=>An(ze({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function vR(e,t){return ri(i=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=i;if(!r.length)return mt(i);let o=new Set(r.map(l=>l.route)),s=new Set;for(let l of o)if(!s.has(l))for(let p of yI(l))s.add(p);let a=0;return Bn(s).pipe(Xs(l=>o.has(l)?yR(l,n,e,t):(l.data=V2(l,l.parent,e).resolve,mt(void 0))),Di(()=>a++),Jc(1),ri(l=>a===s.size?mt(i):qr))})}function yI(e){let t=e.children.map(i=>yI(i)).flat();return[e,...t]}function yR(e,t,i,n){let r=e.routeConfig,o=e._resolve;return r?.title!==void 0&&!uI(r)&&(o[Tp]=r.title),bR(o,e,t,n).pipe(ut(s=>(e._resolvedData=s,e.data=V2(e,e.parent,i).resolve,null)))}function bR(e,t,i,n){let r=h2(e);if(r.length===0)return mt({});let o={};return Bn(r).pipe(ri(s=>_R(e[s],t,i,n).pipe(Oo(),Di(a=>{o[s]=a}))),Jc(1),Pd(o),nt(s=>mI(s)?qr:ls(s)))}function _R(e,t,i,n){let r=Pp(t)??n,o=Ou(e,r),s=o.resolve?o.resolve(t,i):Bo(r,()=>o(t,i));return tl(s)}function p2(e){return Ir(t=>{let i=e(t);return i?Bn(i).pipe(ut(()=>t)):mt(t)})}var bI=(()=>{let t=class t{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(s=>s.outlet===Ut);return r}getResolvedTitleForRoute(n){return n.data[Tp]}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=qe({token:t,factory:()=>Pe(CR),providedIn:"root"});let e=t;return e})(),CR=(()=>{let t=class t extends bI{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}};t.\u0275fac=function(r){return new(r||t)(Ye(jS))},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Rp=new dt("",{providedIn:"root",factory:()=>({})}),Ap=new dt(""),H2=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Pe(Nm)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return mt(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=tl(n.loadComponent()).pipe(ut(_I),Di(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),jl(()=>{this.componentLoaders.delete(n)})),o=new Qc(r,()=>new yi).pipe(Kc());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return mt({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let s=wR(r,this.compiler,n,this.onLoadEndListener).pipe(jl(()=>{this.childrenLoaders.delete(r)})),a=new Qc(s,()=>new yi).pipe(Kc());return this.childrenLoaders.set(r,a),a}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function wR(e,t,i,n){return tl(e.loadChildren()).pipe(ut(_I),ri(r=>r instanceof zd||Array.isArray(r)?mt(r):Bn(t.compileModuleAsync(r))),ut(r=>{n&&n(e);let o,s,a=!1;return Array.isArray(r)?(s=r,a=!0):(o=r.create(i).injector,s=o.get(Ap,[],{optional:!0,self:!0}).flat()),{routes:s.map(q2),injector:o}}))}function ER(e){return e&&typeof e=="object"&&"default"in e}function _I(e){return ER(e)?e.default:e}var z2=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=qe({token:t,factory:()=>Pe(SR),providedIn:"root"});let e=t;return e})(),SR=(()=>{let t=class t{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),CI=new dt(""),wI=new dt("");function IR(e,t,i){let n=e.get(wI),r=e.get(Jn);return e.get(xn).runOutsideAngular(()=>{if(!r.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(p=>setTimeout(p));let o,s=new Promise(p=>{o=p}),a=r.startViewTransition(()=>(o(),xR(e))),{onViewTransitionCreated:l}=n;return l&&Bo(e,()=>l({transition:a,from:t,to:i})),s})}function xR(e){return new Promise(t=>{_u(t,{injector:e})})}var G2=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new yi,this.transitionAbortSubject=new yi,this.configLoader=Pe(H2),this.environmentInjector=Pe(Xi),this.urlSerializer=Pe(Fp),this.rootContexts=Pe(Np),this.location=Pe(Eu),this.inputBindingEnabled=Pe(mg,{optional:!0})!==null,this.titleStrategy=Pe(bI),this.options=Pe(Rp,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=Pe(z2),this.createViewTransition=Pe(CI,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>mt(void 0),this.rootComponentType=null;let n=o=>this.events.next(new w2(o)),r=o=>this.events.next(new E2(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(An(ze(ze({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,o){return this.transitions=new ii({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:bp,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Sr(s=>s.id!==0),ut(s=>An(ze({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),Ir(s=>{let a=!1,l=!1;return mt(s).pipe(Ir(p=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",Zr.SupersededByNewNavigation),qr;this.currentTransition=s,this.currentNavigation={id:p.id,initialUrl:p.rawUrl,extractedUrl:p.extractedUrl,trigger:p.source,extras:p.extras,previousNavigation:this.lastSuccessfulNavigation?An(ze({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let h=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=p.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!h&&v!=="reload"){let w="";return this.events.next(new el(p.id,this.urlSerializer.serialize(p.rawUrl),w,og.IgnoredSameUrlNavigation)),p.resolve(null),qr}if(this.urlHandlingStrategy.shouldProcessUrl(p.rawUrl))return mt(p).pipe(Ir(w=>{let g=this.transitions?.getValue();return this.events.next(new Nu(w.id,this.urlSerializer.serialize(w.extractedUrl),w.source,w.restoredState)),g!==this.transitions?.getValue()?qr:Promise.resolve(w)}),gR(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),Di(w=>{s.targetSnapshot=w.targetSnapshot,s.urlAfterRedirects=w.urlAfterRedirects,this.currentNavigation=An(ze({},this.currentNavigation),{finalUrl:w.urlAfterRedirects});let g=new sg(w.id,this.urlSerializer.serialize(w.extractedUrl),this.urlSerializer.serialize(w.urlAfterRedirects),w.targetSnapshot);this.events.next(g)}));if(h&&this.urlHandlingStrategy.shouldProcessUrl(p.currentRawUrl)){let{id:w,extractedUrl:g,source:S,restoredState:I,extras:A}=p,x=new Nu(w,this.urlSerializer.serialize(g),S,I);this.events.next(x);let P=lI(this.rootComponentType).snapshot;return this.currentTransition=s=An(ze({},p),{targetSnapshot:P,urlAfterRedirects:g,extras:An(ze({},A),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=g,mt(s)}else{let w="";return this.events.next(new el(p.id,this.urlSerializer.serialize(p.extractedUrl),w,og.IgnoredByUrlHandlingStrategy)),p.resolve(null),qr}}),Di(p=>{let h=new y2(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(h)}),ut(p=>(this.currentTransition=s=An(ze({},p),{guards:O6(p.targetSnapshot,p.currentSnapshot,this.rootContexts)}),s)),H6(this.environmentInjector,p=>this.events.next(p)),Di(p=>{if(s.guardsResult=p.guardsResult,Fu(p.guardsResult))throw pI(this.urlSerializer,p.guardsResult);let h=new b2(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot,!!p.guardsResult);this.events.next(h)}),Sr(p=>p.guardsResult?!0:(this.cancelNavigationTransition(p,"",Zr.GuardRejected),!1)),p2(p=>{if(p.guards.canActivateChecks.length)return mt(p).pipe(Di(h=>{let v=new _2(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(v)}),Ir(h=>{let v=!1;return mt(h).pipe(vR(this.paramsInheritanceStrategy,this.environmentInjector),Di({next:()=>v=!0,complete:()=>{v||this.cancelNavigationTransition(h,"",Zr.NoDataFromResolver)}}))}),Di(h=>{let v=new C2(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(v)}))}),p2(p=>{let h=v=>{let w=[];v.routeConfig?.loadComponent&&!v.routeConfig._loadedComponent&&w.push(this.configLoader.loadComponent(v.routeConfig).pipe(Di(g=>{v.component=g}),ut(()=>{})));for(let g of v.children)w.push(...h(g));return w};return Fd(h(p.targetSnapshot.root)).pipe(Ra(null),ro(1))}),p2(()=>this.afterPreactivation()),Ir(()=>{let{currentSnapshot:p,targetSnapshot:h}=s,v=this.createViewTransition?.(this.environmentInjector,p.root,h.root);return v?Bn(v).pipe(ut(()=>s)):mt(s)}),ut(p=>{let h=x6(n.routeReuseStrategy,p.targetSnapshot,p.currentRouterState);return this.currentTransition=s=An(ze({},p),{targetRouterState:h}),this.currentNavigation.targetRouterState=h,s}),Di(()=>{this.events.next(new Sp)}),P6(this.rootContexts,n.routeReuseStrategy,p=>this.events.next(p),this.inputBindingEnabled),ro(1),Di({next:p=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Go(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects))),this.titleStrategy?.updateTitle(p.targetRouterState.snapshot),p.resolve(!0)},complete:()=>{a=!0}}),f1(this.transitionAbortSubject.pipe(Di(p=>{throw p}))),jl(()=>{!a&&!l&&this.cancelNavigationTransition(s,"",Zr.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),nt(p=>{if(l=!0,hI(p))this.events.next(new Xa(s.id,this.urlSerializer.serialize(s.extractedUrl),p.message,p.cancellationCode)),A6(p)?this.events.next(new Ip(p.url)):s.resolve(!1);else{this.events.next(new Ep(s.id,this.urlSerializer.serialize(s.extractedUrl),p,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(p))}catch(h){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(h)}}return qr}))}))}cancelNavigationTransition(n,r,o){let s=new Xa(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function DR(e){return e!==bp}var MR=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=qe({token:t,factory:()=>Pe(AR),providedIn:"root"});let e=t;return e})(),j2=class{shouldDetach(t){return!1}store(t,i){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,i){return t.routeConfig===i.routeConfig}},AR=(()=>{let t=class t extends j2{};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=Zn(t)))(o||t)}})(),t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),EI=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=qe({token:t,factory:()=>Pe(TR),providedIn:"root"});let e=t;return e})(),TR=(()=>{let t=class t extends EI{constructor(){super(...arguments),this.location=Pe(Eu),this.urlSerializer=Pe(Fp),this.options=Pe(Rp,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=Pe(z2),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Ja,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=lI(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof Nu)this.stateMemento=this.createStateMemento();else if(n instanceof el)this.rawUrlTree=r.initialUrl;else if(n instanceof sg){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(o,r)}}else n instanceof Sp?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):n instanceof Xa&&(n.code===Zr.GuardRejected||n.code===Zr.NoDataFromResolver)?this.restoreHistory(r):n instanceof Ep?this.restoreHistory(r,!0):n instanceof Go&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let s=this.browserPageId,a=ze(ze({},r.extras.state),this.generateNgRouterState(r.id,s));this.location.replaceState(o,"",a)}else{let s=ze(ze({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=Zn(t)))(o||t)}})(),t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),vp=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(vp||{});function SI(e,t){e.events.pipe(Sr(i=>i instanceof Go||i instanceof Xa||i instanceof Ep||i instanceof el),ut(i=>i instanceof Go||i instanceof el?vp.COMPLETE:(i instanceof Xa?i.code===Zr.Redirect||i.code===Zr.SupersededByNewNavigation:!1)?vp.REDIRECTING:vp.FAILED),Sr(i=>i!==vp.REDIRECTING),ro(1)).subscribe(()=>{t()})}function FR(e){throw e}var NR={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},PR={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Jt=(()=>{let t=class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=Pe(Tm),this.stateManager=Pe(EI),this.options=Pe(Rp,{optional:!0})||{},this.pendingTasks=Pe(Cu),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=Pe(G2),this.urlSerializer=Pe(Fp),this.location=Pe(Eu),this.urlHandlingStrategy=Pe(z2),this._events=new yi,this.errorHandler=this.options.errorHandler||FR,this.navigated=!1,this.routeReuseStrategy=Pe(MR),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=Pe(Ap,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!Pe(mg,{optional:!0}),this.eventsSubscription=new li,this.isNgZoneEnabled=Pe(xn)instanceof xn&&xn.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(r,s),r instanceof Xa&&r.code!==Zr.Redirect&&r.code!==Zr.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Go)this.navigated=!0;else if(r instanceof Ip){let a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),l={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||DR(o.source)};this.scheduleNavigation(a,bp,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}RR(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),bp,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let p=ze({},o);delete p.navigationId,delete p.\u0275routerPageId,Object.keys(p).length!==0&&(s.state=p)}let l=this.parseUrl(n);this.scheduleNavigation(l,r,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(q2),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:l,preserveFragment:p}=r,h=p?this.currentUrlTree.fragment:a,v=null;switch(l){case"merge":v=ze(ze({},this.currentUrlTree.queryParams),s);break;case"preserve":v=this.currentUrlTree.queryParams;break;default:v=s||null}v!==null&&(v=this.removeEmptyProps(v));let w;try{let g=o?o.snapshot:this.routerState.snapshot.root;w=rI(g)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),w=this.currentUrlTree.root}return oI(w,n,v,h??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=Fu(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,bp,null,r)}navigate(n,r={skipLocationChange:!1}){return OR(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=ze({},NR):r===!1?o=ze({},PR):o=r,Fu(n))return BS(this.currentUrlTree,n,o);let s=this.parseUrl(n);return BS(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,s])=>(s!=null&&(r[o]=s),r),{})}scheduleNavigation(n,r,o,s,a){if(this.disposed)return Promise.resolve(!1);let l,p,h;a?(l=a.resolve,p=a.reject,h=a.promise):h=new Promise((w,g)=>{l=w,p=g});let v=this.pendingTasks.add();return SI(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(v))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:l,reject:p,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(w=>Promise.reject(w))}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function OR(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new ct(4008,!1)}function RR(e){return!(e instanceof Sp)&&!(e instanceof Ip)}var fg=(()=>{let t=class t{constructor(n,r,o,s,a,l){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=l,this.href=null,this.commands=null,this.onChanges=new yi,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let p=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=p==="a"||p==="area",this.isAnchorElement?this.subscription=n.events.subscribe(h=>{h instanceof Go&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n!=null?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,o,s,a){let l=this.urlTree;if(l===null||this.isAnchorElement&&(n!==0||r||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let p={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(l,p),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:w5(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let o=this.renderer,s=this.el.nativeElement;r!==null?o.setAttribute(s,n,r):o.removeAttribute(s,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};t.\u0275fac=function(r){return new(r||t)(ee(Jt),ee(Fr),Jv("tabindex"),ee(Gi),ee(Rn),ee(ua))},t.\u0275dir=Bt({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&X("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&Wt("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[xt.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Wn],skipLocationChange:[xt.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Wn],replaceUrl:[xt.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Wn],routerLink:"routerLink"},standalone:!0,features:[so,qn]});let e=t;return e})(),II=(()=>{let t=class t{get isActive(){return this._isActive}constructor(n,r,o,s,a){this.router=n,this.element=r,this.renderer=o,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ot,this.routerEventsSubscription=n.events.subscribe(l=>{l instanceof Go&&this.update()})}ngAfterContentInit(){mt(this.links.changes,mt(null)).pipe(Pa()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Bn(n).pipe(Pa()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){let r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n))})}isLinkActive(n){let r=LR(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let s=o.urlTree;return s?n.isActive(s,r):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};t.\u0275fac=function(r){return new(r||t)(ee(Jt),ee(Rn),ee(Gi),ee(bs),ee(fg,8))},t.\u0275dir=Bt({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,s){if(r&1&&co(s,fg,5),r&2){let a;Mr(a=Ar())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[qn]});let e=t;return e})();function LR(e){return!!e.paths}var hg=class{};var kR=(()=>{let t=class t{constructor(n,r,o,s,a){this.router=n,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(Sr(n=>n instanceof Go),Xs(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){let o=[];for(let s of r){s.providers&&!s._injector&&(s._injector=xm(s.providers,n,`Route: ${s.path}`));let a=s._injector??n,l=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(l,s.children??s._loadedRoutes))}return Bn(o).pipe(Pa())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;r.loadChildren&&r.canLoad===void 0?o=this.loader.loadChildren(n,r):o=mt(null);let s=o.pipe(ri(a=>a===null?mt(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(r);return Bn([s,a]).pipe(Pa())}else return s})}};t.\u0275fac=function(r){return new(r||t)(Ye(Jt),Ye(Nm),Ye(Xi),Ye(hg),Ye(H2))},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),xI=new dt(""),jR=(()=>{let t=class t{constructor(n,r,o,s,a={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=Pe(Xi),a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Nu?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Go?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof el&&n.code===og.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof ag&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>Uc(this,null,function*(){yield new Promise(o=>{setTimeout(()=>{o()}),_u(()=>{o()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new ag(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};t.\u0275fac=function(r){L5()},t.\u0275prov=qe({token:t,factory:t.\u0275fac});let e=t;return e})();function DI(e,...t){return qa([{provide:Ap,multi:!0,useValue:e},[],{provide:Fr,useFactory:MI,deps:[Jt]},{provide:Xl,multi:!0,useFactory:AI},t.map(i=>i.\u0275providers)])}function MI(e){return e.routerState.root}function Lp(e,t){return{\u0275kind:e,\u0275providers:t}}function AI(){let e=Pe(qo);return t=>{let i=e.get(Wa);if(t!==i.components[0])return;let n=e.get(Jt),r=e.get(TI);e.get(W2)===1&&n.initialNavigation(),e.get(FI,null,Gt.Optional)?.setUpPreloading(),e.get(xI,null,Gt.Optional)?.init(),n.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var TI=new dt("",{factory:()=>new yi}),W2=new dt("",{providedIn:"root",factory:()=>1});function VR(){return Lp(2,[{provide:W2,useValue:0},{provide:Fm,multi:!0,deps:[qo],useFactory:t=>{let i=t.get(eS,Promise.resolve());return()=>i.then(()=>new Promise(n=>{let r=t.get(Jt),o=t.get(TI);SI(r,()=>{n(!0)}),t.get(G2).afterPreactivation=()=>(n(!0),o.closed?mt(void 0):o),r.initialNavigation()}))}}])}function BR(){return Lp(3,[{provide:Fm,multi:!0,useFactory:()=>{let t=Pe(Jt);return()=>{t.setUpLocationChangeListener()}}},{provide:W2,useValue:2}])}var FI=new dt("");function UR(e){return Lp(0,[{provide:FI,useExisting:kR},{provide:hg,useExisting:e}])}function qR(){return Lp(8,[HS,{provide:mg,useExisting:HS}])}function $R(e){let t=[{provide:CI,useValue:IR},{provide:wI,useValue:ze({skipNextTransition:!!e?.skipInitialTransition},e)}];return Lp(9,t)}var GS=new dt("ROUTER_FORROOT_GUARD"),HR=[Eu,{provide:Fp,useClass:Cp},Jt,Np,{provide:Fr,useFactory:MI,deps:[Jt]},H2,[]],NI=(()=>{let t=class t{constructor(n){}static forRoot(n,r){return{ngModule:t,providers:[HR,[],{provide:Ap,multi:!0,useValue:n},{provide:GS,useFactory:YR,deps:[[Jt,new Kd,new im]]},{provide:Rp,useValue:r||{}},r?.useHash?GR():WR(),zR(),r?.preloadingStrategy?UR(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?KR(r):[],r?.bindToComponentInputs?qR().\u0275providers:[],r?.enableViewTransitions?$R().\u0275providers:[],QR()]}}static forChild(n){return{ngModule:t,providers:[{provide:Ap,multi:!0,useValue:n}]}}};t.\u0275fac=function(r){return new(r||t)(Ye(GS,8))},t.\u0275mod=Qn({type:t}),t.\u0275inj=Kn({});let e=t;return e})();function zR(){return{provide:xI,useFactory:()=>{let e=Pe(aS),t=Pe(xn),i=Pe(Rp),n=Pe(G2),r=Pe(Fp);return i.scrollOffset&&e.setOffset(i.scrollOffset),new jR(r,n,e,t,i)}}}function GR(){return{provide:ua,useClass:nS}}function WR(){return{provide:ua,useClass:zy}}function YR(e){return"guarded"}function KR(e){return[e.initialNavigation==="disabled"?BR().\u0275providers:[],e.initialNavigation==="enabledBlocking"?VR().\u0275providers:[]]}var WS=new dt("");function QR(){return[{provide:WS,useFactory:AI},{provide:Xl,multi:!0,useExisting:WS}]}var BI=(()=>{let t=class t{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};t.\u0275fac=function(r){return new(r||t)(ee(Gi),ee(Rn))},t.\u0275dir=Bt({type:t});let e=t;return e})(),ju=(()=>{let t=class t extends BI{};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=Zn(t)))(o||t)}})(),t.\u0275dir=Bt({type:t,features:[_n]});let e=t;return e})(),Ss=new dt(""),ZR={provide:Ss,useExisting:Fi(()=>Yo),multi:!0},Yo=(()=>{let t=class t extends ju{writeValue(n){this.setProperty("checked",n)}};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=Zn(t)))(o||t)}})(),t.\u0275dir=Bt({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,o){r&1&&X("change",function(a){return o.onChange(a.target.checked)})("blur",function(){return o.onTouched()})},features:[Wi([ZR]),_n]});let e=t;return e})(),JR={provide:Ss,useExisting:Fi(()=>Yt),multi:!0};function XR(){let e=ca()?ca().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var eL=new dt(""),Yt=(()=>{let t=class t extends BI{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!XR())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};t.\u0275fac=function(r){return new(r||t)(ee(Gi),ee(Rn),ee(eL,8))},t.\u0275dir=Bt({type:t,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(r,o){r&1&&X("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[Wi([JR]),_n]});let e=t;return e})();function nl(e){return e==null||(typeof e=="string"||Array.isArray(e))&&e.length===0}function UI(e){return e!=null&&typeof e.length=="number"}var rl=new dt(""),Vp=new dt(""),tL=/^(?=.{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])?)*$/,se=class{static min(t){return qI(t)}static max(t){return $I(t)}static required(t){return nL(t)}static requiredTrue(t){return iL(t)}static email(t){return rL(t)}static minLength(t){return oL(t)}static maxLength(t){return HI(t)}static pattern(t){return sL(t)}static nullValidator(t){return yg(t)}static compose(t){return QI(t)}static composeAsync(t){return JI(t)}};function qI(e){return t=>{if(nl(t.value)||nl(e))return null;let i=parseFloat(t.value);return!isNaN(i)&&i<e?{min:{min:e,actual:t.value}}:null}}function $I(e){return t=>{if(nl(t.value)||nl(e))return null;let i=parseFloat(t.value);return!isNaN(i)&&i>e?{max:{max:e,actual:t.value}}:null}}function nL(e){return nl(e.value)?{required:!0}:null}function iL(e){return e.value===!0?null:{required:!0}}function rL(e){return nl(e.value)||tL.test(e.value)?null:{email:!0}}function oL(e){return t=>nl(t.value)||!UI(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}function HI(e){return t=>UI(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}function sL(e){if(!e)return yg;let t,i;return typeof e=="string"?(i="",e.charAt(0)!=="^"&&(i+="^"),i+=e,e.charAt(e.length-1)!=="$"&&(i+="$"),t=new RegExp(i)):(i=e.toString(),t=e),n=>{if(nl(n.value))return null;let r=n.value;return t.test(r)?null:{pattern:{requiredPattern:i,actualValue:r}}}}function yg(e){return null}function zI(e){return e!=null}function GI(e){return Jl(e)?Bn(e):e}function WI(e){let t={};return e.forEach(i=>{t=i!=null?ze(ze({},t),i):t}),Object.keys(t).length===0?null:t}function YI(e,t){return t.map(i=>i(e))}function aL(e){return!e.validate}function KI(e){return e.map(t=>aL(t)?t:i=>t.validate(i))}function QI(e){if(!e)return null;let t=e.filter(zI);return t.length==0?null:function(i){return WI(YI(i,t))}}function ZI(e){return e!=null?QI(KI(e)):null}function JI(e){if(!e)return null;let t=e.filter(zI);return t.length==0?null:function(i){let n=YI(i,t).map(GI);return Nd(n).pipe(ut(WI))}}function XI(e){return e!=null?JI(KI(e)):null}function PI(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function ex(e){return e._rawValidators}function tx(e){return e._rawAsyncValidators}function Y2(e){return e?Array.isArray(e)?e:[e]:[]}function bg(e,t){return Array.isArray(e)?e.includes(t):e===t}function OI(e,t){let i=Y2(t);return Y2(e).forEach(r=>{bg(i,r)||i.push(r)}),i}function RI(e,t){return Y2(t).filter(i=>!bg(e,i))}var _g=class{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(t){this._rawValidators=t||[],this._composedValidatorFn=ZI(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=XI(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,i){return this.control?this.control.hasError(t,i):!1}getError(t,i){return this.control?this.control.getError(t,i):null}},fo=class extends _g{get formDirective(){return null}get path(){return null}},il=class extends _g{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Cg=class{constructor(t){this._cd=t}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}},lL={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},XQ=An(ze({},lL),{"[class.ng-submitted]":"isSubmitted"}),Xt=(()=>{let t=class t extends Cg{constructor(n){super(n)}};t.\u0275fac=function(r){return new(r||t)(ee(il,2))},t.\u0275dir=Bt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&za("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[_n]});let e=t;return e})(),sn=(()=>{let t=class t extends Cg{constructor(n){super(n)}};t.\u0275fac=function(r){return new(r||t)(ee(fo,10))},t.\u0275dir=Bt({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&za("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[_n]});let e=t;return e})();var kp="VALID",vg="INVALID",Ru="PENDING",jp="DISABLED";function J2(e){return(xg(e)?e.validators:e)||null}function cL(e){return Array.isArray(e)?ZI(e):e||null}function X2(e,t){return(xg(t)?t.asyncValidators:e)||null}function uL(e){return Array.isArray(e)?XI(e):e||null}function xg(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function nx(e,t,i){let n=e.controls;if(!(t?Object.keys(n):n).length)throw new ct(1e3,"");if(!n[i])throw new ct(1001,"")}function ix(e,t,i){e._forEachChild((n,r)=>{if(i[r]===void 0)throw new ct(1002,"")})}var ku=class{constructor(t,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(i)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===kp}get invalid(){return this.status===vg}get pending(){return this.status==Ru}get disabled(){return this.status===jp}get enabled(){return this.status!==jp}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(OI(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(OI(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(RI(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(RI(t,this._rawAsyncValidators))}hasValidator(t){return bg(this._rawValidators,t)}hasAsyncValidator(t){return bg(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(i=>{i.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Ru,t.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){let i=this._parentMarkedDirty(t.onlySelf);this.status=jp,this.errors=null,this._forEachChild(n=>{n.disable(An(ze({},t),{onlySelf:!0}))}),this._updateValue(),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(An(ze({},t),{skipPristineCheck:i})),this._onDisabledChange.forEach(n=>n(!0))}enable(t={}){let i=this._parentMarkedDirty(t.onlySelf);this.status=kp,this._forEachChild(n=>{n.enable(An(ze({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(An(ze({},t),{skipPristineCheck:i})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===kp||this.status===Ru)&&this._runAsyncValidator(t.emitEvent)),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(i=>i._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?jp:kp}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Ru,this._hasOwnPendingAsyncValidator=!0;let i=GI(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,i={}){this.errors=t,this._updateControlsErrors(i.emitEvent!==!1)}get(t){let i=t;return i==null||(Array.isArray(i)||(i=i.split(".")),i.length===0)?null:i.reduce((n,r)=>n&&n._find(r),this)}getError(t,i){let n=i?this.get(i):this;return n&&n.errors?n.errors[t]:null}hasError(t,i){return!!this.getError(t,i)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new ot,this.statusChanges=new ot}_calculateStatus(){return this._allControlsDisabled()?jp:this.errors?vg:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ru)?Ru:this._anyControlsHaveStatus(vg)?vg:kp}_anyControlsHaveStatus(t){return this._anyControls(i=>i.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){xg(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let i=this._parent&&this._parent.dirty;return!t&&!!i&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=cL(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=uL(this._rawAsyncValidators)}},wg=class extends ku{constructor(t,i,n){super(J2(i),X2(n,i)),this.controls=t,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,i){return this.controls[t]?this.controls[t]:(this.controls[t]=i,i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange),i)}addControl(t,i,n={}){this.registerControl(t,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}setControl(t,i,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],i&&this.registerControl(t,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,i={}){ix(this,!0,t),Object.keys(t).forEach(n=>{nx(this,!0,n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(t,i={}){t!=null&&(Object.keys(t).forEach(n=>{let r=this.controls[n];r&&r.patchValue(t[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(t={},i={}){this._forEachChild((n,r)=>{n.reset(t?t[r]:null,{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i),this._updateTouched(i),this.updateValueAndValidity(i)}getRawValue(){return this._reduceChildren({},(t,i,n)=>(t[n]=i.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(i,n)=>n._syncPendingControls()?!0:i);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(i=>{let n=this.controls[i];n&&t(n,i)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[i,n]of Object.entries(this.controls))if(this.contains(i)&&t(n))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(i,n,r)=>((n.enabled||this.disabled)&&(i[r]=n.value),i))}_reduceChildren(t,i){let n=t;return this._forEachChild((r,o)=>{n=i(n,r,o)}),n}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var K2=class extends wg{};var Bp=new dt("CallSetDisabledState",{providedIn:"root",factory:()=>Up}),Up="always";function eb(e,t){return[...t.path,e]}function Q2(e,t,i=Up){tb(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||i==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),pL(e,t),hL(e,t),fL(e,t),dL(e,t)}function Eg(e,t,i=!0){let n=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),Ig(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function Sg(e,t){e.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(t)})}function dL(e,t){if(t.valueAccessor.setDisabledState){let i=n=>{t.valueAccessor.setDisabledState(n)};e.registerOnDisabledChange(i),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(i)})}}function tb(e,t){let i=ex(e);t.validator!==null?e.setValidators(PI(i,t.validator)):typeof i=="function"&&e.setValidators([i]);let n=tx(e);t.asyncValidator!==null?e.setAsyncValidators(PI(n,t.asyncValidator)):typeof n=="function"&&e.setAsyncValidators([n]);let r=()=>e.updateValueAndValidity();Sg(t._rawValidators,r),Sg(t._rawAsyncValidators,r)}function Ig(e,t){let i=!1;if(e!==null){if(t.validator!==null){let r=ex(e);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==t.validator);o.length!==r.length&&(i=!0,e.setValidators(o))}}if(t.asyncValidator!==null){let r=tx(e);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==t.asyncValidator);o.length!==r.length&&(i=!0,e.setAsyncValidators(o))}}}let n=()=>{};return Sg(t._rawValidators,n),Sg(t._rawAsyncValidators,n),i}function pL(e,t){t.valueAccessor.registerOnChange(i=>{e._pendingValue=i,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&rx(e,t)})}function fL(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&rx(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function rx(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function hL(e,t){let i=(n,r)=>{t.valueAccessor.writeValue(n),r&&t.viewToModelUpdate(n)};e.registerOnChange(i),t._registerOnDestroy(()=>{e._unregisterOnChange(i)})}function mL(e,t){e==null,tb(e,t)}function gL(e,t){return Ig(e,t)}function ox(e,t){if(!e.hasOwnProperty("model"))return!1;let i=e.model;return i.isFirstChange()?!0:!Object.is(t,i.currentValue)}function vL(e){return Object.getPrototypeOf(e.constructor)===ju}function yL(e,t){e._syncPendingControls(),t.forEach(i=>{let n=i.control;n.updateOn==="submit"&&n._pendingChange&&(i.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function sx(e,t){if(!t)return null;Array.isArray(t);let i,n,r;return t.forEach(o=>{o.constructor===Yt?i=o:vL(o)?n=o:r=o}),r||n||i||null}function bL(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}function LI(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}function kI(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var Lu=class extends ku{constructor(t=null,i,n){super(J2(i),X2(n,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),xg(i)&&(i.nonNullable||i.initialValueIsDefault)&&(kI(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,i={}){this.value=this._pendingValue=t,this._onChange.length&&i.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,i.emitViewToModelChange!==!1)),this.updateValueAndValidity(i)}patchValue(t,i={}){this.setValue(t,i)}reset(t=this.defaultValue,i={}){this._applyFormState(t),this.markAsPristine(i),this.markAsUntouched(i),this.setValue(this.value,i),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){LI(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){LI(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){kI(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var _L=e=>e instanceof Lu,CL=(()=>{let t=class t extends fo{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return eb(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=Zn(t)))(o||t)}})(),t.\u0275dir=Bt({type:t,features:[_n]});let e=t;return e})();var an=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=Bt({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let e=t;return e})(),wL={provide:Ss,useExisting:Fi(()=>Hn),multi:!0},Hn=(()=>{let t=class t extends ju{writeValue(n){let r=n??"";this.setProperty("value",r)}registerOnChange(n){this.onChange=r=>{n(r==""?null:parseFloat(r))}}};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=Zn(t)))(o||t)}})(),t.\u0275dir=Bt({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,o){r&1&&X("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[Wi([wL]),_n]});let e=t;return e})(),EL={provide:Ss,useExisting:Fi(()=>rc),multi:!0};var SL=(()=>{let t=class t{constructor(){this._accessors=[]}add(n,r){this._accessors.push([n,r])}remove(n){for(let r=this._accessors.length-1;r>=0;--r)if(this._accessors[r][1]===n){this._accessors.splice(r,1);return}}select(n){this._accessors.forEach(r=>{this._isSameGroup(r,n)&&r[1]!==n&&r[1].fireUncheck(n.value)})}_isSameGroup(n,r){return n[0].control?n[0]._parent===r._control._parent&&n[1].name===r.name:!1}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),rc=(()=>{let t=class t extends ju{constructor(n,r,o,s){super(n,r),this._registry=o,this._injector=s,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=Pe(Bp,{optional:!0})??Up}ngOnInit(){this._control=this._injector.get(il),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(n){this._state=n===this.value,this.setProperty("checked",this._state)}registerOnChange(n){this._fn=n,this.onChange=()=>{n(this.value),this._registry.select(this)}}setDisabledState(n){(this.setDisabledStateFired||n||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",n),this.setDisabledStateFired=!0}fireUncheck(n){this.writeValue(n)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}};t.\u0275fac=function(r){return new(r||t)(ee(Gi),ee(Rn),ee(SL),ee(qo))},t.\u0275dir=Bt({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(r,o){r&1&&X("change",function(){return o.onChange()})("blur",function(){return o.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Wi([EL]),_n]});let e=t;return e})();var nb=new dt(""),IL={provide:il,useExisting:Fi(()=>qp)},qp=(()=>{let t=class t extends il{set isDisabled(n){}constructor(n,r,o,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new ot,this._ngModelWarningSent=!1,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=sx(this,o)}ngOnChanges(n){if(this._isControlChanged(n)){let r=n.form.previousValue;r&&Eg(r,this,!1),Q2(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ox(n,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Eg(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_isControlChanged(n){return n.hasOwnProperty("form")}};t._ngModelWarningSentOnce=!1,t.\u0275fac=function(r){return new(r||t)(ee(rl,10),ee(Vp,10),ee(Ss,10),ee(nb,8),ee(Bp,8))},t.\u0275dir=Bt({type:t,selectors:[["","formControl",""]],inputs:{form:[xt.None,"formControl","form"],isDisabled:[xt.None,"disabled","isDisabled"],model:[xt.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Wi([IL]),_n,qn]});let e=t;return e})(),xL={provide:fo,useExisting:Fi(()=>en)},en=(()=>{let t=class t extends fo{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ot,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ig(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let r=this.form.get(n.path);return Q2(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){Eg(n.control||null,n,!1),bL(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this.submitted=!0,yL(this.form,this.directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{let r=n.control,o=this.form.get(n.path);r!==o&&(Eg(r||null,n),_L(o)&&(Q2(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let r=this.form.get(n.path);mL(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let r=this.form.get(n.path);r&&gL(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){tb(this.form,this),this._oldForm&&Ig(this._oldForm,this)}_checkFormPresent(){this.form}};t.\u0275fac=function(r){return new(r||t)(ee(rl,10),ee(Vp,10),ee(Bp,8))},t.\u0275dir=Bt({type:t,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&X("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[xt.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Wi([xL]),_n,qn]});let e=t;return e})(),DL={provide:fo,useExisting:Fi(()=>Is)},Is=(()=>{let t=class t extends CL{constructor(n,r,o){super(),this.name=null,this._parent=n,this._setValidators(r),this._setAsyncValidators(o)}_checkParentType(){ax(this._parent)}};t.\u0275fac=function(r){return new(r||t)(ee(fo,13),ee(rl,10),ee(Vp,10))},t.\u0275dir=Bt({type:t,selectors:[["","formGroupName",""]],inputs:{name:[xt.None,"formGroupName","name"]},features:[Wi([DL]),_n]});let e=t;return e})(),ML={provide:fo,useExisting:Fi(()=>xs)},xs=(()=>{let t=class t extends fo{constructor(n,r,o){super(),this.name=null,this._parent=n,this._setValidators(r),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return eb(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){ax(this._parent)}};t.\u0275fac=function(r){return new(r||t)(ee(fo,13),ee(rl,10),ee(Vp,10))},t.\u0275dir=Bt({type:t,selectors:[["","formArrayName",""]],inputs:{name:[xt.None,"formArrayName","name"]},features:[Wi([ML]),_n]});let e=t;return e})();function ax(e){return!(e instanceof Is)&&!(e instanceof en)&&!(e instanceof xs)}var AL={provide:il,useExisting:Fi(()=>nn)},nn=(()=>{let t=class t extends il{set isDisabled(n){}constructor(n,r,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new ot,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=sx(this,s)}ngOnChanges(n){this._added||this._setUpControl(),ox(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return eb(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};t._ngModelWarningSentOnce=!1,t.\u0275fac=function(r){return new(r||t)(ee(fo,13),ee(rl,10),ee(Vp,10),ee(Ss,10),ee(nb,8))},t.\u0275dir=Bt({type:t,selectors:[["","formControlName",""]],inputs:{name:[xt.None,"formControlName","name"],isDisabled:[xt.None,"disabled","isDisabled"],model:[xt.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Wi([AL]),_n,qn]});let e=t;return e})(),TL={provide:Ss,useExisting:Fi(()=>Ei),multi:!0};function lx(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function FL(e){return e.split(":")[0]}var Ei=(()=>{let t=class t extends ju{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let r=this._getOptionId(n),o=lx(r,n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){let r=FL(n);return this._optionMap.has(r)?this._optionMap.get(r):n}};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=Zn(t)))(o||t)}})(),t.\u0275dir=Bt({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){r&1&&X("change",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[Wi([TL]),_n]});let e=t;return e})(),Vi=(()=>{let t=class t{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(lx(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};t.\u0275fac=function(r){return new(r||t)(ee(Rn),ee(Gi),ee(Ei,9))},t.\u0275dir=Bt({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let e=t;return e})(),NL={provide:Ss,useExisting:Fi(()=>cx),multi:!0};function jI(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function PL(e){return e.split(":")[0]}var cx=(()=>{let t=class t extends ju{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let r;if(Array.isArray(n)){let o=n.map(s=>this._getOptionId(s));r=(s,a)=>{s._setSelected(o.indexOf(a.toString())>-1)}}else r=(o,s)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{let o=[],s=r.selectedOptions;if(s!==void 0){let a=s;for(let l=0;l<a.length;l++){let p=a[l],h=this._getOptionValue(p.value);o.push(h)}}else{let a=r.options;for(let l=0;l<a.length;l++){let p=a[l];if(p.selected){let h=this._getOptionValue(p.value);o.push(h)}}}this.value=o,n(o)}}_registerOption(n){let r=(this._idCounter++).toString();return this._optionMap.set(r,n),r}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,n))return r;return null}_getOptionValue(n){let r=PL(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=Zn(t)))(o||t)}})(),t.\u0275dir=Bt({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){r&1&&X("change",function(a){return o.onChange(a.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[Wi([NL]),_n]});let e=t;return e})(),Bi=(()=>{let t=class t{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(jI(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(jI(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};t.\u0275fac=function(r){return new(r||t)(ee(Rn),ee(Gi),ee(cx,9))},t.\u0275dir=Bt({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let e=t;return e})();function OL(e){return typeof e=="number"?e:parseInt(e,10)}function ux(e){return typeof e=="number"?e:parseFloat(e)}var ib=(()=>{let t=class t{constructor(){this._validator=yg}ngOnChanges(n){if(this.inputName in n){let r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):yg,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=Bt({type:t,features:[qn]});let e=t;return e})(),RL={provide:rl,useExisting:Fi(()=>rb),multi:!0},rb=(()=>{let t=class t extends ib{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=n=>ux(n),this.createValidator=n=>$I(n)}};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=Zn(t)))(o||t)}})(),t.\u0275dir=Bt({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&Wt("max",o._enabled?o.max:null)},inputs:{max:"max"},features:[Wi([RL]),_n]});let e=t;return e})(),LL={provide:rl,useExisting:Fi(()=>ob),multi:!0},ob=(()=>{let t=class t extends ib{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=n=>ux(n),this.createValidator=n=>qI(n)}};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=Zn(t)))(o||t)}})(),t.\u0275dir=Bt({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&Wt("min",o._enabled?o.min:null)},inputs:{min:"min"},features:[Wi([LL]),_n]});let e=t;return e})();var kL={provide:rl,useExisting:Fi(()=>$p),multi:!0},$p=(()=>{let t=class t extends ib{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=n=>OL(n),this.createValidator=n=>HI(n)}};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=Zn(t)))(o||t)}})(),t.\u0275dir=Bt({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&Wt("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Wi([kL]),_n]});let e=t;return e})();var dx=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=Qn({type:t}),t.\u0275inj=Kn({});let e=t;return e})(),Z2=class extends ku{constructor(t,i,n){super(J2(i),X2(n,i)),this.controls=t,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,i={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}insert(t,i,n={}){this.controls.splice(t,0,i),this._registerControl(i),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,i={}){let n=this._adjustIndex(t);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:i.emitEvent})}setControl(t,i,n={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),i&&(this.controls.splice(r,0,i),this._registerControl(i)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,i={}){ix(this,!1,t),t.forEach((n,r)=>{nx(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(t,i={}){t!=null&&(t.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(t=[],i={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i),this._updateTouched(i),this.updateValueAndValidity(i)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(i=>i._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((i,n)=>n._syncPendingControls()?!0:i,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((i,n)=>{t(i,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(i=>i.enabled&&t(i))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};function VI(e){return!!e&&(e.asyncValidators!==void 0||e.validators!==void 0||e.updateOn!==void 0)}var ln=(()=>{let t=class t{constructor(){this.useNonNullable=!1}get nonNullable(){let n=new t;return n.useNonNullable=!0,n}group(n,r=null){let o=this._reduceControls(n),s={};return VI(r)?s=r:r!==null&&(s.validators=r.validator,s.asyncValidators=r.asyncValidator),new wg(o,s)}record(n,r=null){let o=this._reduceControls(n);return new K2(o,r)}control(n,r,o){let s={};return this.useNonNullable?(VI(r)?s=r:(s.validators=r,s.asyncValidators=o),new Lu(n,An(ze({},s),{nonNullable:!0}))):new Lu(n,r,o)}array(n,r,o){let s=n.map(a=>this._createControl(a));return new Z2(s,r,o)}_reduceControls(n){let r={};return Object.keys(n).forEach(o=>{r[o]=this._createControl(n[o])}),r}_createControl(n){if(n instanceof Lu)return n;if(n instanceof ku)return n;if(Array.isArray(n)){let r=n[0],o=n.length>1?n[1]:null,s=n.length>2?n[2]:null;return this.control(r,o,s)}else return this.control(n)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Vu=(()=>{let t=class t{static withConfig(n){return{ngModule:t,providers:[{provide:Bp,useValue:n.callSetDisabledState??Up}]}}};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=Qn({type:t}),t.\u0275inj=Kn({imports:[dx]});let e=t;return e})(),$t=(()=>{let t=class t{static withConfig(n){return{ngModule:t,providers:[{provide:nb,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Bp,useValue:n.callSetDisabledState??Up}]}}};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=Qn({type:t}),t.\u0275inj=Kn({imports:[dx]});let e=t;return e})();var Si={production:!1,apiUrl:"https://grupo2.java2024.linti.unlp.edu.ar",globalVar:"valorGlobal"};var qi=(()=>{let t=class t{constructor(n){this.http=n,this.apiUrl=Si.apiUrl+"/api/login"}logIn(n,r,o){return this.http.post(`${this.apiUrl}`,{email:n,password:r}).pipe(ut(s=>{let a=s.JWT.string,l=this.decodeToken(a),p=l.role,h=l.id;return console.log("role, userId",p,h),o?(this.clearStorageItems(),this.setStorageItems(a,p,h)):(this.clearSessionItems(),this.setSessionItems(a,p,h)),{success:!0}}),nt(s=>{let a="Login failed";return s.status===401?a="Invalid email or password":s.status===404&&(a="Email not found"),mt({success:!1,message:a})}))}logOut(){this.clearStorageItems(),this.clearSessionItems()}isLoggedIn(){return!!this.getStorageItem("authToken")||!!this.getSessionItem("authToken")}getUserRole(){return this.getStorageItem("role")||this.getSessionItem("role")||null}getUserId(){return this.getStorageItem("userId")||this.getSessionItem("userId")||null}getToken(){return this.getStorageItem("authToken")||this.getSessionItem("authToken")||null}setStorageItems(n,r,o){try{localStorage.setItem("authToken",n),localStorage.setItem("role",r),localStorage.setItem("userId",o)}catch(s){console.error("Error setting items in localStorage:",s)}}setSessionItems(n,r,o){try{sessionStorage.setItem("authToken",n),sessionStorage.setItem("role",r),sessionStorage.setItem("userId",o)}catch(s){console.error("Error setting items in sessionStorage:",s)}}clearStorageItems(){try{localStorage.removeItem("authToken"),localStorage.removeItem("role"),localStorage.removeItem("userId")}catch(n){console.error("Error clearing items from localStorage:",n)}}clearSessionItems(){try{sessionStorage.removeItem("authToken"),sessionStorage.removeItem("role"),sessionStorage.removeItem("userId")}catch(n){console.error("Error clearing items from sessionStorage:",n)}}getStorageItem(n){try{return localStorage.getItem(n)}catch{return null}}getSessionItem(n){try{return sessionStorage.getItem(n)}catch{return null}}decodeToken(n){return JSON.parse(atob(n.split(".")[1]))}};t.\u0275fac=function(r){return new(r||t)(Ye(ui))},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Dg=e=>({"is-invalid":e}),px=(()=>{let t=class t{constructor(n,r,o){this.authService=n,this.router=r,this.formBuilder=o,this.error="",this.loginForm=this.formBuilder.group({email:["",[se.required,se.email]],password:["",se.required],rememberMe:[!1]})}onLogin(){if(this.loginForm.valid){let{email:n,password:r,rememberMe:o}=this.loginForm.value;this.authService.logIn(n,r,o).subscribe(s=>{s.success?this.router.navigate(["/home"]):this.error=s.message||"Error de inicio de sesi\xF3n"})}else this.error="Email y Contrase\xF1a invalidos"}};t.\u0275fac=function(r){return new(r||t)(ee(qi),ee(Jt),ee(ln))},t.\u0275cmp=Re({type:t,selectors:[["app-login"]],standalone:!0,features:[Ve],decls:30,vars:14,consts:[["aux","ngForm"],[1,"container-fluid","vh-100","d-flex","flex-column","justify-content-center","align-items-center","login-background",2,"overflow","hidden"],[1,"logo-container","mb-5"],["src","assets/logo_salacomunitaria.svg","alt","Logo principal",1,"img-fluid","logo-principal"],[1,"login-container","col-12","col-md-8","col-lg-8","col-xl-4"],[1,"login-form","p-4","shadow",3,"ngSubmit","formGroup"],[1,"input-group","mb-3"],[1,"input-group-text","text-white","align-items-center","justify-content-center",3,"ngClass"],[1,"bi","bi-envelope"],["type","email","id","email","formControlName","email","placeholder","Ingrese su email","aria-label","Email",1,"form-control","login-input","text-white",3,"ngClass"],[1,"bi","bi-lock"],["type","password","id","password","formControlName","password","placeholder","Ingrese su contrase\xF1a","aria-label","Contrase\xF1a",1,"form-control","login-input","text-white",3,"ngClass"],["type","submit",1,"btn","login-btn","w-100","text-white"],[1,"error-container"],[1,"error-message"],[1,"form-check"],["type","checkbox","id","rememberMe","formControlName","rememberMe",1,"form-check-input"],["for","rememberMe",1,"form-check-label"],[1,"footer","mt-auto","py-3","w-100"],[1,"container","d-flex","justify-content-center","align-items-center","footer-container"],["src","assets/logo_informatica.png","alt","Logo facultad Informatica",1,"logo-footer","mx-2"],[1,"vr"],["src","assets/logo_unlp.png","alt","Logo UNLP",1,"logo-footer","mx-2"],["src","assets/logo_veterinaria.png","alt","Logo facultad Veterinaria",1,"logo-footer","mx-2"]],template:function(r,o){if(r&1){let s=je();d(0,"div",1)(1,"div",2),z(2,"img",3),u(),d(3,"div",4)(4,"form",5,0),X("ngSubmit",function(){return fe(s),he(o.onLogin())}),d(6,"div",6)(7,"span",7),z(8,"i",8),u(),z(9,"input",9),u(),d(10,"div",6)(11,"span",7),z(12,"i",10),u(),z(13,"input",11),u(),d(14,"button",12),C(15," LOGIN "),u(),d(16,"div",13)(17,"span",14),C(18),u()(),d(19,"div",15),z(20,"input",16),d(21,"label",17),C(22,"Recordarme"),u()()()(),d(23,"footer",18)(24,"div",19),z(25,"img",20)(26,"div",21)(27,"img",22)(28,"div",21)(29,"img",23),u()()()}if(r&2){let s,a,l,p,h=vt(5);b(4),_("formGroup",o.loginForm),b(3),_("ngClass",ye(6,Dg,(((s=o.loginForm.get("email"))==null?null:s.dirty)||((s=o.loginForm.get("email"))==null?null:s.touched)||h.submitted)&&((s=o.loginForm.get("email"))==null?null:s.invalid))),b(2),_("ngClass",ye(8,Dg,(((a=o.loginForm.get("email"))==null?null:a.dirty)||((a=o.loginForm.get("email"))==null?null:a.touched)||h.submitted)&&((a=o.loginForm.get("email"))==null?null:a.invalid))),b(2),_("ngClass",ye(10,Dg,(((l=o.loginForm.get("password"))==null?null:l.dirty)||((l=o.loginForm.get("password"))==null?null:l.touched)||h.submitted)&&((l=o.loginForm.get("password"))==null?null:l.invalid))),b(2),_("ngClass",ye(12,Dg,(((p=o.loginForm.get("password"))==null?null:p.dirty)||((p=o.loginForm.get("password"))==null?null:p.touched)||h.submitted)&&((p=o.loginForm.get("password"))==null?null:p.invalid))),b(5),on(o.error)}},dependencies:[$t,an,Yt,Yo,Xt,sn,en,nn,rt,kt],styles:[`@charset "UTF-8";[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/login.svg);background-size:cover;background-position:center;background-repeat:no-repeat}html[_ngcontent-%COMP%]{font-family:Roboto!important;font-size:24pt!important;font-weight:200!important;font-stretch:condensed!important}.login-background[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100vh;padding:15px;position:relative}.logo-container[_ngcontent-%COMP%]{padding-top:5vh;text-align:center;width:30%}.logo-principal[_ngcontent-%COMP%]{max-width:45%;height:auto}.login-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;z-index:1;align-items:center;justify-items:center}.login-form[_ngcontent-%COMP%]{padding:2rem;box-shadow:0 6px 8px #0000001a;width:auto}.input-group[_ngcontent-%COMP%]{width:23.6682291667vw;height:75px!important;border:1px solid black}.input-group-text[_ngcontent-%COMP%]{background-color:#1b5e20;border-radius:0;border:1px solid transparent;width:75px;font-size:2rem}.login-input[_ngcontent-%COMP%]{background-color:#88ca5e;border-radius:0;border:1px solid transparent}.login-btn[_ngcontent-%COMP%]{background-color:#1b5e20;border-radius:0;height:75px;border:1px solid black}.footer[_ngcontent-%COMP%]{padding-top:5vh!important;padding-bottom:.5vh!important}.footer-container[_ngcontent-%COMP%]{padding-top:5vh;max-width:45%;max-height:20%}.logo-footer[_ngcontent-%COMP%]{width:30%;height:100px;object-fit:contain}.vr[_ngcontent-%COMP%]{border-left:1px solid black}.form-check[_ngcontent-%COMP%]{padding-top:1rem}.form-check-input[type=checkbox][_ngcontent-%COMP%]{border-radius:0%;border:1px solid black;background-color:#88ca5e}.form-check-input[type=checkbox][_ngcontent-%COMP%]:checked{background-color:#1b5e20}.error-container[_ngcontent-%COMP%]{padding-top:.4rem;height:1.8rem}.error-message[_ngcontent-%COMP%]{color:red;font-size:1.2rem;margin-top:2%}.form-control.is-invalid[_ngcontent-%COMP%], .input-group-text.is-invalid[_ngcontent-%COMP%]{border-color:red;box-shadow:0 0 0 .2rem #ff000040}.input-group-text.is-invalid[_ngcontent-%COMP%]{background-color:red}.form-control.is-valid[_ngcontent-%COMP%], .input-group-text.is-valid[_ngcontent-%COMP%]{border-color:#28a745}.input-group-text.is-valid[_ngcontent-%COMP%]{background-color:#28a745}@media screen and (max-width: 1280px){.login-btn[_ngcontent-%COMP%], .input-group[_ngcontent-%COMP%], .input-group-text[_ngcontent-%COMP%]{height:45px!important}}
+/*# sourceMappingURL=login.component-V4GLU5XR.css.map */`]});let e=t;return e})();function jL(e,t){e&1&&(d(0,"div",7)(1,"a",24),C(2,"USUARIOS"),u()())}var Fn=(()=>{let t=class t{constructor(n,r){this.authService=n,this.router=r,this.isAdmin=!1}ngOnInit(){this.isAdmin=this.authService.getUserRole()==="Admin"}logout(){this.authService.logOut(),this.router.navigate(["/"])}};t.\u0275fac=function(r){return new(r||t)(ee(qi),ee(Jt))},t.\u0275cmp=Re({type:t,selectors:[["app-navbar"]],standalone:!0,features:[Ve],decls:40,vars:1,consts:[[1,"navbar","navbar-container"],[1,"container-fluid","text-center"],[1,"row","tex-white"],[1,"col","col-md-3","col-lg","col-xl-2"],["routerLink","/home",1,"hidden-link"],[1,"col","d-flex"],[1,"row"],[1,"col","justify-content-center"],["routerLink","/inventory","routerLinkActive","active-link",1,"nav-link"],["routerLink","/production","routerLinkActive","active-link",1,"nav-link"],["routerLink","/recipes","routerLinkActive","active-link",1,"nav-link"],[1,"col","d-flex","col-lg-1"],[1,"col","d-flex","justify-content-end"],["routerLink","/history","routerLinkActive","active-link",1,"nav-link"],["class","col justify-content-center",4,"ngIf"],[1,"col","justify-content-end"],[1,"dropdown"],["type","button","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","btn-light"],[1,"bi","bi-list"],[1,"dropdown-menu","dropdown-menu-end","custom-dropdown-menu"],["routerLink","/providers","type","button",1,"dropdown-item"],["routerLink","/clients","type","button",1,"dropdown-item"],["routerLink","/profile","type","button",1,"dropdown-item"],["type","button",1,"dropdown-item",3,"click"],["routerLink","/users","routerLinkActive","active-link",1,"nav-link"]],template:function(r,o){r&1&&(d(0,"nav",0)(1,"div",1)(2,"div",2)(3,"div",3),z(4,"a",4),u(),d(5,"div",5)(6,"div",6)(7,"div",7)(8,"a",8),C(9,"INVENTARIO"),u()(),d(10,"div",7)(11,"a",9),C(12,"PRODUCCION"),u()(),d(13,"div",7)(14,"a",10),C(15,"RECETAS"),u()()()(),z(16,"div",11),d(17,"div",12)(18,"div",6)(19,"div",7)(20,"a",13),C(21,"HISTORIAL"),u()(),R(22,jL,3,0,"div",14),d(23,"div",15)(24,"div",16)(25,"button",17),z(26,"i",18),u(),d(27,"ul",19)(28,"li")(29,"button",20),C(30,"| PROVEEDORES"),u()(),d(31,"li")(32,"button",21),C(33,"| CLIENTES"),u()(),d(34,"li")(35,"button",22),C(36,"| MI PERFIL"),u()(),d(37,"li")(38,"button",23),X("click",function(){return o.logout()}),C(39,"| CERRAR SESI\xD3N"),u()()()()()()()()()()),r&2&&(b(22),_("ngIf",o.isAdmin))},dependencies:[rt,st,NI,fg,II],styles:[`@charset "UTF-8";[_nghost-%COMP%]{display:block;width:100%;height:100px;background-image:url(/assets/views/navbar.svg);background-size:cover;background-position:left;background-repeat:no-repeat}.btn[_ngcontent-%COMP%]{font-size:1.7rem!important}.nav-link[_ngcontent-%COMP%]{font-family:LEMONMILK Light,sans-serif;font-size:1.5rem;color:#fff}.container-fluid[_ngcontent-%COMP%]{height:100%}.col[_ngcontent-%COMP%]{height:100%;display:flex;align-items:center}.navbar-container[_ngcontent-%COMP%]{height:100%}.row[_ngcontent-%COMP%]{width:100%;height:100%;align-items:center}.nav-link[_ngcontent-%COMP%]{margin:5px 0;color:#fff;font-size:1.3rem;text-decoration:none}.nav-icon[_ngcontent-%COMP%]{margin:5px 0;cursor:pointer;height:24px;text-decoration:none}.dropdown-menu[_ngcontent-%COMP%]{border-radius:0}.custom-dropdown-menu[_ngcontent-%COMP%]{right:-6vw;width:1100%;left:auto;background-color:#1b5e20}.dropdown-item[_ngcontent-%COMP%]{color:#fff;font-size:2rem;padding-top:1.2rem;padding-bottom:1.2rem;padding-left:2rem}.active-link[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;font-size:1.6rem;text-decoration:none!important}.hidden-link[_ngcontent-%COMP%]{width:100%;height:100%}.dropdown-item[_ngcontent-%COMP%]:hover{background-color:#1b5e20;color:#88ca5e;text-decoration:none}@media (min-width: 1920px){.col-xl-3[_ngcontent-%COMP%]{width:16.66666667%}}@media screen and (max-width: 1280px){.nav-link[_ngcontent-%COMP%]{font-size:.8rem!important}}
+/*# sourceMappingURL=navbar.component-LZSO7YWV.css.map */`]});let e=t;return e})();function ft(e){let t="";return ls(()=>new Error(t))}function ol(e){return e.map(t=>{let i={};for(let n in t)i[n]=t[n];return i})}function fx(e){return{id:e.id,name:e.name,surname:e.surname,email:e.email,phone:e.phone,password:e.password,role:e.role}}var Ds=e=>{if(!e)return"";let t=new Date(e),i=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0"),o=String(t.getHours()).padStart(2,"0"),s=String(t.getMinutes()).padStart(2,"0");return`${i}-${n}-${r}T${o}:${s}`};function Uu(e){let[t,i]=e.split(" "),[n,r,o]=t.split("/").map(Number),[s,a]=i.split(":").map(Number),l=o+2e3;return new Date(l,r-1,n,s,a).toISOString().slice(0,19)}var er=(()=>{let t=class t{constructor(n){this.http=n,this.apiUrl=Si.apiUrl+"/api/user"}getUsers(){return this.http.get(this.apiUrl).pipe(ut(n=>ol(n)),nt(ft))}getUsersById(n){return this.http.get(`${this.apiUrl}/${n}`).pipe(ut(r=>fx(r)),nt(ft))}createUser(n){return this.http.post(this.apiUrl,n).pipe(nt(ft))}updateUser(n){return this.http.put(this.apiUrl,n).pipe(nt(ft))}deleteUser(n){return this.http.delete(`${this.apiUrl}/${n}`).pipe(nt(ft))}};t.\u0275fac=function(r){return new(r||t)(Ye(ui))},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var hx=(()=>{let t=class t{constructor(n,r){this.UsersService=n,this.AuthService=r,this.user={}}ngOnInit(){let n=this.AuthService.getUserId();this.UsersService.getUsersById(n).subscribe(r=>{this.user=r})}};t.\u0275fac=function(r){return new(r||t)(ee(er),ee(qi))},t.\u0275cmp=Re({type:t,selectors:[["app-home"]],standalone:!0,features:[Ve],decls:5,vars:2,consts:[[1,"row"],[1,"col-md-12"],[1,"welcome"]],template:function(r,o){r&1&&(z(0,"app-navbar"),d(1,"div",0)(2,"div",1)(3,"h1",2),C(4),u()()()),r&2&&(b(4),rp("\xA1Bienvenido ",o.user.name," ",o.user.surname,"!"))},dependencies:[Fn],styles:[`[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/home.svg);background-size:cover;background-position:center;background-repeat:no-repeat}.welcome[_ngcontent-%COMP%]{padding-left:4rem;padding-top:4rem;font-family:LEMONMILK,sans-serif;color:#1b5e20}
+/*# sourceMappingURL=home.component-3PZ6DPPF.css.map */`]});let e=t;return e})();function mx(e){return e.map(t=>{let i={};return["id","name","surname","email","type","category","quantity","unit","expiration","expirationDate"].forEach(r=>{r in t&&(i[r]=t[r])}),Object.keys(t).forEach(r=>{r in i||(i[r]=t[r])}),i})}function gx(e){return e.map(t=>{let i={},n=["expiration","expirationDate","creationDate","lastModificationDate","admissionDate","envenDate"],r={day:"2-digit",month:"2-digit",year:"2-digit",hour:"2-digit",minute:"2-digit",timeZone:"America/Argentina/Buenos_Aires",hour12:!1};return Object.keys(t).forEach(o=>{if(n.includes(o)&&t[o]){let s=new Date(t[o]);i[o]=new Intl.DateTimeFormat("es-AR",r).format(s).replace(",","")}else i[o]=t[o]}),i})}function vx(e,t,i){if(!t||i==="")return e;let n=i==="up";return e.slice().sort((r,o)=>{if(r[t]===void 0||o[t]===void 0)return 0;let s=r[t],a=o[t];return typeof s=="string"&&typeof a=="string"?n?s.localeCompare(a):a.localeCompare(s):typeof s=="number"&&typeof a=="number"?n?s-a:a-s:0})}function Ms(e,t,i){if(!i)return e;let n=i.trim().toLowerCase();return e.filter(r=>Object.keys(r).some(o=>{if(t.includes(o))return!1;let s=r[o];return typeof s=="string"?s.toLowerCase().includes(n):!1}))}var VL=()=>[];function BL(e,t){e&1&&(d(0,"div",6)(1,"div",7)(2,"span",8),C(3,"Cargando.."),u()()())}function UL(e,t){if(e&1&&(d(0,"div",9)(1,"h4"),C(2),u()()),e&2){let i=j();b(2),on(i.noDataMessage)}}function qL(e,t){if(e&1){let i=je();d(0,"li",13)(1,"a",14),X("click",function(){fe(i);let r=j(2);return he(r.setPage(1))}),C(2,"1"),u()()}}function $L(e,t){e&1&&(d(0,"li",24)(1,"a",25),C(2,"..."),u()())}function HL(e,t){if(e&1){let i=je();d(0,"li",13)(1,"a",14),X("click",function(){let r=fe(i).$implicit,o=j(2);return he(o.setPage(r))}),C(2),u()()}if(e&2){let i=t.$implicit,n=j(2);za("active",n.currentPage===i),b(2),on(i)}}function zL(e,t){e&1&&(d(0,"li",24)(1,"a",25),C(2,"..."),u()())}function GL(e,t){if(e&1){let i=je();d(0,"li",13)(1,"a",14),X("click",function(){fe(i);let r=j(2);return he(r.setPage(r.totalPages))}),C(2),u()()}if(e&2){let i=j(2);b(2),on(i.totalPages)}}function WL(e,t){if(e&1&&z(0,"i",29),e&2){let i=j().$implicit,n=j(2);_("ngClass",n.getSortIcon(i))}}function YL(e,t){if(e&1){let i=je();d(0,"th",26)(1,"a",27),X("click",function(){let r=fe(i).$implicit,o=j(2);return he(o.onHeaderClick(r))}),C(2),R(3,WL,1,1,"i",28),u()()}if(e&2){let i=t.$implicit,n=j(2);b(2),yt(" ",n.translateColumn(i)," "),b(),_("ngIf",n.getSortIcon(i))}}function KL(e,t){e&1&&(pr(0),z(1,"i",34),fr())}function QL(e,t){e&1&&(pr(0),z(1,"i",35),fr())}function ZL(e,t){if(e&1&&R(0,QL,2,0,"ng-container",33),e&2){let i=j().$implicit,n=j().$implicit;_("ngIf",n[i]===!1)}}function JL(e,t){if(e&1&&(d(0,"div"),C(1),Am(2,"date"),u()),e&2){let i=j(2).$implicit,n=j().$implicit;b(),yt(" ",kE(2,1,n[i],"dd/MM/yyyy")," ")}}function XL(e,t){e&1&&(d(0,"div"),C(1,"-"),u())}function ek(e,t){if(e&1&&(pr(0),C(1),R(2,JL,3,4,"div",32)(3,XL,2,0,"ng-template",null,1,Ty),fr()),e&2){let i=vt(4),n=j().$implicit,r=j().$implicit,o=j(2);b(),yt(" exp = ",r[n]," "),b(),_("ngIf",o.getAgeDifference(r[n])<=60)("ngIfElse",i)}}function tk(e,t){if(e&1&&(d(0,"div"),C(1),u()),e&2){let i=j(2).$implicit,n=j().$implicit;b(),yt("$",n[i],"")}}function nk(e,t){if(e&1&&(d(0,"div"),C(1),u()),e&2){let i=j(2).$implicit,n=j().$implicit;b(),yt(" ",n[i]," ")}}function ik(e,t){if(e&1&&(pr(0),R(1,tk,2,1,"div",33)(2,nk,2,1,"div",33),fr()),e&2){let i=j().$implicit;b(),_("ngIf",i==="cost"),b(),_("ngIf",i!=="cost")}}function rk(e,t){if(e&1&&(d(0,"td",31),R(1,KL,2,0,"ng-container",32)(2,ZL,1,1,"ng-template",null,0,Ty)(4,ek,5,3,"ng-container",33)(5,ik,3,2,"ng-container",33),u()),e&2){let i=t.$implicit,n=vt(3),r=j().$implicit;b(),_("ngIf",r[i]===!0)("ngIfElse",n),b(3),_("ngIf",i==="expiration"),b(),_("ngIf",i!=="expiration")}}function ok(e,t){if(e&1){let i=je();d(0,"tr",27),X("click",function(){let r=fe(i).$implicit,o=j(2);return he(o.onRowClick(r))}),R(1,rk,6,4,"td",30),u()}if(e&2){let i=j(2);b(),_("ngForOf",i.getColumns())}}function sk(e,t){e&1&&z(0,"td",31)}function ak(e,t){if(e&1&&(d(0,"tr"),R(1,sk,1,0,"td",30),u()),e&2){let i=j(2);b(),_("ngForOf",i.getColumns())}}function lk(e,t){if(e&1){let i=je();d(0,"div",10)(1,"nav",11)(2,"ul",12)(3,"li",13)(4,"a",14),X("click",function(){fe(i);let r=j();return he(r.setPage(r.currentPage-1))}),z(5,"i",15),u()(),R(6,qL,3,0,"li",16)(7,$L,3,0,"li",17)(8,HL,3,3,"li",18)(9,zL,3,0,"li",17)(10,GL,3,1,"li",16),d(11,"li",13)(12,"a",14),X("click",function(){fe(i);let r=j();return he(r.setPage(r.currentPage+1))}),z(13,"i",19),u()()()(),d(14,"table",20)(15,"thead")(16,"tr"),R(17,YL,4,2,"th",21),u()(),d(18,"tbody"),R(19,ok,2,1,"tr",22)(20,ak,2,1,"tr",23),u()()()}if(e&2){let i=j();b(3),za("disabled",i.currentPage===1),b(3),_("ngIf",i.currentPage>2),b(),_("ngIf",i.currentPage>3),b(),_("ngForOf",i.getPageRange()),b(),_("ngIf",i.currentPage<i.totalPages-2&&i.totalPages>5),b(),_("ngIf",i.currentPage<i.totalPages-1&&i.totalPages>3),b(),za("disabled",i.currentPage===i.totalPages),b(6),_("ngForOf",i.getColumns()),b(2),_("ngForOf",i.paginatedData),b(),_("ngForOf",ys(12,VL).constructor(i.itemsPerPage-i.paginatedData.length))}}var ho=(()=>{let t=class t{constructor(){this.data=[],this.columnsExcluded=[],this.isTableReady=!0,this.rowClicked=new ot,this.columnTranslataions={id:"ID",name:"Nombre",surname:"Apellido",email:"Correo",phone:"Tel\xE9fono",role:"Rol",address:"Direcci\xF3n",addres:"Direcci\xF3n",cuit:"CUIT",description:"Descripci\xF3n",category:"Categor\xEDa",quantity:"Cantidad",expirationDate:"Fecha de vencimiento",creationDate:"Fecha de creaci\xF3n",lastModificationDate:"\xDAltima modificaci\xF3n",admissionDate:"Fecha de admisi\xF3n",unit:"Unidad",price:"Precio",cost:"Precio",expiration:"Fecha de Vencimiento",type:"Tipo",envenDate:"Fecha",title:"Evento"},this.currentPage=1,this.itemsPerPage=10,this.noDataMessage="No hay elementos a mostrar",this.sortStates={},this.activeColumn=null}ngOnInit(){this.columnsExcluded.push("state")}ngOnChanges(n){n.data&&(this.data=gx(this.data),this.data=mx(this.data))}getColumns(){return this.data.length===0?[]:Object.keys(this.data[0]).filter(n=>!this.columnsExcluded.includes(n))}get paginatedData(){let n=(this.currentPage-1)*this.itemsPerPage,r=n+this.itemsPerPage;return this.data.slice(n,r)}get totalPages(){return Math.ceil(this.data.length/this.itemsPerPage)}setPage(n){n>=1&&n<=this.totalPages&&(this.currentPage=n)}getPageRange(){let n=[],o=Math.max(1,this.currentPage-1),s=Math.min(this.totalPages,this.currentPage+1);this.currentPage<=2&&(s=Math.min(1*2+1,this.totalPages)),this.currentPage>=this.totalPages-1&&(o=Math.max(this.totalPages-1*2,1));for(let a=o;a<=s;a++)n.push(a);return n}onRowClick(n){this.rowClicked.emit(n)}translateColumn(n){return this.columnTranslataions[n]||n}onHeaderClick(n){this.activeColumn===n?(this.sortStates[n]=this.sortStates[n]==="up"?"down":"up",this.data=vx(this.data,n,this.sortStates[n])):(this.sortStates[this.activeColumn||""]="",this.sortStates[n]="up",this.activeColumn=n)}getSortIcon(n){return this.sortStates[n]==="up"?"bi bi-caret-up-fill":this.sortStates[n]==="down"?"bi bi-caret-down-fill":""}getAgeDifference(n){let r=new Date().getFullYear();console.log("Current: ",n);let o=Ds(n);console.log("Aux: ",o);let s=new Date(n).getFullYear();return console.log("Gap: ",r,s),s-r}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=Re({type:t,selectors:[["app-table"]],inputs:{data:"data",columnsExcluded:"columnsExcluded",isTableReady:"isTableReady"},outputs:{rowClicked:"rowClicked"},standalone:!0,features:[qn,Ve],decls:4,vars:3,consts:[["falseIcon",""],["noExpiration",""],[1,"table-container"],["class","spinner-container text-center",4,"ngIf"],["class","no-data-container text-center",4,"ngIf"],["class","table-wrapper",4,"ngIf"],[1,"spinner-container","text-center"],["role","status",1,"spinner-border"],[1,"visually-hidden"],[1,"no-data-container","text-center"],[1,"table-wrapper"],[1,"pagination-container"],[1,"pagination","justify-content-center","custom-pagination"],[1,"page-item"],[1,"page-link",3,"click"],[1,"bi","bi-chevron-left"],["class","page-item",4,"ngIf"],["class","page-item disabled",4,"ngIf"],["class","page-item",3,"active",4,"ngFor","ngForOf"],[1,"bi","bi-chevron-right"],[1,"table","table-custom"],["class","text-uppercase text-center",4,"ngFor","ngForOf"],[3,"click",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"page-item","disabled"],[1,"page-link"],[1,"text-uppercase","text-center"],[3,"click"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],["class","text-center",4,"ngFor","ngForOf"],[1,"text-center"],[4,"ngIf","ngIfElse"],[4,"ngIf"],[1,"bi","bi-check-circle","text-success"],[1,"bi","bi-x-circle","text-danger"]],template:function(r,o){r&1&&(d(0,"div",2),R(1,BL,4,0,"div",3)(2,UL,3,1,"div",4)(3,lk,21,13,"div",5),u()),r&2&&(b(),_("ngIf",!o.isTableReady),b(),_("ngIf",o.isTableReady&&o.data.length===0),b(),_("ngIf",o.isTableReady&&o.data.length>0))},dependencies:[rt,kt,Cn,st,sS,$t],styles:[`@charset "UTF-8";.table-container[_ngcontent-%COMP%]{position:relative;width:100%;height:640.5px;min-width:1416px;background-color:#d2ffaa;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;padding-bottom:20px}.table-custom[_ngcontent-%COMP%]{width:calc(100% - 40px);margin:0 20px}.table-custom[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{text-transform:uppercase;text-align:center;background-color:#1ba120}.table-custom[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{text-align:center;background-color:transparent}.table-custom[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{height:50.2px}.table-custom[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-child(odd){background-color:#88ca5e}.table-custom[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#1ba120}.pagination-container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:flex-end;padding-right:20px}.custom-pagination[_ngcontent-%COMP%]   .page-link[_ngcontent-%COMP%]{background-color:transparent;color:#1b5e20;border:none;font-size:1.5rem;padding:10px 5px}.custom-pagination[_ngcontent-%COMP%]   .page-item.active[_ngcontent-%COMP%]   .page-link[_ngcontent-%COMP%]{color:#000;background-color:transparent}.custom-pagination[_ngcontent-%COMP%]   .page-item[_ngcontent-%COMP%]   .page-link[_ngcontent-%COMP%]:hover{color:#1b5e20;background-color:transparent}.custom-pagination[_ngcontent-%COMP%]   .page-link[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#1b5e20}.no-data-container[_ngcontent-%COMP%]{width:calc(100% - 40px);height:50.2px;display:flex;justify-content:center;align-items:center;background-color:#f8d7da;color:#721c24;font-size:1.2rem;text-align:center;margin-top:2rem;border-radius:5px}.table-wrapper[_ngcontent-%COMP%]{width:calc(100% - 40px);min-height:640.5px}.spinner-container[_ngcontent-%COMP%]{width:calc(100% - 40px);height:50.2px;display:flex;justify-content:center;align-items:center;color:#1b5e20;margin-top:2rem}.spinner-border[_ngcontent-%COMP%]{width:3rem;height:3rem;border-width:.4em}
+/*# sourceMappingURL=table.component-XMAESJSY.css.map */`]});let e=t;return e})();var mo=(()=>{let t=class t{constructor(){this.search=new ot,this.searchControl=new Lu("")}onFilter(){let n=this.searchControl.value?.trim();n!==void 0&&(this.isValid(n)?this.search.emit(n):this.search.emit(""))}onKeyDown(n){n.key==="Enter"&&this.onFilter()}isValid(n){let r=/^[a-zA-Z0-9@. ]*$/;return typeof n=="string"&&n.length>0&&r.test(n)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=Re({type:t,selectors:[["app-search-bar"]],outputs:{search:"search"},standalone:!0,features:[Ve],decls:7,vars:1,consts:[[1,"search-container","bg-fix"],["id","basic-addon1"],[1,"bi","bi-search","search-icon","text-white"],["type","text","aria-label","Buscar","aria-describedby","basic-addon1",1,"form-control",3,"keydown.enter","formControl"],[1,"btn","btn-custom",3,"click"],[1,"filter-text"]],template:function(r,o){r&1&&(d(0,"div",0)(1,"span",1),z(2,"i",2),u(),d(3,"input",3),X("keydown.enter",function(){return o.onFilter()}),u(),d(4,"button",4),X("click",function(){return o.onFilter()}),d(5,"span",5),C(6,"BUSCAR"),u()()()),r&2&&(b(3),_("formControl",o.searchControl))},dependencies:[$t,Yt,Xt,qp],styles:[`.search-container[_ngcontent-%COMP%]{display:flex;align-items:center;padding:5px;width:100%;min-width:592px;height:39px;background-color:transparent;border-radius:12px;position:relative}.search-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border:none;border-radius:12px 0 0 12px;padding:10px 10px 10px 30px;outline:none;width:100%;background-color:#1b5e20;opacity:.6;color:#fff;font-family:LEMONMILK Bold,sans-serif}.search-container[_ngcontent-%COMP%]   .search-icon[_ngcontent-%COMP%]{position:absolute;left:10px;top:50%;transform:translateY(-50%);font-size:18px;padding-left:5px;color:#fff}.btn-custom[_ngcontent-%COMP%]{border:none;padding:10px 20px;border-radius:0 12px 12px 0;cursor:pointer;background-color:#1b5e20;color:#fff;align-items:center;justify-content:center}.form-control[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important}
+/*# sourceMappingURL=search-bar.component-35HMNUVF.css.map */`]});let e=t;return e})();var yx=(()=>{let t=class t{constructor(){this.close=new ot}closeDecisionModal(){this.close.emit("")}openAddInput(){this.close.emit("addInput")}openAddRawMaterial(){this.close.emit("addRawMaterial")}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=Re({type:t,selectors:[["app-decision-modal"]],outputs:{close:"close"},standalone:!0,features:[Ve],decls:15,vars:0,consts:[["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content","modal-content-custom"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body","d-flex","align-items-center","justify-content-center"],[1,"row","w-100"],[1,"col","d-flex","justify-content-center"],[1,"btn","btn-custom","btn-lg",3,"click"]],template:function(r,o){r&1&&(d(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h5",4),C(5,"Agregar Existencia"),u(),d(6,"button",5),X("click",function(){return o.closeDecisionModal()}),u()(),d(7,"div",6)(8,"div",7)(9,"div",8)(10,"button",9),X("click",function(){return o.openAddInput()}),C(11,"Agregar Insumo"),u()(),d(12,"div",8)(13,"button",9),X("click",function(){return o.openAddRawMaterial()}),C(14,"Agregar Materia Prima"),u()()()()()()())},styles:[`.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content-custom[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:396px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.row-custom[_ngcontent-%COMP%]{padding-top:.4rem;padding-bottom:.4rem}
+/*# sourceMappingURL=decision-modal.component-KSVALTJU.css.map */`]});let e=t;return e})();var Yi=function(e){return e.Kilogramos="Kg",e.Gramos="g",e.Milimetros="ml",e.Litro="L",e.Unidades="U",e}(Yi||{});function Nr(e){return/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e.value)?null:{invalidEmail:!0}}function Pr(e){return/^\+?[0-9]{1,4}?[-.\s]?(\(?\d{1,3}?\)?[-.\s]?\d{1,4}[-.\s]?\d{1,4}[-.\s]?\d{1,9})$/.test(e.value)?null:{invalidPhone:!0}}function al(){return e=>{let t=e.value;if(!t||t.length!==11||isNaN(t))return{invalidCuit:!0};let i=[5,4,3,2,7,6,5,4,3,2],n=0;for(let s=0;s<10;s++)n+=parseInt(t[s],10)*i[s];let r=n%11;return(r===0?0:r===1?9:11-r)!==parseInt(t[10],10)?{invalidCuit:!0}:null}}function As(e){let t=e.value;return/^\d+([.,]\d+)?$/.test(t)&&parseFloat(t.replace(",","."))!==0?null:{invalidQuantity:!0}}function qu(){return e=>e.controls.some(n=>{let r=n.get("selected")?.value,o=n.get("quantity")?.value;return r&&o!=null&&o>0})?null:{atLeastOneValidControl:!0}}function $u(){return e=>{let t=e.get("password"),i=e.get("confirmPassword");return t&&i&&t.value!==i.value?{passwordMismatch:!0}:null}}function Mg(e,t){return i=>{let n=i.get(e),r=i.get(t);return n&&r&&r.value?n.value?null:{required:!0}:null}}function bx(e){return t=>{let i=t.value;return i<=0||i<=e?{priceInvalid:!0}:null}}var Ts=(()=>{let t=class t{constructor(n){this.http=n,this.apiUrl=Si.apiUrl+"/api/Inputs"}getInputs(){return this.http.get(this.apiUrl).pipe(nt(ft))}getInputById(n){return this.http.get(`${this.apiUrl}/${n}`).pipe(nt(ft))}createInput(n){return this.http.post(this.apiUrl,n).pipe(nt(ft))}updateInput(n){return this.http.put(this.apiUrl,n).pipe(nt(ft))}deleteInput(n){return this.http.delete(`${this.apiUrl}/${n}`).pipe(nt(ft))}getInputsTypes(){return this.http.get(`${this.apiUrl}/getTypes`).pipe(nt(ft))}};t.\u0275fac=function(r){return new(r||t)(Ye(ui))},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Fs=(()=>{let t=class t{constructor(n){this.http=n,this.apiUrl=Si.apiUrl+"/api/RawMaterials"}getRawMaterials(){return this.http.get(this.apiUrl).pipe(nt(ft))}getRawMaterialById(n){return this.http.get(`${this.apiUrl}/${n}`).pipe(nt(ft))}createRawMaterial(n){return this.http.post(this.apiUrl,n).pipe(nt(ft))}updateRawMaterial(n){return console.log(JSON.stringify(n)),this.http.put(this.apiUrl,n).pipe(nt(ft))}deleteRawMaterial(n){return this.http.delete(`${this.apiUrl}/${n}`).pipe(nt(ft))}getRawMaterialsTypes(){return this.http.get(`${this.apiUrl}/getTypes`).pipe(nt(ft))}};t.\u0275fac=function(r){return new(r||t)(Ye(ui))},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Ns=(()=>{let t=class t{constructor(n,r){this.InputsService=n,this.RawMaterialService=r,this.inputsTypesSubject=new ii([]),this.rawMaterialTypesSubject=new ii([])}chargeInputsTypes(){this.InputsService.getInputsTypes().subscribe(n=>this.inputsTypesSubject.next(n))}chargeRawMaterialTypes(){this.RawMaterialService.getRawMaterialsTypes().subscribe(n=>this.rawMaterialTypesSubject.next(n))}getInputsTypes(){return this.inputsTypesSubject.asObservable()}getRawMaterialTypes(){return this.rawMaterialTypesSubject.asObservable()}addInputsType(n){this.inputsTypesSubject.pipe(ut(r=>{r.includes(n)||(r.push(n),r.sort(),this.inputsTypesSubject.next(r))})).subscribe()}addRawMaterialType(n){this.rawMaterialTypesSubject.pipe(ut(r=>{r.includes(n)||(r.push(n),r.sort(),this.rawMaterialTypesSubject.next(r))})).subscribe()}getInventory(){return Nd({inputs:this.InputsService.getInputs(),rawMaterials:this.RawMaterialService.getRawMaterials()}).pipe(ut(({inputs:o,rawMaterials:s})=>{let a=o||[],l=s||[];return a.concat(l).sort()}),d1(o=>o.pipe(Xc((s,a)=>{if(s>=5)throw a;return console.warn(`Retrying... (${s+1}/5)`),s+1},0),c1(5e3))),nt(o=>(console.error("Error fetching inventory",o),ls(()=>o))))}};t.\u0275fac=function(r){return new(r||t)(Ye(Ts),Ye(Fs))},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Or=(()=>{let t=class t{constructor(n){this.http=n,this.apiUrl=Si.apiUrl+"/api/Providers"}getProviders(){return this.http.get(this.apiUrl).pipe(nt(ft))}getProviderById(n){return this.http.get(`${this.apiUrl}/${n}`).pipe(nt(ft))}createProvider(n){return this.http.post(this.apiUrl,n).pipe(nt(ft))}updateProvider(n){return this.http.put(this.apiUrl,n).pipe(nt(ft))}deleteProvider(n){return this.http.delete(`${this.apiUrl}/${n}`).pipe(nt(ft))}};t.\u0275fac=function(r){return new(r||t)(Ye(ui))},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var ll=e=>({"is-invalid":e});function ck(e,t){e&1&&(d(0,"div"),C(1," Nombre es requerido. "),u())}function uk(e,t){e&1&&(d(0,"div"),C(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),u())}function dk(e,t){if(e&1&&(d(0,"div",44),R(1,ck,2,0,"div",45)(2,uk,2,0,"div",45),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.productForm.get("name"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.productForm.get("name"))==null||n.errors==null)&&n.errors.required)&&((n=r.productForm.get("name"))==null||n.errors==null?null:n.errors.pattern))}}function pk(e,t){if(e&1&&(d(0,"option",46),C(1),u()),e&2){let i=t.$implicit;_("value",i),b(),yt(" ",i," ")}}function fk(e,t){e&1&&(d(0,"div"),C(1," Tipo es requerido. "),u())}function hk(e,t){if(e&1&&(d(0,"div",47),R(1,fk,2,0,"div",45),u()),e&2){let i,n=j();b(),_("ngIf",(i=n.productForm.get("type"))==null||i.errors==null?null:i.errors.required)}}function mk(e,t){if(e&1&&(d(0,"option",46),C(1),u()),e&2){let i=t.$implicit;_("value",i),b(),yt(" ",i," ")}}function gk(e,t){e&1&&(d(0,"div"),C(1," Es necesario ingresar una cantidad. "),u())}function vk(e,t){e&1&&(d(0,"div"),C(1," La cantidad debe ser un n\xFAmero v\xE1lido mayor a 0. "),u())}function yk(e,t){if(e&1&&(d(0,"div",48),R(1,gk,2,0,"div",45)(2,vk,2,0,"div",45),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.productForm.get("quantity"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.productForm.get("quantity"))==null||n.errors==null)&&n.errors.required)&&((n=r.productForm.get("quantity"))==null||n.errors==null?null:n.errors.invalidQuantity))}}function bk(e,t){e&1&&(d(0,"div"),C(1," Ingrese una unidad. "),u())}function _k(e,t){if(e&1&&(d(0,"div",49),R(1,bk,2,0,"div",45),u()),e&2){let i,n=j();b(),_("ngIf",(i=n.productForm.get("unit"))==null||i.errors==null?null:i.errors.required)}}function Ck(e,t){e&1&&(d(0,"div"),C(1," Es necesario ingresar un Precio. "),u())}function wk(e,t){e&1&&(d(0,"div"),C(1," El Precio debe ser un n\xFAmero v\xE1lido y mayor que cero. "),u())}function Ek(e,t){if(e&1&&(d(0,"div",44),R(1,Ck,2,0,"div",45)(2,wk,2,0,"div",45),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.productForm.get("cost"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.productForm.get("cost"))==null||n.errors==null)&&n.errors.required)&&((n=r.productForm.get("cost"))==null||n.errors==null?null:n.errors.invalidQuantity))}}function Sk(e,t){if(e&1&&(d(0,"option",46),C(1),u()),e&2){let i=t.$implicit;_("value",i.id),b(),yt(" ",i.name," ")}}function Ik(e,t){e&1&&(d(0,"div",44),C(1," Se necesita un Provedor. "),u())}function xk(e,t){e&1&&(d(0,"div",44),C(1," Descripcion no admite simbolos. "),u())}function Dk(e,t){e&1&&(d(0,"div"),C(1," El tipo es requerido. "),u())}function Mk(e,t){e&1&&(d(0,"div"),C(1," El tipo no debe contener n\xFAmeros ni s\xEDmbolos. "),u())}function Ak(e,t){if(e&1&&(d(0,"div",47),R(1,Dk,2,0,"div",45)(2,Mk,2,0,"div",45),u()),e&2){let i,n,r=j(2);b(),_("ngIf",(i=r.addTypeForm.get("newType"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",(n=r.addTypeForm.get("newType"))==null||n.errors==null?null:n.errors.pattern)}}function Tk(e,t){if(e&1){let i=je();d(0,"div",2)(1,"div",3)(2,"div",50)(3,"div",5)(4,"h1",51),C(5," Agregar Tipo "),u(),d(6,"button",52),X("click",function(){fe(i);let r=j();return he(r.closeAddTypeModal())}),u()(),d(7,"form",8,1),X("ngSubmit",function(){fe(i);let r=j();return he(r.addType())}),d(9,"div",9)(10,"div",38)(11,"label",53),C(12,"Nuevo Tipo"),u(),z(13,"input",54),R(14,Ak,3,2,"div",24),u()(),d(15,"div",55)(16,"button",56),X("click",function(){fe(i);let r=j();return he(r.closeAddTypeModal())}),C(17," CANCELAR "),u(),d(18,"button",57),C(19," GUARDAR "),u()()()()()()}if(e&2){let i,n,r=vt(8),o=j();b(7),_("formGroup",o.addTypeForm),b(6),_("ngClass",ye(3,ll,(((i=o.addTypeForm.get("newType"))==null?null:i.touched)||r.submitted)&&((i=o.addTypeForm.get("newType"))==null?null:i.invalid))),b(),_("ngIf",(((n=o.addTypeForm.get("newType"))==null?null:n.touched)||r.submitted)&&((n=o.addTypeForm.get("newType"))==null?null:n.invalid))}}var _x=(()=>{let t=class t{constructor(n,r,o,s){this.InputsService=n,this.formBuilder=r,this.InventoryService=o,this.providersService=s,this.close=new ot,this.providers=[],this.units=[],this.inventoryTypes=[],this.addTypeModal=!1,this.isRawMaterial=!1,this.avaibleFreezed=!1,this.productForm=this.formBuilder.group({name:["",[se.required]],type:["",[se.required,se.pattern("^[a-zA-Z ]*$")]],quantity:["",[se.required,As]],unit:["",[se.required]],cost:["",[se.required,As]],description:["",[se.pattern(/^[a-zA-Z0-9À-ÿ\s'_-]+$/)]],provider:["",[se.required]]}),this.addTypeForm=this.formBuilder.group({newType:["",[se.required,se.pattern("^[a-zA-Z ]*$")]]})}ngOnInit(){this.InventoryService.chargeInputsTypes(),this.getProviders(),this.loadProductTypes(),this.units=Object.values(Yi)}closeModal(){this.close.emit()}openAddTypeModal(){this.addTypeModal=!0}closeAddTypeModal(){this.addTypeModal=!1}addType(){if(this.addTypeForm.valid){let n=this.addTypeForm.value.newType;this.InventoryService.addInputsType(n),this.closeAddTypeModal()}else console.error("Formulario de tipo inv\xE1lido.")}onSubmit(){if(this.productForm.valid){let n=this.productForm.get("provider")?.value,r=this.providers.find(s=>Number(s.id)===Number(n)),o={name:this.productForm.get("name")?.value,type:this.productForm.get("type")?.value,quantity:this.productForm.get("quantity")?.value,unit:this.productForm.get("unit")?.value,cost:this.productForm.get("cost")?.value,description:this.productForm.get("description")?.value||"",provider:r||{}};this.InputsService.createInput(o).subscribe(()=>{this.closeModal()},s=>{console.error("Error al crear el insumo",s)})}}getProviders(){this.providersService.getProviders().subscribe(n=>{this.providers=n.sort((r,o)=>r.name.localeCompare(o.name))})}loadProductTypes(){this.InventoryService.getInputsTypes().subscribe(n=>{this.inventoryTypes=n.sort((r,o)=>r.localeCompare(o))})}};t.\u0275fac=function(r){return new(r||t)(ee(Ts),ee(ln),ee(Ns),ee(Or))},t.\u0275cmp=Re({type:t,selectors:[["app-add-input"]],outputs:{close:"close"},standalone:!0,features:[Ve],decls:90,vars:33,consts:[["aux","ngForm"],["aux2","ngForm"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content","modal-content-custom"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[3,"ngSubmit","formGroup"],[1,"modal-body"],[1,"row"],[1,"col"],[1,"form-group","row-container"],[1,"row","align-items-center"],[1,"col-2"],["for","name"],["type","text","id","name","name","name","formControlName","name","placeholder","Nombre",1,"form-control",3,"ngClass"],[1,"error-container"],["class","text-danger",4,"ngIf"],["for","type",1,"mb-0"],["id","type","formControlName","type","aria-label","Type Selection","placeholder","Seleccione un tipo",1,"form-select","me-2",3,"ngClass"],["value","","disabled","","selected",""],[3,"value",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-custom",3,"click"],["class","text-danger mt-1",4,"ngIf"],["for","quantity"],["type","text","id","quantity","name","quantity","formControlName","quantity","placeholder","0000",1,"form-control",3,"ngClass"],["for","unit"],["id","unit","formControlName","unit","aria-label","Unit Selection",1,"form-select","me-2",3,"ngClass"],[1,"row","error-container","align-items-center"],["class","col-8 text-danger",4,"ngIf"],["class","col text-danger",4,"ngIf"],["for","cost"],[1,"input-group","mb-3"],[1,"input-group-text"],["type","text","id","cost","name","cost","formControlName","cost","aria-label","Precio","placeholder","00000.00",1,"form-control",3,"ngClass"],["for","provider"],["id","provider","formControlName","provider","aria-label","Provider Selection","placeholder","Seleccione un proveedor",1,"form-select","me-2",3,"ngClass"],[1,"form-group"],["for","desscription"],["type","text","id","descripcion","name","description","formControlName","description",1,"form-control","desc",3,"ngClass"],[1,"modal-footer","justify-content-center"],["type","submit",1,"btn","btn-custom"],["class","modal modal-bg fade show","tabindex","-1","style","display: block","aria-modal","true","role","dialog",4,"ngIf"],[1,"text-danger"],[4,"ngIf"],[3,"value"],[1,"text-danger","mt-1"],[1,"col-8","text-danger"],[1,"col","text-danger"],[1,"modal-content"],["id","confirmDeleteModalLabel",1,"modal-title","fs-5"],["type","button",1,"btn-close",3,"click"],["for","newType"],["type","text","id","newType","formControlName","newType","placeholder","Ingrese el nuevo tipo",1,"form-control",3,"ngClass"],[1,"modal-footer"],["type","button",1,"btn","btn-secondary",3,"click"],["type","submit",1,"btn","btn-success"]],template:function(r,o){if(r&1){let s=je();d(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"h5",6),C(5,"Agregar Insumo"),u(),d(6,"button",7),X("click",function(){return fe(s),he(o.closeModal())}),u()(),d(7,"form",8,0),X("ngSubmit",function(){return fe(s),he(o.onSubmit())}),d(9,"div",9)(10,"div",10)(11,"div",11)(12,"div",12)(13,"div",13)(14,"div",14)(15,"label",15),C(16,"Nombre"),u()(),d(17,"div",11),z(18,"input",16),u(),d(19,"div",17),R(20,dk,3,2,"div",18),u()()(),d(21,"div",12)(22,"div",13)(23,"div",14)(24,"label",19),C(25,"Tipo"),u()(),d(26,"div",11)(27,"select",20)(28,"option",21),C(29," Selecciona un tipo "),u(),R(30,pk,2,2,"option",22),u()(),d(31,"div",11)(32,"button",23),X("click",function(){return fe(s),he(o.openAddTypeModal())}),C(33," Agregar Tipo "),u()()(),d(34,"div",17),R(35,hk,2,1,"div",24),u()(),d(36,"div",12)(37,"div",13)(38,"div",14)(39,"label",25),C(40,"Cantidad"),u()(),d(41,"div",11),z(42,"input",26),u(),d(43,"div",14)(44,"label",27),C(45,"Unidad"),u()(),d(46,"div",14)(47,"select",28)(48,"option",21),C(49,"..."),u(),R(50,mk,2,2,"option",22),u()()(),d(51,"div",29),R(52,yk,3,2,"div",30)(53,_k,2,1,"div",31),u()()(),d(54,"div",11)(55,"div",12)(56,"div",13)(57,"div",14)(58,"label",32),C(59,"Precio Unitario"),u()(),d(60,"div",11)(61,"div",33)(62,"span",34),C(63,"$"),u(),z(64,"input",35),u()(),d(65,"div",17),R(66,Ek,3,2,"div",18),u()()(),d(67,"div",12)(68,"div",13)(69,"div",14)(70,"label",36),C(71,"Proveedor"),u()(),d(72,"div",11)(73,"select",37)(74,"option",21),C(75," Seleccione un proveedor "),u(),R(76,Sk,2,2,"option",22),u()(),d(77,"div",17),R(78,Ik,2,0,"div",18),u()()()(),d(79,"div",38)(80,"label",39),C(81,"Descripcion"),u(),d(82,"textarea",40),C(83,"              "),u(),d(84,"div",17),R(85,xk,2,0,"div",18),u()()()(),d(86,"div",41)(87,"button",42),C(88,"GUARDAR"),u()()()()()(),R(89,Tk,20,5,"div",43)}if(r&2){let s,a,l,p,h,v,w,g,S,I,A,x,P,U,q=vt(8);b(7),_("formGroup",o.productForm),b(11),_("ngClass",ye(19,ll,(((s=o.productForm.get("name"))==null?null:s.dirty)||((s=o.productForm.get("name"))==null?null:s.touched)||q.submitted)&&((s=o.productForm.get("name"))==null?null:s.invalid))),b(2),_("ngIf",q.submitted||((a=o.productForm.get("name"))==null?null:a.invalid)&&(((a=o.productForm.get("name"))==null?null:a.dirty)||((a=o.productForm.get("name"))==null?null:a.touched))),b(7),_("ngClass",ye(21,ll,(((l=o.productForm.get("type"))==null?null:l.dirty)||((l=o.productForm.get("type"))==null?null:l.touched)||q.submitted)&&((l=o.productForm.get("type"))==null?null:l.invalid))),b(3),_("ngForOf",o.inventoryTypes),b(5),_("ngIf",q.submitted&&((p=o.productForm.get("type"))==null?null:p.invalid)),b(7),_("ngClass",ye(23,ll,(((h=o.productForm.get("quantity"))==null?null:h.dirty)||((h=o.productForm.get("quantity"))==null?null:h.touched)||q.submitted)&&((h=o.productForm.get("quantity"))==null?null:h.invalid))),b(5),_("ngClass",ye(25,ll,(((v=o.productForm.get("unit"))==null?null:v.dirty)||((v=o.productForm.get("unit"))==null?null:v.touched)||q.submitted)&&((v=o.productForm.get("unit"))==null?null:v.invalid))),b(3),_("ngForOf",o.units),b(2),_("ngIf",q.submitted||((w=o.productForm.get("quantity"))==null?null:w.invalid)&&(((w=o.productForm.get("quantity"))==null?null:w.dirty)||((w=o.productForm.get("quantity"))==null?null:w.touched))),b(),_("ngIf",q.submitted||((g=o.productForm.get("unit"))==null?null:g.invalid)&&(((g=o.productForm.get("unit"))==null?null:g.dirty)||((g=o.productForm.get("unit"))==null?null:g.touched))),b(11),_("ngClass",ye(27,ll,(((S=o.productForm.get("cost"))==null?null:S.dirty)||((S=o.productForm.get("cost"))==null?null:S.touched)||q.submitted)&&((S=o.productForm.get("cost"))==null?null:S.invalid))),b(2),_("ngIf",q.submitted||((I=o.productForm.get("cost"))==null?null:I.invalid)&&(((I=o.productForm.get("cost"))==null?null:I.dirty)||((I=o.productForm.get("cost"))==null?null:I.touched))),b(7),_("ngClass",ye(29,ll,(((A=o.productForm.get("provider"))==null?null:A.dirty)||((A=o.productForm.get("provider"))==null?null:A.touched)||q.submitted)&&((A=o.productForm.get("provider"))==null?null:A.invalid))),b(3),_("ngForOf",o.providers),b(2),_("ngIf",q.submitted&&((x=o.productForm.get("provider"))==null?null:x.invalid)||((x=o.productForm.get("provider"))==null?null:x.invalid)&&(((x=o.productForm.get("provider"))==null?null:x.dirty)||((x=o.productForm.get("provider"))==null?null:x.touched))),b(4),_("ngClass",ye(31,ll,(((P=o.productForm.get("descripcion"))==null?null:P.dirty)||((P=o.productForm.get("descripcion"))==null?null:P.touched)||q.submitted)&&((P=o.productForm.get("descripcion"))==null?null:P.invalid))),b(3),_("ngIf",((U=o.productForm.get("description"))==null?null:U.invalid)&&((U=o.productForm.get("description"))==null?null:U.dirty)&&((U=o.productForm.get("description"))==null?null:U.value)),b(4),_("ngIf",o.addTypeModal)}},dependencies:[rt,kt,Cn,st,$t,an,Vi,Bi,Yt,Ei,Xt,sn,en,nn],styles:[`@charset "UTF-8";.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content-custom[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:496px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.desc[_ngcontent-%COMP%]{height:6rem}.form-check[_ngcontent-%COMP%], .form-swicth[_ngcontent-%COMP%]{padding-left:0}.form-check-label[_ngcontent-%COMP%]{margin-right:10px}.form-swicth[_ngcontent-%COMP%], .form-check-input[_ngcontent-%COMP%]{margin-left:.15rem}.text-custom[_ngcontent-%COMP%]{color:#1b5e20}.row-container[_ngcontent-%COMP%]{position:relative;min-height:5em}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.modal-footer[_ngcontent-%COMP%]{border-top:none;padding-top:0;padding-bottom:.5rem}.form-control[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important;font-size:1.2rem}.row-custom[_ngcontent-%COMP%]{padding-top:.4rem;padding-bottom:.4rem}
+/*# sourceMappingURL=add-input.component-T3UICTP5.css.map */`]});let e=t;return e})();var Ps=e=>({"is-invalid":e});function Fk(e,t){e&1&&(d(0,"div"),C(1," Nombre es requerido. "),u())}function Nk(e,t){e&1&&(d(0,"div"),C(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),u())}function Pk(e,t){if(e&1&&(d(0,"div",51),R(1,Fk,2,0,"div",52)(2,Nk,2,0,"div",52),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.productForm.get("name"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.productForm.get("name"))==null||n.errors==null)&&n.errors.required)&&((n=r.productForm.get("name"))==null||n.errors==null?null:n.errors.pattern))}}function Ok(e,t){if(e&1&&(d(0,"option",53),C(1),u()),e&2){let i=t.$implicit;_("value",i),b(),yt(" ",i," ")}}function Rk(e,t){e&1&&(d(0,"div"),C(1," Tipo es requerido. "),u())}function Lk(e,t){if(e&1&&(d(0,"div",54),R(1,Rk,2,0,"div",52),u()),e&2){let i,n=j();b(),_("ngIf",(i=n.productForm.get("type"))==null||i.errors==null?null:i.errors.required)}}function kk(e,t){if(e&1&&(d(0,"option",53),C(1),u()),e&2){let i=t.$implicit;_("value",i),b(),yt(" ",i," ")}}function jk(e,t){e&1&&(d(0,"div"),C(1," Es necesario ingresar una cantidad. "),u())}function Vk(e,t){e&1&&(d(0,"div"),C(1," La cantidad debe ser un n\xFAmero v\xE1lido mayor a 0. "),u())}function Bk(e,t){if(e&1&&(d(0,"div",55),R(1,jk,2,0,"div",52)(2,Vk,2,0,"div",52),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.productForm.get("quantity"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.productForm.get("quantity"))==null||n.errors==null)&&n.errors.required)&&((n=r.productForm.get("quantity"))==null||n.errors==null?null:n.errors.invalidQuantity))}}function Uk(e,t){e&1&&(d(0,"div"),C(1," Ingrese una unidad. "),u())}function qk(e,t){if(e&1&&(d(0,"div",56),R(1,Uk,2,0,"div",52),u()),e&2){let i,n=j();b(),_("ngIf",(i=n.productForm.get("unit"))==null||i.errors==null?null:i.errors.required)}}function $k(e,t){e&1&&(d(0,"div"),C(1," Es necesario ingresar un Precio. "),u())}function Hk(e,t){e&1&&(d(0,"div"),C(1," El Precio debe ser un n\xFAmero v\xE1lido y mayor que cero. "),u())}function zk(e,t){if(e&1&&(d(0,"div",51),R(1,$k,2,0,"div",52)(2,Hk,2,0,"div",52),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.productForm.get("cost"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.productForm.get("cost"))==null||n.errors==null)&&n.errors.required)&&((n=r.productForm.get("cost"))==null||n.errors==null?null:n.errors.invalidQuantity))}}function Gk(e,t){e&1&&(d(0,"div",51),C(1," Se necesita una Fecha de Vencimiento. "),u())}function Wk(e,t){if(e&1&&(d(0,"option",53),C(1),u()),e&2){let i=t.$implicit;_("value",i.id),b(),yt(" ",i.name," ")}}function Yk(e,t){e&1&&(d(0,"div",51),C(1," Se necesita un Provedor. "),u())}function Kk(e,t){e&1&&(d(0,"div",51),C(1," Descripcion no admite simbolos. "),u())}function Qk(e,t){e&1&&(d(0,"div"),C(1," El tipo es requerido. "),u())}function Zk(e,t){e&1&&(d(0,"div"),C(1," El tipo no debe contener n\xFAmeros ni s\xEDmbolos. "),u())}function Jk(e,t){if(e&1&&(d(0,"div",54),R(1,Qk,2,0,"div",52)(2,Zk,2,0,"div",52),u()),e&2){let i,n,r=j(2);b(),_("ngIf",(i=r.addTypeForm.get("newType"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",(n=r.addTypeForm.get("newType"))==null||n.errors==null?null:n.errors.pattern)}}function Xk(e,t){if(e&1){let i=je();d(0,"div",2)(1,"div",3)(2,"div",57)(3,"div",5)(4,"h1",58),C(5," Agregar Tipo "),u(),d(6,"button",59),X("click",function(){fe(i);let r=j();return he(r.closeAddTypeModal())}),u()(),d(7,"form",8,1),X("ngSubmit",function(){fe(i);let r=j();return he(r.addType())}),d(9,"div",9)(10,"div",45)(11,"label",60),C(12,"Nuevo Tipo"),u(),z(13,"input",61),R(14,Jk,3,2,"div",24),u()(),d(15,"div",62)(16,"button",63),X("click",function(){fe(i);let r=j();return he(r.closeAddTypeModal())}),C(17," CANCELAR "),u(),d(18,"button",64),C(19," GUARDAR "),u()()()()()()}if(e&2){let i,n,r=vt(8),o=j();b(7),_("formGroup",o.addTypeForm),b(6),_("ngClass",ye(3,Ps,(((i=o.addTypeForm.get("newType"))==null?null:i.touched)||r.submitted)&&((i=o.addTypeForm.get("newType"))==null?null:i.invalid))),b(),_("ngIf",(((n=o.addTypeForm.get("newType"))==null?null:n.touched)||r.submitted)&&((n=o.addTypeForm.get("newType"))==null?null:n.invalid))}}var Cx=(()=>{let t=class t{constructor(n,r,o,s){this.RawMaterialsServices=n,this.formBuilder=r,this.InventoryService=o,this.providersService=s,this.close=new ot,this.providers=[],this.units=[],this.inventoryTypes=[],this.addTypeModal=!1,this.isRawMaterial=!1,this.avaibleFreezed=!1,this.productForm=this.formBuilder.group({name:["",[se.required]],type:["",[se.required,se.pattern("^[a-zA-Z ]*$")]],quantity:["",[se.required,As]],unit:["",[se.required]],cost:["",[se.required,As]],description:["",[se.pattern(/^[a-zA-Z0-9\s]+$/)]],freezed:[!1],expirationDate:[{value:"",disabled:!0},[se.required]],provider:["",[se.required]]}),this.addTypeForm=this.formBuilder.group({newType:["",[se.required,se.pattern("^[a-zA-Z ]*$")]]})}ngOnInit(){this.InventoryService.chargeRawMaterialTypes(),this.getProviders(),this.loadProductTypes(),this.units=Object.values(Yi),this.productForm.get("freezed")?.valueChanges.subscribe(n=>{this.updateExpirationDateState(n)})}closeModal(){this.close.emit()}openAddTypeModal(){this.addTypeModal=!0}closeAddTypeModal(){this.addTypeModal=!1}addType(){if(this.addTypeForm.valid){let n=this.addTypeForm.value.newType;this.InventoryService.addRawMaterialType(n),this.closeAddTypeModal()}else console.error("Formulario de tipo inv\xE1lido.")}onSubmit(){let n=this.productForm.get("provider")?.value,r=this.providers.find(o=>Number(o.id)===Number(n));if(this.productForm.valid){let o={name:this.productForm.get("name")?.value,type:this.productForm.get("type")?.value,quantity:this.productForm.get("quantity")?.value,unit:this.productForm.get("unit")?.value,cost:this.productForm.get("cost")?.value,descripction:this.productForm.get("description")?.value||"",freeze:this.productForm.get("freezed")?.value,expirationDate:this.productForm.get("expirationDate")?.value||"",provider:r||{}};this.RawMaterialsServices.createRawMaterial(o).subscribe(()=>{this.closeModal()},s=>{console.error("Error al crear la materia prima",s)})}}getProviders(){this.providersService.getProviders().subscribe(n=>{this.providers=n.sort((r,o)=>r.name.localeCompare(o.name))})}loadProductTypes(){this.InventoryService.getInputsTypes().subscribe(n=>{this.inventoryTypes=n.sort((r,o)=>r.localeCompare(o))})}updateExpirationDateState(n){let r=this.productForm.get("expirationDate");n?r?.enable():r?.disable()}};t.\u0275fac=function(r){return new(r||t)(ee(Fs),ee(ln),ee(Ns),ee(Or))},t.\u0275cmp=Re({type:t,selectors:[["app-add-raw-material"]],outputs:{close:"close"},standalone:!0,features:[Ve],decls:104,vars:40,consts:[["aux","ngForm"],["aux2","ngForm"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content","modal-content-custom"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[3,"ngSubmit","formGroup"],[1,"modal-body"],[1,"row"],[1,"col"],[1,"form-group","row-container"],[1,"row","align-items-center"],[1,"col-2"],["for","name"],["type","text","id","name","name","name","formControlName","name","placeholder","Nombre",1,"form-control",3,"ngClass"],[1,"error-container"],["class","text-danger",4,"ngIf"],["for","type",1,"mb-0"],["id","type","formControlName","type","aria-label","Type Selection","placeholder","Seleccione un tipo",1,"form-select","me-2",3,"ngClass"],["value","","disabled","","selected",""],[3,"value",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-custom",3,"click"],["class","text-danger mt-1",4,"ngIf"],["for","quantity"],["type","text","id","quantity","name","quantity","formControlName","quantity","placeholder","0000",1,"form-control",3,"ngClass"],["for","unit"],["id","unit","formControlName","unit","aria-label","Unit Selection",1,"form-select","me-2",3,"ngClass"],[1,"row","error-container","align-items-center"],["class","col-8 text-danger",4,"ngIf"],["class","col text-danger",4,"ngIf"],["for","cost"],[1,"input-group","mb-3"],[1,"input-group-text"],["type","text","id","cost","name","cost","formControlName","cost","aria-label","Precio","placeholder","00000.00",1,"form-control",3,"ngClass"],[1,"col-3"],[1,"form-check","form-switch","d-flex","align-items-center"],["for","freezed",1,"form-check-label","me-3"],["type","checkbox","data-toggle","switchbutton","id","freezed","name","freezed","formControlName","freezed","checked","","data-onstyle","success",1,"form-check-input",3,"ngClass"],[1,"col-4"],["for","expirationDate"],["type","datetime-local","id","expirationDate","formControlName","expirationDate",1,"form-control",3,"ngClass"],["for","provider"],["id","provider","formControlName","provider","aria-label","Provider Selection","placeholder","Seleccione un proveedor",1,"form-select","me-2",3,"ngClass"],[1,"form-group"],["for","desscription"],["type","text","id","descripcion","name","description","formControlName","description",1,"form-control","desc",3,"ngClass"],[1,"modal-footer","justify-content-center"],["type","submit",1,"btn","btn-custom"],["class","modal modal-bg fade show","tabindex","-1","style","display: block","aria-modal","true","role","dialog",4,"ngIf"],[1,"text-danger"],[4,"ngIf"],[3,"value"],[1,"text-danger","mt-1"],[1,"col-8","text-danger"],[1,"col","text-danger"],[1,"modal-content"],["id","confirmDeleteModalLabel",1,"modal-title","fs-5"],["type","button",1,"btn-close",3,"click"],["for","newType"],["type","text","id","newType","formControlName","newType","placeholder","Ingrese el nuevo tipo",1,"form-control",3,"ngClass"],[1,"modal-footer"],["type","button",1,"btn","btn-secondary",3,"click"],["type","submit",1,"btn","btn-success"]],template:function(r,o){if(r&1){let s=je();d(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"h5",6),C(5,"Agregar Materia Prima"),u(),d(6,"button",7),X("click",function(){return fe(s),he(o.closeModal())}),u()(),d(7,"form",8,0),X("ngSubmit",function(){return fe(s),he(o.onSubmit())}),d(9,"div",9)(10,"div",10)(11,"div",11)(12,"div",12)(13,"div",13)(14,"div",14)(15,"label",15),C(16,"Nombre"),u()(),d(17,"div",11),z(18,"input",16),u(),d(19,"div",17),R(20,Pk,3,2,"div",18),u()()(),d(21,"div",12)(22,"div",13)(23,"div",14)(24,"label",19),C(25,"Tipo"),u()(),d(26,"div",11)(27,"select",20)(28,"option",21),C(29," Selecciona un tipo "),u(),R(30,Ok,2,2,"option",22),u()(),d(31,"div",11)(32,"button",23),X("click",function(){return fe(s),he(o.openAddTypeModal())}),C(33," Agregar Tipo "),u()()(),d(34,"div",17),R(35,Lk,2,1,"div",24),u()(),d(36,"div",12)(37,"div",13)(38,"div",14)(39,"label",25),C(40,"Cantidad"),u()(),d(41,"div",11),z(42,"input",26),u(),d(43,"div",14)(44,"label",27),C(45,"Unidad"),u()(),d(46,"div",14)(47,"select",28)(48,"option",21),C(49,"..."),u(),R(50,kk,2,2,"option",22),u()()(),d(51,"div",29),R(52,Bk,3,2,"div",30)(53,qk,2,1,"div",31),u()()(),d(54,"div",11)(55,"div",12)(56,"div",13)(57,"div",14)(58,"label",32),C(59,"Precio Unitario"),u()(),d(60,"div",11)(61,"div",33)(62,"span",34),C(63,"$"),u(),z(64,"input",35),u()(),d(65,"div",17),R(66,zk,3,2,"div",18),u()()(),d(67,"div",12)(68,"div",13)(69,"div",36)(70,"div",37)(71,"label",38),C(72,"Freezar"),u(),z(73,"input",39),u()(),d(74,"div",40)(75,"label",41),C(76,"Fecha de Vencimiento:"),u()(),d(77,"div",11),z(78,"input",42),u(),d(79,"div",17),R(80,Gk,2,0,"div",18),u()()(),d(81,"div",12)(82,"div",13)(83,"div",14)(84,"label",43),C(85,"Proveedor"),u()(),d(86,"div",11)(87,"select",44)(88,"option",21),C(89," Seleccione un proveedor "),u(),R(90,Wk,2,2,"option",22),u()(),d(91,"div",17),R(92,Yk,2,0,"div",18),u()()()(),d(93,"div",45)(94,"label",46),C(95,"Descripcion"),u(),d(96,"textarea",47),C(97,"              "),u(),d(98,"div",17),R(99,Kk,2,0,"div",18),u()()()(),d(100,"div",48)(101,"button",49),C(102,"GUARDAR"),u()()()()()(),R(103,Xk,20,5,"div",50)}if(r&2){let s,a,l,p,h,v,w,g,S,I,A,x,P,U,q,Q,J,le=vt(8);b(7),_("formGroup",o.productForm),b(11),_("ngClass",ye(22,Ps,(((s=o.productForm.get("name"))==null?null:s.dirty)||((s=o.productForm.get("name"))==null?null:s.touched)||le.submitted)&&((s=o.productForm.get("name"))==null?null:s.invalid))),b(2),_("ngIf",le.submitted||((a=o.productForm.get("name"))==null?null:a.invalid)&&(((a=o.productForm.get("name"))==null?null:a.dirty)||((a=o.productForm.get("name"))==null?null:a.touched))),b(7),_("ngClass",ye(24,Ps,(((l=o.productForm.get("type"))==null?null:l.dirty)||((l=o.productForm.get("type"))==null?null:l.touched)||le.submitted)&&((l=o.productForm.get("type"))==null?null:l.invalid))),b(3),_("ngForOf",o.inventoryTypes),b(5),_("ngIf",le.submitted&&((p=o.productForm.get("type"))==null?null:p.invalid)),b(7),_("ngClass",ye(26,Ps,(((h=o.productForm.get("quantity"))==null?null:h.dirty)||((h=o.productForm.get("quantity"))==null?null:h.touched)||le.submitted)&&((h=o.productForm.get("quantity"))==null?null:h.invalid))),b(5),_("ngClass",ye(28,Ps,(((v=o.productForm.get("unit"))==null?null:v.dirty)||((v=o.productForm.get("unit"))==null?null:v.touched)||le.submitted)&&((v=o.productForm.get("unit"))==null?null:v.invalid))),b(3),_("ngForOf",o.units),b(2),_("ngIf",le.submitted||((w=o.productForm.get("quantity"))==null?null:w.invalid)&&(((w=o.productForm.get("quantity"))==null?null:w.dirty)||((w=o.productForm.get("quantity"))==null?null:w.touched))),b(),_("ngIf",le.submitted||((g=o.productForm.get("unit"))==null?null:g.invalid)&&(((g=o.productForm.get("unit"))==null?null:g.dirty)||((g=o.productForm.get("unit"))==null?null:g.touched))),b(11),_("ngClass",ye(30,Ps,(((S=o.productForm.get("cost"))==null?null:S.dirty)||((S=o.productForm.get("cost"))==null?null:S.touched)||le.submitted)&&((S=o.productForm.get("cost"))==null?null:S.invalid))),b(2),_("ngIf",le.submitted||((I=o.productForm.get("cost"))==null?null:I.invalid)&&(((I=o.productForm.get("cost"))==null?null:I.dirty)||((I=o.productForm.get("cost"))==null?null:I.touched))),b(7),_("ngClass",ye(32,Ps,(((A=o.productForm.get("checkbox"))==null?null:A.dirty)||((A=o.productForm.get("checkbox"))==null?null:A.touched)||le.submitted)&&((A=o.productForm.get("checkbox"))==null?null:A.invalid))),b(5),_("ngClass",ye(34,Ps,(((x=o.productForm.get("expirationDate"))==null?null:x.dirty)||((x=o.productForm.get("expirationDate"))==null?null:x.touched)||le.submitted)&&((x=o.productForm.get("expirationDate"))==null?null:x.invalid))),b(2),_("ngIf",((P=o.productForm.get("expirationDate"))==null?null:P.invalid)&&(((P=o.productForm.get("expirationDate"))==null?null:P.dirty)||((P=o.productForm.get("expirationDate"))==null?null:P.touched))),b(7),_("ngClass",ye(36,Ps,(((U=o.productForm.get("provider"))==null?null:U.dirty)||((U=o.productForm.get("provider"))==null?null:U.touched)||le.submitted)&&((U=o.productForm.get("provider"))==null?null:U.invalid))),b(3),_("ngForOf",o.providers),b(2),_("ngIf",le.submitted&&((q=o.productForm.get("provider"))==null?null:q.invalid)||((q=o.productForm.get("provider"))==null?null:q.invalid)&&(((q=o.productForm.get("provider"))==null?null:q.dirty)||((q=o.productForm.get("provider"))==null?null:q.touched))),b(4),_("ngClass",ye(38,Ps,(((Q=o.productForm.get("descripcion"))==null?null:Q.dirty)||((Q=o.productForm.get("descripcion"))==null?null:Q.touched)||le.submitted)&&((Q=o.productForm.get("descripcion"))==null?null:Q.invalid))),b(3),_("ngIf",((J=o.productForm.get("description"))==null?null:J.invalid)&&((J=o.productForm.get("description"))==null?null:J.dirty)&&((J=o.productForm.get("description"))==null?null:J.value)),b(4),_("ngIf",o.addTypeModal)}},dependencies:[rt,kt,Cn,st,$t,an,Vi,Bi,Yt,Yo,Ei,Xt,sn,en,nn],styles:[`@charset "UTF-8";.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content-custom[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:496px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.desc[_ngcontent-%COMP%]{height:6rem}.form-check[_ngcontent-%COMP%], .form-swicth[_ngcontent-%COMP%]{padding-left:0}.form-check-label[_ngcontent-%COMP%]{margin-right:10px}.form-swicth[_ngcontent-%COMP%], .form-check-input[_ngcontent-%COMP%]{margin-left:.15rem}.text-custom[_ngcontent-%COMP%]{color:#1b5e20}.row-container[_ngcontent-%COMP%]{position:relative;min-height:5em}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.modal-footer[_ngcontent-%COMP%]{border-top:none;padding-top:0;padding-bottom:.5rem}.form-control[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important;font-size:1.2rem}.row-custom[_ngcontent-%COMP%]{padding-top:.4rem;padding-bottom:.4rem}
+/*# sourceMappingURL=add-raw-material.component-CV5VOQ7S.css.map */`]});let e=t;return e})();var go=(()=>{let t=class t{constructor(){this.confirmDeleteModal=!1,this.headerMessage="",this.bodyMessage="",this.confirm=new ot,this.cancel=new ot}closeDeleteModal(){this.cancel.emit()}deleteEntity(){this.confirm.emit()}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=Re({type:t,selectors:[["app-delete-modal"]],inputs:{confirmDeleteModal:"confirmDeleteModal",headerMessage:"headerMessage",bodyMessage:"bodyMessage"},outputs:{confirm:"confirm",cancel:"cancel"},standalone:!0,features:[Ve],decls:15,vars:2,consts:[["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","confirmDeleteModalLabel",1,"modal-title","fs-5"],["type","button",1,"btn-close",3,"click"],[1,"modal-body"],[1,"modal-footer"],["type","button",1,"btn","btn-secondary",3,"click"],["type","button",1,"btn","btn-danger",3,"click"]],template:function(r,o){r&1&&(d(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h1",4),C(5),u(),d(6,"button",5),X("click",function(){return o.closeDeleteModal()}),u()(),d(7,"div",6)(8,"p"),C(9),u()(),d(10,"div",7)(11,"button",8),X("click",function(){return o.closeDeleteModal()}),C(12," CANCELAR "),u(),d(13,"button",9),X("click",function(){return o.deleteEntity()}),C(14," CONFIRMAR "),u()()()()()),r&2&&(b(5),yt(" ",o.headerMessage," "),b(4),on(o.bodyMessage))},styles:[`.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-header[_ngcontent-%COMP%]{background-color:#df2437}.modal-body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:.8rem}
+/*# sourceMappingURL=delete-modal.component-L4VGCQFL.css.map */`]});let e=t;return e})();var e8=e=>({"is-invalid":e});function t8(e,t){e&1&&(d(0,"div"),C(1," Nombre es requerido. "),u())}function n8(e,t){e&1&&(d(0,"div"),C(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),u())}function i8(e,t){if(e&1&&(d(0,"div",58),R(1,t8,2,0,"div",59)(2,n8,2,0,"div",59),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.productForm.get("name"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.productForm.get("name"))==null||n.errors==null)&&n.errors.required)&&((n=r.productForm.get("name"))==null||n.errors==null?null:n.errors.pattern))}}function r8(e,t){if(e&1&&(d(0,"option",60),C(1),u()),e&2){let i=t.$implicit;_("value",i),b(),yt(" ",i," ")}}function o8(e,t){e&1&&(d(0,"div"),C(1," Tipo es requerido. "),u())}function s8(e,t){if(e&1&&(d(0,"div",61),R(1,o8,2,0,"div",59),u()),e&2){let i,n=j();b(),_("ngIf",(i=n.productForm.get("type"))==null||i.errors==null?null:i.errors.required)}}function a8(e,t){if(e&1&&(d(0,"option",60),C(1),u()),e&2){let i=t.$implicit;_("value",i),b(),yt(" ",i," ")}}function l8(e,t){e&1&&(d(0,"div"),C(1," Es necesario ingresar una cantidad. "),u())}function c8(e,t){e&1&&(d(0,"div"),C(1," La cantidad debe ser un n\xFAmero v\xE1lido mayor a 0. "),u())}function u8(e,t){if(e&1&&(d(0,"div",62),R(1,l8,2,0,"div",59)(2,c8,2,0,"div",59),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.productForm.get("quantity"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.productForm.get("quantity"))==null||n.errors==null)&&n.errors.required)&&((n=r.productForm.get("quantity"))==null||n.errors==null?null:n.errors.invalidQuantity))}}function d8(e,t){e&1&&(d(0,"div"),C(1," Ingrese una unidad. "),u())}function p8(e,t){if(e&1&&(d(0,"div",63),R(1,d8,2,0,"div",59),u()),e&2){let i,n=j();b(),_("ngIf",(i=n.productForm.get("unit"))==null||i.errors==null?null:i.errors.required)}}function f8(e,t){e&1&&(d(0,"div"),C(1," Es necesario ingresar un Precio. "),u())}function h8(e,t){e&1&&(d(0,"div"),C(1," El Precio debe ser un n\xFAmero v\xE1lido y mayor que cero. "),u())}function m8(e,t){if(e&1&&(d(0,"div",58),R(1,f8,2,0,"div",59)(2,h8,2,0,"div",59),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.productForm.get("cost"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.productForm.get("cost"))==null||n.errors==null)&&n.errors.required)&&((n=r.productForm.get("cost"))==null||n.errors==null?null:n.errors.invalidQuantity))}}function g8(e,t){e&1&&(d(0,"div",58),C(1," Se necesita una Fecha de Vencimiento. "),u())}function v8(e,t){if(e&1&&(d(0,"option",60),C(1),u()),e&2){let i=t.$implicit;_("value",i.id),b(),yt(" ",i.name," ")}}function y8(e,t){e&1&&(d(0,"div",58),C(1," Se necesita un Provedor. "),u())}function b8(e,t){e&1&&(d(0,"div",58),C(1," Descripcion no admite simbolos. "),u())}function _8(e,t){e&1&&(d(0,"div"),C(1," El tipo es requerido. "),u())}function C8(e,t){e&1&&(d(0,"div"),C(1," El tipo no debe contener n\xFAmeros ni s\xEDmbolos. "),u())}function w8(e,t){if(e&1&&(d(0,"div",61),R(1,_8,2,0,"div",59)(2,C8,2,0,"div",59),u()),e&2){let i,n,r=j(2);b(),_("ngIf",(i=r.addTypeForm.get("newType"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",(n=r.addTypeForm.get("newType"))==null||n.errors==null?null:n.errors.pattern)}}function E8(e,t){if(e&1){let i=je();d(0,"div",2)(1,"div",3)(2,"div",64)(3,"div",65)(4,"h1",66),C(5," Agregar Tipo "),u(),d(6,"button",67),X("click",function(){fe(i);let r=j();return he(r.closeAddTypeModal())}),u()(),d(7,"form",15,1),X("ngSubmit",function(){fe(i);let r=j();return he(r.addType())}),d(9,"div",16)(10,"div",50)(11,"label",68),C(12,"Nuevo Tipo"),u(),z(13,"input",69),R(14,w8,3,2,"div",30),u()(),d(15,"div",70)(16,"button",71),X("click",function(){fe(i);let r=j();return he(r.closeAddTypeModal())}),C(17," CANCELAR "),u(),d(18,"button",72),C(19," GUARDAR "),u()()()()()()}if(e&2){let i,n,r=vt(8),o=j();b(7),_("formGroup",o.addTypeForm),b(6),_("ngClass",ye(3,e8,(((i=o.addTypeForm.get("newType"))==null?null:i.touched)||r.submitted)&&((i=o.addTypeForm.get("newType"))==null?null:i.invalid))),b(),_("ngIf",(((n=o.addTypeForm.get("newType"))==null?null:n.touched)||r.submitted)&&((n=o.addTypeForm.get("newType"))==null?null:n.invalid))}}function S8(e,t){if(e&1){let i=je();d(0,"app-delete-modal",73),X("cancel",function(){fe(i);let r=j();return he(r.closeDeleteModal())})("confirm",function(){fe(i);let r=j();return he(r.deleteProduct())}),u()}e&2&&_("headerMessage","Eliminar Proveedor")("bodyMessage","\xBFEst\xE1s seguro que deseas borrar este Proveedor?")}var wx=(()=>{let t=class t{constructor(n,r,o,s){this.RawMaterialsServices=n,this.formBuilder=r,this.InventoryService=o,this.ProvidersService=s,this.productInput={},this.close=new ot,this.inventoryTypes=[],this.inputsTypes=[],this.units=[],this.addTypeModal=!1,this.providers=[],this.avaibleFreezed=!1,this.isToggled=!1,this.confirmDeleteModal=!1,this.productForm=this.formBuilder.group({name:[{value:"",disabled:!this.isToggled},[se.required]],type:[{value:"",disabled:!this.isToggled},[se.required,se.pattern("^[a-zA-Z ]*$")]],quantity:[{value:"",disabled:!this.isToggled},[se.required]],unit:[{value:"",disabled:!this.isToggled},[se.required]],cost:[{value:"",disabled:!this.isToggled},[se.required,As]],description:[{value:"",disabled:!this.isToggled},[se.pattern(/^[a-zA-Z0-9\s]+$/)]],freezed:[{value:!1,disabled:!0},[se.required]],expirationDate:[{value:"",disabled:!0}],provider:[{value:"",disabled:!this.isToggled},[se.required]]},{validators:Mg("expirationDate","freezed")}),this.addTypeForm=this.formBuilder.group({newType:["",[se.required,se.pattern("^[a-zA-Z ]*$")]]})}ngOnInit(){this.InventoryService.chargeRawMaterialTypes(),this.getProviders(),this.loadProductTypes(),this.units=Object.values(Yi),this.productForm.get("type")?.valueChanges.subscribe(()=>{this.updateFreezedState()}),this.productForm.get("freezed")?.valueChanges.subscribe(n=>{this.updateExpirationDateState(n)})}ngOnChanges(n){n.productInput&&n.productInput.currentValue&&this.productForm.patchValue(this.transformProductInput(this.productInput))}toggleEditMode(){this.isToggled=!this.isToggled,this.isToggled?this.productForm.enable():this.productForm.disable(),this.updateFreezedState()}closeModal(){this.close.emit()}confirmDelete(){this.confirmDeleteModal=!0}closeDeleteModal(){this.confirmDeleteModal=!1}deleteProduct(){this.RawMaterialsServices.deleteRawMaterial(this.productInput.id).subscribe(()=>{this.closeModal()},n=>{console.error("Error al eliminar la materia prima",n)})}openAddTypeModal(){this.addTypeModal=!0}closeAddTypeModal(){this.addTypeModal=!1}addType(){if(this.addTypeForm.valid){let n=this.addTypeForm.value.newType;this.InventoryService.addRawMaterialType(n),this.closeAddTypeModal()}else console.error("Formulario de tipo inv\xE1lido.")}onSubmit(){if(this.productForm.valid){let n=this.productForm.get("provider")?.value,r=this.providers.find(s=>Number(s.id)===Number(n)),o={id:this.productInput.id,name:this.productForm.get("name")?.value,type:this.productForm.get("type")?.value,quantity:this.productForm.get("quantity")?.value,unit:this.productForm.get("unit")?.value,cost:this.productForm.get("cost")?.value,descripction:this.productForm.get("description")?.value||"",freeze:this.productForm.get("freezed")?.value,expirationDate:this.productForm.get("expirationDate")?.value,provider:r||{},admissionDate:Uu(this.productInput.admissionDate),lastModificationDate:Uu(this.productInput.lastModificationDate)};this.RawMaterialsServices.updateRawMaterial(o).subscribe(()=>{this.closeModal()},s=>{console.error("Error al actualizar la materia prima",s)})}}transformProductInput(n){return{name:n.name??"",type:n.type??"",quantity:n.quantity?String(n.quantity):"",unit:n.unit??"",cost:n.cost?String(n.cost):"",freezed:n.freeze??!1,expirationDate:Ds(n.expirationDate),provider:n.provider.id??""}}getProviders(){this.ProvidersService.getProviders().subscribe(n=>{this.providers=n.sort((r,o)=>r.name.localeCompare(o.name))})}loadProductTypes(){this.InventoryService.getInputsTypes().subscribe(n=>{this.inventoryTypes=n.sort((r,o)=>r.localeCompare(o))})}updateExpirationDateState(n){let r=this.productForm.get("expirationDate");n?r?.enable():r?.disable()}updateFreezedState(){let n=this.productForm.get("type"),r=this.productForm.get("freezed");if(n&&r){let o=n.value;this.inputsTypes.includes(o)?(r.disable(),r.value&&r.setValue(!1)):r.enable()}}};t.\u0275fac=function(r){return new(r||t)(ee(Fs),ee(ln),ee(Ns),ee(Or))},t.\u0275cmp=Re({type:t,selectors:[["app-raw-material"]],inputs:{productInput:"productInput"},outputs:{close:"close"},standalone:!0,features:[qn,Ve],decls:115,vars:16,consts:[["aux","ngForm"],["aux2","ngForm"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content","modal-content-custom"],[1,"modal-header","d-flex","justify-content-center","align-items-center"],[1,"row","w-100"],[1,"col"],[1,"modal-title"],[1,"col","d-flex","justify-content-center"],[1,"form-check","form-switch"],["for","flexSwitchCheckDefault",1,"form-check-label"],["type","checkbox","id","flexSwitchCheckDefault",1,"form-check-input","custom-switch",3,"change"],[1,"col","d-flex","justify-content-end"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[3,"ngSubmit","formGroup"],[1,"modal-body"],[1,"row"],[1,"form-group","row-container"],[1,"row","align-items-center"],[1,"col-2"],["for","name"],["type","text","id","name","name","name","formControlName","name",1,"form-control"],[1,"error-container"],["class","text-danger",4,"ngIf"],["for","type",1,"mb-0"],["id","type","formControlName","type","aria-label","Type Selection","placeholder","Seleccione un tipo",1,"form-select","me-2"],["value","","disabled","","selected",""],[3,"value",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-custom",3,"click","disabled"],["class","text-danger mt-1",4,"ngIf"],["for","quantity"],["type","number","id","quantity","name","quantity","formControlName","quantity",1,"form-control"],["for","unit"],["id","unit","formControlName","unit","aria-label","Unit Selection",1,"form-select","me-2"],[1,"row","error-container","align-items-center"],["class","col-8 text-danger",4,"ngIf"],["class","col text-danger",4,"ngIf"],["for","cost"],[1,"input-group","mb-3"],[1,"input-group-text"],["type","text","id","cost","name","cost","formControlName","cost","aria-label","Costo",1,"form-control"],[1,"col-3"],[1,"form-check","form-switch","d-flex","align-items-center"],["for","freezed",1,"form-check-label","me-3"],["type","checkbox","data-toggle","switchbutton","id","freezed","name","freezed","formControlName","freezed","checked","","data-onstyle","success",1,"form-check-input"],[1,"col-4"],["for","expirationDate"],["type","datetime-local","id","expirationDate","formControlName","expirationDate",1,"form-control"],["id","provider","formControlName","provider","aria-label","Provider Selection",1,"form-select","me-2"],[1,"form-group"],["for","desscription"],["type","text","id","descripcion","name","description","formControlName","description",1,"form-control","desc"],[1,"modal-footer","justify-content-center"],["type","submit",1,"btn","btn-custom",3,"disabled"],["type","button",1,"btn","btn-danger",3,"click"],["class","modal modal-bg fade show","tabindex","-1","style","display: block","aria-modal","true","role","dialog",4,"ngIf"],[3,"headerMessage","bodyMessage","cancel","confirm",4,"ngIf"],[1,"text-danger"],[4,"ngIf"],[3,"value"],[1,"text-danger","mt-1"],[1,"col-8","text-danger"],[1,"col","text-danger"],[1,"modal-content"],[1,"modal-header"],["id","confirmDeleteModalLabel",1,"modal-title","fs-5"],["type","button",1,"btn-close",3,"click"],["for","newType"],["type","text","id","newType","formControlName","newType","placeholder","Ingrese el nuevo tipo",1,"form-control",3,"ngClass"],[1,"modal-footer"],["type","button",1,"btn","btn-secondary",3,"click"],["type","submit",1,"btn","btn-success"],[3,"cancel","confirm","headerMessage","bodyMessage"]],template:function(r,o){if(r&1){let s=je();d(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6)(5,"div",7)(6,"h5",8),C(7,"Detalles Existencia"),u()(),d(8,"div",9)(9,"div",10)(10,"label",11),C(11,"Editar"),u(),d(12,"input",12),X("change",function(){return fe(s),he(o.toggleEditMode())}),u()()(),d(13,"div",13)(14,"button",14),X("click",function(){return fe(s),he(o.closeModal())}),u()()()(),d(15,"form",15,0),X("ngSubmit",function(){return fe(s),he(o.onSubmit())}),d(17,"div",16)(18,"div",17)(19,"div",7)(20,"div",18)(21,"div",19)(22,"div",20)(23,"label",21),C(24,"Nombre"),u()(),d(25,"div",7),z(26,"input",22),u(),d(27,"div",23),R(28,i8,3,2,"div",24),u()()(),d(29,"div",18)(30,"div",19)(31,"div",20)(32,"label",25),C(33,"Tipo"),u()(),d(34,"div",7)(35,"select",26)(36,"option",27),C(37," Selecciona un tipo "),u(),R(38,r8,2,2,"option",28),u()(),d(39,"div",7)(40,"button",29),X("click",function(){return fe(s),he(o.openAddTypeModal())}),C(41," Agregar Tipo "),u()()(),d(42,"div",23),R(43,s8,2,1,"div",30),u()(),d(44,"div",18)(45,"div",19)(46,"div",20)(47,"label",31),C(48,"Cantidad"),u()(),d(49,"div",7),z(50,"input",32),u(),d(51,"div",20)(52,"label",33),C(53,"Unidad"),u()(),d(54,"div",20)(55,"select",34)(56,"option",27),C(57,"..."),u(),R(58,a8,2,2,"option",28),u()()(),d(59,"div",35),R(60,u8,3,2,"div",36)(61,p8,2,1,"div",37),u()()(),d(62,"div",7)(63,"div",18)(64,"div",19)(65,"div",20)(66,"label",38),C(67,"Precio Unitario"),u()(),d(68,"div",7)(69,"div",39)(70,"span",40),C(71,"$"),u(),z(72,"input",41),u()(),d(73,"div",23),R(74,m8,3,2,"div",24),u()()(),d(75,"div",18)(76,"div",19)(77,"div",42)(78,"div",43)(79,"label",44),C(80,"Freezar"),u(),z(81,"input",45),u()(),d(82,"div",46)(83,"label",47),C(84,"Fecha de Vencimiento:"),u()(),d(85,"div",7),z(86,"input",48),u(),d(87,"div",23),R(88,g8,2,0,"div",24),u()()(),d(89,"div",18)(90,"div",19)(91,"div",20)(92,"label",47),C(93,"Proveedor"),u()(),d(94,"div",7)(95,"select",49)(96,"option",27),C(97,"..."),u(),R(98,v8,2,2,"option",28),u()(),d(99,"div",23),R(100,y8,2,0,"div",24),u()()()(),d(101,"div",50)(102,"label",51),C(103,"Descripcion"),u(),d(104,"textarea",52),C(105,"              "),u(),d(106,"div",23),R(107,b8,2,0,"div",24),u()()()(),d(108,"div",53)(109,"button",54),C(110," GUARDAR "),u(),d(111,"button",55),X("click",function(){return fe(s),he(o.confirmDelete())}),C(112," BORRAR "),u()()()()()(),R(113,E8,20,5,"div",56)(114,S8,1,2,"app-delete-modal",57)}if(r&2){let s,a,l,p,h,v,w,g,S=vt(16);b(15),_("formGroup",o.productForm),b(13),_("ngIf",S.submitted||((s=o.productForm.get("name"))==null?null:s.invalid)&&(((s=o.productForm.get("name"))==null?null:s.dirty)||((s=o.productForm.get("name"))==null?null:s.touched))),b(10),_("ngForOf",o.inventoryTypes),b(2),_("disabled",!o.isToggled),b(3),_("ngIf",S.submitted&&((a=o.productForm.get("type"))==null?null:a.invalid)),b(15),_("ngForOf",o.units),b(2),_("ngIf",S.submitted||((l=o.productForm.get("quantity"))==null?null:l.invalid)&&(((l=o.productForm.get("quantity"))==null?null:l.dirty)||((l=o.productForm.get("quantity"))==null?null:l.touched))),b(),_("ngIf",S.submitted||((p=o.productForm.get("unit"))==null?null:p.invalid)&&(((p=o.productForm.get("unit"))==null?null:p.dirty)||((p=o.productForm.get("unit"))==null?null:p.touched))),b(13),_("ngIf",S.submitted||((h=o.productForm.get("cost"))==null?null:h.invalid)&&(((h=o.productForm.get("cost"))==null?null:h.dirty)||((h=o.productForm.get("cost"))==null?null:h.touched))),b(14),_("ngIf",((v=o.productForm.get("expirationDate"))==null?null:v.invalid)&&(((v=o.productForm.get("expirationDate"))==null?null:v.dirty)||((v=o.productForm.get("expirationDate"))==null?null:v.touched))),b(10),_("ngForOf",o.providers),b(2),_("ngIf",S.submitted&&((w=o.productForm.get("provider"))==null?null:w.invalid)||((w=o.productForm.get("provider"))==null?null:w.invalid)&&(((w=o.productForm.get("provider"))==null?null:w.dirty)||((w=o.productForm.get("provider"))==null?null:w.touched))),b(7),_("ngIf",((g=o.productForm.get("description"))==null?null:g.invalid)&&((g=o.productForm.get("description"))==null?null:g.dirty)&&((g=o.productForm.get("description"))==null?null:g.value)),b(2),_("disabled",!o.isToggled),b(4),_("ngIf",o.addTypeModal),b(),_("ngIf",o.confirmDeleteModal)}},dependencies:[$t,an,Vi,Bi,Yt,Hn,Yo,Ei,Xt,sn,en,nn,rt,kt,Cn,st,go],styles:[`@charset "UTF-8";.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content-custom[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:496px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.desc[_ngcontent-%COMP%]{height:6rem}.form-check[_ngcontent-%COMP%], .form-swicth[_ngcontent-%COMP%]{padding-left:0}.form-check-label[_ngcontent-%COMP%]{margin-right:10px}.form-swicth[_ngcontent-%COMP%], .form-check-input[_ngcontent-%COMP%]{margin-left:.15rem}.text-custom[_ngcontent-%COMP%]{color:#1b5e20}.row-container[_ngcontent-%COMP%]{position:relative;min-height:5em}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.modal-footer[_ngcontent-%COMP%]{border-top:none;padding-top:0;padding-bottom:.5rem}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.custom-switch[_ngcontent-%COMP%]:focus{border-color:#1b5e20;box-shadow:0 0 0 .25rem #1b5e2040}.custom-switch[_ngcontent-%COMP%]:checked{background-color:#88ca5e;border-color:#1b5e20}.custom-switch[_ngcontent-%COMP%]:checked:before{background-color:#fff}
+/*# sourceMappingURL=raw-material.component-LICNCBRN.css.map */`]});let e=t;return e})();var I8=e=>({"is-invalid":e});function x8(e,t){e&1&&(d(0,"div"),C(1," Nombre es requerido. "),u())}function D8(e,t){e&1&&(d(0,"div"),C(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),u())}function M8(e,t){if(e&1&&(d(0,"div",52),R(1,x8,2,0,"div",53)(2,D8,2,0,"div",53),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.productForm.get("name"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.productForm.get("name"))==null||n.errors==null)&&n.errors.required)&&((n=r.productForm.get("name"))==null||n.errors==null?null:n.errors.pattern))}}function A8(e,t){if(e&1&&(d(0,"option",54),C(1),u()),e&2){let i=t.$implicit;_("value",i),b(),yt(" ",i," ")}}function T8(e,t){e&1&&(d(0,"div"),C(1," Tipo es requerido. "),u())}function F8(e,t){if(e&1&&(d(0,"div",55),R(1,T8,2,0,"div",53),u()),e&2){let i,n=j();b(),_("ngIf",(i=n.productForm.get("type"))==null||i.errors==null?null:i.errors.required)}}function N8(e,t){if(e&1&&(d(0,"option",54),C(1),u()),e&2){let i=t.$implicit;_("value",i),b(),yt(" ",i," ")}}function P8(e,t){e&1&&(d(0,"div"),C(1," Es necesario ingresar una cantidad. "),u())}function O8(e,t){e&1&&(d(0,"div"),C(1," La cantidad debe ser un n\xFAmero v\xE1lido mayor a 0. "),u())}function R8(e,t){if(e&1&&(d(0,"div",56),R(1,P8,2,0,"div",53)(2,O8,2,0,"div",53),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.productForm.get("quantity"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.productForm.get("quantity"))==null||n.errors==null)&&n.errors.required)&&((n=r.productForm.get("quantity"))==null||n.errors==null?null:n.errors.invalidQuantity))}}function L8(e,t){e&1&&(d(0,"div"),C(1," Ingrese una unidad. "),u())}function k8(e,t){if(e&1&&(d(0,"div",57),R(1,L8,2,0,"div",53),u()),e&2){let i,n=j();b(),_("ngIf",(i=n.productForm.get("unit"))==null||i.errors==null?null:i.errors.required)}}function j8(e,t){e&1&&(d(0,"div"),C(1," Es necesario ingresar un Precio. "),u())}function V8(e,t){e&1&&(d(0,"div"),C(1," El Precio debe ser un n\xFAmero v\xE1lido y mayor que cero. "),u())}function B8(e,t){if(e&1&&(d(0,"div",52),R(1,j8,2,0,"div",53)(2,V8,2,0,"div",53),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.productForm.get("cost"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.productForm.get("cost"))==null||n.errors==null)&&n.errors.required)&&((n=r.productForm.get("cost"))==null||n.errors==null?null:n.errors.invalidQuantity))}}function U8(e,t){if(e&1&&(d(0,"option",54),C(1),u()),e&2){let i=t.$implicit;_("value",i.id),b(),yt(" ",i.name," ")}}function q8(e,t){e&1&&(d(0,"div",52),C(1," Se necesita un Provedor. "),u())}function $8(e,t){e&1&&(d(0,"div",52),C(1," Descripcion no admite simbolos. "),u())}function H8(e,t){e&1&&(d(0,"div"),C(1," El tipo es requerido. "),u())}function z8(e,t){e&1&&(d(0,"div"),C(1," El tipo no debe contener n\xFAmeros ni s\xEDmbolos. "),u())}function G8(e,t){if(e&1&&(d(0,"div",55),R(1,H8,2,0,"div",53)(2,z8,2,0,"div",53),u()),e&2){let i,n,r=j(2);b(),_("ngIf",(i=r.addTypeForm.get("newType"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",(n=r.addTypeForm.get("newType"))==null||n.errors==null?null:n.errors.pattern)}}function W8(e,t){if(e&1){let i=je();d(0,"div",2)(1,"div",3)(2,"div",58)(3,"div",59)(4,"h1",60),C(5," Agregar Tipo "),u(),d(6,"button",61),X("click",function(){fe(i);let r=j();return he(r.closeAddTypeModal())}),u()(),d(7,"form",15,1),X("ngSubmit",function(){fe(i);let r=j();return he(r.addType())}),d(9,"div",16)(10,"div",44)(11,"label",62),C(12,"Nuevo Tipo"),u(),z(13,"input",63),R(14,G8,3,2,"div",30),u()(),d(15,"div",64)(16,"button",65),X("click",function(){fe(i);let r=j();return he(r.closeAddTypeModal())}),C(17," CANCELAR "),u(),d(18,"button",66),C(19," GUARDAR "),u()()()()()()}if(e&2){let i,n,r=vt(8),o=j();b(7),_("formGroup",o.addTypeForm),b(6),_("ngClass",ye(3,I8,(((i=o.addTypeForm.get("newType"))==null?null:i.touched)||r.submitted)&&((i=o.addTypeForm.get("newType"))==null?null:i.invalid))),b(),_("ngIf",(((n=o.addTypeForm.get("newType"))==null?null:n.touched)||r.submitted)&&((n=o.addTypeForm.get("newType"))==null?null:n.invalid))}}function Y8(e,t){if(e&1){let i=je();d(0,"app-delete-modal",67),X("cancel",function(){fe(i);let r=j();return he(r.closeDeleteModal())})("confirm",function(){fe(i);let r=j();return he(r.deleteProduct())}),u()}e&2&&_("headerMessage","Eliminar Proveedor")("bodyMessage","\xBFEst\xE1s seguro que deseas borrar este Proveedor?")}var Ex=(()=>{let t=class t{constructor(n,r,o,s){this.InputsService=n,this.formBuilder=r,this.InventoryService=o,this.ProvidersService=s,this.productInput={},this.close=new ot,this.inventoryTypes=[],this.inputsTypes=[],this.units=[],this.addTypeModal=!1,this.providers=[],this.avaibleFreezed=!1,this.isToggled=!1,this.confirmDeleteModal=!1,this.productForm=this.formBuilder.group({name:[{value:"",disabled:!this.isToggled},[se.required]],type:[{value:"",disabled:!this.isToggled},[se.required,se.pattern("^[a-zA-Z ]*$")]],quantity:[{value:"",disabled:!this.isToggled},[se.required]],unit:[{value:"",disabled:!this.isToggled},[se.required]],cost:[{value:"",disabled:!this.isToggled},[se.required,As]],description:[{value:"",disabled:!this.isToggled},[se.pattern(/^[a-zA-Z0-9\s]+$/)]],provider:[{value:"",disabled:!this.isToggled},[se.required]]},{validators:Mg("expirationDate","freezed")}),this.addTypeForm=this.formBuilder.group({newType:["",[se.required,se.pattern("^[a-zA-Z ]*$")]]})}ngOnInit(){this.InventoryService.chargeInputsTypes(),this.getProviders(),this.loadProductTypes(),this.InputsService.getInputsTypes().subscribe(n=>this.inputsTypes=n),this.units=Object.values(Yi)}ngOnChanges(n){n.productInput&&n.productInput.currentValue&&this.productForm.patchValue(this.transformProductInput(this.productInput))}toggleEditMode(){this.isToggled=!this.isToggled,this.isToggled?this.productForm.enable():this.productForm.disable()}closeModal(){this.close.emit()}confirmDelete(){this.confirmDeleteModal=!0}closeDeleteModal(){this.confirmDeleteModal=!1}deleteProduct(){this.InputsService.deleteInput(this.productInput.id).subscribe(()=>{this.closeModal()},n=>{console.error("Error al eliminar el insumo",n)})}openAddTypeModal(){this.addTypeModal=!0}closeAddTypeModal(){this.addTypeModal=!1}addType(){if(this.addTypeForm.valid){let n=this.addTypeForm.value.newType;this.InventoryService.addInputsType(n),this.InventoryService.getInputsTypes().subscribe(r=>{this.inventoryTypes=r,this.closeAddTypeModal()})}else console.log("Formulario de tipo inv\xE1lido.")}onSubmit(){if(this.productForm.valid){let n=this.productForm.get("provider")?.value,r=this.providers.find(s=>Number(s.id)===Number(n)),o={id:this.productInput.id,name:this.productForm.get("name")?.value,type:this.productForm.get("type")?.value,quantity:this.productForm.get("quantity")?.value,unit:this.productForm.get("unit")?.value,cost:this.productForm.get("cost")?.value,description:this.productForm.get("description")?.value||"",provider:r||{},admissionDate:Uu(this.productInput.admissionDate),lastModificationDate:Uu(this.productInput.lastModificationDate)};this.InputsService.updateInput(o).subscribe(()=>{this.closeModal()},s=>{console.error("Error al crear el insumo",s)})}else console.error("Formulario inv\xE1lido")}transformProductInput(n){return{name:n.name??"",type:n.type??"",quantity:n.quantity?String(n.quantity):"",unit:n.unit??"",cost:n.cost?String(n.cost):"",freezed:n.freeze??!1,expirationDate:Ds(n.expirationDate),provider:n.provider.id??""}}getProviders(){this.ProvidersService.getProviders().subscribe(n=>{this.providers=n.sort((r,o)=>r.name.localeCompare(o.name))})}loadProductTypes(){this.InventoryService.getInputsTypes().subscribe(n=>{this.inventoryTypes=n.sort((r,o)=>r.localeCompare(o))})}};t.\u0275fac=function(r){return new(r||t)(ee(Ts),ee(ln),ee(Ns),ee(Or))},t.\u0275cmp=Re({type:t,selectors:[["app-inputs"]],inputs:{productInput:"productInput"},outputs:{close:"close"},standalone:!0,features:[qn,Ve],decls:101,vars:15,consts:[["aux","ngForm"],["aux2","ngForm"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content","modal-content-custom"],[1,"modal-header","d-flex","justify-content-center","align-items-center"],[1,"row","w-100"],[1,"col"],[1,"modal-title"],[1,"col","d-flex","justify-content-center"],[1,"form-check","form-switch"],["for","flexSwitchCheckDefault",1,"form-check-label"],["type","checkbox","id","flexSwitchCheckDefault",1,"form-check-input","custom-switch",3,"change"],[1,"col","d-flex","justify-content-end"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[3,"ngSubmit","formGroup"],[1,"modal-body"],[1,"row"],[1,"form-group","row-container"],[1,"row","align-items-center"],[1,"col-2"],["for","name"],["type","text","id","name","name","name","formControlName","name",1,"form-control"],[1,"error-container"],["class","text-danger",4,"ngIf"],["for","type",1,"mb-0"],["id","type","formControlName","type","aria-label","Type Selection","placeholder","Seleccione un tipo",1,"form-select","me-2"],["value","","disabled","","selected",""],[3,"value",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-custom",3,"click","disabled"],["class","text-danger mt-1",4,"ngIf"],["for","quantity"],["type","number","id","quantity","name","quantity","formControlName","quantity",1,"form-control"],["for","unit"],["id","unit","formControlName","unit","aria-label","Unit Selection",1,"form-select","me-2"],[1,"row","error-container","align-items-center"],["class","col-8 text-danger",4,"ngIf"],["class","col text-danger",4,"ngIf"],["for","cost"],[1,"input-group","mb-3"],[1,"input-group-text"],["type","text","id","cost","name","cost","formControlName","cost","aria-label","Costo",1,"form-control"],["for","expirationDate"],["id","provider","formControlName","provider","aria-label","Provider Selection",1,"form-select","me-2"],[1,"form-group"],["for","desscription"],["type","text","id","descripcion","name","description","formControlName","description",1,"form-control","desc"],[1,"modal-footer","justify-content-center"],["type","submit",1,"btn","btn-custom",3,"disabled"],["type","button",1,"btn","btn-danger",3,"click"],["class","modal modal-bg fade show","tabindex","-1","style","display: block","aria-modal","true","role","dialog",4,"ngIf"],[3,"headerMessage","bodyMessage","cancel","confirm",4,"ngIf"],[1,"text-danger"],[4,"ngIf"],[3,"value"],[1,"text-danger","mt-1"],[1,"col-8","text-danger"],[1,"col","text-danger"],[1,"modal-content"],[1,"modal-header"],["id","confirmDeleteModalLabel",1,"modal-title","fs-5"],["type","button",1,"btn-close",3,"click"],["for","newType"],["type","text","id","newType","formControlName","newType","placeholder","Ingrese el nuevo tipo",1,"form-control",3,"ngClass"],[1,"modal-footer"],["type","button",1,"btn","btn-secondary",3,"click"],["type","submit",1,"btn","btn-success"],[3,"cancel","confirm","headerMessage","bodyMessage"]],template:function(r,o){if(r&1){let s=je();d(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6)(5,"div",7)(6,"h5",8),C(7,"Detalles Existencia"),u()(),d(8,"div",9)(9,"div",10)(10,"label",11),C(11,"Editar"),u(),d(12,"input",12),X("change",function(){return fe(s),he(o.toggleEditMode())}),u()()(),d(13,"div",13)(14,"button",14),X("click",function(){return fe(s),he(o.closeModal())}),u()()()(),d(15,"form",15,0),X("ngSubmit",function(){return fe(s),he(o.onSubmit())}),d(17,"div",16)(18,"div",17)(19,"div",7)(20,"div",18)(21,"div",19)(22,"div",20)(23,"label",21),C(24,"Nombre"),u()(),d(25,"div",7),z(26,"input",22),u(),d(27,"div",23),R(28,M8,3,2,"div",24),u()()(),d(29,"div",18)(30,"div",19)(31,"div",20)(32,"label",25),C(33,"Tipo"),u()(),d(34,"div",7)(35,"select",26)(36,"option",27),C(37," Selecciona un tipo "),u(),R(38,A8,2,2,"option",28),u()(),d(39,"div",7)(40,"button",29),X("click",function(){return fe(s),he(o.openAddTypeModal())}),C(41," Agregar Tipo "),u()()(),d(42,"div",23),R(43,F8,2,1,"div",30),u()(),d(44,"div",18)(45,"div",19)(46,"div",20)(47,"label",31),C(48,"Cantidad"),u()(),d(49,"div",7),z(50,"input",32),u(),d(51,"div",20)(52,"label",33),C(53,"Unidad"),u()(),d(54,"div",20)(55,"select",34)(56,"option",27),C(57,"..."),u(),R(58,N8,2,2,"option",28),u()()(),d(59,"div",35),R(60,R8,3,2,"div",36)(61,k8,2,1,"div",37),u()()(),d(62,"div",7)(63,"div",18)(64,"div",19)(65,"div",20)(66,"label",38),C(67,"Precio Unitario"),u()(),d(68,"div",7)(69,"div",39)(70,"span",40),C(71,"$"),u(),z(72,"input",41),u()(),d(73,"div",23),R(74,B8,3,2,"div",24),u()()(),d(75,"div",18)(76,"div",19)(77,"div",20)(78,"label",42),C(79,"Proveedor"),u()(),d(80,"div",7)(81,"select",43)(82,"option",27),C(83,"..."),u(),R(84,U8,2,2,"option",28),u()(),d(85,"div",23),R(86,q8,2,0,"div",24),u()()()(),d(87,"div",44)(88,"label",45),C(89,"Descripcion"),u(),d(90,"textarea",46),C(91,"              "),u(),d(92,"div",23),R(93,$8,2,0,"div",24),u()()()(),d(94,"div",47)(95,"button",48),C(96," GUARDAR "),u(),d(97,"button",49),X("click",function(){return fe(s),he(o.confirmDelete())}),C(98," BORRAR "),u()()()()()(),R(99,W8,20,5,"div",50)(100,Y8,1,2,"app-delete-modal",51)}if(r&2){let s,a,l,p,h,v,w,g=vt(16);b(15),_("formGroup",o.productForm),b(13),_("ngIf",g.submitted||((s=o.productForm.get("name"))==null?null:s.invalid)&&(((s=o.productForm.get("name"))==null?null:s.dirty)||((s=o.productForm.get("name"))==null?null:s.touched))),b(10),_("ngForOf",o.inventoryTypes),b(2),_("disabled",!o.isToggled),b(3),_("ngIf",g.submitted&&((a=o.productForm.get("type"))==null?null:a.invalid)),b(15),_("ngForOf",o.units),b(2),_("ngIf",g.submitted||((l=o.productForm.get("quantity"))==null?null:l.invalid)&&(((l=o.productForm.get("quantity"))==null?null:l.dirty)||((l=o.productForm.get("quantity"))==null?null:l.touched))),b(),_("ngIf",g.submitted||((p=o.productForm.get("unit"))==null?null:p.invalid)&&(((p=o.productForm.get("unit"))==null?null:p.dirty)||((p=o.productForm.get("unit"))==null?null:p.touched))),b(13),_("ngIf",g.submitted||((h=o.productForm.get("cost"))==null?null:h.invalid)&&(((h=o.productForm.get("cost"))==null?null:h.dirty)||((h=o.productForm.get("cost"))==null?null:h.touched))),b(10),_("ngForOf",o.providers),b(2),_("ngIf",g.submitted&&((v=o.productForm.get("provider"))==null?null:v.invalid)||((v=o.productForm.get("provider"))==null?null:v.invalid)&&(((v=o.productForm.get("provider"))==null?null:v.dirty)||((v=o.productForm.get("provider"))==null?null:v.touched))),b(7),_("ngIf",((w=o.productForm.get("description"))==null?null:w.invalid)&&((w=o.productForm.get("description"))==null?null:w.dirty)&&((w=o.productForm.get("description"))==null?null:w.value)),b(2),_("disabled",!o.isToggled),b(4),_("ngIf",o.addTypeModal),b(),_("ngIf",o.confirmDeleteModal)}},dependencies:[$t,an,Vi,Bi,Yt,Hn,Ei,Xt,sn,en,nn,rt,kt,Cn,st,go],styles:[`@charset "UTF-8";.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content-custom[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:496px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.desc[_ngcontent-%COMP%]{height:6rem}.form-check[_ngcontent-%COMP%], .form-swicth[_ngcontent-%COMP%]{padding-left:0}.form-check-label[_ngcontent-%COMP%]{margin-right:10px}.form-swicth[_ngcontent-%COMP%], .form-check-input[_ngcontent-%COMP%]{margin-left:.15rem}.text-custom[_ngcontent-%COMP%]{color:#1b5e20}.row-container[_ngcontent-%COMP%]{position:relative;min-height:5em}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.modal-footer[_ngcontent-%COMP%]{border-top:none;padding-top:0;padding-bottom:.5rem}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.custom-switch[_ngcontent-%COMP%]:focus{border-color:#1b5e20;box-shadow:0 0 0 .25rem #1b5e2040}.custom-switch[_ngcontent-%COMP%]:checked{background-color:#88ca5e;border-color:#1b5e20}.custom-switch[_ngcontent-%COMP%]:checked:before{background-color:#fff}
+/*# sourceMappingURL=inputs.component-OLLEPCX7.css.map */`]});let e=t;return e})();function K8(e,t){if(e&1){let i=je();d(0,"app-decision-modal",11),X("close",function(r){fe(i);let o=j();return he(o.closeDecisionModal(r))}),u()}}function Q8(e,t){if(e&1){let i=je();d(0,"app-add-input",11),X("close",function(){fe(i);let r=j();return he(r.closeAddInputModal())}),u()}}function Z8(e,t){if(e&1){let i=je();d(0,"app-add-raw-material",11),X("close",function(){fe(i);let r=j();return he(r.closeAddRawMaterialModal())}),u()}}function J8(e,t){if(e&1){let i=je();d(0,"app-raw-material",12),X("close",function(){fe(i);let r=j();return he(r.closeProductModal())}),u()}if(e&2){let i=j();_("productInput",i.selectedProduct)}}function X8(e,t){if(e&1){let i=je();d(0,"app-inputs",12),X("close",function(){fe(i);let r=j();return he(r.closeProductModal())}),u()}if(e&2){let i=j();_("productInput",i.selectedProduct)}}var Sx=(()=>{let t=class t{constructor(n){this.inventoryService=n,this.inputs=[],this.backUpInputs=[],this.editRawMaterialsModal=!1,this.editInputsModal=!1,this.inputsModal=!1,this.rawMaterialsModal=!1,this.decisionModal=!1,this.isLoading=!1,this.excludeColumns=["provider","description","batches","descripction","admissionDate","lastModificationDate","expirationDate","freeze"]}ngOnInit(){this.getInventory()}openDecisionModal(){this.decisionModal=!0}closeDecisionModal(n){n==="addInput"?this.openAddInputModal():n==="addRawMaterial"&&this.openAddRawMaterialModal(),this.decisionModal=!1}openAddInputModal(){this.inputsModal=!0}closeAddInputModal(){this.getInventory(),this.inputsModal=!1}openAddRawMaterialModal(){this.rawMaterialsModal=!0}closeAddRawMaterialModal(){this.getInventory(),this.rawMaterialsModal=!1}onRowClicked(n){this.selectedProduct=n,this.selectedProduct.freeze!==void 0?this.editRawMaterialsModal=!0:this.editInputsModal=!0}closeProductModal(){this.getInventory(),this.editRawMaterialsModal=!1,this.editInputsModal=!1}handleSearch(n){this.inputs=this.backUpInputs,this.inputs=Ms(this.inputs,this.excludeColumns,n)}getInventory(){this.inventoryService.getInventory().subscribe(n=>{this.inputs=n,this.backUpInputs=n,this.isLoading=!0})}};t.\u0275fac=function(r){return new(r||t)(ee(Ns))},t.\u0275cmp=Re({type:t,selectors:[["app-inventory"]],standalone:!0,features:[Ve],decls:18,vars:8,consts:[[1,"container-fluid","d-flex","flex-column","justify-content-center","align-items-center","vh-100"],[1,"col-flex","justify-content-center","align-items-center"],[1,"row","header-row"],[1,"col"],[1,"view-title"],[3,"search"],[1,"col","d-flex","justify-content-center"],[1,"btn","btn-custom",3,"click"],[3,"rowClicked","isTableReady","data","columnsExcluded"],[3,"close",4,"ngIf"],[3,"productInput","close",4,"ngIf"],[3,"close"],[3,"close","productInput"]],template:function(r,o){r&1&&(z(0,"app-navbar"),d(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"h1",4),C(6,"Existencias"),u()(),d(7,"div",3)(8,"app-search-bar",5),X("search",function(a){return o.handleSearch(a)}),u()(),d(9,"div",6)(10,"button",7),X("click",function(){return o.openDecisionModal()}),C(11,"AGREGAR EXISTENCIA"),u()()(),d(12,"app-table",8),X("rowClicked",function(a){return o.onRowClicked(a)}),u()()(),R(13,K8,1,0,"app-decision-modal",9)(14,Q8,1,0,"app-add-input",9)(15,Z8,1,0,"app-add-raw-material",9)(16,J8,1,1,"app-raw-material",10)(17,X8,1,1,"app-inputs",10)),r&2&&(b(12),_("isTableReady",o.isLoading)("data",o.inputs)("columnsExcluded",o.excludeColumns),b(),_("ngIf",o.decisionModal),b(),_("ngIf",o.inputsModal),b(),_("ngIf",o.rawMaterialsModal),b(),_("ngIf",o.editRawMaterialsModal),b(),_("ngIf",o.editInputsModal))},dependencies:[Fn,ho,mo,rt,st,yx,_x,Cx,wx,Ex],styles:[`[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/inventory.svg);background-size:cover;background-position:center;background-repeat:no-repeat}.view-title[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;color:#1b5e20;font-size:2.5rem;padding-left:1.5rem}.header-row[_ngcontent-%COMP%]{padding-bottom:20px}.vh-100[_ngcontent-%COMP%]{height:90vh!important}.btn-custom[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1.5rem;color:#1b5e20}
+/*# sourceMappingURL=inventory.component-T2YT6VBD.css.map */`]});let e=t;return e})();var vo=(()=>{let t=class t{constructor(n){this.http=n,this.apiUrl=Si.apiUrl+"/api/batches"}getBatches(){return this.http.get(this.apiUrl).pipe(nt(ft))}getBatchById(n){return this.http.get(`${this.apiUrl}/getBy/${n}`).pipe(nt(ft))}createBatch(n){return this.http.post(this.apiUrl,n).pipe(nt(ft))}updateBatch(n){return this.http.put(this.apiUrl,n).pipe(nt(ft))}deleteBatch(n){return this.http.delete(`${this.apiUrl}/${n}`).pipe(nt(ft))}getCategories(){return this.http.get(`${this.apiUrl}/getCategories`).pipe(nt(ft))}};t.\u0275fac=function(r){return new(r||t)(Ye(ui))},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function e7(e,t){if(e&1&&(d(0,"li"),C(1),u()),e&2){let i=t.$implicit;b(),op(" ",i.name," - ",i.quantity," ",i.unit," - ",i.provider," ")}}function t7(e,t){if(e&1&&(d(0,"li"),C(1),u()),e&2){let i=t.$implicit;b(),My(" ",i.codInput," - ",i.name," - ",i.quantity," ",i.unit," - ",i.provider," ")}}function n7(e,t){if(e&1){let i=je();d(0,"app-delete-modal",21),X("cancel",function(){fe(i);let r=j();return he(r.closeDeleteModal())})("confirm",function(){fe(i);let r=j();return he(r.deleteProduct())}),u()}e&2&&_("headerMessage","Eliminar Lote")("bodyMessage","\xBFEst\xE1s seguro que deseas borrar este Lote?")}var Ag=(()=>{let t=class t{constructor(n,r){this.batchesService=n,this.router=r,this.batch={},this.close=new ot,this.confirmDeleteModal=!1,this.batchIngredientsData=[],this.batchInputsData=[]}ngOnInit(){this.getBatchIngredientsData(),this.getBatchInputsData()}closeModal(){this.close.emit()}closeDeleteModal(){this.confirmDeleteModal=!1}openDeleteModal(){this.confirmDeleteModal=!0}deleteProduct(){this.batchesService.deleteBatch(this.batch.id).subscribe(()=>{this.closeModal()})}goTo(){this.router.navigate([`/production/${this.batch.id}/modify`])}getBatchIngredientsData(){if(Array.isArray(this.batch.batchIngredients)){let n=this.batch.batchIngredientsQuantity?this.batch.batchIngredientsQuantity.split(";").reduce((r,o)=>{let[s,a]=o.split(",");return r[s]=Number(a),r},{}):{};this.batchIngredientsData=this.batch.batchIngredients.map(r=>{let o=r.id;return{name:r.name,quantity:n[o]!==void 0?n[o]:r.quantity,unit:r.unit,provider:r.provider?.name||"N/A"}})}else console.warn("No se encontraron ingredientes en los datos del lote.")}getBatchInputsData(){if(Array.isArray(this.batch.batchPackagingElements)){let n=this.batch.batchPackagingElementsQuantity?this.batch.batchPackagingElementsQuantity.split(";").reduce((r,o)=>{let[s,a]=o.split(",");return r[s]=Number(a),r},{}):{};this.batchInputsData=this.batch.batchPackagingElements.map((r,o)=>({codInput:r.id,name:r.name,quantity:n[o]||r.quantity,unit:r.unit,provider:r.provider?.name||"N/A"}))}else console.warn("No se encontraron insumos en los datos del lote.")}};t.\u0275fac=function(r){return new(r||t)(ee(vo),ee(Jt))},t.\u0275cmp=Re({type:t,selectors:[["app-view-batch"]],inputs:{batch:"batch"},outputs:{close:"close"},standalone:!0,features:[Ve],decls:59,vars:9,consts:[["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content","modal-content-custom"],[1,"modal-header","d-flex","justify-content-center","align-items-center"],[1,"row","w-100"],[1,"col"],[1,"modal-title"],[1,"col","d-flex","justify-content-center"],["type","button","aria-label","edit",1,"btn","btn-success","me-2",3,"click"],["type","button","aria-label","delete",1,"btn","btn-danger",3,"click"],[1,"col","d-flex","justify-content-end"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[1,"row"],[1,"row","justify-content-between","align-items-center","mb-2"],[1,"me-2"],[1,"row","align-items-center"],[1,"ingredients-container"],[4,"ngFor","ngForOf"],[1,"modal-footer","justify-content-center"],[3,"headerMessage","bodyMessage","cancel","confirm",4,"ngIf"],[3,"cancel","confirm","headerMessage","bodyMessage"]],template:function(r,o){r&1&&(d(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"h5",6),C(7,"Detalles Lote"),u()(),d(8,"div",7)(9,"button",8),X("click",function(){return o.goTo()}),C(10,"Editar"),u(),d(11,"button",9),X("click",function(){return o.openDeleteModal()}),C(12,"Eliminar"),u()(),d(13,"div",10)(14,"button",11),X("click",function(){return o.closeModal()}),u()()()(),d(15,"div",12)(16,"div",13)(17,"div",5)(18,"div",14)(19,"label",15),C(20,"Producto:"),u(),d(21,"a"),C(22),u()(),d(23,"div",16)(24,"label"),C(25,"Categoria:"),u(),d(26,"a"),C(27),u()(),d(28,"div",16)(29,"label"),C(30,"Cantidad:"),u(),d(31,"a"),C(32),u()(),d(33,"div",16)(34,"label"),C(35,"Vencimiento:"),u(),d(36,"a"),C(37),u()(),d(38,"div",16)(39,"label"),C(40,"Fecha de Elebarocaion:"),u(),d(41,"a"),C(42),u()()(),d(43,"div",5)(44,"div",16)(45,"label"),C(46,"Ingredientes:"),u(),d(47,"div",17)(48,"ul"),R(49,e7,2,4,"li",18),u()()()(),d(50,"div",5)(51,"div",16)(52,"label"),C(53,"Insumos:"),u(),d(54,"div",17)(55,"ul"),R(56,t7,2,5,"li",18),u()()()()()(),z(57,"div",19),u()()(),R(58,n7,1,2,"app-delete-modal",20)),r&2&&(b(22),on(o.batch.name),b(5),on(o.batch.category),b(5),rp("",o.batch.quantity," ",o.batch.unit,""),b(5),on(o.batch.expiration),b(5),on(o.batch.creationDate),b(7),_("ngForOf",o.batchIngredientsData),b(7),_("ngForOf",o.batchInputsData),b(2),_("ngIf",o.confirmDeleteModal))},dependencies:[rt,Cn,st,go],styles:[`@charset "UTF-8";.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content-custom[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:496px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.desc[_ngcontent-%COMP%]{height:6rem}.form-check[_ngcontent-%COMP%], .form-swicth[_ngcontent-%COMP%]{padding-left:0}.form-check-label[_ngcontent-%COMP%]{margin-right:10px}.form-swicth[_ngcontent-%COMP%], .form-check-input[_ngcontent-%COMP%]{margin-left:.15rem}.text-custom[_ngcontent-%COMP%]{color:#1b5e20}.row-container[_ngcontent-%COMP%]{position:relative;min-height:5em}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.modal-footer[_ngcontent-%COMP%]{border-top:none;padding-top:0;padding-bottom:.5rem}.ingredients-container[_ngcontent-%COMP%]{max-height:200px;overflow-y:auto}.ingredients-container[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style-type:none;padding:0;margin:0}.ingredients-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{padding:8px 0}
+/*# sourceMappingURL=view-batch.component-KWAPOPS4.css.map */`]});let e=t;return e})();var cl=(()=>{let t=class t{constructor(n){this.http=n,this.apiUrl=Si.apiUrl+"/api/SalesChannels"}getSalesChannels(){return this.http.get(this.apiUrl).pipe(nt(ft))}getSaleChannelId(n){return this.http.get(`${this.apiUrl}/${n}`).pipe(nt(ft))}createSaleChannel(n){return this.http.post(this.apiUrl,n).pipe(nt(ft))}updateSaleChannel(n){return this.http.put(this.apiUrl,n).pipe(nt(ft))}deleteSaleChannel(n){return this.http.delete(`${this.apiUrl}/${n}`).pipe(nt(ft))}};t.\u0275fac=function(r){return new(r||t)(Ye(ui))},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Fg=(()=>{let t=class t{constructor(n){this.http=n,this.apiUrl=Si.apiUrl+"/api/events"}getEvents(){return this.http.get(this.apiUrl).pipe(ut(n=>ol(n)),nt(ft))}getEventById(n){return this.http.get(`${this.apiUrl}/${n}`).pipe(ut(r=>ol(r)),nt(ft))}createEvent(n){return this.http.post(this.apiUrl,n).pipe(nt(ft))}};t.\u0275fac=function(r){return new(r||t)(Ye(ui))},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Ng=e=>({"is-invalid":e});function i7(e,t){if(e&1&&(d(0,"option",41),C(1),u()),e&2){let i=t.$implicit;_("value",i.id),b(),yt(" ",i.name," ")}}function r7(e,t){e&1&&(d(0,"div",42),C(1," Seleccione un comprador "),u())}function o7(e,t){if(e&1&&(d(0,"option",48),C(1),u()),e&2){let i=t.$implicit,n=j(2);_("value",i.id)("disabled",i.selected),b(),op(" ",i.name," ",i.quantity," ",i.unit," - VTO: ",n.getDate(i.expiration)," ")}}function s7(e,t){e&1&&(d(0,"div"),C(1," La cantidad m\xEDnima es 1. "),u())}function a7(e,t){if(e&1&&(d(0,"div"),C(1),u()),e&2){let i=j(2).index,n=j();b(),yt(" La cantidad m\xE1xima es ",n.maxQuantities[i],". ")}}function l7(e,t){if(e&1&&(d(0,"div",42),R(1,s7,2,0,"div",47)(2,a7,2,1,"div",47),u()),e&2){let i=j().index,n=j();b(),_("ngIf",n.itemControls[i].errors==null?null:n.itemControls[i].errors.min),b(),_("ngIf",n.itemControls[i].errors==null?null:n.itemControls[i].errors.max)}}function c7(e,t){e&1&&(d(0,"div",42),C(1," No puedes seleccionar el mismo lote m\xE1s de una vez. "),u())}function u7(e,t){if(e&1){let i=je();d(0,"div")(1,"button",49),X("click",function(){fe(i);let r=j().index,o=j();return he(o.removeRow(r))}),z(2,"i",50),u()()}}function d7(e,t){if(e&1){let i=je();d(0,"tr")(1,"td")(2,"select",43),X("change",function(r){let o=fe(i).index,s=j();return he(s.onBatchChange(r,o))}),R(3,o7,2,6,"option",44),u()(),d(4,"td")(5,"input",45),X("change",function(){fe(i);let r=j();return he(r.calculateCost())}),u(),R(6,l7,3,2,"div",17)(7,c7,2,0,"div",17),u(),d(8,"td",46),R(9,u7,3,0,"div",47),u()()}if(e&2){let i,n=t.index,r=j(),o=vt(11);b(2),_("formControl",r.getBatchIdControl(n))("ngClass",ye(10,Ng,r.itemControls[n].invalid&&(r.itemControls[n].touched||o.submitted))),b(),_("ngForOf",r.avaibleBatches),b(2),_("formControl",r.getQuantityControl(n))("max",r.maxQuantities[n])("min",1)("ngClass",ye(12,Ng,r.itemControls[n].invalid&&(r.itemControls[n].touched||o.submitted))),b(),_("ngIf",r.itemControls[n].invalid&&(r.itemControls[n].touched||o.submitted)),b(),_("ngIf",(i=r.sellForm.get("items"))==null||i.errors==null?null:i.errors.duplicateBatches),b(2),_("ngIf",n>0)}}function p7(e,t){e&1&&(d(0,"div",42),C(1," El precio es requerido. "),u())}var xx=(()=>{let t=class t{constructor(n,r,o,s,a,l){this.batchesService=n,this.fb=r,this.salesChannelsService=o,this.authService=s,this.userService=a,this.eventService=l,this.close=new ot,this.confirmDeleteModal=!1,this.avaibleBatches=[],this.customers=[],this.maxQuantities=[],this.totalCost=0,this.sellForm=this.fb.group({customer:["",se.required],items:this.fb.array([],{validators:f7}),price:[0,[se.required,bx(this.totalCost)]]})}ngOnInit(){this.getClients(),this.getAvaibleBatches(),this.initializeRows(),this.userId=this.authService.getUserId()}closeModal(){this.close.emit()}closeDeleteModal(){this.confirmDeleteModal=!1}onSubmit(){if(console.log(this.sellForm),this.sellForm.valid){if(this.sellForm.get("items")?.errors?.duplicateBatches){console.error("No puedes seleccionar el mismo lote m\xE1s de una vez.");return}let r=this.items.controls.map(S=>S.get("batchId")?.value),o=this.items.controls.map(S=>S.get("quantity")?.value.toString()).join(","),s=this.avaibleBatches.filter(S=>r.includes(S.id)),l=s.map(S=>S.price).join(","),p=r.map(S=>({id:S})),h=s.map((S,I)=>`${o[I]} unit - ${S.name} (${S.id})`);console.log("BatchesQuantities:",o);let w={type:"sales",title:"Venta",description:h.join(", "),cost:this.sellForm.get("price")?.value,saleChannel:{id:this.sellForm.get("customer")?.value},user:{id:this.userId},soldBatches:p,unitsPrice:l,quantities:o};console.log("Sell data:",w),console.log("JSON:",JSON.stringify(w)),console.log("Selcted Batches:",p),console.log("Batches Avaible:",this.avaibleBatches);let g=o.split(",");console.log("Batches Quantities:",g),this.eventService.createEvent(w).subscribe(S=>{let I=this.avaibleBatches.map(A=>{let x=p.find(P=>P.id===A.id);return console.log("Selected:",x),x?(console.log("selectedBatches.indexOf(selected)",p.indexOf(x),"batchesQuantities[selectedBatches.indexOf(selected)]",o[p.indexOf(x)]),A.quantity-=parseInt(g[p.indexOf(x)],10),delete A.selected,console.log("Batch updated:",A),this.batchesService.updateBatch(A).toPromise()):null}).filter(Boolean);Promise.all(I).then(()=>{console.log("Batches updated")}),this.closeModal()})}}addRow(){this.items.push(this.fb.group({quantity:[0,se.required],batchId:[null]})),this.maxQuantities.push(0)}removeRow(n){let r=this.items.at(n).get("batchId")?.value;if(r){let o=this.avaibleBatches.find(s=>s.id===r);o&&(o.selected=!1)}this.items.removeAt(n),this.maxQuantities.splice(n,1)}onBatchChange(n,r){let o=n.target,s=parseInt(o.value,10),a=this.avaibleBatches.find(l=>l.id===s);if(a){this.maxQuantities[r]=a.quantity,this.items.at(r).patchValue({batchId:s}),a.selected=!0;let l=this.items.at(r).get("batchId")?.value;if(l){let h=this.avaibleBatches.find(v=>v.id===l);h&&(h.selected=!1)}let p=this.items.at(r).get("quantity");p?.setValidators([se.required,se.min(1),se.max(this.maxQuantities[r])]),p?.updateValueAndValidity()}}getAvaibleBatches(){this.batchesService.getBatches().subscribe(n=>{this.avaibleBatches=n.sort((r,o)=>r.name.localeCompare(o.name))})}getClients(){this.salesChannelsService.getSalesChannels().subscribe(n=>{this.customers=n.sort((r,o)=>r.name.localeCompare(o.name))})}initializeRows(){this.items.clear(),this.maxQuantities=[],this.items.push(this.fb.group({quantity:[0,se.required],batchId:[null,se.required]})),this.maxQuantities.push(0)}get items(){return this.sellForm.get("items")}get itemControls(){return this.items.controls}getBatchIdControl(n){let r=this.items.at(n).get("batchId");if(!r)throw console.error("Error!"),new Error(`Control 'batchId' not found at index ${n}`);return r}getQuantityControl(n){let r=this.items.at(n).get("quantity");if(!r)throw console.error("Error!"),new Error(`Control 'batchId' not found at index ${n}`);return r}calculateCost(){this.totalCost=0,this.items.controls.forEach(n=>{let r=n.get("batchId")?.value,o=n.get("quantity")?.value;if(r!==null&&o!==null){let s=this.avaibleBatches.find(a=>a.id===r);if(s){let a=s.price||2,l=s.quantity||1,p=Math.round(a/l);this.totalCost+=o*p}}}),this.updatePriceValidator()}updatePriceValidator(){let n=this.sellForm.get("price");n&&(n.setValidators([se.required,se.min(this.totalCost)]),n.updateValueAndValidity())}getDate(n){return Ds(n)}};t.\u0275fac=function(r){return new(r||t)(ee(vo),ee(ln),ee(cl),ee(qi),ee(er),ee(Fg))},t.\u0275cmp=Re({type:t,selectors:[["app-sell-batch"]],outputs:{close:"close"},standalone:!0,features:[Ve],decls:60,vars:12,consts:[["aux","ngForm"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content","modal-content-custom"],[1,"modal-header","d-flex","justify-content-center","align-items-center"],[1,"row","w-100"],[1,"col"],[1,"modal-title"],[1,"col","d-flex","justify-content-end"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"w-100",3,"formGroup"],[1,"modal-body"],[1,"row","mb-3"],[1,"form-group","d-flex","align-items-center"],["id","customer","formControlName","customer",1,"form-control","ms-2",3,"ngClass"],[3,"value",4,"ngFor","ngForOf"],[1,"error-container"],["class","text-danger",4,"ngIf"],[1,"row"],[1,"col","d-flex"],[1,"form-group","w-100"],[1,"row","align-items-center"],["type","button",1,"btn","btn-icon","text-success",3,"click"],[1,"bi","bi-plus-square-fill"],[1,"row","d-flex"],[1,"table-container"],[1,"table"],[1,"col-8"],[1,"col-3"],[1,"tbody-container"],[4,"ngFor","ngForOf"],[1,"col","d-flex","justify-content-center","align-items-center"],[1,"me-3"],[1,"form-group"],["type","number","formControlName","price","placeholder","Precio",1,"form-control",3,"ngClass"],[1,"ms-3","cost"],[1,"col-12"],[1,"error-container","mt-2","text-center"],[1,"modal-footer","justify-content-center"],["type","button",1,"btn","btn-secondary",3,"click"],["type","submit",1,"btn","btn-custom",3,"click"],[3,"value"],[1,"text-danger"],["placeholder","Produccion",1,"form-control",3,"change","formControl","ngClass"],[3,"value","disabled",4,"ngFor","ngForOf"],["type","number","placeholder","Cantidad",1,"form-control",3,"change","formControl","max","min","ngClass"],[2,"text-align","center"],[4,"ngIf"],[3,"value","disabled"],[1,"btn","btn-danger",3,"click"],[1,"bi","bi-trash"]],template:function(r,o){if(r&1){let s=je();d(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"h5",7),C(7,"Vender Lote"),u()(),d(8,"div",8)(9,"button",9),X("click",function(){return fe(s),he(o.closeModal())}),u()()()(),d(10,"form",10,0)(12,"div",11)(13,"div",6)(14,"div",12)(15,"div",13)(16,"label"),C(17,"Comprador"),u(),d(18,"select",14),R(19,i7,2,2,"option",15),u()(),d(20,"div",16),R(21,r7,2,0,"div",17),u()(),d(22,"div",18)(23,"div",19)(24,"div",20)(25,"div",21)(26,"div",6)(27,"label"),C(28,"Lotes Disponibles"),u()(),d(29,"div",8)(30,"button",22),X("click",function(){return fe(s),he(o.addRow())}),z(31,"i",23),u()()(),d(32,"div",24)(33,"div",25)(34,"table",26)(35,"thead")(36,"tr")(37,"th",27),C(38,"Producto"),u(),d(39,"th",28),C(40,"Cantidad"),u(),z(41,"th"),u()(),d(42,"tbody",29),R(43,d7,10,14,"tr",30),u()()()()()()(),d(44,"div",18)(45,"div",31)(46,"label",32),C(47,"Precio"),u(),d(48,"div",33),z(49,"input",34),u(),d(50,"label",35),C(51),u()(),d(52,"div",36)(53,"div",37),R(54,p7,2,0,"div",17),u()()()()(),d(55,"div",38)(56,"button",39),X("click",function(){return fe(s),he(o.closeModal())}),C(57," Cancelar "),u(),d(58,"button",40),X("click",function(){return fe(s),he(o.onSubmit())}),C(59," Vender "),u()()()()()()}if(r&2){let s,a,l,p,h=vt(11);b(10),_("formGroup",o.sellForm),b(8),_("ngClass",ye(8,Ng,(((s=o.sellForm.get("customer"))==null?null:s.touched)||h.submitted)&&((s=o.sellForm.get("customer"))==null?null:s.invalid))),b(),_("ngForOf",o.customers),b(2),_("ngIf",(((a=o.sellForm.get("customer"))==null?null:a.touched)||h.submitted)&&((a=o.sellForm.get("customer"))==null?null:a.invalid)),b(22),_("ngForOf",o.items.controls),b(6),_("ngClass",ye(10,Ng,(((l=o.sellForm.get("price"))==null?null:l.touched)||h.submitted)&&((l=o.sellForm.get("price"))==null?null:l.invalid))),b(2),yt("Costo: ",o.totalCost,""),b(3),_("ngIf",(((p=o.sellForm.get("price"))==null?null:p.touched)||h.submitted)&&((p=o.sellForm.get("price"))==null?null:p.invalid))}},dependencies:[rt,kt,Cn,st,$t,an,Vi,Bi,Yt,Hn,Ei,Xt,sn,ob,rb,qp,en,nn],styles:[`@charset "UTF-8";.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content-custom[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:496px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.desc[_ngcontent-%COMP%]{height:6rem}.form-check[_ngcontent-%COMP%], .form-swicth[_ngcontent-%COMP%]{padding-left:0}.form-check-label[_ngcontent-%COMP%]{margin-right:10px}.form-swicth[_ngcontent-%COMP%], .form-check-input[_ngcontent-%COMP%]{margin-left:.15rem}.text-custom[_ngcontent-%COMP%]{color:#1b5e20}.row-container[_ngcontent-%COMP%]{position:relative;min-height:5em}.error-container[_ngcontent-%COMP%]{height:1.2rem;padding-top:.6rem}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.modal-footer[_ngcontent-%COMP%]{border-top:none;padding-top:1rem;padding-bottom:1rem}.ingredients-container[_ngcontent-%COMP%]{max-height:200px;overflow-y:auto}.ingredients-container[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style-type:none;padding:0;margin:0}.ingredients-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{padding:8px 0}.table-container[_ngcontent-%COMP%]{height:320px;margin-bottom:1rem;overflow-y:auto;background-color:#d2ffaa}.table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;table-layout:fixed}.table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{position:sticky;top:0;background-color:#1ba120}.table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]{width:100%;overflow-y:auto}.table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{width:100%;table-layout:fixed}.table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:8px;box-sizing:border-box;background-color:transparent}.tbody-container[_ngcontent-%COMP%]{max-height:318px;overflow-y:auto}.table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-child(odd){background-color:#88ca5e}.table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#1ba120}.btn-icon[_ngcontent-%COMP%]{font-size:2rem}.label[_ngcontent-%COMP%]{font-size:1.8rem}
+/*# sourceMappingURL=sell-batch.component-UQAKKXDT.css.map */`]});let e=t;return e})();function f7(e){let i=e.value.map(r=>r.batchId);return new Set(i).size!==i.length?{duplicateBatches:!0}:null}function h7(e,t){if(e&1){let i=je();d(0,"app-view-batch",11),X("close",function(){fe(i);let r=j();return he(r.closeModal())}),u()}if(e&2){let i=j();_("batch",i.selectedBatch)}}function m7(e,t){if(e&1){let i=je();d(0,"app-sell-batch",12),X("close",function(){fe(i);let r=j();return he(r.closeSellModal())}),u()}}var Dx=(()=>{let t=class t{constructor(n,r){this.route=n,this.batchesServices=r,this.batches=[],this.backUpBatches=[],this.excludedColumns=["batchPackagingElementsQuantity","batchPackagingElements","batchIngredientsQuantity","batchIngredients","description","creationDate","lastModificationDate"],this.selectedBatch={},this.openBatchModal=!1,this.openSellModal=!1}ngOnInit(){this.getBatches()}goTo(){this.route.navigate(["/production/add"])}onRowClicked(n){this.selectedBatch=n,this.openBatchModal=!0}closeModal(){this.getBatches(),this.openBatchModal=!1}openSellBatch(){this.openSellModal=!0}closeSellModal(){this.getBatches(),this.openSellModal=!1}handleSearch(n){this.batches=this.backUpBatches,this.batches=Ms(this.batches,this.excludedColumns,n)}getBatches(){this.batchesServices.getBatches().subscribe(n=>{this.batches=n,this.backUpBatches=n})}};t.\u0275fac=function(r){return new(r||t)(ee(Jt),ee(vo))},t.\u0275cmp=Re({type:t,selectors:[["app-production"]],standalone:!0,features:[Ve],decls:18,vars:4,consts:[[1,"container-fluid","d-flex","flex-column","justify-content-center","align-items-center","vh-100"],[1,"col-flex","justify-content-center","align-items-center"],[1,"row","header-row"],[1,"col"],[1,"view-title"],[3,"search"],[1,"col","d-flex","justify-content-center"],[1,"btn","btn-custom",3,"click"],[3,"rowClicked","data","columnsExcluded"],[3,"batch","close",4,"ngIf"],[3,"close",4,"ngIf"],[3,"close","batch"],[3,"close"]],template:function(r,o){r&1&&(z(0,"app-navbar"),d(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"h1",4),C(6,"Lotes"),u()(),d(7,"div",3)(8,"app-search-bar",5),X("search",function(a){return o.handleSearch(a)}),u()(),d(9,"div",6)(10,"button",7),X("click",function(){return o.openSellBatch()}),C(11,"VENDER"),u()(),d(12,"div",6)(13,"button",7),X("click",function(){return o.goTo()}),C(14,"AGREGAR LOTE"),u()()(),d(15,"app-table",8),X("rowClicked",function(a){return o.onRowClicked(a)}),u()()(),R(16,h7,1,1,"app-view-batch",9)(17,m7,1,0,"app-sell-batch",10)),r&2&&(b(15),_("data",o.batches)("columnsExcluded",o.excludedColumns),b(),_("ngIf",o.openBatchModal),b(),_("ngIf",o.openSellModal))},dependencies:[Fn,ho,mo,Ag,rt,st,xx],styles:[`[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/production.svg);background-size:cover;background-position:center;background-repeat:no-repeat}.view-title[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;color:#1b5e20;font-size:2.5rem;padding-left:1.5rem}.header-row[_ngcontent-%COMP%]{padding-bottom:20px;align-items:center}.vh-100[_ngcontent-%COMP%]{height:90vh!important}.btn-custom[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1.5rem;color:#1b5e20}
+/*# sourceMappingURL=production.component-6Q4GAHZW.css.map */`]});let e=t;return e})();var Mx=(()=>{let t=class t{constructor(n){this.router=n}goTo(){this.router.navigate(["/recipes",this.recipe?.id])}};t.\u0275fac=function(r){return new(r||t)(ee(Jt))},t.\u0275cmp=Re({type:t,selectors:[["app-card"]],inputs:{recipe:"recipe"},standalone:!0,features:[Ve],decls:7,vars:1,consts:[[1,"card"],[1,"card-body"],[1,"card-title","title-custom"],[1,"d-flex","justify-content-end"],[1,"btn","text-white","btn-custom",3,"click"]],template:function(r,o){r&1&&(d(0,"div",0)(1,"div",1)(2,"h4",2),C(3),u(),d(4,"div",3)(5,"a",4),X("click",function(){return o.goTo()}),C(6,"VER RECETA"),u()()()()),r&2&&(b(3),on(o.recipe==null?null:o.recipe.name))},styles:[`.card[_ngcontent-%COMP%]{background-color:#1b5e20;border-radius:15px;color:#fff;width:100%;min-width:400px;padding:1rem}.card-body[_ngcontent-%COMP%]{height:160px}.title-custom[_ngcontent-%COMP%]{padding-top:1rem}.btn-custom[_ngcontent-%COMP%]{padding-top:1rem;text-decoration:underline}
+/*# sourceMappingURL=card.component-YFD5CI2L.css.map */`]});let e=t;return e})();var Pg=class e{static isArray(t,i=!0){return Array.isArray(t)&&(i||t.length!==0)}static isObject(t,i=!0){return typeof t=="object"&&!Array.isArray(t)&&t!=null&&(i||Object.keys(t).length!==0)}static equals(t,i,n){return n?this.resolveFieldData(t,n)===this.resolveFieldData(i,n):this.equalsByValue(t,i)}static equalsByValue(t,i){if(t===i)return!0;if(t&&i&&typeof t=="object"&&typeof i=="object"){var n=Array.isArray(t),r=Array.isArray(i),o,s,a;if(n&&r){if(s=t.length,s!=i.length)return!1;for(o=s;o--!==0;)if(!this.equalsByValue(t[o],i[o]))return!1;return!0}if(n!=r)return!1;var l=this.isDate(t),p=this.isDate(i);if(l!=p)return!1;if(l&&p)return t.getTime()==i.getTime();var h=t instanceof RegExp,v=i instanceof RegExp;if(h!=v)return!1;if(h&&v)return t.toString()==i.toString();var w=Object.keys(t);if(s=w.length,s!==Object.keys(i).length)return!1;for(o=s;o--!==0;)if(!Object.prototype.hasOwnProperty.call(i,w[o]))return!1;for(o=s;o--!==0;)if(a=w[o],!this.equalsByValue(t[a],i[a]))return!1;return!0}return t!==t&&i!==i}static resolveFieldData(t,i){if(t&&i){if(this.isFunction(i))return i(t);if(i.indexOf(".")==-1)return t[i];{let n=i.split("."),r=t;for(let o=0,s=n.length;o<s;++o){if(r==null)return null;r=r[n[o]]}return r}}else return null}static isFunction(t){return!!(t&&t.constructor&&t.call&&t.apply)}static reorderArray(t,i,n){let r;t&&i!==n&&(n>=t.length&&(n%=t.length,i%=t.length),t.splice(n,0,t.splice(i,1)[0]))}static insertIntoOrderedArray(t,i,n,r){if(n.length>0){let o=!1;for(let s=0;s<n.length;s++)if(this.findIndexInList(n[s],r)>i){n.splice(s,0,t),o=!0;break}o||n.push(t)}else n.push(t)}static findIndexInList(t,i){let n=-1;if(i){for(let r=0;r<i.length;r++)if(i[r]==t){n=r;break}}return n}static contains(t,i){if(t!=null&&i&&i.length){for(let n of i)if(this.equals(t,n))return!0}return!1}static removeAccents(t){return t&&(t=t.normalize("NFKD").replace(new RegExp("\\p{Diacritic}","gu"),"")),t}static isDate(t){return Object.prototype.toString.call(t)==="[object Date]"}static isEmpty(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!this.isDate(t)&&typeof t=="object"&&Object.keys(t).length===0}static isNotEmpty(t){return!this.isEmpty(t)}static compare(t,i,n,r=1){let o=-1,s=this.isEmpty(t),a=this.isEmpty(i);return s&&a?o=0:s?o=r:a?o=-r:typeof t=="string"&&typeof i=="string"?o=t.localeCompare(i,n,{numeric:!0}):o=t<i?-1:t>i?1:0,o}static sort(t,i,n=1,r,o=1){let s=e.compare(t,i,r,n),a=n;return(e.isEmpty(t)||e.isEmpty(i))&&(a=o===1?n:o),a*s}static merge(t,i){if(!(t==null&&i==null)){{if((t==null||typeof t=="object")&&(i==null||typeof i=="object"))return ze(ze({},t||{}),i||{});if((t==null||typeof t=="string")&&(i==null||typeof i=="string"))return[t||"",i||""].join(" ")}return i||t}}static isPrintableCharacter(t=""){return this.isNotEmpty(t)&&t.length===1&&t.match(/\S| /)}static getItemValue(t,...i){return this.isFunction(t)?t(...i):t}static findLastIndex(t,i){let n=-1;if(this.isNotEmpty(t))try{n=t.findLastIndex(i)}catch{n=t.lastIndexOf([...t].reverse().find(i))}return n}static findLast(t,i){let n;if(this.isNotEmpty(t))try{n=t.findLast(i)}catch{n=[...t].reverse().find(i)}return n}static deepEquals(t,i){if(t===i)return!0;if(t&&i&&typeof t=="object"&&typeof i=="object"){var n=Array.isArray(t),r=Array.isArray(i),o,s,a;if(n&&r){if(s=t.length,s!=i.length)return!1;for(o=s;o--!==0;)if(!this.deepEquals(t[o],i[o]))return!1;return!0}if(n!=r)return!1;var l=t instanceof Date,p=i instanceof Date;if(l!=p)return!1;if(l&&p)return t.getTime()==i.getTime();var h=t instanceof RegExp,v=i instanceof RegExp;if(h!=v)return!1;if(h&&v)return t.toString()==i.toString();var w=Object.keys(t);if(s=w.length,s!==Object.keys(i).length)return!1;for(o=s;o--!==0;)if(!Object.prototype.hasOwnProperty.call(i,w[o]))return!1;for(o=s;o--!==0;)if(a=w[o],!this.deepEquals(t[a],i[a]))return!1;return!0}return t!==t&&i!==i}},Ax=0;function Og(e="pn_id_"){return Ax++,`${e}${Ax}`}function g7(){let e=[],t=(o,s)=>{let a=e.length>0?e[e.length-1]:{key:o,value:s},l=a.value+(a.key===o?0:s)+2;return e.push({key:o,value:l}),l},i=o=>{e=e.filter(s=>s.value!==o)},n=()=>e.length>0?e[e.length-1].value:0,r=o=>o&&parseInt(o.style.zIndex,10)||0;return{get:r,set:(o,s,a)=>{s&&(s.style.zIndex=String(t(o,a)))},clear:o=>{o&&(i(r(o)),o.style.zIndex="")},getCurrent:()=>n()}}var PX=g7();var Tx=["*"];var tr=(()=>{class e{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"}return e})();var Rg=(()=>{class e{ripple=!1;inputStyle=Iy("outlined");overlayOptions={};csp=Iy({nonce:void 0});filterMatchModeOptions={text:[tr.STARTS_WITH,tr.CONTAINS,tr.NOT_CONTAINS,tr.ENDS_WITH,tr.EQUALS,tr.NOT_EQUALS],numeric:[tr.EQUALS,tr.NOT_EQUALS,tr.LESS_THAN,tr.LESS_THAN_OR_EQUAL_TO,tr.GREATER_THAN,tr.GREATER_THAN_OR_EQUAL_TO],date:[tr.DATE_IS,tr.DATE_IS_NOT,tr.DATE_BEFORE,tr.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",listLabel:"Option List",selectColor:"Select a color",removeLabel:"Remove",browseFiles:"Browse Files",maximizeLabel:"Maximize"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new yi;translationObserver=this.translationSource.asObservable();getTranslation(i){return this.translation[i]}setTranslation(i){this.translation=ze(ze({},this.translation),i),this.translationSource.next(this.translation)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=qe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Lg=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Re({type:e,selectors:[["p-header"]],standalone:!0,features:[Ve],ngContentSelectors:Tx,decls:1,vars:0,template:function(n,r){n&1&&(lo(),Yr(0))},encapsulation:2})}return e})(),Fx=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Re({type:e,selectors:[["p-footer"]],standalone:!0,features:[Ve],ngContentSelectors:Tx,decls:1,vars:0,template:function(n,r){n&1&&(lo(),Yr(0))},encapsulation:2})}return e})(),Ki=(()=>{class e{template;type;name;constructor(i){this.template=i}getType(){return this.name}static \u0275fac=function(n){return new(n||e)(ee(ia))};static \u0275dir=Bt({type:e,selectors:[["","pTemplate",""]],inputs:{type:"type",name:[xt.None,"pTemplate","name"]},standalone:!0})}return e})(),Os=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Qn({type:e});static \u0275inj=Kn({})}return e})();var v7=["*"],Rs=(()=>{class e{label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){this.getAttributes()}getAttributes(){let i=Pg.isEmpty(this.label);this.role=i?void 0:"img",this.ariaLabel=i?void 0:this.label,this.ariaHidden=i}getClassNames(){return`p-icon ${this.styleClass?this.styleClass+" ":""}${this.spin?"p-icon-spin":""}`}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Re({type:e,selectors:[["ng-component"]],hostAttrs:[1,"p-element","p-icon-wrapper"],inputs:{label:"label",spin:[xt.HasDecoratorInputTransform,"spin","spin",Wn],styleClass:"styleClass"},standalone:!0,features:[so,Ve],ngContentSelectors:v7,decls:1,vars:0,template:function(n,r){n&1&&(lo(),Yr(0))},encapsulation:2,changeDetection:0})}return e})();var sb=(()=>{class e extends Rs{static \u0275fac=(()=>{let i;return function(r){return(i||(i=Zn(e)))(r||e)}})();static \u0275cmp=Re({type:e,selectors:[["ChevronDownIcon"]],standalone:!0,features:[_n,Ve],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(n,r){n&1&&(gs(),d(0,"svg",0),z(1,"path",1),u()),n&2&&(Ci(r.getClassNames()),Wt("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return e})();var ab=(()=>{class e extends Rs{static \u0275fac=(()=>{let i;return function(r){return(i||(i=Zn(e)))(r||e)}})();static \u0275cmp=Re({type:e,selectors:[["ChevronLeftIcon"]],standalone:!0,features:[_n,Ve],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z","fill","currentColor"]],template:function(n,r){n&1&&(gs(),d(0,"svg",0),z(1,"path",1),u()),n&2&&(Ci(r.getClassNames()),Wt("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return e})();var lb=(()=>{class e extends Rs{static \u0275fac=(()=>{let i;return function(r){return(i||(i=Zn(e)))(r||e)}})();static \u0275cmp=Re({type:e,selectors:[["ChevronRightIcon"]],standalone:!0,features:[_n,Ve],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(n,r){n&1&&(gs(),d(0,"svg",0),z(1,"path",1),u()),n&2&&(Ci(r.getClassNames()),Wt("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return e})();var cb=(()=>{class e extends Rs{static \u0275fac=(()=>{let i;return function(r){return(i||(i=Zn(e)))(r||e)}})();static \u0275cmp=Re({type:e,selectors:[["ChevronUpIcon"]],standalone:!0,features:[_n,Ve],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z","fill","currentColor"]],template:function(n,r){n&1&&(gs(),d(0,"svg",0),z(1,"path",1),u()),n&2&&(Ci(r.getClassNames()),Wt("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return e})();var En=(()=>{class e{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(i,n){i&&n&&(i.classList?i.classList.add(n):i.className+=" "+n)}static addMultipleClasses(i,n){if(i&&n)if(i.classList){let r=n.trim().split(" ");for(let o=0;o<r.length;o++)i.classList.add(r[o])}else{let r=n.split(" ");for(let o=0;o<r.length;o++)i.className+=" "+r[o]}}static removeClass(i,n){i&&n&&(i.classList?i.classList.remove(n):i.className=i.className.replace(new RegExp("(^|\\b)"+n.split(" ").join("|")+"(\\b|$)","gi")," "))}static removeMultipleClasses(i,n){i&&n&&[n].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(o=>this.removeClass(i,o)))}static hasClass(i,n){return i&&n?i.classList?i.classList.contains(n):new RegExp("(^| )"+n+"( |$)","gi").test(i.className):!1}static siblings(i){return Array.prototype.filter.call(i.parentNode.children,function(n){return n!==i})}static find(i,n){return Array.from(i.querySelectorAll(n))}static findSingle(i,n){return this.isElement(i)?i.querySelector(n):null}static index(i){let n=i.parentNode.childNodes,r=0;for(var o=0;o<n.length;o++){if(n[o]==i)return r;n[o].nodeType==1&&r++}return-1}static indexWithinGroup(i,n){let r=i.parentNode?i.parentNode.childNodes:[],o=0;for(var s=0;s<r.length;s++){if(r[s]==i)return o;r[s].attributes&&r[s].attributes[n]&&r[s].nodeType==1&&o++}return-1}static appendOverlay(i,n,r="self"){r!=="self"&&i&&n&&this.appendChild(i,n)}static alignOverlay(i,n,r="self",o=!0){i&&n&&(o&&(i.style.minWidth=`${e.getOuterWidth(n)}px`),r==="self"?this.relativePosition(i,n):this.absolutePosition(i,n))}static relativePosition(i,n,r=!0){let o=P=>{if(P)return getComputedStyle(P).getPropertyValue("position")==="relative"?P:o(P.parentElement)},s=i.offsetParent?{width:i.offsetWidth,height:i.offsetHeight}:this.getHiddenElementDimensions(i),a=n.offsetHeight??n.getBoundingClientRect().height,l=n.getBoundingClientRect(),p=this.getWindowScrollTop(),h=this.getWindowScrollLeft(),v=this.getViewport(),g=o(i)?.getBoundingClientRect()||{top:-1*p,left:-1*h},S,I;l.top+a+s.height>v.height?(S=l.top-g.top-s.height,i.style.transformOrigin="bottom",l.top+S<0&&(S=-1*l.top)):(S=a+l.top-g.top,i.style.transformOrigin="top");let A=l.left+s.width-v.width,x=l.left-g.left;s.width>v.width?I=(l.left-g.left)*-1:A>0?I=x-A:I=l.left-g.left,i.style.top=S+"px",i.style.left=I+"px",r&&(i.style.marginTop=origin==="bottom"?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static absolutePosition(i,n,r=!0){let o=i.offsetParent?{width:i.offsetWidth,height:i.offsetHeight}:this.getHiddenElementDimensions(i),s=o.height,a=o.width,l=n.offsetHeight??n.getBoundingClientRect().height,p=n.offsetWidth??n.getBoundingClientRect().width,h=n.getBoundingClientRect(),v=this.getWindowScrollTop(),w=this.getWindowScrollLeft(),g=this.getViewport(),S,I;h.top+l+s>g.height?(S=h.top+v-s,i.style.transformOrigin="bottom",S<0&&(S=v)):(S=l+h.top+v,i.style.transformOrigin="top"),h.left+a>g.width?I=Math.max(0,h.left+w+p-a):I=h.left+w,i.style.top=S+"px",i.style.left=I+"px",r&&(i.style.marginTop=origin==="bottom"?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static getParents(i,n=[]){return i.parentNode===null?n:this.getParents(i.parentNode,n.concat([i.parentNode]))}static getScrollableParents(i){let n=[];if(i){let r=this.getParents(i),o=/(auto|scroll)/,s=a=>{let l=window.getComputedStyle(a,null);return o.test(l.getPropertyValue("overflow"))||o.test(l.getPropertyValue("overflowX"))||o.test(l.getPropertyValue("overflowY"))};for(let a of r){let l=a.nodeType===1&&a.dataset.scrollselectors;if(l){let p=l.split(",");for(let h of p){let v=this.findSingle(a,h);v&&s(v)&&n.push(v)}}a.nodeType!==9&&s(a)&&n.push(a)}}return n}static getHiddenElementOuterHeight(i){i.style.visibility="hidden",i.style.display="block";let n=i.offsetHeight;return i.style.display="none",i.style.visibility="visible",n}static getHiddenElementOuterWidth(i){i.style.visibility="hidden",i.style.display="block";let n=i.offsetWidth;return i.style.display="none",i.style.visibility="visible",n}static getHiddenElementDimensions(i){let n={};return i.style.visibility="hidden",i.style.display="block",n.width=i.offsetWidth,n.height=i.offsetHeight,i.style.display="none",i.style.visibility="visible",n}static scrollInView(i,n){let r=getComputedStyle(i).getPropertyValue("borderTopWidth"),o=r?parseFloat(r):0,s=getComputedStyle(i).getPropertyValue("paddingTop"),a=s?parseFloat(s):0,l=i.getBoundingClientRect(),h=n.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-o-a,v=i.scrollTop,w=i.clientHeight,g=this.getOuterHeight(n);h<0?i.scrollTop=v+h:h+g>w&&(i.scrollTop=v+h-w+g)}static fadeIn(i,n){i.style.opacity=0;let r=+new Date,o=0,s=function(){o=+i.style.opacity.replace(",",".")+(new Date().getTime()-r)/n,i.style.opacity=o,r=+new Date,+o<1&&(window.requestAnimationFrame&&requestAnimationFrame(s)||setTimeout(s,16))};s()}static fadeOut(i,n){var r=1,o=50,s=n,a=o/s;let l=setInterval(()=>{r=r-a,r<=0&&(r=0,clearInterval(l)),i.style.opacity=r},o)}static getWindowScrollTop(){let i=document.documentElement;return(window.pageYOffset||i.scrollTop)-(i.clientTop||0)}static getWindowScrollLeft(){let i=document.documentElement;return(window.pageXOffset||i.scrollLeft)-(i.clientLeft||0)}static matches(i,n){var r=Element.prototype,o=r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||function(s){return[].indexOf.call(document.querySelectorAll(s),this)!==-1};return o.call(i,n)}static getOuterWidth(i,n){let r=i.offsetWidth;if(n){let o=getComputedStyle(i);r+=parseFloat(o.marginLeft)+parseFloat(o.marginRight)}return r}static getHorizontalPadding(i){let n=getComputedStyle(i);return parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}static getHorizontalMargin(i){let n=getComputedStyle(i);return parseFloat(n.marginLeft)+parseFloat(n.marginRight)}static innerWidth(i){let n=i.offsetWidth,r=getComputedStyle(i);return n+=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),n}static width(i){let n=i.offsetWidth,r=getComputedStyle(i);return n-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),n}static getInnerHeight(i){let n=i.offsetHeight,r=getComputedStyle(i);return n+=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),n}static getOuterHeight(i,n){let r=i.offsetHeight;if(n){let o=getComputedStyle(i);r+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return r}static getHeight(i){let n=i.offsetHeight,r=getComputedStyle(i);return n-=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),n}static getWidth(i){let n=i.offsetWidth,r=getComputedStyle(i);return n-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight)+parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),n}static getViewport(){let i=window,n=document,r=n.documentElement,o=n.getElementsByTagName("body")[0],s=i.innerWidth||r.clientWidth||o.clientWidth,a=i.innerHeight||r.clientHeight||o.clientHeight;return{width:s,height:a}}static getOffset(i){var n=i.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(i,n){let r=i.parentNode;if(!r)throw"Can't replace element";return r.replaceChild(n,i)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var i=window.navigator.userAgent,n=i.indexOf("MSIE ");if(n>0)return!0;var r=i.indexOf("Trident/");if(r>0){var o=i.indexOf("rv:");return!0}var s=i.indexOf("Edge/");return s>0}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(i,n){if(this.isElement(n))n.appendChild(i);else if(n&&n.el&&n.el.nativeElement)n.el.nativeElement.appendChild(i);else throw"Cannot append "+n+" to "+i}static removeChild(i,n){if(this.isElement(n))n.removeChild(i);else if(n.el&&n.el.nativeElement)n.el.nativeElement.removeChild(i);else throw"Cannot remove "+i+" from "+n}static removeElement(i){"remove"in Element.prototype?i.remove():i.parentNode.removeChild(i)}static isElement(i){return typeof HTMLElement=="object"?i instanceof HTMLElement:i&&typeof i=="object"&&i!==null&&i.nodeType===1&&typeof i.nodeName=="string"}static calculateScrollbarWidth(i){if(i){let n=getComputedStyle(i);return i.offsetWidth-i.clientWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.borderRightWidth)}else{if(this.calculatedScrollbarWidth!==null)return this.calculatedScrollbarWidth;let n=document.createElement("div");n.className="p-scrollbar-measure",document.body.appendChild(n);let r=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),this.calculatedScrollbarWidth=r,r}}static calculateScrollbarHeight(){if(this.calculatedScrollbarHeight!==null)return this.calculatedScrollbarHeight;let i=document.createElement("div");i.className="p-scrollbar-measure",document.body.appendChild(i);let n=i.offsetHeight-i.clientHeight;return document.body.removeChild(i),this.calculatedScrollbarWidth=n,n}static invokeElementMethod(i,n,r){i[n].apply(i,r)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let i=this.resolveUserAgent();this.browser={},i.browser&&(this.browser[i.browser]=!0,this.browser.version=i.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let i=navigator.userAgent.toLowerCase(),n=/(chrome)[ \/]([\w.]+)/.exec(i)||/(webkit)[ \/]([\w.]+)/.exec(i)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(i)||/(msie) ([\w.]+)/.exec(i)||i.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(i)||[];return{browser:n[1]||"",version:n[2]||"0"}}static isInteger(i){return Number.isInteger?Number.isInteger(i):typeof i=="number"&&isFinite(i)&&Math.floor(i)===i}static isHidden(i){return!i||i.offsetParent===null}static isVisible(i){return i&&i.offsetParent!=null}static isExist(i){return i!==null&&typeof i<"u"&&i.nodeName&&i.parentNode}static focus(i,n){i&&document.activeElement!==i&&i.focus(n)}static getFocusableSelectorString(i=""){return`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i},
+        [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i},
+        input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i},
+        select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i},
+        textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i},
+        [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i},
+        [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i},
+        .p-inputtext:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i},
+        .p-button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i}`}static getFocusableElements(i,n=""){let r=this.find(i,this.getFocusableSelectorString(n)),o=[];for(let s of r){let a=getComputedStyle(s);this.isVisible(s)&&a.display!="none"&&a.visibility!="hidden"&&o.push(s)}return o}static getFocusableElement(i,n=""){let r=this.findSingle(i,this.getFocusableSelectorString(n));if(r){let o=getComputedStyle(r);if(this.isVisible(r)&&o.display!="none"&&o.visibility!="hidden")return r}return null}static getFirstFocusableElement(i,n=""){let r=this.getFocusableElements(i,n);return r.length>0?r[0]:null}static getLastFocusableElement(i,n){let r=this.getFocusableElements(i,n);return r.length>0?r[r.length-1]:null}static getNextFocusableElement(i,n=!1){let r=e.getFocusableElements(i),o=0;if(r&&r.length>0){let s=r.indexOf(r[0].ownerDocument.activeElement);n?s==-1||s===0?o=r.length-1:o=s-1:s!=-1&&s!==r.length-1&&(o=s+1)}return r[o]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(i,n){if(!i)return null;switch(i){case"document":return document;case"window":return window;case"@next":return n?.nextElementSibling;case"@prev":return n?.previousElementSibling;case"@parent":return n?.parentElement;case"@grandparent":return n?.parentElement.parentElement;default:let r=typeof i;if(r==="string")return document.querySelector(i);if(r==="object"&&i.hasOwnProperty("nativeElement"))return this.isExist(i.nativeElement)?i.nativeElement:void 0;let s=(a=>!!(a&&a.constructor&&a.call&&a.apply))(i)?i():i;return s&&s.nodeType===9||this.isExist(s)?s:null}}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}static getAttribute(i,n){if(i){let r=i.getAttribute(n);return isNaN(r)?r==="true"||r==="false"?r==="true":r:+r}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(i="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,i)}static unblockBodyScroll(i="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,i)}static createElement(i,n={},...r){if(i){let o=document.createElement(i);return this.setAttributes(o,n),o.append(...r),o}}static setAttribute(i,n="",r){this.isElement(i)&&r!==null&&r!==void 0&&i.setAttribute(n,r)}static setAttributes(i,n={}){if(this.isElement(i)){let r=(o,s)=>{let a=i?.$attrs?.[o]?[i?.$attrs?.[o]]:[];return[s].flat().reduce((l,p)=>{if(p!=null){let h=typeof p;if(h==="string"||h==="number")l.push(p);else if(h==="object"){let v=Array.isArray(p)?r(o,p):Object.entries(p).map(([w,g])=>o==="style"&&(g||g===0)?`${w.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${g}`:g?w:void 0);l=v.length?l.concat(v.filter(w=>!!w)):l}}return l},a)};Object.entries(n).forEach(([o,s])=>{if(s!=null){let a=o.match(/^on(.+)/);a?i.addEventListener(a[1].toLowerCase(),s):o==="pBind"?this.setAttributes(i,s):(s=o==="class"?[...new Set(r("class",s))].join(" ").trim():o==="style"?r("style",s).join(";").trim():s,(i.$attrs=i.$attrs||{})&&(i.$attrs[o]=s),i.setAttribute(o,s))}})}}static isFocusableElement(i,n=""){return this.isElement(i)?i.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
+                [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
+                input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
+                select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
+                textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
+                [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
+                [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}`):!1}}return e})();var kg=(()=>{class e{document;platformId;renderer;el;zone;config;constructor(i,n,r,o,s,a){this.document=i,this.platformId=n,this.renderer=r,this.el=o,this.zone=s,this.config=a}animationListener;mouseDownListener;timeout;ngAfterViewInit(){zo(this.platformId)&&this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this))})}onMouseDown(i){let n=this.getInk();if(!n||this.document.defaultView?.getComputedStyle(n,null).display==="none")return;if(En.removeClass(n,"p-ink-active"),!En.getHeight(n)&&!En.getWidth(n)){let a=Math.max(En.getOuterWidth(this.el.nativeElement),En.getOuterHeight(this.el.nativeElement));n.style.height=a+"px",n.style.width=a+"px"}let r=En.getOffset(this.el.nativeElement),o=i.pageX-r.left+this.document.body.scrollTop-En.getWidth(n)/2,s=i.pageY-r.top+this.document.body.scrollLeft-En.getHeight(n)/2;this.renderer.setStyle(n,"top",s+"px"),this.renderer.setStyle(n,"left",o+"px"),En.addClass(n,"p-ink-active"),this.timeout=setTimeout(()=>{let a=this.getInk();a&&En.removeClass(a,"p-ink-active")},401)}getInk(){let i=this.el.nativeElement.children;for(let n=0;n<i.length;n++)if(typeof i[n].className=="string"&&i[n].className.indexOf("p-ink")!==-1)return i[n];return null}resetInk(){let i=this.getInk();i&&En.removeClass(i,"p-ink-active")}onAnimationEnd(i){this.timeout&&clearTimeout(this.timeout),En.removeClass(i.currentTarget,"p-ink-active")}create(){let i=this.renderer.createElement("span");this.renderer.addClass(i,"p-ink"),this.renderer.appendChild(this.el.nativeElement,i),this.renderer.setAttribute(i,"aria-hidden","true"),this.renderer.setAttribute(i,"role","presentation"),this.animationListener||(this.animationListener=this.renderer.listen(i,"animationend",this.onAnimationEnd.bind(this)))}remove(){let i=this.getInk();i&&(this.mouseDownListener&&this.mouseDownListener(),this.animationListener&&this.animationListener(),this.mouseDownListener=null,this.animationListener=null,En.removeElement(i))}ngOnDestroy(){this.config&&this.config.ripple&&this.remove()}static \u0275fac=function(n){return new(n||e)(ee(Jn),ee(_i),ee(Gi),ee(Rn),ee(xn),ee(Rg,8))};static \u0275dir=Bt({type:e,selectors:[["","pRipple",""]],hostAttrs:[1,"p-ripple","p-element"],standalone:!0})}return e})(),Nx=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Qn({type:e});static \u0275inj=Kn({})}return e})();var b7=["itemsContainer"],_7=["indicatorContent"],C7=[[["p-header"]],[["p-footer"]]],w7=["p-header","p-footer"],E7=(e,t)=>({"p-carousel p-component":!0,"p-carousel-vertical":e,"p-carousel-horizontal":t}),S7=e=>({height:e}),I7=e=>({"p-carousel-prev p-link":!0,"p-disabled":e}),Px=(e,t,i)=>({"p-carousel-item p-carousel-item-cloned":!0,"p-carousel-item-active":e,"p-carousel-item-start":t,"p-carousel-item-end":i}),ub=e=>({$implicit:e}),x7=(e,t,i)=>({"p-carousel-item":!0,"p-carousel-item-active":e,"p-carousel-item-start":t,"p-carousel-item-end":i}),D7=e=>({"p-carousel-next p-link":!0,"p-disabled":e}),M7=e=>({"p-carousel-indicator":!0,"p-highlight":e});function A7(e,t){e&1&&$o(0)}function T7(e,t){if(e&1&&(d(0,"div",12),Yr(1),R(2,A7,1,0,"ng-container",13),u()),e&2){let i=j();b(2),_("ngTemplateOutlet",i.headerTemplate)}}function F7(e,t){e&1&&z(0,"ChevronLeftIcon",18),e&2&&_("styleClass","carousel-prev-icon")}function N7(e,t){e&1&&z(0,"ChevronUpIcon",18),e&2&&_("styleClass","carousel-prev-icon")}function P7(e,t){if(e&1&&(pr(0),R(1,F7,1,1,"ChevronLeftIcon",17)(2,N7,1,1,"ChevronUpIcon",17),fr()),e&2){let i=j(2);b(),_("ngIf",!i.isVertical()),b(),_("ngIf",i.isVertical())}}function O7(e,t){}function R7(e,t){e&1&&R(0,O7,0,0,"ng-template")}function L7(e,t){if(e&1&&(d(0,"span",19),R(1,R7,1,0,null,13),u()),e&2){let i=j(2);b(),_("ngTemplateOutlet",i.previousIconTemplate)}}function k7(e,t){if(e&1){let i=je();d(0,"button",14),X("click",function(r){fe(i);let o=j();return he(o.navBackward(r))}),R(1,P7,3,2,"ng-container",15)(2,L7,2,1,"span",16),u()}if(e&2){let i=j();_("ngClass",ye(5,I7,i.isBackwardNavDisabled()))("disabled",i.isBackwardNavDisabled()),Wt("aria-label",i.ariaPrevButtonLabel()),b(),_("ngIf",!i.previousIconTemplate),b(),_("ngIf",i.previousIconTemplate)}}function j7(e,t){e&1&&$o(0)}function V7(e,t){if(e&1&&(d(0,"div",4),R(1,j7,1,0,"ng-container",20),u()),e&2){let i=t.$implicit,n=t.index,r=j();_("ngClass",Mm(6,Px,r.totalShiftedItems*-1===r.value.length,n===0,r.clonedItemsForStarting.length-1===n)),Wt("aria-hidden",r.totalShiftedItems*-1!==r.value.length)("aria-label",r.ariaSlideNumber(n))("aria-roledescription",r.ariaSlideLabel()),b(),_("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",ye(10,ub,i))}}function B7(e,t){e&1&&$o(0)}function U7(e,t){if(e&1&&(d(0,"div",4),R(1,B7,1,0,"ng-container",20),u()),e&2){let i=t.$implicit,n=t.index,r=j();_("ngClass",Mm(6,x7,r.firstIndex()<=n&&r.lastIndex()>=n,r.firstIndex()===n,r.lastIndex()===n)),Wt("aria-hidden",r.totalShiftedItems*-1!==r.value.length)("aria-label",r.ariaSlideNumber(n))("aria-roledescription",r.ariaSlideLabel()),b(),_("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",ye(10,ub,i))}}function q7(e,t){e&1&&$o(0)}function $7(e,t){if(e&1&&(d(0,"div",4),R(1,q7,1,0,"ng-container",20),u()),e&2){let i=t.$implicit,n=t.index,r=j();_("ngClass",Mm(3,Px,r.totalShiftedItems*-1===r.numVisible,n===0,r.clonedItemsForFinishing.length-1===n)),b(),_("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",ye(7,ub,i))}}function H7(e,t){e&1&&z(0,"ChevronRightIcon",18),e&2&&_("styleClass","carousel-prev-icon")}function z7(e,t){e&1&&z(0,"ChevronDownIcon",18),e&2&&_("styleClass","carousel-prev-icon")}function G7(e,t){if(e&1&&(pr(0),R(1,H7,1,1,"ChevronRightIcon",17)(2,z7,1,1,"ChevronDownIcon",17),fr()),e&2){let i=j(2);b(),_("ngIf",!i.isVertical()),b(),_("ngIf",i.isVertical())}}function W7(e,t){}function Y7(e,t){e&1&&R(0,W7,0,0,"ng-template")}function K7(e,t){if(e&1&&(d(0,"span",19),R(1,Y7,1,0,null,13),u()),e&2){let i=j(2);b(),_("ngTemplateOutlet",i.nextIconTemplate)}}function Q7(e,t){if(e&1){let i=je();d(0,"button",14),X("click",function(r){fe(i);let o=j();return he(o.navForward(r))}),R(1,G7,3,2,"ng-container",15)(2,K7,2,1,"span",16),u()}if(e&2){let i=j();_("ngClass",ye(5,D7,i.isForwardNavDisabled()))("disabled",i.isForwardNavDisabled()),Wt("aria-label",i.ariaNextButtonLabel()),b(),_("ngIf",!i.nextIconTemplate),b(),_("ngIf",i.nextIconTemplate)}}function Z7(e,t){if(e&1){let i=je();d(0,"li",4)(1,"button",22),X("click",function(r){let o=fe(i).index,s=j(2);return he(s.onDotClick(r,o))}),u()()}if(e&2){let i=t.index,n=j(2);_("ngClass",ye(9,M7,n._page===i)),Wt("data-pc-section","indicator"),b(),Ci(n.indicatorStyleClass),_("ngClass","p-link")("ngStyle",n.indicatorStyle)("tabindex",n._page===i?0:-1),Wt("aria-label",n.ariaPageLabel(i+1))("aria-current",n._page===i?"page":void 0)}}function J7(e,t){if(e&1){let i=je();d(0,"ul",21,1),X("keydown",function(r){fe(i);let o=j();return he(o.onIndicatorKeydown(r))}),R(2,Z7,2,11,"li",9),u()}if(e&2){let i=j();Ci(i.indicatorsContentClass),_("ngClass","p-carousel-indicators p-reset")("ngStyle",i.indicatorsContentStyle),b(2),_("ngForOf",i.totalDotsArray())}}function X7(e,t){e&1&&$o(0)}function e9(e,t){if(e&1&&(d(0,"div",23),Yr(1,1),R(2,X7,1,0,"ng-container",13),u()),e&2){let i=j();b(2),_("ngTemplateOutlet",i.footerTemplate)}}var Ox=(()=>{class e{el;zone;cd;renderer;document;platformId;config;get page(){return this._page}set page(i){this.isCreated&&i!==this._page&&(this.autoplayInterval&&this.stopAutoplay(),i>this._page&&i<=this.totalDots()-1?this.step(-1,i):i<this._page&&this.step(1,i)),this._page=i}get numVisible(){return this._numVisible}set numVisible(i){this._numVisible=i}get numScroll(){return this._numVisible}set numScroll(i){this._numScroll=i}responsiveOptions;orientation="horizontal";verticalViewPortHeight="300px";contentClass="";indicatorsContentClass="";indicatorsContentStyle;indicatorStyleClass="";indicatorStyle;get value(){return this._value}set value(i){this._value=i}circular=!1;showIndicators=!0;showNavigators=!0;autoplayInterval=0;style;styleClass;onPage=new ot;itemsContainer;indicatorContent;headerFacet;footerFacet;templates;_numVisible=1;_numScroll=1;_oldNumScroll=0;prevState={numScroll:0,numVisible:0,value:[]};defaultNumScroll=1;defaultNumVisible=1;_page=0;_value;carouselStyle;id;totalShiftedItems;isRemainingItemsAdded=!1;animationTimeout;translateTimeout;remainingItems=0;_items;startPos;documentResizeListener;clonedItemsForStarting;clonedItemsForFinishing;allowAutoplay;interval;isCreated;swipeThreshold=20;itemTemplate;headerTemplate;footerTemplate;previousIconTemplate;nextIconTemplate;window;constructor(i,n,r,o,s,a,l){this.el=i,this.zone=n,this.cd=r,this.renderer=o,this.document=s,this.platformId=a,this.config=l,this.totalShiftedItems=this.page*this.numScroll*-1,this.window=this.document.defaultView}ngOnChanges(i){zo(this.platformId)&&(i.value&&this.circular&&this._value&&this.setCloneItems(),this.isCreated&&(i.numVisible&&(this.responsiveOptions&&(this.defaultNumVisible=this.numVisible),this.isCircular()&&this.setCloneItems(),this.createStyle(),this.calculatePosition()),i.numScroll&&this.responsiveOptions&&(this.defaultNumScroll=this.numScroll))),this.cd.markForCheck()}ngAfterContentInit(){this.id=Og(),zo(this.platformId)&&(this.allowAutoplay=!!this.autoplayInterval,this.circular&&this.setCloneItems(),this.responsiveOptions&&(this.defaultNumScroll=this._numScroll,this.defaultNumVisible=this._numVisible),this.createStyle(),this.calculatePosition(),this.responsiveOptions&&this.bindDocumentListeners()),this.templates?.forEach(i=>{switch(i.getType()){case"item":this.itemTemplate=i.template;break;case"header":this.headerTemplate=i.template;break;case"footer":this.footerTemplate=i.template;break;case"previousicon":this.previousIconTemplate=i.template;break;case"nexticon":this.nextIconTemplate=i.template;break;default:this.itemTemplate=i.template;break}}),this.cd.detectChanges()}ngAfterContentChecked(){if(zo(this.platformId)){let i=this.isCircular(),n=this.totalShiftedItems;if(this.value&&this.itemsContainer&&(this.prevState.numScroll!==this._numScroll||this.prevState.numVisible!==this._numVisible||this.prevState.value.length!==this.value.length)){this.autoplayInterval&&this.stopAutoplay(!1),this.remainingItems=(this.value.length-this._numVisible)%this._numScroll;let r=this._page;this.totalDots()!==0&&r>=this.totalDots()&&(r=this.totalDots()-1,this._page=r,this.onPage.emit({page:this.page})),n=r*this._numScroll*-1,i&&(n-=this._numVisible),r===this.totalDots()-1&&this.remainingItems>0?(n+=-1*this.remainingItems+this._numScroll,this.isRemainingItemsAdded=!0):this.isRemainingItemsAdded=!1,n!==this.totalShiftedItems&&(this.totalShiftedItems=n),this._oldNumScroll=this._numScroll,this.prevState.numScroll=this._numScroll,this.prevState.numVisible=this._numVisible,this.prevState.value=[...this._value],this.totalDots()>0&&this.itemsContainer.nativeElement&&(this.itemsContainer.nativeElement.style.transform=this.isVertical()?`translate3d(0, ${n*(100/this._numVisible)}%, 0)`:`translate3d(${n*(100/this._numVisible)}%, 0, 0)`),this.isCreated=!0,this.autoplayInterval&&this.isAutoplay()&&this.startAutoplay()}i&&(this.page===0?n=-1*this._numVisible:n===0&&(n=-1*this.value.length,this.remainingItems>0&&(this.isRemainingItemsAdded=!0)),n!==this.totalShiftedItems&&(this.totalShiftedItems=n))}}createStyle(){this.carouselStyle||(this.carouselStyle=this.renderer.createElement("style"),this.carouselStyle.type="text/css",En.setAttribute(this.carouselStyle,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.carouselStyle));let i=`
+            #${this.id} .p-carousel-item {
+				flex: 1 0 ${100/this.numVisible}%
+			}
+        `;if(this.responsiveOptions){this.responsiveOptions.sort((n,r)=>{let o=n.breakpoint,s=r.breakpoint,a=null;return o==null&&s!=null?a=-1:o!=null&&s==null?a=1:o==null&&s==null?a=0:typeof o=="string"&&typeof s=="string"?a=o.localeCompare(s,void 0,{numeric:!0}):a=o<s?-1:o>s?1:0,-1*a});for(let n=0;n<this.responsiveOptions.length;n++){let r=this.responsiveOptions[n];i+=`
+                    @media screen and (max-width: ${r.breakpoint}) {
+                        #${this.id} .p-carousel-item {
+                            flex: 1 0 ${100/r.numVisible}%
+                        }
+                    }
+                `}}this.carouselStyle.innerHTML=i}calculatePosition(){if(this.responsiveOptions){let i={numVisible:this.defaultNumVisible,numScroll:this.defaultNumScroll};if(typeof window<"u"){let n=window.innerWidth;for(let r=0;r<this.responsiveOptions.length;r++){let o=this.responsiveOptions[r];parseInt(o.breakpoint,10)>=n&&(i=o)}}if(this._numScroll!==i.numScroll){let n=this._page;n=Math.floor(n*this._numScroll/i.numScroll);let r=i.numScroll*this.page*-1;this.isCircular()&&(r-=i.numVisible),this.totalShiftedItems=r,this._numScroll=i.numScroll,this._page=n,this.onPage.emit({page:this.page})}this._numVisible!==i.numVisible&&(this._numVisible=i.numVisible,this.setCloneItems()),this.cd.markForCheck()}}setCloneItems(){this.clonedItemsForStarting=[],this.clonedItemsForFinishing=[],this.isCircular()&&(this.clonedItemsForStarting.push(...this.value.slice(-1*this._numVisible)),this.clonedItemsForFinishing.push(...this.value.slice(0,this._numVisible)))}firstIndex(){return this.isCircular()?-1*(this.totalShiftedItems+this.numVisible):this.totalShiftedItems*-1}lastIndex(){return this.firstIndex()+this.numVisible-1}totalDots(){return this.value?.length?Math.ceil((this.value.length-this._numVisible)/this._numScroll)+1:0}totalDotsArray(){let i=this.totalDots();return i<=0?[]:Array(i).fill(0)}isVertical(){return this.orientation==="vertical"}isCircular(){return this.circular&&this.value&&this.value.length>=this.numVisible}isAutoplay(){return this.autoplayInterval&&this.allowAutoplay}isForwardNavDisabled(){return this.isEmpty()||this._page>=this.totalDots()-1&&!this.isCircular()}isBackwardNavDisabled(){return this.isEmpty()||this._page<=0&&!this.isCircular()}isEmpty(){return!this.value||this.value.length===0}navForward(i,n){(this.isCircular()||this._page<this.totalDots()-1)&&this.step(-1,n),this.autoplayInterval&&this.stopAutoplay(),i&&i.cancelable&&i.preventDefault()}navBackward(i,n){(this.isCircular()||this._page!==0)&&this.step(1,n),this.autoplayInterval&&this.stopAutoplay(),i&&i.cancelable&&i.preventDefault()}onDotClick(i,n){let r=this._page;this.autoplayInterval&&this.stopAutoplay(),n>r?this.navForward(i,n):n<r&&this.navBackward(i,n)}onIndicatorKeydown(i){switch(i.code){case"ArrowRight":this.onRightKey();break;case"ArrowLeft":this.onLeftKey();break}}onRightKey(){let i=[...En.find(this.indicatorContent.nativeElement,'[data-pc-section="indicator"]')],n=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(n,n+1===i.length?i.length-1:n+1)}onLeftKey(){let i=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(i,i-1<=0?0:i-1)}onHomeKey(){let i=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(i,0)}onEndKey(){let i=[...En.find(this.indicatorContent.nativeElement,'[data-pc-section="indicator"]r')],n=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(n,i.length-1)}onTabKey(){let i=[...En.find(this.indicatorContent.nativeElement,'[data-pc-section="indicator"]')],n=i.findIndex(s=>En.getAttribute(s,"data-p-highlight")===!0),r=En.findSingle(this.indicatorContent.nativeElement,'[data-pc-section="indicator"] > button[tabindex="0"]'),o=i.findIndex(s=>s===r.parentElement);i[o].children[0].tabIndex="-1",i[n].children[0].tabIndex="0"}findFocusedIndicatorIndex(){let i=[...En.find(this.indicatorContent.nativeElement,'[data-pc-section="indicator"]')],n=En.findSingle(this.indicatorContent.nativeElement,'[data-pc-section="indicator"] > button[tabindex="0"]');return i.findIndex(r=>r===n.parentElement)}changedFocusedIndicator(i,n){let r=[...En.find(this.indicatorContent.nativeElement,'[data-pc-section="indicator"]')];r[i].children[0].tabIndex="-1",r[n].children[0].tabIndex="0",r[n].children[0].focus()}step(i,n){let r=this.totalShiftedItems,o=this.isCircular();if(n!=null)r=this._numScroll*n*-1,o&&(r-=this._numVisible),this.isRemainingItemsAdded=!1;else{r+=this._numScroll*i,this.isRemainingItemsAdded&&(r+=this.remainingItems-this._numScroll*i,this.isRemainingItemsAdded=!1);let s=o?r+this._numVisible:r;n=Math.abs(Math.floor(s/this._numScroll))}o&&this.page===this.totalDots()-1&&i===-1?(r=-1*(this.value.length+this._numVisible),n=0):o&&this.page===0&&i===1?(r=0,n=this.totalDots()-1):n===this.totalDots()-1&&this.remainingItems>0&&(r+=this.remainingItems*-1-this._numScroll*i,this.isRemainingItemsAdded=!0),this.itemsContainer&&(this.itemsContainer.nativeElement.style.transform=this.isVertical()?`translate3d(0, ${r*(100/this._numVisible)}%, 0)`:`translate3d(${r*(100/this._numVisible)}%, 0, 0)`,this.itemsContainer.nativeElement.style.transition="transform 500ms ease 0s"),this.totalShiftedItems=r,this._page=n,this.onPage.emit({page:this.page}),this.cd.markForCheck()}startAutoplay(){this.interval=setInterval(()=>{this.totalDots()>0&&(this.page===this.totalDots()-1?this.step(-1,0):this.step(-1,this.page+1))},this.autoplayInterval),this.allowAutoplay=!0,this.cd.markForCheck()}stopAutoplay(i=!0){this.interval&&(clearInterval(this.interval),this.interval=void 0,i&&(this.allowAutoplay=!1)),this.cd.markForCheck()}isPlaying(){return!!this.interval}onTransitionEnd(){this.itemsContainer&&(this.itemsContainer.nativeElement.style.transition="",(this.page===0||this.page===this.totalDots()-1)&&this.isCircular()&&(this.itemsContainer.nativeElement.style.transform=this.isVertical()?`translate3d(0, ${this.totalShiftedItems*(100/this._numVisible)}%, 0)`:`translate3d(${this.totalShiftedItems*(100/this._numVisible)}%, 0, 0)`))}onTouchStart(i){let n=i.changedTouches[0];this.startPos={x:n.pageX,y:n.pageY}}onTouchMove(i){i.cancelable&&i.preventDefault()}onTouchEnd(i){let n=i.changedTouches[0];this.isVertical()?this.changePageOnTouch(i,n.pageY-this.startPos.y):this.changePageOnTouch(i,n.pageX-this.startPos.x)}changePageOnTouch(i,n){Math.abs(n)>this.swipeThreshold&&(n<0?this.navForward(i):this.navBackward(i))}ariaPrevButtonLabel(){return this.config.translation.aria?this.config.translation.aria.prevPageLabel:void 0}ariaSlideLabel(){return this.config.translation.aria?this.config.translation.aria.slide:void 0}ariaNextButtonLabel(){return this.config.translation.aria?this.config.translation.aria.nextPageLabel:void 0}ariaSlideNumber(i){return this.config.translation.aria?this.config.translation.aria.slideNumber.replace(/{slideNumber}/g,i):void 0}ariaPageLabel(i){return this.config.translation.aria?this.config.translation.aria.pageLabel.replace(/{page}/g,i):void 0}bindDocumentListeners(){zo(this.platformId)&&(this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",i=>{this.calculatePosition()})))}unbindDocumentListeners(){zo(this.platformId)&&this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}ngOnDestroy(){this.responsiveOptions&&this.unbindDocumentListeners(),this.autoplayInterval&&this.stopAutoplay()}static \u0275fac=function(n){return new(n||e)(ee(Rn),ee(xn),ee(bs),ee(Gi),ee(Jn),ee(_i),ee(Rg))};static \u0275cmp=Re({type:e,selectors:[["p-carousel"]],contentQueries:function(n,r,o){if(n&1&&(co(o,Lg,5),co(o,Fx,5),co(o,Ki,4)),n&2){let s;Mr(s=Ar())&&(r.headerFacet=s.first),Mr(s=Ar())&&(r.footerFacet=s.first),Mr(s=Ar())&&(r.templates=s)}},viewQuery:function(n,r){if(n&1&&(Dy(b7,5),Dy(_7,5)),n&2){let o;Mr(o=Ar())&&(r.itemsContainer=o.first),Mr(o=Ar())&&(r.indicatorContent=o.first)}},hostAttrs:[1,"p-element"],inputs:{page:"page",numVisible:"numVisible",numScroll:"numScroll",responsiveOptions:"responsiveOptions",orientation:"orientation",verticalViewPortHeight:"verticalViewPortHeight",contentClass:"contentClass",indicatorsContentClass:"indicatorsContentClass",indicatorsContentStyle:"indicatorsContentStyle",indicatorStyleClass:"indicatorStyleClass",indicatorStyle:"indicatorStyle",value:"value",circular:[xt.HasDecoratorInputTransform,"circular","circular",Wn],showIndicators:[xt.HasDecoratorInputTransform,"showIndicators","showIndicators",Wn],showNavigators:[xt.HasDecoratorInputTransform,"showNavigators","showNavigators",Wn],autoplayInterval:[xt.HasDecoratorInputTransform,"autoplayInterval","autoplayInterval",sp],style:"style",styleClass:"styleClass"},outputs:{onPage:"onPage"},features:[so,qn],ngContentSelectors:w7,decls:14,vars:23,consts:[["itemsContainer",""],["indicatorContent",""],["role","region",3,"ngClass","ngStyle"],["class","p-carousel-header",4,"ngIf"],[3,"ngClass"],[1,"p-carousel-container"],["type","button","pRipple","",3,"ngClass","disabled","click",4,"ngIf"],[1,"p-carousel-items-content",3,"touchend","touchstart","touchmove","ngStyle"],[1,"p-carousel-items-container",3,"transitionend"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass","class","ngStyle","keydown",4,"ngIf"],["class","p-carousel-footer",4,"ngIf"],[1,"p-carousel-header"],[4,"ngTemplateOutlet"],["type","button","pRipple","",3,"click","ngClass","disabled"],[4,"ngIf"],["class","p-carousel-prev-icon",4,"ngIf"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[1,"p-carousel-prev-icon"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"keydown","ngClass","ngStyle"],["type","button",3,"click","ngClass","ngStyle","tabindex"],[1,"p-carousel-footer"]],template:function(n,r){if(n&1){let o=je();lo(C7),d(0,"div",2),R(1,T7,3,1,"div",3),d(2,"div",4)(3,"div",5),R(4,k7,3,7,"button",6),d(5,"div",7),X("touchend",function(a){return fe(o),he(r.onTouchEnd(a))})("touchstart",function(a){return fe(o),he(r.onTouchStart(a))})("touchmove",function(a){return fe(o),he(r.onTouchMove(a))}),d(6,"div",8,0),X("transitionend",function(){return fe(o),he(r.onTransitionEnd())}),R(8,V7,2,12,"div",9)(9,U7,2,12,"div",9)(10,$7,2,9,"div",9),u()(),R(11,Q7,3,7,"button",6),u(),R(12,J7,3,5,"ul",10),u(),R(13,e9,3,1,"div",11),u()}n&2&&(Ci(r.styleClass),_("ngClass",PE(18,E7,r.isVertical(),!r.isVertical()))("ngStyle",r.style),Wt("id",r.id),b(),_("ngIf",r.headerFacet||r.headerTemplate),b(),Ci(r.contentClass),_("ngClass","p-carousel-content"),b(),Wt("aria-live",r.allowAutoplay?"polite":"off"),b(),_("ngIf",r.showNavigators),b(),_("ngStyle",ye(21,S7,r.isVertical()?r.verticalViewPortHeight:"auto")),b(3),_("ngForOf",r.clonedItemsForStarting),b(),_("ngForOf",r.value),b(),_("ngForOf",r.clonedItemsForFinishing),b(),_("ngIf",r.showNavigators),b(),_("ngIf",r.showIndicators),b(),_("ngIf",r.footerFacet||r.footerTemplate))},dependencies:()=>[kt,Cn,st,Iu,Su,kg,lb,ab,sb,cb],styles:[`@layer primeng{.p-carousel{display:flex;flex-direction:column}.p-carousel-content{display:flex;flex-direction:column;overflow:auto}.p-carousel-prev,.p-carousel-next{align-self:center;flex-grow:0;flex-shrink:0;display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-carousel-container{display:flex;flex-direction:row}.p-carousel-items-content{overflow:hidden;width:100%}.p-carousel-items-container{display:flex;flex-direction:row}.p-carousel-indicators{display:flex;flex-direction:row;justify-content:center;flex-wrap:wrap}.p-carousel-indicator>button{display:flex;align-items:center;justify-content:center}.p-carousel-vertical .p-carousel-container{flex-direction:column}.p-carousel-vertical .p-carousel-items-container{flex-direction:column;height:100%}.p-items-hidden .p-carousel-item{visibility:hidden}.p-items-hidden .p-carousel-item.p-carousel-item-active{visibility:visible}}
+`],encapsulation:2,changeDetection:0})}return e})(),Rx=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Qn({type:e});static \u0275inj=Kn({imports:[rt,Os,Nx,lb,ab,sb,cb,rt,Os]})}return e})();var Lx=(()=>{class e{autofocus=!1;focused=!1;platformId=Pe(_i);document=Pe(Jn);host=Pe(Rn);ngAfterContentChecked(){this.autofocus===!1?this.host.nativeElement.removeAttribute("autofocus"):this.host.nativeElement.setAttribute("autofocus",!0),this.focused||this.autoFocus()}ngAfterViewChecked(){this.focused||this.autoFocus()}autoFocus(){zo(this.platformId)&&this.autofocus&&setTimeout(()=>{let i=En.getFocusableElements(this.host?.nativeElement);i.length===0&&this.host.nativeElement.focus(),i.length>0&&i[0].focus(),this.focused=!0})}static \u0275fac=function(n){return new(n||e)};static \u0275dir=Bt({type:e,selectors:[["","pAutoFocus",""]],hostAttrs:[1,"p-element"],inputs:{autofocus:[xt.HasDecoratorInputTransform,"autofocus","autofocus",Wn]},standalone:!0,features:[so]})}return e})();var kx=(()=>{class e extends Rs{pathId;ngOnInit(){this.pathId="url(#"+Og()+")"}static \u0275fac=(()=>{let i;return function(r){return(i||(i=Zn(e)))(r||e)}})();static \u0275cmp=Re({type:e,selectors:[["SpinnerIcon"]],standalone:!0,features:[_n,Ve],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,r){n&1&&(gs(),d(0,"svg",0)(1,"g"),z(2,"path",1),u(),d(3,"defs")(4,"clipPath",2),z(5,"rect",3),u()()()),n&2&&(Ci(r.getClassNames()),Wt("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),b(),Wt("clip-path",r.pathId),b(3),_("id",r.pathId))},encapsulation:2})}return e})();var n9=["*"],jx=e=>({class:e});function i9(e,t){e&1&&$o(0)}function r9(e,t){if(e&1&&z(0,"span",8),e&2){let i=j(3);_("ngClass",i.iconClass()),Wt("aria-hidden",!0)("data-pc-section","loadingicon")}}function o9(e,t){if(e&1&&z(0,"SpinnerIcon",9),e&2){let i=j(3);_("styleClass",i.spinnerIconClass())("spin",!0),Wt("aria-hidden",!0)("data-pc-section","loadingicon")}}function s9(e,t){if(e&1&&(pr(0),R(1,r9,1,3,"span",6)(2,o9,1,4,"SpinnerIcon",7),fr()),e&2){let i=j(2);b(),_("ngIf",i.loadingIcon),b(),_("ngIf",!i.loadingIcon)}}function a9(e,t){}function l9(e,t){if(e&1&&R(0,a9,0,0,"ng-template",10),e&2){let i=j(2);_("ngIf",i.loadingIconTemplate)}}function c9(e,t){if(e&1&&(pr(0),R(1,s9,3,2,"ng-container",2)(2,l9,1,1,null,5),fr()),e&2){let i=j();b(),_("ngIf",!i.loadingIconTemplate),b(),_("ngTemplateOutlet",i.loadingIconTemplate)("ngTemplateOutletContext",ye(3,jx,i.iconClass()))}}function u9(e,t){if(e&1&&z(0,"span",8),e&2){let i=j(2);_("ngClass",i.iconClass()),Wt("data-pc-section","icon")}}function d9(e,t){}function p9(e,t){if(e&1&&R(0,d9,0,0,"ng-template",10),e&2){let i=j(2);_("ngIf",!i.icon&&i.iconTemplate)}}function f9(e,t){if(e&1&&(pr(0),R(1,u9,1,2,"span",6)(2,p9,1,1,null,5),fr()),e&2){let i=j();b(),_("ngIf",i.icon&&!i.iconTemplate),b(),_("ngTemplateOutlet",i.iconTemplate)("ngTemplateOutletContext",ye(3,jx,i.iconClass()))}}function h9(e,t){if(e&1&&(d(0,"span",11),C(1),u()),e&2){let i=j();Wt("aria-hidden",i.icon&&!i.label)("data-pc-section","label"),b(),on(i.label)}}function m9(e,t){if(e&1&&(d(0,"span",8),C(1),u()),e&2){let i=j();Ci(i.badgeClass),_("ngClass",i.badgeStyleClass()),Wt("data-pc-section","badge"),b(),on(i.badge)}}var g9=(()=>{class e{el;type="button";iconPos="left";icon;badge;label;disabled;loading=!1;loadingIcon;raised=!1;rounded=!1;text=!1;plain=!1;severity;outlined=!1;link=!1;tabindex;size;style;styleClass;badgeClass;ariaLabel;autofocus;onClick=new ot;onFocus=new ot;onBlur=new ot;contentTemplate;loadingIconTemplate;iconTemplate;templates;constructor(i){this.el=i}spinnerIconClass(){return Object.entries(this.iconClass()).filter(([,i])=>!!i).reduce((i,[n])=>i+` ${n}`,"p-button-loading-icon")}iconClass(){let i={"p-button-icon":!0,"p-button-icon-left":this.iconPos==="left"&&this.label,"p-button-icon-right":this.iconPos==="right"&&this.label,"p-button-icon-top":this.iconPos==="top"&&this.label,"p-button-icon-bottom":this.iconPos==="bottom"&&this.label};return this.loading?i[`p-button-loading-icon pi-spin ${this.loadingIcon??""}`]=!0:this.icon&&(i[this.icon]=!0),i}get buttonClass(){return{"p-button p-component":!0,"p-button-icon-only":(this.icon||this.iconTemplate||this.loadingIcon||this.loadingIconTemplate)&&!this.label,"p-button-vertical":(this.iconPos==="top"||this.iconPos==="bottom")&&this.label,"p-disabled":this.disabled||this.loading,"p-button-loading":this.loading,"p-button-loading-label-only":this.loading&&!this.icon&&this.label&&!this.loadingIcon&&this.iconPos==="left","p-button-link":this.link,[`p-button-${this.severity}`]:this.severity,"p-button-raised":this.raised,"p-button-rounded":this.rounded,"p-button-text":this.text,"p-button-outlined":this.outlined,"p-button-sm":this.size==="small","p-button-lg":this.size==="large","p-button-plain":this.plain,[`${this.styleClass}`]:this.styleClass}}ngAfterContentInit(){this.templates?.forEach(i=>{switch(i.getType()){case"content":this.contentTemplate=i.template;break;case"icon":this.iconTemplate=i.template;break;case"loadingicon":this.loadingIconTemplate=i.template;break;default:this.contentTemplate=i.template;break}})}badgeStyleClass(){return{"p-badge p-component":!0,"p-badge-no-gutter":this.badge&&String(this.badge).length===1}}static \u0275fac=function(n){return new(n||e)(ee(Rn))};static \u0275cmp=Re({type:e,selectors:[["p-button"]],contentQueries:function(n,r,o){if(n&1&&co(o,Ki,4),n&2){let s;Mr(s=Ar())&&(r.templates=s)}},hostAttrs:[1,"p-element"],inputs:{type:"type",iconPos:"iconPos",icon:"icon",badge:"badge",label:"label",disabled:[xt.HasDecoratorInputTransform,"disabled","disabled",Wn],loading:[xt.HasDecoratorInputTransform,"loading","loading",Wn],loadingIcon:"loadingIcon",raised:[xt.HasDecoratorInputTransform,"raised","raised",Wn],rounded:[xt.HasDecoratorInputTransform,"rounded","rounded",Wn],text:[xt.HasDecoratorInputTransform,"text","text",Wn],plain:[xt.HasDecoratorInputTransform,"plain","plain",Wn],severity:"severity",outlined:[xt.HasDecoratorInputTransform,"outlined","outlined",Wn],link:[xt.HasDecoratorInputTransform,"link","link",Wn],tabindex:[xt.HasDecoratorInputTransform,"tabindex","tabindex",sp],size:"size",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",ariaLabel:"ariaLabel",autofocus:[xt.HasDecoratorInputTransform,"autofocus","autofocus",Wn]},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},standalone:!0,features:[so,Ve],ngContentSelectors:n9,decls:7,vars:14,consts:[["pRipple","","pAutoFocus","",3,"click","focus","blur","ngStyle","disabled","ngClass","autofocus"],[4,"ngTemplateOutlet"],[4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass","class",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass",4,"ngIf"],[3,"styleClass","spin",4,"ngIf"],[3,"ngClass"],[3,"styleClass","spin"],[3,"ngIf"],[1,"p-button-label"]],template:function(n,r){n&1&&(lo(),d(0,"button",0),X("click",function(s){return r.onClick.emit(s)})("focus",function(s){return r.onFocus.emit(s)})("blur",function(s){return r.onBlur.emit(s)}),Yr(1),R(2,i9,1,0,"ng-container",1)(3,c9,3,5,"ng-container",2)(4,f9,3,5,"ng-container",2)(5,h9,2,3,"span",3)(6,m9,2,5,"span",4),u()),n&2&&(_("ngStyle",r.style)("disabled",r.disabled||r.loading)("ngClass",r.buttonClass)("autofocus",r.autofocus),Wt("type",r.type)("aria-label",r.ariaLabel)("data-pc-name","button")("data-pc-section","root")("tabindex",r.tabindex),b(2),_("ngTemplateOutlet",r.contentTemplate),b(),_("ngIf",r.loading),b(),_("ngIf",!r.loading),b(),_("ngIf",!r.contentTemplate&&r.label),b(),_("ngIf",!r.contentTemplate&&r.badge))},dependencies:[st,Iu,Su,kt,kg,Lx,kx],encapsulation:2,changeDetection:0})}return e})(),Vx=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Qn({type:e});static \u0275inj=Kn({imports:[g9,Os]})}return e})();var Bx=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Qn({type:e});static \u0275inj=Kn({imports:[rt,Os,Os]})}return e})();function v9(e,t){if(e&1&&(d(0,"div"),z(1,"app-card",8),u()),e&2){let i=t.index,n=j(3);b(),_("recipe",n.recipes[i])}}function y9(e,t){if(e&1&&(d(0,"div",4)(1,"div",5)(2,"div",6),R(3,v9,2,1,"div",7),u()()()),e&2){let i=j(2);b(3),_("ngForOf",i.recipes)}}function b9(e,t){if(e&1&&(d(0,"div")(1,"p-carousel",2),R(2,y9,4,1,"ng-template",3),u()()),e&2){let i=j();b(),_("value",i.recipes)("circular",!0)("numVisible",3)("numScroll",2)("responsiveOptions",i.responsiveOptions)("showIndicators",!1)}}function _9(e,t){if(e&1&&(d(0,"div",4)(1,"div",5)(2,"div",6),z(3,"app-card",8),u()(),d(4,"div",5)(5,"div",6),z(6,"app-card",8),u()()()),e&2){let i=j(2);b(3),_("recipe",i.recipes[i.getIndex()]),b(3),_("recipe",i.recipes[i.getIndex()])}}function C9(e,t){if(e&1&&(d(0,"div",9)(1,"p-carousel",2),R(2,_9,7,2,"ng-template",3),u()()),e&2){let i=j();b(),_("value",i.recipes)("circular",!0)("numVisible",3)("numScroll",1)("responsiveOptions",i.responsiveOptions)("showIndicators",!1)}}var Ux=(()=>{let t=class t{constructor(){this.recipes=[],this.currentIndex=0}ngOnInit(){this.responsiveOptions=[{breakpoint:"1199px",numVisible:1,numScroll:1},{breakpoint:"991px",numVisible:2,numScroll:1},{breakpoint:"767px",numVisible:1,numScroll:1}]}logToConsole(n){console.log("i:"+n)}getIndex(){let n=this.currentIndex;return this.currentIndex=(this.currentIndex+1)%this.recipes.length,n}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=Re({type:t,selectors:[["app-carousel"]],inputs:{recipes:"recipes"},standalone:!0,features:[Ve],decls:2,vars:2,consts:[[4,"ngIf"],["class","card",4,"ngIf"],[3,"value","circular","numVisible","numScroll","responsiveOptions","showIndicators"],["pTemplate","item"],[1,"col"],[1,"row","col-margin"],[1,"carousel-item"],[4,"ngFor","ngForOf"],[3,"recipe"],[1,"card"]],template:function(r,o){r&1&&R(0,b9,3,6,"div",0)(1,C9,3,6,"div",1),r&2&&(_("ngIf",o.recipes.length<6),b(),_("ngIf",o.recipes.length>=6))},dependencies:[Mx,Rx,Cn,st,Ox,Ki,Vx,Bx],styles:[`@charset "UTF-8";.p-carousel-indicators[_ngcontent-%COMP%]   .p-carousel-indicator[_ngcontent-%COMP%]{border-radius:50%}.card[_ngcontent-%COMP%]{background-color:transparent;border:none}.carousel-inner[_ngcontent-%COMP%]   .carousel-item.active[_ngcontent-%COMP%], .carousel-inner[_ngcontent-%COMP%]   .carousel-item-next[_ngcontent-%COMP%], .carousel-inner[_ngcontent-%COMP%]   .carousel-item-prev[_ngcontent-%COMP%]{display:flex}@media (min-width: 768px){.carousel-inner[_ngcontent-%COMP%]   .carousel-item-end.active[_ngcontent-%COMP%], .carousel-inner[_ngcontent-%COMP%]   .carousel-item-next[_ngcontent-%COMP%]{transform:translate(25%)}.carousel-inner[_ngcontent-%COMP%]   .carousel-item-start.active[_ngcontent-%COMP%], .carousel-inner[_ngcontent-%COMP%]   .carousel-item-prev[_ngcontent-%COMP%]{transform:translate(-25%)}}.carousel-inner[_ngcontent-%COMP%]   .carousel-item-end[_ngcontent-%COMP%], .carousel-inner[_ngcontent-%COMP%]   .carousel-item-start[_ngcontent-%COMP%]{transform:translate(0)}.carousel-item[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin:0 10px}.carousel-item[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]{width:100%}.col-margin[_ngcontent-%COMP%]{margin-bottom:3rem;margin-top:3rem}
+/*# sourceMappingURL=carousel.component-TBO7MSQY.css.map */`]});let e=t;return e})();var ul=(()=>{let t=class t{constructor(n){this.http=n,this.apiUrl=Si.apiUrl+"/api/Recipes"}getRecipes(){return this.http.get(this.apiUrl).pipe(nt(ft))}getRecipeById(n){return this.http.get(`${this.apiUrl}/${n}`).pipe(nt(ft))}createRecipe(n){return this.http.post(this.apiUrl,n).pipe(nt(ft))}updateRecipe(n){return this.http.put(this.apiUrl,n).pipe(nt(ft))}deleteRecipe(n){return this.http.delete(`${this.apiUrl}/${n}`).pipe(nt(ft))}};t.\u0275fac=function(r){return new(r||t)(Ye(ui))},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function w9(e,t){e&1&&(d(0,"div",10)(1,"div",11)(2,"h2",12),C(3,"No hay recetas disponibles"),u()()())}function E9(e,t){if(e&1&&(d(0,"div",10),z(1,"app-carousel",13),u()),e&2){let i=j();b(),_("recipes",i.recipes)}}var qx=(()=>{let t=class t{constructor(n,r){this.recipeService=n,this.router=r,this.recipes=[],this.backUpRecipes=[],this.excludedColumns=[],this.getRecipes()}ngOnInit(){this.getRecipes()}goTo(){this.router.navigate(["/recipes/add"])}handleSearch(n){this.recipes=this.backUpRecipes,this.recipes=S9(this.recipes,this.excludedColumns,n),console.log(this.recipes)}getRecipes(){this.recipeService.getRecipes().subscribe(n=>{this.recipes=n,this.backUpRecipes=n})}};t.\u0275fac=function(r){return new(r||t)(ee(ul),ee(Jt))},t.\u0275cmp=Re({type:t,selectors:[["app-recipes"]],standalone:!0,features:[Ve],decls:16,vars:2,consts:[[1,"container-fluid","d-flex","flex-column","justify-content-center","align-items-center","vh-100"],[1,"col-flex","justify-content-center","align-items-center"],[1,"container","custom-container","justify-content-center"],[1,"row","header-row"],[1,"col"],[1,"view-title"],[3,"search"],[1,"btn","btn-custom",3,"click"],[1,"container","justify-content-center","align-items-center"],["class","row",4,"ngIf"],[1,"row"],[1,"no-recipe-container"],[1,"text-center"],[3,"recipes"]],template:function(r,o){r&1&&(z(0,"app-navbar"),d(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"h1",5),C(7,"Recetario"),u()(),d(8,"div",4)(9,"app-search-bar",6),X("search",function(a){return o.handleSearch(a)}),u()(),d(10,"div",4)(11,"button",7),X("click",function(){return o.goTo()}),C(12,"NUEVA RECETA"),u()()(),d(13,"div",8),R(14,w9,4,0,"div",9)(15,E9,2,1,"div",9),u()()()()),r&2&&(b(14),_("ngIf",o.recipes.length===0),b(),_("ngIf",o.recipes.length>0))},dependencies:[Fn,mo,Ux,rt,st],styles:[`[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/recipes.svg);background-size:cover;background-position:center;background-repeat:no-repeat}.view-title[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;color:#1b5e20;font-size:2.5rem;padding-left:1.5rem}.header-row[_ngcontent-%COMP%]{padding-bottom:20px;align-items:center}.vh-100[_ngcontent-%COMP%]{height:90vh!important}.btn-custom[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1.5rem;color:#1b5e20}.no-recipe-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:40rem;background-color:#1b5e20;color:#fff}.custom-container[_ngcontent-%COMP%]{height:50rem}
+/*# sourceMappingURL=recipes.component-KDK3TIV3.css.map */`]});let e=t;return e})();function S9(e,t,i){if(!i)return e;let n=i.trim().toLowerCase();return e.filter(r=>Object.keys(r).some(o=>{if(t.includes(o))return!1;let s=r[o];return typeof s=="string"?s.toLowerCase().includes(n):!1}))}function I9(e,t){if(e&1&&(d(0,"div",11)(1,"div",15)(2,"div",16)(3,"h3"),C(4),u()(),d(5,"div",8)(6,"span",17),C(7),u()()()()),e&2){let i=t.$implicit,n=j();b(4),yt("",n.translateLabel(i),":"),b(3),on(n.event[i])}}function x9(e,t){if(e&1&&(d(0,"span",17),C(1),u()),e&2){let i=j().$implicit,n=j();b(),Tr("",n.event[i].name," ",n.event[i].surname," (",n.event[i].id,")")}}function D9(e,t){if(e&1&&(d(0,"span",17),C(1),u()),e&2){let i=j().$implicit,n=j();b(),on(n.event[i].name)}}function M9(e,t){if(e&1&&(d(0,"div"),C(1),u()),e&2){let i=j(2).$implicit,n=j();b(),yt("$",n.event[i],"")}}function A9(e,t){if(e&1&&(d(0,"div"),C(1),u()),e&2){let i=j(2).$implicit,n=j();b(),on(n.event[i])}}function T9(e,t){if(e&1&&(d(0,"span",17),R(1,M9,2,1,"div",12)(2,A9,2,1,"div",12),u()),e&2){let i=j().$implicit;b(),_("ngIf",i==="cost"),b(),_("ngIf",i!=="cost")}}function F9(e,t){if(e&1&&(d(0,"div",11)(1,"div",15)(2,"div",16)(3,"h3"),C(4),u()(),d(5,"div",8),R(6,x9,2,3,"span",18)(7,D9,2,1,"span",18)(8,T9,3,2,"span",18),u()()()),e&2){let i=t.$implicit,n=j();b(4),yt("",n.translateLabel(i),":"),b(2),_("ngIf",i==="user"),b(),_("ngIf",i==="saleChannel"),b(),_("ngIf",i!=="user"&&i!=="saleChannel")}}function N9(e,t){if(e&1&&(d(0,"li",11)(1,"span"),C(2),u()()),e&2){let i=t.$implicit;b(2),on(i)}}function P9(e,t){if(e&1&&(d(0,"li",11)(1,"span"),C(2),u()()),e&2){let i=t.$implicit;b(2),on(i)}}function O9(e,t){if(e&1&&(d(0,"div")(1,"div",19)(2,"ul",11),R(3,N9,3,1,"li",9),u(),d(4,"ul",11),R(5,P9,3,1,"li",9),u()()()),e&2){let i=j();b(3),_("ngForOf",i.splitElementsResult.leftColumn),b(2),_("ngForOf",i.splitElementsResult.rightColumn)}}function R9(e,t){if(e&1&&(d(0,"div")(1,"div",8)(2,"span",11),C(3),u()()()),e&2){let i=j();b(3),on(i.event.description)}}var $x=(()=>{let t=class t{constructor(n,r){this.userService=n,this.salesChannelService=r,this.event={},this.closeEventModal=new ot,this.labelTranslation={id:"ID",title:"T\xEDtulo",description:"Descripci\xF3n",envenDate:"Fecha",user:"Usuario",cost:"Monto",saleChannel:"Cliente"},this.userData={},this.isSale=!1,this.elements=[],this.splitElementsResult={leftColumn:[],rightColumn:[]}}ngOnInit(){console.log(this.event.title),this.event.title==="Venta"&&(this.isSale=!0,this.formatDescription(),console.log(this.elements),this.splitElements(),console.log("Left: ",this.splitElementsResult.leftColumn),console.log("Right: ",this.splitElementsResult.rightColumn))}closeModal(){this.closeEventModal.emit()}objectKeys(n){return Object.keys(n).filter(r=>r!=="soldBatches"&&r!=="unitsPrice"&&r!=="quantities"&&r!=="description")}splitKeys(){let n=this.objectKeys(this.event),r=Math.ceil(n.length/2);return{leftColumn:n.slice(0,r),rightColumn:n.slice(r)}}translateLabel(n){return this.labelTranslation[n]||n}splitElements(){let n=Math.ceil(this.elements.length/2);this.splitElementsResult={leftColumn:this.elements.slice(0,n),rightColumn:this.elements.slice(n)}}formatDescription(){this.elements=this.event.description.split(",")}};t.\u0275fac=function(r){return new(r||t)(ee(er),ee(cl))},t.\u0275cmp=Re({type:t,selectors:[["app-event"]],inputs:{event:"event"},outputs:{closeEventModal:"closeEventModal"},standalone:!0,features:[Ve],decls:22,vars:4,consts:[["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content","modal-content-main"],[1,"modal-header","d-flex","justify-content-center","align-items-center"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[1,"row"],[1,"col"],["class","p-2",4,"ngFor","ngForOf"],[1,"custom-container"],[1,"p-2"],[4,"ngIf"],[1,"modal-footer","justify-content-center"],["type","button",1,"btn","btn-custom",3,"click"],[1,"row","row-custom"],[1,"col-3"],[1,"data"],["class","data",4,"ngIf"],[1,"col","p-2"]],template:function(r,o){r&1&&(d(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h5",4),C(5,"Detalles Evento"),u(),d(6,"button",5),X("click",function(){return o.closeModal()}),u()(),d(7,"div",6)(8,"div",7)(9,"div",8),R(10,I9,8,2,"div",9),u(),d(11,"div",8),R(12,F9,9,4,"div",9),u(),d(13,"div",7)(14,"div",10)(15,"h3",11),C(16,"Descripci\xF3n:"),u(),R(17,O9,6,2,"div",12)(18,R9,4,1,"div",12),u()(),d(19,"div",13)(20,"button",14),X("click",function(){return o.closeModal()}),C(21," CERRAR "),u()()()()()()()),r&2&&(b(10),_("ngForOf",o.splitKeys().leftColumn),b(2),_("ngForOf",o.splitKeys().rightColumn),b(5),_("ngIf",o.isSale),b(),_("ngIf",!o.isSale))},dependencies:[rt,Cn,st],styles:[`.modal[_ngcontent-%COMP%]{background-color:#ffffff80}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content-main[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:346px}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.modal-content-main[_ngcontent-%COMP%]{font-size:1.25rem}.modal-header[_ngcontent-%COMP%]   .modal-title[_ngcontent-%COMP%]{font-size:1.5rem}.modal-body[_ngcontent-%COMP%]   .fs-5[_ngcontent-%COMP%], .btn-custom[_ngcontent-%COMP%]{font-size:1.25rem}.data[_ngcontent-%COMP%]{font-size:1.75rem}.row-custom[_ngcontent-%COMP%]{align-items:center}.modal-title[_ngcontent-%COMP%]{font-size:3rem}.custom-container[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}
+/*# sourceMappingURL=event.component-Z53E66WD.css.map */`]});let e=t;return e})();function L9(e,t){if(e&1){let i=je();d(0,"app-event",9),X("closeEventModal",function(){fe(i);let r=j();return he(r.closeEventModal())}),u()}if(e&2){let i=j();_("event",i.selectedEvent)}}var Hx=(()=>{let t=class t{constructor(n){this.eventsService=n,this.selectedEvent={},this.openEventModal=!1,this.movements=[],this.excludeColumns=["user","description","soldBatches","quantities","unitsPrice","saleChannel","cost"]}ngOnInit(){this.getMovements()}onRowClicked(n){this.selectedEvent=n,this.openEventModal=!0}closeEventModal(){this.openEventModal=!1}getMovements(){this.eventsService.getEvents().subscribe(n=>{this.movements=n})}};t.\u0275fac=function(r){return new(r||t)(ee(Fg))},t.\u0275cmp=Re({type:t,selectors:[["app-history"]],standalone:!0,features:[Ve],decls:12,vars:3,consts:[[1,"container-fluid","d-flex","flex-column","justify-content-center","align-items-center","vh-100"],[1,"col-flex","justify-content-center","align-items-center"],[1,"row","header-row"],[1,"col"],[1,"view-title"],[1,"col","d-flex","justify-content-end"],[1,"btn","btn-custom"],[3,"rowClicked","data","columnsExcluded"],[3,"event","closeEventModal",4,"ngIf"],[3,"closeEventModal","event"]],template:function(r,o){r&1&&(z(0,"app-navbar"),d(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"h1",4),C(6,"ULTIMOS MOVIMIENTOS"),u()(),d(7,"div",5)(8,"button",6),C(9,"BUSQUEDA AVANZADA"),u()()(),d(10,"app-table",7),X("rowClicked",function(a){return o.onRowClicked(a)}),u()()(),R(11,L9,1,1,"app-event",8)),r&2&&(b(10),_("data",o.movements)("columnsExcluded",o.excludeColumns),b(),_("ngIf",o.openEventModal))},dependencies:[Fn,ho,$x,rt,st],styles:[`[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/history.svg);background-size:cover;background-position:center;background-repeat:no-repeat}.view-title[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;color:#1b5e20;font-size:2.5rem;padding-left:1.5rem}.header-row[_ngcontent-%COMP%]{padding-bottom:20px}.vh-100[_ngcontent-%COMP%]{height:90vh!important}.btn-custom[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1.5rem;color:#1b5e20}
+/*# sourceMappingURL=history.component-WLYWGTXD.css.map */`]});let e=t;return e})();var dl=e=>({"is-invalid":e});function k9(e,t){e&1&&(d(0,"div"),C(1,"Email es requerido."),u())}function j9(e,t){e&1&&(d(0,"div"),C(1," Formato de email inv\xE1lido."),u())}function V9(e,t){if(e&1&&(d(0,"div",38),R(1,k9,2,0,"div",39)(2,j9,2,0,"div",39),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.userForm.get("email"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.userForm.get("email"))==null||n.errors==null)&&n.errors.required)&&(((n=r.userForm.get("email"))==null||n.errors==null?null:n.errors.email)||((n=r.userForm.get("email"))==null||n.errors==null?null:n.errors.invalidEmail)))}}function B9(e,t){e&1&&(d(0,"div"),C(1,"Nombre es requerido."),u())}function U9(e,t){e&1&&(d(0,"div"),C(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos."),u())}function q9(e,t){if(e&1&&(d(0,"div",38),R(1,B9,2,0,"div",39)(2,U9,2,0,"div",39),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.userForm.get("name"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.userForm.get("name"))==null||n.errors==null)&&n.errors.required)&&((n=r.userForm.get("name"))==null||n.errors==null?null:n.errors.pattern))}}function $9(e,t){e&1&&(d(0,"div"),C(1,"Apellido es requerido."),u())}function H9(e,t){e&1&&(d(0,"div"),C(1," El apellido no debe contener n\xFAmeros ni s\xEDmbolos."),u())}function z9(e,t){if(e&1&&(d(0,"div",38),R(1,$9,2,0,"div",39)(2,H9,2,0,"div",39),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.userForm.get("surname"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.userForm.get("surname"))==null||n.errors==null)&&n.errors.required)&&((n=r.userForm.get("surname"))==null||n.errors==null?null:n.errors.pattern))}}function G9(e,t){e&1&&(d(0,"div"),C(1,"Tel\xE9fono es requerido."),u())}function W9(e,t){e&1&&(d(0,"div"),C(1,"Formato de tel\xE9fono inv\xE1lido."),u())}function Y9(e,t){if(e&1&&(d(0,"div",38),R(1,G9,2,0,"div",39)(2,W9,2,0,"div",39),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.userForm.get("phone"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.userForm.get("phone"))==null||n.errors==null)&&n.errors.required)&&((n=r.userForm.get("phone"))==null||n.errors==null?null:n.errors.invalidPhone))}}function K9(e,t){e&1&&(d(0,"div",38),C(1," Contrase\xF1a es requerida. "),u())}function Q9(e,t){e&1&&(d(0,"div",38),C(1," Confirmar Contrase\xF1a es requerida. "),u())}function Z9(e,t){e&1&&(d(0,"div",38),C(1," Las contrase\xF1as no coinciden. "),u())}function J9(e,t){e&1&&(d(0,"div",38),C(1," Rol es requerido. "),u())}var zx=(()=>{let t=class t{constructor(n,r){this.userService=n,this.formBuilder=r,this.closeModalEvent=new ot,this.confirmPassword="",this.fatalError=!1,this.fatalErrorMessage="Hubo un error al intentar crear el usuario. Por favor, intente nuevamente.",this.userForm=this.formBuilder.group({email:["",[se.required,Nr]],name:["",[se.required,se.pattern("^[a-zA-Z\xC0-\xFF'\\- ]+$")]],surname:["",[se.required,se.pattern("^[a-zA-Z\xC0-\xFF'\\- ]+$")]],phone:["",[se.required,Pr]],password:["",se.required],confirmPassword:["",se.required],role:["",se.required]},{validator:$u()})}closeModal(){this.closeModalEvent.emit()}onSubmit(){if(this.userForm.valid){this.fatalError=!1;let n={name:this.userForm.get("name")?.value,surname:this.userForm.get("surname")?.value,email:this.userForm.get("email")?.value,phone:this.userForm.get("phone")?.value,password:this.userForm.get("password")?.value||"",role:this.userForm.get("role")?.value};this.userService.createUser(n).subscribe(()=>{this.closeModalEvent.emit()})}else this.fatalError=!0}};t.\u0275fac=function(r){return new(r||t)(ee(er),ee(ln))},t.\u0275cmp=Re({type:t,selectors:[["app-add-user"]],outputs:{closeModalEvent:"closeModalEvent"},standalone:!0,features:[Ve],decls:85,vars:33,consts:[["aux","ngForm"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[3,"ngSubmit","formGroup"],[1,"modal-body"],[1,"row"],[1,"col"],[1,"form-group","row-container"],[1,"row","align-items-center"],[1,"col-2"],["for","email"],["type","email","id","email","name","email","formControlName","email",1,"form-control",3,"ngClass"],[1,"error-container"],["class","text-danger",4,"ngIf"],["for","name"],["type","text","id","name","name","name","formControlName","name",1,"form-control",3,"ngClass"],["for","surname"],["type","text","id","surname","name","surname","formControlName","surname",1,"form-control",3,"ngClass"],["for","phone"],["type","number","id","phone","name","phone","formControlName","phone",1,"form-control",3,"ngClass"],[1,"col-5"],["for","password"],["type","password","id","password","name","password","formControlName","password",1,"form-control",3,"ngClass"],["for","confirmPassword"],["type","password","id","confirmPassword","formControlName","confirmPassword",1,"form-control",3,"ngClass"],["for","role"],[1,"d-flex","flex-column","align-items-center"],[1,"form-check"],["type","radio","id","roleAdmin","name","role","value","Admin","formControlName","role",1,"form-check-input",3,"ngClass"],["for","roleAdmin",1,"form-check-label"],["type","radio","id","roleUser","name","role","value","User","formControlName","role",1,"form-check-input",3,"ngClass"],["for","roleUser",1,"form-check-label"],[1,"modal-footer","justify-content-center"],["type","submit",1,"btn","btn-custom"],[1,"text-danger"],[4,"ngIf"]],template:function(r,o){if(r&1){let s=je();d(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),C(5,"Agregar Usuario"),u(),d(6,"button",6),X("click",function(){return fe(s),he(o.closeModal())}),u()(),d(7,"form",7,0),X("ngSubmit",function(){return fe(s),he(o.onSubmit())}),d(9,"div",8)(10,"div",9)(11,"div",10)(12,"div",11)(13,"div",12)(14,"div",13)(15,"label",14),C(16,"Email"),u()(),d(17,"div",10),z(18,"input",15),u(),d(19,"div",16),R(20,V9,3,2,"div",17),u()()(),d(21,"div",11)(22,"div",12)(23,"div",13)(24,"label",18),C(25,"Nombre"),u()(),d(26,"div",10),z(27,"input",19),u(),d(28,"div",16),R(29,q9,3,2,"div",17),u()()(),d(30,"div",11)(31,"div",12)(32,"div",13)(33,"label",20),C(34,"Apellido"),u()(),d(35,"div",10),z(36,"input",21),u(),d(37,"div",16),R(38,z9,3,2,"div",17),u()()(),d(39,"div",11)(40,"div",12)(41,"div",13)(42,"label",22),C(43,"Tel\xE9fono"),u()(),d(44,"div",10),z(45,"input",23),u(),d(46,"div",16),R(47,Y9,3,2,"div",17),u()()()(),d(48,"div",10)(49,"div",11)(50,"div",12)(51,"div",24)(52,"label",25),C(53,"Contrase\xF1a"),u()(),d(54,"div",10),z(55,"input",26),u(),d(56,"div",16),R(57,K9,2,0,"div",17),u()()(),d(58,"div",11)(59,"div",12)(60,"div",24)(61,"label",27),C(62,"Confirmar Contrase\xF1a"),u()(),d(63,"div",10),z(64,"input",28),u(),d(65,"div",16),R(66,Q9,2,0,"div",17)(67,Z9,2,0,"div",17),u()()(),d(68,"div",11)(69,"label",29),C(70,"Rol:"),u(),d(71,"div",30)(72,"div",31),z(73,"input",32),d(74,"label",33),C(75,"Admin"),u()(),d(76,"div",31),z(77,"input",34),d(78,"label",35),C(79,"User"),u()()(),d(80,"div",16),R(81,J9,2,0,"div",17),u()()()()(),d(82,"div",36)(83,"button",37),C(84,"GUARDAR"),u()()()()()()}if(r&2){let s,a,l,p,h,v,w,g,S,I,A,x,P,U,q,Q,J=vt(8);b(7),_("formGroup",o.userForm),b(11),_("ngClass",ye(17,dl,(((s=o.userForm.get("email"))==null?null:s.dirty)||((s=o.userForm.get("email"))==null?null:s.touched)||J.submitted)&&((s=o.userForm.get("email"))==null?null:s.invalid))),b(2),_("ngIf",J.submitted||((a=o.userForm.get("email"))==null?null:a.invalid)&&(((a=o.userForm.get("email"))==null?null:a.dirty)||((a=o.userForm.get("email"))==null?null:a.touched))),b(7),_("ngClass",ye(19,dl,(((l=o.userForm.get("name"))==null?null:l.dirty)||((l=o.userForm.get("name"))==null?null:l.touched)||J.submitted)&&((l=o.userForm.get("name"))==null?null:l.invalid))),b(2),_("ngIf",J.submitted||((p=o.userForm.get("name"))==null?null:p.invalid)&&(((p=o.userForm.get("name"))==null?null:p.dirty)||((p=o.userForm.get("name"))==null?null:p.touched))),b(7),_("ngClass",ye(21,dl,(((h=o.userForm.get("surname"))==null?null:h.dirty)||((h=o.userForm.get("surname"))==null?null:h.touched)||J.submitted)&&((h=o.userForm.get("surname"))==null?null:h.invalid))),b(2),_("ngIf",J.submitted||((v=o.userForm.get("surname"))==null?null:v.invalid)&&(((v=o.userForm.get("surname"))==null?null:v.dirty)||((v=o.userForm.get("surname"))==null?null:v.touched))),b(7),_("ngClass",ye(23,dl,(((w=o.userForm.get("phone"))==null?null:w.dirty)||((w=o.userForm.get("phone"))==null?null:w.touched)||J.submitted)&&((w=o.userForm.get("phone"))==null?null:w.invalid))),b(2),_("ngIf",((g=o.userForm.get("phone"))==null?null:g.invalid)&&(((g=o.userForm.get("phone"))==null?null:g.dirty)||((g=o.userForm.get("phone"))==null?null:g.touched))||J.submitted&&((g=o.userForm.get("phone"))==null?null:g.invalid)),b(8),_("ngClass",ye(25,dl,(((S=o.userForm.get("password"))==null?null:S.dirty)||((S=o.userForm.get("password"))==null?null:S.touched)||J.submitted)&&((S=o.userForm.get("password"))==null?null:S.invalid))),b(2),_("ngIf",((I=o.userForm.get("password"))==null?null:I.invalid)&&(((I=o.userForm.get("password"))==null?null:I.dirty)||((I=o.userForm.get("password"))==null?null:I.touched))||J.submitted&&((I=o.userForm.get("password"))==null?null:I.invalid)),b(7),_("ngClass",ye(27,dl,(((A=o.userForm.get("confirmPassword"))==null?null:A.dirty)||((A=o.userForm.get("confirmPassword"))==null?null:A.touched)||J.submitted)&&((A=o.userForm.get("confirmPassword"))==null?null:A.invalid))),b(2),_("ngIf",((x=o.userForm.get("confirmPassword"))==null?null:x.invalid)&&(((x=o.userForm.get("confirmPassword"))==null?null:x.dirty)||((x=o.userForm.get("confirmPassword"))==null?null:x.touched))||J.submitted&&((x=o.userForm.get("confirmPassword"))==null?null:x.invalid)),b(),_("ngIf",o.userForm.hasError("passwordMismatch")&&(((P=o.userForm.get("confirmPassword"))==null?null:P.dirty)||((P=o.userForm.get("confirmPassword"))==null?null:P.touched))),b(6),_("ngClass",ye(29,dl,(((U=o.userForm.get("role"))==null?null:U.dirty)||((U=o.userForm.get("role"))==null?null:U.touched)||J.submitted)&&((U=o.userForm.get("role"))==null?null:U.invalid))),b(4),_("ngClass",ye(31,dl,(((q=o.userForm.get("role"))==null?null:q.dirty)||((q=o.userForm.get("role"))==null?null:q.touched)||J.submitted)&&((q=o.userForm.get("role"))==null?null:q.invalid))),b(4),_("ngIf",((Q=o.userForm.get("role"))==null?null:Q.invalid)&&(((Q=o.userForm.get("role"))==null?null:Q.dirty)||((Q=o.userForm.get("role"))==null?null:Q.touched))||J.submitted&&((Q=o.userForm.get("role"))==null?null:Q.invalid))}},dependencies:[$t,an,Yt,Hn,rc,Xt,sn,en,nn,rt,kt,st],styles:[`@charset "UTF-8";.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:496px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.row-container[_ngcontent-%COMP%]{position:relative;min-height:5em}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.form-group[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]{margin-bottom:10px}.modal-footer[_ngcontent-%COMP%]{border-top:none}.form-control[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important;font-size:1.2rem}
+/*# sourceMappingURL=add-user.component-OBSJFVN6.css.map */`]});let e=t;return e})();var pl=e=>({"is-invalid":e});function X9(e,t){e&1&&(d(0,"div"),C(1," Email es requerido. "),u())}function ej(e,t){e&1&&(d(0,"div"),C(1," Formato de email inv\xE1lido. "),u())}function tj(e,t){if(e&1&&(d(0,"div",47),R(1,X9,2,0,"div",35)(2,ej,2,0,"div",35),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.userForm.get("email"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.userForm.get("email"))==null||n.errors==null)&&n.errors.required)&&(((n=r.userForm.get("email"))==null||n.errors==null?null:n.errors.email)||((n=r.userForm.get("email"))==null||n.errors==null?null:n.errors.invalidEmail)))}}function nj(e,t){e&1&&(d(0,"div"),C(1," Nombre es requerido. "),u())}function ij(e,t){e&1&&(d(0,"div"),C(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),u())}function rj(e,t){if(e&1&&(d(0,"div",47),R(1,nj,2,0,"div",35)(2,ij,2,0,"div",35),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.userForm.get("name"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.userForm.get("name"))==null||n.errors==null)&&n.errors.required)&&((n=r.userForm.get("name"))==null||n.errors==null?null:n.errors.pattern))}}function oj(e,t){e&1&&(d(0,"div"),C(1," Apellido es requerido. "),u())}function sj(e,t){e&1&&(d(0,"div"),C(1," El apellido no debe contener n\xFAmeros ni s\xEDmbolos. "),u())}function aj(e,t){if(e&1&&(d(0,"div",47),R(1,oj,2,0,"div",35)(2,sj,2,0,"div",35),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.userForm.get("surname"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.userForm.get("surname"))==null||n.errors==null)&&n.errors.required)&&((n=r.userForm.get("surname"))==null||n.errors==null?null:n.errors.pattern))}}function lj(e,t){e&1&&(d(0,"div"),C(1," Tel\xE9fono es requerido. "),u())}function cj(e,t){e&1&&(d(0,"div"),C(1," Formato de tel\xE9fono inv\xE1lido. "),u())}function uj(e,t){if(e&1&&(d(0,"div",47),R(1,lj,2,0,"div",35)(2,cj,2,0,"div",35),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.userForm.get("phone"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",(n=r.userForm.get("phone"))==null||n.errors==null?null:n.errors.invalidPhone)}}function dj(e,t){e&1&&(d(0,"div",47),C(1," Ingrese una contrase\xF1a v\xE1lida. "),u())}function pj(e,t){e&1&&(d(0,"div",47),C(1," Confirmar Contrase\xF1a es requerida. "),u())}function fj(e,t){e&1&&(d(0,"div",47),C(1," Las contrase\xF1as no coinciden. "),u())}function hj(e,t){if(e&1&&(d(0,"div"),R(1,pj,2,0,"div",23)(2,fj,2,0,"div",23),u()),e&2){let i,n,r=j(),o=vt(16);b(),_("ngIf",!((i=r.userForm.get("confirmPassword"))!=null&&i.value)&&(o.submitted||((i=r.userForm.get("confirmPassword"))==null?null:i.dirty)&&((i=r.userForm.get("confirmPassword"))==null?null:i.touched))),b(),_("ngIf",((n=r.userForm.get("confirmPassword"))==null?null:n.value)&&r.userForm.hasError("passwordMismatch")&&(o.submitted||((n=r.userForm.get("confirmPassword"))==null?null:n.dirty)||((n=r.userForm.get("confirmPassword"))==null?null:n.touched)))}}function mj(e,t){e&1&&(d(0,"div",47),C(1," Rol es requerido. "),u())}function gj(e,t){if(e&1){let i=je();d(0,"button",48),X("click",function(){fe(i);let r=j();return he(r.confirmDelete())}),C(1,"Eliminar"),u()}}function vj(e,t){if(e&1){let i=je();d(0,"app-delete-modal",49),X("cancel",function(){fe(i);let r=j();return he(r.closeDeleteModal())})("confirm",function(){fe(i);let r=j();return he(r.deleteUser())}),u()}e&2&&_("headerMessage","Eliminar Usuario")("bodyMessage","\xBFEst\xE1s seguro que deseas borrar este Usuario?")}var Gx=(()=>{let t=class t{constructor(n,r,o){this.UsersService=n,this.fb=r,this.AuthService=o,this.userInput={},this.closeUserModalEvent=new ot,this.isToggled=!1,this.confirmDeleteModal=!1,this.userForm=this.fb.group({email:[{value:"",disabled:!this.isToggled},[se.required,Nr]],name:[{value:"",disabled:!this.isToggled},[se.required,se.pattern("^[a-zA-Z\xC0-\xFF'\\- ]+$")]],surname:[{value:"",disabled:!this.isToggled},[se.required,se.pattern("^[a-zA-Z\xC0-\xFF'\\- ]+$")]],phone:[{value:"",disabled:!this.isToggled},[se.required,Pr]],password:[{value:"",disabled:!this.isToggled}],confirmPassword:[{value:"",disabled:!this.isToggled}],role:[{value:"",disabled:!this.isToggled},se.required]},{validator:$u()})}ngOnInit(){this.myId=this.AuthService.getUserId()}ngOnChanges(n){if(n.userInput&&n.userInput.currentValue){let r=this.transformUserInput(this.userInput);this.userForm.patchValue(r),this.userForm.get("role")?.setValue(r.role)}}toggleEditMode(){this.isToggled=!this.isToggled,this.isToggled?this.userForm.enable():this.userForm.disable()}closeModal(){this.closeUserModalEvent.emit()}onSubmit(){if(this.userForm.valid){let n={id:this.userInput.id,name:this.userForm.get("name")?.value,surname:this.userForm.get("surname")?.value,email:this.userForm.get("email")?.value,phone:this.userForm.get("phone")?.value,role:this.userForm.get("role")?.value,password:this.userForm.get("password")?.value||this.userInput.password};this.UsersService.updateUser(n).subscribe(()=>{this.closeUserModalEvent.emit()})}else this.userForm.markAllAsTouched()}confirmDelete(){this.confirmDeleteModal=!0}closeDeleteModal(){this.confirmDeleteModal=!1}deleteUser(){this.UsersService.deleteUser(this.userInput.id).subscribe(n=>{this.confirmDeleteModal=!1,this.closeUserModalEvent.emit()},n=>{console.error("Error al eliminar el usuario:",n)})}isMe(){return this.userInput.id===this.myId}transformUserInput(n){return{id:n.id,name:n.name??"",surname:n.surname??"",email:n.email??"",phone:n.phone??"",password:"",role:n.role??""}}};t.\u0275fac=function(r){return new(r||t)(ee(er),ee(ln),ee(qi))},t.\u0275cmp=Re({type:t,selectors:[["app-user"]],inputs:{userInput:"userInput"},outputs:{closeUserModalEvent:"closeUserModalEvent"},standalone:!0,features:[qn,Ve],decls:94,vars:34,consts:[["aux","ngForm"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content","modal-content-main"],[1,"modal-header","d-flex","justify-content-center","align-items-center"],[1,"row","w-100"],[1,"col"],[1,"modal-title"],[1,"col","d-flex","justify-content-center"],[1,"form-check","form-switch"],["for","flexSwitchCheckDefault",1,"form-check-label"],["type","checkbox","id","flexSwitchCheckDefault",1,"form-check-input","custom-switch",3,"change"],[1,"col","d-flex","justify-content-end"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[3,"ngSubmit","formGroup"],[1,"modal-body"],[1,"row"],[1,"form-group","row-container"],[1,"row","align-items-center"],[1,"col-2"],["for","email"],["type","email","id","email","name","email","formControlName","email",1,"form-control",3,"ngClass"],[1,"error-container"],["class","text-danger",4,"ngIf"],["for","name"],["type","text","id","name","name","name","formControlName","name",1,"form-control",3,"ngClass"],["for","surname"],["type","text","id","surname","name","surname","formControlName","surname",1,"form-control",3,"ngClass"],["for","phone"],["type","text","id","phone","name","phone","formControlName","phone",1,"form-control",3,"ngClass"],[1,"col-5"],["for","password"],["type","password","id","password","name","password","formControlName","password",1,"form-control",3,"ngClass"],["for","confirmPassword"],["type","password","id","confirmPassword","formControlName","confirmPassword",1,"form-control",3,"ngClass"],[4,"ngIf"],["for","role"],[1,"d-flex","flex-column","align-items-center"],[1,"form-check"],["type","radio","id","roleAdmin","name","role","value","Admin","formControlName","role",1,"form-check-input",3,"ngClass"],["for","roleAdmin",1,"form-check-label"],["type","radio","id","roleUser","name","role","value","User","formControlName","role",1,"form-check-input",3,"ngClass"],["for","roleUser",1,"form-check-label"],[1,"modal-footer","justify-content-center"],["type","submit",1,"btn","btn-custom"],["type","button","class","btn btn-danger",3,"click",4,"ngIf"],[3,"headerMessage","bodyMessage","cancel","confirm",4,"ngIf"],[1,"text-danger"],["type","button",1,"btn","btn-danger",3,"click"],[3,"cancel","confirm","headerMessage","bodyMessage"]],template:function(r,o){if(r&1){let s=je();d(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"h5",7),C(7,"Detalles Usuario"),u()(),d(8,"div",8)(9,"div",9)(10,"label",10),C(11,"Editar"),u(),d(12,"input",11),X("change",function(){return fe(s),he(o.toggleEditMode())}),u()()(),d(13,"div",12)(14,"button",13),X("click",function(){return fe(s),he(o.closeModal())}),u()()()(),d(15,"form",14,0),X("ngSubmit",function(){return fe(s),he(o.onSubmit())}),d(17,"div",15)(18,"div",16)(19,"div",6)(20,"div",17)(21,"div",18)(22,"div",19)(23,"label",20),C(24,"Email"),u()(),d(25,"div",6),z(26,"input",21),u(),d(27,"div",22),R(28,tj,3,2,"div",23),u()()(),d(29,"div",17)(30,"div",18)(31,"div",19)(32,"label",24),C(33,"Nombre"),u()(),d(34,"div",6),z(35,"input",25),u(),d(36,"div",22),R(37,rj,3,2,"div",23),u()()(),d(38,"div",17)(39,"div",18)(40,"div",19)(41,"label",26),C(42,"Apellido"),u()(),d(43,"div",6),z(44,"input",27),u(),d(45,"div",22),R(46,aj,3,2,"div",23),u()()(),d(47,"div",17)(48,"div",18)(49,"div",19)(50,"label",28),C(51,"Tel\xE9fono"),u()(),d(52,"div",6),z(53,"input",29),u(),d(54,"div",22),R(55,uj,3,2,"div",23),u()()()(),d(56,"div",6)(57,"div",17)(58,"div",18)(59,"div",30)(60,"label",31),C(61,"Contrase\xF1a"),u()(),d(62,"div",6),z(63,"input",32),u(),d(64,"div",22),R(65,dj,2,0,"div",23),u()()(),d(66,"div",17)(67,"div",18)(68,"div",30)(69,"label",33),C(70,"Confirmar Contrase\xF1a"),u()(),d(71,"div",6),z(72,"input",34),u(),d(73,"div",22),R(74,hj,3,2,"div",35),u()()(),d(75,"div",17)(76,"label",36),C(77,"Rol:"),u(),d(78,"div",37)(79,"div",38),z(80,"input",39),d(81,"label",40),C(82,"Admin"),u()(),d(83,"div",38),z(84,"input",41),d(85,"label",42),C(86,"User"),u()()(),d(87,"div",22),R(88,mj,2,0,"div",23),u()()()()(),d(89,"div",43)(90,"button",44),C(91,"GUARDAR"),u(),R(92,gj,2,0,"button",45),u()()()()(),R(93,vj,1,2,"app-delete-modal",46)}if(r&2){let s,a,l,p,h,v,w,g,S,I,A,x,P,U,q,Q=vt(16);b(15),_("formGroup",o.userForm),b(11),_("ngClass",ye(18,pl,(((s=o.userForm.get("email"))==null?null:s.dirty)||((s=o.userForm.get("email"))==null?null:s.touched)||Q.submitted)&&((s=o.userForm.get("email"))==null?null:s.invalid))),b(2),_("ngIf",Q.submitted||((a=o.userForm.get("email"))==null?null:a.invalid)&&(((a=o.userForm.get("email"))==null?null:a.dirty)||((a=o.userForm.get("email"))==null?null:a.touched))),b(7),_("ngClass",ye(20,pl,(((l=o.userForm.get("name"))==null?null:l.dirty)||((l=o.userForm.get("name"))==null?null:l.touched)||Q.submitted)&&((l=o.userForm.get("name"))==null?null:l.invalid))),b(2),_("ngIf",Q.submitted||((p=o.userForm.get("name"))==null?null:p.invalid)&&(((p=o.userForm.get("name"))==null?null:p.dirty)||((p=o.userForm.get("name"))==null?null:p.touched))),b(7),_("ngClass",ye(22,pl,(((h=o.userForm.get("surname"))==null?null:h.dirty)||((h=o.userForm.get("surname"))==null?null:h.touched)||Q.submitted)&&((h=o.userForm.get("surname"))==null?null:h.invalid))),b(2),_("ngIf",Q.submitted||((v=o.userForm.get("surname"))==null?null:v.invalid)&&(((v=o.userForm.get("surname"))==null?null:v.dirty)||((v=o.userForm.get("surname"))==null?null:v.touched))),b(7),_("ngClass",ye(24,pl,(((w=o.userForm.get("phone"))==null?null:w.dirty)||((w=o.userForm.get("phone"))==null?null:w.touched)||Q.submitted)&&((w=o.userForm.get("phone"))==null?null:w.invalid))),b(2),_("ngIf",((g=o.userForm.get("phone"))==null?null:g.invalid)&&(((g=o.userForm.get("phone"))==null?null:g.dirty)||((g=o.userForm.get("phone"))==null?null:g.touched))||Q.submitted&&((g=o.userForm.get("phone"))==null?null:g.invalid)),b(8),_("ngClass",ye(26,pl,(((S=o.userForm.get("password"))==null?null:S.dirty)||((S=o.userForm.get("password"))==null?null:S.touched)||Q.submitted)&&((S=o.userForm.get("password"))==null?null:S.invalid))),b(2),_("ngIf",((I=o.userForm.get("password"))==null?null:I.value)&&((I=o.userForm.get("password"))==null?null:I.invalid)&&(((I=o.userForm.get("password"))==null?null:I.dirty)||((I=o.userForm.get("password"))==null?null:I.touched)||Q.submitted)),b(7),_("ngClass",ye(28,pl,(((A=o.userForm.get("confirmPassword"))==null?null:A.dirty)||((A=o.userForm.get("confirmPassword"))==null?null:A.touched)||Q.submitted)&&((A=o.userForm.get("confirmPassword"))==null?null:A.invalid))),b(2),_("ngIf",(x=o.userForm.get("password"))==null?null:x.value),b(6),_("ngClass",ye(30,pl,(((P=o.userForm.get("role"))==null?null:P.dirty)||((P=o.userForm.get("role"))==null?null:P.touched)||Q.submitted)&&((P=o.userForm.get("role"))==null?null:P.invalid))),b(4),_("ngClass",ye(32,pl,(((U=o.userForm.get("role"))==null?null:U.dirty)||((U=o.userForm.get("role"))==null?null:U.touched)||Q.submitted)&&((U=o.userForm.get("role"))==null?null:U.invalid))),b(4),_("ngIf",((q=o.userForm.get("role"))==null?null:q.invalid)&&(((q=o.userForm.get("role"))==null?null:q.dirty)||((q=o.userForm.get("role"))==null?null:q.touched))||Q.submitted&&((q=o.userForm.get("role"))==null?null:q.invalid)),b(4),_("ngIf",!o.isMe()),b(),_("ngIf",o.confirmDeleteModal)}},dependencies:[$t,an,Yt,rc,Xt,sn,en,nn,rt,kt,st,Vu,go],styles:[`@charset "UTF-8";.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content-main[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:496px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.row-container[_ngcontent-%COMP%]{position:relative;min-height:5em}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.form-group[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]{margin-bottom:10px}.modal-footer[_ngcontent-%COMP%]{border-top:none}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.custom-switch[_ngcontent-%COMP%]:focus{border-color:#1b5e20;box-shadow:0 0 0 .25rem #1b5e2040}.custom-switch[_ngcontent-%COMP%]:checked{background-color:#88ca5e;border-color:#1b5e20}.custom-switch[_ngcontent-%COMP%]:checked:before{background-color:#fff}.form-control[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important;font-size:1.2rem}
+/*# sourceMappingURL=user.component-3POYJCJF.css.map */`]});let e=t;return e})();function yj(e,t){if(e&1){let i=je();d(0,"app-add-user",11),X("closeModalEvent",function(){fe(i);let r=j();return he(r.closeAddUserModal())}),u()}}function bj(e,t){if(e&1){let i=je();d(0,"app-user",12),X("closeUserModalEvent",function(){fe(i);let r=j();return he(r.closeUserModal())}),u()}if(e&2){let i=j();_("userInput",i.selectedUser)}}var Wx=(()=>{let t=class t{constructor(n){this.UsersService=n,this.columnsExcluded=["transactions","password"],this.backUpUsers=[],this.users=[],this.addUserModal=!1,this.openUserModal=!1}ngOnInit(){this.getUsers()}openAddUserModal(){this.addUserModal=!0}closeAddUserModal(){this.getUsers(),this.addUserModal=!1}onRowClicked(n){this.selectedUser=n,this.openUserModal=!0}closeUserModal(){this.getUsers(),this.openUserModal=!1}handleSearch(n){this.users=this.backUpUsers,this.users=Ms(this.users,this.columnsExcluded,n)}getUsers(){this.UsersService.getUsers().subscribe(n=>{this.backUpUsers=n,this.users=n})}};t.\u0275fac=function(r){return new(r||t)(ee(er))},t.\u0275cmp=Re({type:t,selectors:[["app-users"]],standalone:!0,features:[Ve],decls:15,vars:4,consts:[[1,"container-fluid","d-flex","flex-column","justify-content-center","align-items-center","vh-100"],[1,"col-flex","justify-content-center","align-items-center"],[1,"row","header-row"],[1,"col"],[1,"view-title"],[3,"search"],[1,"col","d-flex","justify-content-center"],["type","button",1,"btn","btn-custom",3,"click"],[3,"rowClicked","data","columnsExcluded"],[3,"closeModalEvent",4,"ngIf"],[3,"userInput","closeUserModalEvent",4,"ngIf"],[3,"closeModalEvent"],[3,"closeUserModalEvent","userInput"]],template:function(r,o){r&1&&(z(0,"app-navbar"),d(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"h1",4),C(6,"Usuarios"),u()(),d(7,"div",3)(8,"app-search-bar",5),X("search",function(a){return o.handleSearch(a)}),u()(),d(9,"div",6)(10,"a",7),X("click",function(){return o.openAddUserModal()}),C(11,"AGREGAR USUARIO"),u()()(),d(12,"app-table",8),X("rowClicked",function(a){return o.onRowClicked(a)}),u()()(),R(13,yj,1,0,"app-add-user",9)(14,bj,1,1,"app-user",10)),r&2&&(b(12),_("data",o.users)("columnsExcluded",o.columnsExcluded),b(),_("ngIf",o.addUserModal),b(),_("ngIf",o.openUserModal))},dependencies:[Fn,ho,mo,zx,rt,st,Gx],styles:[`[_nghost-%COMP%]{display:block;width:100%;min-height:100vh;background-image:url(/assets/views/users.svg);background-size:cover;background-position:center;background-repeat:no-repeat;overflow:hidden}.view-title[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;color:#1b5e20;font-size:2.5rem;padding-left:1.5rem}.header-row[_ngcontent-%COMP%]{padding-bottom:20px;align-items:center}.vh-100[_ngcontent-%COMP%]{height:90vh!important}.btn-custom[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1.5rem;color:#1b5e20}
+/*# sourceMappingURL=users.component-4OF4JQGF.css.map */`]});let e=t;return e})();var fl=e=>({"is-invalid":e});function _j(e,t){e&1&&(d(0,"div"),C(1," Nombre es requerido. "),u())}function Cj(e,t){e&1&&(d(0,"div"),C(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),u())}function wj(e,t){if(e&1&&(d(0,"div",38),R(1,_j,2,0,"div",39)(2,Cj,2,0,"div",39),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.providerForm.get("name"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",(n=r.providerForm.get("name"))==null||n.errors==null?null:n.errors.pattern)}}function Ej(e,t){e&1&&(d(0,"div"),C(1," Email es requerido. "),u())}function Sj(e,t){e&1&&(d(0,"div"),C(1," Formato de email inv\xE1lido. "),u())}function Ij(e,t){if(e&1&&(d(0,"div",38),R(1,Ej,2,0,"div",39)(2,Sj,2,0,"div",39),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.providerForm.get("email"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.providerForm.get("email"))==null||n.errors==null)&&n.errors.required)&&(((n=r.providerForm.get("email"))==null||n.errors==null?null:n.errors.email)||((n=r.providerForm.get("email"))==null||n.errors==null?null:n.errors.invalidEmail)))}}function xj(e,t){e&1&&(d(0,"div"),C(1," Tel\xE9fono es requerido. "),u())}function Dj(e,t){e&1&&(d(0,"div"),C(1," Formato de tel\xE9fono inv\xE1lido. "),u())}function Mj(e,t){if(e&1&&(d(0,"div",38),R(1,xj,2,0,"div",39)(2,Dj,2,0,"div",39),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.providerForm.get("phone"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",(n=r.providerForm.get("phone"))==null||n.errors==null?null:n.errors.invalidPhone)}}function Aj(e,t){e&1&&(d(0,"div"),C(1," CUIT es requerido. "),u())}function Tj(e,t){e&1&&(d(0,"div"),C(1," El CUIT no debe contener letras ni s\xEDmbolos, y debe contener 11 digitos. "),u())}function Fj(e,t){if(e&1&&(d(0,"div",38),R(1,Aj,2,0,"div",39)(2,Tj,2,0,"div",39),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.providerForm.get("cuit"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.providerForm.get("cuit"))==null||n.errors==null)&&n.errors.required)&&((n=r.providerForm.get("cuit"))==null||n.errors==null?null:n.errors.pattern))}}function Nj(e,t){e&1&&(d(0,"div",38),C(1," Se necesita una direccion. "),u())}function Pj(e,t){e&1&&(d(0,"div",38),C(1," Revise las notas. "),u())}function Oj(e,t){e&1&&(d(0,"div",38),C(1," CP es requerido. "),u())}function Rj(e,t){e&1&&(d(0,"div",38),C(1," Descripci\xF3n no admite s\xEDmbolos. "),u())}var Yx=(()=>{let t=class t{constructor(n,r){this.providersService=n,this.formBuilder=r,this.closeModalEvent=new ot,this.provider={},this.providerForm=this.formBuilder.group({name:["",[se.required,se.pattern("^[a-zA-Z\xC0-\xFF0-9 ]*$")]],email:["",[se.required,Nr]],phone:["",[Pr]],cuit:["",[se.required,al]],cp:["",[se.required,se.pattern("^(?!0000)[0-9]{4}$")]],address:["",[se.required]],line2:[""],description:[""]})}closeModal(){this.closeModalEvent.emit()}onSubmit(){if(this.providerForm.valid){let n=`${this.providerForm.get("cp")?.value}|${this.providerForm.get("address")?.value}|${this.providerForm.get("line2")?.value}`.trim().replace(/|\s*$/,"");this.provider={name:this.providerForm.get("name")?.value,email:this.providerForm.get("email")?.value,phone:this.providerForm.get("phone")?.value,cuit:this.providerForm.get("cuit")?.value,address:n,description:this.providerForm.get("description")?.value||""},this.providersService.createProvider(this.provider).subscribe(r=>{this.closeModal()},r=>{console.error("Error al crear el proveedor:",r)})}else console.error("Formulario inv\xE1lido. Revise los campos.")}};t.\u0275fac=function(r){return new(r||t)(ee(Or),ee(ln))},t.\u0275cmp=Re({type:t,selectors:[["app-add-provider"]],outputs:{closeModalEvent:"closeModalEvent"},standalone:!0,features:[Ve],decls:83,vars:33,consts:[["aux","ngForm"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],["noValidate","",3,"ngSubmit","formGroup"],[1,"modal-body"],[1,"row"],[1,"col"],[1,"form-group","row-container"],[1,"row","align-items-center"],[1,"col-2"],["for","name",1,"title"],["type","text","id","name","name","name","formControlName","name","placeholder","Nombre",1,"form-control",3,"ngClass"],[1,"error-container"],["class","text-danger",4,"ngIf"],[1,"col-1"],["for","email",1,"title"],["type","email","id","email","name","email","formControlName","email","placeholder","Correo electr\xF3nico",1,"form-control",3,"ngClass"],["for","phone",1,"title"],["type","number","id","phone","name","phone","formControlName","phone","placeholder","Tel\xE9fono",1,"form-control",3,"ngClass"],["for","cuit",1,"title"],["type","number","id","cuit","name","cuit","formControlName","cuit","placeholder","000000000000",1,"form-control",3,"ngClass"],[1,"form-group"],[1,"row","align-items-center","py-2"],["for","address",1,"title"],["type","text","id","address","formControlName","address","placeholder","Direccion",1,"form-control",3,"ngClass"],["for","cp",1,"title"],["type","text","id","cp","name","cp","formControlName","cp","placeholder","0000",1,"form-control",3,"ngClass"],["for","line2",1,"title"],[1,"col-7"],["type","text","id","line2","formControlName","line2","placeholder","Entre calles 00 y 00",1,"form-control",3,"ngClass"],["for","description",1,"title",2,"padding-bottom","0.3rem"],["id","description","name","description","formControlName","description","maxlength","200",1,"form-control","desc",3,"ngClass"],[1,"modal-footer","justify-content-center"],["type","submit",1,"btn","btn-custom"],[1,"text-danger"],[4,"ngIf"]],template:function(r,o){if(r&1){let s=je();d(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),C(5,"Agregar Proveedor"),u(),d(6,"button",6),X("click",function(){return fe(s),he(o.closeModal())}),u()(),d(7,"form",7,0),X("ngSubmit",function(){return fe(s),he(o.onSubmit())}),d(9,"div",8)(10,"div",9)(11,"div",10)(12,"div",11)(13,"div",12)(14,"div",13)(15,"label",14),C(16,"Nombre"),u()(),d(17,"div",10),z(18,"input",15),u(),d(19,"div",16),R(20,wj,3,2,"div",17),u()()(),d(21,"div",11)(22,"div",12)(23,"div",18)(24,"label",19),C(25,"Email"),u()(),d(26,"div",10),z(27,"input",20),u(),d(28,"div",16),R(29,Ij,3,2,"div",17),u()()(),d(30,"div",11)(31,"div",12)(32,"div",13)(33,"label",21),C(34,"Tel\xE9fono"),u()(),d(35,"div",10),z(36,"input",22),u(),d(37,"div",16),R(38,Mj,3,2,"div",17),u()()(),d(39,"div",11)(40,"div",12)(41,"div",13)(42,"label",23),C(43,"CUIT"),u()(),d(44,"div",10),z(45,"input",24),u(),d(46,"div",16),R(47,Fj,3,2,"div",17),u()()()(),d(48,"div",10)(49,"div",25)(50,"div",26)(51,"div",13)(52,"label",27),C(53,"Direccion"),u()(),d(54,"div",10),z(55,"input",28),u(),d(56,"div",16),R(57,Nj,2,0,"div",17),u()()(),d(58,"div",11)(59,"div",12)(60,"div",18)(61,"label",29),C(62,"CP"),u()(),d(63,"div",13),z(64,"input",30),u(),d(65,"div",13)(66,"label",31),C(67,"Notas"),u()(),d(68,"div",32),z(69,"input",33),u(),d(70,"div",16),R(71,Pj,2,0,"div",17)(72,Oj,2,0,"div",17),u()()(),d(73,"div",25)(74,"label",34),C(75,"Descripci\xF3n"),u(),d(76,"textarea",35),C(77,"                "),u(),d(78,"div",16),R(79,Rj,2,0,"div",17),u()()()()(),d(80,"div",36)(81,"button",37),C(82,"GUARDAR"),u()()()()()()}if(r&2){let s,a,l,p,h,v,w,g,S,I,A,x,P,U,q,Q,J=vt(8);b(7),_("formGroup",o.providerForm),b(11),_("ngClass",ye(17,fl,(((s=o.providerForm.get("name"))==null?null:s.dirty)||((s=o.providerForm.get("name"))==null?null:s.touched)||J.submitted)&&((s=o.providerForm.get("name"))==null?null:s.invalid))),b(2),_("ngIf",(J.submitted||((a=o.providerForm.get("name"))==null?null:a.dirty)||((a=o.providerForm.get("name"))==null?null:a.touched))&&((a=o.providerForm.get("name"))==null?null:a.invalid)),b(7),_("ngClass",ye(19,fl,(((l=o.providerForm.get("email"))==null?null:l.dirty)||((l=o.providerForm.get("email"))==null?null:l.touched)||J.submitted)&&((l=o.providerForm.get("email"))==null?null:l.invalid))),b(2),_("ngIf",J.submitted||((p=o.providerForm.get("email"))==null?null:p.invalid)&&(((p=o.providerForm.get("email"))==null?null:p.dirty)||((p=o.providerForm.get("email"))==null?null:p.touched))),b(7),_("ngClass",ye(21,fl,(((h=o.providerForm.get("phone"))==null?null:h.dirty)||((h=o.providerForm.get("phone"))==null?null:h.touched)||J.submitted)&&((h=o.providerForm.get("phone"))==null?null:h.invalid))),b(2),_("ngIf",((v=o.providerForm.get("phone"))==null?null:v.invalid)&&(((v=o.providerForm.get("phone"))==null?null:v.dirty)||((v=o.providerForm.get("phone"))==null?null:v.touched))||J.submitted&&((v=o.providerForm.get("phone"))==null?null:v.invalid)),b(7),_("ngClass",ye(23,fl,(((w=o.providerForm.get("cuit"))==null?null:w.dirty)||((w=o.providerForm.get("cuit"))==null?null:w.touched)||J.submitted)&&((w=o.providerForm.get("cuit"))==null?null:w.invalid))),b(2),_("ngIf",J.submitted||((g=o.providerForm.get("cuit"))==null?null:g.invalid)&&(((g=o.providerForm.get("cuit"))==null?null:g.dirty)||((g=o.providerForm.get("cuit"))==null?null:g.touched))),b(8),_("ngClass",ye(25,fl,(((S=o.providerForm.get("address"))==null?null:S.dirty)||((S=o.providerForm.get("address"))==null?null:S.touched)||J.submitted)&&((S=o.providerForm.get("address"))==null?null:S.invalid))),b(2),_("ngIf",J.submitted&&((I=o.providerForm.get("address"))==null?null:I.invalid)||((I=o.providerForm.get("address"))==null?null:I.invalid)&&(((I=o.providerForm.get("address"))==null?null:I.dirty)||((I=o.providerForm.get("address"))==null?null:I.touched))),b(7),_("ngClass",ye(27,fl,(((A=o.providerForm.get("cp"))==null?null:A.dirty)||((A=o.providerForm.get("cp"))==null?null:A.touched)||J.submitted)&&((A=o.providerForm.get("cp"))==null?null:A.invalid))),b(5),_("ngClass",ye(29,fl,(((x=o.providerForm.get("line2"))==null?null:x.dirty)||((x=o.providerForm.get("line2"))==null?null:x.touched)||J.submitted)&&((x=o.providerForm.get("line2"))==null?null:x.invalid))),b(2),_("ngIf",((P=o.providerForm.get("line2"))==null?null:P.invalid)&&(((P=o.providerForm.get("line2"))==null?null:P.dirty)||((P=o.providerForm.get("line2"))==null?null:P.touched))),b(),_("ngIf",J.submitted&&((U=o.providerForm.get("cp"))==null?null:U.invalid)||((U=o.providerForm.get("cp"))==null?null:U.invalid)&&(((U=o.providerForm.get("cp"))==null?null:U.dirty)||((U=o.providerForm.get("cp"))==null?null:U.touched))),b(4),_("ngClass",ye(31,fl,(((q=o.providerForm.get("description"))==null?null:q.dirty)||((q=o.providerForm.get("description"))==null?null:q.touched)||J.submitted)&&((q=o.providerForm.get("description"))==null?null:q.invalid))),b(3),_("ngIf",((Q=o.providerForm.get("description"))==null?null:Q.invalid)&&(((Q=o.providerForm.get("description"))==null?null:Q.dirty)||((Q=o.providerForm.get("description"))==null?null:Q.touched)))}},dependencies:[$t,an,Yt,Hn,Xt,sn,$p,en,nn,rt,kt,st],styles:[`@charset "UTF-8";.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:496px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.desc[_ngcontent-%COMP%]{height:5rem;resize:vertical}.title[_ngcontent-%COMP%]{font-size:1rem}.row-container[_ngcontent-%COMP%]{position:relative;min-height:5em}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.modal-footer[_ngcontent-%COMP%]{border-top:none}.form-control[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important;font-size:1.2rem}
+/*# sourceMappingURL=add-provider.component-35ULDHOH.css.map */`]});let e=t;return e})();var hl=e=>({"is-invalid":e});function Lj(e,t){e&1&&(d(0,"div"),C(1," Nombre es requerido. "),u())}function kj(e,t){e&1&&(d(0,"div"),C(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),u())}function jj(e,t){if(e&1&&(d(0,"div",46),R(1,Lj,2,0,"div",47)(2,kj,2,0,"div",47),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.providerForm.get("name"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.providerForm.get("name"))==null||n.errors==null)&&n.errors.required)&&((n=r.providerForm.get("name"))==null||n.errors==null?null:n.errors.pattern))}}function Vj(e,t){e&1&&(d(0,"div"),C(1," Email es requerido. "),u())}function Bj(e,t){e&1&&(d(0,"div"),C(1," Formato de email inv\xE1lido. "),u())}function Uj(e,t){if(e&1&&(d(0,"div",46),R(1,Vj,2,0,"div",47)(2,Bj,2,0,"div",47),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.providerForm.get("email"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.providerForm.get("email"))==null||n.errors==null)&&n.errors.required)&&(((n=r.providerForm.get("email"))==null||n.errors==null?null:n.errors.email)||((n=r.providerForm.get("email"))==null||n.errors==null?null:n.errors.invalidEmail)))}}function qj(e,t){e&1&&(d(0,"div",46),C(1," Tel\xE9fono es requerido. "),u())}function $j(e,t){e&1&&(d(0,"div"),C(1," CUIT es requerido. "),u())}function Hj(e,t){e&1&&(d(0,"div"),C(1," El CUIT no debe contener letras ni s\xEDmbolos, y debe contener 11 digitos. "),u())}function zj(e,t){if(e&1&&(d(0,"div",46),R(1,$j,2,0,"div",47)(2,Hj,2,0,"div",47),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.providerForm.get("cuit"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.providerForm.get("cuit"))==null||n.errors==null)&&n.errors.required)&&((n=r.providerForm.get("cuit"))==null||n.errors==null?null:n.errors.pattern))}}function Gj(e,t){e&1&&(d(0,"div",46),C(1," Se necesita una direccion. "),u())}function Wj(e,t){e&1&&(d(0,"div",46),C(1," Revise las notas. "),u())}function Yj(e,t){e&1&&(d(0,"div",46),C(1," CP es requerido. "),u())}function Kj(e,t){e&1&&(d(0,"div",46),C(1," Descripci\xF3n no admite s\xEDmbolos. "),u())}function Qj(e,t){if(e&1){let i=je();d(0,"app-delete-modal",48),X("cancel",function(){fe(i);let r=j();return he(r.closeDeleteModal())})("confirm",function(){fe(i);let r=j();return he(r.deleteProvider())}),u()}e&2&&_("headerMessage","Eliminar Proveedor")("bodyMessage","\xBFEst\xE1s seguro que deseas borrar este Proveedor?")}var Kx=(()=>{let t=class t{constructor(n,r){this.providersService=n,this.fb=r,this.providerInput={},this.closeProviderModalEvent=new ot,this.isToggled=!1,this.confirmDeleteModal=!1,this.providerForm=this.fb.group({name:[{value:"",disabled:!this.isToggled},[se.required,se.pattern("^[a-zA-Z\xC0-\xFF0-9 ]*$")]],email:[{value:"",disabled:!this.isToggled},[se.required,Nr]],phone:[{value:"",disabled:!this.isToggled},[se.required,Pr]],cuit:[{value:"",disabled:!this.isToggled},[se.required,al]],cp:[{value:"",disabled:!this.isToggled},[se.required,se.pattern("^(?!0000)[0-9]{4}$")]],address:[{value:"",disabled:!this.isToggled},[se.required]],line2:[{value:"",disabled:!this.isToggled}],description:[{value:"",disabled:!this.isToggled}]})}ngOnChanges(n){n.providerInput&&n.providerInput.currentValue&&this.providerForm.patchValue(this.transformProviderInput(this.providerInput))}toggleEditMode(){this.isToggled=!this.isToggled,this.isToggled?this.providerForm.enable():this.providerForm.disable()}onSubmit(){if(this.providerForm.valid){let n=`${this.providerForm.get("cp")?.value}|${this.providerForm.get("address")?.value}|${this.providerForm.get("line2")?.value}`.trim().replace(/|\s*$/,"");this.provider={id:this.providerInput.id,name:this.providerForm.get("name")?.value,email:this.providerForm.get("email")?.value,phone:this.providerForm.get("phone")?.value,cuit:this.providerForm.get("cuit")?.value,address:n,description:this.providerForm.get("description")?.value||""},this.providersService.updateProvider(this.provider).subscribe(r=>{this.closeModal()},r=>{console.error("Error al actualizar el proveedor:",r)})}else this.providerForm.markAllAsTouched()}closeModal(){this.closeProviderModalEvent.emit()}confirmDelete(){this.confirmDeleteModal=!0}closeDeleteModal(){this.confirmDeleteModal=!1}deleteProvider(){this.providersService.deleteProvider(this.providerInput.id).subscribe(n=>{this.confirmDeleteModal=!1,this.closeModal()},n=>{console.error("Error al eliminar el proveedor:",n)})}transformProviderInput(n){let[r="",o="",s=""]=n.address?.split("|")||[];return{id:n.id??null,name:n.name??"",email:n.email??"",phone:n.phone??"",cuit:n.cuit??"",cp:r.trim(),address:o.trim(),line2:s.trim(),description:n.description}}};t.\u0275fac=function(r){return new(r||t)(ee(Or),ee(ln))},t.\u0275cmp=Re({type:t,selectors:[["app-provider"]],inputs:{providerInput:"providerInput"},outputs:{closeProviderModalEvent:"closeProviderModalEvent"},standalone:!0,features:[qn,Ve],decls:94,vars:35,consts:[["aux","ngForm"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content","modal-content-main"],[1,"modal-header","d-flex","justify-content-center","align-items-center"],[1,"row","w-100"],[1,"col"],[1,"modal-title"],[1,"col","d-flex","justify-content-center"],[1,"form-check","form-switch"],["for","flexSwitchCheckDefault",1,"form-check-label"],["type","checkbox","id","flexSwitchCheckDefault",1,"form-check-input","custom-switch",3,"change"],[1,"col","d-flex","justify-content-end"],["type","button","aria-label","Close",1,"btn-close",3,"click"],["noValidate","",3,"ngSubmit","formGroup"],[1,"modal-body"],[1,"row"],[1,"form-group","row-container"],[1,"row","align-items-center"],[1,"col-2"],["for","name",1,"title"],["type","text","id","name","name","name","formControlName","name",1,"form-control",3,"ngClass"],[1,"error-container"],["class","text-danger",4,"ngIf"],[1,"col-1"],["for","email",1,"title"],["type","email","id","email","name","email","formControlName","email",1,"form-control",3,"ngClass"],["for","phone",1,"title"],["type","number","id","phone","name","phone","formControlName","phone",1,"form-control",3,"ngClass"],["for","cuit",1,"title"],["type","number","id","cuit","name","cuit","formControlName","cuit",1,"form-control",3,"ngClass"],[1,"form-group"],[1,"row","align-items-center","py-2"],["for","address",1,"title"],["type","text","id","address","formControlName","address",1,"form-control",3,"ngClass"],["for","cp",1,"title"],["type","text","id","cp","name","cp","formControlName","cp",1,"form-control",3,"ngClass"],["for","line2",1,"title"],[1,"col-7"],["type","text","id","line2","formControlName","line2",1,"form-control",3,"ngClass"],["for","description",1,"title",2,"padding-bottom","0.3rem"],["id","description","name","description","formControlName","description","maxlength","200",1,"form-control","desc",3,"ngClass"],[1,"modal-footer","justify-content-center"],["type","submit",1,"btn","btn-custom",3,"disabled"],["type","button",1,"btn","btn-danger",3,"click"],[3,"headerMessage","bodyMessage","cancel","confirm",4,"ngIf"],[1,"text-danger"],[4,"ngIf"],[3,"cancel","confirm","headerMessage","bodyMessage"]],template:function(r,o){if(r&1){let s=je();d(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"h5",7),C(7,"Detalles Proveedor"),u()(),d(8,"div",8)(9,"div",9)(10,"label",10),C(11,"Editar"),u(),d(12,"input",11),X("change",function(){return fe(s),he(o.toggleEditMode())}),u()()(),d(13,"div",12)(14,"button",13),X("click",function(){return fe(s),he(o.closeModal())}),u()()()(),d(15,"form",14,0),X("ngSubmit",function(){return fe(s),he(o.onSubmit())}),d(17,"div",15)(18,"div",16)(19,"div",6)(20,"div",17)(21,"div",18)(22,"div",19)(23,"label",20),C(24,"Nombre"),u()(),d(25,"div",6),z(26,"input",21),u(),d(27,"div",22),R(28,jj,3,2,"div",23),u()()(),d(29,"div",17)(30,"div",18)(31,"div",24)(32,"label",25),C(33,"Email"),u()(),d(34,"div",6),z(35,"input",26),u(),d(36,"div",22),R(37,Uj,3,2,"div",23),u()()(),d(38,"div",17)(39,"div",18)(40,"div",19)(41,"label",27),C(42,"Tel\xE9fono"),u()(),d(43,"div",6),z(44,"input",28),u(),d(45,"div",22),R(46,qj,2,0,"div",23),u()()(),d(47,"div",17)(48,"div",18)(49,"div",19)(50,"label",29),C(51,"CUIT"),u()(),d(52,"div",6),z(53,"input",30),u(),d(54,"div",22),R(55,zj,3,2,"div",23),u()()()(),d(56,"div",6)(57,"div",31)(58,"div",32)(59,"div",19)(60,"label",33),C(61,"Direccion"),u()(),d(62,"div",6),z(63,"input",34),u(),d(64,"div",22),R(65,Gj,2,0,"div",23),u()()(),d(66,"div",17)(67,"div",18)(68,"div",24)(69,"label",35),C(70,"CP"),u()(),d(71,"div",19),z(72,"input",36),u(),d(73,"div",19)(74,"label",37),C(75,"Notas"),u()(),d(76,"div",38),z(77,"input",39),u(),d(78,"div",22),R(79,Wj,2,0,"div",23)(80,Yj,2,0,"div",23),u()()(),d(81,"div",31)(82,"label",40),C(83,"Descripci\xF3n"),u(),d(84,"textarea",41),C(85,"                "),u(),d(86,"div",22),R(87,Kj,2,0,"div",23),u()()()()(),d(88,"div",42)(89,"button",43),C(90," GUARDAR "),u(),d(91,"button",44),X("click",function(){return fe(s),he(o.confirmDelete())}),C(92," BORRAR "),u()()()()()(),R(93,Qj,1,2,"app-delete-modal",45)}if(r&2){let s,a,l,p,h,v,w,g,S,I,A,x,P,U,q,Q,J=vt(16);b(15),_("formGroup",o.providerForm),b(11),_("ngClass",ye(19,hl,(((s=o.providerForm.get("name"))==null?null:s.dirty)||((s=o.providerForm.get("name"))==null?null:s.touched)||J.submitted)&&((s=o.providerForm.get("name"))==null?null:s.invalid))),b(2),_("ngIf",J.submitted||((a=o.providerForm.get("name"))==null?null:a.invalid)&&(((a=o.providerForm.get("name"))==null?null:a.dirty)||((a=o.providerForm.get("name"))==null?null:a.touched))),b(7),_("ngClass",ye(21,hl,(((l=o.providerForm.get("email"))==null?null:l.dirty)||((l=o.providerForm.get("email"))==null?null:l.touched)||J.submitted)&&((l=o.providerForm.get("email"))==null?null:l.invalid))),b(2),_("ngIf",J.submitted||((p=o.providerForm.get("email"))==null?null:p.invalid)&&(((p=o.providerForm.get("email"))==null?null:p.dirty)||((p=o.providerForm.get("email"))==null?null:p.touched))),b(7),_("ngClass",ye(23,hl,(((h=o.providerForm.get("phone"))==null?null:h.dirty)||((h=o.providerForm.get("phone"))==null?null:h.touched)||J.submitted)&&((h=o.providerForm.get("phone"))==null?null:h.invalid))),b(2),_("ngIf",J.submitted&&((v=o.providerForm.get("phone"))==null?null:v.invalid)||((v=o.providerForm.get("phone"))==null?null:v.invalid)&&(((v=o.providerForm.get("phone"))==null?null:v.dirty)||((v=o.providerForm.get("phone"))==null?null:v.touched))),b(7),_("ngClass",ye(25,hl,(((w=o.providerForm.get("cuit"))==null?null:w.dirty)||((w=o.providerForm.get("cuit"))==null?null:w.touched)||J.submitted)&&((w=o.providerForm.get("cuit"))==null?null:w.invalid))),b(2),_("ngIf",J.submitted||((g=o.providerForm.get("cuit"))==null?null:g.invalid)&&(((g=o.providerForm.get("cuit"))==null?null:g.dirty)||((g=o.providerForm.get("cuit"))==null?null:g.touched))),b(8),_("ngClass",ye(27,hl,(((S=o.providerForm.get("address"))==null?null:S.dirty)||((S=o.providerForm.get("address"))==null?null:S.touched)||J.submitted)&&((S=o.providerForm.get("address"))==null?null:S.invalid))),b(2),_("ngIf",J.submitted&&((I=o.providerForm.get("address"))==null?null:I.invalid)||((I=o.providerForm.get("address"))==null?null:I.invalid)&&(((I=o.providerForm.get("address"))==null?null:I.dirty)||((I=o.providerForm.get("address"))==null?null:I.touched))),b(7),_("ngClass",ye(29,hl,(((A=o.providerForm.get("cp"))==null?null:A.dirty)||((A=o.providerForm.get("cp"))==null?null:A.touched)||J.submitted)&&((A=o.providerForm.get("cp"))==null?null:A.invalid))),b(5),_("ngClass",ye(31,hl,(((x=o.providerForm.get("line2"))==null?null:x.dirty)||((x=o.providerForm.get("linea2"))==null?null:x.touched)||J.submitted)&&((x=o.providerForm.get("linea2"))==null?null:x.invalid))),b(2),_("ngIf",((P=o.providerForm.get("line2"))==null?null:P.invalid)&&(((P=o.providerForm.get("line2"))==null?null:P.dirty)||((P=o.providerForm.get("line2"))==null?null:P.touched))),b(),_("ngIf",J.submitted&&((U=o.providerForm.get("cp"))==null?null:U.invalid)||((U=o.providerForm.get("cp"))==null?null:U.invalid)&&(((U=o.providerForm.get("cp"))==null?null:U.dirty)||((U=o.providerForm.get("cp"))==null?null:U.touched))),b(4),_("ngClass",ye(33,hl,(((q=o.providerForm.get("description"))==null?null:q.dirty)||((q=o.providerForm.get("description"))==null?null:q.touched)||J.submitted)&&((q=o.providerForm.get("description"))==null?null:q.invalid))),b(3),_("ngIf",((Q=o.providerForm.get("description"))==null?null:Q.invalid)&&(((Q=o.providerForm.get("description"))==null?null:Q.dirty)||((Q=o.providerForm.get("description"))==null?null:Q.touched))),b(2),_("disabled",!o.isToggled),b(4),_("ngIf",o.confirmDeleteModal)}},dependencies:[$t,an,Yt,Hn,Xt,sn,$p,en,nn,rt,kt,st,Vu,go],styles:[`@charset "UTF-8";.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content-main[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:496px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.desc[_ngcontent-%COMP%]{height:6rem;resize:vertical}.title[_ngcontent-%COMP%]{font-size:1rem}.row-container[_ngcontent-%COMP%]{position:relative;min-height:5em}.error-container[_ngcontent-%COMP%]{height:1.8rem;padding-top:.4rem}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.custom-switch[_ngcontent-%COMP%]:focus{border-color:#1b5e20;box-shadow:0 0 0 .25rem #1b5e2040}.custom-switch[_ngcontent-%COMP%]:checked{background-color:#88ca5e;border-color:#1b5e20}.custom-switch[_ngcontent-%COMP%]:checked:before{background-color:#fff}.modal-footer[_ngcontent-%COMP%]{border-top:none}.form-control[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important;font-size:1.2rem}
+/*# sourceMappingURL=provider.component-CZBFFPEY.css.map */`]});let e=t;return e})();function Zj(e,t){if(e&1){let i=je();d(0,"app-add-provider",11),X("closeModalEvent",function(){fe(i);let r=j();return he(r.closeAddProviderModal())}),u()}}function Jj(e,t){if(e&1){let i=je();d(0,"app-provider",12),X("closeProviderModalEvent",function(){fe(i);let r=j();return he(r.closeProviderModal())}),u()}if(e&2){let i=j();_("providerInput",i.selectedProvider)}}var Qx=(()=>{let t=class t{constructor(n){this.ProvidersService=n,this.providers=[],this.backUpProviders=[],this.addProviderModal=!1,this.openProviderModal=!1,this.exportColumns=["description","cuit"]}ngOnInit(){this.getProviders()}openAddProviderModal(){this.addProviderModal=!0}closeAddProviderModal(){this.getProviders(),this.addProviderModal=!1}onRowClicked(n){this.selectedProvider=n,this.openProviderModal=!0}handleSearch(n){this.providers=this.backUpProviders,this.providers=Ms(this.providers,this.exportColumns,n)}closeProviderModal(){this.getProviders(),this.openProviderModal=!1}getProviders(){this.ProvidersService.getProviders().subscribe(n=>{this.backUpProviders=n,this.providers=n})}};t.\u0275fac=function(r){return new(r||t)(ee(Or))},t.\u0275cmp=Re({type:t,selectors:[["app-providers"]],standalone:!0,features:[Ve],decls:15,vars:4,consts:[[1,"container-fluid","d-flex","flex-column","justify-content-center","align-items-center","vh-100"],[1,"col-flex","justify-content-center","align-items-center"],[1,"row","header-row"],[1,"col"],[1,"view-title"],[3,"search"],[1,"col","d-flex","justify-content-center"],[1,"btn","btn-custom",3,"click"],[3,"rowClicked","data","columnsExcluded"],[3,"closeModalEvent",4,"ngIf"],[3,"providerInput","closeProviderModalEvent",4,"ngIf"],[3,"closeModalEvent"],[3,"closeProviderModalEvent","providerInput"]],template:function(r,o){r&1&&(z(0,"app-navbar"),d(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"h1",4),C(6,"Poveedores"),u()(),d(7,"div",3)(8,"app-search-bar",5),X("search",function(a){return o.handleSearch(a)}),u()(),d(9,"div",6)(10,"button",7),X("click",function(){return o.openAddProviderModal()}),C(11,"AGREGAR PROVEEDOR"),u()()(),d(12,"app-table",8),X("rowClicked",function(a){return o.onRowClicked(a)}),u()()(),R(13,Zj,1,0,"app-add-provider",9)(14,Jj,1,1,"app-provider",10)),r&2&&(b(12),_("data",o.providers)("columnsExcluded",o.exportColumns),b(),_("ngIf",o.addProviderModal),b(),_("ngIf",o.openProviderModal))},dependencies:[rt,st,Fn,ho,mo,Yx,Kx],styles:[`[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/production.svg);background-size:cover;background-position:center;background-repeat:no-repeat}.view-title[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;color:#1b5e20;font-size:2.5rem;padding-left:1.5rem}.header-row[_ngcontent-%COMP%]{padding-bottom:20px;align-items:center}.vh-100[_ngcontent-%COMP%]{height:90vh!important}.btn-custom[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1.3rem;color:#1b5e20}
+/*# sourceMappingURL=providers.component-SPFJNFWW.css.map */`]});let e=t;return e})();var ac=e=>({"is-invalid":e});function Xj(e,t){e&1&&(d(0,"div"),C(1," Nombre es requerido. "),u())}function eV(e,t){e&1&&(d(0,"div"),C(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),u())}function tV(e,t){if(e&1&&(d(0,"div",35),R(1,Xj,2,0,"div",36)(2,eV,2,0,"div",36),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.clientForm.get("name"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.clientForm.get("name"))==null||n.errors==null)&&n.errors.required)&&((n=r.clientForm.get("name"))==null||n.errors==null?null:n.errors.pattern))}}function nV(e,t){e&1&&(d(0,"div"),C(1," Email es requerido. "),u())}function iV(e,t){e&1&&(d(0,"div"),C(1," Formato de email inv\xE1lido. "),u())}function rV(e,t){if(e&1&&(d(0,"div",35),R(1,nV,2,0,"div",36)(2,iV,2,0,"div",36),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.clientForm.get("email"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.clientForm.get("email"))==null||n.errors==null)&&n.errors.required)&&(((n=r.clientForm.get("email"))==null||n.errors==null?null:n.errors.email)||((n=r.clientForm.get("email"))==null||n.errors==null?null:n.errors.invalidEmail)))}}function oV(e,t){e&1&&(d(0,"div"),C(1," El CUIT es requerido. "),u())}function sV(e,t){e&1&&(d(0,"div"),C(1," El cuit debe no debe contener simbolos ni letras, y una longitude de 17 digitos. "),u())}function aV(e,t){if(e&1&&(d(0,"div",35),R(1,oV,2,0,"div",36)(2,sV,2,0,"div",36),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.clientForm.get("cuit"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.clientForm.get("cuit"))==null||n.errors==null)&&n.errors.required)&&((n=r.clientForm.get("cuit"))==null||n.errors==null?null:n.errors.pattern))}}function lV(e,t){e&1&&(d(0,"div",35),C(1," Tel\xE9fono es requerido. "),u())}function cV(e,t){e&1&&(d(0,"div",35),C(1," Se necesita una direccion. "),u())}function uV(e,t){e&1&&(d(0,"div",35),C(1," Revise las notas. "),u())}function dV(e,t){e&1&&(d(0,"div",35),C(1," CP es requerido. "),u())}var Zx=(()=>{let t=class t{constructor(n,r){this.salesChannelService=n,this.formBuilder=r,this.closeModalEvent=new ot,this.confirmPassword="",this.clientForm=this.formBuilder.group({name:["",[se.required,se.pattern("^[a-zA-Z\xC0-\xFF0-9 ]*$")]],cuit:["",[se.required,al]],email:["",[se.required,Nr]],phone:["",[se.required,Pr]],cp:["",[se.required,se.pattern("^(?!0000)[0-9]{4}$")]],address:["",[se.required]],line2:[""]})}closeModal(){this.closeModalEvent.emit()}onSubmit(){if(this.clientForm.valid){let n=this.clientForm.get("cp")?.value+"|"+this.clientForm.get("address")?.value+"|"+this.clientForm.get("line2")?.value,r={name:this.clientForm.get("name")?.value,cuit:this.clientForm.get("cuit")?.value,email:this.clientForm.get("email")?.value,phone:this.clientForm.get("phone")?.value,addres:n};this.salesChannelService.createSaleChannel(r).subscribe(o=>{this.closeModalEvent.emit()},o=>{console.error("Error al crear el canal de venta:",o)})}else this.clientForm.markAllAsTouched(),console.error("Formulario inv\xE1lido. Revise los campos.")}};t.\u0275fac=function(r){return new(r||t)(ee(cl),ee(ln))},t.\u0275cmp=Re({type:t,selectors:[["app-add-client"]],outputs:{closeModalEvent:"closeModalEvent"},standalone:!0,features:[Ve],decls:76,vars:29,consts:[["aux","ngForm"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[3,"ngSubmit","formGroup"],[1,"modal-body"],[1,"row"],[1,"col"],[1,"form-group","row-container"],[1,"row","align-items-center"],[1,"col-2"],["for","name"],["type","text","id","name","name","name","formControlName","name",1,"form-control",3,"ngClass"],[1,"error-container"],["class","text-danger",4,"ngIf"],[1,"col-1"],["for","email"],["type","email","id","email","name","email","formControlName","email",1,"form-control",3,"ngClass"],["for","surname"],["type","number","id","cuit","name","cuit","formControlName","cuit",1,"form-control",3,"ngClass"],["for","phone"],["type","number","id","phone","name","telefono","formControlName","phone",1,"form-control",3,"ngClass"],[1,"form-group"],["for","address",1,"title"],["type","text","id","address","formControlName","address",1,"form-control",3,"ngClass"],["for","cp",1,"title"],["type","text","id","cp","name","cp","formControlName","cp",1,"form-control",3,"ngClass"],["for","line2",1,"title"],[1,"col-7"],["type","text","id","line2","formControlName","line2",1,"form-control",3,"ngClass"],[1,"modal-footer","justify-content-center"],["type","submit",1,"btn","btn-custom"],[1,"text-danger"],[4,"ngIf"]],template:function(r,o){if(r&1){let s=je();d(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),C(5,"Agregar Cliente"),u(),d(6,"button",6),X("click",function(){return fe(s),he(o.closeModal())}),u()(),d(7,"form",7,0),X("ngSubmit",function(){return fe(s),he(o.onSubmit())}),d(9,"div",8)(10,"div",9)(11,"div",10)(12,"div",11)(13,"div",12)(14,"div",11)(15,"div",12)(16,"div",13)(17,"label",14),C(18,"Nombre"),u()(),d(19,"div",10),z(20,"input",15),u(),d(21,"div",16),R(22,tV,3,2,"div",17),u()()(),d(23,"div",18)(24,"label",19),C(25,"Email"),u()(),d(26,"div",10),z(27,"input",20),u(),d(28,"div",16),R(29,rV,3,2,"div",17),u()()(),d(30,"div",11)(31,"div",12)(32,"div",13)(33,"label",21),C(34,"CUIT"),u()(),d(35,"div",10),z(36,"input",22),u(),d(37,"div",16),R(38,aV,3,2,"div",17),u()()()(),d(39,"div",10)(40,"div",11)(41,"div",12)(42,"div",13)(43,"label",23),C(44,"Tel\xE9fono"),u()(),d(45,"div",10),z(46,"input",24),u(),d(47,"div",16),R(48,lV,2,0,"div",17),u()()(),d(49,"div",25)(50,"div",12)(51,"div",13)(52,"label",26),C(53,"Direccion"),u()(),d(54,"div",10),z(55,"input",27),u(),d(56,"div",16),R(57,cV,2,0,"div",17),u()()(),d(58,"div",11)(59,"div",12)(60,"div",18)(61,"label",28),C(62,"CP"),u()(),d(63,"div",13),z(64,"input",29),u(),d(65,"div",13)(66,"label",30),C(67,"Notas"),u()(),d(68,"div",31),z(69,"input",32),u(),d(70,"div",16),R(71,uV,2,0,"div",17)(72,dV,2,0,"div",17),u()()()()()(),d(73,"div",33)(74,"button",34),C(75,"GUARDAR"),u()()()()()()}if(r&2){let s,a,l,p,h,v,w,g,S,I,A,x,P,U,q=vt(8);b(7),_("formGroup",o.clientForm),b(13),_("ngClass",ye(15,ac,(((s=o.clientForm.get("name"))==null?null:s.dirty)||((s=o.clientForm.get("name"))==null?null:s.touched)||q.submitted)&&((s=o.clientForm.get("name"))==null?null:s.invalid))),b(2),_("ngIf",q.submitted||((a=o.clientForm.get("name"))==null?null:a.invalid)&&(((a=o.clientForm.get("name"))==null?null:a.dirty)||((a=o.clientForm.get("name"))==null?null:a.touched))),b(5),_("ngClass",ye(17,ac,(((l=o.clientForm.get("email"))==null?null:l.dirty)||((l=o.clientForm.get("email"))==null?null:l.touched)||q.submitted)&&((l=o.clientForm.get("email"))==null?null:l.invalid))),b(2),_("ngIf",q.submitted||((p=o.clientForm.get("email"))==null?null:p.invalid)&&(((p=o.clientForm.get("email"))==null?null:p.dirty)||((p=o.clientForm.get("email"))==null?null:p.touched))),b(7),_("ngClass",ye(19,ac,(((h=o.clientForm.get("cuit"))==null?null:h.dirty)||((h=o.clientForm.get("cuit"))==null?null:h.touched)||q.submitted)&&((h=o.clientForm.get("cuit"))==null?null:h.invalid))),b(2),_("ngIf",q.submitted||((v=o.clientForm.get("cuit"))==null?null:v.invalid)&&(((v=o.clientForm.get("cuit"))==null?null:v.dirty)||((v=o.clientForm.get("cuit"))==null?null:v.touched))),b(8),_("ngClass",ye(21,ac,(((w=o.clientForm.get("phone"))==null?null:w.dirty)||((w=o.clientForm.get("phone"))==null?null:w.touched)||q.submitted)&&((w=o.clientForm.get("phone"))==null?null:w.invalid))),b(2),_("ngIf",q.submitted&&((g=o.clientForm.get("phone"))==null?null:g.invalid)||((g=o.clientForm.get("phone"))==null?null:g.invalid)&&(((g=o.clientForm.get("phone"))==null?null:g.dirty)||((g=o.clientForm.get("phone"))==null?null:g.touched))),b(7),_("ngClass",ye(23,ac,(((S=o.clientForm.get("address"))==null?null:S.dirty)||((S=o.clientForm.get("address"))==null?null:S.touched)||q.submitted)&&((S=o.clientForm.get("address"))==null?null:S.invalid))),b(2),_("ngIf",q.submitted&&((I=o.clientForm.get("address"))==null?null:I.invalid)||((I=o.clientForm.get("address"))==null?null:I.invalid)&&(((I=o.clientForm.get("address"))==null?null:I.dirty)||((I=o.clientForm.get("address"))==null?null:I.touched))),b(7),_("ngClass",ye(25,ac,(((A=o.clientForm.get("cp"))==null?null:A.dirty)||((A=o.clientForm.get("cp"))==null?null:A.touched)||q.submitted)&&((A=o.clientForm.get("cp"))==null?null:A.invalid))),b(5),_("ngClass",ye(27,ac,(((x=o.clientForm.get("line2"))==null?null:x.dirty)||((x=o.clientForm.get("linea2"))==null?null:x.touched)||q.submitted)&&((x=o.clientForm.get("linea2"))==null?null:x.invalid))),b(2),_("ngIf",((P=o.clientForm.get("line2"))==null?null:P.invalid)&&(((P=o.clientForm.get("line2"))==null?null:P.dirty)||((P=o.clientForm.get("line2"))==null?null:P.touched))),b(),_("ngIf",q.submitted&&((U=o.clientForm.get("cp"))==null?null:U.invalid)||((U=o.clientForm.get("cp"))==null?null:U.invalid)&&(((U=o.clientForm.get("cp"))==null?null:U.dirty)||((U=o.clientForm.get("cp"))==null?null:U.touched)))}},dependencies:[rt,kt,st,$t,an,Yt,Hn,Xt,sn,en,nn],styles:[`@charset "UTF-8";.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:366px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.row-container[_ngcontent-%COMP%]{position:relative;min-height:5em}.error-container[_ngcontent-%COMP%]{height:1.2rem;padding-top:2px}.form-group[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]{margin-bottom:10px}.modal-footer[_ngcontent-%COMP%]{border-top:none}.form-control[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important;font-size:1.2rem}
+/*# sourceMappingURL=add-client.component-YQ23S5AU.css.map */`]});let e=t;return e})();var lc=e=>({"is-invalid":e});function pV(e,t){e&1&&(d(0,"div"),C(1," Nombre es requerido. "),u())}function fV(e,t){e&1&&(d(0,"div"),C(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),u())}function hV(e,t){if(e&1&&(d(0,"div",43),R(1,pV,2,0,"div",44)(2,fV,2,0,"div",44),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.clientForm.get("name"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.clientForm.get("name"))==null||n.errors==null)&&n.errors.required)&&((n=r.clientForm.get("name"))==null||n.errors==null?null:n.errors.pattern))}}function mV(e,t){e&1&&(d(0,"div"),C(1," Email es requerido. "),u())}function gV(e,t){e&1&&(d(0,"div"),C(1," Formato de email inv\xE1lido. "),u())}function vV(e,t){if(e&1&&(d(0,"div",43),R(1,mV,2,0,"div",44)(2,gV,2,0,"div",44),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.clientForm.get("email"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.clientForm.get("email"))==null||n.errors==null)&&n.errors.required)&&(((n=r.clientForm.get("email"))==null||n.errors==null?null:n.errors.email)||((n=r.clientForm.get("email"))==null||n.errors==null?null:n.errors.invalidEmail)))}}function yV(e,t){e&1&&(d(0,"div"),C(1," El CUIT es requerido. "),u())}function bV(e,t){e&1&&(d(0,"div"),C(1," El cuit debe no debe contener simbolos ni letras, y una longitude de 17 digitos. "),u())}function _V(e,t){if(e&1&&(d(0,"div",43),R(1,yV,2,0,"div",44)(2,bV,2,0,"div",44),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.clientForm.get("cuit"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.clientForm.get("cuit"))==null||n.errors==null)&&n.errors.required)&&((n=r.clientForm.get("cuit"))==null||n.errors==null?null:n.errors.pattern))}}function CV(e,t){e&1&&(d(0,"div",43),C(1," Tel\xE9fono es requerido. "),u())}function wV(e,t){e&1&&(d(0,"div",43),C(1," Se necesita una direccion. "),u())}function EV(e,t){e&1&&(d(0,"div",43),C(1," Revise las notas. "),u())}function SV(e,t){e&1&&(d(0,"div",43),C(1," CP es requerido. "),u())}function IV(e,t){if(e&1){let i=je();d(0,"app-delete-modal",45),X("cancel",function(){fe(i);let r=j();return he(r.closeDeleteModal())})("confirm",function(){fe(i);let r=j();return he(r.deleteClient())}),u()}e&2&&_("headerMessage","Eliminar Cliente")("bodyMessage","\xBFEst\xE1s seguro que deseas borrar este Cliente?")}var Jx=(()=>{let t=class t{constructor(n,r){this.salesChannelService=n,this.formBuilder=r,this.clientInput={},this.closeClientModalEvent=new ot,this.isToggled=!1,this.confirmDeleteModal=!1,this.clientForm=this.formBuilder.group({name:[{value:"",disabled:!this.isToggled},[se.required,se.pattern("^[a-zA-Z\xC0-\xFF0-9 ]*$")]],cuit:[{value:"",disabled:!this.isToggled},[se.required,al]],email:[{value:"",disabled:!this.isToggled},[se.required,Nr]],phone:[{value:"",disabled:!this.isToggled},[se.required,Pr]],cp:[{value:"",disabled:!this.isToggled},[se.required,se.pattern("^(?!0000)[0-9]{4}$")]],address:[{value:"",disabled:!this.isToggled},[se.required]],line2:[{value:"",disabled:!this.isToggled}]})}ngOnChanges(n){n.clientInput&&n.clientInput.currentValue&&this.clientForm.patchValue(this.transformClientInput(this.clientInput))}toggleEditMode(){this.isToggled=!this.isToggled,this.isToggled?this.clientForm.enable():this.clientForm.disable()}onSubmit(){if(this.clientForm.valid){let n=this.clientForm.get("cp")?.value,r=this.clientForm.get("address")?.value,o=this.clientForm.get("line2")?.value,s=`${n}|${r}|${o}`.trim().replace(/|\s*$/,""),a={id:this.clientInput.id,name:this.clientForm.get("name")?.value,email:this.clientForm.get("email")?.value,phone:this.clientForm.get("phone")?.value,cuit:this.clientForm.get("cuit")?.value,addres:s};this.salesChannelService.updateSaleChannel(a).subscribe(()=>{this.closeClientModalEvent.emit()})}else this.clientForm.markAllAsTouched()}closeModal(){this.closeClientModalEvent.emit()}confirmDelete(){this.confirmDeleteModal=!0}closeDeleteModal(){this.confirmDeleteModal=!1}deleteClient(){this.salesChannelService.deleteSaleChannel(this.clientInput.id).subscribe(()=>{this.closeClientModalEvent.emit()})}transformClientInput(n){let[r="",o="",s=""]=n.addres?.split("|")||[];return{id:n.id??null,name:n.name??"",email:n.email??"",phone:n.phone??"",cuit:n.cuit??"",cp:r.trim(),address:o.trim(),line2:s.trim()}}};t.\u0275fac=function(r){return new(r||t)(ee(cl),ee(ln))},t.\u0275cmp=Re({type:t,selectors:[["app-client"]],inputs:{clientInput:"clientInput"},outputs:{closeClientModalEvent:"closeClientModalEvent"},standalone:!0,features:[qn,Ve],decls:87,vars:31,consts:[["aux","ngForm"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content","modal-content-main"],[1,"modal-header","d-flex","justify-content-center","align-items-center"],[1,"row","w-100"],[1,"col"],[1,"modal-title"],[1,"col","d-flex","justify-content-center"],[1,"form-check","form-switch"],["for","flexSwitchCheckDefault",1,"form-check-label"],["type","checkbox","id","flexSwitchCheckDefault",1,"form-check-input","custom-switch",3,"change"],[1,"col","d-flex","justify-content-end"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[3,"ngSubmit","formGroup"],[1,"modal-body"],[1,"row"],[1,"form-group","row-container"],[1,"row","align-items-center"],[1,"col-2"],["for","name"],["type","text","id","name","name","name","formControlName","name",1,"form-control",3,"ngClass"],[1,"error-container"],["class","text-danger",4,"ngIf"],[1,"col-1"],["for","email"],["type","email","id","email","name","email","formControlName","email",1,"form-control",3,"ngClass"],["for","surname"],["type","number","id","cuit","name","cuit","formControlName","cuit",1,"form-control",3,"ngClass"],["for","phone"],["type","text","id","phone","name","telefono","formControlName","phone",1,"form-control",3,"ngClass"],[1,"form-group"],["for","address",1,"title"],["type","text","id","address","formControlName","address",1,"form-control",3,"ngClass"],["for","cp",1,"title"],["type","text","id","cp","name","cp","formControlName","cp",1,"form-control",3,"ngClass"],["for","line2",1,"title"],[1,"col-7"],["type","text","id","line2","formControlName","line2",1,"form-control",3,"ngClass"],[1,"modal-footer","justify-content-center"],["type","submit",1,"btn","btn-custom",3,"disabled"],["type","button",1,"btn","btn-danger",3,"click"],[3,"headerMessage","bodyMessage","cancel","confirm",4,"ngIf"],[1,"text-danger"],[4,"ngIf"],[3,"cancel","confirm","headerMessage","bodyMessage"]],template:function(r,o){if(r&1){let s=je();d(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"h5",7),C(7,"Detalles Proveedor"),u()(),d(8,"div",8)(9,"div",9)(10,"label",10),C(11,"Editar"),u(),d(12,"input",11),X("change",function(){return fe(s),he(o.toggleEditMode())}),u()()(),d(13,"div",12)(14,"button",13),X("click",function(){return fe(s),he(o.closeModal())}),u()()()(),d(15,"form",14,0),X("ngSubmit",function(){return fe(s),he(o.onSubmit())}),d(17,"div",15)(18,"div",16)(19,"div",6)(20,"div",17)(21,"div",18)(22,"div",17)(23,"div",18)(24,"div",19)(25,"label",20),C(26,"Nombre"),u()(),d(27,"div",6),z(28,"input",21),u(),d(29,"div",22),R(30,hV,3,2,"div",23),u()()(),d(31,"div",24)(32,"label",25),C(33,"Email"),u()(),d(34,"div",6),z(35,"input",26),u(),d(36,"div",22),R(37,vV,3,2,"div",23),u()()(),d(38,"div",17)(39,"div",18)(40,"div",19)(41,"label",27),C(42,"CUIT"),u()(),d(43,"div",6),z(44,"input",28),u(),d(45,"div",22),R(46,_V,3,2,"div",23),u()()()(),d(47,"div",6)(48,"div",17)(49,"div",18)(50,"div",19)(51,"label",29),C(52,"Tel\xE9fono"),u()(),d(53,"div",6),z(54,"input",30),u(),d(55,"div",22),R(56,CV,2,0,"div",23),u()()(),d(57,"div",31)(58,"div",18)(59,"div",19)(60,"label",32),C(61,"Direccion"),u()(),d(62,"div",6),z(63,"input",33),u(),d(64,"div",22),R(65,wV,2,0,"div",23),u()()(),d(66,"div",17)(67,"div",18)(68,"div",24)(69,"label",34),C(70,"CP"),u()(),d(71,"div",19),z(72,"input",35),u(),d(73,"div",19)(74,"label",36),C(75,"Notas"),u()(),d(76,"div",37),z(77,"input",38),u(),d(78,"div",22),R(79,EV,2,0,"div",23)(80,SV,2,0,"div",23),u()()()()()(),d(81,"div",39)(82,"button",40),C(83," GUARDAR "),u(),d(84,"button",41),X("click",function(){return fe(s),he(o.confirmDelete())}),C(85," BORRAR "),u()()()()()(),R(86,IV,1,2,"app-delete-modal",42)}if(r&2){let s,a,l,p,h,v,w,g,S,I,A,x,P,U,q=vt(16);b(15),_("formGroup",o.clientForm),b(13),_("ngClass",ye(17,lc,(((s=o.clientForm.get("name"))==null?null:s.dirty)||((s=o.clientForm.get("name"))==null?null:s.touched)||q.submitted)&&((s=o.clientForm.get("name"))==null?null:s.invalid))),b(2),_("ngIf",q.submitted||((a=o.clientForm.get("name"))==null?null:a.invalid)&&(((a=o.clientForm.get("name"))==null?null:a.dirty)||((a=o.clientForm.get("name"))==null?null:a.touched))),b(5),_("ngClass",ye(19,lc,(((l=o.clientForm.get("email"))==null?null:l.dirty)||((l=o.clientForm.get("email"))==null?null:l.touched)||q.submitted)&&((l=o.clientForm.get("email"))==null?null:l.invalid))),b(2),_("ngIf",q.submitted||((p=o.clientForm.get("email"))==null?null:p.invalid)&&(((p=o.clientForm.get("email"))==null?null:p.dirty)||((p=o.clientForm.get("email"))==null?null:p.touched))),b(7),_("ngClass",ye(21,lc,(((h=o.clientForm.get("cuit"))==null?null:h.dirty)||((h=o.clientForm.get("cuit"))==null?null:h.touched)||q.submitted)&&((h=o.clientForm.get("cuit"))==null?null:h.invalid))),b(2),_("ngIf",q.submitted||((v=o.clientForm.get("cuit"))==null?null:v.invalid)&&(((v=o.clientForm.get("cuit"))==null?null:v.dirty)||((v=o.clientForm.get("cuit"))==null?null:v.touched))),b(8),_("ngClass",ye(23,lc,(((w=o.clientForm.get("phone"))==null?null:w.dirty)||((w=o.clientForm.get("phone"))==null?null:w.touched)||q.submitted)&&((w=o.clientForm.get("phone"))==null?null:w.invalid))),b(2),_("ngIf",q.submitted&&((g=o.clientForm.get("phones"))==null?null:g.invalid)||((g=o.clientForm.get("phone"))==null?null:g.invalid)&&(((g=o.clientForm.get("phone"))==null?null:g.dirty)||((g=o.clientForm.get("phone"))==null?null:g.touched))),b(7),_("ngClass",ye(25,lc,(((S=o.clientForm.get("address"))==null?null:S.dirty)||((S=o.clientForm.get("address"))==null?null:S.touched)||q.submitted)&&((S=o.clientForm.get("address"))==null?null:S.invalid))),b(2),_("ngIf",q.submitted&&((I=o.clientForm.get("address"))==null?null:I.invalid)||((I=o.clientForm.get("address"))==null?null:I.invalid)&&(((I=o.clientForm.get("address"))==null?null:I.dirty)||((I=o.clientForm.get("address"))==null?null:I.touched))),b(7),_("ngClass",ye(27,lc,(((A=o.clientForm.get("cp"))==null?null:A.dirty)||((A=o.clientForm.get("cp"))==null?null:A.touched)||q.submitted)&&((A=o.clientForm.get("cp"))==null?null:A.invalid))),b(5),_("ngClass",ye(29,lc,(((x=o.clientForm.get("line2"))==null?null:x.dirty)||((x=o.clientForm.get("linea2"))==null?null:x.touched)||q.submitted)&&((x=o.clientForm.get("linea2"))==null?null:x.invalid))),b(2),_("ngIf",((P=o.clientForm.get("line2"))==null?null:P.invalid)&&(((P=o.clientForm.get("line2"))==null?null:P.dirty)||((P=o.clientForm.get("line2"))==null?null:P.touched))),b(),_("ngIf",q.submitted&&((U=o.clientForm.get("cp"))==null?null:U.invalid)||((U=o.clientForm.get("cp"))==null?null:U.invalid)&&(((U=o.clientForm.get("cp"))==null?null:U.dirty)||((U=o.clientForm.get("cp"))==null?null:U.touched))),b(2),_("disabled",!o.isToggled),b(4),_("ngIf",o.confirmDeleteModal)}},dependencies:[rt,kt,st,$t,an,Yt,Hn,Xt,sn,en,nn,go],styles:[`@charset "UTF-8";.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:366px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.row-container[_ngcontent-%COMP%]{position:relative;min-height:5em}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.form-group[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]{margin-bottom:10px}.modal-footer[_ngcontent-%COMP%]{border-top:none}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.custom-switch[_ngcontent-%COMP%]:focus{border-color:#1b5e20;box-shadow:0 0 0 .25rem #1b5e2040}.custom-switch[_ngcontent-%COMP%]:checked{background-color:#88ca5e;border-color:#1b5e20}.custom-switch[_ngcontent-%COMP%]:checked:before{background-color:#fff}.form-control[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important;font-size:1.2rem}
+/*# sourceMappingURL=client.component-VSD23SL2.css.map */`]});let e=t;return e})();var Xx=(()=>{let t=class t{constructor(n){this.http=n,this.apiUrl=Si.apiUrl+"/api/SalesChannels"}getClients(){return this.http.get(this.apiUrl).pipe(ut(n=>ol(n)),nt(ft))}getClientById(n){return this.http.get(`${this.apiUrl}/${n}`).pipe(ut(r=>ol(r)),nt(ft))}createClient(n){return this.http.post(this.apiUrl,n).pipe(nt(ft))}updateClient(n){return this.http.put(this.apiUrl,n).pipe(nt(ft))}deleteClient(n){return this.http.delete(`${this.apiUrl}/${n}`).pipe(nt(ft))}};t.\u0275fac=function(r){return new(r||t)(Ye(ui))},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function DV(e,t){if(e&1){let i=je();d(0,"app-add-client",11),X("closeModalEvent",function(){fe(i);let r=j();return he(r.closeAddClientModal())}),u()}}function MV(e,t){if(e&1){let i=je();d(0,"app-client",12),X("closeClientModalEvent",function(){fe(i);let r=j();return he(r.closeClientModal())}),u()}if(e&2){let i=j();_("clientInput",i.selectedClient)}}var e3=(()=>{let t=class t{constructor(n){this.ClientsService=n,this.clients=[],this.backUpClients=[],this.addClientModal=!1,this.openClientModal=!1,this.exportColumns=["description","cuit"]}ngOnInit(){this.getClients()}openAddClientModal(){this.addClientModal=!0}closeAddClientModal(){this.getClients(),this.addClientModal=!1}onRowClicked(n){this.selectedClient=n,this.openClientModal=!0}closeClientModal(){this.getClients(),this.openClientModal=!1}handleSearch(n){this.clients=this.backUpClients,this.clients=Ms(this.clients,this.exportColumns,n)}getClients(){this.ClientsService.getClients().subscribe(n=>{this.clients=n,this.backUpClients=n})}};t.\u0275fac=function(r){return new(r||t)(ee(Xx))},t.\u0275cmp=Re({type:t,selectors:[["app-clients"]],standalone:!0,features:[Ve],decls:15,vars:3,consts:[[1,"container-fluid","d-flex","flex-column","justify-content-center","align-items-center","vh-100"],[1,"col-flex","justify-content-center","align-items-center"],[1,"row","header-row"],[1,"col"],[1,"view-title"],[3,"search"],[1,"col","d-flex","justify-content-center"],[1,"btn","btn-custom",3,"click"],[3,"rowClicked","data"],[3,"closeModalEvent",4,"ngIf"],[3,"clientInput","closeClientModalEvent",4,"ngIf"],[3,"closeModalEvent"],[3,"closeClientModalEvent","clientInput"]],template:function(r,o){r&1&&(z(0,"app-navbar"),d(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"h1",4),C(6,"Clientes"),u()(),d(7,"div",3)(8,"app-search-bar",5),X("search",function(a){return o.handleSearch(a)}),u()(),d(9,"div",6)(10,"button",7),X("click",function(){return o.openAddClientModal()}),C(11,"AGREGAR CLIENTE"),u()()(),d(12,"app-table",8),X("rowClicked",function(a){return o.onRowClicked(a)}),u()()(),R(13,DV,1,0,"app-add-client",9)(14,MV,1,1,"app-client",10)),r&2&&(b(12),_("data",o.clients),b(),_("ngIf",o.addClientModal),b(),_("ngIf",o.openClientModal))},dependencies:[Fn,ho,mo,Zx,Jx,rt,st],styles:[`[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/clients.svg);background-size:cover;background-position:center;background-repeat:no-repeat}.view-title[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;color:#1b5e20;font-size:2.5rem;padding-left:1.5rem}.header-row[_ngcontent-%COMP%]{padding-bottom:20px;align-items:center}.vh-100[_ngcontent-%COMP%]{height:88vh!important}.btn-custom[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1.5rem;color:#1b5e20}
+/*# sourceMappingURL=clients.component-VASF33KL.css.map */`]});let e=t;return e})();var AV=[[["p-header"]]],TV=["p-header"];function FV(e,t){e&1&&$o(0)}function NV(e,t){if(e&1&&(d(0,"div",3),Yr(1),R(2,FV,1,0,"ng-container",4),u()),e&2){let i=j();b(2),_("ngTemplateOutlet",i.headerTemplate)}}function PV(e,t){e&1&&(d(0,"div",3)(1,"span",5)(2,"select",6)(3,"option",7),C(4,"Heading"),u(),d(5,"option",8),C(6,"Subheading"),u(),d(7,"option",9),C(8,"Normal"),u()(),d(9,"select",10)(10,"option",9),C(11,"Sans Serif"),u(),d(12,"option",11),C(13,"Serif"),u(),d(14,"option",12),C(15,"Monospace"),u()()(),d(16,"span",5),z(17,"button",13)(18,"button",14)(19,"button",15),u(),d(20,"span",5),z(21,"select",16)(22,"select",17),u(),d(23,"span",5),z(24,"button",18)(25,"button",19),d(26,"select",20),z(27,"option",9),d(28,"option",21),C(29,"center"),u(),d(30,"option",22),C(31,"right"),u(),d(32,"option",23),C(33,"justify"),u()()(),d(34,"span",5),z(35,"button",24)(36,"button",25)(37,"button",26),u(),d(38,"span",5),z(39,"button",27),u()())}var OV={provide:Ss,useExisting:Fi(()=>da),multi:!0},da=(()=>{class e{el;platformId;style;styleClass;placeholder;formats;modules;bounds;scrollingContainer;debug;get readonly(){return this._readonly}set readonly(i){this._readonly=i,this.quill&&(this._readonly?this.quill.disable():this.quill.enable())}onInit=new ot;onTextChange=new ot;onSelectionChange=new ot;templates;toolbar;value;delayedCommand=null;_readonly=!1;onModelChange=()=>{};onModelTouched=()=>{};quill;dynamicQuill;headerTemplate;get isAttachedQuillEditorToDOM(){return this.quillElements?.editorElement?.isConnected}quillElements;constructor(i,n){this.el=i,this.platformId=n,_u(()=>{this.initQuillElements(),this.initQuillEditor()})}ngAfterContentInit(){this.templates.forEach(i=>{switch(i.getType()){case"header":this.headerTemplate=i.template;break}})}writeValue(i){if(this.value=i,this.quill)if(i){let n=()=>{this.quill.setContents(this.quill.clipboard.convert(this.dynamicQuill.version.startsWith("2")?{html:this.value}:this.value))};this.isAttachedQuillEditorToDOM?n():this.delayedCommand=n}else{let n=()=>{this.quill.setText("")};this.isAttachedQuillEditorToDOM?n():this.delayedCommand=n}}registerOnChange(i){this.onModelChange=i}registerOnTouched(i){this.onModelTouched=i}getQuill(){return this.quill}initQuillEditor(){ec(this.platformId)||(this.dynamicQuill?this.createQuillEditor():import("./chunk-YFDWI534.js").then(i=>{this.dynamicQuill=i.default,this.createQuillEditor()}).catch(i=>console.error(i.message)))}createQuillEditor(){this.initQuillElements();let{toolbarElement:i,editorElement:n}=this.quillElements,r={toolbar:i},o=this.modules?ze(ze({},r),this.modules):r;this.quill=new this.dynamicQuill(n,{modules:o,placeholder:this.placeholder,readOnly:this.readonly,theme:"snow",formats:this.formats,bounds:this.bounds,debug:this.debug,scrollingContainer:this.scrollingContainer});let s=this.dynamicQuill.version.startsWith("2");this.value&&this.quill.setContents(this.quill.clipboard.convert(s?{html:this.value}:this.value)),this.quill.on("text-change",(a,l,p)=>{if(p==="user"){let h=s?this.quill.getSemanticHTML():En.findSingle(n,".ql-editor").innerHTML,v=this.quill.getText().trim();h==="<p><br></p>"&&(h=null),this.onTextChange.emit({htmlValue:h,textValue:v,delta:a,source:p}),this.onModelChange(h),this.onModelTouched()}}),this.quill.on("selection-change",(a,l,p)=>{this.onSelectionChange.emit({range:a,oldRange:l,source:p})}),this.onInit.emit({editor:this.quill})}initQuillElements(){this.quillElements||(this.quillElements={editorElement:En.findSingle(this.el.nativeElement,"div.p-editor-content"),toolbarElement:En.findSingle(this.el.nativeElement,"div.p-editor-toolbar")})}static \u0275fac=function(n){return new(n||e)(ee(Rn),ee(_i))};static \u0275cmp=Re({type:e,selectors:[["p-editor"]],contentQueries:function(n,r,o){if(n&1&&(co(o,Lg,5),co(o,Ki,4)),n&2){let s;Mr(s=Ar())&&(r.toolbar=s.first),Mr(s=Ar())&&(r.templates=s)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",placeholder:"placeholder",formats:"formats",modules:"modules",bounds:"bounds",scrollingContainer:"scrollingContainer",debug:"debug",readonly:"readonly"},outputs:{onInit:"onInit",onTextChange:"onTextChange",onSelectionChange:"onSelectionChange"},features:[Wi([OV])],ngContentSelectors:TV,decls:4,vars:6,consts:[[3,"ngClass"],["class","p-editor-toolbar",4,"ngIf"],[1,"p-editor-content",3,"ngStyle"],[1,"p-editor-toolbar"],[4,"ngTemplateOutlet"],[1,"ql-formats"],[1,"ql-header"],["value","1"],["value","2"],["selected",""],[1,"ql-font"],["value","serif"],["value","monospace"],["aria-label","Bold","type","button",1,"ql-bold"],["aria-label","Italic","type","button",1,"ql-italic"],["aria-label","Underline","type","button",1,"ql-underline"],[1,"ql-color"],[1,"ql-background"],["value","ordered","aria-label","Ordered List","type","button",1,"ql-list"],["value","bullet","aria-label","Unordered List","type","button",1,"ql-list"],[1,"ql-align"],["value","center"],["value","right"],["value","justify"],["aria-label","Insert Link","type","button",1,"ql-link"],["aria-label","Insert Image","type","button",1,"ql-image"],["aria-label","Insert Code Block","type","button",1,"ql-code-block"],["aria-label","Remove Styles","type","button",1,"ql-clean"]],template:function(n,r){n&1&&(lo(AV),d(0,"div",0),R(1,NV,3,1,"div",1)(2,PV,40,0,"div",1),z(3,"div",2),u()),n&2&&(Ci(r.styleClass),_("ngClass","p-editor-container"),b(),_("ngIf",r.toolbar||r.headerTemplate),b(),_("ngIf",!r.toolbar&&!r.headerTemplate),b(),_("ngStyle",r.style))},dependencies:[kt,st,Iu,Su],styles:[`.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item{width:auto;height:auto}
+`],encapsulation:2,changeDetection:0})}return e})(),ml=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Qn({type:e});static \u0275inj=Kn({imports:[rt,Os]})}return e})();var gl=e=>({"is-invalid":e}),RV=()=>({height:"240px"});function LV(e,t){e&1&&(d(0,"div"),C(1,"Nombre es requerido."),u())}function kV(e,t){e&1&&(d(0,"div"),C(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),u())}function jV(e,t){if(e&1&&(d(0,"div",32),R(1,LV,2,0,"div",33)(2,kV,2,0,"div",33),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.recipeForm.get("name"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.recipeForm.get("name"))==null||n.errors==null)&&n.errors.required)&&((n=r.recipeForm.get("name"))==null||n.errors==null?null:n.errors.pattern))}}function VV(e,t){if(e&1&&(d(0,"option",41),C(1),u()),e&2){let i=t.$implicit;_("value",i),b(),yt(" ",i," ")}}function BV(e,t){if(e&1){let i=je();d(0,"div")(1,"button",42),X("click",function(){fe(i);let r=j().index,o=j();return he(o.removeIngredient(r))}),z(2,"i",43),u()()}}function UV(e,t){if(e&1&&(d(0,"div",34)(1,"div",23)(2,"div",6),z(3,"input",35),u(),d(4,"div",36),z(5,"input",37),u(),d(6,"div",36)(7,"select",38)(8,"option",39),C(9,"..."),u(),R(10,VV,2,2,"option",40),u()(),d(11,"div",36),R(12,BV,3,0,"div",33),u()()()),e&2){let i,n,r,o=t.$implicit,s=t.index,a=j(),l=vt(5);_("formGroupName",s),b(3),dn("id","ingredient-name-",s,""),_("ngClass",ye(12,gl,(((i=o.get("name"))==null?null:i.dirty)||((i=o.get("name"))==null?null:i.touched)||l.submitted)&&((i=o.get("name"))==null?null:i.invalid))),b(2),dn("id","ingredient-quantity-",s,""),_("ngClass",ye(14,gl,(((n=o.get("quantity"))==null?null:n.dirty)||((n=o.get("quantity"))==null?null:n.touched)||l.submitted)&&((n=o.get("quantity"))==null?null:n.invalid))),b(2),dn("id","ingredient-unit-",s,""),_("ngClass",ye(16,gl,(((r=o.get("unit"))==null?null:r.dirty)||((r=o.get("unit"))==null?null:r.touched)||l.submitted)&&((r=o.get("unit"))==null?null:r.invalid))),b(3),_("ngForOf",a.units),b(2),_("ngIf",s!==0)}}function qV(e,t){if(e&1&&(d(0,"option",41),C(1),u()),e&2){let i=t.$implicit;_("value",i),b(),yt(" ",i," ")}}function $V(e,t){if(e&1){let i=je();d(0,"div")(1,"button",42),X("click",function(){fe(i);let r=j().index,o=j();return he(o.removeInput(r))}),z(2,"i",43),u()()}}function HV(e,t){if(e&1&&(d(0,"div",34)(1,"div",23)(2,"div",6),z(3,"input",44),u(),d(4,"div",12),z(5,"input",45),u(),d(6,"div",36)(7,"select",38)(8,"option",39),C(9,"..."),u(),R(10,qV,2,2,"option",40),u()(),d(11,"div",36),R(12,$V,3,0,"div",33),u()()()),e&2){let i,n,r,o=t.$implicit,s=t.index,a=j(),l=vt(5);_("formGroupName",s),b(3),dn("id","inputs-name-",s,""),_("ngClass",ye(12,gl,(((i=o.get("name"))==null?null:i.dirty)||((i=o.get("name"))==null?null:i.touched)||l.submitted)&&((i=o.get("name"))==null?null:i.invalid))),b(2),dn("id","inputs-quantity-",s,""),_("ngClass",ye(14,gl,(((n=o.get("quantity"))==null?null:n.dirty)||((n=o.get("quantity"))==null?null:n.touched)||l.submitted)&&((n=o.get("quantity"))==null?null:n.invalid))),b(2),dn("id","inputs-unit-",s,""),_("ngClass",ye(16,gl,(((r=o.get("unit"))==null?null:r.dirty)||((r=o.get("unit"))==null?null:r.touched)||l.submitted)&&((r=o.get("unit"))==null?null:r.invalid))),b(3),_("ngForOf",a.units),b(2),_("ngIf",s!==0)}}function zV(e,t){e&1&&(d(0,"span",46)(1,"select",47),z(2,"option",48),d(3,"option",49),C(4,"Heading 1"),u(),d(5,"option",50),C(6,"Heading 2"),u(),d(7,"option",51),C(8,"Heading 3"),u()(),d(9,"select",52),z(10,"option",48),d(11,"option",53),C(12,"Serif"),u(),d(13,"option",54),C(14,"Monospace"),u()(),z(15,"button",55)(16,"button",56)(17,"button",57),d(18,"select",58),z(19,"option",48),d(20,"option",59),C(21,"Center"),u(),d(22,"option",60),C(23,"Right"),u(),d(24,"option",61),C(25,"Justify"),u()(),z(26,"button",62)(27,"button",63)(28,"button",64),u())}function GV(e,t){e&1&&(d(0,"div"),C(1,"Procedimiento es requerido."),u())}function WV(e,t){e&1&&(d(0,"div"),C(1," Es necesario agregar un procedimiento. "),u())}function YV(e,t){if(e&1&&(d(0,"div",32),R(1,GV,2,0,"div",33)(2,WV,2,0,"div",33),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.recipeForm.get("procedure"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.recipeForm.get("procedure"))==null||n.errors==null)&&n.errors.required)&&((n=r.recipeForm.get("procedure"))==null||n.errors==null?null:n.errors.pattern))}}var t3=(()=>{let t=class t{constructor(n,r,o){this.formBuilder=n,this.recipesService=r,this.router=o,this.units=[],this.toolbar=[["bold","italic","underline","strike"],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"}],[{header:1},{header:2}],[{align:[]}],["link","clean"]],this.recipeForm=this.formBuilder.group({name:["",[se.required,se.pattern("^[a-zA-Z0-9 ]*$")]],procedure:["",[se.required]],ingredients:this.formBuilder.array([this.createIngredientFormGroup()]),inputs:this.formBuilder.array([this.createInputsFormGroup()])})}ngOnInit(){this.units=Object.values(Yi)}createIngredientFormGroup(){return this.formBuilder.group({name:["",[se.required,se.pattern("^[a-zA-Z ]*$")]],quantity:["",[se.required,se.pattern("^[0-9]*$")]],unit:["",[se.required]]})}createInputsFormGroup(){return this.formBuilder.group({name:["",[se.required,se.pattern("^[a-zA-Z0-9 ]*$")]],quantity:["",[se.required,se.pattern("^[0-9]*$")]],unit:["",[se.required]]})}get ingredients(){return this.recipeForm.get("ingredients")}addIngredient(){this.ingredients.push(this.createIngredientFormGroup())}removeIngredient(n){this.ingredients.removeAt(n)}get inputs(){return this.recipeForm.get("inputs")}addInput(){this.inputs.push(this.createIngredientFormGroup())}removeInput(n){this.inputs.removeAt(n)}onSubmit(){if(console.log(this.recipeForm),this.recipeForm.valid){let n=this.recipeForm.get("ingredients")?.value.map(s=>`${s.name},${s.quantity},${s.unit}`).join(";");console.log(n);let r=this.recipeForm.get("inputs")?.value.map(s=>`${s.name},${s.quantity},${s.unit}`).join(";");console.log(r);let o={name:this.recipeForm.get("name")?.value,description:this.recipeForm.get("procedure")?.value,recipeIngredients:n,recipePackagingElements:r};this.recipesService.createRecipe(o).subscribe(s=>{console.log(s),this.router.navigate(["/recipes"])},s=>{console.error(s)})}}};t.\u0275fac=function(r){return new(r||t)(ee(ln),ee(ul),ee(Jt))},t.\u0275cmp=Re({type:t,selectors:[["app-add-recipe"]],standalone:!0,features:[Ve],decls:56,vars:14,consts:[["aux","ngForm"],[1,"container-fluid","d-flex","flex-column","justify-content-center","align-items-center","vh-100"],[1,"row","justify-content-center","align-items-center","w-100"],[1,"col-10","col-main"],[1,"w-100",3,"ngSubmit","formGroup"],[1,"row","header-row","mb-4"],[1,"col"],[1,"view-title"],[1,"col","d-flex","justify-content-end"],["type","submit",1,"btn","btn-custom"],[1,"row","custom-row"],[1,"row","mb-3","align-items-center"],[1,"col-3"],["for","name",1,"title"],[1,"col-6"],["type","text","id","name","name","name","formControlName","name",1,"form-control",3,"ngClass"],[1,"error-container"],["class","text-danger",4,"ngIf"],[1,"col-3","d-flex","justify-content-end"],["type","button",1,"btn","btn-secondary"],[1,"row","align-items-center","py-2"],[1,"col-md-6"],[1,"form-group"],[1,"row","align-items-center"],[1,"title"],["type","button",1,"btn","btn-icon","text-success",3,"click"],[1,"bi","bi-plus-square-fill"],["formArrayName","ingredients",1,"adder-container"],["class","form-group adder-row",3,"formGroupName",4,"ngFor","ngForOf"],["formArrayName","inputs",1,"adder-container"],["formControlName","procedure",1,"form-control","p-editor-custom",3,"ngClass"],["pTemplate","header"],[1,"text-danger"],[4,"ngIf"],[1,"form-group","adder-row",3,"formGroupName"],["formControlName","name","placeholder","Nombre del ingrediente",1,"form-control",3,"id","ngClass"],[1,"col-2"],["type","number","formControlName","quantity","placeholder","Cantidad",1,"form-control",3,"id","ngClass"],["formControlName","unit","aria-label","Unit Selection",1,"form-select","me-2",3,"id","ngClass"],["value","","disabled","","selected",""],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["type","button",1,"btn","btn-icon","text-danger",3,"click"],[1,"bi","bi-x-square-fill"],["formControlName","name","placeholder","Nombre del insumo",1,"form-control",3,"id","ngClass"],["formControlName","quantity","placeholder","Cantidad",1,"form-control",3,"id","ngClass"],[1,"ql-formats"],["aria-label","Select header",1,"ql-header"],["selected",""],["value","1"],["value","2"],["value","3"],["aria-label","Select font",1,"ql-font"],["value","serif"],["value","monospace"],["aria-label","Bold",1,"ql-bold"],["aria-label","Italic",1,"ql-italic"],["aria-label","Underline",1,"ql-underline"],["aria-label","Select align",1,"ql-align"],["value","center"],["value","right"],["value","justify"],["value","ordered","aria-label","Ordered list",1,"ql-list"],["value","bullet","aria-label","Bullet list",1,"ql-list"],["aria-label","Insert link",1,"ql-link"]],template:function(r,o){if(r&1){let s=je();z(0,"app-navbar"),d(1,"div",1)(2,"div",2)(3,"div",3)(4,"form",4,0),X("ngSubmit",function(){return fe(s),he(o.onSubmit())}),d(6,"div",5)(7,"div",6)(8,"h1",7),C(9,"Nueva Receta"),u()(),d(10,"div",8)(11,"button",9),C(12,"GUARDAR"),u()()(),d(13,"div",10)(14,"div",11)(15,"div",12)(16,"label",13),C(17,"Nombre"),u()(),d(18,"div",14),z(19,"input",15),d(20,"div",16),R(21,jV,3,2,"div",17),u()(),d(22,"div",18)(23,"button",19),C(24,"Subir Imagen"),u()()(),d(25,"div",20)(26,"div",21)(27,"div",22)(28,"div",23)(29,"div",6)(30,"label",24),C(31,"Ingredientes"),u()(),d(32,"div",8)(33,"button",25),X("click",function(){return fe(s),he(o.addIngredient())}),z(34,"i",26),u()()(),d(35,"div",27),R(36,UV,13,18,"div",28),u()()(),d(37,"div",21)(38,"div",22)(39,"div",23)(40,"div",6)(41,"label",24),C(42,"Insumos"),u()(),d(43,"div",8)(44,"button",25),X("click",function(){return fe(s),he(o.addInput())}),z(45,"i",26),u()()(),d(46,"div",29),R(47,HV,13,18,"div",28),u()()()(),z(48,"hr"),d(49,"div",22)(50,"label",24),C(51,"Procedimiento"),u(),d(52,"p-editor",30),R(53,zV,29,0,"ng-template",31),u(),d(54,"div",16),R(55,YV,3,2,"div",17),u()()()()()()()}if(r&2){let s,a,l,p,h=vt(5);b(4),_("formGroup",o.recipeForm),b(15),_("ngClass",ye(9,gl,(((s=o.recipeForm.get("name"))==null?null:s.dirty)||((s=o.recipeForm.get("name"))==null?null:s.touched)||h.submitted)&&((s=o.recipeForm.get("name"))==null?null:s.invalid))),b(2),_("ngIf",h.submitted||((a=o.recipeForm.get("name"))==null?null:a.invalid)&&(((a=o.recipeForm.get("name"))==null?null:a.dirty)||((a=o.recipeForm.get("name"))==null?null:a.touched))),b(15),_("ngForOf",o.ingredients.controls),b(11),_("ngForOf",o.inputs.controls),b(5),Ga(ys(11,RV)),_("ngClass",ye(12,gl,(((l=o.recipeForm.get("procedure"))==null?null:l.dirty)||((l=o.recipeForm.get("procedure"))==null?null:l.touched)||h.submitted)&&((l=o.recipeForm.get("procedure"))==null?null:l.invalid))),b(3),_("ngIf",h.submitted||((p=o.recipeForm.get("procedure"))==null?null:p.invalid)&&(((p=o.recipeForm.get("procedure"))==null?null:p.dirty)||((p=o.recipeForm.get("procedure"))==null?null:p.touched)))}},dependencies:[Fn,rt,kt,Cn,st,$t,an,Vi,Bi,Yt,Hn,Ei,Xt,sn,en,nn,Is,xs,ml,da,Ki],styles:[`@charset "UTF-8";[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/recipes.svg);background-size:cover;background-position:center;background-repeat:no-repeat}.view-title[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;color:#1b5e20;font-size:2.5rem;padding-left:1.5rem}.header-row[_ngcontent-%COMP%]{padding-bottom:14px;align-items:center}.title[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-size:1rem}.vh-100[_ngcontent-%COMP%]{height:88vh!important}.btn-custom[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1.5rem;color:#1b5e20}.custom-row[_ngcontent-%COMP%]{background-color:#d2ffaa;padding:.5rem}.btn-icon[_ngcontent-%COMP%]{font-size:1.6rem}.adder-container[_ngcontent-%COMP%]{height:140px;overflow-y:auto;overflow-x:hidden;padding:6px}.adder-row[_ngcontent-%COMP%]{margin:0;padding:0}.adder-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:12px}.adder-container[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:#88ca5e}.adder-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#1b5e20}.adder-container[_ngcontent-%COMP%]::-webkit-scrollbar-button{background-color:#1b5e20}.form-control[_ngcontent-%COMP%], .form-select[_ngcontent-%COMP%]{min-width:0;box-sizing:border-box}hr[_ngcontent-%COMP%]{border-top:1px solid #1b5e20}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.p-editor-custom[_ngcontent-%COMP%]{height:300px!important}.p-editor[_ngcontent-%COMP%]   .p-editor-conteiner[_ngcontent-%COMP%]::-webkit-scrollbar{width:12px}.p-editor[_ngcontent-%COMP%]   .p-editor-conteiner[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:#88ca5e}.p-editor[_ngcontent-%COMP%]   .p-editor-content[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#1b5e20}.p-editor[_ngcontent-%COMP%]   .p-editor-content[_ngcontent-%COMP%]::-webkit-scrollbar-button{background-color:#1b5e20}
+/*# sourceMappingURL=add-recipe.component-OXDUGI23.css.map */`]});let e=t;return e})();var vl=e=>({"is-invalid":e}),KV=()=>({height:"240px"});function QV(e,t){e&1&&(d(0,"div"),C(1,"Nombre es requerido."),u())}function ZV(e,t){e&1&&(d(0,"div"),C(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),u())}function JV(e,t){if(e&1&&(d(0,"div",30),R(1,QV,2,0,"div",31)(2,ZV,2,0,"div",31),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.recipeForm.get("name"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.recipeForm.get("name"))==null||n.errors==null)&&n.errors.required)&&((n=r.recipeForm.get("name"))==null||n.errors==null?null:n.errors.pattern))}}function XV(e,t){if(e&1&&(d(0,"option",39),C(1),u()),e&2){let i=t.$implicit;_("value",i),b(),yt(" ",i," ")}}function eB(e,t){if(e&1){let i=je();d(0,"div")(1,"button",40),X("click",function(){fe(i);let r=j().index,o=j();return he(o.removeIngredient(r))}),z(2,"i",41),u()()}}function tB(e,t){if(e&1&&(d(0,"div",32)(1,"div",21)(2,"div",6),z(3,"input",33),u(),d(4,"div",34),z(5,"input",35),u(),d(6,"div",34)(7,"select",36)(8,"option",37),C(9,"..."),u(),R(10,XV,2,2,"option",38),u()(),d(11,"div",34),R(12,eB,3,0,"div",31),u()()()),e&2){let i,n,r,o=t.$implicit,s=t.index,a=j(),l=vt(5);_("formGroupName",s),b(3),dn("id","ingredient-name-",s,""),_("ngClass",ye(12,vl,(((i=o.get("name"))==null?null:i.dirty)||((i=o.get("name"))==null?null:i.touched)||l.submitted)&&((i=o.get("name"))==null?null:i.invalid))),b(2),dn("id","ingredient-quantity-",s,""),_("ngClass",ye(14,vl,(((n=o.get("quantity"))==null?null:n.dirty)||((n=o.get("quantity"))==null?null:n.touched)||l.submitted)&&((n=o.get("quantity"))==null?null:n.invalid))),b(2),dn("id","ingredient-unit-",s,""),_("ngClass",ye(16,vl,(((r=o.get("unit"))==null?null:r.dirty)||((r=o.get("unit"))==null?null:r.touched)||l.submitted)&&((r=o.get("unit"))==null?null:r.invalid))),b(3),_("ngForOf",a.units),b(2),_("ngIf",s!==0)}}function nB(e,t){if(e&1&&(d(0,"option",39),C(1),u()),e&2){let i=t.$implicit;_("value",i),b(),yt(" ",i," ")}}function iB(e,t){if(e&1){let i=je();d(0,"div")(1,"button",40),X("click",function(){fe(i);let r=j().index,o=j();return he(o.removeInput(r))}),z(2,"i",41),u()()}}function rB(e,t){if(e&1&&(d(0,"div",32)(1,"div",21)(2,"div",6),z(3,"input",42),u(),d(4,"div",14),z(5,"input",43),u(),d(6,"div",34)(7,"select",36)(8,"option",37),C(9,"..."),u(),R(10,nB,2,2,"option",38),u()(),d(11,"div",34),R(12,iB,3,0,"div",31),u()()()),e&2){let i,n,r,o=t.$implicit,s=t.index,a=j(),l=vt(5);_("formGroupName",s),b(3),dn("id","inputs-name-",s,""),_("ngClass",ye(12,vl,(((i=o.get("name"))==null?null:i.dirty)||((i=o.get("name"))==null?null:i.touched)||l.submitted)&&((i=o.get("name"))==null?null:i.invalid))),b(2),dn("id","inputs-quantity-",s,""),_("ngClass",ye(14,vl,(((n=o.get("quantity"))==null?null:n.dirty)||((n=o.get("quantity"))==null?null:n.touched)||l.submitted)&&((n=o.get("quantity"))==null?null:n.invalid))),b(2),dn("id","inputs-unit-",s,""),_("ngClass",ye(16,vl,(((r=o.get("unit"))==null?null:r.dirty)||((r=o.get("unit"))==null?null:r.touched)||l.submitted)&&((r=o.get("unit"))==null?null:r.invalid))),b(3),_("ngForOf",a.units),b(2),_("ngIf",s!==0)}}function oB(e,t){e&1&&(d(0,"span",44)(1,"select",45),z(2,"option",46),d(3,"option",47),C(4,"Heading 1"),u(),d(5,"option",48),C(6,"Heading 2"),u(),d(7,"option",49),C(8,"Heading 3"),u()(),d(9,"select",50),z(10,"option",46),d(11,"option",51),C(12,"Serif"),u(),d(13,"option",52),C(14,"Monospace"),u()(),z(15,"button",53)(16,"button",54)(17,"button",55),d(18,"select",56),z(19,"option",46),d(20,"option",57),C(21,"Center"),u(),d(22,"option",58),C(23,"Right"),u(),d(24,"option",59),C(25,"Justify"),u()(),z(26,"button",60)(27,"button",61)(28,"button",62),u())}function sB(e,t){e&1&&(d(0,"div"),C(1,"Procedimiento es requerido."),u())}function aB(e,t){e&1&&(d(0,"div"),C(1," Es necesario agregar un procedimiento. "),u())}function lB(e,t){if(e&1&&(d(0,"div",30),R(1,sB,2,0,"div",31)(2,aB,2,0,"div",31),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.recipeForm.get("procedure"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.recipeForm.get("procedure"))==null||n.errors==null)&&n.errors.required)&&((n=r.recipeForm.get("procedure"))==null||n.errors==null?null:n.errors.pattern))}}var i3=(()=>{let t=class t{constructor(n,r,o,s){this.formBuilder=n,this.route=r,this.recipeService=o,this.router=s,this.id=0,this.units=[],this.recipeForm=this.formBuilder.group({name:["",[se.required,se.pattern("[a-zA-Z ]*")]],procedure:["",[se.required]],ingredients:this.formBuilder.array([this.createIngredientFormGroup()]),inputs:this.formBuilder.array([this.createInputsFormGroup()])})}ngOnInit(){this.id=+(this.route.snapshot.paramMap.get("id")??0),this.id!==0&&(this.recipe=this.recipeService.getRecipeById(this.id).subscribe(n=>{this.recipe=n,this.patchForm()})),this.units=Object.values(Yi)}createIngredientFormGroup(){return this.formBuilder.group({name:["",[se.required,se.pattern("^[a-zA-Z ]*$")]],quantity:["",[se.required,se.pattern("^[0-9]*$")]],unit:["",[se.required]]})}createInputsFormGroup(){return this.formBuilder.group({name:["",[se.required,se.pattern("^[a-zA-Z ]*$")]],quantity:["",[se.required,se.pattern("^[0-9]*$")]],unit:["",[se.required]]})}get ingredients(){return this.recipeForm.get("ingredients")}addIngredient(){this.ingredients.push(this.createIngredientFormGroup())}removeIngredient(n){this.ingredients.removeAt(n)}get inputs(){return this.recipeForm.get("inputs")}addInput(){this.inputs.push(this.createIngredientFormGroup())}removeInput(n){this.inputs.removeAt(n)}onSubmit(){if(this.recipeForm.valid){console.log(this.recipeForm.value);let n=this.recipeForm.get("ingredients")?.value.map(s=>`${s.name},${s.quantity},${s.unit}`).join(";");console.log(n);let r=this.recipeForm.get("inputs")?.value.map(s=>`${s.name},${s.quantity},${s.unit}`).join(";");console.log(r);let o={id:this.id,name:this.recipeForm.get("name")?.value,description:this.recipeForm.get("procedure")?.value,recipeIngredients:n,recipePackagingElements:r};this.recipeService.updateRecipe(o).subscribe(s=>{console.log(s),this.router.navigate(["/recipes"])},s=>{console.error(s)})}}patchForm(){this.recipeForm.patchValue({name:this.recipe.name,procedure:this.recipe.description}),this.ingredients.clear(),this.inputs.clear(),n3(this.recipe.recipeIngredients).forEach(o=>{this.ingredients.push(this.formBuilder.group({name:o.name,quantity:o.quantity,unit:o.unit}))}),n3(this.recipe.recipePackagingElements).forEach(o=>{this.inputs.push(this.formBuilder.group({name:o.name,quantity:o.quantity,unit:o.unit}))})}};t.\u0275fac=function(r){return new(r||t)(ee(ln),ee(Fr),ee(ul),ee(Jt))},t.\u0275cmp=Re({type:t,selectors:[["app-view-recipe"]],standalone:!0,features:[Ve],decls:55,vars:14,consts:[["aux","ngForm"],[1,"container-fluid","d-flex","flex-column","justify-content-center","align-items-center","vh-100"],[1,"row","justify-content-center","align-items-center","w-100"],[1,"col-10","col-main"],[1,"w-100",3,"ngSubmit","formGroup"],[1,"row","header-row","mb-4"],[1,"col"],[1,"view-title"],[1,"col","d-flex","justify-content-end"],["type","submit",1,"btn","btn-custom"],[1,"row","custom-row"],[1,"row"],[1,"form-group"],[1,"row","align-items-center","mb-3"],[1,"col-3"],["for","name",1,"title"],["type","text","id","name","name","name","formControlName","name",1,"form-control",3,"ngClass"],[1,"error-container"],["class","text-danger",4,"ngIf"],[1,"row","align-items-center","py-2"],[1,"col-md-6"],[1,"row","align-items-center"],[1,"title"],["type","button",1,"btn","btn-icon","text-success",3,"click"],[1,"bi","bi-plus-square-fill"],["formArrayName","ingredients",1,"adder-container"],["class","form-group adder-row",3,"formGroupName",4,"ngFor","ngForOf"],["formArrayName","inputs",1,"adder-container"],["formControlName","procedure",1,"form-control","p-editor-custom",3,"ngClass"],["pTemplate","header"],[1,"text-danger"],[4,"ngIf"],[1,"form-group","adder-row",3,"formGroupName"],["formControlName","name","placeholder","Nombre del ingrediente",1,"form-control",3,"id","ngClass"],[1,"col-2"],["type","number","formControlName","quantity","placeholder","Cantidad",1,"form-control",3,"id","ngClass"],["formControlName","unit","aria-label","Unit Selection",1,"form-select","me-2",3,"id","ngClass"],["value","","disabled","","selected",""],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["type","button",1,"btn","btn-icon","text-danger",3,"click"],[1,"bi","bi-x-square-fill"],["formControlName","name","placeholder","Nombre del insumo",1,"form-control",3,"id","ngClass"],["formControlName","quantity","placeholder","Cantidad",1,"form-control",3,"id","ngClass"],[1,"ql-formats"],["aria-label","Select header",1,"ql-header"],["selected",""],["value","1"],["value","2"],["value","3"],["aria-label","Select font",1,"ql-font"],["value","serif"],["value","monospace"],["aria-label","Bold",1,"ql-bold"],["aria-label","Italic",1,"ql-italic"],["aria-label","Underline",1,"ql-underline"],["aria-label","Select align",1,"ql-align"],["value","center"],["value","right"],["value","justify"],["value","ordered","aria-label","Ordered list",1,"ql-list"],["value","bullet","aria-label","Bullet list",1,"ql-list"],["aria-label","Insert link",1,"ql-link"]],template:function(r,o){if(r&1){let s=je();z(0,"app-navbar"),d(1,"div",1)(2,"div",2)(3,"div",3)(4,"form",4,0),X("ngSubmit",function(){return fe(s),he(o.onSubmit())}),d(6,"div",5)(7,"div",6)(8,"h1",7),C(9,"Modificar Receta"),u()(),d(10,"div",8)(11,"button",9),C(12,"GUARDAR"),u()()(),d(13,"div",10)(14,"div",11)(15,"div",12)(16,"div",13)(17,"div",14)(18,"label",15),C(19,"Nombre"),u()(),d(20,"div",6),z(21,"input",16),d(22,"div",17),R(23,JV,3,2,"div",18),u()()()()(),d(24,"div",19)(25,"div",20)(26,"div",12)(27,"div",21)(28,"div",6)(29,"label",22),C(30,"Ingredientes"),u()(),d(31,"div",8)(32,"button",23),X("click",function(){return fe(s),he(o.addIngredient())}),z(33,"i",24),u()()(),d(34,"div",25),R(35,tB,13,18,"div",26),u()()(),d(36,"div",20)(37,"div",12)(38,"div",21)(39,"div",6)(40,"label",22),C(41,"Insumos"),u()(),d(42,"div",8)(43,"button",23),X("click",function(){return fe(s),he(o.addInput())}),z(44,"i",24),u()()(),d(45,"div",27),R(46,rB,13,18,"div",26),u()()()(),z(47,"hr"),d(48,"div",12)(49,"label",22),C(50,"Procedimiento"),u(),d(51,"p-editor",28),R(52,oB,29,0,"ng-template",29),u(),d(53,"div",17),R(54,lB,3,2,"div",18),u()()()()()()()}if(r&2){let s,a,l,p,h=vt(5);b(4),_("formGroup",o.recipeForm),b(17),_("ngClass",ye(9,vl,(((s=o.recipeForm.get("name"))==null?null:s.dirty)||((s=o.recipeForm.get("name"))==null?null:s.touched)||h.submitted)&&((s=o.recipeForm.get("name"))==null?null:s.invalid))),b(2),_("ngIf",h.submitted||((a=o.recipeForm.get("name"))==null?null:a.invalid)&&(((a=o.recipeForm.get("name"))==null?null:a.dirty)||((a=o.recipeForm.get("name"))==null?null:a.touched))),b(12),_("ngForOf",o.ingredients.controls),b(11),_("ngForOf",o.inputs.controls),b(5),Ga(ys(11,KV)),_("ngClass",ye(12,vl,(((l=o.recipeForm.get("procedure"))==null?null:l.dirty)||((l=o.recipeForm.get("procedure"))==null?null:l.touched)||h.submitted)&&((l=o.recipeForm.get("procedure"))==null?null:l.invalid))),b(3),_("ngIf",h.submitted||((p=o.recipeForm.get("procedure"))==null?null:p.invalid)&&(((p=o.recipeForm.get("procedure"))==null?null:p.dirty)||((p=o.recipeForm.get("procedure"))==null?null:p.touched)))}},dependencies:[rt,kt,Cn,st,$t,an,Vi,Bi,Yt,Hn,Ei,Xt,sn,en,nn,Is,xs,Fn,ml,da,Ki],styles:[`@charset "UTF-8";[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/recipes.svg);background-size:cover;background-position:center;background-repeat:no-repeat}.view-title[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;color:#1b5e20;font-size:2.5rem;padding-left:1.5rem}.header-row[_ngcontent-%COMP%]{padding-bottom:14px;align-items:center}.title[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-size:1rem}.vh-100[_ngcontent-%COMP%]{height:88vh!important}.btn-custom[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1.5rem;color:#1b5e20}.custom-row[_ngcontent-%COMP%]{background-color:#d2ffaa;padding:.5rem}.btn-icon[_ngcontent-%COMP%]{font-size:1.6rem}.adder-container[_ngcontent-%COMP%]{height:224px;overflow-y:auto;overflow-x:hidden;padding:6px}.adder-row[_ngcontent-%COMP%]{margin:0;padding:0}.adder-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:12px}.adder-container[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:#88ca5e}.adder-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#1b5e20}.adder-container[_ngcontent-%COMP%]::-webkit-scrollbar-button{background-color:#1b5e20}.form-control[_ngcontent-%COMP%], .form-select[_ngcontent-%COMP%]{min-width:0;box-sizing:border-box}textarea[_ngcontent-%COMP%]{border-radius:0;resize:none;max-height:200px}textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:12px}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:#88ca5e}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#1b5e20}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-button{background-color:#1b5e20}hr[_ngcontent-%COMP%]{border-top:1px solid #1b5e20}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}
+/*# sourceMappingURL=modify-recipe.component-26HS2XP6.css.map */`]});let e=t;return e})();function n3(e){return e?e.split(";").filter(n=>n.trim()!=="").map(n=>{let[r,o,s]=n.split(",");return!r||!o||!s?(console.error(`Invalid format: ${n}`),{name:"",quantity:"",unit:""}):{name:r.trim(),quantity:o.trim(),unit:s.trim()}}):[]}var r3=(()=>{let t=class t{transform(n){return n&&n.replace(/\n/g,"<br>")}};t.\u0275fac=function(r){return new(r||t)},t.\u0275pipe=om({name:"newLinewToBr",type:t,pure:!0,standalone:!0});let e=t;return e})();var mr=Uint8Array,gr=Uint16Array,Kp=Uint32Array,Ug=new mr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),qg=new mr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),hb=new mr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),l3=function(e,t){for(var i=new gr(31),n=0;n<31;++n)i[n]=t+=1<<e[n-1];for(var r=new Kp(i[30]),n=1;n<30;++n)for(var o=i[n];o<i[n+1];++o)r[o]=o-i[n]<<5|n;return[i,r]},c3=l3(Ug,2),u3=c3[0],mb=c3[1];u3[28]=258,mb[258]=28;var d3=l3(qg,0),cB=d3[0],o3=d3[1],gb=new gr(32768);for(vn=0;vn<32768;++vn)pa=(vn&43690)>>>1|(vn&21845)<<1,pa=(pa&52428)>>>2|(pa&13107)<<2,pa=(pa&61680)>>>4|(pa&3855)<<4,gb[vn]=((pa&65280)>>>8|(pa&255)<<8)>>>1;var pa,vn,Ls=function(e,t,i){for(var n=e.length,r=0,o=new gr(t);r<n;++r)++o[e[r]-1];var s=new gr(t);for(r=0;r<t;++r)s[r]=s[r-1]+o[r-1]<<1;var a;if(i){a=new gr(1<<t);var l=15-t;for(r=0;r<n;++r)if(e[r])for(var p=r<<4|e[r],h=t-e[r],v=s[e[r]-1]++<<h,w=v|(1<<h)-1;v<=w;++v)a[gb[v]>>>l]=p}else for(a=new gr(n),r=0;r<n;++r)a[r]=gb[s[e[r]-1]++]>>>15-e[r];return a},yl=new mr(288);for(vn=0;vn<144;++vn)yl[vn]=8;var vn;for(vn=144;vn<256;++vn)yl[vn]=9;var vn;for(vn=256;vn<280;++vn)yl[vn]=7;var vn;for(vn=280;vn<288;++vn)yl[vn]=8;var vn,Qp=new mr(32);for(vn=0;vn<32;++vn)Qp[vn]=5;var vn,uB=Ls(yl,9,0),dB=Ls(yl,9,1),pB=Ls(Qp,5,0),fB=Ls(Qp,5,1),db=function(e){for(var t=e[0],i=1;i<e.length;++i)e[i]>t&&(t=e[i]);return t},Ko=function(e,t,i){var n=t/8>>0;return(e[n]|e[n+1]<<8)>>>(t&7)&i},pb=function(e,t){var i=t/8>>0;return(e[i]|e[i+1]<<8|e[i+2]<<16)>>>(t&7)},yb=function(e){return(e/8>>0)+(e&7&&1)},p3=function(e,t,i){(t==null||t<0)&&(t=0),(i==null||i>e.length)&&(i=e.length);var n=new(e instanceof gr?gr:e instanceof Kp?Kp:mr)(i-t);return n.set(e.subarray(t,i)),n},hB=function(e,t,i){var n=e.length,r=!t||i,o=!i||i.i;i||(i={}),t||(t=new mr(n*3));var s=function(ce){var ge=t.length;if(ce>ge){var ve=new mr(Math.max(ge*2,ce));ve.set(t),t=ve}},a=i.f||0,l=i.p||0,p=i.b||0,h=i.l,v=i.d,w=i.m,g=i.n,S=n*8;do{if(!h){i.f=a=Ko(e,l,1);var I=Ko(e,l+1,3);if(l+=3,I)if(I==1)h=dB,v=fB,w=9,g=5;else if(I==2){var U=Ko(e,l,31)+257,q=Ko(e,l+10,15)+4,Q=U+Ko(e,l+5,31)+1;l+=14;for(var J=new mr(Q),le=new mr(19),Y=0;Y<q;++Y)le[hb[Y]]=Ko(e,l+Y*3,7);l+=q*3;var Ae=db(le),Me=(1<<Ae)-1;if(!o&&l+Q*(Ae+7)>S)break;for(var B=Ls(le,Ae,1),Y=0;Y<Q;){var k=B[Ko(e,l,Me)];l+=k&15;var A=k>>>4;if(A<16)J[Y++]=A;else{var te=0,K=0;for(A==16?(K=3+Ko(e,l,3),l+=2,te=J[Y-1]):A==17?(K=3+Ko(e,l,7),l+=3):A==18&&(K=11+Ko(e,l,127),l+=7);K--;)J[Y++]=te}}var we=J.subarray(0,U),be=J.subarray(U);w=db(we),g=db(be),h=Ls(we,w,1),v=Ls(be,g,1)}else throw"invalid block type";else{var A=yb(l)+4,x=e[A-4]|e[A-3]<<8,P=A+x;if(P>n){if(o)throw"unexpected EOF";break}r&&s(p+x),t.set(e.subarray(A,P),p),i.b=p+=x,i.p=l=P*8;continue}if(l>S)throw"unexpected EOF"}r&&s(p+131072);for(var Ie=(1<<w)-1,me=(1<<g)-1,De=w+g+18;o||l+De<S;){var te=h[pb(e,l)&Ie],xe=te>>>4;if(l+=te&15,l>S)throw"unexpected EOF";if(!te)throw"invalid length/literal";if(xe<256)t[p++]=xe;else if(xe==256){h=null;break}else{var Ke=xe-254;if(xe>264){var Y=xe-257,N=Ug[Y];Ke=Ko(e,l,(1<<N)-1)+u3[Y],l+=N}var H=v[pb(e,l)&me],G=H>>>4;if(!H)throw"invalid distance";l+=H&15;var be=cB[G];if(G>3){var N=qg[G];be+=pb(e,l)&(1<<N)-1,l+=N}if(l>S)throw"unexpected EOF";r&&s(p+131072);for(var re=p+Ke;p<re;p+=4)t[p]=t[p-be],t[p+1]=t[p+1-be],t[p+2]=t[p+2-be],t[p+3]=t[p+3-be];p=re}}i.l=h,i.p=l,i.b=p,h&&(a=1,i.m=w,i.d=v,i.n=g)}while(!a);return p==t.length?t:p3(t,0,p)},fa=function(e,t,i){i<<=t&7;var n=t/8>>0;e[n]|=i,e[n+1]|=i>>>8},Wp=function(e,t,i){i<<=t&7;var n=t/8>>0;e[n]|=i,e[n+1]|=i>>>8,e[n+2]|=i>>>16},fb=function(e,t){for(var i=[],n=0;n<e.length;++n)e[n]&&i.push({s:n,f:e[n]});var r=i.length,o=i.slice();if(!r)return[new mr(0),0];if(r==1){var s=new mr(i[0].s+1);return s[i[0].s]=1,[s,1]}i.sort(function(Q,J){return Q.f-J.f}),i.push({s:-1,f:25001});var a=i[0],l=i[1],p=0,h=1,v=2;for(i[0]={s:-1,f:a.f+l.f,l:a,r:l};h!=r-1;)a=i[i[p].f<i[v].f?p++:v++],l=i[p!=h&&i[p].f<i[v].f?p++:v++],i[h++]={s:-1,f:a.f+l.f,l:a,r:l};for(var w=o[0].s,n=1;n<r;++n)o[n].s>w&&(w=o[n].s);var g=new gr(w+1),S=vb(i[h-1],g,0);if(S>t){var n=0,I=0,A=S-t,x=1<<A;for(o.sort(function(J,le){return g[le.s]-g[J.s]||J.f-le.f});n<r;++n){var P=o[n].s;if(g[P]>t)I+=x-(1<<S-g[P]),g[P]=t;else break}for(I>>>=A;I>0;){var U=o[n].s;g[U]<t?I-=1<<t-g[U]++-1:++n}for(;n>=0&&I;--n){var q=o[n].s;g[q]==t&&(--g[q],++I)}S=t}return[new mr(g),S]},vb=function(e,t,i){return e.s==-1?Math.max(vb(e.l,t,i+1),vb(e.r,t,i+1)):t[e.s]=i},s3=function(e){for(var t=e.length;t&&!e[--t];);for(var i=new gr(++t),n=0,r=e[0],o=1,s=function(l){i[n++]=l},a=1;a<=t;++a)if(e[a]==r&&a!=t)++o;else{if(!r&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(r),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(r);o=1,r=e[a]}return[i.subarray(0,n),t]},Yp=function(e,t){for(var i=0,n=0;n<t.length;++n)i+=e[n]*t[n];return i},Bg=function(e,t,i){var n=i.length,r=yb(t+2);e[r]=n&255,e[r+1]=n>>>8,e[r+2]=e[r]^255,e[r+3]=e[r+1]^255;for(var o=0;o<n;++o)e[r+o+4]=i[o];return(r+4+n)*8},a3=function(e,t,i,n,r,o,s,a,l,p,h){fa(t,h++,i),++r[256];for(var v=fb(r,15),w=v[0],g=v[1],S=fb(o,15),I=S[0],A=S[1],x=s3(w),P=x[0],U=x[1],q=s3(I),Q=q[0],J=q[1],le=new gr(19),Y=0;Y<P.length;++Y)le[P[Y]&31]++;for(var Y=0;Y<Q.length;++Y)le[Q[Y]&31]++;for(var Ae=fb(le,7),Me=Ae[0],B=Ae[1],k=19;k>4&&!Me[hb[k-1]];--k);var te=p+5<<3,K=Yp(r,yl)+Yp(o,Qp)+s,we=Yp(r,w)+Yp(o,I)+s+14+3*k+Yp(le,Me)+(2*le[16]+3*le[17]+7*le[18]);if(te<=K&&te<=we)return Bg(t,h,e.subarray(l,l+p));var be,Ie,me,De;if(fa(t,h,1+(we<K)),h+=2,we<K){be=Ls(w,g,0),Ie=w,me=Ls(I,A,0),De=I;var xe=Ls(Me,B,0);fa(t,h,U-257),fa(t,h+5,J-1),fa(t,h+10,k-4),h+=14;for(var Y=0;Y<k;++Y)fa(t,h+3*Y,Me[hb[Y]]);h+=3*k;for(var Ke=[P,Q],N=0;N<2;++N)for(var H=Ke[N],Y=0;Y<H.length;++Y){var G=H[Y]&31;fa(t,h,xe[G]),h+=Me[G],G>15&&(fa(t,h,H[Y]>>>5&127),h+=H[Y]>>>12)}}else be=uB,Ie=yl,me=pB,De=Qp;for(var Y=0;Y<a;++Y)if(n[Y]>255){var G=n[Y]>>>18&31;Wp(t,h,be[G+257]),h+=Ie[G+257],G>7&&(fa(t,h,n[Y]>>>23&31),h+=Ug[G]);var re=n[Y]&31;Wp(t,h,me[re]),h+=De[re],re>3&&(Wp(t,h,n[Y]>>>5&8191),h+=qg[re])}else Wp(t,h,be[n[Y]]),h+=Ie[n[Y]];return Wp(t,h,be[256]),h+Ie[256]},mB=new Kp([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),gB=new mr(0),vB=function(e,t,i,n,r,o){var s=e.length,a=new mr(n+s+5*(1+Math.floor(s/7e3))+r),l=a.subarray(n,a.length-r),p=0;if(!t||s<8)for(var h=0;h<=s;h+=65535){var v=h+65535;v<s?p=Bg(l,p,e.subarray(h,v)):(l[h]=o,p=Bg(l,p,e.subarray(h,s)))}else{for(var w=mB[t-1],g=w>>>13,S=w&8191,I=(1<<i)-1,A=new gr(32768),x=new gr(I+1),P=Math.ceil(i/3),U=2*P,q=function(Ct){return(e[Ct]^e[Ct+1]<<P^e[Ct+2]<<U)&I},Q=new Kp(25e3),J=new gr(288),le=new gr(32),Y=0,Ae=0,h=0,Me=0,B=0,k=0;h<s;++h){var te=q(h),K=h&32767,we=x[te];if(A[K]=we,x[te]=K,B<=h){var be=s-h;if((Y>7e3||Me>24576)&&be>423){p=a3(e,l,0,Q,J,le,Ae,Me,k,h-k,p),Me=Y=Ae=0,k=h;for(var Ie=0;Ie<286;++Ie)J[Ie]=0;for(var Ie=0;Ie<30;++Ie)le[Ie]=0}var me=2,De=0,xe=S,Ke=K-we&32767;if(be>2&&te==q(h-Ke))for(var N=Math.min(g,be)-1,H=Math.min(32767,h),G=Math.min(258,be);Ke<=H&&--xe&&K!=we;){if(e[h+me]==e[h+me-Ke]){for(var re=0;re<G&&e[h+re]==e[h+re-Ke];++re);if(re>me){if(me=re,De=Ke,re>N)break;for(var ce=Math.min(Ke,re-2),ge=0,Ie=0;Ie<ce;++Ie){var ve=h-Ke+Ie+32768&32767,_e=A[ve],Ue=ve-_e+32768&32767;Ue>ge&&(ge=Ue,we=ve)}}}K=we,we=A[K],Ke+=K-we+32768&32767}if(De){Q[Me++]=268435456|mb[me]<<18|o3[De];var Be=mb[me]&31,Je=o3[De]&31;Ae+=Ug[Be]+qg[Je],++J[257+Be],++le[Je],B=h+me,++Y}else Q[Me++]=e[h],++J[e[h]]}}p=a3(e,l,o,Q,J,le,Ae,Me,k,h-k,p),o||(p=Bg(l,p,gB))}return p3(a,0,n+yb(p)+r)};var yB=function(){var e=1,t=0;return{p:function(i){for(var n=e,r=t,o=i.length,s=0;s!=o;){for(var a=Math.min(s+5552,o);s<a;++s)n+=i[s],r+=n;n%=65521,r%=65521}e=n,t=r},d:function(){return(e>>>8<<16|(t&255)<<8|t>>>8)+((e&255)<<23)*2}}},bB=function(e,t,i,n,r){return vB(e,t.level==null?6:t.level,t.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):12+t.mem,i,n,!r)};var _B=function(e,t,i){for(;i;++t)e[t]=i,i>>>=8};var CB=function(e,t){var i=t.level,n=i==0?0:i<6?1:i==9?3:2;e[0]=120,e[1]=n<<6|(n?32-2*n:1)},wB=function(e){if((e[0]&15)!=8||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(e[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function $g(e,t){t===void 0&&(t={});var i=yB();i.p(e);var n=bB(e,t,2,4);return CB(n,t),_B(n,n.length-4,i.d()),n}function f3(e,t){return hB((wB(e),e.subarray(2,-4)),t)}var wt=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function bb(){wt.console&&typeof wt.console.log=="function"&&wt.console.log.apply(wt.console,arguments)}var kn={log:bb,warn:function(e){wt.console&&(typeof wt.console.warn=="function"?wt.console.warn.apply(wt.console,arguments):bb.call(null,arguments))},error:function(e){wt.console&&(typeof wt.console.error=="function"?wt.console.error.apply(wt.console,arguments):bb(e))}};function _b(e,t,i){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){cc(n.response,t,i)},n.onerror=function(){kn.error("could not download file")},n.send()}function h3(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Hg(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var Zp,Ib,cc=wt.saveAs||((typeof window>"u"?"undefined":Tn(window))!=="object"||window!==wt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,i){var n=wt.URL||wt.webkitURL,r=document.createElement("a");t=t||e.name||"download",r.download=t,r.rel="noopener",typeof e=="string"?(r.href=e,r.origin!==location.origin?h3(r.href)?_b(e,t,i):Hg(r,r.target="_blank"):Hg(r)):(r.href=n.createObjectURL(e),setTimeout(function(){n.revokeObjectURL(r.href)},4e4),setTimeout(function(){Hg(r)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,i){if(t=t||e.name||"download",typeof e=="string")if(h3(e))_b(e,t,i);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout(function(){Hg(n)})}else navigator.msSaveOrOpenBlob(function(r,o){return o===void 0?o={autoBom:!1}:Tn(o)!=="object"&&(kn.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(r.type)?new Blob(["\uFEFF",r],{type:r.type}):r}(e,i),t)}:function(e,t,i,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof e=="string")return _b(e,t,i);var r=e.type==="application/octet-stream",o=/constructor/i.test(wt.HTMLElement)||wt.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||r&&o)&&(typeof FileReader>"u"?"undefined":Tn(FileReader))==="object"){var a=new FileReader;a.onloadend=function(){var h=a.result;h=s?h:h.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=h:location=h,n=null},a.readAsDataURL(e)}else{var l=wt.URL||wt.webkitURL,p=l.createObjectURL(e);n?n.location=p:location.href=p,n=null,setTimeout(function(){l.revokeObjectURL(p)},4e4)}});function F3(e){var t;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var i=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(a){return[parseInt(a[1]),parseInt(a[2]),parseInt(a[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}}],n=0;n<i.length;n++){var r=i[n].re,o=i[n].process,s=r.exec(e);s&&(t=o(s),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var a=this.r.toString(16),l=this.g.toString(16),p=this.b.toString(16);return a.length==1&&(a="0"+a),l.length==1&&(l="0"+l),p.length==1&&(p="0"+p),"#"+a+l+p}}function Cb(e,t){var i=e[0],n=e[1],r=e[2],o=e[3];i=nr(i,n,r,o,t[0],7,-680876936),o=nr(o,i,n,r,t[1],12,-389564586),r=nr(r,o,i,n,t[2],17,606105819),n=nr(n,r,o,i,t[3],22,-1044525330),i=nr(i,n,r,o,t[4],7,-176418897),o=nr(o,i,n,r,t[5],12,1200080426),r=nr(r,o,i,n,t[6],17,-1473231341),n=nr(n,r,o,i,t[7],22,-45705983),i=nr(i,n,r,o,t[8],7,1770035416),o=nr(o,i,n,r,t[9],12,-1958414417),r=nr(r,o,i,n,t[10],17,-42063),n=nr(n,r,o,i,t[11],22,-1990404162),i=nr(i,n,r,o,t[12],7,1804603682),o=nr(o,i,n,r,t[13],12,-40341101),r=nr(r,o,i,n,t[14],17,-1502002290),i=ir(i,n=nr(n,r,o,i,t[15],22,1236535329),r,o,t[1],5,-165796510),o=ir(o,i,n,r,t[6],9,-1069501632),r=ir(r,o,i,n,t[11],14,643717713),n=ir(n,r,o,i,t[0],20,-373897302),i=ir(i,n,r,o,t[5],5,-701558691),o=ir(o,i,n,r,t[10],9,38016083),r=ir(r,o,i,n,t[15],14,-660478335),n=ir(n,r,o,i,t[4],20,-405537848),i=ir(i,n,r,o,t[9],5,568446438),o=ir(o,i,n,r,t[14],9,-1019803690),r=ir(r,o,i,n,t[3],14,-187363961),n=ir(n,r,o,i,t[8],20,1163531501),i=ir(i,n,r,o,t[13],5,-1444681467),o=ir(o,i,n,r,t[2],9,-51403784),r=ir(r,o,i,n,t[7],14,1735328473),i=rr(i,n=ir(n,r,o,i,t[12],20,-1926607734),r,o,t[5],4,-378558),o=rr(o,i,n,r,t[8],11,-2022574463),r=rr(r,o,i,n,t[11],16,1839030562),n=rr(n,r,o,i,t[14],23,-35309556),i=rr(i,n,r,o,t[1],4,-1530992060),o=rr(o,i,n,r,t[4],11,1272893353),r=rr(r,o,i,n,t[7],16,-155497632),n=rr(n,r,o,i,t[10],23,-1094730640),i=rr(i,n,r,o,t[13],4,681279174),o=rr(o,i,n,r,t[0],11,-358537222),r=rr(r,o,i,n,t[3],16,-722521979),n=rr(n,r,o,i,t[6],23,76029189),i=rr(i,n,r,o,t[9],4,-640364487),o=rr(o,i,n,r,t[12],11,-421815835),r=rr(r,o,i,n,t[15],16,530742520),i=or(i,n=rr(n,r,o,i,t[2],23,-995338651),r,o,t[0],6,-198630844),o=or(o,i,n,r,t[7],10,1126891415),r=or(r,o,i,n,t[14],15,-1416354905),n=or(n,r,o,i,t[5],21,-57434055),i=or(i,n,r,o,t[12],6,1700485571),o=or(o,i,n,r,t[3],10,-1894986606),r=or(r,o,i,n,t[10],15,-1051523),n=or(n,r,o,i,t[1],21,-2054922799),i=or(i,n,r,o,t[8],6,1873313359),o=or(o,i,n,r,t[15],10,-30611744),r=or(r,o,i,n,t[6],15,-1560198380),n=or(n,r,o,i,t[13],21,1309151649),i=or(i,n,r,o,t[4],6,-145523070),o=or(o,i,n,r,t[11],10,-1120210379),r=or(r,o,i,n,t[2],15,718787259),n=or(n,r,o,i,t[9],21,-343485551),e[0]=_l(i,e[0]),e[1]=_l(n,e[1]),e[2]=_l(r,e[2]),e[3]=_l(o,e[3])}function e0(e,t,i,n,r,o){return t=_l(_l(t,e),_l(n,o)),_l(t<<r|t>>>32-r,i)}function nr(e,t,i,n,r,o,s){return e0(t&i|~t&n,e,t,r,o,s)}function ir(e,t,i,n,r,o,s){return e0(t&n|i&~n,e,t,r,o,s)}function rr(e,t,i,n,r,o,s){return e0(t^i^n,e,t,r,o,s)}function or(e,t,i,n,r,o,s){return e0(i^(t|~n),e,t,r,o,s)}function N3(e){var t,i=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)Cb(n,EB(e.substring(t-64,t)));e=e.substring(t-64);var r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)r[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(r[t>>2]|=128<<(t%4<<3),t>55)for(Cb(n,r),t=0;t<16;t++)r[t]=0;return r[14]=8*i,Cb(n,r),n}function EB(e){var t,i=[];for(t=0;t<64;t+=4)i[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return i}Zp=wt.atob.bind(wt),Ib=wt.btoa.bind(wt);var m3="0123456789abcdef".split("");function SB(e){for(var t="",i=0;i<4;i++)t+=m3[e>>8*i+4&15]+m3[e>>8*i&15];return t}function IB(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function xb(e){return N3(e).map(IB).join("")}var xB=function(e){for(var t=0;t<e.length;t++)e[t]=SB(e[t]);return e.join("")}(N3("hello"))!="5d41402abc4b2a76b9719d911017c592";function _l(e,t){if(xB){var i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}return e+t&4294967295}function Db(e,t){var i,n,r,o;if(e!==i){for(var s=(r=e,o=1+(256/e.length>>0),new Array(o+1).join(r)),a=[],l=0;l<256;l++)a[l]=l;var p=0;for(l=0;l<256;l++){var h=a[l];p=(p+h+s.charCodeAt(l))%256,a[l]=a[p],a[p]=h}i=e,n=a}else a=n;var v=t.length,w=0,g=0,S="";for(l=0;l<v;l++)g=(g+(h=a[w=(w+1)%256]))%256,a[w]=a[g],a[g]=h,s=a[(a[w]+a[g])%256],S+=String.fromCharCode(t.charCodeAt(l)^s);return S}var g3={print:4,modify:8,copy:16,"annot-forms":32};function Wu(e,t,i,n){this.v=1,this.r=2;var r=192;e.forEach(function(a){if(g3.perm!==void 0)throw new Error("Invalid permission: "+a);r+=g3[a]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var o=(t+this.padding).substr(0,32),s=(i+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,s),this.P=-(1+(255^r)),this.encryptionKey=xb(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=Db(this.encryptionKey,this.padding)}function Yu(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",i=e.length,n=0;n<i;n++){var r=e.charCodeAt(n);r<33||r===35||r===37||r===40||r===41||r===47||r===60||r===62||r===91||r===93||r===123||r===125||r>126?t+="#"+("0"+r.toString(16)).slice(-2):t+=e[n]}return t}function v3(e){if(Tn(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(i,n,r){if(r=r||!1,typeof i!="string"||typeof n!="function"||typeof r!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(i)||(t[i]={});var o=Math.random().toString(35);return t[i][o]=[n,!!r],o},this.unsubscribe=function(i){for(var n in t)if(t[n][i])return delete t[n][i],Object.keys(t[n]).length===0&&delete t[n],!0;return!1},this.publish=function(i){if(t.hasOwnProperty(i)){var n=Array.prototype.slice.call(arguments,1),r=[];for(var o in t[i]){var s=t[i][o];try{s[0].apply(e,n)}catch(a){wt.console&&kn.error("jsPDF PubSub Error",a.message,a)}s[1]&&r.push(o)}r.length&&r.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Jg(e){if(!(this instanceof Jg))return new Jg(e);var t="opacity,stroke-opacity".split(",");for(var i in e)e.hasOwnProperty(i)&&t.indexOf(i)>=0&&(this[i]=e[i]);this.id="",this.objectNumber=-1}function P3(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function uc(e,t,i,n,r){if(!(this instanceof uc))return new uc(e,t,i,n,r);this.type=e==="axial"?2:3,this.coords=t,this.colors=i,P3.call(this,n,r)}function Ku(e,t,i,n,r){if(!(this instanceof Ku))return new Ku(e,t,i,n,r);this.boundingBox=e,this.xStep=t,this.yStep=i,this.stream="",this.cloneIndex=0,P3.call(this,n,r)}function bt(e){var t,i=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],r=arguments[2],o=arguments[3],s=[],a=1,l=16,p="S",h=null;Tn(e=e||{})==="object"&&(i=e.orientation,n=e.unit||n,r=e.format||r,o=e.compress||e.compressPdf||o,(h=e.encryption||null)!==null&&(h.userPassword=h.userPassword||"",h.ownerPassword=h.ownerPassword||"",h.userPermissions=h.userPermissions||[]),a=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(l=e.floatPrecision),p=e.defaultPathOperation||"S"),s=e.filters||(o===!0?["FlateEncode"]:s),n=n||"mm",i=(""+(i||"P")).toLowerCase();var v=e.putOnlyUsedFonts||!1,w={},g={internal:{},__private__:{}};g.__private__.PubSub=v3;var S="1.3",I=g.__private__.getPdfVersion=function(){return S};g.__private__.setPdfVersion=function(m){S=m};var A={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};g.__private__.getPageFormats=function(){return A};var x=g.__private__.getPageFormat=function(m){return A[m]};r=r||"a4";var P={COMPAT:"compat",ADVANCED:"advanced"},U=P.COMPAT;function q(){this.saveGraphicsState(),W(new _t(Ze,0,0,-Ze,0,ba()*Ze).toString()+" cm"),this.setFontSize(this.getFontSize()/Ze),p="n",U=P.ADVANCED}function Q(){this.restoreGraphicsState(),p="S",U=P.COMPAT}var J=g.__private__.combineFontStyleAndFontWeight=function(m,M){if(m=="bold"&&M=="normal"||m=="bold"&&M==400||m=="normal"&&M=="italic"||m=="bold"&&M=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return M&&(m=M==400||M==="normal"?m==="italic"?"italic":"normal":M!=700&&M!=="bold"||m!=="normal"?(M==700?"bold":M)+""+m:"bold"),m};g.advancedAPI=function(m){var M=U===P.COMPAT;return M&&q.call(this),typeof m!="function"||(m(this),M&&Q.call(this)),this},g.compatAPI=function(m){var M=U===P.ADVANCED;return M&&Q.call(this),typeof m!="function"||(m(this),M&&q.call(this)),this},g.isAdvancedAPI=function(){return U===P.ADVANCED};var le,Y=function(m){if(U!==P.ADVANCED)throw new Error(m+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Ae=g.roundToPrecision=g.__private__.roundToPrecision=function(m,M){var $=t||M;if(isNaN(m)||isNaN($))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return m.toFixed($).replace(/0+$/,"")};le=g.hpf=g.__private__.hpf=typeof l=="number"?function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return Ae(m,l)}:l==="smart"?function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return Ae(m,m>-1&&m<1?16:5)}:function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return Ae(m,16)};var Me=g.f2=g.__private__.f2=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.f2");return Ae(m,2)},B=g.__private__.f3=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.f3");return Ae(m,3)},k=g.scale=g.__private__.scale=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.scale");return U===P.COMPAT?m*Ze:U===P.ADVANCED?m:void 0},te=function(m){return U===P.COMPAT?ba()-m:U===P.ADVANCED?m:void 0},K=function(m){return k(te(m))};g.__private__.setPrecision=g.setPrecision=function(m){typeof parseInt(m,10)=="number"&&(t=parseInt(m,10))};var we,be="00000000000000000000000000000000",Ie=g.__private__.getFileId=function(){return be},me=g.__private__.setFileId=function(m){return be=m!==void 0&&/^[a-fA-F0-9]{32}$/.test(m)?m.toUpperCase():be.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),h!==null&&(Zi=new Wu(h.userPermissions,h.userPassword,h.ownerPassword,be)),be};g.setFileId=function(m){return me(m),this},g.getFileId=function(){return Ie()};var De=g.__private__.convertDateToPDFDate=function(m){var M=m.getTimezoneOffset(),$=M<0?"+":"-",Z=Math.floor(Math.abs(M/60)),ue=Math.abs(M%60),Ee=[$,G(Z),"'",G(ue),"'"].join("");return["D:",m.getFullYear(),G(m.getMonth()+1),G(m.getDate()),G(m.getHours()),G(m.getMinutes()),G(m.getSeconds()),Ee].join("")},xe=g.__private__.convertPDFDateToDate=function(m){var M=parseInt(m.substr(2,4),10),$=parseInt(m.substr(6,2),10)-1,Z=parseInt(m.substr(8,2),10),ue=parseInt(m.substr(10,2),10),Ee=parseInt(m.substr(12,2),10),Le=parseInt(m.substr(14,2),10);return new Date(M,$,Z,ue,Ee,Le,0)},Ke=g.__private__.setCreationDate=function(m){var M;if(m===void 0&&(m=new Date),m instanceof Date)M=De(m);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(m))throw new Error("Invalid argument passed to jsPDF.setCreationDate");M=m}return we=M},N=g.__private__.getCreationDate=function(m){var M=we;return m==="jsDate"&&(M=xe(we)),M};g.setCreationDate=function(m){return Ke(m),this},g.getCreationDate=function(m){return N(m)};var H,G=g.__private__.padd2=function(m){return("0"+parseInt(m)).slice(-2)},re=g.__private__.padd2Hex=function(m){return("00"+(m=m.toString())).substr(m.length)},ce=0,ge=[],ve=[],_e=0,Ue=[],Be=[],Je=!1,tt=ve,Ct=function(){ce=0,_e=0,ve=[],ge=[],Ue=[],Us=hi(),Co=hi()};g.__private__.setCustomOutputDestination=function(m){Je=!0,tt=m};var Se=function(m){Je||(tt=m)};g.__private__.resetCustomOutputDestination=function(){Je=!1,tt=ve};var W=g.__private__.out=function(m){return m=m.toString(),_e+=m.length+1,tt.push(m),tt},Tt=g.__private__.write=function(m){return W(arguments.length===1?m.toString():Array.prototype.join.call(arguments," "))},lt=g.__private__.getArrayBuffer=function(m){for(var M=m.length,$=new ArrayBuffer(M),Z=new Uint8Array($);M--;)Z[M]=m.charCodeAt(M);return $},ke=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];g.__private__.getStandardFonts=function(){return ke};var $e=e.fontSize||16;g.__private__.setFontSize=g.setFontSize=function(m){return $e=U===P.ADVANCED?m/Ze:m,this};var Qe,We=g.__private__.getFontSize=g.getFontSize=function(){return U===P.COMPAT?$e:$e*Ze},pt=e.R2L||!1;g.__private__.setR2L=g.setR2L=function(m){return pt=m,this},g.__private__.getR2L=g.getR2L=function(){return pt};var Dt,jt=g.__private__.setZoomMode=function(m){var M=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(m))Qe=m;else if(isNaN(m)){if(M.indexOf(m)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+m+'" is not recognized.');Qe=m}else Qe=parseInt(m,10)};g.__private__.getZoomMode=function(){return Qe};var Ht,cn=g.__private__.setPageMode=function(m){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(m)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+m+'" is not recognized.');Dt=m};g.__private__.getPageMode=function(){return Dt};var Dn=g.__private__.setLayoutMode=function(m){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(m)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+m+'" is not recognized.');Ht=m};g.__private__.getLayoutMode=function(){return Ht},g.__private__.setDisplayMode=g.setDisplayMode=function(m,M,$){return jt(m),Dn(M),cn($),this};var Et={title:"",subject:"",author:"",keywords:"",creator:""};g.__private__.getDocumentProperty=function(m){if(Object.keys(Et).indexOf(m)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Et[m]},g.__private__.getDocumentProperties=function(){return Et},g.__private__.setDocumentProperties=g.setProperties=g.setDocumentProperties=function(m){for(var M in Et)Et.hasOwnProperty(M)&&m[M]&&(Et[M]=m[M]);return this},g.__private__.setDocumentProperty=function(m,M){if(Object.keys(Et).indexOf(m)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Et[m]=M};var Kt,Ze,Qi,pn,yo,Nn={},zn={},Xo=[],yn={},El={},Xn={},bo={},Bs=null,ei=0,Mt=[],bn=new v3(g),Sl=e.hotfixes||[],Hi={},es={},ts=[],_t=function m(M,$,Z,ue,Ee,Le){if(!(this instanceof m))return new m(M,$,Z,ue,Ee,Le);isNaN(M)&&(M=1),isNaN($)&&($=0),isNaN(Z)&&(Z=0),isNaN(ue)&&(ue=1),isNaN(Ee)&&(Ee=0),isNaN(Le)&&(Le=0),this._matrix=[M,$,Z,ue,Ee,Le]};Object.defineProperty(_t.prototype,"sx",{get:function(){return this._matrix[0]},set:function(m){this._matrix[0]=m}}),Object.defineProperty(_t.prototype,"shy",{get:function(){return this._matrix[1]},set:function(m){this._matrix[1]=m}}),Object.defineProperty(_t.prototype,"shx",{get:function(){return this._matrix[2]},set:function(m){this._matrix[2]=m}}),Object.defineProperty(_t.prototype,"sy",{get:function(){return this._matrix[3]},set:function(m){this._matrix[3]=m}}),Object.defineProperty(_t.prototype,"tx",{get:function(){return this._matrix[4]},set:function(m){this._matrix[4]=m}}),Object.defineProperty(_t.prototype,"ty",{get:function(){return this._matrix[5]},set:function(m){this._matrix[5]=m}}),Object.defineProperty(_t.prototype,"a",{get:function(){return this._matrix[0]},set:function(m){this._matrix[0]=m}}),Object.defineProperty(_t.prototype,"b",{get:function(){return this._matrix[1]},set:function(m){this._matrix[1]=m}}),Object.defineProperty(_t.prototype,"c",{get:function(){return this._matrix[2]},set:function(m){this._matrix[2]=m}}),Object.defineProperty(_t.prototype,"d",{get:function(){return this._matrix[3]},set:function(m){this._matrix[3]=m}}),Object.defineProperty(_t.prototype,"e",{get:function(){return this._matrix[4]},set:function(m){this._matrix[4]=m}}),Object.defineProperty(_t.prototype,"f",{get:function(){return this._matrix[5]},set:function(m){this._matrix[5]=m}}),Object.defineProperty(_t.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(_t.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(_t.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(_t.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),_t.prototype.join=function(m){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(le).join(m)},_t.prototype.multiply=function(m){var M=m.sx*this.sx+m.shy*this.shx,$=m.sx*this.shy+m.shy*this.sy,Z=m.shx*this.sx+m.sy*this.shx,ue=m.shx*this.shy+m.sy*this.sy,Ee=m.tx*this.sx+m.ty*this.shx+this.tx,Le=m.tx*this.shy+m.ty*this.sy+this.ty;return new _t(M,$,Z,ue,Ee,Le)},_t.prototype.decompose=function(){var m=this.sx,M=this.shy,$=this.shx,Z=this.sy,ue=this.tx,Ee=this.ty,Le=Math.sqrt(m*m+M*M),Xe=(m/=Le)*$+(M/=Le)*Z;$-=m*Xe,Z-=M*Xe;var ht=Math.sqrt($*$+Z*Z);return Xe/=ht,m*(Z/=ht)<M*($/=ht)&&(m=-m,M=-M,Xe=-Xe,Le=-Le),{scale:new _t(Le,0,0,ht,0,0),translate:new _t(1,0,0,1,ue,Ee),rotate:new _t(m,M,-M,m,0,0),skew:new _t(1,0,Xe,1,0,0)}},_t.prototype.toString=function(m){return this.join(" ")},_t.prototype.inversed=function(){var m=this.sx,M=this.shy,$=this.shx,Z=this.sy,ue=this.tx,Ee=this.ty,Le=1/(m*Z-M*$),Xe=Z*Le,ht=-M*Le,Ft=-$*Le,qt=m*Le;return new _t(Xe,ht,Ft,qt,-Xe*ue-Ft*Ee,-ht*ue-qt*Ee)},_t.prototype.applyToPoint=function(m){var M=m.x*this.sx+m.y*this.shx+this.tx,$=m.x*this.shy+m.y*this.sy+this.ty;return new xc(M,$)},_t.prototype.applyToRectangle=function(m){var M=this.applyToPoint(m),$=this.applyToPoint(new xc(m.x+m.w,m.y+m.h));return new ud(M.x,M.y,$.x-M.x,$.y-M.y)},_t.prototype.clone=function(){var m=this.sx,M=this.shy,$=this.shx,Z=this.sy,ue=this.tx,Ee=this.ty;return new _t(m,M,$,Z,ue,Ee)},g.Matrix=_t;var _o=g.matrixMult=function(m,M){return M.multiply(m)},ns=new _t(1,0,0,1,0,0);g.unitMatrix=g.identityMatrix=ns;var vr=function(m,M){if(!El[m]){var $=(M instanceof uc?"Sh":"P")+(Object.keys(yn).length+1).toString(10);M.id=$,El[m]=$,yn[$]=M,bn.publish("addPattern",M)}};g.ShadingPattern=uc,g.TilingPattern=Ku,g.addShadingPattern=function(m,M){return Y("addShadingPattern()"),vr(m,M),this},g.beginTilingPattern=function(m){Y("beginTilingPattern()"),vf(m.boundingBox[0],m.boundingBox[1],m.boundingBox[2]-m.boundingBox[0],m.boundingBox[3]-m.boundingBox[1],m.matrix)},g.endTilingPattern=function(m,M){Y("endTilingPattern()"),M.stream=Be[H].join(`
+`),vr(m,M),bn.publish("endTilingPattern",M),ts.pop().restore()};var Ii=g.__private__.newObject=function(){var m=hi();return Lr(m,!0),m},hi=g.__private__.newObjectDeferred=function(){return ce++,ge[ce]=function(){return _e},ce},Lr=function(m,M){return M=typeof M=="boolean"&&M,ge[m]=_e,M&&W(m+" 0 obj"),m},fc=g.__private__.newAdditionalObject=function(){var m={objId:hi(),content:""};return Ue.push(m),m},Us=hi(),Co=hi(),wo=g.__private__.decodeColorString=function(m){var M=m.split(" ");if(M.length!==2||M[1]!=="g"&&M[1]!=="G")M.length===5&&(M[4]==="k"||M[4]==="K")&&(M=[(1-M[0])*(1-M[3]),(1-M[1])*(1-M[3]),(1-M[2])*(1-M[3]),"r"]);else{var $=parseFloat(M[0]);M=[$,$,$,"r"]}for(var Z="#",ue=0;ue<3;ue++)Z+=("0"+Math.floor(255*parseFloat(M[ue])).toString(16)).slice(-2);return Z},Eo=g.__private__.encodeColorString=function(m){var M;typeof m=="string"&&(m={ch1:m});var $=m.ch1,Z=m.ch2,ue=m.ch3,Ee=m.ch4,Le=m.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof $=="string"&&$.charAt(0)!=="#"){var Xe=new F3($);if(Xe.ok)$=Xe.toHex();else if(!/^\d*\.?\d*$/.test($))throw new Error('Invalid color "'+$+'" passed to jsPDF.encodeColorString.')}if(typeof $=="string"&&/^#[0-9A-Fa-f]{3}$/.test($)&&($="#"+$[1]+$[1]+$[2]+$[2]+$[3]+$[3]),typeof $=="string"&&/^#[0-9A-Fa-f]{6}$/.test($)){var ht=parseInt($.substr(1),16);$=ht>>16&255,Z=ht>>8&255,ue=255&ht}if(Z===void 0||Ee===void 0&&$===Z&&Z===ue)if(typeof $=="string")M=$+" "+Le[0];else switch(m.precision){case 2:M=Me($/255)+" "+Le[0];break;case 3:default:M=B($/255)+" "+Le[0]}else if(Ee===void 0||Tn(Ee)==="object"){if(Ee&&!isNaN(Ee.a)&&Ee.a===0)return M=["1.","1.","1.",Le[1]].join(" ");if(typeof $=="string")M=[$,Z,ue,Le[1]].join(" ");else switch(m.precision){case 2:M=[Me($/255),Me(Z/255),Me(ue/255),Le[1]].join(" ");break;default:case 3:M=[B($/255),B(Z/255),B(ue/255),Le[1]].join(" ")}}else if(typeof $=="string")M=[$,Z,ue,Ee,Le[2]].join(" ");else switch(m.precision){case 2:M=[Me($),Me(Z),Me(ue),Me(Ee),Le[2]].join(" ");break;case 3:default:M=[B($),B(Z),B(ue),B(Ee),Le[2]].join(" ")}return M},is=g.__private__.getFilters=function(){return s},Jr=g.__private__.putStream=function(m){var M=(m=m||{}).data||"",$=m.filters||is(),Z=m.alreadyAppliedFilters||[],ue=m.addLength1||!1,Ee=M.length,Le=m.objectId,Xe=function(Ji){return Ji};if(h!==null&&Le===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");h!==null&&(Xe=Zi.encryptor(Le,0));var ht={};$===!0&&($=["FlateEncode"]);var Ft=m.additionalKeyValues||[],qt=(ht=bt.API.processDataByFilters!==void 0?bt.API.processDataByFilters(M,$):{data:M,reverseChain:[]}).reverseChain+(Array.isArray(Z)?Z.join(" "):Z.toString());if(ht.data.length!==0&&(Ft.push({key:"Length",value:ht.data.length}),ue===!0&&Ft.push({key:"Length1",value:Ee})),qt.length!=0)if(qt.split("/").length-1==1)Ft.push({key:"Filter",value:qt});else{Ft.push({key:"Filter",value:"["+qt+"]"});for(var rn=0;rn<Ft.length;rn+=1)if(Ft[rn].key==="DecodeParms"){for(var Yn=[],ti=0;ti<ht.reverseChain.split("/").length-1;ti+=1)Yn.push("null");Yn.push(Ft[rn].value),Ft[rn].value="["+Yn.join(" ")+"]"}}W("<<");for(var mi=0;mi<Ft.length;mi++)W("/"+Ft[mi].key+" "+Ft[mi].value);W(">>"),ht.data.length!==0&&(W("stream"),W(Xe(ht.data)),W("endstream"))},rs=g.__private__.putPage=function(m){var M=m.number,$=m.data,Z=m.objId,ue=m.contentsObjId;Lr(Z,!0),W("<</Type /Page"),W("/Parent "+m.rootDictionaryObjId+" 0 R"),W("/Resources "+m.resourceDictionaryObjId+" 0 R"),W("/MediaBox ["+parseFloat(le(m.mediaBox.bottomLeftX))+" "+parseFloat(le(m.mediaBox.bottomLeftY))+" "+le(m.mediaBox.topRightX)+" "+le(m.mediaBox.topRightY)+"]"),m.cropBox!==null&&W("/CropBox ["+le(m.cropBox.bottomLeftX)+" "+le(m.cropBox.bottomLeftY)+" "+le(m.cropBox.topRightX)+" "+le(m.cropBox.topRightY)+"]"),m.bleedBox!==null&&W("/BleedBox ["+le(m.bleedBox.bottomLeftX)+" "+le(m.bleedBox.bottomLeftY)+" "+le(m.bleedBox.topRightX)+" "+le(m.bleedBox.topRightY)+"]"),m.trimBox!==null&&W("/TrimBox ["+le(m.trimBox.bottomLeftX)+" "+le(m.trimBox.bottomLeftY)+" "+le(m.trimBox.topRightX)+" "+le(m.trimBox.topRightY)+"]"),m.artBox!==null&&W("/ArtBox ["+le(m.artBox.bottomLeftX)+" "+le(m.artBox.bottomLeftY)+" "+le(m.artBox.topRightX)+" "+le(m.artBox.topRightY)+"]"),typeof m.userUnit=="number"&&m.userUnit!==1&&W("/UserUnit "+m.userUnit),bn.publish("putPage",{objId:Z,pageContext:Mt[M],pageNumber:M,page:$}),W("/Contents "+ue+" 0 R"),W(">>"),W("endobj");var Ee=$.join(`
+`);return U===P.ADVANCED&&(Ee+=`
+Q`),Lr(ue,!0),Jr({data:Ee,filters:is(),objectId:ue}),W("endobj"),Z},Il=g.__private__.putPages=function(){var m,M,$=[];for(m=1;m<=ei;m++)Mt[m].objId=hi(),Mt[m].contentsObjId=hi();for(m=1;m<=ei;m++)$.push(rs({number:m,data:Be[m],objId:Mt[m].objId,contentsObjId:Mt[m].contentsObjId,mediaBox:Mt[m].mediaBox,cropBox:Mt[m].cropBox,bleedBox:Mt[m].bleedBox,trimBox:Mt[m].trimBox,artBox:Mt[m].artBox,userUnit:Mt[m].userUnit,rootDictionaryObjId:Us,resourceDictionaryObjId:Co}));Lr(Us,!0),W("<</Type /Pages");var Z="/Kids [";for(M=0;M<ei;M++)Z+=$[M]+" 0 R ";W(Z+"]"),W("/Count "+ei),W(">>"),W("endobj"),bn.publish("postPutPages")},hc=function(m){bn.publish("putFont",{font:m,out:W,newObject:Ii,putStream:Jr}),m.isAlreadyPutted!==!0&&(m.objectNumber=Ii(),W("<<"),W("/Type /Font"),W("/BaseFont /"+Yu(m.postScriptName)),W("/Subtype /Type1"),typeof m.encoding=="string"&&W("/Encoding /"+m.encoding),W("/FirstChar 32"),W("/LastChar 255"),W(">>"),W("endobj"))},mc=function(){for(var m in Nn)Nn.hasOwnProperty(m)&&(v===!1||v===!0&&w.hasOwnProperty(m))&&hc(Nn[m])},gc=function(m){m.objectNumber=Ii();var M=[];M.push({key:"Type",value:"/XObject"}),M.push({key:"Subtype",value:"/Form"}),M.push({key:"BBox",value:"["+[le(m.x),le(m.y),le(m.x+m.width),le(m.y+m.height)].join(" ")+"]"}),M.push({key:"Matrix",value:"["+m.matrix.toString()+"]"});var $=m.pages[1].join(`
+`);Jr({data:$,additionalKeyValues:M,objectId:m.objectNumber}),W("endobj")},vc=function(){for(var m in Hi)Hi.hasOwnProperty(m)&&gc(Hi[m])},Jp=function(m,M){var $,Z=[],ue=1/(M-1);for($=0;$<1;$+=ue)Z.push($);if(Z.push(1),m[0].offset!=0){var Ee={offset:0,color:m[0].color};m.unshift(Ee)}if(m[m.length-1].offset!=1){var Le={offset:1,color:m[m.length-1].color};m.push(Le)}for(var Xe="",ht=0,Ft=0;Ft<Z.length;Ft++){for($=Z[Ft];$>m[ht+1].offset;)ht++;var qt=m[ht].offset,rn=($-qt)/(m[ht+1].offset-qt),Yn=m[ht].color,ti=m[ht+1].color;Xe+=re(Math.round((1-rn)*Yn[0]+rn*ti[0]).toString(16))+re(Math.round((1-rn)*Yn[1]+rn*ti[1]).toString(16))+re(Math.round((1-rn)*Yn[2]+rn*ti[2]).toString(16))}return Xe.trim()},i0=function(m,M){M||(M=21);var $=Ii(),Z=Jp(m.colors,M),ue=[];ue.push({key:"FunctionType",value:"0"}),ue.push({key:"Domain",value:"[0.0 1.0]"}),ue.push({key:"Size",value:"["+M+"]"}),ue.push({key:"BitsPerSample",value:"8"}),ue.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ue.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Jr({data:Z,additionalKeyValues:ue,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:$}),W("endobj"),m.objectNumber=Ii(),W("<< /ShadingType "+m.type),W("/ColorSpace /DeviceRGB");var Ee="/Coords ["+le(parseFloat(m.coords[0]))+" "+le(parseFloat(m.coords[1]))+" ";m.type===2?Ee+=le(parseFloat(m.coords[2]))+" "+le(parseFloat(m.coords[3])):Ee+=le(parseFloat(m.coords[2]))+" "+le(parseFloat(m.coords[3]))+" "+le(parseFloat(m.coords[4]))+" "+le(parseFloat(m.coords[5])),W(Ee+="]"),m.matrix&&W("/Matrix ["+m.matrix.toString()+"]"),W("/Function "+$+" 0 R"),W("/Extend [true true]"),W(">>"),W("endobj")},r0=function(m,M){var $=hi(),Z=Ii();M.push({resourcesOid:$,objectOid:Z}),m.objectNumber=Z;var ue=[];ue.push({key:"Type",value:"/Pattern"}),ue.push({key:"PatternType",value:"1"}),ue.push({key:"PaintType",value:"1"}),ue.push({key:"TilingType",value:"1"}),ue.push({key:"BBox",value:"["+m.boundingBox.map(le).join(" ")+"]"}),ue.push({key:"XStep",value:le(m.xStep)}),ue.push({key:"YStep",value:le(m.yStep)}),ue.push({key:"Resources",value:$+" 0 R"}),m.matrix&&ue.push({key:"Matrix",value:"["+m.matrix.toString()+"]"}),Jr({data:m.stream,additionalKeyValues:ue,objectId:m.objectNumber}),W("endobj")},yc=function(m){var M;for(M in yn)yn.hasOwnProperty(M)&&(yn[M]instanceof uc?i0(yn[M]):yn[M]instanceof Ku&&r0(yn[M],m))},Xp=function(m){for(var M in m.objectNumber=Ii(),W("<<"),m)switch(M){case"opacity":W("/ca "+Me(m[M]));break;case"stroke-opacity":W("/CA "+Me(m[M]))}W(">>"),W("endobj")},o0=function(){var m;for(m in Xn)Xn.hasOwnProperty(m)&&Xp(Xn[m])},ed=function(){for(var m in W("/XObject <<"),Hi)Hi.hasOwnProperty(m)&&Hi[m].objectNumber>=0&&W("/"+m+" "+Hi[m].objectNumber+" 0 R");bn.publish("putXobjectDict"),W(">>")},s0=function(){Zi.oid=Ii(),W("<<"),W("/Filter /Standard"),W("/V "+Zi.v),W("/R "+Zi.r),W("/U <"+Zi.toHexString(Zi.U)+">"),W("/O <"+Zi.toHexString(Zi.O)+">"),W("/P "+Zi.P),W(">>"),W("endobj")},ef=function(){for(var m in W("/Font <<"),Nn)Nn.hasOwnProperty(m)&&(v===!1||v===!0&&w.hasOwnProperty(m))&&W("/"+m+" "+Nn[m].objectNumber+" 0 R");W(">>")},a0=function(){if(Object.keys(yn).length>0){for(var m in W("/Shading <<"),yn)yn.hasOwnProperty(m)&&yn[m]instanceof uc&&yn[m].objectNumber>=0&&W("/"+m+" "+yn[m].objectNumber+" 0 R");bn.publish("putShadingPatternDict"),W(">>")}},bc=function(m){if(Object.keys(yn).length>0){for(var M in W("/Pattern <<"),yn)yn.hasOwnProperty(M)&&yn[M]instanceof g.TilingPattern&&yn[M].objectNumber>=0&&yn[M].objectNumber<m&&W("/"+M+" "+yn[M].objectNumber+" 0 R");bn.publish("putTilingPatternDict"),W(">>")}},l0=function(){if(Object.keys(Xn).length>0){var m;for(m in W("/ExtGState <<"),Xn)Xn.hasOwnProperty(m)&&Xn[m].objectNumber>=0&&W("/"+m+" "+Xn[m].objectNumber+" 0 R");bn.publish("putGStateDict"),W(">>")}},si=function(m){Lr(m.resourcesOid,!0),W("<<"),W("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ef(),a0(),bc(m.objectOid),l0(),ed(),W(">>"),W("endobj")},tf=function(){var m=[];mc(),o0(),vc(),yc(m),bn.publish("putResources"),m.forEach(si),si({resourcesOid:Co,objectOid:Number.MAX_SAFE_INTEGER}),bn.publish("postPutResources")},nf=function(){bn.publish("putAdditionalObjects");for(var m=0;m<Ue.length;m++){var M=Ue[m];Lr(M.objId,!0),W(M.content),W("endobj")}bn.publish("postPutAdditionalObjects")},rf=function(m){zn[m.fontName]=zn[m.fontName]||{},zn[m.fontName][m.fontStyle]=m.id},td=function(m,M,$,Z,ue){var Ee={id:"F"+(Object.keys(Nn).length+1).toString(10),postScriptName:m,fontName:M,fontStyle:$,encoding:Z,isStandardFont:ue||!1,metadata:{}};return bn.publish("addFont",{font:Ee,instance:this}),Nn[Ee.id]=Ee,rf(Ee),Ee.id},c0=function(m){for(var M=0,$=ke.length;M<$;M++){var Z=td.call(this,m[M][0],m[M][1],m[M][2],ke[M][3],!0);v===!1&&(w[Z]=!0);var ue=m[M][0].split("-");rf({id:Z,fontName:ue[0],fontStyle:ue[1]||""})}bn.publish("addFonts",{fonts:Nn,dictionary:zn})},So=function(m){return m.foo=function(){try{return m.apply(this,arguments)}catch(Z){var M=Z.stack||"";~M.indexOf(" at ")&&(M=M.split(" at ")[1]);var $="Error in function "+M.split(`
+`)[0].split("<")[0]+": "+Z.message;if(!wt.console)throw new Error($);wt.console.error($,Z),wt.alert&&alert($)}},m.foo.bar=m,m.foo},_c=function(m,M){var $,Z,ue,Ee,Le,Xe,ht,Ft,qt;if(ue=(M=M||{}).sourceEncoding||"Unicode",Le=M.outputEncoding,(M.autoencode||Le)&&Nn[Kt].metadata&&Nn[Kt].metadata[ue]&&Nn[Kt].metadata[ue].encoding&&(Ee=Nn[Kt].metadata[ue].encoding,!Le&&Nn[Kt].encoding&&(Le=Nn[Kt].encoding),!Le&&Ee.codePages&&(Le=Ee.codePages[0]),typeof Le=="string"&&(Le=Ee[Le]),Le)){for(ht=!1,Xe=[],$=0,Z=m.length;$<Z;$++)(Ft=Le[m.charCodeAt($)])?Xe.push(String.fromCharCode(Ft)):Xe.push(m[$]),Xe[$].charCodeAt(0)>>8&&(ht=!0);m=Xe.join("")}for($=m.length;ht===void 0&&$!==0;)m.charCodeAt($-1)>>8&&(ht=!0),$--;if(!ht)return m;for(Xe=M.noBOM?[]:[254,255],$=0,Z=m.length;$<Z;$++){if((qt=(Ft=m.charCodeAt($))>>8)>>8)throw new Error("Character at position "+$+" of string '"+m+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Xe.push(qt),Xe.push(Ft-(qt<<8))}return String.fromCharCode.apply(void 0,Xe)},yr=g.__private__.pdfEscape=g.pdfEscape=function(m,M){return _c(m,M).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},nd=g.__private__.beginPage=function(m){Be[++ei]=[],Mt[ei]={objId:0,contentsObjId:0,userUnit:Number(a),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(m[0]),topRightY:Number(m[1])}},sf(ei),Se(Be[H])},of=function(m,M){var $,Z,ue;switch(i=M||i,typeof m=="string"&&($=x(m.toLowerCase()),Array.isArray($)&&(Z=$[0],ue=$[1])),Array.isArray(m)&&(Z=m[0]*Ze,ue=m[1]*Ze),isNaN(Z)&&(Z=r[0],ue=r[1]),(Z>14400||ue>14400)&&(kn.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Z=Math.min(14400,Z),ue=Math.min(14400,ue)),r=[Z,ue],i.substr(0,1)){case"l":ue>Z&&(r=[ue,Z]);break;case"p":Z>ue&&(r=[ue,Z])}nd(r),pf(sd),W(Io),ld!==0&&W(ld+" J"),cd!==0&&W(cd+" j"),bn.publish("addPage",{pageNumber:ei})},u0=function(m){m>0&&m<=ei&&(Be.splice(m,1),Mt.splice(m,1),ei--,H>ei&&(H=ei),this.setPage(H))},sf=function(m){m>0&&m<=ei&&(H=m)},d0=g.__private__.getNumberOfPages=g.getNumberOfPages=function(){return Be.length-1},af=function(m,M,$){var Z,ue=void 0;return $=$||{},m=m!==void 0?m:Nn[Kt].fontName,M=M!==void 0?M:Nn[Kt].fontStyle,Z=m.toLowerCase(),zn[Z]!==void 0&&zn[Z][M]!==void 0?ue=zn[Z][M]:zn[m]!==void 0&&zn[m][M]!==void 0?ue=zn[m][M]:$.disableWarning===!1&&kn.warn("Unable to look up font label for font '"+m+"', '"+M+"'. Refer to getFontList() for available fonts."),ue||$.noFallback||(ue=zn.times[M])==null&&(ue=zn.times.normal),ue},p0=g.__private__.putInfo=function(){var m=Ii(),M=function(Z){return Z};for(var $ in h!==null&&(M=Zi.encryptor(m,0)),W("<<"),W("/Producer ("+yr(M("jsPDF "+bt.version))+")"),Et)Et.hasOwnProperty($)&&Et[$]&&W("/"+$.substr(0,1).toUpperCase()+$.substr(1)+" ("+yr(M(Et[$]))+")");W("/CreationDate ("+yr(M(we))+")"),W(">>"),W("endobj")},id=g.__private__.putCatalog=function(m){var M=(m=m||{}).rootDictionaryObjId||Us;switch(Ii(),W("<<"),W("/Type /Catalog"),W("/Pages "+M+" 0 R"),Qe||(Qe="fullwidth"),Qe){case"fullwidth":W("/OpenAction [3 0 R /FitH null]");break;case"fullheight":W("/OpenAction [3 0 R /FitV null]");break;case"fullpage":W("/OpenAction [3 0 R /Fit]");break;case"original":W("/OpenAction [3 0 R /XYZ null null 1]");break;default:var $=""+Qe;$.substr($.length-1)==="%"&&(Qe=parseInt(Qe)/100),typeof Qe=="number"&&W("/OpenAction [3 0 R /XYZ null null "+Me(Qe)+"]")}switch(Ht||(Ht="continuous"),Ht){case"continuous":W("/PageLayout /OneColumn");break;case"single":W("/PageLayout /SinglePage");break;case"two":case"twoleft":W("/PageLayout /TwoColumnLeft");break;case"tworight":W("/PageLayout /TwoColumnRight")}Dt&&W("/PageMode /"+Dt),bn.publish("putCatalog"),W(">>"),W("endobj")},f0=g.__private__.putTrailer=function(){W("trailer"),W("<<"),W("/Size "+(ce+1)),W("/Root "+ce+" 0 R"),W("/Info "+(ce-1)+" 0 R"),h!==null&&W("/Encrypt "+Zi.oid+" 0 R"),W("/ID [ <"+be+"> <"+be+"> ]"),W(">>")},h0=g.__private__.putHeader=function(){W("%PDF-"+S),W("%\xBA\xDF\xAC\xE0")},m0=g.__private__.putXRef=function(){var m="0000000000";W("xref"),W("0 "+(ce+1)),W("0000000000 65535 f ");for(var M=1;M<=ce;M++)typeof ge[M]=="function"?W((m+ge[M]()).slice(-10)+" 00000 n "):ge[M]!==void 0?W((m+ge[M]).slice(-10)+" 00000 n "):W("0000000000 00000 n ")},qs=g.__private__.buildDocument=function(){Ct(),Se(ve),bn.publish("buildDocument"),h0(),Il(),nf(),tf(),h!==null&&s0(),p0(),id();var m=_e;return m0(),f0(),W("startxref"),W(""+m),W("%%EOF"),Se(Be[H]),ve.join(`
+`)},Cc=g.__private__.getBlob=function(m){return new Blob([lt(m)],{type:"application/pdf"})},wc=g.output=g.__private__.output=So(function(m,M){switch(typeof(M=M||{})=="string"?M={filename:M}:M.filename=M.filename||"generated.pdf",m){case void 0:return qs();case"save":g.save(M.filename);break;case"arraybuffer":return lt(qs());case"blob":return Cc(qs());case"bloburi":case"bloburl":if(wt.URL!==void 0&&typeof wt.URL.createObjectURL=="function")return wt.URL&&wt.URL.createObjectURL(Cc(qs()))||void 0;kn.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var $="",Z=qs();try{$=Ib(Z)}catch{$=Ib(unescape(encodeURIComponent(Z)))}return"data:application/pdf;filename="+M.filename+";base64,"+$;case"pdfobjectnewwindow":if(Object.prototype.toString.call(wt)==="[object Window]"){var ue="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Ee=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';M.pdfObjectUrl&&(ue=M.pdfObjectUrl,Ee="");var Le='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+ue+'"'+Ee+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(M)+");<\/script></body></html>",Xe=wt.open();return Xe!==null&&Xe.document.write(Le),Xe}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(wt)==="[object Window]"){var ht='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(M.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+M.filename+'" width="500px" height="400px" /></body></html>',Ft=wt.open();if(Ft!==null){Ft.document.write(ht);var qt=this;Ft.document.documentElement.querySelector("#pdfViewer").onload=function(){Ft.document.title=M.filename,Ft.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(qt.output("bloburl"))}}return Ft}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(wt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var rn='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",M)+'"></iframe></body></html>',Yn=wt.open();if(Yn!==null&&(Yn.document.write(rn),Yn.document.title=M.filename),Yn||typeof safari>"u")return Yn;break;case"datauri":case"dataurl":return wt.document.location.href=this.output("datauristring",M);default:return null}}),lf=function(m){return Array.isArray(Sl)===!0&&Sl.indexOf(m)>-1};switch(n){case"pt":Ze=1;break;case"mm":Ze=72/25.4;break;case"cm":Ze=72/2.54;break;case"in":Ze=72;break;case"px":Ze=lf("px_scaling")==1?.75:96/72;break;case"pc":case"em":Ze=12;break;case"ex":Ze=6;break;default:if(typeof n!="number")throw new Error("Invalid unit: "+n);Ze=n}var Zi=null;Ke(),me();var g0=function(m){return h!==null?Zi.encryptor(m,0):function(M){return M}},cf=g.__private__.getPageInfo=g.getPageInfo=function(m){if(isNaN(m)||m%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Mt[m].objId,pageNumber:m,pageContext:Mt[m]}},It=g.__private__.getPageInfoByObjId=function(m){if(isNaN(m)||m%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var M in Mt)if(Mt[M].objId===m)break;return cf(M)},v0=g.__private__.getCurrentPageInfo=g.getCurrentPageInfo=function(){return{objId:Mt[H].objId,pageNumber:H,pageContext:Mt[H]}};g.addPage=function(){return of.apply(this,arguments),this},g.setPage=function(){return sf.apply(this,arguments),Se.call(this,Be[H]),this},g.insertPage=function(m){return this.addPage(),this.movePage(H,m),this},g.movePage=function(m,M){var $,Z;if(m>M){$=Be[m],Z=Mt[m];for(var ue=m;ue>M;ue--)Be[ue]=Be[ue-1],Mt[ue]=Mt[ue-1];Be[M]=$,Mt[M]=Z,this.setPage(M)}else if(m<M){$=Be[m],Z=Mt[m];for(var Ee=m;Ee<M;Ee++)Be[Ee]=Be[Ee+1],Mt[Ee]=Mt[Ee+1];Be[M]=$,Mt[M]=Z,this.setPage(M)}return this},g.deletePage=function(){return u0.apply(this,arguments),this},g.__private__.text=g.text=function(m,M,$,Z,ue){var Ee,Le,Xe,ht,Ft,qt,rn,Yn,ti,mi=(Z=Z||{}).scope||this;if(typeof m=="number"&&typeof M=="number"&&(typeof $=="string"||Array.isArray($))){var Ji=$;$=M,M=m,m=Ji}if(arguments[3]instanceof _t?(Y("The transform parameter of text() with a Matrix value"),ti=ue):(Xe=arguments[4],ht=arguments[5],Tn(rn=arguments[3])==="object"&&rn!==null||(typeof Xe=="string"&&(ht=Xe,Xe=null),typeof rn=="string"&&(ht=rn,rn=null),typeof rn=="number"&&(Xe=rn,rn=null),Z={flags:rn,angle:Xe,align:ht})),isNaN(M)||isNaN($)||m==null)throw new Error("Invalid arguments passed to jsPDF.text");if(m.length===0)return mi;var Pi="",xo=!1,kr=typeof Z.lineHeightFactor=="number"?Z.lineHeightFactor:Dl,Hs=mi.internal.scaleFactor;function yf(jn){return jn=jn.split("	").join(Array(Z.TabLen||9).join(" ")),yr(jn,rn)}function hd(jn){for(var Vn,ai=jn.concat(),xi=[],Ys=ai.length;Ys--;)typeof(Vn=ai.shift())=="string"?xi.push(Vn):Array.isArray(jn)&&(Vn.length===1||Vn[1]===void 0&&Vn[2]===void 0)?xi.push(Vn[0]):xi.push([Vn[0],Vn[1],Vn[2]]);return xi}function md(jn,Vn){var ai;if(typeof jn=="string")ai=Vn(jn)[0];else if(Array.isArray(jn)){for(var xi,Ys,Sa=jn.concat(),Lc=[],_f=Sa.length;_f--;)typeof(xi=Sa.shift())=="string"?Lc.push(Vn(xi)[0]):Array.isArray(xi)&&typeof xi[0]=="string"&&(Ys=Vn(xi[0],xi[1],xi[2]),Lc.push([Ys[0],Ys[1],Ys[2]]));ai=Lc}return ai}var Mc=!1,gd=!0;if(typeof m=="string")Mc=!0;else if(Array.isArray(m)){var vd=m.concat();Le=[];for(var Ac,br=vd.length;br--;)(typeof(Ac=vd.shift())!="string"||Array.isArray(Ac)&&typeof Ac[0]!="string")&&(gd=!1);Mc=gd}if(Mc===!1)throw new Error('Type of text must be string or Array. "'+m+'" is not recognized.');typeof m=="string"&&(m=m.match(/[\r?\n]/)?m.split(/\r\n|\r|\n/g):[m]);var Tc=$e/mi.internal.scaleFactor,Fc=Tc*(kr-1);switch(Z.baseline){case"bottom":$-=Fc;break;case"top":$+=Tc-Fc;break;case"hanging":$+=Tc-2*Fc;break;case"middle":$+=Tc/2-Fc}if((qt=Z.maxWidth||0)>0&&(typeof m=="string"?m=mi.splitTextToSize(m,qt):Object.prototype.toString.call(m)==="[object Array]"&&(m=m.reduce(function(jn,Vn){return jn.concat(mi.splitTextToSize(Vn,qt))},[]))),Ee={text:m,x:M,y:$,options:Z,mutex:{pdfEscape:yr,activeFontKey:Kt,fonts:Nn,activeFontSize:$e}},bn.publish("preProcessText",Ee),m=Ee.text,Xe=(Z=Ee.options).angle,!(ti instanceof _t)&&Xe&&typeof Xe=="number"){Xe*=Math.PI/180,Z.rotationDirection===0&&(Xe=-Xe),U===P.ADVANCED&&(Xe=-Xe);var Nc=Math.cos(Xe),yd=Math.sin(Xe);ti=new _t(Nc,yd,-yd,Nc,0,0)}else Xe&&Xe instanceof _t&&(ti=Xe);U!==P.ADVANCED||ti||(ti=ns),(Ft=Z.charSpace||Ic)!==void 0&&(Pi+=le(k(Ft))+` Tc
+`,this.setCharSpace(this.getCharSpace()||0)),(Yn=Z.horizontalScale)!==void 0&&(Pi+=le(100*Yn)+` Tz
+`),Z.lang;var _r=-1,D0=Z.renderingMode!==void 0?Z.renderingMode:Z.stroke,bd=mi.internal.getCurrentPageInfo().pageContext;switch(D0){case 0:case!1:case"fill":_r=0;break;case 1:case!0:case"stroke":_r=1;break;case 2:case"fillThenStroke":_r=2;break;case 3:case"invisible":_r=3;break;case 4:case"fillAndAddForClipping":_r=4;break;case 5:case"strokeAndAddPathForClipping":_r=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":_r=6;break;case 7:case"addToPathForClipping":_r=7}var bf=bd.usedRenderingMode!==void 0?bd.usedRenderingMode:-1;_r!==-1?Pi+=_r+` Tr
+`:bf!==-1&&(Pi+=`0 Tr
+`),_r!==-1&&(bd.usedRenderingMode=_r),ht=Z.align||"left";var Do,_d=$e*kr,M0=mi.internal.pageSize.getWidth(),A0=Nn[Kt];Ft=Z.charSpace||Ic,qt=Z.maxWidth||0,rn=Object.assign({autoencode:!0,noBOM:!0},Z.flags);var _a=[];if(Object.prototype.toString.call(m)==="[object Array]"){var Xr;Le=hd(m),ht!=="left"&&(Do=Le.map(function(jn){return mi.getStringUnitWidth(jn,{font:A0,charSpace:Ft,fontSize:$e,doKerning:!1})*$e/Hs}));var Mo,Ca=0;if(ht==="right"){M-=Do[0],m=[],br=Le.length;for(var ss=0;ss<br;ss++)ss===0?(Mo=$s(M),Xr=va($)):(Mo=k(Ca-Do[ss]),Xr=-_d),m.push([Le[ss],Mo,Xr]),Ca=Do[ss]}else if(ht==="center"){M-=Do[0]/2,m=[],br=Le.length;for(var zs=0;zs<br;zs++)zs===0?(Mo=$s(M),Xr=va($)):(Mo=k((Ca-Do[zs])/2),Xr=-_d),m.push([Le[zs],Mo,Xr]),Ca=Do[zs]}else if(ht==="left"){m=[],br=Le.length;for(var Pc=0;Pc<br;Pc++)m.push(Le[Pc])}else{if(ht!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');m=[],br=Le.length,qt=qt!==0?qt:M0;for(var Ao=0;Ao<br;Ao++)Xr=Ao===0?va($):-_d,Mo=Ao===0?$s(M):0,Ao<br-1?_a.push(le(k((qt-Do[Ao])/(Le[Ao].split(" ").length-1)))):_a.push(0),m.push([Le[Ao],Mo,Xr])}}var Oc=typeof Z.R2L=="boolean"?Z.R2L:pt;Oc===!0&&(m=md(m,function(jn,Vn,ai){return[jn.split("").reverse().join(""),Vn,ai]})),Ee={text:m,x:M,y:$,options:Z,mutex:{pdfEscape:yr,activeFontKey:Kt,fonts:Nn,activeFontSize:$e}},bn.publish("postProcessText",Ee),m=Ee.text,xo=Ee.mutex.isHex||!1;var Cd=Nn[Kt].encoding;Cd!=="WinAnsiEncoding"&&Cd!=="StandardEncoding"||(m=md(m,function(jn,Vn,ai){return[yf(jn),Vn,ai]})),Le=hd(m),m=[];for(var wa,To,Gs,Tl=0,Rc=1,Fl=Array.isArray(Le[0])?Rc:Tl,Ea="",wd=function(jn,Vn,ai){var xi="";return ai instanceof _t?(ai=typeof Z.angle=="number"?_o(ai,new _t(1,0,0,1,jn,Vn)):_o(new _t(1,0,0,1,jn,Vn),ai),U===P.ADVANCED&&(ai=_o(new _t(1,0,0,-1,0,0),ai)),xi=ai.join(" ")+` Tm
+`):xi=le(jn)+" "+le(Vn)+` Td
+`,xi},eo=0;eo<Le.length;eo++){switch(Ea="",Fl){case Rc:Gs=(xo?"<":"(")+Le[eo][0]+(xo?">":")"),wa=parseFloat(Le[eo][1]),To=parseFloat(Le[eo][2]);break;case Tl:Gs=(xo?"<":"(")+Le[eo]+(xo?">":")"),wa=$s(M),To=va($)}_a!==void 0&&_a[eo]!==void 0&&(Ea=_a[eo]+` Tw
+`),eo===0?m.push(Ea+wd(wa,To,ti)+Gs):Fl===Tl?m.push(Ea+Gs):Fl===Rc&&m.push(Ea+wd(wa,To,ti)+Gs)}m=Fl===Tl?m.join(` Tj
+T* `):m.join(` Tj
+`),m+=` Tj
+`;var Ws=`BT
+/`;return Ws+=Kt+" "+$e+` Tf
+`,Ws+=le($e*kr)+` TL
+`,Ws+=Ml+`
+`,Ws+=Pi,Ws+=m,W(Ws+="ET"),w[Kt]=!0,mi};var y0=g.__private__.clip=g.clip=function(m){return W(m==="evenodd"?"W*":"W"),this};g.clipEvenOdd=function(){return y0("evenodd")},g.__private__.discardPath=g.discardPath=function(){return W("n"),this};var os=g.__private__.isValidStyle=function(m){var M=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(m)!==-1&&(M=!0),M};g.__private__.setDefaultPathOperation=g.setDefaultPathOperation=function(m){return os(m)&&(p=m),this};var uf=g.__private__.getStyle=g.getStyle=function(m){var M=p;switch(m){case"D":case"S":M="S";break;case"F":M="f";break;case"FD":case"DF":M="B";break;case"f":case"f*":case"B":case"B*":M=m}return M},df=g.close=function(){return W("h"),this};g.stroke=function(){return W("S"),this},g.fill=function(m){return Ec("f",m),this},g.fillEvenOdd=function(m){return Ec("f*",m),this},g.fillStroke=function(m){return Ec("B",m),this},g.fillStrokeEvenOdd=function(m){return Ec("B*",m),this};var Ec=function(m,M){Tn(M)==="object"?_0(M,m):W(m)},rd=function(m){m===null||U===P.ADVANCED&&m===void 0||(m=uf(m),W(m))};function b0(m,M,$,Z,ue){var Ee=new Ku(M||this.boundingBox,$||this.xStep,Z||this.yStep,this.gState,ue||this.matrix);Ee.stream=this.stream;var Le=m+"$$"+this.cloneIndex+++"$$";return vr(Le,Ee),Ee}var _0=function(m,M){var $=El[m.key],Z=yn[$];if(Z instanceof uc)W("q"),W(C0(M)),Z.gState&&g.setGState(Z.gState),W(m.matrix.toString()+" cm"),W("/"+$+" sh"),W("Q");else if(Z instanceof Ku){var ue=new _t(1,0,0,-1,0,ba());m.matrix&&(ue=ue.multiply(m.matrix||ns),$=b0.call(Z,m.key,m.boundingBox,m.xStep,m.yStep,ue).id),W("q"),W("/Pattern cs"),W("/"+$+" scn"),Z.gState&&g.setGState(Z.gState),W(M),W("Q")}},C0=function(m){switch(m){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},od=g.moveTo=function(m,M){return W(le(k(m))+" "+le(K(M))+" m"),this},xl=g.lineTo=function(m,M){return W(le(k(m))+" "+le(K(M))+" l"),this},ga=g.curveTo=function(m,M,$,Z,ue,Ee){return W([le(k(m)),le(K(M)),le(k($)),le(K(Z)),le(k(ue)),le(K(Ee)),"c"].join(" ")),this};g.__private__.line=g.line=function(m,M,$,Z,ue){if(isNaN(m)||isNaN(M)||isNaN($)||isNaN(Z)||!os(ue))throw new Error("Invalid arguments passed to jsPDF.line");return U===P.COMPAT?this.lines([[$-m,Z-M]],m,M,[1,1],ue||"S"):this.lines([[$-m,Z-M]],m,M,[1,1]).stroke()},g.__private__.lines=g.lines=function(m,M,$,Z,ue,Ee){var Le,Xe,ht,Ft,qt,rn,Yn,ti,mi,Ji,Pi,xo;if(typeof m=="number"&&(xo=$,$=M,M=m,m=xo),Z=Z||[1,1],Ee=Ee||!1,isNaN(M)||isNaN($)||!Array.isArray(m)||!Array.isArray(Z)||!os(ue)||typeof Ee!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(od(M,$),Le=Z[0],Xe=Z[1],Ft=m.length,Ji=M,Pi=$,ht=0;ht<Ft;ht++)(qt=m[ht]).length===2?(Ji=qt[0]*Le+Ji,Pi=qt[1]*Xe+Pi,xl(Ji,Pi)):(rn=qt[0]*Le+Ji,Yn=qt[1]*Xe+Pi,ti=qt[2]*Le+Ji,mi=qt[3]*Xe+Pi,Ji=qt[4]*Le+Ji,Pi=qt[5]*Xe+Pi,ga(rn,Yn,ti,mi,Ji,Pi));return Ee&&df(),rd(ue),this},g.path=function(m){for(var M=0;M<m.length;M++){var $=m[M],Z=$.c;switch($.op){case"m":od(Z[0],Z[1]);break;case"l":xl(Z[0],Z[1]);break;case"c":ga.apply(this,Z);break;case"h":df()}}return this},g.__private__.rect=g.rect=function(m,M,$,Z,ue){if(isNaN(m)||isNaN(M)||isNaN($)||isNaN(Z)||!os(ue))throw new Error("Invalid arguments passed to jsPDF.rect");return U===P.COMPAT&&(Z=-Z),W([le(k(m)),le(K(M)),le(k($)),le(k(Z)),"re"].join(" ")),rd(ue),this},g.__private__.triangle=g.triangle=function(m,M,$,Z,ue,Ee,Le){if(isNaN(m)||isNaN(M)||isNaN($)||isNaN(Z)||isNaN(ue)||isNaN(Ee)||!os(Le))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[$-m,Z-M],[ue-$,Ee-Z],[m-ue,M-Ee]],m,M,[1,1],Le,!0),this},g.__private__.roundedRect=g.roundedRect=function(m,M,$,Z,ue,Ee,Le){if(isNaN(m)||isNaN(M)||isNaN($)||isNaN(Z)||isNaN(ue)||isNaN(Ee)||!os(Le))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Xe=4/3*(Math.SQRT2-1);return ue=Math.min(ue,.5*$),Ee=Math.min(Ee,.5*Z),this.lines([[$-2*ue,0],[ue*Xe,0,ue,Ee-Ee*Xe,ue,Ee],[0,Z-2*Ee],[0,Ee*Xe,-ue*Xe,Ee,-ue,Ee],[2*ue-$,0],[-ue*Xe,0,-ue,-Ee*Xe,-ue,-Ee],[0,2*Ee-Z],[0,-Ee*Xe,ue*Xe,-Ee,ue,-Ee]],m+ue,M,[1,1],Le,!0),this},g.__private__.ellipse=g.ellipse=function(m,M,$,Z,ue){if(isNaN(m)||isNaN(M)||isNaN($)||isNaN(Z)||!os(ue))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Ee=4/3*(Math.SQRT2-1)*$,Le=4/3*(Math.SQRT2-1)*Z;return od(m+$,M),ga(m+$,M-Le,m+Ee,M-Z,m,M-Z),ga(m-Ee,M-Z,m-$,M-Le,m-$,M),ga(m-$,M+Le,m-Ee,M+Z,m,M+Z),ga(m+Ee,M+Z,m+$,M+Le,m+$,M),rd(ue),this},g.__private__.circle=g.circle=function(m,M,$,Z){if(isNaN(m)||isNaN(M)||isNaN($)||!os(Z))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(m,M,$,$,Z)},g.setFont=function(m,M,$){return $&&(M=J(M,$)),Kt=af(m,M,{disableWarning:!1}),this};var w0=g.__private__.getFont=g.getFont=function(){return Nn[af.apply(g,arguments)]};g.__private__.getFontList=g.getFontList=function(){var m,M,$={};for(m in zn)if(zn.hasOwnProperty(m))for(M in $[m]=[],zn[m])zn[m].hasOwnProperty(M)&&$[m].push(M);return $},g.addFont=function(m,M,$,Z,ue){var Ee=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Ee.indexOf(arguments[3])!==-1?ue=arguments[3]:arguments[3]&&Ee.indexOf(arguments[3])==-1&&($=J($,Z)),ue=ue||"Identity-H",td.call(this,m,M,$,ue)};var Dl,sd=e.lineWidth||.200025,Sc=g.__private__.getLineWidth=g.getLineWidth=function(){return sd},pf=g.__private__.setLineWidth=g.setLineWidth=function(m){return sd=m,W(le(k(m))+" w"),this};g.__private__.setLineDash=bt.API.setLineDash=bt.API.setLineDashPattern=function(m,M){if(m=m||[],M=M||0,isNaN(M)||!Array.isArray(m))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return m=m.map(function($){return le(k($))}).join(" "),M=le(k(M)),W("["+m+"] "+M+" d"),this};var ff=g.__private__.getLineHeight=g.getLineHeight=function(){return $e*Dl};g.__private__.getLineHeight=g.getLineHeight=function(){return $e*Dl};var hf=g.__private__.setLineHeightFactor=g.setLineHeightFactor=function(m){return typeof(m=m||1.15)=="number"&&(Dl=m),this},mf=g.__private__.getLineHeightFactor=g.getLineHeightFactor=function(){return Dl};hf(e.lineHeight);var $s=g.__private__.getHorizontalCoordinate=function(m){return k(m)},va=g.__private__.getVerticalCoordinate=function(m){return U===P.ADVANCED?m:Mt[H].mediaBox.topRightY-Mt[H].mediaBox.bottomLeftY-k(m)},E0=g.__private__.getHorizontalCoordinateString=g.getHorizontalCoordinateString=function(m){return le($s(m))},ya=g.__private__.getVerticalCoordinateString=g.getVerticalCoordinateString=function(m){return le(va(m))},Io=e.strokeColor||"0 G";g.__private__.getStrokeColor=g.getDrawColor=function(){return wo(Io)},g.__private__.setStrokeColor=g.setDrawColor=function(m,M,$,Z){return Io=Eo({ch1:m,ch2:M,ch3:$,ch4:Z,pdfColorType:"draw",precision:2}),W(Io),this};var ad=e.fillColor||"0 g";g.__private__.getFillColor=g.getFillColor=function(){return wo(ad)},g.__private__.setFillColor=g.setFillColor=function(m,M,$,Z){return ad=Eo({ch1:m,ch2:M,ch3:$,ch4:Z,pdfColorType:"fill",precision:2}),W(ad),this};var Ml=e.textColor||"0 g",S0=g.__private__.getTextColor=g.getTextColor=function(){return wo(Ml)};g.__private__.setTextColor=g.setTextColor=function(m,M,$,Z){return Ml=Eo({ch1:m,ch2:M,ch3:$,ch4:Z,pdfColorType:"text",precision:3}),this};var Ic=e.charSpace,I0=g.__private__.getCharSpace=g.getCharSpace=function(){return parseFloat(Ic||0)};g.__private__.setCharSpace=g.setCharSpace=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Ic=m,this};var ld=0;g.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},g.__private__.setLineCap=g.setLineCap=function(m){var M=g.CapJoinStyles[m];if(M===void 0)throw new Error("Line cap style of '"+m+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ld=M,W(M+" J"),this};var cd=0;g.__private__.setLineJoin=g.setLineJoin=function(m){var M=g.CapJoinStyles[m];if(M===void 0)throw new Error("Line join style of '"+m+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return cd=M,W(M+" j"),this},g.__private__.setLineMiterLimit=g.__private__.setMiterLimit=g.setLineMiterLimit=g.setMiterLimit=function(m){if(m=m||0,isNaN(m))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return W(le(k(m))+" M"),this},g.GState=Jg,g.setGState=function(m){(m=typeof m=="string"?Xn[bo[m]]:gf(null,m)).equals(Bs)||(W("/"+m.id+" gs"),Bs=m)};var gf=function(m,M){if(!m||!bo[m]){var $=!1;for(var Z in Xn)if(Xn.hasOwnProperty(Z)&&Xn[Z].equals(M)){$=!0;break}if($)M=Xn[Z];else{var ue="GS"+(Object.keys(Xn).length+1).toString(10);Xn[ue]=M,M.id=ue}return m&&(bo[m]=M.id),bn.publish("addGState",M),M}};g.addGState=function(m,M){return gf(m,M),this},g.saveGraphicsState=function(){return W("q"),Xo.push({key:Kt,size:$e,color:Ml}),this},g.restoreGraphicsState=function(){W("Q");var m=Xo.pop();return Kt=m.key,$e=m.size,Ml=m.color,Bs=null,this},g.setCurrentTransformationMatrix=function(m){return W(m.toString()+" cm"),this},g.comment=function(m){return W("#"+m),this};var xc=function(m,M){var $=m||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return $},set:function(Ee){isNaN(Ee)||($=parseFloat(Ee))}});var Z=M||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Z},set:function(Ee){isNaN(Ee)||(Z=parseFloat(Ee))}});var ue="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ue},set:function(Ee){ue=Ee.toString()}}),this},ud=function(m,M,$,Z){xc.call(this,m,M),this.type="rect";var ue=$||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ue},set:function(Le){isNaN(Le)||(ue=parseFloat(Le))}});var Ee=Z||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Ee},set:function(Le){isNaN(Le)||(Ee=parseFloat(Le))}}),this},dd=function(){this.page=ei,this.currentPage=H,this.pages=Be.slice(0),this.pagesContext=Mt.slice(0),this.x=Qi,this.y=pn,this.matrix=yo,this.width=Al(H),this.height=ba(H),this.outputDestination=tt,this.id="",this.objectNumber=-1};dd.prototype.restore=function(){ei=this.page,H=this.currentPage,Mt=this.pagesContext,Be=this.pages,Qi=this.x,pn=this.y,yo=this.matrix,pd(H,this.width),fd(H,this.height),tt=this.outputDestination};var vf=function(m,M,$,Z,ue){ts.push(new dd),ei=H=0,Be=[],Qi=m,pn=M,yo=ue,nd([$,Z])},x0=function(m){if(es[m])ts.pop().restore();else{var M=new dd,$="Xo"+(Object.keys(Hi).length+1).toString(10);M.id=$,es[m]=$,Hi[$]=M,bn.publish("addFormObject",M),ts.pop().restore()}};for(var Dc in g.beginFormObject=function(m,M,$,Z,ue){return vf(m,M,$,Z,ue),this},g.endFormObject=function(m){return x0(m),this},g.doFormObject=function(m,M){var $=Hi[es[m]];return W("q"),W(M.toString()+" cm"),W("/"+$.id+" Do"),W("Q"),this},g.getFormObject=function(m){var M=Hi[es[m]];return{x:M.x,y:M.y,width:M.width,height:M.height,matrix:M.matrix}},g.save=function(m,M){return m=m||"generated.pdf",(M=M||{}).returnPromise=M.returnPromise||!1,M.returnPromise===!1?(cc(Cc(qs()),m),typeof cc.unload=="function"&&wt.setTimeout&&setTimeout(cc.unload,911),this):new Promise(function($,Z){try{var ue=cc(Cc(qs()),m);typeof cc.unload=="function"&&wt.setTimeout&&setTimeout(cc.unload,911),$(ue)}catch(Ee){Z(Ee.message)}})},bt.API)bt.API.hasOwnProperty(Dc)&&(Dc==="events"&&bt.API.events.length?function(m,M){var $,Z,ue;for(ue=M.length-1;ue!==-1;ue--)$=M[ue][0],Z=M[ue][1],m.subscribe.apply(m,[$].concat(typeof Z=="function"?[Z]:Z))}(bn,bt.API.events):g[Dc]=bt.API[Dc]);var Al=g.getPageWidth=function(m){return(Mt[m=m||H].mediaBox.topRightX-Mt[m].mediaBox.bottomLeftX)/Ze},pd=g.setPageWidth=function(m,M){Mt[m].mediaBox.topRightX=M*Ze+Mt[m].mediaBox.bottomLeftX},ba=g.getPageHeight=function(m){return(Mt[m=m||H].mediaBox.topRightY-Mt[m].mediaBox.bottomLeftY)/Ze},fd=g.setPageHeight=function(m,M){Mt[m].mediaBox.topRightY=M*Ze+Mt[m].mediaBox.bottomLeftY};return g.internal={pdfEscape:yr,getStyle:uf,getFont:w0,getFontSize:We,getCharSpace:I0,getTextColor:S0,getLineHeight:ff,getLineHeightFactor:mf,getLineWidth:Sc,write:Tt,getHorizontalCoordinate:$s,getVerticalCoordinate:va,getCoordinateString:E0,getVerticalCoordinateString:ya,collections:{},newObject:Ii,newAdditionalObject:fc,newObjectDeferred:hi,newObjectDeferredBegin:Lr,getFilters:is,putStream:Jr,events:bn,scaleFactor:Ze,pageSize:{getWidth:function(){return Al(H)},setWidth:function(m){pd(H,m)},getHeight:function(){return ba(H)},setHeight:function(m){fd(H,m)}},encryptionOptions:h,encryption:Zi,getEncryptor:g0,output:wc,getNumberOfPages:d0,pages:Be,out:W,f2:Me,f3:B,getPageInfo:cf,getPageInfoByObjId:It,getCurrentPageInfo:v0,getPDFVersion:I,Point:xc,Rectangle:ud,Matrix:_t,hasHotfix:lf},Object.defineProperty(g.internal.pageSize,"width",{get:function(){return Al(H)},set:function(m){pd(H,m)},enumerable:!0,configurable:!0}),Object.defineProperty(g.internal.pageSize,"height",{get:function(){return ba(H)},set:function(m){fd(H,m)},enumerable:!0,configurable:!0}),c0.call(g,ke),Kt="F1",of(r,i),bn.publish("initialized"),g}Wu.prototype.lsbFirstWord=function(e){return String.fromCharCode(e>>0&255,e>>8&255,e>>16&255,e>>24&255)},Wu.prototype.toHexString=function(e){return e.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Wu.prototype.hexToBytes=function(e){for(var t=[],i=0;i<e.length;i+=2)t.push(String.fromCharCode(parseInt(e.substr(i,2),16)));return t.join("")},Wu.prototype.processOwnerPassword=function(e,t){return Db(xb(t).substr(0,5),e)},Wu.prototype.encryptor=function(e,t){var i=xb(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(n){return Db(i,n)}},Jg.prototype.equals=function(e){var t,i="id,objectNumber,equals";if(!e||Tn(e)!==Tn(this))return!1;var n=0;for(t in this)if(!(i.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;n++}for(t in e)e.hasOwnProperty(t)&&i.indexOf(t)<0&&n--;return n===0},bt.API={events:[]},bt.version="2.5.1";var oi=bt.API,Fb=1,pc=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},zu=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},At=function(e){return e.toFixed(2)},bl=function(e){return e.toFixed(5)};oi.__acroform__={};var Rr=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},y3=function(e){return e*Fb},ks=function(e){var t=new R3,i=at.internal.getHeight(e)||0,n=at.internal.getWidth(e)||0;return t.BBox=[0,0,Number(At(n)),Number(At(i))],t},DB=oi.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|=1<<t},MB=oi.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&=~(1<<t)},AB=oi.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<t?1:0},di=oi.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return AB(e,t-1)},pi=oi.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return DB(e,t-1)},fi=oi.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return MB(e,t-1)},TB=oi.__acroform__.calculateCoordinates=function(e,t){var i=t.internal.getHorizontalCoordinate,n=t.internal.getVerticalCoordinate,r=e[0],o=e[1],s=e[2],a=e[3],l={};return l.lowerLeft_X=i(r)||0,l.lowerLeft_Y=n(o+a)||0,l.upperRight_X=i(r+s)||0,l.upperRight_Y=n(o)||0,[Number(At(l.lowerLeft_X)),Number(At(l.lowerLeft_Y)),Number(At(l.upperRight_X)),Number(At(l.upperRight_Y))]},FB=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],i=e._V||e.DV,n=Mb(e,i),r=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+r+" "+At(n.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(n.text),t.push("ET"),t.push("Q"),t.push("EMC");var o=ks(e);return o.scope=e.scope,o.stream=t.join(`
+`),o}},Mb=function(e,t){var i=e.fontSize===0?e.maxFontSize:e.fontSize,n={text:"",fontSize:""},r=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");r=e.multiline?r.map(function(B){return B.split(`
+`)}):r.map(function(B){return[B]});var o=i,s=at.internal.getHeight(e)||0;s=s<0?-s:s;var a=at.internal.getWidth(e)||0;a=a<0?-a:a;var l=function(B,k,te){if(B+1<r.length){var K=k+" "+r[B+1][0];return zg(K,e,te).width<=a-4}return!1};o++;e:for(;o>0;){t="",o--;var p,h,v=zg("3",e,o).height,w=e.multiline?s-o:(s-v)/2,g=w+=2,S=0,I=0,A=0;if(o<=0){t=`(...) Tj
+`,t+="% Width of Text: "+zg(t,e,o=12).width+", FieldWidth:"+a+`
+`;break}for(var x="",P=0,U=0;U<r.length;U++)if(r.hasOwnProperty(U)){var q=!1;if(r[U].length!==1&&A!==r[U].length-1){if((v+2)*(P+2)+2>s)continue e;x+=r[U][A],q=!0,I=U,U--}else{x=(x+=r[U][A]+" ").substr(x.length-1)==" "?x.substr(0,x.length-1):x;var Q=parseInt(U),J=l(Q,x,o),le=U>=r.length-1;if(J&&!le){x+=" ",A=0;continue}if(J||le){if(le)I=Q;else if(e.multiline&&(v+2)*(P+2)+2>s)continue e}else{if(!e.multiline||(v+2)*(P+2)+2>s)continue e;I=Q}}for(var Y="",Ae=S;Ae<=I;Ae++){var Me=r[Ae];if(e.multiline){if(Ae===I){Y+=Me[A]+" ",A=(A+1)%Me.length;continue}if(Ae===S){Y+=Me[Me.length-1]+" ";continue}}Y+=Me[0]+" "}switch(Y=Y.substr(Y.length-1)==" "?Y.substr(0,Y.length-1):Y,h=zg(Y,e,o).width,e.textAlign){case"right":p=a-h-2;break;case"center":p=(a-h)/2;break;case"left":default:p=2}t+=At(p)+" "+At(g)+` Td
+`,t+="("+pc(Y)+`) Tj
+`,t+=-At(p)+` 0 Td
+`,g=-(o+2),h=0,S=q?I:I+1,P++,x=""}break}return n.text=t,n.fontSize=o,n},zg=function(e,t,i){var n=t.scope.internal.getFont(t.fontName,t.fontStyle),r=t.scope.getStringUnitWidth(e,{font:n,fontSize:parseFloat(i),charSpace:0})*parseFloat(i);return{height:t.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(i),charSpace:0})*parseFloat(i)*1.5,width:r}},NB={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},PB=function(e,t){var i={type:"reference",object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find(function(n){return n.type===i.type&&n.object===i.object})===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(i)},OB=function(e,t){for(var i in e)if(e.hasOwnProperty(i)){var n=i,r=e[i];t.internal.newObjectDeferredBegin(r.objId,!0),Tn(r)==="object"&&typeof r.putStream=="function"&&r.putStream(),delete e[n]}},RB=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(Zo.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(NB)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Fb=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new L3,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(i){i.internal.events.unsubscribe(i.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete i.internal.acroformPlugin.acroFormDictionaryRoot._eventID,i.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(i){i.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=i.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var r in n)if(n.hasOwnProperty(r)){var o=n[r];o.objId=void 0,o.hasAnnotation&&PB(o,i)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(i){if(i.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");i.internal.write("/AcroForm "+i.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(i){(function(n,r){var o=!n;for(var s in n||(r.internal.newObjectDeferredBegin(r.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),r.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),n=n||r.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(n.hasOwnProperty(s)){var a=n[s],l=[],p=a.Rect;if(a.Rect&&(a.Rect=TB(a.Rect,r)),r.internal.newObjectDeferredBegin(a.objId,!0),a.DA=at.createDefaultAppearanceStream(a),Tn(a)==="object"&&typeof a.getKeyValueListForStream=="function"&&(l=a.getKeyValueListForStream()),a.Rect=p,a.hasAppearanceStream&&!a.appearanceStreamContent){var h=FB(a);l.push({key:"AP",value:"<</N "+h+">>"}),r.internal.acroformPlugin.xForms.push(h)}if(a.appearanceStreamContent){var v="";for(var w in a.appearanceStreamContent)if(a.appearanceStreamContent.hasOwnProperty(w)){var g=a.appearanceStreamContent[w];if(v+="/"+w+" ",v+="<<",Object.keys(g).length>=1||Array.isArray(g)){for(var s in g)if(g.hasOwnProperty(s)){var S=g[s];typeof S=="function"&&(S=S.call(r,a)),v+="/"+s+" "+S+" ",r.internal.acroformPlugin.xForms.indexOf(S)>=0||r.internal.acroformPlugin.xForms.push(S)}}else typeof(S=g)=="function"&&(S=S.call(r,a)),v+="/"+s+" "+S,r.internal.acroformPlugin.xForms.indexOf(S)>=0||r.internal.acroformPlugin.xForms.push(S);v+=">>"}l.push({key:"AP",value:`<<
+`+v+">>"})}r.internal.putStream({additionalKeyValues:l,objectId:a.objId}),r.internal.out("endobj")}o&&OB(r.internal.acroformPlugin.xForms,r)})(i,e)}),e.internal.acroformPlugin.isInitialized=!0}},O3=oi.__acroform__.arrayToPdfArray=function(e,t,i){var n=function(s){return s};if(Array.isArray(e)){for(var r="[",o=0;o<e.length;o++)switch(o!==0&&(r+=" "),Tn(e[o])){case"boolean":case"number":case"object":r+=e[o].toString();break;case"string":e[o].substr(0,1)!=="/"?(t!==void 0&&i&&(n=i.internal.getEncryptor(t)),r+="("+pc(n(e[o].toString()))+")"):r+=e[o].toString()}return r+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},wb=function(e,t,i){var n=function(r){return r};return t!==void 0&&i&&(n=i.internal.getEncryptor(t)),(e=e||"").toString(),e="("+pc(n(e))+")"},js=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};js.prototype.toString=function(){return this.objId+" 0 R"},js.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},js.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(o){return o!="content"&&o!="appearanceStreamContent"&&o!="scope"&&o!="objId"&&o.substring(0,1)!="_"});for(var i in t)if(Object.getOwnPropertyDescriptor(this,t[i]).configurable===!1){var n=t[i],r=this[n];r&&(Array.isArray(r)?e.push({key:n,value:O3(r,this.objId,this.scope)}):r instanceof js?(r.scope=this.scope,e.push({key:n,value:r.objId+" 0 R"})):typeof r!="function"&&e.push({key:n,value:r}))}return e};var R3=function(){js.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(i){t=i}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(i){e=i.trim()},get:function(){return e||null}})};Rr(R3,js);var L3=function(){js.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var i=function(n){return n};return this.scope&&(i=this.scope.internal.getEncryptor(this.objId)),"("+pc(i(e))+")"}},set:function(i){e=i}})};Rr(L3,js);var Zo=function e(){js.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(x){if(isNaN(x))throw new Error('Invalid value "'+x+'" for attribute F supplied.');t=x}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!di(t,3)},set:function(x){x?this.F=pi(t,3):this.F=fi(t,3)}});var i=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return i},set:function(x){if(isNaN(x))throw new Error('Invalid value "'+x+'" for attribute Ff supplied.');i=x}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(n.length!==0)return n},set:function(x){n=x!==void 0?x:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(x){n[0]=x}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(x){n[1]=x}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(x){n[2]=x}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(x){n[3]=x}});var r="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return r},set:function(x){switch(x){case"/Btn":case"/Tx":case"/Ch":case"/Sig":r=x;break;default:throw new Error('Invalid value "'+x+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!o||o.length<1){if(this instanceof Xg)return;o="FieldObject"+e.FieldNum++}var x=function(P){return P};return this.scope&&(x=this.scope.internal.getEncryptor(this.objId)),"("+pc(x(o))+")"},set:function(x){o=x.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(x){o=x}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(x){s=x}});var a="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return a},set:function(x){a=x}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(x){l=x}});var p=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return p===void 0?50/Fb:p},set:function(x){p=x}});var h="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return h},set:function(x){h=x}});var v="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!v||this instanceof Xg||this instanceof dc))return wb(v,this.objId,this.scope)},set:function(x){x=x.toString(),v=x}});var w=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(w)return this instanceof $i?w:wb(w,this.objId,this.scope)},set:function(x){x=x.toString(),w=this instanceof $i?x:x.substr(0,1)==="("?zu(x.substr(1,x.length-2)):zu(x)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof $i?zu(w.substr(1,w.length-1)):w},set:function(x){x=x.toString(),w=this instanceof $i?"/"+x:x}});var g=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(g)return g},set:function(x){this.V=x}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(g)return this instanceof $i?g:wb(g,this.objId,this.scope)},set:function(x){x=x.toString(),g=this instanceof $i?x:x.substr(0,1)==="("?zu(x.substr(1,x.length-2)):zu(x)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof $i?zu(g.substr(1,g.length-1)):g},set:function(x){x=x.toString(),g=this instanceof $i?"/"+x:x}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var S,I=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return I},set:function(x){x=!!x,I=x}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(S)return S},set:function(x){S=x}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!di(this.Ff,1)},set:function(x){x?this.Ff=pi(this.Ff,1):this.Ff=fi(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!di(this.Ff,2)},set:function(x){x?this.Ff=pi(this.Ff,2):this.Ff=fi(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!di(this.Ff,3)},set:function(x){x?this.Ff=pi(this.Ff,3):this.Ff=fi(this.Ff,3)}});var A=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(A!==null)return A},set:function(x){if([0,1,2].indexOf(x)===-1)throw new Error('Invalid value "'+x+'" for attribute Q supplied.');A=x}}),Object.defineProperty(this,"textAlign",{get:function(){var x;switch(A){case 0:default:x="left";break;case 1:x="center";break;case 2:x="right"}return x},configurable:!0,enumerable:!0,set:function(x){switch(x){case"right":case 2:A=2;break;case"center":case 1:A=1;break;case"left":case 0:default:A=0}}})};Rr(Zo,js);var Qu=function(){Zo.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(i){e=i}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(i){e=i}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return O3(t,this.objId,this.scope)},set:function(i){var n,r;r=[],typeof(n=i)=="string"&&(r=function(o,s,a){a||(a=1);for(var l,p=[];l=s.exec(o);)p.push(l[a]);return p}(n,/\((.*?)\)/g)),t=r}}),this.getOptions=function(){return t},this.setOptions=function(i){t=i,this.sort&&t.sort()},this.addOption=function(i){i=(i=i||"").toString(),t.push(i),this.sort&&t.sort()},this.removeOption=function(i,n){for(n=n||!1,i=(i=i||"").toString();t.indexOf(i)!==-1&&(t.splice(t.indexOf(i),1),n!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!di(this.Ff,18)},set:function(i){i?this.Ff=pi(this.Ff,18):this.Ff=fi(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!di(this.Ff,19)},set:function(i){this.combo===!0&&(i?this.Ff=pi(this.Ff,19):this.Ff=fi(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!di(this.Ff,20)},set:function(i){i?(this.Ff=pi(this.Ff,20),t.sort()):this.Ff=fi(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!di(this.Ff,22)},set:function(i){i?this.Ff=pi(this.Ff,22):this.Ff=fi(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!di(this.Ff,23)},set:function(i){i?this.Ff=pi(this.Ff,23):this.Ff=fi(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!di(this.Ff,27)},set:function(i){i?this.Ff=pi(this.Ff,27):this.Ff=fi(this.Ff,27)}}),this.hasAppearanceStream=!1};Rr(Qu,Zo);var Zu=function(){Qu.call(this),this.fontName="helvetica",this.combo=!1};Rr(Zu,Qu);var Ju=function(){Zu.call(this),this.combo=!0};Rr(Ju,Zu);var Yg=function(){Ju.call(this),this.edit=!0};Rr(Yg,Ju);var $i=function(){Zo.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!di(this.Ff,15)},set:function(i){i?this.Ff=pi(this.Ff,15):this.Ff=fi(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!di(this.Ff,16)},set:function(i){i?this.Ff=pi(this.Ff,16):this.Ff=fi(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!di(this.Ff,17)},set:function(i){i?this.Ff=pi(this.Ff,17):this.Ff=fi(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!di(this.Ff,26)},set:function(i){i?this.Ff=pi(this.Ff,26):this.Ff=fi(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(o){return o};if(this.scope&&(i=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var n,r=[];for(n in r.push("<<"),t)r.push("/"+n+" ("+pc(i(t[n]))+")");return r.push(">>"),r.join(`
+`)}},set:function(i){Tn(i)==="object"&&(t=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(i){typeof i=="string"&&(t.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(i){e=i}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(i){e="/"+i}})};Rr($i,Zo);var Kg=function(){$i.call(this),this.pushButton=!0};Rr(Kg,$i);var Xu=function(){$i.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t!==void 0?t:[]}})};Rr(Xu,$i);var Xg=function(){var e,t;Zo.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(r){t=r}});var i,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var r=function(a){return a};this.scope&&(r=this.scope.internal.getEncryptor(this.objId));var o,s=[];for(o in s.push("<<"),n)s.push("/"+o+" ("+pc(r(n[o]))+")");return s.push(">>"),s.join(`
+`)},set:function(r){Tn(r)==="object"&&(n=r)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(r){typeof r=="string"&&(n.CA=r)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return i},set:function(r){i=r}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return i.substr(1,i.length-1)},set:function(r){i="/"+r}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=at.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Rr(Xg,Zo),Xu.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var i=this.Kids[t];i.appearanceStreamContent=e.createAppearanceStream(i.optionName),i.caption=e.getCA()}},Xu.prototype.createOption=function(e){var t=new Xg;return t.Parent=this,t.optionName=e,this.Kids.push(t),LB.call(this.scope,t),t};var Qg=function(){$i.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=at.CheckBox.createAppearanceStream()};Rr(Qg,$i);var dc=function(){Zo.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!di(this.Ff,13)},set:function(t){t?this.Ff=pi(this.Ff,13):this.Ff=fi(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!di(this.Ff,21)},set:function(t){t?this.Ff=pi(this.Ff,21):this.Ff=fi(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!di(this.Ff,23)},set:function(t){t?this.Ff=pi(this.Ff,23):this.Ff=fi(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!di(this.Ff,24)},set:function(t){t?this.Ff=pi(this.Ff,24):this.Ff=fi(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!di(this.Ff,25)},set:function(t){t?this.Ff=pi(this.Ff,25):this.Ff=fi(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!di(this.Ff,26)},set:function(t){t?this.Ff=pi(this.Ff,26):this.Ff=fi(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Rr(dc,Zo);var Zg=function(){dc.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!di(this.Ff,14)},set:function(e){e?this.Ff=pi(this.Ff,14):this.Ff=fi(this.Ff,14)}}),this.password=!0};Rr(Zg,dc);var at={CheckBox:{createAppearanceStream:function(){return{N:{On:at.CheckBox.YesNormal},D:{On:at.CheckBox.YesPushDown,Off:at.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=ks(e);t.scope=e.scope;var i=[],n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),o=Mb(e,e.caption);return i.push("0.749023 g"),i.push("0 0 "+At(at.internal.getWidth(e))+" "+At(at.internal.getHeight(e))+" re"),i.push("f"),i.push("BMC"),i.push("q"),i.push("0 0 1 rg"),i.push("/"+n+" "+At(o.fontSize)+" Tf "+r),i.push("BT"),i.push(o.text),i.push("ET"),i.push("Q"),i.push("EMC"),t.stream=i.join(`
+`),t},YesNormal:function(e){var t=ks(e);t.scope=e.scope;var i=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),r=[],o=at.internal.getHeight(e),s=at.internal.getWidth(e),a=Mb(e,e.caption);return r.push("1 g"),r.push("0 0 "+At(s)+" "+At(o)+" re"),r.push("f"),r.push("q"),r.push("0 0 1 rg"),r.push("0 0 "+At(s-1)+" "+At(o-1)+" re"),r.push("W"),r.push("n"),r.push("0 g"),r.push("BT"),r.push("/"+i+" "+At(a.fontSize)+" Tf "+n),r.push(a.text),r.push("ET"),r.push("Q"),t.stream=r.join(`
+`),t},OffPushDown:function(e){var t=ks(e);t.scope=e.scope;var i=[];return i.push("0.749023 g"),i.push("0 0 "+At(at.internal.getWidth(e))+" "+At(at.internal.getHeight(e))+" re"),i.push("f"),t.stream=i.join(`
+`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:at.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=at.RadioButton.Circle.YesNormal,t.D[e]=at.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=ks(e);t.scope=e.scope;var i=[],n=at.internal.getWidth(e)<=at.internal.getHeight(e)?at.internal.getWidth(e)/4:at.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var r=at.internal.Bezier_C,o=Number((n*r).toFixed(5));return i.push("q"),i.push("1 0 0 1 "+bl(at.internal.getWidth(e)/2)+" "+bl(at.internal.getHeight(e)/2)+" cm"),i.push(n+" 0 m"),i.push(n+" "+o+" "+o+" "+n+" 0 "+n+" c"),i.push("-"+o+" "+n+" -"+n+" "+o+" -"+n+" 0 c"),i.push("-"+n+" -"+o+" -"+o+" -"+n+" 0 -"+n+" c"),i.push(o+" -"+n+" "+n+" -"+o+" "+n+" 0 c"),i.push("f"),i.push("Q"),t.stream=i.join(`
+`),t},YesPushDown:function(e){var t=ks(e);t.scope=e.scope;var i=[],n=at.internal.getWidth(e)<=at.internal.getHeight(e)?at.internal.getWidth(e)/4:at.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var r=Number((2*n).toFixed(5)),o=Number((r*at.internal.Bezier_C).toFixed(5)),s=Number((n*at.internal.Bezier_C).toFixed(5));return i.push("0.749023 g"),i.push("q"),i.push("1 0 0 1 "+bl(at.internal.getWidth(e)/2)+" "+bl(at.internal.getHeight(e)/2)+" cm"),i.push(r+" 0 m"),i.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),i.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),i.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),i.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),i.push("f"),i.push("Q"),i.push("0 g"),i.push("q"),i.push("1 0 0 1 "+bl(at.internal.getWidth(e)/2)+" "+bl(at.internal.getHeight(e)/2)+" cm"),i.push(n+" 0 m"),i.push(n+" "+s+" "+s+" "+n+" 0 "+n+" c"),i.push("-"+s+" "+n+" -"+n+" "+s+" -"+n+" 0 c"),i.push("-"+n+" -"+s+" -"+s+" -"+n+" 0 -"+n+" c"),i.push(s+" -"+n+" "+n+" -"+s+" "+n+" 0 c"),i.push("f"),i.push("Q"),t.stream=i.join(`
+`),t},OffPushDown:function(e){var t=ks(e);t.scope=e.scope;var i=[],n=at.internal.getWidth(e)<=at.internal.getHeight(e)?at.internal.getWidth(e)/4:at.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var r=Number((2*n).toFixed(5)),o=Number((r*at.internal.Bezier_C).toFixed(5));return i.push("0.749023 g"),i.push("q"),i.push("1 0 0 1 "+bl(at.internal.getWidth(e)/2)+" "+bl(at.internal.getHeight(e)/2)+" cm"),i.push(r+" 0 m"),i.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),i.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),i.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),i.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),i.push("f"),i.push("Q"),t.stream=i.join(`
+`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:at.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=at.RadioButton.Cross.YesNormal,t.D[e]=at.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=ks(e);t.scope=e.scope;var i=[],n=at.internal.calculateCross(e);return i.push("q"),i.push("1 1 "+At(at.internal.getWidth(e)-2)+" "+At(at.internal.getHeight(e)-2)+" re"),i.push("W"),i.push("n"),i.push(At(n.x1.x)+" "+At(n.x1.y)+" m"),i.push(At(n.x2.x)+" "+At(n.x2.y)+" l"),i.push(At(n.x4.x)+" "+At(n.x4.y)+" m"),i.push(At(n.x3.x)+" "+At(n.x3.y)+" l"),i.push("s"),i.push("Q"),t.stream=i.join(`
+`),t},YesPushDown:function(e){var t=ks(e);t.scope=e.scope;var i=at.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+At(at.internal.getWidth(e))+" "+At(at.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+At(at.internal.getWidth(e)-2)+" "+At(at.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(At(i.x1.x)+" "+At(i.x1.y)+" m"),n.push(At(i.x2.x)+" "+At(i.x2.y)+" l"),n.push(At(i.x4.x)+" "+At(i.x4.y)+" m"),n.push(At(i.x3.x)+" "+At(i.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(`
+`),t},OffPushDown:function(e){var t=ks(e);t.scope=e.scope;var i=[];return i.push("0.749023 g"),i.push("0 0 "+At(at.internal.getWidth(e))+" "+At(at.internal.getHeight(e))+" re"),i.push("f"),t.stream=i.join(`
+`),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+i}};at.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=at.internal.getWidth(e),i=at.internal.getHeight(e),n=Math.min(t,i);return{x1:{x:(t-n)/2,y:(i-n)/2+n},x2:{x:(t-n)/2+n,y:(i-n)/2},x3:{x:(t-n)/2,y:(i-n)/2},x4:{x:(t-n)/2+n,y:(i-n)/2+n}}}},at.internal.getWidth=function(e){var t=0;return Tn(e)==="object"&&(t=y3(e.Rect[2])),t},at.internal.getHeight=function(e){var t=0;return Tn(e)==="object"&&(t=y3(e.Rect[3])),t};var LB=oi.addField=function(e){if(RB(this,e),!(e instanceof Zo))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};oi.AcroFormChoiceField=Qu,oi.AcroFormListBox=Zu,oi.AcroFormComboBox=Ju,oi.AcroFormEditBox=Yg,oi.AcroFormButton=$i,oi.AcroFormPushButton=Kg,oi.AcroFormRadioButton=Xu,oi.AcroFormCheckBox=Qg,oi.AcroFormTextField=dc,oi.AcroFormPasswordField=Zg,oi.AcroFormAppearance=at,oi.AcroForm={ChoiceField:Qu,ListBox:Zu,ComboBox:Ju,EditBox:Yg,Button:$i,PushButton:Kg,RadioButton:Xu,CheckBox:Qg,TextField:dc,PasswordField:Zg,Appearance:at},bt.AcroForm={ChoiceField:Qu,ListBox:Zu,ComboBox:Ju,EditBox:Yg,Button:$i,PushButton:Kg,RadioButton:Xu,CheckBox:Qg,TextField:dc,PasswordField:Zg,Appearance:at};var Lie=bt.AcroForm;function k3(e){return e.reduce(function(t,i,n){return t[i]=n,t},{})}(function(e){e.__addimage__={};var t="UNKNOWN",i={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},n=e.__addimage__.getImageFileTypeByImageData=function(B,k){var te,K,we,be,Ie,me=t;if((k=k||t)==="RGBA"||B.data!==void 0&&B.data instanceof Uint8ClampedArray&&"height"in B&&"width"in B)return"RGBA";if(J(B))for(Ie in i)for(we=i[Ie],te=0;te<we.length;te+=1){for(be=!0,K=0;K<we[te].length;K+=1)if(we[te][K]!==void 0&&we[te][K]!==B[K]){be=!1;break}if(be===!0){me=Ie;break}}else for(Ie in i)for(we=i[Ie],te=0;te<we.length;te+=1){for(be=!0,K=0;K<we[te].length;K+=1)if(we[te][K]!==void 0&&we[te][K]!==B.charCodeAt(K)){be=!1;break}if(be===!0){me=Ie;break}}return me===t&&k!==t&&(me=k),me},r=function B(k){for(var te=this.internal.write,K=this.internal.putStream,we=(0,this.internal.getFilters)();we.indexOf("FlateEncode")!==-1;)we.splice(we.indexOf("FlateEncode"),1);k.objectId=this.internal.newObject();var be=[];if(be.push({key:"Type",value:"/XObject"}),be.push({key:"Subtype",value:"/Image"}),be.push({key:"Width",value:k.width}),be.push({key:"Height",value:k.height}),k.colorSpace===A.INDEXED?be.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(k.palette.length/3-1)+" "+("sMask"in k&&k.sMask!==void 0?k.objectId+2:k.objectId+1)+" 0 R]"}):(be.push({key:"ColorSpace",value:"/"+k.colorSpace}),k.colorSpace===A.DEVICE_CMYK&&be.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),be.push({key:"BitsPerComponent",value:k.bitsPerComponent}),"decodeParameters"in k&&k.decodeParameters!==void 0&&be.push({key:"DecodeParms",value:"<<"+k.decodeParameters+">>"}),"transparency"in k&&Array.isArray(k.transparency)){for(var Ie="",me=0,De=k.transparency.length;me<De;me++)Ie+=k.transparency[me]+" "+k.transparency[me]+" ";be.push({key:"Mask",value:"["+Ie+"]"})}k.sMask!==void 0&&be.push({key:"SMask",value:k.objectId+1+" 0 R"});var xe=k.filter!==void 0?["/"+k.filter]:void 0;if(K({data:k.data,additionalKeyValues:be,alreadyAppliedFilters:xe,objectId:k.objectId}),te("endobj"),"sMask"in k&&k.sMask!==void 0){var Ke="/Predictor "+k.predictor+" /Colors 1 /BitsPerComponent "+k.bitsPerComponent+" /Columns "+k.width,N={width:k.width,height:k.height,colorSpace:"DeviceGray",bitsPerComponent:k.bitsPerComponent,decodeParameters:Ke,data:k.sMask};"filter"in k&&(N.filter=k.filter),B.call(this,N)}if(k.colorSpace===A.INDEXED){var H=this.internal.newObject();K({data:Y(new Uint8Array(k.palette)),objectId:H}),te("endobj")}},o=function(){var B=this.internal.collections.addImage_images;for(var k in B)r.call(this,B[k])},s=function(){var B,k=this.internal.collections.addImage_images,te=this.internal.write;for(var K in k)te("/I"+(B=k[K]).index,B.objectId,"0","R")},a=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",s))},l=function(){var B=this.internal.collections.addImage_images;return a.call(this),B},p=function(){return Object.keys(this.internal.collections.addImage_images).length},h=function(B){return typeof e["process"+B.toUpperCase()]=="function"},v=function(B){return Tn(B)==="object"&&B.nodeType===1},w=function(B,k){if(B.nodeName==="IMG"&&B.hasAttribute("src")){var te=""+B.getAttribute("src");if(te.indexOf("data:image/")===0)return Zp(unescape(te).split("base64,").pop());var K=e.loadFile(te,!0);if(K!==void 0)return K}if(B.nodeName==="CANVAS"){if(B.width===0||B.height===0)throw new Error("Given canvas must have data. Canvas width: "+B.width+", height: "+B.height);var we;switch(k){case"PNG":we="image/png";break;case"WEBP":we="image/webp";break;case"JPEG":case"JPG":default:we="image/jpeg"}return Zp(B.toDataURL(we,1).split("base64,").pop())}},g=function(B){var k=this.internal.collections.addImage_images;if(k){for(var te in k)if(B===k[te].alias)return k[te]}},S=function(B,k,te){return B||k||(B=-96,k=-96),B<0&&(B=-1*te.width*72/B/this.internal.scaleFactor),k<0&&(k=-1*te.height*72/k/this.internal.scaleFactor),B===0&&(B=k*te.width/te.height),k===0&&(k=B*te.height/te.width),[B,k]},I=function(B,k,te,K,we,be){var Ie=S.call(this,te,K,we),me=this.internal.getCoordinateString,De=this.internal.getVerticalCoordinateString,xe=l.call(this);if(te=Ie[0],K=Ie[1],xe[we.index]=we,be){be*=Math.PI/180;var Ke=Math.cos(be),N=Math.sin(be),H=function(re){return re.toFixed(4)},G=[H(Ke),H(N),H(-1*N),H(Ke),0,0,"cm"]}this.internal.write("q"),be?(this.internal.write([1,"0","0",1,me(B),De(k+K),"cm"].join(" ")),this.internal.write(G.join(" ")),this.internal.write([me(te),"0","0",me(K),"0","0","cm"].join(" "))):this.internal.write([me(te),"0","0",me(K),me(B),De(k+K),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+we.index+" Do"),this.internal.write("Q")},A=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var x=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},P=e.__addimage__.sHashCode=function(B){var k,te,K=0;if(typeof B=="string")for(te=B.length,k=0;k<te;k++)K=(K<<5)-K+B.charCodeAt(k),K|=0;else if(J(B))for(te=B.byteLength/2,k=0;k<te;k++)K=(K<<5)-K+B[k],K|=0;return K},U=e.__addimage__.validateStringAsBase64=function(B){(B=B||"").toString().trim();var k=!0;return B.length===0&&(k=!1),B.length%4!=0&&(k=!1),/^[A-Za-z0-9+/]+$/.test(B.substr(0,B.length-2))===!1&&(k=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(B.substr(-2))===!1&&(k=!1),k},q=e.__addimage__.extractImageFromDataUrl=function(B){var k=(B=B||"").split("base64,"),te=null;if(k.length===2){var K=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(k[0]);Array.isArray(K)&&(te={mimeType:K[1],charset:K[2],data:k[1]})}return te},Q=e.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};e.__addimage__.isArrayBuffer=function(B){return Q()&&B instanceof ArrayBuffer};var J=e.__addimage__.isArrayBufferView=function(B){return Q()&&typeof Uint32Array<"u"&&(B instanceof Int8Array||B instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&B instanceof Uint8ClampedArray||B instanceof Int16Array||B instanceof Uint16Array||B instanceof Int32Array||B instanceof Uint32Array||B instanceof Float32Array||B instanceof Float64Array)},le=e.__addimage__.binaryStringToUint8Array=function(B){for(var k=B.length,te=new Uint8Array(k),K=0;K<k;K++)te[K]=B.charCodeAt(K);return te},Y=e.__addimage__.arrayBufferToBinaryString=function(B){for(var k="",te=J(B)?B:new Uint8Array(B),K=0;K<te.length;K+=8192)k+=String.fromCharCode.apply(null,te.subarray(K,K+8192));return k};e.addImage=function(){var B,k,te,K,we,be,Ie,me,De;if(typeof arguments[1]=="number"?(k=t,te=arguments[1],K=arguments[2],we=arguments[3],be=arguments[4],Ie=arguments[5],me=arguments[6],De=arguments[7]):(k=arguments[1],te=arguments[2],K=arguments[3],we=arguments[4],be=arguments[5],Ie=arguments[6],me=arguments[7],De=arguments[8]),Tn(B=arguments[0])==="object"&&!v(B)&&"imageData"in B){var xe=B;B=xe.imageData,k=xe.format||k||t,te=xe.x||te||0,K=xe.y||K||0,we=xe.w||xe.width||we,be=xe.h||xe.height||be,Ie=xe.alias||Ie,me=xe.compression||me,De=xe.rotation||xe.angle||De}var Ke=this.internal.getFilters();if(me===void 0&&Ke.indexOf("FlateEncode")!==-1&&(me="SLOW"),isNaN(te)||isNaN(K))throw new Error("Invalid coordinates passed to jsPDF.addImage");a.call(this);var N=Ae.call(this,B,k,Ie,me);return I.call(this,te,K,we,be,N,De),this};var Ae=function(B,k,te,K){var we,be,Ie;if(typeof B=="string"&&n(B)===t){B=unescape(B);var me=Me(B,!1);(me!==""||(me=e.loadFile(B,!0))!==void 0)&&(B=me)}if(v(B)&&(B=w(B,k)),k=n(B,k),!h(k))throw new Error("addImage does not support files of type '"+k+"', please ensure that a plugin for '"+k+"' support is added.");if(((Ie=te)==null||Ie.length===0)&&(te=function(De){return typeof De=="string"||J(De)?P(De):J(De.data)?P(De.data):null}(B)),(we=g.call(this,te))||(Q()&&(B instanceof Uint8Array||k==="RGBA"||(be=B,B=le(B))),we=this["process"+k.toUpperCase()](B,p.call(this),te,function(De){return De&&typeof De=="string"&&(De=De.toUpperCase()),De in e.image_compression?De:x.NONE}(K),be)),!we)throw new Error("An unknown error occurred whilst processing the image.");return we},Me=e.__addimage__.convertBase64ToBinaryString=function(B,k){var te;k=typeof k!="boolean"||k;var K,we="";if(typeof B=="string"){K=(te=q(B))!==null?te.data:B;try{we=Zp(K)}catch(be){if(k)throw U(K)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+be.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return we};e.getImageProperties=function(B){var k,te,K="";if(v(B)&&(B=w(B)),typeof B=="string"&&n(B)===t&&((K=Me(B,!1))===""&&(K=e.loadFile(B)||""),B=K),te=n(B),!h(te))throw new Error("addImage does not support files of type '"+te+"', please ensure that a plugin for '"+te+"' support is added.");if(!Q()||B instanceof Uint8Array||(B=le(B)),!(k=this["process"+te.toUpperCase()](B)))throw new Error("An unknown error occurred whilst processing the image");return k.fileType=te,k}})(bt.API),function(e){var t=function(i){if(i!==void 0&&i!="")return!0};bt.API.events.push(["addPage",function(i){this.internal.getPageInfo(i.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(i){for(var n,r,o,s=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,l=this.internal.getPageInfoByObjId(i.objId),p=i.pageContext.annotations,h=!1,v=0;v<p.length&&!h;v++)switch((n=p[v]).type){case"link":(t(n.options.url)||t(n.options.pageNumber))&&(h=!0);break;case"reference":case"text":case"freetext":h=!0}if(h!=0){this.internal.write("/Annots [");for(var w=0;w<p.length;w++){n=p[w];var g=this.internal.pdfEscape,S=this.internal.getEncryptor(i.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var I=this.internal.newAdditionalObject(),A=this.internal.newAdditionalObject(),x=this.internal.getEncryptor(I.objId),P=n.title||"Note";o="<</Type /Annot /Subtype /Text "+(r="/Rect ["+s(n.bounds.x)+" "+a(n.bounds.y+n.bounds.h)+" "+s(n.bounds.x+n.bounds.w)+" "+a(n.bounds.y)+"] ")+"/Contents ("+g(x(n.contents))+")",o+=" /Popup "+A.objId+" 0 R",o+=" /P "+l.objId+" 0 R",o+=" /T ("+g(x(P))+") >>",I.content=o;var U=I.objId+" 0 R";o="<</Type /Annot /Subtype /Popup "+(r="/Rect ["+s(n.bounds.x+30)+" "+a(n.bounds.y+n.bounds.h)+" "+s(n.bounds.x+n.bounds.w+30)+" "+a(n.bounds.y)+"] ")+" /Parent "+U,n.open&&(o+=" /Open true"),o+=" >>",A.content=o,this.internal.write(I.objId,"0 R",A.objId,"0 R");break;case"freetext":r="/Rect ["+s(n.bounds.x)+" "+a(n.bounds.y)+" "+s(n.bounds.x+n.bounds.w)+" "+a(n.bounds.y+n.bounds.h)+"] ";var q=n.color||"#000000";o="<</Type /Annot /Subtype /FreeText "+r+"/Contents ("+g(S(n.contents))+")",o+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+q+")",o+=" /Border [0 0 0]",o+=" >>",this.internal.write(o);break;case"link":if(n.options.name){var Q=this.annotations._nameMap[n.options.name];n.options.pageNumber=Q.page,n.options.top=Q.y}else n.options.top||(n.options.top=0);if(r="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",o="",n.options.url)o="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /A <</S /URI /URI ("+g(S(n.options.url))+") >>";else if(n.options.pageNumber)switch(o="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":o+=" /Fit]";break;case"FitH":o+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,o+=" /FitV "+n.options.left+"]";break;case"XYZ":default:var J=a(n.options.top);n.options.left=n.options.left||0,n.options.zoom===void 0&&(n.options.zoom=0),o+=" /XYZ "+n.options.left+" "+J+" "+n.options.zoom+"]"}o!=""&&(o+=" >>",this.internal.write(o))}}this.internal.write("]")}}]),e.createAnnotation=function(i){var n=this.internal.getCurrentPageInfo();switch(i.type){case"link":this.link(i.bounds.x,i.bounds.y,i.bounds.w,i.bounds.h,i);break;case"text":case"freetext":n.pageContext.annotations.push(i)}},e.link=function(i,n,r,o,s){var a=this.internal.getCurrentPageInfo(),l=this.internal.getCoordinateString,p=this.internal.getVerticalCoordinateString;a.pageContext.annotations.push({finalBounds:{x:l(i),y:p(n),w:l(i+r),h:p(n+o)},options:s,type:"link"})},e.textWithLink=function(i,n,r,o){var s,a,l=this.getTextWidth(i),p=this.internal.getLineHeight()/this.internal.scaleFactor;if(o.maxWidth!==void 0){a=o.maxWidth;var h=this.splitTextToSize(i,a).length;s=Math.ceil(p*h)}else a=l,s=p;return this.text(i,n,r,o),r+=.2*p,o.align==="center"&&(n-=l/2),o.align==="right"&&(n-=l),this.link(n,r-p,a,s,o),l},e.getTextWidth=function(i){var n=this.internal.getFontSize();return this.getStringUnitWidth(i)*n/this.internal.scaleFactor}}(bt.API),function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},i={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},r=[1570,1571,1573,1575];e.__arabicParser__={};var o=e.__arabicParser__.isInArabicSubstitutionA=function(I){return t[I.charCodeAt(0)]!==void 0},s=e.__arabicParser__.isArabicLetter=function(I){return typeof I=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(I)},a=e.__arabicParser__.isArabicEndLetter=function(I){return s(I)&&o(I)&&t[I.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(I){return s(I)&&r.indexOf(I.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(I){return s(I)&&o(I)&&t[I.charCodeAt(0)].length>=1};var p=e.__arabicParser__.arabicLetterHasFinalForm=function(I){return s(I)&&o(I)&&t[I.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(I){return s(I)&&o(I)&&t[I.charCodeAt(0)].length>=3};var h=e.__arabicParser__.arabicLetterHasMedialForm=function(I){return s(I)&&o(I)&&t[I.charCodeAt(0)].length==4},v=e.__arabicParser__.resolveLigatures=function(I){var A=0,x=i,P="",U=0;for(A=0;A<I.length;A+=1)x[I.charCodeAt(A)]!==void 0?(U++,typeof(x=x[I.charCodeAt(A)])=="number"&&(P+=String.fromCharCode(x),x=i,U=0),A===I.length-1&&(x=i,P+=I.charAt(A-(U-1)),A-=U-1,U=0)):(x=i,P+=I.charAt(A-U),A-=U,U=0);return P};e.__arabicParser__.isArabicDiacritic=function(I){return I!==void 0&&n[I.charCodeAt(0)]!==void 0};var w=e.__arabicParser__.getCorrectForm=function(I,A,x){return s(I)?o(I)===!1?-1:!p(I)||!s(A)&&!s(x)||!s(x)&&a(A)||a(I)&&!s(A)||a(I)&&l(A)||a(I)&&a(A)?0:h(I)&&s(A)&&!a(A)&&s(x)&&p(x)?3:a(I)||!s(x)?1:2:-1},g=function(I){var A=0,x=0,P=0,U="",q="",Q="",J=(I=I||"").split("\\s+"),le=[];for(A=0;A<J.length;A+=1){for(le.push(""),x=0;x<J[A].length;x+=1)U=J[A][x],q=J[A][x-1],Q=J[A][x+1],s(U)?(P=w(U,q,Q),le[A]+=P!==-1?String.fromCharCode(t[U.charCodeAt(0)][P]):U):le[A]+=U;le[A]=v(le[A])}return le.join(" ")},S=e.__arabicParser__.processArabic=e.processArabic=function(){var I,A=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,x=[];if(Array.isArray(A)){var P=0;for(x=[],P=0;P<A.length;P+=1)Array.isArray(A[P])?x.push([g(A[P][0]),A[P][1],A[P][2]]):x.push([g(A[P])]);I=x}else I=g(A);return typeof arguments[0]=="string"?I:(arguments[0].text=I,arguments[0])};e.events.push(["preProcessText",S])}(bt.API),bt.API.autoPrint=function(e){var t;switch((e=e||{}).variant=e.variant||"non-conform",e.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+t+" 0 R")})}return this},function(e){var t=function(){var i=void 0;Object.defineProperty(this,"pdf",{get:function(){return i},set:function(a){i=a}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(a){n=isNaN(a)||Number.isInteger(a)===!1||a<0?150:a,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var r=300;Object.defineProperty(this,"height",{get:function(){return r},set:function(a){r=isNaN(a)||Number.isInteger(a)===!1||a<0?300:a,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=r+1)}});var o=[];Object.defineProperty(this,"childNodes",{get:function(){return o},set:function(a){o=a}});var s={};Object.defineProperty(this,"style",{get:function(){return s},set:function(a){s=a}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(i,n){var r;if((i=i||"2d")!=="2d")return null;for(r in n)this.pdf.context2d.hasOwnProperty(r)&&(this.pdf.context2d[r]=n[r]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(bt.API),function(e){var t={left:0,top:0,bottom:0,right:0},i=!1,n=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),r.call(this))},r=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var l=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return l},set:function(I){l=I}});var p=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return p},set:function(I){p=I}});var h=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return h},set:function(I){h=I}});var v=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return v},set:function(I){v=I}});var w=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return w},set:function(I){w=I}});var g=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return g},set:function(I){g=I}});var S=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return S},set:function(I){S=I}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(l){return n.call(this),this.internal.__cell__.headerFunction=typeof l=="function"?l:void 0,this},e.getTextDimensions=function(l,p){n.call(this);var h=(p=p||{}).fontSize||this.getFontSize(),v=p.font||this.getFont(),w=p.scaleFactor||this.internal.scaleFactor,g=0,S=0,I=0,A=this;if(!Array.isArray(l)&&typeof l!="string"){if(typeof l!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");l=String(l)}var x=p.maxWidth;x>0?typeof l=="string"?l=this.splitTextToSize(l,x):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce(function(U,q){return U.concat(A.splitTextToSize(q,x))},[])):l=Array.isArray(l)?l:[l];for(var P=0;P<l.length;P++)g<(I=this.getStringUnitWidth(l[P],{font:v})*h)&&(g=I);return g!==0&&(S=l.length),{w:g/=w,h:Math.max((S*h*this.getLineHeightFactor()-h*(this.getLineHeightFactor()-1))/w,0)}},e.cellAddPage=function(){n.call(this),this.addPage();var l=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new o(l.left,l.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=e.cell=function(){var l;l=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),n.call(this);var p=this.internal.__cell__.lastCell,h=this.internal.__cell__.padding,v=this.internal.__cell__.margins||t,w=this.internal.__cell__.tableHeaderRow,g=this.internal.__cell__.printHeaders;return p.lineNumber!==void 0&&(p.lineNumber===l.lineNumber?(l.x=(p.x||0)+(p.width||0),l.y=p.y||0):p.y+p.height+l.height+v.bottom>this.getPageHeight()?(this.cellAddPage(),l.y=v.top,g&&w&&(this.printHeaderRow(l.lineNumber,!0),l.y+=w[0].height)):l.y=p.y+p.height||l.y),l.text[0]!==void 0&&(this.rect(l.x,l.y,l.width,l.height,i===!0?"FD":void 0),l.align==="right"?this.text(l.text,l.x+l.width-h,l.y+h,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+h,{align:"center",baseline:"top",maxWidth:l.width-h-h}):this.text(l.text,l.x+h,l.y+h,{align:"left",baseline:"top",maxWidth:l.width-h-h})),this.internal.__cell__.lastCell=l,this};e.table=function(l,p,h,v,w){if(n.call(this),!h)throw new Error("No data for PDF table.");var g,S,I,A,x=[],P=[],U=[],q={},Q={},J=[],le=[],Y=(w=w||{}).autoSize||!1,Ae=w.printHeaders!==!1,Me=w.css&&w.css["font-size"]!==void 0?16*w.css["font-size"]:w.fontSize||12,B=w.margins||Object.assign({width:this.getPageWidth()},t),k=typeof w.padding=="number"?w.padding:3,te=w.headerBackgroundColor||"#c8c8c8",K=w.headerTextColor||"#000";if(r.call(this),this.internal.__cell__.printHeaders=Ae,this.internal.__cell__.margins=B,this.internal.__cell__.table_font_size=Me,this.internal.__cell__.padding=k,this.internal.__cell__.headerBackgroundColor=te,this.internal.__cell__.headerTextColor=K,this.setFontSize(Me),v==null)P=x=Object.keys(h[0]),U=x.map(function(){return"left"});else if(Array.isArray(v)&&Tn(v[0])==="object")for(x=v.map(function(xe){return xe.name}),P=v.map(function(xe){return xe.prompt||xe.name||""}),U=v.map(function(xe){return xe.align||"left"}),g=0;g<v.length;g+=1)Q[v[g].name]=v[g].width*(19.049976/25.4);else Array.isArray(v)&&typeof v[0]=="string"&&(P=x=v,U=x.map(function(){return"left"}));if(Y||Array.isArray(v)&&typeof v[0]=="string")for(g=0;g<x.length;g+=1){for(q[A=x[g]]=h.map(function(xe){return xe[A]}),this.setFont(void 0,"bold"),J.push(this.getTextDimensions(P[g],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),S=q[A],this.setFont(void 0,"normal"),I=0;I<S.length;I+=1)J.push(this.getTextDimensions(S[I],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Q[A]=Math.max.apply(null,J)+k+k,J=[]}if(Ae){var we={};for(g=0;g<x.length;g+=1)we[x[g]]={},we[x[g]].text=P[g],we[x[g]].align=U[g];var be=a.call(this,we,Q);le=x.map(function(xe){return new o(l,p,Q[xe],be,we[xe].text,void 0,we[xe].align)}),this.setTableHeaderRow(le),this.printHeaderRow(1,!1)}var Ie=v.reduce(function(xe,Ke){return xe[Ke.name]=Ke.align,xe},{});for(g=0;g<h.length;g+=1){"rowStart"in w&&w.rowStart instanceof Function&&w.rowStart({row:g,data:h[g]},this);var me=a.call(this,h[g],Q);for(I=0;I<x.length;I+=1){var De=h[g][x[I]];"cellStart"in w&&w.cellStart instanceof Function&&w.cellStart({row:g,col:I,data:De},this),s.call(this,new o(l,p,Q[x[I]],me,De,g+2,Ie[x[I]]))}}return this.internal.__cell__.table_x=l,this.internal.__cell__.table_y=p,this};var a=function(l,p){var h=this.internal.__cell__.padding,v=this.internal.__cell__.table_font_size,w=this.internal.scaleFactor;return Object.keys(l).map(function(g){var S=l[g];return this.splitTextToSize(S.hasOwnProperty("text")?S.text:S,p[g]-h-h)},this).map(function(g){return this.getLineHeightFactor()*g.length*v/w+h+h},this).reduce(function(g,S){return Math.max(g,S)},0)};e.setTableHeaderRow=function(l){n.call(this),this.internal.__cell__.tableHeaderRow=l},e.printHeaderRow=function(l,p){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var h;if(i=!0,typeof this.internal.__cell__.headerFunction=="function"){var v=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(v[0],v[1],v[2],v[3],void 0,-1)}this.setFont(void 0,"bold");for(var w=[],g=0;g<this.internal.__cell__.tableHeaderRow.length;g+=1){h=this.internal.__cell__.tableHeaderRow[g].clone(),p&&(h.y=this.internal.__cell__.margins.top||0,w.push(h)),h.lineNumber=l;var S=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,h),this.setTextColor(S)}w.length>0&&this.setTableHeaderRow(w),this.setFont(void 0,"normal"),i=!1}}(bt.API);var j3={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},V3=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Ab=k3(V3),B3=[100,200,300,400,500,600,700,800,900],kB=k3(B3);function Tb(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),i=function(o){return j3[o=o||"normal"]?o:"normal"}(e.style),n=function(o){if(!o)return 400;if(typeof o=="number")return o>=100&&o<=900&&o%100==0?o:400;if(/^\d00$/.test(o))return parseInt(o);switch(o){case"bold":return 700;case"normal":default:return 400}}(e.weight),r=function(o){return typeof Ab[o=o||"normal"]=="number"?o:"normal"}(e.stretch);return{family:t,style:i,weight:n,stretch:r,src:e.src||[],ref:e.ref||{name:t,style:[r,i,n].join(" ")}}}function b3(e,t,i,n){var r;for(r=i;r>=0&&r<t.length;r+=n)if(e[t[r]])return e[t[r]];for(r=i;r>=0&&r<t.length;r-=n)if(e[t[r]])return e[t[r]]}var jB={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},_3={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function C3(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function VB(e,t,i){for(var n=(i=i||{}).defaultFontFamily||"times",r=Object.assign({},jB,i.genericFontFamilies||{}),o=null,s=null,a=0;a<t.length;++a)if(r[(o=Tb(t[a])).family]&&(o.family=r[o.family]),e.hasOwnProperty(o.family)){s=e[o.family];break}if(!(s=s||e[n]))throw new Error("Could not find a font-family for the rule '"+C3(o)+"' and default family '"+n+"'.");if(s=function(l,p){if(p[l])return p[l];var h=Ab[l],v=h<=Ab.normal?-1:1,w=b3(p,V3,h,v);if(!w)throw new Error("Could not find a matching font-stretch value for "+l);return w}(o.stretch,s),s=function(l,p){if(p[l])return p[l];for(var h=j3[l],v=0;v<h.length;++v)if(p[h[v]])return p[h[v]];throw new Error("Could not find a matching font-style for "+l)}(o.style,s),!(s=function(l,p){if(p[l])return p[l];if(l===400&&p[500])return p[500];if(l===500&&p[400])return p[400];var h=kB[l],v=b3(p,B3,h,l<400?-1:1);if(!v)throw new Error("Could not find a matching font-weight for value "+l);return v}(o.weight,s)))throw new Error("Failed to resolve a font for the rule '"+C3(o)+"'.");return s}function w3(e){return e.trimLeft()}function BB(e,t){for(var i=0;i<e.length;){if(e.charAt(i)===t)return[e.substring(0,i),e.substring(i+1)];i+=1}return null}function UB(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],e.substring(t[0].length)]}var Gg,E3,S3,Eb=["times"];(function(e){var t,i,n,r,o,s,a,l,p,h=function(N){return N=N||{},this.isStrokeTransparent=N.isStrokeTransparent||!1,this.strokeOpacity=N.strokeOpacity||1,this.strokeStyle=N.strokeStyle||"#000000",this.fillStyle=N.fillStyle||"#000000",this.isFillTransparent=N.isFillTransparent||!1,this.fillOpacity=N.fillOpacity||1,this.font=N.font||"10px sans-serif",this.textBaseline=N.textBaseline||"alphabetic",this.textAlign=N.textAlign||"left",this.lineWidth=N.lineWidth||1,this.lineJoin=N.lineJoin||"miter",this.lineCap=N.lineCap||"butt",this.path=N.path||[],this.transform=N.transform!==void 0?N.transform.clone():new l,this.globalCompositeOperation=N.globalCompositeOperation||"normal",this.globalAlpha=N.globalAlpha||1,this.clip_path=N.clip_path||[],this.currentPoint=N.currentPoint||new s,this.miterLimit=N.miterLimit||10,this.lastPoint=N.lastPoint||new s,this.lineDashOffset=N.lineDashOffset||0,this.lineDash=N.lineDash||[],this.margin=N.margin||[0,0,0,0],this.prevPageLastElemOffset=N.prevPageLastElemOffset||0,this.ignoreClearRect=typeof N.ignoreClearRect!="boolean"||N.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new v(this),t=this.internal.f2,i=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,r=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,s=this.internal.Point,a=this.internal.Rectangle,l=this.internal.Matrix,p=new h}]);var v=function(N){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var H=N;Object.defineProperty(this,"pdf",{get:function(){return H}});var G=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return G},set:function(Se){G=!!Se}});var re=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return re},set:function(Se){re=!!Se}});var ce=0;Object.defineProperty(this,"posX",{get:function(){return ce},set:function(Se){isNaN(Se)||(ce=Se)}});var ge=0;Object.defineProperty(this,"posY",{get:function(){return ge},set:function(Se){isNaN(Se)||(ge=Se)}}),Object.defineProperty(this,"margin",{get:function(){return p.margin},set:function(Se){var W;typeof Se=="number"?W=[Se,Se,Se,Se]:((W=new Array(4))[0]=Se[0],W[1]=Se.length>=2?Se[1]:W[0],W[2]=Se.length>=3?Se[2]:W[0],W[3]=Se.length>=4?Se[3]:W[1]),p.margin=W}});var ve=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ve},set:function(Se){ve=Se}});var _e=0;Object.defineProperty(this,"lastBreak",{get:function(){return _e},set:function(Se){_e=Se}});var Ue=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Ue},set:function(Se){Ue=Se}}),Object.defineProperty(this,"ctx",{get:function(){return p},set:function(Se){Se instanceof h&&(p=Se)}}),Object.defineProperty(this,"path",{get:function(){return p.path},set:function(Se){p.path=Se}});var Be=[];Object.defineProperty(this,"ctxStack",{get:function(){return Be},set:function(Se){Be=Se}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Se){var W;W=w(Se),this.ctx.fillStyle=W.style,this.ctx.isFillTransparent=W.a===0,this.ctx.fillOpacity=W.a,this.pdf.setFillColor(W.r,W.g,W.b,{a:W.a}),this.pdf.setTextColor(W.r,W.g,W.b,{a:W.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Se){var W=w(Se);this.ctx.strokeStyle=W.style,this.ctx.isStrokeTransparent=W.a===0,this.ctx.strokeOpacity=W.a,W.a===0?this.pdf.setDrawColor(255,255,255):(W.a,this.pdf.setDrawColor(W.r,W.g,W.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Se){["butt","round","square"].indexOf(Se)!==-1&&(this.ctx.lineCap=Se,this.pdf.setLineCap(Se))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Se){isNaN(Se)||(this.ctx.lineWidth=Se,this.pdf.setLineWidth(Se))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Se){["bevel","round","miter"].indexOf(Se)!==-1&&(this.ctx.lineJoin=Se,this.pdf.setLineJoin(Se))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Se){isNaN(Se)||(this.ctx.miterLimit=Se,this.pdf.setMiterLimit(Se))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Se){this.ctx.textBaseline=Se}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Se){["right","end","center","left","start"].indexOf(Se)!==-1&&(this.ctx.textAlign=Se)}});var Je=null;function tt(Se,W){if(Je===null){var Tt=function(lt){var ke=[];return Object.keys(lt).forEach(function($e){lt[$e].forEach(function(Qe){var We=null;switch(Qe){case"bold":We={family:$e,weight:"bold"};break;case"italic":We={family:$e,style:"italic"};break;case"bolditalic":We={family:$e,weight:"bold",style:"italic"};break;case"":case"normal":We={family:$e}}We!==null&&(We.ref={name:$e,style:Qe},ke.push(We))})}),ke}(Se.getFontList());Je=function(lt){for(var ke={},$e=0;$e<lt.length;++$e){var Qe=Tb(lt[$e]),We=Qe.family,pt=Qe.stretch,Dt=Qe.style,jt=Qe.weight;ke[We]=ke[We]||{},ke[We][pt]=ke[We][pt]||{},ke[We][pt][Dt]=ke[We][pt][Dt]||{},ke[We][pt][Dt][jt]=Qe}return ke}(Tt.concat(W))}return Je}var Ct=null;Object.defineProperty(this,"fontFaces",{get:function(){return Ct},set:function(Se){Je=null,Ct=Se}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Se){var W;if(this.ctx.font=Se,(W=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(Se))!==null){var Tt=W[1],lt=(W[2],W[3]),ke=W[4],$e=(W[5],W[6]),Qe=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(ke)[2];ke=Math.floor(Qe==="px"?parseFloat(ke)*this.pdf.internal.scaleFactor:Qe==="em"?parseFloat(ke)*this.pdf.getFontSize():parseFloat(ke)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(ke);var We=function(Et){var Kt,Ze,Qi=[],pn=Et.trim();if(pn==="")return Eb;if(pn in _3)return[_3[pn]];for(;pn!=="";){switch(Ze=null,Kt=(pn=w3(pn)).charAt(0)){case'"':case"'":Ze=BB(pn.substring(1),Kt);break;default:Ze=UB(pn)}if(Ze===null||(Qi.push(Ze[0]),(pn=w3(Ze[1]))!==""&&pn.charAt(0)!==","))return Eb;pn=pn.replace(/^,/,"")}return Qi}($e);if(this.fontFaces){var pt=VB(tt(this.pdf,this.fontFaces),We.map(function(Et){return{family:Et,stretch:"normal",weight:lt,style:Tt}}));this.pdf.setFont(pt.ref.name,pt.ref.style)}else{var Dt="";(lt==="bold"||parseInt(lt,10)>=700||Tt==="bold")&&(Dt="bold"),Tt==="italic"&&(Dt+="italic"),Dt.length===0&&(Dt="normal");for(var jt="",Ht={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},cn=0;cn<We.length;cn++){if(this.pdf.internal.getFont(We[cn],Dt,{noFallback:!0,disableWarning:!0})!==void 0){jt=We[cn];break}if(Dt==="bolditalic"&&this.pdf.internal.getFont(We[cn],"bold",{noFallback:!0,disableWarning:!0})!==void 0)jt=We[cn],Dt="bold";else if(this.pdf.internal.getFont(We[cn],"normal",{noFallback:!0,disableWarning:!0})!==void 0){jt=We[cn],Dt="normal";break}}if(jt===""){for(var Dn=0;Dn<We.length;Dn++)if(Ht[We[Dn]]){jt=Ht[We[Dn]];break}}jt=jt===""?"Times":jt,this.pdf.setFont(jt,Dt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Se){this.ctx.globalCompositeOperation=Se}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Se){this.ctx.globalAlpha=Se}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Se){this.ctx.lineDashOffset=Se,Ke.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Se){this.ctx.lineDash=Se,Ke.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Se){this.ctx.ignoreClearRect=!!Se}})};v.prototype.setLineDash=function(N){this.lineDash=N},v.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},v.prototype.fill=function(){q.call(this,"fill",!1)},v.prototype.stroke=function(){q.call(this,"stroke",!1)},v.prototype.beginPath=function(){this.path=[{type:"begin"}]},v.prototype.moveTo=function(N,H){if(isNaN(N)||isNaN(H))throw kn.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var G=this.ctx.transform.applyToPoint(new s(N,H));this.path.push({type:"mt",x:G.x,y:G.y}),this.ctx.lastPoint=new s(N,H)},v.prototype.closePath=function(){var N=new s(0,0),H=0;for(H=this.path.length-1;H!==-1;H--)if(this.path[H].type==="begin"&&Tn(this.path[H+1])==="object"&&typeof this.path[H+1].x=="number"){N=new s(this.path[H+1].x,this.path[H+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(N.x,N.y)},v.prototype.lineTo=function(N,H){if(isNaN(N)||isNaN(H))throw kn.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var G=this.ctx.transform.applyToPoint(new s(N,H));this.path.push({type:"lt",x:G.x,y:G.y}),this.ctx.lastPoint=new s(G.x,G.y)},v.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),q.call(this,null,!0)},v.prototype.quadraticCurveTo=function(N,H,G,re){if(isNaN(G)||isNaN(re)||isNaN(N)||isNaN(H))throw kn.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var ce=this.ctx.transform.applyToPoint(new s(G,re)),ge=this.ctx.transform.applyToPoint(new s(N,H));this.path.push({type:"qct",x1:ge.x,y1:ge.y,x:ce.x,y:ce.y}),this.ctx.lastPoint=new s(ce.x,ce.y)},v.prototype.bezierCurveTo=function(N,H,G,re,ce,ge){if(isNaN(ce)||isNaN(ge)||isNaN(N)||isNaN(H)||isNaN(G)||isNaN(re))throw kn.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ve=this.ctx.transform.applyToPoint(new s(ce,ge)),_e=this.ctx.transform.applyToPoint(new s(N,H)),Ue=this.ctx.transform.applyToPoint(new s(G,re));this.path.push({type:"bct",x1:_e.x,y1:_e.y,x2:Ue.x,y2:Ue.y,x:ve.x,y:ve.y}),this.ctx.lastPoint=new s(ve.x,ve.y)},v.prototype.arc=function(N,H,G,re,ce,ge){if(isNaN(N)||isNaN(H)||isNaN(G)||isNaN(re)||isNaN(ce))throw kn.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ge=!!ge,!this.ctx.transform.isIdentity){var ve=this.ctx.transform.applyToPoint(new s(N,H));N=ve.x,H=ve.y;var _e=this.ctx.transform.applyToPoint(new s(0,G)),Ue=this.ctx.transform.applyToPoint(new s(0,0));G=Math.sqrt(Math.pow(_e.x-Ue.x,2)+Math.pow(_e.y-Ue.y,2))}Math.abs(ce-re)>=2*Math.PI&&(re=0,ce=2*Math.PI),this.path.push({type:"arc",x:N,y:H,radius:G,startAngle:re,endAngle:ce,counterclockwise:ge})},v.prototype.arcTo=function(N,H,G,re,ce){throw new Error("arcTo not implemented.")},v.prototype.rect=function(N,H,G,re){if(isNaN(N)||isNaN(H)||isNaN(G)||isNaN(re))throw kn.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(N,H),this.lineTo(N+G,H),this.lineTo(N+G,H+re),this.lineTo(N,H+re),this.lineTo(N,H),this.lineTo(N+G,H),this.lineTo(N,H)},v.prototype.fillRect=function(N,H,G,re){if(isNaN(N)||isNaN(H)||isNaN(G)||isNaN(re))throw kn.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!g.call(this)){var ce={};this.lineCap!=="butt"&&(ce.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(ce.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(N,H,G,re),this.fill(),ce.hasOwnProperty("lineCap")&&(this.lineCap=ce.lineCap),ce.hasOwnProperty("lineJoin")&&(this.lineJoin=ce.lineJoin)}},v.prototype.strokeRect=function(N,H,G,re){if(isNaN(N)||isNaN(H)||isNaN(G)||isNaN(re))throw kn.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");S.call(this)||(this.beginPath(),this.rect(N,H,G,re),this.stroke())},v.prototype.clearRect=function(N,H,G,re){if(isNaN(N)||isNaN(H)||isNaN(G)||isNaN(re))throw kn.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(N,H,G,re))},v.prototype.save=function(N){N=typeof N!="boolean"||N;for(var H=this.pdf.internal.getCurrentPageInfo().pageNumber,G=0;G<this.pdf.internal.getNumberOfPages();G++)this.pdf.setPage(G+1),this.pdf.internal.out("q");if(this.pdf.setPage(H),N){this.ctx.fontSize=this.pdf.internal.getFontSize();var re=new h(this.ctx);this.ctxStack.push(this.ctx),this.ctx=re}},v.prototype.restore=function(N){N=typeof N!="boolean"||N;for(var H=this.pdf.internal.getCurrentPageInfo().pageNumber,G=0;G<this.pdf.internal.getNumberOfPages();G++)this.pdf.setPage(G+1),this.pdf.internal.out("Q");this.pdf.setPage(H),N&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},v.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var w=function(N){var H,G,re,ce;if(N.isCanvasGradient===!0&&(N=N.getColor()),!N)return{r:0,g:0,b:0,a:0,style:N};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(N))H=0,G=0,re=0,ce=0;else{var ge=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(N);if(ge!==null)H=parseInt(ge[1]),G=parseInt(ge[2]),re=parseInt(ge[3]),ce=1;else if((ge=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(N))!==null)H=parseInt(ge[1]),G=parseInt(ge[2]),re=parseInt(ge[3]),ce=parseFloat(ge[4]);else{if(ce=1,typeof N=="string"&&N.charAt(0)!=="#"){var ve=new F3(N);N=ve.ok?ve.toHex():"#000000"}N.length===4?(H=N.substring(1,2),H+=H,G=N.substring(2,3),G+=G,re=N.substring(3,4),re+=re):(H=N.substring(1,3),G=N.substring(3,5),re=N.substring(5,7)),H=parseInt(H,16),G=parseInt(G,16),re=parseInt(re,16)}}return{r:H,g:G,b:re,a:ce,style:N}},g=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},S=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};v.prototype.fillText=function(N,H,G,re){if(isNaN(H)||isNaN(G)||typeof N!="string")throw kn.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(re=isNaN(re)?void 0:re,!g.call(this)){var ce=me(this.ctx.transform.rotation),ge=this.ctx.transform.scaleX;k.call(this,{text:N,x:H,y:G,scale:ge,angle:ce,align:this.textAlign,maxWidth:re})}},v.prototype.strokeText=function(N,H,G,re){if(isNaN(H)||isNaN(G)||typeof N!="string")throw kn.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!S.call(this)){re=isNaN(re)?void 0:re;var ce=me(this.ctx.transform.rotation),ge=this.ctx.transform.scaleX;k.call(this,{text:N,x:H,y:G,scale:ge,renderingMode:"stroke",angle:ce,align:this.textAlign,maxWidth:re})}},v.prototype.measureText=function(N){if(typeof N!="string")throw kn.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var H=this.pdf,G=this.pdf.internal.scaleFactor,re=H.internal.getFontSize(),ce=H.getStringUnitWidth(N)*re/H.internal.scaleFactor,ge=function(ve){var _e=(ve=ve||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return _e}}),this};return new ge({width:ce*=Math.round(96*G/72*1e4)/1e4})},v.prototype.scale=function(N,H){if(isNaN(N)||isNaN(H))throw kn.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var G=new l(N,0,0,H,0,0);this.ctx.transform=this.ctx.transform.multiply(G)},v.prototype.rotate=function(N){if(isNaN(N))throw kn.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var H=new l(Math.cos(N),Math.sin(N),-Math.sin(N),Math.cos(N),0,0);this.ctx.transform=this.ctx.transform.multiply(H)},v.prototype.translate=function(N,H){if(isNaN(N)||isNaN(H))throw kn.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var G=new l(1,0,0,1,N,H);this.ctx.transform=this.ctx.transform.multiply(G)},v.prototype.transform=function(N,H,G,re,ce,ge){if(isNaN(N)||isNaN(H)||isNaN(G)||isNaN(re)||isNaN(ce)||isNaN(ge))throw kn.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ve=new l(N,H,G,re,ce,ge);this.ctx.transform=this.ctx.transform.multiply(ve)},v.prototype.setTransform=function(N,H,G,re,ce,ge){N=isNaN(N)?1:N,H=isNaN(H)?0:H,G=isNaN(G)?0:G,re=isNaN(re)?1:re,ce=isNaN(ce)?0:ce,ge=isNaN(ge)?0:ge,this.ctx.transform=new l(N,H,G,re,ce,ge)};var I=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};v.prototype.drawImage=function(N,H,G,re,ce,ge,ve,_e,Ue){var Be=this.pdf.getImageProperties(N),Je=1,tt=1,Ct=1,Se=1;re!==void 0&&_e!==void 0&&(Ct=_e/re,Se=Ue/ce,Je=Be.width/re*_e/re,tt=Be.height/ce*Ue/ce),ge===void 0&&(ge=H,ve=G,H=0,G=0),re!==void 0&&_e===void 0&&(_e=re,Ue=ce),re===void 0&&_e===void 0&&(_e=Be.width,Ue=Be.height);for(var W,Tt=this.ctx.transform.decompose(),lt=me(Tt.rotate.shx),ke=new l,$e=(ke=(ke=(ke=ke.multiply(Tt.translate)).multiply(Tt.skew)).multiply(Tt.scale)).applyToRectangle(new a(ge-H*Ct,ve-G*Se,re*Je,ce*tt)),Qe=A.call(this,$e),We=[],pt=0;pt<Qe.length;pt+=1)We.indexOf(Qe[pt])===-1&&We.push(Qe[pt]);if(U(We),this.autoPaging)for(var Dt=We[0],jt=We[We.length-1],Ht=Dt;Ht<jt+1;Ht++){this.pdf.setPage(Ht);var cn=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Dn=Ht===1?this.posY+this.margin[0]:this.margin[0],Et=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Kt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ze=Ht===1?0:Et+(Ht-2)*Kt;if(this.ctx.clip_path.length!==0){var Qi=this.path;W=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=P(W,this.posX+this.margin[3],-Ze+Dn+this.ctx.prevPageLastElemOffset),Q.call(this,"fill",!0),this.path=Qi}var pn=JSON.parse(JSON.stringify($e));pn=P([pn],this.posX+this.margin[3],-Ze+Dn+this.ctx.prevPageLastElemOffset)[0];var yo=(Ht>Dt||Ht<jt)&&I.call(this);yo&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],cn,Kt,null).clip().discardPath()),this.pdf.addImage(N,"JPEG",pn.x,pn.y,pn.w,pn.h,null,null,lt),yo&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(N,"JPEG",$e.x,$e.y,$e.w,$e.h,null,null,lt)};var A=function(N,H,G){var re=[];H=H||this.pdf.internal.pageSize.width,G=G||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var ce=this.posY+this.ctx.prevPageLastElemOffset;switch(N.type){default:case"mt":case"lt":re.push(Math.floor((N.y+ce)/G)+1);break;case"arc":re.push(Math.floor((N.y+ce-N.radius)/G)+1),re.push(Math.floor((N.y+ce+N.radius)/G)+1);break;case"qct":var ge=De(this.ctx.lastPoint.x,this.ctx.lastPoint.y,N.x1,N.y1,N.x,N.y);re.push(Math.floor((ge.y+ce)/G)+1),re.push(Math.floor((ge.y+ge.h+ce)/G)+1);break;case"bct":var ve=xe(this.ctx.lastPoint.x,this.ctx.lastPoint.y,N.x1,N.y1,N.x2,N.y2,N.x,N.y);re.push(Math.floor((ve.y+ce)/G)+1),re.push(Math.floor((ve.y+ve.h+ce)/G)+1);break;case"rect":re.push(Math.floor((N.y+ce)/G)+1),re.push(Math.floor((N.y+N.h+ce)/G)+1)}for(var _e=0;_e<re.length;_e+=1)for(;this.pdf.internal.getNumberOfPages()<re[_e];)x.call(this);return re},x=function(){var N=this.fillStyle,H=this.strokeStyle,G=this.font,re=this.lineCap,ce=this.lineWidth,ge=this.lineJoin;this.pdf.addPage(),this.fillStyle=N,this.strokeStyle=H,this.font=G,this.lineCap=re,this.lineWidth=ce,this.lineJoin=ge},P=function(N,H,G){for(var re=0;re<N.length;re++)switch(N[re].type){case"bct":N[re].x2+=H,N[re].y2+=G;case"qct":N[re].x1+=H,N[re].y1+=G;case"mt":case"lt":case"arc":default:N[re].x+=H,N[re].y+=G}return N},U=function(N){return N.sort(function(H,G){return H-G})},q=function(N,H){for(var G,re,ce=this.fillStyle,ge=this.strokeStyle,ve=this.lineCap,_e=this.lineWidth,Ue=Math.abs(_e*this.ctx.transform.scaleX),Be=this.lineJoin,Je=JSON.parse(JSON.stringify(this.path)),tt=JSON.parse(JSON.stringify(this.path)),Ct=[],Se=0;Se<tt.length;Se++)if(tt[Se].x!==void 0)for(var W=A.call(this,tt[Se]),Tt=0;Tt<W.length;Tt+=1)Ct.indexOf(W[Tt])===-1&&Ct.push(W[Tt]);for(var lt=0;lt<Ct.length;lt++)for(;this.pdf.internal.getNumberOfPages()<Ct[lt];)x.call(this);if(U(Ct),this.autoPaging)for(var ke=Ct[0],$e=Ct[Ct.length-1],Qe=ke;Qe<$e+1;Qe++){this.pdf.setPage(Qe),this.fillStyle=ce,this.strokeStyle=ge,this.lineCap=ve,this.lineWidth=Ue,this.lineJoin=Be;var We=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],pt=Qe===1?this.posY+this.margin[0]:this.margin[0],Dt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],jt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ht=Qe===1?0:Dt+(Qe-2)*jt;if(this.ctx.clip_path.length!==0){var cn=this.path;G=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=P(G,this.posX+this.margin[3],-Ht+pt+this.ctx.prevPageLastElemOffset),Q.call(this,N,!0),this.path=cn}if(re=JSON.parse(JSON.stringify(Je)),this.path=P(re,this.posX+this.margin[3],-Ht+pt+this.ctx.prevPageLastElemOffset),H===!1||Qe===0){var Dn=(Qe>ke||Qe<$e)&&I.call(this);Dn&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],We,jt,null).clip().discardPath()),Q.call(this,N,H),Dn&&this.pdf.restoreGraphicsState()}this.lineWidth=_e}else this.lineWidth=Ue,Q.call(this,N,H),this.lineWidth=_e;this.path=Je},Q=function(N,H){if((N!=="stroke"||H||!S.call(this))&&(N==="stroke"||H||!g.call(this))){for(var G,re,ce=[],ge=this.path,ve=0;ve<ge.length;ve++){var _e=ge[ve];switch(_e.type){case"begin":ce.push({begin:!0});break;case"close":ce.push({close:!0});break;case"mt":ce.push({start:_e,deltas:[],abs:[]});break;case"lt":var Ue=ce.length;if(ge[ve-1]&&!isNaN(ge[ve-1].x)&&(G=[_e.x-ge[ve-1].x,_e.y-ge[ve-1].y],Ue>0)){for(;Ue>=0;Ue--)if(ce[Ue-1].close!==!0&&ce[Ue-1].begin!==!0){ce[Ue-1].deltas.push(G),ce[Ue-1].abs.push(_e);break}}break;case"bct":G=[_e.x1-ge[ve-1].x,_e.y1-ge[ve-1].y,_e.x2-ge[ve-1].x,_e.y2-ge[ve-1].y,_e.x-ge[ve-1].x,_e.y-ge[ve-1].y],ce[ce.length-1].deltas.push(G);break;case"qct":var Be=ge[ve-1].x+2/3*(_e.x1-ge[ve-1].x),Je=ge[ve-1].y+2/3*(_e.y1-ge[ve-1].y),tt=_e.x+2/3*(_e.x1-_e.x),Ct=_e.y+2/3*(_e.y1-_e.y),Se=_e.x,W=_e.y;G=[Be-ge[ve-1].x,Je-ge[ve-1].y,tt-ge[ve-1].x,Ct-ge[ve-1].y,Se-ge[ve-1].x,W-ge[ve-1].y],ce[ce.length-1].deltas.push(G);break;case"arc":ce.push({deltas:[],abs:[],arc:!0}),Array.isArray(ce[ce.length-1].abs)&&ce[ce.length-1].abs.push(_e)}}re=H?null:N==="stroke"?"stroke":"fill";for(var Tt=!1,lt=0;lt<ce.length;lt++)if(ce[lt].arc)for(var ke=ce[lt].abs,$e=0;$e<ke.length;$e++){var Qe=ke[$e];Qe.type==="arc"?Y.call(this,Qe.x,Qe.y,Qe.radius,Qe.startAngle,Qe.endAngle,Qe.counterclockwise,void 0,H,!Tt):te.call(this,Qe.x,Qe.y),Tt=!0}else if(ce[lt].close===!0)this.pdf.internal.out("h"),Tt=!1;else if(ce[lt].begin!==!0){var We=ce[lt].start.x,pt=ce[lt].start.y;K.call(this,ce[lt].deltas,We,pt),Tt=!0}re&&Ae.call(this,re),H&&Me.call(this)}},J=function(N){var H=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,G=H*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return N-G;case"top":return N+H-G;case"hanging":return N+H-2*G;case"middle":return N+H/2-G;case"ideographic":return N;case"alphabetic":default:return N}},le=function(N){return N+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};v.prototype.createLinearGradient=function(){var N=function(){};return N.colorStops=[],N.addColorStop=function(H,G){this.colorStops.push([H,G])},N.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},N.isCanvasGradient=!0,N},v.prototype.createPattern=function(){return this.createLinearGradient()},v.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Y=function(N,H,G,re,ce,ge,ve,_e,Ue){for(var Be=be.call(this,G,re,ce,ge),Je=0;Je<Be.length;Je++){var tt=Be[Je];Je===0&&(Ue?B.call(this,tt.x1+N,tt.y1+H):te.call(this,tt.x1+N,tt.y1+H)),we.call(this,N,H,tt.x2,tt.y2,tt.x3,tt.y3,tt.x4,tt.y4)}_e?Me.call(this):Ae.call(this,ve)},Ae=function(N){switch(N){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Me=function(){this.pdf.clip(),this.pdf.discardPath()},B=function(N,H){this.pdf.internal.out(i(N)+" "+n(H)+" m")},k=function(N){var H;switch(N.align){case"right":case"end":H="right";break;case"center":H="center";break;case"left":case"start":default:H="left"}var G=this.pdf.getTextDimensions(N.text),re=J.call(this,N.y),ce=le.call(this,re)-G.h,ge=this.ctx.transform.applyToPoint(new s(N.x,re)),ve=this.ctx.transform.decompose(),_e=new l;_e=(_e=(_e=_e.multiply(ve.translate)).multiply(ve.skew)).multiply(ve.scale);for(var Ue,Be,Je,tt=this.ctx.transform.applyToRectangle(new a(N.x,re,G.w,G.h)),Ct=_e.applyToRectangle(new a(N.x,ce,G.w,G.h)),Se=A.call(this,Ct),W=[],Tt=0;Tt<Se.length;Tt+=1)W.indexOf(Se[Tt])===-1&&W.push(Se[Tt]);if(U(W),this.autoPaging)for(var lt=W[0],ke=W[W.length-1],$e=lt;$e<ke+1;$e++){this.pdf.setPage($e);var Qe=$e===1?this.posY+this.margin[0]:this.margin[0],We=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],pt=this.pdf.internal.pageSize.height-this.margin[2],Dt=pt-this.margin[0],jt=this.pdf.internal.pageSize.width-this.margin[1],Ht=jt-this.margin[3],cn=$e===1?0:We+($e-2)*Dt;if(this.ctx.clip_path.length!==0){var Dn=this.path;Ue=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=P(Ue,this.posX+this.margin[3],-1*cn+Qe),Q.call(this,"fill",!0),this.path=Dn}var Et=P([JSON.parse(JSON.stringify(Ct))],this.posX+this.margin[3],-cn+Qe+this.ctx.prevPageLastElemOffset)[0];N.scale>=.01&&(Be=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Be*N.scale),Je=this.lineWidth,this.lineWidth=Je*N.scale);var Kt=this.autoPaging!=="text";if(Kt||Et.y+Et.h<=pt){if(Kt||Et.y>=Qe&&Et.x<=jt){var Ze=Kt?N.text:this.pdf.splitTextToSize(N.text,N.maxWidth||jt-Et.x)[0],Qi=P([JSON.parse(JSON.stringify(tt))],this.posX+this.margin[3],-cn+Qe+this.ctx.prevPageLastElemOffset)[0],pn=Kt&&($e>lt||$e<ke)&&I.call(this);pn&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ht,Dt,null).clip().discardPath()),this.pdf.text(Ze,Qi.x,Qi.y,{angle:N.angle,align:H,renderingMode:N.renderingMode}),pn&&this.pdf.restoreGraphicsState()}}else Et.y<pt&&(this.ctx.prevPageLastElemOffset+=pt-Et.y);N.scale>=.01&&(this.pdf.setFontSize(Be),this.lineWidth=Je)}else N.scale>=.01&&(Be=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Be*N.scale),Je=this.lineWidth,this.lineWidth=Je*N.scale),this.pdf.text(N.text,ge.x+this.posX,ge.y+this.posY,{angle:N.angle,align:H,renderingMode:N.renderingMode,maxWidth:N.maxWidth}),N.scale>=.01&&(this.pdf.setFontSize(Be),this.lineWidth=Je)},te=function(N,H,G,re){G=G||0,re=re||0,this.pdf.internal.out(i(N+G)+" "+n(H+re)+" l")},K=function(N,H,G){return this.pdf.lines(N,H,G,null,null)},we=function(N,H,G,re,ce,ge,ve,_e){this.pdf.internal.out([t(r(G+N)),t(o(re+H)),t(r(ce+N)),t(o(ge+H)),t(r(ve+N)),t(o(_e+H)),"c"].join(" "))},be=function(N,H,G,re){for(var ce=2*Math.PI,ge=Math.PI/2;H>G;)H-=ce;var ve=Math.abs(G-H);ve<ce&&re&&(ve=ce-ve);for(var _e=[],Ue=re?-1:1,Be=H;ve>1e-5;){var Je=Be+Ue*Math.min(ve,ge);_e.push(Ie.call(this,N,Be,Je)),ve-=Math.abs(Je-Be),Be=Je}return _e},Ie=function(N,H,G){var re=(G-H)/2,ce=N*Math.cos(re),ge=N*Math.sin(re),ve=ce,_e=-ge,Ue=ve*ve+_e*_e,Be=Ue+ve*ce+_e*ge,Je=4/3*(Math.sqrt(2*Ue*Be)-Be)/(ve*ge-_e*ce),tt=ve-Je*_e,Ct=_e+Je*ve,Se=tt,W=-Ct,Tt=re+H,lt=Math.cos(Tt),ke=Math.sin(Tt);return{x1:N*Math.cos(H),y1:N*Math.sin(H),x2:tt*lt-Ct*ke,y2:tt*ke+Ct*lt,x3:Se*lt-W*ke,y3:Se*ke+W*lt,x4:N*Math.cos(G),y4:N*Math.sin(G)}},me=function(N){return 180*N/Math.PI},De=function(N,H,G,re,ce,ge){var ve=N+.5*(G-N),_e=H+.5*(re-H),Ue=ce+.5*(G-ce),Be=ge+.5*(re-ge),Je=Math.min(N,ce,ve,Ue),tt=Math.max(N,ce,ve,Ue),Ct=Math.min(H,ge,_e,Be),Se=Math.max(H,ge,_e,Be);return new a(Je,Ct,tt-Je,Se-Ct)},xe=function(N,H,G,re,ce,ge,ve,_e){var Ue,Be,Je,tt,Ct,Se,W,Tt,lt,ke,$e,Qe,We,pt,Dt=G-N,jt=re-H,Ht=ce-G,cn=ge-re,Dn=ve-ce,Et=_e-ge;for(Be=0;Be<41;Be++)lt=(W=(Je=N+(Ue=Be/40)*Dt)+Ue*((Ct=G+Ue*Ht)-Je))+Ue*(Ct+Ue*(ce+Ue*Dn-Ct)-W),ke=(Tt=(tt=H+Ue*jt)+Ue*((Se=re+Ue*cn)-tt))+Ue*(Se+Ue*(ge+Ue*Et-Se)-Tt),Be==0?($e=lt,Qe=ke,We=lt,pt=ke):($e=Math.min($e,lt),Qe=Math.min(Qe,ke),We=Math.max(We,lt),pt=Math.max(pt,ke));return new a(Math.round($e),Math.round(Qe),Math.round(We-$e),Math.round(pt-Qe))},Ke=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var N,H,G=(N=this.ctx.lineDash,H=this.ctx.lineDashOffset,JSON.stringify({lineDash:N,lineDashOffset:H}));this.prevLineDash!==G&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=G)}}})(bt.API),function(e){var t=function(o){var s,a,l,p,h,v,w,g,S,I;for(/[^\x00-\xFF]/.test(o),a=[],l=0,p=(o+=s="\0\0\0\0".slice(o.length%4||4)).length;p>l;l+=4)(h=(o.charCodeAt(l)<<24)+(o.charCodeAt(l+1)<<16)+(o.charCodeAt(l+2)<<8)+o.charCodeAt(l+3))!==0?(v=(h=((h=((h=((h=(h-(I=h%85))/85)-(S=h%85))/85)-(g=h%85))/85)-(w=h%85))/85)%85,a.push(v+33,w+33,g+33,S+33,I+33)):a.push(122);return function(A,x){for(var P=x;P>0;P--)A.pop()}(a,s.length),String.fromCharCode.apply(String,a)+"~>"},i=function(o){var s,a,l,p,h,v=String,w="length",g=255,S="charCodeAt",I="slice",A="replace";for(o[I](-2),o=o[I](0,-2)[A](/\s/g,"")[A]("z","!!!!!"),l=[],p=0,h=(o+=s="uuuuu"[I](o[w]%5||5))[w];h>p;p+=5)a=52200625*(o[S](p)-33)+614125*(o[S](p+1)-33)+7225*(o[S](p+2)-33)+85*(o[S](p+3)-33)+(o[S](p+4)-33),l.push(g&a>>24,g&a>>16,g&a>>8,g&a);return function(x,P){for(var U=P;U>0;U--)x.pop()}(l,s[w]),v.fromCharCode.apply(v,l)},n=function(o){var s=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((o=o.replace(/\s/g,"")).indexOf(">")!==-1&&(o=o.substr(0,o.indexOf(">"))),o.length%2&&(o+="0"),s.test(o)===!1)return"";for(var a="",l=0;l<o.length;l+=2)a+=String.fromCharCode("0x"+(o[l]+o[l+1]));return a},r=function(o){for(var s=new Uint8Array(o.length),a=o.length;a--;)s[a]=o.charCodeAt(a);return o=(s=$g(s)).reduce(function(l,p){return l+String.fromCharCode(p)},"")};e.processDataByFilters=function(o,s){var a=0,l=o||"",p=[];for(typeof(s=s||[])=="string"&&(s=[s]),a=0;a<s.length;a+=1)switch(s[a]){case"ASCII85Decode":case"/ASCII85Decode":l=i(l),p.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=t(l),p.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=n(l),p.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=l.split("").map(function(h){return("0"+h.charCodeAt().toString(16)).slice(-2)}).join("")+">",p.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=r(l),p.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[a]+'" is not implemented')}return{data:l,reverseChain:p.reverse().join(" ")}}}(bt.API),function(e){e.loadFile=function(t,i,n){return function(r,o,s){o=o!==!1,s=typeof s=="function"?s:function(){};var a=void 0;try{a=function(l,p,h){var v=new XMLHttpRequest,w=0,g=function(S){var I=S.length,A=[],x=String.fromCharCode;for(w=0;w<I;w+=1)A.push(x(255&S.charCodeAt(w)));return A.join("")};if(v.open("GET",l,!p),v.overrideMimeType("text/plain; charset=x-user-defined"),p===!1&&(v.onload=function(){v.status===200?h(g(this.responseText)):h(void 0)}),v.send(null),p&&v.status===200)return g(v.responseText)}(r,o,s)}catch{}return a}(t,i,n)},e.loadImageFile=e.loadFile}(bt.API),function(e){function t(){return(wt.html2canvas?Promise.resolve(wt.html2canvas):import("./chunk-BMPK66XY.js")).catch(function(s){return Promise.reject(new Error("Could not load html2canvas: "+s))}).then(function(s){return s.default?s.default:s})}function i(){return(wt.DOMPurify?Promise.resolve(wt.DOMPurify):import("./chunk-2S5AXALQ.js")).catch(function(s){return Promise.reject(new Error("Could not load dompurify: "+s))}).then(function(s){return s.default?s.default:s})}var n=function(s){var a=Tn(s);return a==="undefined"?"undefined":a==="string"||s instanceof String?"string":a==="number"||s instanceof Number?"number":a==="function"||s instanceof Function?"function":s&&s.constructor===Array?"array":s&&s.nodeType===1?"element":a==="object"?"object":"unknown"},r=function(s,a){var l=document.createElement(s);for(var p in a.className&&(l.className=a.className),a.innerHTML&&a.dompurify&&(l.innerHTML=a.dompurify.sanitize(a.innerHTML)),a.style)l.style[p]=a.style[p];return l},o=function s(a){var l=Object.assign(s.convert(Promise.resolve()),JSON.parse(JSON.stringify(s.template))),p=s.convert(Promise.resolve(),l);return p=(p=p.setProgress(1,s,1,[s])).set(a)};(o.prototype=Object.create(Promise.prototype)).constructor=o,o.convert=function(s,a){return s.__proto__=a||o.prototype,s},o.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},o.prototype.from=function(s,a){return this.then(function(){switch(a=a||function(l){switch(n(l)){case"string":return"string";case"element":return l.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(s)){case"string":return this.then(i).then(function(l){return this.set({src:r("div",{innerHTML:s,dompurify:l})})});case"element":return this.set({src:s});case"canvas":return this.set({canvas:s});case"img":return this.set({img:s});default:return this.error("Unknown source type.")}})},o.prototype.to=function(s){switch(s){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},o.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var s={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},a=function l(p,h){for(var v=p.nodeType===3?document.createTextNode(p.nodeValue):p.cloneNode(!1),w=p.firstChild;w;w=w.nextSibling)h!==!0&&w.nodeType===1&&w.nodeName==="SCRIPT"||v.appendChild(l(w,h));return p.nodeType===1&&(p.nodeName==="CANVAS"?(v.width=p.width,v.height=p.height,v.getContext("2d").drawImage(p,0,0)):p.nodeName!=="TEXTAREA"&&p.nodeName!=="SELECT"||(v.value=p.value),v.addEventListener("load",function(){v.scrollTop=p.scrollTop,v.scrollLeft=p.scrollLeft},!0)),v}(this.prop.src,this.opt.html2canvas.javascriptEnabled);a.tagName==="BODY"&&(s.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=r("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=r("div",{className:"html2pdf__container",style:s}),this.prop.container.appendChild(a),this.prop.container.firstChild.appendChild(r("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},o.prototype.toCanvas=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(t).then(function(a){var l=Object.assign({},this.opt.html2canvas);return delete l.onrendered,a(this.prop.container,l)}).then(function(a){(this.opt.html2canvas.onrendered||function(){})(a),this.prop.canvas=a,document.body.removeChild(this.prop.overlay)})},o.prototype.toContext2d=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(t).then(function(a){var l=this.opt.jsPDF,p=this.opt.fontFaces,h=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,v=Object.assign({async:!0,allowTaint:!0,scale:h,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete v.onrendered,l.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,l.context2d.posX=this.opt.x,l.context2d.posY=this.opt.y,l.context2d.margin=this.opt.margin,l.context2d.fontFaces=p,p)for(var w=0;w<p.length;++w){var g=p[w],S=g.src.find(function(I){return I.format==="truetype"});S&&l.addFont(S.url,g.ref.name,g.ref.style)}return v.windowHeight=v.windowHeight||0,v.windowHeight=v.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):v.windowHeight,l.context2d.save(!0),a(this.prop.container,v)}).then(function(a){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(a),this.prop.canvas=a,document.body.removeChild(this.prop.overlay)})},o.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var s=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=s})},o.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},o.prototype.output=function(s,a,l){return(l=l||"pdf").toLowerCase()==="img"||l.toLowerCase()==="image"?this.outputImg(s,a):this.outputPdf(s,a)},o.prototype.outputPdf=function(s,a){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(s,a)})},o.prototype.outputImg=function(s){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(s){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+s+'" is not supported.'}})},o.prototype.save=function(s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(s?{filename:s}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},o.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},o.prototype.set=function(s){if(n(s)!=="object")return this;var a=Object.keys(s||{}).map(function(l){if(l in o.template.prop)return function(){this.prop[l]=s[l]};switch(l){case"margin":return this.setMargin.bind(this,s.margin);case"jsPDF":return function(){return this.opt.jsPDF=s.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,s.pageSize);default:return function(){this.opt[l]=s[l]}}},this);return this.then(function(){return this.thenList(a)})},o.prototype.get=function(s,a){return this.then(function(){var l=s in o.template.prop?this.prop[s]:this.opt[s];return a?a(l):l})},o.prototype.setMargin=function(s){return this.then(function(){switch(n(s)){case"number":s=[s,s,s,s];case"array":if(s.length===2&&(s=[s[0],s[1],s[0],s[1]]),s.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=s}).then(this.setPageSize)},o.prototype.setPageSize=function(s){function a(l,p){return Math.floor(l*p/72*96)}return this.then(function(){(s=s||bt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(s.inner={width:s.width-this.opt.margin[1]-this.opt.margin[3],height:s.height-this.opt.margin[0]-this.opt.margin[2]},s.inner.px={width:a(s.inner.width,s.k),height:a(s.inner.height,s.k)},s.inner.ratio=s.inner.height/s.inner.width),this.prop.pageSize=s})},o.prototype.setProgress=function(s,a,l,p){return s!=null&&(this.progress.val=s),a!=null&&(this.progress.state=a),l!=null&&(this.progress.n=l),p!=null&&(this.progress.stack=p),this.progress.ratio=this.progress.val/this.progress.state,this},o.prototype.updateProgress=function(s,a,l,p){return this.setProgress(s?this.progress.val+s:null,a||null,l?this.progress.n+l:null,p?this.progress.stack.concat(p):null)},o.prototype.then=function(s,a){var l=this;return this.thenCore(s,a,function(p,h){return l.updateProgress(null,null,1,[p]),Promise.prototype.then.call(this,function(v){return l.updateProgress(null,p),v}).then(p,h).then(function(v){return l.updateProgress(1),v})})},o.prototype.thenCore=function(s,a,l){l=l||Promise.prototype.then,s&&(s=s.bind(this)),a&&(a=a.bind(this));var p=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:o.convert(Object.assign({},this),Promise.prototype),h=l.call(p,s,a);return o.convert(h,this.__proto__)},o.prototype.thenExternal=function(s,a){return Promise.prototype.then.call(this,s,a)},o.prototype.thenList=function(s){var a=this;return s.forEach(function(l){a=a.thenCore(l)}),a},o.prototype.catch=function(s){s&&(s=s.bind(this));var a=Promise.prototype.catch.call(this,s);return o.convert(a,this)},o.prototype.catchExternal=function(s){return Promise.prototype.catch.call(this,s)},o.prototype.error=function(s){return this.then(function(){throw new Error(s)})},o.prototype.using=o.prototype.set,o.prototype.saveAs=o.prototype.save,o.prototype.export=o.prototype.output,o.prototype.run=o.prototype.then,bt.getPageSize=function(s,a,l){if(Tn(s)==="object"){var p=s;s=p.orientation,a=p.unit||a,l=p.format||l}a=a||"mm",l=l||"a4",s=(""+(s||"P")).toLowerCase();var h,v=(""+l).toLowerCase(),w={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(a){case"pt":h=1;break;case"mm":h=72/25.4;break;case"cm":h=72/2.54;break;case"in":h=72;break;case"px":h=.75;break;case"pc":case"em":h=12;break;case"ex":h=6;break;default:throw"Invalid unit: "+a}var g,S=0,I=0;if(w.hasOwnProperty(v))S=w[v][1]/h,I=w[v][0]/h;else try{S=l[1],I=l[0]}catch{throw new Error("Invalid format: "+l)}if(s==="p"||s==="portrait")s="p",I>S&&(g=I,I=S,S=g);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",S>I&&(g=I,I=S,S=g)}return{width:I,height:S,unit:a,k:h,orientation:s}},e.html=function(s,a){(a=a||{}).callback=a.callback||function(){},a.html2canvas=a.html2canvas||{},a.html2canvas.canvas=a.html2canvas.canvas||this.canvas,a.jsPDF=a.jsPDF||this,a.fontFaces=a.fontFaces?a.fontFaces.map(Tb):null;var l=new o(a);return a.worker?l:l.from(s).doCallback()}}(bt.API),bt.API.addJS=function(e){return S3=e,this.internal.events.subscribe("postPutResources",function(){Gg=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Gg+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),E3=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+S3+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Gg!==void 0&&E3!==void 0&&this.internal.out("/Names <</JavaScript "+Gg+" 0 R>>")}),this},function(e){var t;e.events.push(["postPutResources",function(){var i=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=i.outline.render().split(/\r\n/),o=0;o<r.length;o++){var s=r[o],a=n.exec(s);if(a!=null){var l=a[1];i.internal.newObjectDeferredBegin(l,!1)}i.internal.write(s)}if(this.outline.createNamedDestinations){var p=this.internal.pages.length,h=[];for(o=0;o<p;o++){var v=i.internal.newObject();h.push(v);var w=i.internal.getPageInfo(o+1);i.internal.write("<< /D["+w.objId+" 0 R /XYZ null null null]>> endobj")}var g=i.internal.newObject();for(i.internal.write("<< /Names [ "),o=0;o<h.length;o++)i.internal.write("(page_"+(o+1)+")"+h[o]+" 0 R");i.internal.write(" ] >>","endobj"),t=i.internal.newObject(),i.internal.write("<< /Dests "+g+" 0 R"),i.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var i=this;i.outline={createNamedDestinations:!1,root:{children:[]}},i.outline.add=function(n,r,o){var s={title:r,options:o,children:[]};return n==null&&(n=this.root),n.children.push(s),s},i.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=i,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},i.outline.genIds_r=function(n){n.id=i.internal.newObjectDeferred();for(var r=0;r<n.children.length;r++)this.genIds_r(n.children[r])},i.outline.renderRoot=function(n){this.objStart(n),this.line("/Type /Outlines"),n.children.length>0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1]))),this.line("/Count "+this.count_r({count:0},n)),this.objEnd()},i.outline.renderItems=function(n){for(var r=this.ctx.pdf.internal.getVerticalCoordinateString,o=0;o<n.children.length;o++){var s=n.children[o];this.objStart(s),this.line("/Title "+this.makeString(s.title)),this.line("/Parent "+this.makeRef(n)),o>0&&this.line("/Prev "+this.makeRef(n.children[o-1])),o<n.children.length-1&&this.line("/Next "+this.makeRef(n.children[o+1])),s.children.length>0&&(this.line("/First "+this.makeRef(s.children[0])),this.line("/Last "+this.makeRef(s.children[s.children.length-1])));var a=this.count=this.count_r({count:0},s);if(a>0&&this.line("/Count "+a),s.options&&s.options.pageNumber){var l=i.internal.getPageInfo(s.options.pageNumber);this.line("/Dest ["+l.objId+" 0 R /XYZ 0 "+r(0)+" 0]")}this.objEnd()}for(var p=0;p<n.children.length;p++)this.renderItems(n.children[p])},i.outline.line=function(n){this.ctx.val+=n+`\r
+`},i.outline.makeRef=function(n){return n.id+" 0 R"},i.outline.makeString=function(n){return"("+i.internal.pdfEscape(n)+")"},i.outline.objStart=function(n){this.ctx.val+=`\r
+`+n.id+` 0 obj\r
+<<\r
+`},i.outline.objEnd=function(){this.ctx.val+=`>> \r
+endobj\r
+`},i.outline.count_r=function(n,r){for(var o=0;o<r.children.length;o++)n.count++,this.count_r(n,r.children[o]);return n.count}}])}(bt.API),function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(i,n,r,o,s,a){var l,p=this.decode.DCT_DECODE,h=null;if(typeof i=="string"||this.__addimage__.isArrayBuffer(i)||this.__addimage__.isArrayBufferView(i)){switch(i=s||i,i=this.__addimage__.isArrayBuffer(i)?new Uint8Array(i):i,(l=function(v){for(var w,g=256*v.charCodeAt(4)+v.charCodeAt(5),S=v.length,I={width:0,height:0,numcomponents:1},A=4;A<S;A+=2){if(A+=g,t.indexOf(v.charCodeAt(A+1))!==-1){w=256*v.charCodeAt(A+5)+v.charCodeAt(A+6),I={width:256*v.charCodeAt(A+7)+v.charCodeAt(A+8),height:w,numcomponents:v.charCodeAt(A+9)};break}g=256*v.charCodeAt(A+2)+v.charCodeAt(A+3)}return I}(i=this.__addimage__.isArrayBufferView(i)?this.__addimage__.arrayBufferToBinaryString(i):i)).numcomponents){case 1:a=this.color_spaces.DEVICE_GRAY;break;case 4:a=this.color_spaces.DEVICE_CMYK;break;case 3:a=this.color_spaces.DEVICE_RGB}h={data:i,width:l.width,height:l.height,colorSpace:a,bitsPerComponent:8,filter:p,index:n,alias:r}}return h}}(bt.API);var Gu,Wg,I3,x3,D3,qB=function(){var e,t,i;function n(o){var s,a,l,p,h,v,w,g,S,I,A,x,P,U;for(this.data=o,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},v=null;;){switch(s=this.readUInt32(),S=(function(){var q,Q;for(Q=[],q=0;q<4;++q)Q.push(String.fromCharCode(this.data[this.pos++]));return Q}).call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(s);break;case"fcTL":v&&this.animation.frames.push(v),this.pos+=4,v={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},h=this.readUInt16(),p=this.readUInt16()||100,v.delay=1e3*h/p,v.disposeOp=this.data[this.pos++],v.blendOp=this.data[this.pos++],v.data=[];break;case"IDAT":case"fdAT":for(S==="fdAT"&&(this.pos+=4,s-=4),o=v?.data||this.imgData,x=0;0<=s?x<s:x>s;0<=s?++x:--x)o.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(l=this.palette.length/3,this.transparency.indexed=this.read(s),this.transparency.indexed.length>l)throw new Error("More transparent colors than palette size");if((I=l-this.transparency.indexed.length)>0)for(P=0;0<=I?P<I:P>I;0<=I?++P:--P)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(s)[0];break;case 2:this.transparency.rgb=this.read(s)}break;case"tEXt":w=(A=this.read(s)).indexOf(0),g=String.fromCharCode.apply(String,A.slice(0,w)),this.text[g]=String.fromCharCode.apply(String,A.slice(w+1));break;case"IEND":return v&&this.animation.frames.push(v),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=(U=this.colorType)===4||U===6,a=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*a,this.colorSpace=(function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}).call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=s}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}n.prototype.read=function(o){var s,a;for(a=[],s=0;0<=o?s<o:s>o;0<=o?++s:--s)a.push(this.data[this.pos++]);return a},n.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.decodePixels=function(o){var s=this.pixelBitlength/8,a=new Uint8Array(this.width*this.height*s),l=0,p=this;if(o==null&&(o=this.imgData),o.length===0)return new Uint8Array(0);function h(v,w,g,S){var I,A,x,P,U,q,Q,J,le,Y,Ae,Me,B,k,te,K,we,be,Ie,me,De,xe=Math.ceil((p.width-v)/g),Ke=Math.ceil((p.height-w)/S),N=p.width==xe&&p.height==Ke;for(k=s*xe,Me=N?a:new Uint8Array(k*Ke),q=o.length,B=0,A=0;B<Ke&&l<q;){switch(o[l++]){case 0:for(P=we=0;we<k;P=we+=1)Me[A++]=o[l++];break;case 1:for(P=be=0;be<k;P=be+=1)I=o[l++],U=P<s?0:Me[A-s],Me[A++]=(I+U)%256;break;case 2:for(P=Ie=0;Ie<k;P=Ie+=1)I=o[l++],x=(P-P%s)/s,te=B&&Me[(B-1)*k+x*s+P%s],Me[A++]=(te+I)%256;break;case 3:for(P=me=0;me<k;P=me+=1)I=o[l++],x=(P-P%s)/s,U=P<s?0:Me[A-s],te=B&&Me[(B-1)*k+x*s+P%s],Me[A++]=(I+Math.floor((U+te)/2))%256;break;case 4:for(P=De=0;De<k;P=De+=1)I=o[l++],x=(P-P%s)/s,U=P<s?0:Me[A-s],B===0?te=K=0:(te=Me[(B-1)*k+x*s+P%s],K=x&&Me[(B-1)*k+(x-1)*s+P%s]),Q=U+te-K,J=Math.abs(Q-U),Y=Math.abs(Q-te),Ae=Math.abs(Q-K),le=J<=Y&&J<=Ae?U:Y<=Ae?te:K,Me[A++]=(I+le)%256;break;default:throw new Error("Invalid filter algorithm: "+o[l-1])}if(!N){var H=((w+B*S)*p.width+v)*s,G=B*k;for(P=0;P<xe;P+=1){for(var re=0;re<s;re+=1)a[H++]=Me[G++];H+=(g-1)*s}}B++}}return o=f3(o),p.interlaceMethod==1?(h(0,0,8,8),h(4,0,8,8),h(0,4,4,8),h(2,0,4,4),h(0,2,2,4),h(1,0,2,2),h(0,1,1,2)):h(0,0,1,1),a},n.prototype.decodePalette=function(){var o,s,a,l,p,h,v,w,g;for(a=this.palette,h=this.transparency.indexed||[],p=new Uint8Array((h.length||0)+a.length),l=0,o=0,s=v=0,w=a.length;v<w;s=v+=3)p[l++]=a[s],p[l++]=a[s+1],p[l++]=a[s+2],p[l++]=(g=h[o++])!=null?g:255;return p},n.prototype.copyToImageData=function(o,s){var a,l,p,h,v,w,g,S,I,A,x;if(l=this.colors,I=null,a=this.hasAlphaChannel,this.palette.length&&(I=(x=this._decodedPalette)!=null?x:this._decodedPalette=this.decodePalette(),l=4,a=!0),S=(p=o.data||o).length,v=I||s,h=w=0,l===1)for(;h<S;)g=I?4*s[h/4]:w,A=v[g++],p[h++]=A,p[h++]=A,p[h++]=A,p[h++]=a?v[g++]:255,w=g;else for(;h<S;)g=I?4*s[h/4]:w,p[h++]=v[g++],p[h++]=v[g++],p[h++]=v[g++],p[h++]=a?v[g++]:255,w=g},n.prototype.decode=function(){var o;return o=new Uint8Array(this.width*this.height*4),this.copyToImageData(o,this.decodePixels()),o};var r=function(){if(Object.prototype.toString.call(wt)==="[object Window]"){try{t=wt.document.createElement("canvas"),i=t.getContext("2d")}catch{return!1}return!0}return!1};return r(),e=function(o){var s;if(r()===!0)return i.width=o.width,i.height=o.height,i.clearRect(0,0,o.width,o.height),i.putImageData(o,0,0),(s=new Image).src=t.toDataURL(),s;throw new Error("This method requires a Browser with Canvas-capability.")},n.prototype.decodeFrames=function(o){var s,a,l,p,h,v,w,g;if(this.animation){for(g=[],a=h=0,v=(w=this.animation.frames).length;h<v;a=++h)s=w[a],l=o.createImageData(s.width,s.height),p=this.decodePixels(new Uint8Array(s.data)),this.copyToImageData(l,p),s.imageData=l,g.push(s.image=e(l));return g}},n.prototype.renderFrame=function(o,s){var a,l,p;return a=(l=this.animation.frames)[s],p=l[s-1],s===0&&o.clearRect(0,0,this.width,this.height),p?.disposeOp===1?o.clearRect(p.xOffset,p.yOffset,p.width,p.height):p?.disposeOp===2&&o.putImageData(p.imageData,p.xOffset,p.yOffset),a.blendOp===0&&o.clearRect(a.xOffset,a.yOffset,a.width,a.height),o.drawImage(a.image,a.xOffset,a.yOffset)},n.prototype.animate=function(o){var s,a,l,p,h,v,w=this;return a=0,v=this.animation,p=v.numFrames,l=v.frames,h=v.numPlays,(s=function(){var g,S;if(g=a++%p,S=l[g],w.renderFrame(o,g),p>1&&a/p<h)return w.animation._timeout=setTimeout(s,S.delay)})()},n.prototype.stopAnimation=function(){var o;return clearTimeout((o=this.animation)!=null?o._timeout:void 0)},n.prototype.render=function(o){var s,a;return o._png&&o._png.stopAnimation(),o._png=this,o.width=this.width,o.height=this.height,s=o.getContext("2d"),this.animation?(this.decodeFrames(s),this.animate(s)):(a=s.createImageData(this.width,this.height),this.copyToImageData(a,this.decodePixels()),s.putImageData(a,0,0))},n}();function $B(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!=56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var i=e[t++]|e[t++]<<8,n=e[t++]|e[t++]<<8,r=e[t++],o=r>>7,s=1<<(7&r)+1;e[t++],e[t++];var a=null,l=null;o&&(a=t,l=s,t+=3*s);var p=!0,h=[],v=0,w=null,g=0,S=null;for(this.width=i,this.height=n;p&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,S=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((B=e[t++])>=0))throw Error("Invalid block size");if(B===0)break;t+=B}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var I=e[t++];v=e[t++]|e[t++]<<8,w=e[t++],!(1&I)&&(w=null),g=I>>2&7,t++;break;case 254:for(;;){if(!((B=e[t++])>=0))throw Error("Invalid block size");if(B===0)break;t+=B}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var A=e[t++]|e[t++]<<8,x=e[t++]|e[t++]<<8,P=e[t++]|e[t++]<<8,U=e[t++]|e[t++]<<8,q=e[t++],Q=q>>6&1,J=1<<(7&q)+1,le=a,Y=l,Ae=!1;q>>7&&(Ae=!0,le=t,Y=J,t+=3*J);var Me=t;for(t++;;){var B;if(!((B=e[t++])>=0))throw Error("Invalid block size");if(B===0)break;t+=B}h.push({x:A,y:x,width:P,height:U,has_local_palette:Ae,palette_offset:le,palette_size:Y,data_offset:Me,data_length:t-Me,transparent_index:w,interlaced:!!Q,delay:v,disposal:g});break;case 59:p=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return h.length},this.loopCount=function(){return S},this.frameInfo=function(k){if(k<0||k>=h.length)throw new Error("Frame index out of range.");return h[k]},this.decodeAndBlitFrameBGRA=function(k,te){var K=this.frameInfo(k),we=K.width*K.height,be=new Uint8Array(we);M3(e,K.data_offset,be,we);var Ie=K.palette_offset,me=K.transparent_index;me===null&&(me=256);var De=K.width,xe=i-De,Ke=De,N=4*(K.y*i+K.x),H=4*((K.y+K.height)*i+K.x),G=N,re=4*xe;K.interlaced===!0&&(re+=4*i*7);for(var ce=8,ge=0,ve=be.length;ge<ve;++ge){var _e=be[ge];if(Ke===0&&(Ke=De,(G+=re)>=H&&(re=4*xe+4*i*(ce-1),G=N+(De+xe)*(ce<<1),ce>>=1)),_e===me)G+=4;else{var Ue=e[Ie+3*_e],Be=e[Ie+3*_e+1],Je=e[Ie+3*_e+2];te[G++]=Je,te[G++]=Be,te[G++]=Ue,te[G++]=255}--Ke}},this.decodeAndBlitFrameRGBA=function(k,te){var K=this.frameInfo(k),we=K.width*K.height,be=new Uint8Array(we);M3(e,K.data_offset,be,we);var Ie=K.palette_offset,me=K.transparent_index;me===null&&(me=256);var De=K.width,xe=i-De,Ke=De,N=4*(K.y*i+K.x),H=4*((K.y+K.height)*i+K.x),G=N,re=4*xe;K.interlaced===!0&&(re+=4*i*7);for(var ce=8,ge=0,ve=be.length;ge<ve;++ge){var _e=be[ge];if(Ke===0&&(Ke=De,(G+=re)>=H&&(re=4*xe+4*i*(ce-1),G=N+(De+xe)*(ce<<1),ce>>=1)),_e===me)G+=4;else{var Ue=e[Ie+3*_e],Be=e[Ie+3*_e+1],Je=e[Ie+3*_e+2];te[G++]=Ue,te[G++]=Be,te[G++]=Je,te[G++]=255}--Ke}}}function M3(e,t,i,n){for(var r=e[t++],o=1<<r,s=o+1,a=s+1,l=r+1,p=(1<<l)-1,h=0,v=0,w=0,g=e[t++],S=new Int32Array(4096),I=null;;){for(;h<16&&g!==0;)v|=e[t++]<<h,h+=8,g===1?g=e[t++]:--g;if(h<l)break;var A=v&p;if(v>>=l,h-=l,A!==o){if(A===s)break;for(var x=A<a?A:I,P=0,U=x;U>o;)U=S[U]>>8,++P;var q=U;if(w+P+(x!==A?1:0)>n)return void kn.log("Warning, gif stream longer than expected.");i[w++]=q;var Q=w+=P;for(x!==A&&(i[w++]=q),U=x;P--;)U=S[U],i[--Q]=255&U,U>>=8;I!==null&&a<4096&&(S[a++]=I<<8|q,a>=p+1&&l<12&&(++l,p=p<<1|1)),I=A}else a=s+1,p=(1<<(l=r+1))-1,I=null}return w!==n&&kn.log("Warning, gif stream shorter than expected."),i}function Sb(e){var t,i,n,r,o,s=Math.floor,a=new Array(64),l=new Array(64),p=new Array(64),h=new Array(64),v=new Array(65535),w=new Array(65535),g=new Array(64),S=new Array(64),I=[],A=0,x=7,P=new Array(64),U=new Array(64),q=new Array(64),Q=new Array(256),J=new Array(2048),le=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],Y=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Ae=[0,1,2,3,4,5,6,7,8,9,10,11],Me=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],B=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],k=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],te=[0,1,2,3,4,5,6,7,8,9,10,11],K=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],we=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function be(N,H){for(var G=0,re=0,ce=new Array,ge=1;ge<=16;ge++){for(var ve=1;ve<=N[ge];ve++)ce[H[re]]=[],ce[H[re]][0]=G,ce[H[re]][1]=ge,re++,G++;G*=2}return ce}function Ie(N){for(var H=N[0],G=N[1]-1;G>=0;)H&1<<G&&(A|=1<<x),G--,--x<0&&(A==255?(me(255),me(0)):me(A),x=7,A=0)}function me(N){I.push(N)}function De(N){me(N>>8&255),me(255&N)}function xe(N,H,G,re,ce){for(var ge,ve=ce[0],_e=ce[240],Ue=function(ke,$e){var Qe,We,pt,Dt,jt,Ht,cn,Dn,Et,Kt,Ze=0;for(Et=0;Et<8;++Et){Qe=ke[Ze],We=ke[Ze+1],pt=ke[Ze+2],Dt=ke[Ze+3],jt=ke[Ze+4],Ht=ke[Ze+5],cn=ke[Ze+6];var Qi=Qe+(Dn=ke[Ze+7]),pn=Qe-Dn,yo=We+cn,Nn=We-cn,zn=pt+Ht,Xo=pt-Ht,yn=Dt+jt,El=Dt-jt,Xn=Qi+yn,bo=Qi-yn,Bs=yo+zn,ei=yo-zn;ke[Ze]=Xn+Bs,ke[Ze+4]=Xn-Bs;var Mt=.707106781*(ei+bo);ke[Ze+2]=bo+Mt,ke[Ze+6]=bo-Mt;var bn=.382683433*((Xn=El+Xo)-(ei=Nn+pn)),Sl=.5411961*Xn+bn,Hi=1.306562965*ei+bn,es=.707106781*(Bs=Xo+Nn),ts=pn+es,_t=pn-es;ke[Ze+5]=_t+Sl,ke[Ze+3]=_t-Sl,ke[Ze+1]=ts+Hi,ke[Ze+7]=ts-Hi,Ze+=8}for(Ze=0,Et=0;Et<8;++Et){Qe=ke[Ze],We=ke[Ze+8],pt=ke[Ze+16],Dt=ke[Ze+24],jt=ke[Ze+32],Ht=ke[Ze+40],cn=ke[Ze+48];var _o=Qe+(Dn=ke[Ze+56]),ns=Qe-Dn,vr=We+cn,Ii=We-cn,hi=pt+Ht,Lr=pt-Ht,fc=Dt+jt,Us=Dt-jt,Co=_o+fc,wo=_o-fc,Eo=vr+hi,is=vr-hi;ke[Ze]=Co+Eo,ke[Ze+32]=Co-Eo;var Jr=.707106781*(is+wo);ke[Ze+16]=wo+Jr,ke[Ze+48]=wo-Jr;var rs=.382683433*((Co=Us+Lr)-(is=Ii+ns)),Il=.5411961*Co+rs,hc=1.306562965*is+rs,mc=.707106781*(Eo=Lr+Ii),gc=ns+mc,vc=ns-mc;ke[Ze+40]=vc+Il,ke[Ze+24]=vc-Il,ke[Ze+8]=gc+hc,ke[Ze+56]=gc-hc,Ze++}for(Et=0;Et<64;++Et)Kt=ke[Et]*$e[Et],g[Et]=Kt>0?Kt+.5|0:Kt-.5|0;return g}(N,H),Be=0;Be<64;++Be)S[le[Be]]=Ue[Be];var Je=S[0]-G;G=S[0],Je==0?Ie(re[0]):(Ie(re[w[ge=32767+Je]]),Ie(v[ge]));for(var tt=63;tt>0&&S[tt]==0;)tt--;if(tt==0)return Ie(ve),G;for(var Ct,Se=1;Se<=tt;){for(var W=Se;S[Se]==0&&Se<=tt;)++Se;var Tt=Se-W;if(Tt>=16){Ct=Tt>>4;for(var lt=1;lt<=Ct;++lt)Ie(_e);Tt&=15}ge=32767+S[Se],Ie(ce[(Tt<<4)+w[ge]]),Ie(v[ge]),Se++}return tt!=63&&Ie(ve),G}function Ke(N){N=Math.min(Math.max(N,1),100),o!=N&&(function(H){for(var G=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],re=0;re<64;re++){var ce=s((G[re]*H+50)/100);ce=Math.min(Math.max(ce,1),255),a[le[re]]=ce}for(var ge=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],ve=0;ve<64;ve++){var _e=s((ge[ve]*H+50)/100);_e=Math.min(Math.max(_e,1),255),l[le[ve]]=_e}for(var Ue=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Be=0,Je=0;Je<8;Je++)for(var tt=0;tt<8;tt++)p[Be]=1/(a[le[Be]]*Ue[Je]*Ue[tt]*8),h[Be]=1/(l[le[Be]]*Ue[Je]*Ue[tt]*8),Be++}(N<50?Math.floor(5e3/N):Math.floor(200-2*N)),o=N)}this.encode=function(N,H){H&&Ke(H),I=new Array,A=0,x=7,De(65496),De(65504),De(16),me(74),me(70),me(73),me(70),me(0),me(1),me(1),me(0),De(1),De(1),me(0),me(0),function(){De(65499),De(132),me(0);for(var We=0;We<64;We++)me(a[We]);me(1);for(var pt=0;pt<64;pt++)me(l[pt])}(),function(We,pt){De(65472),De(17),me(8),De(pt),De(We),me(3),me(1),me(17),me(0),me(2),me(17),me(1),me(3),me(17),me(1)}(N.width,N.height),function(){De(65476),De(418),me(0);for(var We=0;We<16;We++)me(Y[We+1]);for(var pt=0;pt<=11;pt++)me(Ae[pt]);me(16);for(var Dt=0;Dt<16;Dt++)me(Me[Dt+1]);for(var jt=0;jt<=161;jt++)me(B[jt]);me(1);for(var Ht=0;Ht<16;Ht++)me(k[Ht+1]);for(var cn=0;cn<=11;cn++)me(te[cn]);me(17);for(var Dn=0;Dn<16;Dn++)me(K[Dn+1]);for(var Et=0;Et<=161;Et++)me(we[Et])}(),De(65498),De(12),me(3),me(1),me(0),me(2),me(17),me(3),me(17),me(0),me(63),me(0);var G=0,re=0,ce=0;A=0,x=7,this.encode.displayName="_encode_";for(var ge,ve,_e,Ue,Be,Je,tt,Ct,Se,W=N.data,Tt=N.width,lt=N.height,ke=4*Tt,$e=0;$e<lt;){for(ge=0;ge<ke;){for(Be=ke*$e+ge,tt=-1,Ct=0,Se=0;Se<64;Se++)Je=Be+(Ct=Se>>3)*ke+(tt=4*(7&Se)),$e+Ct>=lt&&(Je-=ke*($e+1+Ct-lt)),ge+tt>=ke&&(Je-=ge+tt-ke+4),ve=W[Je++],_e=W[Je++],Ue=W[Je++],P[Se]=(J[ve]+J[_e+256>>0]+J[Ue+512>>0]>>16)-128,U[Se]=(J[ve+768>>0]+J[_e+1024>>0]+J[Ue+1280>>0]>>16)-128,q[Se]=(J[ve+1280>>0]+J[_e+1536>>0]+J[Ue+1792>>0]>>16)-128;G=xe(P,p,G,t,n),re=xe(U,h,re,i,r),ce=xe(q,h,ce,i,r),ge+=32}$e+=8}if(x>=0){var Qe=[];Qe[1]=x+1,Qe[0]=(1<<x+1)-1,Ie(Qe)}return De(65497),new Uint8Array(I)},e=e||50,function(){for(var N=String.fromCharCode,H=0;H<256;H++)Q[H]=N(H)}(),t=be(Y,Ae),i=be(k,te),n=be(Me,B),r=be(K,we),function(){for(var N=1,H=2,G=1;G<=15;G++){for(var re=N;re<H;re++)w[32767+re]=G,v[32767+re]=[],v[32767+re][1]=G,v[32767+re][0]=re;for(var ce=-(H-1);ce<=-N;ce++)w[32767+ce]=G,v[32767+ce]=[],v[32767+ce][1]=G,v[32767+ce][0]=H-1+ce;N<<=1,H<<=1}}(),function(){for(var N=0;N<256;N++)J[N]=19595*N,J[N+256>>0]=38470*N,J[N+512>>0]=7471*N+32768,J[N+768>>0]=-11059*N,J[N+1024>>0]=-21709*N,J[N+1280>>0]=32768*N+8421375,J[N+1536>>0]=-27439*N,J[N+1792>>0]=-5329*N}(),Ke(e)}function Qo(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function A3(e){function t(Y){if(!Y)throw Error("assert :P")}function i(Y,Ae,Me){for(var B=0;4>B;B++)if(Y[Ae+B]!=Me.charCodeAt(B))return!0;return!1}function n(Y,Ae,Me,B,k){for(var te=0;te<k;te++)Y[Ae+te]=Me[B+te]}function r(Y,Ae,Me,B){for(var k=0;k<B;k++)Y[Ae+k]=Me}function o(Y){return new Int32Array(Y)}function s(Y,Ae){for(var Me=[],B=0;B<Y;B++)Me.push(new Ae);return Me}function a(Y,Ae){var Me=[];return function B(k,te,K){for(var we=K[te],be=0;be<we&&(k.push(K.length>te+1?[]:new Ae),!(K.length<te+1));be++)B(k[be],te+1,K)}(Me,0,Y),Me}var l=function(){var Y=this;function Ae(c,f){for(var y=1<<f-1>>>0;c&y;)y>>>=1;return y?(c&y-1)+y:c}function Me(c,f,y,E,D){t(!(E%y));do c[f+(E-=y)]=D;while(0<E)}function B(c,f,y,E,D){if(t(2328>=D),512>=D)var T=o(512);else if((T=o(D))==null)return 0;return function(F,O,L,V,ne,de){var pe,ae,Ne=O,Ce=1<<L,ie=o(16),oe=o(16);for(t(ne!=0),t(V!=null),t(F!=null),t(0<L),ae=0;ae<ne;++ae){if(15<V[ae])return 0;++ie[V[ae]]}if(ie[0]==ne)return 0;for(oe[1]=0,pe=1;15>pe;++pe){if(ie[pe]>1<<pe)return 0;oe[pe+1]=oe[pe]+ie[pe]}for(ae=0;ae<ne;++ae)pe=V[ae],0<V[ae]&&(de[oe[pe]++]=ae);if(oe[15]==1)return(V=new k).g=0,V.value=de[0],Me(F,Ne,1,Ce,V),Ce;var Te,Oe=-1,Fe=Ce-1,et=0,He=1,gt=1,Ge=1<<L;for(ae=0,pe=1,ne=2;pe<=L;++pe,ne<<=1){if(He+=gt<<=1,0>(gt-=ie[pe]))return 0;for(;0<ie[pe];--ie[pe])(V=new k).g=pe,V.value=de[ae++],Me(F,Ne+et,ne,Ge,V),et=Ae(et,pe)}for(pe=L+1,ne=2;15>=pe;++pe,ne<<=1){if(He+=gt<<=1,0>(gt-=ie[pe]))return 0;for(;0<ie[pe];--ie[pe]){if(V=new k,(et&Fe)!=Oe){for(Ne+=Ge,Te=1<<(Oe=pe)-L;15>Oe&&!(0>=(Te-=ie[Oe]));)++Oe,Te<<=1;Ce+=Ge=1<<(Te=Oe-L),F[O+(Oe=et&Fe)].g=Te+L,F[O+Oe].value=Ne-O-Oe}V.g=pe-L,V.value=de[ae++],Me(F,Ne+(et>>L),ne,Ge,V),et=Ae(et,pe)}}return He!=2*oe[15]-1?0:Ce}(c,f,y,E,D,T)}function k(){this.value=this.g=0}function te(){this.value=this.g=0}function K(){this.G=s(5,k),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(br,te)}function we(c,f,y,E){t(c!=null),t(f!=null),t(2147483648>E),c.Ca=254,c.I=0,c.b=-8,c.Ka=0,c.oa=f,c.pa=y,c.Jd=f,c.Yc=y+E,c.Zc=4<=E?y+E-4+1:y,ge(c)}function be(c,f){for(var y=0;0<f--;)y|=_e(c,128)<<f;return y}function Ie(c,f){var y=be(c,f);return ve(c)?-y:y}function me(c,f,y,E){var D,T=0;for(t(c!=null),t(f!=null),t(4294967288>E),c.Sb=E,c.Ra=0,c.u=0,c.h=0,4<E&&(E=4),D=0;D<E;++D)T+=f[y+D]<<8*D;c.Ra=T,c.bb=E,c.oa=f,c.pa=y}function De(c){for(;8<=c.u&&c.bb<c.Sb;)c.Ra>>>=8,c.Ra+=c.oa[c.pa+c.bb]<<Nc-8>>>0,++c.bb,c.u-=8;G(c)&&(c.h=1,c.u=0)}function xe(c,f){if(t(0<=f),!c.h&&f<=Fc){var y=H(c)&Tc[f];return c.u+=f,De(c),y}return c.h=1,c.u=0}function Ke(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function N(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function H(c){return c.Ra>>>(c.u&Nc-1)>>>0}function G(c){return t(c.bb<=c.Sb),c.h||c.bb==c.Sb&&c.u>Nc}function re(c,f){c.u=f,c.h=G(c)}function ce(c){c.u>=yd&&(t(c.u>=yd),De(c))}function ge(c){t(c!=null&&c.oa!=null),c.pa<c.Zc?(c.I=(c.oa[c.pa++]|c.I<<8)>>>0,c.b+=8):(t(c!=null&&c.oa!=null),c.pa<c.Yc?(c.b+=8,c.I=c.oa[c.pa++]|c.I<<8):c.Ka?c.b=0:(c.I<<=8,c.b+=8,c.Ka=1))}function ve(c){return be(c,1)}function _e(c,f){var y=c.Ca;0>c.b&&ge(c);var E=c.b,D=y*f>>>8,T=(c.I>>>E>D)+0;for(T?(y-=D,c.I-=D+1<<E>>>0):y=D+1,E=y,D=0;256<=E;)D+=8,E>>=8;return E=7^D+_r[E],c.b-=E,c.Ca=(y<<E)-1,T}function Ue(c,f,y){c[f+0]=y>>24&255,c[f+1]=y>>16&255,c[f+2]=y>>8&255,c[f+3]=y>>0&255}function Be(c,f){return c[f+0]<<0|c[f+1]<<8}function Je(c,f){return Be(c,f)|c[f+2]<<16}function tt(c,f){return Be(c,f)|Be(c,f+2)<<16}function Ct(c,f){var y=1<<f;return t(c!=null),t(0<f),c.X=o(y),c.X==null?0:(c.Mb=32-f,c.Xa=f,1)}function Se(c,f){t(c!=null),t(f!=null),t(c.Xa==f.Xa),n(f.X,0,c.X,0,1<<f.Xa)}function W(){this.X=[],this.Xa=this.Mb=0}function Tt(c,f,y,E){t(y!=null),t(E!=null);var D=y[0],T=E[0];return D==0&&(D=(c*T+f/2)/f),T==0&&(T=(f*D+c/2)/c),0>=D||0>=T?0:(y[0]=D,E[0]=T,1)}function lt(c,f){return c+(1<<f)-1>>>f}function ke(c,f){return((4278255360&c)+(4278255360&f)>>>0&4278255360)+((16711935&c)+(16711935&f)>>>0&16711935)>>>0}function $e(c,f){Y[f]=function(y,E,D,T,F,O,L){var V;for(V=0;V<F;++V){var ne=Y[c](O[L+V-1],D,T+V);O[L+V]=ke(y[E+V],ne)}}}function Qe(){this.ud=this.hd=this.jd=0}function We(c,f){return((4278124286&(c^f))>>>1)+(c&f)>>>0}function pt(c){return 0<=c&&256>c?c:0>c?0:255<c?255:void 0}function Dt(c,f){return pt(c+(c-f+.5>>1))}function jt(c,f,y){return Math.abs(f-y)-Math.abs(c-y)}function Ht(c,f,y,E,D,T,F){for(E=T[F-1],y=0;y<D;++y)T[F+y]=E=ke(c[f+y],E)}function cn(c,f,y,E,D){var T;for(T=0;T<y;++T){var F=c[f+T],O=F>>8&255,L=16711935&(L=(L=16711935&F)+((O<<16)+O));E[D+T]=(4278255360&F)+L>>>0}}function Dn(c,f){f.jd=c>>0&255,f.hd=c>>8&255,f.ud=c>>16&255}function Et(c,f,y,E,D,T){var F;for(F=0;F<E;++F){var O=f[y+F],L=O>>>8,V=O,ne=255&(ne=(ne=O>>>16)+((c.jd<<24>>24)*(L<<24>>24)>>>5));V=255&(V=(V=V+((c.hd<<24>>24)*(L<<24>>24)>>>5))+((c.ud<<24>>24)*(ne<<24>>24)>>>5)),D[T+F]=(4278255360&O)+(ne<<16)+V}}function Kt(c,f,y,E,D){Y[f]=function(T,F,O,L,V,ne,de,pe,ae){for(L=de;L<pe;++L)for(de=0;de<ae;++de)V[ne++]=D(O[E(T[F++])])},Y[c]=function(T,F,O,L,V,ne,de){var pe=8>>T.b,ae=T.Ea,Ne=T.K[0],Ce=T.w;if(8>pe)for(T=(1<<T.b)-1,Ce=(1<<pe)-1;F<O;++F){var ie,oe=0;for(ie=0;ie<ae;++ie)ie&T||(oe=E(L[V++])),ne[de++]=D(Ne[oe&Ce]),oe>>=pe}else Y["VP8LMapColor"+y](L,V,Ne,Ce,ne,de,F,O,ae)}}function Ze(c,f,y,E,D){for(y=f+y;f<y;){var T=c[f++];E[D++]=T>>16&255,E[D++]=T>>8&255,E[D++]=T>>0&255}}function Qi(c,f,y,E,D){for(y=f+y;f<y;){var T=c[f++];E[D++]=T>>16&255,E[D++]=T>>8&255,E[D++]=T>>0&255,E[D++]=T>>24&255}}function pn(c,f,y,E,D){for(y=f+y;f<y;){var T=(F=c[f++])>>16&240|F>>12&15,F=F>>0&240|F>>28&15;E[D++]=T,E[D++]=F}}function yo(c,f,y,E,D){for(y=f+y;f<y;){var T=(F=c[f++])>>16&248|F>>13&7,F=F>>5&224|F>>3&31;E[D++]=T,E[D++]=F}}function Nn(c,f,y,E,D){for(y=f+y;f<y;){var T=c[f++];E[D++]=T>>0&255,E[D++]=T>>8&255,E[D++]=T>>16&255}}function zn(c,f,y,E,D,T){if(T==0)for(y=f+y;f<y;)Ue(E,((T=c[f++])[0]>>24|T[1]>>8&65280|T[2]<<8&16711680|T[3]<<24)>>>0),D+=32;else n(E,D,c,f,y)}function Xo(c,f){Y[f][0]=Y[c+"0"],Y[f][1]=Y[c+"1"],Y[f][2]=Y[c+"2"],Y[f][3]=Y[c+"3"],Y[f][4]=Y[c+"4"],Y[f][5]=Y[c+"5"],Y[f][6]=Y[c+"6"],Y[f][7]=Y[c+"7"],Y[f][8]=Y[c+"8"],Y[f][9]=Y[c+"9"],Y[f][10]=Y[c+"10"],Y[f][11]=Y[c+"11"],Y[f][12]=Y[c+"12"],Y[f][13]=Y[c+"13"],Y[f][14]=Y[c+"0"],Y[f][15]=Y[c+"0"]}function yn(c){return c==N0||c==P0||c==xf||c==O0}function El(){this.eb=[],this.size=this.A=this.fb=0}function Xn(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function bo(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new El,this.f.kb=new Xn,this.sd=null}function Bs(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function ei(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Mt(c){return alert("todo:WebPSamplerProcessPlane"),c.T}function bn(c,f){var y=c.T,E=f.ba.f.RGBA,D=E.eb,T=E.fb+c.ka*E.A,F=no[f.ba.S],O=c.y,L=c.O,V=c.f,ne=c.N,de=c.ea,pe=c.W,ae=f.cc,Ne=f.dc,Ce=f.Mc,ie=f.Nc,oe=c.ka,Te=c.ka+c.T,Oe=c.U,Fe=Oe+1>>1;for(oe==0?F(O,L,null,null,V,ne,de,pe,V,ne,de,pe,D,T,null,null,Oe):(F(f.ec,f.fc,O,L,ae,Ne,Ce,ie,V,ne,de,pe,D,T-E.A,D,T,Oe),++y);oe+2<Te;oe+=2)ae=V,Ne=ne,Ce=de,ie=pe,ne+=c.Rc,pe+=c.Rc,T+=2*E.A,F(O,(L+=2*c.fa)-c.fa,O,L,ae,Ne,Ce,ie,V,ne,de,pe,D,T-E.A,D,T,Oe);return L+=c.fa,c.j+Te<c.o?(n(f.ec,f.fc,O,L,Oe),n(f.cc,f.dc,V,ne,Fe),n(f.Mc,f.Nc,de,pe,Fe),y--):1&Te||F(O,L,null,null,V,ne,de,pe,V,ne,de,pe,D,T+E.A,null,null,Oe),y}function Sl(c,f,y){var E=c.F,D=[c.J];if(E!=null){var T=c.U,F=f.ba.S,O=F==If||F==xf;f=f.ba.f.RGBA;var L=[0],V=c.ka;L[0]=c.T,c.Kb&&(V==0?--L[0]:(--V,D[0]-=c.width),c.j+c.ka+c.T==c.o&&(L[0]=c.o-c.j-V));var ne=f.eb;V=f.fb+V*f.A,c=_f(E,D[0],c.width,T,L,ne,V+(O?0:3),f.A),t(y==L),c&&yn(F)&&Sa(ne,V,O,T,L,f.A)}return 0}function Hi(c){var f=c.ma,y=f.ba.S,E=11>y,D=y==Ef||y==Sf||y==If||y==F0||y==12||yn(y);if(f.memory=null,f.Ib=null,f.Jb=null,f.Nd=null,!gd(f.Oa,c,D?11:12))return 0;if(D&&yn(y)&&Le(),c.da)alert("todo:use_scaling");else{if(E){if(f.Ib=Mt,c.Kb){if(y=c.U+1>>1,f.memory=o(c.U+2*y),f.memory==null)return 0;f.ec=f.memory,f.fc=0,f.cc=f.ec,f.dc=f.fc+c.U,f.Mc=f.cc,f.Nc=f.dc+y,f.Ib=bn,Le()}}else alert("todo:EmitYUV");D&&(f.Jb=Sl,E&&ue())}if(E&&!Yb){for(c=0;256>c;++c)yD[c]=89858*(c-128)+Mf>>Df,CD[c]=-22014*(c-128)+Mf,_D[c]=-45773*(c-128),bD[c]=113618*(c-128)+Mf>>Df;for(c=Sd;c<k0;++c)f=76283*(c-16)+Mf>>Df,wD[c-Sd]=kr(f,255),ED[c-Sd]=kr(f+8>>4,15);Yb=1}return 1}function es(c){var f=c.ma,y=c.U,E=c.T;return t(!(1&c.ka)),0>=y||0>=E?0:(y=f.Ib(c,f),f.Jb!=null&&f.Jb(c,f,y),f.Dc+=y,1)}function ts(c){c.ma.memory=null}function _t(c,f,y,E){return xe(c,8)!=47?0:(f[0]=xe(c,14)+1,y[0]=xe(c,14)+1,E[0]=xe(c,1),xe(c,3)!=0?0:!c.h)}function _o(c,f){if(4>c)return c+1;var y=c-2>>1;return(2+(1&c)<<y)+xe(f,y)+1}function ns(c,f){return 120<f?f-120:1<=(y=((y=rD[f-1])>>4)*c+(8-(15&y)))?y:1;var y}function vr(c,f,y){var E=H(y),D=c[f+=255&E].g-8;return 0<D&&(re(y,y.u+8),E=H(y),f+=c[f].value,f+=E&(1<<D)-1),re(y,y.u+c[f].g),c[f].value}function Ii(c,f,y){return y.g+=c.g,y.value+=c.value<<f>>>0,t(8>=y.g),c.g}function hi(c,f,y){var E=c.xc;return t((f=E==0?0:c.vc[c.md*(y>>E)+(f>>E)])<c.Wb),c.Ya[f]}function Lr(c,f,y,E){var D=c.ab,T=c.c*f,F=c.C;f=F+f;var O=y,L=E;for(E=c.Ta,y=c.Ua;0<D--;){var V=c.gc[D],ne=F,de=f,pe=O,ae=L,Ne=(L=E,O=y,V.Ea);switch(t(ne<de),t(de<=V.nc),V.hc){case 2:bf(pe,ae,(de-ne)*Ne,L,O);break;case 0:var Ce=ne,ie=de,oe=L,Te=O,Oe=(Ge=V).Ea;Ce==0&&(D0(pe,ae,null,null,1,oe,Te),Ht(pe,ae+1,0,0,Oe-1,oe,Te+1),ae+=Oe,Te+=Oe,++Ce);for(var Fe=1<<Ge.b,et=Fe-1,He=lt(Oe,Ge.b),gt=Ge.K,Ge=Ge.w+(Ce>>Ge.b)*He;Ce<ie;){var fn=gt,Sn=Ge,un=1;for(bd(pe,ae,oe,Te-Oe,1,oe,Te);un<Oe;){var Qt=(un&~et)+Fe;Qt>Oe&&(Qt=Oe),(0,_a[fn[Sn++]>>8&15])(pe,ae+ +un,oe,Te+un-Oe,Qt-un,oe,Te+un),un=Qt}ae+=Oe,Te+=Oe,++Ce&et||(Ge+=He)}de!=V.nc&&n(L,O-Ne,L,O+(de-ne-1)*Ne,Ne);break;case 1:for(Ne=pe,ie=ae,Oe=(pe=V.Ea)-(Te=pe&~(oe=(ae=1<<V.b)-1)),Ce=lt(pe,V.b),Fe=V.K,V=V.w+(ne>>V.b)*Ce;ne<de;){for(et=Fe,He=V,gt=new Qe,Ge=ie+Te,fn=ie+pe;ie<Ge;)Dn(et[He++],gt),Xr(gt,Ne,ie,ae,L,O),ie+=ae,O+=ae;ie<fn&&(Dn(et[He++],gt),Xr(gt,Ne,ie,Oe,L,O),ie+=Oe,O+=Oe),++ne&oe||(V+=Ce)}break;case 3:if(pe==L&&ae==O&&0<V.b){for(ie=L,pe=Ne=O+(de-ne)*Ne-(Te=(de-ne)*lt(V.Ea,V.b)),ae=L,oe=O,Ce=[],Te=(Oe=Te)-1;0<=Te;--Te)Ce[Te]=ae[oe+Te];for(Te=Oe-1;0<=Te;--Te)ie[pe+Te]=Ce[Te];Do(V,ne,de,L,Ne,L,O)}else Do(V,ne,de,pe,ae,L,O)}O=E,L=y}L!=y&&n(E,y,O,L,T)}function fc(c,f){var y=c.V,E=c.Ba+c.c*c.C,D=f-c.C;if(t(f<=c.l.o),t(16>=D),0<D){var T=c.l,F=c.Ta,O=c.Ua,L=T.width;if(Lr(c,D,y,E),D=O=[O],t((y=c.C)<(E=f)),t(T.v<T.va),E>T.o&&(E=T.o),y<T.j){var V=T.j-y;y=T.j,D[0]+=V*L}if(y>=E?y=0:(D[0]+=4*T.v,T.ka=y-T.j,T.U=T.va-T.v,T.T=E-y,y=1),y){if(O=O[0],11>(y=c.ca).S){var ne=y.f.RGBA,de=(E=y.S,D=T.U,T=T.T,V=ne.eb,ne.A),pe=T;for(ne=ne.fb+c.Ma*ne.A;0<pe--;){var ae=F,Ne=O,Ce=D,ie=V,oe=ne;switch(E){case wf:Mo(ae,Ne,Ce,ie,oe);break;case Ef:Ca(ae,Ne,Ce,ie,oe);break;case N0:Ca(ae,Ne,Ce,ie,oe),Sa(ie,oe,0,Ce,1,0);break;case jb:Pc(ae,Ne,Ce,ie,oe);break;case Sf:zn(ae,Ne,Ce,ie,oe,1);break;case P0:zn(ae,Ne,Ce,ie,oe,1),Sa(ie,oe,0,Ce,1,0);break;case If:zn(ae,Ne,Ce,ie,oe,0);break;case xf:zn(ae,Ne,Ce,ie,oe,0),Sa(ie,oe,1,Ce,1,0);break;case F0:ss(ae,Ne,Ce,ie,oe);break;case O0:ss(ae,Ne,Ce,ie,oe),Lc(ie,oe,Ce,1,0);break;case Vb:zs(ae,Ne,Ce,ie,oe);break;default:t(0)}O+=L,ne+=de}c.Ma+=T}else alert("todo:EmitRescaledRowsYUVA");t(c.Ma<=y.height)}}c.C=f,t(c.C<=c.i)}function Us(c){var f;if(0<c.ua)return 0;for(f=0;f<c.Wb;++f){var y=c.Ya[f].G,E=c.Ya[f].H;if(0<y[1][E[1]+0].g||0<y[2][E[2]+0].g||0<y[3][E[3]+0].g)return 0}return 1}function Co(c,f,y,E,D,T){if(c.Z!=0){var F=c.qd,O=c.rd;for(t(xa[c.Z]!=null);f<y;++f)xa[c.Z](F,O,E,D,E,D,T),F=E,O=D,D+=T;c.qd=F,c.rd=O}}function wo(c,f){var y=c.l.ma,E=y.Z==0||y.Z==1?c.l.j:c.C;if(E=c.C<E?E:c.C,t(f<=c.l.o),f>E){var D=c.l.width,T=y.ca,F=y.tb+D*E,O=c.V,L=c.Ba+c.c*E,V=c.gc;t(c.ab==1),t(V[0].hc==3),M0(V[0],E,f,O,L,T,F),Co(y,E,f,T,F,D)}c.C=c.Ma=f}function Eo(c,f,y,E,D,T,F){var O=c.$/E,L=c.$%E,V=c.m,ne=c.s,de=y+c.$,pe=de;D=y+E*D;var ae=y+E*T,Ne=280+ne.ua,Ce=c.Pb?O:16777216,ie=0<ne.ua?ne.Wa:null,oe=ne.wc,Te=de<ae?hi(ne,L,O):null;t(c.C<T),t(ae<=D);var Oe=!1;e:for(;;){for(;Oe||de<ae;){var Fe=0;if(O>=Ce){var et=de-y;t((Ce=c).Pb),Ce.wd=Ce.m,Ce.xd=et,0<Ce.s.ua&&Se(Ce.s.Wa,Ce.s.vb),Ce=O+sD}if(L&oe||(Te=hi(ne,L,O)),t(Te!=null),Te.Qb&&(f[de]=Te.qb,Oe=!0),!Oe)if(ce(V),Te.jc){Fe=V,et=f;var He=de,gt=Te.pd[H(Fe)&br-1];t(Te.jc),256>gt.g?(re(Fe,Fe.u+gt.g),et[He]=gt.value,Fe=0):(re(Fe,Fe.u+gt.g-256),t(256<=gt.value),Fe=gt.value),Fe==0&&(Oe=!0)}else Fe=vr(Te.G[0],Te.H[0],V);if(V.h)break;if(Oe||256>Fe){if(!Oe)if(Te.nd)f[de]=(Te.qb|Fe<<8)>>>0;else{if(ce(V),Oe=vr(Te.G[1],Te.H[1],V),ce(V),et=vr(Te.G[2],Te.H[2],V),He=vr(Te.G[3],Te.H[3],V),V.h)break;f[de]=(He<<24|Oe<<16|Fe<<8|et)>>>0}if(Oe=!1,++de,++L>=E&&(L=0,++O,F!=null&&O<=T&&!(O%16)&&F(c,O),ie!=null))for(;pe<de;)Fe=f[pe++],ie.X[(506832829*Fe&4294967295)>>>ie.Mb]=Fe}else if(280>Fe){if(Fe=_o(Fe-256,V),et=vr(Te.G[4],Te.H[4],V),ce(V),et=ns(E,et=_o(et,V)),V.h)break;if(de-y<et||D-de<Fe)break e;for(He=0;He<Fe;++He)f[de+He]=f[de+He-et];for(de+=Fe,L+=Fe;L>=E;)L-=E,++O,F!=null&&O<=T&&!(O%16)&&F(c,O);if(t(de<=D),L&oe&&(Te=hi(ne,L,O)),ie!=null)for(;pe<de;)Fe=f[pe++],ie.X[(506832829*Fe&4294967295)>>>ie.Mb]=Fe}else{if(!(Fe<Ne))break e;for(Oe=Fe-280,t(ie!=null);pe<de;)Fe=f[pe++],ie.X[(506832829*Fe&4294967295)>>>ie.Mb]=Fe;Fe=de,t(!(Oe>>>(et=ie).Xa)),f[Fe]=et.X[Oe],Oe=!0}Oe||t(V.h==G(V))}if(c.Pb&&V.h&&de<D)t(c.m.h),c.a=5,c.m=c.wd,c.$=c.xd,0<c.s.ua&&Se(c.s.vb,c.s.Wa);else{if(V.h)break e;F?.(c,O>T?T:O),c.a=0,c.$=de-y}return 1}return c.a=3,0}function is(c){t(c!=null),c.vc=null,c.yc=null,c.Ya=null;var f=c.Wa;f!=null&&(f.X=null),c.vb=null,t(c!=null)}function Jr(){var c=new x0;return c==null?null:(c.a=0,c.xb=qb,Xo("Predictor","VP8LPredictors"),Xo("Predictor","VP8LPredictors_C"),Xo("PredictorAdd","VP8LPredictorsAdd"),Xo("PredictorAdd","VP8LPredictorsAdd_C"),bf=cn,Xr=Et,Mo=Ze,Ca=Qi,ss=pn,zs=yo,Pc=Nn,Y.VP8LMapColor32b=_d,Y.VP8LMapColor8b=A0,c)}function rs(c,f,y,E,D){var T=1,F=[c],O=[f],L=E.m,V=E.s,ne=null,de=0;e:for(;;){if(y)for(;T&&xe(L,1);){var pe=F,ae=O,Ne=E,Ce=1,ie=Ne.m,oe=Ne.gc[Ne.ab],Te=xe(ie,2);if(Ne.Oc&1<<Te)T=0;else{switch(Ne.Oc|=1<<Te,oe.hc=Te,oe.Ea=pe[0],oe.nc=ae[0],oe.K=[null],++Ne.ab,t(4>=Ne.ab),Te){case 0:case 1:oe.b=xe(ie,3)+2,Ce=rs(lt(oe.Ea,oe.b),lt(oe.nc,oe.b),0,Ne,oe.K),oe.K=oe.K[0];break;case 3:var Oe,Fe=xe(ie,8)+1,et=16<Fe?0:4<Fe?1:2<Fe?2:3;if(pe[0]=lt(oe.Ea,et),oe.b=et,Oe=Ce=rs(Fe,1,0,Ne,oe.K)){var He,gt=Fe,Ge=oe,fn=1<<(8>>Ge.b),Sn=o(fn);if(Sn==null)Oe=0;else{var un=Ge.K[0],Qt=Ge.w;for(Sn[0]=Ge.K[0][0],He=1;He<1*gt;++He)Sn[He]=ke(un[Qt+He],Sn[He-1]);for(;He<4*fn;++He)Sn[He]=0;Ge.K[0]=null,Ge.K[0]=Sn,Oe=1}}Ce=Oe;break;case 2:break;default:t(0)}T=Ce}}if(F=F[0],O=O[0],T&&xe(L,1)&&!(T=1<=(de=xe(L,4))&&11>=de)){E.a=3;break e}var Pn;if(Pn=T)t:{var Mn,Ot,gi,Cr=E,vi=F,wr=O,In=de,Vr=y,Br=Cr.m,Oi=Cr.s,zi=[null],ar=1,io=0,as=oD[In];n:for(;;){if(Vr&&xe(Br,1)){var Ri=xe(Br,3)+2,Qs=lt(vi,Ri),Nl=lt(wr,Ri),kc=Qs*Nl;if(!rs(Qs,Nl,0,Cr,zi))break n;for(zi=zi[0],Oi.xc=Ri,Mn=0;Mn<kc;++Mn){var Da=zi[Mn]>>8&65535;zi[Mn]=Da,Da>=ar&&(ar=Da+1)}}if(Br.h)break n;for(Ot=0;5>Ot;++Ot){var ni=Bb[Ot];!Ot&&0<In&&(ni+=1<<In),io<ni&&(io=ni)}var j0=s(ar*as,k),Zb=ar,Jb=s(Zb,K);if(Jb==null)var Tf=null;else t(65536>=Zb),Tf=Jb;var Id=o(io);if(Tf==null||Id==null||j0==null){Cr.a=1;break n}var Ff=j0;for(Mn=gi=0;Mn<ar;++Mn){var No=Tf[Mn],jc=No.G,Vc=No.H,Xb=0,Nf=1,e_=0;for(Ot=0;5>Ot;++Ot){ni=Bb[Ot],jc[Ot]=Ff,Vc[Ot]=gi,!Ot&&0<In&&(ni+=1<<In);r:{var Pf,V0=ni,Of=Cr,xd=Id,xD=Ff,DD=gi,B0=0,Ma=Of.m,MD=xe(Ma,1);if(r(xd,0,0,V0),MD){var AD=xe(Ma,1)+1,TD=xe(Ma,1),t_=xe(Ma,TD==0?1:8);xd[t_]=1,AD==2&&(xd[t_=xe(Ma,8)]=1);var Rf=1}else{var n_=o(19),i_=xe(Ma,4)+4;if(19<i_){Of.a=3;var Lf=0;break r}for(Pf=0;Pf<i_;++Pf)n_[iD[Pf]]=xe(Ma,3);var U0=void 0,Dd=void 0,r_=Of,FD=n_,kf=V0,o_=xd,q0=0,Aa=r_.m,s_=8,a_=s(128,k);i:for(;B(a_,0,7,FD,19);){if(xe(Aa,1)){var ND=2+2*xe(Aa,3);if((U0=2+xe(Aa,ND))>kf)break i}else U0=kf;for(Dd=0;Dd<kf&&U0--;){ce(Aa);var l_=a_[0+(127&H(Aa))];re(Aa,Aa.u+l_.g);var Bc=l_.value;if(16>Bc)o_[Dd++]=Bc,Bc!=0&&(s_=Bc);else{var PD=Bc==16,c_=Bc-16,OD=tD[c_],u_=xe(Aa,eD[c_])+OD;if(Dd+u_>kf)break i;for(var RD=PD?s_:0;0<u_--;)o_[Dd++]=RD}}q0=1;break i}q0||(r_.a=3),Rf=q0}(Rf=Rf&&!Ma.h)&&(B0=B(xD,DD,8,xd,V0)),Rf&&B0!=0?Lf=B0:(Of.a=3,Lf=0)}if(Lf==0)break n;if(Nf&&nD[Ot]==1&&(Nf=Ff[gi].g==0),Xb+=Ff[gi].g,gi+=Lf,3>=Ot){var Md,$0=Id[0];for(Md=1;Md<ni;++Md)Id[Md]>$0&&($0=Id[Md]);e_+=$0}}if(No.nd=Nf,No.Qb=0,Nf&&(No.qb=(jc[3][Vc[3]+0].value<<24|jc[1][Vc[1]+0].value<<16|jc[2][Vc[2]+0].value)>>>0,Xb==0&&256>jc[0][Vc[0]+0].value&&(No.Qb=1,No.qb+=jc[0][Vc[0]+0].value<<8)),No.jc=!No.Qb&&6>e_,No.jc){var jf,Zs=No;for(jf=0;jf<br;++jf){var Ta=jf,Fa=Zs.pd[Ta],Vf=Zs.G[0][Zs.H[0]+Ta];256<=Vf.value?(Fa.g=Vf.g+256,Fa.value=Vf.value):(Fa.g=0,Fa.value=0,Ta>>=Ii(Vf,8,Fa),Ta>>=Ii(Zs.G[1][Zs.H[1]+Ta],16,Fa),Ta>>=Ii(Zs.G[2][Zs.H[2]+Ta],0,Fa),Ii(Zs.G[3][Zs.H[3]+Ta],24,Fa))}}}Oi.vc=zi,Oi.Wb=ar,Oi.Ya=Tf,Oi.yc=j0,Pn=1;break t}Pn=0}if(!(T=Pn)){E.a=3;break e}if(0<de){if(V.ua=1<<de,!Ct(V.Wa,de)){E.a=1,T=0;break e}}else V.ua=0;var H0=E,d_=F,LD=O,z0=H0.s,G0=z0.xc;if(H0.c=d_,H0.i=LD,z0.md=lt(d_,G0),z0.wc=G0==0?-1:(1<<G0)-1,y){E.xb=fD;break e}if((ne=o(F*O))==null){E.a=1,T=0;break e}T=(T=Eo(E,ne,0,F,O,O,null))&&!L.h;break e}return T?(D!=null?D[0]=ne:(t(ne==null),t(y)),E.$=0,y||is(V)):is(V),T}function Il(c,f){var y=c.c*c.i,E=y+f+16*f;return t(c.c<=f),c.V=o(E),c.V==null?(c.Ta=null,c.Ua=0,c.a=1,0):(c.Ta=c.V,c.Ua=c.Ba+y+f,1)}function hc(c,f){var y=c.C,E=f-y,D=c.V,T=c.Ba+c.c*y;for(t(f<=c.l.o);0<E;){var F=16<E?16:E,O=c.l.ma,L=c.l.width,V=L*F,ne=O.ca,de=O.tb+L*y,pe=c.Ta,ae=c.Ua;Lr(c,F,D,T),Nb(pe,ae,ne,de,V),Co(O,y,y+F,ne,de,L),E-=F,D+=F*c.c,y+=F}t(y==f),c.C=c.Ma=f}function mc(){this.ub=this.yd=this.td=this.Rb=0}function gc(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function vc(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function Jp(){this.Yb=function(){var c=[];return function f(y,E,D){for(var T=D[E],F=0;F<T&&(y.push(D.length>E+1?[]:0),!(D.length<E+1));F++)f(y[F],E+1,D)}(c,0,[3,11]),c}()}function i0(){this.jb=o(3),this.Wc=a([4,8],Jp),this.Xc=a([4,17],Jp)}function r0(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function yc(){this.ld=this.La=this.dd=this.tc=0}function Xp(){this.Na=this.la=0}function o0(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function ed(){this.ad=o(384),this.Za=0,this.Ob=o(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function s0(){this.uc=this.M=this.Nb=0,this.wa=Array(new yc),this.Y=0,this.ya=Array(new ed),this.aa=0,this.l=new bc}function ef(){this.y=o(16),this.f=o(8),this.ea=o(8)}function a0(){this.cb=this.a=0,this.sc="",this.m=new Ke,this.Od=new mc,this.Kc=new gc,this.ed=new r0,this.Qa=new vc,this.Ic=this.$c=this.Aa=0,this.D=new s0,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,Ke),this.ia=0,this.pb=s(4,o0),this.Pa=new i0,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new ef),this.Hd=0,this.rb=Array(new Xp),this.sb=0,this.wa=Array(new yc),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new ed),this.L=this.aa=0,this.gd=a([4,2],yc),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function bc(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function l0(){var c=new a0;return c!=null&&(c.a=0,c.sc="OK",c.cb=0,c.Xb=0,Ed||(Ed=rf)),c}function si(c,f,y){return c.a==0&&(c.a=f,c.sc=y,c.cb=0),0}function tf(c,f,y){return 3<=y&&c[f+0]==157&&c[f+1]==1&&c[f+2]==42}function nf(c,f){if(c==null)return 0;if(c.a=0,c.sc="OK",f==null)return si(c,2,"null VP8Io passed to VP8GetHeaders()");var y=f.data,E=f.w,D=f.ha;if(4>D)return si(c,7,"Truncated header.");var T=y[E+0]|y[E+1]<<8|y[E+2]<<16,F=c.Od;if(F.Rb=!(1&T),F.td=T>>1&7,F.yd=T>>4&1,F.ub=T>>5,3<F.td)return si(c,3,"Incorrect keyframe parameters.");if(!F.yd)return si(c,4,"Frame not displayable.");E+=3,D-=3;var O=c.Kc;if(F.Rb){if(7>D)return si(c,7,"cannot parse picture header");if(!tf(y,E,D))return si(c,3,"Bad code word");O.c=16383&(y[E+4]<<8|y[E+3]),O.Td=y[E+4]>>6,O.i=16383&(y[E+6]<<8|y[E+5]),O.Ud=y[E+6]>>6,E+=7,D-=7,c.za=O.c+15>>4,c.Ub=O.i+15>>4,f.width=O.c,f.height=O.i,f.Da=0,f.j=0,f.v=0,f.va=f.width,f.o=f.height,f.da=0,f.ib=f.width,f.hb=f.height,f.U=f.width,f.T=f.height,r((T=c.Pa).jb,0,255,T.jb.length),t((T=c.Qa)!=null),T.Cb=0,T.Bb=0,T.Fb=1,r(T.Zb,0,0,T.Zb.length),r(T.Lb,0,0,T.Lb)}if(F.ub>D)return si(c,7,"bad partition length");we(T=c.m,y,E,F.ub),E+=F.ub,D-=F.ub,F.Rb&&(O.Ld=ve(T),O.Kd=ve(T)),O=c.Qa;var L,V=c.Pa;if(t(T!=null),t(O!=null),O.Cb=ve(T),O.Cb){if(O.Bb=ve(T),ve(T)){for(O.Fb=ve(T),L=0;4>L;++L)O.Zb[L]=ve(T)?Ie(T,7):0;for(L=0;4>L;++L)O.Lb[L]=ve(T)?Ie(T,6):0}if(O.Bb)for(L=0;3>L;++L)V.jb[L]=ve(T)?be(T,8):255}else O.Bb=0;if(T.Ka)return si(c,3,"cannot parse segment header");if((O=c.ed).zd=ve(T),O.Tb=be(T,6),O.wb=be(T,3),O.Pc=ve(T),O.Pc&&ve(T)){for(V=0;4>V;++V)ve(T)&&(O.vd[V]=Ie(T,6));for(V=0;4>V;++V)ve(T)&&(O.od[V]=Ie(T,6))}if(c.L=O.Tb==0?0:O.zd?1:2,T.Ka)return si(c,3,"cannot parse filter header");var ne=D;if(D=L=E,E=L+ne,O=ne,c.Xb=(1<<be(c.m,2))-1,ne<3*(V=c.Xb))y=7;else{for(L+=3*V,O-=3*V,ne=0;ne<V;++ne){var de=y[D+0]|y[D+1]<<8|y[D+2]<<16;de>O&&(de=O),we(c.Jc[+ne],y,L,de),L+=de,O-=de,D+=3}we(c.Jc[+V],y,L,O),y=L<E?0:5}if(y!=0)return si(c,y,"cannot parse partitions");for(y=be(L=c.m,7),D=ve(L)?Ie(L,4):0,E=ve(L)?Ie(L,4):0,O=ve(L)?Ie(L,4):0,V=ve(L)?Ie(L,4):0,L=ve(L)?Ie(L,4):0,ne=c.Qa,de=0;4>de;++de){if(ne.Cb){var pe=ne.Zb[de];ne.Fb||(pe+=y)}else{if(0<de){c.pb[de]=c.pb[0];continue}pe=y}var ae=c.pb[de];ae.Sc[0]=R0[kr(pe+D,127)],ae.Sc[1]=L0[kr(pe+0,127)],ae.Eb[0]=2*R0[kr(pe+E,127)],ae.Eb[1]=101581*L0[kr(pe+O,127)]>>16,8>ae.Eb[1]&&(ae.Eb[1]=8),ae.Qc[0]=R0[kr(pe+V,117)],ae.Qc[1]=L0[kr(pe+L,127)],ae.lc=pe+L}if(!F.Rb)return si(c,4,"Not a key frame.");for(ve(T),F=c.Pa,y=0;4>y;++y){for(D=0;8>D;++D)for(E=0;3>E;++E)for(O=0;11>O;++O)V=_e(T,dD[y][D][E][O])?be(T,8):cD[y][D][E][O],F.Wc[y][D].Yb[E][O]=V;for(D=0;17>D;++D)F.Xc[y][D]=F.Wc[y][pD[D]]}return c.kc=ve(T),c.kc&&(c.Bd=be(T,8)),c.cb=1}function rf(c,f,y,E,D,T,F){var O=f[D].Yb[y];for(y=0;16>D;++D){if(!_e(c,O[y+0]))return D;for(;!_e(c,O[y+1]);)if(O=f[++D].Yb[0],y=0,D==16)return 16;var L=f[D+1].Yb;if(_e(c,O[y+2])){var V=c,ne=0;if(_e(V,(pe=O)[(de=y)+3]))if(_e(V,pe[de+6])){for(O=0,de=2*(ne=_e(V,pe[de+8]))+(pe=_e(V,pe[de+9+ne])),ne=0,pe=aD[de];pe[O];++O)ne+=ne+_e(V,pe[O]);ne+=3+(8<<de)}else _e(V,pe[de+7])?(ne=7+2*_e(V,165),ne+=_e(V,145)):ne=5+_e(V,159);else ne=_e(V,pe[de+4])?3+_e(V,pe[de+5]):2;O=L[2]}else ne=1,O=L[1];L=F+lD[D],0>(V=c).b&&ge(V);var de,pe=V.b,ae=(de=V.Ca>>1)-(V.I>>pe)>>31;--V.b,V.Ca+=ae,V.Ca|=1,V.I-=(de+1&ae)<<pe,T[L]=((ne^ae)-ae)*E[(0<D)+0]}return 16}function td(c){var f=c.rb[c.sb-1];f.la=0,f.Na=0,r(c.zc,0,0,c.zc.length),c.ja=0}function c0(c,f){if(c==null)return 0;if(f==null)return si(c,2,"NULL VP8Io parameter in VP8Decode().");if(!c.cb&&!nf(c,f))return 0;if(t(c.cb),f.ac==null||f.ac(f)){f.ob&&(c.L=0);var y=Af[c.L];if(c.L==2?(c.yb=0,c.zb=0):(c.yb=f.v-y>>4,c.zb=f.j-y>>4,0>c.yb&&(c.yb=0),0>c.zb&&(c.zb=0)),c.Va=f.o+15+y>>4,c.Hb=f.va+15+y>>4,c.Hb>c.za&&(c.Hb=c.za),c.Va>c.Ub&&(c.Va=c.Ub),0<c.L){var E=c.ed;for(y=0;4>y;++y){var D;if(c.Qa.Cb){var T=c.Qa.Lb[y];c.Qa.Fb||(T+=E.Tb)}else T=E.Tb;for(D=0;1>=D;++D){var F=c.gd[y][D],O=T;if(E.Pc&&(O+=E.vd[0],D&&(O+=E.od[0])),0<(O=0>O?0:63<O?63:O)){var L=O;0<E.wb&&(L=4<E.wb?L>>2:L>>1)>9-E.wb&&(L=9-E.wb),1>L&&(L=1),F.dd=L,F.tc=2*O+L,F.ld=40<=O?2:15<=O?1:0}else F.tc=0;F.La=D}}}y=0}else si(c,6,"Frame setup failed"),y=c.a;if(y=y==0){if(y){c.$c=0,0<c.Aa||(c.Ic=ID);e:{y=c.Ic,E=4*(L=c.za);var V=32*L,ne=L+1,de=0<c.L?L*(0<c.Aa?2:1):0,pe=(c.Aa==2?2:1)*L;if((F=E+832+(D=3*(16*y+Af[c.L])/2*V)+(T=c.Fa!=null&&0<c.Fa.length?c.Kc.c*c.Kc.i:0))!=F)y=0;else{if(F>c.Vb){if(c.Vb=0,c.Ec=o(F),c.Fc=0,c.Ec==null){y=si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r):(Ot-=Qt,oe.y=He,oe.O=gt,oe.f=Ge,oe.N=Fe,oe.ea=fn,oe.W=Sn),un||(In-=Qt),In>oe.o&&(In=oe.o),oe.F=null,oe.J=null,ie.Fa!=null&&0<ie.Fa.length&&Ot<In&&(oe.J=fd(ie,oe,Ot,In-Ot),oe.F=ie.mb,oe.F==null&&oe.F.length==0)){Te=si(ie,3,"Could not decode alpha data.");break e}Ot<oe.j&&(Qt=oe.j-Ot,Ot=oe.j,t(!(1&Qt)),oe.O+=ie.R*Qt,oe.N+=ie.B*(Qt>>1),oe.W+=ie.B*(Qt>>1),oe.F!=null&&(oe.J+=oe.width*Qt)),Ot<In&&(oe.O+=oe.v,oe.N+=oe.v>>1,oe.W+=oe.v>>1,oe.F!=null&&(oe.J+=oe.v),oe.ka=Ot-oe.j,oe.U=oe.va-oe.v,oe.T=In-Ot,Te=oe.put(oe))}Ce+1!=ie.Ic||un||(n(ie.sa,ie.ta-Oe,He,gt+16*ie.R,Oe),n(ie.qa,ie.ra-et,Ge,Fe+8*ie.B,et),n(ie.Ha,ie.Ia-et,fn,Sn+8*ie.B,et))}if(!Te)return si(ae,6,"Output aborted.")}return 1}(c,f)),f.bc!=null&&f.bc(f),y&=1}return y?(c.cb=0,y):0}function So(c,f,y,E,D){D=c[f+y+32*E]+(D>>3),c[f+y+32*E]=-256&D?0>D?0:255:D}function _c(c,f,y,E,D,T){So(c,f,0,y,E+D),So(c,f,1,y,E+T),So(c,f,2,y,E-T),So(c,f,3,y,E-D)}function yr(c){return(20091*c>>16)+c}function nd(c,f,y,E){var D,T=0,F=o(16);for(D=0;4>D;++D){var O=c[f+0]+c[f+8],L=c[f+0]-c[f+8],V=(35468*c[f+4]>>16)-yr(c[f+12]),ne=yr(c[f+4])+(35468*c[f+12]>>16);F[T+0]=O+ne,F[T+1]=L+V,F[T+2]=L-V,F[T+3]=O-ne,T+=4,f++}for(D=T=0;4>D;++D)O=(c=F[T+0]+4)+F[T+8],L=c-F[T+8],V=(35468*F[T+4]>>16)-yr(F[T+12]),So(y,E,0,0,O+(ne=yr(F[T+4])+(35468*F[T+12]>>16))),So(y,E,1,0,L+V),So(y,E,2,0,L-V),So(y,E,3,0,O-ne),T++,E+=32}function of(c,f,y,E){var D=c[f+0]+4,T=35468*c[f+4]>>16,F=yr(c[f+4]),O=35468*c[f+1]>>16;_c(y,E,0,D+F,c=yr(c[f+1]),O),_c(y,E,1,D+T,c,O),_c(y,E,2,D-T,c,O),_c(y,E,3,D-F,c,O)}function u0(c,f,y,E,D){nd(c,f,y,E),D&&nd(c,f+16,y,E+4)}function sf(c,f,y,E){Oc(c,f+0,y,E,1),Oc(c,f+32,y,E+128,1)}function d0(c,f,y,E){var D;for(c=c[f+0]+4,D=0;4>D;++D)for(f=0;4>f;++f)So(y,E,f,D,c)}function af(c,f,y,E){c[f+0]&&To(c,f+0,y,E),c[f+16]&&To(c,f+16,y,E+4),c[f+32]&&To(c,f+32,y,E+128),c[f+48]&&To(c,f+48,y,E+128+4)}function p0(c,f,y,E){var D,T=o(16);for(D=0;4>D;++D){var F=c[f+0+D]+c[f+12+D],O=c[f+4+D]+c[f+8+D],L=c[f+4+D]-c[f+8+D],V=c[f+0+D]-c[f+12+D];T[0+D]=F+O,T[8+D]=F-O,T[4+D]=V+L,T[12+D]=V-L}for(D=0;4>D;++D)F=(c=T[0+4*D]+3)+T[3+4*D],O=T[1+4*D]+T[2+4*D],L=T[1+4*D]-T[2+4*D],V=c-T[3+4*D],y[E+0]=F+O>>3,y[E+16]=V+L>>3,y[E+32]=F-O>>3,y[E+48]=V-L>>3,E+=64}function id(c,f,y){var E,D=f-32,T=jr,F=255-c[D-1];for(E=0;E<y;++E){var O,L=T,V=F+c[f-1];for(O=0;O<y;++O)c[f+O]=L[V+c[D+O]];f+=32}}function f0(c,f){id(c,f,4)}function h0(c,f){id(c,f,8)}function m0(c,f){id(c,f,16)}function qs(c,f){var y;for(y=0;16>y;++y)n(c,f+32*y,c,f-32,16)}function Cc(c,f){var y;for(y=16;0<y;--y)r(c,f,c[f-1],16),f+=32}function wc(c,f,y){var E;for(E=0;16>E;++E)r(f,y+32*E,c,16)}function lf(c,f){var y,E=16;for(y=0;16>y;++y)E+=c[f-1+32*y]+c[f+y-32];wc(E>>5,c,f)}function Zi(c,f){var y,E=8;for(y=0;16>y;++y)E+=c[f-1+32*y];wc(E>>4,c,f)}function g0(c,f){var y,E=8;for(y=0;16>y;++y)E+=c[f+y-32];wc(E>>4,c,f)}function cf(c,f){wc(128,c,f)}function It(c,f,y){return c+2*f+y+2>>2}function v0(c,f){var y,E=f-32;for(E=new Uint8Array([It(c[E-1],c[E+0],c[E+1]),It(c[E+0],c[E+1],c[E+2]),It(c[E+1],c[E+2],c[E+3]),It(c[E+2],c[E+3],c[E+4])]),y=0;4>y;++y)n(c,f+32*y,E,0,E.length)}function y0(c,f){var y=c[f-1],E=c[f-1+32],D=c[f-1+64],T=c[f-1+96];Ue(c,f+0,16843009*It(c[f-1-32],y,E)),Ue(c,f+32,16843009*It(y,E,D)),Ue(c,f+64,16843009*It(E,D,T)),Ue(c,f+96,16843009*It(D,T,T))}function os(c,f){var y,E=4;for(y=0;4>y;++y)E+=c[f+y-32]+c[f-1+32*y];for(E>>=3,y=0;4>y;++y)r(c,f+32*y,E,4)}function uf(c,f){var y=c[f-1+0],E=c[f-1+32],D=c[f-1+64],T=c[f-1-32],F=c[f+0-32],O=c[f+1-32],L=c[f+2-32],V=c[f+3-32];c[f+0+96]=It(E,D,c[f-1+96]),c[f+1+96]=c[f+0+64]=It(y,E,D),c[f+2+96]=c[f+1+64]=c[f+0+32]=It(T,y,E),c[f+3+96]=c[f+2+64]=c[f+1+32]=c[f+0+0]=It(F,T,y),c[f+3+64]=c[f+2+32]=c[f+1+0]=It(O,F,T),c[f+3+32]=c[f+2+0]=It(L,O,F),c[f+3+0]=It(V,L,O)}function df(c,f){var y=c[f+1-32],E=c[f+2-32],D=c[f+3-32],T=c[f+4-32],F=c[f+5-32],O=c[f+6-32],L=c[f+7-32];c[f+0+0]=It(c[f+0-32],y,E),c[f+1+0]=c[f+0+32]=It(y,E,D),c[f+2+0]=c[f+1+32]=c[f+0+64]=It(E,D,T),c[f+3+0]=c[f+2+32]=c[f+1+64]=c[f+0+96]=It(D,T,F),c[f+3+32]=c[f+2+64]=c[f+1+96]=It(T,F,O),c[f+3+64]=c[f+2+96]=It(F,O,L),c[f+3+96]=It(O,L,L)}function Ec(c,f){var y=c[f-1+0],E=c[f-1+32],D=c[f-1+64],T=c[f-1-32],F=c[f+0-32],O=c[f+1-32],L=c[f+2-32],V=c[f+3-32];c[f+0+0]=c[f+1+64]=T+F+1>>1,c[f+1+0]=c[f+2+64]=F+O+1>>1,c[f+2+0]=c[f+3+64]=O+L+1>>1,c[f+3+0]=L+V+1>>1,c[f+0+96]=It(D,E,y),c[f+0+64]=It(E,y,T),c[f+0+32]=c[f+1+96]=It(y,T,F),c[f+1+32]=c[f+2+96]=It(T,F,O),c[f+2+32]=c[f+3+96]=It(F,O,L),c[f+3+32]=It(O,L,V)}function rd(c,f){var y=c[f+0-32],E=c[f+1-32],D=c[f+2-32],T=c[f+3-32],F=c[f+4-32],O=c[f+5-32],L=c[f+6-32],V=c[f+7-32];c[f+0+0]=y+E+1>>1,c[f+1+0]=c[f+0+64]=E+D+1>>1,c[f+2+0]=c[f+1+64]=D+T+1>>1,c[f+3+0]=c[f+2+64]=T+F+1>>1,c[f+0+32]=It(y,E,D),c[f+1+32]=c[f+0+96]=It(E,D,T),c[f+2+32]=c[f+1+96]=It(D,T,F),c[f+3+32]=c[f+2+96]=It(T,F,O),c[f+3+64]=It(F,O,L),c[f+3+96]=It(O,L,V)}function b0(c,f){var y=c[f-1+0],E=c[f-1+32],D=c[f-1+64],T=c[f-1+96];c[f+0+0]=y+E+1>>1,c[f+2+0]=c[f+0+32]=E+D+1>>1,c[f+2+32]=c[f+0+64]=D+T+1>>1,c[f+1+0]=It(y,E,D),c[f+3+0]=c[f+1+32]=It(E,D,T),c[f+3+32]=c[f+1+64]=It(D,T,T),c[f+3+64]=c[f+2+64]=c[f+0+96]=c[f+1+96]=c[f+2+96]=c[f+3+96]=T}function _0(c,f){var y=c[f-1+0],E=c[f-1+32],D=c[f-1+64],T=c[f-1+96],F=c[f-1-32],O=c[f+0-32],L=c[f+1-32],V=c[f+2-32];c[f+0+0]=c[f+2+32]=y+F+1>>1,c[f+0+32]=c[f+2+64]=E+y+1>>1,c[f+0+64]=c[f+2+96]=D+E+1>>1,c[f+0+96]=T+D+1>>1,c[f+3+0]=It(O,L,V),c[f+2+0]=It(F,O,L),c[f+1+0]=c[f+3+32]=It(y,F,O),c[f+1+32]=c[f+3+64]=It(E,y,F),c[f+1+64]=c[f+3+96]=It(D,E,y),c[f+1+96]=It(T,D,E)}function C0(c,f){var y;for(y=0;8>y;++y)n(c,f+32*y,c,f-32,8)}function od(c,f){var y;for(y=0;8>y;++y)r(c,f,c[f-1],8),f+=32}function xl(c,f,y){var E;for(E=0;8>E;++E)r(f,y+32*E,c,8)}function ga(c,f){var y,E=8;for(y=0;8>y;++y)E+=c[f+y-32]+c[f-1+32*y];xl(E>>4,c,f)}function w0(c,f){var y,E=4;for(y=0;8>y;++y)E+=c[f+y-32];xl(E>>3,c,f)}function Dl(c,f){var y,E=4;for(y=0;8>y;++y)E+=c[f-1+32*y];xl(E>>3,c,f)}function sd(c,f){xl(128,c,f)}function Sc(c,f,y){var E=c[f-y],D=c[f+0],T=3*(D-E)+T0[1020+c[f-2*y]-c[f+y]],F=Cf[112+(T+4>>3)];c[f-y]=jr[255+E+Cf[112+(T+3>>3)]],c[f+0]=jr[255+D-F]}function pf(c,f,y,E){var D=c[f+0],T=c[f+y];return to[255+c[f-2*y]-c[f-y]]>E||to[255+T-D]>E}function ff(c,f,y,E){return 4*to[255+c[f-y]-c[f+0]]+to[255+c[f-2*y]-c[f+y]]<=E}function hf(c,f,y,E,D){var T=c[f-3*y],F=c[f-2*y],O=c[f-y],L=c[f+0],V=c[f+y],ne=c[f+2*y],de=c[f+3*y];return 4*to[255+O-L]+to[255+F-V]>E?0:to[255+c[f-4*y]-T]<=D&&to[255+T-F]<=D&&to[255+F-O]<=D&&to[255+de-ne]<=D&&to[255+ne-V]<=D&&to[255+V-L]<=D}function mf(c,f,y,E){var D=2*E+1;for(E=0;16>E;++E)ff(c,f+E,y,D)&&Sc(c,f+E,y)}function $s(c,f,y,E){var D=2*E+1;for(E=0;16>E;++E)ff(c,f+E*y,1,D)&&Sc(c,f+E*y,1)}function va(c,f,y,E){var D;for(D=3;0<D;--D)mf(c,f+=4*y,y,E)}function E0(c,f,y,E){var D;for(D=3;0<D;--D)$s(c,f+=4,y,E)}function ya(c,f,y,E,D,T,F,O){for(T=2*T+1;0<D--;){if(hf(c,f,y,T,F))if(pf(c,f,y,O))Sc(c,f,y);else{var L=c,V=f,ne=y,de=L[V-2*ne],pe=L[V-ne],ae=L[V+0],Ne=L[V+ne],Ce=L[V+2*ne],ie=27*(Te=T0[1020+3*(ae-pe)+T0[1020+de-Ne]])+63>>7,oe=18*Te+63>>7,Te=9*Te+63>>7;L[V-3*ne]=jr[255+L[V-3*ne]+Te],L[V-2*ne]=jr[255+de+oe],L[V-ne]=jr[255+pe+ie],L[V+0]=jr[255+ae-ie],L[V+ne]=jr[255+Ne-oe],L[V+2*ne]=jr[255+Ce-Te]}f+=E}}function Io(c,f,y,E,D,T,F,O){for(T=2*T+1;0<D--;){if(hf(c,f,y,T,F))if(pf(c,f,y,O))Sc(c,f,y);else{var L=c,V=f,ne=y,de=L[V-ne],pe=L[V+0],ae=L[V+ne],Ne=Cf[112+((Ce=3*(pe-de))+4>>3)],Ce=Cf[112+(Ce+3>>3)],ie=Ne+1>>1;L[V-2*ne]=jr[255+L[V-2*ne]+ie],L[V-ne]=jr[255+de+Ce],L[V+0]=jr[255+pe-Ne],L[V+ne]=jr[255+ae-ie]}f+=E}}function ad(c,f,y,E,D,T){ya(c,f,y,1,16,E,D,T)}function Ml(c,f,y,E,D,T){ya(c,f,1,y,16,E,D,T)}function S0(c,f,y,E,D,T){var F;for(F=3;0<F;--F)Io(c,f+=4*y,y,1,16,E,D,T)}function Ic(c,f,y,E,D,T){var F;for(F=3;0<F;--F)Io(c,f+=4,1,y,16,E,D,T)}function I0(c,f,y,E,D,T,F,O){ya(c,f,D,1,8,T,F,O),ya(y,E,D,1,8,T,F,O)}function ld(c,f,y,E,D,T,F,O){ya(c,f,1,D,8,T,F,O),ya(y,E,1,D,8,T,F,O)}function cd(c,f,y,E,D,T,F,O){Io(c,f+4*D,D,1,8,T,F,O),Io(y,E+4*D,D,1,8,T,F,O)}function gf(c,f,y,E,D,T,F,O){Io(c,f+4,1,D,8,T,F,O),Io(y,E+4,1,D,8,T,F,O)}function xc(){this.ba=new bo,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new ei,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function ud(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function dd(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function vf(){this.ua=0,this.Wa=new W,this.vb=new W,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new K,this.yc=new k}function x0(){this.xb=this.a=0,this.l=new bc,this.ca=new bo,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new N,this.Pb=0,this.wd=new N,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new vf,this.ab=0,this.gc=s(4,dd),this.Oc=0}function Dc(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new bc,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Al(c,f,y,E,D,T,F){for(c=c==null?0:c[f+0],f=0;f<F;++f)D[T+f]=c+y[E+f]&255,c=D[T+f]}function pd(c,f,y,E,D,T,F){var O;if(c==null)Al(null,null,y,E,D,T,F);else for(O=0;O<F;++O)D[T+O]=c[f+O]+y[E+O]&255}function ba(c,f,y,E,D,T,F){if(c==null)Al(null,null,y,E,D,T,F);else{var O,L=c[f+0],V=L,ne=L;for(O=0;O<F;++O)V=ne+(L=c[f+O])-V,ne=y[E+O]+(-256&V?0>V?0:255:V)&255,V=L,D[T+O]=ne}}function fd(c,f,y,E){var D=f.width,T=f.o;if(t(c!=null&&f!=null),0>y||0>=E||y+E>T)return null;if(!c.Cc){if(c.ga==null){var F;if(c.ga=new Dc,(F=c.ga==null)||(F=f.width*f.o,t(c.Gb.length==0),c.Gb=o(F),c.Uc=0,c.Gb==null?F=0:(c.mb=c.Gb,c.nb=c.Uc,c.rc=null,F=1),F=!F),!F){F=c.ga;var O=c.Fa,L=c.P,V=c.qc,ne=c.mb,de=c.nb,pe=L+1,ae=V-1,Ne=F.l;if(t(O!=null&&ne!=null&&f!=null),xa[0]=null,xa[1]=Al,xa[2]=pd,xa[3]=ba,F.ca=ne,F.tb=de,F.c=f.width,F.i=f.height,t(0<F.c&&0<F.i),1>=V)f=0;else if(F.$a=O[L+0]>>0&3,F.Z=O[L+0]>>2&3,F.Lc=O[L+0]>>4&3,L=O[L+0]>>6&3,0>F.$a||1<F.$a||4<=F.Z||1<F.Lc||L)f=0;else if(Ne.put=es,Ne.ac=Hi,Ne.bc=ts,Ne.ma=F,Ne.width=f.width,Ne.height=f.height,Ne.Da=f.Da,Ne.v=f.v,Ne.va=f.va,Ne.j=f.j,Ne.o=f.o,F.$a)e:{t(F.$a==1),f=Jr();t:for(;;){if(f==null){f=0;break e}if(t(F!=null),F.mc=f,f.c=F.c,f.i=F.i,f.l=F.l,f.l.ma=F,f.l.width=F.c,f.l.height=F.i,f.a=0,me(f.m,O,pe,ae),!rs(F.c,F.i,1,f,null)||(f.ab==1&&f.gc[0].hc==3&&Us(f.s)?(F.ic=1,O=f.c*f.i,f.Ta=null,f.Ua=0,f.V=o(O),f.Ba=0,f.V==null?(f.a=1,f=0):f=1):(F.ic=0,f=Il(f,F.c)),!f))break t;f=1;break e}F.mc=null,f=0}else f=ae>=F.c*F.i;F=!f}if(F)return null;c.ga.Lc!=1?c.Ga=0:E=T-y}t(c.ga!=null),t(y+E<=T);e:{if(f=(O=c.ga).c,T=O.l.o,O.$a==0){if(pe=c.rc,ae=c.Vc,Ne=c.Fa,L=c.P+1+y*f,V=c.mb,ne=c.nb+y*f,t(L<=c.P+c.qc),O.Z!=0)for(t(xa[O.Z]!=null),F=0;F<E;++F)xa[O.Z](pe,ae,Ne,L,V,ne,f),pe=V,ae=ne,ne+=f,L+=f;else for(F=0;F<E;++F)n(V,ne,Ne,L,f),pe=V,ae=ne,ne+=f,L+=f;c.rc=pe,c.Vc=ae}else{if(t(O.mc!=null),f=y+E,t((F=O.mc)!=null),t(f<=F.i),F.C>=f)f=1;else if(O.ic||ue(),O.ic){O=F.V,pe=F.Ba,ae=F.c;var Ce=F.i,ie=(Ne=1,L=F.$/ae,V=F.$%ae,ne=F.m,de=F.s,F.$),oe=ae*Ce,Te=ae*f,Oe=de.wc,Fe=ie<Te?hi(de,V,L):null;t(ie<=oe),t(f<=Ce),t(Us(de));t:for(;;){for(;!ne.h&&ie<Te;){if(V&Oe||(Fe=hi(de,V,L)),t(Fe!=null),ce(ne),256>(Ce=vr(Fe.G[0],Fe.H[0],ne)))O[pe+ie]=Ce,++ie,++V>=ae&&(V=0,++L<=f&&!(L%16)&&wo(F,L));else{if(!(280>Ce)){Ne=0;break t}Ce=_o(Ce-256,ne);var et,He=vr(Fe.G[4],Fe.H[4],ne);if(ce(ne),!(ie>=(He=ns(ae,He=_o(He,ne)))&&oe-ie>=Ce)){Ne=0;break t}for(et=0;et<Ce;++et)O[pe+ie+et]=O[pe+ie+et-He];for(ie+=Ce,V+=Ce;V>=ae;)V-=ae,++L<=f&&!(L%16)&&wo(F,L);ie<Te&&V&Oe&&(Fe=hi(de,V,L))}t(ne.h==G(ne))}wo(F,L>f?f:L);break t}!Ne||ne.h&&ie<oe?(Ne=0,F.a=ne.h?5:3):F.$=ie,f=Ne}else f=Eo(F,F.V,F.Ba,F.c,F.i,f,hc);if(!f){E=0;break e}}y+E>=T&&(c.Cc=1),E=1}if(!E)return null;if(c.Cc&&((E=c.ga)!=null&&(E.mc=null),c.ga=null,0<c.Ga))return alert("todo:WebPDequantizeLevels"),null}return c.nb+y*D}function m(c,f,y,E,D,T){for(;0<D--;){var F,O=c,L=f+(y?1:0),V=c,ne=f+(y?0:3);for(F=0;F<E;++F){var de=V[ne+4*F];de!=255&&(de*=32897,O[L+4*F+0]=O[L+4*F+0]*de>>23,O[L+4*F+1]=O[L+4*F+1]*de>>23,O[L+4*F+2]=O[L+4*F+2]*de>>23)}f+=T}}function M(c,f,y,E,D){for(;0<E--;){var T;for(T=0;T<y;++T){var F=c[f+2*T+0],O=15&(V=c[f+2*T+1]),L=4369*O,V=(240&V|V>>4)*L>>16;c[f+2*T+0]=(240&F|F>>4)*L>>16&240|(15&F|F<<4)*L>>16>>4&15,c[f+2*T+1]=240&V|O}f+=D}}function $(c,f,y,E,D,T,F,O){var L,V,ne=255;for(V=0;V<D;++V){for(L=0;L<E;++L){var de=c[f+L];T[F+4*L]=de,ne&=de}f+=y,F+=O}return ne!=255}function Z(c,f,y,E,D){var T;for(T=0;T<D;++T)y[E+T]=c[f+T]>>8}function ue(){Sa=m,Lc=M,_f=$,Nb=Z}function Ee(c,f,y){Y[c]=function(E,D,T,F,O,L,V,ne,de,pe,ae,Ne,Ce,ie,oe,Te,Oe){var Fe,et=Oe-1>>1,He=O[L+0]|V[ne+0]<<16,gt=de[pe+0]|ae[Ne+0]<<16;t(E!=null);var Ge=3*He+gt+131074>>2;for(f(E[D+0],255&Ge,Ge>>16,Ce,ie),T!=null&&(Ge=3*gt+He+131074>>2,f(T[F+0],255&Ge,Ge>>16,oe,Te)),Fe=1;Fe<=et;++Fe){var fn=O[L+Fe]|V[ne+Fe]<<16,Sn=de[pe+Fe]|ae[Ne+Fe]<<16,un=He+fn+gt+Sn+524296,Qt=un+2*(fn+gt)>>3;Ge=Qt+He>>1,He=(un=un+2*(He+Sn)>>3)+fn>>1,f(E[D+2*Fe-1],255&Ge,Ge>>16,Ce,ie+(2*Fe-1)*y),f(E[D+2*Fe-0],255&He,He>>16,Ce,ie+(2*Fe-0)*y),T!=null&&(Ge=un+gt>>1,He=Qt+Sn>>1,f(T[F+2*Fe-1],255&Ge,Ge>>16,oe,Te+(2*Fe-1)*y),f(T[F+2*Fe+0],255&He,He>>16,oe,Te+(2*Fe+0)*y)),He=fn,gt=Sn}1&Oe||(Ge=3*He+gt+131074>>2,f(E[D+Oe-1],255&Ge,Ge>>16,Ce,ie+(Oe-1)*y),T!=null&&(Ge=3*gt+He+131074>>2,f(T[F+Oe-1],255&Ge,Ge>>16,oe,Te+(Oe-1)*y)))}}function Le(){no[wf]=hD,no[Ef]=$b,no[jb]=mD,no[Sf]=Hb,no[If]=zb,no[F0]=Gb,no[Vb]=gD,no[N0]=$b,no[P0]=Hb,no[xf]=zb,no[O0]=Gb}function Xe(c){return c&~vD?0>c?0:255:c>>Wb}function ht(c,f){return Xe((19077*c>>8)+(26149*f>>8)-14234)}function Ft(c,f,y){return Xe((19077*c>>8)-(6419*f>>8)-(13320*y>>8)+8708)}function qt(c,f){return Xe((19077*c>>8)+(33050*f>>8)-17685)}function rn(c,f,y,E,D){E[D+0]=ht(c,y),E[D+1]=Ft(c,f,y),E[D+2]=qt(c,f)}function Yn(c,f,y,E,D){E[D+0]=qt(c,f),E[D+1]=Ft(c,f,y),E[D+2]=ht(c,y)}function ti(c,f,y,E,D){var T=Ft(c,f,y);f=T<<3&224|qt(c,f)>>3,E[D+0]=248&ht(c,y)|T>>5,E[D+1]=f}function mi(c,f,y,E,D){var T=240&qt(c,f)|15;E[D+0]=240&ht(c,y)|Ft(c,f,y)>>4,E[D+1]=T}function Ji(c,f,y,E,D){E[D+0]=255,rn(c,f,y,E,D+1)}function Pi(c,f,y,E,D){Yn(c,f,y,E,D),E[D+3]=255}function xo(c,f,y,E,D){rn(c,f,y,E,D),E[D+3]=255}function kr(c,f){return 0>c?0:c>f?f:c}function Hs(c,f,y){Y[c]=function(E,D,T,F,O,L,V,ne,de){for(var pe=ne+(-2&de)*y;ne!=pe;)f(E[D+0],T[F+0],O[L+0],V,ne),f(E[D+1],T[F+0],O[L+0],V,ne+y),D+=2,++F,++L,ne+=2*y;1&de&&f(E[D+0],T[F+0],O[L+0],V,ne)}}function yf(c,f,y){return y==0?c==0?f==0?6:5:f==0?4:0:y}function hd(c,f,y,E,D){switch(c>>>30){case 3:Oc(f,y,E,D,0);break;case 2:Cd(f,y,E,D);break;case 1:To(f,y,E,D)}}function md(c,f){var y,E,D=f.M,T=f.Nb,F=c.oc,O=c.pc+40,L=c.oc,V=c.pc+584,ne=c.oc,de=c.pc+600;for(y=0;16>y;++y)F[O+32*y-1]=129;for(y=0;8>y;++y)L[V+32*y-1]=129,ne[de+32*y-1]=129;for(0<D?F[O-1-32]=L[V-1-32]=ne[de-1-32]=129:(r(F,O-32-1,127,21),r(L,V-32-1,127,9),r(ne,de-32-1,127,9)),E=0;E<c.za;++E){var pe=f.ya[f.aa+E];if(0<E){for(y=-1;16>y;++y)n(F,O+32*y-4,F,O+32*y+12,4);for(y=-1;8>y;++y)n(L,V+32*y-4,L,V+32*y+4,4),n(ne,de+32*y-4,ne,de+32*y+4,4)}var ae=c.Gd,Ne=c.Hd+E,Ce=pe.ad,ie=pe.Hc;if(0<D&&(n(F,O-32,ae[Ne].y,0,16),n(L,V-32,ae[Ne].f,0,8),n(ne,de-32,ae[Ne].ea,0,8)),pe.Za){var oe=F,Te=O-32+16;for(0<D&&(E>=c.za-1?r(oe,Te,ae[Ne].y[15],4):n(oe,Te,ae[Ne+1].y,0,4)),y=0;4>y;y++)oe[Te+128+y]=oe[Te+256+y]=oe[Te+384+y]=oe[Te+0+y];for(y=0;16>y;++y,ie<<=2)oe=F,Te=O+Kb[y],Fo[pe.Ob[y]](oe,Te),hd(ie,Ce,16*+y,oe,Te)}else if(oe=yf(E,D,pe.Ob[0]),Ia[oe](F,O),ie!=0)for(y=0;16>y;++y,ie<<=2)hd(ie,Ce,16*+y,F,O+Kb[y]);for(y=pe.Gc,oe=yf(E,D,pe.Dd),Ks[oe](L,V),Ks[oe](ne,de),ie=Ce,oe=L,Te=V,255&(pe=y>>0)&&(170&pe?wa(ie,256,oe,Te):Gs(ie,256,oe,Te)),pe=ne,ie=de,255&(y>>=8)&&(170&y?wa(Ce,320,pe,ie):Gs(Ce,320,pe,ie)),D<c.Ub-1&&(n(ae[Ne].y,0,F,O+480,16),n(ae[Ne].f,0,L,V+224,8),n(ae[Ne].ea,0,ne,de+224,8)),y=8*T*c.B,ae=c.sa,Ne=c.ta+16*E+16*T*c.R,Ce=c.qa,pe=c.ra+8*E+y,ie=c.Ha,oe=c.Ia+8*E+y,y=0;16>y;++y)n(ae,Ne+y*c.R,F,O+32*y,16);for(y=0;8>y;++y)n(Ce,pe+y*c.B,L,V+32*y,8),n(ie,oe+y*c.B,ne,de+32*y,8)}}function Mc(c,f,y,E,D,T,F,O,L){var V=[0],ne=[0],de=0,pe=L!=null?L.kd:0,ae=L??new ud;if(c==null||12>y)return 7;ae.data=c,ae.w=f,ae.ha=y,f=[f],y=[y],ae.gb=[ae.gb];e:{var Ne=f,Ce=y,ie=ae.gb;if(t(c!=null),t(Ce!=null),t(ie!=null),ie[0]=0,12<=Ce[0]&&!i(c,Ne[0],"RIFF")){if(i(c,Ne[0]+8,"WEBP")){ie=3;break e}var oe=tt(c,Ne[0]+4);if(12>oe||4294967286<oe){ie=3;break e}if(pe&&oe>Ce[0]-8){ie=7;break e}ie[0]=oe,Ne[0]+=12,Ce[0]-=12}ie=0}if(ie!=0)return ie;for(oe=0<ae.gb[0],y=y[0];;){e:{var Te=c;Ce=f,ie=y;var Oe=V,Fe=ne,et=Ne=[0];if((Ge=de=[de])[0]=0,8>ie[0])ie=7;else{if(!i(Te,Ce[0],"VP8X")){if(tt(Te,Ce[0]+4)!=10){ie=3;break e}if(18>ie[0]){ie=7;break e}var He=tt(Te,Ce[0]+8),gt=1+Je(Te,Ce[0]+12);if(2147483648<=gt*(Te=1+Je(Te,Ce[0]+15))){ie=3;break e}et!=null&&(et[0]=He),Oe!=null&&(Oe[0]=gt),Fe!=null&&(Fe[0]=Te),Ce[0]+=18,ie[0]-=18,Ge[0]=1}ie=0}}if(de=de[0],Ne=Ne[0],ie!=0)return ie;if(Ce=!!(2&Ne),!oe&&de)return 3;if(T!=null&&(T[0]=!!(16&Ne)),F!=null&&(F[0]=Ce),O!=null&&(O[0]=0),F=V[0],Ne=ne[0],de&&Ce&&L==null){ie=0;break}if(4>y){ie=7;break}if(oe&&de||!oe&&!de&&!i(c,f[0],"ALPH")){y=[y],ae.na=[ae.na],ae.P=[ae.P],ae.Sa=[ae.Sa];e:{He=c,ie=f,oe=y;var Ge=ae.gb;Oe=ae.na,Fe=ae.P,et=ae.Sa,gt=22,t(He!=null),t(oe!=null),Te=ie[0];var fn=oe[0];for(t(Oe!=null),t(et!=null),Oe[0]=null,Fe[0]=null,et[0]=0;;){if(ie[0]=Te,oe[0]=fn,8>fn){ie=7;break e}var Sn=tt(He,Te+4);if(4294967286<Sn){ie=3;break e}var un=8+Sn+1&-2;if(gt+=un,0<Ge&&gt>Ge){ie=3;break e}if(!i(He,Te,"VP8 ")||!i(He,Te,"VP8L")){ie=0;break e}if(fn[0]<un){ie=7;break e}i(He,Te,"ALPH")||(Oe[0]=He,Fe[0]=Te+8,et[0]=Sn),Te+=un,fn-=un}}if(y=y[0],ae.na=ae.na[0],ae.P=ae.P[0],ae.Sa=ae.Sa[0],ie!=0)break}y=[y],ae.Ja=[ae.Ja],ae.xa=[ae.xa];e:if(Ge=c,ie=f,oe=y,Oe=ae.gb[0],Fe=ae.Ja,et=ae.xa,He=ie[0],Te=!i(Ge,He,"VP8 "),gt=!i(Ge,He,"VP8L"),t(Ge!=null),t(oe!=null),t(Fe!=null),t(et!=null),8>oe[0])ie=7;else{if(Te||gt){if(Ge=tt(Ge,He+4),12<=Oe&&Ge>Oe-12){ie=3;break e}if(pe&&Ge>oe[0]-8){ie=7;break e}Fe[0]=Ge,ie[0]+=8,oe[0]-=8,et[0]=gt}else et[0]=5<=oe[0]&&Ge[He+0]==47&&!(Ge[He+4]>>5),Fe[0]=oe[0];ie=0}if(y=y[0],ae.Ja=ae.Ja[0],ae.xa=ae.xa[0],f=f[0],ie!=0)break;if(4294967286<ae.Ja)return 3;if(O==null||Ce||(O[0]=ae.xa?2:1),F=[F],Ne=[Ne],ae.xa){if(5>y){ie=7;break}O=F,pe=Ne,Ce=T,c==null||5>y?c=0:5<=y&&c[f+0]==47&&!(c[f+4]>>5)?(oe=[0],Ge=[0],Oe=[0],me(Fe=new N,c,f,y),_t(Fe,oe,Ge,Oe)?(O!=null&&(O[0]=oe[0]),pe!=null&&(pe[0]=Ge[0]),Ce!=null&&(Ce[0]=Oe[0]),c=1):c=0):c=0}else{if(10>y){ie=7;break}O=Ne,c==null||10>y||!tf(c,f+3,y-3)?c=0:(pe=c[f+0]|c[f+1]<<8|c[f+2]<<16,Ce=16383&(c[f+7]<<8|c[f+6]),c=16383&(c[f+9]<<8|c[f+8]),1&pe||3<(pe>>1&7)||!(pe>>4&1)||pe>>5>=ae.Ja||!Ce||!c?c=0:(F&&(F[0]=Ce),O&&(O[0]=c),c=1))}if(!c||(F=F[0],Ne=Ne[0],de&&(V[0]!=F||ne[0]!=Ne)))return 3;L!=null&&(L[0]=ae,L.offset=f-L.w,t(4294967286>f-L.w),t(L.offset==L.ha-y));break}return ie==0||ie==7&&de&&L==null?(T!=null&&(T[0]|=ae.na!=null&&0<ae.na.length),E!=null&&(E[0]=F),D!=null&&(D[0]=Ne),0):ie}function gd(c,f,y){var E=f.width,D=f.height,T=0,F=0,O=E,L=D;if(f.Da=c!=null&&0<c.Da,f.Da&&(O=c.cd,L=c.bd,T=c.v,F=c.j,11>y||(T&=-2,F&=-2),0>T||0>F||0>=O||0>=L||T+O>E||F+L>D))return 0;if(f.v=T,f.j=F,f.va=T+O,f.o=F+L,f.U=O,f.T=L,f.da=c!=null&&0<c.da,f.da){if(!Tt(O,L,y=[c.ib],T=[c.hb]))return 0;f.ib=y[0],f.hb=T[0]}return f.ob=c!=null&&c.ob,f.Kb=c==null||!c.Sd,f.da&&(f.ob=f.ib<3*E/4&&f.hb<3*D/4,f.Kb=0),1}function vd(c){if(c==null)return 2;if(11>c.S){var f=c.f.RGBA;f.fb+=(c.height-1)*f.A,f.A=-f.A}else f=c.f.kb,c=c.height,f.O+=(c-1)*f.fa,f.fa=-f.fa,f.N+=(c-1>>1)*f.Ab,f.Ab=-f.Ab,f.W+=(c-1>>1)*f.Db,f.Db=-f.Db,f.F!=null&&(f.J+=(c-1)*f.lb,f.lb=-f.lb);return 0}function Ac(c,f,y,E){if(E==null||0>=c||0>=f)return 2;if(y!=null){if(y.Da){var D=y.cd,T=y.bd,F=-2&y.v,O=-2&y.j;if(0>F||0>O||0>=D||0>=T||F+D>c||O+T>f)return 2;c=D,f=T}if(y.da){if(!Tt(c,f,D=[y.ib],T=[y.hb]))return 2;c=D[0],f=T[0]}}E.width=c,E.height=f;e:{var L=E.width,V=E.height;if(c=E.S,0>=L||0>=V||!(c>=wf&&13>c))c=2;else{if(0>=E.Rd&&E.sd==null){F=T=D=f=0;var ne=(O=L*Qb[c])*V;if(11>c||(T=(V+1)/2*(f=(L+1)/2),c==12&&(F=(D=L)*V)),(V=o(ne+2*T+F))==null){c=1;break e}E.sd=V,11>c?((L=E.f.RGBA).eb=V,L.fb=0,L.A=O,L.size=ne):((L=E.f.kb).y=V,L.O=0,L.fa=O,L.Fd=ne,L.f=V,L.N=0+ne,L.Ab=f,L.Cd=T,L.ea=V,L.W=0+ne+T,L.Db=f,L.Ed=T,c==12&&(L.F=V,L.J=0+ne+2*T),L.Tc=F,L.lb=D)}if(f=1,D=E.S,T=E.width,F=E.height,D>=wf&&13>D)if(11>D)c=E.f.RGBA,f&=(O=Math.abs(c.A))*(F-1)+T<=c.size,f&=O>=T*Qb[D],f&=c.eb!=null;else{c=E.f.kb,O=(T+1)/2,ne=(F+1)/2,L=Math.abs(c.fa),V=Math.abs(c.Ab);var de=Math.abs(c.Db),pe=Math.abs(c.lb),ae=pe*(F-1)+T;f&=L*(F-1)+T<=c.Fd,f&=V*(ne-1)+O<=c.Cd,f=(f&=de*(ne-1)+O<=c.Ed)&L>=T&V>=O&de>=O,f&=c.y!=null,f&=c.f!=null,f&=c.ea!=null,D==12&&(f&=pe>=T,f&=ae<=c.Tc,f&=c.F!=null)}else f=0;c=f?0:2}}return c!=0||y!=null&&y.fd&&(c=vd(E)),c}var br=64,Tc=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Fc=24,Nc=32,yd=8,_r=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];$e("Predictor0","PredictorAdd0"),Y.Predictor0=function(){return 4278190080},Y.Predictor1=function(c){return c},Y.Predictor2=function(c,f,y){return f[y+0]},Y.Predictor3=function(c,f,y){return f[y+1]},Y.Predictor4=function(c,f,y){return f[y-1]},Y.Predictor5=function(c,f,y){return We(We(c,f[y+1]),f[y+0])},Y.Predictor6=function(c,f,y){return We(c,f[y-1])},Y.Predictor7=function(c,f,y){return We(c,f[y+0])},Y.Predictor8=function(c,f,y){return We(f[y-1],f[y+0])},Y.Predictor9=function(c,f,y){return We(f[y+0],f[y+1])},Y.Predictor10=function(c,f,y){return We(We(c,f[y-1]),We(f[y+0],f[y+1]))},Y.Predictor11=function(c,f,y){var E=f[y+0];return 0>=jt(E>>24&255,c>>24&255,(f=f[y-1])>>24&255)+jt(E>>16&255,c>>16&255,f>>16&255)+jt(E>>8&255,c>>8&255,f>>8&255)+jt(255&E,255&c,255&f)?E:c},Y.Predictor12=function(c,f,y){var E=f[y+0];return(pt((c>>24&255)+(E>>24&255)-((f=f[y-1])>>24&255))<<24|pt((c>>16&255)+(E>>16&255)-(f>>16&255))<<16|pt((c>>8&255)+(E>>8&255)-(f>>8&255))<<8|pt((255&c)+(255&E)-(255&f)))>>>0},Y.Predictor13=function(c,f,y){var E=f[y-1];return(Dt((c=We(c,f[y+0]))>>24&255,E>>24&255)<<24|Dt(c>>16&255,E>>16&255)<<16|Dt(c>>8&255,E>>8&255)<<8|Dt(c>>0&255,E>>0&255))>>>0};var D0=Y.PredictorAdd0;Y.PredictorAdd1=Ht,$e("Predictor2","PredictorAdd2"),$e("Predictor3","PredictorAdd3"),$e("Predictor4","PredictorAdd4"),$e("Predictor5","PredictorAdd5"),$e("Predictor6","PredictorAdd6"),$e("Predictor7","PredictorAdd7"),$e("Predictor8","PredictorAdd8"),$e("Predictor9","PredictorAdd9"),$e("Predictor10","PredictorAdd10"),$e("Predictor11","PredictorAdd11"),$e("Predictor12","PredictorAdd12"),$e("Predictor13","PredictorAdd13");var bd=Y.PredictorAdd2;Kt("ColorIndexInverseTransform","MapARGB","32b",function(c){return c>>8&255},function(c){return c}),Kt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(c){return c},function(c){return c>>8&255});var bf,Do=Y.ColorIndexInverseTransform,_d=Y.MapARGB,M0=Y.VP8LColorIndexInverseTransformAlpha,A0=Y.MapAlpha,_a=Y.VP8LPredictorsAdd=[];_a.length=16,(Y.VP8LPredictors=[]).length=16,(Y.VP8LPredictorsAdd_C=[]).length=16,(Y.VP8LPredictors_C=[]).length=16;var Xr,Mo,Ca,ss,zs,Pc,Ao,Oc,Cd,wa,To,Gs,Tl,Rc,Fl,Ea,wd,eo,Ws,jn,Vn,ai,xi,Ys,Sa,Lc,_f,Nb,Pb=o(511),Ob=o(2041),Rb=o(225),Lb=o(767),kb=0,T0=Ob,Cf=Rb,jr=Lb,to=Pb,wf=0,Ef=1,jb=2,Sf=3,If=4,F0=5,Vb=6,N0=7,P0=8,xf=9,O0=10,eD=[2,3,7],tD=[3,3,11],Bb=[280,256,256,256,40],nD=[0,1,1,1,0],iD=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],rD=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],oD=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],sD=8,R0=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],L0=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Ed=null,aD=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],lD=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Ub=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],cD=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],uD=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],dD=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],pD=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Ia=[],Fo=[],Ks=[],fD=1,qb=2,xa=[],no=[];Ee("UpsampleRgbLinePair",rn,3),Ee("UpsampleBgrLinePair",Yn,3),Ee("UpsampleRgbaLinePair",xo,4),Ee("UpsampleBgraLinePair",Pi,4),Ee("UpsampleArgbLinePair",Ji,4),Ee("UpsampleRgba4444LinePair",mi,2),Ee("UpsampleRgb565LinePair",ti,2);var hD=Y.UpsampleRgbLinePair,mD=Y.UpsampleBgrLinePair,$b=Y.UpsampleRgbaLinePair,Hb=Y.UpsampleBgraLinePair,zb=Y.UpsampleArgbLinePair,Gb=Y.UpsampleRgba4444LinePair,gD=Y.UpsampleRgb565LinePair,Df=16,Mf=1<<Df-1,Sd=-227,k0=482,Wb=6,vD=(256<<Wb)-1,Yb=0,yD=o(256),bD=o(256),_D=o(256),CD=o(256),wD=o(k0-Sd),ED=o(k0-Sd);Hs("YuvToRgbRow",rn,3),Hs("YuvToBgrRow",Yn,3),Hs("YuvToRgbaRow",xo,4),Hs("YuvToBgraRow",Pi,4),Hs("YuvToArgbRow",Ji,4),Hs("YuvToRgba4444Row",mi,2),Hs("YuvToRgb565Row",ti,2);var Kb=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Af=[0,2,8],SD=[8,7,6,4,4,2,2,2,1,1,1,1],ID=1;this.WebPDecodeRGBA=function(c,f,y,E,D){var T=Ef,F=new xc,O=new bo;F.ba=O,O.S=T,O.width=[O.width],O.height=[O.height];var L=O.width,V=O.height,ne=new Bs;if(ne==null||c==null)var de=2;else t(ne!=null),de=Mc(c,f,y,ne.width,ne.height,ne.Pd,ne.Qd,ne.format,null);if(de!=0?L=0:(L!=null&&(L[0]=ne.width[0]),V!=null&&(V[0]=ne.height[0]),L=1),L){O.width=O.width[0],O.height=O.height[0],E!=null&&(E[0]=O.width),D!=null&&(D[0]=O.height);e:{if(E=new bc,(D=new ud).data=c,D.w=f,D.ha=y,D.kd=1,f=[0],t(D!=null),((c=Mc(D.data,D.w,D.ha,null,null,null,f,null,D))==0||c==7)&&f[0]&&(c=4),(f=c)==0){if(t(F!=null),E.data=D.data,E.w=D.w+D.offset,E.ha=D.ha-D.offset,E.put=es,E.ac=Hi,E.bc=ts,E.ma=F,D.xa){if((c=Jr())==null){F=1;break e}if(function(pe,ae){var Ne=[0],Ce=[0],ie=[0];t:for(;;){if(pe==null)return 0;if(ae==null)return pe.a=2,0;if(pe.l=ae,pe.a=0,me(pe.m,ae.data,ae.w,ae.ha),!_t(pe.m,Ne,Ce,ie)){pe.a=3;break t}if(pe.xb=qb,ae.width=Ne[0],ae.height=Ce[0],!rs(Ne[0],Ce[0],1,pe,null))break t;return 1}return t(pe.a!=0),0}(c,E)){if(E=(f=Ac(E.width,E.height,F.Oa,F.ba))==0){t:{E=c;n:for(;;){if(E==null){E=0;break t}if(t(E.s.yc!=null),t(E.s.Ya!=null),t(0<E.s.Wb),t((y=E.l)!=null),t((D=y.ma)!=null),E.xb!=0){if(E.ca=D.ba,E.tb=D.tb,t(E.ca!=null),!gd(D.Oa,y,Sf)){E.a=2;break n}if(!Il(E,y.width)||y.da)break n;if((y.da||yn(E.ca.S))&&ue(),11>E.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),E.ca.f.kb.F!=null&&ue()),E.Pb&&0<E.s.ua&&E.s.vb.X==null&&!Ct(E.s.vb,E.s.Wa.Xa)){E.a=1;break n}E.xb=0}if(!Eo(E,E.V,E.Ba,E.c,E.i,y.o,fc))break n;D.Dc=E.Ma,E=1;break t}t(E.a!=0),E=0}E=!E}E&&(f=c.a)}else f=c.a}else{if((c=new l0)==null){F=1;break e}if(c.Fa=D.na,c.P=D.P,c.qc=D.Sa,nf(c,E)){if((f=Ac(E.width,E.height,F.Oa,F.ba))==0){if(c.Aa=0,y=F.Oa,t((D=c)!=null),y!=null){if(0<(L=0>(L=y.Md)?0:100<L?255:255*L/100)){for(V=ne=0;4>V;++V)12>(de=D.pb[V]).lc&&(de.ia=L*SD[0>de.lc?0:de.lc]>>3),ne|=de.ia;ne&&(alert("todo:VP8InitRandom"),D.ia=1)}D.Ga=y.Id,100<D.Ga?D.Ga=100:0>D.Ga&&(D.Ga=0)}c0(c,E)||(f=c.a)}}else f=c.a}f==0&&F.Oa!=null&&F.Oa.fd&&(f=vd(F.ba))}F=f}T=F!=0?null:11>T?O.f.RGBA.eb:O.f.kb.y}else T=null;return T};var Qb=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function p(Y,Ae){for(var Me="",B=0;B<4;B++)Me+=String.fromCharCode(Y[Ae++]);return Me}function h(Y,Ae){return(Y[Ae+0]<<0|Y[Ae+1]<<8|Y[Ae+2]<<16)>>>0}function v(Y,Ae){return(Y[Ae+0]<<0|Y[Ae+1]<<8|Y[Ae+2]<<16|Y[Ae+3]<<24)>>>0}new l;var w=[0],g=[0],S=[],I=new l,A=e,x=function(Y,Ae){var Me={},B=0,k=!1,te=0,K=0;if(Me.frames=[],!function(H,G,re,ce){for(var ge=0;ge<ce;ge++)if(H[G+ge]!=re.charCodeAt(ge))return!0;return!1}(Y,Ae,"RIFF",4)){var we,be;for(v(Y,Ae+=4),Ae+=8;Ae<Y.length;){var Ie=p(Y,Ae),me=v(Y,Ae+=4);Ae+=4;var De=me+(1&me);switch(Ie){case"VP8 ":case"VP8L":Me.frames[B]===void 0&&(Me.frames[B]={}),(N=Me.frames[B]).src_off=k?K:Ae-8,N.src_size=te+me+8,B++,k&&(k=!1,te=0,K=0);break;case"VP8X":(N=Me.header={}).feature_flags=Y[Ae];var xe=Ae+4;N.canvas_width=1+h(Y,xe),xe+=3,N.canvas_height=1+h(Y,xe),xe+=3;break;case"ALPH":k=!0,te=De+8,K=Ae-8;break;case"ANIM":(N=Me.header).bgcolor=v(Y,Ae),xe=Ae+4,N.loop_count=(we=Y)[(be=xe)+0]<<0|we[be+1]<<8,xe+=2;break;case"ANMF":var Ke,N;(N=Me.frames[B]={}).offset_x=2*h(Y,Ae),Ae+=3,N.offset_y=2*h(Y,Ae),Ae+=3,N.width=1+h(Y,Ae),Ae+=3,N.height=1+h(Y,Ae),Ae+=3,N.duration=h(Y,Ae),Ae+=3,Ke=Y[Ae++],N.dispose=1&Ke,N.blend=Ke>>1&1}Ie!="ANMF"&&(Ae+=De)}return Me}}(A,0);x.response=A,x.rgbaoutput=!0,x.dataurl=!1;var P=x.header?x.header:null,U=x.frames?x.frames:null;if(P){P.loop_counter=P.loop_count,w=[P.canvas_height],g=[P.canvas_width];for(var q=0;q<U.length&&U[q].blend!=0;q++);}var Q=U[0],J=I.WebPDecodeRGBA(A,Q.src_off,Q.src_size,g,w);Q.rgba=J,Q.imgwidth=g[0],Q.imgheight=w[0];for(var le=0;le<g[0]*w[0]*4;le++)S[le]=J[le];return this.width=g,this.height=w,this.data=S,this}(function(e){var t=function(){return typeof $g=="function"},i=function(w,g,S,I){var A=4,x=s;switch(I){case e.image_compression.FAST:A=1,x=o;break;case e.image_compression.MEDIUM:A=6,x=a;break;case e.image_compression.SLOW:A=9,x=l}w=n(w,g,S,x);var P=$g(w,{level:A});return e.__addimage__.arrayBufferToBinaryString(P)},n=function(w,g,S,I){for(var A,x,P,U=w.length/g,q=new Uint8Array(w.length+U),Q=h(),J=0;J<U;J+=1){if(P=J*g,A=w.subarray(P,P+g),I)q.set(I(A,S,x),P+J);else{for(var le,Y=Q.length,Ae=[];le<Y;le+=1)Ae[le]=Q[le](A,S,x);var Me=v(Ae.concat());q.set(Ae[Me],P+J)}x=A}return q},r=function(w){var g=Array.apply([],w);return g.unshift(0),g},o=function(w,g){var S,I=[],A=w.length;I[0]=1;for(var x=0;x<A;x+=1)S=w[x-g]||0,I[x+1]=w[x]-S+256&255;return I},s=function(w,g,S){var I,A=[],x=w.length;A[0]=2;for(var P=0;P<x;P+=1)I=S&&S[P]||0,A[P+1]=w[P]-I+256&255;return A},a=function(w,g,S){var I,A,x=[],P=w.length;x[0]=3;for(var U=0;U<P;U+=1)I=w[U-g]||0,A=S&&S[U]||0,x[U+1]=w[U]+256-(I+A>>>1)&255;return x},l=function(w,g,S){var I,A,x,P,U=[],q=w.length;U[0]=4;for(var Q=0;Q<q;Q+=1)I=w[Q-g]||0,A=S&&S[Q]||0,x=S&&S[Q-g]||0,P=p(I,A,x),U[Q+1]=w[Q]-P+256&255;return U},p=function(w,g,S){if(w===g&&g===S)return w;var I=Math.abs(g-S),A=Math.abs(w-S),x=Math.abs(w+g-S-S);return I<=A&&I<=x?w:A<=x?g:S},h=function(){return[r,o,s,a,l]},v=function(w){var g=w.map(function(S){return S.reduce(function(I,A){return I+Math.abs(A)},0)});return g.indexOf(Math.min.apply(null,g))};e.processPNG=function(w,g,S,I){var A,x,P,U,q,Q,J,le,Y,Ae,Me,B,k,te,K,we=this.decode.FLATE_DECODE,be="";if(this.__addimage__.isArrayBuffer(w)&&(w=new Uint8Array(w)),this.__addimage__.isArrayBufferView(w)){if(w=(P=new qB(w)).imgData,x=P.bits,A=P.colorSpace,q=P.colors,[4,6].indexOf(P.colorType)!==-1){if(P.bits===8){Y=(le=P.pixelBitlength==32?new Uint32Array(P.decodePixels().buffer):P.pixelBitlength==16?new Uint16Array(P.decodePixels().buffer):new Uint8Array(P.decodePixels().buffer)).length,Me=new Uint8Array(Y*P.colors),Ae=new Uint8Array(Y);var Ie,me=P.pixelBitlength-P.bits;for(te=0,K=0;te<Y;te++){for(k=le[te],Ie=0;Ie<me;)Me[K++]=k>>>Ie&255,Ie+=P.bits;Ae[te]=k>>>Ie&255}}if(P.bits===16){Y=(le=new Uint32Array(P.decodePixels().buffer)).length,Me=new Uint8Array(Y*(32/P.pixelBitlength)*P.colors),Ae=new Uint8Array(Y*(32/P.pixelBitlength)),B=P.colors>1,te=0,K=0;for(var De=0;te<Y;)k=le[te++],Me[K++]=k>>>0&255,B&&(Me[K++]=k>>>16&255,k=le[te++],Me[K++]=k>>>0&255),Ae[De++]=k>>>16&255;x=8}I!==e.image_compression.NONE&&t()?(w=i(Me,P.width*P.colors,P.colors,I),J=i(Ae,P.width,1,I)):(w=Me,J=Ae,we=void 0)}if(P.colorType===3&&(A=this.color_spaces.INDEXED,Q=P.palette,P.transparency.indexed)){var xe=P.transparency.indexed,Ke=0;for(te=0,Y=xe.length;te<Y;++te)Ke+=xe[te];if((Ke/=255)===Y-1&&xe.indexOf(0)!==-1)U=[xe.indexOf(0)];else if(Ke!==Y){for(le=P.decodePixels(),Ae=new Uint8Array(le.length),te=0,Y=le.length;te<Y;te++)Ae[te]=xe[le[te]];J=i(Ae,P.width,1)}}var N=function(H){var G;switch(H){case e.image_compression.FAST:G=11;break;case e.image_compression.MEDIUM:G=13;break;case e.image_compression.SLOW:G=14;break;default:G=12}return G}(I);return we===this.decode.FLATE_DECODE&&(be="/Predictor "+N+" "),be+="/Colors "+q+" /BitsPerComponent "+x+" /Columns "+P.width,(this.__addimage__.isArrayBuffer(w)||this.__addimage__.isArrayBufferView(w))&&(w=this.__addimage__.arrayBufferToBinaryString(w)),(J&&this.__addimage__.isArrayBuffer(J)||this.__addimage__.isArrayBufferView(J))&&(J=this.__addimage__.arrayBufferToBinaryString(J)),{alias:S,data:w,index:g,filter:we,decodeParameters:be,transparency:U,palette:Q,sMask:J,predictor:N,width:P.width,height:P.height,bitsPerComponent:x,colorSpace:A}}}})(bt.API),function(e){e.processGIF89A=function(t,i,n,r){var o=new $B(t),s=o.width,a=o.height,l=[];o.decodeAndBlitFrameRGBA(0,l);var p={data:l,width:s,height:a},h=new Sb(100).encode(p,100);return e.processJPEG.call(this,h,i,n,r)},e.processGIF87A=e.processGIF89A}(bt.API),Qo.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var i=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:r,green:n,blue:i,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Qo.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(i){kn.log("bit decode error:"+i)}},Qo.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),i=t%4;for(e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,r=0;r<t;r++)for(var o=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+8*r*4,a=0;a<8&&8*r+a<this.width;a++){var l=this.palette[o>>7-a&1];this.data[s+4*a]=l.blue,this.data[s+4*a+1]=l.green,this.data[s+4*a+2]=l.red,this.data[s+4*a+3]=255}i!==0&&(this.pos+=4-i)}},Qo.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,i=this.height-1;i>=0;i--){for(var n=this.bottom_up?i:this.height-1-i,r=0;r<e;r++){var o=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+2*r*4,a=o>>4,l=15&o,p=this.palette[a];if(this.data[s]=p.blue,this.data[s+1]=p.green,this.data[s+2]=p.red,this.data[s+3]=255,2*r+1>=this.width)break;p=this.palette[l],this.data[s+4]=p.blue,this.data[s+4+1]=p.green,this.data[s+4+2]=p.red,this.data[s+4+3]=255}t!==0&&(this.pos+=4-t)}},Qo.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var i=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),o=i*this.width*4+4*n;if(r<this.palette.length){var s=this.palette[r];this.data[o]=s.red,this.data[o+1]=s.green,this.data[o+2]=s.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}e!==0&&(this.pos+=4-e)}},Qo.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),i=this.height-1;i>=0;i--){for(var n=this.bottom_up?i:this.height-1-i,r=0;r<this.width;r++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&t)/t*255|0,a=(o>>5&t)/t*255|0,l=(o>>10&t)/t*255|0,p=o>>15?255:0,h=n*this.width*4+4*r;this.data[h]=l,this.data[h+1]=a,this.data[h+2]=s,this.data[h+3]=p}this.pos+=e}},Qo.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),i=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,o=0;o<this.width;o++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(s&t)/t*255|0,l=(s>>5&i)/i*255|0,p=(s>>11)/t*255|0,h=r*this.width*4+4*o;this.data[h]=p,this.data[h+1]=l,this.data[h+2]=a,this.data[h+3]=255}this.pos+=e}},Qo.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,i=0;i<this.width;i++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*i;this.data[s]=o,this.data[s+1]=r,this.data[s+2]=n,this.data[s+3]=255}this.pos+=this.width%4}},Qo.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,i=0;i<this.width;i++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*i;this.data[a]=o,this.data[a+1]=r,this.data[a+2]=n,this.data[a+3]=s}},Qo.prototype.getData=function(){return this.data},function(e){e.processBMP=function(t,i,n,r){var o=new Qo(t,!1),s=o.width,a=o.height,l={data:o.getData(),width:s,height:a},p=new Sb(100).encode(l,100);return e.processJPEG.call(this,p,i,n,r)}}(bt.API),A3.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(t,i,n,r){var o=new A3(t,!1),s=o.width,a=o.height,l={data:o.getData(),width:s,height:a},p=new Sb(100).encode(l,100);return e.processJPEG.call(this,p,i,n,r)}}(bt.API),bt.API.processRGBA=function(e,t,i){for(var n=e.data,r=n.length,o=new Uint8Array(r/4*3),s=new Uint8Array(r/4),a=0,l=0,p=0;p<r;p+=4){var h=n[p],v=n[p+1],w=n[p+2],g=n[p+3];o[a++]=h,o[a++]=v,o[a++]=w,s[l++]=g}var S=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:S,index:t,alias:i,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},bt.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Gu=bt.API,Wg=Gu.getCharWidthsArray=function(e,t){var i,n,r=(t=t||{}).font||this.internal.getFont(),o=t.fontSize||this.internal.getFontSize(),s=t.charSpace||this.internal.getCharSpace(),a=t.widths?t.widths:r.metadata.Unicode.widths,l=a.fof?a.fof:1,p=t.kerning?t.kerning:r.metadata.Unicode.kerning,h=p.fof?p.fof:1,v=t.doKerning!==!1,w=0,g=e.length,S=0,I=a[0]||l,A=[];for(i=0;i<g;i++)n=e.charCodeAt(i),typeof r.metadata.widthOfString=="function"?A.push((r.metadata.widthOfGlyph(r.metadata.characterToGlyph(n))+s*(1e3/o)||0)/1e3):(w=v&&Tn(p[n])==="object"&&!isNaN(parseInt(p[n][S],10))?p[n][S]/h:0,A.push((a[n]||I)/l+w)),S=n;return A},I3=Gu.getStringUnitWidth=function(e,t){var i=(t=t||{}).fontSize||this.internal.getFontSize(),n=t.font||this.internal.getFont(),r=t.charSpace||this.internal.getCharSpace();return Gu.processArabic&&(e=Gu.processArabic(e)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(e,i,r)/i:Wg.apply(this,arguments).reduce(function(o,s){return o+s},0)},x3=function(e,t,i,n){for(var r=[],o=0,s=e.length,a=0;o!==s&&a+t[o]<i;)a+=t[o],o++;r.push(e.slice(0,o));var l=o;for(a=0;o!==s;)a+t[o]>n&&(r.push(e.slice(l,o)),a=0,l=o),a+=t[o],o++;return l!==o&&r.push(e.slice(l,o)),r},D3=function(e,t,i){i||(i={});var n,r,o,s,a,l,p,h=[],v=[h],w=i.textIndent||0,g=0,S=0,I=e.split(" "),A=Wg.apply(this,[" ",i])[0];if(l=i.lineIndent===-1?I[0].length+2:i.lineIndent||0){var x=Array(l).join(" "),P=[];I.map(function(q){(q=q.split(/\s*\n/)).length>1?P=P.concat(q.map(function(Q,J){return(J&&Q.length?`
+`:"")+Q})):P.push(q[0])}),I=P,l=I3.apply(this,[x,i])}for(o=0,s=I.length;o<s;o++){var U=0;if(n=I[o],l&&n[0]==`
+`&&(n=n.substr(1),U=1),w+g+(S=(r=Wg.apply(this,[n,i])).reduce(function(q,Q){return q+Q},0))>t||U){if(S>t){for(a=x3.apply(this,[n,r,t-(w+g),t]),h.push(a.shift()),h=[a.pop()];a.length;)v.push([a.shift()]);S=r.slice(n.length-(h[0]?h[0].length:0)).reduce(function(q,Q){return q+Q},0)}else h=[n];v.push(h),w=S+l,g=A}else h.push(n),w+=g+S,g=A}return p=l?function(q,Q){return(Q?x:"")+q.join(" ")}:function(q){return q.join(" ")},v.map(p)},Gu.splitTextToSize=function(e,t,i){var n,r=(i=i||{}).fontSize||this.internal.getFontSize(),o=(function(h){if(h.widths&&h.kerning)return{widths:h.widths,kerning:h.kerning};var v=this.internal.getFont(h.fontName,h.fontStyle);return v.metadata.Unicode?{widths:v.metadata.Unicode.widths||{0:1},kerning:v.metadata.Unicode.kerning||{}}:{font:v.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,i);n=Array.isArray(e)?e:String(e).split(/\r?\n/);var s=1*this.internal.scaleFactor*t/r;o.textIndent=i.textIndent?1*i.textIndent*this.internal.scaleFactor/r:0,o.lineIndent=i.lineIndent;var a,l,p=[];for(a=0,l=n.length;a<l;a++)p=p.concat(D3.apply(this,[n[a],s,o]));return p},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="klmnopqrstuvwxyz",i={},n={},r=0;r<t.length;r++)i[t[r]]="0123456789abcdef"[r],n["0123456789abcdef"[r]]=t[r];var o=function(v){return"0x"+parseInt(v,10).toString(16)},s=e.__fontmetrics__.compress=function(v){var w,g,S,I,A=["{"];for(var x in v){if(w=v[x],isNaN(parseInt(x,10))?g="'"+x+"'":(x=parseInt(x,10),g=(g=o(x).slice(2)).slice(0,-1)+n[g.slice(-1)]),typeof w=="number")w<0?(S=o(w).slice(3),I="-"):(S=o(w).slice(2),I=""),S=I+S.slice(0,-1)+n[S.slice(-1)];else{if(Tn(w)!=="object")throw new Error("Don't know what to do with value type "+Tn(w)+".");S=s(w)}A.push(g+S)}return A.push("}"),A.join("")},a=e.__fontmetrics__.uncompress=function(v){if(typeof v!="string")throw new Error("Invalid argument passed to uncompress.");for(var w,g,S,I,A={},x=1,P=A,U=[],q="",Q="",J=v.length-1,le=1;le<J;le+=1)(I=v[le])=="'"?w?(S=w.join(""),w=void 0):w=[]:w?w.push(I):I=="{"?(U.push([P,S]),P={},S=void 0):I=="}"?((g=U.pop())[0][g[1]]=P,S=void 0,P=g[0]):I=="-"?x=-1:S===void 0?i.hasOwnProperty(I)?(q+=i[I],S=parseInt(q,16)*x,x=1,q=""):q+=I:i.hasOwnProperty(I)?(Q+=i[I],P[S]=parseInt(Q,16)*x,x=1,S=void 0,Q=""):Q+=I;return A},l={codePages:["WinAnsiEncoding"],WinAnsiEncoding:a("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},p={Unicode:{Courier:l,"Courier-Bold":l,"Courier-BoldOblique":l,"Courier-Oblique":l,Helvetica:l,"Helvetica-Bold":l,"Helvetica-BoldOblique":l,"Helvetica-Oblique":l,"Times-Roman":l,"Times-Bold":l,"Times-BoldItalic":l,"Times-Italic":l}},h={Unicode:{"Courier-Oblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":a("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":a("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":a("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:a("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:a("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":a("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:a("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":a("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":a("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":a("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3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ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(v){var w=v.font,g=h.Unicode[w.postScriptName];g&&(w.metadata.Unicode={},w.metadata.Unicode.widths=g.widths,w.metadata.Unicode.kerning=g.kerning);var S=p.Unicode[w.postScriptName];S&&(w.metadata.Unicode.encoding=S,w.encoding=S.codePages[0])}])}(bt.API),function(e){var t=function(i){for(var n=i.length,r=new Uint8Array(n),o=0;o<n;o++)r[o]=i.charCodeAt(o);return r};e.API.events.push(["addFont",function(i){var n=void 0,r=i.font,o=i.instance;if(!r.isStandardFont){if(o===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+r.postScriptName+"').");if(typeof(n=o.existsFileInVFS(r.postScriptName)===!1?o.loadFile(r.postScriptName):o.getFileFromVFS(r.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+r.postScriptName+"').");(function(s,a){a=/^\x00\x01\x00\x00/.test(a)?t(a):t(Zp(a)),s.metadata=e.API.TTFFont.open(a),s.metadata.Unicode=s.metadata.Unicode||{encoding:{},kerning:{},widths:[]},s.metadata.glyIdsUsed=[0]})(r,n)}}])}(bt),function(e){function t(){return(wt.canvg?Promise.resolve(wt.canvg):import("./chunk-HLXWXZR7.js")).catch(function(i){return Promise.reject(new Error("Could not load canvg: "+i))}).then(function(i){return i.default?i.default:i})}bt.API.addSvgAsImage=function(i,n,r,o,s,a,l,p){if(isNaN(n)||isNaN(r))throw kn.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(o)||isNaN(s))throw kn.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=o,h.height=s;var v=h.getContext("2d");v.fillStyle="#fff",v.fillRect(0,0,h.width,h.height);var w={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},g=this;return t().then(function(S){return S.fromString(v,i,w)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(S){return S.render(w)}).then(function(){g.addImage(h.toDataURL("image/jpeg",1),n,r,o,s,l,p)})}}(),bt.API.putTotalPages=function(e){var t,i=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),i=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),i=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var r=0;r<this.internal.pages[n].length;r++)this.internal.pages[n][r]=this.internal.pages[n][r].replace(t,i);return this},bt.API.viewerPreferences=function(e,t){var i;e=e||{},t=t||!1;var n,r,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},a=Object.keys(s),l=[],p=0,h=0,v=0;function w(S,I){var A,x=!1;for(A=0;A<S.length;A+=1)S[A]===I&&(x=!0);return x}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),i=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var g=a.length;for(v=0;v<g;v+=1)i[a[v]].value=i[a[v]].defaultValue,i[a[v]].explicitSet=!1}if(Tn(e)==="object"){for(r in e)if(o=e[r],w(a,r)&&o!==void 0){if(i[r].type==="boolean"&&typeof o=="boolean")i[r].value=o;else if(i[r].type==="name"&&w(i[r].valueSet,o))i[r].value=o;else if(i[r].type==="integer"&&Number.isInteger(o))i[r].value=o;else if(i[r].type==="array"){for(p=0;p<o.length;p+=1)if(n=!0,o[p].length===1&&typeof o[p][0]=="number")l.push(String(o[p]-1));else if(o[p].length>1){for(h=0;h<o[p].length;h+=1)typeof o[p][h]!="number"&&(n=!1);n===!0&&l.push([o[p][0]-1,o[p][1]-1].join(" "))}i[r].value="["+l.join(" ")+"]"}else i[r].value=i[r].defaultValue;i[r].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var S,I=[];for(S in i)i[S].explicitSet===!0&&(i[S].type==="name"?I.push("/"+S+" /"+i[S].value):I.push("/"+S+" "+i[S].value));I.length!==0&&this.internal.write(`/ViewerPreferences
+<<
+`+I.join(`
+`)+`
+>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=i,this},function(e){var t=function(){var n='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',r=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),o=unescape(encodeURIComponent(n)),s=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),a=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),l=unescape(encodeURIComponent("</x:xmpmeta>")),p=o.length+s.length+a.length+r.length+l.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+p+" >>"),this.internal.write("stream"),this.internal.write(r+o+s+a+l),this.internal.write("endstream"),this.internal.write("endobj")},i=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(n,r){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:n,namespaceuri:r||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",i),this.internal.events.subscribe("postPutResources",t)),this}}(bt.API),function(e){var t=e.API,i=t.pdfEscape16=function(o,s){for(var a,l=s.metadata.Unicode.widths,p=["","0","00","000","0000"],h=[""],v=0,w=o.length;v<w;++v){if(a=s.metadata.characterToGlyph(o.charCodeAt(v)),s.metadata.glyIdsUsed.push(a),s.metadata.toUnicode[a]=o.charCodeAt(v),l.indexOf(a)==-1&&(l.push(a),l.push([parseInt(s.metadata.widthOfGlyph(a),10)])),a=="0")return h.join("");a=a.toString(16),h.push(p[4-a.length],a)}return h.join("")},n=function(o){var s,a,l,p,h,v,w;for(h=`/CIDInit /ProcSet findresource begin
+12 dict begin
+begincmap
+/CIDSystemInfo <<
+  /Registry (Adobe)
+  /Ordering (UCS)
+  /Supplement 0
+>> def
+/CMapName /Adobe-Identity-UCS def
+/CMapType 2 def
+1 begincodespacerange
+<0000><ffff>
+endcodespacerange`,l=[],v=0,w=(a=Object.keys(o).sort(function(g,S){return g-S})).length;v<w;v++)s=a[v],l.length>=100&&(h+=`
+`+l.length+` beginbfchar
+`+l.join(`
+`)+`
+endbfchar`,l=[]),o[s]!==void 0&&o[s]!==null&&typeof o[s].toString=="function"&&(p=("0000"+o[s].toString(16)).slice(-4),s=("0000"+(+s).toString(16)).slice(-4),l.push("<"+s+"><"+p+">"));return l.length&&(h+=`
+`+l.length+` beginbfchar
+`+l.join(`
+`)+`
+endbfchar
+`),h+=`endcmap
+CMapName currentdict /CMap defineresource pop
+end
+end`};t.events.push(["putFont",function(o){(function(s){var a=s.font,l=s.out,p=s.newObject,h=s.putStream;if(a.metadata instanceof e.API.TTFFont&&a.encoding==="Identity-H"){for(var v=a.metadata.Unicode.widths,w=a.metadata.subset.encode(a.metadata.glyIdsUsed,1),g="",S=0;S<w.length;S++)g+=String.fromCharCode(w[S]);var I=p();h({data:g,addLength1:!0,objectId:I}),l("endobj");var A=p();h({data:n(a.metadata.toUnicode),addLength1:!0,objectId:A}),l("endobj");var x=p();l("<<"),l("/Type /FontDescriptor"),l("/FontName /"+Yu(a.fontName)),l("/FontFile2 "+I+" 0 R"),l("/FontBBox "+e.API.PDFObject.convert(a.metadata.bbox)),l("/Flags "+a.metadata.flags),l("/StemV "+a.metadata.stemV),l("/ItalicAngle "+a.metadata.italicAngle),l("/Ascent "+a.metadata.ascender),l("/Descent "+a.metadata.decender),l("/CapHeight "+a.metadata.capHeight),l(">>"),l("endobj");var P=p();l("<<"),l("/Type /Font"),l("/BaseFont /"+Yu(a.fontName)),l("/FontDescriptor "+x+" 0 R"),l("/W "+e.API.PDFObject.convert(v)),l("/CIDToGIDMap /Identity"),l("/DW 1000"),l("/Subtype /CIDFontType2"),l("/CIDSystemInfo"),l("<<"),l("/Supplement 0"),l("/Registry (Adobe)"),l("/Ordering ("+a.encoding+")"),l(">>"),l(">>"),l("endobj"),a.objectNumber=p(),l("<<"),l("/Type /Font"),l("/Subtype /Type0"),l("/ToUnicode "+A+" 0 R"),l("/BaseFont /"+Yu(a.fontName)),l("/Encoding /"+a.encoding),l("/DescendantFonts ["+P+" 0 R]"),l(">>"),l("endobj"),a.isAlreadyPutted=!0}})(o)}]),t.events.push(["putFont",function(o){(function(s){var a=s.font,l=s.out,p=s.newObject,h=s.putStream;if(a.metadata instanceof e.API.TTFFont&&a.encoding==="WinAnsiEncoding"){for(var v=a.metadata.rawData,w="",g=0;g<v.length;g++)w+=String.fromCharCode(v[g]);var S=p();h({data:w,addLength1:!0,objectId:S}),l("endobj");var I=p();h({data:n(a.metadata.toUnicode),addLength1:!0,objectId:I}),l("endobj");var A=p();l("<<"),l("/Descent "+a.metadata.decender),l("/CapHeight "+a.metadata.capHeight),l("/StemV "+a.metadata.stemV),l("/Type /FontDescriptor"),l("/FontFile2 "+S+" 0 R"),l("/Flags 96"),l("/FontBBox "+e.API.PDFObject.convert(a.metadata.bbox)),l("/FontName /"+Yu(a.fontName)),l("/ItalicAngle "+a.metadata.italicAngle),l("/Ascent "+a.metadata.ascender),l(">>"),l("endobj"),a.objectNumber=p();for(var x=0;x<a.metadata.hmtx.widths.length;x++)a.metadata.hmtx.widths[x]=parseInt(a.metadata.hmtx.widths[x]*(1e3/a.metadata.head.unitsPerEm));l("<</Subtype/TrueType/Type/Font/ToUnicode "+I+" 0 R/BaseFont/"+Yu(a.fontName)+"/FontDescriptor "+A+" 0 R/Encoding/"+a.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(a.metadata.hmtx.widths)+">>"),l("endobj"),a.isAlreadyPutted=!0}})(o)}]);var r=function(o){var s,a=o.text||"",l=o.x,p=o.y,h=o.options||{},v=o.mutex||{},w=v.pdfEscape,g=v.activeFontKey,S=v.fonts,I=g,A="",x=0,P="",U=S[I].encoding;if(S[I].encoding!=="Identity-H")return{text:a,x:l,y:p,options:h,mutex:v};for(P=a,I=g,Array.isArray(a)&&(P=a[0]),x=0;x<P.length;x+=1)S[I].metadata.hasOwnProperty("cmap")&&(s=S[I].metadata.cmap.unicode.codeMap[P[x].charCodeAt(0)]),s||P[x].charCodeAt(0)<256&&S[I].metadata.hasOwnProperty("Unicode")?A+=P[x]:A+="";var q="";return parseInt(I.slice(1))<14||U==="WinAnsiEncoding"?q=w(A,I).split("").map(function(Q){return Q.charCodeAt(0).toString(16)}).join(""):U==="Identity-H"&&(q=i(A,S[I])),v.isHex=!0,{text:q,x:l,y:p,options:h,mutex:v}};t.events.push(["postProcessText",function(o){var s=o.text||"",a=[],l={text:s,x:o.x,y:o.y,options:o.options,mutex:o.mutex};if(Array.isArray(s)){var p=0;for(p=0;p<s.length;p+=1)Array.isArray(s[p])&&s[p].length===3?a.push([r(Object.assign({},l,{text:s[p][0]})).text,s[p][1],s[p][2]]):a.push(r(Object.assign({},l,{text:s[p]})).text);o.text=a}else o.text=r(Object.assign({},l,{text:s})).text}])}(bt),function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(i){return t.call(this),this.internal.vFS[i]!==void 0},e.addFileToVFS=function(i,n){return t.call(this),this.internal.vFS[i]=n,this},e.getFileFromVFS=function(i){return t.call(this),this.internal.vFS[i]!==void 0?this.internal.vFS[i]:null}}(bt.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(n){var r,o,s,a,l,p,h,v=t,w=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],g=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],S={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},I={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},A=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],x=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),P=!1,U=0;this.__bidiEngine__={};var q=function(B){var k=B.charCodeAt(),te=k>>8,K=I[te];return K!==void 0?v[256*K+(255&k)]:te===252||te===253?"AL":x.test(te)?"L":te===8?"R":"N"},Q=function(B){for(var k,te=0;te<B.length;te++){if((k=q(B.charAt(te)))==="L")return!1;if(k==="R")return!0}return!1},J=function(B,k,te,K){var we,be,Ie,me,De=k[K];switch(De){case"L":case"R":P=!1;break;case"N":case"AN":break;case"EN":P&&(De="AN");break;case"AL":P=!0,De="R";break;case"WS":De="N";break;case"CS":K<1||K+1>=k.length||(we=te[K-1])!=="EN"&&we!=="AN"||(be=k[K+1])!=="EN"&&be!=="AN"?De="N":P&&(be="AN"),De=be===we?be:"N";break;case"ES":De=(we=K>0?te[K-1]:"B")==="EN"&&K+1<k.length&&k[K+1]==="EN"?"EN":"N";break;case"ET":if(K>0&&te[K-1]==="EN"){De="EN";break}if(P){De="N";break}for(Ie=K+1,me=k.length;Ie<me&&k[Ie]==="ET";)Ie++;De=Ie<me&&k[Ie]==="EN"?"EN":"N";break;case"NSM":if(s&&!a){for(me=k.length,Ie=K+1;Ie<me&&k[Ie]==="NSM";)Ie++;if(Ie<me){var xe=B[K],Ke=xe>=1425&&xe<=2303||xe===64286;if(we=k[Ie],Ke&&(we==="R"||we==="AL")){De="R";break}}}De=K<1||(we=k[K-1])==="B"?"N":te[K-1];break;case"B":P=!1,r=!0,De=U;break;case"S":o=!0,De="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":P=!1;break;case"BN":De="N"}return De},le=function(B,k,te){var K=B.split("");return te&&Y(K,te,{hiLevel:U}),K.reverse(),k&&k.reverse(),K.join("")},Y=function(B,k,te){var K,we,be,Ie,me,De=-1,xe=B.length,Ke=0,N=[],H=U?g:w,G=[];for(P=!1,r=!1,o=!1,we=0;we<xe;we++)G[we]=q(B[we]);for(be=0;be<xe;be++){if(me=Ke,N[be]=J(B,G,N,be),K=240&(Ke=H[me][S[N[be]]]),Ke&=15,k[be]=Ie=H[Ke][5],K>0)if(K===16){for(we=De;we<be;we++)k[we]=1;De=-1}else De=-1;if(H[Ke][6])De===-1&&(De=be);else if(De>-1){for(we=De;we<be;we++)k[we]=Ie;De=-1}G[be]==="B"&&(k[be]=0),te.hiLevel|=Ie}o&&function(re,ce,ge){for(var ve=0;ve<ge;ve++)if(re[ve]==="S"){ce[ve]=U;for(var _e=ve-1;_e>=0&&re[_e]==="WS";_e--)ce[_e]=U}}(G,k,xe)},Ae=function(B,k,te,K,we){if(!(we.hiLevel<B)){if(B===1&&U===1&&!r)return k.reverse(),void(te&&te.reverse());for(var be,Ie,me,De,xe=k.length,Ke=0;Ke<xe;){if(K[Ke]>=B){for(me=Ke+1;me<xe&&K[me]>=B;)me++;for(De=Ke,Ie=me-1;De<Ie;De++,Ie--)be=k[De],k[De]=k[Ie],k[Ie]=be,te&&(be=te[De],te[De]=te[Ie],te[Ie]=be);Ke=me}Ke++}}},Me=function(B,k,te){var K=B.split(""),we={hiLevel:U};return te||(te=[]),Y(K,te,we),function(be,Ie,me){if(me.hiLevel!==0&&h)for(var De,xe=0;xe<be.length;xe++)Ie[xe]===1&&(De=A.indexOf(be[xe]))>=0&&(be[xe]=A[De+1])}(K,te,we),Ae(2,K,k,te,we),Ae(1,K,k,te,we),K.join("")};return this.__bidiEngine__.doBidiReorder=function(B,k,te){if(function(we,be){if(be)for(var Ie=0;Ie<we.length;Ie++)be[Ie]=Ie;a===void 0&&(a=Q(we)),p===void 0&&(p=Q(we))}(B,k),s||!l||p)if(s&&l&&a^p)U=a?1:0,B=le(B,k,te);else if(!s&&l&&p)U=a?1:0,B=Me(B,k,te),B=le(B,k);else if(!s||a||l||p){if(s&&!l&&a^p)B=le(B,k),a?(U=0,B=Me(B,k,te)):(U=1,B=Me(B,k,te),B=le(B,k));else if(s&&a&&!l&&p)U=1,B=Me(B,k,te),B=le(B,k);else if(!s&&!l&&a^p){var K=h;a?(U=1,B=Me(B,k,te),U=0,h=!1,B=Me(B,k,te),h=K):(U=0,B=Me(B,k,te),B=le(B,k),U=1,h=!1,B=Me(B,k,te),h=K,B=le(B,k))}}else U=0,B=Me(B,k,te);else U=a?1:0,B=Me(B,k,te);return B},this.__bidiEngine__.setOptions=function(B){B&&(s=B.isInputVisual,l=B.isOutputVisual,a=B.isInputRtl,p=B.isOutputRtl,h=B.isSymmetricSwapping)},this.__bidiEngine__.setOptions(n),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],i=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(n){var r=n.text,o=(n.x,n.y,n.options||{}),s=(n.mutex,o.lang,[]);if(o.isInputVisual=typeof o.isInputVisual!="boolean"||o.isInputVisual,i.setOptions(o),Object.prototype.toString.call(r)==="[object Array]"){var a=0;for(s=[],a=0;a<r.length;a+=1)Object.prototype.toString.call(r[a])==="[object Array]"?s.push([i.doBidiReorder(r[a][0]),r[a][1],r[a][2]]):s.push([i.doBidiReorder(r[a])]);n.text=s}else n.text=i.doBidiReorder(r);i.setOptions({isInputVisual:!0})}])}(bt),bt.API.TTFFont=function(){function e(t){var i;if(this.rawData=t,i=this.contents=new Cl(t),this.contents.pos=4,i.readString(4)==="ttcf")throw new Error("TTCF not supported.");i.pos=0,this.parse(),this.subset=new rU(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new HB(this.contents),this.head=new GB(this),this.name=new ZB(this),this.cmap=new U3(this),this.toUnicode={},this.hhea=new WB(this),this.maxp=new JB(this),this.hmtx=new XB(this),this.post=new KB(this),this.os2=new YB(this),this.loca=new iU(this),this.glyf=new eU(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var t,i,n,r,o;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var s,a,l,p;for(p=[],s=0,a=(l=this.bbox).length;s<a;s++)t=l[s],p.push(Math.round(t*this.scaleFactor));return p}).call(this),this.stemV=0,this.post.exists?(n=255&(r=this.post.italic_angle),32768&(i=r>>16)&&(i=-(1+(65535^i))),this.italicAngle=+(i+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(o=this.familyClass)===1||o===2||o===3||o===4||o===5||o===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(t){var i;return((i=this.cmap.unicode)!=null?i.codeMap[t]:void 0)||0},e.prototype.widthOfGlyph=function(t){var i;return i=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*i},e.prototype.widthOfString=function(t,i,n){var r,o,s,a;for(s=0,o=0,a=(t=""+t).length;0<=a?o<a:o>a;o=0<=a?++o:--o)r=t.charCodeAt(o),s+=this.widthOfGlyph(this.characterToGlyph(r))+n*(1e3/i)||0;return s*(i/1e3)},e.prototype.lineHeight=function(t,i){var n;return i==null&&(i=!1),n=i?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},e}();var Jo,Cl=function(){function e(t){this.data=t??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(t){return this.data[this.pos++]=t},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},e.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},e.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},e.prototype.readString=function(t){var i,n;for(n=[],i=0;0<=t?i<t:i>t;i=0<=t?++i:--i)n[i]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(t){var i,n,r;for(r=[],i=0,n=t.length;0<=n?i<n:i>n;i=0<=n?++i:--i)r.push(this.writeByte(t.charCodeAt(i)));return r},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,i,n,r,o,s,a,l;return t=this.readByte(),i=this.readByte(),n=this.readByte(),r=this.readByte(),o=this.readByte(),s=this.readByte(),a=this.readByte(),l=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^i)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^o)+65536*(255^s)+256*(255^a)+(255^l)+1):72057594037927940*t+281474976710656*i+1099511627776*n+4294967296*r+16777216*o+65536*s+256*a+l},e.prototype.writeLongLong=function(t){var i,n;return i=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(i>>24&255),this.writeByte(i>>16&255),this.writeByte(i>>8&255),this.writeByte(255&i),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(t){return this.writeInt32(t)},e.prototype.read=function(t){var i,n;for(i=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)i.push(this.readByte());return i},e.prototype.write=function(t){var i,n,r,o;for(o=[],n=0,r=t.length;n<r;n++)i=t[n],o.push(this.writeByte(i));return o},e}(),HB=function(){var e;function t(i){var n,r,o;for(this.scalarType=i.readInt(),this.tableCount=i.readShort(),this.searchRange=i.readShort(),this.entrySelector=i.readShort(),this.rangeShift=i.readShort(),this.tables={},r=0,o=this.tableCount;0<=o?r<o:r>o;r=0<=o?++r:--r)n={tag:i.readString(4),checksum:i.readInt(),offset:i.readInt(),length:i.readInt()},this.tables[n.tag]=n}return t.prototype.encode=function(i){var n,r,o,s,a,l,p,h,v,w,g,S,I;for(I in g=Object.keys(i).length,l=Math.log(2),v=16*Math.floor(Math.log(g)/l),s=Math.floor(v/l),h=16*g-v,(r=new Cl).writeInt(this.scalarType),r.writeShort(g),r.writeShort(v),r.writeShort(s),r.writeShort(h),o=16*g,p=r.pos+o,a=null,S=[],i)for(w=i[I],r.writeString(I),r.writeInt(e(w)),r.writeInt(p),r.writeInt(w.length),S=S.concat(w),I==="head"&&(a=p),p+=w.length;p%4;)S.push(0),p++;return r.write(S),n=2981146554-e(r.data),r.pos=a+8,r.writeUInt32(n),r.data},e=function(i){var n,r,o,s;for(i=q3.call(i);i.length%4;)i.push(0);for(o=new Cl(i),r=0,n=0,s=i.length;n<s;n=n+=4)r+=o.readUInt32();return 4294967295&r},t}(),zB={}.hasOwnProperty,Vs=function(e,t){for(var i in t)zB.call(t,i)&&(e[i]=t[i]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};Jo=function(){function e(t){var i;this.file=t,i=this.file.directory.tables[this.tag],this.exists=!!i,i&&(this.offset=i.offset,this.length=i.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var GB=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Vs(t,Jo),t.prototype.tag="head",t.prototype.parse=function(i){return i.pos=this.offset,this.version=i.readInt(),this.revision=i.readInt(),this.checkSumAdjustment=i.readInt(),this.magicNumber=i.readInt(),this.flags=i.readShort(),this.unitsPerEm=i.readShort(),this.created=i.readLongLong(),this.modified=i.readLongLong(),this.xMin=i.readShort(),this.yMin=i.readShort(),this.xMax=i.readShort(),this.yMax=i.readShort(),this.macStyle=i.readShort(),this.lowestRecPPEM=i.readShort(),this.fontDirectionHint=i.readShort(),this.indexToLocFormat=i.readShort(),this.glyphDataFormat=i.readShort()},t.prototype.encode=function(i){var n;return(n=new Cl).writeInt(this.version),n.writeInt(this.revision),n.writeInt(this.checkSumAdjustment),n.writeInt(this.magicNumber),n.writeShort(this.flags),n.writeShort(this.unitsPerEm),n.writeLongLong(this.created),n.writeLongLong(this.modified),n.writeShort(this.xMin),n.writeShort(this.yMin),n.writeShort(this.xMax),n.writeShort(this.yMax),n.writeShort(this.macStyle),n.writeShort(this.lowestRecPPEM),n.writeShort(this.fontDirectionHint),n.writeShort(i),n.writeShort(this.glyphDataFormat),n.data},t}(),T3=function(){function e(t,i){var n,r,o,s,a,l,p,h,v,w,g,S,I,A,x,P,U;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=i+t.readInt(),v=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(l=0;l<256;++l)this.codeMap[l]=t.readByte();break;case 4:for(g=t.readUInt16(),w=g/2,t.pos+=6,o=function(){var q,Q;for(Q=[],l=q=0;0<=w?q<w:q>w;l=0<=w?++q:--q)Q.push(t.readUInt16());return Q}(),t.pos+=2,I=function(){var q,Q;for(Q=[],l=q=0;0<=w?q<w:q>w;l=0<=w?++q:--q)Q.push(t.readUInt16());return Q}(),p=function(){var q,Q;for(Q=[],l=q=0;0<=w?q<w:q>w;l=0<=w?++q:--q)Q.push(t.readUInt16());return Q}(),h=function(){var q,Q;for(Q=[],l=q=0;0<=w?q<w:q>w;l=0<=w?++q:--q)Q.push(t.readUInt16());return Q}(),r=(this.length-t.pos+this.offset)/2,a=function(){var q,Q;for(Q=[],l=q=0;0<=r?q<r:q>r;l=0<=r?++q:--q)Q.push(t.readUInt16());return Q}(),l=x=0,U=o.length;x<U;l=++x)for(A=o[l],n=P=S=I[l];S<=A?P<=A:P>=A;n=S<=A?++P:--P)h[l]===0?s=n+p[l]:(s=a[h[l]/2+(n-S)-(w-l)]||0)!==0&&(s+=p[l]),this.codeMap[n]=65535&s}t.pos=v}return e.encode=function(t,i){var n,r,o,s,a,l,p,h,v,w,g,S,I,A,x,P,U,q,Q,J,le,Y,Ae,Me,B,k,te,K,we,be,Ie,me,De,xe,Ke,N,H,G,re,ce,ge,ve,_e,Ue,Be,Je;switch(K=new Cl,s=Object.keys(t).sort(function(tt,Ct){return tt-Ct}),i){case"macroman":for(I=0,A=function(){var tt=[];for(S=0;S<256;++S)tt.push(0);return tt}(),P={0:0},o={},we=0,De=s.length;we<De;we++)P[_e=t[r=s[we]]]==null&&(P[_e]=++I),o[r]={old:t[r],new:P[t[r]]},A[r]=P[t[r]];return K.writeUInt16(1),K.writeUInt16(0),K.writeUInt32(12),K.writeUInt16(0),K.writeUInt16(262),K.writeUInt16(0),K.write(A),{charMap:o,subtable:K.data,maxGlyphID:I+1};case"unicode":for(k=[],v=[],U=0,P={},n={},x=p=null,be=0,xe=s.length;be<xe;be++)P[Q=t[r=s[be]]]==null&&(P[Q]=++U),n[r]={old:Q,new:P[Q]},a=P[Q]-r,x!=null&&a===p||(x&&v.push(x),k.push(r),p=a),x=r;for(x&&v.push(x),v.push(65535),k.push(65535),Me=2*(Ae=k.length),Y=2*Math.pow(Math.log(Ae)/Math.LN2,2),w=Math.log(Y/2)/Math.LN2,le=2*Ae-Y,l=[],J=[],g=[],S=Ie=0,Ke=k.length;Ie<Ke;S=++Ie){if(B=k[S],h=v[S],B===65535){l.push(0),J.push(0);break}if(B-(te=n[B].new)>=32768)for(l.push(0),J.push(2*(g.length+Ae-S)),r=me=B;B<=h?me<=h:me>=h;r=B<=h?++me:--me)g.push(n[r].new);else l.push(te-B),J.push(0)}for(K.writeUInt16(3),K.writeUInt16(1),K.writeUInt32(12),K.writeUInt16(4),K.writeUInt16(16+8*Ae+2*g.length),K.writeUInt16(0),K.writeUInt16(Me),K.writeUInt16(Y),K.writeUInt16(w),K.writeUInt16(le),ge=0,N=v.length;ge<N;ge++)r=v[ge],K.writeUInt16(r);for(K.writeUInt16(0),ve=0,H=k.length;ve<H;ve++)r=k[ve],K.writeUInt16(r);for(Ue=0,G=l.length;Ue<G;Ue++)a=l[Ue],K.writeUInt16(a);for(Be=0,re=J.length;Be<re;Be++)q=J[Be],K.writeUInt16(q);for(Je=0,ce=g.length;Je<ce;Je++)I=g[Je],K.writeUInt16(I);return{charMap:n,subtable:K.data,maxGlyphID:U+1}}},e}(),U3=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Vs(t,Jo),t.prototype.tag="cmap",t.prototype.parse=function(i){var n,r,o;for(i.pos=this.offset,this.version=i.readUInt16(),o=i.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=o?r<o:r>o;r=0<=o?++r:--r)n=new T3(i,this.offset),this.tables.push(n),n.isUnicode&&this.unicode==null&&(this.unicode=n);return!0},t.encode=function(i,n){var r,o;return n==null&&(n="macroman"),r=T3.encode(i,n),(o=new Cl).writeUInt16(0),o.writeUInt16(1),r.table=o.data.concat(r.subtable),r},t}(),WB=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Vs(t,Jo),t.prototype.tag="hhea",t.prototype.parse=function(i){return i.pos=this.offset,this.version=i.readInt(),this.ascender=i.readShort(),this.decender=i.readShort(),this.lineGap=i.readShort(),this.advanceWidthMax=i.readShort(),this.minLeftSideBearing=i.readShort(),this.minRightSideBearing=i.readShort(),this.xMaxExtent=i.readShort(),this.caretSlopeRise=i.readShort(),this.caretSlopeRun=i.readShort(),this.caretOffset=i.readShort(),i.pos+=8,this.metricDataFormat=i.readShort(),this.numberOfMetrics=i.readUInt16()},t}(),YB=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Vs(t,Jo),t.prototype.tag="OS/2",t.prototype.parse=function(i){if(i.pos=this.offset,this.version=i.readUInt16(),this.averageCharWidth=i.readShort(),this.weightClass=i.readUInt16(),this.widthClass=i.readUInt16(),this.type=i.readShort(),this.ySubscriptXSize=i.readShort(),this.ySubscriptYSize=i.readShort(),this.ySubscriptXOffset=i.readShort(),this.ySubscriptYOffset=i.readShort(),this.ySuperscriptXSize=i.readShort(),this.ySuperscriptYSize=i.readShort(),this.ySuperscriptXOffset=i.readShort(),this.ySuperscriptYOffset=i.readShort(),this.yStrikeoutSize=i.readShort(),this.yStrikeoutPosition=i.readShort(),this.familyClass=i.readShort(),this.panose=function(){var n,r;for(r=[],n=0;n<10;++n)r.push(i.readByte());return r}(),this.charRange=function(){var n,r;for(r=[],n=0;n<4;++n)r.push(i.readInt());return r}(),this.vendorID=i.readString(4),this.selection=i.readShort(),this.firstCharIndex=i.readShort(),this.lastCharIndex=i.readShort(),this.version>0&&(this.ascent=i.readShort(),this.descent=i.readShort(),this.lineGap=i.readShort(),this.winAscent=i.readShort(),this.winDescent=i.readShort(),this.codePageRange=function(){var n,r;for(r=[],n=0;n<2;n=++n)r.push(i.readInt());return r}(),this.version>1))return this.xHeight=i.readShort(),this.capHeight=i.readShort(),this.defaultChar=i.readShort(),this.breakChar=i.readShort(),this.maxContext=i.readShort()},t}(),KB=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Vs(t,Jo),t.prototype.tag="post",t.prototype.parse=function(i){var n,r,o;switch(i.pos=this.offset,this.format=i.readInt(),this.italicAngle=i.readInt(),this.underlinePosition=i.readShort(),this.underlineThickness=i.readShort(),this.isFixedPitch=i.readInt(),this.minMemType42=i.readInt(),this.maxMemType42=i.readInt(),this.minMemType1=i.readInt(),this.maxMemType1=i.readInt(),this.format){case 65536:break;case 131072:var s;for(r=i.readUInt16(),this.glyphNameIndex=[],s=0;0<=r?s<r:s>r;s=0<=r?++s:--s)this.glyphNameIndex.push(i.readUInt16());for(this.names=[],o=[];i.pos<this.offset+this.length;)n=i.readByte(),o.push(this.names.push(i.readString(n)));return o;case 151552:return r=i.readUInt16(),this.offsets=i.read(r);case 196608:break;case 262144:return this.map=(function(){var a,l,p;for(p=[],s=a=0,l=this.file.maxp.numGlyphs;0<=l?a<l:a>l;s=0<=l?++a:--a)p.push(i.readUInt32());return p}).call(this)}},t}(),QB=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},ZB=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Vs(t,Jo),t.prototype.tag="name",t.prototype.parse=function(i){var n,r,o,s,a,l,p,h,v,w,g;for(i.pos=this.offset,i.readShort(),n=i.readShort(),l=i.readShort(),r=[],s=0;0<=n?s<n:s>n;s=0<=n?++s:--s)r.push({platformID:i.readShort(),encodingID:i.readShort(),languageID:i.readShort(),nameID:i.readShort(),length:i.readShort(),offset:this.offset+l+i.readShort()});for(p={},s=v=0,w=r.length;v<w;s=++v)o=r[s],i.pos=o.offset,h=i.readString(o.length),a=new QB(h,o),p[g=o.nameID]==null&&(p[g]=[]),p[o.nameID].push(a);this.strings=p,this.copyright=p[0],this.fontFamily=p[1],this.fontSubfamily=p[2],this.uniqueSubfamily=p[3],this.fontName=p[4],this.version=p[5];try{this.postscriptName=p[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=p[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=p[7],this.manufacturer=p[8],this.designer=p[9],this.description=p[10],this.vendorUrl=p[11],this.designerUrl=p[12],this.license=p[13],this.licenseUrl=p[14],this.preferredFamily=p[15],this.preferredSubfamily=p[17],this.compatibleFull=p[18],this.sampleText=p[19]},t}(),JB=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Vs(t,Jo),t.prototype.tag="maxp",t.prototype.parse=function(i){return i.pos=this.offset,this.version=i.readInt(),this.numGlyphs=i.readUInt16(),this.maxPoints=i.readUInt16(),this.maxContours=i.readUInt16(),this.maxCompositePoints=i.readUInt16(),this.maxComponentContours=i.readUInt16(),this.maxZones=i.readUInt16(),this.maxTwilightPoints=i.readUInt16(),this.maxStorage=i.readUInt16(),this.maxFunctionDefs=i.readUInt16(),this.maxInstructionDefs=i.readUInt16(),this.maxStackElements=i.readUInt16(),this.maxSizeOfInstructions=i.readUInt16(),this.maxComponentElements=i.readUInt16(),this.maxComponentDepth=i.readUInt16()},t}(),XB=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Vs(t,Jo),t.prototype.tag="hmtx",t.prototype.parse=function(i){var n,r,o,s,a,l,p;for(i.pos=this.offset,this.metrics=[],n=0,l=this.file.hhea.numberOfMetrics;0<=l?n<l:n>l;n=0<=l?++n:--n)this.metrics.push({advance:i.readUInt16(),lsb:i.readInt16()});for(o=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var h,v;for(v=[],n=h=0;0<=o?h<o:h>o;n=0<=o?++h:--h)v.push(i.readInt16());return v}(),this.widths=(function(){var h,v,w,g;for(g=[],h=0,v=(w=this.metrics).length;h<v;h++)s=w[h],g.push(s.advance);return g}).call(this),r=this.widths[this.widths.length-1],p=[],n=a=0;0<=o?a<o:a>o;n=0<=o?++a:--a)p.push(this.widths.push(r));return p},t.prototype.forGlyph=function(i){return i in this.metrics?this.metrics[i]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[i-this.metrics.length]}},t}(),q3=[].slice,eU=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Vs(t,Jo),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(i){var n,r,o,s,a,l,p,h,v,w;return i in this.cache?this.cache[i]:(s=this.file.loca,n=this.file.contents,r=s.indexOf(i),(o=s.lengthOf(i))===0?this.cache[i]=null:(n.pos=this.offset+r,a=(l=new Cl(n.read(o))).readShort(),h=l.readShort(),w=l.readShort(),p=l.readShort(),v=l.readShort(),this.cache[i]=a===-1?new nU(l,h,w,p,v):new tU(l,a,h,w,p,v),this.cache[i]))},t.prototype.encode=function(i,n,r){var o,s,a,l,p;for(a=[],s=[],l=0,p=n.length;l<p;l++)o=i[n[l]],s.push(a.length),o&&(a=a.concat(o.encode(r)));return s.push(a.length),{table:a,offsets:s}},t}(),tU=function(){function e(t,i,n,r,o,s){this.raw=t,this.numberOfContours=i,this.xMin=n,this.yMin=r,this.xMax=o,this.yMax=s,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),nU=function(){function e(t,i,n,r,o){var s,a;for(this.raw=t,this.xMin=i,this.yMin=n,this.xMax=r,this.yMax=o,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],s=this.raw;a=s.readShort(),this.glyphOffsets.push(s.pos),this.glyphIDs.push(s.readUInt16()),32&a;)s.pos+=1&a?4:2,128&a?s.pos+=8:64&a?s.pos+=4:8&a&&(s.pos+=2)}return e.prototype.encode=function(){var t,i,n;for(i=new Cl(q3.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)i.pos=this.glyphOffsets[t];return i.data},e}(),iU=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Vs(t,Jo),t.prototype.tag="loca",t.prototype.parse=function(i){var n,r;return i.pos=this.offset,n=this.file.head.indexToLocFormat,this.offsets=n===0?(function(){var o,s;for(s=[],r=0,o=this.length;r<o;r+=2)s.push(2*i.readUInt16());return s}).call(this):(function(){var o,s;for(s=[],r=0,o=this.length;r<o;r+=4)s.push(i.readUInt32());return s}).call(this)},t.prototype.indexOf=function(i){return this.offsets[i]},t.prototype.lengthOf=function(i){return this.offsets[i+1]-this.offsets[i]},t.prototype.encode=function(i,n){for(var r=new Uint32Array(this.offsets.length),o=0,s=0,a=0;a<r.length;++a)if(r[a]=o,s<n.length&&n[s]==a){++s,r[a]=o;var l=this.offsets[a],p=this.offsets[a+1]-l;p>0&&(o+=p)}for(var h=new Array(4*r.length),v=0;v<r.length;++v)h[4*v+3]=255&r[v],h[4*v+2]=(65280&r[v])>>8,h[4*v+1]=(16711680&r[v])>>16,h[4*v]=(4278190080&r[v])>>24;return h},t}(),rU=function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,i,n,r,o;for(i in r=this.font.cmap.tables[0].codeMap,t={},o=this.subset)n=o[i],t[i]=r[n];return t},e.prototype.glyphsFor=function(t){var i,n,r,o,s,a,l;for(r={},s=0,a=t.length;s<a;s++)r[o=t[s]]=this.font.glyf.glyphFor(o);for(o in i=[],r)(n=r[o])!=null&&n.compound&&i.push.apply(i,n.glyphIDs);if(i.length>0)for(o in l=this.glyphsFor(i))n=l[o],r[o]=n;return r},e.prototype.encode=function(t,i){var n,r,o,s,a,l,p,h,v,w,g,S,I,A,x;for(r in n=U3.encode(this.generateCmap(),"unicode"),s=this.glyphsFor(t),g={0:0},x=n.charMap)g[(l=x[r]).old]=l.new;for(S in w=n.maxGlyphID,s)S in g||(g[S]=w++);return h=function(P){var U,q;for(U in q={},P)q[P[U]]=U;return q}(g),v=Object.keys(h).sort(function(P,U){return P-U}),I=function(){var P,U,q;for(q=[],P=0,U=v.length;P<U;P++)a=v[P],q.push(h[a]);return q}(),o=this.font.glyf.encode(s,I,g),p=this.font.loca.encode(o.offsets,I),A={cmap:this.font.cmap.raw(),glyf:o.table,loca:p,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(i)},this.font.os2.exists&&(A["OS/2"]=this.font.os2.raw()),this.font.directory.encode(A)},e}();bt.API.PDFObject=function(){var e;function t(){}return e=function(i,n){return(Array(n+1).join("0")+i).slice(-n)},t.convert=function(i){var n,r,o,s;if(Array.isArray(i))return"["+function(){var a,l,p;for(p=[],a=0,l=i.length;a<l;a++)n=i[a],p.push(t.convert(n));return p}().join(" ")+"]";if(typeof i=="string")return"/"+i;if(i?.isString)return"("+i+")";if(i instanceof Date)return"(D:"+e(i.getUTCFullYear(),4)+e(i.getUTCMonth(),2)+e(i.getUTCDate(),2)+e(i.getUTCHours(),2)+e(i.getUTCMinutes(),2)+e(i.getUTCSeconds(),2)+"Z)";if({}.toString.call(i)==="[object Object]"){for(r in o=["<<"],i)s=i[r],o.push("/"+r+" "+t.convert(s));return o.push(">>"),o.join(`
+`)}return""+i},t}();function oU(e,t){if(e&1&&(d(0,"div")(1,"li"),C(2),u()()),e&2){let i=t.$implicit;b(2),Tr(" ",i.name," ",i.quantity,"",i.unit," ")}}function sU(e,t){if(e&1&&(d(0,"div")(1,"li"),C(2),u()()),e&2){let i=t.$implicit;b(2),Tr(" ",i.name," ",i.quantity,"",i.unit," ")}}function aU(e,t){if(e&1&&(d(0,"div")(1,"li"),C(2),u()()),e&2){let i=t.$implicit;b(2),Tr("",i.name," ",i.quantity,"",i.unit,"")}}function lU(e,t){if(e&1&&(d(0,"div")(1,"li"),C(2),u()()),e&2){let i=t.$implicit;b(2),Tr("",i.name," ",i.quantity,"",i.unit,"")}}var $3=(()=>{let t=class t{constructor(n,r,o){this.route=n,this.recipeService=r,this.router=o,this.id=0,this.recipe={},this.leftColumnIngredients=[],this.rightColumnIngredients=[],this.leftColumnInputs=[],this.rightColumnInputs=[]}ngOnInit(){this.id=+(this.route.snapshot.paramMap.get("id")??0),this.id!==0&&this.recipeService.getRecipeById(this.id).subscribe(n=>{this.recipe=n,this.splitIngredients(),this.splitInputs()},n=>console.error(n))}goTo(){this.router.navigate(["/recipes",this.id,"modify"])}deleteRecipe(){this.recipeService.deleteRecipe(this.id).subscribe(n=>{this.router.navigate(["/recipes"])},n=>console.error(n))}generatePDF(){let n=new bt,r=10;n.setFontSize(18),n.text(this.recipe.name,10,r),r+=20,n.setFontSize(14),n.text("Ingredientes:",10,r),r+=10,n.setFontSize(12),t0(this.recipe.recipeIngredients).forEach(a=>{n.text(`- ${a.name}: ${a.quantity} ${a.unit}`,10,r),r+=10}),r+=5,n.setFontSize(14),n.text("Insumos:",10,r),r+=10,n.setFontSize(12),t0(this.recipe.recipePackagingElements).forEach(a=>{n.text(`- ${a.name}: ${a.quantity} ${a.unit}`,10,r),r+=10}),r+=10,n.setFontSize(14),n.text("Procedimiento",10,r),r+=10;let o=this.convertHTMLToText(this.recipe.description);n.splitTextToSize(o,180).forEach(a=>{n.text(a,10,r),r+=10}),n.save(`${this.recipe.name}.pdf`)}convertHTMLToText(n){let r=document.createElement("div");r.innerHTML=n;let o=l=>l.nodeName==="BR"?`
+`:l.textContent||"",s=l=>l.nodeName==="LI"?`\u2022 ${l.textContent?.trim()}
+`:l.textContent||"";return Array.from(r.childNodes).map(l=>l.nodeName==="BR"?o(l):l.nodeName==="UL"||l.nodeName==="OL"?Array.from(l.childNodes).map(s).join(""):l.nodeName==="P"?`${l.textContent?.trim()}
+
+`:l.textContent||"").join("").trim()}splitIngredients(){if(this.recipe&&this.recipe.recipeIngredients){let n=!0;t0(this.recipe.recipeIngredients).forEach(o=>{n?this.leftColumnIngredients.push(o):this.rightColumnIngredients.push(o),n=!n})}else console.error("Ingredients are undefined or not an array")}splitInputs(){if(this.recipe&&this.recipe.recipePackagingElements){let n=!0;t0(this.recipe.recipePackagingElements).forEach(o=>{n?this.leftColumnInputs.push(o):this.rightColumnInputs.push(o),n=!n})}else console.error("Inpusts are undefined or not an array")}};t.\u0275fac=function(r){return new(r||t)(ee(Fr),ee(ul),ee(Jt))},t.\u0275cmp=Re({type:t,selectors:[["app-view-recipe"]],standalone:!0,features:[Ve],decls:41,vars:8,consts:[[1,"container-fluid","d-flex","flex-column","justify-content-center","align-items-center","vh-100"],[1,"row","justify-content-center","align-items-center","w-100"],[1,"col-8","col-main"],[1,"row","header-row","mb-4","align-items-center"],[1,"col"],[1,"view-title"],[1,"col","d-flex","justify-content-center"],["type","button",1,"btn","btn-custom",3,"click"],[1,"bi","bi-file-arrow-down-fill"],[1,"col","d-flex","justify-content-end"],[1,"col","custom-col"],[1,"row","px-2","mb-4"],[1,"subtitle"],[1,"row"],[4,"ngFor","ngForOf"],[1,"procedure"],[3,"innerHTML"]],template:function(r,o){r&1&&(z(0,"app-navbar"),d(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"h1",5),C(7),u()(),d(8,"div",6)(9,"button",7),X("click",function(){return o.generatePDF()}),z(10,"i",8),C(11," PDF "),u()(),d(12,"div",9)(13,"button",7),X("click",function(){return o.goTo()}),C(14," EDITAR "),u(),d(15,"button",7),X("click",function(){return o.deleteRecipe()}),C(16," ELIMINAR "),u()()(),d(17,"div",10)(18,"div",11)(19,"div",4)(20,"label",12),C(21," INGREDIENTES "),u(),d(22,"div",13)(23,"div",4),R(24,oU,3,3,"div",14),u(),d(25,"div",4),R(26,sU,3,3,"div",14),u()()(),d(27,"div",4)(28,"label",12),C(29," Insumos "),u(),d(30,"div",13)(31,"div",4),R(32,aU,3,3,"div",14),u(),d(33,"div",4),R(34,lU,3,3,"div",14),u()()()(),d(35,"div",13)(36,"label",12),C(37," Procedimiento "),u(),d(38,"div",15),z(39,"div",16),Am(40,"newLinewToBr"),u()()()()()()),r&2&&(b(7),on(o.recipe.name),b(17),_("ngForOf",o.leftColumnIngredients),b(2),_("ngForOf",o.rightColumnIngredients),b(6),_("ngForOf",o.leftColumnInputs),b(2),_("ngForOf",o.rightColumnInputs),b(5),_("innerHTML",LE(40,6,o.recipe.description),C5))},dependencies:[Fn,rt,Cn,r3],styles:[`[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/recipes.svg);background-size:cover;background-position:center;background-repeat:no-repeat}.vh-100[_ngcontent-%COMP%]{height:60vh!important}.view-title[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;color:#1b5e20;font-size:2.5rem;padding-left:1.5rem}.header-row[_ngcontent-%COMP%]{padding-bottom:14px;align-items:center}.custom-col[_ngcontent-%COMP%]{background-color:#d2ffaa;padding:1rem}.subtitle[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;color:#1b5e20;font-size:1.2rem}.btn-custom[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1.3rem;color:#1b5e20}.procedure[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:.6rem}
+/*# sourceMappingURL=view-recipe.component-TIE2PERX.css.map */`]});let e=t;return e})();function t0(e){return e?e.split(";").filter(n=>n.trim()!=="").map(n=>{let[r,o,s]=n.split(",");return!r||!o||!s?(console.error(`Invalid format: ${n}`),{name:"",quantity:"",unit:""}):{name:r.trim(),quantity:o.trim(),unit:s.trim()}}):[]}var n0=(()=>{let t=class t{constructor(n){this.batchesService=n,this.batchCategories=new ii([])}chargeCategories(){this.batchesService.getCategories().subscribe({next:n=>{Array.isArray(n)?this.batchCategories.next(n):console.error("Unexpected response format",n)},error:n=>{console.error("Error fetching categories",n)}})}getCategories(){return this.batchCategories.asObservable()}addCategory(n){this.batchCategories.pipe(ut(r=>{r.includes(n)||(r.push(n),r.sort(),this.batchCategories.next(r))})).subscribe()}};t.\u0275fac=function(r){return new(r||t)(Ye(vo))},t.\u0275prov=qe({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var ha=e=>({"is-invalid":e}),cU=()=>({height:"240px"});function uU(e,t){e&1&&(d(0,"div"),C(1," Nombre es requerido. "),u())}function dU(e,t){e&1&&(d(0,"div"),C(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),u())}function pU(e,t){if(e&1&&(d(0,"div",51),R(1,uU,2,0,"div",52)(2,dU,2,0,"div",52),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.batchForm.get("name"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.batchForm.get("name"))==null||n.errors==null)&&n.errors.required)&&((n=r.batchForm.get("name"))==null||n.errors==null?null:n.errors.pattern))}}function fU(e,t){if(e&1&&(d(0,"option",53),C(1),u()),e&2){let i=t.$implicit;_("value",i),b(),yt(" ",i," ")}}function hU(e,t){e&1&&(d(0,"div"),C(1," La Categoria es necesaria. "),u())}function mU(e,t){if(e&1&&(d(0,"div",54),R(1,hU,2,0,"div",52),u()),e&2){let i,n=j();b(),_("ngIf",(i=n.batchForm.get("category"))==null||i.errors==null?null:i.errors.required)}}function gU(e,t){if(e&1&&(d(0,"option",53),C(1),u()),e&2){let i=t.$implicit;_("value",i),b(),yt(" ",i," ")}}function vU(e,t){e&1&&(d(0,"div"),C(1," Es necesario ingresar una cantidad. "),u())}function yU(e,t){e&1&&(d(0,"div"),C(1," La cantidad debe ser un n\xFAmero v\xE1lido mayor a 0. "),u())}function bU(e,t){if(e&1&&(d(0,"div",55),R(1,vU,2,0,"div",52)(2,yU,2,0,"div",52),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.batchForm.get("quantity"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.batchForm.get("quantity"))==null||n.errors==null)&&n.errors.required)&&((n=r.batchForm.get("quantity"))==null||n.errors==null?null:n.errors.invalidQuantity))}}function _U(e,t){e&1&&(d(0,"div"),C(1," Ingrese una unidad. "),u())}function CU(e,t){if(e&1&&(d(0,"div",56),R(1,_U,2,0,"div",52),u()),e&2){let i,n=j();b(),_("ngIf",(i=n.batchForm.get("unit"))==null||i.errors==null?null:i.errors.required)}}function wU(e,t){e&1&&(d(0,"div",51),C(1," Se necesita una Fecha de Vencimiento. "),u())}function EU(e,t){e&1&&(d(0,"div",51),C(1," El Precio debe ser igual o mayor al costo "),u())}function SU(e,t){e&1&&(d(0,"div"),C(1," La cantidad m\xEDnima es 1. "),u())}function IU(e,t){if(e&1&&(d(0,"div"),C(1),u()),e&2){let i=j(3).index,n=j();b(),yt(" La cantidad m\xE1xima es ",n.avaibleRawMaterials[i].quantity,". ")}}function xU(e,t){if(e&1&&(d(0,"div",51),R(1,SU,2,0,"div",52)(2,IU,2,1,"div",52),u()),e&2){let i,n,r=j(2).$implicit;b(),_("ngIf",(i=r.get("quantity"))==null||i.errors==null?null:i.errors.min),b(),_("ngIf",(n=r.get("quantity"))==null||n.errors==null?null:n.errors.max)}}function DU(e,t){if(e&1){let i=je();d(0,"div",12)(1,"label",62),C(2,"Cantidad:"),u(),d(3,"input",63),X("change",function(){fe(i);let r=j(2);return he(r.calculateCost())}),u(),R(4,xU,3,2,"div",19),u()}if(e&2){let i,n,r=j(),o=r.$implicit,s=r.index,a=j(),l=vt(5);b(),dn("for","quantity-",s,""),b(2),dn("id","quantity-",s,""),_("ngClass",ye(6,ha,(((i=a.batchForm.get("quantity"))==null?null:i.dirty)||((i=a.batchForm.get("quantity"))==null?null:i.touched)||l.submitted)&&((i=a.batchForm.get("quantity"))==null?null:i.invalid))),b(),_("ngIf",l.submitted||((n=o.get("quantity"))==null?null:n.invalid)&&(((n=o.get("quantity"))==null?null:n.dirty)||((n=o.get("quantity"))==null?null:n.touched)))}}function MU(e,t){if(e&1&&(d(0,"div",57)(1,"div",58),z(2,"input",59),d(3,"label",60),C(4),u()(),R(5,DU,5,8,"div",61),u()),e&2){let i,n=t.$implicit,r=t.index,o=j();_("formGroupName",r),b(2),dn("id","material-",r,""),b(),dn("for","material-",r,""),b(),Tr(" ",o.avaibleRawMaterials[r].name," (Disponible: ",o.avaibleRawMaterials[r].quantity," ",o.avaibleRawMaterials[r].unit,") "),b(),_("ngIf",(i=n.get("selected"))==null?null:i.value)}}function AU(e,t){e&1&&(d(0,"div",64),C(1," Debe seleccionarse al menos un ingrediente. "),u())}function TU(e,t){e&1&&(d(0,"div"),C(1," La cantidad m\xEDnima es 1. "),u())}function FU(e,t){if(e&1&&(d(0,"div"),C(1),u()),e&2){let i=j(3).index,n=j();b(),yt(" La cantidad m\xE1xima es ",n.avaibleInputs[i].quantity,". ")}}function NU(e,t){if(e&1&&(d(0,"div",51),R(1,TU,2,0,"div",52)(2,FU,2,1,"div",52),u()),e&2){let i,n,r=j(2).$implicit;b(),_("ngIf",(i=r.get("quantity"))==null||i.errors==null?null:i.errors.min),b(),_("ngIf",(n=r.get("quantity"))==null||n.errors==null?null:n.errors.max)}}function PU(e,t){if(e&1){let i=je();d(0,"div",12)(1,"label",62),C(2,"Cantidad:"),u(),d(3,"input",63),X("change",function(){fe(i);let r=j(2);return he(r.calculateCost())}),u(),R(4,NU,3,2,"div",19),u()}if(e&2){let i,n,r=j(),o=r.$implicit,s=r.index,a=j(),l=vt(5);b(),dn("for","quantity-",s,""),b(2),dn("id","quantity-",s,""),_("ngClass",ye(6,ha,(((i=a.batchForm.get("quantity"))==null?null:i.dirty)||((i=a.batchForm.get("quantity"))==null?null:i.touched)||l.submitted)&&((i=a.batchForm.get("quantity"))==null?null:i.invalid))),b(),_("ngIf",l.submitted||((n=o.get("quantity"))==null?null:n.invalid)&&(((n=o.get("quantity"))==null?null:n.dirty)||((n=o.get("quantity"))==null?null:n.touched)))}}function OU(e,t){if(e&1&&(d(0,"div",57)(1,"div",58),z(2,"input",59),d(3,"label",60),C(4),u()(),R(5,PU,5,8,"div",61),u()),e&2){let i,n=t.$implicit,r=t.index,o=j();_("formGroupName",r),b(2),dn("id","material-",r,""),b(),dn("for","material-",r,""),b(),Tr(" ",o.avaibleInputs[r].name," (Disponible: ",o.avaibleInputs[r].quantity," ",o.avaibleInputs[r].unit,") "),b(),_("ngIf",(i=n.get("selected"))==null?null:i.value)}}function RU(e,t){e&1&&(d(0,"div",64),C(1," Debe seleccionarse al menos un insumo. "),u())}function LU(e,t){e&1&&(d(0,"span",65)(1,"select",66),z(2,"option",67),d(3,"option",68),C(4,"Heading 1"),u(),d(5,"option",69),C(6,"Heading 2"),u(),d(7,"option",70),C(8,"Heading 3"),u()(),d(9,"select",71),z(10,"option",67),d(11,"option",72),C(12,"Serif"),u(),d(13,"option",73),C(14,"Monospace"),u()(),z(15,"button",74)(16,"button",75)(17,"button",76),d(18,"select",77),z(19,"option",67),d(20,"option",78),C(21,"Center"),u(),d(22,"option",79),C(23,"Right"),u(),d(24,"option",80),C(25,"Justify"),u()(),z(26,"button",81)(27,"button",82)(28,"button",83),u())}function kU(e,t){e&1&&(d(0,"div",51),C(1," Descripci\xF3n es requerida. "),u())}function jU(e,t){e&1&&(d(0,"div"),C(1," La categoria es requerida. "),u())}function VU(e,t){e&1&&(d(0,"div"),C(1," La categoria no debe contener n\xFAmeros ni s\xEDmbolos. "),u())}function BU(e,t){if(e&1&&(d(0,"div",54),R(1,jU,2,0,"div",52)(2,VU,2,0,"div",52),u()),e&2){let i,n,r=j(2);b(),_("ngIf",(i=r.addCategoryForm.get("newCategory"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",(n=r.addCategoryForm.get("newCategory"))==null||n.errors==null?null:n.errors.pattern)}}function UU(e,t){if(e&1){let i=je();d(0,"div",84)(1,"div",85)(2,"div",86)(3,"div",87)(4,"h1",88),C(5," Agregar Tipo "),u(),d(6,"button",89),X("click",function(){fe(i);let r=j();return he(r.closeAddCategoryModal())}),u()(),d(7,"div",90)(8,"form",91),X("ngSubmit",function(){fe(i);let r=j();return he(r.addCategory())}),d(9,"div",12)(10,"label",92),C(11,"Nuevo Tipo"),u(),z(12,"input",93),R(13,BU,3,2,"div",27),u()()(),d(14,"div",94)(15,"button",95),X("click",function(){fe(i);let r=j();return he(r.closeAddCategoryModal())}),C(16," CANCELAR "),u(),d(17,"button",96),X("click",function(){fe(i);let r=j();return he(r.addCategory())}),C(18," GUARDAR "),u()()()()()}if(e&2){let i,n=j();b(8),_("formGroup",n.addCategoryForm),b(5),_("ngIf",((i=n.addCategoryForm.get("newCategory"))==null?null:i.invalid)&&(((i=n.addCategoryForm.get("newCategory"))==null?null:i.dirty)||((i=n.addCategoryForm.get("newType"))==null?null:i.touched)))}}var z3=(()=>{let t=class t{constructor(n,r,o,s,a,l){this.formbuild=n,this.CategoriesService=r,this.RawMaterialsService=o,this.InputsService=s,this.BatchesService=a,this.router=l,this.categories=[],this.units=[],this.minDate="",this.addCategoryModal=!1,this.avaibleRawMaterials=[],this.avaibleInputs=[],this.totalCost=0,this.batchForm=this.formbuild.group({name:["",[se.required,se.pattern("[a-zA-Z ]*")]],category:["",[se.required]],quantity:["",[se.required,se.pattern("[0-9]*")]],unit:["",[se.required]],expirationDate:[""],description:[""],price:[0,[se.required,se.min(1)]],ingredients:this.formbuild.array([],{validators:qu()}),packages:this.formbuild.array([],{validators:qu()})}),this.addCategoryForm=this.formbuild.group({newCategory:["",[se.required,se.pattern("[a-zA-Z ]*")]]})}ngOnInit(){this.CategoriesService.chargeCategories(),this.getCategories(),this.units=Object.values(Yi);let n=new Date;this.minDate=n.toISOString().slice(0,16),this.getRawMaterials(),this.getInputs()}addCategory(){this.addCategoryForm.valid?(this.categories.push(this.addCategoryForm.value.newCategory),this.addCategoryForm.reset(),this.addCategoryModal=!1):console.log("Formulario de categoria inv\xE1lido.")}onSubmit(){if(console.log(this.batchForm),this.batchForm.valid){let n=this.batchForm.get("ingredients")?.value,r=n.filter(v=>v.selected).map(v=>v.id),o=this.avaibleRawMaterials.filter(v=>r.includes(v.id)),s=this.batchForm.get("packages")?.value,a=s.filter(v=>v.selected).map(v=>v.id),l=this.avaibleInputs.filter(v=>a.includes(v.id)),p=new Date;p.setFullYear(p.getFullYear()+70);let h={name:this.batchForm.get("name")?.value,category:this.batchForm.get("category")?.value,quantity:this.batchForm.get("quantity")?.value,unit:this.batchForm.get("unit")?.value,expiration:this.batchForm.get("expirationDate")?.value||p,description:this.batchForm.get("description")?.value||"",batchIngredients:o,batchIngredientsQuantity:n.filter(v=>v.selected).map(v=>`${v.id},${v.quantity}`).join(";"),batchPackagingElements:l,batchPackagingElementsQuantity:s.filter(v=>v.selected).map(v=>`${v.id},${v.quantity}`).join(";"),price:this.batchForm.get("price")?.value};console.log("Batch: ",JSON.stringify(h)),this.BatchesService.createBatch(h).subscribe(v=>{console.log("Lote creado correctamente.");let w=o.map(S=>{let I=n.find(A=>A.id===S.id);return I?(S.quantity-=I.quantity,console.log("Ingredient post update: ",S),this.RawMaterialsService.updateRawMaterial(S).toPromise()):null}).filter(Boolean),g=l.map(S=>{let I=s.find(A=>A.id===S.id);return I?(S.quantity-=I.quantity,console.log("Input post update: ",S),this.InputsService.updateInput(S).toPromise()):null}).filter(Boolean);Promise.all([...w,...g]).then(()=>{console.log("Todos los materiales actualizados correctamente.")}).catch(S=>{console.error("Error al actualizar materiales: ",S)}),this.router.navigate(["/production"])},v=>{console.error(v)})}else console.log("Formulario de lote inv\xE1lido.")}openAddCategoryModal(){this.addCategoryModal=!0}closeAddCategoryModal(){this.addCategoryModal=!1}get selectedIngredients(){return this.batchForm.get("ingredients")}addRawMaterialControls(){this.avaibleRawMaterials.forEach(n=>{this.selectedIngredients.push(this.formbuild.group({id:[n.id],name:[n.name],selected:[!1],quantity:[null,[se.min(1),se.max(n.availableQuantity)]]}))})}getRawMaterials(){this.RawMaterialsService.getRawMaterials().subscribe(n=>{this.avaibleRawMaterials=n.sort((r,o)=>r.name.localeCompare(o.name)),this.addRawMaterialControls()},n=>{console.error(n)})}openRMFilters(){}get selectedInputs(){return this.batchForm.get("packages")}addInputsControls(){this.avaibleInputs.forEach(n=>{this.selectedInputs.push(this.formbuild.group({id:[n.id],name:[n.name],selected:[!1],quantity:[null,[se.min(1),se.max(n.availableQuantity)]]}))})}getInputs(){this.InputsService.getInputs().subscribe(n=>{this.avaibleInputs=n.sort((r,o)=>r.name.localeCompare(o.name)),this.addInputsControls()},n=>{console.error(n)})}openIFilters(){}getCategories(){this.CategoriesService.getCategories().subscribe(n=>{this.categories=n.sort((r,o)=>r.localeCompare(o))},n=>{console.error(n)})}calculateCost(){this.totalCost=0,this.batchForm.get("ingredients")?.value.forEach(n=>{if(console.log(n),n.selected){let r=this.avaibleRawMaterials.find(o=>(console.log(o.id,n.id),console.log(o.id===n.id),o.id,n.id,o.id===n.id));console.log(r,r.cost),r&&(this.totalCost+=n.quantity*r.cost)}}),this.batchForm.get("packages")?.value.forEach(n=>{if(n.selected){let r=this.avaibleInputs.find(o=>(o.id,n.id,o.id===n.id));r&&(this.totalCost+=n.quantity*r.cost)}}),this.updatePriceValidator()}updatePriceValidator(){let n=this.batchForm.get("price");n&&(n.setValidators([se.required,se.min(this.totalCost)]),n.updateValueAndValidity())}};t.\u0275fac=function(r){return new(r||t)(ee(ln),ee(n0),ee(Fs),ee(Ts),ee(vo),ee(Jt))},t.\u0275cmp=Re({type:t,selectors:[["app-add-batch"]],standalone:!0,features:[Ve],decls:115,vars:41,consts:[["aux","ngForm"],[1,"container-fluid","d-flex","flex-column","justify-content-center","align-items-center","vh-100"],[1,"row","justify-content-center","align-items-center","w-100"],[1,"col-10","col-main"],[1,"w-100",3,"ngSubmit","formGroup"],[1,"row","header-row","mb-4"],[1,"col"],[1,"view-title"],[1,"col","d-flex","justify-content-end"],["type","submit",1,"btn","btn-custom"],[1,"row","custom-row"],[1,"col-5"],[1,"form-group"],[1,"form-group","row-container"],[1,"row","align-items-center"],[1,"col-3"],["for","name",1,"subtitle"],["type","text","id","name","name","name","formControlName","name",1,"form-control",3,"ngClass"],[1,"error-container"],["class","text-danger",4,"ngIf"],["for","category",1,"mb-0","subtitle"],["id","category","formControlName","category","aria-label","category Selection","placeholder","Seleccione un tipo",1,"form-select","me-2",3,"ngClass"],["value","","disabled","","selected",""],[3,"value",4,"ngFor","ngForOf"],[1,"col-2","d-flex","justify-content-end"],["type","button",1,"btn","btn-custom",3,"click"],[1,"bi","bi-plus-square-fill"],["class","text-danger mt-1",4,"ngIf"],["for","quantity",1,"subtitle"],["type","text","id","quantity","name","quantity","formControlName","quantity",1,"form-control",3,"ngClass"],[1,"col-2"],["for","unit",1,"subtitle"],["id","unit","formControlName","unit","aria-label","Unit Selection",1,"form-select","me-2",3,"ngClass"],[1,"row","error-container","align-items-center"],["class","col-8 text-danger",4,"ngIf"],["class","col text-danger",4,"ngIf"],["for","expirationDate",1,"subtitle"],["type","datetime-local","id","expirationDate","formControlName","expirationDate",1,"form-control",3,"ngClass"],["type","number","id","price","name","price","formControlName","price",1,"form-control",3,"ngClass"],[1,"col-2","cost"],[1,"col","col-border"],[1,"subtitle"],[1,"bi","bi-filter-square-fill"],["formArrayName","ingredients",1,"ingredient-list"],["class","ingredient-item",3,"formGroupName",4,"ngFor","ngForOf"],["class","text-danger mt-2",4,"ngIf"],["formArrayName","packages",1,"ingredient-list"],["for","description",1,"subtitle"],["id","description","name","description","formControlName","description",1,"form-control","p-editor-custom",3,"ngClass"],["pTemplate","header"],["class","modal modal-bg fade show","tabindex","-1","style","display: block","aria-modal","true","role","dialog",4,"ngIf"],[1,"text-danger"],[4,"ngIf"],[3,"value"],[1,"text-danger","mt-1"],[1,"col-8","text-danger"],[1,"col","text-danger"],[1,"ingredient-item",3,"formGroupName"],[1,"form-check"],["type","checkbox","formControlName","selected",1,"form-check-input",3,"id"],[1,"form-check-label",3,"for"],["class","form-group",4,"ngIf"],[3,"for"],["type","number","formControlName","quantity",1,"form-control",3,"change","id","ngClass"],[1,"text-danger","mt-2"],[1,"ql-formats"],["aria-label","Select header",1,"ql-header"],["selected",""],["value","1"],["value","2"],["value","3"],["aria-label","Select font",1,"ql-font"],["value","serif"],["value","monospace"],["aria-label","Bold",1,"ql-bold"],["aria-label","Italic",1,"ql-italic"],["aria-label","Underline",1,"ql-underline"],["aria-label","Select align",1,"ql-align"],["value","center"],["value","right"],["value","justify"],["value","ordered","aria-label","Ordered list",1,"ql-list"],["value","bullet","aria-label","Bullet list",1,"ql-list"],["aria-label","Insert link",1,"ql-link"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","confirmDeleteModalLabel",1,"modal-title","fs-5"],["type","button",1,"btn-close",3,"click"],[1,"modal-body"],[3,"ngSubmit","formGroup"],["for","newCategory"],["type","text","id","newCategory","formControlName","newCategory","placeholder","Ingrese el nuevo tipo",1,"form-control"],[1,"modal-footer"],["type","button",1,"btn","btn-secondary",3,"click"],["type","submit",1,"btn","btn-success",3,"click"]],template:function(r,o){if(r&1){let s=je();z(0,"app-navbar"),d(1,"div",1)(2,"div",2)(3,"div",3)(4,"form",4,0),X("ngSubmit",function(){return fe(s),he(o.onSubmit())}),d(6,"div",5)(7,"div",6)(8,"h1",7),C(9,"Nuevo Lote"),u()(),d(10,"div",8)(11,"button",9),C(12,"GUARDAR"),u()()(),d(13,"div",10)(14,"div",11)(15,"div",12)(16,"div",13)(17,"div",14)(18,"div",15)(19,"label",16),C(20,"Nombre"),u()(),d(21,"div",6),z(22,"input",17),u(),d(23,"div",18),R(24,pU,3,2,"div",19),u()()(),d(25,"div",13)(26,"div",14)(27,"div",15)(28,"label",20),C(29,"Categoria"),u()(),d(30,"div",6)(31,"select",21)(32,"option",22),C(33," Selecciona una Categoria "),u(),R(34,fU,2,2,"option",23),u()(),d(35,"div",24)(36,"button",25),X("click",function(){return fe(s),he(o.openAddCategoryModal())}),z(37,"i",26),u()()(),d(38,"div",18),R(39,mU,2,1,"div",27),u()(),d(40,"div",13)(41,"div",14)(42,"div",15)(43,"label",28),C(44,"Cantidad"),u()(),d(45,"div",6),z(46,"input",29),u(),d(47,"div",30)(48,"label",31),C(49,"Unidad"),u()(),d(50,"div",30)(51,"select",32)(52,"option",22),C(53,"..."),u(),R(54,gU,2,2,"option",23),u()()(),d(55,"div",33),R(56,bU,3,2,"div",34)(57,CU,2,1,"div",35),u()(),d(58,"div",13)(59,"div",14)(60,"div",6)(61,"label",36),C(62,"Fecha de Vencimiento:"),u()(),d(63,"div",6),z(64,"input",37),u(),d(65,"div",18),R(66,wU,2,0,"div",19),u()()(),d(67,"div",13)(68,"div",14)(69,"div",15)(70,"label",28),C(71,"Precio"),u()(),d(72,"div",6),z(73,"input",38),u(),d(74,"div",30)(75,"label",31),C(76,"Costo"),u()(),d(77,"div",39),C(78),u()(),d(79,"div",18),R(80,EU,2,0,"div",19),u()()()(),d(81,"div",40)(82,"div",14)(83,"div",6)(84,"label",41),C(85,"Ingredientes"),u()(),d(86,"div",8)(87,"button",25),X("click",function(){return fe(s),he(o.openRMFilters())}),z(88,"i",42),u()()(),d(89,"div",43),R(90,MU,6,9,"div",44),u(),R(91,AU,2,0,"div",45),u(),d(92,"div",40)(93,"div",14)(94,"div",6)(95,"label",41),C(96,"Insumos"),u()(),d(97,"div",8)(98,"button",25),X("click",function(){return fe(s),he(o.openIFilters())}),z(99,"i",42),u()()(),d(100,"div",46),R(101,OU,6,9,"div",44),u(),R(102,RU,2,0,"div",45),u()(),d(103,"div",10),z(104,"hr"),d(105,"div",6)(106,"div",12)(107,"label",47),C(108,"Descripci\xF3n"),u(),d(109,"p-editor",48),R(110,LU,29,0,"ng-template",49),u()(),d(111,"div",18),R(112,kU,2,0,"div",19),u()()()()()()(),R(113,UU,19,2,"div",50),C(114,`
+2
+`)}if(r&2){let s,a,l,p,h,v,w,g,S,I,A,x,P,U,q,Q,J=vt(5);b(4),_("formGroup",o.batchForm),b(18),_("ngClass",ye(26,ha,(((s=o.batchForm.get("name"))==null?null:s.dirty)||((s=o.batchForm.get("name"))==null?null:s.touched)||J.submitted)&&((s=o.batchForm.get("name"))==null?null:s.invalid))),b(2),_("ngIf",J.submitted||((a=o.batchForm.get("name"))==null?null:a.invalid)&&(((a=o.batchForm.get("name"))==null?null:a.dirty)||((a=o.batchForm.get("name"))==null?null:a.touched))),b(7),_("ngClass",ye(28,ha,(((l=o.batchForm.get("category"))==null?null:l.dirty)||((l=o.batchForm.get("category"))==null?null:l.touched)||J.submitted)&&((l=o.batchForm.get("category"))==null?null:l.invalid))),b(3),_("ngForOf",o.categories),b(5),_("ngIf",J.submitted&&((p=o.batchForm.get("category"))==null?null:p.invalid)),b(7),_("ngClass",ye(30,ha,(((h=o.batchForm.get("quantity"))==null?null:h.dirty)||((h=o.batchForm.get("quantity"))==null?null:h.touched)||J.submitted)&&((h=o.batchForm.get("quantity"))==null?null:h.invalid))),b(5),_("ngClass",ye(32,ha,(((v=o.batchForm.get("unit"))==null?null:v.dirty)||((v=o.batchForm.get("unit"))==null?null:v.touched)||J.submitted)&&((v=o.batchForm.get("unit"))==null?null:v.invalid))),b(3),_("ngForOf",o.units),b(2),_("ngIf",J.submitted||((w=o.batchForm.get("quantity"))==null?null:w.invalid)&&(((w=o.batchForm.get("quantity"))==null?null:w.dirty)||((w=o.batchForm.get("quantity"))==null?null:w.touched))),b(),_("ngIf",J.submitted||((g=o.batchForm.get("unit"))==null?null:g.invalid)&&(((g=o.batchForm.get("unit"))==null?null:g.dirty)||((g=o.batchForm.get("unit"))==null?null:g.touched))),b(7),_("ngClass",ye(34,ha,(((S=o.batchForm.get("expirationDate"))==null?null:S.dirty)||((S=o.batchForm.get("expirationDate"))==null?null:S.touched)||J.submitted)&&((S=o.batchForm.get("expirationDate"))==null?null:S.invalid))),Wt("min",o.minDate),b(2),_("ngIf",J.submitted&&((I=o.batchForm.get("expirationDate"))==null?null:I.invalid)&&(((I=o.batchForm.get("expirationDate"))==null?null:I.dirty)||((I=o.batchForm.get("expirationDate"))==null?null:I.touched))),b(7),_("ngClass",ye(36,ha,(((A=o.batchForm.get("price"))==null?null:A.dirty)||((A=o.batchForm.get("price"))==null?null:A.touched)||J.submitted)&&((A=o.batchForm.get("price"))==null?null:A.invalid))),b(5),yt(" ",o.totalCost," "),b(2),_("ngIf",(((x=o.batchForm.get("price"))==null?null:x.dirty)||((x=o.batchForm.get("price"))==null?null:x.touched)||J.submitted)&&((x=o.batchForm.get("price"))==null?null:x.invalid)),b(10),_("ngForOf",o.selectedIngredients.controls),b(),_("ngIf",J.submitted&&((P=o.batchForm.get("ingredients"))==null?null:P.invalid)||((P=o.batchForm.get("ingredients"))==null?null:P.touched)&&((P=o.batchForm.get("ingredients"))==null?null:P.invalid)),b(10),_("ngForOf",o.selectedInputs.controls),b(),_("ngIf",J.submitted&&((U=o.batchForm.get("packages"))==null?null:U.invalid)||((U=o.batchForm.get("packages"))==null?null:U.touched)&&((U=o.batchForm.get("packages"))==null?null:U.invalid)),b(7),Ga(ys(38,cU)),_("ngClass",ye(39,ha,(((q=o.batchForm.get("description"))==null?null:q.dirty)||((q=o.batchForm.get("description"))==null?null:q.touched)||J.submitted)&&((q=o.batchForm.get("description"))==null?null:q.invalid))),b(3),_("ngIf",J.submitted&&((Q=o.batchForm.get("description"))==null?null:Q.invalid)||((Q=o.batchForm.get("description"))==null?null:Q.invalid)&&(((Q=o.batchForm.get("description"))==null?null:Q.dirty)||((Q=o.batchForm.get("description"))==null?null:Q.touched))),b(),_("ngIf",o.addCategoryModal)}},dependencies:[rt,kt,Cn,st,Fn,$t,an,Vi,Bi,Yt,Hn,Yo,Ei,Xt,sn,en,nn,Is,xs,ml,da,Ki],styles:[`@charset "UTF-8";[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/recipes.svg);background-size:cover;background-position:center;background-repeat:no-repeat}.view-title[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;color:#1b5e20;font-size:2.5rem;padding-left:1.5rem}.header-row[_ngcontent-%COMP%]{padding-bottom:.2rem;align-items:center}.title[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-size:1rem}.vh-100[_ngcontent-%COMP%]{height:88vh!important}.btn-custom[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1.5rem;color:#1b5e20}.btn-custom-2[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1rem;color:#1b5e20}.custom-row[_ngcontent-%COMP%]{background-color:#d2ffaa;padding:1rem .6rem .6rem}.btn-icon[_ngcontent-%COMP%]{font-size:1.6rem}.form-control[_ngcontent-%COMP%], .form-select[_ngcontent-%COMP%]{min-width:0;box-sizing:border-box}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.ingredient-list[_ngcontent-%COMP%]{max-height:200px;overflow-y:auto}.ingredient-item[_ngcontent-%COMP%]{margin-bottom:10px}.subtitle[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;color:#000;font-size:1rem}.col-border[_ngcontent-%COMP%]{border-left:1px solid #1b5e20}.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e;border-bottom-color:#1b5e20}.modal-footer[_ngcontent-%COMP%]{border-top:none;padding-top:0;padding-bottom:.5rem}.form-control[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important;font-size:1.2rem}.cost[_ngcontent-%COMP%]{font-size:1.2rem}
+/*# sourceMappingURL=add-batch.component-IBNPAMTM.css.map */`]});let e=t;return e})();var sr=(e,t)=>{let i=Pe(qi),n=Pe(Jt);return i.isLoggedIn()?!0:(n.navigate(["/"]),!1)};var ma=e=>({"is-invalid":e}),qU=()=>({height:"240px"});function $U(e,t){e&1&&(d(0,"div"),C(1," Nombre es requerido. "),u())}function HU(e,t){e&1&&(d(0,"div"),C(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),u())}function zU(e,t){if(e&1&&(d(0,"div",51),R(1,$U,2,0,"div",52)(2,HU,2,0,"div",52),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.batchForm.get("name"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.batchForm.get("name"))==null||n.errors==null)&&n.errors.required)&&((n=r.batchForm.get("name"))==null||n.errors==null?null:n.errors.pattern))}}function GU(e,t){if(e&1&&(d(0,"option",53),C(1),u()),e&2){let i=t.$implicit;_("value",i),b(),yt(" ",i," ")}}function WU(e,t){e&1&&(d(0,"div"),C(1," La Categoria es necesaria. "),u())}function YU(e,t){if(e&1&&(d(0,"div",54),R(1,WU,2,0,"div",52),u()),e&2){let i,n=j();b(),_("ngIf",(i=n.batchForm.get("category"))==null||i.errors==null?null:i.errors.required)}}function KU(e,t){if(e&1&&(d(0,"option",53),C(1),u()),e&2){let i=t.$implicit;_("value",i),b(),yt(" ",i," ")}}function QU(e,t){e&1&&(d(0,"div"),C(1," Es necesario ingresar una cantidad. "),u())}function ZU(e,t){e&1&&(d(0,"div"),C(1," La cantidad debe ser un n\xFAmero v\xE1lido mayor a 0. "),u())}function JU(e,t){if(e&1&&(d(0,"div",55),R(1,QU,2,0,"div",52)(2,ZU,2,0,"div",52),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.batchForm.get("quantity"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.batchForm.get("quantity"))==null||n.errors==null)&&n.errors.required)&&((n=r.batchForm.get("quantity"))==null||n.errors==null?null:n.errors.invalidQuantity))}}function XU(e,t){e&1&&(d(0,"div"),C(1," Ingrese una unidad. "),u())}function eq(e,t){if(e&1&&(d(0,"div",56),R(1,XU,2,0,"div",52),u()),e&2){let i,n=j();b(),_("ngIf",(i=n.batchForm.get("unit"))==null||i.errors==null?null:i.errors.required)}}function tq(e,t){e&1&&(d(0,"div",51),C(1," Se necesita una Fecha de Vencimiento. "),u())}function nq(e,t){e&1&&(d(0,"div",51),C(1," El Precio debe ser igual o mayor al costo "),u())}function iq(e,t){e&1&&(d(0,"div"),C(1," La cantidad m\xEDnima es 1. "),u())}function rq(e,t){if(e&1&&(d(0,"div"),C(1),u()),e&2){let i=j(3).index,n=j();b(),yt(" La cantidad m\xE1xima es ",n.avaibleRawMaterials[i].quantity,". ")}}function oq(e,t){if(e&1&&(d(0,"div",51),R(1,iq,2,0,"div",52)(2,rq,2,1,"div",52),u()),e&2){let i,n,r=j(2).$implicit;b(),_("ngIf",(i=r.get("quantity"))==null||i.errors==null?null:i.errors.min),b(),_("ngIf",(n=r.get("quantity"))==null||n.errors==null?null:n.errors.max)}}function sq(e,t){if(e&1){let i=je();d(0,"div",12)(1,"label",62),C(2,"Cantidad:"),u(),d(3,"input",63),X("change",function(){fe(i);let r=j(2);return he(r.calculateCost())}),u(),R(4,oq,3,2,"div",19),u()}if(e&2){let i,n,r=j(),o=r.$implicit,s=r.index,a=j(),l=vt(5);b(),dn("for","quantity-",s,""),b(2),dn("id","quantity-",s,""),_("ngClass",ye(6,ma,(((i=a.batchForm.get("quantity"))==null?null:i.dirty)||((i=a.batchForm.get("quantity"))==null?null:i.touched)||l.submitted)&&((i=a.batchForm.get("quantity"))==null?null:i.invalid))),b(),_("ngIf",l.submitted||((n=o.get("quantity"))==null?null:n.invalid)&&(((n=o.get("quantity"))==null?null:n.dirty)||((n=o.get("quantity"))==null?null:n.touched)))}}function aq(e,t){if(e&1&&(d(0,"div",57)(1,"div",58),z(2,"input",59),d(3,"label",60),C(4),u()(),R(5,sq,5,8,"div",61),u()),e&2){let i,n=t.$implicit,r=t.index,o=j();_("formGroupName",r),b(2),dn("id","material-",r,""),b(),dn("for","material-",r,""),b(),Tr(" ",o.avaibleRawMaterials[r].name," (Disponible: ",o.avaibleRawMaterials[r].quantity," ",o.avaibleRawMaterials[r].unit,") "),b(),_("ngIf",(i=n.get("selected"))==null?null:i.value)}}function lq(e,t){e&1&&(d(0,"div",64),C(1," Debe seleccionarse al menos un ingrediente. "),u())}function cq(e,t){e&1&&(d(0,"div"),C(1," La cantidad m\xEDnima es 1. "),u())}function uq(e,t){if(e&1&&(d(0,"div"),C(1),u()),e&2){let i=j(3).index,n=j();b(),yt(" La cantidad m\xE1xima es ",n.avaibleInputs[i].quantity,". ")}}function dq(e,t){if(e&1&&(d(0,"div",51),R(1,cq,2,0,"div",52)(2,uq,2,1,"div",52),u()),e&2){let i,n,r=j(2).$implicit;b(),_("ngIf",(i=r.get("quantity"))==null||i.errors==null?null:i.errors.min),b(),_("ngIf",(n=r.get("quantity"))==null||n.errors==null?null:n.errors.max)}}function pq(e,t){if(e&1){let i=je();d(0,"div",12)(1,"label",62),C(2,"Cantidad:"),u(),d(3,"input",63),X("change",function(){fe(i);let r=j(2);return he(r.calculateCost())}),u(),R(4,dq,3,2,"div",19),u()}if(e&2){let i,n,r=j(),o=r.$implicit,s=r.index,a=j(),l=vt(5);b(),dn("for","quantity-",s,""),b(2),dn("id","quantity-",s,""),_("ngClass",ye(6,ma,(((i=a.batchForm.get("quantity"))==null?null:i.dirty)||((i=a.batchForm.get("quantity"))==null?null:i.touched)||l.submitted)&&((i=a.batchForm.get("quantity"))==null?null:i.invalid))),b(),_("ngIf",l.submitted||((n=o.get("quantity"))==null?null:n.invalid)&&(((n=o.get("quantity"))==null?null:n.dirty)||((n=o.get("quantity"))==null?null:n.touched)))}}function fq(e,t){if(e&1&&(d(0,"div",57)(1,"div",58),z(2,"input",59),d(3,"label",60),C(4),u()(),R(5,pq,5,8,"div",61),u()),e&2){let i,n=t.$implicit,r=t.index,o=j();_("formGroupName",r),b(2),dn("id","material-",r,""),b(),dn("for","material-",r,""),b(),Tr(" ",o.avaibleInputs[r].name," (Disponible: ",o.avaibleInputs[r].quantity," ",o.avaibleInputs[r].unit,") "),b(),_("ngIf",(i=n.get("selected"))==null?null:i.value)}}function hq(e,t){e&1&&(d(0,"div",64),C(1," Debe seleccionarse al menos un insumo. "),u())}function mq(e,t){e&1&&(d(0,"span",65)(1,"select",66),z(2,"option",67),d(3,"option",68),C(4,"Heading 1"),u(),d(5,"option",69),C(6,"Heading 2"),u(),d(7,"option",70),C(8,"Heading 3"),u()(),d(9,"select",71),z(10,"option",67),d(11,"option",72),C(12,"Serif"),u(),d(13,"option",73),C(14,"Monospace"),u()(),z(15,"button",74)(16,"button",75)(17,"button",76),d(18,"select",77),z(19,"option",67),d(20,"option",78),C(21,"Center"),u(),d(22,"option",79),C(23,"Right"),u(),d(24,"option",80),C(25,"Justify"),u()(),z(26,"button",81)(27,"button",82)(28,"button",83),u())}function gq(e,t){e&1&&(d(0,"div",51),C(1," Descripci\xF3n es requerida. "),u())}function vq(e,t){e&1&&(d(0,"div"),C(1," La categoria es requerida. "),u())}function yq(e,t){e&1&&(d(0,"div"),C(1," La categoria no debe contener n\xFAmeros ni s\xEDmbolos. "),u())}function bq(e,t){if(e&1&&(d(0,"div",54),R(1,vq,2,0,"div",52)(2,yq,2,0,"div",52),u()),e&2){let i,n,r=j(2);b(),_("ngIf",(i=r.addCategoryForm.get("newCategory"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",(n=r.addCategoryForm.get("newCategory"))==null||n.errors==null?null:n.errors.pattern)}}function _q(e,t){if(e&1){let i=je();d(0,"div",84)(1,"div",85)(2,"div",86)(3,"div",87)(4,"h1",88),C(5," Agregar Tipo "),u(),d(6,"button",89),X("click",function(){fe(i);let r=j();return he(r.closeAddCategoryModal())}),u()(),d(7,"div",90)(8,"form",91),X("ngSubmit",function(){fe(i);let r=j();return he(r.addCategory())}),d(9,"div",12)(10,"label",92),C(11,"Nuevo Tipo"),u(),z(12,"input",93),R(13,bq,3,2,"div",27),u()()(),d(14,"div",94)(15,"button",95),X("click",function(){fe(i);let r=j();return he(r.closeAddCategoryModal())}),C(16," CANCELAR "),u(),d(17,"button",96),X("click",function(){fe(i);let r=j();return he(r.addCategory())}),C(18," GUARDAR "),u()()()()()}if(e&2){let i,n=j();b(8),_("formGroup",n.addCategoryForm),b(5),_("ngIf",((i=n.addCategoryForm.get("newCategory"))==null?null:i.invalid)&&(((i=n.addCategoryForm.get("newCategory"))==null?null:i.dirty)||((i=n.addCategoryForm.get("newType"))==null?null:i.touched)))}}var G3=(()=>{let t=class t{constructor(n,r,o,s,a,l,p){this.formbuild=n,this.CategoriesService=r,this.RawMaterialsService=o,this.InputsService=s,this.BatchesService=a,this.router=l,this.activeRoute=p,this.batchId=0,this.batch={},this.categories=[],this.units=[],this.minDate="",this.addCategoryModal=!1,this.avaibleRawMaterials=[],this.avaibleInputs=[],this.preSelectedIngredients=[],this.preSelectedIngredientsQuantity=[],this.preSelectedInputs=[],this.totalCost=0,this.batchForm=this.formbuild.group({name:["",[se.required,se.pattern("[a-zA-Z ]*")]],category:["",[se.required]],quantity:["",[se.required,se.pattern("[0-9]*")]],unit:["",[se.required]],expirationDate:[""],description:[""],price:[0,[se.required,se.min(this.totalCost)]],ingredients:this.formbuild.array([],{validators:qu()}),packages:this.formbuild.array([],{validators:qu()})}),this.addCategoryForm=this.formbuild.group({newCategory:["",[se.required,se.pattern("[a-zA-Z ]*")]]})}ngOnInit(){this.getBatch(),this.getRawMaterials(),this.getInputs(),this.CategoriesService.chargeCategories(),this.getCategories(),this.units=Object.values(Yi);let n=new Date;this.minDate=n.toISOString().slice(0,16),console.log("Preselected Ingredients: ",this.preSelectedIngredients),console.log("Preselected Inputs: ",this.preSelectedInputs)}addCategory(){this.addCategoryForm.valid?(this.categories.push(this.addCategoryForm.value.newCategory),this.addCategoryForm.reset(),this.addCategoryModal=!1):console.log("Formulario de categoria inv\xE1lido.")}onSubmit(){if(console.log(this.batchForm),this.batchForm.valid){let n=this.batchForm.get("ingredients")?.value,r=this.batchForm.get("packages")?.value,o=n.filter(w=>w.selected).map(w=>w.id),s=r.filter(w=>w.selected).map(w=>w.id),a=this.avaibleRawMaterials.filter(w=>o.includes(w.id)),l=this.avaibleInputs.filter(w=>s.includes(w.id)),p=n.filter(w=>w.selected).map(w=>`${w.id},${w.quantity}`).join(";"),h=r.filter(w=>w.selected).map(w=>`${w.id},${w.quantity}`).join(";"),v={id:this.batchId,name:this.batchForm.get("name")?.value,category:this.batchForm.get("category")?.value,quantity:this.batchForm.get("quantity")?.value,unit:this.batchForm.get("unit")?.value,expiration:this.batchForm.get("expirationDate")?.value,creationDate:this.ad,lastModificationDate:this.lmd,description:this.batchForm.get("description")?.value||"",batchIngredients:a,batchIngredientsQuantity:p,batchPackagingElements:l,batchPackagingElementsQuantity:h,price:this.batchForm.get("price")?.value};console.log("Batch: ",v),console.log("BatchJS: ",JSON.stringify(v)),this.BatchesService.updateBatch(v).subscribe(w=>{console.log("Lote creado correctamente.");let g=this.updateSelectedIngredients(n),S=this.updateSelectedInputs(r),I=this.restoreDeselectedIngredients(n),A=this.restoreDeselectedInputs(r);Promise.all([...g,...S,...I,...A]).then(()=>{console.log("Todos los materiales actualizados correctamente.")}).catch(x=>{console.error("Error al actualizar materiales: ",x)}),this.router.navigate(["/production"])},w=>{console.error(w)})}else console.log("Formulario de lote inv\xE1lido.")}updateSelectedIngredients(n){return n.map(r=>{let o=this.avaibleRawMaterials.find(a=>a.id===r.id);console.log("Selected Ingredient: ",r),console.log("Ingredient base: ",o);let s=Number(this.preSelectedIngredients[r.id]||0);if(console.log("Original Quantity: ",s),o){let a=Number(r.quantity);if(console.log("New Quantity: ",a),a!==s){let l=a-s;return console.log("Difference: ",l),l>0?o.quantity-=l:o.quantity+=Math.abs(l),console.log("New Ingredient Quantity: ",o.quantity),this.RawMaterialsService.updateRawMaterial(o).toPromise()}}return Promise.resolve(null)})}updateSelectedInputs(n){return n.map(r=>{let o=this.avaibleInputs.find(a=>a.id===r.id),s=Number(this.preSelectedInputs[r.id]||0);if(o){let a=Number(r.quantity);if(a!==s){let l=a-s;return l>0?o.quantity-=l:o.quantity+=Math.abs(l),this.InputsService.updateInput(o).toPromise()}}return Promise.resolve(null)})}restoreDeselectedIngredients(n){return this.avaibleRawMaterials.filter(r=>!n.find(o=>o.id===r.id)).map(r=>{let o=this.preSelectedIngredients[r.id]||0;return r.quantity+=o,this.RawMaterialsService.updateRawMaterial(r).toPromise()})}restoreDeselectedInputs(n){return this.avaibleInputs.filter(r=>!n.find(o=>o.id===r.id)).map(r=>{let o=this.preSelectedInputs[r.id]||0;return r.quantity+=o,this.InputsService.updateInput(r).toPromise()})}openAddCategoryModal(){this.addCategoryModal=!0}closeAddCategoryModal(){this.addCategoryModal=!1}get selectedIngredients(){return this.batchForm.get("ingredients")}addRawMaterialControls(){for(;this.selectedIngredients.length;)this.selectedIngredients.removeAt(0);this.avaibleRawMaterials.forEach(n=>{this.selectedIngredients.push(this.formbuild.group({id:[n.id],name:[n.name],selected:[!1],quantity:[null,[se.min(1),se.max(n.availableQuantity)]]}))})}openRMFilters(){}get selectedInputs(){return this.batchForm.get("packages")}addInputsControls(){for(;this.selectedInputs.length;)this.selectedInputs.removeAt(0);this.avaibleInputs.forEach(n=>{this.selectedInputs.push(this.formbuild.group({id:[n.id],name:[n.name],selected:[!1],quantity:[null,[se.min(1),se.max(n.availableQuantity)]]}))})}openIFilters(){}getCategories(){this.CategoriesService.getCategories().subscribe(n=>{this.categories=n.sort((r,o)=>r.localeCompare(o))},n=>{console.error(n)})}getBatch(){this.batchId=+(this.activeRoute.snapshot.paramMap.get("id")??0),this.BatchesService.getBatchById(this.batchId).subscribe(n=>{console.log(n),this.batch=n,console.log(this.batch),this.batchForm.patchValue({name:n.name,category:n.category,quantity:n.quantity,unit:n.unit,expirationDate:Ds(n.expiration),description:n.description,price:n.price}),this.ad=n.creationDate,this.lmd=n.lastModificationDate;let r=n.batchIngredientsQuantity.split(";").reduce((s,a)=>{let[l,p]=a.split(",");return s[l]=parseFloat(p),s},{}),o=n.batchPackagingElementsQuantity.split(";").reduce((s,a)=>{let[l,p]=a.split(",");return s[l]=parseFloat(p),s},{});this.totalCost=n.price,this.getRawMaterials().then(()=>{let s=this.batchForm.get("ingredients");n.batchIngredients.forEach(a=>{let l=s.controls.find(p=>p.value.id===a.id);l&&(l.patchValue({selected:!0,quantity:r[a.id]!==void 0?r[a.id]:null}),this.preSelectedIngredients[a.id]=r[a.id])})}),this.getInputs().then(()=>{let s=this.batchForm.get("packages");n.batchPackagingElements.forEach(a=>{let l=s.controls.find(p=>p.value.id===a.id);l&&(l.patchValue({selected:!0,quantity:o[a.id]!==void 0?o[a.id]:null}),this.preSelectedInputs[a.id]=o[a.id])})})},n=>{console.error(n)})}getRawMaterials(){return new Promise((n,r)=>{this.RawMaterialsService.getRawMaterials().subscribe(o=>{this.avaibleRawMaterials=o.sort((s,a)=>s.name.localeCompare(a.name)),this.addRawMaterialControls(),n()},o=>{console.error(o),r(o)})})}getInputs(){return new Promise((n,r)=>{this.InputsService.getInputs().subscribe(o=>{this.avaibleInputs=o.sort((s,a)=>s.name.localeCompare(a.name)),this.addInputsControls(),n()},o=>{console.error(o),r(o)})})}updateElement(n,r,o){return o===r?n.quantity:r>o?n.quantity-(r-o):n.quantity+(o-r)}calculateCost(){this.totalCost=0,this.batchForm.get("ingredients")?.value.forEach(n=>{if(console.log(n),n.selected){let r=this.avaibleRawMaterials.find(o=>(console.log(o.id,n.id),console.log(o.id===n.id),o.id,n.id,o.id===n.id));console.log(r,r.cost),r&&(this.totalCost+=n.quantity*r.cost)}}),this.batchForm.get("packages")?.value.forEach(n=>{if(n.selected){let r=this.avaibleInputs.find(o=>(o.id,n.id,o.id===n.id));r&&(this.totalCost+=n.quantity*r.cost)}}),this.updatePriceValidator()}updatePriceValidator(){let n=this.batchForm.get("price");n&&(n.setValidators([se.required,se.min(this.totalCost)]),n.updateValueAndValidity())}};t.\u0275fac=function(r){return new(r||t)(ee(ln),ee(n0),ee(Fs),ee(Ts),ee(vo),ee(Jt),ee(Fr))},t.\u0275cmp=Re({type:t,selectors:[["app-modify-batch"]],standalone:!0,features:[Ve],decls:114,vars:41,consts:[["aux","ngForm"],[1,"container-fluid","d-flex","flex-column","justify-content-center","align-items-center","vh-100"],[1,"row","justify-content-center","align-items-center","w-100"],[1,"col-10","col-main"],[1,"w-100",3,"ngSubmit","formGroup"],[1,"row","header-row","mb-4"],[1,"col"],[1,"view-title"],[1,"col","d-flex","justify-content-end"],["type","submit",1,"btn","btn-custom"],[1,"row","custom-row"],[1,"col-5"],[1,"form-group"],[1,"form-group","row-container"],[1,"row","align-items-center"],[1,"col-3"],["for","name",1,"subtitle"],["type","text","id","name","name","name","formControlName","name",1,"form-control",3,"ngClass"],[1,"error-container"],["class","text-danger",4,"ngIf"],["for","category",1,"mb-0","subtitle"],["id","category","formControlName","category","aria-label","category Selection","placeholder","Seleccione un tipo",1,"form-select","me-2",3,"ngClass"],["value","","disabled","","selected",""],[3,"value",4,"ngFor","ngForOf"],[1,"col-2","d-flex","justify-content-end"],["type","button",1,"btn","btn-custom",3,"click"],[1,"bi","bi-plus-square-fill"],["class","text-danger mt-1",4,"ngIf"],["for","quantity",1,"subtitle"],["type","text","id","quantity","name","quantity","formControlName","quantity",1,"form-control",3,"ngClass"],[1,"col-2"],["for","unit",1,"subtitle"],["id","unit","formControlName","unit","aria-label","Unit Selection",1,"form-select","me-2",3,"ngClass"],[1,"row","error-container","align-items-center"],["class","col-8 text-danger",4,"ngIf"],["class","col text-danger",4,"ngIf"],["for","expirationDate",1,"subtitle"],["type","datetime-local","id","expirationDate","formControlName","expirationDate",1,"form-control",3,"ngClass"],["type","number","id","price","name","price","formControlName","price",1,"form-control",3,"ngClass"],[1,"col-2","cost"],[1,"col","col-border"],[1,"subtitle"],[1,"bi","bi-filter-square-fill"],["formArrayName","ingredients",1,"ingredient-list"],["class","ingredient-item",3,"formGroupName",4,"ngFor","ngForOf"],["class","text-danger mt-2",4,"ngIf"],["formArrayName","packages",1,"ingredient-list"],["for","description",1,"subtitle"],["id","description","name","description","formControlName","description",1,"form-control","p-editor-custom",3,"ngClass"],["pTemplate","header"],["class","modal modal-bg fade show","tabindex","-1","style","display: block","aria-modal","true","role","dialog",4,"ngIf"],[1,"text-danger"],[4,"ngIf"],[3,"value"],[1,"text-danger","mt-1"],[1,"col-8","text-danger"],[1,"col","text-danger"],[1,"ingredient-item",3,"formGroupName"],[1,"form-check"],["type","checkbox","formControlName","selected",1,"form-check-input",3,"id"],[1,"form-check-label",3,"for"],["class","form-group",4,"ngIf"],[3,"for"],["type","number","formControlName","quantity",1,"form-control",3,"change","id","ngClass"],[1,"text-danger","mt-2"],[1,"ql-formats"],["aria-label","Select header",1,"ql-header"],["selected",""],["value","1"],["value","2"],["value","3"],["aria-label","Select font",1,"ql-font"],["value","serif"],["value","monospace"],["aria-label","Bold",1,"ql-bold"],["aria-label","Italic",1,"ql-italic"],["aria-label","Underline",1,"ql-underline"],["aria-label","Select align",1,"ql-align"],["value","center"],["value","right"],["value","justify"],["value","ordered","aria-label","Ordered list",1,"ql-list"],["value","bullet","aria-label","Bullet list",1,"ql-list"],["aria-label","Insert link",1,"ql-link"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","confirmDeleteModalLabel",1,"modal-title","fs-5"],["type","button",1,"btn-close",3,"click"],[1,"modal-body"],[3,"ngSubmit","formGroup"],["for","newCategory"],["type","text","id","newCategory","formControlName","newCategory","placeholder","Ingrese el nuevo tipo",1,"form-control"],[1,"modal-footer"],["type","button",1,"btn","btn-secondary",3,"click"],["type","submit",1,"btn","btn-success",3,"click"]],template:function(r,o){if(r&1){let s=je();z(0,"app-navbar"),d(1,"div",1)(2,"div",2)(3,"div",3)(4,"form",4,0),X("ngSubmit",function(){return fe(s),he(o.onSubmit())}),d(6,"div",5)(7,"div",6)(8,"h1",7),C(9,"Modificar Lote"),u()(),d(10,"div",8)(11,"button",9),C(12,"GUARDAR"),u()()(),d(13,"div",10)(14,"div",11)(15,"div",12)(16,"div",13)(17,"div",14)(18,"div",15)(19,"label",16),C(20,"Nombre"),u()(),d(21,"div",6),z(22,"input",17),u(),d(23,"div",18),R(24,zU,3,2,"div",19),u()()(),d(25,"div",13)(26,"div",14)(27,"div",15)(28,"label",20),C(29,"Categoria"),u()(),d(30,"div",6)(31,"select",21)(32,"option",22),C(33," Selecciona una Categoria "),u(),R(34,GU,2,2,"option",23),u()(),d(35,"div",24)(36,"button",25),X("click",function(){return fe(s),he(o.openAddCategoryModal())}),z(37,"i",26),u()()(),d(38,"div",18),R(39,YU,2,1,"div",27),u()(),d(40,"div",13)(41,"div",14)(42,"div",15)(43,"label",28),C(44,"Cantidad"),u()(),d(45,"div",6),z(46,"input",29),u(),d(47,"div",30)(48,"label",31),C(49,"Unidad"),u()(),d(50,"div",30)(51,"select",32)(52,"option",22),C(53,"..."),u(),R(54,KU,2,2,"option",23),u()()(),d(55,"div",33),R(56,JU,3,2,"div",34)(57,eq,2,1,"div",35),u()(),d(58,"div",13)(59,"div",14)(60,"div",6)(61,"label",36),C(62,"Fecha de Vencimiento:"),u()(),d(63,"div",6),z(64,"input",37),u(),d(65,"div",18),R(66,tq,2,0,"div",19),u()()(),d(67,"div",13)(68,"div",14)(69,"div",15)(70,"label",28),C(71,"Precio"),u()(),d(72,"div",6),z(73,"input",38),u(),d(74,"div",30)(75,"label",31),C(76,"Costo"),u()(),d(77,"div",39),C(78),u()(),d(79,"div",18),R(80,nq,2,0,"div",19),u()()()(),d(81,"div",40)(82,"div",14)(83,"div",6)(84,"label",41),C(85,"Ingredientes"),u()(),d(86,"div",8)(87,"button",25),X("click",function(){return fe(s),he(o.openRMFilters())}),z(88,"i",42),u()()(),d(89,"div",43),R(90,aq,6,9,"div",44),u(),R(91,lq,2,0,"div",45),u(),d(92,"div",40)(93,"div",14)(94,"div",6)(95,"label",41),C(96,"Insumos"),u()(),d(97,"div",8)(98,"button",25),X("click",function(){return fe(s),he(o.openIFilters())}),z(99,"i",42),u()()(),d(100,"div",46),R(101,fq,6,9,"div",44),u(),R(102,hq,2,0,"div",45),u()(),d(103,"div",10),z(104,"hr"),d(105,"div",6)(106,"div",12)(107,"label",47),C(108,"Descripci\xF3n"),u(),d(109,"p-editor",48),R(110,mq,29,0,"ng-template",49),u()(),d(111,"div",18),R(112,gq,2,0,"div",19),u()()()()()()(),R(113,_q,19,2,"div",50)}if(r&2){let s,a,l,p,h,v,w,g,S,I,A,x,P,U,q,Q,J=vt(5);b(4),_("formGroup",o.batchForm),b(18),_("ngClass",ye(26,ma,(((s=o.batchForm.get("name"))==null?null:s.dirty)||((s=o.batchForm.get("name"))==null?null:s.touched)||J.submitted)&&((s=o.batchForm.get("name"))==null?null:s.invalid))),b(2),_("ngIf",J.submitted||((a=o.batchForm.get("name"))==null?null:a.invalid)&&(((a=o.batchForm.get("name"))==null?null:a.dirty)||((a=o.batchForm.get("name"))==null?null:a.touched))),b(7),_("ngClass",ye(28,ma,(((l=o.batchForm.get("category"))==null?null:l.dirty)||((l=o.batchForm.get("category"))==null?null:l.touched)||J.submitted)&&((l=o.batchForm.get("category"))==null?null:l.invalid))),b(3),_("ngForOf",o.categories),b(5),_("ngIf",J.submitted&&((p=o.batchForm.get("category"))==null?null:p.invalid)),b(7),_("ngClass",ye(30,ma,(((h=o.batchForm.get("quantity"))==null?null:h.dirty)||((h=o.batchForm.get("quantity"))==null?null:h.touched)||J.submitted)&&((h=o.batchForm.get("quantity"))==null?null:h.invalid))),b(5),_("ngClass",ye(32,ma,(((v=o.batchForm.get("unit"))==null?null:v.dirty)||((v=o.batchForm.get("unit"))==null?null:v.touched)||J.submitted)&&((v=o.batchForm.get("unit"))==null?null:v.invalid))),b(3),_("ngForOf",o.units),b(2),_("ngIf",J.submitted||((w=o.batchForm.get("quantity"))==null?null:w.invalid)&&(((w=o.batchForm.get("quantity"))==null?null:w.dirty)||((w=o.batchForm.get("quantity"))==null?null:w.touched))),b(),_("ngIf",J.submitted||((g=o.batchForm.get("unit"))==null?null:g.invalid)&&(((g=o.batchForm.get("unit"))==null?null:g.dirty)||((g=o.batchForm.get("unit"))==null?null:g.touched))),b(7),_("ngClass",ye(34,ma,(((S=o.batchForm.get("expirationDate"))==null?null:S.dirty)||((S=o.batchForm.get("expirationDate"))==null?null:S.touched)||J.submitted)&&((S=o.batchForm.get("expirationDate"))==null?null:S.invalid))),Wt("min",o.minDate),b(2),_("ngIf",J.submitted&&((I=o.batchForm.get("expirationDate"))==null?null:I.invalid)&&(((I=o.batchForm.get("expirationDate"))==null?null:I.dirty)||((I=o.batchForm.get("expirationDate"))==null?null:I.touched))),b(7),_("ngClass",ye(36,ma,(((A=o.batchForm.get("price"))==null?null:A.dirty)||((A=o.batchForm.get("price"))==null?null:A.touched)||J.submitted)&&((A=o.batchForm.get("price"))==null?null:A.invalid))),b(5),yt(" ",o.totalCost," "),b(2),_("ngIf",(((x=o.batchForm.get("price"))==null?null:x.dirty)||((x=o.batchForm.get("price"))==null?null:x.touched)||J.submitted)&&((x=o.batchForm.get("price"))==null?null:x.invalid)),b(10),_("ngForOf",o.selectedIngredients.controls),b(),_("ngIf",J.submitted&&((P=o.batchForm.get("ingredients"))==null?null:P.invalid)||((P=o.batchForm.get("ingredients"))==null?null:P.touched)&&((P=o.batchForm.get("ingredients"))==null?null:P.invalid)),b(10),_("ngForOf",o.selectedInputs.controls),b(),_("ngIf",J.submitted&&((U=o.batchForm.get("packages"))==null?null:U.invalid)||((U=o.batchForm.get("packages"))==null?null:U.touched)&&((U=o.batchForm.get("packages"))==null?null:U.invalid)),b(7),Ga(ys(38,qU)),_("ngClass",ye(39,ma,(((q=o.batchForm.get("description"))==null?null:q.dirty)||((q=o.batchForm.get("description"))==null?null:q.touched)||J.submitted)&&((q=o.batchForm.get("description"))==null?null:q.invalid))),b(3),_("ngIf",J.submitted&&((Q=o.batchForm.get("description"))==null?null:Q.invalid)||((Q=o.batchForm.get("description"))==null?null:Q.invalid)&&(((Q=o.batchForm.get("description"))==null?null:Q.dirty)||((Q=o.batchForm.get("description"))==null?null:Q.touched))),b(),_("ngIf",o.addCategoryModal)}},dependencies:[rt,kt,Cn,st,$t,an,Vi,Bi,Yt,Hn,Yo,Ei,Xt,sn,en,nn,Is,xs,Fn,ml,da,Ki],styles:[`@charset "UTF-8";[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/recipes.svg);background-size:cover;background-position:center;background-repeat:no-repeat}.view-title[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;color:#1b5e20;font-size:2.5rem;padding-left:1.5rem}.header-row[_ngcontent-%COMP%]{padding-bottom:.2rem;align-items:center}.title[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-size:1rem}.vh-100[_ngcontent-%COMP%]{height:88vh!important}.btn-custom[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1.5rem;color:#1b5e20}.btn-custom-2[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1rem;color:#1b5e20}.custom-row[_ngcontent-%COMP%]{background-color:#d2ffaa;padding:1rem .6rem .6rem}.btn-icon[_ngcontent-%COMP%]{font-size:1.6rem}.form-control[_ngcontent-%COMP%], .form-select[_ngcontent-%COMP%]{min-width:0;box-sizing:border-box}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.ingredient-list[_ngcontent-%COMP%]{max-height:200px;overflow-y:auto}.ingredient-item[_ngcontent-%COMP%]{margin-bottom:10px}.subtitle[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;color:#000;font-size:1rem}.col-border[_ngcontent-%COMP%]{border-left:1px solid #1b5e20}.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e;border-bottom-color:#1b5e20}.modal-footer[_ngcontent-%COMP%]{border-top:none;padding-top:0;padding-bottom:.5rem}.form-control[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important;font-size:1.2rem}.cost[_ngcontent-%COMP%]{font-size:1.2rem}
+/*# sourceMappingURL=modify-batch.component-ATI3EZBX.css.map */`]});let e=t;return e})();var W3=(e,t)=>{let i=Pe(qi),n=Pe(Jt);return i.isLoggedIn()?(n.navigate(["/home"]),!1):!0};var wl=e=>({"is-invalid":e});function Cq(e,t){e&1&&(d(0,"div"),C(1," Email es requerido. "),u())}function wq(e,t){e&1&&(d(0,"div"),C(1," Formato de email inv\xE1lido. "),u())}function Eq(e,t){if(e&1&&(d(0,"div",42),R(1,Cq,2,0,"div",32)(2,wq,2,0,"div",32),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.userForm.get("email"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.userForm.get("email"))==null||n.errors==null)&&n.errors.required)&&(((n=r.userForm.get("email"))==null||n.errors==null?null:n.errors.email)||((n=r.userForm.get("email"))==null||n.errors==null?null:n.errors.invalidEmail)))}}function Sq(e,t){e&1&&(d(0,"div"),C(1," Nombre es requerido. "),u())}function Iq(e,t){e&1&&(d(0,"div"),C(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),u())}function xq(e,t){if(e&1&&(d(0,"div",42),R(1,Sq,2,0,"div",32)(2,Iq,2,0,"div",32),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.userForm.get("name"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.userForm.get("name"))==null||n.errors==null)&&n.errors.required)&&((n=r.userForm.get("name"))==null||n.errors==null?null:n.errors.pattern))}}function Dq(e,t){e&1&&(d(0,"div"),C(1," Apellido es requerido. "),u())}function Mq(e,t){e&1&&(d(0,"div"),C(1," El apellido no debe contener n\xFAmeros ni s\xEDmbolos. "),u())}function Aq(e,t){if(e&1&&(d(0,"div",42),R(1,Dq,2,0,"div",32)(2,Mq,2,0,"div",32),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.userForm.get("surname"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",!(!((n=r.userForm.get("surname"))==null||n.errors==null)&&n.errors.required)&&((n=r.userForm.get("surname"))==null||n.errors==null?null:n.errors.pattern))}}function Tq(e,t){e&1&&(d(0,"div"),C(1," Tel\xE9fono es requerido. "),u())}function Fq(e,t){e&1&&(d(0,"div"),C(1," Formato de tel\xE9fono inv\xE1lido. "),u())}function Nq(e,t){if(e&1&&(d(0,"div",42),R(1,Tq,2,0,"div",32)(2,Fq,2,0,"div",32),u()),e&2){let i,n,r=j();b(),_("ngIf",(i=r.userForm.get("phone"))==null||i.errors==null?null:i.errors.required),b(),_("ngIf",(n=r.userForm.get("phone"))==null||n.errors==null?null:n.errors.invalidPhone)}}function Pq(e,t){e&1&&(d(0,"div",42),C(1," Ingrese una contrase\xF1a v\xE1lida. "),u())}function Oq(e,t){e&1&&(d(0,"div",42),C(1," Confirmar Contrase\xF1a es requerida. "),u())}function Rq(e,t){e&1&&(d(0,"div",42),C(1," Las contrase\xF1as no coinciden. "),u())}function Lq(e,t){if(e&1&&(d(0,"div"),R(1,Oq,2,0,"div",19)(2,Rq,2,0,"div",19),u()),e&2){let i,n,r=j(),o=vt(11);b(),_("ngIf",!((i=r.userForm.get("confirmPassword"))!=null&&i.value)&&(o.submitted||((i=r.userForm.get("confirmPassword"))==null?null:i.dirty)&&((i=r.userForm.get("confirmPassword"))==null?null:i.touched))),b(),_("ngIf",((n=r.userForm.get("confirmPassword"))==null?null:n.value)&&r.userForm.hasError("passwordMismatch")&&(o.submitted||((n=r.userForm.get("confirmPassword"))==null?null:n.dirty)||((n=r.userForm.get("confirmPassword"))==null?null:n.touched)))}}function kq(e,t){e&1&&(d(0,"div",42),C(1," Rol es requerido. "),u())}var Y3=(()=>{let t=class t{constructor(n,r){this.fb=n,this.UsersService=r,this.userInput={},this.close=new ot,this.userForm=this.fb.group({email:["",[se.required,Nr]],name:[{value:""},[se.required,se.pattern("[a-zA-Z ]*")]],surname:[{value:""},[se.required,se.pattern("[a-zA-Z ]*")]],phone:["",[se.required,Pr]],password:[""],confirmPassword:[""],role:["",se.required]},{validator:$u()})}ngOnInit(){let n=this.transformUserInput(this.userInput);this.userForm.patchValue(n)}onSubmit(){if(this.userForm.valid){let n=this.userInput.password;this.userForm.get("password")?.value!==""&&(n=this.userForm.get("password")?.value);let r={id:this.userInput.id,name:this.userForm.get("name")?.value,surname:this.userForm.get("surname")?.value,email:this.userForm.get("email")?.value,phone:this.userForm.get("phone")?.value,role:this.userForm.get("role")?.value,password:n};console.log("User to save:",r),this.UsersService.updateUser(r).subscribe(()=>{this.close.emit()})}else this.userForm.markAllAsTouched()}closeModal(){this.close.emit()}transformUserInput(n){return console.log("Data:",n),{id:n.id,name:n.name??"",surname:n.surname??"",email:n.email??"",phone:n.phone??"",password:"",role:n.role??""}}};t.\u0275fac=function(r){return new(r||t)(ee(ln),ee(er))},t.\u0275cmp=Re({type:t,selectors:[["app-edit-profile-modal"]],inputs:{userInput:"userInput"},outputs:{close:"close"},standalone:!0,features:[Ve],decls:87,vars:32,consts:[["aux","ngForm"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content","modal-content-main"],[1,"modal-header","d-flex","justify-content-center","align-items-center"],[1,"row","w-100"],[1,"col"],[1,"modal-title"],[1,"col","d-flex","justify-content-end"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[3,"ngSubmit","formGroup"],[1,"modal-body"],[1,"row"],[1,"form-group","row-container"],[1,"row","align-items-center"],[1,"col-1"],["for","email"],["type","email","id","email","name","email","formControlName","email",1,"form-control",3,"ngClass"],[1,"error-container"],["class","text-danger",4,"ngIf"],[1,"col-2"],["for","name"],["type","text","id","name","name","name","formControlName","name",1,"form-control",3,"ngClass"],["for","surname"],["type","text","id","surname","name","surname","formControlName","surname",1,"form-control",3,"ngClass"],["for","phone"],["type","text","id","phone","name","phone","formControlName","phone",1,"form-control",3,"ngClass"],["for","password"],["type","password","id","password","name","password","formControlName","password",1,"form-control",3,"ngClass"],[1,"col-4"],["for","confirmPassword"],["type","password","id","confirmPassword","formControlName","confirmPassword",1,"form-control",3,"ngClass"],[4,"ngIf"],["for","role"],[1,"d-flex","flex-column","align-items-center"],[1,"form-check"],["type","radio","id","roleAdmin","name","role","value","Admin","formControlName","role",1,"form-check-input",3,"ngClass"],["for","roleAdmin",1,"form-check-label"],["type","radio","id","roleUser","name","role","value","User","formControlName","role",1,"form-check-input",3,"ngClass"],["for","roleUser",1,"form-check-label"],[1,"modal-footer","justify-content-center"],["type","submit",1,"btn","btn-custom"],[1,"text-danger"]],template:function(r,o){if(r&1){let s=je();d(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"h5",7),C(7,"Editar Perfil"),u()(),d(8,"div",8)(9,"button",9),X("click",function(){return fe(s),he(o.closeModal())}),u()()()(),d(10,"form",10,0),X("ngSubmit",function(){return fe(s),he(o.onSubmit())}),d(12,"div",11)(13,"div",12)(14,"div",6)(15,"div",13)(16,"div",14)(17,"div",15)(18,"label",16),C(19,"Email"),u()(),d(20,"div",6),z(21,"input",17),u(),d(22,"div",18),R(23,Eq,3,2,"div",19),u()()(),d(24,"div",13)(25,"div",14)(26,"div",20)(27,"label",21),C(28,"Nombre"),u()(),d(29,"div",6),z(30,"input",22),u(),d(31,"div",18),R(32,xq,3,2,"div",19),u()()(),d(33,"div",13)(34,"div",14)(35,"div",20)(36,"label",23),C(37,"Apellido"),u()(),d(38,"div",6),z(39,"input",24),u(),d(40,"div",18),R(41,Aq,3,2,"div",19),u()()(),d(42,"div",13)(43,"div",14)(44,"div",20)(45,"label",25),C(46,"Tel\xE9fono"),u()(),d(47,"div",6),z(48,"input",26),u(),d(49,"div",18),R(50,Nq,3,2,"div",19),u()()()(),d(51,"div",6)(52,"div",13)(53,"div",14)(54,"div",20)(55,"label",27),C(56,"Contrase\xF1a"),u()(),d(57,"div",6),z(58,"input",28),u(),d(59,"div",18),R(60,Pq,2,0,"div",19),u()()(),d(61,"div",13)(62,"div",14)(63,"div",29)(64,"label",30),C(65,"Confirmar Contrase\xF1a"),u()(),d(66,"div",6),z(67,"input",31),u(),d(68,"div",18),R(69,Lq,3,2,"div",32),u()()(),d(70,"div",13)(71,"label",33),C(72,"Rol:"),u(),d(73,"div",34)(74,"div",35),z(75,"input",36),d(76,"label",37),C(77,"Admin"),u()(),d(78,"div",35),z(79,"input",38),d(80,"label",39),C(81,"User"),u()()(),d(82,"div",18),R(83,kq,2,0,"div",19),u()()()()(),d(84,"div",40)(85,"button",41),C(86,"GUARDAR"),u()()()()()()}if(r&2){let s,a,l,p,h,v,w,g,S,I,A,x,P,U,q,Q=vt(11);b(10),_("formGroup",o.userForm),b(11),_("ngClass",ye(16,wl,(((s=o.userForm.get("email"))==null?null:s.dirty)||((s=o.userForm.get("email"))==null?null:s.touched)||Q.submitted)&&((s=o.userForm.get("email"))==null?null:s.invalid))),b(2),_("ngIf",Q.submitted||((a=o.userForm.get("email"))==null?null:a.invalid)&&(((a=o.userForm.get("email"))==null?null:a.dirty)||((a=o.userForm.get("email"))==null?null:a.touched))),b(7),_("ngClass",ye(18,wl,(((l=o.userForm.get("name"))==null?null:l.dirty)||((l=o.userForm.get("name"))==null?null:l.touched)||Q.submitted)&&((l=o.userForm.get("name"))==null?null:l.invalid))),b(2),_("ngIf",Q.submitted||((p=o.userForm.get("name"))==null?null:p.invalid)&&(((p=o.userForm.get("name"))==null?null:p.dirty)||((p=o.userForm.get("name"))==null?null:p.touched))),b(7),_("ngClass",ye(20,wl,(((h=o.userForm.get("surname"))==null?null:h.dirty)||((h=o.userForm.get("surname"))==null?null:h.touched)||Q.submitted)&&((h=o.userForm.get("surname"))==null?null:h.invalid))),b(2),_("ngIf",Q.submitted||((v=o.userForm.get("surname"))==null?null:v.invalid)&&(((v=o.userForm.get("surname"))==null?null:v.dirty)||((v=o.userForm.get("surname"))==null?null:v.touched))),b(7),_("ngClass",ye(22,wl,(((w=o.userForm.get("phone"))==null?null:w.dirty)||((w=o.userForm.get("phone"))==null?null:w.touched)||Q.submitted)&&((w=o.userForm.get("phone"))==null?null:w.invalid))),b(2),_("ngIf",((g=o.userForm.get("phone"))==null?null:g.invalid)&&(((g=o.userForm.get("phone"))==null?null:g.dirty)||((g=o.userForm.get("phone"))==null?null:g.touched))||Q.submitted&&((g=o.userForm.get("phone"))==null?null:g.invalid)),b(8),_("ngClass",ye(24,wl,(((S=o.userForm.get("password"))==null?null:S.dirty)||((S=o.userForm.get("password"))==null?null:S.touched)||Q.submitted)&&((S=o.userForm.get("password"))==null?null:S.invalid))),b(2),_("ngIf",((I=o.userForm.get("password"))==null?null:I.value)&&((I=o.userForm.get("password"))==null?null:I.invalid)&&(((I=o.userForm.get("password"))==null?null:I.dirty)||((I=o.userForm.get("password"))==null?null:I.touched)||Q.submitted)),b(7),_("ngClass",ye(26,wl,(((A=o.userForm.get("confirmPassword"))==null?null:A.dirty)||((A=o.userForm.get("confirmPassword"))==null?null:A.touched)||Q.submitted)&&((A=o.userForm.get("confirmPassword"))==null?null:A.invalid))),b(2),_("ngIf",(x=o.userForm.get("password"))==null?null:x.value),b(6),_("ngClass",ye(28,wl,(((P=o.userForm.get("role"))==null?null:P.dirty)||((P=o.userForm.get("role"))==null?null:P.touched)||Q.submitted)&&((P=o.userForm.get("role"))==null?null:P.invalid))),b(4),_("ngClass",ye(30,wl,(((U=o.userForm.get("role"))==null?null:U.dirty)||((U=o.userForm.get("role"))==null?null:U.touched)||Q.submitted)&&((U=o.userForm.get("role"))==null?null:U.invalid))),b(4),_("ngIf",((q=o.userForm.get("role"))==null?null:q.invalid)&&(((q=o.userForm.get("role"))==null?null:q.dirty)||((q=o.userForm.get("role"))==null?null:q.touched))||Q.submitted&&((q=o.userForm.get("role"))==null?null:q.invalid))}},dependencies:[rt,kt,st,$t,an,Yt,rc,Xt,sn,en,nn,Vu],styles:[`@charset "UTF-8";.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content-main[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:496px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.row-container[_ngcontent-%COMP%]{position:relative;min-height:5em}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.form-group[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]{margin-bottom:10px}.modal-footer[_ngcontent-%COMP%]{border-top:none}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.custom-switch[_ngcontent-%COMP%]:focus{border-color:#1b5e20;box-shadow:0 0 0 .25rem #1b5e2040}.custom-switch[_ngcontent-%COMP%]:checked{background-color:#88ca5e;border-color:#1b5e20}.custom-switch[_ngcontent-%COMP%]:checked:before{background-color:#fff}.form-control[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important;font-size:1.2rem}
+/*# sourceMappingURL=edit-profile-modal.component-ADENO63L.css.map */`]});let e=t;return e})();function jq(e,t){if(e&1){let i=je();d(0,"app-edit-profile-modal",14),X("close",function(){fe(i);let r=j();return he(r.closeUserModal())}),u()}if(e&2){let i=j();_("userInput",i.user)}}var K3=(()=>{let t=class t{constructor(n,r){this.authService=n,this.userService=r,this.user={},this.openEditProfileModal=!1}ngOnInit(){this.userId=this.authService.getUserId(),this.userId&&this.getData()}openUserModal(){this.openEditProfileModal=!0}closeUserModal(){this.getData(),this.openEditProfileModal=!1}getData(){this.userService.getUsersById(this.userId).subscribe(n=>{this.user=n})}};t.\u0275fac=function(r){return new(r||t)(ee(qi),ee(er))},t.\u0275cmp=Re({type:t,selectors:[["app-profile"]],standalone:!0,features:[Ve],decls:41,vars:5,consts:[[1,"container-fluid","d-flex","flex-column","justify-content-center","align-items-center","vh-100"],[1,"col-flex","justify-content-center","align-items-center"],[1,"row","header-row"],[1,"col"],[1,"view-title"],[1,"col","d-flex","justify-content-end"],["type","button",1,"btn","btn-custom",3,"click"],[1,"card"],[1,"card-body"],[1,"row","mb-3"],[1,"subtitle"],[1,"card-text"],[1,"row"],[3,"userInput","close",4,"ngIf"],[3,"close","userInput"]],template:function(r,o){r&1&&(z(0,"app-navbar"),d(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"h1",4),C(6,"Mi Perfil"),u()(),d(7,"div",5)(8,"a",6),X("click",function(){return o.openUserModal()}),C(9,"EDITAR"),u()()(),d(10,"div",7)(11,"div",8)(12,"div",9)(13,"div",3)(14,"label",10),C(15,"Nombre:"),u()(),d(16,"div",3)(17,"p",11),C(18),u()()(),d(19,"div",9)(20,"div",3)(21,"label",10),C(22,"Apellido:"),u()(),d(23,"div",3)(24,"p",11),C(25),u()()(),d(26,"div",9)(27,"div",3)(28,"label",10),C(29,"Tel\xE9fono:"),u()(),d(30,"div",3)(31,"p",11),C(32),u()()(),d(33,"div",12)(34,"div",3)(35,"label",10),C(36,"Email:"),u()(),d(37,"div",3)(38,"p",11),C(39),u()()()()()()(),R(40,jq,1,1,"app-edit-profile-modal",13)),r&2&&(b(18),on(o.user.name),b(7),on(o.user.surname),b(7),on(o.user.phone),b(7),on(o.user.email),b(),_("ngIf",o.openEditProfileModal))},dependencies:[Fn,$t,rt,st,Y3],styles:[`[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/home.svg);background-size:cover;background-position:center;background-repeat:no-repeat}.view-title[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;color:#1b5e20;font-size:2.5rem;padding-left:.4rem}.header-row[_ngcontent-%COMP%]{padding-bottom:20px;align-items:center}.vh-100[_ngcontent-%COMP%]{height:90vh!important}.btn-custom[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1.5rem;color:#1b5e20}.body-container[_ngcontent-%COMP%]{position:relative;width:100%;min-height:220px;min-width:846px;background-color:#d2ffaa;display:flex;padding-top:1rem}.subtitle[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-size:1.3rem}.card-body[_ngcontent-%COMP%]{min-width:600px;background-color:#d2ffaa}.card-text[_ngcontent-%COMP%]{font-size:1.3rem}
+/*# sourceMappingURL=profile.component-PE4QUQJX.css.map */`]});let e=t;return e})();var Q3=[{path:"",component:px,canActivate:[W3],pathMatch:"full"},{path:"home",component:hx,canActivate:[sr]},{path:"inventory",component:Sx,canActivate:[sr]},{path:"production",component:Dx,canActivate:[sr]},{path:"production/add",component:z3,canActivate:[sr]},{path:"production/:id",component:Ag,canActivate:[sr]},{path:"production/:id/modify",component:G3,canActivate:[sr]},{path:"recipes",component:qx,canActivate:[sr]},{path:"recipes/add",component:t3,canActivate:[sr]},{path:"recipes/:id",component:$3,canActivate:[sr]},{path:"recipes/:id/modify",component:i3,canActivate:[sr]},{path:"history",component:Hx,canActivate:[sr]},{path:"users",component:Wx,canActivate:[sr]},{path:"providers",component:Qx,canActivate:[sr]},{path:"clients",component:e3,canActivate:[sr]},{path:"profile",component:K3,canActivate:[sr]},{path:"**",redirectTo:""}];var Z3=(e,t)=>{let i=Pe(qi);if(e.url.includes("/login"))return t(e);let n=i.getToken();if(n){let r=e.clone({setHeaders:{Authorization:`Bearer ${n}`}});return t(r)}return t(e)};var J3={providers:[DI(Q3),VS(),xS(MS(),DS([Z3]))]};var X3=(()=>{let t=class t{constructor(){this.title="SalaComunitaria"}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=Re({type:t,selectors:[["app-root"]],standalone:!0,features:[Ve],decls:1,vars:0,template:function(r,o){r&1&&z(0,"router-outlet")},dependencies:[U2]});let e=t;return e})();kS(X3,J3).catch(e=>console.error(e));
+//# sourceMappingURL=main-4GNIG5GO.js.map
diff --git a/src/main/webapp/main-4GNIG5GO.js.map b/src/main/webapp/main-4GNIG5GO.js.map
new file mode 100644
index 0000000..935d0f0
--- /dev/null
+++ b/src/main/webapp/main-4GNIG5GO.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["node_modules/@angular/core/fesm2022/primitives/signals.mjs","node_modules/rxjs/dist/esm/internal/util/isFunction.js","node_modules/rxjs/dist/esm/internal/util/createErrorClass.js","node_modules/rxjs/dist/esm/internal/util/UnsubscriptionError.js","node_modules/rxjs/dist/esm/internal/util/arrRemove.js","node_modules/rxjs/dist/esm/internal/Subscription.js","node_modules/rxjs/dist/esm/internal/config.js","node_modules/rxjs/dist/esm/internal/scheduler/timeoutProvider.js","node_modules/rxjs/dist/esm/internal/util/reportUnhandledError.js","node_modules/rxjs/dist/esm/internal/util/noop.js","node_modules/rxjs/dist/esm/internal/NotificationFactories.js","node_modules/rxjs/dist/esm/internal/util/errorContext.js","node_modules/rxjs/dist/esm/internal/Subscriber.js","node_modules/rxjs/dist/esm/internal/symbol/observable.js","node_modules/rxjs/dist/esm/internal/util/identity.js","node_modules/rxjs/dist/esm/internal/util/pipe.js","node_modules/rxjs/dist/esm/internal/Observable.js","node_modules/rxjs/dist/esm/internal/util/lift.js","node_modules/rxjs/dist/esm/internal/operators/OperatorSubscriber.js","node_modules/rxjs/dist/esm/internal/operators/refCount.js","node_modules/rxjs/dist/esm/internal/observable/ConnectableObservable.js","node_modules/rxjs/dist/esm/internal/util/ObjectUnsubscribedError.js","node_modules/rxjs/dist/esm/internal/Subject.js","node_modules/rxjs/dist/esm/internal/BehaviorSubject.js","node_modules/rxjs/dist/esm/internal/scheduler/dateTimestampProvider.js","node_modules/rxjs/dist/esm/internal/scheduler/Action.js","node_modules/rxjs/dist/esm/internal/scheduler/intervalProvider.js","node_modules/rxjs/dist/esm/internal/scheduler/AsyncAction.js","node_modules/rxjs/dist/esm/internal/Scheduler.js","node_modules/rxjs/dist/esm/internal/scheduler/AsyncScheduler.js","node_modules/rxjs/dist/esm/internal/scheduler/async.js","node_modules/rxjs/dist/esm/internal/observable/empty.js","node_modules/rxjs/dist/esm/internal/util/isScheduler.js","node_modules/rxjs/dist/esm/internal/util/args.js","node_modules/tslib/tslib.es6.mjs","node_modules/rxjs/dist/esm/internal/util/isArrayLike.js","node_modules/rxjs/dist/esm/internal/util/isPromise.js","node_modules/rxjs/dist/esm/internal/util/isInteropObservable.js","node_modules/rxjs/dist/esm/internal/util/isAsyncIterable.js","node_modules/rxjs/dist/esm/internal/util/throwUnobservableError.js","node_modules/rxjs/dist/esm/internal/symbol/iterator.js","node_modules/rxjs/dist/esm/internal/util/isIterable.js","node_modules/rxjs/dist/esm/internal/util/isReadableStreamLike.js","node_modules/rxjs/dist/esm/internal/observable/innerFrom.js","node_modules/rxjs/dist/esm/internal/util/executeSchedule.js","node_modules/rxjs/dist/esm/internal/operators/observeOn.js","node_modules/rxjs/dist/esm/internal/operators/subscribeOn.js","node_modules/rxjs/dist/esm/internal/scheduled/scheduleObservable.js","node_modules/rxjs/dist/esm/internal/scheduled/schedulePromise.js","node_modules/rxjs/dist/esm/internal/scheduled/scheduleArray.js","node_modules/rxjs/dist/esm/internal/scheduled/scheduleIterable.js","node_modules/rxjs/dist/esm/internal/scheduled/scheduleAsyncIterable.js","node_modules/rxjs/dist/esm/internal/scheduled/scheduleReadableStreamLike.js","node_modules/rxjs/dist/esm/internal/scheduled/scheduled.js","node_modules/rxjs/dist/esm/internal/observable/from.js","node_modules/rxjs/dist/esm/internal/observable/of.js","node_modules/rxjs/dist/esm/internal/observable/throwError.js","node_modules/rxjs/dist/esm/internal/util/isObservable.js","node_modules/rxjs/dist/esm/internal/util/EmptyError.js","node_modules/rxjs/dist/esm/internal/util/isDate.js","node_modules/rxjs/dist/esm/internal/operators/map.js","node_modules/rxjs/dist/esm/internal/util/mapOneOrManyArgs.js","node_modules/rxjs/dist/esm/internal/util/argsArgArrayOrObject.js","node_modules/rxjs/dist/esm/internal/util/createObject.js","node_modules/rxjs/dist/esm/internal/observable/combineLatest.js","node_modules/rxjs/dist/esm/internal/operators/mergeInternals.js","node_modules/rxjs/dist/esm/internal/operators/mergeMap.js","node_modules/rxjs/dist/esm/internal/operators/mergeAll.js","node_modules/rxjs/dist/esm/internal/operators/concatAll.js","node_modules/rxjs/dist/esm/internal/observable/concat.js","node_modules/rxjs/dist/esm/internal/observable/defer.js","node_modules/rxjs/dist/esm/internal/observable/forkJoin.js","node_modules/rxjs/dist/esm/internal/observable/timer.js","node_modules/rxjs/dist/esm/internal/operators/filter.js","node_modules/rxjs/dist/esm/internal/operators/catchError.js","node_modules/rxjs/dist/esm/internal/operators/scanInternals.js","node_modules/rxjs/dist/esm/internal/operators/concatMap.js","node_modules/rxjs/dist/esm/internal/operators/defaultIfEmpty.js","node_modules/rxjs/dist/esm/internal/operators/take.js","node_modules/rxjs/dist/esm/internal/operators/ignoreElements.js","node_modules/rxjs/dist/esm/internal/operators/mapTo.js","node_modules/rxjs/dist/esm/internal/operators/delayWhen.js","node_modules/rxjs/dist/esm/internal/operators/delay.js","node_modules/rxjs/dist/esm/internal/operators/throwIfEmpty.js","node_modules/rxjs/dist/esm/internal/operators/finalize.js","node_modules/rxjs/dist/esm/internal/operators/first.js","node_modules/rxjs/dist/esm/internal/operators/takeLast.js","node_modules/rxjs/dist/esm/internal/operators/last.js","node_modules/rxjs/dist/esm/internal/operators/retryWhen.js","node_modules/rxjs/dist/esm/internal/operators/scan.js","node_modules/rxjs/dist/esm/internal/operators/startWith.js","node_modules/rxjs/dist/esm/internal/operators/switchMap.js","node_modules/rxjs/dist/esm/internal/operators/takeUntil.js","node_modules/rxjs/dist/esm/internal/operators/tap.js","node_modules/@angular/core/fesm2022/core.mjs","node_modules/@angular/common/fesm2022/common.mjs","node_modules/@angular/common/fesm2022/http.mjs","node_modules/@angular/platform-browser/fesm2022/platform-browser.mjs","node_modules/@angular/router/fesm2022/router.mjs","node_modules/@angular/forms/fesm2022/forms.mjs","src/evironments/environment.ts","src/app/core/services/auth/auth.service.ts","src/app/views/login/login.component.ts","src/app/views/login/login.component.html","src/app/shared/components/navbar/navbar.component.ts","src/app/shared/components/navbar/navbar.component.html","src/app/core/utils/api-error-handler.utils.ts","src/app/core/utils/mapping.utils.ts","src/app/core/services/api/users.service.ts","src/app/views/home/home.component.ts","src/app/views/home/home.component.html","src/app/core/utils/table-data.utils.ts","src/app/shared/components/table/table.component.ts","src/app/shared/components/table/table.component.html","src/app/shared/components/search-bar/search-bar.component.ts","src/app/shared/components/search-bar/search-bar.component.html","src/app/views/inventory/decision-modal/decision-modal.component.ts","src/app/views/inventory/decision-modal/decision-modal.component.html","src/app/shared/enums/units.enum.ts","src/app/core/utils/validators.ts","src/app/core/services/api/inputs.service.ts","src/app/core/services/api/rawmaterials.service.ts","src/app/core/services/enums/inventory.service.ts","src/app/core/services/api/providers.service.ts","src/app/views/inventory/add-input/add-input.component.ts","src/app/views/inventory/add-input/add-input.component.html","src/app/views/inventory/add-raw-material/add-raw-material.component.ts","src/app/views/inventory/add-raw-material/add-raw-material.component.html","src/app/shared/components/delete-modal/delete-modal.component.ts","src/app/shared/components/delete-modal/delete-modal.component.html","src/app/views/inventory/raw-material/raw-material.component.ts","src/app/views/inventory/raw-material/raw-material.component.html","src/app/views/inventory/inputs/inputs.component.ts","src/app/views/inventory/inputs/inputs.component.html","src/app/views/inventory/inventory.component.ts","src/app/views/inventory/inventory.component.html","src/app/core/services/api/batches.service.ts","src/app/views/production/view-batch/view-batch.component.ts","src/app/views/production/view-batch/view-batch.component.html","src/app/core/services/api/saleschannels.service.ts","src/app/core/services/api/events.service.ts","src/app/views/production/sell-batch/sell-batch.component.ts","src/app/views/production/sell-batch/sell-batch.component.html","src/app/views/production/production.component.ts","src/app/views/production/production.component.html","src/app/views/recipes/card/card.component.ts","src/app/views/recipes/card/card.component.html","node_modules/primeng/fesm2022/primeng-utils.mjs","node_modules/primeng/fesm2022/primeng-api.mjs","node_modules/primeng/fesm2022/primeng-baseicon.mjs","node_modules/primeng/fesm2022/primeng-icons-chevrondown.mjs","node_modules/primeng/fesm2022/primeng-icons-chevronleft.mjs","node_modules/primeng/fesm2022/primeng-icons-chevronright.mjs","node_modules/primeng/fesm2022/primeng-icons-chevronup.mjs","node_modules/primeng/fesm2022/primeng-dom.mjs","node_modules/primeng/fesm2022/primeng-ripple.mjs","node_modules/primeng/fesm2022/primeng-carousel.mjs","node_modules/primeng/fesm2022/primeng-autofocus.mjs","node_modules/primeng/fesm2022/primeng-icons-spinner.mjs","node_modules/primeng/fesm2022/primeng-button.mjs","node_modules/primeng/fesm2022/primeng-tag.mjs","src/app/views/recipes/carousel/carousel.component.ts","src/app/views/recipes/carousel/carousel.component.html","src/app/core/services/api/recipes.service.ts","src/app/views/recipes/recipes.component.ts","src/app/views/recipes/recipes.component.html","src/app/views/history/event/event.component.ts","src/app/views/history/event/event.component.html","src/app/views/history/history.component.ts","src/app/views/history/history.component.html","src/app/views/users/add-user/add-user.component.ts","src/app/views/users/add-user/add-user.component.html","src/app/views/users/user/user.component.ts","src/app/views/users/user/user.component.html","src/app/views/users/users.component.ts","src/app/views/users/users.component.html","src/app/views/providers/add-provider/add-provider.component.ts","src/app/views/providers/add-provider/add-provider.component.html","src/app/views/providers/provider/provider.component.ts","src/app/views/providers/provider/provider.component.html","src/app/views/providers/providers.component.ts","src/app/views/providers/providers.component.html","src/app/views/clients/add-client/add-client.component.ts","src/app/views/clients/add-client/add-client.component.html","src/app/views/clients/client/client.component.ts","src/app/views/clients/client/client.component.html","src/app/core/services/api/clients.service.ts","src/app/views/clients/clients.component.ts","src/app/views/clients/clients.component.html","node_modules/primeng/fesm2022/primeng-editor.mjs","src/app/views/recipes/add-recipe/add-recipe.component.ts","src/app/views/recipes/add-recipe/add-recipe.component.html","src/app/views/recipes/modify-recipe/modify-recipe.component.ts","src/app/views/recipes/modify-recipe/modify-recipe.component.html","src/app/core/pipes/new-linew-to-br.pipe.ts","node_modules/fflate/esm/browser.js","node_modules/jspdf/dist/jspdf.es.min.js","src/app/views/recipes/view-recipe/view-recipe.component.ts","src/app/views/recipes/view-recipe/view-recipe.component.html","src/app/core/services/enums/categories.service.ts","src/app/views/production/add-batch/add-batch.component.ts","src/app/views/production/add-batch/add-batch.component.html","src/app/core/guards/auth.guard.ts","src/app/views/production/modify-batch/modify-batch.component.ts","src/app/views/production/modify-batch/modify-batch.component.html","src/app/core/guards/all-ready-log.guard.ts","src/app/views/profile/editProfile/edit-profile-modal/edit-profile-modal.component.ts","src/app/views/profile/editProfile/edit-profile-modal/edit-profile-modal.component.html","src/app/views/profile/profile.component.ts","src/app/views/profile/profile.component.html","src/app/app.routes.ts","src/app/core/token/auth.interceptor.ts","src/app/app.config.ts","src/app/app.component.ts","src/app/app.component.html","src/main.ts"],"sourcesContent":["/**\n * @license Angular v17.3.11\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\n/**\n * The default equality function used for `signal` and `computed`, which uses referential equality.\n */\nfunction defaultEquals(a, b) {\n  return Object.is(a, b);\n}\n\n/**\n * The currently active consumer `ReactiveNode`, if running code in a reactive context.\n *\n * Change this via `setActiveConsumer`.\n */\nlet activeConsumer = null;\nlet inNotificationPhase = false;\n/**\n * Global epoch counter. Incremented whenever a source signal is set.\n */\nlet epoch = 1;\n/**\n * Symbol used to tell `Signal`s apart from other functions.\n *\n * This can be used to auto-unwrap signals in various cases, or to auto-wrap non-signal values.\n */\nconst SIGNAL = /* @__PURE__ */Symbol('SIGNAL');\nfunction setActiveConsumer(consumer) {\n  const prev = activeConsumer;\n  activeConsumer = consumer;\n  return prev;\n}\nfunction getActiveConsumer() {\n  return activeConsumer;\n}\nfunction isInNotificationPhase() {\n  return inNotificationPhase;\n}\nfunction isReactive(value) {\n  return value[SIGNAL] !== undefined;\n}\nconst REACTIVE_NODE = {\n  version: 0,\n  lastCleanEpoch: 0,\n  dirty: false,\n  producerNode: undefined,\n  producerLastReadVersion: undefined,\n  producerIndexOfThis: undefined,\n  nextProducerIndex: 0,\n  liveConsumerNode: undefined,\n  liveConsumerIndexOfThis: undefined,\n  consumerAllowSignalWrites: false,\n  consumerIsAlwaysLive: false,\n  producerMustRecompute: () => false,\n  producerRecomputeValue: () => {},\n  consumerMarkedDirty: () => {},\n  consumerOnSignalRead: () => {}\n};\n/**\n * Called by implementations when a producer's signal is read.\n */\nfunction producerAccessed(node) {\n  if (inNotificationPhase) {\n    throw new Error(typeof ngDevMode !== 'undefined' && ngDevMode ? `Assertion error: signal read during notification phase` : '');\n  }\n  if (activeConsumer === null) {\n    // Accessed outside of a reactive context, so nothing to record.\n    return;\n  }\n  activeConsumer.consumerOnSignalRead(node);\n  // This producer is the `idx`th dependency of `activeConsumer`.\n  const idx = activeConsumer.nextProducerIndex++;\n  assertConsumerNode(activeConsumer);\n  if (idx < activeConsumer.producerNode.length && activeConsumer.producerNode[idx] !== node) {\n    // There's been a change in producers since the last execution of `activeConsumer`.\n    // `activeConsumer.producerNode[idx]` holds a stale dependency which will be be removed and\n    // replaced with `this`.\n    //\n    // If `activeConsumer` isn't live, then this is a no-op, since we can replace the producer in\n    // `activeConsumer.producerNode` directly. However, if `activeConsumer` is live, then we need\n    // to remove it from the stale producer's `liveConsumer`s.\n    if (consumerIsLive(activeConsumer)) {\n      const staleProducer = activeConsumer.producerNode[idx];\n      producerRemoveLiveConsumerAtIndex(staleProducer, activeConsumer.producerIndexOfThis[idx]);\n      // At this point, the only record of `staleProducer` is the reference at\n      // `activeConsumer.producerNode[idx]` which will be overwritten below.\n    }\n  }\n  if (activeConsumer.producerNode[idx] !== node) {\n    // We're a new dependency of the consumer (at `idx`).\n    activeConsumer.producerNode[idx] = node;\n    // If the active consumer is live, then add it as a live consumer. If not, then use 0 as a\n    // placeholder value.\n    activeConsumer.producerIndexOfThis[idx] = consumerIsLive(activeConsumer) ? producerAddLiveConsumer(node, activeConsumer, idx) : 0;\n  }\n  activeConsumer.producerLastReadVersion[idx] = node.version;\n}\n/**\n * Increment the global epoch counter.\n *\n * Called by source producers (that is, not computeds) whenever their values change.\n */\nfunction producerIncrementEpoch() {\n  epoch++;\n}\n/**\n * Ensure this producer's `version` is up-to-date.\n */\nfunction producerUpdateValueVersion(node) {\n  if (consumerIsLive(node) && !node.dirty) {\n    // A live consumer will be marked dirty by producers, so a clean state means that its version\n    // is guaranteed to be up-to-date.\n    return;\n  }\n  if (!node.dirty && node.lastCleanEpoch === epoch) {\n    // Even non-live consumers can skip polling if they previously found themselves to be clean at\n    // the current epoch, since their dependencies could not possibly have changed (such a change\n    // would've increased the epoch).\n    return;\n  }\n  if (!node.producerMustRecompute(node) && !consumerPollProducersForChange(node)) {\n    // None of our producers report a change since the last time they were read, so no\n    // recomputation of our value is necessary, and we can consider ourselves clean.\n    node.dirty = false;\n    node.lastCleanEpoch = epoch;\n    return;\n  }\n  node.producerRecomputeValue(node);\n  // After recomputing the value, we're no longer dirty.\n  node.dirty = false;\n  node.lastCleanEpoch = epoch;\n}\n/**\n * Propagate a dirty notification to live consumers of this producer.\n */\nfunction producerNotifyConsumers(node) {\n  if (node.liveConsumerNode === undefined) {\n    return;\n  }\n  // Prevent signal reads when we're updating the graph\n  const prev = inNotificationPhase;\n  inNotificationPhase = true;\n  try {\n    for (const consumer of node.liveConsumerNode) {\n      if (!consumer.dirty) {\n        consumerMarkDirty(consumer);\n      }\n    }\n  } finally {\n    inNotificationPhase = prev;\n  }\n}\n/**\n * Whether this `ReactiveNode` in its producer capacity is currently allowed to initiate updates,\n * based on the current consumer context.\n */\nfunction producerUpdatesAllowed() {\n  return activeConsumer?.consumerAllowSignalWrites !== false;\n}\nfunction consumerMarkDirty(node) {\n  node.dirty = true;\n  producerNotifyConsumers(node);\n  node.consumerMarkedDirty?.(node);\n}\n/**\n * Prepare this consumer to run a computation in its reactive context.\n *\n * Must be called by subclasses which represent reactive computations, before those computations\n * begin.\n */\nfunction consumerBeforeComputation(node) {\n  node && (node.nextProducerIndex = 0);\n  return setActiveConsumer(node);\n}\n/**\n * Finalize this consumer's state after a reactive computation has run.\n *\n * Must be called by subclasses which represent reactive computations, after those computations\n * have finished.\n */\nfunction consumerAfterComputation(node, prevConsumer) {\n  setActiveConsumer(prevConsumer);\n  if (!node || node.producerNode === undefined || node.producerIndexOfThis === undefined || node.producerLastReadVersion === undefined) {\n    return;\n  }\n  if (consumerIsLive(node)) {\n    // For live consumers, we need to remove the producer -> consumer edge for any stale producers\n    // which weren't dependencies after the recomputation.\n    for (let i = node.nextProducerIndex; i < node.producerNode.length; i++) {\n      producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);\n    }\n  }\n  // Truncate the producer tracking arrays.\n  // Perf note: this is essentially truncating the length to `node.nextProducerIndex`, but\n  // benchmarking has shown that individual pop operations are faster.\n  while (node.producerNode.length > node.nextProducerIndex) {\n    node.producerNode.pop();\n    node.producerLastReadVersion.pop();\n    node.producerIndexOfThis.pop();\n  }\n}\n/**\n * Determine whether this consumer has any dependencies which have changed since the last time\n * they were read.\n */\nfunction consumerPollProducersForChange(node) {\n  assertConsumerNode(node);\n  // Poll producers for change.\n  for (let i = 0; i < node.producerNode.length; i++) {\n    const producer = node.producerNode[i];\n    const seenVersion = node.producerLastReadVersion[i];\n    // First check the versions. A mismatch means that the producer's value is known to have\n    // changed since the last time we read it.\n    if (seenVersion !== producer.version) {\n      return true;\n    }\n    // The producer's version is the same as the last time we read it, but it might itself be\n    // stale. Force the producer to recompute its version (calculating a new value if necessary).\n    producerUpdateValueVersion(producer);\n    // Now when we do this check, `producer.version` is guaranteed to be up to date, so if the\n    // versions still match then it has not changed since the last time we read it.\n    if (seenVersion !== producer.version) {\n      return true;\n    }\n  }\n  return false;\n}\n/**\n * Disconnect this consumer from the graph.\n */\nfunction consumerDestroy(node) {\n  assertConsumerNode(node);\n  if (consumerIsLive(node)) {\n    // Drop all connections from the graph to this node.\n    for (let i = 0; i < node.producerNode.length; i++) {\n      producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);\n    }\n  }\n  // Truncate all the arrays to drop all connection from this node to the graph.\n  node.producerNode.length = node.producerLastReadVersion.length = node.producerIndexOfThis.length = 0;\n  if (node.liveConsumerNode) {\n    node.liveConsumerNode.length = node.liveConsumerIndexOfThis.length = 0;\n  }\n}\n/**\n * Add `consumer` as a live consumer of this node.\n *\n * Note that this operation is potentially transitive. If this node becomes live, then it becomes\n * a live consumer of all of its current producers.\n */\nfunction producerAddLiveConsumer(node, consumer, indexOfThis) {\n  assertProducerNode(node);\n  assertConsumerNode(node);\n  if (node.liveConsumerNode.length === 0) {\n    // When going from 0 to 1 live consumers, we become a live consumer to our producers.\n    for (let i = 0; i < node.producerNode.length; i++) {\n      node.producerIndexOfThis[i] = producerAddLiveConsumer(node.producerNode[i], node, i);\n    }\n  }\n  node.liveConsumerIndexOfThis.push(indexOfThis);\n  return node.liveConsumerNode.push(consumer) - 1;\n}\n/**\n * Remove the live consumer at `idx`.\n */\nfunction producerRemoveLiveConsumerAtIndex(node, idx) {\n  assertProducerNode(node);\n  assertConsumerNode(node);\n  if (typeof ngDevMode !== 'undefined' && ngDevMode && idx >= node.liveConsumerNode.length) {\n    throw new Error(`Assertion error: active consumer index ${idx} is out of bounds of ${node.liveConsumerNode.length} consumers)`);\n  }\n  if (node.liveConsumerNode.length === 1) {\n    // When removing the last live consumer, we will no longer be live. We need to remove\n    // ourselves from our producers' tracking (which may cause consumer-producers to lose\n    // liveness as well).\n    for (let i = 0; i < node.producerNode.length; i++) {\n      producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);\n    }\n  }\n  // Move the last value of `liveConsumers` into `idx`. Note that if there's only a single\n  // live consumer, this is a no-op.\n  const lastIdx = node.liveConsumerNode.length - 1;\n  node.liveConsumerNode[idx] = node.liveConsumerNode[lastIdx];\n  node.liveConsumerIndexOfThis[idx] = node.liveConsumerIndexOfThis[lastIdx];\n  // Truncate the array.\n  node.liveConsumerNode.length--;\n  node.liveConsumerIndexOfThis.length--;\n  // If the index is still valid, then we need to fix the index pointer from the producer to this\n  // consumer, and update it from `lastIdx` to `idx` (accounting for the move above).\n  if (idx < node.liveConsumerNode.length) {\n    const idxProducer = node.liveConsumerIndexOfThis[idx];\n    const consumer = node.liveConsumerNode[idx];\n    assertConsumerNode(consumer);\n    consumer.producerIndexOfThis[idxProducer] = idx;\n  }\n}\nfunction consumerIsLive(node) {\n  return node.consumerIsAlwaysLive || (node?.liveConsumerNode?.length ?? 0) > 0;\n}\nfunction assertConsumerNode(node) {\n  node.producerNode ??= [];\n  node.producerIndexOfThis ??= [];\n  node.producerLastReadVersion ??= [];\n}\nfunction assertProducerNode(node) {\n  node.liveConsumerNode ??= [];\n  node.liveConsumerIndexOfThis ??= [];\n}\n\n/**\n * Create a computed signal which derives a reactive value from an expression.\n */\nfunction createComputed(computation) {\n  const node = Object.create(COMPUTED_NODE);\n  node.computation = computation;\n  const computed = () => {\n    // Check if the value needs updating before returning it.\n    producerUpdateValueVersion(node);\n    // Record that someone looked at this signal.\n    producerAccessed(node);\n    if (node.value === ERRORED) {\n      throw node.error;\n    }\n    return node.value;\n  };\n  computed[SIGNAL] = node;\n  return computed;\n}\n/**\n * A dedicated symbol used before a computed value has been calculated for the first time.\n * Explicitly typed as `any` so we can use it as signal's value.\n */\nconst UNSET = /* @__PURE__ */Symbol('UNSET');\n/**\n * A dedicated symbol used in place of a computed signal value to indicate that a given computation\n * is in progress. Used to detect cycles in computation chains.\n * Explicitly typed as `any` so we can use it as signal's value.\n */\nconst COMPUTING = /* @__PURE__ */Symbol('COMPUTING');\n/**\n * A dedicated symbol used in place of a computed signal value to indicate that a given computation\n * failed. The thrown error is cached until the computation gets dirty again.\n * Explicitly typed as `any` so we can use it as signal's value.\n */\nconst ERRORED = /* @__PURE__ */Symbol('ERRORED');\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst COMPUTED_NODE = /* @__PURE__ */(() => {\n  return {\n    ...REACTIVE_NODE,\n    value: UNSET,\n    dirty: true,\n    error: null,\n    equal: defaultEquals,\n    producerMustRecompute(node) {\n      // Force a recomputation if there's no current value, or if the current value is in the\n      // process of being calculated (which should throw an error).\n      return node.value === UNSET || node.value === COMPUTING;\n    },\n    producerRecomputeValue(node) {\n      if (node.value === COMPUTING) {\n        // Our computation somehow led to a cyclic read of itself.\n        throw new Error('Detected cycle in computations.');\n      }\n      const oldValue = node.value;\n      node.value = COMPUTING;\n      const prevConsumer = consumerBeforeComputation(node);\n      let newValue;\n      try {\n        newValue = node.computation();\n      } catch (err) {\n        newValue = ERRORED;\n        node.error = err;\n      } finally {\n        consumerAfterComputation(node, prevConsumer);\n      }\n      if (oldValue !== UNSET && oldValue !== ERRORED && newValue !== ERRORED && node.equal(oldValue, newValue)) {\n        // No change to `valueVersion` - old and new values are\n        // semantically equivalent.\n        node.value = oldValue;\n        return;\n      }\n      node.value = newValue;\n      node.version++;\n    }\n  };\n})();\nfunction defaultThrowError() {\n  throw new Error();\n}\nlet throwInvalidWriteToSignalErrorFn = defaultThrowError;\nfunction throwInvalidWriteToSignalError() {\n  throwInvalidWriteToSignalErrorFn();\n}\nfunction setThrowInvalidWriteToSignalError(fn) {\n  throwInvalidWriteToSignalErrorFn = fn;\n}\n\n/**\n * If set, called after `WritableSignal`s are updated.\n *\n * This hook can be used to achieve various effects, such as running effects synchronously as part\n * of setting a signal.\n */\nlet postSignalSetFn = null;\n/**\n * Create a `Signal` that can be set or updated directly.\n */\nfunction createSignal(initialValue) {\n  const node = Object.create(SIGNAL_NODE);\n  node.value = initialValue;\n  const getter = () => {\n    producerAccessed(node);\n    return node.value;\n  };\n  getter[SIGNAL] = node;\n  return getter;\n}\nfunction setPostSignalSetFn(fn) {\n  const prev = postSignalSetFn;\n  postSignalSetFn = fn;\n  return prev;\n}\nfunction signalGetFn() {\n  producerAccessed(this);\n  return this.value;\n}\nfunction signalSetFn(node, newValue) {\n  if (!producerUpdatesAllowed()) {\n    throwInvalidWriteToSignalError();\n  }\n  if (!node.equal(node.value, newValue)) {\n    node.value = newValue;\n    signalValueChanged(node);\n  }\n}\nfunction signalUpdateFn(node, updater) {\n  if (!producerUpdatesAllowed()) {\n    throwInvalidWriteToSignalError();\n  }\n  signalSetFn(node, updater(node.value));\n}\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst SIGNAL_NODE = /* @__PURE__ */(() => {\n  return {\n    ...REACTIVE_NODE,\n    equal: defaultEquals,\n    value: undefined\n  };\n})();\nfunction signalValueChanged(node) {\n  node.version++;\n  producerIncrementEpoch();\n  producerNotifyConsumers(node);\n  postSignalSetFn?.();\n}\nfunction createWatch(fn, schedule, allowSignalWrites) {\n  const node = Object.create(WATCH_NODE);\n  if (allowSignalWrites) {\n    node.consumerAllowSignalWrites = true;\n  }\n  node.fn = fn;\n  node.schedule = schedule;\n  const registerOnCleanup = cleanupFn => {\n    node.cleanupFn = cleanupFn;\n  };\n  function isWatchNodeDestroyed(node) {\n    return node.fn === null && node.schedule === null;\n  }\n  function destroyWatchNode(node) {\n    if (!isWatchNodeDestroyed(node)) {\n      consumerDestroy(node); // disconnect watcher from the reactive graph\n      node.cleanupFn();\n      // nullify references to the integration functions to mark node as destroyed\n      node.fn = null;\n      node.schedule = null;\n      node.cleanupFn = NOOP_CLEANUP_FN;\n    }\n  }\n  const run = () => {\n    if (node.fn === null) {\n      // trying to run a destroyed watch is noop\n      return;\n    }\n    if (isInNotificationPhase()) {\n      throw new Error(`Schedulers cannot synchronously execute watches while scheduling.`);\n    }\n    node.dirty = false;\n    if (node.hasRun && !consumerPollProducersForChange(node)) {\n      return;\n    }\n    node.hasRun = true;\n    const prevConsumer = consumerBeforeComputation(node);\n    try {\n      node.cleanupFn();\n      node.cleanupFn = NOOP_CLEANUP_FN;\n      node.fn(registerOnCleanup);\n    } finally {\n      consumerAfterComputation(node, prevConsumer);\n    }\n  };\n  node.ref = {\n    notify: () => consumerMarkDirty(node),\n    run,\n    cleanup: () => node.cleanupFn(),\n    destroy: () => destroyWatchNode(node),\n    [SIGNAL]: node\n  };\n  return node.ref;\n}\nconst NOOP_CLEANUP_FN = () => {};\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst WATCH_NODE = /* @__PURE__ */(() => {\n  return {\n    ...REACTIVE_NODE,\n    consumerIsAlwaysLive: true,\n    consumerAllowSignalWrites: false,\n    consumerMarkedDirty: node => {\n      if (node.schedule !== null) {\n        node.schedule(node.ref);\n      }\n    },\n    hasRun: false,\n    cleanupFn: NOOP_CLEANUP_FN\n  };\n})();\nfunction setAlternateWeakRefImpl(impl) {\n  // TODO: remove this function\n}\nexport { REACTIVE_NODE, SIGNAL, SIGNAL_NODE, consumerAfterComputation, consumerBeforeComputation, consumerDestroy, consumerMarkDirty, consumerPollProducersForChange, createComputed, createSignal, createWatch, defaultEquals, getActiveConsumer, isInNotificationPhase, isReactive, producerAccessed, producerNotifyConsumers, producerUpdateValueVersion, producerUpdatesAllowed, setActiveConsumer, setAlternateWeakRefImpl, setPostSignalSetFn, setThrowInvalidWriteToSignalError, signalSetFn, signalUpdateFn };\n","export function isFunction(value) {\n  return typeof value === 'function';\n}\n","export function createErrorClass(createImpl) {\n  const _super = instance => {\n    Error.call(instance);\n    instance.stack = new Error().stack;\n  };\n  const ctorFunc = createImpl(_super);\n  ctorFunc.prototype = Object.create(Error.prototype);\n  ctorFunc.prototype.constructor = ctorFunc;\n  return ctorFunc;\n}\n","import { createErrorClass } from './createErrorClass';\nexport const UnsubscriptionError = createErrorClass(_super => function UnsubscriptionErrorImpl(errors) {\n  _super(this);\n  this.message = errors ? `${errors.length} errors occurred during unsubscription:\n${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\\n  ')}` : '';\n  this.name = 'UnsubscriptionError';\n  this.errors = errors;\n});\n","export function arrRemove(arr, item) {\n  if (arr) {\n    const index = arr.indexOf(item);\n    0 <= index && arr.splice(index, 1);\n  }\n}\n","import { isFunction } from './util/isFunction';\nimport { UnsubscriptionError } from './util/UnsubscriptionError';\nimport { arrRemove } from './util/arrRemove';\nexport class Subscription {\n  constructor(initialTeardown) {\n    this.initialTeardown = initialTeardown;\n    this.closed = false;\n    this._parentage = null;\n    this._finalizers = null;\n  }\n  unsubscribe() {\n    let errors;\n    if (!this.closed) {\n      this.closed = true;\n      const {\n        _parentage\n      } = this;\n      if (_parentage) {\n        this._parentage = null;\n        if (Array.isArray(_parentage)) {\n          for (const parent of _parentage) {\n            parent.remove(this);\n          }\n        } else {\n          _parentage.remove(this);\n        }\n      }\n      const {\n        initialTeardown: initialFinalizer\n      } = this;\n      if (isFunction(initialFinalizer)) {\n        try {\n          initialFinalizer();\n        } catch (e) {\n          errors = e instanceof UnsubscriptionError ? e.errors : [e];\n        }\n      }\n      const {\n        _finalizers\n      } = this;\n      if (_finalizers) {\n        this._finalizers = null;\n        for (const finalizer of _finalizers) {\n          try {\n            execFinalizer(finalizer);\n          } catch (err) {\n            errors = errors !== null && errors !== void 0 ? errors : [];\n            if (err instanceof UnsubscriptionError) {\n              errors = [...errors, ...err.errors];\n            } else {\n              errors.push(err);\n            }\n          }\n        }\n      }\n      if (errors) {\n        throw new UnsubscriptionError(errors);\n      }\n    }\n  }\n  add(teardown) {\n    var _a;\n    if (teardown && teardown !== this) {\n      if (this.closed) {\n        execFinalizer(teardown);\n      } else {\n        if (teardown instanceof Subscription) {\n          if (teardown.closed || teardown._hasParent(this)) {\n            return;\n          }\n          teardown._addParent(this);\n        }\n        (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);\n      }\n    }\n  }\n  _hasParent(parent) {\n    const {\n      _parentage\n    } = this;\n    return _parentage === parent || Array.isArray(_parentage) && _parentage.includes(parent);\n  }\n  _addParent(parent) {\n    const {\n      _parentage\n    } = this;\n    this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;\n  }\n  _removeParent(parent) {\n    const {\n      _parentage\n    } = this;\n    if (_parentage === parent) {\n      this._parentage = null;\n    } else if (Array.isArray(_parentage)) {\n      arrRemove(_parentage, parent);\n    }\n  }\n  remove(teardown) {\n    const {\n      _finalizers\n    } = this;\n    _finalizers && arrRemove(_finalizers, teardown);\n    if (teardown instanceof Subscription) {\n      teardown._removeParent(this);\n    }\n  }\n}\nSubscription.EMPTY = (() => {\n  const empty = new Subscription();\n  empty.closed = true;\n  return empty;\n})();\nexport const EMPTY_SUBSCRIPTION = Subscription.EMPTY;\nexport function isSubscription(value) {\n  return value instanceof Subscription || value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe);\n}\nfunction execFinalizer(finalizer) {\n  if (isFunction(finalizer)) {\n    finalizer();\n  } else {\n    finalizer.unsubscribe();\n  }\n}\n","export const config = {\n  onUnhandledError: null,\n  onStoppedNotification: null,\n  Promise: undefined,\n  useDeprecatedSynchronousErrorHandling: false,\n  useDeprecatedNextContext: false\n};\n","export const timeoutProvider = {\n  setTimeout(handler, timeout, ...args) {\n    const {\n      delegate\n    } = timeoutProvider;\n    if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {\n      return delegate.setTimeout(handler, timeout, ...args);\n    }\n    return setTimeout(handler, timeout, ...args);\n  },\n  clearTimeout(handle) {\n    const {\n      delegate\n    } = timeoutProvider;\n    return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);\n  },\n  delegate: undefined\n};\n","import { config } from '../config';\nimport { timeoutProvider } from '../scheduler/timeoutProvider';\nexport function reportUnhandledError(err) {\n  timeoutProvider.setTimeout(() => {\n    const {\n      onUnhandledError\n    } = config;\n    if (onUnhandledError) {\n      onUnhandledError(err);\n    } else {\n      throw err;\n    }\n  });\n}\n","export function noop() {}\n","export const COMPLETE_NOTIFICATION = (() => createNotification('C', undefined, undefined))();\nexport function errorNotification(error) {\n  return createNotification('E', undefined, error);\n}\nexport function nextNotification(value) {\n  return createNotification('N', value, undefined);\n}\nexport function createNotification(kind, value, error) {\n  return {\n    kind,\n    value,\n    error\n  };\n}\n","import { config } from '../config';\nlet context = null;\nexport function errorContext(cb) {\n  if (config.useDeprecatedSynchronousErrorHandling) {\n    const isRoot = !context;\n    if (isRoot) {\n      context = {\n        errorThrown: false,\n        error: null\n      };\n    }\n    cb();\n    if (isRoot) {\n      const {\n        errorThrown,\n        error\n      } = context;\n      context = null;\n      if (errorThrown) {\n        throw error;\n      }\n    }\n  } else {\n    cb();\n  }\n}\nexport function captureError(err) {\n  if (config.useDeprecatedSynchronousErrorHandling && context) {\n    context.errorThrown = true;\n    context.error = err;\n  }\n}\n","import { isFunction } from './util/isFunction';\nimport { isSubscription, Subscription } from './Subscription';\nimport { config } from './config';\nimport { reportUnhandledError } from './util/reportUnhandledError';\nimport { noop } from './util/noop';\nimport { nextNotification, errorNotification, COMPLETE_NOTIFICATION } from './NotificationFactories';\nimport { timeoutProvider } from './scheduler/timeoutProvider';\nimport { captureError } from './util/errorContext';\nexport class Subscriber extends Subscription {\n  constructor(destination) {\n    super();\n    this.isStopped = false;\n    if (destination) {\n      this.destination = destination;\n      if (isSubscription(destination)) {\n        destination.add(this);\n      }\n    } else {\n      this.destination = EMPTY_OBSERVER;\n    }\n  }\n  static create(next, error, complete) {\n    return new SafeSubscriber(next, error, complete);\n  }\n  next(value) {\n    if (this.isStopped) {\n      handleStoppedNotification(nextNotification(value), this);\n    } else {\n      this._next(value);\n    }\n  }\n  error(err) {\n    if (this.isStopped) {\n      handleStoppedNotification(errorNotification(err), this);\n    } else {\n      this.isStopped = true;\n      this._error(err);\n    }\n  }\n  complete() {\n    if (this.isStopped) {\n      handleStoppedNotification(COMPLETE_NOTIFICATION, this);\n    } else {\n      this.isStopped = true;\n      this._complete();\n    }\n  }\n  unsubscribe() {\n    if (!this.closed) {\n      this.isStopped = true;\n      super.unsubscribe();\n      this.destination = null;\n    }\n  }\n  _next(value) {\n    this.destination.next(value);\n  }\n  _error(err) {\n    try {\n      this.destination.error(err);\n    } finally {\n      this.unsubscribe();\n    }\n  }\n  _complete() {\n    try {\n      this.destination.complete();\n    } finally {\n      this.unsubscribe();\n    }\n  }\n}\nconst _bind = Function.prototype.bind;\nfunction bind(fn, thisArg) {\n  return _bind.call(fn, thisArg);\n}\nclass ConsumerObserver {\n  constructor(partialObserver) {\n    this.partialObserver = partialObserver;\n  }\n  next(value) {\n    const {\n      partialObserver\n    } = this;\n    if (partialObserver.next) {\n      try {\n        partialObserver.next(value);\n      } catch (error) {\n        handleUnhandledError(error);\n      }\n    }\n  }\n  error(err) {\n    const {\n      partialObserver\n    } = this;\n    if (partialObserver.error) {\n      try {\n        partialObserver.error(err);\n      } catch (error) {\n        handleUnhandledError(error);\n      }\n    } else {\n      handleUnhandledError(err);\n    }\n  }\n  complete() {\n    const {\n      partialObserver\n    } = this;\n    if (partialObserver.complete) {\n      try {\n        partialObserver.complete();\n      } catch (error) {\n        handleUnhandledError(error);\n      }\n    }\n  }\n}\nexport class SafeSubscriber extends Subscriber {\n  constructor(observerOrNext, error, complete) {\n    super();\n    let partialObserver;\n    if (isFunction(observerOrNext) || !observerOrNext) {\n      partialObserver = {\n        next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined,\n        error: error !== null && error !== void 0 ? error : undefined,\n        complete: complete !== null && complete !== void 0 ? complete : undefined\n      };\n    } else {\n      let context;\n      if (this && config.useDeprecatedNextContext) {\n        context = Object.create(observerOrNext);\n        context.unsubscribe = () => this.unsubscribe();\n        partialObserver = {\n          next: observerOrNext.next && bind(observerOrNext.next, context),\n          error: observerOrNext.error && bind(observerOrNext.error, context),\n          complete: observerOrNext.complete && bind(observerOrNext.complete, context)\n        };\n      } else {\n        partialObserver = observerOrNext;\n      }\n    }\n    this.destination = new ConsumerObserver(partialObserver);\n  }\n}\nfunction handleUnhandledError(error) {\n  if (config.useDeprecatedSynchronousErrorHandling) {\n    captureError(error);\n  } else {\n    reportUnhandledError(error);\n  }\n}\nfunction defaultErrorHandler(err) {\n  throw err;\n}\nfunction handleStoppedNotification(notification, subscriber) {\n  const {\n    onStoppedNotification\n  } = config;\n  onStoppedNotification && timeoutProvider.setTimeout(() => onStoppedNotification(notification, subscriber));\n}\nexport const EMPTY_OBSERVER = {\n  closed: true,\n  next: noop,\n  error: defaultErrorHandler,\n  complete: noop\n};\n","export const observable = (() => typeof Symbol === 'function' && Symbol.observable || '@@observable')();\n","export function identity(x) {\n  return x;\n}\n","import { identity } from './identity';\nexport function pipe(...fns) {\n  return pipeFromArray(fns);\n}\nexport function pipeFromArray(fns) {\n  if (fns.length === 0) {\n    return identity;\n  }\n  if (fns.length === 1) {\n    return fns[0];\n  }\n  return function piped(input) {\n    return fns.reduce((prev, fn) => fn(prev), input);\n  };\n}\n","import { SafeSubscriber, Subscriber } from './Subscriber';\nimport { isSubscription } from './Subscription';\nimport { observable as Symbol_observable } from './symbol/observable';\nimport { pipeFromArray } from './util/pipe';\nimport { config } from './config';\nimport { isFunction } from './util/isFunction';\nimport { errorContext } from './util/errorContext';\nexport let Observable = /*#__PURE__*/(() => {\n  class Observable {\n    constructor(subscribe) {\n      if (subscribe) {\n        this._subscribe = subscribe;\n      }\n    }\n    lift(operator) {\n      const observable = new Observable();\n      observable.source = this;\n      observable.operator = operator;\n      return observable;\n    }\n    subscribe(observerOrNext, error, complete) {\n      const subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);\n      errorContext(() => {\n        const {\n          operator,\n          source\n        } = this;\n        subscriber.add(operator ? operator.call(subscriber, source) : source ? this._subscribe(subscriber) : this._trySubscribe(subscriber));\n      });\n      return subscriber;\n    }\n    _trySubscribe(sink) {\n      try {\n        return this._subscribe(sink);\n      } catch (err) {\n        sink.error(err);\n      }\n    }\n    forEach(next, promiseCtor) {\n      promiseCtor = getPromiseCtor(promiseCtor);\n      return new promiseCtor((resolve, reject) => {\n        const subscriber = new SafeSubscriber({\n          next: value => {\n            try {\n              next(value);\n            } catch (err) {\n              reject(err);\n              subscriber.unsubscribe();\n            }\n          },\n          error: reject,\n          complete: resolve\n        });\n        this.subscribe(subscriber);\n      });\n    }\n    _subscribe(subscriber) {\n      var _a;\n      return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);\n    }\n    [Symbol_observable]() {\n      return this;\n    }\n    pipe(...operations) {\n      return pipeFromArray(operations)(this);\n    }\n    toPromise(promiseCtor) {\n      promiseCtor = getPromiseCtor(promiseCtor);\n      return new promiseCtor((resolve, reject) => {\n        let value;\n        this.subscribe(x => value = x, err => reject(err), () => resolve(value));\n      });\n    }\n  }\n  Observable.create = subscribe => {\n    return new Observable(subscribe);\n  };\n  return Observable;\n})();\nfunction getPromiseCtor(promiseCtor) {\n  var _a;\n  return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;\n}\nfunction isObserver(value) {\n  return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);\n}\nfunction isSubscriber(value) {\n  return value && value instanceof Subscriber || isObserver(value) && isSubscription(value);\n}\n","import { isFunction } from './isFunction';\nexport function hasLift(source) {\n  return isFunction(source === null || source === void 0 ? void 0 : source.lift);\n}\nexport function operate(init) {\n  return source => {\n    if (hasLift(source)) {\n      return source.lift(function (liftedSource) {\n        try {\n          return init(liftedSource, this);\n        } catch (err) {\n          this.error(err);\n        }\n      });\n    }\n    throw new TypeError('Unable to lift unknown Observable type');\n  };\n}\n","import { Subscriber } from '../Subscriber';\nexport function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) {\n  return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);\n}\nexport class OperatorSubscriber extends Subscriber {\n  constructor(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {\n    super(destination);\n    this.onFinalize = onFinalize;\n    this.shouldUnsubscribe = shouldUnsubscribe;\n    this._next = onNext ? function (value) {\n      try {\n        onNext(value);\n      } catch (err) {\n        destination.error(err);\n      }\n    } : super._next;\n    this._error = onError ? function (err) {\n      try {\n        onError(err);\n      } catch (err) {\n        destination.error(err);\n      } finally {\n        this.unsubscribe();\n      }\n    } : super._error;\n    this._complete = onComplete ? function () {\n      try {\n        onComplete();\n      } catch (err) {\n        destination.error(err);\n      } finally {\n        this.unsubscribe();\n      }\n    } : super._complete;\n  }\n  unsubscribe() {\n    var _a;\n    if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {\n      const {\n        closed\n      } = this;\n      super.unsubscribe();\n      !closed && ((_a = this.onFinalize) === null || _a === void 0 ? void 0 : _a.call(this));\n    }\n  }\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function refCount() {\n  return operate((source, subscriber) => {\n    let connection = null;\n    source._refCount++;\n    const refCounter = createOperatorSubscriber(subscriber, undefined, undefined, undefined, () => {\n      if (!source || source._refCount <= 0 || 0 < --source._refCount) {\n        connection = null;\n        return;\n      }\n      const sharedConnection = source._connection;\n      const conn = connection;\n      connection = null;\n      if (sharedConnection && (!conn || sharedConnection === conn)) {\n        sharedConnection.unsubscribe();\n      }\n      subscriber.unsubscribe();\n    });\n    source.subscribe(refCounter);\n    if (!refCounter.closed) {\n      connection = source.connect();\n    }\n  });\n}\n","import { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nimport { refCount as higherOrderRefCount } from '../operators/refCount';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { hasLift } from '../util/lift';\nexport class ConnectableObservable extends Observable {\n  constructor(source, subjectFactory) {\n    super();\n    this.source = source;\n    this.subjectFactory = subjectFactory;\n    this._subject = null;\n    this._refCount = 0;\n    this._connection = null;\n    if (hasLift(source)) {\n      this.lift = source.lift;\n    }\n  }\n  _subscribe(subscriber) {\n    return this.getSubject().subscribe(subscriber);\n  }\n  getSubject() {\n    const subject = this._subject;\n    if (!subject || subject.isStopped) {\n      this._subject = this.subjectFactory();\n    }\n    return this._subject;\n  }\n  _teardown() {\n    this._refCount = 0;\n    const {\n      _connection\n    } = this;\n    this._subject = this._connection = null;\n    _connection === null || _connection === void 0 ? void 0 : _connection.unsubscribe();\n  }\n  connect() {\n    let connection = this._connection;\n    if (!connection) {\n      connection = this._connection = new Subscription();\n      const subject = this.getSubject();\n      connection.add(this.source.subscribe(createOperatorSubscriber(subject, undefined, () => {\n        this._teardown();\n        subject.complete();\n      }, err => {\n        this._teardown();\n        subject.error(err);\n      }, () => this._teardown())));\n      if (connection.closed) {\n        this._connection = null;\n        connection = Subscription.EMPTY;\n      }\n    }\n    return connection;\n  }\n  refCount() {\n    return higherOrderRefCount()(this);\n  }\n}\n","import { createErrorClass } from './createErrorClass';\nexport const ObjectUnsubscribedError = createErrorClass(_super => function ObjectUnsubscribedErrorImpl() {\n  _super(this);\n  this.name = 'ObjectUnsubscribedError';\n  this.message = 'object unsubscribed';\n});\n","import { Observable } from './Observable';\nimport { Subscription, EMPTY_SUBSCRIPTION } from './Subscription';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nimport { arrRemove } from './util/arrRemove';\nimport { errorContext } from './util/errorContext';\nexport let Subject = /*#__PURE__*/(() => {\n  class Subject extends Observable {\n    constructor() {\n      super();\n      this.closed = false;\n      this.currentObservers = null;\n      this.observers = [];\n      this.isStopped = false;\n      this.hasError = false;\n      this.thrownError = null;\n    }\n    lift(operator) {\n      const subject = new AnonymousSubject(this, this);\n      subject.operator = operator;\n      return subject;\n    }\n    _throwIfClosed() {\n      if (this.closed) {\n        throw new ObjectUnsubscribedError();\n      }\n    }\n    next(value) {\n      errorContext(() => {\n        this._throwIfClosed();\n        if (!this.isStopped) {\n          if (!this.currentObservers) {\n            this.currentObservers = Array.from(this.observers);\n          }\n          for (const observer of this.currentObservers) {\n            observer.next(value);\n          }\n        }\n      });\n    }\n    error(err) {\n      errorContext(() => {\n        this._throwIfClosed();\n        if (!this.isStopped) {\n          this.hasError = this.isStopped = true;\n          this.thrownError = err;\n          const {\n            observers\n          } = this;\n          while (observers.length) {\n            observers.shift().error(err);\n          }\n        }\n      });\n    }\n    complete() {\n      errorContext(() => {\n        this._throwIfClosed();\n        if (!this.isStopped) {\n          this.isStopped = true;\n          const {\n            observers\n          } = this;\n          while (observers.length) {\n            observers.shift().complete();\n          }\n        }\n      });\n    }\n    unsubscribe() {\n      this.isStopped = this.closed = true;\n      this.observers = this.currentObservers = null;\n    }\n    get observed() {\n      var _a;\n      return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0;\n    }\n    _trySubscribe(subscriber) {\n      this._throwIfClosed();\n      return super._trySubscribe(subscriber);\n    }\n    _subscribe(subscriber) {\n      this._throwIfClosed();\n      this._checkFinalizedStatuses(subscriber);\n      return this._innerSubscribe(subscriber);\n    }\n    _innerSubscribe(subscriber) {\n      const {\n        hasError,\n        isStopped,\n        observers\n      } = this;\n      if (hasError || isStopped) {\n        return EMPTY_SUBSCRIPTION;\n      }\n      this.currentObservers = null;\n      observers.push(subscriber);\n      return new Subscription(() => {\n        this.currentObservers = null;\n        arrRemove(observers, subscriber);\n      });\n    }\n    _checkFinalizedStatuses(subscriber) {\n      const {\n        hasError,\n        thrownError,\n        isStopped\n      } = this;\n      if (hasError) {\n        subscriber.error(thrownError);\n      } else if (isStopped) {\n        subscriber.complete();\n      }\n    }\n    asObservable() {\n      const observable = new Observable();\n      observable.source = this;\n      return observable;\n    }\n  }\n  Subject.create = (destination, source) => {\n    return new AnonymousSubject(destination, source);\n  };\n  return Subject;\n})();\nexport class AnonymousSubject extends Subject {\n  constructor(destination, source) {\n    super();\n    this.destination = destination;\n    this.source = source;\n  }\n  next(value) {\n    var _a, _b;\n    (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value);\n  }\n  error(err) {\n    var _a, _b;\n    (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err);\n  }\n  complete() {\n    var _a, _b;\n    (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a);\n  }\n  _subscribe(subscriber) {\n    var _a, _b;\n    return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;\n  }\n}\n","import { Subject } from './Subject';\nexport class BehaviorSubject extends Subject {\n  constructor(_value) {\n    super();\n    this._value = _value;\n  }\n  get value() {\n    return this.getValue();\n  }\n  _subscribe(subscriber) {\n    const subscription = super._subscribe(subscriber);\n    !subscription.closed && subscriber.next(this._value);\n    return subscription;\n  }\n  getValue() {\n    const {\n      hasError,\n      thrownError,\n      _value\n    } = this;\n    if (hasError) {\n      throw thrownError;\n    }\n    this._throwIfClosed();\n    return _value;\n  }\n  next(value) {\n    super.next(this._value = value);\n  }\n}\n","export const dateTimestampProvider = {\n  now() {\n    return (dateTimestampProvider.delegate || Date).now();\n  },\n  delegate: undefined\n};\n","import { Subscription } from '../Subscription';\nexport class Action extends Subscription {\n  constructor(scheduler, work) {\n    super();\n  }\n  schedule(state, delay = 0) {\n    return this;\n  }\n}\n","export const intervalProvider = {\n  setInterval(handler, timeout, ...args) {\n    const {\n      delegate\n    } = intervalProvider;\n    if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) {\n      return delegate.setInterval(handler, timeout, ...args);\n    }\n    return setInterval(handler, timeout, ...args);\n  },\n  clearInterval(handle) {\n    const {\n      delegate\n    } = intervalProvider;\n    return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle);\n  },\n  delegate: undefined\n};\n","import { Action } from './Action';\nimport { intervalProvider } from './intervalProvider';\nimport { arrRemove } from '../util/arrRemove';\nexport class AsyncAction extends Action {\n  constructor(scheduler, work) {\n    super(scheduler, work);\n    this.scheduler = scheduler;\n    this.work = work;\n    this.pending = false;\n  }\n  schedule(state, delay = 0) {\n    var _a;\n    if (this.closed) {\n      return this;\n    }\n    this.state = state;\n    const id = this.id;\n    const scheduler = this.scheduler;\n    if (id != null) {\n      this.id = this.recycleAsyncId(scheduler, id, delay);\n    }\n    this.pending = true;\n    this.delay = delay;\n    this.id = (_a = this.id) !== null && _a !== void 0 ? _a : this.requestAsyncId(scheduler, this.id, delay);\n    return this;\n  }\n  requestAsyncId(scheduler, _id, delay = 0) {\n    return intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);\n  }\n  recycleAsyncId(_scheduler, id, delay = 0) {\n    if (delay != null && this.delay === delay && this.pending === false) {\n      return id;\n    }\n    if (id != null) {\n      intervalProvider.clearInterval(id);\n    }\n    return undefined;\n  }\n  execute(state, delay) {\n    if (this.closed) {\n      return new Error('executing a cancelled action');\n    }\n    this.pending = false;\n    const error = this._execute(state, delay);\n    if (error) {\n      return error;\n    } else if (this.pending === false && this.id != null) {\n      this.id = this.recycleAsyncId(this.scheduler, this.id, null);\n    }\n  }\n  _execute(state, _delay) {\n    let errored = false;\n    let errorValue;\n    try {\n      this.work(state);\n    } catch (e) {\n      errored = true;\n      errorValue = e ? e : new Error('Scheduled action threw falsy error');\n    }\n    if (errored) {\n      this.unsubscribe();\n      return errorValue;\n    }\n  }\n  unsubscribe() {\n    if (!this.closed) {\n      const {\n        id,\n        scheduler\n      } = this;\n      const {\n        actions\n      } = scheduler;\n      this.work = this.state = this.scheduler = null;\n      this.pending = false;\n      arrRemove(actions, this);\n      if (id != null) {\n        this.id = this.recycleAsyncId(scheduler, id, null);\n      }\n      this.delay = null;\n      super.unsubscribe();\n    }\n  }\n}\n","import { dateTimestampProvider } from './scheduler/dateTimestampProvider';\nexport class Scheduler {\n  constructor(schedulerActionCtor, now = Scheduler.now) {\n    this.schedulerActionCtor = schedulerActionCtor;\n    this.now = now;\n  }\n  schedule(work, delay = 0, state) {\n    return new this.schedulerActionCtor(this, work).schedule(state, delay);\n  }\n}\nScheduler.now = dateTimestampProvider.now;\n","import { Scheduler } from '../Scheduler';\nexport class AsyncScheduler extends Scheduler {\n  constructor(SchedulerAction, now = Scheduler.now) {\n    super(SchedulerAction, now);\n    this.actions = [];\n    this._active = false;\n  }\n  flush(action) {\n    const {\n      actions\n    } = this;\n    if (this._active) {\n      actions.push(action);\n      return;\n    }\n    let error;\n    this._active = true;\n    do {\n      if (error = action.execute(action.state, action.delay)) {\n        break;\n      }\n    } while (action = actions.shift());\n    this._active = false;\n    if (error) {\n      while (action = actions.shift()) {\n        action.unsubscribe();\n      }\n      throw error;\n    }\n  }\n}\n","import { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\nexport const asyncScheduler = new AsyncScheduler(AsyncAction);\nexport const async = asyncScheduler;\n","import { Observable } from '../Observable';\nexport const EMPTY = new Observable(subscriber => subscriber.complete());\nexport function empty(scheduler) {\n  return scheduler ? emptyScheduled(scheduler) : EMPTY;\n}\nfunction emptyScheduled(scheduler) {\n  return new Observable(subscriber => scheduler.schedule(() => subscriber.complete()));\n}\n","import { isFunction } from './isFunction';\nexport function isScheduler(value) {\n  return value && isFunction(value.schedule);\n}\n","import { isFunction } from './isFunction';\nimport { isScheduler } from './isScheduler';\nfunction last(arr) {\n  return arr[arr.length - 1];\n}\nexport function popResultSelector(args) {\n  return isFunction(last(args)) ? args.pop() : undefined;\n}\nexport function popScheduler(args) {\n  return isScheduler(last(args)) ? args.pop() : undefined;\n}\nexport function popNumber(args, defaultValue) {\n  return typeof last(args) === 'number' ? args.pop() : defaultValue;\n}\n","/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol */\n\nvar extendStatics = function (d, b) {\n  extendStatics = Object.setPrototypeOf || {\n    __proto__: []\n  } instanceof Array && function (d, b) {\n    d.__proto__ = b;\n  } || function (d, b) {\n    for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n  };\n  return extendStatics(d, b);\n};\nexport function __extends(d, b) {\n  if (typeof b !== \"function\" && b !== null) throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n  extendStatics(d, b);\n  function __() {\n    this.constructor = d;\n  }\n  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\nexport var __assign = function () {\n  __assign = Object.assign || function __assign(t) {\n    for (var s, i = 1, n = arguments.length; i < n; i++) {\n      s = arguments[i];\n      for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n    }\n    return t;\n  };\n  return __assign.apply(this, arguments);\n};\nexport function __rest(s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n}\nexport function __decorate(decorators, target, key, desc) {\n  var c = arguments.length,\n    r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n    d;\n  if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n  return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\nexport function __param(paramIndex, decorator) {\n  return function (target, key) {\n    decorator(target, key, paramIndex);\n  };\n}\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n  function accept(f) {\n    if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\");\n    return f;\n  }\n  var kind = contextIn.kind,\n    key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n  var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n  var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n  var _,\n    done = false;\n  for (var i = decorators.length - 1; i >= 0; i--) {\n    var context = {};\n    for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n    for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n    context.addInitializer = function (f) {\n      if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\");\n      extraInitializers.push(accept(f || null));\n    };\n    var result = (0, decorators[i])(kind === \"accessor\" ? {\n      get: descriptor.get,\n      set: descriptor.set\n    } : descriptor[key], context);\n    if (kind === \"accessor\") {\n      if (result === void 0) continue;\n      if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n      if (_ = accept(result.get)) descriptor.get = _;\n      if (_ = accept(result.set)) descriptor.set = _;\n      if (_ = accept(result.init)) initializers.unshift(_);\n    } else if (_ = accept(result)) {\n      if (kind === \"field\") initializers.unshift(_);else descriptor[key] = _;\n    }\n  }\n  if (target) Object.defineProperty(target, contextIn.name, descriptor);\n  done = true;\n}\n;\nexport function __runInitializers(thisArg, initializers, value) {\n  var useValue = arguments.length > 2;\n  for (var i = 0; i < initializers.length; i++) {\n    value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n  }\n  return useValue ? value : void 0;\n}\n;\nexport function __propKey(x) {\n  return typeof x === \"symbol\" ? x : \"\".concat(x);\n}\n;\nexport function __setFunctionName(f, name, prefix) {\n  if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n  return Object.defineProperty(f, \"name\", {\n    configurable: true,\n    value: prefix ? \"\".concat(prefix, \" \", name) : name\n  });\n}\n;\nexport function __metadata(metadataKey, metadataValue) {\n  if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\nexport function __awaiter(thisArg, _arguments, P, generator) {\n  function adopt(value) {\n    return value instanceof P ? value : new P(function (resolve) {\n      resolve(value);\n    });\n  }\n  return new (P || (P = Promise))(function (resolve, reject) {\n    function fulfilled(value) {\n      try {\n        step(generator.next(value));\n      } catch (e) {\n        reject(e);\n      }\n    }\n    function rejected(value) {\n      try {\n        step(generator[\"throw\"](value));\n      } catch (e) {\n        reject(e);\n      }\n    }\n    function step(result) {\n      result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n    }\n    step((generator = generator.apply(thisArg, _arguments || [])).next());\n  });\n}\nexport function __generator(thisArg, body) {\n  var _ = {\n      label: 0,\n      sent: function () {\n        if (t[0] & 1) throw t[1];\n        return t[1];\n      },\n      trys: [],\n      ops: []\n    },\n    f,\n    y,\n    t,\n    g;\n  return g = {\n    next: verb(0),\n    \"throw\": verb(1),\n    \"return\": verb(2)\n  }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function () {\n    return this;\n  }), g;\n  function verb(n) {\n    return function (v) {\n      return step([n, v]);\n    };\n  }\n  function step(op) {\n    if (f) throw new TypeError(\"Generator is already executing.\");\n    while (g && (g = 0, op[0] && (_ = 0)), _) try {\n      if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n      if (y = 0, t) op = [op[0] & 2, t.value];\n      switch (op[0]) {\n        case 0:\n        case 1:\n          t = op;\n          break;\n        case 4:\n          _.label++;\n          return {\n            value: op[1],\n            done: false\n          };\n        case 5:\n          _.label++;\n          y = op[1];\n          op = [0];\n          continue;\n        case 7:\n          op = _.ops.pop();\n          _.trys.pop();\n          continue;\n        default:\n          if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n            _ = 0;\n            continue;\n          }\n          if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n            _.label = op[1];\n            break;\n          }\n          if (op[0] === 6 && _.label < t[1]) {\n            _.label = t[1];\n            t = op;\n            break;\n          }\n          if (t && _.label < t[2]) {\n            _.label = t[2];\n            _.ops.push(op);\n            break;\n          }\n          if (t[2]) _.ops.pop();\n          _.trys.pop();\n          continue;\n      }\n      op = body.call(thisArg, _);\n    } catch (e) {\n      op = [6, e];\n      y = 0;\n    } finally {\n      f = t = 0;\n    }\n    if (op[0] & 5) throw op[1];\n    return {\n      value: op[0] ? op[1] : void 0,\n      done: true\n    };\n  }\n}\nexport var __createBinding = Object.create ? function (o, m, k, k2) {\n  if (k2 === undefined) k2 = k;\n  var desc = Object.getOwnPropertyDescriptor(m, k);\n  if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n    desc = {\n      enumerable: true,\n      get: function () {\n        return m[k];\n      }\n    };\n  }\n  Object.defineProperty(o, k2, desc);\n} : function (o, m, k, k2) {\n  if (k2 === undefined) k2 = k;\n  o[k2] = m[k];\n};\nexport function __exportStar(m, o) {\n  for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\nexport function __values(o) {\n  var s = typeof Symbol === \"function\" && Symbol.iterator,\n    m = s && o[s],\n    i = 0;\n  if (m) return m.call(o);\n  if (o && typeof o.length === \"number\") return {\n    next: function () {\n      if (o && i >= o.length) o = void 0;\n      return {\n        value: o && o[i++],\n        done: !o\n      };\n    }\n  };\n  throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\nexport function __read(o, n) {\n  var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n  if (!m) return o;\n  var i = m.call(o),\n    r,\n    ar = [],\n    e;\n  try {\n    while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n  } catch (error) {\n    e = {\n      error: error\n    };\n  } finally {\n    try {\n      if (r && !r.done && (m = i[\"return\"])) m.call(i);\n    } finally {\n      if (e) throw e.error;\n    }\n  }\n  return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n  for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n  return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n  for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n  for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j];\n  return r;\n}\nexport function __spreadArray(to, from, pack) {\n  if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n    if (ar || !(i in from)) {\n      if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n      ar[i] = from[i];\n    }\n  }\n  return to.concat(ar || Array.prototype.slice.call(from));\n}\nexport function __await(v) {\n  return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n  if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n  var g = generator.apply(thisArg, _arguments || []),\n    i,\n    q = [];\n  return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () {\n    return this;\n  }, i;\n  function awaitReturn(f) {\n    return function (v) {\n      return Promise.resolve(v).then(f, reject);\n    };\n  }\n  function verb(n, f) {\n    if (g[n]) {\n      i[n] = function (v) {\n        return new Promise(function (a, b) {\n          q.push([n, v, a, b]) > 1 || resume(n, v);\n        });\n      };\n      if (f) i[n] = f(i[n]);\n    }\n  }\n  function resume(n, v) {\n    try {\n      step(g[n](v));\n    } catch (e) {\n      settle(q[0][3], e);\n    }\n  }\n  function step(r) {\n    r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);\n  }\n  function fulfill(value) {\n    resume(\"next\", value);\n  }\n  function reject(value) {\n    resume(\"throw\", value);\n  }\n  function settle(f, v) {\n    if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);\n  }\n}\nexport function __asyncDelegator(o) {\n  var i, p;\n  return i = {}, verb(\"next\"), verb(\"throw\", function (e) {\n    throw e;\n  }), verb(\"return\"), i[Symbol.iterator] = function () {\n    return this;\n  }, i;\n  function verb(n, f) {\n    i[n] = o[n] ? function (v) {\n      return (p = !p) ? {\n        value: __await(o[n](v)),\n        done: false\n      } : f ? f(v) : v;\n    } : f;\n  }\n}\nexport function __asyncValues(o) {\n  if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n  var m = o[Symbol.asyncIterator],\n    i;\n  return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () {\n    return this;\n  }, i);\n  function verb(n) {\n    i[n] = o[n] && function (v) {\n      return new Promise(function (resolve, reject) {\n        v = o[n](v), settle(resolve, reject, v.done, v.value);\n      });\n    };\n  }\n  function settle(resolve, reject, d, v) {\n    Promise.resolve(v).then(function (v) {\n      resolve({\n        value: v,\n        done: d\n      });\n    }, reject);\n  }\n}\nexport function __makeTemplateObject(cooked, raw) {\n  if (Object.defineProperty) {\n    Object.defineProperty(cooked, \"raw\", {\n      value: raw\n    });\n  } else {\n    cooked.raw = raw;\n  }\n  return cooked;\n}\n;\nvar __setModuleDefault = Object.create ? function (o, v) {\n  Object.defineProperty(o, \"default\", {\n    enumerable: true,\n    value: v\n  });\n} : function (o, v) {\n  o[\"default\"] = v;\n};\nexport function __importStar(mod) {\n  if (mod && mod.__esModule) return mod;\n  var result = {};\n  if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n  __setModuleDefault(result, mod);\n  return result;\n}\nexport function __importDefault(mod) {\n  return mod && mod.__esModule ? mod : {\n    default: mod\n  };\n}\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n  if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n  if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n  return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n  if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n  if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n  if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n  return kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;\n}\nexport function __classPrivateFieldIn(state, receiver) {\n  if (receiver === null || typeof receiver !== \"object\" && typeof receiver !== \"function\") throw new TypeError(\"Cannot use 'in' operator on non-object\");\n  return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\nexport function __addDisposableResource(env, value, async) {\n  if (value !== null && value !== void 0) {\n    if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n    var dispose, inner;\n    if (async) {\n      if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n      dispose = value[Symbol.asyncDispose];\n    }\n    if (dispose === void 0) {\n      if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n      dispose = value[Symbol.dispose];\n      if (async) inner = dispose;\n    }\n    if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n    if (inner) dispose = function () {\n      try {\n        inner.call(this);\n      } catch (e) {\n        return Promise.reject(e);\n      }\n    };\n    env.stack.push({\n      value: value,\n      dispose: dispose,\n      async: async\n    });\n  } else if (async) {\n    env.stack.push({\n      async: true\n    });\n  }\n  return value;\n}\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n  var e = new Error(message);\n  return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\nexport function __disposeResources(env) {\n  function fail(e) {\n    env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n    env.hasError = true;\n  }\n  function next() {\n    while (env.stack.length) {\n      var rec = env.stack.pop();\n      try {\n        var result = rec.dispose && rec.dispose.call(rec.value);\n        if (rec.async) return Promise.resolve(result).then(next, function (e) {\n          fail(e);\n          return next();\n        });\n      } catch (e) {\n        fail(e);\n      }\n    }\n    if (env.hasError) throw env.error;\n  }\n  return next();\n}\nexport default {\n  __extends,\n  __assign,\n  __rest,\n  __decorate,\n  __param,\n  __metadata,\n  __awaiter,\n  __generator,\n  __createBinding,\n  __exportStar,\n  __values,\n  __read,\n  __spread,\n  __spreadArrays,\n  __spreadArray,\n  __await,\n  __asyncGenerator,\n  __asyncDelegator,\n  __asyncValues,\n  __makeTemplateObject,\n  __importStar,\n  __importDefault,\n  __classPrivateFieldGet,\n  __classPrivateFieldSet,\n  __classPrivateFieldIn,\n  __addDisposableResource,\n  __disposeResources\n};","export const isArrayLike = x => x && typeof x.length === 'number' && typeof x !== 'function';\n","import { isFunction } from \"./isFunction\";\nexport function isPromise(value) {\n  return isFunction(value === null || value === void 0 ? void 0 : value.then);\n}\n","import { observable as Symbol_observable } from '../symbol/observable';\nimport { isFunction } from './isFunction';\nexport function isInteropObservable(input) {\n  return isFunction(input[Symbol_observable]);\n}\n","import { isFunction } from './isFunction';\nexport function isAsyncIterable(obj) {\n  return Symbol.asyncIterator && isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);\n}\n","export function createInvalidObservableTypeError(input) {\n  return new TypeError(`You provided ${input !== null && typeof input === 'object' ? 'an invalid object' : `'${input}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`);\n}\n","export function getSymbolIterator() {\n  if (typeof Symbol !== 'function' || !Symbol.iterator) {\n    return '@@iterator';\n  }\n  return Symbol.iterator;\n}\nexport const iterator = getSymbolIterator();\n","import { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { isFunction } from './isFunction';\nexport function isIterable(input) {\n  return isFunction(input === null || input === void 0 ? void 0 : input[Symbol_iterator]);\n}\n","import { __asyncGenerator, __await } from \"tslib\";\nimport { isFunction } from './isFunction';\nexport function readableStreamLikeToAsyncGenerator(readableStream) {\n  return __asyncGenerator(this, arguments, function* readableStreamLikeToAsyncGenerator_1() {\n    const reader = readableStream.getReader();\n    try {\n      while (true) {\n        const {\n          value,\n          done\n        } = yield __await(reader.read());\n        if (done) {\n          return yield __await(void 0);\n        }\n        yield yield __await(value);\n      }\n    } finally {\n      reader.releaseLock();\n    }\n  });\n}\nexport function isReadableStreamLike(obj) {\n  return isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader);\n}\n","import { __asyncValues, __awaiter } from \"tslib\";\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isPromise } from '../util/isPromise';\nimport { Observable } from '../Observable';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isAsyncIterable } from '../util/isAsyncIterable';\nimport { createInvalidObservableTypeError } from '../util/throwUnobservableError';\nimport { isIterable } from '../util/isIterable';\nimport { isReadableStreamLike, readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike';\nimport { isFunction } from '../util/isFunction';\nimport { reportUnhandledError } from '../util/reportUnhandledError';\nimport { observable as Symbol_observable } from '../symbol/observable';\nexport function innerFrom(input) {\n  if (input instanceof Observable) {\n    return input;\n  }\n  if (input != null) {\n    if (isInteropObservable(input)) {\n      return fromInteropObservable(input);\n    }\n    if (isArrayLike(input)) {\n      return fromArrayLike(input);\n    }\n    if (isPromise(input)) {\n      return fromPromise(input);\n    }\n    if (isAsyncIterable(input)) {\n      return fromAsyncIterable(input);\n    }\n    if (isIterable(input)) {\n      return fromIterable(input);\n    }\n    if (isReadableStreamLike(input)) {\n      return fromReadableStreamLike(input);\n    }\n  }\n  throw createInvalidObservableTypeError(input);\n}\nexport function fromInteropObservable(obj) {\n  return new Observable(subscriber => {\n    const obs = obj[Symbol_observable]();\n    if (isFunction(obs.subscribe)) {\n      return obs.subscribe(subscriber);\n    }\n    throw new TypeError('Provided object does not correctly implement Symbol.observable');\n  });\n}\nexport function fromArrayLike(array) {\n  return new Observable(subscriber => {\n    for (let i = 0; i < array.length && !subscriber.closed; i++) {\n      subscriber.next(array[i]);\n    }\n    subscriber.complete();\n  });\n}\nexport function fromPromise(promise) {\n  return new Observable(subscriber => {\n    promise.then(value => {\n      if (!subscriber.closed) {\n        subscriber.next(value);\n        subscriber.complete();\n      }\n    }, err => subscriber.error(err)).then(null, reportUnhandledError);\n  });\n}\nexport function fromIterable(iterable) {\n  return new Observable(subscriber => {\n    for (const value of iterable) {\n      subscriber.next(value);\n      if (subscriber.closed) {\n        return;\n      }\n    }\n    subscriber.complete();\n  });\n}\nexport function fromAsyncIterable(asyncIterable) {\n  return new Observable(subscriber => {\n    process(asyncIterable, subscriber).catch(err => subscriber.error(err));\n  });\n}\nexport function fromReadableStreamLike(readableStream) {\n  return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream));\n}\nfunction process(asyncIterable, subscriber) {\n  var asyncIterable_1, asyncIterable_1_1;\n  var e_1, _a;\n  return __awaiter(this, void 0, void 0, function* () {\n    try {\n      for (asyncIterable_1 = __asyncValues(asyncIterable); asyncIterable_1_1 = yield asyncIterable_1.next(), !asyncIterable_1_1.done;) {\n        const value = asyncIterable_1_1.value;\n        subscriber.next(value);\n        if (subscriber.closed) {\n          return;\n        }\n      }\n    } catch (e_1_1) {\n      e_1 = {\n        error: e_1_1\n      };\n    } finally {\n      try {\n        if (asyncIterable_1_1 && !asyncIterable_1_1.done && (_a = asyncIterable_1.return)) yield _a.call(asyncIterable_1);\n      } finally {\n        if (e_1) throw e_1.error;\n      }\n    }\n    subscriber.complete();\n  });\n}\n","export function executeSchedule(parentSubscription, scheduler, work, delay = 0, repeat = false) {\n  const scheduleSubscription = scheduler.schedule(function () {\n    work();\n    if (repeat) {\n      parentSubscription.add(this.schedule(null, delay));\n    } else {\n      this.unsubscribe();\n    }\n  }, delay);\n  parentSubscription.add(scheduleSubscription);\n  if (!repeat) {\n    return scheduleSubscription;\n  }\n}\n","import { executeSchedule } from '../util/executeSchedule';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function observeOn(scheduler, delay = 0) {\n  return operate((source, subscriber) => {\n    source.subscribe(createOperatorSubscriber(subscriber, value => executeSchedule(subscriber, scheduler, () => subscriber.next(value), delay), () => executeSchedule(subscriber, scheduler, () => subscriber.complete(), delay), err => executeSchedule(subscriber, scheduler, () => subscriber.error(err), delay)));\n  });\n}\n","import { operate } from '../util/lift';\nexport function subscribeOn(scheduler, delay = 0) {\n  return operate((source, subscriber) => {\n    subscriber.add(scheduler.schedule(() => source.subscribe(subscriber), delay));\n  });\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { observeOn } from '../operators/observeOn';\nimport { subscribeOn } from '../operators/subscribeOn';\nexport function scheduleObservable(input, scheduler) {\n  return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { observeOn } from '../operators/observeOn';\nimport { subscribeOn } from '../operators/subscribeOn';\nexport function schedulePromise(input, scheduler) {\n  return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));\n}\n","import { Observable } from '../Observable';\nexport function scheduleArray(input, scheduler) {\n  return new Observable(subscriber => {\n    let i = 0;\n    return scheduler.schedule(function () {\n      if (i === input.length) {\n        subscriber.complete();\n      } else {\n        subscriber.next(input[i++]);\n        if (!subscriber.closed) {\n          this.schedule();\n        }\n      }\n    });\n  });\n}\n","import { Observable } from '../Observable';\nimport { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { isFunction } from '../util/isFunction';\nimport { executeSchedule } from '../util/executeSchedule';\nexport function scheduleIterable(input, scheduler) {\n  return new Observable(subscriber => {\n    let iterator;\n    executeSchedule(subscriber, scheduler, () => {\n      iterator = input[Symbol_iterator]();\n      executeSchedule(subscriber, scheduler, () => {\n        let value;\n        let done;\n        try {\n          ({\n            value,\n            done\n          } = iterator.next());\n        } catch (err) {\n          subscriber.error(err);\n          return;\n        }\n        if (done) {\n          subscriber.complete();\n        } else {\n          subscriber.next(value);\n        }\n      }, 0, true);\n    });\n    return () => isFunction(iterator === null || iterator === void 0 ? void 0 : iterator.return) && iterator.return();\n  });\n}\n","import { Observable } from '../Observable';\nimport { executeSchedule } from '../util/executeSchedule';\nexport function scheduleAsyncIterable(input, scheduler) {\n  if (!input) {\n    throw new Error('Iterable cannot be null');\n  }\n  return new Observable(subscriber => {\n    executeSchedule(subscriber, scheduler, () => {\n      const iterator = input[Symbol.asyncIterator]();\n      executeSchedule(subscriber, scheduler, () => {\n        iterator.next().then(result => {\n          if (result.done) {\n            subscriber.complete();\n          } else {\n            subscriber.next(result.value);\n          }\n        });\n      }, 0, true);\n    });\n  });\n}\n","import { scheduleAsyncIterable } from './scheduleAsyncIterable';\nimport { readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike';\nexport function scheduleReadableStreamLike(input, scheduler) {\n  return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input), scheduler);\n}\n","import { scheduleObservable } from './scheduleObservable';\nimport { schedulePromise } from './schedulePromise';\nimport { scheduleArray } from './scheduleArray';\nimport { scheduleIterable } from './scheduleIterable';\nimport { scheduleAsyncIterable } from './scheduleAsyncIterable';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isPromise } from '../util/isPromise';\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isIterable } from '../util/isIterable';\nimport { isAsyncIterable } from '../util/isAsyncIterable';\nimport { createInvalidObservableTypeError } from '../util/throwUnobservableError';\nimport { isReadableStreamLike } from '../util/isReadableStreamLike';\nimport { scheduleReadableStreamLike } from './scheduleReadableStreamLike';\nexport function scheduled(input, scheduler) {\n  if (input != null) {\n    if (isInteropObservable(input)) {\n      return scheduleObservable(input, scheduler);\n    }\n    if (isArrayLike(input)) {\n      return scheduleArray(input, scheduler);\n    }\n    if (isPromise(input)) {\n      return schedulePromise(input, scheduler);\n    }\n    if (isAsyncIterable(input)) {\n      return scheduleAsyncIterable(input, scheduler);\n    }\n    if (isIterable(input)) {\n      return scheduleIterable(input, scheduler);\n    }\n    if (isReadableStreamLike(input)) {\n      return scheduleReadableStreamLike(input, scheduler);\n    }\n  }\n  throw createInvalidObservableTypeError(input);\n}\n","import { scheduled } from '../scheduled/scheduled';\nimport { innerFrom } from './innerFrom';\nexport function from(input, scheduler) {\n  return scheduler ? scheduled(input, scheduler) : innerFrom(input);\n}\n","import { popScheduler } from '../util/args';\nimport { from } from './from';\nexport function of(...args) {\n  const scheduler = popScheduler(args);\n  return from(args, scheduler);\n}\n","import { Observable } from '../Observable';\nimport { isFunction } from '../util/isFunction';\nexport function throwError(errorOrErrorFactory, scheduler) {\n  const errorFactory = isFunction(errorOrErrorFactory) ? errorOrErrorFactory : () => errorOrErrorFactory;\n  const init = subscriber => subscriber.error(errorFactory());\n  return new Observable(scheduler ? subscriber => scheduler.schedule(init, 0, subscriber) : init);\n}\n","import { Observable } from '../Observable';\nimport { isFunction } from './isFunction';\nexport function isObservable(obj) {\n  return !!obj && (obj instanceof Observable || isFunction(obj.lift) && isFunction(obj.subscribe));\n}\n","import { createErrorClass } from './createErrorClass';\nexport const EmptyError = createErrorClass(_super => function EmptyErrorImpl() {\n  _super(this);\n  this.name = 'EmptyError';\n  this.message = 'no elements in sequence';\n});\n","export function isValidDate(value) {\n  return value instanceof Date && !isNaN(value);\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function map(project, thisArg) {\n  return operate((source, subscriber) => {\n    let index = 0;\n    source.subscribe(createOperatorSubscriber(subscriber, value => {\n      subscriber.next(project.call(thisArg, value, index++));\n    }));\n  });\n}\n","import { map } from \"../operators/map\";\nconst {\n  isArray\n} = Array;\nfunction callOrApply(fn, args) {\n  return isArray(args) ? fn(...args) : fn(args);\n}\nexport function mapOneOrManyArgs(fn) {\n  return map(args => callOrApply(fn, args));\n}\n","const {\n  isArray\n} = Array;\nconst {\n  getPrototypeOf,\n  prototype: objectProto,\n  keys: getKeys\n} = Object;\nexport function argsArgArrayOrObject(args) {\n  if (args.length === 1) {\n    const first = args[0];\n    if (isArray(first)) {\n      return {\n        args: first,\n        keys: null\n      };\n    }\n    if (isPOJO(first)) {\n      const keys = getKeys(first);\n      return {\n        args: keys.map(key => first[key]),\n        keys\n      };\n    }\n  }\n  return {\n    args: args,\n    keys: null\n  };\n}\nfunction isPOJO(obj) {\n  return obj && typeof obj === 'object' && getPrototypeOf(obj) === objectProto;\n}\n","export function createObject(keys, values) {\n  return keys.reduce((result, key, i) => (result[key] = values[i], result), {});\n}\n","import { Observable } from '../Observable';\nimport { argsArgArrayOrObject } from '../util/argsArgArrayOrObject';\nimport { from } from './from';\nimport { identity } from '../util/identity';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { popResultSelector, popScheduler } from '../util/args';\nimport { createObject } from '../util/createObject';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { executeSchedule } from '../util/executeSchedule';\nexport function combineLatest(...args) {\n  const scheduler = popScheduler(args);\n  const resultSelector = popResultSelector(args);\n  const {\n    args: observables,\n    keys\n  } = argsArgArrayOrObject(args);\n  if (observables.length === 0) {\n    return from([], scheduler);\n  }\n  const result = new Observable(combineLatestInit(observables, scheduler, keys ? values => createObject(keys, values) : identity));\n  return resultSelector ? result.pipe(mapOneOrManyArgs(resultSelector)) : result;\n}\nexport function combineLatestInit(observables, scheduler, valueTransform = identity) {\n  return subscriber => {\n    maybeSchedule(scheduler, () => {\n      const {\n        length\n      } = observables;\n      const values = new Array(length);\n      let active = length;\n      let remainingFirstValues = length;\n      for (let i = 0; i < length; i++) {\n        maybeSchedule(scheduler, () => {\n          const source = from(observables[i], scheduler);\n          let hasFirstValue = false;\n          source.subscribe(createOperatorSubscriber(subscriber, value => {\n            values[i] = value;\n            if (!hasFirstValue) {\n              hasFirstValue = true;\n              remainingFirstValues--;\n            }\n            if (!remainingFirstValues) {\n              subscriber.next(valueTransform(values.slice()));\n            }\n          }, () => {\n            if (! --active) {\n              subscriber.complete();\n            }\n          }));\n        }, subscriber);\n      }\n    }, subscriber);\n  };\n}\nfunction maybeSchedule(scheduler, execute, subscription) {\n  if (scheduler) {\n    executeSchedule(subscription, scheduler, execute);\n  } else {\n    execute();\n  }\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { executeSchedule } from '../util/executeSchedule';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalFinalizer) {\n  const buffer = [];\n  let active = 0;\n  let index = 0;\n  let isComplete = false;\n  const checkComplete = () => {\n    if (isComplete && !buffer.length && !active) {\n      subscriber.complete();\n    }\n  };\n  const outerNext = value => active < concurrent ? doInnerSub(value) : buffer.push(value);\n  const doInnerSub = value => {\n    expand && subscriber.next(value);\n    active++;\n    let innerComplete = false;\n    innerFrom(project(value, index++)).subscribe(createOperatorSubscriber(subscriber, innerValue => {\n      onBeforeNext === null || onBeforeNext === void 0 ? void 0 : onBeforeNext(innerValue);\n      if (expand) {\n        outerNext(innerValue);\n      } else {\n        subscriber.next(innerValue);\n      }\n    }, () => {\n      innerComplete = true;\n    }, undefined, () => {\n      if (innerComplete) {\n        try {\n          active--;\n          while (buffer.length && active < concurrent) {\n            const bufferedValue = buffer.shift();\n            if (innerSubScheduler) {\n              executeSchedule(subscriber, innerSubScheduler, () => doInnerSub(bufferedValue));\n            } else {\n              doInnerSub(bufferedValue);\n            }\n          }\n          checkComplete();\n        } catch (err) {\n          subscriber.error(err);\n        }\n      }\n    }));\n  };\n  source.subscribe(createOperatorSubscriber(subscriber, outerNext, () => {\n    isComplete = true;\n    checkComplete();\n  }));\n  return () => {\n    additionalFinalizer === null || additionalFinalizer === void 0 ? void 0 : additionalFinalizer();\n  };\n}\n","import { map } from './map';\nimport { innerFrom } from '../observable/innerFrom';\nimport { operate } from '../util/lift';\nimport { mergeInternals } from './mergeInternals';\nimport { isFunction } from '../util/isFunction';\nexport function mergeMap(project, resultSelector, concurrent = Infinity) {\n  if (isFunction(resultSelector)) {\n    return mergeMap((a, i) => map((b, ii) => resultSelector(a, b, i, ii))(innerFrom(project(a, i))), concurrent);\n  } else if (typeof resultSelector === 'number') {\n    concurrent = resultSelector;\n  }\n  return operate((source, subscriber) => mergeInternals(source, subscriber, project, concurrent));\n}\n","import { mergeMap } from './mergeMap';\nimport { identity } from '../util/identity';\nexport function mergeAll(concurrent = Infinity) {\n  return mergeMap(identity, concurrent);\n}\n","import { mergeAll } from './mergeAll';\nexport function concatAll() {\n  return mergeAll(1);\n}\n","import { concatAll } from '../operators/concatAll';\nimport { popScheduler } from '../util/args';\nimport { from } from './from';\nexport function concat(...args) {\n  return concatAll()(from(args, popScheduler(args)));\n}\n","import { Observable } from '../Observable';\nimport { innerFrom } from './innerFrom';\nexport function defer(observableFactory) {\n  return new Observable(subscriber => {\n    innerFrom(observableFactory()).subscribe(subscriber);\n  });\n}\n","import { Observable } from '../Observable';\nimport { argsArgArrayOrObject } from '../util/argsArgArrayOrObject';\nimport { innerFrom } from './innerFrom';\nimport { popResultSelector } from '../util/args';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { createObject } from '../util/createObject';\nexport function forkJoin(...args) {\n  const resultSelector = popResultSelector(args);\n  const {\n    args: sources,\n    keys\n  } = argsArgArrayOrObject(args);\n  const result = new Observable(subscriber => {\n    const {\n      length\n    } = sources;\n    if (!length) {\n      subscriber.complete();\n      return;\n    }\n    const values = new Array(length);\n    let remainingCompletions = length;\n    let remainingEmissions = length;\n    for (let sourceIndex = 0; sourceIndex < length; sourceIndex++) {\n      let hasValue = false;\n      innerFrom(sources[sourceIndex]).subscribe(createOperatorSubscriber(subscriber, value => {\n        if (!hasValue) {\n          hasValue = true;\n          remainingEmissions--;\n        }\n        values[sourceIndex] = value;\n      }, () => remainingCompletions--, undefined, () => {\n        if (!remainingCompletions || !hasValue) {\n          if (!remainingEmissions) {\n            subscriber.next(keys ? createObject(keys, values) : values);\n          }\n          subscriber.complete();\n        }\n      }));\n    }\n  });\n  return resultSelector ? result.pipe(mapOneOrManyArgs(resultSelector)) : result;\n}\n","import { Observable } from '../Observable';\nimport { async as asyncScheduler } from '../scheduler/async';\nimport { isScheduler } from '../util/isScheduler';\nimport { isValidDate } from '../util/isDate';\nexport function timer(dueTime = 0, intervalOrScheduler, scheduler = asyncScheduler) {\n  let intervalDuration = -1;\n  if (intervalOrScheduler != null) {\n    if (isScheduler(intervalOrScheduler)) {\n      scheduler = intervalOrScheduler;\n    } else {\n      intervalDuration = intervalOrScheduler;\n    }\n  }\n  return new Observable(subscriber => {\n    let due = isValidDate(dueTime) ? +dueTime - scheduler.now() : dueTime;\n    if (due < 0) {\n      due = 0;\n    }\n    let n = 0;\n    return scheduler.schedule(function () {\n      if (!subscriber.closed) {\n        subscriber.next(n++);\n        if (0 <= intervalDuration) {\n          this.schedule(undefined, intervalDuration);\n        } else {\n          subscriber.complete();\n        }\n      }\n    }, due);\n  });\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function filter(predicate, thisArg) {\n  return operate((source, subscriber) => {\n    let index = 0;\n    source.subscribe(createOperatorSubscriber(subscriber, value => predicate.call(thisArg, value, index++) && subscriber.next(value)));\n  });\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { operate } from '../util/lift';\nexport function catchError(selector) {\n  return operate((source, subscriber) => {\n    let innerSub = null;\n    let syncUnsub = false;\n    let handledResult;\n    innerSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, undefined, err => {\n      handledResult = innerFrom(selector(err, catchError(selector)(source)));\n      if (innerSub) {\n        innerSub.unsubscribe();\n        innerSub = null;\n        handledResult.subscribe(subscriber);\n      } else {\n        syncUnsub = true;\n      }\n    }));\n    if (syncUnsub) {\n      innerSub.unsubscribe();\n      innerSub = null;\n      handledResult.subscribe(subscriber);\n    }\n  });\n}\n","import { createOperatorSubscriber } from './OperatorSubscriber';\nexport function scanInternals(accumulator, seed, hasSeed, emitOnNext, emitBeforeComplete) {\n  return (source, subscriber) => {\n    let hasState = hasSeed;\n    let state = seed;\n    let index = 0;\n    source.subscribe(createOperatorSubscriber(subscriber, value => {\n      const i = index++;\n      state = hasState ? accumulator(state, value, i) : (hasState = true, value);\n      emitOnNext && subscriber.next(state);\n    }, emitBeforeComplete && (() => {\n      hasState && subscriber.next(state);\n      subscriber.complete();\n    })));\n  };\n}\n","import { mergeMap } from './mergeMap';\nimport { isFunction } from '../util/isFunction';\nexport function concatMap(project, resultSelector) {\n  return isFunction(resultSelector) ? mergeMap(project, resultSelector, 1) : mergeMap(project, 1);\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function defaultIfEmpty(defaultValue) {\n  return operate((source, subscriber) => {\n    let hasValue = false;\n    source.subscribe(createOperatorSubscriber(subscriber, value => {\n      hasValue = true;\n      subscriber.next(value);\n    }, () => {\n      if (!hasValue) {\n        subscriber.next(defaultValue);\n      }\n      subscriber.complete();\n    }));\n  });\n}\n","import { EMPTY } from '../observable/empty';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function take(count) {\n  return count <= 0 ? () => EMPTY : operate((source, subscriber) => {\n    let seen = 0;\n    source.subscribe(createOperatorSubscriber(subscriber, value => {\n      if (++seen <= count) {\n        subscriber.next(value);\n        if (count <= seen) {\n          subscriber.complete();\n        }\n      }\n    }));\n  });\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { noop } from '../util/noop';\nexport function ignoreElements() {\n  return operate((source, subscriber) => {\n    source.subscribe(createOperatorSubscriber(subscriber, noop));\n  });\n}\n","import { map } from './map';\nexport function mapTo(value) {\n  return map(() => value);\n}\n","import { concat } from '../observable/concat';\nimport { take } from './take';\nimport { ignoreElements } from './ignoreElements';\nimport { mapTo } from './mapTo';\nimport { mergeMap } from './mergeMap';\nimport { innerFrom } from '../observable/innerFrom';\nexport function delayWhen(delayDurationSelector, subscriptionDelay) {\n  if (subscriptionDelay) {\n    return source => concat(subscriptionDelay.pipe(take(1), ignoreElements()), source.pipe(delayWhen(delayDurationSelector)));\n  }\n  return mergeMap((value, index) => innerFrom(delayDurationSelector(value, index)).pipe(take(1), mapTo(value)));\n}\n","import { asyncScheduler } from '../scheduler/async';\nimport { delayWhen } from './delayWhen';\nimport { timer } from '../observable/timer';\nexport function delay(due, scheduler = asyncScheduler) {\n  const duration = timer(due, scheduler);\n  return delayWhen(() => duration);\n}\n","import { EmptyError } from '../util/EmptyError';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function throwIfEmpty(errorFactory = defaultErrorFactory) {\n  return operate((source, subscriber) => {\n    let hasValue = false;\n    source.subscribe(createOperatorSubscriber(subscriber, value => {\n      hasValue = true;\n      subscriber.next(value);\n    }, () => hasValue ? subscriber.complete() : subscriber.error(errorFactory())));\n  });\n}\nfunction defaultErrorFactory() {\n  return new EmptyError();\n}\n","import { operate } from '../util/lift';\nexport function finalize(callback) {\n  return operate((source, subscriber) => {\n    try {\n      source.subscribe(subscriber);\n    } finally {\n      subscriber.add(callback);\n    }\n  });\n}\n","import { EmptyError } from '../util/EmptyError';\nimport { filter } from './filter';\nimport { take } from './take';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { identity } from '../util/identity';\nexport function first(predicate, defaultValue) {\n  const hasDefaultValue = arguments.length >= 2;\n  return source => source.pipe(predicate ? filter((v, i) => predicate(v, i, source)) : identity, take(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(() => new EmptyError()));\n}\n","import { EMPTY } from '../observable/empty';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function takeLast(count) {\n  return count <= 0 ? () => EMPTY : operate((source, subscriber) => {\n    let buffer = [];\n    source.subscribe(createOperatorSubscriber(subscriber, value => {\n      buffer.push(value);\n      count < buffer.length && buffer.shift();\n    }, () => {\n      for (const value of buffer) {\n        subscriber.next(value);\n      }\n      subscriber.complete();\n    }, undefined, () => {\n      buffer = null;\n    }));\n  });\n}\n","import { EmptyError } from '../util/EmptyError';\nimport { filter } from './filter';\nimport { takeLast } from './takeLast';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { identity } from '../util/identity';\nexport function last(predicate, defaultValue) {\n  const hasDefaultValue = arguments.length >= 2;\n  return source => source.pipe(predicate ? filter((v, i) => predicate(v, i, source)) : identity, takeLast(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(() => new EmptyError()));\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { Subject } from '../Subject';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function retryWhen(notifier) {\n  return operate((source, subscriber) => {\n    let innerSub;\n    let syncResub = false;\n    let errors$;\n    const subscribeForRetryWhen = () => {\n      innerSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, undefined, err => {\n        if (!errors$) {\n          errors$ = new Subject();\n          innerFrom(notifier(errors$)).subscribe(createOperatorSubscriber(subscriber, () => innerSub ? subscribeForRetryWhen() : syncResub = true));\n        }\n        if (errors$) {\n          errors$.next(err);\n        }\n      }));\n      if (syncResub) {\n        innerSub.unsubscribe();\n        innerSub = null;\n        syncResub = false;\n        subscribeForRetryWhen();\n      }\n    };\n    subscribeForRetryWhen();\n  });\n}\n","import { operate } from '../util/lift';\nimport { scanInternals } from './scanInternals';\nexport function scan(accumulator, seed) {\n  return operate(scanInternals(accumulator, seed, arguments.length >= 2, true));\n}\n","import { concat } from '../observable/concat';\nimport { popScheduler } from '../util/args';\nimport { operate } from '../util/lift';\nexport function startWith(...values) {\n  const scheduler = popScheduler(values);\n  return operate((source, subscriber) => {\n    (scheduler ? concat(values, source, scheduler) : concat(values, source)).subscribe(subscriber);\n  });\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function switchMap(project, resultSelector) {\n  return operate((source, subscriber) => {\n    let innerSubscriber = null;\n    let index = 0;\n    let isComplete = false;\n    const checkComplete = () => isComplete && !innerSubscriber && subscriber.complete();\n    source.subscribe(createOperatorSubscriber(subscriber, value => {\n      innerSubscriber === null || innerSubscriber === void 0 ? void 0 : innerSubscriber.unsubscribe();\n      let innerIndex = 0;\n      const outerIndex = index++;\n      innerFrom(project(value, outerIndex)).subscribe(innerSubscriber = createOperatorSubscriber(subscriber, innerValue => subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue), () => {\n        innerSubscriber = null;\n        checkComplete();\n      }));\n    }, () => {\n      isComplete = true;\n      checkComplete();\n    }));\n  });\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { noop } from '../util/noop';\nexport function takeUntil(notifier) {\n  return operate((source, subscriber) => {\n    innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber, () => subscriber.complete(), noop));\n    !subscriber.closed && source.subscribe(subscriber);\n  });\n}\n","import { isFunction } from '../util/isFunction';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { identity } from '../util/identity';\nexport function tap(observerOrNext, error, complete) {\n  const tapObserver = isFunction(observerOrNext) || error || complete ? {\n    next: observerOrNext,\n    error,\n    complete\n  } : observerOrNext;\n  return tapObserver ? operate((source, subscriber) => {\n    var _a;\n    (_a = tapObserver.subscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver);\n    let isUnsub = true;\n    source.subscribe(createOperatorSubscriber(subscriber, value => {\n      var _a;\n      (_a = tapObserver.next) === null || _a === void 0 ? void 0 : _a.call(tapObserver, value);\n      subscriber.next(value);\n    }, () => {\n      var _a;\n      isUnsub = false;\n      (_a = tapObserver.complete) === null || _a === void 0 ? void 0 : _a.call(tapObserver);\n      subscriber.complete();\n    }, err => {\n      var _a;\n      isUnsub = false;\n      (_a = tapObserver.error) === null || _a === void 0 ? void 0 : _a.call(tapObserver, err);\n      subscriber.error(err);\n    }, () => {\n      var _a, _b;\n      if (isUnsub) {\n        (_a = tapObserver.unsubscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver);\n      }\n      (_b = tapObserver.finalize) === null || _b === void 0 ? void 0 : _b.call(tapObserver);\n    }));\n  }) : identity;\n}\n","/**\n * @license Angular v17.3.11\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport { SIGNAL_NODE as SIGNAL_NODE$1, signalSetFn as signalSetFn$1, producerAccessed as producerAccessed$1, SIGNAL as SIGNAL$1, getActiveConsumer as getActiveConsumer$1, setActiveConsumer as setActiveConsumer$1, consumerDestroy as consumerDestroy$1, REACTIVE_NODE as REACTIVE_NODE$1, consumerBeforeComputation as consumerBeforeComputation$1, consumerAfterComputation as consumerAfterComputation$1, consumerPollProducersForChange as consumerPollProducersForChange$1, createSignal as createSignal$1, signalUpdateFn as signalUpdateFn$1, createComputed as createComputed$1, setThrowInvalidWriteToSignalError as setThrowInvalidWriteToSignalError$1, createWatch as createWatch$1 } from '@angular/core/primitives/signals';\nimport { Subject, Subscription, BehaviorSubject } from 'rxjs';\nimport { map, first } from 'rxjs/operators';\n\n/**\n * Base URL for the error details page.\n *\n * Keep this constant in sync across:\n *  - packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.ts\n *  - packages/core/src/error_details_base_url.ts\n */\nconst ERROR_DETAILS_PAGE_BASE_URL = 'https://angular.io/errors';\n/**\n * URL for the XSS security documentation.\n */\nconst XSS_SECURITY_URL = 'https://g.co/ng/security#xss';\n\n/**\n * Class that represents a runtime error.\n * Formats and outputs the error message in a consistent way.\n *\n * Example:\n * ```\n *  throw new RuntimeError(\n *    RuntimeErrorCode.INJECTOR_ALREADY_DESTROYED,\n *    ngDevMode && 'Injector has already been destroyed.');\n * ```\n *\n * Note: the `message` argument contains a descriptive error message as a string in development\n * mode (when the `ngDevMode` is defined). In production mode (after tree-shaking pass), the\n * `message` argument becomes `false`, thus we account for it in the typings and the runtime\n * logic.\n */\nclass RuntimeError extends Error {\n  constructor(code, message) {\n    super(formatRuntimeError(code, message));\n    this.code = code;\n  }\n}\n/**\n * Called to format a runtime error.\n * See additional info on the `message` argument type in the `RuntimeError` class description.\n */\nfunction formatRuntimeError(code, message) {\n  // Error code might be a negative number, which is a special marker that instructs the logic to\n  // generate a link to the error details page on angular.io.\n  // We also prepend `0` to non-compile-time errors.\n  const fullCode = `NG0${Math.abs(code)}`;\n  let errorMessage = `${fullCode}${message ? ': ' + message : ''}`;\n  if (ngDevMode && code < 0) {\n    const addPeriodSeparator = !errorMessage.match(/[.,;!?\\n]$/);\n    const separator = addPeriodSeparator ? '.' : '';\n    errorMessage = `${errorMessage}${separator} Find more at ${ERROR_DETAILS_PAGE_BASE_URL}/${fullCode}`;\n  }\n  return errorMessage;\n}\nconst REQUIRED_UNSET_VALUE = /* @__PURE__ */Symbol('InputSignalNode#UNSET');\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst INPUT_SIGNAL_NODE = /* @__PURE__ */(() => {\n  return {\n    ...SIGNAL_NODE$1,\n    transformFn: undefined,\n    applyValueToInputSignal(node, value) {\n      signalSetFn$1(node, value);\n    }\n  };\n})();\nconst ɵINPUT_SIGNAL_BRAND_READ_TYPE = /* @__PURE__ */Symbol();\nconst ɵINPUT_SIGNAL_BRAND_WRITE_TYPE = /* @__PURE__ */Symbol();\n/**\n * Creates an input signal.\n *\n * @param initialValue The initial value.\n *   Can be set to {@link REQUIRED_UNSET_VALUE} for required inputs.\n * @param options Additional options for the input. e.g. a transform, or an alias.\n */\nfunction createInputSignal(initialValue, options) {\n  const node = Object.create(INPUT_SIGNAL_NODE);\n  node.value = initialValue;\n  // Perf note: Always set `transformFn` here to ensure that `node` always\n  // has the same v8 class shape, allowing monomorphic reads on input signals.\n  node.transformFn = options?.transform;\n  function inputValueFn() {\n    // Record that someone looked at this signal.\n    producerAccessed$1(node);\n    if (node.value === REQUIRED_UNSET_VALUE) {\n      throw new RuntimeError(-950 /* RuntimeErrorCode.REQUIRED_INPUT_NO_VALUE */, ngDevMode && 'Input is required but no value is available yet.');\n    }\n    return node.value;\n  }\n  inputValueFn[SIGNAL$1] = node;\n  if (ngDevMode) {\n    inputValueFn.toString = () => `[Input Signal: ${inputValueFn()}]`;\n  }\n  return inputValueFn;\n}\n\n/**\n * Convince closure compiler that the wrapped function has no side-effects.\n *\n * Closure compiler always assumes that `toString` has no side-effects. We use this quirk to\n * allow us to execute a function but have closure compiler mark the call as no-side-effects.\n * It is important that the return value for the `noSideEffects` function be assigned\n * to something which is retained otherwise the call to `noSideEffects` will be removed by closure\n * compiler.\n */\nfunction noSideEffects(fn) {\n  return {\n    toString: fn\n  }.toString();\n}\nconst ANNOTATIONS = '__annotations__';\nconst PARAMETERS = '__parameters__';\nconst PROP_METADATA = '__prop__metadata__';\n/**\n * @suppress {globalThis}\n */\nfunction makeDecorator(name, props, parentClass, additionalProcessing, typeFn) {\n  return noSideEffects(() => {\n    const metaCtor = makeMetadataCtor(props);\n    function DecoratorFactory(...args) {\n      if (this instanceof DecoratorFactory) {\n        metaCtor.call(this, ...args);\n        return this;\n      }\n      const annotationInstance = new DecoratorFactory(...args);\n      return function TypeDecorator(cls) {\n        if (typeFn) typeFn(cls, ...args);\n        // Use of Object.defineProperty is important since it creates non-enumerable property which\n        // prevents the property is copied during subclassing.\n        const annotations = cls.hasOwnProperty(ANNOTATIONS) ? cls[ANNOTATIONS] : Object.defineProperty(cls, ANNOTATIONS, {\n          value: []\n        })[ANNOTATIONS];\n        annotations.push(annotationInstance);\n        if (additionalProcessing) additionalProcessing(cls);\n        return cls;\n      };\n    }\n    if (parentClass) {\n      DecoratorFactory.prototype = Object.create(parentClass.prototype);\n    }\n    DecoratorFactory.prototype.ngMetadataName = name;\n    DecoratorFactory.annotationCls = DecoratorFactory;\n    return DecoratorFactory;\n  });\n}\nfunction makeMetadataCtor(props) {\n  return function ctor(...args) {\n    if (props) {\n      const values = props(...args);\n      for (const propName in values) {\n        this[propName] = values[propName];\n      }\n    }\n  };\n}\nfunction makeParamDecorator(name, props, parentClass) {\n  return noSideEffects(() => {\n    const metaCtor = makeMetadataCtor(props);\n    function ParamDecoratorFactory(...args) {\n      if (this instanceof ParamDecoratorFactory) {\n        metaCtor.apply(this, args);\n        return this;\n      }\n      const annotationInstance = new ParamDecoratorFactory(...args);\n      ParamDecorator.annotation = annotationInstance;\n      return ParamDecorator;\n      function ParamDecorator(cls, unusedKey, index) {\n        // Use of Object.defineProperty is important since it creates non-enumerable property which\n        // prevents the property is copied during subclassing.\n        const parameters = cls.hasOwnProperty(PARAMETERS) ? cls[PARAMETERS] : Object.defineProperty(cls, PARAMETERS, {\n          value: []\n        })[PARAMETERS];\n        // there might be gaps if some in between parameters do not have annotations.\n        // we pad with nulls.\n        while (parameters.length <= index) {\n          parameters.push(null);\n        }\n        (parameters[index] = parameters[index] || []).push(annotationInstance);\n        return cls;\n      }\n    }\n    if (parentClass) {\n      ParamDecoratorFactory.prototype = Object.create(parentClass.prototype);\n    }\n    ParamDecoratorFactory.prototype.ngMetadataName = name;\n    ParamDecoratorFactory.annotationCls = ParamDecoratorFactory;\n    return ParamDecoratorFactory;\n  });\n}\nfunction makePropDecorator(name, props, parentClass, additionalProcessing) {\n  return noSideEffects(() => {\n    const metaCtor = makeMetadataCtor(props);\n    function PropDecoratorFactory(...args) {\n      if (this instanceof PropDecoratorFactory) {\n        metaCtor.apply(this, args);\n        return this;\n      }\n      const decoratorInstance = new PropDecoratorFactory(...args);\n      function PropDecorator(target, name) {\n        // target is undefined with standard decorators. This case is not supported and will throw\n        // if this decorator is used in JIT mode with standard decorators.\n        if (target === undefined) {\n          throw new Error('Standard Angular field decorators are not supported in JIT mode.');\n        }\n        const constructor = target.constructor;\n        // Use of Object.defineProperty is important because it creates a non-enumerable property\n        // which prevents the property from being copied during subclassing.\n        const meta = constructor.hasOwnProperty(PROP_METADATA) ? constructor[PROP_METADATA] : Object.defineProperty(constructor, PROP_METADATA, {\n          value: {}\n        })[PROP_METADATA];\n        meta[name] = meta.hasOwnProperty(name) && meta[name] || [];\n        meta[name].unshift(decoratorInstance);\n        if (additionalProcessing) additionalProcessing(target, name, ...args);\n      }\n      return PropDecorator;\n    }\n    if (parentClass) {\n      PropDecoratorFactory.prototype = Object.create(parentClass.prototype);\n    }\n    PropDecoratorFactory.prototype.ngMetadataName = name;\n    PropDecoratorFactory.annotationCls = PropDecoratorFactory;\n    return PropDecoratorFactory;\n  });\n}\nconst _global = globalThis;\nfunction ngDevModeResetPerfCounters() {\n  const locationString = typeof location !== 'undefined' ? location.toString() : '';\n  const newCounters = {\n    namedConstructors: locationString.indexOf('ngDevMode=namedConstructors') != -1,\n    firstCreatePass: 0,\n    tNode: 0,\n    tView: 0,\n    rendererCreateTextNode: 0,\n    rendererSetText: 0,\n    rendererCreateElement: 0,\n    rendererAddEventListener: 0,\n    rendererSetAttribute: 0,\n    rendererRemoveAttribute: 0,\n    rendererSetProperty: 0,\n    rendererSetClassName: 0,\n    rendererAddClass: 0,\n    rendererRemoveClass: 0,\n    rendererSetStyle: 0,\n    rendererRemoveStyle: 0,\n    rendererDestroy: 0,\n    rendererDestroyNode: 0,\n    rendererMoveNode: 0,\n    rendererRemoveNode: 0,\n    rendererAppendChild: 0,\n    rendererInsertBefore: 0,\n    rendererCreateComment: 0,\n    hydratedNodes: 0,\n    hydratedComponents: 0,\n    dehydratedViewsRemoved: 0,\n    dehydratedViewsCleanupRuns: 0,\n    componentsSkippedHydration: 0\n  };\n  // Make sure to refer to ngDevMode as ['ngDevMode'] for closure.\n  const allowNgDevModeTrue = locationString.indexOf('ngDevMode=false') === -1;\n  if (!allowNgDevModeTrue) {\n    _global['ngDevMode'] = false;\n  } else {\n    if (typeof _global['ngDevMode'] !== 'object') {\n      _global['ngDevMode'] = {};\n    }\n    Object.assign(_global['ngDevMode'], newCounters);\n  }\n  return newCounters;\n}\n/**\n * This function checks to see if the `ngDevMode` has been set. If yes,\n * then we honor it, otherwise we default to dev mode with additional checks.\n *\n * The idea is that unless we are doing production build where we explicitly\n * set `ngDevMode == false` we should be helping the developer by providing\n * as much early warning and errors as possible.\n *\n * `ɵɵdefineComponent` is guaranteed to have been called before any component template functions\n * (and thus Ivy instructions), so a single initialization there is sufficient to ensure ngDevMode\n * is defined for the entire instruction set.\n *\n * When checking `ngDevMode` on toplevel, always init it before referencing it\n * (e.g. `((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode())`), otherwise you can\n *  get a `ReferenceError` like in https://github.com/angular/angular/issues/31595.\n *\n * Details on possible values for `ngDevMode` can be found on its docstring.\n *\n * NOTE:\n * - changes to the `ngDevMode` name must be synced with `compiler-cli/src/tooling.ts`.\n */\nfunction initNgDevMode() {\n  // The below checks are to ensure that calling `initNgDevMode` multiple times does not\n  // reset the counters.\n  // If the `ngDevMode` is not an object, then it means we have not created the perf counters\n  // yet.\n  if (typeof ngDevMode === 'undefined' || ngDevMode) {\n    if (typeof ngDevMode !== 'object' || Object.keys(ngDevMode).length === 0) {\n      ngDevModeResetPerfCounters();\n    }\n    return typeof ngDevMode !== 'undefined' && !!ngDevMode;\n  }\n  return false;\n}\nfunction getClosureSafeProperty(objWithPropertyToExtract) {\n  for (let key in objWithPropertyToExtract) {\n    if (objWithPropertyToExtract[key] === getClosureSafeProperty) {\n      return key;\n    }\n  }\n  throw Error('Could not find renamed property on target object.');\n}\n/**\n * Sets properties on a target object from a source object, but only if\n * the property doesn't already exist on the target object.\n * @param target The target to set properties on\n * @param source The source of the property keys and values to set\n */\nfunction fillProperties(target, source) {\n  for (const key in source) {\n    if (source.hasOwnProperty(key) && !target.hasOwnProperty(key)) {\n      target[key] = source[key];\n    }\n  }\n}\nfunction stringify(token) {\n  if (typeof token === 'string') {\n    return token;\n  }\n  if (Array.isArray(token)) {\n    return '[' + token.map(stringify).join(', ') + ']';\n  }\n  if (token == null) {\n    return '' + token;\n  }\n  if (token.overriddenName) {\n    return `${token.overriddenName}`;\n  }\n  if (token.name) {\n    return `${token.name}`;\n  }\n  const res = token.toString();\n  if (res == null) {\n    return '' + res;\n  }\n  const newLineIndex = res.indexOf('\\n');\n  return newLineIndex === -1 ? res : res.substring(0, newLineIndex);\n}\n/**\n * Concatenates two strings with separator, allocating new strings only when necessary.\n *\n * @param before before string.\n * @param separator separator string.\n * @param after after string.\n * @returns concatenated string.\n */\nfunction concatStringsWithSpace(before, after) {\n  return before == null || before === '' ? after === null ? '' : after : after == null || after === '' ? before : before + ' ' + after;\n}\n/**\n * Ellipses the string in the middle when longer than the max length\n *\n * @param string\n * @param maxLength of the output string\n * @returns ellipsed string with ... in the middle\n */\nfunction truncateMiddle(str, maxLength = 100) {\n  if (!str || maxLength < 1 || str.length <= maxLength) return str;\n  if (maxLength == 1) return str.substring(0, 1) + '...';\n  const halfLimit = Math.round(maxLength / 2);\n  return str.substring(0, halfLimit) + '...' + str.substring(str.length - halfLimit);\n}\nconst __forward_ref__ = /*#__PURE__*/getClosureSafeProperty({\n  __forward_ref__: getClosureSafeProperty\n});\n/**\n * Allows to refer to references which are not yet defined.\n *\n * For instance, `forwardRef` is used when the `token` which we need to refer to for the purposes of\n * DI is declared, but not yet defined. It is also used when the `token` which we use when creating\n * a query is not yet defined.\n *\n * `forwardRef` is also used to break circularities in standalone components imports.\n *\n * @usageNotes\n * ### Circular dependency example\n * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref'}\n *\n * ### Circular standalone reference import example\n * ```ts\n * @Component({\n *   standalone: true,\n *   imports: [ChildComponent],\n *   selector: 'app-parent',\n *   template: `<app-child [hideParent]=\"hideParent\"></app-child>`,\n * })\n * export class ParentComponent {\n *   @Input() hideParent: boolean;\n * }\n *\n *\n * @Component({\n *   standalone: true,\n *   imports: [CommonModule, forwardRef(() => ParentComponent)],\n *   selector: 'app-child',\n *   template: `<app-parent *ngIf=\"!hideParent\"></app-parent>`,\n * })\n * export class ChildComponent {\n *   @Input() hideParent: boolean;\n * }\n * ```\n *\n * @publicApi\n */\nfunction forwardRef(forwardRefFn) {\n  forwardRefFn.__forward_ref__ = forwardRef;\n  forwardRefFn.toString = function () {\n    return stringify(this());\n  };\n  return forwardRefFn;\n}\n/**\n * Lazily retrieves the reference value from a forwardRef.\n *\n * Acts as the identity function when given a non-forward-ref value.\n *\n * @usageNotes\n * ### Example\n *\n * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='resolve_forward_ref'}\n *\n * @see {@link forwardRef}\n * @publicApi\n */\nfunction resolveForwardRef(type) {\n  return isForwardRef(type) ? type() : type;\n}\n/** Checks whether a function is wrapped by a `forwardRef`. */\nfunction isForwardRef(fn) {\n  return typeof fn === 'function' && fn.hasOwnProperty(__forward_ref__) && fn.__forward_ref__ === forwardRef;\n}\n\n// The functions in this file verify that the assumptions we are making\nfunction assertNumber(actual, msg) {\n  if (!(typeof actual === 'number')) {\n    throwError(msg, typeof actual, 'number', '===');\n  }\n}\nfunction assertNumberInRange(actual, minInclusive, maxInclusive) {\n  assertNumber(actual, 'Expected a number');\n  assertLessThanOrEqual(actual, maxInclusive, 'Expected number to be less than or equal to');\n  assertGreaterThanOrEqual(actual, minInclusive, 'Expected number to be greater than or equal to');\n}\nfunction assertString(actual, msg) {\n  if (!(typeof actual === 'string')) {\n    throwError(msg, actual === null ? 'null' : typeof actual, 'string', '===');\n  }\n}\nfunction assertFunction(actual, msg) {\n  if (!(typeof actual === 'function')) {\n    throwError(msg, actual === null ? 'null' : typeof actual, 'function', '===');\n  }\n}\nfunction assertEqual(actual, expected, msg) {\n  if (!(actual == expected)) {\n    throwError(msg, actual, expected, '==');\n  }\n}\nfunction assertNotEqual(actual, expected, msg) {\n  if (!(actual != expected)) {\n    throwError(msg, actual, expected, '!=');\n  }\n}\nfunction assertSame(actual, expected, msg) {\n  if (!(actual === expected)) {\n    throwError(msg, actual, expected, '===');\n  }\n}\nfunction assertNotSame(actual, expected, msg) {\n  if (!(actual !== expected)) {\n    throwError(msg, actual, expected, '!==');\n  }\n}\nfunction assertLessThan(actual, expected, msg) {\n  if (!(actual < expected)) {\n    throwError(msg, actual, expected, '<');\n  }\n}\nfunction assertLessThanOrEqual(actual, expected, msg) {\n  if (!(actual <= expected)) {\n    throwError(msg, actual, expected, '<=');\n  }\n}\nfunction assertGreaterThan(actual, expected, msg) {\n  if (!(actual > expected)) {\n    throwError(msg, actual, expected, '>');\n  }\n}\nfunction assertGreaterThanOrEqual(actual, expected, msg) {\n  if (!(actual >= expected)) {\n    throwError(msg, actual, expected, '>=');\n  }\n}\nfunction assertNotDefined(actual, msg) {\n  if (actual != null) {\n    throwError(msg, actual, null, '==');\n  }\n}\nfunction assertDefined(actual, msg) {\n  if (actual == null) {\n    throwError(msg, actual, null, '!=');\n  }\n}\nfunction throwError(msg, actual, expected, comparison) {\n  throw new Error(`ASSERTION ERROR: ${msg}` + (comparison == null ? '' : ` [Expected=> ${expected} ${comparison} ${actual} <=Actual]`));\n}\nfunction assertDomNode(node) {\n  if (!(node instanceof Node)) {\n    throwError(`The provided value must be an instance of a DOM Node but got ${stringify(node)}`);\n  }\n}\nfunction assertElement(node) {\n  if (!(node instanceof Element)) {\n    throwError(`The provided value must be an element but got ${stringify(node)}`);\n  }\n}\nfunction assertIndexInRange(arr, index) {\n  assertDefined(arr, 'Array must be defined.');\n  const maxLen = arr.length;\n  if (index < 0 || index >= maxLen) {\n    throwError(`Index expected to be less than ${maxLen} but got ${index}`);\n  }\n}\nfunction assertOneOf(value, ...validValues) {\n  if (validValues.indexOf(value) !== -1) return true;\n  throwError(`Expected value to be one of ${JSON.stringify(validValues)} but was ${JSON.stringify(value)}.`);\n}\nfunction assertNotReactive(fn) {\n  if (getActiveConsumer$1() !== null) {\n    throwError(`${fn}() should never be called in a reactive context.`);\n  }\n}\n\n/**\n * Construct an injectable definition which defines how a token will be constructed by the DI\n * system, and in which injectors (if any) it will be available.\n *\n * This should be assigned to a static `ɵprov` field on a type, which will then be an\n * `InjectableType`.\n *\n * Options:\n * * `providedIn` determines which injectors will include the injectable, by either associating it\n *   with an `@NgModule` or other `InjectorType`, or by specifying that this injectable should be\n *   provided in the `'root'` injector, which will be the application-level injector in most apps.\n * * `factory` gives the zero argument function which will create an instance of the injectable.\n *   The factory can call [`inject`](api/core/inject) to access the `Injector` and request injection\n * of dependencies.\n *\n * @codeGenApi\n * @publicApi This instruction has been emitted by ViewEngine for some time and is deployed to npm.\n */\nfunction ɵɵdefineInjectable(opts) {\n  return {\n    token: opts.token,\n    providedIn: opts.providedIn || null,\n    factory: opts.factory,\n    value: undefined\n  };\n}\n/**\n * @deprecated in v8, delete after v10. This API should be used only by generated code, and that\n * code should now use ɵɵdefineInjectable instead.\n * @publicApi\n */\nconst defineInjectable = ɵɵdefineInjectable;\n/**\n * Construct an `InjectorDef` which configures an injector.\n *\n * This should be assigned to a static injector def (`ɵinj`) field on a type, which will then be an\n * `InjectorType`.\n *\n * Options:\n *\n * * `providers`: an optional array of providers to add to the injector. Each provider must\n *   either have a factory or point to a type which has a `ɵprov` static property (the\n *   type must be an `InjectableType`).\n * * `imports`: an optional array of imports of other `InjectorType`s or `InjectorTypeWithModule`s\n *   whose providers will also be added to the injector. Locally provided types will override\n *   providers from imports.\n *\n * @codeGenApi\n */\nfunction ɵɵdefineInjector(options) {\n  return {\n    providers: options.providers || [],\n    imports: options.imports || []\n  };\n}\n/**\n * Read the injectable def (`ɵprov`) for `type` in a way which is immune to accidentally reading\n * inherited value.\n *\n * @param type A type which may have its own (non-inherited) `ɵprov`.\n */\nfunction getInjectableDef(type) {\n  return getOwnDefinition(type, NG_PROV_DEF) || getOwnDefinition(type, NG_INJECTABLE_DEF);\n}\nfunction isInjectable(type) {\n  return getInjectableDef(type) !== null;\n}\n/**\n * Return definition only if it is defined directly on `type` and is not inherited from a base\n * class of `type`.\n */\nfunction getOwnDefinition(type, field) {\n  return type.hasOwnProperty(field) ? type[field] : null;\n}\n/**\n * Read the injectable def (`ɵprov`) for `type` or read the `ɵprov` from one of its ancestors.\n *\n * @param type A type which may have `ɵprov`, via inheritance.\n *\n * @deprecated Will be removed in a future version of Angular, where an error will occur in the\n *     scenario if we find the `ɵprov` on an ancestor only.\n */\nfunction getInheritedInjectableDef(type) {\n  const def = type && (type[NG_PROV_DEF] || type[NG_INJECTABLE_DEF]);\n  if (def) {\n    ngDevMode && console.warn(`DEPRECATED: DI is instantiating a token \"${type.name}\" that inherits its @Injectable decorator but does not provide one itself.\\n` + `This will become an error in a future version of Angular. Please add @Injectable() to the \"${type.name}\" class.`);\n    return def;\n  } else {\n    return null;\n  }\n}\n/**\n * Read the injector def type in a way which is immune to accidentally reading inherited value.\n *\n * @param type type which may have an injector def (`ɵinj`)\n */\nfunction getInjectorDef(type) {\n  return type && (type.hasOwnProperty(NG_INJ_DEF) || type.hasOwnProperty(NG_INJECTOR_DEF)) ? type[NG_INJ_DEF] : null;\n}\nconst NG_PROV_DEF = /*#__PURE__*/getClosureSafeProperty({\n  ɵprov: getClosureSafeProperty\n});\nconst NG_INJ_DEF = /*#__PURE__*/getClosureSafeProperty({\n  ɵinj: getClosureSafeProperty\n});\n// We need to keep these around so we can read off old defs if new defs are unavailable\nconst NG_INJECTABLE_DEF = /*#__PURE__*/getClosureSafeProperty({\n  ngInjectableDef: getClosureSafeProperty\n});\nconst NG_INJECTOR_DEF = /*#__PURE__*/getClosureSafeProperty({\n  ngInjectorDef: getClosureSafeProperty\n});\n\n/**\n * Creates a token that can be used in a DI Provider.\n *\n * Use an `InjectionToken` whenever the type you are injecting is not reified (does not have a\n * runtime representation) such as when injecting an interface, callable type, array or\n * parameterized type.\n *\n * `InjectionToken` is parameterized on `T` which is the type of object which will be returned by\n * the `Injector`. This provides an additional level of type safety.\n *\n * <div class=\"alert is-helpful\">\n *\n * **Important Note**: Ensure that you use the same instance of the `InjectionToken` in both the\n * provider and the injection call. Creating a new instance of `InjectionToken` in different places,\n * even with the same description, will be treated as different tokens by Angular's DI system,\n * leading to a `NullInjectorError`.\n *\n * </div>\n *\n * <code-example format=\"typescript\" language=\"typescript\" path=\"injection-token/src/main.ts\"\n * region=\"InjectionToken\"></code-example>\n *\n * When creating an `InjectionToken`, you can optionally specify a factory function which returns\n * (possibly by creating) a default value of the parameterized type `T`. This sets up the\n * `InjectionToken` using this factory as a provider as if it was defined explicitly in the\n * application's root injector. If the factory function, which takes zero arguments, needs to inject\n * dependencies, it can do so using the [`inject`](api/core/inject) function.\n * As you can see in the Tree-shakable InjectionToken example below.\n *\n * Additionally, if a `factory` is specified you can also specify the `providedIn` option, which\n * overrides the above behavior and marks the token as belonging to a particular `@NgModule` (note:\n * this option is now deprecated). As mentioned above, `'root'` is the default value for\n * `providedIn`.\n *\n * The `providedIn: NgModule` and `providedIn: 'any'` options are deprecated.\n *\n * @usageNotes\n * ### Basic Examples\n *\n * ### Plain InjectionToken\n *\n * {@example core/di/ts/injector_spec.ts region='InjectionToken'}\n *\n * ### Tree-shakable InjectionToken\n *\n * {@example core/di/ts/injector_spec.ts region='ShakableInjectionToken'}\n *\n * @publicApi\n */\nclass InjectionToken {\n  /**\n   * @param _desc   Description for the token,\n   *                used only for debugging purposes,\n   *                it should but does not need to be unique\n   * @param options Options for the token's usage, as described above\n   */\n  constructor(_desc, options) {\n    this._desc = _desc;\n    /** @internal */\n    this.ngMetadataName = 'InjectionToken';\n    this.ɵprov = undefined;\n    if (typeof options == 'number') {\n      (typeof ngDevMode === 'undefined' || ngDevMode) && assertLessThan(options, 0, 'Only negative numbers are supported here');\n      // This is a special hack to assign __NG_ELEMENT_ID__ to this instance.\n      // See `InjectorMarkers`\n      this.__NG_ELEMENT_ID__ = options;\n    } else if (options !== undefined) {\n      this.ɵprov = ɵɵdefineInjectable({\n        token: this,\n        providedIn: options.providedIn || 'root',\n        factory: options.factory\n      });\n    }\n  }\n  /**\n   * @internal\n   */\n  get multi() {\n    return this;\n  }\n  toString() {\n    return `InjectionToken ${this._desc}`;\n  }\n}\nlet _injectorProfilerContext;\nfunction getInjectorProfilerContext() {\n  !ngDevMode && throwError('getInjectorProfilerContext should never be called in production mode');\n  return _injectorProfilerContext;\n}\nfunction setInjectorProfilerContext(context) {\n  !ngDevMode && throwError('setInjectorProfilerContext should never be called in production mode');\n  const previous = _injectorProfilerContext;\n  _injectorProfilerContext = context;\n  return previous;\n}\nlet injectorProfilerCallback = null;\n/**\n * Sets the callback function which will be invoked during certain DI events within the\n * runtime (for example: injecting services, creating injectable instances, configuring providers)\n *\n * Warning: this function is *INTERNAL* and should not be relied upon in application's code.\n * The contract of the function might be changed in any release and/or the function can be removed\n * completely.\n *\n * @param profiler function provided by the caller or null value to disable profiling.\n */\nconst setInjectorProfiler = injectorProfiler => {\n  !ngDevMode && throwError('setInjectorProfiler should never be called in production mode');\n  injectorProfilerCallback = injectorProfiler;\n};\n/**\n * Injector profiler function which emits on DI events executed by the runtime.\n *\n * @param event InjectorProfilerEvent corresponding to the DI event being emitted\n */\nfunction injectorProfiler(event) {\n  !ngDevMode && throwError('Injector profiler should never be called in production mode');\n  if (injectorProfilerCallback != null /* both `null` and `undefined` */) {\n    injectorProfilerCallback(event);\n  }\n}\n/**\n * Emits an InjectorProfilerEventType.ProviderConfigured to the injector profiler. The data in the\n * emitted event includes the raw provider, as well as the token that provider is providing.\n *\n * @param eventProvider A provider object\n */\nfunction emitProviderConfiguredEvent(eventProvider, isViewProvider = false) {\n  !ngDevMode && throwError('Injector profiler should never be called in production mode');\n  let token;\n  // if the provider is a TypeProvider (typeof provider is function) then the token is the\n  // provider itself\n  if (typeof eventProvider === 'function') {\n    token = eventProvider;\n  }\n  // if the provider is an injection token, then the token is the injection token.\n  else if (eventProvider instanceof InjectionToken) {\n    token = eventProvider;\n  }\n  // in all other cases we can access the token via the `provide` property of the provider\n  else {\n    token = resolveForwardRef(eventProvider.provide);\n  }\n  let provider = eventProvider;\n  // Injection tokens may define their own default provider which gets attached to the token itself\n  // as `ɵprov`. In this case, we want to emit the provider that is attached to the token, not the\n  // token itself.\n  if (eventProvider instanceof InjectionToken) {\n    provider = eventProvider.ɵprov || eventProvider;\n  }\n  injectorProfiler({\n    type: 2 /* InjectorProfilerEventType.ProviderConfigured */,\n    context: getInjectorProfilerContext(),\n    providerRecord: {\n      token,\n      provider,\n      isViewProvider\n    }\n  });\n}\n/**\n * Emits an event to the injector profiler with the instance that was created. Note that\n * the injector associated with this emission can be accessed by using getDebugInjectContext()\n *\n * @param instance an object created by an injector\n */\nfunction emitInstanceCreatedByInjectorEvent(instance) {\n  !ngDevMode && throwError('Injector profiler should never be called in production mode');\n  injectorProfiler({\n    type: 1 /* InjectorProfilerEventType.InstanceCreatedByInjector */,\n    context: getInjectorProfilerContext(),\n    instance: {\n      value: instance\n    }\n  });\n}\n/**\n * @param token DI token associated with injected service\n * @param value the instance of the injected service (i.e the result of `inject(token)`)\n * @param flags the flags that the token was injected with\n */\nfunction emitInjectEvent(token, value, flags) {\n  !ngDevMode && throwError('Injector profiler should never be called in production mode');\n  injectorProfiler({\n    type: 0 /* InjectorProfilerEventType.Inject */,\n    context: getInjectorProfilerContext(),\n    service: {\n      token,\n      value,\n      flags\n    }\n  });\n}\nfunction runInInjectorProfilerContext(injector, token, callback) {\n  !ngDevMode && throwError('runInInjectorProfilerContext should never be called in production mode');\n  const prevInjectContext = setInjectorProfilerContext({\n    injector,\n    token\n  });\n  try {\n    callback();\n  } finally {\n    setInjectorProfilerContext(prevInjectContext);\n  }\n}\nfunction isEnvironmentProviders(value) {\n  return value && !!value.ɵproviders;\n}\nconst NG_COMP_DEF = /*#__PURE__*/getClosureSafeProperty({\n  ɵcmp: getClosureSafeProperty\n});\nconst NG_DIR_DEF = /*#__PURE__*/getClosureSafeProperty({\n  ɵdir: getClosureSafeProperty\n});\nconst NG_PIPE_DEF = /*#__PURE__*/getClosureSafeProperty({\n  ɵpipe: getClosureSafeProperty\n});\nconst NG_MOD_DEF = /*#__PURE__*/getClosureSafeProperty({\n  ɵmod: getClosureSafeProperty\n});\nconst NG_FACTORY_DEF = /*#__PURE__*/getClosureSafeProperty({\n  ɵfac: getClosureSafeProperty\n});\n/**\n * If a directive is diPublic, bloomAdd sets a property on the type with this constant as\n * the key and the directive's unique ID as the value. This allows us to map directives to their\n * bloom filter bit for DI.\n */\n// TODO(misko): This is wrong. The NG_ELEMENT_ID should never be minified.\nconst NG_ELEMENT_ID = /*#__PURE__*/getClosureSafeProperty({\n  __NG_ELEMENT_ID__: getClosureSafeProperty\n});\n/**\n * The `NG_ENV_ID` field on a DI token indicates special processing in the `EnvironmentInjector`:\n * getting such tokens from the `EnvironmentInjector` will bypass the standard DI resolution\n * strategy and instead will return implementation produced by the `NG_ENV_ID` factory function.\n *\n * This particular retrieval of DI tokens is mostly done to eliminate circular dependencies and\n * improve tree-shaking.\n */\nconst NG_ENV_ID = /*#__PURE__*/getClosureSafeProperty({\n  __NG_ENV_ID__: getClosureSafeProperty\n});\n\n/**\n * Used for stringify render output in Ivy.\n * Important! This function is very performance-sensitive and we should\n * be extra careful not to introduce megamorphic reads in it.\n * Check `core/test/render3/perf/render_stringify` for benchmarks and alternate implementations.\n */\nfunction renderStringify(value) {\n  if (typeof value === 'string') return value;\n  if (value == null) return '';\n  // Use `String` so that it invokes the `toString` method of the value. Note that this\n  // appears to be faster than calling `value.toString` (see `render_stringify` benchmark).\n  return String(value);\n}\n/**\n * Used to stringify a value so that it can be displayed in an error message.\n *\n * Important! This function contains a megamorphic read and should only be\n * used for error messages.\n */\nfunction stringifyForError(value) {\n  if (typeof value === 'function') return value.name || value.toString();\n  if (typeof value === 'object' && value != null && typeof value.type === 'function') {\n    return value.type.name || value.type.toString();\n  }\n  return renderStringify(value);\n}\n/**\n * Used to stringify a `Type` and including the file path and line number in which it is defined, if\n * possible, for better debugging experience.\n *\n * Important! This function contains a megamorphic read and should only be used for error messages.\n */\nfunction debugStringifyTypeForError(type) {\n  // TODO(pmvald): Do some refactoring so that we can use getComponentDef here without creating\n  // circular deps.\n  let componentDef = type[NG_COMP_DEF] || null;\n  if (componentDef !== null && componentDef.debugInfo) {\n    return stringifyTypeFromDebugInfo(componentDef.debugInfo);\n  }\n  return stringifyForError(type);\n}\n// TODO(pmvald): Do some refactoring so that we can use the type ClassDebugInfo for the param\n// debugInfo here without creating circular deps.\nfunction stringifyTypeFromDebugInfo(debugInfo) {\n  if (!debugInfo.filePath || !debugInfo.lineNumber) {\n    return debugInfo.className;\n  } else {\n    return `${debugInfo.className} (at ${debugInfo.filePath}:${debugInfo.lineNumber})`;\n  }\n}\n\n/** Called when directives inject each other (creating a circular dependency) */\nfunction throwCyclicDependencyError(token, path) {\n  const depPath = path ? `. Dependency path: ${path.join(' > ')} > ${token}` : '';\n  throw new RuntimeError(-200 /* RuntimeErrorCode.CYCLIC_DI_DEPENDENCY */, ngDevMode ? `Circular dependency in DI detected for ${token}${depPath}` : token);\n}\nfunction throwMixedMultiProviderError() {\n  throw new Error(`Cannot mix multi providers and regular providers`);\n}\nfunction throwInvalidProviderError(ngModuleType, providers, provider) {\n  if (ngModuleType && providers) {\n    const providerDetail = providers.map(v => v == provider ? '?' + provider + '?' : '...');\n    throw new Error(`Invalid provider for the NgModule '${stringify(ngModuleType)}' - only instances of Provider and Type are allowed, got: [${providerDetail.join(', ')}]`);\n  } else if (isEnvironmentProviders(provider)) {\n    if (provider.ɵfromNgModule) {\n      throw new RuntimeError(207 /* RuntimeErrorCode.PROVIDER_IN_WRONG_CONTEXT */, `Invalid providers from 'importProvidersFrom' present in a non-environment injector. 'importProvidersFrom' can't be used for component providers.`);\n    } else {\n      throw new RuntimeError(207 /* RuntimeErrorCode.PROVIDER_IN_WRONG_CONTEXT */, `Invalid providers present in a non-environment injector. 'EnvironmentProviders' can't be used for component providers.`);\n    }\n  } else {\n    throw new Error('Invalid provider');\n  }\n}\n/** Throws an error when a token is not found in DI. */\nfunction throwProviderNotFoundError(token, injectorName) {\n  const errorMessage = ngDevMode && `No provider for ${stringifyForError(token)} found${injectorName ? ` in ${injectorName}` : ''}`;\n  throw new RuntimeError(-201 /* RuntimeErrorCode.PROVIDER_NOT_FOUND */, errorMessage);\n}\n\n/**\n * Injection flags for DI.\n *\n * @publicApi\n * @deprecated use an options object for [`inject`](api/core/inject) instead.\n */\nvar InjectFlags = /*#__PURE__*/function (InjectFlags) {\n  // TODO(alxhub): make this 'const' (and remove `InternalInjectFlags` enum) when ngc no longer\n  // writes exports of it into ngfactory files.\n  /** Check self and check parent injector if needed */\n  InjectFlags[InjectFlags[\"Default\"] = 0] = \"Default\";\n  /**\n   * Specifies that an injector should retrieve a dependency from any injector until reaching the\n   * host element of the current component. (Only used with Element Injector)\n   */\n  InjectFlags[InjectFlags[\"Host\"] = 1] = \"Host\";\n  /** Don't ascend to ancestors of the node requesting injection. */\n  InjectFlags[InjectFlags[\"Self\"] = 2] = \"Self\";\n  /** Skip the node that is requesting injection. */\n  InjectFlags[InjectFlags[\"SkipSelf\"] = 4] = \"SkipSelf\";\n  /** Inject `defaultValue` instead if token not found. */\n  InjectFlags[InjectFlags[\"Optional\"] = 8] = \"Optional\";\n  return InjectFlags;\n}(InjectFlags || {});\n/**\n * Current implementation of inject.\n *\n * By default, it is `injectInjectorOnly`, which makes it `Injector`-only aware. It can be changed\n * to `directiveInject`, which brings in the `NodeInjector` system of ivy. It is designed this\n * way for two reasons:\n *  1. `Injector` should not depend on ivy logic.\n *  2. To maintain tree shake-ability we don't want to bring in unnecessary code.\n */\nlet _injectImplementation;\nfunction getInjectImplementation() {\n  return _injectImplementation;\n}\n/**\n * Sets the current inject implementation.\n */\nfunction setInjectImplementation(impl) {\n  const previous = _injectImplementation;\n  _injectImplementation = impl;\n  return previous;\n}\n/**\n * Injects `root` tokens in limp mode.\n *\n * If no injector exists, we can still inject tree-shakable providers which have `providedIn` set to\n * `\"root\"`. This is known as the limp mode injection. In such case the value is stored in the\n * injectable definition.\n */\nfunction injectRootLimpMode(token, notFoundValue, flags) {\n  const injectableDef = getInjectableDef(token);\n  if (injectableDef && injectableDef.providedIn == 'root') {\n    return injectableDef.value === undefined ? injectableDef.value = injectableDef.factory() : injectableDef.value;\n  }\n  if (flags & InjectFlags.Optional) return null;\n  if (notFoundValue !== undefined) return notFoundValue;\n  throwProviderNotFoundError(token, 'Injector');\n}\n/**\n * Assert that `_injectImplementation` is not `fn`.\n *\n * This is useful, to prevent infinite recursion.\n *\n * @param fn Function which it should not equal to\n */\nfunction assertInjectImplementationNotEqual(fn) {\n  ngDevMode && assertNotEqual(_injectImplementation, fn, 'Calling ɵɵinject would cause infinite recursion');\n}\nconst _THROW_IF_NOT_FOUND = {};\nconst THROW_IF_NOT_FOUND = _THROW_IF_NOT_FOUND;\n/*\n * Name of a property (that we patch onto DI decorator), which is used as an annotation of which\n * InjectFlag this decorator represents. This allows to avoid direct references to the DI decorators\n * in the code, thus making them tree-shakable.\n */\nconst DI_DECORATOR_FLAG = '__NG_DI_FLAG__';\nconst NG_TEMP_TOKEN_PATH = 'ngTempTokenPath';\nconst NG_TOKEN_PATH = 'ngTokenPath';\nconst NEW_LINE = /\\n/gm;\nconst NO_NEW_LINE = 'ɵ';\nconst SOURCE = '__source';\n/**\n * Current injector value used by `inject`.\n * - `undefined`: it is an error to call `inject`\n * - `null`: `inject` can be called but there is no injector (limp-mode).\n * - Injector instance: Use the injector for resolution.\n */\nlet _currentInjector = undefined;\nfunction getCurrentInjector() {\n  return _currentInjector;\n}\nfunction setCurrentInjector(injector) {\n  const former = _currentInjector;\n  _currentInjector = injector;\n  return former;\n}\nfunction injectInjectorOnly(token, flags = InjectFlags.Default) {\n  if (_currentInjector === undefined) {\n    throw new RuntimeError(-203 /* RuntimeErrorCode.MISSING_INJECTION_CONTEXT */, ngDevMode && `inject() must be called from an injection context such as a constructor, a factory function, a field initializer, or a function used with \\`runInInjectionContext\\`.`);\n  } else if (_currentInjector === null) {\n    return injectRootLimpMode(token, undefined, flags);\n  } else {\n    const value = _currentInjector.get(token, flags & InjectFlags.Optional ? null : undefined, flags);\n    ngDevMode && emitInjectEvent(token, value, flags);\n    return value;\n  }\n}\nfunction ɵɵinject(token, flags = InjectFlags.Default) {\n  return (getInjectImplementation() || injectInjectorOnly)(resolveForwardRef(token), flags);\n}\n/**\n * Throws an error indicating that a factory function could not be generated by the compiler for a\n * particular class.\n *\n * The name of the class is not mentioned here, but will be in the generated factory function name\n * and thus in the stack trace.\n *\n * @codeGenApi\n */\nfunction ɵɵinvalidFactoryDep(index) {\n  throw new RuntimeError(202 /* RuntimeErrorCode.INVALID_FACTORY_DEPENDENCY */, ngDevMode && `This constructor is not compatible with Angular Dependency Injection because its dependency at index ${index} of the parameter list is invalid.\nThis can happen if the dependency type is a primitive like a string or if an ancestor of this class is missing an Angular decorator.\n\nPlease check that 1) the type for the parameter at index ${index} is correct and 2) the correct Angular decorators are defined for this class and its ancestors.`);\n}\n/**\n * Injects a token from the currently active injector.\n * `inject` is only supported in an [injection context](/guide/dependency-injection-context). It can\n * be used during:\n * - Construction (via the `constructor`) of a class being instantiated by the DI system, such\n * as an `@Injectable` or `@Component`.\n * - In the initializer for fields of such classes.\n * - In the factory function specified for `useFactory` of a `Provider` or an `@Injectable`.\n * - In the `factory` function specified for an `InjectionToken`.\n * - In a stackframe of a function call in a DI context\n *\n * @param token A token that represents a dependency that should be injected.\n * @param flags Optional flags that control how injection is executed.\n * The flags correspond to injection strategies that can be specified with\n * parameter decorators `@Host`, `@Self`, `@SkipSelf`, and `@Optional`.\n * @returns the injected value if operation is successful, `null` otherwise.\n * @throws if called outside of a supported context.\n *\n * @usageNotes\n * In practice the `inject()` calls are allowed in a constructor, a constructor parameter and a\n * field initializer:\n *\n * ```typescript\n * @Injectable({providedIn: 'root'})\n * export class Car {\n *   radio: Radio|undefined;\n *   // OK: field initializer\n *   spareTyre = inject(Tyre);\n *\n *   constructor() {\n *     // OK: constructor body\n *     this.radio = inject(Radio);\n *   }\n * }\n * ```\n *\n * It is also legal to call `inject` from a provider's factory:\n *\n * ```typescript\n * providers: [\n *   {provide: Car, useFactory: () => {\n *     // OK: a class factory\n *     const engine = inject(Engine);\n *     return new Car(engine);\n *   }}\n * ]\n * ```\n *\n * Calls to the `inject()` function outside of the class creation context will result in error. Most\n * notably, calls to `inject()` are disallowed after a class instance was created, in methods\n * (including lifecycle hooks):\n *\n * ```typescript\n * @Component({ ... })\n * export class CarComponent {\n *   ngOnInit() {\n *     // ERROR: too late, the component instance was already created\n *     const engine = inject(Engine);\n *     engine.start();\n *   }\n * }\n * ```\n *\n * @publicApi\n */\nfunction inject(token, flags = InjectFlags.Default) {\n  // The `as any` here _shouldn't_ be necessary, but without it JSCompiler\n  // throws a disambiguation  error due to the multiple signatures.\n  return ɵɵinject(token, convertToBitFlags(flags));\n}\n// Converts object-based DI flags (`InjectOptions`) to bit flags (`InjectFlags`).\nfunction convertToBitFlags(flags) {\n  if (typeof flags === 'undefined' || typeof flags === 'number') {\n    return flags;\n  }\n  // While TypeScript doesn't accept it without a cast, bitwise OR with false-y values in\n  // JavaScript is a no-op. We can use that for a very codesize-efficient conversion from\n  // `InjectOptions` to `InjectFlags`.\n  return 0 /* InternalInjectFlags.Default */ | (\n  // comment to force a line break in the formatter\n  flags.optional && 8 /* InternalInjectFlags.Optional */) | (flags.host && 1 /* InternalInjectFlags.Host */) | (flags.self && 2 /* InternalInjectFlags.Self */) | (flags.skipSelf && 4 /* InternalInjectFlags.SkipSelf */);\n}\nfunction injectArgs(types) {\n  const args = [];\n  for (let i = 0; i < types.length; i++) {\n    const arg = resolveForwardRef(types[i]);\n    if (Array.isArray(arg)) {\n      if (arg.length === 0) {\n        throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, ngDevMode && 'Arguments array must have arguments.');\n      }\n      let type = undefined;\n      let flags = InjectFlags.Default;\n      for (let j = 0; j < arg.length; j++) {\n        const meta = arg[j];\n        const flag = getInjectFlag(meta);\n        if (typeof flag === 'number') {\n          // Special case when we handle @Inject decorator.\n          if (flag === -1 /* DecoratorFlags.Inject */) {\n            type = meta.token;\n          } else {\n            flags |= flag;\n          }\n        } else {\n          type = meta;\n        }\n      }\n      args.push(ɵɵinject(type, flags));\n    } else {\n      args.push(ɵɵinject(arg));\n    }\n  }\n  return args;\n}\n/**\n * Attaches a given InjectFlag to a given decorator using monkey-patching.\n * Since DI decorators can be used in providers `deps` array (when provider is configured using\n * `useFactory`) without initialization (e.g. `Host`) and as an instance (e.g. `new Host()`), we\n * attach the flag to make it available both as a static property and as a field on decorator\n * instance.\n *\n * @param decorator Provided DI decorator.\n * @param flag InjectFlag that should be applied.\n */\nfunction attachInjectFlag(decorator, flag) {\n  decorator[DI_DECORATOR_FLAG] = flag;\n  decorator.prototype[DI_DECORATOR_FLAG] = flag;\n  return decorator;\n}\n/**\n * Reads monkey-patched property that contains InjectFlag attached to a decorator.\n *\n * @param token Token that may contain monkey-patched DI flags property.\n */\nfunction getInjectFlag(token) {\n  return token[DI_DECORATOR_FLAG];\n}\nfunction catchInjectorError(e, token, injectorErrorName, source) {\n  const tokenPath = e[NG_TEMP_TOKEN_PATH];\n  if (token[SOURCE]) {\n    tokenPath.unshift(token[SOURCE]);\n  }\n  e.message = formatError('\\n' + e.message, tokenPath, injectorErrorName, source);\n  e[NG_TOKEN_PATH] = tokenPath;\n  e[NG_TEMP_TOKEN_PATH] = null;\n  throw e;\n}\nfunction formatError(text, obj, injectorErrorName, source = null) {\n  text = text && text.charAt(0) === '\\n' && text.charAt(1) == NO_NEW_LINE ? text.slice(2) : text;\n  let context = stringify(obj);\n  if (Array.isArray(obj)) {\n    context = obj.map(stringify).join(' -> ');\n  } else if (typeof obj === 'object') {\n    let parts = [];\n    for (let key in obj) {\n      if (obj.hasOwnProperty(key)) {\n        let value = obj[key];\n        parts.push(key + ':' + (typeof value === 'string' ? JSON.stringify(value) : stringify(value)));\n      }\n    }\n    context = `{${parts.join(', ')}}`;\n  }\n  return `${injectorErrorName}${source ? '(' + source + ')' : ''}[${context}]: ${text.replace(NEW_LINE, '\\n  ')}`;\n}\n\n/**\n * Inject decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Inject = /*#__PURE__*/attachInjectFlag(\n/*#__PURE__*/\n// Disable tslint because `DecoratorFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nmakeParamDecorator('Inject', token => ({\n  token\n})), -1 /* DecoratorFlags.Inject */);\n/**\n * Optional decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Optional =\n/*#__PURE__*/\n// Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nattachInjectFlag( /*#__PURE__*/makeParamDecorator('Optional'), 8 /* InternalInjectFlags.Optional */);\n/**\n * Self decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Self =\n/*#__PURE__*/\n// Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nattachInjectFlag( /*#__PURE__*/makeParamDecorator('Self'), 2 /* InternalInjectFlags.Self */);\n/**\n * `SkipSelf` decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst SkipSelf =\n/*#__PURE__*/\n// Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nattachInjectFlag( /*#__PURE__*/makeParamDecorator('SkipSelf'), 4 /* InternalInjectFlags.SkipSelf */);\n/**\n * Host decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Host =\n/*#__PURE__*/\n// Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nattachInjectFlag( /*#__PURE__*/makeParamDecorator('Host'), 1 /* InternalInjectFlags.Host */);\nfunction getFactoryDef(type, throwNotFound) {\n  const hasFactoryDef = type.hasOwnProperty(NG_FACTORY_DEF);\n  if (!hasFactoryDef && throwNotFound === true && ngDevMode) {\n    throw new Error(`Type ${stringify(type)} does not have 'ɵfac' property.`);\n  }\n  return hasFactoryDef ? type[NG_FACTORY_DEF] : null;\n}\n\n/**\n * Determines if the contents of two arrays is identical\n *\n * @param a first array\n * @param b second array\n * @param identityAccessor Optional function for extracting stable object identity from a value in\n *     the array.\n */\nfunction arrayEquals(a, b, identityAccessor) {\n  if (a.length !== b.length) return false;\n  for (let i = 0; i < a.length; i++) {\n    let valueA = a[i];\n    let valueB = b[i];\n    if (identityAccessor) {\n      valueA = identityAccessor(valueA);\n      valueB = identityAccessor(valueB);\n    }\n    if (valueB !== valueA) {\n      return false;\n    }\n  }\n  return true;\n}\n/**\n * Flattens an array.\n */\nfunction flatten(list) {\n  return list.flat(Number.POSITIVE_INFINITY);\n}\nfunction deepForEach(input, fn) {\n  input.forEach(value => Array.isArray(value) ? deepForEach(value, fn) : fn(value));\n}\nfunction addToArray(arr, index, value) {\n  // perf: array.push is faster than array.splice!\n  if (index >= arr.length) {\n    arr.push(value);\n  } else {\n    arr.splice(index, 0, value);\n  }\n}\nfunction removeFromArray(arr, index) {\n  // perf: array.pop is faster than array.splice!\n  if (index >= arr.length - 1) {\n    return arr.pop();\n  } else {\n    return arr.splice(index, 1)[0];\n  }\n}\nfunction newArray(size, value) {\n  const list = [];\n  for (let i = 0; i < size; i++) {\n    list.push(value);\n  }\n  return list;\n}\n/**\n * Remove item from array (Same as `Array.splice()` but faster.)\n *\n * `Array.splice()` is not as fast because it has to allocate an array for the elements which were\n * removed. This causes memory pressure and slows down code when most of the time we don't\n * care about the deleted items array.\n *\n * https://jsperf.com/fast-array-splice (About 20x faster)\n *\n * @param array Array to splice\n * @param index Index of element in array to remove.\n * @param count Number of items to remove.\n */\nfunction arraySplice(array, index, count) {\n  const length = array.length - count;\n  while (index < length) {\n    array[index] = array[index + count];\n    index++;\n  }\n  while (count--) {\n    array.pop(); // shrink the array\n  }\n}\n/**\n * Same as `Array.splice(index, 0, value)` but faster.\n *\n * `Array.splice()` is not fast because it has to allocate an array for the elements which were\n * removed. This causes memory pressure and slows down code when most of the time we don't\n * care about the deleted items array.\n *\n * @param array Array to splice.\n * @param index Index in array where the `value` should be added.\n * @param value Value to add to array.\n */\nfunction arrayInsert(array, index, value) {\n  ngDevMode && assertLessThanOrEqual(index, array.length, 'Can\\'t insert past array end.');\n  let end = array.length;\n  while (end > index) {\n    const previousEnd = end - 1;\n    array[end] = array[previousEnd];\n    end = previousEnd;\n  }\n  array[index] = value;\n}\n/**\n * Same as `Array.splice2(index, 0, value1, value2)` but faster.\n *\n * `Array.splice()` is not fast because it has to allocate an array for the elements which were\n * removed. This causes memory pressure and slows down code when most of the time we don't\n * care about the deleted items array.\n *\n * @param array Array to splice.\n * @param index Index in array where the `value` should be added.\n * @param value1 Value to add to array.\n * @param value2 Value to add to array.\n */\nfunction arrayInsert2(array, index, value1, value2) {\n  ngDevMode && assertLessThanOrEqual(index, array.length, 'Can\\'t insert past array end.');\n  let end = array.length;\n  if (end == index) {\n    // inserting at the end.\n    array.push(value1, value2);\n  } else if (end === 1) {\n    // corner case when we have less items in array than we have items to insert.\n    array.push(value2, array[0]);\n    array[0] = value1;\n  } else {\n    end--;\n    array.push(array[end - 1], array[end]);\n    while (end > index) {\n      const previousEnd = end - 2;\n      array[end] = array[previousEnd];\n      end--;\n    }\n    array[index] = value1;\n    array[index + 1] = value2;\n  }\n}\n/**\n * Get an index of an `value` in a sorted `array`.\n *\n * NOTE:\n * - This uses binary search algorithm for fast removals.\n *\n * @param array A sorted array to binary search.\n * @param value The value to look for.\n * @returns index of the value.\n *   - positive index if value found.\n *   - negative index if value not found. (`~index` to get the value where it should have been\n *     located)\n */\nfunction arrayIndexOfSorted(array, value) {\n  return _arrayIndexOfSorted(array, value, 0);\n}\n/**\n * Set a `value` for a `key`.\n *\n * @param keyValueArray to modify.\n * @param key The key to locate or create.\n * @param value The value to set for a `key`.\n * @returns index (always even) of where the value vas set.\n */\nfunction keyValueArraySet(keyValueArray, key, value) {\n  let index = keyValueArrayIndexOf(keyValueArray, key);\n  if (index >= 0) {\n    // if we found it set it.\n    keyValueArray[index | 1] = value;\n  } else {\n    index = ~index;\n    arrayInsert2(keyValueArray, index, key, value);\n  }\n  return index;\n}\n/**\n * Retrieve a `value` for a `key` (on `undefined` if not found.)\n *\n * @param keyValueArray to search.\n * @param key The key to locate.\n * @return The `value` stored at the `key` location or `undefined if not found.\n */\nfunction keyValueArrayGet(keyValueArray, key) {\n  const index = keyValueArrayIndexOf(keyValueArray, key);\n  if (index >= 0) {\n    // if we found it retrieve it.\n    return keyValueArray[index | 1];\n  }\n  return undefined;\n}\n/**\n * Retrieve a `key` index value in the array or `-1` if not found.\n *\n * @param keyValueArray to search.\n * @param key The key to locate.\n * @returns index of where the key is (or should have been.)\n *   - positive (even) index if key found.\n *   - negative index if key not found. (`~index` (even) to get the index where it should have\n *     been inserted.)\n */\nfunction keyValueArrayIndexOf(keyValueArray, key) {\n  return _arrayIndexOfSorted(keyValueArray, key, 1);\n}\n/**\n * Delete a `key` (and `value`) from the `KeyValueArray`.\n *\n * @param keyValueArray to modify.\n * @param key The key to locate or delete (if exist).\n * @returns index of where the key was (or should have been.)\n *   - positive (even) index if key found and deleted.\n *   - negative index if key not found. (`~index` (even) to get the index where it should have\n *     been.)\n */\nfunction keyValueArrayDelete(keyValueArray, key) {\n  const index = keyValueArrayIndexOf(keyValueArray, key);\n  if (index >= 0) {\n    // if we found it remove it.\n    arraySplice(keyValueArray, index, 2);\n  }\n  return index;\n}\n/**\n * INTERNAL: Get an index of an `value` in a sorted `array` by grouping search by `shift`.\n *\n * NOTE:\n * - This uses binary search algorithm for fast removals.\n *\n * @param array A sorted array to binary search.\n * @param value The value to look for.\n * @param shift grouping shift.\n *   - `0` means look at every location\n *   - `1` means only look at every other (even) location (the odd locations are to be ignored as\n *         they are values.)\n * @returns index of the value.\n *   - positive index if value found.\n *   - negative index if value not found. (`~index` to get the value where it should have been\n * inserted)\n */\nfunction _arrayIndexOfSorted(array, value, shift) {\n  ngDevMode && assertEqual(Array.isArray(array), true, 'Expecting an array');\n  let start = 0;\n  let end = array.length >> shift;\n  while (end !== start) {\n    const middle = start + (end - start >> 1); // find the middle.\n    const current = array[middle << shift];\n    if (value === current) {\n      return middle << shift;\n    } else if (current > value) {\n      end = middle;\n    } else {\n      start = middle + 1; // We already searched middle so make it non-inclusive by adding 1\n    }\n  }\n  return ~(end << shift);\n}\n\n/**\n * This file contains reuseable \"empty\" symbols that can be used as default return values\n * in different parts of the rendering code. Because the same symbols are returned, this\n * allows for identity checks against these values to be consistently used by the framework\n * code.\n */\nconst EMPTY_OBJ = {};\nconst EMPTY_ARRAY = [];\n// freezing the values prevents any code from accidentally inserting new values in\nif ((typeof ngDevMode === 'undefined' || ngDevMode) && /*#__PURE__*/initNgDevMode()) {\n  // These property accesses can be ignored because ngDevMode will be set to false\n  // when optimizing code and the whole if statement will be dropped.\n  // tslint:disable-next-line:no-toplevel-property-access\n  /*#__PURE__*/Object.freeze(EMPTY_OBJ);\n  // tslint:disable-next-line:no-toplevel-property-access\n  /*#__PURE__*/Object.freeze(EMPTY_ARRAY);\n}\n\n/**\n * A multi-provider token for initialization functions that will run upon construction of an\n * environment injector.\n *\n * @publicApi\n */\nconst ENVIRONMENT_INITIALIZER = /*#__PURE__*/new InjectionToken(ngDevMode ? 'ENVIRONMENT_INITIALIZER' : '');\n\n/**\n * An InjectionToken that gets the current `Injector` for `createInjector()`-style injectors.\n *\n * Requesting this token instead of `Injector` allows `StaticInjector` to be tree-shaken from a\n * project.\n *\n * @publicApi\n */\nconst INJECTOR$1 = /*#__PURE__*/new InjectionToken(ngDevMode ? 'INJECTOR' : '',\n// Disable tslint because this is const enum which gets inlined not top level prop access.\n// tslint:disable-next-line: no-toplevel-property-access\n-1 /* InjectorMarkers.Injector */);\nconst INJECTOR_DEF_TYPES = /*#__PURE__*/new InjectionToken(ngDevMode ? 'INJECTOR_DEF_TYPES' : '');\nclass NullInjector {\n  get(token, notFoundValue = THROW_IF_NOT_FOUND) {\n    if (notFoundValue === THROW_IF_NOT_FOUND) {\n      const error = new Error(`NullInjectorError: No provider for ${stringify(token)}!`);\n      error.name = 'NullInjectorError';\n      throw error;\n    }\n    return notFoundValue;\n  }\n}\n\n/**\n * The strategy that the default change detector uses to detect changes.\n * When set, takes effect the next time change detection is triggered.\n *\n * @see [Change detection usage](/api/core/ChangeDetectorRef?tab=usage-notes)\n *\n * @publicApi\n */\nvar ChangeDetectionStrategy = /*#__PURE__*/function (ChangeDetectionStrategy) {\n  /**\n   * Use the `CheckOnce` strategy, meaning that automatic change detection is deactivated\n   * until reactivated by setting the strategy to `Default` (`CheckAlways`).\n   * Change detection can still be explicitly invoked.\n   * This strategy applies to all child directives and cannot be overridden.\n   */\n  ChangeDetectionStrategy[ChangeDetectionStrategy[\"OnPush\"] = 0] = \"OnPush\";\n  /**\n   * Use the default `CheckAlways` strategy, in which change detection is automatic until\n   * explicitly deactivated.\n   */\n  ChangeDetectionStrategy[ChangeDetectionStrategy[\"Default\"] = 1] = \"Default\";\n  return ChangeDetectionStrategy;\n}(ChangeDetectionStrategy || {});\n/**\n * Defines the CSS styles encapsulation policies for the {@link Component} decorator's\n * `encapsulation` option.\n *\n * See {@link Component#encapsulation encapsulation}.\n *\n * @usageNotes\n * ### Example\n *\n * {@example core/ts/metadata/encapsulation.ts region='longform'}\n *\n * @publicApi\n */\nvar ViewEncapsulation$1 = /*#__PURE__*/function (ViewEncapsulation) {\n  // TODO: consider making `ViewEncapsulation` a `const enum` instead. See\n  // https://github.com/angular/angular/issues/44119 for additional information.\n  /**\n   * Emulates a native Shadow DOM encapsulation behavior by adding a specific attribute to the\n   * component's host element and applying the same attribute to all the CSS selectors provided\n   * via {@link Component#styles styles} or {@link Component#styleUrls styleUrls}.\n   *\n   * This is the default option.\n   */\n  ViewEncapsulation[ViewEncapsulation[\"Emulated\"] = 0] = \"Emulated\";\n  // Historically the 1 value was for `Native` encapsulation which has been removed as of v11.\n  /**\n   * Doesn't provide any sort of CSS style encapsulation, meaning that all the styles provided\n   * via {@link Component#styles styles} or {@link Component#styleUrls styleUrls} are applicable\n   * to any HTML element of the application regardless of their host Component.\n   */\n  ViewEncapsulation[ViewEncapsulation[\"None\"] = 2] = \"None\";\n  /**\n   * Uses the browser's native Shadow DOM API to encapsulate CSS styles, meaning that it creates\n   * a ShadowRoot for the component's host element which is then used to encapsulate\n   * all the Component's styling.\n   */\n  ViewEncapsulation[ViewEncapsulation[\"ShadowDom\"] = 3] = \"ShadowDom\";\n  return ViewEncapsulation;\n}(ViewEncapsulation$1 || {});\n/** Flags describing an input for a directive. */\nvar InputFlags = /*#__PURE__*/function (InputFlags) {\n  InputFlags[InputFlags[\"None\"] = 0] = \"None\";\n  InputFlags[InputFlags[\"SignalBased\"] = 1] = \"SignalBased\";\n  InputFlags[InputFlags[\"HasDecoratorInputTransform\"] = 2] = \"HasDecoratorInputTransform\";\n  return InputFlags;\n}(InputFlags || {});\n/**\n * Returns an index of `classToSearch` in `className` taking token boundaries into account.\n *\n * `classIndexOf('AB A', 'A', 0)` will be 3 (not 0 since `AB!==A`)\n *\n * @param className A string containing classes (whitespace separated)\n * @param classToSearch A class name to locate\n * @param startingIndex Starting location of search\n * @returns an index of the located class (or -1 if not found)\n */\nfunction classIndexOf(className, classToSearch, startingIndex) {\n  ngDevMode && assertNotEqual(classToSearch, '', 'can not look for \"\" string.');\n  let end = className.length;\n  while (true) {\n    const foundIndex = className.indexOf(classToSearch, startingIndex);\n    if (foundIndex === -1) return foundIndex;\n    if (foundIndex === 0 || className.charCodeAt(foundIndex - 1) <= 32 /* CharCode.SPACE */) {\n      // Ensure that it has leading whitespace\n      const length = classToSearch.length;\n      if (foundIndex + length === end || className.charCodeAt(foundIndex + length) <= 32 /* CharCode.SPACE */) {\n        // Ensure that it has trailing whitespace\n        return foundIndex;\n      }\n    }\n    // False positive, keep searching from where we left off.\n    startingIndex = foundIndex + 1;\n  }\n}\n\n/**\n * Assigns all attribute values to the provided element via the inferred renderer.\n *\n * This function accepts two forms of attribute entries:\n *\n * default: (key, value):\n *  attrs = [key1, value1, key2, value2]\n *\n * namespaced: (NAMESPACE_MARKER, uri, name, value)\n *  attrs = [NAMESPACE_MARKER, uri, name, value, NAMESPACE_MARKER, uri, name, value]\n *\n * The `attrs` array can contain a mix of both the default and namespaced entries.\n * The \"default\" values are set without a marker, but if the function comes across\n * a marker value then it will attempt to set a namespaced value. If the marker is\n * not of a namespaced value then the function will quit and return the index value\n * where it stopped during the iteration of the attrs array.\n *\n * See [AttributeMarker] to understand what the namespace marker value is.\n *\n * Note that this instruction does not support assigning style and class values to\n * an element. See `elementStart` and `elementHostAttrs` to learn how styling values\n * are applied to an element.\n * @param renderer The renderer to be used\n * @param native The element that the attributes will be assigned to\n * @param attrs The attribute array of values that will be assigned to the element\n * @returns the index value that was last accessed in the attributes array\n */\nfunction setUpAttributes(renderer, native, attrs) {\n  let i = 0;\n  while (i < attrs.length) {\n    const value = attrs[i];\n    if (typeof value === 'number') {\n      // only namespaces are supported. Other value types (such as style/class\n      // entries) are not supported in this function.\n      if (value !== 0 /* AttributeMarker.NamespaceURI */) {\n        break;\n      }\n      // we just landed on the marker value ... therefore\n      // we should skip to the next entry\n      i++;\n      const namespaceURI = attrs[i++];\n      const attrName = attrs[i++];\n      const attrVal = attrs[i++];\n      ngDevMode && ngDevMode.rendererSetAttribute++;\n      renderer.setAttribute(native, attrName, attrVal, namespaceURI);\n    } else {\n      // attrName is string;\n      const attrName = value;\n      const attrVal = attrs[++i];\n      // Standard attributes\n      ngDevMode && ngDevMode.rendererSetAttribute++;\n      if (isAnimationProp(attrName)) {\n        renderer.setProperty(native, attrName, attrVal);\n      } else {\n        renderer.setAttribute(native, attrName, attrVal);\n      }\n      i++;\n    }\n  }\n  // another piece of code may iterate over the same attributes array. Therefore\n  // it may be helpful to return the exact spot where the attributes array exited\n  // whether by running into an unsupported marker or if all the static values were\n  // iterated over.\n  return i;\n}\n/**\n * Test whether the given value is a marker that indicates that the following\n * attribute values in a `TAttributes` array are only the names of attributes,\n * and not name-value pairs.\n * @param marker The attribute marker to test.\n * @returns true if the marker is a \"name-only\" marker (e.g. `Bindings`, `Template` or `I18n`).\n */\nfunction isNameOnlyAttributeMarker(marker) {\n  return marker === 3 /* AttributeMarker.Bindings */ || marker === 4 /* AttributeMarker.Template */ || marker === 6 /* AttributeMarker.I18n */;\n}\nfunction isAnimationProp(name) {\n  // Perf note: accessing charCodeAt to check for the first character of a string is faster as\n  // compared to accessing a character at index 0 (ex. name[0]). The main reason for this is that\n  // charCodeAt doesn't allocate memory to return a substring.\n  return name.charCodeAt(0) === 64 /* CharCode.AT_SIGN */;\n}\n/**\n * Merges `src` `TAttributes` into `dst` `TAttributes` removing any duplicates in the process.\n *\n * This merge function keeps the order of attrs same.\n *\n * @param dst Location of where the merged `TAttributes` should end up.\n * @param src `TAttributes` which should be appended to `dst`\n */\nfunction mergeHostAttrs(dst, src) {\n  if (src === null || src.length === 0) {\n    // do nothing\n  } else if (dst === null || dst.length === 0) {\n    // We have source, but dst is empty, just make a copy.\n    dst = src.slice();\n  } else {\n    let srcMarker = -1 /* AttributeMarker.ImplicitAttributes */;\n    for (let i = 0; i < src.length; i++) {\n      const item = src[i];\n      if (typeof item === 'number') {\n        srcMarker = item;\n      } else {\n        if (srcMarker === 0 /* AttributeMarker.NamespaceURI */) {\n          // Case where we need to consume `key1`, `key2`, `value` items.\n        } else if (srcMarker === -1 /* AttributeMarker.ImplicitAttributes */ || srcMarker === 2 /* AttributeMarker.Styles */) {\n          // Case where we have to consume `key1` and `value` only.\n          mergeHostAttribute(dst, srcMarker, item, null, src[++i]);\n        } else {\n          // Case where we have to consume `key1` only.\n          mergeHostAttribute(dst, srcMarker, item, null, null);\n        }\n      }\n    }\n  }\n  return dst;\n}\n/**\n * Append `key`/`value` to existing `TAttributes` taking region marker and duplicates into account.\n *\n * @param dst `TAttributes` to append to.\n * @param marker Region where the `key`/`value` should be added.\n * @param key1 Key to add to `TAttributes`\n * @param key2 Key to add to `TAttributes` (in case of `AttributeMarker.NamespaceURI`)\n * @param value Value to add or to overwrite to `TAttributes` Only used if `marker` is not Class.\n */\nfunction mergeHostAttribute(dst, marker, key1, key2, value) {\n  let i = 0;\n  // Assume that new markers will be inserted at the end.\n  let markerInsertPosition = dst.length;\n  // scan until correct type.\n  if (marker === -1 /* AttributeMarker.ImplicitAttributes */) {\n    markerInsertPosition = -1;\n  } else {\n    while (i < dst.length) {\n      const dstValue = dst[i++];\n      if (typeof dstValue === 'number') {\n        if (dstValue === marker) {\n          markerInsertPosition = -1;\n          break;\n        } else if (dstValue > marker) {\n          // We need to save this as we want the markers to be inserted in specific order.\n          markerInsertPosition = i - 1;\n          break;\n        }\n      }\n    }\n  }\n  // search until you find place of insertion\n  while (i < dst.length) {\n    const item = dst[i];\n    if (typeof item === 'number') {\n      // since `i` started as the index after the marker, we did not find it if we are at the next\n      // marker\n      break;\n    } else if (item === key1) {\n      // We already have same token\n      if (key2 === null) {\n        if (value !== null) {\n          dst[i + 1] = value;\n        }\n        return;\n      } else if (key2 === dst[i + 1]) {\n        dst[i + 2] = value;\n        return;\n      }\n    }\n    // Increment counter.\n    i++;\n    if (key2 !== null) i++;\n    if (value !== null) i++;\n  }\n  // insert at location.\n  if (markerInsertPosition !== -1) {\n    dst.splice(markerInsertPosition, 0, marker);\n    i = markerInsertPosition + 1;\n  }\n  dst.splice(i++, 0, key1);\n  if (key2 !== null) {\n    dst.splice(i++, 0, key2);\n  }\n  if (value !== null) {\n    dst.splice(i++, 0, value);\n  }\n}\nconst NG_TEMPLATE_SELECTOR = 'ng-template';\n/**\n * Search the `TAttributes` to see if it contains `cssClassToMatch` (case insensitive)\n *\n * @param tNode static data of the node to match\n * @param attrs `TAttributes` to search through.\n * @param cssClassToMatch class to match (lowercase)\n * @param isProjectionMode Whether or not class matching should look into the attribute `class` in\n *    addition to the `AttributeMarker.Classes`.\n */\nfunction isCssClassMatching(tNode, attrs, cssClassToMatch, isProjectionMode) {\n  ngDevMode && assertEqual(cssClassToMatch, cssClassToMatch.toLowerCase(), 'Class name expected to be lowercase.');\n  let i = 0;\n  if (isProjectionMode) {\n    for (; i < attrs.length && typeof attrs[i] === 'string'; i += 2) {\n      // Search for an implicit `class` attribute and check if its value matches `cssClassToMatch`.\n      if (attrs[i] === 'class' && classIndexOf(attrs[i + 1].toLowerCase(), cssClassToMatch, 0) !== -1) {\n        return true;\n      }\n    }\n  } else if (isInlineTemplate(tNode)) {\n    // Matching directives (i.e. when not matching for projection mode) should not consider the\n    // class bindings that are present on inline templates, as those class bindings only target\n    // the root node of the template, not the template itself.\n    return false;\n  }\n  // Resume the search for classes after the `Classes` marker.\n  i = attrs.indexOf(1 /* AttributeMarker.Classes */, i);\n  if (i > -1) {\n    // We found the classes section. Start searching for the class.\n    let item;\n    while (++i < attrs.length && typeof (item = attrs[i]) === 'string') {\n      if (item.toLowerCase() === cssClassToMatch) {\n        return true;\n      }\n    }\n  }\n  return false;\n}\n/**\n * Checks whether the `tNode` represents an inline template (e.g. `*ngFor`).\n *\n * @param tNode current TNode\n */\nfunction isInlineTemplate(tNode) {\n  return tNode.type === 4 /* TNodeType.Container */ && tNode.value !== NG_TEMPLATE_SELECTOR;\n}\n/**\n * Function that checks whether a given tNode matches tag-based selector and has a valid type.\n *\n * Matching can be performed in 2 modes: projection mode (when we project nodes) and regular\n * directive matching mode:\n * - in the \"directive matching\" mode we do _not_ take TContainer's tagName into account if it is\n * different from NG_TEMPLATE_SELECTOR (value different from NG_TEMPLATE_SELECTOR indicates that a\n * tag name was extracted from * syntax so we would match the same directive twice);\n * - in the \"projection\" mode, we use a tag name potentially extracted from the * syntax processing\n * (applicable to TNodeType.Container only).\n */\nfunction hasTagAndTypeMatch(tNode, currentSelector, isProjectionMode) {\n  const tagNameToCompare = tNode.type === 4 /* TNodeType.Container */ && !isProjectionMode ? NG_TEMPLATE_SELECTOR : tNode.value;\n  return currentSelector === tagNameToCompare;\n}\n/**\n * A utility function to match an Ivy node static data against a simple CSS selector\n *\n * @param tNode static data of the node to match\n * @param selector The selector to try matching against the node.\n * @param isProjectionMode if `true` we are matching for content projection, otherwise we are doing\n * directive matching.\n * @returns true if node matches the selector.\n */\nfunction isNodeMatchingSelector(tNode, selector, isProjectionMode) {\n  ngDevMode && assertDefined(selector[0], 'Selector should have a tag name');\n  let mode = 4 /* SelectorFlags.ELEMENT */;\n  const nodeAttrs = tNode.attrs;\n  // Find the index of first attribute that has no value, only a name.\n  const nameOnlyMarkerIdx = nodeAttrs !== null ? getNameOnlyMarkerIndex(nodeAttrs) : 0;\n  // When processing \":not\" selectors, we skip to the next \":not\" if the\n  // current one doesn't match\n  let skipToNextSelector = false;\n  for (let i = 0; i < selector.length; i++) {\n    const current = selector[i];\n    if (typeof current === 'number') {\n      // If we finish processing a :not selector and it hasn't failed, return false\n      if (!skipToNextSelector && !isPositive(mode) && !isPositive(current)) {\n        return false;\n      }\n      // If we are skipping to the next :not() and this mode flag is positive,\n      // it's a part of the current :not() selector, and we should keep skipping\n      if (skipToNextSelector && isPositive(current)) continue;\n      skipToNextSelector = false;\n      mode = current | mode & 1 /* SelectorFlags.NOT */;\n      continue;\n    }\n    if (skipToNextSelector) continue;\n    if (mode & 4 /* SelectorFlags.ELEMENT */) {\n      mode = 2 /* SelectorFlags.ATTRIBUTE */ | mode & 1 /* SelectorFlags.NOT */;\n      if (current !== '' && !hasTagAndTypeMatch(tNode, current, isProjectionMode) || current === '' && selector.length === 1) {\n        if (isPositive(mode)) return false;\n        skipToNextSelector = true;\n      }\n    } else if (mode & 8 /* SelectorFlags.CLASS */) {\n      if (nodeAttrs === null || !isCssClassMatching(tNode, nodeAttrs, current, isProjectionMode)) {\n        if (isPositive(mode)) return false;\n        skipToNextSelector = true;\n      }\n    } else {\n      const selectorAttrValue = selector[++i];\n      const attrIndexInNode = findAttrIndexInNode(current, nodeAttrs, isInlineTemplate(tNode), isProjectionMode);\n      if (attrIndexInNode === -1) {\n        if (isPositive(mode)) return false;\n        skipToNextSelector = true;\n        continue;\n      }\n      if (selectorAttrValue !== '') {\n        let nodeAttrValue;\n        if (attrIndexInNode > nameOnlyMarkerIdx) {\n          nodeAttrValue = '';\n        } else {\n          ngDevMode && assertNotEqual(nodeAttrs[attrIndexInNode], 0 /* AttributeMarker.NamespaceURI */, 'We do not match directives on namespaced attributes');\n          // we lowercase the attribute value to be able to match\n          // selectors without case-sensitivity\n          // (selectors are already in lowercase when generated)\n          nodeAttrValue = nodeAttrs[attrIndexInNode + 1].toLowerCase();\n        }\n        if (mode & 2 /* SelectorFlags.ATTRIBUTE */ && selectorAttrValue !== nodeAttrValue) {\n          if (isPositive(mode)) return false;\n          skipToNextSelector = true;\n        }\n      }\n    }\n  }\n  return isPositive(mode) || skipToNextSelector;\n}\nfunction isPositive(mode) {\n  return (mode & 1 /* SelectorFlags.NOT */) === 0;\n}\n/**\n * Examines the attribute's definition array for a node to find the index of the\n * attribute that matches the given `name`.\n *\n * NOTE: This will not match namespaced attributes.\n *\n * Attribute matching depends upon `isInlineTemplate` and `isProjectionMode`.\n * The following table summarizes which types of attributes we attempt to match:\n *\n * ===========================================================================================================\n * Modes                   | Normal Attributes | Bindings Attributes | Template Attributes | I18n\n * Attributes\n * ===========================================================================================================\n * Inline + Projection     | YES               | YES                 | NO                  | YES\n * -----------------------------------------------------------------------------------------------------------\n * Inline + Directive      | NO                | NO                  | YES                 | NO\n * -----------------------------------------------------------------------------------------------------------\n * Non-inline + Projection | YES               | YES                 | NO                  | YES\n * -----------------------------------------------------------------------------------------------------------\n * Non-inline + Directive  | YES               | YES                 | NO                  | YES\n * ===========================================================================================================\n *\n * @param name the name of the attribute to find\n * @param attrs the attribute array to examine\n * @param isInlineTemplate true if the node being matched is an inline template (e.g. `*ngFor`)\n * rather than a manually expanded template node (e.g `<ng-template>`).\n * @param isProjectionMode true if we are matching against content projection otherwise we are\n * matching against directives.\n */\nfunction findAttrIndexInNode(name, attrs, isInlineTemplate, isProjectionMode) {\n  if (attrs === null) return -1;\n  let i = 0;\n  if (isProjectionMode || !isInlineTemplate) {\n    let bindingsMode = false;\n    while (i < attrs.length) {\n      const maybeAttrName = attrs[i];\n      if (maybeAttrName === name) {\n        return i;\n      } else if (maybeAttrName === 3 /* AttributeMarker.Bindings */ || maybeAttrName === 6 /* AttributeMarker.I18n */) {\n        bindingsMode = true;\n      } else if (maybeAttrName === 1 /* AttributeMarker.Classes */ || maybeAttrName === 2 /* AttributeMarker.Styles */) {\n        let value = attrs[++i];\n        // We should skip classes here because we have a separate mechanism for\n        // matching classes in projection mode.\n        while (typeof value === 'string') {\n          value = attrs[++i];\n        }\n        continue;\n      } else if (maybeAttrName === 4 /* AttributeMarker.Template */) {\n        // We do not care about Template attributes in this scenario.\n        break;\n      } else if (maybeAttrName === 0 /* AttributeMarker.NamespaceURI */) {\n        // Skip the whole namespaced attribute and value. This is by design.\n        i += 4;\n        continue;\n      }\n      // In binding mode there are only names, rather than name-value pairs.\n      i += bindingsMode ? 1 : 2;\n    }\n    // We did not match the attribute\n    return -1;\n  } else {\n    return matchTemplateAttribute(attrs, name);\n  }\n}\nfunction isNodeMatchingSelectorList(tNode, selector, isProjectionMode = false) {\n  for (let i = 0; i < selector.length; i++) {\n    if (isNodeMatchingSelector(tNode, selector[i], isProjectionMode)) {\n      return true;\n    }\n  }\n  return false;\n}\nfunction getProjectAsAttrValue(tNode) {\n  const nodeAttrs = tNode.attrs;\n  if (nodeAttrs != null) {\n    const ngProjectAsAttrIdx = nodeAttrs.indexOf(5 /* AttributeMarker.ProjectAs */);\n    // only check for ngProjectAs in attribute names, don't accidentally match attribute's value\n    // (attribute names are stored at even indexes)\n    if ((ngProjectAsAttrIdx & 1) === 0) {\n      return nodeAttrs[ngProjectAsAttrIdx + 1];\n    }\n  }\n  return null;\n}\nfunction getNameOnlyMarkerIndex(nodeAttrs) {\n  for (let i = 0; i < nodeAttrs.length; i++) {\n    const nodeAttr = nodeAttrs[i];\n    if (isNameOnlyAttributeMarker(nodeAttr)) {\n      return i;\n    }\n  }\n  return nodeAttrs.length;\n}\nfunction matchTemplateAttribute(attrs, name) {\n  let i = attrs.indexOf(4 /* AttributeMarker.Template */);\n  if (i > -1) {\n    i++;\n    while (i < attrs.length) {\n      const attr = attrs[i];\n      // Return in case we checked all template attrs and are switching to the next section in the\n      // attrs array (that starts with a number that represents an attribute marker).\n      if (typeof attr === 'number') return -1;\n      if (attr === name) return i;\n      i++;\n    }\n  }\n  return -1;\n}\n/**\n * Checks whether a selector is inside a CssSelectorList\n * @param selector Selector to be checked.\n * @param list List in which to look for the selector.\n */\nfunction isSelectorInSelectorList(selector, list) {\n  selectorListLoop: for (let i = 0; i < list.length; i++) {\n    const currentSelectorInList = list[i];\n    if (selector.length !== currentSelectorInList.length) {\n      continue;\n    }\n    for (let j = 0; j < selector.length; j++) {\n      if (selector[j] !== currentSelectorInList[j]) {\n        continue selectorListLoop;\n      }\n    }\n    return true;\n  }\n  return false;\n}\nfunction maybeWrapInNotSelector(isNegativeMode, chunk) {\n  return isNegativeMode ? ':not(' + chunk.trim() + ')' : chunk;\n}\nfunction stringifyCSSSelector(selector) {\n  let result = selector[0];\n  let i = 1;\n  let mode = 2 /* SelectorFlags.ATTRIBUTE */;\n  let currentChunk = '';\n  let isNegativeMode = false;\n  while (i < selector.length) {\n    let valueOrMarker = selector[i];\n    if (typeof valueOrMarker === 'string') {\n      if (mode & 2 /* SelectorFlags.ATTRIBUTE */) {\n        const attrValue = selector[++i];\n        currentChunk += '[' + valueOrMarker + (attrValue.length > 0 ? '=\"' + attrValue + '\"' : '') + ']';\n      } else if (mode & 8 /* SelectorFlags.CLASS */) {\n        currentChunk += '.' + valueOrMarker;\n      } else if (mode & 4 /* SelectorFlags.ELEMENT */) {\n        currentChunk += ' ' + valueOrMarker;\n      }\n    } else {\n      //\n      // Append current chunk to the final result in case we come across SelectorFlag, which\n      // indicates that the previous section of a selector is over. We need to accumulate content\n      // between flags to make sure we wrap the chunk later in :not() selector if needed, e.g.\n      // ```\n      //  ['', Flags.CLASS, '.classA', Flags.CLASS | Flags.NOT, '.classB', '.classC']\n      // ```\n      // should be transformed to `.classA :not(.classB .classC)`.\n      //\n      // Note: for negative selector part, we accumulate content between flags until we find the\n      // next negative flag. This is needed to support a case where `:not()` rule contains more than\n      // one chunk, e.g. the following selector:\n      // ```\n      //  ['', Flags.ELEMENT | Flags.NOT, 'p', Flags.CLASS, 'foo', Flags.CLASS | Flags.NOT, 'bar']\n      // ```\n      // should be stringified to `:not(p.foo) :not(.bar)`\n      //\n      if (currentChunk !== '' && !isPositive(valueOrMarker)) {\n        result += maybeWrapInNotSelector(isNegativeMode, currentChunk);\n        currentChunk = '';\n      }\n      mode = valueOrMarker;\n      // According to CssSelector spec, once we come across `SelectorFlags.NOT` flag, the negative\n      // mode is maintained for remaining chunks of a selector.\n      isNegativeMode = isNegativeMode || !isPositive(mode);\n    }\n    i++;\n  }\n  if (currentChunk !== '') {\n    result += maybeWrapInNotSelector(isNegativeMode, currentChunk);\n  }\n  return result;\n}\n/**\n * Generates string representation of CSS selector in parsed form.\n *\n * ComponentDef and DirectiveDef are generated with the selector in parsed form to avoid doing\n * additional parsing at runtime (for example, for directive matching). However in some cases (for\n * example, while bootstrapping a component), a string version of the selector is required to query\n * for the host element on the page. This function takes the parsed form of a selector and returns\n * its string representation.\n *\n * @param selectorList selector in parsed form\n * @returns string representation of a given selector\n */\nfunction stringifyCSSSelectorList(selectorList) {\n  return selectorList.map(stringifyCSSSelector).join(',');\n}\n/**\n * Extracts attributes and classes information from a given CSS selector.\n *\n * This function is used while creating a component dynamically. In this case, the host element\n * (that is created dynamically) should contain attributes and classes specified in component's CSS\n * selector.\n *\n * @param selector CSS selector in parsed form (in a form of array)\n * @returns object with `attrs` and `classes` fields that contain extracted information\n */\nfunction extractAttrsAndClassesFromSelector(selector) {\n  const attrs = [];\n  const classes = [];\n  let i = 1;\n  let mode = 2 /* SelectorFlags.ATTRIBUTE */;\n  while (i < selector.length) {\n    let valueOrMarker = selector[i];\n    if (typeof valueOrMarker === 'string') {\n      if (mode === 2 /* SelectorFlags.ATTRIBUTE */) {\n        if (valueOrMarker !== '') {\n          attrs.push(valueOrMarker, selector[++i]);\n        }\n      } else if (mode === 8 /* SelectorFlags.CLASS */) {\n        classes.push(valueOrMarker);\n      }\n    } else {\n      // According to CssSelector spec, once we come across `SelectorFlags.NOT` flag, the negative\n      // mode is maintained for remaining chunks of a selector. Since attributes and classes are\n      // extracted only for \"positive\" part of the selector, we can stop here.\n      if (!isPositive(mode)) break;\n      mode = valueOrMarker;\n    }\n    i++;\n  }\n  return {\n    attrs,\n    classes\n  };\n}\n\n/**\n * Create a component definition object.\n *\n *\n * # Example\n * ```\n * class MyComponent {\n *   // Generated by Angular Template Compiler\n *   // [Symbol] syntax will not be supported by TypeScript until v2.7\n *   static ɵcmp = defineComponent({\n *     ...\n *   });\n * }\n * ```\n * @codeGenApi\n */\nfunction ɵɵdefineComponent(componentDefinition) {\n  return noSideEffects(() => {\n    // Initialize ngDevMode. This must be the first statement in ɵɵdefineComponent.\n    // See the `initNgDevMode` docstring for more information.\n    (typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode();\n    const baseDef = getNgDirectiveDef(componentDefinition);\n    const def = {\n      ...baseDef,\n      decls: componentDefinition.decls,\n      vars: componentDefinition.vars,\n      template: componentDefinition.template,\n      consts: componentDefinition.consts || null,\n      ngContentSelectors: componentDefinition.ngContentSelectors,\n      onPush: componentDefinition.changeDetection === ChangeDetectionStrategy.OnPush,\n      directiveDefs: null,\n      // assigned in noSideEffects\n      pipeDefs: null,\n      // assigned in noSideEffects\n      dependencies: baseDef.standalone && componentDefinition.dependencies || null,\n      getStandaloneInjector: null,\n      signals: componentDefinition.signals ?? false,\n      data: componentDefinition.data || {},\n      encapsulation: componentDefinition.encapsulation || ViewEncapsulation$1.Emulated,\n      styles: componentDefinition.styles || EMPTY_ARRAY,\n      _: null,\n      schemas: componentDefinition.schemas || null,\n      tView: null,\n      id: ''\n    };\n    initFeatures(def);\n    const dependencies = componentDefinition.dependencies;\n    def.directiveDefs = extractDefListOrFactory(dependencies, /* pipeDef */false);\n    def.pipeDefs = extractDefListOrFactory(dependencies, /* pipeDef */true);\n    def.id = getComponentId(def);\n    return def;\n  });\n}\nfunction extractDirectiveDef(type) {\n  return getComponentDef(type) || getDirectiveDef(type);\n}\nfunction nonNull(value) {\n  return value !== null;\n}\n/**\n * @codeGenApi\n */\nfunction ɵɵdefineNgModule(def) {\n  return noSideEffects(() => {\n    const res = {\n      type: def.type,\n      bootstrap: def.bootstrap || EMPTY_ARRAY,\n      declarations: def.declarations || EMPTY_ARRAY,\n      imports: def.imports || EMPTY_ARRAY,\n      exports: def.exports || EMPTY_ARRAY,\n      transitiveCompileScopes: null,\n      schemas: def.schemas || null,\n      id: def.id || null\n    };\n    return res;\n  });\n}\nfunction parseAndConvertBindingsForDefinition(obj, declaredInputs) {\n  if (obj == null) return EMPTY_OBJ;\n  const newLookup = {};\n  for (const minifiedKey in obj) {\n    if (obj.hasOwnProperty(minifiedKey)) {\n      const value = obj[minifiedKey];\n      let publicName;\n      let declaredName;\n      let inputFlags = InputFlags.None;\n      if (Array.isArray(value)) {\n        inputFlags = value[0];\n        publicName = value[1];\n        declaredName = value[2] ?? publicName; // declared name might not be set to save bytes.\n      } else {\n        publicName = value;\n        declaredName = value;\n      }\n      // For inputs, capture the declared name, or if some flags are set.\n      if (declaredInputs) {\n        // Perf note: An array is only allocated for the input if there are flags.\n        newLookup[publicName] = inputFlags !== InputFlags.None ? [minifiedKey, inputFlags] : minifiedKey;\n        declaredInputs[publicName] = declaredName;\n      } else {\n        newLookup[publicName] = minifiedKey;\n      }\n    }\n  }\n  return newLookup;\n}\n/**\n * Create a directive definition object.\n *\n * # Example\n * ```ts\n * class MyDirective {\n *   // Generated by Angular Template Compiler\n *   // [Symbol] syntax will not be supported by TypeScript until v2.7\n *   static ɵdir = ɵɵdefineDirective({\n *     ...\n *   });\n * }\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵdefineDirective(directiveDefinition) {\n  return noSideEffects(() => {\n    const def = getNgDirectiveDef(directiveDefinition);\n    initFeatures(def);\n    return def;\n  });\n}\n/**\n * Create a pipe definition object.\n *\n * # Example\n * ```\n * class MyPipe implements PipeTransform {\n *   // Generated by Angular Template Compiler\n *   static ɵpipe = definePipe({\n *     ...\n *   });\n * }\n * ```\n * @param pipeDef Pipe definition generated by the compiler\n *\n * @codeGenApi\n */\nfunction ɵɵdefinePipe(pipeDef) {\n  return {\n    type: pipeDef.type,\n    name: pipeDef.name,\n    factory: null,\n    pure: pipeDef.pure !== false,\n    standalone: pipeDef.standalone === true,\n    onDestroy: pipeDef.type.prototype.ngOnDestroy || null\n  };\n}\n/**\n * The following getter methods retrieve the definition from the type. Currently the retrieval\n * honors inheritance, but in the future we may change the rule to require that definitions are\n * explicit. This would require some sort of migration strategy.\n */\nfunction getComponentDef(type) {\n  return type[NG_COMP_DEF] || null;\n}\nfunction getDirectiveDef(type) {\n  return type[NG_DIR_DEF] || null;\n}\nfunction getPipeDef$1(type) {\n  return type[NG_PIPE_DEF] || null;\n}\n/**\n * Checks whether a given Component, Directive or Pipe is marked as standalone.\n * This will return false if passed anything other than a Component, Directive, or Pipe class\n * See [this guide](/guide/standalone-components) for additional information:\n *\n * @param type A reference to a Component, Directive or Pipe.\n * @publicApi\n */\nfunction isStandalone(type) {\n  const def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef$1(type);\n  return def !== null ? def.standalone : false;\n}\nfunction getNgModuleDef(type, throwNotFound) {\n  const ngModuleDef = type[NG_MOD_DEF] || null;\n  if (!ngModuleDef && throwNotFound === true) {\n    throw new Error(`Type ${stringify(type)} does not have 'ɵmod' property.`);\n  }\n  return ngModuleDef;\n}\nfunction getNgDirectiveDef(directiveDefinition) {\n  const declaredInputs = {};\n  return {\n    type: directiveDefinition.type,\n    providersResolver: null,\n    factory: null,\n    hostBindings: directiveDefinition.hostBindings || null,\n    hostVars: directiveDefinition.hostVars || 0,\n    hostAttrs: directiveDefinition.hostAttrs || null,\n    contentQueries: directiveDefinition.contentQueries || null,\n    declaredInputs: declaredInputs,\n    inputTransforms: null,\n    inputConfig: directiveDefinition.inputs || EMPTY_OBJ,\n    exportAs: directiveDefinition.exportAs || null,\n    standalone: directiveDefinition.standalone === true,\n    signals: directiveDefinition.signals === true,\n    selectors: directiveDefinition.selectors || EMPTY_ARRAY,\n    viewQuery: directiveDefinition.viewQuery || null,\n    features: directiveDefinition.features || null,\n    setInput: null,\n    findHostDirectiveDefs: null,\n    hostDirectives: null,\n    inputs: parseAndConvertBindingsForDefinition(directiveDefinition.inputs, declaredInputs),\n    outputs: parseAndConvertBindingsForDefinition(directiveDefinition.outputs),\n    debugInfo: null\n  };\n}\nfunction initFeatures(definition) {\n  definition.features?.forEach(fn => fn(definition));\n}\nfunction extractDefListOrFactory(dependencies, pipeDef) {\n  if (!dependencies) {\n    return null;\n  }\n  const defExtractor = pipeDef ? getPipeDef$1 : extractDirectiveDef;\n  return () => (typeof dependencies === 'function' ? dependencies() : dependencies).map(dep => defExtractor(dep)).filter(nonNull);\n}\n/**\n * A map that contains the generated component IDs and type.\n */\nconst GENERATED_COMP_IDS = /*#__PURE__*/new Map();\n/**\n * A method can returns a component ID from the component definition using a variant of DJB2 hash\n * algorithm.\n */\nfunction getComponentId(componentDef) {\n  let hash = 0;\n  // We cannot rely solely on the component selector as the same selector can be used in different\n  // modules.\n  //\n  // `componentDef.style` is not used, due to it causing inconsistencies. Ex: when server\n  // component styles has no sourcemaps and browsers do.\n  //\n  // Example:\n  // https://github.com/angular/components/blob/d9f82c8f95309e77a6d82fd574c65871e91354c2/src/material/core/option/option.ts#L248\n  // https://github.com/angular/components/blob/285f46dc2b4c5b127d356cb7c4714b221f03ce50/src/material/legacy-core/option/option.ts#L32\n  const hashSelectors = [componentDef.selectors, componentDef.ngContentSelectors, componentDef.hostVars, componentDef.hostAttrs, componentDef.consts, componentDef.vars, componentDef.decls, componentDef.encapsulation, componentDef.standalone, componentDef.signals, componentDef.exportAs, JSON.stringify(componentDef.inputs), JSON.stringify(componentDef.outputs),\n  // We cannot use 'componentDef.type.name' as the name of the symbol will change and will not\n  // match in the server and browser bundles.\n  Object.getOwnPropertyNames(componentDef.type.prototype), !!componentDef.contentQueries, !!componentDef.viewQuery].join('|');\n  for (const char of hashSelectors) {\n    hash = Math.imul(31, hash) + char.charCodeAt(0) << 0;\n  }\n  // Force positive number hash.\n  // 2147483647 = equivalent of Integer.MAX_VALUE.\n  hash += 2147483647 + 1;\n  const compId = 'c' + hash;\n  if (typeof ngDevMode === 'undefined' || ngDevMode) {\n    if (GENERATED_COMP_IDS.has(compId)) {\n      const previousCompDefType = GENERATED_COMP_IDS.get(compId);\n      if (previousCompDefType !== componentDef.type) {\n        console.warn(formatRuntimeError(-912 /* RuntimeErrorCode.COMPONENT_ID_COLLISION */, `Component ID generation collision detected. Components '${previousCompDefType.name}' and '${componentDef.type.name}' with selector '${stringifyCSSSelectorList(componentDef.selectors)}' generated the same component ID. To fix this, you can change the selector of one of those components or add an extra host attribute to force a different ID.`));\n      }\n    } else {\n      GENERATED_COMP_IDS.set(compId, componentDef.type);\n    }\n  }\n  return compId;\n}\n\n/**\n * Wrap an array of `Provider`s into `EnvironmentProviders`, preventing them from being accidentally\n * referenced in `@Component` in a component injector.\n */\nfunction makeEnvironmentProviders(providers) {\n  return {\n    ɵproviders: providers\n  };\n}\n/**\n * Collects providers from all NgModules and standalone components, including transitively imported\n * ones.\n *\n * Providers extracted via `importProvidersFrom` are only usable in an application injector or\n * another environment injector (such as a route injector). They should not be used in component\n * providers.\n *\n * More information about standalone components can be found in [this\n * guide](guide/standalone-components).\n *\n * @usageNotes\n * The results of the `importProvidersFrom` call can be used in the `bootstrapApplication` call:\n *\n * ```typescript\n * await bootstrapApplication(RootComponent, {\n *   providers: [\n *     importProvidersFrom(NgModuleOne, NgModuleTwo)\n *   ]\n * });\n * ```\n *\n * You can also use the `importProvidersFrom` results in the `providers` field of a route, when a\n * standalone component is used:\n *\n * ```typescript\n * export const ROUTES: Route[] = [\n *   {\n *     path: 'foo',\n *     providers: [\n *       importProvidersFrom(NgModuleOne, NgModuleTwo)\n *     ],\n *     component: YourStandaloneComponent\n *   }\n * ];\n * ```\n *\n * @returns Collected providers from the specified list of types.\n * @publicApi\n */\nfunction importProvidersFrom(...sources) {\n  return {\n    ɵproviders: internalImportProvidersFrom(true, sources),\n    ɵfromNgModule: true\n  };\n}\nfunction internalImportProvidersFrom(checkForStandaloneCmp, ...sources) {\n  const providersOut = [];\n  const dedup = new Set(); // already seen types\n  let injectorTypesWithProviders;\n  const collectProviders = provider => {\n    providersOut.push(provider);\n  };\n  deepForEach(sources, source => {\n    if ((typeof ngDevMode === 'undefined' || ngDevMode) && checkForStandaloneCmp) {\n      const cmpDef = getComponentDef(source);\n      if (cmpDef?.standalone) {\n        throw new RuntimeError(800 /* RuntimeErrorCode.IMPORT_PROVIDERS_FROM_STANDALONE */, `Importing providers supports NgModule or ModuleWithProviders but got a standalone component \"${stringifyForError(source)}\"`);\n      }\n    }\n    // Narrow `source` to access the internal type analogue for `ModuleWithProviders`.\n    const internalSource = source;\n    if (walkProviderTree(internalSource, collectProviders, [], dedup)) {\n      injectorTypesWithProviders ||= [];\n      injectorTypesWithProviders.push(internalSource);\n    }\n  });\n  // Collect all providers from `ModuleWithProviders` types.\n  if (injectorTypesWithProviders !== undefined) {\n    processInjectorTypesWithProviders(injectorTypesWithProviders, collectProviders);\n  }\n  return providersOut;\n}\n/**\n * Collects all providers from the list of `ModuleWithProviders` and appends them to the provided\n * array.\n */\nfunction processInjectorTypesWithProviders(typesWithProviders, visitor) {\n  for (let i = 0; i < typesWithProviders.length; i++) {\n    const {\n      ngModule,\n      providers\n    } = typesWithProviders[i];\n    deepForEachProvider(providers, provider => {\n      ngDevMode && validateProvider(provider, providers || EMPTY_ARRAY, ngModule);\n      visitor(provider, ngModule);\n    });\n  }\n}\n/**\n * The logic visits an `InjectorType`, an `InjectorTypeWithProviders`, or a standalone\n * `ComponentType`, and all of its transitive providers and collects providers.\n *\n * If an `InjectorTypeWithProviders` that declares providers besides the type is specified,\n * the function will return \"true\" to indicate that the providers of the type definition need\n * to be processed. This allows us to process providers of injector types after all imports of\n * an injector definition are processed. (following View Engine semantics: see FW-1349)\n */\nfunction walkProviderTree(container, visitor, parents, dedup) {\n  container = resolveForwardRef(container);\n  if (!container) return false;\n  // The actual type which had the definition. Usually `container`, but may be an unwrapped type\n  // from `InjectorTypeWithProviders`.\n  let defType = null;\n  let injDef = getInjectorDef(container);\n  const cmpDef = !injDef && getComponentDef(container);\n  if (!injDef && !cmpDef) {\n    // `container` is not an injector type or a component type. It might be:\n    //  * An `InjectorTypeWithProviders` that wraps an injector type.\n    //  * A standalone directive or pipe that got pulled in from a standalone component's\n    //    dependencies.\n    // Try to unwrap it as an `InjectorTypeWithProviders` first.\n    const ngModule = container.ngModule;\n    injDef = getInjectorDef(ngModule);\n    if (injDef) {\n      defType = ngModule;\n    } else {\n      // Not a component or injector type, so ignore it.\n      return false;\n    }\n  } else if (cmpDef && !cmpDef.standalone) {\n    return false;\n  } else {\n    defType = container;\n  }\n  // Check for circular dependencies.\n  if (ngDevMode && parents.indexOf(defType) !== -1) {\n    const defName = stringify(defType);\n    const path = parents.map(stringify);\n    throwCyclicDependencyError(defName, path);\n  }\n  // Check for multiple imports of the same module\n  const isDuplicate = dedup.has(defType);\n  if (cmpDef) {\n    if (isDuplicate) {\n      // This component definition has already been processed.\n      return false;\n    }\n    dedup.add(defType);\n    if (cmpDef.dependencies) {\n      const deps = typeof cmpDef.dependencies === 'function' ? cmpDef.dependencies() : cmpDef.dependencies;\n      for (const dep of deps) {\n        walkProviderTree(dep, visitor, parents, dedup);\n      }\n    }\n  } else if (injDef) {\n    // First, include providers from any imports.\n    if (injDef.imports != null && !isDuplicate) {\n      // Before processing defType's imports, add it to the set of parents. This way, if it ends\n      // up deeply importing itself, this can be detected.\n      ngDevMode && parents.push(defType);\n      // Add it to the set of dedups. This way we can detect multiple imports of the same module\n      dedup.add(defType);\n      let importTypesWithProviders;\n      try {\n        deepForEach(injDef.imports, imported => {\n          if (walkProviderTree(imported, visitor, parents, dedup)) {\n            importTypesWithProviders ||= [];\n            // If the processed import is an injector type with providers, we store it in the\n            // list of import types with providers, so that we can process those afterwards.\n            importTypesWithProviders.push(imported);\n          }\n        });\n      } finally {\n        // Remove it from the parents set when finished.\n        ngDevMode && parents.pop();\n      }\n      // Imports which are declared with providers (TypeWithProviders) need to be processed\n      // after all imported modules are processed. This is similar to how View Engine\n      // processes/merges module imports in the metadata resolver. See: FW-1349.\n      if (importTypesWithProviders !== undefined) {\n        processInjectorTypesWithProviders(importTypesWithProviders, visitor);\n      }\n    }\n    if (!isDuplicate) {\n      // Track the InjectorType and add a provider for it.\n      // It's important that this is done after the def's imports.\n      const factory = getFactoryDef(defType) || (() => new defType());\n      // Append extra providers to make more info available for consumers (to retrieve an injector\n      // type), as well as internally (to calculate an injection scope correctly and eagerly\n      // instantiate a `defType` when an injector is created).\n      // Provider to create `defType` using its factory.\n      visitor({\n        provide: defType,\n        useFactory: factory,\n        deps: EMPTY_ARRAY\n      }, defType);\n      // Make this `defType` available to an internal logic that calculates injector scope.\n      visitor({\n        provide: INJECTOR_DEF_TYPES,\n        useValue: defType,\n        multi: true\n      }, defType);\n      // Provider to eagerly instantiate `defType` via `INJECTOR_INITIALIZER`.\n      visitor({\n        provide: ENVIRONMENT_INITIALIZER,\n        useValue: () => ɵɵinject(defType),\n        multi: true\n      }, defType);\n    }\n    // Next, include providers listed on the definition itself.\n    const defProviders = injDef.providers;\n    if (defProviders != null && !isDuplicate) {\n      const injectorType = container;\n      deepForEachProvider(defProviders, provider => {\n        ngDevMode && validateProvider(provider, defProviders, injectorType);\n        visitor(provider, injectorType);\n      });\n    }\n  } else {\n    // Should not happen, but just in case.\n    return false;\n  }\n  return defType !== container && container.providers !== undefined;\n}\nfunction validateProvider(provider, providers, containerType) {\n  if (isTypeProvider(provider) || isValueProvider(provider) || isFactoryProvider(provider) || isExistingProvider(provider)) {\n    return;\n  }\n  // Here we expect the provider to be a `useClass` provider (by elimination).\n  const classRef = resolveForwardRef(provider && (provider.useClass || provider.provide));\n  if (!classRef) {\n    throwInvalidProviderError(containerType, providers, provider);\n  }\n}\nfunction deepForEachProvider(providers, fn) {\n  for (let provider of providers) {\n    if (isEnvironmentProviders(provider)) {\n      provider = provider.ɵproviders;\n    }\n    if (Array.isArray(provider)) {\n      deepForEachProvider(provider, fn);\n    } else {\n      fn(provider);\n    }\n  }\n}\nconst USE_VALUE$1 = /*#__PURE__*/getClosureSafeProperty({\n  provide: String,\n  useValue: getClosureSafeProperty\n});\nfunction isValueProvider(value) {\n  return value !== null && typeof value == 'object' && USE_VALUE$1 in value;\n}\nfunction isExistingProvider(value) {\n  return !!(value && value.useExisting);\n}\nfunction isFactoryProvider(value) {\n  return !!(value && value.useFactory);\n}\nfunction isTypeProvider(value) {\n  return typeof value === 'function';\n}\nfunction isClassProvider(value) {\n  return !!value.useClass;\n}\n\n/**\n * An internal token whose presence in an injector indicates that the injector should treat itself\n * as a root scoped injector when processing requests for unknown tokens which may indicate\n * they are provided in the root scope.\n */\nconst INJECTOR_SCOPE = /*#__PURE__*/new InjectionToken(ngDevMode ? 'Set Injector scope.' : '');\n\n/**\n * Marker which indicates that a value has not yet been created from the factory function.\n */\nconst NOT_YET = {};\n/**\n * Marker which indicates that the factory function for a token is in the process of being called.\n *\n * If the injector is asked to inject a token with its value set to CIRCULAR, that indicates\n * injection of a dependency has recursively attempted to inject the original token, and there is\n * a circular dependency among the providers.\n */\nconst CIRCULAR = {};\n/**\n * A lazily initialized NullInjector.\n */\nlet NULL_INJECTOR = undefined;\nfunction getNullInjector() {\n  if (NULL_INJECTOR === undefined) {\n    NULL_INJECTOR = new NullInjector();\n  }\n  return NULL_INJECTOR;\n}\n/**\n * An `Injector` that's part of the environment injector hierarchy, which exists outside of the\n * component tree.\n */\nclass EnvironmentInjector {}\nclass R3Injector extends EnvironmentInjector {\n  /**\n   * Flag indicating that this injector was previously destroyed.\n   */\n  get destroyed() {\n    return this._destroyed;\n  }\n  constructor(providers, parent, source, scopes) {\n    super();\n    this.parent = parent;\n    this.source = source;\n    this.scopes = scopes;\n    /**\n     * Map of tokens to records which contain the instances of those tokens.\n     * - `null` value implies that we don't have the record. Used by tree-shakable injectors\n     * to prevent further searches.\n     */\n    this.records = new Map();\n    /**\n     * Set of values instantiated by this injector which contain `ngOnDestroy` lifecycle hooks.\n     */\n    this._ngOnDestroyHooks = new Set();\n    this._onDestroyHooks = [];\n    this._destroyed = false;\n    // Start off by creating Records for every provider.\n    forEachSingleProvider(providers, provider => this.processProvider(provider));\n    // Make sure the INJECTOR token provides this injector.\n    this.records.set(INJECTOR$1, makeRecord(undefined, this));\n    // And `EnvironmentInjector` if the current injector is supposed to be env-scoped.\n    if (scopes.has('environment')) {\n      this.records.set(EnvironmentInjector, makeRecord(undefined, this));\n    }\n    // Detect whether this injector has the APP_ROOT_SCOPE token and thus should provide\n    // any injectable scoped to APP_ROOT_SCOPE.\n    const record = this.records.get(INJECTOR_SCOPE);\n    if (record != null && typeof record.value === 'string') {\n      this.scopes.add(record.value);\n    }\n    this.injectorDefTypes = new Set(this.get(INJECTOR_DEF_TYPES, EMPTY_ARRAY, InjectFlags.Self));\n  }\n  /**\n   * Destroy the injector and release references to every instance or provider associated with it.\n   *\n   * Also calls the `OnDestroy` lifecycle hooks of every instance that was created for which a\n   * hook was found.\n   */\n  destroy() {\n    this.assertNotDestroyed();\n    // Set destroyed = true first, in case lifecycle hooks re-enter destroy().\n    this._destroyed = true;\n    const prevConsumer = setActiveConsumer$1(null);\n    try {\n      // Call all the lifecycle hooks.\n      for (const service of this._ngOnDestroyHooks) {\n        service.ngOnDestroy();\n      }\n      const onDestroyHooks = this._onDestroyHooks;\n      // Reset the _onDestroyHooks array before iterating over it to prevent hooks that unregister\n      // themselves from mutating the array during iteration.\n      this._onDestroyHooks = [];\n      for (const hook of onDestroyHooks) {\n        hook();\n      }\n    } finally {\n      // Release all references.\n      this.records.clear();\n      this._ngOnDestroyHooks.clear();\n      this.injectorDefTypes.clear();\n      setActiveConsumer$1(prevConsumer);\n    }\n  }\n  onDestroy(callback) {\n    this.assertNotDestroyed();\n    this._onDestroyHooks.push(callback);\n    return () => this.removeOnDestroy(callback);\n  }\n  runInContext(fn) {\n    this.assertNotDestroyed();\n    const previousInjector = setCurrentInjector(this);\n    const previousInjectImplementation = setInjectImplementation(undefined);\n    let prevInjectContext;\n    if (ngDevMode) {\n      prevInjectContext = setInjectorProfilerContext({\n        injector: this,\n        token: null\n      });\n    }\n    try {\n      return fn();\n    } finally {\n      setCurrentInjector(previousInjector);\n      setInjectImplementation(previousInjectImplementation);\n      ngDevMode && setInjectorProfilerContext(prevInjectContext);\n    }\n  }\n  get(token, notFoundValue = THROW_IF_NOT_FOUND, flags = InjectFlags.Default) {\n    this.assertNotDestroyed();\n    if (token.hasOwnProperty(NG_ENV_ID)) {\n      return token[NG_ENV_ID](this);\n    }\n    flags = convertToBitFlags(flags);\n    // Set the injection context.\n    let prevInjectContext;\n    if (ngDevMode) {\n      prevInjectContext = setInjectorProfilerContext({\n        injector: this,\n        token: token\n      });\n    }\n    const previousInjector = setCurrentInjector(this);\n    const previousInjectImplementation = setInjectImplementation(undefined);\n    try {\n      // Check for the SkipSelf flag.\n      if (!(flags & InjectFlags.SkipSelf)) {\n        // SkipSelf isn't set, check if the record belongs to this injector.\n        let record = this.records.get(token);\n        if (record === undefined) {\n          // No record, but maybe the token is scoped to this injector. Look for an injectable\n          // def with a scope matching this injector.\n          const def = couldBeInjectableType(token) && getInjectableDef(token);\n          if (def && this.injectableDefInScope(def)) {\n            // Found an injectable def and it's scoped to this injector. Pretend as if it was here\n            // all along.\n            if (ngDevMode) {\n              runInInjectorProfilerContext(this, token, () => {\n                emitProviderConfiguredEvent(token);\n              });\n            }\n            record = makeRecord(injectableDefOrInjectorDefFactory(token), NOT_YET);\n          } else {\n            record = null;\n          }\n          this.records.set(token, record);\n        }\n        // If a record was found, get the instance for it and return it.\n        if (record != null /* NOT null || undefined */) {\n          return this.hydrate(token, record);\n        }\n      }\n      // Select the next injector based on the Self flag - if self is set, the next injector is\n      // the NullInjector, otherwise it's the parent.\n      const nextInjector = !(flags & InjectFlags.Self) ? this.parent : getNullInjector();\n      // Set the notFoundValue based on the Optional flag - if optional is set and notFoundValue\n      // is undefined, the value is null, otherwise it's the notFoundValue.\n      notFoundValue = flags & InjectFlags.Optional && notFoundValue === THROW_IF_NOT_FOUND ? null : notFoundValue;\n      return nextInjector.get(token, notFoundValue);\n    } catch (e) {\n      if (e.name === 'NullInjectorError') {\n        const path = e[NG_TEMP_TOKEN_PATH] = e[NG_TEMP_TOKEN_PATH] || [];\n        path.unshift(stringify(token));\n        if (previousInjector) {\n          // We still have a parent injector, keep throwing\n          throw e;\n        } else {\n          // Format & throw the final error message when we don't have any previous injector\n          return catchInjectorError(e, token, 'R3InjectorError', this.source);\n        }\n      } else {\n        throw e;\n      }\n    } finally {\n      // Lastly, restore the previous injection context.\n      setInjectImplementation(previousInjectImplementation);\n      setCurrentInjector(previousInjector);\n      ngDevMode && setInjectorProfilerContext(prevInjectContext);\n    }\n  }\n  /** @internal */\n  resolveInjectorInitializers() {\n    const prevConsumer = setActiveConsumer$1(null);\n    const previousInjector = setCurrentInjector(this);\n    const previousInjectImplementation = setInjectImplementation(undefined);\n    let prevInjectContext;\n    if (ngDevMode) {\n      prevInjectContext = setInjectorProfilerContext({\n        injector: this,\n        token: null\n      });\n    }\n    try {\n      const initializers = this.get(ENVIRONMENT_INITIALIZER, EMPTY_ARRAY, InjectFlags.Self);\n      if (ngDevMode && !Array.isArray(initializers)) {\n        throw new RuntimeError(-209 /* RuntimeErrorCode.INVALID_MULTI_PROVIDER */, 'Unexpected type of the `ENVIRONMENT_INITIALIZER` token value ' + `(expected an array, but got ${typeof initializers}). ` + 'Please check that the `ENVIRONMENT_INITIALIZER` token is configured as a ' + '`multi: true` provider.');\n      }\n      for (const initializer of initializers) {\n        initializer();\n      }\n    } finally {\n      setCurrentInjector(previousInjector);\n      setInjectImplementation(previousInjectImplementation);\n      ngDevMode && setInjectorProfilerContext(prevInjectContext);\n      setActiveConsumer$1(prevConsumer);\n    }\n  }\n  toString() {\n    const tokens = [];\n    const records = this.records;\n    for (const token of records.keys()) {\n      tokens.push(stringify(token));\n    }\n    return `R3Injector[${tokens.join(', ')}]`;\n  }\n  assertNotDestroyed() {\n    if (this._destroyed) {\n      throw new RuntimeError(205 /* RuntimeErrorCode.INJECTOR_ALREADY_DESTROYED */, ngDevMode && 'Injector has already been destroyed.');\n    }\n  }\n  /**\n   * Process a `SingleProvider` and add it.\n   */\n  processProvider(provider) {\n    // Determine the token from the provider. Either it's its own token, or has a {provide: ...}\n    // property.\n    provider = resolveForwardRef(provider);\n    let token = isTypeProvider(provider) ? provider : resolveForwardRef(provider && provider.provide);\n    // Construct a `Record` for the provider.\n    const record = providerToRecord(provider);\n    if (ngDevMode) {\n      runInInjectorProfilerContext(this, token, () => {\n        // Emit InjectorProfilerEventType.Create if provider is a value provider because\n        // these are the only providers that do not go through the value hydration logic\n        // where this event would normally be emitted from.\n        if (isValueProvider(provider)) {\n          emitInstanceCreatedByInjectorEvent(provider.useValue);\n        }\n        emitProviderConfiguredEvent(provider);\n      });\n    }\n    if (!isTypeProvider(provider) && provider.multi === true) {\n      // If the provider indicates that it's a multi-provider, process it specially.\n      // First check whether it's been defined already.\n      let multiRecord = this.records.get(token);\n      if (multiRecord) {\n        // It has. Throw a nice error if\n        if (ngDevMode && multiRecord.multi === undefined) {\n          throwMixedMultiProviderError();\n        }\n      } else {\n        multiRecord = makeRecord(undefined, NOT_YET, true);\n        multiRecord.factory = () => injectArgs(multiRecord.multi);\n        this.records.set(token, multiRecord);\n      }\n      token = provider;\n      multiRecord.multi.push(provider);\n    } else {\n      if (ngDevMode) {\n        const existing = this.records.get(token);\n        if (existing && existing.multi !== undefined) {\n          throwMixedMultiProviderError();\n        }\n      }\n    }\n    this.records.set(token, record);\n  }\n  hydrate(token, record) {\n    const prevConsumer = setActiveConsumer$1(null);\n    try {\n      if (ngDevMode && record.value === CIRCULAR) {\n        throwCyclicDependencyError(stringify(token));\n      } else if (record.value === NOT_YET) {\n        record.value = CIRCULAR;\n        if (ngDevMode) {\n          runInInjectorProfilerContext(this, token, () => {\n            record.value = record.factory();\n            emitInstanceCreatedByInjectorEvent(record.value);\n          });\n        } else {\n          record.value = record.factory();\n        }\n      }\n      if (typeof record.value === 'object' && record.value && hasOnDestroy(record.value)) {\n        this._ngOnDestroyHooks.add(record.value);\n      }\n      return record.value;\n    } finally {\n      setActiveConsumer$1(prevConsumer);\n    }\n  }\n  injectableDefInScope(def) {\n    if (!def.providedIn) {\n      return false;\n    }\n    const providedIn = resolveForwardRef(def.providedIn);\n    if (typeof providedIn === 'string') {\n      return providedIn === 'any' || this.scopes.has(providedIn);\n    } else {\n      return this.injectorDefTypes.has(providedIn);\n    }\n  }\n  removeOnDestroy(callback) {\n    const destroyCBIdx = this._onDestroyHooks.indexOf(callback);\n    if (destroyCBIdx !== -1) {\n      this._onDestroyHooks.splice(destroyCBIdx, 1);\n    }\n  }\n}\nfunction injectableDefOrInjectorDefFactory(token) {\n  // Most tokens will have an injectable def directly on them, which specifies a factory directly.\n  const injectableDef = getInjectableDef(token);\n  const factory = injectableDef !== null ? injectableDef.factory : getFactoryDef(token);\n  if (factory !== null) {\n    return factory;\n  }\n  // InjectionTokens should have an injectable def (ɵprov) and thus should be handled above.\n  // If it's missing that, it's an error.\n  if (token instanceof InjectionToken) {\n    throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode && `Token ${stringify(token)} is missing a ɵprov definition.`);\n  }\n  // Undecorated types can sometimes be created if they have no constructor arguments.\n  if (token instanceof Function) {\n    return getUndecoratedInjectableFactory(token);\n  }\n  // There was no way to resolve a factory for this token.\n  throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode && 'unreachable');\n}\nfunction getUndecoratedInjectableFactory(token) {\n  // If the token has parameters then it has dependencies that we cannot resolve implicitly.\n  const paramLength = token.length;\n  if (paramLength > 0) {\n    throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode && `Can't resolve all parameters for ${stringify(token)}: (${newArray(paramLength, '?').join(', ')}).`);\n  }\n  // The constructor function appears to have no parameters.\n  // This might be because it inherits from a super-class. In which case, use an injectable\n  // def from an ancestor if there is one.\n  // Otherwise this really is a simple class with no dependencies, so return a factory that\n  // just instantiates the zero-arg constructor.\n  const inheritedInjectableDef = getInheritedInjectableDef(token);\n  if (inheritedInjectableDef !== null) {\n    return () => inheritedInjectableDef.factory(token);\n  } else {\n    return () => new token();\n  }\n}\nfunction providerToRecord(provider) {\n  if (isValueProvider(provider)) {\n    return makeRecord(undefined, provider.useValue);\n  } else {\n    const factory = providerToFactory(provider);\n    return makeRecord(factory, NOT_YET);\n  }\n}\n/**\n * Converts a `SingleProvider` into a factory function.\n *\n * @param provider provider to convert to factory\n */\nfunction providerToFactory(provider, ngModuleType, providers) {\n  let factory = undefined;\n  if (ngDevMode && isEnvironmentProviders(provider)) {\n    throwInvalidProviderError(undefined, providers, provider);\n  }\n  if (isTypeProvider(provider)) {\n    const unwrappedProvider = resolveForwardRef(provider);\n    return getFactoryDef(unwrappedProvider) || injectableDefOrInjectorDefFactory(unwrappedProvider);\n  } else {\n    if (isValueProvider(provider)) {\n      factory = () => resolveForwardRef(provider.useValue);\n    } else if (isFactoryProvider(provider)) {\n      factory = () => provider.useFactory(...injectArgs(provider.deps || []));\n    } else if (isExistingProvider(provider)) {\n      factory = () => ɵɵinject(resolveForwardRef(provider.useExisting));\n    } else {\n      const classRef = resolveForwardRef(provider && (provider.useClass || provider.provide));\n      if (ngDevMode && !classRef) {\n        throwInvalidProviderError(ngModuleType, providers, provider);\n      }\n      if (hasDeps(provider)) {\n        factory = () => new classRef(...injectArgs(provider.deps));\n      } else {\n        return getFactoryDef(classRef) || injectableDefOrInjectorDefFactory(classRef);\n      }\n    }\n  }\n  return factory;\n}\nfunction makeRecord(factory, value, multi = false) {\n  return {\n    factory: factory,\n    value: value,\n    multi: multi ? [] : undefined\n  };\n}\nfunction hasDeps(value) {\n  return !!value.deps;\n}\nfunction hasOnDestroy(value) {\n  return value !== null && typeof value === 'object' && typeof value.ngOnDestroy === 'function';\n}\nfunction couldBeInjectableType(value) {\n  return typeof value === 'function' || typeof value === 'object' && value instanceof InjectionToken;\n}\nfunction forEachSingleProvider(providers, fn) {\n  for (const provider of providers) {\n    if (Array.isArray(provider)) {\n      forEachSingleProvider(provider, fn);\n    } else if (provider && isEnvironmentProviders(provider)) {\n      forEachSingleProvider(provider.ɵproviders, fn);\n    } else {\n      fn(provider);\n    }\n  }\n}\n\n/**\n * Runs the given function in the [context](guide/dependency-injection-context) of the given\n * `Injector`.\n *\n * Within the function's stack frame, [`inject`](api/core/inject) can be used to inject dependencies\n * from the given `Injector`. Note that `inject` is only usable synchronously, and cannot be used in\n * any asynchronous callbacks or after any `await` points.\n *\n * @param injector the injector which will satisfy calls to [`inject`](api/core/inject) while `fn`\n *     is executing\n * @param fn the closure to be run in the context of `injector`\n * @returns the return value of the function, if any\n * @publicApi\n */\nfunction runInInjectionContext(injector, fn) {\n  if (injector instanceof R3Injector) {\n    injector.assertNotDestroyed();\n  }\n  let prevInjectorProfilerContext;\n  if (ngDevMode) {\n    prevInjectorProfilerContext = setInjectorProfilerContext({\n      injector,\n      token: null\n    });\n  }\n  const prevInjector = setCurrentInjector(injector);\n  const previousInjectImplementation = setInjectImplementation(undefined);\n  try {\n    return fn();\n  } finally {\n    setCurrentInjector(prevInjector);\n    ngDevMode && setInjectorProfilerContext(prevInjectorProfilerContext);\n    setInjectImplementation(previousInjectImplementation);\n  }\n}\n/**\n * Whether the current stack frame is inside an injection context.\n */\nfunction isInInjectionContext() {\n  return getInjectImplementation() !== undefined || getCurrentInjector() != null;\n}\n/**\n * Asserts that the current stack frame is within an [injection\n * context](guide/dependency-injection-context) and has access to `inject`.\n *\n * @param debugFn a reference to the function making the assertion (used for the error message).\n *\n * @publicApi\n */\nfunction assertInInjectionContext(debugFn) {\n  // Taking a `Function` instead of a string name here prevents the unminified name of the function\n  // from being retained in the bundle regardless of minification.\n  if (!isInInjectionContext()) {\n    throw new RuntimeError(-203 /* RuntimeErrorCode.MISSING_INJECTION_CONTEXT */, ngDevMode && debugFn.name + '() can only be used within an injection context such as a constructor, a factory function, a field initializer, or a function used with `runInInjectionContext`');\n  }\n}\nvar FactoryTarget = /*#__PURE__*/function (FactoryTarget) {\n  FactoryTarget[FactoryTarget[\"Directive\"] = 0] = \"Directive\";\n  FactoryTarget[FactoryTarget[\"Component\"] = 1] = \"Component\";\n  FactoryTarget[FactoryTarget[\"Injectable\"] = 2] = \"Injectable\";\n  FactoryTarget[FactoryTarget[\"Pipe\"] = 3] = \"Pipe\";\n  FactoryTarget[FactoryTarget[\"NgModule\"] = 4] = \"NgModule\";\n  return FactoryTarget;\n}(FactoryTarget || {});\nvar R3TemplateDependencyKind = /*#__PURE__*/function (R3TemplateDependencyKind) {\n  R3TemplateDependencyKind[R3TemplateDependencyKind[\"Directive\"] = 0] = \"Directive\";\n  R3TemplateDependencyKind[R3TemplateDependencyKind[\"Pipe\"] = 1] = \"Pipe\";\n  R3TemplateDependencyKind[R3TemplateDependencyKind[\"NgModule\"] = 2] = \"NgModule\";\n  return R3TemplateDependencyKind;\n}(R3TemplateDependencyKind || {});\nvar ViewEncapsulation = /*#__PURE__*/function (ViewEncapsulation) {\n  ViewEncapsulation[ViewEncapsulation[\"Emulated\"] = 0] = \"Emulated\";\n  // Historically the 1 value was for `Native` encapsulation which has been removed as of v11.\n  ViewEncapsulation[ViewEncapsulation[\"None\"] = 2] = \"None\";\n  ViewEncapsulation[ViewEncapsulation[\"ShadowDom\"] = 3] = \"ShadowDom\";\n  return ViewEncapsulation;\n}(ViewEncapsulation || {});\nfunction getCompilerFacade(request) {\n  const globalNg = _global['ng'];\n  if (globalNg && globalNg.ɵcompilerFacade) {\n    return globalNg.ɵcompilerFacade;\n  }\n  if (typeof ngDevMode === 'undefined' || ngDevMode) {\n    // Log the type as an error so that a developer can easily navigate to the type from the\n    // console.\n    console.error(`JIT compilation failed for ${request.kind}`, request.type);\n    let message = `The ${request.kind} '${request.type.name}' needs to be compiled using the JIT compiler, but '@angular/compiler' is not available.\\n\\n`;\n    if (request.usage === 1 /* JitCompilerUsage.PartialDeclaration */) {\n      message += `The ${request.kind} is part of a library that has been partially compiled.\\n`;\n      message += `However, the Angular Linker has not processed the library such that JIT compilation is used as fallback.\\n`;\n      message += '\\n';\n      message += `Ideally, the library is processed using the Angular Linker to become fully AOT compiled.\\n`;\n    } else {\n      message += `JIT compilation is discouraged for production use-cases! Consider using AOT mode instead.\\n`;\n    }\n    message += `Alternatively, the JIT compiler should be loaded by bootstrapping using '@angular/platform-browser-dynamic' or '@angular/platform-server',\\n`;\n    message += `or manually provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.`;\n    throw new Error(message);\n  } else {\n    throw new Error('JIT compiler unavailable');\n  }\n}\n\n/**\n * A mapping of the @angular/core API surface used in generated expressions to the actual symbols.\n *\n * This should be kept up to date with the public exports of @angular/core.\n */\nconst angularCoreDiEnv = {\n  'ɵɵdefineInjectable': ɵɵdefineInjectable,\n  'ɵɵdefineInjector': ɵɵdefineInjector,\n  'ɵɵinject': ɵɵinject,\n  'ɵɵinvalidFactoryDep': ɵɵinvalidFactoryDep,\n  'resolveForwardRef': resolveForwardRef\n};\n\n/**\n * @description\n *\n * Represents a type that a Component or other object is instances of.\n *\n * An example of a `Type` is `MyCustomComponent` class, which in JavaScript is represented by\n * the `MyCustomComponent` constructor function.\n *\n * @publicApi\n */\nconst Type = Function;\nfunction isType(v) {\n  return typeof v === 'function';\n}\n\n/*\n * #########################\n * Attention: These Regular expressions have to hold even if the code is minified!\n * ##########################\n */\n/**\n * Regular expression that detects pass-through constructors for ES5 output. This Regex\n * intends to capture the common delegation pattern emitted by TypeScript and Babel. Also\n * it intends to capture the pattern where existing constructors have been downleveled from\n * ES2015 to ES5 using TypeScript w/ downlevel iteration. e.g.\n *\n * ```\n *   function MyClass() {\n *     var _this = _super.apply(this, arguments) || this;\n * ```\n *\n * downleveled to ES5 with `downlevelIteration` for TypeScript < 4.2:\n * ```\n *   function MyClass() {\n *     var _this = _super.apply(this, __spread(arguments)) || this;\n * ```\n *\n * or downleveled to ES5 with `downlevelIteration` for TypeScript >= 4.2:\n * ```\n *   function MyClass() {\n *     var _this = _super.apply(this, __spreadArray([], __read(arguments), false)) || this;\n * ```\n *\n * More details can be found in: https://github.com/angular/angular/issues/38453.\n */\nconst ES5_DELEGATE_CTOR = /^function\\s+\\S+\\(\\)\\s*{[\\s\\S]+\\.apply\\(this,\\s*(arguments|(?:[^()]+\\(\\[\\],)?[^()]+\\(arguments\\).*)\\)/;\n/** Regular expression that detects ES2015 classes which extend from other classes. */\nconst ES2015_INHERITED_CLASS = /^class\\s+[A-Za-z\\d$_]*\\s*extends\\s+[^{]+{/;\n/**\n * Regular expression that detects ES2015 classes which extend from other classes and\n * have an explicit constructor defined.\n */\nconst ES2015_INHERITED_CLASS_WITH_CTOR = /^class\\s+[A-Za-z\\d$_]*\\s*extends\\s+[^{]+{[\\s\\S]*constructor\\s*\\(/;\n/**\n * Regular expression that detects ES2015 classes which extend from other classes\n * and inherit a constructor.\n */\nconst ES2015_INHERITED_CLASS_WITH_DELEGATE_CTOR = /^class\\s+[A-Za-z\\d$_]*\\s*extends\\s+[^{]+{[\\s\\S]*constructor\\s*\\(\\)\\s*{[^}]*super\\(\\.\\.\\.arguments\\)/;\n/**\n * Determine whether a stringified type is a class which delegates its constructor\n * to its parent.\n *\n * This is not trivial since compiled code can actually contain a constructor function\n * even if the original source code did not. For instance, when the child class contains\n * an initialized instance property.\n */\nfunction isDelegateCtor(typeStr) {\n  return ES5_DELEGATE_CTOR.test(typeStr) || ES2015_INHERITED_CLASS_WITH_DELEGATE_CTOR.test(typeStr) || ES2015_INHERITED_CLASS.test(typeStr) && !ES2015_INHERITED_CLASS_WITH_CTOR.test(typeStr);\n}\nclass ReflectionCapabilities {\n  constructor(reflect) {\n    this._reflect = reflect || _global['Reflect'];\n  }\n  factory(t) {\n    return (...args) => new t(...args);\n  }\n  /** @internal */\n  _zipTypesAndAnnotations(paramTypes, paramAnnotations) {\n    let result;\n    if (typeof paramTypes === 'undefined') {\n      result = newArray(paramAnnotations.length);\n    } else {\n      result = newArray(paramTypes.length);\n    }\n    for (let i = 0; i < result.length; i++) {\n      // TS outputs Object for parameters without types, while Traceur omits\n      // the annotations. For now we preserve the Traceur behavior to aid\n      // migration, but this can be revisited.\n      if (typeof paramTypes === 'undefined') {\n        result[i] = [];\n      } else if (paramTypes[i] && paramTypes[i] != Object) {\n        result[i] = [paramTypes[i]];\n      } else {\n        result[i] = [];\n      }\n      if (paramAnnotations && paramAnnotations[i] != null) {\n        result[i] = result[i].concat(paramAnnotations[i]);\n      }\n    }\n    return result;\n  }\n  _ownParameters(type, parentCtor) {\n    const typeStr = type.toString();\n    // If we have no decorators, we only have function.length as metadata.\n    // In that case, to detect whether a child class declared an own constructor or not,\n    // we need to look inside of that constructor to check whether it is\n    // just calling the parent.\n    // This also helps to work around for https://github.com/Microsoft/TypeScript/issues/12439\n    // that sets 'design:paramtypes' to []\n    // if a class inherits from another class but has no ctor declared itself.\n    if (isDelegateCtor(typeStr)) {\n      return null;\n    }\n    // Prefer the direct API.\n    if (type.parameters && type.parameters !== parentCtor.parameters) {\n      return type.parameters;\n    }\n    // API of tsickle for lowering decorators to properties on the class.\n    const tsickleCtorParams = type.ctorParameters;\n    if (tsickleCtorParams && tsickleCtorParams !== parentCtor.ctorParameters) {\n      // Newer tsickle uses a function closure\n      // Retain the non-function case for compatibility with older tsickle\n      const ctorParameters = typeof tsickleCtorParams === 'function' ? tsickleCtorParams() : tsickleCtorParams;\n      const paramTypes = ctorParameters.map(ctorParam => ctorParam && ctorParam.type);\n      const paramAnnotations = ctorParameters.map(ctorParam => ctorParam && convertTsickleDecoratorIntoMetadata(ctorParam.decorators));\n      return this._zipTypesAndAnnotations(paramTypes, paramAnnotations);\n    }\n    // API for metadata created by invoking the decorators.\n    const paramAnnotations = type.hasOwnProperty(PARAMETERS) && type[PARAMETERS];\n    const paramTypes = this._reflect && this._reflect.getOwnMetadata && this._reflect.getOwnMetadata('design:paramtypes', type);\n    if (paramTypes || paramAnnotations) {\n      return this._zipTypesAndAnnotations(paramTypes, paramAnnotations);\n    }\n    // If a class has no decorators, at least create metadata\n    // based on function.length.\n    // Note: We know that this is a real constructor as we checked\n    // the content of the constructor above.\n    return newArray(type.length);\n  }\n  parameters(type) {\n    // Note: only report metadata if we have at least one class decorator\n    // to stay in sync with the static reflector.\n    if (!isType(type)) {\n      return [];\n    }\n    const parentCtor = getParentCtor(type);\n    let parameters = this._ownParameters(type, parentCtor);\n    if (!parameters && parentCtor !== Object) {\n      parameters = this.parameters(parentCtor);\n    }\n    return parameters || [];\n  }\n  _ownAnnotations(typeOrFunc, parentCtor) {\n    // Prefer the direct API.\n    if (typeOrFunc.annotations && typeOrFunc.annotations !== parentCtor.annotations) {\n      let annotations = typeOrFunc.annotations;\n      if (typeof annotations === 'function' && annotations.annotations) {\n        annotations = annotations.annotations;\n      }\n      return annotations;\n    }\n    // API of tsickle for lowering decorators to properties on the class.\n    if (typeOrFunc.decorators && typeOrFunc.decorators !== parentCtor.decorators) {\n      return convertTsickleDecoratorIntoMetadata(typeOrFunc.decorators);\n    }\n    // API for metadata created by invoking the decorators.\n    if (typeOrFunc.hasOwnProperty(ANNOTATIONS)) {\n      return typeOrFunc[ANNOTATIONS];\n    }\n    return null;\n  }\n  annotations(typeOrFunc) {\n    if (!isType(typeOrFunc)) {\n      return [];\n    }\n    const parentCtor = getParentCtor(typeOrFunc);\n    const ownAnnotations = this._ownAnnotations(typeOrFunc, parentCtor) || [];\n    const parentAnnotations = parentCtor !== Object ? this.annotations(parentCtor) : [];\n    return parentAnnotations.concat(ownAnnotations);\n  }\n  _ownPropMetadata(typeOrFunc, parentCtor) {\n    // Prefer the direct API.\n    if (typeOrFunc.propMetadata && typeOrFunc.propMetadata !== parentCtor.propMetadata) {\n      let propMetadata = typeOrFunc.propMetadata;\n      if (typeof propMetadata === 'function' && propMetadata.propMetadata) {\n        propMetadata = propMetadata.propMetadata;\n      }\n      return propMetadata;\n    }\n    // API of tsickle for lowering decorators to properties on the class.\n    if (typeOrFunc.propDecorators && typeOrFunc.propDecorators !== parentCtor.propDecorators) {\n      const propDecorators = typeOrFunc.propDecorators;\n      const propMetadata = {};\n      Object.keys(propDecorators).forEach(prop => {\n        propMetadata[prop] = convertTsickleDecoratorIntoMetadata(propDecorators[prop]);\n      });\n      return propMetadata;\n    }\n    // API for metadata created by invoking the decorators.\n    if (typeOrFunc.hasOwnProperty(PROP_METADATA)) {\n      return typeOrFunc[PROP_METADATA];\n    }\n    return null;\n  }\n  propMetadata(typeOrFunc) {\n    if (!isType(typeOrFunc)) {\n      return {};\n    }\n    const parentCtor = getParentCtor(typeOrFunc);\n    const propMetadata = {};\n    if (parentCtor !== Object) {\n      const parentPropMetadata = this.propMetadata(parentCtor);\n      Object.keys(parentPropMetadata).forEach(propName => {\n        propMetadata[propName] = parentPropMetadata[propName];\n      });\n    }\n    const ownPropMetadata = this._ownPropMetadata(typeOrFunc, parentCtor);\n    if (ownPropMetadata) {\n      Object.keys(ownPropMetadata).forEach(propName => {\n        const decorators = [];\n        if (propMetadata.hasOwnProperty(propName)) {\n          decorators.push(...propMetadata[propName]);\n        }\n        decorators.push(...ownPropMetadata[propName]);\n        propMetadata[propName] = decorators;\n      });\n    }\n    return propMetadata;\n  }\n  ownPropMetadata(typeOrFunc) {\n    if (!isType(typeOrFunc)) {\n      return {};\n    }\n    return this._ownPropMetadata(typeOrFunc, getParentCtor(typeOrFunc)) || {};\n  }\n  hasLifecycleHook(type, lcProperty) {\n    return type instanceof Type && lcProperty in type.prototype;\n  }\n}\nfunction convertTsickleDecoratorIntoMetadata(decoratorInvocations) {\n  if (!decoratorInvocations) {\n    return [];\n  }\n  return decoratorInvocations.map(decoratorInvocation => {\n    const decoratorType = decoratorInvocation.type;\n    const annotationCls = decoratorType.annotationCls;\n    const annotationArgs = decoratorInvocation.args ? decoratorInvocation.args : [];\n    return new annotationCls(...annotationArgs);\n  });\n}\nfunction getParentCtor(ctor) {\n  const parentProto = ctor.prototype ? Object.getPrototypeOf(ctor.prototype) : null;\n  const parentCtor = parentProto ? parentProto.constructor : null;\n  // Note: We always use `Object` as the null value\n  // to simplify checking later on.\n  return parentCtor || Object;\n}\n\n// Below are constants for LView indices to help us look up LView members\n// without having to remember the specific indices.\n// Uglify will inline these when minifying so there shouldn't be a cost.\nconst HOST = 0;\nconst TVIEW = 1;\n// Shared with LContainer\nconst FLAGS = 2;\nconst PARENT = 3;\nconst NEXT = 4;\nconst T_HOST = 5;\n// End shared with LContainer\nconst HYDRATION = 6;\nconst CLEANUP = 7;\nconst CONTEXT = 8;\nconst INJECTOR = 9;\nconst ENVIRONMENT = 10;\nconst RENDERER = 11;\nconst CHILD_HEAD = 12;\nconst CHILD_TAIL = 13;\n// FIXME(misko): Investigate if the three declarations aren't all same thing.\nconst DECLARATION_VIEW = 14;\nconst DECLARATION_COMPONENT_VIEW = 15;\nconst DECLARATION_LCONTAINER = 16;\nconst PREORDER_HOOK_FLAGS = 17;\nconst QUERIES = 18;\nconst ID = 19;\nconst EMBEDDED_VIEW_INJECTOR = 20;\nconst ON_DESTROY_HOOKS = 21;\nconst EFFECTS_TO_SCHEDULE = 22;\nconst REACTIVE_TEMPLATE_CONSUMER = 23;\n/**\n * Size of LView's header. Necessary to adjust for it when setting slots.\n *\n * IMPORTANT: `HEADER_OFFSET` should only be referred to the in the `ɵɵ*` instructions to translate\n * instruction index into `LView` index. All other indexes should be in the `LView` index space and\n * there should be no need to refer to `HEADER_OFFSET` anywhere else.\n */\nconst HEADER_OFFSET = 25;\n\n/**\n * Special location which allows easy identification of type. If we have an array which was\n * retrieved from the `LView` and that array has `true` at `TYPE` location, we know it is\n * `LContainer`.\n */\nconst TYPE = 1;\n/**\n * Below are constants for LContainer indices to help us look up LContainer members\n * without having to remember the specific indices.\n * Uglify will inline these when minifying so there shouldn't be a cost.\n */\n// FLAGS, PARENT, NEXT, and T_HOST are indices 2, 3, 4, and 5\n// As we already have these constants in LView, we don't need to re-create them.\nconst DEHYDRATED_VIEWS = 6;\nconst NATIVE = 7;\nconst VIEW_REFS = 8;\nconst MOVED_VIEWS = 9;\n/**\n * Size of LContainer's header. Represents the index after which all views in the\n * container will be inserted. We need to keep a record of current views so we know\n * which views are already in the DOM (and don't need to be re-added) and so we can\n * remove views from the DOM when they are no longer required.\n */\nconst CONTAINER_HEADER_OFFSET = 10;\n/** Flags associated with an LContainer (saved in LContainer[FLAGS]) */\nvar LContainerFlags = /*#__PURE__*/function (LContainerFlags) {\n  LContainerFlags[LContainerFlags[\"None\"] = 0] = \"None\";\n  /**\n   * Flag to signify that this `LContainer` may have transplanted views which need to be change\n   * detected. (see: `LView[DECLARATION_COMPONENT_VIEW])`.\n   *\n   * This flag, once set, is never unset for the `LContainer`.\n   */\n  LContainerFlags[LContainerFlags[\"HasTransplantedViews\"] = 2] = \"HasTransplantedViews\";\n  return LContainerFlags;\n}(LContainerFlags || {});\n/**\n * True if `value` is `LView`.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction isLView(value) {\n  return Array.isArray(value) && typeof value[TYPE] === 'object';\n}\n/**\n * True if `value` is `LContainer`.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction isLContainer(value) {\n  return Array.isArray(value) && value[TYPE] === true;\n}\nfunction isContentQueryHost(tNode) {\n  return (tNode.flags & 4 /* TNodeFlags.hasContentQuery */) !== 0;\n}\nfunction isComponentHost(tNode) {\n  return tNode.componentOffset > -1;\n}\nfunction isDirectiveHost(tNode) {\n  return (tNode.flags & 1 /* TNodeFlags.isDirectiveHost */) === 1 /* TNodeFlags.isDirectiveHost */;\n}\nfunction isComponentDef(def) {\n  return !!def.template;\n}\nfunction isRootView(target) {\n  return (target[FLAGS] & 512 /* LViewFlags.IsRoot */) !== 0;\n}\nfunction isProjectionTNode(tNode) {\n  return (tNode.type & 16 /* TNodeType.Projection */) === 16 /* TNodeType.Projection */;\n}\nfunction hasI18n(lView) {\n  return (lView[FLAGS] & 32 /* LViewFlags.HasI18n */) === 32 /* LViewFlags.HasI18n */;\n}\nfunction isDestroyed(lView) {\n  return (lView[FLAGS] & 256 /* LViewFlags.Destroyed */) === 256 /* LViewFlags.Destroyed */;\n}\n\n// [Assert functions do not constraint type when they are guarded by a truthy\n// expression.](https://github.com/microsoft/TypeScript/issues/37295)\nfunction assertTNodeForLView(tNode, lView) {\n  assertTNodeForTView(tNode, lView[TVIEW]);\n}\nfunction assertTNodeForTView(tNode, tView) {\n  assertTNode(tNode);\n  const tData = tView.data;\n  for (let i = HEADER_OFFSET; i < tData.length; i++) {\n    if (tData[i] === tNode) {\n      return;\n    }\n  }\n  throwError('This TNode does not belong to this TView.');\n}\nfunction assertTNode(tNode) {\n  assertDefined(tNode, 'TNode must be defined');\n  if (!(tNode && typeof tNode === 'object' && tNode.hasOwnProperty('directiveStylingLast'))) {\n    throwError('Not of type TNode, got: ' + tNode);\n  }\n}\nfunction assertTIcu(tIcu) {\n  assertDefined(tIcu, 'Expected TIcu to be defined');\n  if (!(typeof tIcu.currentCaseLViewIndex === 'number')) {\n    throwError('Object is not of TIcu type.');\n  }\n}\nfunction assertComponentType(actual, msg = 'Type passed in is not ComponentType, it does not have \\'ɵcmp\\' property.') {\n  if (!getComponentDef(actual)) {\n    throwError(msg);\n  }\n}\nfunction assertNgModuleType(actual, msg = 'Type passed in is not NgModuleType, it does not have \\'ɵmod\\' property.') {\n  if (!getNgModuleDef(actual)) {\n    throwError(msg);\n  }\n}\nfunction assertCurrentTNodeIsParent(isParent) {\n  assertEqual(isParent, true, 'currentTNode should be a parent');\n}\nfunction assertHasParent(tNode) {\n  assertDefined(tNode, 'currentTNode should exist!');\n  assertDefined(tNode.parent, 'currentTNode should have a parent');\n}\nfunction assertLContainer(value) {\n  assertDefined(value, 'LContainer must be defined');\n  assertEqual(isLContainer(value), true, 'Expecting LContainer');\n}\nfunction assertLViewOrUndefined(value) {\n  value && assertEqual(isLView(value), true, 'Expecting LView or undefined or null');\n}\nfunction assertLView(value) {\n  assertDefined(value, 'LView must be defined');\n  assertEqual(isLView(value), true, 'Expecting LView');\n}\nfunction assertFirstCreatePass(tView, errMessage) {\n  assertEqual(tView.firstCreatePass, true, errMessage || 'Should only be called in first create pass.');\n}\nfunction assertFirstUpdatePass(tView, errMessage) {\n  assertEqual(tView.firstUpdatePass, true, errMessage || 'Should only be called in first update pass.');\n}\n/**\n * This is a basic sanity check that an object is probably a directive def. DirectiveDef is\n * an interface, so we can't do a direct instanceof check.\n */\nfunction assertDirectiveDef(obj) {\n  if (obj.type === undefined || obj.selectors == undefined || obj.inputs === undefined) {\n    throwError(`Expected a DirectiveDef/ComponentDef and this object does not seem to have the expected shape.`);\n  }\n}\nfunction assertIndexInDeclRange(tView, index) {\n  assertBetween(HEADER_OFFSET, tView.bindingStartIndex, index);\n}\nfunction assertIndexInExpandoRange(lView, index) {\n  const tView = lView[1];\n  assertBetween(tView.expandoStartIndex, lView.length, index);\n}\nfunction assertBetween(lower, upper, index) {\n  if (!(lower <= index && index < upper)) {\n    throwError(`Index out of range (expecting ${lower} <= ${index} < ${upper})`);\n  }\n}\nfunction assertProjectionSlots(lView, errMessage) {\n  assertDefined(lView[DECLARATION_COMPONENT_VIEW], 'Component views should exist.');\n  assertDefined(lView[DECLARATION_COMPONENT_VIEW][T_HOST].projection, errMessage || 'Components with projection nodes (<ng-content>) must have projection slots defined.');\n}\nfunction assertParentView(lView, errMessage) {\n  assertDefined(lView, errMessage || 'Component views should always have a parent view (component\\'s host view)');\n}\nfunction assertNoDuplicateDirectives(directives) {\n  // The array needs at least two elements in order to have duplicates.\n  if (directives.length < 2) {\n    return;\n  }\n  const seenDirectives = new Set();\n  for (const current of directives) {\n    if (seenDirectives.has(current)) {\n      throw new RuntimeError(309 /* RuntimeErrorCode.DUPLICATE_DIRECTIVE */, `Directive ${current.type.name} matches multiple times on the same element. ` + `Directives can only match an element once.`);\n    }\n    seenDirectives.add(current);\n  }\n}\n/**\n * This is a basic sanity check that the `injectorIndex` seems to point to what looks like a\n * NodeInjector data structure.\n *\n * @param lView `LView` which should be checked.\n * @param injectorIndex index into the `LView` where the `NodeInjector` is expected.\n */\nfunction assertNodeInjector(lView, injectorIndex) {\n  assertIndexInExpandoRange(lView, injectorIndex);\n  assertIndexInExpandoRange(lView, injectorIndex + 8 /* NodeInjectorOffset.PARENT */);\n  assertNumber(lView[injectorIndex + 0], 'injectorIndex should point to a bloom filter');\n  assertNumber(lView[injectorIndex + 1], 'injectorIndex should point to a bloom filter');\n  assertNumber(lView[injectorIndex + 2], 'injectorIndex should point to a bloom filter');\n  assertNumber(lView[injectorIndex + 3], 'injectorIndex should point to a bloom filter');\n  assertNumber(lView[injectorIndex + 4], 'injectorIndex should point to a bloom filter');\n  assertNumber(lView[injectorIndex + 5], 'injectorIndex should point to a bloom filter');\n  assertNumber(lView[injectorIndex + 6], 'injectorIndex should point to a bloom filter');\n  assertNumber(lView[injectorIndex + 7], 'injectorIndex should point to a bloom filter');\n  assertNumber(lView[injectorIndex + 8 /* NodeInjectorOffset.PARENT */], 'injectorIndex should point to parent injector');\n}\n\n/**\n * Represents a basic change from a previous to a new value for a single\n * property on a directive instance. Passed as a value in a\n * {@link SimpleChanges} object to the `ngOnChanges` hook.\n *\n * @see {@link OnChanges}\n *\n * @publicApi\n */\nclass SimpleChange {\n  constructor(previousValue, currentValue, firstChange) {\n    this.previousValue = previousValue;\n    this.currentValue = currentValue;\n    this.firstChange = firstChange;\n  }\n  /**\n   * Check whether the new value is the first value assigned.\n   */\n  isFirstChange() {\n    return this.firstChange;\n  }\n}\nfunction applyValueToInputField(instance, inputSignalNode, privateName, value) {\n  if (inputSignalNode !== null) {\n    inputSignalNode.applyValueToInputSignal(inputSignalNode, value);\n  } else {\n    instance[privateName] = value;\n  }\n}\n\n/**\n * The NgOnChangesFeature decorates a component with support for the ngOnChanges\n * lifecycle hook, so it should be included in any component that implements\n * that hook.\n *\n * If the component or directive uses inheritance, the NgOnChangesFeature MUST\n * be included as a feature AFTER {@link InheritDefinitionFeature}, otherwise\n * inherited properties will not be propagated to the ngOnChanges lifecycle\n * hook.\n *\n * Example usage:\n *\n * ```\n * static ɵcmp = defineComponent({\n *   ...\n *   inputs: {name: 'publicName'},\n *   features: [NgOnChangesFeature]\n * });\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵNgOnChangesFeature() {\n  return NgOnChangesFeatureImpl;\n}\nfunction NgOnChangesFeatureImpl(definition) {\n  if (definition.type.prototype.ngOnChanges) {\n    definition.setInput = ngOnChangesSetInput;\n  }\n  return rememberChangeHistoryAndInvokeOnChangesHook;\n}\n// This option ensures that the ngOnChanges lifecycle hook will be inherited\n// from superclasses (in InheritDefinitionFeature).\n/** @nocollapse */\n// tslint:disable-next-line:no-toplevel-property-access\nɵɵNgOnChangesFeature.ngInherit = true;\n/**\n * This is a synthetic lifecycle hook which gets inserted into `TView.preOrderHooks` to simulate\n * `ngOnChanges`.\n *\n * The hook reads the `NgSimpleChangesStore` data from the component instance and if changes are\n * found it invokes `ngOnChanges` on the component instance.\n *\n * @param this Component instance. Because this function gets inserted into `TView.preOrderHooks`,\n *     it is guaranteed to be called with component instance.\n */\nfunction rememberChangeHistoryAndInvokeOnChangesHook() {\n  const simpleChangesStore = getSimpleChangesStore(this);\n  const current = simpleChangesStore?.current;\n  if (current) {\n    const previous = simpleChangesStore.previous;\n    if (previous === EMPTY_OBJ) {\n      simpleChangesStore.previous = current;\n    } else {\n      // New changes are copied to the previous store, so that we don't lose history for inputs\n      // which were not changed this time\n      for (let key in current) {\n        previous[key] = current[key];\n      }\n    }\n    simpleChangesStore.current = null;\n    this.ngOnChanges(current);\n  }\n}\nfunction ngOnChangesSetInput(instance, inputSignalNode, value, publicName, privateName) {\n  const declaredName = this.declaredInputs[publicName];\n  ngDevMode && assertString(declaredName, 'Name of input in ngOnChanges has to be a string');\n  const simpleChangesStore = getSimpleChangesStore(instance) || setSimpleChangesStore(instance, {\n    previous: EMPTY_OBJ,\n    current: null\n  });\n  const current = simpleChangesStore.current || (simpleChangesStore.current = {});\n  const previous = simpleChangesStore.previous;\n  const previousChange = previous[declaredName];\n  current[declaredName] = new SimpleChange(previousChange && previousChange.currentValue, value, previous === EMPTY_OBJ);\n  applyValueToInputField(instance, inputSignalNode, privateName, value);\n}\nconst SIMPLE_CHANGES_STORE = '__ngSimpleChanges__';\nfunction getSimpleChangesStore(instance) {\n  return instance[SIMPLE_CHANGES_STORE] || null;\n}\nfunction setSimpleChangesStore(instance, store) {\n  return instance[SIMPLE_CHANGES_STORE] = store;\n}\nlet profilerCallback = null;\n/**\n * Sets the callback function which will be invoked before and after performing certain actions at\n * runtime (for example, before and after running change detection).\n *\n * Warning: this function is *INTERNAL* and should not be relied upon in application's code.\n * The contract of the function might be changed in any release and/or the function can be removed\n * completely.\n *\n * @param profiler function provided by the caller or null value to disable profiling.\n */\nconst setProfiler = profiler => {\n  profilerCallback = profiler;\n};\n/**\n * Profiler function which wraps user code executed by the runtime.\n *\n * @param event ProfilerEvent corresponding to the execution context\n * @param instance component instance\n * @param hookOrListener lifecycle hook function or output listener. The value depends on the\n *  execution context\n * @returns\n */\nconst profiler = function (event, instance, hookOrListener) {\n  if (profilerCallback != null /* both `null` and `undefined` */) {\n    profilerCallback(event, instance, hookOrListener);\n  }\n};\nconst SVG_NAMESPACE = 'svg';\nconst MATH_ML_NAMESPACE = 'math';\n\n// TODO(atscott): flip default internally ASAP and externally for v18 (#52928)\nlet _ensureDirtyViewsAreAlwaysReachable = false;\nfunction getEnsureDirtyViewsAreAlwaysReachable() {\n  return _ensureDirtyViewsAreAlwaysReachable;\n}\nfunction setEnsureDirtyViewsAreAlwaysReachable(v) {\n  _ensureDirtyViewsAreAlwaysReachable = v;\n}\n\n/**\n * For efficiency reasons we often put several different data types (`RNode`, `LView`, `LContainer`)\n * in same location in `LView`. This is because we don't want to pre-allocate space for it\n * because the storage is sparse. This file contains utilities for dealing with such data types.\n *\n * How do we know what is stored at a given location in `LView`.\n * - `Array.isArray(value) === false` => `RNode` (The normal storage value)\n * - `Array.isArray(value) === true` => then the `value[0]` represents the wrapped value.\n *   - `typeof value[TYPE] === 'object'` => `LView`\n *      - This happens when we have a component at a given location\n *   - `typeof value[TYPE] === true` => `LContainer`\n *      - This happens when we have `LContainer` binding at a given location.\n *\n *\n * NOTE: it is assumed that `Array.isArray` and `typeof` operations are very efficient.\n */\n/**\n * Returns `RNode`.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction unwrapRNode(value) {\n  while (Array.isArray(value)) {\n    value = value[HOST];\n  }\n  return value;\n}\n/**\n * Returns `LView` or `null` if not found.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction unwrapLView(value) {\n  while (Array.isArray(value)) {\n    // This check is same as `isLView()` but we don't call at as we don't want to call\n    // `Array.isArray()` twice and give JITer more work for inlining.\n    if (typeof value[TYPE] === 'object') return value;\n    value = value[HOST];\n  }\n  return null;\n}\n/**\n * Retrieves an element value from the provided `viewData`, by unwrapping\n * from any containers, component views, or style contexts.\n */\nfunction getNativeByIndex(index, lView) {\n  ngDevMode && assertIndexInRange(lView, index);\n  ngDevMode && assertGreaterThanOrEqual(index, HEADER_OFFSET, 'Expected to be past HEADER_OFFSET');\n  return unwrapRNode(lView[index]);\n}\n/**\n * Retrieve an `RNode` for a given `TNode` and `LView`.\n *\n * This function guarantees in dev mode to retrieve a non-null `RNode`.\n *\n * @param tNode\n * @param lView\n */\nfunction getNativeByTNode(tNode, lView) {\n  ngDevMode && assertTNodeForLView(tNode, lView);\n  ngDevMode && assertIndexInRange(lView, tNode.index);\n  const node = unwrapRNode(lView[tNode.index]);\n  return node;\n}\n/**\n * Retrieve an `RNode` or `null` for a given `TNode` and `LView`.\n *\n * Some `TNode`s don't have associated `RNode`s. For example `Projection`\n *\n * @param tNode\n * @param lView\n */\nfunction getNativeByTNodeOrNull(tNode, lView) {\n  const index = tNode === null ? -1 : tNode.index;\n  if (index !== -1) {\n    ngDevMode && assertTNodeForLView(tNode, lView);\n    const node = unwrapRNode(lView[index]);\n    return node;\n  }\n  return null;\n}\n// fixme(misko): The return Type should be `TNode|null`\nfunction getTNode(tView, index) {\n  ngDevMode && assertGreaterThan(index, -1, 'wrong index for TNode');\n  ngDevMode && assertLessThan(index, tView.data.length, 'wrong index for TNode');\n  const tNode = tView.data[index];\n  ngDevMode && tNode !== null && assertTNode(tNode);\n  return tNode;\n}\n/** Retrieves a value from any `LView` or `TData`. */\nfunction load(view, index) {\n  ngDevMode && assertIndexInRange(view, index);\n  return view[index];\n}\nfunction getComponentLViewByIndex(nodeIndex, hostView) {\n  // Could be an LView or an LContainer. If LContainer, unwrap to find LView.\n  ngDevMode && assertIndexInRange(hostView, nodeIndex);\n  const slotValue = hostView[nodeIndex];\n  const lView = isLView(slotValue) ? slotValue : slotValue[HOST];\n  return lView;\n}\n/** Checks whether a given view is in creation mode */\nfunction isCreationMode(view) {\n  return (view[FLAGS] & 4 /* LViewFlags.CreationMode */) === 4 /* LViewFlags.CreationMode */;\n}\n/**\n * Returns a boolean for whether the view is attached to the change detection tree.\n *\n * Note: This determines whether a view should be checked, not whether it's inserted\n * into a container. For that, you'll want `viewAttachedToContainer` below.\n */\nfunction viewAttachedToChangeDetector(view) {\n  return (view[FLAGS] & 128 /* LViewFlags.Attached */) === 128 /* LViewFlags.Attached */;\n}\n/** Returns a boolean for whether the view is attached to a container. */\nfunction viewAttachedToContainer(view) {\n  return isLContainer(view[PARENT]);\n}\nfunction getConstant(consts, index) {\n  if (index === null || index === undefined) return null;\n  ngDevMode && assertIndexInRange(consts, index);\n  return consts[index];\n}\n/**\n * Resets the pre-order hook flags of the view.\n * @param lView the LView on which the flags are reset\n */\nfunction resetPreOrderHookFlags(lView) {\n  lView[PREORDER_HOOK_FLAGS] = 0;\n}\n/**\n * Adds the `RefreshView` flag from the lView and updates HAS_CHILD_VIEWS_TO_REFRESH flag of\n * parents.\n */\nfunction markViewForRefresh(lView) {\n  if (lView[FLAGS] & 1024 /* LViewFlags.RefreshView */) {\n    return;\n  }\n  lView[FLAGS] |= 1024 /* LViewFlags.RefreshView */;\n  if (viewAttachedToChangeDetector(lView)) {\n    markAncestorsForTraversal(lView);\n  }\n}\n/**\n * Walks up the LView hierarchy.\n * @param nestingLevel Number of times to walk up in hierarchy.\n * @param currentView View from which to start the lookup.\n */\nfunction walkUpViews(nestingLevel, currentView) {\n  while (nestingLevel > 0) {\n    ngDevMode && assertDefined(currentView[DECLARATION_VIEW], 'Declaration view should be defined if nesting level is greater than 0.');\n    currentView = currentView[DECLARATION_VIEW];\n    nestingLevel--;\n  }\n  return currentView;\n}\nfunction requiresRefreshOrTraversal(lView) {\n  return !!(lView[FLAGS] & (1024 /* LViewFlags.RefreshView */ | 8192 /* LViewFlags.HasChildViewsToRefresh */) || lView[REACTIVE_TEMPLATE_CONSUMER]?.dirty);\n}\n/**\n * Updates the `HasChildViewsToRefresh` flag on the parents of the `LView` as well as the\n * parents above.\n */\nfunction updateAncestorTraversalFlagsOnAttach(lView) {\n  lView[ENVIRONMENT].changeDetectionScheduler?.notify(1 /* NotificationType.AfterRenderHooks */);\n  // TODO(atscott): Simplify if...else cases once getEnsureDirtyViewsAreAlwaysReachable is always\n  // `true`. When we attach a view that's marked `Dirty`, we should ensure that it is reached during\n  // the next CD traversal so we add the `RefreshView` flag and mark ancestors accordingly.\n  if (requiresRefreshOrTraversal(lView)) {\n    markAncestorsForTraversal(lView);\n  } else if (lView[FLAGS] & 64 /* LViewFlags.Dirty */) {\n    if (getEnsureDirtyViewsAreAlwaysReachable()) {\n      lView[FLAGS] |= 1024 /* LViewFlags.RefreshView */;\n      markAncestorsForTraversal(lView);\n    } else {\n      lView[ENVIRONMENT].changeDetectionScheduler?.notify();\n    }\n  }\n}\n/**\n * Ensures views above the given `lView` are traversed during change detection even when they are\n * not dirty.\n *\n * This is done by setting the `HAS_CHILD_VIEWS_TO_REFRESH` flag up to the root, stopping when the\n * flag is already `true` or the `lView` is detached.\n */\nfunction markAncestorsForTraversal(lView) {\n  lView[ENVIRONMENT].changeDetectionScheduler?.notify();\n  let parent = getLViewParent(lView);\n  while (parent !== null) {\n    // We stop adding markers to the ancestors once we reach one that already has the marker. This\n    // is to avoid needlessly traversing all the way to the root when the marker already exists.\n    if (parent[FLAGS] & 8192 /* LViewFlags.HasChildViewsToRefresh */) {\n      break;\n    }\n    parent[FLAGS] |= 8192 /* LViewFlags.HasChildViewsToRefresh */;\n    if (!viewAttachedToChangeDetector(parent)) {\n      break;\n    }\n    parent = getLViewParent(parent);\n  }\n}\n/**\n * Stores a LView-specific destroy callback.\n */\nfunction storeLViewOnDestroy(lView, onDestroyCallback) {\n  if ((lView[FLAGS] & 256 /* LViewFlags.Destroyed */) === 256 /* LViewFlags.Destroyed */) {\n    throw new RuntimeError(911 /* RuntimeErrorCode.VIEW_ALREADY_DESTROYED */, ngDevMode && 'View has already been destroyed.');\n  }\n  if (lView[ON_DESTROY_HOOKS] === null) {\n    lView[ON_DESTROY_HOOKS] = [];\n  }\n  lView[ON_DESTROY_HOOKS].push(onDestroyCallback);\n}\n/**\n * Removes previously registered LView-specific destroy callback.\n */\nfunction removeLViewOnDestroy(lView, onDestroyCallback) {\n  if (lView[ON_DESTROY_HOOKS] === null) return;\n  const destroyCBIdx = lView[ON_DESTROY_HOOKS].indexOf(onDestroyCallback);\n  if (destroyCBIdx !== -1) {\n    lView[ON_DESTROY_HOOKS].splice(destroyCBIdx, 1);\n  }\n}\n/**\n * Gets the parent LView of the passed LView, if the PARENT is an LContainer, will get the parent of\n * that LContainer, which is an LView\n * @param lView the lView whose parent to get\n */\nfunction getLViewParent(lView) {\n  ngDevMode && assertLView(lView);\n  const parent = lView[PARENT];\n  return isLContainer(parent) ? parent[PARENT] : parent;\n}\nconst instructionState = {\n  lFrame: /*#__PURE__*/createLFrame(null),\n  bindingsEnabled: true,\n  skipHydrationRootTNode: null\n};\n/**\n * In this mode, any changes in bindings will throw an ExpressionChangedAfterChecked error.\n *\n * Necessary to support ChangeDetectorRef.checkNoChanges().\n *\n * The `checkNoChanges` function is invoked only in ngDevMode=true and verifies that no unintended\n * changes exist in the change detector or its children.\n */\nlet _isInCheckNoChangesMode = false;\n/**\n * Returns true if the instruction state stack is empty.\n *\n * Intended to be called from tests only (tree shaken otherwise).\n */\nfunction specOnlyIsInstructionStateEmpty() {\n  return instructionState.lFrame.parent === null;\n}\nfunction getElementDepthCount() {\n  return instructionState.lFrame.elementDepthCount;\n}\nfunction increaseElementDepthCount() {\n  instructionState.lFrame.elementDepthCount++;\n}\nfunction decreaseElementDepthCount() {\n  instructionState.lFrame.elementDepthCount--;\n}\nfunction getBindingsEnabled() {\n  return instructionState.bindingsEnabled;\n}\n/**\n * Returns true if currently inside a skip hydration block.\n * @returns boolean\n */\nfunction isInSkipHydrationBlock$1() {\n  return instructionState.skipHydrationRootTNode !== null;\n}\n/**\n * Returns true if this is the root TNode of the skip hydration block.\n * @param tNode the current TNode\n * @returns boolean\n */\nfunction isSkipHydrationRootTNode(tNode) {\n  return instructionState.skipHydrationRootTNode === tNode;\n}\n/**\n * Enables directive matching on elements.\n *\n *  * Example:\n * ```\n * <my-comp my-directive>\n *   Should match component / directive.\n * </my-comp>\n * <div ngNonBindable>\n *   <!-- ɵɵdisableBindings() -->\n *   <my-comp my-directive>\n *     Should not match component / directive because we are in ngNonBindable.\n *   </my-comp>\n *   <!-- ɵɵenableBindings() -->\n * </div>\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵenableBindings() {\n  instructionState.bindingsEnabled = true;\n}\n/**\n * Sets a flag to specify that the TNode is in a skip hydration block.\n * @param tNode the current TNode\n */\nfunction enterSkipHydrationBlock(tNode) {\n  instructionState.skipHydrationRootTNode = tNode;\n}\n/**\n * Disables directive matching on element.\n *\n *  * Example:\n * ```\n * <my-comp my-directive>\n *   Should match component / directive.\n * </my-comp>\n * <div ngNonBindable>\n *   <!-- ɵɵdisableBindings() -->\n *   <my-comp my-directive>\n *     Should not match component / directive because we are in ngNonBindable.\n *   </my-comp>\n *   <!-- ɵɵenableBindings() -->\n * </div>\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵdisableBindings() {\n  instructionState.bindingsEnabled = false;\n}\n/**\n * Clears the root skip hydration node when leaving a skip hydration block.\n */\nfunction leaveSkipHydrationBlock() {\n  instructionState.skipHydrationRootTNode = null;\n}\n/**\n * Return the current `LView`.\n */\nfunction getLView() {\n  return instructionState.lFrame.lView;\n}\n/**\n * Return the current `TView`.\n */\nfunction getTView() {\n  return instructionState.lFrame.tView;\n}\n/**\n * Restores `contextViewData` to the given OpaqueViewState instance.\n *\n * Used in conjunction with the getCurrentView() instruction to save a snapshot\n * of the current view and restore it when listeners are invoked. This allows\n * walking the declaration view tree in listeners to get vars from parent views.\n *\n * @param viewToRestore The OpaqueViewState instance to restore.\n * @returns Context of the restored OpaqueViewState instance.\n *\n * @codeGenApi\n */\nfunction ɵɵrestoreView(viewToRestore) {\n  instructionState.lFrame.contextLView = viewToRestore;\n  return viewToRestore[CONTEXT];\n}\n/**\n * Clears the view set in `ɵɵrestoreView` from memory. Returns the passed in\n * value so that it can be used as a return value of an instruction.\n *\n * @codeGenApi\n */\nfunction ɵɵresetView(value) {\n  instructionState.lFrame.contextLView = null;\n  return value;\n}\nfunction getCurrentTNode() {\n  let currentTNode = getCurrentTNodePlaceholderOk();\n  while (currentTNode !== null && currentTNode.type === 64 /* TNodeType.Placeholder */) {\n    currentTNode = currentTNode.parent;\n  }\n  return currentTNode;\n}\nfunction getCurrentTNodePlaceholderOk() {\n  return instructionState.lFrame.currentTNode;\n}\nfunction getCurrentParentTNode() {\n  const lFrame = instructionState.lFrame;\n  const currentTNode = lFrame.currentTNode;\n  return lFrame.isParent ? currentTNode : currentTNode.parent;\n}\nfunction setCurrentTNode(tNode, isParent) {\n  ngDevMode && tNode && assertTNodeForTView(tNode, instructionState.lFrame.tView);\n  const lFrame = instructionState.lFrame;\n  lFrame.currentTNode = tNode;\n  lFrame.isParent = isParent;\n}\nfunction isCurrentTNodeParent() {\n  return instructionState.lFrame.isParent;\n}\nfunction setCurrentTNodeAsNotParent() {\n  instructionState.lFrame.isParent = false;\n}\nfunction getContextLView() {\n  const contextLView = instructionState.lFrame.contextLView;\n  ngDevMode && assertDefined(contextLView, 'contextLView must be defined.');\n  return contextLView;\n}\nfunction isInCheckNoChangesMode() {\n  !ngDevMode && throwError('Must never be called in production mode');\n  return _isInCheckNoChangesMode;\n}\nfunction setIsInCheckNoChangesMode(mode) {\n  !ngDevMode && throwError('Must never be called in production mode');\n  _isInCheckNoChangesMode = mode;\n}\n// top level variables should not be exported for performance reasons (PERF_NOTES.md)\nfunction getBindingRoot() {\n  const lFrame = instructionState.lFrame;\n  let index = lFrame.bindingRootIndex;\n  if (index === -1) {\n    index = lFrame.bindingRootIndex = lFrame.tView.bindingStartIndex;\n  }\n  return index;\n}\nfunction getBindingIndex() {\n  return instructionState.lFrame.bindingIndex;\n}\nfunction setBindingIndex(value) {\n  return instructionState.lFrame.bindingIndex = value;\n}\nfunction nextBindingIndex() {\n  return instructionState.lFrame.bindingIndex++;\n}\nfunction incrementBindingIndex(count) {\n  const lFrame = instructionState.lFrame;\n  const index = lFrame.bindingIndex;\n  lFrame.bindingIndex = lFrame.bindingIndex + count;\n  return index;\n}\nfunction isInI18nBlock() {\n  return instructionState.lFrame.inI18n;\n}\nfunction setInI18nBlock(isInI18nBlock) {\n  instructionState.lFrame.inI18n = isInI18nBlock;\n}\n/**\n * Set a new binding root index so that host template functions can execute.\n *\n * Bindings inside the host template are 0 index. But because we don't know ahead of time\n * how many host bindings we have we can't pre-compute them. For this reason they are all\n * 0 index and we just shift the root so that they match next available location in the LView.\n *\n * @param bindingRootIndex Root index for `hostBindings`\n * @param currentDirectiveIndex `TData[currentDirectiveIndex]` will point to the current directive\n *        whose `hostBindings` are being processed.\n */\nfunction setBindingRootForHostBindings(bindingRootIndex, currentDirectiveIndex) {\n  const lFrame = instructionState.lFrame;\n  lFrame.bindingIndex = lFrame.bindingRootIndex = bindingRootIndex;\n  setCurrentDirectiveIndex(currentDirectiveIndex);\n}\n/**\n * When host binding is executing this points to the directive index.\n * `TView.data[getCurrentDirectiveIndex()]` is `DirectiveDef`\n * `LView[getCurrentDirectiveIndex()]` is directive instance.\n */\nfunction getCurrentDirectiveIndex() {\n  return instructionState.lFrame.currentDirectiveIndex;\n}\n/**\n * Sets an index of a directive whose `hostBindings` are being processed.\n *\n * @param currentDirectiveIndex `TData` index where current directive instance can be found.\n */\nfunction setCurrentDirectiveIndex(currentDirectiveIndex) {\n  instructionState.lFrame.currentDirectiveIndex = currentDirectiveIndex;\n}\n/**\n * Retrieve the current `DirectiveDef` which is active when `hostBindings` instruction is being\n * executed.\n *\n * @param tData Current `TData` where the `DirectiveDef` will be looked up at.\n */\nfunction getCurrentDirectiveDef(tData) {\n  const currentDirectiveIndex = instructionState.lFrame.currentDirectiveIndex;\n  return currentDirectiveIndex === -1 ? null : tData[currentDirectiveIndex];\n}\nfunction getCurrentQueryIndex() {\n  return instructionState.lFrame.currentQueryIndex;\n}\nfunction setCurrentQueryIndex(value) {\n  instructionState.lFrame.currentQueryIndex = value;\n}\n/**\n * Returns a `TNode` of the location where the current `LView` is declared at.\n *\n * @param lView an `LView` that we want to find parent `TNode` for.\n */\nfunction getDeclarationTNode(lView) {\n  const tView = lView[TVIEW];\n  // Return the declaration parent for embedded views\n  if (tView.type === 2 /* TViewType.Embedded */) {\n    ngDevMode && assertDefined(tView.declTNode, 'Embedded TNodes should have declaration parents.');\n    return tView.declTNode;\n  }\n  // Components don't have `TView.declTNode` because each instance of component could be\n  // inserted in different location, hence `TView.declTNode` is meaningless.\n  // Falling back to `T_HOST` in case we cross component boundary.\n  if (tView.type === 1 /* TViewType.Component */) {\n    return lView[T_HOST];\n  }\n  // Remaining TNode type is `TViewType.Root` which doesn't have a parent TNode.\n  return null;\n}\n/**\n * This is a light weight version of the `enterView` which is needed by the DI system.\n *\n * @param lView `LView` location of the DI context.\n * @param tNode `TNode` for DI context\n * @param flags DI context flags. if `SkipSelf` flag is set than we walk up the declaration\n *     tree from `tNode`  until we find parent declared `TElementNode`.\n * @returns `true` if we have successfully entered DI associated with `tNode` (or with declared\n *     `TNode` if `flags` has  `SkipSelf`). Failing to enter DI implies that no associated\n *     `NodeInjector` can be found and we should instead use `ModuleInjector`.\n *     - If `true` than this call must be fallowed by `leaveDI`\n *     - If `false` than this call failed and we should NOT call `leaveDI`\n */\nfunction enterDI(lView, tNode, flags) {\n  ngDevMode && assertLViewOrUndefined(lView);\n  if (flags & InjectFlags.SkipSelf) {\n    ngDevMode && assertTNodeForTView(tNode, lView[TVIEW]);\n    let parentTNode = tNode;\n    let parentLView = lView;\n    while (true) {\n      ngDevMode && assertDefined(parentTNode, 'Parent TNode should be defined');\n      parentTNode = parentTNode.parent;\n      if (parentTNode === null && !(flags & InjectFlags.Host)) {\n        parentTNode = getDeclarationTNode(parentLView);\n        if (parentTNode === null) break;\n        // In this case, a parent exists and is definitely an element. So it will definitely\n        // have an existing lView as the declaration view, which is why we can assume it's defined.\n        ngDevMode && assertDefined(parentLView, 'Parent LView should be defined');\n        parentLView = parentLView[DECLARATION_VIEW];\n        // In Ivy there are Comment nodes that correspond to ngIf and NgFor embedded directives\n        // We want to skip those and look only at Elements and ElementContainers to ensure\n        // we're looking at true parent nodes, and not content or other types.\n        if (parentTNode.type & (2 /* TNodeType.Element */ | 8 /* TNodeType.ElementContainer */)) {\n          break;\n        }\n      } else {\n        break;\n      }\n    }\n    if (parentTNode === null) {\n      // If we failed to find a parent TNode this means that we should use module injector.\n      return false;\n    } else {\n      tNode = parentTNode;\n      lView = parentLView;\n    }\n  }\n  ngDevMode && assertTNodeForLView(tNode, lView);\n  const lFrame = instructionState.lFrame = allocLFrame();\n  lFrame.currentTNode = tNode;\n  lFrame.lView = lView;\n  return true;\n}\n/**\n * Swap the current lView with a new lView.\n *\n * For performance reasons we store the lView in the top level of the module.\n * This way we minimize the number of properties to read. Whenever a new view\n * is entered we have to store the lView for later, and when the view is\n * exited the state has to be restored\n *\n * @param newView New lView to become active\n * @returns the previously active lView;\n */\nfunction enterView(newView) {\n  ngDevMode && assertNotEqual(newView[0], newView[1], '????');\n  ngDevMode && assertLViewOrUndefined(newView);\n  const newLFrame = allocLFrame();\n  if (ngDevMode) {\n    assertEqual(newLFrame.isParent, true, 'Expected clean LFrame');\n    assertEqual(newLFrame.lView, null, 'Expected clean LFrame');\n    assertEqual(newLFrame.tView, null, 'Expected clean LFrame');\n    assertEqual(newLFrame.selectedIndex, -1, 'Expected clean LFrame');\n    assertEqual(newLFrame.elementDepthCount, 0, 'Expected clean LFrame');\n    assertEqual(newLFrame.currentDirectiveIndex, -1, 'Expected clean LFrame');\n    assertEqual(newLFrame.currentNamespace, null, 'Expected clean LFrame');\n    assertEqual(newLFrame.bindingRootIndex, -1, 'Expected clean LFrame');\n    assertEqual(newLFrame.currentQueryIndex, 0, 'Expected clean LFrame');\n  }\n  const tView = newView[TVIEW];\n  instructionState.lFrame = newLFrame;\n  ngDevMode && tView.firstChild && assertTNodeForTView(tView.firstChild, tView);\n  newLFrame.currentTNode = tView.firstChild;\n  newLFrame.lView = newView;\n  newLFrame.tView = tView;\n  newLFrame.contextLView = newView;\n  newLFrame.bindingIndex = tView.bindingStartIndex;\n  newLFrame.inI18n = false;\n}\n/**\n * Allocates next free LFrame. This function tries to reuse the `LFrame`s to lower memory pressure.\n */\nfunction allocLFrame() {\n  const currentLFrame = instructionState.lFrame;\n  const childLFrame = currentLFrame === null ? null : currentLFrame.child;\n  const newLFrame = childLFrame === null ? createLFrame(currentLFrame) : childLFrame;\n  return newLFrame;\n}\nfunction createLFrame(parent) {\n  const lFrame = {\n    currentTNode: null,\n    isParent: true,\n    lView: null,\n    tView: null,\n    selectedIndex: -1,\n    contextLView: null,\n    elementDepthCount: 0,\n    currentNamespace: null,\n    currentDirectiveIndex: -1,\n    bindingRootIndex: -1,\n    bindingIndex: -1,\n    currentQueryIndex: 0,\n    parent: parent,\n    child: null,\n    inI18n: false\n  };\n  parent !== null && (parent.child = lFrame); // link the new LFrame for reuse.\n  return lFrame;\n}\n/**\n * A lightweight version of leave which is used with DI.\n *\n * This function only resets `currentTNode` and `LView` as those are the only properties\n * used with DI (`enterDI()`).\n *\n * NOTE: This function is reexported as `leaveDI`. However `leaveDI` has return type of `void` where\n * as `leaveViewLight` has `LFrame`. This is so that `leaveViewLight` can be used in `leaveView`.\n */\nfunction leaveViewLight() {\n  const oldLFrame = instructionState.lFrame;\n  instructionState.lFrame = oldLFrame.parent;\n  oldLFrame.currentTNode = null;\n  oldLFrame.lView = null;\n  return oldLFrame;\n}\n/**\n * This is a lightweight version of the `leaveView` which is needed by the DI system.\n *\n * NOTE: this function is an alias so that we can change the type of the function to have `void`\n * return type.\n */\nconst leaveDI = leaveViewLight;\n/**\n * Leave the current `LView`\n *\n * This pops the `LFrame` with the associated `LView` from the stack.\n *\n * IMPORTANT: We must zero out the `LFrame` values here otherwise they will be retained. This is\n * because for performance reasons we don't release `LFrame` but rather keep it for next use.\n */\nfunction leaveView() {\n  const oldLFrame = leaveViewLight();\n  oldLFrame.isParent = true;\n  oldLFrame.tView = null;\n  oldLFrame.selectedIndex = -1;\n  oldLFrame.contextLView = null;\n  oldLFrame.elementDepthCount = 0;\n  oldLFrame.currentDirectiveIndex = -1;\n  oldLFrame.currentNamespace = null;\n  oldLFrame.bindingRootIndex = -1;\n  oldLFrame.bindingIndex = -1;\n  oldLFrame.currentQueryIndex = 0;\n}\nfunction nextContextImpl(level) {\n  const contextLView = instructionState.lFrame.contextLView = walkUpViews(level, instructionState.lFrame.contextLView);\n  return contextLView[CONTEXT];\n}\n/**\n * Gets the currently selected element index.\n *\n * Used with {@link property} instruction (and more in the future) to identify the index in the\n * current `LView` to act on.\n */\nfunction getSelectedIndex() {\n  return instructionState.lFrame.selectedIndex;\n}\n/**\n * Sets the most recent index passed to {@link select}\n *\n * Used with {@link property} instruction (and more in the future) to identify the index in the\n * current `LView` to act on.\n *\n * (Note that if an \"exit function\" was set earlier (via `setElementExitFn()`) then that will be\n * run if and when the provided `index` value is different from the current selected index value.)\n */\nfunction setSelectedIndex(index) {\n  ngDevMode && index !== -1 && assertGreaterThanOrEqual(index, HEADER_OFFSET, 'Index must be past HEADER_OFFSET (or -1).');\n  ngDevMode && assertLessThan(index, instructionState.lFrame.lView.length, 'Can\\'t set index passed end of LView');\n  instructionState.lFrame.selectedIndex = index;\n}\n/**\n * Gets the `tNode` that represents currently selected element.\n */\nfunction getSelectedTNode() {\n  const lFrame = instructionState.lFrame;\n  return getTNode(lFrame.tView, lFrame.selectedIndex);\n}\n/**\n * Sets the namespace used to create elements to `'http://www.w3.org/2000/svg'` in global state.\n *\n * @codeGenApi\n */\nfunction ɵɵnamespaceSVG() {\n  instructionState.lFrame.currentNamespace = SVG_NAMESPACE;\n}\n/**\n * Sets the namespace used to create elements to `'http://www.w3.org/1998/MathML/'` in global state.\n *\n * @codeGenApi\n */\nfunction ɵɵnamespaceMathML() {\n  instructionState.lFrame.currentNamespace = MATH_ML_NAMESPACE;\n}\n/**\n * Sets the namespace used to create elements to `null`, which forces element creation to use\n * `createElement` rather than `createElementNS`.\n *\n * @codeGenApi\n */\nfunction ɵɵnamespaceHTML() {\n  namespaceHTMLInternal();\n}\n/**\n * Sets the namespace used to create elements to `null`, which forces element creation to use\n * `createElement` rather than `createElementNS`.\n */\nfunction namespaceHTMLInternal() {\n  instructionState.lFrame.currentNamespace = null;\n}\nfunction getNamespace$1() {\n  return instructionState.lFrame.currentNamespace;\n}\nlet _wasLastNodeCreated = true;\n/**\n * Retrieves a global flag that indicates whether the most recent DOM node\n * was created or hydrated.\n */\nfunction wasLastNodeCreated() {\n  return _wasLastNodeCreated;\n}\n/**\n * Sets a global flag to indicate whether the most recent DOM node\n * was created or hydrated.\n */\nfunction lastNodeWasCreated(flag) {\n  _wasLastNodeCreated = flag;\n}\n\n/**\n * Adds all directive lifecycle hooks from the given `DirectiveDef` to the given `TView`.\n *\n * Must be run *only* on the first template pass.\n *\n * Sets up the pre-order hooks on the provided `tView`,\n * see {@link HookData} for details about the data structure.\n *\n * @param directiveIndex The index of the directive in LView\n * @param directiveDef The definition containing the hooks to setup in tView\n * @param tView The current TView\n */\nfunction registerPreOrderHooks(directiveIndex, directiveDef, tView) {\n  ngDevMode && assertFirstCreatePass(tView);\n  const {\n    ngOnChanges,\n    ngOnInit,\n    ngDoCheck\n  } = directiveDef.type.prototype;\n  if (ngOnChanges) {\n    const wrappedOnChanges = NgOnChangesFeatureImpl(directiveDef);\n    (tView.preOrderHooks ??= []).push(directiveIndex, wrappedOnChanges);\n    (tView.preOrderCheckHooks ??= []).push(directiveIndex, wrappedOnChanges);\n  }\n  if (ngOnInit) {\n    (tView.preOrderHooks ??= []).push(0 - directiveIndex, ngOnInit);\n  }\n  if (ngDoCheck) {\n    (tView.preOrderHooks ??= []).push(directiveIndex, ngDoCheck);\n    (tView.preOrderCheckHooks ??= []).push(directiveIndex, ngDoCheck);\n  }\n}\n/**\n *\n * Loops through the directives on the provided `tNode` and queues hooks to be\n * run that are not initialization hooks.\n *\n * Should be executed during `elementEnd()` and similar to\n * preserve hook execution order. Content, view, and destroy hooks for projected\n * components and directives must be called *before* their hosts.\n *\n * Sets up the content, view, and destroy hooks on the provided `tView`,\n * see {@link HookData} for details about the data structure.\n *\n * NOTE: This does not set up `onChanges`, `onInit` or `doCheck`, those are set up\n * separately at `elementStart`.\n *\n * @param tView The current TView\n * @param tNode The TNode whose directives are to be searched for hooks to queue\n */\nfunction registerPostOrderHooks(tView, tNode) {\n  ngDevMode && assertFirstCreatePass(tView);\n  // It's necessary to loop through the directives at elementEnd() (rather than processing in\n  // directiveCreate) so we can preserve the current hook order. Content, view, and destroy\n  // hooks for projected components and directives must be called *before* their hosts.\n  for (let i = tNode.directiveStart, end = tNode.directiveEnd; i < end; i++) {\n    const directiveDef = tView.data[i];\n    ngDevMode && assertDefined(directiveDef, 'Expecting DirectiveDef');\n    const lifecycleHooks = directiveDef.type.prototype;\n    const {\n      ngAfterContentInit,\n      ngAfterContentChecked,\n      ngAfterViewInit,\n      ngAfterViewChecked,\n      ngOnDestroy\n    } = lifecycleHooks;\n    if (ngAfterContentInit) {\n      (tView.contentHooks ??= []).push(-i, ngAfterContentInit);\n    }\n    if (ngAfterContentChecked) {\n      (tView.contentHooks ??= []).push(i, ngAfterContentChecked);\n      (tView.contentCheckHooks ??= []).push(i, ngAfterContentChecked);\n    }\n    if (ngAfterViewInit) {\n      (tView.viewHooks ??= []).push(-i, ngAfterViewInit);\n    }\n    if (ngAfterViewChecked) {\n      (tView.viewHooks ??= []).push(i, ngAfterViewChecked);\n      (tView.viewCheckHooks ??= []).push(i, ngAfterViewChecked);\n    }\n    if (ngOnDestroy != null) {\n      (tView.destroyHooks ??= []).push(i, ngOnDestroy);\n    }\n  }\n}\n/**\n * Executing hooks requires complex logic as we need to deal with 2 constraints.\n *\n * 1. Init hooks (ngOnInit, ngAfterContentInit, ngAfterViewInit) must all be executed once and only\n * once, across many change detection cycles. This must be true even if some hooks throw, or if\n * some recursively trigger a change detection cycle.\n * To solve that, it is required to track the state of the execution of these init hooks.\n * This is done by storing and maintaining flags in the view: the {@link InitPhaseState},\n * and the index within that phase. They can be seen as a cursor in the following structure:\n * [[onInit1, onInit2], [afterContentInit1], [afterViewInit1, afterViewInit2, afterViewInit3]]\n * They are stored as flags in LView[FLAGS].\n *\n * 2. Pre-order hooks can be executed in batches, because of the select instruction.\n * To be able to pause and resume their execution, we also need some state about the hook's array\n * that is being processed:\n * - the index of the next hook to be executed\n * - the number of init hooks already found in the processed part of the  array\n * They are stored as flags in LView[PREORDER_HOOK_FLAGS].\n */\n/**\n * Executes pre-order check hooks ( OnChanges, DoChanges) given a view where all the init hooks were\n * executed once. This is a light version of executeInitAndCheckPreOrderHooks where we can skip read\n * / write of the init-hooks related flags.\n * @param lView The LView where hooks are defined\n * @param hooks Hooks to be run\n * @param nodeIndex 3 cases depending on the value:\n * - undefined: all hooks from the array should be executed (post-order case)\n * - null: execute hooks only from the saved index until the end of the array (pre-order case, when\n * flushing the remaining hooks)\n * - number: execute hooks only from the saved index until that node index exclusive (pre-order\n * case, when executing select(number))\n */\nfunction executeCheckHooks(lView, hooks, nodeIndex) {\n  callHooks(lView, hooks, 3 /* InitPhaseState.InitPhaseCompleted */, nodeIndex);\n}\n/**\n * Executes post-order init and check hooks (one of AfterContentInit, AfterContentChecked,\n * AfterViewInit, AfterViewChecked) given a view where there are pending init hooks to be executed.\n * @param lView The LView where hooks are defined\n * @param hooks Hooks to be run\n * @param initPhase A phase for which hooks should be run\n * @param nodeIndex 3 cases depending on the value:\n * - undefined: all hooks from the array should be executed (post-order case)\n * - null: execute hooks only from the saved index until the end of the array (pre-order case, when\n * flushing the remaining hooks)\n * - number: execute hooks only from the saved index until that node index exclusive (pre-order\n * case, when executing select(number))\n */\nfunction executeInitAndCheckHooks(lView, hooks, initPhase, nodeIndex) {\n  ngDevMode && assertNotEqual(initPhase, 3 /* InitPhaseState.InitPhaseCompleted */, 'Init pre-order hooks should not be called more than once');\n  if ((lView[FLAGS] & 3 /* LViewFlags.InitPhaseStateMask */) === initPhase) {\n    callHooks(lView, hooks, initPhase, nodeIndex);\n  }\n}\nfunction incrementInitPhaseFlags(lView, initPhase) {\n  ngDevMode && assertNotEqual(initPhase, 3 /* InitPhaseState.InitPhaseCompleted */, 'Init hooks phase should not be incremented after all init hooks have been run.');\n  let flags = lView[FLAGS];\n  if ((flags & 3 /* LViewFlags.InitPhaseStateMask */) === initPhase) {\n    flags &= 16383 /* LViewFlags.IndexWithinInitPhaseReset */;\n    flags += 1 /* LViewFlags.InitPhaseStateIncrementer */;\n    lView[FLAGS] = flags;\n  }\n}\n/**\n * Calls lifecycle hooks with their contexts, skipping init hooks if it's not\n * the first LView pass\n *\n * @param currentView The current view\n * @param arr The array in which the hooks are found\n * @param initPhaseState the current state of the init phase\n * @param currentNodeIndex 3 cases depending on the value:\n * - undefined: all hooks from the array should be executed (post-order case)\n * - null: execute hooks only from the saved index until the end of the array (pre-order case, when\n * flushing the remaining hooks)\n * - number: execute hooks only from the saved index until that node index exclusive (pre-order\n * case, when executing select(number))\n */\nfunction callHooks(currentView, arr, initPhase, currentNodeIndex) {\n  ngDevMode && assertEqual(isInCheckNoChangesMode(), false, 'Hooks should never be run when in check no changes mode.');\n  const startIndex = currentNodeIndex !== undefined ? currentView[PREORDER_HOOK_FLAGS] & 65535 /* PreOrderHookFlags.IndexOfTheNextPreOrderHookMaskMask */ : 0;\n  const nodeIndexLimit = currentNodeIndex != null ? currentNodeIndex : -1;\n  const max = arr.length - 1; // Stop the loop at length - 1, because we look for the hook at i + 1\n  let lastNodeIndexFound = 0;\n  for (let i = startIndex; i < max; i++) {\n    const hook = arr[i + 1];\n    if (typeof hook === 'number') {\n      lastNodeIndexFound = arr[i];\n      if (currentNodeIndex != null && lastNodeIndexFound >= currentNodeIndex) {\n        break;\n      }\n    } else {\n      const isInitHook = arr[i] < 0;\n      if (isInitHook) {\n        currentView[PREORDER_HOOK_FLAGS] += 65536 /* PreOrderHookFlags.NumberOfInitHooksCalledIncrementer */;\n      }\n      if (lastNodeIndexFound < nodeIndexLimit || nodeIndexLimit == -1) {\n        callHook(currentView, initPhase, arr, i);\n        currentView[PREORDER_HOOK_FLAGS] = (currentView[PREORDER_HOOK_FLAGS] & 4294901760 /* PreOrderHookFlags.NumberOfInitHooksCalledMask */) + i + 2;\n      }\n      i++;\n    }\n  }\n}\n/**\n * Executes a single lifecycle hook, making sure that:\n * - it is called in the non-reactive context;\n * - profiling data are registered.\n */\nfunction callHookInternal(directive, hook) {\n  profiler(4 /* ProfilerEvent.LifecycleHookStart */, directive, hook);\n  const prevConsumer = setActiveConsumer$1(null);\n  try {\n    hook.call(directive);\n  } finally {\n    setActiveConsumer$1(prevConsumer);\n    profiler(5 /* ProfilerEvent.LifecycleHookEnd */, directive, hook);\n  }\n}\n/**\n * Execute one hook against the current `LView`.\n *\n * @param currentView The current view\n * @param initPhaseState the current state of the init phase\n * @param arr The array in which the hooks are found\n * @param i The current index within the hook data array\n */\nfunction callHook(currentView, initPhase, arr, i) {\n  const isInitHook = arr[i] < 0;\n  const hook = arr[i + 1];\n  const directiveIndex = isInitHook ? -arr[i] : arr[i];\n  const directive = currentView[directiveIndex];\n  if (isInitHook) {\n    const indexWithintInitPhase = currentView[FLAGS] >> 14 /* LViewFlags.IndexWithinInitPhaseShift */;\n    // The init phase state must be always checked here as it may have been recursively updated.\n    if (indexWithintInitPhase < currentView[PREORDER_HOOK_FLAGS] >> 16 /* PreOrderHookFlags.NumberOfInitHooksCalledShift */ && (currentView[FLAGS] & 3 /* LViewFlags.InitPhaseStateMask */) === initPhase) {\n      currentView[FLAGS] += 16384 /* LViewFlags.IndexWithinInitPhaseIncrementer */;\n      callHookInternal(directive, hook);\n    }\n  } else {\n    callHookInternal(directive, hook);\n  }\n}\nconst NO_PARENT_INJECTOR = -1;\n/**\n * Each injector is saved in 9 contiguous slots in `LView` and 9 contiguous slots in\n * `TView.data`. This allows us to store information about the current node's tokens (which\n * can be shared in `TView`) as well as the tokens of its ancestor nodes (which cannot be\n * shared, so they live in `LView`).\n *\n * Each of these slots (aside from the last slot) contains a bloom filter. This bloom filter\n * determines whether a directive is available on the associated node or not. This prevents us\n * from searching the directives array at this level unless it's probable the directive is in it.\n *\n * See: https://en.wikipedia.org/wiki/Bloom_filter for more about bloom filters.\n *\n * Because all injectors have been flattened into `LView` and `TViewData`, they cannot typed\n * using interfaces as they were previously. The start index of each `LInjector` and `TInjector`\n * will differ based on where it is flattened into the main array, so it's not possible to know\n * the indices ahead of time and save their types here. The interfaces are still included here\n * for documentation purposes.\n *\n * export interface LInjector extends Array<any> {\n *\n *    // Cumulative bloom for directive IDs 0-31  (IDs are % BLOOM_SIZE)\n *    [0]: number;\n *\n *    // Cumulative bloom for directive IDs 32-63\n *    [1]: number;\n *\n *    // Cumulative bloom for directive IDs 64-95\n *    [2]: number;\n *\n *    // Cumulative bloom for directive IDs 96-127\n *    [3]: number;\n *\n *    // Cumulative bloom for directive IDs 128-159\n *    [4]: number;\n *\n *    // Cumulative bloom for directive IDs 160 - 191\n *    [5]: number;\n *\n *    // Cumulative bloom for directive IDs 192 - 223\n *    [6]: number;\n *\n *    // Cumulative bloom for directive IDs 224 - 255\n *    [7]: number;\n *\n *    // We need to store a reference to the injector's parent so DI can keep looking up\n *    // the injector tree until it finds the dependency it's looking for.\n *    [PARENT_INJECTOR]: number;\n * }\n *\n * export interface TInjector extends Array<any> {\n *\n *    // Shared node bloom for directive IDs 0-31  (IDs are % BLOOM_SIZE)\n *    [0]: number;\n *\n *    // Shared node bloom for directive IDs 32-63\n *    [1]: number;\n *\n *    // Shared node bloom for directive IDs 64-95\n *    [2]: number;\n *\n *    // Shared node bloom for directive IDs 96-127\n *    [3]: number;\n *\n *    // Shared node bloom for directive IDs 128-159\n *    [4]: number;\n *\n *    // Shared node bloom for directive IDs 160 - 191\n *    [5]: number;\n *\n *    // Shared node bloom for directive IDs 192 - 223\n *    [6]: number;\n *\n *    // Shared node bloom for directive IDs 224 - 255\n *    [7]: number;\n *\n *    // Necessary to find directive indices for a particular node.\n *    [TNODE]: TElementNode|TElementContainerNode|TContainerNode;\n *  }\n */\n/**\n * Factory for creating instances of injectors in the NodeInjector.\n *\n * This factory is complicated by the fact that it can resolve `multi` factories as well.\n *\n * NOTE: Some of the fields are optional which means that this class has two hidden classes.\n * - One without `multi` support (most common)\n * - One with `multi` values, (rare).\n *\n * Since VMs can cache up to 4 inline hidden classes this is OK.\n *\n * - Single factory: Only `resolving` and `factory` is defined.\n * - `providers` factory: `componentProviders` is a number and `index = -1`.\n * - `viewProviders` factory: `componentProviders` is a number and `index` points to `providers`.\n */\nclass NodeInjectorFactory {\n  constructor(\n  /**\n   * Factory to invoke in order to create a new instance.\n   */\n  factory,\n  /**\n   * Set to `true` if the token is declared in `viewProviders` (or if it is component).\n   */\n  isViewProvider, injectImplementation) {\n    this.factory = factory;\n    /**\n     * Marker set to true during factory invocation to see if we get into recursive loop.\n     * Recursive loop causes an error to be displayed.\n     */\n    this.resolving = false;\n    ngDevMode && assertDefined(factory, 'Factory not specified');\n    ngDevMode && assertEqual(typeof factory, 'function', 'Expected factory function.');\n    this.canSeeViewProviders = isViewProvider;\n    this.injectImpl = injectImplementation;\n  }\n}\nfunction isFactory(obj) {\n  return obj instanceof NodeInjectorFactory;\n}\n\n/**\n * Converts `TNodeType` into human readable text.\n * Make sure this matches with `TNodeType`\n */\nfunction toTNodeTypeAsString(tNodeType) {\n  let text = '';\n  tNodeType & 1 /* TNodeType.Text */ && (text += '|Text');\n  tNodeType & 2 /* TNodeType.Element */ && (text += '|Element');\n  tNodeType & 4 /* TNodeType.Container */ && (text += '|Container');\n  tNodeType & 8 /* TNodeType.ElementContainer */ && (text += '|ElementContainer');\n  tNodeType & 16 /* TNodeType.Projection */ && (text += '|Projection');\n  tNodeType & 32 /* TNodeType.Icu */ && (text += '|IcuContainer');\n  tNodeType & 64 /* TNodeType.Placeholder */ && (text += '|Placeholder');\n  return text.length > 0 ? text.substring(1) : text;\n}\n/**\n * Helper function to detect if a given value matches a `TNode` shape.\n *\n * The logic uses the `insertBeforeIndex` and its possible values as\n * a way to differentiate a TNode shape from other types of objects\n * within the `TView.data`. This is not a perfect check, but it can\n * be a reasonable differentiator, since we control the shapes of objects\n * within `TView.data`.\n */\nfunction isTNodeShape(value) {\n  return value != null && typeof value === 'object' && (value.insertBeforeIndex === null || typeof value.insertBeforeIndex === 'number' || Array.isArray(value.insertBeforeIndex));\n}\n/**\n * Returns `true` if the `TNode` has a directive which has `@Input()` for `class` binding.\n *\n * ```\n * <div my-dir [class]=\"exp\"></div>\n * ```\n * and\n * ```\n * @Directive({\n * })\n * class MyDirective {\n *   @Input()\n *   class: string;\n * }\n * ```\n *\n * In the above case it is necessary to write the reconciled styling information into the\n * directive's input.\n *\n * @param tNode\n */\nfunction hasClassInput(tNode) {\n  return (tNode.flags & 8 /* TNodeFlags.hasClassInput */) !== 0;\n}\n/**\n * Returns `true` if the `TNode` has a directive which has `@Input()` for `style` binding.\n *\n * ```\n * <div my-dir [style]=\"exp\"></div>\n * ```\n * and\n * ```\n * @Directive({\n * })\n * class MyDirective {\n *   @Input()\n *   class: string;\n * }\n * ```\n *\n * In the above case it is necessary to write the reconciled styling information into the\n * directive's input.\n *\n * @param tNode\n */\nfunction hasStyleInput(tNode) {\n  return (tNode.flags & 16 /* TNodeFlags.hasStyleInput */) !== 0;\n}\nfunction assertTNodeType(tNode, expectedTypes, message) {\n  assertDefined(tNode, 'should be called with a TNode');\n  if ((tNode.type & expectedTypes) === 0) {\n    throwError(message || `Expected [${toTNodeTypeAsString(expectedTypes)}] but got ${toTNodeTypeAsString(tNode.type)}.`);\n  }\n}\nfunction assertPureTNodeType(type) {\n  if (!(type === 2 /* TNodeType.Element */ ||\n  //\n  type === 1 /* TNodeType.Text */ ||\n  //\n  type === 4 /* TNodeType.Container */ ||\n  //\n  type === 8 /* TNodeType.ElementContainer */ ||\n  //\n  type === 32 /* TNodeType.Icu */ ||\n  //\n  type === 16 /* TNodeType.Projection */ ||\n  //\n  type === 64 /* TNodeType.Placeholder */)) {\n    throwError(`Expected TNodeType to have only a single type selected, but got ${toTNodeTypeAsString(type)}.`);\n  }\n}\n\n/// Parent Injector Utils ///////////////////////////////////////////////////////////////\nfunction hasParentInjector(parentLocation) {\n  return parentLocation !== NO_PARENT_INJECTOR;\n}\nfunction getParentInjectorIndex(parentLocation) {\n  if (ngDevMode) {\n    assertNumber(parentLocation, 'Number expected');\n    assertNotEqual(parentLocation, -1, 'Not a valid state.');\n    const parentInjectorIndex = parentLocation & 32767 /* RelativeInjectorLocationFlags.InjectorIndexMask */;\n    assertGreaterThan(parentInjectorIndex, HEADER_OFFSET, 'Parent injector must be pointing past HEADER_OFFSET.');\n  }\n  return parentLocation & 32767 /* RelativeInjectorLocationFlags.InjectorIndexMask */;\n}\nfunction getParentInjectorViewOffset(parentLocation) {\n  return parentLocation >> 16 /* RelativeInjectorLocationFlags.ViewOffsetShift */;\n}\n/**\n * Unwraps a parent injector location number to find the view offset from the current injector,\n * then walks up the declaration view tree until the view is found that contains the parent\n * injector.\n *\n * @param location The location of the parent injector, which contains the view offset\n * @param startView The LView instance from which to start walking up the view tree\n * @returns The LView instance that contains the parent injector\n */\nfunction getParentInjectorView(location, startView) {\n  let viewOffset = getParentInjectorViewOffset(location);\n  let parentView = startView;\n  // For most cases, the parent injector can be found on the host node (e.g. for component\n  // or container), but we must keep the loop here to support the rarer case of deeply nested\n  // <ng-template> tags or inline views, where the parent injector might live many views\n  // above the child injector.\n  while (viewOffset > 0) {\n    parentView = parentView[DECLARATION_VIEW];\n    viewOffset--;\n  }\n  return parentView;\n}\n\n/**\n * Defines if the call to `inject` should include `viewProviders` in its resolution.\n *\n * This is set to true when we try to instantiate a component. This value is reset in\n * `getNodeInjectable` to a value which matches the declaration location of the token about to be\n * instantiated. This is done so that if we are injecting a token which was declared outside of\n * `viewProviders` we don't accidentally pull `viewProviders` in.\n *\n * Example:\n *\n * ```\n * @Injectable()\n * class MyService {\n *   constructor(public value: String) {}\n * }\n *\n * @Component({\n *   providers: [\n *     MyService,\n *     {provide: String, value: 'providers' }\n *   ]\n *   viewProviders: [\n *     {provide: String, value: 'viewProviders'}\n *   ]\n * })\n * class MyComponent {\n *   constructor(myService: MyService, value: String) {\n *     // We expect that Component can see into `viewProviders`.\n *     expect(value).toEqual('viewProviders');\n *     // `MyService` was not declared in `viewProviders` hence it can't see it.\n *     expect(myService.value).toEqual('providers');\n *   }\n * }\n *\n * ```\n */\nlet includeViewProviders = true;\nfunction setIncludeViewProviders(v) {\n  const oldValue = includeViewProviders;\n  includeViewProviders = v;\n  return oldValue;\n}\n/**\n * The number of slots in each bloom filter (used by DI). The larger this number, the fewer\n * directives that will share slots, and thus, the fewer false positives when checking for\n * the existence of a directive.\n */\nconst BLOOM_SIZE = 256;\nconst BLOOM_MASK = BLOOM_SIZE - 1;\n/**\n * The number of bits that is represented by a single bloom bucket. JS bit operations are 32 bits,\n * so each bucket represents 32 distinct tokens which accounts for log2(32) = 5 bits of a bloom hash\n * number.\n */\nconst BLOOM_BUCKET_BITS = 5;\n/** Counter used to generate unique IDs for directives. */\nlet nextNgElementId = 0;\n/** Value used when something wasn't found by an injector. */\nconst NOT_FOUND = {};\n/**\n * Registers this directive as present in its node's injector by flipping the directive's\n * corresponding bit in the injector's bloom filter.\n *\n * @param injectorIndex The index of the node injector where this token should be registered\n * @param tView The TView for the injector's bloom filters\n * @param type The directive token to register\n */\nfunction bloomAdd(injectorIndex, tView, type) {\n  ngDevMode && assertEqual(tView.firstCreatePass, true, 'expected firstCreatePass to be true');\n  let id;\n  if (typeof type === 'string') {\n    id = type.charCodeAt(0) || 0;\n  } else if (type.hasOwnProperty(NG_ELEMENT_ID)) {\n    id = type[NG_ELEMENT_ID];\n  }\n  // Set a unique ID on the directive type, so if something tries to inject the directive,\n  // we can easily retrieve the ID and hash it into the bloom bit that should be checked.\n  if (id == null) {\n    id = type[NG_ELEMENT_ID] = nextNgElementId++;\n  }\n  // We only have BLOOM_SIZE (256) slots in our bloom filter (8 buckets * 32 bits each),\n  // so all unique IDs must be modulo-ed into a number from 0 - 255 to fit into the filter.\n  const bloomHash = id & BLOOM_MASK;\n  // Create a mask that targets the specific bit associated with the directive.\n  // JS bit operations are 32 bits, so this will be a number between 2^0 and 2^31, corresponding\n  // to bit positions 0 - 31 in a 32 bit integer.\n  const mask = 1 << bloomHash;\n  // Each bloom bucket in `tData` represents `BLOOM_BUCKET_BITS` number of bits of `bloomHash`.\n  // Any bits in `bloomHash` beyond `BLOOM_BUCKET_BITS` indicate the bucket offset that the mask\n  // should be written to.\n  tView.data[injectorIndex + (bloomHash >> BLOOM_BUCKET_BITS)] |= mask;\n}\n/**\n * Creates (or gets an existing) injector for a given element or container.\n *\n * @param tNode for which an injector should be retrieved / created.\n * @param lView View where the node is stored\n * @returns Node injector\n */\nfunction getOrCreateNodeInjectorForNode(tNode, lView) {\n  const existingInjectorIndex = getInjectorIndex(tNode, lView);\n  if (existingInjectorIndex !== -1) {\n    return existingInjectorIndex;\n  }\n  const tView = lView[TVIEW];\n  if (tView.firstCreatePass) {\n    tNode.injectorIndex = lView.length;\n    insertBloom(tView.data, tNode); // foundation for node bloom\n    insertBloom(lView, null); // foundation for cumulative bloom\n    insertBloom(tView.blueprint, null);\n  }\n  const parentLoc = getParentInjectorLocation(tNode, lView);\n  const injectorIndex = tNode.injectorIndex;\n  // If a parent injector can't be found, its location is set to -1.\n  // In that case, we don't need to set up a cumulative bloom\n  if (hasParentInjector(parentLoc)) {\n    const parentIndex = getParentInjectorIndex(parentLoc);\n    const parentLView = getParentInjectorView(parentLoc, lView);\n    const parentData = parentLView[TVIEW].data;\n    // Creates a cumulative bloom filter that merges the parent's bloom filter\n    // and its own cumulative bloom (which contains tokens for all ancestors)\n    for (let i = 0; i < 8 /* NodeInjectorOffset.BLOOM_SIZE */; i++) {\n      lView[injectorIndex + i] = parentLView[parentIndex + i] | parentData[parentIndex + i];\n    }\n  }\n  lView[injectorIndex + 8 /* NodeInjectorOffset.PARENT */] = parentLoc;\n  return injectorIndex;\n}\nfunction insertBloom(arr, footer) {\n  arr.push(0, 0, 0, 0, 0, 0, 0, 0, footer);\n}\nfunction getInjectorIndex(tNode, lView) {\n  if (tNode.injectorIndex === -1 ||\n  // If the injector index is the same as its parent's injector index, then the index has been\n  // copied down from the parent node. No injector has been created yet on this node.\n  tNode.parent && tNode.parent.injectorIndex === tNode.injectorIndex ||\n  // After the first template pass, the injector index might exist but the parent values\n  // might not have been calculated yet for this instance\n  lView[tNode.injectorIndex + 8 /* NodeInjectorOffset.PARENT */] === null) {\n    return -1;\n  } else {\n    ngDevMode && assertIndexInRange(lView, tNode.injectorIndex);\n    return tNode.injectorIndex;\n  }\n}\n/**\n * Finds the index of the parent injector, with a view offset if applicable. Used to set the\n * parent injector initially.\n *\n * @returns Returns a number that is the combination of the number of LViews that we have to go up\n * to find the LView containing the parent inject AND the index of the injector within that LView.\n */\nfunction getParentInjectorLocation(tNode, lView) {\n  if (tNode.parent && tNode.parent.injectorIndex !== -1) {\n    // If we have a parent `TNode` and there is an injector associated with it we are done, because\n    // the parent injector is within the current `LView`.\n    return tNode.parent.injectorIndex; // ViewOffset is 0\n  }\n  // When parent injector location is computed it may be outside of the current view. (ie it could\n  // be pointing to a declared parent location). This variable stores number of declaration parents\n  // we need to walk up in order to find the parent injector location.\n  let declarationViewOffset = 0;\n  let parentTNode = null;\n  let lViewCursor = lView;\n  // The parent injector is not in the current `LView`. We will have to walk the declared parent\n  // `LView` hierarchy and look for it. If we walk of the top, that means that there is no parent\n  // `NodeInjector`.\n  while (lViewCursor !== null) {\n    parentTNode = getTNodeFromLView(lViewCursor);\n    if (parentTNode === null) {\n      // If we have no parent, than we are done.\n      return NO_PARENT_INJECTOR;\n    }\n    ngDevMode && parentTNode && assertTNodeForLView(parentTNode, lViewCursor[DECLARATION_VIEW]);\n    // Every iteration of the loop requires that we go to the declared parent.\n    declarationViewOffset++;\n    lViewCursor = lViewCursor[DECLARATION_VIEW];\n    if (parentTNode.injectorIndex !== -1) {\n      // We found a NodeInjector which points to something.\n      return parentTNode.injectorIndex | declarationViewOffset << 16 /* RelativeInjectorLocationFlags.ViewOffsetShift */;\n    }\n  }\n  return NO_PARENT_INJECTOR;\n}\n/**\n * Makes a type or an injection token public to the DI system by adding it to an\n * injector's bloom filter.\n *\n * @param di The node injector in which a directive will be added\n * @param token The type or the injection token to be made public\n */\nfunction diPublicInInjector(injectorIndex, tView, token) {\n  bloomAdd(injectorIndex, tView, token);\n}\n/**\n * Inject static attribute value into directive constructor.\n *\n * This method is used with `factory` functions which are generated as part of\n * `defineDirective` or `defineComponent`. The method retrieves the static value\n * of an attribute. (Dynamic attributes are not supported since they are not resolved\n *  at the time of injection and can change over time.)\n *\n * # Example\n * Given:\n * ```\n * @Component(...)\n * class MyComponent {\n *   constructor(@Attribute('title') title: string) { ... }\n * }\n * ```\n * When instantiated with\n * ```\n * <my-component title=\"Hello\"></my-component>\n * ```\n *\n * Then factory method generated is:\n * ```\n * MyComponent.ɵcmp = defineComponent({\n *   factory: () => new MyComponent(injectAttribute('title'))\n *   ...\n * })\n * ```\n *\n * @publicApi\n */\nfunction injectAttributeImpl(tNode, attrNameToInject) {\n  ngDevMode && assertTNodeType(tNode, 12 /* TNodeType.AnyContainer */ | 3 /* TNodeType.AnyRNode */);\n  ngDevMode && assertDefined(tNode, 'expecting tNode');\n  if (attrNameToInject === 'class') {\n    return tNode.classes;\n  }\n  if (attrNameToInject === 'style') {\n    return tNode.styles;\n  }\n  const attrs = tNode.attrs;\n  if (attrs) {\n    const attrsLength = attrs.length;\n    let i = 0;\n    while (i < attrsLength) {\n      const value = attrs[i];\n      // If we hit a `Bindings` or `Template` marker then we are done.\n      if (isNameOnlyAttributeMarker(value)) break;\n      // Skip namespaced attributes\n      if (value === 0 /* AttributeMarker.NamespaceURI */) {\n        // we skip the next two values\n        // as namespaced attributes looks like\n        // [..., AttributeMarker.NamespaceURI, 'http://someuri.com/test', 'test:exist',\n        // 'existValue', ...]\n        i = i + 2;\n      } else if (typeof value === 'number') {\n        // Skip to the first value of the marked attribute.\n        i++;\n        while (i < attrsLength && typeof attrs[i] === 'string') {\n          i++;\n        }\n      } else if (value === attrNameToInject) {\n        return attrs[i + 1];\n      } else {\n        i = i + 2;\n      }\n    }\n  }\n  return null;\n}\nfunction notFoundValueOrThrow(notFoundValue, token, flags) {\n  if (flags & InjectFlags.Optional || notFoundValue !== undefined) {\n    return notFoundValue;\n  } else {\n    throwProviderNotFoundError(token, 'NodeInjector');\n  }\n}\n/**\n * Returns the value associated to the given token from the ModuleInjector or throws exception\n *\n * @param lView The `LView` that contains the `tNode`\n * @param token The token to look for\n * @param flags Injection flags\n * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`\n * @returns the value from the injector or throws an exception\n */\nfunction lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue) {\n  if (flags & InjectFlags.Optional && notFoundValue === undefined) {\n    // This must be set or the NullInjector will throw for optional deps\n    notFoundValue = null;\n  }\n  if ((flags & (InjectFlags.Self | InjectFlags.Host)) === 0) {\n    const moduleInjector = lView[INJECTOR];\n    // switch to `injectInjectorOnly` implementation for module injector, since module injector\n    // should not have access to Component/Directive DI scope (that may happen through\n    // `directiveInject` implementation)\n    const previousInjectImplementation = setInjectImplementation(undefined);\n    try {\n      if (moduleInjector) {\n        return moduleInjector.get(token, notFoundValue, flags & InjectFlags.Optional);\n      } else {\n        return injectRootLimpMode(token, notFoundValue, flags & InjectFlags.Optional);\n      }\n    } finally {\n      setInjectImplementation(previousInjectImplementation);\n    }\n  }\n  return notFoundValueOrThrow(notFoundValue, token, flags);\n}\n/**\n * Returns the value associated to the given token from the NodeInjectors => ModuleInjector.\n *\n * Look for the injector providing the token by walking up the node injector tree and then\n * the module injector tree.\n *\n * This function patches `token` with `__NG_ELEMENT_ID__` which contains the id for the bloom\n * filter. `-1` is reserved for injecting `Injector` (implemented by `NodeInjector`)\n *\n * @param tNode The Node where the search for the injector should start\n * @param lView The `LView` that contains the `tNode`\n * @param token The token to look for\n * @param flags Injection flags\n * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`\n * @returns the value from the injector, `null` when not found, or `notFoundValue` if provided\n */\nfunction getOrCreateInjectable(tNode, lView, token, flags = InjectFlags.Default, notFoundValue) {\n  if (tNode !== null) {\n    // If the view or any of its ancestors have an embedded\n    // view injector, we have to look it up there first.\n    if (lView[FLAGS] & 2048 /* LViewFlags.HasEmbeddedViewInjector */ &&\n    // The token must be present on the current node injector when the `Self`\n    // flag is set, so the lookup on embedded view injector(s) can be skipped.\n    !(flags & InjectFlags.Self)) {\n      const embeddedInjectorValue = lookupTokenUsingEmbeddedInjector(tNode, lView, token, flags, NOT_FOUND);\n      if (embeddedInjectorValue !== NOT_FOUND) {\n        return embeddedInjectorValue;\n      }\n    }\n    // Otherwise try the node injector.\n    const value = lookupTokenUsingNodeInjector(tNode, lView, token, flags, NOT_FOUND);\n    if (value !== NOT_FOUND) {\n      return value;\n    }\n  }\n  // Finally, fall back to the module injector.\n  return lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue);\n}\n/**\n * Returns the value associated to the given token from the node injector.\n *\n * @param tNode The Node where the search for the injector should start\n * @param lView The `LView` that contains the `tNode`\n * @param token The token to look for\n * @param flags Injection flags\n * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`\n * @returns the value from the injector, `null` when not found, or `notFoundValue` if provided\n */\nfunction lookupTokenUsingNodeInjector(tNode, lView, token, flags, notFoundValue) {\n  const bloomHash = bloomHashBitOrFactory(token);\n  // If the ID stored here is a function, this is a special object like ElementRef or TemplateRef\n  // so just call the factory function to create it.\n  if (typeof bloomHash === 'function') {\n    if (!enterDI(lView, tNode, flags)) {\n      // Failed to enter DI, try module injector instead. If a token is injected with the @Host\n      // flag, the module injector is not searched for that token in Ivy.\n      return flags & InjectFlags.Host ? notFoundValueOrThrow(notFoundValue, token, flags) : lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue);\n    }\n    try {\n      let value;\n      if (ngDevMode) {\n        runInInjectorProfilerContext(new NodeInjector(getCurrentTNode(), getLView()), token, () => {\n          value = bloomHash(flags);\n          if (value != null) {\n            emitInstanceCreatedByInjectorEvent(value);\n          }\n        });\n      } else {\n        value = bloomHash(flags);\n      }\n      if (value == null && !(flags & InjectFlags.Optional)) {\n        throwProviderNotFoundError(token);\n      } else {\n        return value;\n      }\n    } finally {\n      leaveDI();\n    }\n  } else if (typeof bloomHash === 'number') {\n    // A reference to the previous injector TView that was found while climbing the element\n    // injector tree. This is used to know if viewProviders can be accessed on the current\n    // injector.\n    let previousTView = null;\n    let injectorIndex = getInjectorIndex(tNode, lView);\n    let parentLocation = NO_PARENT_INJECTOR;\n    let hostTElementNode = flags & InjectFlags.Host ? lView[DECLARATION_COMPONENT_VIEW][T_HOST] : null;\n    // If we should skip this injector, or if there is no injector on this node, start by\n    // searching the parent injector.\n    if (injectorIndex === -1 || flags & InjectFlags.SkipSelf) {\n      parentLocation = injectorIndex === -1 ? getParentInjectorLocation(tNode, lView) : lView[injectorIndex + 8 /* NodeInjectorOffset.PARENT */];\n      if (parentLocation === NO_PARENT_INJECTOR || !shouldSearchParent(flags, false)) {\n        injectorIndex = -1;\n      } else {\n        previousTView = lView[TVIEW];\n        injectorIndex = getParentInjectorIndex(parentLocation);\n        lView = getParentInjectorView(parentLocation, lView);\n      }\n    }\n    // Traverse up the injector tree until we find a potential match or until we know there\n    // *isn't* a match.\n    while (injectorIndex !== -1) {\n      ngDevMode && assertNodeInjector(lView, injectorIndex);\n      // Check the current injector. If it matches, see if it contains token.\n      const tView = lView[TVIEW];\n      ngDevMode && assertTNodeForLView(tView.data[injectorIndex + 8 /* NodeInjectorOffset.TNODE */], lView);\n      if (bloomHasToken(bloomHash, injectorIndex, tView.data)) {\n        // At this point, we have an injector which *may* contain the token, so we step through\n        // the providers and directives associated with the injector's corresponding node to get\n        // the instance.\n        const instance = searchTokensOnInjector(injectorIndex, lView, token, previousTView, flags, hostTElementNode);\n        if (instance !== NOT_FOUND) {\n          return instance;\n        }\n      }\n      parentLocation = lView[injectorIndex + 8 /* NodeInjectorOffset.PARENT */];\n      if (parentLocation !== NO_PARENT_INJECTOR && shouldSearchParent(flags, lView[TVIEW].data[injectorIndex + 8 /* NodeInjectorOffset.TNODE */] === hostTElementNode) && bloomHasToken(bloomHash, injectorIndex, lView)) {\n        // The def wasn't found anywhere on this node, so it was a false positive.\n        // Traverse up the tree and continue searching.\n        previousTView = tView;\n        injectorIndex = getParentInjectorIndex(parentLocation);\n        lView = getParentInjectorView(parentLocation, lView);\n      } else {\n        // If we should not search parent OR If the ancestor bloom filter value does not have the\n        // bit corresponding to the directive we can give up on traversing up to find the specific\n        // injector.\n        injectorIndex = -1;\n      }\n    }\n  }\n  return notFoundValue;\n}\nfunction searchTokensOnInjector(injectorIndex, lView, token, previousTView, flags, hostTElementNode) {\n  const currentTView = lView[TVIEW];\n  const tNode = currentTView.data[injectorIndex + 8 /* NodeInjectorOffset.TNODE */];\n  // First, we need to determine if view providers can be accessed by the starting element.\n  // There are two possibilities\n  const canAccessViewProviders = previousTView == null ?\n  // 1) This is the first invocation `previousTView == null` which means that we are at the\n  // `TNode` of where injector is starting to look. In such a case the only time we are allowed\n  // to look into the ViewProviders is if:\n  // - we are on a component\n  // - AND the injector set `includeViewProviders` to true (implying that the token can see\n  // ViewProviders because it is the Component or a Service which itself was declared in\n  // ViewProviders)\n  isComponentHost(tNode) && includeViewProviders :\n  // 2) `previousTView != null` which means that we are now walking across the parent nodes.\n  // In such a case we are only allowed to look into the ViewProviders if:\n  // - We just crossed from child View to Parent View `previousTView != currentTView`\n  // - AND the parent TNode is an Element.\n  // This means that we just came from the Component's View and therefore are allowed to see\n  // into the ViewProviders.\n  previousTView != currentTView && (tNode.type & 3 /* TNodeType.AnyRNode */) !== 0;\n  // This special case happens when there is a @host on the inject and when we are searching\n  // on the host element node.\n  const isHostSpecialCase = flags & InjectFlags.Host && hostTElementNode === tNode;\n  const injectableIdx = locateDirectiveOrProvider(tNode, currentTView, token, canAccessViewProviders, isHostSpecialCase);\n  if (injectableIdx !== null) {\n    return getNodeInjectable(lView, currentTView, injectableIdx, tNode);\n  } else {\n    return NOT_FOUND;\n  }\n}\n/**\n * Searches for the given token among the node's directives and providers.\n *\n * @param tNode TNode on which directives are present.\n * @param tView The tView we are currently processing\n * @param token Provider token or type of a directive to look for.\n * @param canAccessViewProviders Whether view providers should be considered.\n * @param isHostSpecialCase Whether the host special case applies.\n * @returns Index of a found directive or provider, or null when none found.\n */\nfunction locateDirectiveOrProvider(tNode, tView, token, canAccessViewProviders, isHostSpecialCase) {\n  const nodeProviderIndexes = tNode.providerIndexes;\n  const tInjectables = tView.data;\n  const injectablesStart = nodeProviderIndexes & 1048575 /* TNodeProviderIndexes.ProvidersStartIndexMask */;\n  const directivesStart = tNode.directiveStart;\n  const directiveEnd = tNode.directiveEnd;\n  const cptViewProvidersCount = nodeProviderIndexes >> 20 /* TNodeProviderIndexes.CptViewProvidersCountShift */;\n  const startingIndex = canAccessViewProviders ? injectablesStart : injectablesStart + cptViewProvidersCount;\n  // When the host special case applies, only the viewProviders and the component are visible\n  const endIndex = isHostSpecialCase ? injectablesStart + cptViewProvidersCount : directiveEnd;\n  for (let i = startingIndex; i < endIndex; i++) {\n    const providerTokenOrDef = tInjectables[i];\n    if (i < directivesStart && token === providerTokenOrDef || i >= directivesStart && providerTokenOrDef.type === token) {\n      return i;\n    }\n  }\n  if (isHostSpecialCase) {\n    const dirDef = tInjectables[directivesStart];\n    if (dirDef && isComponentDef(dirDef) && dirDef.type === token) {\n      return directivesStart;\n    }\n  }\n  return null;\n}\n/**\n * Retrieve or instantiate the injectable from the `LView` at particular `index`.\n *\n * This function checks to see if the value has already been instantiated and if so returns the\n * cached `injectable`. Otherwise if it detects that the value is still a factory it\n * instantiates the `injectable` and caches the value.\n */\nfunction getNodeInjectable(lView, tView, index, tNode) {\n  let value = lView[index];\n  const tData = tView.data;\n  if (isFactory(value)) {\n    const factory = value;\n    if (factory.resolving) {\n      throwCyclicDependencyError(stringifyForError(tData[index]));\n    }\n    const previousIncludeViewProviders = setIncludeViewProviders(factory.canSeeViewProviders);\n    factory.resolving = true;\n    let prevInjectContext;\n    if (ngDevMode) {\n      // tData indexes mirror the concrete instances in its corresponding LView.\n      // lView[index] here is either the injectable instace itself or a factory,\n      // therefore tData[index] is the constructor of that injectable or a\n      // definition object that contains the constructor in a `.type` field.\n      const token = tData[index].type || tData[index];\n      const injector = new NodeInjector(tNode, lView);\n      prevInjectContext = setInjectorProfilerContext({\n        injector,\n        token\n      });\n    }\n    const previousInjectImplementation = factory.injectImpl ? setInjectImplementation(factory.injectImpl) : null;\n    const success = enterDI(lView, tNode, InjectFlags.Default);\n    ngDevMode && assertEqual(success, true, 'Because flags do not contain \\`SkipSelf\\' we expect this to always succeed.');\n    try {\n      value = lView[index] = factory.factory(undefined, tData, lView, tNode);\n      ngDevMode && emitInstanceCreatedByInjectorEvent(value);\n      // This code path is hit for both directives and providers.\n      // For perf reasons, we want to avoid searching for hooks on providers.\n      // It does no harm to try (the hooks just won't exist), but the extra\n      // checks are unnecessary and this is a hot path. So we check to see\n      // if the index of the dependency is in the directive range for this\n      // tNode. If it's not, we know it's a provider and skip hook registration.\n      if (tView.firstCreatePass && index >= tNode.directiveStart) {\n        ngDevMode && assertDirectiveDef(tData[index]);\n        registerPreOrderHooks(index, tData[index], tView);\n      }\n    } finally {\n      ngDevMode && setInjectorProfilerContext(prevInjectContext);\n      previousInjectImplementation !== null && setInjectImplementation(previousInjectImplementation);\n      setIncludeViewProviders(previousIncludeViewProviders);\n      factory.resolving = false;\n      leaveDI();\n    }\n  }\n  return value;\n}\n/**\n * Returns the bit in an injector's bloom filter that should be used to determine whether or not\n * the directive might be provided by the injector.\n *\n * When a directive is public, it is added to the bloom filter and given a unique ID that can be\n * retrieved on the Type. When the directive isn't public or the token is not a directive `null`\n * is returned as the node injector can not possibly provide that token.\n *\n * @param token the injection token\n * @returns the matching bit to check in the bloom filter or `null` if the token is not known.\n *   When the returned value is negative then it represents special values such as `Injector`.\n */\nfunction bloomHashBitOrFactory(token) {\n  ngDevMode && assertDefined(token, 'token must be defined');\n  if (typeof token === 'string') {\n    return token.charCodeAt(0) || 0;\n  }\n  const tokenId =\n  // First check with `hasOwnProperty` so we don't get an inherited ID.\n  token.hasOwnProperty(NG_ELEMENT_ID) ? token[NG_ELEMENT_ID] : undefined;\n  // Negative token IDs are used for special objects such as `Injector`\n  if (typeof tokenId === 'number') {\n    if (tokenId >= 0) {\n      return tokenId & BLOOM_MASK;\n    } else {\n      ngDevMode && assertEqual(tokenId, -1 /* InjectorMarkers.Injector */, 'Expecting to get Special Injector Id');\n      return createNodeInjector;\n    }\n  } else {\n    return tokenId;\n  }\n}\nfunction bloomHasToken(bloomHash, injectorIndex, injectorView) {\n  // Create a mask that targets the specific bit associated with the directive we're looking for.\n  // JS bit operations are 32 bits, so this will be a number between 2^0 and 2^31, corresponding\n  // to bit positions 0 - 31 in a 32 bit integer.\n  const mask = 1 << bloomHash;\n  // Each bloom bucket in `injectorView` represents `BLOOM_BUCKET_BITS` number of bits of\n  // `bloomHash`. Any bits in `bloomHash` beyond `BLOOM_BUCKET_BITS` indicate the bucket offset\n  // that should be used.\n  const value = injectorView[injectorIndex + (bloomHash >> BLOOM_BUCKET_BITS)];\n  // If the bloom filter value has the bit corresponding to the directive's bloomBit flipped on,\n  // this injector is a potential match.\n  return !!(value & mask);\n}\n/** Returns true if flags prevent parent injector from being searched for tokens */\nfunction shouldSearchParent(flags, isFirstHostTNode) {\n  return !(flags & InjectFlags.Self) && !(flags & InjectFlags.Host && isFirstHostTNode);\n}\nfunction getNodeInjectorLView(nodeInjector) {\n  return nodeInjector._lView;\n}\nfunction getNodeInjectorTNode(nodeInjector) {\n  return nodeInjector._tNode;\n}\nclass NodeInjector {\n  constructor(_tNode, _lView) {\n    this._tNode = _tNode;\n    this._lView = _lView;\n  }\n  get(token, notFoundValue, flags) {\n    return getOrCreateInjectable(this._tNode, this._lView, token, convertToBitFlags(flags), notFoundValue);\n  }\n}\n/** Creates a `NodeInjector` for the current node. */\nfunction createNodeInjector() {\n  return new NodeInjector(getCurrentTNode(), getLView());\n}\n/**\n * @codeGenApi\n */\nfunction ɵɵgetInheritedFactory(type) {\n  return noSideEffects(() => {\n    const ownConstructor = type.prototype.constructor;\n    const ownFactory = ownConstructor[NG_FACTORY_DEF] || getFactoryOf(ownConstructor);\n    const objectPrototype = Object.prototype;\n    let parent = Object.getPrototypeOf(type.prototype).constructor;\n    // Go up the prototype until we hit `Object`.\n    while (parent && parent !== objectPrototype) {\n      const factory = parent[NG_FACTORY_DEF] || getFactoryOf(parent);\n      // If we hit something that has a factory and the factory isn't the same as the type,\n      // we've found the inherited factory. Note the check that the factory isn't the type's\n      // own factory is redundant in most cases, but if the user has custom decorators on the\n      // class, this lookup will start one level down in the prototype chain, causing us to\n      // find the own factory first and potentially triggering an infinite loop downstream.\n      if (factory && factory !== ownFactory) {\n        return factory;\n      }\n      parent = Object.getPrototypeOf(parent);\n    }\n    // There is no factory defined. Either this was improper usage of inheritance\n    // (no Angular decorator on the superclass) or there is no constructor at all\n    // in the inheritance chain. Since the two cases cannot be distinguished, the\n    // latter has to be assumed.\n    return t => new t();\n  });\n}\nfunction getFactoryOf(type) {\n  if (isForwardRef(type)) {\n    return () => {\n      const factory = getFactoryOf(resolveForwardRef(type));\n      return factory && factory();\n    };\n  }\n  return getFactoryDef(type);\n}\n/**\n * Returns a value from the closest embedded or node injector.\n *\n * @param tNode The Node where the search for the injector should start\n * @param lView The `LView` that contains the `tNode`\n * @param token The token to look for\n * @param flags Injection flags\n * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`\n * @returns the value from the injector, `null` when not found, or `notFoundValue` if provided\n */\nfunction lookupTokenUsingEmbeddedInjector(tNode, lView, token, flags, notFoundValue) {\n  let currentTNode = tNode;\n  let currentLView = lView;\n  // When an LView with an embedded view injector is inserted, it'll likely be interlaced with\n  // nodes who may have injectors (e.g. node injector -> embedded view injector -> node injector).\n  // Since the bloom filters for the node injectors have already been constructed and we don't\n  // have a way of extracting the records from an injector, the only way to maintain the correct\n  // hierarchy when resolving the value is to walk it node-by-node while attempting to resolve\n  // the token at each level.\n  while (currentTNode !== null && currentLView !== null && currentLView[FLAGS] & 2048 /* LViewFlags.HasEmbeddedViewInjector */ && !(currentLView[FLAGS] & 512 /* LViewFlags.IsRoot */)) {\n    ngDevMode && assertTNodeForLView(currentTNode, currentLView);\n    // Note that this lookup on the node injector is using the `Self` flag, because\n    // we don't want the node injector to look at any parent injectors since we\n    // may hit the embedded view injector first.\n    const nodeInjectorValue = lookupTokenUsingNodeInjector(currentTNode, currentLView, token, flags | InjectFlags.Self, NOT_FOUND);\n    if (nodeInjectorValue !== NOT_FOUND) {\n      return nodeInjectorValue;\n    }\n    // Has an explicit type due to a TS bug: https://github.com/microsoft/TypeScript/issues/33191\n    let parentTNode = currentTNode.parent;\n    // `TNode.parent` includes the parent within the current view only. If it doesn't exist,\n    // it means that we've hit the view boundary and we need to go up to the next view.\n    if (!parentTNode) {\n      // Before we go to the next LView, check if the token exists on the current embedded injector.\n      const embeddedViewInjector = currentLView[EMBEDDED_VIEW_INJECTOR];\n      if (embeddedViewInjector) {\n        const embeddedViewInjectorValue = embeddedViewInjector.get(token, NOT_FOUND, flags);\n        if (embeddedViewInjectorValue !== NOT_FOUND) {\n          return embeddedViewInjectorValue;\n        }\n      }\n      // Otherwise keep going up the tree.\n      parentTNode = getTNodeFromLView(currentLView);\n      currentLView = currentLView[DECLARATION_VIEW];\n    }\n    currentTNode = parentTNode;\n  }\n  return notFoundValue;\n}\n/** Gets the TNode associated with an LView inside of the declaration view. */\nfunction getTNodeFromLView(lView) {\n  const tView = lView[TVIEW];\n  const tViewType = tView.type;\n  // The parent pointer differs based on `TView.type`.\n  if (tViewType === 2 /* TViewType.Embedded */) {\n    ngDevMode && assertDefined(tView.declTNode, 'Embedded TNodes should have declaration parents.');\n    return tView.declTNode;\n  } else if (tViewType === 1 /* TViewType.Component */) {\n    // Components don't have `TView.declTNode` because each instance of component could be\n    // inserted in different location, hence `TView.declTNode` is meaningless.\n    return lView[T_HOST];\n  }\n  return null;\n}\n\n/**\n * Facade for the attribute injection from DI.\n *\n * @codeGenApi\n */\nfunction ɵɵinjectAttribute(attrNameToInject) {\n  return injectAttributeImpl(getCurrentTNode(), attrNameToInject);\n}\n\n/**\n * Attribute decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Attribute = /*#__PURE__*/makeParamDecorator('Attribute', attributeName => ({\n  attributeName,\n  __NG_ELEMENT_ID__: () => ɵɵinjectAttribute(attributeName)\n}));\nlet _reflect = null;\nfunction getReflect() {\n  return _reflect = _reflect || new ReflectionCapabilities();\n}\nfunction reflectDependencies(type) {\n  return convertDependencies(getReflect().parameters(type));\n}\nfunction convertDependencies(deps) {\n  return deps.map(dep => reflectDependency(dep));\n}\nfunction reflectDependency(dep) {\n  const meta = {\n    token: null,\n    attribute: null,\n    host: false,\n    optional: false,\n    self: false,\n    skipSelf: false\n  };\n  if (Array.isArray(dep) && dep.length > 0) {\n    for (let j = 0; j < dep.length; j++) {\n      const param = dep[j];\n      if (param === undefined) {\n        // param may be undefined if type of dep is not set by ngtsc\n        continue;\n      }\n      const proto = Object.getPrototypeOf(param);\n      if (param instanceof Optional || proto.ngMetadataName === 'Optional') {\n        meta.optional = true;\n      } else if (param instanceof SkipSelf || proto.ngMetadataName === 'SkipSelf') {\n        meta.skipSelf = true;\n      } else if (param instanceof Self || proto.ngMetadataName === 'Self') {\n        meta.self = true;\n      } else if (param instanceof Host || proto.ngMetadataName === 'Host') {\n        meta.host = true;\n      } else if (param instanceof Inject) {\n        meta.token = param.token;\n      } else if (param instanceof Attribute) {\n        if (param.attributeName === undefined) {\n          throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode && `Attribute name must be defined.`);\n        }\n        meta.attribute = param.attributeName;\n      } else {\n        meta.token = param;\n      }\n    }\n  } else if (dep === undefined || Array.isArray(dep) && dep.length === 0) {\n    meta.token = null;\n  } else {\n    meta.token = dep;\n  }\n  return meta;\n}\n\n/**\n * Compile an Angular injectable according to its `Injectable` metadata, and patch the resulting\n * injectable def (`ɵprov`) onto the injectable type.\n */\nfunction compileInjectable(type, meta) {\n  let ngInjectableDef = null;\n  let ngFactoryDef = null;\n  // if NG_PROV_DEF is already defined on this class then don't overwrite it\n  if (!type.hasOwnProperty(NG_PROV_DEF)) {\n    Object.defineProperty(type, NG_PROV_DEF, {\n      get: () => {\n        if (ngInjectableDef === null) {\n          const compiler = getCompilerFacade({\n            usage: 0 /* JitCompilerUsage.Decorator */,\n            kind: 'injectable',\n            type\n          });\n          ngInjectableDef = compiler.compileInjectable(angularCoreDiEnv, `ng:///${type.name}/ɵprov.js`, getInjectableMetadata(type, meta));\n        }\n        return ngInjectableDef;\n      }\n    });\n  }\n  // if NG_FACTORY_DEF is already defined on this class then don't overwrite it\n  if (!type.hasOwnProperty(NG_FACTORY_DEF)) {\n    Object.defineProperty(type, NG_FACTORY_DEF, {\n      get: () => {\n        if (ngFactoryDef === null) {\n          const compiler = getCompilerFacade({\n            usage: 0 /* JitCompilerUsage.Decorator */,\n            kind: 'injectable',\n            type\n          });\n          ngFactoryDef = compiler.compileFactory(angularCoreDiEnv, `ng:///${type.name}/ɵfac.js`, {\n            name: type.name,\n            type,\n            typeArgumentCount: 0,\n            // In JIT mode types are not available nor used.\n            deps: reflectDependencies(type),\n            target: compiler.FactoryTarget.Injectable\n          });\n        }\n        return ngFactoryDef;\n      },\n      // Leave this configurable so that the factories from directives or pipes can take precedence.\n      configurable: true\n    });\n  }\n}\nconst USE_VALUE = /*#__PURE__*/getClosureSafeProperty({\n  provide: String,\n  useValue: getClosureSafeProperty\n});\nfunction isUseClassProvider(meta) {\n  return meta.useClass !== undefined;\n}\nfunction isUseValueProvider(meta) {\n  return USE_VALUE in meta;\n}\nfunction isUseFactoryProvider(meta) {\n  return meta.useFactory !== undefined;\n}\nfunction isUseExistingProvider(meta) {\n  return meta.useExisting !== undefined;\n}\nfunction getInjectableMetadata(type, srcMeta) {\n  // Allow the compilation of a class with a `@Injectable()` decorator without parameters\n  const meta = srcMeta || {\n    providedIn: null\n  };\n  const compilerMeta = {\n    name: type.name,\n    type: type,\n    typeArgumentCount: 0,\n    providedIn: meta.providedIn\n  };\n  if ((isUseClassProvider(meta) || isUseFactoryProvider(meta)) && meta.deps !== undefined) {\n    compilerMeta.deps = convertDependencies(meta.deps);\n  }\n  // Check to see if the user explicitly provided a `useXxxx` property.\n  if (isUseClassProvider(meta)) {\n    compilerMeta.useClass = meta.useClass;\n  } else if (isUseValueProvider(meta)) {\n    compilerMeta.useValue = meta.useValue;\n  } else if (isUseFactoryProvider(meta)) {\n    compilerMeta.useFactory = meta.useFactory;\n  } else if (isUseExistingProvider(meta)) {\n    compilerMeta.useExisting = meta.useExisting;\n  }\n  return compilerMeta;\n}\n\n/**\n * Injectable decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Injectable = /*#__PURE__*/makeDecorator('Injectable', undefined, undefined, undefined, (type, meta) => compileInjectable(type, meta));\n\n/**\n * Create a new `Injector` which is configured using a `defType` of `InjectorType<any>`s.\n */\nfunction createInjector(defType, parent = null, additionalProviders = null, name) {\n  const injector = createInjectorWithoutInjectorInstances(defType, parent, additionalProviders, name);\n  injector.resolveInjectorInitializers();\n  return injector;\n}\n/**\n * Creates a new injector without eagerly resolving its injector types. Can be used in places\n * where resolving the injector types immediately can lead to an infinite loop. The injector types\n * should be resolved at a later point by calling `_resolveInjectorDefTypes`.\n */\nfunction createInjectorWithoutInjectorInstances(defType, parent = null, additionalProviders = null, name, scopes = new Set()) {\n  const providers = [additionalProviders || EMPTY_ARRAY, importProvidersFrom(defType)];\n  name = name || (typeof defType === 'object' ? undefined : stringify(defType));\n  return new R3Injector(providers, parent || getNullInjector(), name || null, scopes);\n}\n\n/**\n * Concrete injectors implement this interface. Injectors are configured\n * with [providers](guide/dependency-injection-providers) that associate\n * dependencies of various types with [injection tokens](guide/dependency-injection-providers).\n *\n * @see [DI Providers](guide/dependency-injection-providers).\n * @see {@link StaticProvider}\n *\n * @usageNotes\n *\n *  The following example creates a service injector instance.\n *\n * {@example core/di/ts/provider_spec.ts region='ConstructorProvider'}\n *\n * ### Usage example\n *\n * {@example core/di/ts/injector_spec.ts region='Injector'}\n *\n * `Injector` returns itself when given `Injector` as a token:\n *\n * {@example core/di/ts/injector_spec.ts region='injectInjector'}\n *\n * @publicApi\n */\nlet Injector = /*#__PURE__*/(() => {\n  class Injector {\n    static {\n      this.THROW_IF_NOT_FOUND = THROW_IF_NOT_FOUND;\n    }\n    static {\n      this.NULL = /* @__PURE__ */new NullInjector();\n    }\n    static create(options, parent) {\n      if (Array.isArray(options)) {\n        return createInjector({\n          name: ''\n        }, parent, options, '');\n      } else {\n        const name = options.name ?? '';\n        return createInjector({\n          name\n        }, options.parent, options.providers, name);\n      }\n    }\n    /** @nocollapse */\n    static {\n      this.ɵprov = ɵɵdefineInjectable({\n        token: Injector,\n        providedIn: 'any',\n        factory: () => ɵɵinject(INJECTOR$1)\n      });\n    }\n    /**\n     * @internal\n     * @nocollapse\n     */\n    static {\n      this.__NG_ELEMENT_ID__ = -1 /* InjectorMarkers.Injector */;\n    }\n  }\n  return Injector;\n})();\n/*!\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Creates a token that can be used to inject static attributes of the host node.\n *\n * @usageNotes\n * ### Injecting an attribute that is known to exist\n * ```typescript\n * @Directive()\n * class MyDir {\n *   attr: string = inject(new HostAttributeToken('some-attr'));\n * }\n * ```\n *\n * ### Optionally injecting an attribute\n * ```typescript\n * @Directive()\n * class MyDir {\n *   attr: string | null = inject(new HostAttributeToken('some-attr'), {optional: true});\n * }\n * ```\n * @publicApi\n */\nclass HostAttributeToken {\n  constructor(attributeName) {\n    this.attributeName = attributeName;\n    /** @internal */\n    this.__NG_ELEMENT_ID__ = () => ɵɵinjectAttribute(this.attributeName);\n  }\n  toString() {\n    return `HostAttributeToken ${this.attributeName}`;\n  }\n}\n\n/**\n * @module\n * @description\n * The `di` module provides dependency injection container services.\n */\n\n/**\n * This file should not be necessary because node resolution should just default to `./di/index`!\n *\n * However it does not seem to work and it breaks:\n *  - //packages/animations/browser/test:test_web_chromium-local\n *  - //packages/compiler-cli/test:extract_i18n\n *  - //packages/compiler-cli/test:ngc\n *  - //packages/compiler-cli/test:perform_watch\n *  - //packages/compiler-cli/test/diagnostics:check_types\n *  - //packages/compiler-cli/test/transformers:test\n *  - //packages/compiler/test:test\n *  - //tools/public_api_guard:core_api\n *\n * Remove this file once the above is solved or wait until `ngc` is deleted and then it should be\n * safe to delete this file.\n */\n\nconst ERROR_ORIGINAL_ERROR = 'ngOriginalError';\nfunction wrappedError(message, originalError) {\n  const msg = `${message} caused by: ${originalError instanceof Error ? originalError.message : originalError}`;\n  const error = Error(msg);\n  error[ERROR_ORIGINAL_ERROR] = originalError;\n  return error;\n}\nfunction getOriginalError(error) {\n  return error[ERROR_ORIGINAL_ERROR];\n}\n\n/**\n * Provides a hook for centralized exception handling.\n *\n * The default implementation of `ErrorHandler` prints error messages to the `console`. To\n * intercept error handling, write a custom exception handler that replaces this default as\n * appropriate for your app.\n *\n * @usageNotes\n * ### Example\n *\n * ```\n * class MyErrorHandler implements ErrorHandler {\n *   handleError(error) {\n *     // do something with the exception\n *   }\n * }\n *\n * @NgModule({\n *   providers: [{provide: ErrorHandler, useClass: MyErrorHandler}]\n * })\n * class MyModule {}\n * ```\n *\n * @publicApi\n */\nclass ErrorHandler {\n  constructor() {\n    /**\n     * @internal\n     */\n    this._console = console;\n  }\n  handleError(error) {\n    const originalError = this._findOriginalError(error);\n    this._console.error('ERROR', error);\n    if (originalError) {\n      this._console.error('ORIGINAL ERROR', originalError);\n    }\n  }\n  /** @internal */\n  _findOriginalError(error) {\n    let e = error && getOriginalError(error);\n    while (e && getOriginalError(e)) {\n      e = getOriginalError(e);\n    }\n    return e || null;\n  }\n}\n/**\n * `InjectionToken` used to configure how to call the `ErrorHandler`.\n *\n * `NgZone` is provided by default today so the default (and only) implementation for this\n * is calling `ErrorHandler.handleError` outside of the Angular zone.\n */\nconst INTERNAL_APPLICATION_ERROR_HANDLER = /*#__PURE__*/new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'internal error handler' : '', {\n  providedIn: 'root',\n  factory: () => {\n    const userErrorHandler = inject(ErrorHandler);\n    return userErrorHandler.handleError.bind(undefined);\n  }\n});\n\n/**\n * `DestroyRef` lets you set callbacks to run for any cleanup or destruction behavior.\n * The scope of this destruction depends on where `DestroyRef` is injected. If `DestroyRef`\n * is injected in a component or directive, the callbacks run when that component or\n * directive is destroyed. Otherwise the callbacks run when a corresponding injector is destroyed.\n *\n * @publicApi\n */\nlet DestroyRef = /*#__PURE__*/(() => {\n  class DestroyRef {\n    /**\n     * @internal\n     * @nocollapse\n     */\n    static {\n      this.__NG_ELEMENT_ID__ = injectDestroyRef;\n    }\n    /**\n     * @internal\n     * @nocollapse\n     */\n    static {\n      this.__NG_ENV_ID__ = injector => injector;\n    }\n  }\n  return DestroyRef;\n})();\nclass NodeInjectorDestroyRef extends DestroyRef {\n  constructor(_lView) {\n    super();\n    this._lView = _lView;\n  }\n  onDestroy(callback) {\n    storeLViewOnDestroy(this._lView, callback);\n    return () => removeLViewOnDestroy(this._lView, callback);\n  }\n}\nfunction injectDestroyRef() {\n  return new NodeInjectorDestroyRef(getLView());\n}\n\n/**\n * An `OutputEmitterRef` is created by the `output()` function and can be\n * used to emit values to consumers of your directive or component.\n *\n * Consumers of your directive/component can bind to the output and\n * subscribe to changes via the bound event syntax. For example:\n *\n * ```html\n * <my-comp (valueChange)=\"processNewValue($event)\" />\n * ```\n *\n * @developerPreview\n */\nclass OutputEmitterRef {\n  constructor() {\n    this.destroyed = false;\n    this.listeners = null;\n    this.errorHandler = inject(ErrorHandler, {\n      optional: true\n    });\n    /** @internal */\n    this.destroyRef = inject(DestroyRef);\n    // Clean-up all listeners and mark as destroyed upon destroy.\n    this.destroyRef.onDestroy(() => {\n      this.destroyed = true;\n      this.listeners = null;\n    });\n  }\n  subscribe(callback) {\n    if (this.destroyed) {\n      throw new RuntimeError(953 /* RuntimeErrorCode.OUTPUT_REF_DESTROYED */, ngDevMode && 'Unexpected subscription to destroyed `OutputRef`. ' + 'The owning directive/component is destroyed.');\n    }\n    (this.listeners ??= []).push(callback);\n    return {\n      unsubscribe: () => {\n        const idx = this.listeners?.indexOf(callback);\n        if (idx !== undefined && idx !== -1) {\n          this.listeners?.splice(idx, 1);\n        }\n      }\n    };\n  }\n  /** Emits a new value to the output. */\n  emit(value) {\n    if (this.destroyed) {\n      throw new RuntimeError(953 /* RuntimeErrorCode.OUTPUT_REF_DESTROYED */, ngDevMode && 'Unexpected emit for destroyed `OutputRef`. ' + 'The owning directive/component is destroyed.');\n    }\n    if (this.listeners === null) {\n      return;\n    }\n    const previousConsumer = setActiveConsumer$1(null);\n    try {\n      for (const listenerFn of this.listeners) {\n        try {\n          listenerFn(value);\n        } catch (err) {\n          this.errorHandler?.handleError(err);\n        }\n      }\n    } finally {\n      setActiveConsumer$1(previousConsumer);\n    }\n  }\n}\n/** Gets the owning `DestroyRef` for the given output. */\nfunction getOutputDestroyRef(ref) {\n  return ref.destroyRef;\n}\n\n/**\n * The `output` function allows declaration of Angular outputs in\n * directives and components.\n *\n * You can use outputs to emit values to parent directives and component.\n * Parents can subscribe to changes via:\n *\n * - template event bindings. For example, `(myOutput)=\"doSomething($event)\"`\n * - programmatic subscription by using `OutputRef#subscribe`.\n *\n * @usageNotes\n *\n * To use `output()`, import the function from `@angular/core`.\n *\n * ```\n * import {output} from '@angular/core`;\n * ```\n *\n * Inside your component, introduce a new class member and initialize\n * it with a call to `output`.\n *\n * ```ts\n * @Directive({\n *   ...\n * })\n * export class MyDir {\n *   nameChange = output<string>();    // OutputEmitterRef<string>\n *   onClick    = output();            // OutputEmitterRef<void>\n * }\n * ```\n *\n * You can emit values to consumers of your directive, by using\n * the `emit` method from `OutputEmitterRef`.\n *\n * ```ts\n * updateName(newName: string): void {\n *   this.nameChange.emit(newName);\n * }\n * ```\n *\n * @developerPreview\n * @initializerApiFunction {\"showTypesInSignaturePreview\": true}\n */\nfunction output(opts) {\n  ngDevMode && assertInInjectionContext(output);\n  return new OutputEmitterRef();\n}\nfunction inputFunction(initialValue, opts) {\n  ngDevMode && assertInInjectionContext(input);\n  return createInputSignal(initialValue, opts);\n}\nfunction inputRequiredFunction(opts) {\n  ngDevMode && assertInInjectionContext(input);\n  return createInputSignal(REQUIRED_UNSET_VALUE, opts);\n}\n/**\n * The `input` function allows declaration of Angular inputs in directives\n * and components.\n *\n * There are two variants of inputs that can be declared:\n *\n *   1. **Optional inputs** with an initial value.\n *   2. **Required inputs** that consumers need to set.\n *\n * By default, the `input` function will declare optional inputs that\n * always have an initial value. Required inputs can be declared\n * using the `input.required()` function.\n *\n * Inputs are signals. The values of an input are exposed as a `Signal`.\n * The signal always holds the latest value of the input that is bound\n * from the parent.\n *\n * @usageNotes\n * To use signal-based inputs, import `input` from `@angular/core`.\n *\n * ```\n * import {input} from '@angular/core`;\n * ```\n *\n * Inside your component, introduce a new class member and initialize\n * it with a call to `input` or `input.required`.\n *\n * ```ts\n * @Component({\n *   ...\n * })\n * export class UserProfileComponent {\n *   firstName = input<string>();             // Signal<string|undefined>\n *   lastName  = input.required<string>();    // Signal<string>\n *   age       = input(0)                     // Signal<number>\n * }\n * ```\n *\n * Inside your component template, you can display values of the inputs\n * by calling the signal.\n *\n * ```html\n * <span>{{firstName()}}</span>\n * ```\n *\n * @developerPreview\n * @initializerApiFunction\n */\nconst input = /*#__PURE__*/(() => {\n  // Note: This may be considered a side-effect, but nothing will depend on\n  // this assignment, unless this `input` constant export is accessed. It's a\n  // self-contained side effect that is local to the user facing`input` export.\n  inputFunction.required = inputRequiredFunction;\n  return inputFunction;\n})();\n\n/**\n * Creates an ElementRef from the most recent node.\n *\n * @returns The ElementRef instance to use\n */\nfunction injectElementRef() {\n  return createElementRef(getCurrentTNode(), getLView());\n}\n/**\n * Creates an ElementRef given a node.\n *\n * @param tNode The node for which you'd like an ElementRef\n * @param lView The view to which the node belongs\n * @returns The ElementRef instance to use\n */\nfunction createElementRef(tNode, lView) {\n  return new ElementRef(getNativeByTNode(tNode, lView));\n}\n/**\n * A wrapper around a native element inside of a View.\n *\n * An `ElementRef` is backed by a render-specific element. In the browser, this is usually a DOM\n * element.\n *\n * @security Permitting direct access to the DOM can make your application more vulnerable to\n * XSS attacks. Carefully review any use of `ElementRef` in your code. For more detail, see the\n * [Security Guide](https://g.co/ng/security).\n *\n * @publicApi\n */\n// Note: We don't expose things like `Injector`, `ViewContainer`, ... here,\n// i.e. users have to ask for what they need. With that, we can build better analysis tools\n// and could do better codegen in the future.\nlet ElementRef = /*#__PURE__*/(() => {\n  class ElementRef {\n    constructor(nativeElement) {\n      this.nativeElement = nativeElement;\n    }\n    /**\n     * @internal\n     * @nocollapse\n     */\n    static {\n      this.__NG_ELEMENT_ID__ = injectElementRef;\n    }\n  }\n  return ElementRef;\n})();\n/**\n * Unwraps `ElementRef` and return the `nativeElement`.\n *\n * @param value value to unwrap\n * @returns `nativeElement` if `ElementRef` otherwise returns value as is.\n */\nfunction unwrapElementRef(value) {\n  return value instanceof ElementRef ? value.nativeElement : value;\n}\nclass EventEmitter_ extends Subject {\n  constructor(isAsync = false) {\n    super();\n    this.destroyRef = undefined;\n    this.__isAsync = isAsync;\n    // Attempt to retrieve a `DestroyRef` optionally.\n    // For backwards compatibility reasons, this cannot be required\n    if (isInInjectionContext()) {\n      this.destroyRef = inject(DestroyRef, {\n        optional: true\n      }) ?? undefined;\n    }\n  }\n  emit(value) {\n    const prevConsumer = setActiveConsumer$1(null);\n    try {\n      super.next(value);\n    } finally {\n      setActiveConsumer$1(prevConsumer);\n    }\n  }\n  subscribe(observerOrNext, error, complete) {\n    let nextFn = observerOrNext;\n    let errorFn = error || (() => null);\n    let completeFn = complete;\n    if (observerOrNext && typeof observerOrNext === 'object') {\n      const observer = observerOrNext;\n      nextFn = observer.next?.bind(observer);\n      errorFn = observer.error?.bind(observer);\n      completeFn = observer.complete?.bind(observer);\n    }\n    if (this.__isAsync) {\n      errorFn = _wrapInTimeout(errorFn);\n      if (nextFn) {\n        nextFn = _wrapInTimeout(nextFn);\n      }\n      if (completeFn) {\n        completeFn = _wrapInTimeout(completeFn);\n      }\n    }\n    const sink = super.subscribe({\n      next: nextFn,\n      error: errorFn,\n      complete: completeFn\n    });\n    if (observerOrNext instanceof Subscription) {\n      observerOrNext.add(sink);\n    }\n    return sink;\n  }\n}\nfunction _wrapInTimeout(fn) {\n  return value => {\n    setTimeout(fn, undefined, value);\n  };\n}\n/**\n * @publicApi\n */\nconst EventEmitter = EventEmitter_;\nfunction symbolIterator() {\n  // @ts-expect-error accessing a private member\n  return this._results[Symbol.iterator]();\n}\n/**\n * An unmodifiable list of items that Angular keeps up to date when the state\n * of the application changes.\n *\n * The type of object that {@link ViewChildren}, {@link ContentChildren}, and {@link QueryList}\n * provide.\n *\n * Implements an iterable interface, therefore it can be used in both ES6\n * javascript `for (var i of items)` loops as well as in Angular templates with\n * `*ngFor=\"let i of myList\"`.\n *\n * Changes can be observed by subscribing to the changes `Observable`.\n *\n * NOTE: In the future this class will implement an `Observable` interface.\n *\n * @usageNotes\n * ### Example\n * ```typescript\n * @Component({...})\n * class Container {\n *   @ViewChildren(Item) items:QueryList<Item>;\n * }\n * ```\n *\n * @publicApi\n */\nclass QueryList {\n  static {\n    Symbol.iterator;\n  }\n  /**\n   * Returns `Observable` of `QueryList` notifying the subscriber of changes.\n   */\n  get changes() {\n    return this._changes ??= new EventEmitter();\n  }\n  /**\n   * @param emitDistinctChangesOnly Whether `QueryList.changes` should fire only when actual change\n   *     has occurred. Or if it should fire when query is recomputed. (recomputing could resolve in\n   *     the same result)\n   */\n  constructor(_emitDistinctChangesOnly = false) {\n    this._emitDistinctChangesOnly = _emitDistinctChangesOnly;\n    this.dirty = true;\n    this._onDirty = undefined;\n    this._results = [];\n    this._changesDetected = false;\n    this._changes = undefined;\n    this.length = 0;\n    this.first = undefined;\n    this.last = undefined;\n    // This function should be declared on the prototype, but doing so there will cause the class\n    // declaration to have side-effects and become not tree-shakable. For this reason we do it in\n    // the constructor.\n    // [Symbol.iterator](): Iterator<T> { ... }\n    const proto = QueryList.prototype;\n    if (!proto[Symbol.iterator]) proto[Symbol.iterator] = symbolIterator;\n  }\n  /**\n   * Returns the QueryList entry at `index`.\n   */\n  get(index) {\n    return this._results[index];\n  }\n  /**\n   * See\n   * [Array.map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map)\n   */\n  map(fn) {\n    return this._results.map(fn);\n  }\n  filter(fn) {\n    return this._results.filter(fn);\n  }\n  /**\n   * See\n   * [Array.find](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find)\n   */\n  find(fn) {\n    return this._results.find(fn);\n  }\n  /**\n   * See\n   * [Array.reduce](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce)\n   */\n  reduce(fn, init) {\n    return this._results.reduce(fn, init);\n  }\n  /**\n   * See\n   * [Array.forEach](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach)\n   */\n  forEach(fn) {\n    this._results.forEach(fn);\n  }\n  /**\n   * See\n   * [Array.some](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some)\n   */\n  some(fn) {\n    return this._results.some(fn);\n  }\n  /**\n   * Returns a copy of the internal results list as an Array.\n   */\n  toArray() {\n    return this._results.slice();\n  }\n  toString() {\n    return this._results.toString();\n  }\n  /**\n   * Updates the stored data of the query list, and resets the `dirty` flag to `false`, so that\n   * on change detection, it will not notify of changes to the queries, unless a new change\n   * occurs.\n   *\n   * @param resultsTree The query results to store\n   * @param identityAccessor Optional function for extracting stable object identity from a value\n   *    in the array. This function is executed for each element of the query result list while\n   *    comparing current query list with the new one (provided as a first argument of the `reset`\n   *    function) to detect if the lists are different. If the function is not provided, elements\n   *    are compared as is (without any pre-processing).\n   */\n  reset(resultsTree, identityAccessor) {\n    this.dirty = false;\n    const newResultFlat = flatten(resultsTree);\n    if (this._changesDetected = !arrayEquals(this._results, newResultFlat, identityAccessor)) {\n      this._results = newResultFlat;\n      this.length = newResultFlat.length;\n      this.last = newResultFlat[this.length - 1];\n      this.first = newResultFlat[0];\n    }\n  }\n  /**\n   * Triggers a change event by emitting on the `changes` {@link EventEmitter}.\n   */\n  notifyOnChanges() {\n    if (this._changes !== undefined && (this._changesDetected || !this._emitDistinctChangesOnly)) this._changes.emit(this);\n  }\n  /** @internal */\n  onDirty(cb) {\n    this._onDirty = cb;\n  }\n  /** internal */\n  setDirty() {\n    this.dirty = true;\n    this._onDirty?.();\n  }\n  /** internal */\n  destroy() {\n    if (this._changes !== undefined) {\n      this._changes.complete();\n      this._changes.unsubscribe();\n    }\n  }\n}\n\n/**\n * The name of an attribute that can be added to the hydration boundary node\n * (component host node) to disable hydration for the content within that boundary.\n */\nconst SKIP_HYDRATION_ATTR_NAME = 'ngSkipHydration';\n/** Lowercase name of the `ngSkipHydration` attribute used for case-insensitive comparisons. */\nconst SKIP_HYDRATION_ATTR_NAME_LOWER_CASE = 'ngskiphydration';\n/**\n * Helper function to check if a given TNode has the 'ngSkipHydration' attribute.\n */\nfunction hasSkipHydrationAttrOnTNode(tNode) {\n  const attrs = tNode.mergedAttrs;\n  if (attrs === null) return false;\n  // only ever look at the attribute name and skip the values\n  for (let i = 0; i < attrs.length; i += 2) {\n    const value = attrs[i];\n    // This is a marker, which means that the static attributes section is over,\n    // so we can exit early.\n    if (typeof value === 'number') return false;\n    if (typeof value === 'string' && value.toLowerCase() === SKIP_HYDRATION_ATTR_NAME_LOWER_CASE) {\n      return true;\n    }\n  }\n  return false;\n}\n/**\n * Helper function to check if a given RElement has the 'ngSkipHydration' attribute.\n */\nfunction hasSkipHydrationAttrOnRElement(rNode) {\n  return rNode.hasAttribute(SKIP_HYDRATION_ATTR_NAME);\n}\n/**\n * Checks whether a TNode has a flag to indicate that it's a part of\n * a skip hydration block.\n */\nfunction hasInSkipHydrationBlockFlag(tNode) {\n  return (tNode.flags & 128 /* TNodeFlags.inSkipHydrationBlock */) === 128 /* TNodeFlags.inSkipHydrationBlock */;\n}\n/**\n * Helper function that determines if a given node is within a skip hydration block\n * by navigating up the TNode tree to see if any parent nodes have skip hydration\n * attribute.\n */\nfunction isInSkipHydrationBlock(tNode) {\n  if (hasInSkipHydrationBlockFlag(tNode)) {\n    return true;\n  }\n  let currentTNode = tNode.parent;\n  while (currentTNode) {\n    if (hasInSkipHydrationBlockFlag(tNode) || hasSkipHydrationAttrOnTNode(currentTNode)) {\n      return true;\n    }\n    currentTNode = currentTNode.parent;\n  }\n  return false;\n}\n\n// Keeps track of the currently-active LViews.\nconst TRACKED_LVIEWS = /*#__PURE__*/new Map();\n// Used for generating unique IDs for LViews.\nlet uniqueIdCounter = 0;\n/** Gets a unique ID that can be assigned to an LView. */\nfunction getUniqueLViewId() {\n  return uniqueIdCounter++;\n}\n/** Starts tracking an LView. */\nfunction registerLView(lView) {\n  ngDevMode && assertNumber(lView[ID], 'LView must have an ID in order to be registered');\n  TRACKED_LVIEWS.set(lView[ID], lView);\n}\n/** Gets an LView by its unique ID. */\nfunction getLViewById(id) {\n  ngDevMode && assertNumber(id, 'ID used for LView lookup must be a number');\n  return TRACKED_LVIEWS.get(id) || null;\n}\n/** Stops tracking an LView. */\nfunction unregisterLView(lView) {\n  ngDevMode && assertNumber(lView[ID], 'Cannot stop tracking an LView that does not have an ID');\n  TRACKED_LVIEWS.delete(lView[ID]);\n}\n\n/**\n * The internal view context which is specific to a given DOM element, directive or\n * component instance. Each value in here (besides the LView and element node details)\n * can be present, null or undefined. If undefined then it implies the value has not been\n * looked up yet, otherwise, if null, then a lookup was executed and nothing was found.\n *\n * Each value will get filled when the respective value is examined within the getContext\n * function. The component, element and each directive instance will share the same instance\n * of the context.\n */\nclass LContext {\n  /** Component's parent view data. */\n  get lView() {\n    return getLViewById(this.lViewId);\n  }\n  constructor(\n  /**\n   * ID of the component's parent view data.\n   */\n  lViewId,\n  /**\n   * The index instance of the node.\n   */\n  nodeIndex,\n  /**\n   * The instance of the DOM node that is attached to the lNode.\n   */\n  native) {\n    this.lViewId = lViewId;\n    this.nodeIndex = nodeIndex;\n    this.native = native;\n  }\n}\n\n/**\n * Returns the matching `LContext` data for a given DOM node, directive or component instance.\n *\n * This function will examine the provided DOM element, component, or directive instance\\'s\n * monkey-patched property to derive the `LContext` data. Once called then the monkey-patched\n * value will be that of the newly created `LContext`.\n *\n * If the monkey-patched value is the `LView` instance then the context value for that\n * target will be created and the monkey-patch reference will be updated. Therefore when this\n * function is called it may mutate the provided element\\'s, component\\'s or any of the associated\n * directive\\'s monkey-patch values.\n *\n * If the monkey-patch value is not detected then the code will walk up the DOM until an element\n * is found which contains a monkey-patch reference. When that occurs then the provided element\n * will be updated with a new context (which is then returned). If the monkey-patch value is not\n * detected for a component/directive instance then it will throw an error (all components and\n * directives should be automatically monkey-patched by ivy).\n *\n * @param target Component, Directive or DOM Node.\n */\nfunction getLContext(target) {\n  let mpValue = readPatchedData(target);\n  if (mpValue) {\n    // only when it's an array is it considered an LView instance\n    // ... otherwise it's an already constructed LContext instance\n    if (isLView(mpValue)) {\n      const lView = mpValue;\n      let nodeIndex;\n      let component = undefined;\n      let directives = undefined;\n      if (isComponentInstance(target)) {\n        nodeIndex = findViaComponent(lView, target);\n        if (nodeIndex == -1) {\n          throw new Error('The provided component was not found in the application');\n        }\n        component = target;\n      } else if (isDirectiveInstance(target)) {\n        nodeIndex = findViaDirective(lView, target);\n        if (nodeIndex == -1) {\n          throw new Error('The provided directive was not found in the application');\n        }\n        directives = getDirectivesAtNodeIndex(nodeIndex, lView);\n      } else {\n        nodeIndex = findViaNativeElement(lView, target);\n        if (nodeIndex == -1) {\n          return null;\n        }\n      }\n      // the goal is not to fill the entire context full of data because the lookups\n      // are expensive. Instead, only the target data (the element, component, container, ICU\n      // expression or directive details) are filled into the context. If called multiple times\n      // with different target values then the missing target data will be filled in.\n      const native = unwrapRNode(lView[nodeIndex]);\n      const existingCtx = readPatchedData(native);\n      const context = existingCtx && !Array.isArray(existingCtx) ? existingCtx : createLContext(lView, nodeIndex, native);\n      // only when the component has been discovered then update the monkey-patch\n      if (component && context.component === undefined) {\n        context.component = component;\n        attachPatchData(context.component, context);\n      }\n      // only when the directives have been discovered then update the monkey-patch\n      if (directives && context.directives === undefined) {\n        context.directives = directives;\n        for (let i = 0; i < directives.length; i++) {\n          attachPatchData(directives[i], context);\n        }\n      }\n      attachPatchData(context.native, context);\n      mpValue = context;\n    }\n  } else {\n    const rElement = target;\n    ngDevMode && assertDomNode(rElement);\n    // if the context is not found then we need to traverse upwards up the DOM\n    // to find the nearest element that has already been monkey patched with data\n    let parent = rElement;\n    while (parent = parent.parentNode) {\n      const parentContext = readPatchedData(parent);\n      if (parentContext) {\n        const lView = Array.isArray(parentContext) ? parentContext : parentContext.lView;\n        // the edge of the app was also reached here through another means\n        // (maybe because the DOM was changed manually).\n        if (!lView) {\n          return null;\n        }\n        const index = findViaNativeElement(lView, rElement);\n        if (index >= 0) {\n          const native = unwrapRNode(lView[index]);\n          const context = createLContext(lView, index, native);\n          attachPatchData(native, context);\n          mpValue = context;\n          break;\n        }\n      }\n    }\n  }\n  return mpValue || null;\n}\n/**\n * Creates an empty instance of a `LContext` context\n */\nfunction createLContext(lView, nodeIndex, native) {\n  return new LContext(lView[ID], nodeIndex, native);\n}\n/**\n * Takes a component instance and returns the view for that component.\n *\n * @param componentInstance\n * @returns The component's view\n */\nfunction getComponentViewByInstance(componentInstance) {\n  let patchedData = readPatchedData(componentInstance);\n  let lView;\n  if (isLView(patchedData)) {\n    const contextLView = patchedData;\n    const nodeIndex = findViaComponent(contextLView, componentInstance);\n    lView = getComponentLViewByIndex(nodeIndex, contextLView);\n    const context = createLContext(contextLView, nodeIndex, lView[HOST]);\n    context.component = componentInstance;\n    attachPatchData(componentInstance, context);\n    attachPatchData(context.native, context);\n  } else {\n    const context = patchedData;\n    const contextLView = context.lView;\n    ngDevMode && assertLView(contextLView);\n    lView = getComponentLViewByIndex(context.nodeIndex, contextLView);\n  }\n  return lView;\n}\n/**\n * This property will be monkey-patched on elements, components and directives.\n */\nconst MONKEY_PATCH_KEY_NAME = '__ngContext__';\n/**\n * Assigns the given data to the given target (which could be a component,\n * directive or DOM node instance) using monkey-patching.\n */\nfunction attachPatchData(target, data) {\n  ngDevMode && assertDefined(target, 'Target expected');\n  // Only attach the ID of the view in order to avoid memory leaks (see #41047). We only do this\n  // for `LView`, because we have control over when an `LView` is created and destroyed, whereas\n  // we can't know when to remove an `LContext`.\n  if (isLView(data)) {\n    target[MONKEY_PATCH_KEY_NAME] = data[ID];\n    registerLView(data);\n  } else {\n    target[MONKEY_PATCH_KEY_NAME] = data;\n  }\n}\n/**\n * Returns the monkey-patch value data present on the target (which could be\n * a component, directive or a DOM node).\n */\nfunction readPatchedData(target) {\n  ngDevMode && assertDefined(target, 'Target expected');\n  const data = target[MONKEY_PATCH_KEY_NAME];\n  return typeof data === 'number' ? getLViewById(data) : data || null;\n}\nfunction readPatchedLView(target) {\n  const value = readPatchedData(target);\n  if (value) {\n    return isLView(value) ? value : value.lView;\n  }\n  return null;\n}\nfunction isComponentInstance(instance) {\n  return instance && instance.constructor && instance.constructor.ɵcmp;\n}\nfunction isDirectiveInstance(instance) {\n  return instance && instance.constructor && instance.constructor.ɵdir;\n}\n/**\n * Locates the element within the given LView and returns the matching index\n */\nfunction findViaNativeElement(lView, target) {\n  const tView = lView[TVIEW];\n  for (let i = HEADER_OFFSET; i < tView.bindingStartIndex; i++) {\n    if (unwrapRNode(lView[i]) === target) {\n      return i;\n    }\n  }\n  return -1;\n}\n/**\n * Locates the next tNode (child, sibling or parent).\n */\nfunction traverseNextElement(tNode) {\n  if (tNode.child) {\n    return tNode.child;\n  } else if (tNode.next) {\n    return tNode.next;\n  } else {\n    // Let's take the following template: <div><span>text</span></div><component/>\n    // After checking the text node, we need to find the next parent that has a \"next\" TNode,\n    // in this case the parent `div`, so that we can find the component.\n    while (tNode.parent && !tNode.parent.next) {\n      tNode = tNode.parent;\n    }\n    return tNode.parent && tNode.parent.next;\n  }\n}\n/**\n * Locates the component within the given LView and returns the matching index\n */\nfunction findViaComponent(lView, componentInstance) {\n  const componentIndices = lView[TVIEW].components;\n  if (componentIndices) {\n    for (let i = 0; i < componentIndices.length; i++) {\n      const elementComponentIndex = componentIndices[i];\n      const componentView = getComponentLViewByIndex(elementComponentIndex, lView);\n      if (componentView[CONTEXT] === componentInstance) {\n        return elementComponentIndex;\n      }\n    }\n  } else {\n    const rootComponentView = getComponentLViewByIndex(HEADER_OFFSET, lView);\n    const rootComponent = rootComponentView[CONTEXT];\n    if (rootComponent === componentInstance) {\n      // we are dealing with the root element here therefore we know that the\n      // element is the very first element after the HEADER data in the lView\n      return HEADER_OFFSET;\n    }\n  }\n  return -1;\n}\n/**\n * Locates the directive within the given LView and returns the matching index\n */\nfunction findViaDirective(lView, directiveInstance) {\n  // if a directive is monkey patched then it will (by default)\n  // have a reference to the LView of the current view. The\n  // element bound to the directive being search lives somewhere\n  // in the view data. We loop through the nodes and check their\n  // list of directives for the instance.\n  let tNode = lView[TVIEW].firstChild;\n  while (tNode) {\n    const directiveIndexStart = tNode.directiveStart;\n    const directiveIndexEnd = tNode.directiveEnd;\n    for (let i = directiveIndexStart; i < directiveIndexEnd; i++) {\n      if (lView[i] === directiveInstance) {\n        return tNode.index;\n      }\n    }\n    tNode = traverseNextElement(tNode);\n  }\n  return -1;\n}\n/**\n * Returns a list of directives applied to a node at a specific index. The list includes\n * directives matched by selector and any host directives, but it excludes components.\n * Use `getComponentAtNodeIndex` to find the component applied to a node.\n *\n * @param nodeIndex The node index\n * @param lView The target view data\n */\nfunction getDirectivesAtNodeIndex(nodeIndex, lView) {\n  const tNode = lView[TVIEW].data[nodeIndex];\n  if (tNode.directiveStart === 0) return EMPTY_ARRAY;\n  const results = [];\n  for (let i = tNode.directiveStart; i < tNode.directiveEnd; i++) {\n    const directiveInstance = lView[i];\n    if (!isComponentInstance(directiveInstance)) {\n      results.push(directiveInstance);\n    }\n  }\n  return results;\n}\nfunction getComponentAtNodeIndex(nodeIndex, lView) {\n  const tNode = lView[TVIEW].data[nodeIndex];\n  const {\n    directiveStart,\n    componentOffset\n  } = tNode;\n  return componentOffset > -1 ? lView[directiveStart + componentOffset] : null;\n}\n/**\n * Returns a map of local references (local reference name => element or directive instance) that\n * exist on a given element.\n */\nfunction discoverLocalRefs(lView, nodeIndex) {\n  const tNode = lView[TVIEW].data[nodeIndex];\n  if (tNode && tNode.localNames) {\n    const result = {};\n    let localIndex = tNode.index + 1;\n    for (let i = 0; i < tNode.localNames.length; i += 2) {\n      result[tNode.localNames[i]] = lView[localIndex];\n      localIndex++;\n    }\n    return result;\n  }\n  return null;\n}\n\n/**\n * Retrieve the root view from any component or `LView` by walking the parent `LView` until\n * reaching the root `LView`.\n *\n * @param componentOrLView any component or `LView`\n */\nfunction getRootView(componentOrLView) {\n  ngDevMode && assertDefined(componentOrLView, 'component');\n  let lView = isLView(componentOrLView) ? componentOrLView : readPatchedLView(componentOrLView);\n  while (lView && !(lView[FLAGS] & 512 /* LViewFlags.IsRoot */)) {\n    lView = getLViewParent(lView);\n  }\n  ngDevMode && assertLView(lView);\n  return lView;\n}\n/**\n * Returns the context information associated with the application where the target is situated. It\n * does this by walking the parent views until it gets to the root view, then getting the context\n * off of that.\n *\n * @param viewOrComponent the `LView` or component to get the root context for.\n */\nfunction getRootContext(viewOrComponent) {\n  const rootView = getRootView(viewOrComponent);\n  ngDevMode && assertDefined(rootView[CONTEXT], 'Root view has no context. Perhaps it is disconnected?');\n  return rootView[CONTEXT];\n}\n/**\n * Gets the first `LContainer` in the LView or `null` if none exists.\n */\nfunction getFirstLContainer(lView) {\n  return getNearestLContainer(lView[CHILD_HEAD]);\n}\n/**\n * Gets the next `LContainer` that is a sibling of the given container.\n */\nfunction getNextLContainer(container) {\n  return getNearestLContainer(container[NEXT]);\n}\nfunction getNearestLContainer(viewOrContainer) {\n  while (viewOrContainer !== null && !isLContainer(viewOrContainer)) {\n    viewOrContainer = viewOrContainer[NEXT];\n  }\n  return viewOrContainer;\n}\n\n/**\n * Retrieves the component instance associated with a given DOM element.\n *\n * @usageNotes\n * Given the following DOM structure:\n *\n * ```html\n * <app-root>\n *   <div>\n *     <child-comp></child-comp>\n *   </div>\n * </app-root>\n * ```\n *\n * Calling `getComponent` on `<child-comp>` will return the instance of `ChildComponent`\n * associated with this DOM element.\n *\n * Calling the function on `<app-root>` will return the `MyApp` instance.\n *\n *\n * @param element DOM element from which the component should be retrieved.\n * @returns Component instance associated with the element or `null` if there\n *    is no component associated with it.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getComponent$1(element) {\n  ngDevMode && assertDomElement(element);\n  const context = getLContext(element);\n  if (context === null) return null;\n  if (context.component === undefined) {\n    const lView = context.lView;\n    if (lView === null) {\n      return null;\n    }\n    context.component = getComponentAtNodeIndex(context.nodeIndex, lView);\n  }\n  return context.component;\n}\n/**\n * If inside an embedded view (e.g. `*ngIf` or `*ngFor`), retrieves the context of the embedded\n * view that the element is part of. Otherwise retrieves the instance of the component whose view\n * owns the element (in this case, the result is the same as calling `getOwningComponent`).\n *\n * @param element Element for which to get the surrounding component instance.\n * @returns Instance of the component that is around the element or null if the element isn't\n *    inside any component.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getContext(element) {\n  assertDomElement(element);\n  const context = getLContext(element);\n  const lView = context ? context.lView : null;\n  return lView === null ? null : lView[CONTEXT];\n}\n/**\n * Retrieves the component instance whose view contains the DOM element.\n *\n * For example, if `<child-comp>` is used in the template of `<app-comp>`\n * (i.e. a `ViewChild` of `<app-comp>`), calling `getOwningComponent` on `<child-comp>`\n * would return `<app-comp>`.\n *\n * @param elementOrDir DOM element, component or directive instance\n *    for which to retrieve the root components.\n * @returns Component instance whose view owns the DOM element or null if the element is not\n *    part of a component view.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getOwningComponent(elementOrDir) {\n  const context = getLContext(elementOrDir);\n  let lView = context ? context.lView : null;\n  if (lView === null) return null;\n  let parent;\n  while (lView[TVIEW].type === 2 /* TViewType.Embedded */ && (parent = getLViewParent(lView))) {\n    lView = parent;\n  }\n  return lView[FLAGS] & 512 /* LViewFlags.IsRoot */ ? null : lView[CONTEXT];\n}\n/**\n * Retrieves all root components associated with a DOM element, directive or component instance.\n * Root components are those which have been bootstrapped by Angular.\n *\n * @param elementOrDir DOM element, component or directive instance\n *    for which to retrieve the root components.\n * @returns Root components associated with the target object.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getRootComponents(elementOrDir) {\n  const lView = readPatchedLView(elementOrDir);\n  return lView !== null ? [getRootContext(lView)] : [];\n}\n/**\n * Retrieves an `Injector` associated with an element, component or directive instance.\n *\n * @param elementOrDir DOM element, component or directive instance for which to\n *    retrieve the injector.\n * @returns Injector associated with the element, component or directive instance.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getInjector(elementOrDir) {\n  const context = getLContext(elementOrDir);\n  const lView = context ? context.lView : null;\n  if (lView === null) return Injector.NULL;\n  const tNode = lView[TVIEW].data[context.nodeIndex];\n  return new NodeInjector(tNode, lView);\n}\n/**\n * Retrieve a set of injection tokens at a given DOM node.\n *\n * @param element Element for which the injection tokens should be retrieved.\n */\nfunction getInjectionTokens(element) {\n  const context = getLContext(element);\n  const lView = context ? context.lView : null;\n  if (lView === null) return [];\n  const tView = lView[TVIEW];\n  const tNode = tView.data[context.nodeIndex];\n  const providerTokens = [];\n  const startIndex = tNode.providerIndexes & 1048575 /* TNodeProviderIndexes.ProvidersStartIndexMask */;\n  const endIndex = tNode.directiveEnd;\n  for (let i = startIndex; i < endIndex; i++) {\n    let value = tView.data[i];\n    if (isDirectiveDefHack(value)) {\n      // The fact that we sometimes store Type and sometimes DirectiveDef in this location is a\n      // design flaw.  We should always store same type so that we can be monomorphic. The issue\n      // is that for Components/Directives we store the def instead the type. The correct behavior\n      // is that we should always be storing injectable type in this location.\n      value = value.type;\n    }\n    providerTokens.push(value);\n  }\n  return providerTokens;\n}\n/**\n * Retrieves directive instances associated with a given DOM node. Does not include\n * component instances.\n *\n * @usageNotes\n * Given the following DOM structure:\n *\n * ```html\n * <app-root>\n *   <button my-button></button>\n *   <my-comp></my-comp>\n * </app-root>\n * ```\n *\n * Calling `getDirectives` on `<button>` will return an array with an instance of the `MyButton`\n * directive that is associated with the DOM node.\n *\n * Calling `getDirectives` on `<my-comp>` will return an empty array.\n *\n * @param node DOM node for which to get the directives.\n * @returns Array of directives associated with the node.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getDirectives(node) {\n  // Skip text nodes because we can't have directives associated with them.\n  if (node instanceof Text) {\n    return [];\n  }\n  const context = getLContext(node);\n  const lView = context ? context.lView : null;\n  if (lView === null) {\n    return [];\n  }\n  const tView = lView[TVIEW];\n  const nodeIndex = context.nodeIndex;\n  if (!tView?.data[nodeIndex]) {\n    return [];\n  }\n  if (context.directives === undefined) {\n    context.directives = getDirectivesAtNodeIndex(nodeIndex, lView);\n  }\n  // The `directives` in this case are a named array called `LComponentView`. Clone the\n  // result so we don't expose an internal data structure in the user's console.\n  return context.directives === null ? [] : [...context.directives];\n}\n/**\n * Returns the debug (partial) metadata for a particular directive or component instance.\n * The function accepts an instance of a directive or component and returns the corresponding\n * metadata.\n *\n * @param directiveOrComponentInstance Instance of a directive or component\n * @returns metadata of the passed directive or component\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getDirectiveMetadata$1(directiveOrComponentInstance) {\n  const {\n    constructor\n  } = directiveOrComponentInstance;\n  if (!constructor) {\n    throw new Error('Unable to find the instance constructor');\n  }\n  // In case a component inherits from a directive, we may have component and directive metadata\n  // To ensure we don't get the metadata of the directive, we want to call `getComponentDef` first.\n  const componentDef = getComponentDef(constructor);\n  if (componentDef) {\n    const inputs = extractInputDebugMetadata(componentDef.inputs);\n    return {\n      inputs,\n      outputs: componentDef.outputs,\n      encapsulation: componentDef.encapsulation,\n      changeDetection: componentDef.onPush ? ChangeDetectionStrategy.OnPush : ChangeDetectionStrategy.Default\n    };\n  }\n  const directiveDef = getDirectiveDef(constructor);\n  if (directiveDef) {\n    const inputs = extractInputDebugMetadata(directiveDef.inputs);\n    return {\n      inputs,\n      outputs: directiveDef.outputs\n    };\n  }\n  return null;\n}\n/**\n * Retrieve map of local references.\n *\n * The references are retrieved as a map of local reference name to element or directive instance.\n *\n * @param target DOM element, component or directive instance for which to retrieve\n *    the local references.\n */\nfunction getLocalRefs(target) {\n  const context = getLContext(target);\n  if (context === null) return {};\n  if (context.localRefs === undefined) {\n    const lView = context.lView;\n    if (lView === null) {\n      return {};\n    }\n    context.localRefs = discoverLocalRefs(lView, context.nodeIndex);\n  }\n  return context.localRefs || {};\n}\n/**\n * Retrieves the host element of a component or directive instance.\n * The host element is the DOM element that matched the selector of the directive.\n *\n * @param componentOrDirective Component or directive instance for which the host\n *     element should be retrieved.\n * @returns Host element of the target.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getHostElement(componentOrDirective) {\n  return getLContext(componentOrDirective).native;\n}\n/**\n * Retrieves the rendered text for a given component.\n *\n * This function retrieves the host element of a component and\n * and then returns the `textContent` for that element. This implies\n * that the text returned will include re-projected content of\n * the component as well.\n *\n * @param component The component to return the content text for.\n */\nfunction getRenderedText(component) {\n  const hostElement = getHostElement(component);\n  return hostElement.textContent || '';\n}\n/**\n * Retrieves a list of event listeners associated with a DOM element. The list does include host\n * listeners, but it does not include event listeners defined outside of the Angular context\n * (e.g. through `addEventListener`).\n *\n * @usageNotes\n * Given the following DOM structure:\n *\n * ```html\n * <app-root>\n *   <div (click)=\"doSomething()\"></div>\n * </app-root>\n * ```\n *\n * Calling `getListeners` on `<div>` will return an object that looks as follows:\n *\n * ```ts\n * {\n *   name: 'click',\n *   element: <div>,\n *   callback: () => doSomething(),\n *   useCapture: false\n * }\n * ```\n *\n * @param element Element for which the DOM listeners should be retrieved.\n * @returns Array of event listeners on the DOM element.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getListeners(element) {\n  ngDevMode && assertDomElement(element);\n  const lContext = getLContext(element);\n  const lView = lContext === null ? null : lContext.lView;\n  if (lView === null) return [];\n  const tView = lView[TVIEW];\n  const lCleanup = lView[CLEANUP];\n  const tCleanup = tView.cleanup;\n  const listeners = [];\n  if (tCleanup && lCleanup) {\n    for (let i = 0; i < tCleanup.length;) {\n      const firstParam = tCleanup[i++];\n      const secondParam = tCleanup[i++];\n      if (typeof firstParam === 'string') {\n        const name = firstParam;\n        const listenerElement = unwrapRNode(lView[secondParam]);\n        const callback = lCleanup[tCleanup[i++]];\n        const useCaptureOrIndx = tCleanup[i++];\n        // if useCaptureOrIndx is boolean then report it as is.\n        // if useCaptureOrIndx is positive number then it in unsubscribe method\n        // if useCaptureOrIndx is negative number then it is a Subscription\n        const type = typeof useCaptureOrIndx === 'boolean' || useCaptureOrIndx >= 0 ? 'dom' : 'output';\n        const useCapture = typeof useCaptureOrIndx === 'boolean' ? useCaptureOrIndx : false;\n        if (element == listenerElement) {\n          listeners.push({\n            element,\n            name,\n            callback,\n            useCapture,\n            type\n          });\n        }\n      }\n    }\n  }\n  listeners.sort(sortListeners);\n  return listeners;\n}\nfunction sortListeners(a, b) {\n  if (a.name == b.name) return 0;\n  return a.name < b.name ? -1 : 1;\n}\n/**\n * This function should not exist because it is megamorphic and only mostly correct.\n *\n * See call site for more info.\n */\nfunction isDirectiveDefHack(obj) {\n  return obj.type !== undefined && obj.declaredInputs !== undefined && obj.findHostDirectiveDefs !== undefined;\n}\n/**\n * Retrieve the component `LView` from component/element.\n *\n * NOTE: `LView` is a private and should not be leaked outside.\n *       Don't export this method to `ng.*` on window.\n *\n * @param target DOM element or component instance for which to retrieve the LView.\n */\nfunction getComponentLView(target) {\n  const lContext = getLContext(target);\n  const nodeIndx = lContext.nodeIndex;\n  const lView = lContext.lView;\n  ngDevMode && assertLView(lView);\n  const componentLView = lView[nodeIndx];\n  ngDevMode && assertLView(componentLView);\n  return componentLView;\n}\n/** Asserts that a value is a DOM Element. */\nfunction assertDomElement(value) {\n  if (typeof Element !== 'undefined' && !(value instanceof Element)) {\n    throw new Error('Expecting instance of DOM Element');\n  }\n}\n/**\n * A directive definition holds additional metadata using bitwise flags to indicate\n * for example whether it is signal based.\n *\n * This information needs to be separate from the `publicName -> minifiedName`\n * mappings for backwards compatibility.\n */\nfunction extractInputDebugMetadata(inputs) {\n  const res = {};\n  for (const key in inputs) {\n    if (!inputs.hasOwnProperty(key)) {\n      continue;\n    }\n    const value = inputs[key];\n    if (value === undefined) {\n      continue;\n    }\n    let minifiedName;\n    if (Array.isArray(value)) {\n      minifiedName = value[0];\n      // flags are not used for now.\n      // TODO: Consider exposing flag information in discovery.\n    } else {\n      minifiedName = value;\n    }\n    res[key] = minifiedName;\n  }\n  return res;\n}\n\n/**\n * Most of the use of `document` in Angular is from within the DI system so it is possible to simply\n * inject the `DOCUMENT` token and are done.\n *\n * Ivy is special because it does not rely upon the DI and must get hold of the document some other\n * way.\n *\n * The solution is to define `getDocument()` and `setDocument()` top-level functions for ivy.\n * Wherever ivy needs the global document, it calls `getDocument()` instead.\n *\n * When running ivy outside of a browser environment, it is necessary to call `setDocument()` to\n * tell ivy what the global `document` is.\n *\n * Angular does this for us in each of the standard platforms (`Browser` and `Server`)\n * by calling `setDocument()` when providing the `DOCUMENT` token.\n */\nlet DOCUMENT = undefined;\n/**\n * Tell ivy what the `document` is for this platform.\n *\n * It is only necessary to call this if the current platform is not a browser.\n *\n * @param document The object representing the global `document` in this environment.\n */\nfunction setDocument(document) {\n  DOCUMENT = document;\n}\n/**\n * Access the object that represents the `document` for this platform.\n *\n * Ivy calls this whenever it needs to access the `document` object.\n * For example to create the renderer or to do sanitization.\n */\nfunction getDocument() {\n  if (DOCUMENT !== undefined) {\n    return DOCUMENT;\n  } else if (typeof document !== 'undefined') {\n    return document;\n  }\n  throw new RuntimeError(210 /* RuntimeErrorCode.MISSING_DOCUMENT */, (typeof ngDevMode === 'undefined' || ngDevMode) && `The document object is not available in this context. Make sure the DOCUMENT injection token is provided.`);\n  // No \"document\" can be found. This should only happen if we are running ivy outside Angular and\n  // the current platform is not a browser. Since this is not a supported scenario at the moment\n  // this should not happen in Angular apps.\n  // Once we support running ivy outside of Angular we will need to publish `setDocument()` as a\n  // public API.\n}\n\n/**\n * A [DI token](guide/glossary#di-token \"DI token definition\") representing a string ID, used\n * primarily for prefixing application attributes and CSS styles when\n * {@link ViewEncapsulation#Emulated} is being used.\n *\n * The token is needed in cases when multiple applications are bootstrapped on a page\n * (for example, using `bootstrapApplication` calls). In this case, ensure that those applications\n * have different `APP_ID` value setup. For example:\n *\n * ```\n * bootstrapApplication(ComponentA, {\n *   providers: [\n *     { provide: APP_ID, useValue: 'app-a' },\n *     // ... other providers ...\n *   ]\n * });\n *\n * bootstrapApplication(ComponentB, {\n *   providers: [\n *     { provide: APP_ID, useValue: 'app-b' },\n *     // ... other providers ...\n *   ]\n * });\n * ```\n *\n * By default, when there is only one application bootstrapped, you don't need to provide the\n * `APP_ID` token (the `ng` will be used as an app ID).\n *\n * @publicApi\n */\nconst APP_ID = /*#__PURE__*/new InjectionToken(ngDevMode ? 'AppId' : '', {\n  providedIn: 'root',\n  factory: () => DEFAULT_APP_ID\n});\n/** Default value of the `APP_ID` token. */\nconst DEFAULT_APP_ID = 'ng';\n/**\n * A function that is executed when a platform is initialized.\n * @publicApi\n */\nconst PLATFORM_INITIALIZER = /*#__PURE__*/new InjectionToken(ngDevMode ? 'Platform Initializer' : '');\n/**\n * A token that indicates an opaque platform ID.\n * @publicApi\n */\nconst PLATFORM_ID = /*#__PURE__*/new InjectionToken(ngDevMode ? 'Platform ID' : '', {\n  providedIn: 'platform',\n  factory: () => 'unknown' // set a default platform name, when none set explicitly\n});\n/**\n * A [DI token](guide/glossary#di-token \"DI token definition\") that indicates the root directory of\n * the application\n * @publicApi\n * @deprecated\n */\nconst PACKAGE_ROOT_URL = /*#__PURE__*/new InjectionToken(ngDevMode ? 'Application Packages Root URL' : '');\n// We keep this token here, rather than the animations package, so that modules that only care\n// about which animations module is loaded (e.g. the CDK) can retrieve it without having to\n// include extra dependencies. See #44970 for more context.\n/**\n * A [DI token](api/core/InjectionToken) that indicates which animations\n * module has been loaded.\n * @publicApi\n */\nconst ANIMATION_MODULE_TYPE = /*#__PURE__*/new InjectionToken(ngDevMode ? 'AnimationModuleType' : '');\n// TODO(crisbeto): link to CSP guide here.\n/**\n * Token used to configure the [Content Security Policy](https://web.dev/strict-csp/) nonce that\n * Angular will apply when inserting inline styles. If not provided, Angular will look up its value\n * from the `ngCspNonce` attribute of the application root node.\n *\n * @publicApi\n */\nconst CSP_NONCE = /*#__PURE__*/new InjectionToken(ngDevMode ? 'CSP nonce' : '', {\n  providedIn: 'root',\n  factory: () => {\n    // Ideally we wouldn't have to use `querySelector` here since we know that the nonce will be on\n    // the root node, but because the token value is used in renderers, it has to be available\n    // *very* early in the bootstrapping process. This should be a fairly shallow search, because\n    // the app won't have been added to the DOM yet. Some approaches that were considered:\n    // 1. Find the root node through `ApplicationRef.components[i].location` - normally this would\n    // be enough for our purposes, but the token is injected very early so the `components` array\n    // isn't populated yet.\n    // 2. Find the root `LView` through the current `LView` - renderers are a prerequisite to\n    // creating the `LView`. This means that no `LView` will have been entered when this factory is\n    // invoked for the root component.\n    // 3. Have the token factory return `() => string` which is invoked when a nonce is requested -\n    // the slightly later execution does allow us to get an `LView` reference, but the fact that\n    // it is a function means that it could be executed at *any* time (including immediately) which\n    // may lead to weird bugs.\n    // 4. Have the `ComponentFactory` read the attribute and provide it to the injector under the\n    // hood - has the same problem as #1 and #2 in that the renderer is used to query for the root\n    // node and the nonce value needs to be available when the renderer is created.\n    return getDocument().body?.querySelector('[ngCspNonce]')?.getAttribute('ngCspNonce') || null;\n  }\n});\nconst IMAGE_CONFIG_DEFAULTS = {\n  breakpoints: [16, 32, 48, 64, 96, 128, 256, 384, 640, 750, 828, 1080, 1200, 1920, 2048, 3840],\n  placeholderResolution: 30,\n  disableImageSizeWarning: false,\n  disableImageLazyLoadWarning: false\n};\n/**\n * Injection token that configures the image optimized image functionality.\n * See {@link ImageConfig} for additional information about parameters that\n * can be used.\n *\n * @see {@link NgOptimizedImage}\n * @see {@link ImageConfig}\n * @publicApi\n */\nconst IMAGE_CONFIG = /*#__PURE__*/new InjectionToken(ngDevMode ? 'ImageConfig' : '', {\n  providedIn: 'root',\n  factory: () => IMAGE_CONFIG_DEFAULTS\n});\n\n/**\n * Create a `StateKey<T>` that can be used to store value of type T with `TransferState`.\n *\n * Example:\n *\n * ```\n * const COUNTER_KEY = makeStateKey<number>('counter');\n * let value = 10;\n *\n * transferState.set(COUNTER_KEY, value);\n * ```\n *\n * @publicApi\n */\nfunction makeStateKey(key) {\n  return key;\n}\nfunction initTransferState() {\n  const transferState = new TransferState();\n  if (inject(PLATFORM_ID) === 'browser') {\n    transferState.store = retrieveTransferredState(getDocument(), inject(APP_ID));\n  }\n  return transferState;\n}\n/**\n * A key value store that is transferred from the application on the server side to the application\n * on the client side.\n *\n * The `TransferState` is available as an injectable token.\n * On the client, just inject this token using DI and use it, it will be lazily initialized.\n * On the server it's already included if `renderApplication` function is used. Otherwise, import\n * the `ServerTransferStateModule` module to make the `TransferState` available.\n *\n * The values in the store are serialized/deserialized using JSON.stringify/JSON.parse. So only\n * boolean, number, string, null and non-class objects will be serialized and deserialized in a\n * non-lossy manner.\n *\n * @publicApi\n */\nlet TransferState = /*#__PURE__*/(() => {\n  class TransferState {\n    constructor() {\n      /** @internal */\n      this.store = {};\n      this.onSerializeCallbacks = {};\n    }\n    /** @nocollapse */\n    static {\n      this.ɵprov = /** @pureOrBreakMyCode */ɵɵdefineInjectable({\n        token: TransferState,\n        providedIn: 'root',\n        factory: initTransferState\n      });\n    }\n    /**\n     * Get the value corresponding to a key. Return `defaultValue` if key is not found.\n     */\n    get(key, defaultValue) {\n      return this.store[key] !== undefined ? this.store[key] : defaultValue;\n    }\n    /**\n     * Set the value corresponding to a key.\n     */\n    set(key, value) {\n      this.store[key] = value;\n    }\n    /**\n     * Remove a key from the store.\n     */\n    remove(key) {\n      delete this.store[key];\n    }\n    /**\n     * Test whether a key exists in the store.\n     */\n    hasKey(key) {\n      return this.store.hasOwnProperty(key);\n    }\n    /**\n     * Indicates whether the state is empty.\n     */\n    get isEmpty() {\n      return Object.keys(this.store).length === 0;\n    }\n    /**\n     * Register a callback to provide the value for a key when `toJson` is called.\n     */\n    onSerialize(key, callback) {\n      this.onSerializeCallbacks[key] = callback;\n    }\n    /**\n     * Serialize the current state of the store to JSON.\n     */\n    toJson() {\n      // Call the onSerialize callbacks and put those values into the store.\n      for (const key in this.onSerializeCallbacks) {\n        if (this.onSerializeCallbacks.hasOwnProperty(key)) {\n          try {\n            this.store[key] = this.onSerializeCallbacks[key]();\n          } catch (e) {\n            console.warn('Exception in onSerialize callback: ', e);\n          }\n        }\n      }\n      // Escape script tag to avoid break out of <script> tag in serialized output.\n      // Encoding of `<` is the same behaviour as G3 script_builders.\n      return JSON.stringify(this.store).replace(/</g, '\\\\u003C');\n    }\n  }\n  return TransferState;\n})();\nfunction retrieveTransferredState(doc, appId) {\n  // Locate the script tag with the JSON data transferred from the server.\n  // The id of the script tag is set to the Angular appId + 'state'.\n  const script = doc.getElementById(appId + '-state');\n  if (script?.textContent) {\n    try {\n      // Avoid using any here as it triggers lint errors in google3 (any is not allowed).\n      // Decoding of `<` is done of the box by browsers and node.js, same behaviour as G3\n      // script_builders.\n      return JSON.parse(script.textContent);\n    } catch (e) {\n      console.warn('Exception while restoring TransferState for app ' + appId, e);\n    }\n  }\n  return {};\n}\n\n/** Encodes that the node lookup should start from the host node of this component. */\nconst REFERENCE_NODE_HOST = 'h';\n/** Encodes that the node lookup should start from the document body node. */\nconst REFERENCE_NODE_BODY = 'b';\n/**\n * Describes navigation steps that the runtime logic need to perform,\n * starting from a given (known) element.\n */\nvar NodeNavigationStep = /*#__PURE__*/function (NodeNavigationStep) {\n  NodeNavigationStep[\"FirstChild\"] = \"f\";\n  NodeNavigationStep[\"NextSibling\"] = \"n\";\n  return NodeNavigationStep;\n}(NodeNavigationStep || {});\n/**\n * Keys within serialized view data structure to represent various\n * parts. See the `SerializedView` interface below for additional information.\n */\nconst ELEMENT_CONTAINERS = 'e';\nconst TEMPLATES = 't';\nconst CONTAINERS = 'c';\nconst MULTIPLIER = 'x';\nconst NUM_ROOT_NODES = 'r';\nconst TEMPLATE_ID = 'i'; // as it's also an \"id\"\nconst NODES = 'n';\nconst DISCONNECTED_NODES = 'd';\n\n/**\n * The name of the key used in the TransferState collection,\n * where hydration information is located.\n */\nconst TRANSFER_STATE_TOKEN_ID = '__nghData__';\n/**\n * Lookup key used to reference DOM hydration data (ngh) in `TransferState`.\n */\nconst NGH_DATA_KEY = /*#__PURE__*/makeStateKey(TRANSFER_STATE_TOKEN_ID);\n/**\n * The name of the attribute that would be added to host component\n * nodes and contain a reference to a particular slot in transferred\n * state that contains the necessary hydration info for this component.\n */\nconst NGH_ATTR_NAME = 'ngh';\n/**\n * Marker used in a comment node to ensure hydration content integrity\n */\nconst SSR_CONTENT_INTEGRITY_MARKER = 'nghm';\n/**\n * Reference to a function that reads `ngh` attribute value from a given RNode\n * and retrieves hydration information from the TransferState using that value\n * as an index. Returns `null` by default, when hydration is not enabled.\n *\n * @param rNode Component's host element.\n * @param injector Injector that this component has access to.\n * @param isRootView Specifies whether we trying to read hydration info for the root view.\n */\nlet _retrieveHydrationInfoImpl = () => null;\nfunction retrieveHydrationInfoImpl(rNode, injector, isRootView = false) {\n  let nghAttrValue = rNode.getAttribute(NGH_ATTR_NAME);\n  if (nghAttrValue == null) return null;\n  // For cases when a root component also acts as an anchor node for a ViewContainerRef\n  // (for example, when ViewContainerRef is injected in a root component), there is a need\n  // to serialize information about the component itself, as well as an LContainer that\n  // represents this ViewContainerRef. Effectively, we need to serialize 2 pieces of info:\n  // (1) hydration info for the root component itself and (2) hydration info for the\n  // ViewContainerRef instance (an LContainer). Each piece of information is included into\n  // the hydration data (in the TransferState object) separately, thus we end up with 2 ids.\n  // Since we only have 1 root element, we encode both bits of info into a single string:\n  // ids are separated by the `|` char (e.g. `10|25`, where `10` is the ngh for a component view\n  // and 25 is the `ngh` for a root view which holds LContainer).\n  const [componentViewNgh, rootViewNgh] = nghAttrValue.split('|');\n  nghAttrValue = isRootView ? rootViewNgh : componentViewNgh;\n  if (!nghAttrValue) return null;\n  // We've read one of the ngh ids, keep the remaining one, so that\n  // we can set it back on the DOM element.\n  const rootNgh = rootViewNgh ? `|${rootViewNgh}` : '';\n  const remainingNgh = isRootView ? componentViewNgh : rootNgh;\n  let data = {};\n  // An element might have an empty `ngh` attribute value (e.g. `<comp ngh=\"\" />`),\n  // which means that no special annotations are required. Do not attempt to read\n  // from the TransferState in this case.\n  if (nghAttrValue !== '') {\n    const transferState = injector.get(TransferState, null, {\n      optional: true\n    });\n    if (transferState !== null) {\n      const nghData = transferState.get(NGH_DATA_KEY, []);\n      // The nghAttrValue is always a number referencing an index\n      // in the hydration TransferState data.\n      data = nghData[Number(nghAttrValue)];\n      // If the `ngh` attribute exists and has a non-empty value,\n      // the hydration info *must* be present in the TransferState.\n      // If there is no data for some reasons, this is an error.\n      ngDevMode && assertDefined(data, 'Unable to retrieve hydration info from the TransferState.');\n    }\n  }\n  const dehydratedView = {\n    data,\n    firstChild: rNode.firstChild ?? null\n  };\n  if (isRootView) {\n    // If there is hydration info present for the root view, it means that there was\n    // a ViewContainerRef injected in the root component. The root component host element\n    // acted as an anchor node in this scenario. As a result, the DOM nodes that represent\n    // embedded views in this ViewContainerRef are located as siblings to the host node,\n    // i.e. `<app-root /><#VIEW1><#VIEW2>...<!--container-->`. In this case, the current\n    // node becomes the first child of this root view and the next sibling is the first\n    // element in the DOM segment.\n    dehydratedView.firstChild = rNode;\n    // We use `0` here, since this is the slot (right after the HEADER_OFFSET)\n    // where a component LView or an LContainer is located in a root LView.\n    setSegmentHead(dehydratedView, 0, rNode.nextSibling);\n  }\n  if (remainingNgh) {\n    // If we have only used one of the ngh ids, store the remaining one\n    // back on this RNode.\n    rNode.setAttribute(NGH_ATTR_NAME, remainingNgh);\n  } else {\n    // The `ngh` attribute is cleared from the DOM node now\n    // that the data has been retrieved for all indices.\n    rNode.removeAttribute(NGH_ATTR_NAME);\n  }\n  // Note: don't check whether this node was claimed for hydration,\n  // because this node might've been previously claimed while processing\n  // template instructions.\n  ngDevMode && markRNodeAsClaimedByHydration(rNode, /* checkIfAlreadyClaimed */false);\n  ngDevMode && ngDevMode.hydratedComponents++;\n  return dehydratedView;\n}\n/**\n * Sets the implementation for the `retrieveHydrationInfo` function.\n */\nfunction enableRetrieveHydrationInfoImpl() {\n  _retrieveHydrationInfoImpl = retrieveHydrationInfoImpl;\n}\n/**\n * Retrieves hydration info by reading the value from the `ngh` attribute\n * and accessing a corresponding slot in TransferState storage.\n */\nfunction retrieveHydrationInfo(rNode, injector, isRootView = false) {\n  return _retrieveHydrationInfoImpl(rNode, injector, isRootView);\n}\n/**\n * Retrieves the necessary object from a given ViewRef to serialize:\n *  - an LView for component views\n *  - an LContainer for cases when component acts as a ViewContainerRef anchor\n *  - `null` in case of an embedded view\n */\nfunction getLNodeForHydration(viewRef) {\n  // Reading an internal field from `ViewRef` instance.\n  let lView = viewRef._lView;\n  const tView = lView[TVIEW];\n  // A registered ViewRef might represent an instance of an\n  // embedded view, in which case we do not need to annotate it.\n  if (tView.type === 2 /* TViewType.Embedded */) {\n    return null;\n  }\n  // Check if it's a root view and if so, retrieve component's\n  // LView from the first slot after the header.\n  if (isRootView(lView)) {\n    lView = lView[HEADER_OFFSET];\n  }\n  return lView;\n}\nfunction getTextNodeContent(node) {\n  return node.textContent?.replace(/\\s/gm, '');\n}\n/**\n * Restores text nodes and separators into the DOM that were lost during SSR\n * serialization. The hydration process replaces empty text nodes and text\n * nodes that are immediately adjacent to other text nodes with comment nodes\n * that this method filters on to restore those missing nodes that the\n * hydration process is expecting to be present.\n *\n * @param node The app's root HTML Element\n */\nfunction processTextNodeMarkersBeforeHydration(node) {\n  const doc = getDocument();\n  const commentNodesIterator = doc.createNodeIterator(node, NodeFilter.SHOW_COMMENT, {\n    acceptNode(node) {\n      const content = getTextNodeContent(node);\n      const isTextNodeMarker = content === \"ngetn\" /* TextNodeMarker.EmptyNode */ || content === \"ngtns\" /* TextNodeMarker.Separator */;\n      return isTextNodeMarker ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;\n    }\n  });\n  let currentNode;\n  // We cannot modify the DOM while using the commentIterator,\n  // because it throws off the iterator state.\n  // So we collect all marker nodes first and then follow up with\n  // applying the changes to the DOM: either inserting an empty node\n  // or just removing the marker if it was used as a separator.\n  const nodes = [];\n  while (currentNode = commentNodesIterator.nextNode()) {\n    nodes.push(currentNode);\n  }\n  for (const node of nodes) {\n    if (node.textContent === \"ngetn\" /* TextNodeMarker.EmptyNode */) {\n      node.replaceWith(doc.createTextNode(''));\n    } else {\n      node.remove();\n    }\n  }\n}\n/**\n * Internal type that represents a claimed node.\n * Only used in dev mode.\n */\nvar HydrationStatus = /*#__PURE__*/function (HydrationStatus) {\n  HydrationStatus[\"Hydrated\"] = \"hydrated\";\n  HydrationStatus[\"Skipped\"] = \"skipped\";\n  HydrationStatus[\"Mismatched\"] = \"mismatched\";\n  return HydrationStatus;\n}(HydrationStatus || {});\n// clang-format on\nconst HYDRATION_INFO_KEY = '__ngDebugHydrationInfo__';\nfunction patchHydrationInfo(node, info) {\n  node[HYDRATION_INFO_KEY] = info;\n}\nfunction readHydrationInfo(node) {\n  return node[HYDRATION_INFO_KEY] ?? null;\n}\n/**\n * Marks a node as \"claimed\" by hydration process.\n * This is needed to make assessments in tests whether\n * the hydration process handled all nodes.\n */\nfunction markRNodeAsClaimedByHydration(node, checkIfAlreadyClaimed = true) {\n  if (!ngDevMode) {\n    throw new Error('Calling `markRNodeAsClaimedByHydration` in prod mode ' + 'is not supported and likely a mistake.');\n  }\n  if (checkIfAlreadyClaimed && isRNodeClaimedForHydration(node)) {\n    throw new Error('Trying to claim a node, which was claimed already.');\n  }\n  patchHydrationInfo(node, {\n    status: HydrationStatus.Hydrated\n  });\n  ngDevMode.hydratedNodes++;\n}\nfunction markRNodeAsSkippedByHydration(node) {\n  if (!ngDevMode) {\n    throw new Error('Calling `markRNodeAsSkippedByHydration` in prod mode ' + 'is not supported and likely a mistake.');\n  }\n  patchHydrationInfo(node, {\n    status: HydrationStatus.Skipped\n  });\n  ngDevMode.componentsSkippedHydration++;\n}\nfunction markRNodeAsHavingHydrationMismatch(node, expectedNodeDetails = null, actualNodeDetails = null) {\n  if (!ngDevMode) {\n    throw new Error('Calling `markRNodeAsMismatchedByHydration` in prod mode ' + 'is not supported and likely a mistake.');\n  }\n  // The RNode can be a standard HTMLElement (not an Angular component or directive)\n  // The devtools component tree only displays Angular components & directives\n  // Therefore we attach the debug info to the closest component/directive\n  while (node && !getComponent$1(node)) {\n    node = node?.parentNode;\n  }\n  if (node) {\n    patchHydrationInfo(node, {\n      status: HydrationStatus.Mismatched,\n      expectedNodeDetails,\n      actualNodeDetails\n    });\n  }\n}\nfunction isRNodeClaimedForHydration(node) {\n  return readHydrationInfo(node)?.status === HydrationStatus.Hydrated;\n}\nfunction setSegmentHead(hydrationInfo, index, node) {\n  hydrationInfo.segmentHeads ??= {};\n  hydrationInfo.segmentHeads[index] = node;\n}\nfunction getSegmentHead(hydrationInfo, index) {\n  return hydrationInfo.segmentHeads?.[index] ?? null;\n}\n/**\n * Returns the size of an <ng-container>, using either the information\n * serialized in `ELEMENT_CONTAINERS` (element container size) or by\n * computing the sum of root nodes in all dehydrated views in a given\n * container (in case this `<ng-container>` was also used as a view\n * container host node, e.g. <ng-container *ngIf>).\n */\nfunction getNgContainerSize(hydrationInfo, index) {\n  const data = hydrationInfo.data;\n  let size = data[ELEMENT_CONTAINERS]?.[index] ?? null;\n  // If there is no serialized information available in the `ELEMENT_CONTAINERS` slot,\n  // check if we have info about view containers at this location (e.g.\n  // `<ng-container *ngIf>`) and use container size as a number of root nodes in this\n  // element container.\n  if (size === null && data[CONTAINERS]?.[index]) {\n    size = calcSerializedContainerSize(hydrationInfo, index);\n  }\n  return size;\n}\nfunction getSerializedContainerViews(hydrationInfo, index) {\n  return hydrationInfo.data[CONTAINERS]?.[index] ?? null;\n}\n/**\n * Computes the size of a serialized container (the number of root nodes)\n * by calculating the sum of root nodes in all dehydrated views in this container.\n */\nfunction calcSerializedContainerSize(hydrationInfo, index) {\n  const views = getSerializedContainerViews(hydrationInfo, index) ?? [];\n  let numNodes = 0;\n  for (let view of views) {\n    numNodes += view[NUM_ROOT_NODES] * (view[MULTIPLIER] ?? 1);\n  }\n  return numNodes;\n}\n/**\n * Checks whether a node is annotated as \"disconnected\", i.e. not present\n * in the DOM at serialization time. We should not attempt hydration for\n * such nodes and instead, use a regular \"creation mode\".\n */\nfunction isDisconnectedNode$1(hydrationInfo, index) {\n  // Check if we are processing disconnected info for the first time.\n  if (typeof hydrationInfo.disconnectedNodes === 'undefined') {\n    const nodeIds = hydrationInfo.data[DISCONNECTED_NODES];\n    hydrationInfo.disconnectedNodes = nodeIds ? new Set(nodeIds) : null;\n  }\n  return !!hydrationInfo.disconnectedNodes?.has(index);\n}\n\n/**\n * Internal token that specifies whether DOM reuse logic\n * during hydration is enabled.\n */\nconst IS_HYDRATION_DOM_REUSE_ENABLED = /*#__PURE__*/new InjectionToken(typeof ngDevMode === 'undefined' || !!ngDevMode ? 'IS_HYDRATION_DOM_REUSE_ENABLED' : '');\n// By default (in client rendering mode), we remove all the contents\n// of the host element and render an application after that.\nconst PRESERVE_HOST_CONTENT_DEFAULT = false;\n/**\n * Internal token that indicates whether host element content should be\n * retained during the bootstrap.\n */\nconst PRESERVE_HOST_CONTENT = /*#__PURE__*/new InjectionToken(typeof ngDevMode === 'undefined' || !!ngDevMode ? 'PRESERVE_HOST_CONTENT' : '', {\n  providedIn: 'root',\n  factory: () => PRESERVE_HOST_CONTENT_DEFAULT\n});\n/**\n * Internal token that indicates whether hydration support for i18n\n * is enabled.\n */\nconst IS_I18N_HYDRATION_ENABLED = /*#__PURE__*/new InjectionToken(typeof ngDevMode === 'undefined' || !!ngDevMode ? 'IS_I18N_HYDRATION_ENABLED' : '');\n\n/**\n * @fileoverview\n * A module to facilitate use of a Trusted Types policy internally within\n * Angular. It lazily constructs the Trusted Types policy, providing helper\n * utilities for promoting strings to Trusted Types. When Trusted Types are not\n * available, strings are used as a fallback.\n * @security All use of this module is security-sensitive and should go through\n * security review.\n */\n/**\n * The Trusted Types policy, or null if Trusted Types are not\n * enabled/supported, or undefined if the policy has not been created yet.\n */\nlet policy$1;\n/**\n * Returns the Trusted Types policy, or null if Trusted Types are not\n * enabled/supported. The first call to this function will create the policy.\n */\nfunction getPolicy$1() {\n  if (policy$1 === undefined) {\n    policy$1 = null;\n    if (_global.trustedTypes) {\n      try {\n        policy$1 = _global.trustedTypes.createPolicy('angular', {\n          createHTML: s => s,\n          createScript: s => s,\n          createScriptURL: s => s\n        });\n      } catch {\n        // trustedTypes.createPolicy throws if called with a name that is\n        // already registered, even in report-only mode. Until the API changes,\n        // catch the error not to break the applications functionally. In such\n        // cases, the code will fall back to using strings.\n      }\n    }\n  }\n  return policy$1;\n}\n/**\n * Unsafely promote a string to a TrustedHTML, falling back to strings when\n * Trusted Types are not available.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that the\n * provided string will never cause an XSS vulnerability if used in a context\n * that will be interpreted as HTML by a browser, e.g. when assigning to\n * element.innerHTML.\n */\nfunction trustedHTMLFromString(html) {\n  return getPolicy$1()?.createHTML(html) || html;\n}\n/**\n * Unsafely promote a string to a TrustedScript, falling back to strings when\n * Trusted Types are not available.\n * @security In particular, it must be assured that the provided string will\n * never cause an XSS vulnerability if used in a context that will be\n * interpreted and executed as a script by a browser, e.g. when calling eval.\n */\nfunction trustedScriptFromString(script) {\n  return getPolicy$1()?.createScript(script) || script;\n}\n/**\n * Unsafely promote a string to a TrustedScriptURL, falling back to strings\n * when Trusted Types are not available.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that the\n * provided string will never cause an XSS vulnerability if used in a context\n * that will cause a browser to load and execute a resource, e.g. when\n * assigning to script.src.\n */\nfunction trustedScriptURLFromString(url) {\n  return getPolicy$1()?.createScriptURL(url) || url;\n}\n/**\n * Unsafely call the Function constructor with the given string arguments. It\n * is only available in development mode, and should be stripped out of\n * production code.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that it\n * is only called from development code, as use in production code can lead to\n * XSS vulnerabilities.\n */\nfunction newTrustedFunctionForDev(...args) {\n  if (typeof ngDevMode === 'undefined') {\n    throw new Error('newTrustedFunctionForDev should never be called in production');\n  }\n  if (!_global.trustedTypes) {\n    // In environments that don't support Trusted Types, fall back to the most\n    // straightforward implementation:\n    return new Function(...args);\n  }\n  // Chrome currently does not support passing TrustedScript to the Function\n  // constructor. The following implements the workaround proposed on the page\n  // below, where the Chromium bug is also referenced:\n  // https://github.com/w3c/webappsec-trusted-types/wiki/Trusted-Types-for-function-constructor\n  const fnArgs = args.slice(0, -1).join(',');\n  const fnBody = args[args.length - 1];\n  const body = `(function anonymous(${fnArgs}\n) { ${fnBody}\n})`;\n  // Using eval directly confuses the compiler and prevents this module from\n  // being stripped out of JS binaries even if not used. The global['eval']\n  // indirection fixes that.\n  const fn = _global['eval'](trustedScriptFromString(body));\n  if (fn.bind === undefined) {\n    // Workaround for a browser bug that only exists in Chrome 83, where passing\n    // a TrustedScript to eval just returns the TrustedScript back without\n    // evaluating it. In that case, fall back to the most straightforward\n    // implementation:\n    return new Function(...args);\n  }\n  // To completely mimic the behavior of calling \"new Function\", two more\n  // things need to happen:\n  // 1. Stringifying the resulting function should return its source code\n  fn.toString = () => body;\n  // 2. When calling the resulting function, `this` should refer to `global`\n  return fn.bind(_global);\n  // When Trusted Types support in Function constructors is widely available,\n  // the implementation of this function can be simplified to:\n  // return new Function(...args.map(a => trustedScriptFromString(a)));\n}\n\n/**\n * @fileoverview\n * A module to facilitate use of a Trusted Types policy internally within\n * Angular specifically for bypassSecurityTrust* and custom sanitizers. It\n * lazily constructs the Trusted Types policy, providing helper utilities for\n * promoting strings to Trusted Types. When Trusted Types are not available,\n * strings are used as a fallback.\n * @security All use of this module is security-sensitive and should go through\n * security review.\n */\n/**\n * The Trusted Types policy, or null if Trusted Types are not\n * enabled/supported, or undefined if the policy has not been created yet.\n */\nlet policy;\n/**\n * Returns the Trusted Types policy, or null if Trusted Types are not\n * enabled/supported. The first call to this function will create the policy.\n */\nfunction getPolicy() {\n  if (policy === undefined) {\n    policy = null;\n    if (_global.trustedTypes) {\n      try {\n        policy = _global.trustedTypes.createPolicy('angular#unsafe-bypass', {\n          createHTML: s => s,\n          createScript: s => s,\n          createScriptURL: s => s\n        });\n      } catch {\n        // trustedTypes.createPolicy throws if called with a name that is\n        // already registered, even in report-only mode. Until the API changes,\n        // catch the error not to break the applications functionally. In such\n        // cases, the code will fall back to using strings.\n      }\n    }\n  }\n  return policy;\n}\n/**\n * Unsafely promote a string to a TrustedHTML, falling back to strings when\n * Trusted Types are not available.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that it\n * is only passed strings that come directly from custom sanitizers or the\n * bypassSecurityTrust* functions.\n */\nfunction trustedHTMLFromStringBypass(html) {\n  return getPolicy()?.createHTML(html) || html;\n}\n/**\n * Unsafely promote a string to a TrustedScript, falling back to strings when\n * Trusted Types are not available.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that it\n * is only passed strings that come directly from custom sanitizers or the\n * bypassSecurityTrust* functions.\n */\nfunction trustedScriptFromStringBypass(script) {\n  return getPolicy()?.createScript(script) || script;\n}\n/**\n * Unsafely promote a string to a TrustedScriptURL, falling back to strings\n * when Trusted Types are not available.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that it\n * is only passed strings that come directly from custom sanitizers or the\n * bypassSecurityTrust* functions.\n */\nfunction trustedScriptURLFromStringBypass(url) {\n  return getPolicy()?.createScriptURL(url) || url;\n}\nclass SafeValueImpl {\n  constructor(changingThisBreaksApplicationSecurity) {\n    this.changingThisBreaksApplicationSecurity = changingThisBreaksApplicationSecurity;\n  }\n  toString() {\n    return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}` + ` (see ${XSS_SECURITY_URL})`;\n  }\n}\nclass SafeHtmlImpl extends SafeValueImpl {\n  getTypeName() {\n    return \"HTML\" /* BypassType.Html */;\n  }\n}\nclass SafeStyleImpl extends SafeValueImpl {\n  getTypeName() {\n    return \"Style\" /* BypassType.Style */;\n  }\n}\nclass SafeScriptImpl extends SafeValueImpl {\n  getTypeName() {\n    return \"Script\" /* BypassType.Script */;\n  }\n}\nclass SafeUrlImpl extends SafeValueImpl {\n  getTypeName() {\n    return \"URL\" /* BypassType.Url */;\n  }\n}\nclass SafeResourceUrlImpl extends SafeValueImpl {\n  getTypeName() {\n    return \"ResourceURL\" /* BypassType.ResourceUrl */;\n  }\n}\nfunction unwrapSafeValue(value) {\n  return value instanceof SafeValueImpl ? value.changingThisBreaksApplicationSecurity : value;\n}\nfunction allowSanitizationBypassAndThrow(value, type) {\n  const actualType = getSanitizationBypassType(value);\n  if (actualType != null && actualType !== type) {\n    // Allow ResourceURLs in URL contexts, they are strictly more trusted.\n    if (actualType === \"ResourceURL\" /* BypassType.ResourceUrl */ && type === \"URL\" /* BypassType.Url */) return true;\n    throw new Error(`Required a safe ${type}, got a ${actualType} (see ${XSS_SECURITY_URL})`);\n  }\n  return actualType === type;\n}\nfunction getSanitizationBypassType(value) {\n  return value instanceof SafeValueImpl && value.getTypeName() || null;\n}\n/**\n * Mark `html` string as trusted.\n *\n * This function wraps the trusted string in `String` and brands it in a way which makes it\n * recognizable to {@link htmlSanitizer} to be trusted implicitly.\n *\n * @param trustedHtml `html` string which needs to be implicitly trusted.\n * @returns a `html` which has been branded to be implicitly trusted.\n */\nfunction bypassSanitizationTrustHtml(trustedHtml) {\n  return new SafeHtmlImpl(trustedHtml);\n}\n/**\n * Mark `style` string as trusted.\n *\n * This function wraps the trusted string in `String` and brands it in a way which makes it\n * recognizable to {@link styleSanitizer} to be trusted implicitly.\n *\n * @param trustedStyle `style` string which needs to be implicitly trusted.\n * @returns a `style` hich has been branded to be implicitly trusted.\n */\nfunction bypassSanitizationTrustStyle(trustedStyle) {\n  return new SafeStyleImpl(trustedStyle);\n}\n/**\n * Mark `script` string as trusted.\n *\n * This function wraps the trusted string in `String` and brands it in a way which makes it\n * recognizable to {@link scriptSanitizer} to be trusted implicitly.\n *\n * @param trustedScript `script` string which needs to be implicitly trusted.\n * @returns a `script` which has been branded to be implicitly trusted.\n */\nfunction bypassSanitizationTrustScript(trustedScript) {\n  return new SafeScriptImpl(trustedScript);\n}\n/**\n * Mark `url` string as trusted.\n *\n * This function wraps the trusted string in `String` and brands it in a way which makes it\n * recognizable to {@link urlSanitizer} to be trusted implicitly.\n *\n * @param trustedUrl `url` string which needs to be implicitly trusted.\n * @returns a `url`  which has been branded to be implicitly trusted.\n */\nfunction bypassSanitizationTrustUrl(trustedUrl) {\n  return new SafeUrlImpl(trustedUrl);\n}\n/**\n * Mark `url` string as trusted.\n *\n * This function wraps the trusted string in `String` and brands it in a way which makes it\n * recognizable to {@link resourceUrlSanitizer} to be trusted implicitly.\n *\n * @param trustedResourceUrl `url` string which needs to be implicitly trusted.\n * @returns a `url` which has been branded to be implicitly trusted.\n */\nfunction bypassSanitizationTrustResourceUrl(trustedResourceUrl) {\n  return new SafeResourceUrlImpl(trustedResourceUrl);\n}\n\n/**\n * This helper is used to get hold of an inert tree of DOM elements containing dirty HTML\n * that needs sanitizing.\n * Depending upon browser support we use one of two strategies for doing this.\n * Default: DOMParser strategy\n * Fallback: InertDocument strategy\n */\nfunction getInertBodyHelper(defaultDoc) {\n  const inertDocumentHelper = new InertDocumentHelper(defaultDoc);\n  return isDOMParserAvailable() ? new DOMParserHelper(inertDocumentHelper) : inertDocumentHelper;\n}\n/**\n * Uses DOMParser to create and fill an inert body element.\n * This is the default strategy used in browsers that support it.\n */\nclass DOMParserHelper {\n  constructor(inertDocumentHelper) {\n    this.inertDocumentHelper = inertDocumentHelper;\n  }\n  getInertBodyElement(html) {\n    // We add these extra elements to ensure that the rest of the content is parsed as expected\n    // e.g. leading whitespace is maintained and tags like `<meta>` do not get hoisted to the\n    // `<head>` tag. Note that the `<body>` tag is closed implicitly to prevent unclosed tags\n    // in `html` from consuming the otherwise explicit `</body>` tag.\n    html = '<body><remove></remove>' + html;\n    try {\n      const body = new window.DOMParser().parseFromString(trustedHTMLFromString(html), 'text/html').body;\n      if (body === null) {\n        // In some browsers (e.g. Mozilla/5.0 iPad AppleWebKit Mobile) the `body` property only\n        // becomes available in the following tick of the JS engine. In that case we fall back to\n        // the `inertDocumentHelper` instead.\n        return this.inertDocumentHelper.getInertBodyElement(html);\n      }\n      body.removeChild(body.firstChild);\n      return body;\n    } catch {\n      return null;\n    }\n  }\n}\n/**\n * Use an HTML5 `template` element to create and fill an inert DOM element.\n * This is the fallback strategy if the browser does not support DOMParser.\n */\nclass InertDocumentHelper {\n  constructor(defaultDoc) {\n    this.defaultDoc = defaultDoc;\n    this.inertDocument = this.defaultDoc.implementation.createHTMLDocument('sanitization-inert');\n  }\n  getInertBodyElement(html) {\n    const templateEl = this.inertDocument.createElement('template');\n    templateEl.innerHTML = trustedHTMLFromString(html);\n    return templateEl;\n  }\n}\n/**\n * We need to determine whether the DOMParser exists in the global context and\n * supports parsing HTML; HTML parsing support is not as wide as other formats, see\n * https://developer.mozilla.org/en-US/docs/Web/API/DOMParser#Browser_compatibility.\n *\n * @suppress {uselessCode}\n */\nfunction isDOMParserAvailable() {\n  try {\n    return !!new window.DOMParser().parseFromString(trustedHTMLFromString(''), 'text/html');\n  } catch {\n    return false;\n  }\n}\n\n/**\n * A pattern that recognizes URLs that are safe wrt. XSS in URL navigation\n * contexts.\n *\n * This regular expression matches a subset of URLs that will not cause script\n * execution if used in URL context within a HTML document. Specifically, this\n * regular expression matches if:\n * (1) Either a protocol that is not javascript:, and that has valid characters\n *     (alphanumeric or [+-.]).\n * (2) or no protocol.  A protocol must be followed by a colon. The below\n *     allows that by allowing colons only after one of the characters [/?#].\n *     A colon after a hash (#) must be in the fragment.\n *     Otherwise, a colon after a (?) must be in a query.\n *     Otherwise, a colon after a single solidus (/) must be in a path.\n *     Otherwise, a colon after a double solidus (//) must be in the authority\n *     (before port).\n *\n * The pattern disallows &, used in HTML entity declarations before\n * one of the characters in [/?#]. This disallows HTML entities used in the\n * protocol name, which should never happen, e.g. \"h&#116;tp\" for \"http\".\n * It also disallows HTML entities in the first path part of a relative path,\n * e.g. \"foo&lt;bar/baz\".  Our existing escaping functions should not produce\n * that. More importantly, it disallows masking of a colon,\n * e.g. \"javascript&#58;...\".\n *\n * This regular expression was taken from the Closure sanitization library.\n */\nconst SAFE_URL_PATTERN = /^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\\/?#]*(?:[\\/?#]|$))/i;\nfunction _sanitizeUrl(url) {\n  url = String(url);\n  if (url.match(SAFE_URL_PATTERN)) return url;\n  if (typeof ngDevMode === 'undefined' || ngDevMode) {\n    console.warn(`WARNING: sanitizing unsafe URL value ${url} (see ${XSS_SECURITY_URL})`);\n  }\n  return 'unsafe:' + url;\n}\nfunction tagSet(tags) {\n  const res = {};\n  for (const t of tags.split(',')) res[t] = true;\n  return res;\n}\nfunction merge(...sets) {\n  const res = {};\n  for (const s of sets) {\n    for (const v in s) {\n      if (s.hasOwnProperty(v)) res[v] = true;\n    }\n  }\n  return res;\n}\n// Good source of info about elements and attributes\n// https://html.spec.whatwg.org/#semantics\n// https://simon.html5.org/html-elements\n// Safe Void Elements - HTML5\n// https://html.spec.whatwg.org/#void-elements\nconst VOID_ELEMENTS = /*#__PURE__*/tagSet('area,br,col,hr,img,wbr');\n// Elements that you can, intentionally, leave open (and which close themselves)\n// https://html.spec.whatwg.org/#optional-tags\nconst OPTIONAL_END_TAG_BLOCK_ELEMENTS = /*#__PURE__*/tagSet('colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr');\nconst OPTIONAL_END_TAG_INLINE_ELEMENTS = /*#__PURE__*/tagSet('rp,rt');\nconst OPTIONAL_END_TAG_ELEMENTS = /*#__PURE__*/merge(OPTIONAL_END_TAG_INLINE_ELEMENTS, OPTIONAL_END_TAG_BLOCK_ELEMENTS);\n// Safe Block Elements - HTML5\nconst BLOCK_ELEMENTS = /*#__PURE__*/merge(OPTIONAL_END_TAG_BLOCK_ELEMENTS, /*#__PURE__*/tagSet('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'));\n// Inline Elements - HTML5\nconst INLINE_ELEMENTS = /*#__PURE__*/merge(OPTIONAL_END_TAG_INLINE_ELEMENTS, /*#__PURE__*/tagSet('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'));\nconst VALID_ELEMENTS = /*#__PURE__*/merge(VOID_ELEMENTS, BLOCK_ELEMENTS, INLINE_ELEMENTS, OPTIONAL_END_TAG_ELEMENTS);\n// Attributes that have href and hence need to be sanitized\nconst URI_ATTRS = /*#__PURE__*/tagSet('background,cite,href,itemtype,longdesc,poster,src,xlink:href');\nconst HTML_ATTRS = /*#__PURE__*/tagSet('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');\n// Accessibility attributes as per WAI-ARIA 1.1 (W3C Working Draft 14 December 2018)\nconst ARIA_ATTRS = /*#__PURE__*/tagSet('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');\n// NB: This currently consciously doesn't support SVG. SVG sanitization has had several security\n// issues in the past, so it seems safer to leave it out if possible. If support for binding SVG via\n// innerHTML is required, SVG attributes should be added here.\n// NB: Sanitization does not allow <form> elements or other active elements (<button> etc). Those\n// can be sanitized, but they increase security surface area without a legitimate use case, so they\n// are left out here.\nconst VALID_ATTRS = /*#__PURE__*/merge(URI_ATTRS, HTML_ATTRS, ARIA_ATTRS);\n// Elements whose content should not be traversed/preserved, if the elements themselves are invalid.\n//\n// Typically, `<invalid>Some content</invalid>` would traverse (and in this case preserve)\n// `Some content`, but strip `invalid-element` opening/closing tags. For some elements, though, we\n// don't want to preserve the content, if the elements themselves are going to be removed.\nconst SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS = /*#__PURE__*/tagSet('script,style,template');\n/**\n * SanitizingHtmlSerializer serializes a DOM fragment, stripping out any unsafe elements and unsafe\n * attributes.\n */\nclass SanitizingHtmlSerializer {\n  constructor() {\n    // Explicitly track if something was stripped, to avoid accidentally warning of sanitization just\n    // because characters were re-encoded.\n    this.sanitizedSomething = false;\n    this.buf = [];\n  }\n  sanitizeChildren(el) {\n    // This cannot use a TreeWalker, as it has to run on Angular's various DOM adapters.\n    // However this code never accesses properties off of `document` before deleting its contents\n    // again, so it shouldn't be vulnerable to DOM clobbering.\n    let current = el.firstChild;\n    let traverseContent = true;\n    let parentNodes = [];\n    while (current) {\n      if (current.nodeType === Node.ELEMENT_NODE) {\n        traverseContent = this.startElement(current);\n      } else if (current.nodeType === Node.TEXT_NODE) {\n        this.chars(current.nodeValue);\n      } else {\n        // Strip non-element, non-text nodes.\n        this.sanitizedSomething = true;\n      }\n      if (traverseContent && current.firstChild) {\n        // Push current node to the parent stack before entering its content.\n        parentNodes.push(current);\n        current = getFirstChild(current);\n        continue;\n      }\n      while (current) {\n        // Leaving the element.\n        // Walk up and to the right, closing tags as we go.\n        if (current.nodeType === Node.ELEMENT_NODE) {\n          this.endElement(current);\n        }\n        let next = getNextSibling(current);\n        if (next) {\n          current = next;\n          break;\n        }\n        // There was no next sibling, walk up to the parent node (extract it from the stack).\n        current = parentNodes.pop();\n      }\n    }\n    return this.buf.join('');\n  }\n  /**\n   * Sanitizes an opening element tag (if valid) and returns whether the element's contents should\n   * be traversed. Element content must always be traversed (even if the element itself is not\n   * valid/safe), unless the element is one of `SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS`.\n   *\n   * @param element The element to sanitize.\n   * @return True if the element's contents should be traversed.\n   */\n  startElement(element) {\n    const tagName = getNodeName(element).toLowerCase();\n    if (!VALID_ELEMENTS.hasOwnProperty(tagName)) {\n      this.sanitizedSomething = true;\n      return !SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS.hasOwnProperty(tagName);\n    }\n    this.buf.push('<');\n    this.buf.push(tagName);\n    const elAttrs = element.attributes;\n    for (let i = 0; i < elAttrs.length; i++) {\n      const elAttr = elAttrs.item(i);\n      const attrName = elAttr.name;\n      const lower = attrName.toLowerCase();\n      if (!VALID_ATTRS.hasOwnProperty(lower)) {\n        this.sanitizedSomething = true;\n        continue;\n      }\n      let value = elAttr.value;\n      // TODO(martinprobst): Special case image URIs for data:image/...\n      if (URI_ATTRS[lower]) value = _sanitizeUrl(value);\n      this.buf.push(' ', attrName, '=\"', encodeEntities(value), '\"');\n    }\n    this.buf.push('>');\n    return true;\n  }\n  endElement(current) {\n    const tagName = getNodeName(current).toLowerCase();\n    if (VALID_ELEMENTS.hasOwnProperty(tagName) && !VOID_ELEMENTS.hasOwnProperty(tagName)) {\n      this.buf.push('</');\n      this.buf.push(tagName);\n      this.buf.push('>');\n    }\n  }\n  chars(chars) {\n    this.buf.push(encodeEntities(chars));\n  }\n}\n/**\n * Verifies whether a given child node is a descendant of a given parent node.\n * It may not be the case when properties like `.firstChild` are clobbered and\n * accessing `.firstChild` results in an unexpected node returned.\n */\nfunction isClobberedElement(parentNode, childNode) {\n  return (parentNode.compareDocumentPosition(childNode) & Node.DOCUMENT_POSITION_CONTAINED_BY) !== Node.DOCUMENT_POSITION_CONTAINED_BY;\n}\n/**\n * Retrieves next sibling node and makes sure that there is no\n * clobbering of the `nextSibling` property happening.\n */\nfunction getNextSibling(node) {\n  const nextSibling = node.nextSibling;\n  // Make sure there is no `nextSibling` clobbering: navigating to\n  // the next sibling and going back to the previous one should result\n  // in the original node.\n  if (nextSibling && node !== nextSibling.previousSibling) {\n    throw clobberedElementError(nextSibling);\n  }\n  return nextSibling;\n}\n/**\n * Retrieves first child node and makes sure that there is no\n * clobbering of the `firstChild` property happening.\n */\nfunction getFirstChild(node) {\n  const firstChild = node.firstChild;\n  if (firstChild && isClobberedElement(node, firstChild)) {\n    throw clobberedElementError(firstChild);\n  }\n  return firstChild;\n}\n/** Gets a reasonable nodeName, even for clobbered nodes. */\nfunction getNodeName(node) {\n  const nodeName = node.nodeName;\n  // If the property is clobbered, assume it is an `HTMLFormElement`.\n  return typeof nodeName === 'string' ? nodeName : 'FORM';\n}\nfunction clobberedElementError(node) {\n  return new Error(`Failed to sanitize html because the element is clobbered: ${node.outerHTML}`);\n}\n// Regular Expressions for parsing tags and attributes\nconst SURROGATE_PAIR_REGEXP = /[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/g;\n// ! to ~ is the ASCII range.\nconst NON_ALPHANUMERIC_REGEXP = /([^\\#-~ |!])/g;\n/**\n * Escapes all potentially dangerous characters, so that the\n * resulting string can be safely inserted into attribute or\n * element text.\n * @param value\n */\nfunction encodeEntities(value) {\n  return value.replace(/&/g, '&amp;').replace(SURROGATE_PAIR_REGEXP, function (match) {\n    const hi = match.charCodeAt(0);\n    const low = match.charCodeAt(1);\n    return '&#' + ((hi - 0xD800) * 0x400 + (low - 0xDC00) + 0x10000) + ';';\n  }).replace(NON_ALPHANUMERIC_REGEXP, function (match) {\n    return '&#' + match.charCodeAt(0) + ';';\n  }).replace(/</g, '&lt;').replace(/>/g, '&gt;');\n}\nlet inertBodyHelper;\n/**\n * Sanitizes the given unsafe, untrusted HTML fragment, and returns HTML text that is safe to add to\n * the DOM in a browser environment.\n */\nfunction _sanitizeHtml(defaultDoc, unsafeHtmlInput) {\n  let inertBodyElement = null;\n  try {\n    inertBodyHelper = inertBodyHelper || getInertBodyHelper(defaultDoc);\n    // Make sure unsafeHtml is actually a string (TypeScript types are not enforced at runtime).\n    let unsafeHtml = unsafeHtmlInput ? String(unsafeHtmlInput) : '';\n    inertBodyElement = inertBodyHelper.getInertBodyElement(unsafeHtml);\n    // mXSS protection. Repeatedly parse the document to make sure it stabilizes, so that a browser\n    // trying to auto-correct incorrect HTML cannot cause formerly inert HTML to become dangerous.\n    let mXSSAttempts = 5;\n    let parsedHtml = unsafeHtml;\n    do {\n      if (mXSSAttempts === 0) {\n        throw new Error('Failed to sanitize html because the input is unstable');\n      }\n      mXSSAttempts--;\n      unsafeHtml = parsedHtml;\n      parsedHtml = inertBodyElement.innerHTML;\n      inertBodyElement = inertBodyHelper.getInertBodyElement(unsafeHtml);\n    } while (unsafeHtml !== parsedHtml);\n    const sanitizer = new SanitizingHtmlSerializer();\n    const safeHtml = sanitizer.sanitizeChildren(getTemplateContent(inertBodyElement) || inertBodyElement);\n    if ((typeof ngDevMode === 'undefined' || ngDevMode) && sanitizer.sanitizedSomething) {\n      console.warn(`WARNING: sanitizing HTML stripped some content, see ${XSS_SECURITY_URL}`);\n    }\n    return trustedHTMLFromString(safeHtml);\n  } finally {\n    // In case anything goes wrong, clear out inertElement to reset the entire DOM structure.\n    if (inertBodyElement) {\n      const parent = getTemplateContent(inertBodyElement) || inertBodyElement;\n      while (parent.firstChild) {\n        parent.removeChild(parent.firstChild);\n      }\n    }\n  }\n}\nfunction getTemplateContent(el) {\n  return 'content' in el /** Microsoft/TypeScript#21517 */ && isTemplateElement(el) ? el.content : null;\n}\nfunction isTemplateElement(el) {\n  return el.nodeType === Node.ELEMENT_NODE && el.nodeName === 'TEMPLATE';\n}\n\n/**\n * A SecurityContext marks a location that has dangerous security implications, e.g. a DOM property\n * like `innerHTML` that could cause Cross Site Scripting (XSS) security bugs when improperly\n * handled.\n *\n * See DomSanitizer for more details on security in Angular applications.\n *\n * @publicApi\n */\nvar SecurityContext = /*#__PURE__*/function (SecurityContext) {\n  SecurityContext[SecurityContext[\"NONE\"] = 0] = \"NONE\";\n  SecurityContext[SecurityContext[\"HTML\"] = 1] = \"HTML\";\n  SecurityContext[SecurityContext[\"STYLE\"] = 2] = \"STYLE\";\n  SecurityContext[SecurityContext[\"SCRIPT\"] = 3] = \"SCRIPT\";\n  SecurityContext[SecurityContext[\"URL\"] = 4] = \"URL\";\n  SecurityContext[SecurityContext[\"RESOURCE_URL\"] = 5] = \"RESOURCE_URL\";\n  return SecurityContext;\n}(SecurityContext || {});\n/**\n * An `html` sanitizer which converts untrusted `html` **string** into trusted string by removing\n * dangerous content.\n *\n * This method parses the `html` and locates potentially dangerous content (such as urls and\n * javascript) and removes it.\n *\n * It is possible to mark a string as trusted by calling {@link bypassSanitizationTrustHtml}.\n *\n * @param unsafeHtml untrusted `html`, typically from the user.\n * @returns `html` string which is safe to display to user, because all of the dangerous javascript\n * and urls have been removed.\n *\n * @codeGenApi\n */\nfunction ɵɵsanitizeHtml(unsafeHtml) {\n  const sanitizer = getSanitizer();\n  if (sanitizer) {\n    return trustedHTMLFromStringBypass(sanitizer.sanitize(SecurityContext.HTML, unsafeHtml) || '');\n  }\n  if (allowSanitizationBypassAndThrow(unsafeHtml, \"HTML\" /* BypassType.Html */)) {\n    return trustedHTMLFromStringBypass(unwrapSafeValue(unsafeHtml));\n  }\n  return _sanitizeHtml(getDocument(), renderStringify(unsafeHtml));\n}\n/**\n * A `style` sanitizer which converts untrusted `style` **string** into trusted string by removing\n * dangerous content.\n *\n * It is possible to mark a string as trusted by calling {@link bypassSanitizationTrustStyle}.\n *\n * @param unsafeStyle untrusted `style`, typically from the user.\n * @returns `style` string which is safe to bind to the `style` properties.\n *\n * @codeGenApi\n */\nfunction ɵɵsanitizeStyle(unsafeStyle) {\n  const sanitizer = getSanitizer();\n  if (sanitizer) {\n    return sanitizer.sanitize(SecurityContext.STYLE, unsafeStyle) || '';\n  }\n  if (allowSanitizationBypassAndThrow(unsafeStyle, \"Style\" /* BypassType.Style */)) {\n    return unwrapSafeValue(unsafeStyle);\n  }\n  return renderStringify(unsafeStyle);\n}\n/**\n * A `url` sanitizer which converts untrusted `url` **string** into trusted string by removing\n * dangerous\n * content.\n *\n * This method parses the `url` and locates potentially dangerous content (such as javascript) and\n * removes it.\n *\n * It is possible to mark a string as trusted by calling {@link bypassSanitizationTrustUrl}.\n *\n * @param unsafeUrl untrusted `url`, typically from the user.\n * @returns `url` string which is safe to bind to the `src` properties such as `<img src>`, because\n * all of the dangerous javascript has been removed.\n *\n * @codeGenApi\n */\nfunction ɵɵsanitizeUrl(unsafeUrl) {\n  const sanitizer = getSanitizer();\n  if (sanitizer) {\n    return sanitizer.sanitize(SecurityContext.URL, unsafeUrl) || '';\n  }\n  if (allowSanitizationBypassAndThrow(unsafeUrl, \"URL\" /* BypassType.Url */)) {\n    return unwrapSafeValue(unsafeUrl);\n  }\n  return _sanitizeUrl(renderStringify(unsafeUrl));\n}\n/**\n * A `url` sanitizer which only lets trusted `url`s through.\n *\n * This passes only `url`s marked trusted by calling {@link bypassSanitizationTrustResourceUrl}.\n *\n * @param unsafeResourceUrl untrusted `url`, typically from the user.\n * @returns `url` string which is safe to bind to the `src` properties such as `<img src>`, because\n * only trusted `url`s have been allowed to pass.\n *\n * @codeGenApi\n */\nfunction ɵɵsanitizeResourceUrl(unsafeResourceUrl) {\n  const sanitizer = getSanitizer();\n  if (sanitizer) {\n    return trustedScriptURLFromStringBypass(sanitizer.sanitize(SecurityContext.RESOURCE_URL, unsafeResourceUrl) || '');\n  }\n  if (allowSanitizationBypassAndThrow(unsafeResourceUrl, \"ResourceURL\" /* BypassType.ResourceUrl */)) {\n    return trustedScriptURLFromStringBypass(unwrapSafeValue(unsafeResourceUrl));\n  }\n  throw new RuntimeError(904 /* RuntimeErrorCode.UNSAFE_VALUE_IN_RESOURCE_URL */, ngDevMode && `unsafe value used in a resource URL context (see ${XSS_SECURITY_URL})`);\n}\n/**\n * A `script` sanitizer which only lets trusted javascript through.\n *\n * This passes only `script`s marked trusted by calling {@link\n * bypassSanitizationTrustScript}.\n *\n * @param unsafeScript untrusted `script`, typically from the user.\n * @returns `url` string which is safe to bind to the `<script>` element such as `<img src>`,\n * because only trusted `scripts` have been allowed to pass.\n *\n * @codeGenApi\n */\nfunction ɵɵsanitizeScript(unsafeScript) {\n  const sanitizer = getSanitizer();\n  if (sanitizer) {\n    return trustedScriptFromStringBypass(sanitizer.sanitize(SecurityContext.SCRIPT, unsafeScript) || '');\n  }\n  if (allowSanitizationBypassAndThrow(unsafeScript, \"Script\" /* BypassType.Script */)) {\n    return trustedScriptFromStringBypass(unwrapSafeValue(unsafeScript));\n  }\n  throw new RuntimeError(905 /* RuntimeErrorCode.UNSAFE_VALUE_IN_SCRIPT */, ngDevMode && 'unsafe value used in a script context');\n}\n/**\n * A template tag function for promoting the associated constant literal to a\n * TrustedHTML. Interpolation is explicitly not allowed.\n *\n * @param html constant template literal containing trusted HTML.\n * @returns TrustedHTML wrapping `html`.\n *\n * @security This is a security-sensitive function and should only be used to\n * convert constant values of attributes and properties found in\n * application-provided Angular templates to TrustedHTML.\n *\n * @codeGenApi\n */\nfunction ɵɵtrustConstantHtml(html) {\n  // The following runtime check ensures that the function was called as a\n  // template tag (e.g. ɵɵtrustConstantHtml`content`), without any interpolation\n  // (e.g. not ɵɵtrustConstantHtml`content ${variable}`). A TemplateStringsArray\n  // is an array with a `raw` property that is also an array. The associated\n  // template literal has no interpolation if and only if the length of the\n  // TemplateStringsArray is 1.\n  if (ngDevMode && (!Array.isArray(html) || !Array.isArray(html.raw) || html.length !== 1)) {\n    throw new Error(`Unexpected interpolation in trusted HTML constant: ${html.join('?')}`);\n  }\n  return trustedHTMLFromString(html[0]);\n}\n/**\n * A template tag function for promoting the associated constant literal to a\n * TrustedScriptURL. Interpolation is explicitly not allowed.\n *\n * @param url constant template literal containing a trusted script URL.\n * @returns TrustedScriptURL wrapping `url`.\n *\n * @security This is a security-sensitive function and should only be used to\n * convert constant values of attributes and properties found in\n * application-provided Angular templates to TrustedScriptURL.\n *\n * @codeGenApi\n */\nfunction ɵɵtrustConstantResourceUrl(url) {\n  // The following runtime check ensures that the function was called as a\n  // template tag (e.g. ɵɵtrustConstantResourceUrl`content`), without any\n  // interpolation (e.g. not ɵɵtrustConstantResourceUrl`content ${variable}`). A\n  // TemplateStringsArray is an array with a `raw` property that is also an\n  // array. The associated template literal has no interpolation if and only if\n  // the length of the TemplateStringsArray is 1.\n  if (ngDevMode && (!Array.isArray(url) || !Array.isArray(url.raw) || url.length !== 1)) {\n    throw new Error(`Unexpected interpolation in trusted URL constant: ${url.join('?')}`);\n  }\n  return trustedScriptURLFromString(url[0]);\n}\n/**\n * Detects which sanitizer to use for URL property, based on tag name and prop name.\n *\n * The rules are based on the RESOURCE_URL context config from\n * `packages/compiler/src/schema/dom_security_schema.ts`.\n * If tag and prop names don't match Resource URL schema, use URL sanitizer.\n */\nfunction getUrlSanitizer(tag, prop) {\n  if (prop === 'src' && (tag === 'embed' || tag === 'frame' || tag === 'iframe' || tag === 'media' || tag === 'script') || prop === 'href' && (tag === 'base' || tag === 'link')) {\n    return ɵɵsanitizeResourceUrl;\n  }\n  return ɵɵsanitizeUrl;\n}\n/**\n * Sanitizes URL, selecting sanitizer function based on tag and property names.\n *\n * This function is used in case we can't define security context at compile time, when only prop\n * name is available. This happens when we generate host bindings for Directives/Components. The\n * host element is unknown at compile time, so we defer calculation of specific sanitizer to\n * runtime.\n *\n * @param unsafeUrl untrusted `url`, typically from the user.\n * @param tag target element tag name.\n * @param prop name of the property that contains the value.\n * @returns `url` string which is safe to bind.\n *\n * @codeGenApi\n */\nfunction ɵɵsanitizeUrlOrResourceUrl(unsafeUrl, tag, prop) {\n  return getUrlSanitizer(tag, prop)(unsafeUrl);\n}\nfunction validateAgainstEventProperties(name) {\n  if (name.toLowerCase().startsWith('on')) {\n    const errorMessage = `Binding to event property '${name}' is disallowed for security reasons, ` + `please use (${name.slice(2)})=...` + `\\nIf '${name}' is a directive input, make sure the directive is imported by the` + ` current module.`;\n    throw new RuntimeError(306 /* RuntimeErrorCode.INVALID_EVENT_BINDING */, errorMessage);\n  }\n}\nfunction validateAgainstEventAttributes(name) {\n  if (name.toLowerCase().startsWith('on')) {\n    const errorMessage = `Binding to event attribute '${name}' is disallowed for security reasons, ` + `please use (${name.slice(2)})=...`;\n    throw new RuntimeError(306 /* RuntimeErrorCode.INVALID_EVENT_BINDING */, errorMessage);\n  }\n}\nfunction getSanitizer() {\n  const lView = getLView();\n  return lView && lView[ENVIRONMENT].sanitizer;\n}\n\n/**\n * Disallowed strings in the comment.\n *\n * see: https://html.spec.whatwg.org/multipage/syntax.html#comments\n */\nconst COMMENT_DISALLOWED = /^>|^->|<!--|-->|--!>|<!-$/g;\n/**\n * Delimiter in the disallowed strings which needs to be wrapped with zero with character.\n */\nconst COMMENT_DELIMITER = /(<|>)/g;\nconst COMMENT_DELIMITER_ESCAPED = '\\u200B$1\\u200B';\n/**\n * Escape the content of comment strings so that it can be safely inserted into a comment node.\n *\n * The issue is that HTML does not specify any way to escape comment end text inside the comment.\n * Consider: `<!-- The way you close a comment is with \">\", and \"->\" at the beginning or by \"-->\" or\n * \"--!>\" at the end. -->`. Above the `\"-->\"` is meant to be text not an end to the comment. This\n * can be created programmatically through DOM APIs. (`<!--` are also disallowed.)\n *\n * see: https://html.spec.whatwg.org/multipage/syntax.html#comments\n *\n * ```\n * div.innerHTML = div.innerHTML\n * ```\n *\n * One would expect that the above code would be safe to do, but it turns out that because comment\n * text is not escaped, the comment may contain text which will prematurely close the comment\n * opening up the application for XSS attack. (In SSR we programmatically create comment nodes which\n * may contain such text and expect them to be safe.)\n *\n * This function escapes the comment text by looking for comment delimiters (`<` and `>`) and\n * surrounding them with `_>_` where the `_` is a zero width space `\\u200B`. The result is that if a\n * comment contains any of the comment start/end delimiters (such as `<!--`, `-->` or `--!>`) the\n * text it will render normally but it will not cause the HTML parser to close/open the comment.\n *\n * @param value text to make safe for comment node by escaping the comment open/close character\n *     sequence.\n */\nfunction escapeCommentText(value) {\n  return value.replace(COMMENT_DISALLOWED, text => text.replace(COMMENT_DELIMITER, COMMENT_DELIMITER_ESCAPED));\n}\nfunction normalizeDebugBindingName(name) {\n  // Attribute names with `$` (eg `x-y$`) are valid per spec, but unsupported by some browsers\n  name = camelCaseToDashCase(name.replace(/[$@]/g, '_'));\n  return `ng-reflect-${name}`;\n}\nconst CAMEL_CASE_REGEXP = /([A-Z])/g;\nfunction camelCaseToDashCase(input) {\n  return input.replace(CAMEL_CASE_REGEXP, (...m) => '-' + m[1].toLowerCase());\n}\nfunction normalizeDebugBindingValue(value) {\n  try {\n    // Limit the size of the value as otherwise the DOM just gets polluted.\n    return value != null ? value.toString().slice(0, 30) : value;\n  } catch (e) {\n    return '[ERROR] Exception while trying to serialize the value';\n  }\n}\n\n/**\n * Defines a schema that allows an NgModule to contain the following:\n * - Non-Angular elements named with dash case (`-`).\n * - Element properties named with dash case (`-`).\n * Dash case is the naming convention for custom elements.\n *\n * @publicApi\n */\nconst CUSTOM_ELEMENTS_SCHEMA = {\n  name: 'custom-elements'\n};\n/**\n * Defines a schema that allows any property on any element.\n *\n * This schema allows you to ignore the errors related to any unknown elements or properties in a\n * template. The usage of this schema is generally discouraged because it prevents useful validation\n * and may hide real errors in your template. Consider using the `CUSTOM_ELEMENTS_SCHEMA` instead.\n *\n * @publicApi\n */\nconst NO_ERRORS_SCHEMA = {\n  name: 'no-errors-schema'\n};\nlet shouldThrowErrorOnUnknownElement = false;\n/**\n * Sets a strict mode for JIT-compiled components to throw an error on unknown elements,\n * instead of just logging the error.\n * (for AOT-compiled ones this check happens at build time).\n */\nfunction ɵsetUnknownElementStrictMode(shouldThrow) {\n  shouldThrowErrorOnUnknownElement = shouldThrow;\n}\n/**\n * Gets the current value of the strict mode.\n */\nfunction ɵgetUnknownElementStrictMode() {\n  return shouldThrowErrorOnUnknownElement;\n}\nlet shouldThrowErrorOnUnknownProperty = false;\n/**\n * Sets a strict mode for JIT-compiled components to throw an error on unknown properties,\n * instead of just logging the error.\n * (for AOT-compiled ones this check happens at build time).\n */\nfunction ɵsetUnknownPropertyStrictMode(shouldThrow) {\n  shouldThrowErrorOnUnknownProperty = shouldThrow;\n}\n/**\n * Gets the current value of the strict mode.\n */\nfunction ɵgetUnknownPropertyStrictMode() {\n  return shouldThrowErrorOnUnknownProperty;\n}\n/**\n * Validates that the element is known at runtime and produces\n * an error if it's not the case.\n * This check is relevant for JIT-compiled components (for AOT-compiled\n * ones this check happens at build time).\n *\n * The element is considered known if either:\n * - it's a known HTML element\n * - it's a known custom element\n * - the element matches any directive\n * - the element is allowed by one of the schemas\n *\n * @param element Element to validate\n * @param lView An `LView` that represents a current component that is being rendered\n * @param tagName Name of the tag to check\n * @param schemas Array of schemas\n * @param hasDirectives Boolean indicating that the element matches any directive\n */\nfunction validateElementIsKnown(element, lView, tagName, schemas, hasDirectives) {\n  // If `schemas` is set to `null`, that's an indication that this Component was compiled in AOT\n  // mode where this check happens at compile time. In JIT mode, `schemas` is always present and\n  // defined as an array (as an empty array in case `schemas` field is not defined) and we should\n  // execute the check below.\n  if (schemas === null) return;\n  // If the element matches any directive, it's considered as valid.\n  if (!hasDirectives && tagName !== null) {\n    // The element is unknown if it's an instance of HTMLUnknownElement, or it isn't registered\n    // as a custom element. Note that unknown elements with a dash in their name won't be instances\n    // of HTMLUnknownElement in browsers that support web components.\n    const isUnknown =\n    // Note that we can't check for `typeof HTMLUnknownElement === 'function'` because\n    // Domino doesn't expose HTMLUnknownElement globally.\n    typeof HTMLUnknownElement !== 'undefined' && HTMLUnknownElement && element instanceof HTMLUnknownElement || typeof customElements !== 'undefined' && tagName.indexOf('-') > -1 && !customElements.get(tagName);\n    if (isUnknown && !matchingSchemas(schemas, tagName)) {\n      const isHostStandalone = isHostComponentStandalone(lView);\n      const templateLocation = getTemplateLocationDetails(lView);\n      const schemas = `'${isHostStandalone ? '@Component' : '@NgModule'}.schemas'`;\n      let message = `'${tagName}' is not a known element${templateLocation}:\\n`;\n      message += `1. If '${tagName}' is an Angular component, then verify that it is ${isHostStandalone ? 'included in the \\'@Component.imports\\' of this component' : 'a part of an @NgModule where this component is declared'}.\\n`;\n      if (tagName && tagName.indexOf('-') > -1) {\n        message += `2. If '${tagName}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the ${schemas} of this component to suppress this message.`;\n      } else {\n        message += `2. To allow any element add 'NO_ERRORS_SCHEMA' to the ${schemas} of this component.`;\n      }\n      if (shouldThrowErrorOnUnknownElement) {\n        throw new RuntimeError(304 /* RuntimeErrorCode.UNKNOWN_ELEMENT */, message);\n      } else {\n        console.error(formatRuntimeError(304 /* RuntimeErrorCode.UNKNOWN_ELEMENT */, message));\n      }\n    }\n  }\n}\n/**\n * Validates that the property of the element is known at runtime and returns\n * false if it's not the case.\n * This check is relevant for JIT-compiled components (for AOT-compiled\n * ones this check happens at build time).\n *\n * The property is considered known if either:\n * - it's a known property of the element\n * - the element is allowed by one of the schemas\n * - the property is used for animations\n *\n * @param element Element to validate\n * @param propName Name of the property to check\n * @param tagName Name of the tag hosting the property\n * @param schemas Array of schemas\n */\nfunction isPropertyValid(element, propName, tagName, schemas) {\n  // If `schemas` is set to `null`, that's an indication that this Component was compiled in AOT\n  // mode where this check happens at compile time. In JIT mode, `schemas` is always present and\n  // defined as an array (as an empty array in case `schemas` field is not defined) and we should\n  // execute the check below.\n  if (schemas === null) return true;\n  // The property is considered valid if the element matches the schema, it exists on the element,\n  // or it is synthetic.\n  if (matchingSchemas(schemas, tagName) || propName in element || isAnimationProp(propName)) {\n    return true;\n  }\n  // Note: `typeof Node` returns 'function' in most browsers, but is undefined with domino.\n  return typeof Node === 'undefined' || Node === null || !(element instanceof Node);\n}\n/**\n * Logs or throws an error that a property is not supported on an element.\n *\n * @param propName Name of the invalid property\n * @param tagName Name of the tag hosting the property\n * @param nodeType Type of the node hosting the property\n * @param lView An `LView` that represents a current component\n */\nfunction handleUnknownPropertyError(propName, tagName, nodeType, lView) {\n  // Special-case a situation when a structural directive is applied to\n  // an `<ng-template>` element, for example: `<ng-template *ngIf=\"true\">`.\n  // In this case the compiler generates the `ɵɵtemplate` instruction with\n  // the `null` as the tagName. The directive matching logic at runtime relies\n  // on this effect (see `isInlineTemplate`), thus using the 'ng-template' as\n  // a default value of the `tNode.value` is not feasible at this moment.\n  if (!tagName && nodeType === 4 /* TNodeType.Container */) {\n    tagName = 'ng-template';\n  }\n  const isHostStandalone = isHostComponentStandalone(lView);\n  const templateLocation = getTemplateLocationDetails(lView);\n  let message = `Can't bind to '${propName}' since it isn't a known property of '${tagName}'${templateLocation}.`;\n  const schemas = `'${isHostStandalone ? '@Component' : '@NgModule'}.schemas'`;\n  const importLocation = isHostStandalone ? 'included in the \\'@Component.imports\\' of this component' : 'a part of an @NgModule where this component is declared';\n  if (KNOWN_CONTROL_FLOW_DIRECTIVES.has(propName)) {\n    // Most likely this is a control flow directive (such as `*ngIf`) used in\n    // a template, but the directive or the `CommonModule` is not imported.\n    const correspondingImport = KNOWN_CONTROL_FLOW_DIRECTIVES.get(propName);\n    message += `\\nIf the '${propName}' is an Angular control flow directive, ` + `please make sure that either the '${correspondingImport}' directive or the 'CommonModule' is ${importLocation}.`;\n  } else {\n    // May be an Angular component, which is not imported/declared?\n    message += `\\n1. If '${tagName}' is an Angular component and it has the ` + `'${propName}' input, then verify that it is ${importLocation}.`;\n    // May be a Web Component?\n    if (tagName && tagName.indexOf('-') > -1) {\n      message += `\\n2. If '${tagName}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' ` + `to the ${schemas} of this component to suppress this message.`;\n      message += `\\n3. To allow any property add 'NO_ERRORS_SCHEMA' to ` + `the ${schemas} of this component.`;\n    } else {\n      // If it's expected, the error can be suppressed by the `NO_ERRORS_SCHEMA` schema.\n      message += `\\n2. To allow any property add 'NO_ERRORS_SCHEMA' to ` + `the ${schemas} of this component.`;\n    }\n  }\n  reportUnknownPropertyError(message);\n}\nfunction reportUnknownPropertyError(message) {\n  if (shouldThrowErrorOnUnknownProperty) {\n    throw new RuntimeError(303 /* RuntimeErrorCode.UNKNOWN_BINDING */, message);\n  } else {\n    console.error(formatRuntimeError(303 /* RuntimeErrorCode.UNKNOWN_BINDING */, message));\n  }\n}\n/**\n * WARNING: this is a **dev-mode only** function (thus should always be guarded by the `ngDevMode`)\n * and must **not** be used in production bundles. The function makes megamorphic reads, which might\n * be too slow for production mode and also it relies on the constructor function being available.\n *\n * Gets a reference to the host component def (where a current component is declared).\n *\n * @param lView An `LView` that represents a current component that is being rendered.\n */\nfunction getDeclarationComponentDef(lView) {\n  !ngDevMode && throwError('Must never be called in production mode');\n  const declarationLView = lView[DECLARATION_COMPONENT_VIEW];\n  const context = declarationLView[CONTEXT];\n  // Unable to obtain a context.\n  if (!context) return null;\n  return context.constructor ? getComponentDef(context.constructor) : null;\n}\n/**\n * WARNING: this is a **dev-mode only** function (thus should always be guarded by the `ngDevMode`)\n * and must **not** be used in production bundles. The function makes megamorphic reads, which might\n * be too slow for production mode.\n *\n * Checks if the current component is declared inside of a standalone component template.\n *\n * @param lView An `LView` that represents a current component that is being rendered.\n */\nfunction isHostComponentStandalone(lView) {\n  !ngDevMode && throwError('Must never be called in production mode');\n  const componentDef = getDeclarationComponentDef(lView);\n  // Treat host component as non-standalone if we can't obtain the def.\n  return !!componentDef?.standalone;\n}\n/**\n * WARNING: this is a **dev-mode only** function (thus should always be guarded by the `ngDevMode`)\n * and must **not** be used in production bundles. The function makes megamorphic reads, which might\n * be too slow for production mode.\n *\n * Constructs a string describing the location of the host component template. The function is used\n * in dev mode to produce error messages.\n *\n * @param lView An `LView` that represents a current component that is being rendered.\n */\nfunction getTemplateLocationDetails(lView) {\n  !ngDevMode && throwError('Must never be called in production mode');\n  const hostComponentDef = getDeclarationComponentDef(lView);\n  const componentClassName = hostComponentDef?.type?.name;\n  return componentClassName ? ` (used in the '${componentClassName}' component template)` : '';\n}\n/**\n * The set of known control flow directives and their corresponding imports.\n * We use this set to produce a more precises error message with a note\n * that the `CommonModule` should also be included.\n */\nconst KNOWN_CONTROL_FLOW_DIRECTIVES = /*#__PURE__*/new Map([['ngIf', 'NgIf'], ['ngFor', 'NgFor'], ['ngSwitchCase', 'NgSwitchCase'], ['ngSwitchDefault', 'NgSwitchDefault']]);\n/**\n * Returns true if the tag name is allowed by specified schemas.\n * @param schemas Array of schemas\n * @param tagName Name of the tag\n */\nfunction matchingSchemas(schemas, tagName) {\n  if (schemas !== null) {\n    for (let i = 0; i < schemas.length; i++) {\n      const schema = schemas[i];\n      if (schema === NO_ERRORS_SCHEMA || schema === CUSTOM_ELEMENTS_SCHEMA && tagName && tagName.indexOf('-') > -1) {\n        return true;\n      }\n    }\n  }\n  return false;\n}\n\n/**\n *\n * @codeGenApi\n */\nfunction ɵɵresolveWindow(element) {\n  return element.ownerDocument.defaultView;\n}\n/**\n *\n * @codeGenApi\n */\nfunction ɵɵresolveDocument(element) {\n  return element.ownerDocument;\n}\n/**\n *\n * @codeGenApi\n */\nfunction ɵɵresolveBody(element) {\n  return element.ownerDocument.body;\n}\n/**\n * The special delimiter we use to separate property names, prefixes, and suffixes\n * in property binding metadata. See storeBindingMetadata().\n *\n * We intentionally use the Unicode \"REPLACEMENT CHARACTER\" (U+FFFD) as a delimiter\n * because it is a very uncommon character that is unlikely to be part of a user's\n * property names or interpolation strings. If it is in fact used in a property\n * binding, DebugElement.properties will not return the correct value for that\n * binding. However, there should be no runtime effect for real applications.\n *\n * This character is typically rendered as a question mark inside of a diamond.\n * See https://en.wikipedia.org/wiki/Specials_(Unicode_block)\n *\n */\nconst INTERPOLATION_DELIMITER = `�`;\n/**\n * Unwrap a value which might be behind a closure (for forward declaration reasons).\n */\nfunction maybeUnwrapFn(value) {\n  if (value instanceof Function) {\n    return value();\n  } else {\n    return value;\n  }\n}\n/**\n * Detects whether the code is invoked in a browser.\n * Later on, this check should be replaced with a tree-shakable\n * flag (e.g. `!isServer`).\n */\nfunction isPlatformBrowser(injector) {\n  return (injector ?? inject(Injector)).get(PLATFORM_ID) === 'browser';\n}\n\n/**\n * The max length of the string representation of a value in an error message\n */\nconst VALUE_STRING_LENGTH_LIMIT = 200;\n/** Verifies that a given type is a Standalone Component. */\nfunction assertStandaloneComponentType(type) {\n  assertComponentDef(type);\n  const componentDef = getComponentDef(type);\n  if (!componentDef.standalone) {\n    throw new RuntimeError(907 /* RuntimeErrorCode.TYPE_IS_NOT_STANDALONE */, `The ${stringifyForError(type)} component is not marked as standalone, ` + `but Angular expects to have a standalone component here. ` + `Please make sure the ${stringifyForError(type)} component has ` + `the \\`standalone: true\\` flag in the decorator.`);\n  }\n}\n/** Verifies whether a given type is a component */\nfunction assertComponentDef(type) {\n  if (!getComponentDef(type)) {\n    throw new RuntimeError(906 /* RuntimeErrorCode.MISSING_GENERATED_DEF */, `The ${stringifyForError(type)} is not an Angular component, ` + `make sure it has the \\`@Component\\` decorator.`);\n  }\n}\n/** Called when there are multiple component selectors that match a given node */\nfunction throwMultipleComponentError(tNode, first, second) {\n  throw new RuntimeError(-300 /* RuntimeErrorCode.MULTIPLE_COMPONENTS_MATCH */, `Multiple components match node with tagname ${tNode.value}: ` + `${stringifyForError(first)} and ` + `${stringifyForError(second)}`);\n}\n/** Throws an ExpressionChangedAfterChecked error if checkNoChanges mode is on. */\nfunction throwErrorIfNoChangesMode(creationMode, oldValue, currValue, propName, lView) {\n  const hostComponentDef = getDeclarationComponentDef(lView);\n  const componentClassName = hostComponentDef?.type?.name;\n  const field = propName ? ` for '${propName}'` : '';\n  let msg = `ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value${field}: '${formatValue(oldValue)}'. Current value: '${formatValue(currValue)}'.${componentClassName ? ` Expression location: ${componentClassName} component` : ''}`;\n  if (creationMode) {\n    msg += ` It seems like the view has been created after its parent and its children have been dirty checked.` + ` Has it been created in a change detection hook?`;\n  }\n  throw new RuntimeError(-100 /* RuntimeErrorCode.EXPRESSION_CHANGED_AFTER_CHECKED */, msg);\n}\nfunction formatValue(value) {\n  let strValue = String(value);\n  // JSON.stringify will throw on circular references\n  try {\n    if (Array.isArray(value) || strValue === '[object Object]') {\n      strValue = JSON.stringify(value);\n    }\n  } catch (error) {}\n  return strValue.length > VALUE_STRING_LENGTH_LIMIT ? strValue.substring(0, VALUE_STRING_LENGTH_LIMIT) + '…' : strValue;\n}\nfunction constructDetailsForInterpolation(lView, rootIndex, expressionIndex, meta, changedValue) {\n  const [propName, prefix, ...chunks] = meta.split(INTERPOLATION_DELIMITER);\n  let oldValue = prefix,\n    newValue = prefix;\n  for (let i = 0; i < chunks.length; i++) {\n    const slotIdx = rootIndex + i;\n    oldValue += `${lView[slotIdx]}${chunks[i]}`;\n    newValue += `${slotIdx === expressionIndex ? changedValue : lView[slotIdx]}${chunks[i]}`;\n  }\n  return {\n    propName,\n    oldValue,\n    newValue\n  };\n}\n/**\n * Constructs an object that contains details for the ExpressionChangedAfterItHasBeenCheckedError:\n * - property name (for property bindings or interpolations)\n * - old and new values, enriched using information from metadata\n *\n * More information on the metadata storage format can be found in `storePropertyBindingMetadata`\n * function description.\n */\nfunction getExpressionChangedErrorDetails(lView, bindingIndex, oldValue, newValue) {\n  const tData = lView[TVIEW].data;\n  const metadata = tData[bindingIndex];\n  if (typeof metadata === 'string') {\n    // metadata for property interpolation\n    if (metadata.indexOf(INTERPOLATION_DELIMITER) > -1) {\n      return constructDetailsForInterpolation(lView, bindingIndex, bindingIndex, metadata, newValue);\n    }\n    // metadata for property binding\n    return {\n      propName: metadata,\n      oldValue,\n      newValue\n    };\n  }\n  // metadata is not available for this expression, check if this expression is a part of the\n  // property interpolation by going from the current binding index left and look for a string that\n  // contains INTERPOLATION_DELIMITER, the layout in tView.data for this case will look like this:\n  // [..., 'id�Prefix � and � suffix', null, null, null, ...]\n  if (metadata === null) {\n    let idx = bindingIndex - 1;\n    while (typeof tData[idx] !== 'string' && tData[idx + 1] === null) {\n      idx--;\n    }\n    const meta = tData[idx];\n    if (typeof meta === 'string') {\n      const matches = meta.match(new RegExp(INTERPOLATION_DELIMITER, 'g'));\n      // first interpolation delimiter separates property name from interpolation parts (in case of\n      // property interpolations), so we subtract one from total number of found delimiters\n      if (matches && matches.length - 1 > bindingIndex - idx) {\n        return constructDetailsForInterpolation(lView, idx, bindingIndex, meta, newValue);\n      }\n    }\n  }\n  return {\n    propName: undefined,\n    oldValue,\n    newValue\n  };\n}\n\n/**\n * Flags for renderer-specific style modifiers.\n * @publicApi\n */\nvar RendererStyleFlags2 = /*#__PURE__*/function (RendererStyleFlags2) {\n  // TODO(misko): This needs to be refactored into a separate file so that it can be imported from\n  // `node_manipulation.ts` Currently doing the import cause resolution order to change and fails\n  // the tests. The work around is to have hard coded value in `node_manipulation.ts` for now.\n  /**\n   * Marks a style as important.\n   */\n  RendererStyleFlags2[RendererStyleFlags2[\"Important\"] = 1] = \"Important\";\n  /**\n   * Marks a style as using dash case naming (this-is-dash-case).\n   */\n  RendererStyleFlags2[RendererStyleFlags2[\"DashCase\"] = 2] = \"DashCase\";\n  return RendererStyleFlags2;\n}(RendererStyleFlags2 || {});\nlet _icuContainerIterate;\n/**\n * Iterator which provides ability to visit all of the `TIcuContainerNode` root `RNode`s.\n */\nfunction icuContainerIterate(tIcuContainerNode, lView) {\n  return _icuContainerIterate(tIcuContainerNode, lView);\n}\n/**\n * Ensures that `IcuContainerVisitor`'s implementation is present.\n *\n * This function is invoked when i18n instruction comes across an ICU. The purpose is to allow the\n * bundler to tree shake ICU logic and only load it if ICU instruction is executed.\n */\nfunction ensureIcuContainerVisitorLoaded(loader) {\n  if (_icuContainerIterate === undefined) {\n    // Do not inline this function. We want to keep `ensureIcuContainerVisitorLoaded` light, so it\n    // can be inlined into call-site.\n    _icuContainerIterate = loader();\n  }\n}\n\n/**\n * NOTE: for performance reasons, the possible actions are inlined within the function instead of\n * being passed as an argument.\n */\nfunction applyToElementOrContainer(action, renderer, parent, lNodeToHandle, beforeNode) {\n  // If this slot was allocated for a text node dynamically created by i18n, the text node itself\n  // won't be created until i18nApply() in the update block, so this node should be skipped.\n  // For more info, see \"ICU expressions should work inside an ngTemplateOutlet inside an ngFor\"\n  // in `i18n_spec.ts`.\n  if (lNodeToHandle != null) {\n    let lContainer;\n    let isComponent = false;\n    // We are expecting an RNode, but in the case of a component or LContainer the `RNode` is\n    // wrapped in an array which needs to be unwrapped. We need to know if it is a component and if\n    // it has LContainer so that we can process all of those cases appropriately.\n    if (isLContainer(lNodeToHandle)) {\n      lContainer = lNodeToHandle;\n    } else if (isLView(lNodeToHandle)) {\n      isComponent = true;\n      ngDevMode && assertDefined(lNodeToHandle[HOST], 'HOST must be defined for a component LView');\n      lNodeToHandle = lNodeToHandle[HOST];\n    }\n    const rNode = unwrapRNode(lNodeToHandle);\n    if (action === 0 /* WalkTNodeTreeAction.Create */ && parent !== null) {\n      if (beforeNode == null) {\n        nativeAppendChild(renderer, parent, rNode);\n      } else {\n        nativeInsertBefore(renderer, parent, rNode, beforeNode || null, true);\n      }\n    } else if (action === 1 /* WalkTNodeTreeAction.Insert */ && parent !== null) {\n      nativeInsertBefore(renderer, parent, rNode, beforeNode || null, true);\n    } else if (action === 2 /* WalkTNodeTreeAction.Detach */) {\n      nativeRemoveNode(renderer, rNode, isComponent);\n    } else if (action === 3 /* WalkTNodeTreeAction.Destroy */) {\n      ngDevMode && ngDevMode.rendererDestroyNode++;\n      renderer.destroyNode(rNode);\n    }\n    if (lContainer != null) {\n      applyContainer(renderer, action, lContainer, parent, beforeNode);\n    }\n  }\n}\nfunction createTextNode(renderer, value) {\n  ngDevMode && ngDevMode.rendererCreateTextNode++;\n  ngDevMode && ngDevMode.rendererSetText++;\n  return renderer.createText(value);\n}\nfunction updateTextNode(renderer, rNode, value) {\n  ngDevMode && ngDevMode.rendererSetText++;\n  renderer.setValue(rNode, value);\n}\nfunction createCommentNode(renderer, value) {\n  ngDevMode && ngDevMode.rendererCreateComment++;\n  return renderer.createComment(escapeCommentText(value));\n}\n/**\n * Creates a native element from a tag name, using a renderer.\n * @param renderer A renderer to use\n * @param name the tag name\n * @param namespace Optional namespace for element.\n * @returns the element created\n */\nfunction createElementNode(renderer, name, namespace) {\n  ngDevMode && ngDevMode.rendererCreateElement++;\n  return renderer.createElement(name, namespace);\n}\n/**\n * Removes all DOM elements associated with a view.\n *\n * Because some root nodes of the view may be containers, we sometimes need\n * to propagate deeply into the nested containers to remove all elements in the\n * views beneath it.\n *\n * @param tView The `TView' of the `LView` from which elements should be added or removed\n * @param lView The view from which elements should be added or removed\n */\nfunction removeViewFromDOM(tView, lView) {\n  detachViewFromDOM(tView, lView);\n  lView[HOST] = null;\n  lView[T_HOST] = null;\n}\n/**\n * Adds all DOM elements associated with a view.\n *\n * Because some root nodes of the view may be containers, we sometimes need\n * to propagate deeply into the nested containers to add all elements in the\n * views beneath it.\n *\n * @param tView The `TView' of the `LView` from which elements should be added or removed\n * @param parentTNode The `TNode` where the `LView` should be attached to.\n * @param renderer Current renderer to use for DOM manipulations.\n * @param lView The view from which elements should be added or removed\n * @param parentNativeNode The parent `RElement` where it should be inserted into.\n * @param beforeNode The node before which elements should be added, if insert mode\n */\nfunction addViewToDOM(tView, parentTNode, renderer, lView, parentNativeNode, beforeNode) {\n  lView[HOST] = parentNativeNode;\n  lView[T_HOST] = parentTNode;\n  applyView(tView, lView, renderer, 1 /* WalkTNodeTreeAction.Insert */, parentNativeNode, beforeNode);\n}\n/**\n * Detach a `LView` from the DOM by detaching its nodes.\n *\n * @param tView The `TView' of the `LView` to be detached\n * @param lView the `LView` to be detached.\n */\nfunction detachViewFromDOM(tView, lView) {\n  // When we remove a view from the DOM, we need to rerun afterRender hooks\n  // We don't necessarily needs to run change detection. DOM removal only requires\n  // change detection if animations are enabled (this notification is handled by animations).\n  lView[ENVIRONMENT].changeDetectionScheduler?.notify(1 /* NotificationType.AfterRenderHooks */);\n  applyView(tView, lView, lView[RENDERER], 2 /* WalkTNodeTreeAction.Detach */, null, null);\n}\n/**\n * Traverses down and up the tree of views and containers to remove listeners and\n * call onDestroy callbacks.\n *\n * Notes:\n *  - Because it's used for onDestroy calls, it needs to be bottom-up.\n *  - Must process containers instead of their views to avoid splicing\n *  when views are destroyed and re-added.\n *  - Using a while loop because it's faster than recursion\n *  - Destroy only called on movement to sibling or movement to parent (laterally or up)\n *\n *  @param rootView The view to destroy\n */\nfunction destroyViewTree(rootView) {\n  // If the view has no children, we can clean it up and return early.\n  let lViewOrLContainer = rootView[CHILD_HEAD];\n  if (!lViewOrLContainer) {\n    return cleanUpView(rootView[TVIEW], rootView);\n  }\n  while (lViewOrLContainer) {\n    let next = null;\n    if (isLView(lViewOrLContainer)) {\n      // If LView, traverse down to child.\n      next = lViewOrLContainer[CHILD_HEAD];\n    } else {\n      ngDevMode && assertLContainer(lViewOrLContainer);\n      // If container, traverse down to its first LView.\n      const firstView = lViewOrLContainer[CONTAINER_HEADER_OFFSET];\n      if (firstView) next = firstView;\n    }\n    if (!next) {\n      // Only clean up view when moving to the side or up, as destroy hooks\n      // should be called in order from the bottom up.\n      while (lViewOrLContainer && !lViewOrLContainer[NEXT] && lViewOrLContainer !== rootView) {\n        if (isLView(lViewOrLContainer)) {\n          cleanUpView(lViewOrLContainer[TVIEW], lViewOrLContainer);\n        }\n        lViewOrLContainer = lViewOrLContainer[PARENT];\n      }\n      if (lViewOrLContainer === null) lViewOrLContainer = rootView;\n      if (isLView(lViewOrLContainer)) {\n        cleanUpView(lViewOrLContainer[TVIEW], lViewOrLContainer);\n      }\n      next = lViewOrLContainer && lViewOrLContainer[NEXT];\n    }\n    lViewOrLContainer = next;\n  }\n}\n/**\n * Inserts a view into a container.\n *\n * This adds the view to the container's array of active views in the correct\n * position. It also adds the view's elements to the DOM if the container isn't a\n * root node of another view (in that case, the view's elements will be added when\n * the container's parent view is added later).\n *\n * @param tView The `TView' of the `LView` to insert\n * @param lView The view to insert\n * @param lContainer The container into which the view should be inserted\n * @param index Which index in the container to insert the child view into\n */\nfunction insertView(tView, lView, lContainer, index) {\n  ngDevMode && assertLView(lView);\n  ngDevMode && assertLContainer(lContainer);\n  const indexInContainer = CONTAINER_HEADER_OFFSET + index;\n  const containerLength = lContainer.length;\n  if (index > 0) {\n    // This is a new view, we need to add it to the children.\n    lContainer[indexInContainer - 1][NEXT] = lView;\n  }\n  if (index < containerLength - CONTAINER_HEADER_OFFSET) {\n    lView[NEXT] = lContainer[indexInContainer];\n    addToArray(lContainer, CONTAINER_HEADER_OFFSET + index, lView);\n  } else {\n    lContainer.push(lView);\n    lView[NEXT] = null;\n  }\n  lView[PARENT] = lContainer;\n  // track views where declaration and insertion points are different\n  const declarationLContainer = lView[DECLARATION_LCONTAINER];\n  if (declarationLContainer !== null && lContainer !== declarationLContainer) {\n    trackMovedView(declarationLContainer, lView);\n  }\n  // notify query that a new view has been added\n  const lQueries = lView[QUERIES];\n  if (lQueries !== null) {\n    lQueries.insertView(tView);\n  }\n  updateAncestorTraversalFlagsOnAttach(lView);\n  // Sets the attached flag\n  lView[FLAGS] |= 128 /* LViewFlags.Attached */;\n}\n/**\n * Track views created from the declaration container (TemplateRef) and inserted into a\n * different LContainer.\n */\nfunction trackMovedView(declarationContainer, lView) {\n  ngDevMode && assertDefined(lView, 'LView required');\n  ngDevMode && assertLContainer(declarationContainer);\n  const movedViews = declarationContainer[MOVED_VIEWS];\n  const insertedLContainer = lView[PARENT];\n  ngDevMode && assertLContainer(insertedLContainer);\n  const insertedComponentLView = insertedLContainer[PARENT][DECLARATION_COMPONENT_VIEW];\n  ngDevMode && assertDefined(insertedComponentLView, 'Missing insertedComponentLView');\n  const declaredComponentLView = lView[DECLARATION_COMPONENT_VIEW];\n  ngDevMode && assertDefined(declaredComponentLView, 'Missing declaredComponentLView');\n  if (declaredComponentLView !== insertedComponentLView) {\n    // At this point the declaration-component is not same as insertion-component; this means that\n    // this is a transplanted view. Mark the declared lView as having transplanted views so that\n    // those views can participate in CD.\n    declarationContainer[FLAGS] |= LContainerFlags.HasTransplantedViews;\n  }\n  if (movedViews === null) {\n    declarationContainer[MOVED_VIEWS] = [lView];\n  } else {\n    movedViews.push(lView);\n  }\n}\nfunction detachMovedView(declarationContainer, lView) {\n  ngDevMode && assertLContainer(declarationContainer);\n  ngDevMode && assertDefined(declarationContainer[MOVED_VIEWS], 'A projected view should belong to a non-empty projected views collection');\n  const movedViews = declarationContainer[MOVED_VIEWS];\n  const declarationViewIndex = movedViews.indexOf(lView);\n  ngDevMode && assertLContainer(lView[PARENT]);\n  movedViews.splice(declarationViewIndex, 1);\n}\n/**\n * Detaches a view from a container.\n *\n * This method removes the view from the container's array of active views. It also\n * removes the view's elements from the DOM.\n *\n * @param lContainer The container from which to detach a view\n * @param removeIndex The index of the view to detach\n * @returns Detached LView instance.\n */\nfunction detachView(lContainer, removeIndex) {\n  if (lContainer.length <= CONTAINER_HEADER_OFFSET) return;\n  const indexInContainer = CONTAINER_HEADER_OFFSET + removeIndex;\n  const viewToDetach = lContainer[indexInContainer];\n  if (viewToDetach) {\n    const declarationLContainer = viewToDetach[DECLARATION_LCONTAINER];\n    if (declarationLContainer !== null && declarationLContainer !== lContainer) {\n      detachMovedView(declarationLContainer, viewToDetach);\n    }\n    if (removeIndex > 0) {\n      lContainer[indexInContainer - 1][NEXT] = viewToDetach[NEXT];\n    }\n    const removedLView = removeFromArray(lContainer, CONTAINER_HEADER_OFFSET + removeIndex);\n    removeViewFromDOM(viewToDetach[TVIEW], viewToDetach);\n    // notify query that a view has been removed\n    const lQueries = removedLView[QUERIES];\n    if (lQueries !== null) {\n      lQueries.detachView(removedLView[TVIEW]);\n    }\n    viewToDetach[PARENT] = null;\n    viewToDetach[NEXT] = null;\n    // Unsets the attached flag\n    viewToDetach[FLAGS] &= ~128 /* LViewFlags.Attached */;\n  }\n  return viewToDetach;\n}\n/**\n * A standalone function which destroys an LView,\n * conducting clean up (e.g. removing listeners, calling onDestroys).\n *\n * @param tView The `TView' of the `LView` to be destroyed\n * @param lView The view to be destroyed.\n */\nfunction destroyLView(tView, lView) {\n  if (!(lView[FLAGS] & 256 /* LViewFlags.Destroyed */)) {\n    const renderer = lView[RENDERER];\n    if (renderer.destroyNode) {\n      applyView(tView, lView, renderer, 3 /* WalkTNodeTreeAction.Destroy */, null, null);\n    }\n    destroyViewTree(lView);\n  }\n}\n/**\n * Calls onDestroys hooks for all directives and pipes in a given view and then removes all\n * listeners. Listeners are removed as the last step so events delivered in the onDestroys hooks\n * can be propagated to @Output listeners.\n *\n * @param tView `TView` for the `LView` to clean up.\n * @param lView The LView to clean up\n */\nfunction cleanUpView(tView, lView) {\n  if (lView[FLAGS] & 256 /* LViewFlags.Destroyed */) {\n    return;\n  }\n  const prevConsumer = setActiveConsumer$1(null);\n  try {\n    // Usually the Attached flag is removed when the view is detached from its parent, however\n    // if it's a root view, the flag won't be unset hence why we're also removing on destroy.\n    lView[FLAGS] &= ~128 /* LViewFlags.Attached */;\n    // Mark the LView as destroyed *before* executing the onDestroy hooks. An onDestroy hook\n    // runs arbitrary user code, which could include its own `viewRef.destroy()` (or similar). If\n    // We don't flag the view as destroyed before the hooks, this could lead to an infinite loop.\n    // This also aligns with the ViewEngine behavior. It also means that the onDestroy hook is\n    // really more of an \"afterDestroy\" hook if you think about it.\n    lView[FLAGS] |= 256 /* LViewFlags.Destroyed */;\n    lView[REACTIVE_TEMPLATE_CONSUMER] && consumerDestroy$1(lView[REACTIVE_TEMPLATE_CONSUMER]);\n    executeOnDestroys(tView, lView);\n    processCleanups(tView, lView);\n    // For component views only, the local renderer is destroyed at clean up time.\n    if (lView[TVIEW].type === 1 /* TViewType.Component */) {\n      ngDevMode && ngDevMode.rendererDestroy++;\n      lView[RENDERER].destroy();\n    }\n    const declarationContainer = lView[DECLARATION_LCONTAINER];\n    // we are dealing with an embedded view that is still inserted into a container\n    if (declarationContainer !== null && isLContainer(lView[PARENT])) {\n      // and this is a projected view\n      if (declarationContainer !== lView[PARENT]) {\n        detachMovedView(declarationContainer, lView);\n      }\n      // For embedded views still attached to a container: remove query result from this view.\n      const lQueries = lView[QUERIES];\n      if (lQueries !== null) {\n        lQueries.detachView(tView);\n      }\n    }\n    // Unregister the view once everything else has been cleaned up.\n    unregisterLView(lView);\n  } finally {\n    setActiveConsumer$1(prevConsumer);\n  }\n}\n/** Removes listeners and unsubscribes from output subscriptions */\nfunction processCleanups(tView, lView) {\n  ngDevMode && assertNotReactive(processCleanups.name);\n  const tCleanup = tView.cleanup;\n  const lCleanup = lView[CLEANUP];\n  if (tCleanup !== null) {\n    for (let i = 0; i < tCleanup.length - 1; i += 2) {\n      if (typeof tCleanup[i] === 'string') {\n        // This is a native DOM listener. It will occupy 4 entries in the TCleanup array (hence i +=\n        // 2 at the end of this block).\n        const targetIdx = tCleanup[i + 3];\n        ngDevMode && assertNumber(targetIdx, 'cleanup target must be a number');\n        if (targetIdx >= 0) {\n          // Destroy anything whose teardown is a function call (e.g. QueryList, ModelSignal).\n          lCleanup[targetIdx]();\n        } else {\n          // Subscription\n          lCleanup[-targetIdx].unsubscribe();\n        }\n        i += 2;\n      } else {\n        // This is a cleanup function that is grouped with the index of its context\n        const context = lCleanup[tCleanup[i + 1]];\n        tCleanup[i].call(context);\n      }\n    }\n  }\n  if (lCleanup !== null) {\n    lView[CLEANUP] = null;\n  }\n  const destroyHooks = lView[ON_DESTROY_HOOKS];\n  if (destroyHooks !== null) {\n    // Reset the ON_DESTROY_HOOKS array before iterating over it to prevent hooks that unregister\n    // themselves from mutating the array during iteration.\n    lView[ON_DESTROY_HOOKS] = null;\n    for (let i = 0; i < destroyHooks.length; i++) {\n      const destroyHooksFn = destroyHooks[i];\n      ngDevMode && assertFunction(destroyHooksFn, 'Expecting destroy hook to be a function.');\n      destroyHooksFn();\n    }\n  }\n}\n/** Calls onDestroy hooks for this view */\nfunction executeOnDestroys(tView, lView) {\n  ngDevMode && assertNotReactive(executeOnDestroys.name);\n  let destroyHooks;\n  if (tView != null && (destroyHooks = tView.destroyHooks) != null) {\n    for (let i = 0; i < destroyHooks.length; i += 2) {\n      const context = lView[destroyHooks[i]];\n      // Only call the destroy hook if the context has been requested.\n      if (!(context instanceof NodeInjectorFactory)) {\n        const toCall = destroyHooks[i + 1];\n        if (Array.isArray(toCall)) {\n          for (let j = 0; j < toCall.length; j += 2) {\n            const callContext = context[toCall[j]];\n            const hook = toCall[j + 1];\n            profiler(4 /* ProfilerEvent.LifecycleHookStart */, callContext, hook);\n            try {\n              hook.call(callContext);\n            } finally {\n              profiler(5 /* ProfilerEvent.LifecycleHookEnd */, callContext, hook);\n            }\n          }\n        } else {\n          profiler(4 /* ProfilerEvent.LifecycleHookStart */, context, toCall);\n          try {\n            toCall.call(context);\n          } finally {\n            profiler(5 /* ProfilerEvent.LifecycleHookEnd */, context, toCall);\n          }\n        }\n      }\n    }\n  }\n}\n/**\n * Returns a native element if a node can be inserted into the given parent.\n *\n * There are two reasons why we may not be able to insert a element immediately.\n * - Projection: When creating a child content element of a component, we have to skip the\n *   insertion because the content of a component will be projected.\n *   `<component><content>delayed due to projection</content></component>`\n * - Parent container is disconnected: This can happen when we are inserting a view into\n *   parent container, which itself is disconnected. For example the parent container is part\n *   of a View which has not be inserted or is made for projection but has not been inserted\n *   into destination.\n *\n * @param tView: Current `TView`.\n * @param tNode: `TNode` for which we wish to retrieve render parent.\n * @param lView: Current `LView`.\n */\nfunction getParentRElement(tView, tNode, lView) {\n  return getClosestRElement(tView, tNode.parent, lView);\n}\n/**\n * Get closest `RElement` or `null` if it can't be found.\n *\n * If `TNode` is `TNodeType.Element` => return `RElement` at `LView[tNode.index]` location.\n * If `TNode` is `TNodeType.ElementContainer|IcuContain` => return the parent (recursively).\n * If `TNode` is `null` then return host `RElement`:\n *   - return `null` if projection\n *   - return `null` if parent container is disconnected (we have no parent.)\n *\n * @param tView: Current `TView`.\n * @param tNode: `TNode` for which we wish to retrieve `RElement` (or `null` if host element is\n *     needed).\n * @param lView: Current `LView`.\n * @returns `null` if the `RElement` can't be determined at this time (no parent / projection)\n */\nfunction getClosestRElement(tView, tNode, lView) {\n  let parentTNode = tNode;\n  // Skip over element and ICU containers as those are represented by a comment node and\n  // can't be used as a render parent.\n  while (parentTNode !== null && parentTNode.type & (8 /* TNodeType.ElementContainer */ | 32 /* TNodeType.Icu */)) {\n    tNode = parentTNode;\n    parentTNode = tNode.parent;\n  }\n  // If the parent tNode is null, then we are inserting across views: either into an embedded view\n  // or a component view.\n  if (parentTNode === null) {\n    // We are inserting a root element of the component view into the component host element and\n    // it should always be eager.\n    return lView[HOST];\n  } else {\n    ngDevMode && assertTNodeType(parentTNode, 3 /* TNodeType.AnyRNode */ | 4 /* TNodeType.Container */);\n    const {\n      componentOffset\n    } = parentTNode;\n    if (componentOffset > -1) {\n      ngDevMode && assertTNodeForLView(parentTNode, lView);\n      const {\n        encapsulation\n      } = tView.data[parentTNode.directiveStart + componentOffset];\n      // We've got a parent which is an element in the current view. We just need to verify if the\n      // parent element is not a component. Component's content nodes are not inserted immediately\n      // because they will be projected, and so doing insert at this point would be wasteful.\n      // Since the projection would then move it to its final destination. Note that we can't\n      // make this assumption when using the Shadow DOM, because the native projection placeholders\n      // (<content> or <slot>) have to be in place as elements are being inserted.\n      if (encapsulation === ViewEncapsulation$1.None || encapsulation === ViewEncapsulation$1.Emulated) {\n        return null;\n      }\n    }\n    return getNativeByTNode(parentTNode, lView);\n  }\n}\n/**\n * Inserts a native node before another native node for a given parent.\n * This is a utility function that can be used when native nodes were determined.\n */\nfunction nativeInsertBefore(renderer, parent, child, beforeNode, isMove) {\n  ngDevMode && ngDevMode.rendererInsertBefore++;\n  renderer.insertBefore(parent, child, beforeNode, isMove);\n}\nfunction nativeAppendChild(renderer, parent, child) {\n  ngDevMode && ngDevMode.rendererAppendChild++;\n  ngDevMode && assertDefined(parent, 'parent node must be defined');\n  renderer.appendChild(parent, child);\n}\nfunction nativeAppendOrInsertBefore(renderer, parent, child, beforeNode, isMove) {\n  if (beforeNode !== null) {\n    nativeInsertBefore(renderer, parent, child, beforeNode, isMove);\n  } else {\n    nativeAppendChild(renderer, parent, child);\n  }\n}\n/** Removes a node from the DOM given its native parent. */\nfunction nativeRemoveChild(renderer, parent, child, isHostElement) {\n  renderer.removeChild(parent, child, isHostElement);\n}\n/** Checks if an element is a `<template>` node. */\nfunction isTemplateNode(node) {\n  return node.tagName === 'TEMPLATE' && node.content !== undefined;\n}\n/**\n * Returns a native parent of a given native node.\n */\nfunction nativeParentNode(renderer, node) {\n  return renderer.parentNode(node);\n}\n/**\n * Returns a native sibling of a given native node.\n */\nfunction nativeNextSibling(renderer, node) {\n  return renderer.nextSibling(node);\n}\n/**\n * Find a node in front of which `currentTNode` should be inserted.\n *\n * This method determines the `RNode` in front of which we should insert the `currentRNode`. This\n * takes `TNode.insertBeforeIndex` into account if i18n code has been invoked.\n *\n * @param parentTNode parent `TNode`\n * @param currentTNode current `TNode` (The node which we would like to insert into the DOM)\n * @param lView current `LView`\n */\nfunction getInsertInFrontOfRNode(parentTNode, currentTNode, lView) {\n  return _getInsertInFrontOfRNodeWithI18n(parentTNode, currentTNode, lView);\n}\n/**\n * Find a node in front of which `currentTNode` should be inserted. (Does not take i18n into\n * account)\n *\n * This method determines the `RNode` in front of which we should insert the `currentRNode`. This\n * does not take `TNode.insertBeforeIndex` into account.\n *\n * @param parentTNode parent `TNode`\n * @param currentTNode current `TNode` (The node which we would like to insert into the DOM)\n * @param lView current `LView`\n */\nfunction getInsertInFrontOfRNodeWithNoI18n(parentTNode, currentTNode, lView) {\n  if (parentTNode.type & (8 /* TNodeType.ElementContainer */ | 32 /* TNodeType.Icu */)) {\n    return getNativeByTNode(parentTNode, lView);\n  }\n  return null;\n}\n/**\n * Tree shakable boundary for `getInsertInFrontOfRNodeWithI18n` function.\n *\n * This function will only be set if i18n code runs.\n */\nlet _getInsertInFrontOfRNodeWithI18n = getInsertInFrontOfRNodeWithNoI18n;\n/**\n * Tree shakable boundary for `processI18nInsertBefore` function.\n *\n * This function will only be set if i18n code runs.\n */\nlet _processI18nInsertBefore;\nfunction setI18nHandling(getInsertInFrontOfRNodeWithI18n, processI18nInsertBefore) {\n  _getInsertInFrontOfRNodeWithI18n = getInsertInFrontOfRNodeWithI18n;\n  _processI18nInsertBefore = processI18nInsertBefore;\n}\n/**\n * Appends the `child` native node (or a collection of nodes) to the `parent`.\n *\n * @param tView The `TView' to be appended\n * @param lView The current LView\n * @param childRNode The native child (or children) that should be appended\n * @param childTNode The TNode of the child element\n */\nfunction appendChild(tView, lView, childRNode, childTNode) {\n  const parentRNode = getParentRElement(tView, childTNode, lView);\n  const renderer = lView[RENDERER];\n  const parentTNode = childTNode.parent || lView[T_HOST];\n  const anchorNode = getInsertInFrontOfRNode(parentTNode, childTNode, lView);\n  if (parentRNode != null) {\n    if (Array.isArray(childRNode)) {\n      for (let i = 0; i < childRNode.length; i++) {\n        nativeAppendOrInsertBefore(renderer, parentRNode, childRNode[i], anchorNode, false);\n      }\n    } else {\n      nativeAppendOrInsertBefore(renderer, parentRNode, childRNode, anchorNode, false);\n    }\n  }\n  _processI18nInsertBefore !== undefined && _processI18nInsertBefore(renderer, childTNode, lView, childRNode, parentRNode);\n}\n/**\n * Returns the first native node for a given LView, starting from the provided TNode.\n *\n * Native nodes are returned in the order in which those appear in the native tree (DOM).\n */\nfunction getFirstNativeNode(lView, tNode) {\n  if (tNode !== null) {\n    ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */ | 32 /* TNodeType.Icu */ | 16 /* TNodeType.Projection */);\n    const tNodeType = tNode.type;\n    if (tNodeType & 3 /* TNodeType.AnyRNode */) {\n      return getNativeByTNode(tNode, lView);\n    } else if (tNodeType & 4 /* TNodeType.Container */) {\n      return getBeforeNodeForView(-1, lView[tNode.index]);\n    } else if (tNodeType & 8 /* TNodeType.ElementContainer */) {\n      const elIcuContainerChild = tNode.child;\n      if (elIcuContainerChild !== null) {\n        return getFirstNativeNode(lView, elIcuContainerChild);\n      } else {\n        const rNodeOrLContainer = lView[tNode.index];\n        if (isLContainer(rNodeOrLContainer)) {\n          return getBeforeNodeForView(-1, rNodeOrLContainer);\n        } else {\n          return unwrapRNode(rNodeOrLContainer);\n        }\n      }\n    } else if (tNodeType & 32 /* TNodeType.Icu */) {\n      let nextRNode = icuContainerIterate(tNode, lView);\n      let rNode = nextRNode();\n      // If the ICU container has no nodes, than we use the ICU anchor as the node.\n      return rNode || unwrapRNode(lView[tNode.index]);\n    } else {\n      const projectionNodes = getProjectionNodes(lView, tNode);\n      if (projectionNodes !== null) {\n        if (Array.isArray(projectionNodes)) {\n          return projectionNodes[0];\n        }\n        const parentView = getLViewParent(lView[DECLARATION_COMPONENT_VIEW]);\n        ngDevMode && assertParentView(parentView);\n        return getFirstNativeNode(parentView, projectionNodes);\n      } else {\n        return getFirstNativeNode(lView, tNode.next);\n      }\n    }\n  }\n  return null;\n}\nfunction getProjectionNodes(lView, tNode) {\n  if (tNode !== null) {\n    const componentView = lView[DECLARATION_COMPONENT_VIEW];\n    const componentHost = componentView[T_HOST];\n    const slotIdx = tNode.projection;\n    ngDevMode && assertProjectionSlots(lView);\n    return componentHost.projection[slotIdx];\n  }\n  return null;\n}\nfunction getBeforeNodeForView(viewIndexInContainer, lContainer) {\n  const nextViewIndex = CONTAINER_HEADER_OFFSET + viewIndexInContainer + 1;\n  if (nextViewIndex < lContainer.length) {\n    const lView = lContainer[nextViewIndex];\n    const firstTNodeOfView = lView[TVIEW].firstChild;\n    if (firstTNodeOfView !== null) {\n      return getFirstNativeNode(lView, firstTNodeOfView);\n    }\n  }\n  return lContainer[NATIVE];\n}\n/**\n * Removes a native node itself using a given renderer. To remove the node we are looking up its\n * parent from the native tree as not all platforms / browsers support the equivalent of\n * node.remove().\n *\n * @param renderer A renderer to be used\n * @param rNode The native node that should be removed\n * @param isHostElement A flag indicating if a node to be removed is a host of a component.\n */\nfunction nativeRemoveNode(renderer, rNode, isHostElement) {\n  ngDevMode && ngDevMode.rendererRemoveNode++;\n  const nativeParent = nativeParentNode(renderer, rNode);\n  if (nativeParent) {\n    nativeRemoveChild(renderer, nativeParent, rNode, isHostElement);\n  }\n}\n/**\n * Clears the contents of a given RElement.\n *\n * @param rElement the native RElement to be cleared\n */\nfunction clearElementContents(rElement) {\n  rElement.textContent = '';\n}\n/**\n * Performs the operation of `action` on the node. Typically this involves inserting or removing\n * nodes on the LView or projection boundary.\n */\nfunction applyNodes(renderer, action, tNode, lView, parentRElement, beforeNode, isProjection) {\n  while (tNode != null) {\n    ngDevMode && assertTNodeForLView(tNode, lView);\n    ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */ | 16 /* TNodeType.Projection */ | 32 /* TNodeType.Icu */);\n    const rawSlotValue = lView[tNode.index];\n    const tNodeType = tNode.type;\n    if (isProjection) {\n      if (action === 0 /* WalkTNodeTreeAction.Create */) {\n        rawSlotValue && attachPatchData(unwrapRNode(rawSlotValue), lView);\n        tNode.flags |= 2 /* TNodeFlags.isProjected */;\n      }\n    }\n    if ((tNode.flags & 32 /* TNodeFlags.isDetached */) !== 32 /* TNodeFlags.isDetached */) {\n      if (tNodeType & 8 /* TNodeType.ElementContainer */) {\n        applyNodes(renderer, action, tNode.child, lView, parentRElement, beforeNode, false);\n        applyToElementOrContainer(action, renderer, parentRElement, rawSlotValue, beforeNode);\n      } else if (tNodeType & 32 /* TNodeType.Icu */) {\n        const nextRNode = icuContainerIterate(tNode, lView);\n        let rNode;\n        while (rNode = nextRNode()) {\n          applyToElementOrContainer(action, renderer, parentRElement, rNode, beforeNode);\n        }\n        applyToElementOrContainer(action, renderer, parentRElement, rawSlotValue, beforeNode);\n      } else if (tNodeType & 16 /* TNodeType.Projection */) {\n        applyProjectionRecursive(renderer, action, lView, tNode, parentRElement, beforeNode);\n      } else {\n        ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ | 4 /* TNodeType.Container */);\n        applyToElementOrContainer(action, renderer, parentRElement, rawSlotValue, beforeNode);\n      }\n    }\n    tNode = isProjection ? tNode.projectionNext : tNode.next;\n  }\n}\nfunction applyView(tView, lView, renderer, action, parentRElement, beforeNode) {\n  applyNodes(renderer, action, tView.firstChild, lView, parentRElement, beforeNode, false);\n}\n/**\n * `applyProjection` performs operation on the projection.\n *\n * Inserting a projection requires us to locate the projected nodes from the parent component. The\n * complication is that those nodes themselves could be re-projected from their parent component.\n *\n * @param tView The `TView` of `LView` which needs to be inserted, detached, destroyed\n * @param lView The `LView` which needs to be inserted, detached, destroyed.\n * @param tProjectionNode node to project\n */\nfunction applyProjection(tView, lView, tProjectionNode) {\n  const renderer = lView[RENDERER];\n  const parentRNode = getParentRElement(tView, tProjectionNode, lView);\n  const parentTNode = tProjectionNode.parent || lView[T_HOST];\n  let beforeNode = getInsertInFrontOfRNode(parentTNode, tProjectionNode, lView);\n  applyProjectionRecursive(renderer, 0 /* WalkTNodeTreeAction.Create */, lView, tProjectionNode, parentRNode, beforeNode);\n}\n/**\n * `applyProjectionRecursive` performs operation on the projection specified by `action` (insert,\n * detach, destroy)\n *\n * Inserting a projection requires us to locate the projected nodes from the parent component. The\n * complication is that those nodes themselves could be re-projected from their parent component.\n *\n * @param renderer Render to use\n * @param action action to perform (insert, detach, destroy)\n * @param lView The LView which needs to be inserted, detached, destroyed.\n * @param tProjectionNode node to project\n * @param parentRElement parent DOM element for insertion/removal.\n * @param beforeNode Before which node the insertions should happen.\n */\nfunction applyProjectionRecursive(renderer, action, lView, tProjectionNode, parentRElement, beforeNode) {\n  const componentLView = lView[DECLARATION_COMPONENT_VIEW];\n  const componentNode = componentLView[T_HOST];\n  ngDevMode && assertEqual(typeof tProjectionNode.projection, 'number', 'expecting projection index');\n  const nodeToProjectOrRNodes = componentNode.projection[tProjectionNode.projection];\n  if (Array.isArray(nodeToProjectOrRNodes)) {\n    // This should not exist, it is a bit of a hack. When we bootstrap a top level node and we\n    // need to support passing projectable nodes, so we cheat and put them in the TNode\n    // of the Host TView. (Yes we put instance info at the T Level). We can get away with it\n    // because we know that TView is not shared and therefore it will not be a problem.\n    // This should be refactored and cleaned up.\n    for (let i = 0; i < nodeToProjectOrRNodes.length; i++) {\n      const rNode = nodeToProjectOrRNodes[i];\n      applyToElementOrContainer(action, renderer, parentRElement, rNode, beforeNode);\n    }\n  } else {\n    let nodeToProject = nodeToProjectOrRNodes;\n    const projectedComponentLView = componentLView[PARENT];\n    // If a parent <ng-content> is located within a skip hydration block,\n    // annotate an actual node that is being projected with the same flag too.\n    if (hasInSkipHydrationBlockFlag(tProjectionNode)) {\n      nodeToProject.flags |= 128 /* TNodeFlags.inSkipHydrationBlock */;\n    }\n    applyNodes(renderer, action, nodeToProject, projectedComponentLView, parentRElement, beforeNode, true);\n  }\n}\n/**\n * `applyContainer` performs an operation on the container and its views as specified by\n * `action` (insert, detach, destroy)\n *\n * Inserting a Container is complicated by the fact that the container may have Views which\n * themselves have containers or projections.\n *\n * @param renderer Renderer to use\n * @param action action to perform (insert, detach, destroy)\n * @param lContainer The LContainer which needs to be inserted, detached, destroyed.\n * @param parentRElement parent DOM element for insertion/removal.\n * @param beforeNode Before which node the insertions should happen.\n */\nfunction applyContainer(renderer, action, lContainer, parentRElement, beforeNode) {\n  ngDevMode && assertLContainer(lContainer);\n  const anchor = lContainer[NATIVE]; // LContainer has its own before node.\n  const native = unwrapRNode(lContainer);\n  // An LContainer can be created dynamically on any node by injecting ViewContainerRef.\n  // Asking for a ViewContainerRef on an element will result in a creation of a separate anchor\n  // node (comment in the DOM) that will be different from the LContainer's host node. In this\n  // particular case we need to execute action on 2 nodes:\n  // - container's host node (this is done in the executeActionOnElementOrContainer)\n  // - container's host node (this is done here)\n  if (anchor !== native) {\n    // This is very strange to me (Misko). I would expect that the native is same as anchor. I\n    // don't see a reason why they should be different, but they are.\n    //\n    // If they are we need to process the second anchor as well.\n    applyToElementOrContainer(action, renderer, parentRElement, anchor, beforeNode);\n  }\n  for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {\n    const lView = lContainer[i];\n    applyView(lView[TVIEW], lView, renderer, action, parentRElement, anchor);\n  }\n}\n/**\n * Writes class/style to element.\n *\n * @param renderer Renderer to use.\n * @param isClassBased `true` if it should be written to `class` (`false` to write to `style`)\n * @param rNode The Node to write to.\n * @param prop Property to write to. This would be the class/style name.\n * @param value Value to write. If `null`/`undefined`/`false` this is considered a remove (set/add\n *        otherwise).\n */\nfunction applyStyling(renderer, isClassBased, rNode, prop, value) {\n  if (isClassBased) {\n    // We actually want JS true/false here because any truthy value should add the class\n    if (!value) {\n      ngDevMode && ngDevMode.rendererRemoveClass++;\n      renderer.removeClass(rNode, prop);\n    } else {\n      ngDevMode && ngDevMode.rendererAddClass++;\n      renderer.addClass(rNode, prop);\n    }\n  } else {\n    let flags = prop.indexOf('-') === -1 ? undefined : RendererStyleFlags2.DashCase;\n    if (value == null /** || value === undefined */) {\n      ngDevMode && ngDevMode.rendererRemoveStyle++;\n      renderer.removeStyle(rNode, prop, flags);\n    } else {\n      // A value is important if it ends with `!important`. The style\n      // parser strips any semicolons at the end of the value.\n      const isImportant = typeof value === 'string' ? value.endsWith('!important') : false;\n      if (isImportant) {\n        // !important has to be stripped from the value for it to be valid.\n        value = value.slice(0, -10);\n        flags |= RendererStyleFlags2.Important;\n      }\n      ngDevMode && ngDevMode.rendererSetStyle++;\n      renderer.setStyle(rNode, prop, value, flags);\n    }\n  }\n}\n/**\n * Write `cssText` to `RElement`.\n *\n * This function does direct write without any reconciliation. Used for writing initial values, so\n * that static styling values do not pull in the style parser.\n *\n * @param renderer Renderer to use\n * @param element The element which needs to be updated.\n * @param newValue The new class list to write.\n */\nfunction writeDirectStyle(renderer, element, newValue) {\n  ngDevMode && assertString(newValue, '\\'newValue\\' should be a string');\n  renderer.setAttribute(element, 'style', newValue);\n  ngDevMode && ngDevMode.rendererSetStyle++;\n}\n/**\n * Write `className` to `RElement`.\n *\n * This function does direct write without any reconciliation. Used for writing initial values, so\n * that static styling values do not pull in the style parser.\n *\n * @param renderer Renderer to use\n * @param element The element which needs to be updated.\n * @param newValue The new class list to write.\n */\nfunction writeDirectClass(renderer, element, newValue) {\n  ngDevMode && assertString(newValue, '\\'newValue\\' should be a string');\n  if (newValue === '') {\n    // There are tests in `google3` which expect `element.getAttribute('class')` to be `null`.\n    renderer.removeAttribute(element, 'class');\n  } else {\n    renderer.setAttribute(element, 'class', newValue);\n  }\n  ngDevMode && ngDevMode.rendererSetClassName++;\n}\n/** Sets up the static DOM attributes on an `RNode`. */\nfunction setupStaticAttributes(renderer, element, tNode) {\n  const {\n    mergedAttrs,\n    classes,\n    styles\n  } = tNode;\n  if (mergedAttrs !== null) {\n    setUpAttributes(renderer, element, mergedAttrs);\n  }\n  if (classes !== null) {\n    writeDirectClass(renderer, element, classes);\n  }\n  if (styles !== null) {\n    writeDirectStyle(renderer, element, styles);\n  }\n}\n\n/** A special value which designates that a value has not changed. */\nconst NO_CHANGE = typeof ngDevMode === 'undefined' || ngDevMode ? {\n  __brand__: 'NO_CHANGE'\n} : {};\n\n/**\n * Advances to an element for later binding instructions.\n *\n * Used in conjunction with instructions like {@link property} to act on elements with specified\n * indices, for example those created with {@link element} or {@link elementStart}.\n *\n * ```ts\n * (rf: RenderFlags, ctx: any) => {\n *   if (rf & 1) {\n *     text(0, 'Hello');\n *     text(1, 'Goodbye')\n *     element(2, 'div');\n *   }\n *   if (rf & 2) {\n *     advance(2); // Advance twice to the <div>.\n *     property('title', 'test');\n *   }\n *  }\n * ```\n * @param delta Number of elements to advance forwards by.\n *\n * @codeGenApi\n */\nfunction ɵɵadvance(delta = 1) {\n  ngDevMode && assertGreaterThan(delta, 0, 'Can only advance forward');\n  selectIndexInternal(getTView(), getLView(), getSelectedIndex() + delta, !!ngDevMode && isInCheckNoChangesMode());\n}\nfunction selectIndexInternal(tView, lView, index, checkNoChangesMode) {\n  ngDevMode && assertIndexInDeclRange(lView[TVIEW], index);\n  // Flush the initial hooks for elements in the view that have been added up to this point.\n  // PERF WARNING: do NOT extract this to a separate function without running benchmarks\n  if (!checkNoChangesMode) {\n    const hooksInitPhaseCompleted = (lView[FLAGS] & 3 /* LViewFlags.InitPhaseStateMask */) === 3 /* InitPhaseState.InitPhaseCompleted */;\n    if (hooksInitPhaseCompleted) {\n      const preOrderCheckHooks = tView.preOrderCheckHooks;\n      if (preOrderCheckHooks !== null) {\n        executeCheckHooks(lView, preOrderCheckHooks, index);\n      }\n    } else {\n      const preOrderHooks = tView.preOrderHooks;\n      if (preOrderHooks !== null) {\n        executeInitAndCheckHooks(lView, preOrderHooks, 0 /* InitPhaseState.OnInitHooksToBeRun */, index);\n      }\n    }\n  }\n  // We must set the selected index *after* running the hooks, because hooks may have side-effects\n  // that cause other template functions to run, thus updating the selected index, which is global\n  // state. If we run `setSelectedIndex` *before* we run the hooks, in some cases the selected index\n  // will be altered by the time we leave the `ɵɵadvance` instruction.\n  setSelectedIndex(index);\n}\nfunction ɵɵdirectiveInject(token, flags = InjectFlags.Default) {\n  const lView = getLView();\n  // Fall back to inject() if view hasn't been created. This situation can happen in tests\n  // if inject utilities are used before bootstrapping.\n  if (lView === null) {\n    // Verify that we will not get into infinite loop.\n    ngDevMode && assertInjectImplementationNotEqual(ɵɵdirectiveInject);\n    return ɵɵinject(token, flags);\n  }\n  const tNode = getCurrentTNode();\n  const value = getOrCreateInjectable(tNode, lView, resolveForwardRef(token), flags);\n  ngDevMode && emitInjectEvent(token, value, flags);\n  return value;\n}\n/**\n * Throws an error indicating that a factory function could not be generated by the compiler for a\n * particular class.\n *\n * This instruction allows the actual error message to be optimized away when ngDevMode is turned\n * off, saving bytes of generated code while still providing a good experience in dev mode.\n *\n * The name of the class is not mentioned here, but will be in the generated factory function name\n * and thus in the stack trace.\n *\n * @codeGenApi\n */\nfunction ɵɵinvalidFactory() {\n  const msg = ngDevMode ? `This constructor was not compatible with Dependency Injection.` : 'invalid';\n  throw new Error(msg);\n}\nfunction writeToDirectiveInput(def, instance, publicName, privateName, flags, value) {\n  const prevConsumer = setActiveConsumer$1(null);\n  try {\n    // If we know we are dealing with a signal input, we cache its reference\n    // in a tree-shakable way. The input signal node can then be used for\n    // value transform execution or actual value updates without introducing\n    // additional megamorphic accesses for accessing the instance field.\n    let inputSignalNode = null;\n    if ((flags & InputFlags.SignalBased) !== 0) {\n      const field = instance[privateName];\n      inputSignalNode = field[SIGNAL$1];\n    }\n    // If there is a signal node and a transform, run it before potentially\n    // delegating to features like `NgOnChanges`.\n    if (inputSignalNode !== null && inputSignalNode.transformFn !== undefined) {\n      value = inputSignalNode.transformFn(value);\n    }\n    // If there is a decorator input transform, run it.\n    if ((flags & InputFlags.HasDecoratorInputTransform) !== 0) {\n      value = def.inputTransforms[privateName].call(instance, value);\n    }\n    if (def.setInput !== null) {\n      def.setInput(instance, inputSignalNode, value, publicName, privateName);\n    } else {\n      applyValueToInputField(instance, inputSignalNode, privateName, value);\n    }\n  } finally {\n    setActiveConsumer$1(prevConsumer);\n  }\n}\n\n/**\n * Invoke `HostBindingsFunction`s for view.\n *\n * This methods executes `TView.hostBindingOpCodes`. It is used to execute the\n * `HostBindingsFunction`s associated with the current `LView`.\n *\n * @param tView Current `TView`.\n * @param lView Current `LView`.\n */\nfunction processHostBindingOpCodes(tView, lView) {\n  const hostBindingOpCodes = tView.hostBindingOpCodes;\n  if (hostBindingOpCodes === null) return;\n  try {\n    for (let i = 0; i < hostBindingOpCodes.length; i++) {\n      const opCode = hostBindingOpCodes[i];\n      if (opCode < 0) {\n        // Negative numbers are element indexes.\n        setSelectedIndex(~opCode);\n      } else {\n        // Positive numbers are NumberTuple which store bindingRootIndex and directiveIndex.\n        const directiveIdx = opCode;\n        const bindingRootIndx = hostBindingOpCodes[++i];\n        const hostBindingFn = hostBindingOpCodes[++i];\n        setBindingRootForHostBindings(bindingRootIndx, directiveIdx);\n        const context = lView[directiveIdx];\n        hostBindingFn(2 /* RenderFlags.Update */, context);\n      }\n    }\n  } finally {\n    setSelectedIndex(-1);\n  }\n}\nfunction createLView(parentLView, tView, context, flags, host, tHostNode, environment, renderer, injector, embeddedViewInjector, hydrationInfo) {\n  const lView = tView.blueprint.slice();\n  lView[HOST] = host;\n  lView[FLAGS] = flags | 4 /* LViewFlags.CreationMode */ | 128 /* LViewFlags.Attached */ | 8 /* LViewFlags.FirstLViewPass */ | 64 /* LViewFlags.Dirty */;\n  if (embeddedViewInjector !== null || parentLView && parentLView[FLAGS] & 2048 /* LViewFlags.HasEmbeddedViewInjector */) {\n    lView[FLAGS] |= 2048 /* LViewFlags.HasEmbeddedViewInjector */;\n  }\n  resetPreOrderHookFlags(lView);\n  ngDevMode && tView.declTNode && parentLView && assertTNodeForLView(tView.declTNode, parentLView);\n  lView[PARENT] = lView[DECLARATION_VIEW] = parentLView;\n  lView[CONTEXT] = context;\n  lView[ENVIRONMENT] = environment || parentLView && parentLView[ENVIRONMENT];\n  ngDevMode && assertDefined(lView[ENVIRONMENT], 'LViewEnvironment is required');\n  lView[RENDERER] = renderer || parentLView && parentLView[RENDERER];\n  ngDevMode && assertDefined(lView[RENDERER], 'Renderer is required');\n  lView[INJECTOR] = injector || parentLView && parentLView[INJECTOR] || null;\n  lView[T_HOST] = tHostNode;\n  lView[ID] = getUniqueLViewId();\n  lView[HYDRATION] = hydrationInfo;\n  lView[EMBEDDED_VIEW_INJECTOR] = embeddedViewInjector;\n  ngDevMode && assertEqual(tView.type == 2 /* TViewType.Embedded */ ? parentLView !== null : true, true, 'Embedded views must have parentLView');\n  lView[DECLARATION_COMPONENT_VIEW] = tView.type == 2 /* TViewType.Embedded */ ? parentLView[DECLARATION_COMPONENT_VIEW] : lView;\n  return lView;\n}\nfunction getOrCreateTNode(tView, index, type, name, attrs) {\n  ngDevMode && index !== 0 &&\n  // 0 are bogus nodes and they are OK. See `createContainerRef` in\n  // `view_engine_compatibility` for additional context.\n  assertGreaterThanOrEqual(index, HEADER_OFFSET, 'TNodes can\\'t be in the LView header.');\n  // Keep this function short, so that the VM will inline it.\n  ngDevMode && assertPureTNodeType(type);\n  let tNode = tView.data[index];\n  if (tNode === null) {\n    tNode = createTNodeAtIndex(tView, index, type, name, attrs);\n    if (isInI18nBlock()) {\n      // If we are in i18n block then all elements should be pre declared through `Placeholder`\n      // See `TNodeType.Placeholder` and `LFrame.inI18n` for more context.\n      // If the `TNode` was not pre-declared than it means it was not mentioned which means it was\n      // removed, so we mark it as detached.\n      tNode.flags |= 32 /* TNodeFlags.isDetached */;\n    }\n  } else if (tNode.type & 64 /* TNodeType.Placeholder */) {\n    tNode.type = type;\n    tNode.value = name;\n    tNode.attrs = attrs;\n    const parent = getCurrentParentTNode();\n    tNode.injectorIndex = parent === null ? -1 : parent.injectorIndex;\n    ngDevMode && assertTNodeForTView(tNode, tView);\n    ngDevMode && assertEqual(index, tNode.index, 'Expecting same index');\n  }\n  setCurrentTNode(tNode, true);\n  return tNode;\n}\nfunction createTNodeAtIndex(tView, index, type, name, attrs) {\n  const currentTNode = getCurrentTNodePlaceholderOk();\n  const isParent = isCurrentTNodeParent();\n  const parent = isParent ? currentTNode : currentTNode && currentTNode.parent;\n  // Parents cannot cross component boundaries because components will be used in multiple places.\n  const tNode = tView.data[index] = createTNode(tView, parent, type, index, name, attrs);\n  // Assign a pointer to the first child node of a given view. The first node is not always the one\n  // at index 0, in case of i18n, index 0 can be the instruction `i18nStart` and the first node has\n  // the index 1 or more, so we can't just check node index.\n  if (tView.firstChild === null) {\n    tView.firstChild = tNode;\n  }\n  if (currentTNode !== null) {\n    if (isParent) {\n      // FIXME(misko): This logic looks unnecessarily complicated. Could we simplify?\n      if (currentTNode.child == null && tNode.parent !== null) {\n        // We are in the same view, which means we are adding content node to the parent view.\n        currentTNode.child = tNode;\n      }\n    } else {\n      if (currentTNode.next === null) {\n        // In the case of i18n the `currentTNode` may already be linked, in which case we don't want\n        // to break the links which i18n created.\n        currentTNode.next = tNode;\n        tNode.prev = currentTNode;\n      }\n    }\n  }\n  return tNode;\n}\n/**\n * When elements are created dynamically after a view blueprint is created (e.g. through\n * i18nApply()), we need to adjust the blueprint for future\n * template passes.\n *\n * @param tView `TView` associated with `LView`\n * @param lView The `LView` containing the blueprint to adjust\n * @param numSlotsToAlloc The number of slots to alloc in the LView, should be >0\n * @param initialValue Initial value to store in blueprint\n */\nfunction allocExpando(tView, lView, numSlotsToAlloc, initialValue) {\n  if (numSlotsToAlloc === 0) return -1;\n  if (ngDevMode) {\n    assertFirstCreatePass(tView);\n    assertSame(tView, lView[TVIEW], '`LView` must be associated with `TView`!');\n    assertEqual(tView.data.length, lView.length, 'Expecting LView to be same size as TView');\n    assertEqual(tView.data.length, tView.blueprint.length, 'Expecting Blueprint to be same size as TView');\n    assertFirstUpdatePass(tView);\n  }\n  const allocIdx = lView.length;\n  for (let i = 0; i < numSlotsToAlloc; i++) {\n    lView.push(initialValue);\n    tView.blueprint.push(initialValue);\n    tView.data.push(null);\n  }\n  return allocIdx;\n}\nfunction executeTemplate(tView, lView, templateFn, rf, context) {\n  const prevSelectedIndex = getSelectedIndex();\n  const isUpdatePhase = rf & 2 /* RenderFlags.Update */;\n  try {\n    setSelectedIndex(-1);\n    if (isUpdatePhase && lView.length > HEADER_OFFSET) {\n      // When we're updating, inherently select 0 so we don't\n      // have to generate that instruction for most update blocks.\n      selectIndexInternal(tView, lView, HEADER_OFFSET, !!ngDevMode && isInCheckNoChangesMode());\n    }\n    const preHookType = isUpdatePhase ? 2 /* ProfilerEvent.TemplateUpdateStart */ : 0 /* ProfilerEvent.TemplateCreateStart */;\n    profiler(preHookType, context);\n    templateFn(rf, context);\n  } finally {\n    setSelectedIndex(prevSelectedIndex);\n    const postHookType = isUpdatePhase ? 3 /* ProfilerEvent.TemplateUpdateEnd */ : 1 /* ProfilerEvent.TemplateCreateEnd */;\n    profiler(postHookType, context);\n  }\n}\n//////////////////////////\n//// Element\n//////////////////////////\nfunction executeContentQueries(tView, tNode, lView) {\n  if (isContentQueryHost(tNode)) {\n    const prevConsumer = setActiveConsumer$1(null);\n    try {\n      const start = tNode.directiveStart;\n      const end = tNode.directiveEnd;\n      for (let directiveIndex = start; directiveIndex < end; directiveIndex++) {\n        const def = tView.data[directiveIndex];\n        if (def.contentQueries) {\n          const directiveInstance = lView[directiveIndex];\n          ngDevMode && assertDefined(directiveIndex, 'Incorrect reference to a directive defining a content query');\n          def.contentQueries(1 /* RenderFlags.Create */, directiveInstance, directiveIndex);\n        }\n      }\n    } finally {\n      setActiveConsumer$1(prevConsumer);\n    }\n  }\n}\n/**\n * Creates directive instances.\n */\nfunction createDirectivesInstances(tView, lView, tNode) {\n  if (!getBindingsEnabled()) return;\n  instantiateAllDirectives(tView, lView, tNode, getNativeByTNode(tNode, lView));\n  if ((tNode.flags & 64 /* TNodeFlags.hasHostBindings */) === 64 /* TNodeFlags.hasHostBindings */) {\n    invokeDirectivesHostBindings(tView, lView, tNode);\n  }\n}\n/**\n * Takes a list of local names and indices and pushes the resolved local variable values\n * to LView in the same order as they are loaded in the template with load().\n */\nfunction saveResolvedLocalsInData(viewData, tNode, localRefExtractor = getNativeByTNode) {\n  const localNames = tNode.localNames;\n  if (localNames !== null) {\n    let localIndex = tNode.index + 1;\n    for (let i = 0; i < localNames.length; i += 2) {\n      const index = localNames[i + 1];\n      const value = index === -1 ? localRefExtractor(tNode, viewData) : viewData[index];\n      viewData[localIndex++] = value;\n    }\n  }\n}\n/**\n * Gets TView from a template function or creates a new TView\n * if it doesn't already exist.\n *\n * @param def ComponentDef\n * @returns TView\n */\nfunction getOrCreateComponentTView(def) {\n  const tView = def.tView;\n  // Create a TView if there isn't one, or recreate it if the first create pass didn't\n  // complete successfully since we can't know for sure whether it's in a usable shape.\n  if (tView === null || tView.incompleteFirstPass) {\n    // Declaration node here is null since this function is called when we dynamically create a\n    // component and hence there is no declaration.\n    const declTNode = null;\n    return def.tView = createTView(1 /* TViewType.Component */, declTNode, def.template, def.decls, def.vars, def.directiveDefs, def.pipeDefs, def.viewQuery, def.schemas, def.consts, def.id);\n  }\n  return tView;\n}\n/**\n * Creates a TView instance\n *\n * @param type Type of `TView`.\n * @param declTNode Declaration location of this `TView`.\n * @param templateFn Template function\n * @param decls The number of nodes, local refs, and pipes in this template\n * @param directives Registry of directives for this view\n * @param pipes Registry of pipes for this view\n * @param viewQuery View queries for this view\n * @param schemas Schemas for this view\n * @param consts Constants for this view\n */\nfunction createTView(type, declTNode, templateFn, decls, vars, directives, pipes, viewQuery, schemas, constsOrFactory, ssrId) {\n  ngDevMode && ngDevMode.tView++;\n  const bindingStartIndex = HEADER_OFFSET + decls;\n  // This length does not yet contain host bindings from child directives because at this point,\n  // we don't know which directives are active on this template. As soon as a directive is matched\n  // that has a host binding, we will update the blueprint with that def's hostVars count.\n  const initialViewLength = bindingStartIndex + vars;\n  const blueprint = createViewBlueprint(bindingStartIndex, initialViewLength);\n  const consts = typeof constsOrFactory === 'function' ? constsOrFactory() : constsOrFactory;\n  const tView = blueprint[TVIEW] = {\n    type: type,\n    blueprint: blueprint,\n    template: templateFn,\n    queries: null,\n    viewQuery: viewQuery,\n    declTNode: declTNode,\n    data: blueprint.slice().fill(null, bindingStartIndex),\n    bindingStartIndex: bindingStartIndex,\n    expandoStartIndex: initialViewLength,\n    hostBindingOpCodes: null,\n    firstCreatePass: true,\n    firstUpdatePass: true,\n    staticViewQueries: false,\n    staticContentQueries: false,\n    preOrderHooks: null,\n    preOrderCheckHooks: null,\n    contentHooks: null,\n    contentCheckHooks: null,\n    viewHooks: null,\n    viewCheckHooks: null,\n    destroyHooks: null,\n    cleanup: null,\n    contentQueries: null,\n    components: null,\n    directiveRegistry: typeof directives === 'function' ? directives() : directives,\n    pipeRegistry: typeof pipes === 'function' ? pipes() : pipes,\n    firstChild: null,\n    schemas: schemas,\n    consts: consts,\n    incompleteFirstPass: false,\n    ssrId\n  };\n  if (ngDevMode) {\n    // For performance reasons it is important that the tView retains the same shape during runtime.\n    // (To make sure that all of the code is monomorphic.) For this reason we seal the object to\n    // prevent class transitions.\n    Object.seal(tView);\n  }\n  return tView;\n}\nfunction createViewBlueprint(bindingStartIndex, initialViewLength) {\n  const blueprint = [];\n  for (let i = 0; i < initialViewLength; i++) {\n    blueprint.push(i < bindingStartIndex ? null : NO_CHANGE);\n  }\n  return blueprint;\n}\n/**\n * Locates the host native element, used for bootstrapping existing nodes into rendering pipeline.\n *\n * @param renderer the renderer used to locate the element.\n * @param elementOrSelector Render element or CSS selector to locate the element.\n * @param encapsulation View Encapsulation defined for component that requests host element.\n * @param injector Root view injector instance.\n */\nfunction locateHostElement(renderer, elementOrSelector, encapsulation, injector) {\n  // Note: we use default value for the `PRESERVE_HOST_CONTENT` here even though it's a\n  // tree-shakable one (providedIn:'root'). This code path can be triggered during dynamic\n  // component creation (after calling ViewContainerRef.createComponent) when an injector\n  // instance can be provided. The injector instance might be disconnected from the main DI\n  // tree, thus the `PRESERVE_HOST_CONTENT` would not be able to instantiate. In this case, the\n  // default value will be used.\n  const preserveHostContent = injector.get(PRESERVE_HOST_CONTENT, PRESERVE_HOST_CONTENT_DEFAULT);\n  // When using native Shadow DOM, do not clear host element to allow native slot\n  // projection.\n  const preserveContent = preserveHostContent || encapsulation === ViewEncapsulation$1.ShadowDom;\n  const rootElement = renderer.selectRootElement(elementOrSelector, preserveContent);\n  applyRootElementTransform(rootElement);\n  return rootElement;\n}\n/**\n * Applies any root element transformations that are needed. If hydration is enabled,\n * this will process corrupted text nodes.\n *\n * @param rootElement the app root HTML Element\n */\nfunction applyRootElementTransform(rootElement) {\n  _applyRootElementTransformImpl(rootElement);\n}\n/**\n * Reference to a function that applies transformations to the root HTML element\n * of an app. When hydration is enabled, this processes any corrupt text nodes\n * so they are properly hydratable on the client.\n *\n * @param rootElement the app root HTML Element\n */\nlet _applyRootElementTransformImpl = () => null;\n/**\n * Processes text node markers before hydration begins. This replaces any special comment\n * nodes that were added prior to serialization are swapped out to restore proper text\n * nodes before hydration.\n *\n * @param rootElement the app root HTML Element\n */\nfunction applyRootElementTransformImpl(rootElement) {\n  if (hasSkipHydrationAttrOnRElement(rootElement)) {\n    // Handle a situation when the `ngSkipHydration` attribute is applied\n    // to the root node of an application. In this case, we should clear\n    // the contents and render everything from scratch.\n    clearElementContents(rootElement);\n  } else {\n    processTextNodeMarkersBeforeHydration(rootElement);\n  }\n}\n/**\n * Sets the implementation for the `applyRootElementTransform` function.\n */\nfunction enableApplyRootElementTransformImpl() {\n  _applyRootElementTransformImpl = applyRootElementTransformImpl;\n}\n/**\n * Saves context for this cleanup function in LView.cleanupInstances.\n *\n * On the first template pass, saves in TView:\n * - Cleanup function\n * - Index of context we just saved in LView.cleanupInstances\n */\nfunction storeCleanupWithContext(tView, lView, context, cleanupFn) {\n  const lCleanup = getOrCreateLViewCleanup(lView);\n  // Historically the `storeCleanupWithContext` was used to register both framework-level and\n  // user-defined cleanup callbacks, but over time those two types of cleanups were separated.\n  // This dev mode checks assures that user-level cleanup callbacks are _not_ stored in data\n  // structures reserved for framework-specific hooks.\n  ngDevMode && assertDefined(context, 'Cleanup context is mandatory when registering framework-level destroy hooks');\n  lCleanup.push(context);\n  if (tView.firstCreatePass) {\n    getOrCreateTViewCleanup(tView).push(cleanupFn, lCleanup.length - 1);\n  } else {\n    // Make sure that no new framework-level cleanup functions are registered after the first\n    // template pass is done (and TView data structures are meant to fully constructed).\n    if (ngDevMode) {\n      Object.freeze(getOrCreateTViewCleanup(tView));\n    }\n  }\n}\nfunction createTNode(tView, tParent, type, index, value, attrs) {\n  ngDevMode && index !== 0 &&\n  // 0 are bogus nodes and they are OK. See `createContainerRef` in\n  // `view_engine_compatibility` for additional context.\n  assertGreaterThanOrEqual(index, HEADER_OFFSET, 'TNodes can\\'t be in the LView header.');\n  ngDevMode && assertNotSame(attrs, undefined, '\\'undefined\\' is not valid value for \\'attrs\\'');\n  ngDevMode && ngDevMode.tNode++;\n  ngDevMode && tParent && assertTNodeForTView(tParent, tView);\n  let injectorIndex = tParent ? tParent.injectorIndex : -1;\n  let flags = 0;\n  if (isInSkipHydrationBlock$1()) {\n    flags |= 128 /* TNodeFlags.inSkipHydrationBlock */;\n  }\n  const tNode = {\n    type,\n    index,\n    insertBeforeIndex: null,\n    injectorIndex,\n    directiveStart: -1,\n    directiveEnd: -1,\n    directiveStylingLast: -1,\n    componentOffset: -1,\n    propertyBindings: null,\n    flags,\n    providerIndexes: 0,\n    value: value,\n    attrs: attrs,\n    mergedAttrs: null,\n    localNames: null,\n    initialInputs: undefined,\n    inputs: null,\n    outputs: null,\n    tView: null,\n    next: null,\n    prev: null,\n    projectionNext: null,\n    child: null,\n    parent: tParent,\n    projection: null,\n    styles: null,\n    stylesWithoutHost: null,\n    residualStyles: undefined,\n    classes: null,\n    classesWithoutHost: null,\n    residualClasses: undefined,\n    classBindings: 0,\n    styleBindings: 0\n  };\n  if (ngDevMode) {\n    // For performance reasons it is important that the tNode retains the same shape during runtime.\n    // (To make sure that all of the code is monomorphic.) For this reason we seal the object to\n    // prevent class transitions.\n    Object.seal(tNode);\n  }\n  return tNode;\n}\nfunction captureNodeBindings(mode, aliasMap, directiveIndex, bindingsResult, hostDirectiveAliasMap) {\n  for (let publicName in aliasMap) {\n    if (!aliasMap.hasOwnProperty(publicName)) {\n      continue;\n    }\n    const value = aliasMap[publicName];\n    if (value === undefined) {\n      continue;\n    }\n    bindingsResult ??= {};\n    let internalName;\n    let inputFlags = InputFlags.None;\n    // For inputs, the value might be an array capturing additional\n    // input flags.\n    if (Array.isArray(value)) {\n      internalName = value[0];\n      inputFlags = value[1];\n    } else {\n      internalName = value;\n    }\n    // If there are no host directive mappings, we want to remap using the alias map from the\n    // definition itself. If there is an alias map, it has two functions:\n    // 1. It serves as an allowlist of bindings that are exposed by the host directives. Only the\n    // ones inside the host directive map will be exposed on the host.\n    // 2. The public name of the property is aliased using the host directive alias map, rather\n    // than the alias map from the definition.\n    let finalPublicName = publicName;\n    if (hostDirectiveAliasMap !== null) {\n      // If there is no mapping, it's not part of the allowlist and this input/output\n      // is not captured and should be ignored.\n      if (!hostDirectiveAliasMap.hasOwnProperty(publicName)) {\n        continue;\n      }\n      finalPublicName = hostDirectiveAliasMap[publicName];\n    }\n    if (mode === 0 /* CaptureNodeBindingMode.Inputs */) {\n      addPropertyBinding(bindingsResult, directiveIndex, finalPublicName, internalName, inputFlags);\n    } else {\n      addPropertyBinding(bindingsResult, directiveIndex, finalPublicName, internalName);\n    }\n  }\n  return bindingsResult;\n}\nfunction addPropertyBinding(bindings, directiveIndex, publicName, internalName, inputFlags) {\n  let values;\n  if (bindings.hasOwnProperty(publicName)) {\n    (values = bindings[publicName]).push(directiveIndex, internalName);\n  } else {\n    values = bindings[publicName] = [directiveIndex, internalName];\n  }\n  if (inputFlags !== undefined) {\n    values.push(inputFlags);\n  }\n}\n/**\n * Initializes data structures required to work with directive inputs and outputs.\n * Initialization is done for all directives matched on a given TNode.\n */\nfunction initializeInputAndOutputAliases(tView, tNode, hostDirectiveDefinitionMap) {\n  ngDevMode && assertFirstCreatePass(tView);\n  const start = tNode.directiveStart;\n  const end = tNode.directiveEnd;\n  const tViewData = tView.data;\n  const tNodeAttrs = tNode.attrs;\n  const inputsFromAttrs = [];\n  let inputsStore = null;\n  let outputsStore = null;\n  for (let directiveIndex = start; directiveIndex < end; directiveIndex++) {\n    const directiveDef = tViewData[directiveIndex];\n    const aliasData = hostDirectiveDefinitionMap ? hostDirectiveDefinitionMap.get(directiveDef) : null;\n    const aliasedInputs = aliasData ? aliasData.inputs : null;\n    const aliasedOutputs = aliasData ? aliasData.outputs : null;\n    inputsStore = captureNodeBindings(0 /* CaptureNodeBindingMode.Inputs */, directiveDef.inputs, directiveIndex, inputsStore, aliasedInputs);\n    outputsStore = captureNodeBindings(1 /* CaptureNodeBindingMode.Outputs */, directiveDef.outputs, directiveIndex, outputsStore, aliasedOutputs);\n    // Do not use unbound attributes as inputs to structural directives, since structural\n    // directive inputs can only be set using microsyntax (e.g. `<div *dir=\"exp\">`).\n    // TODO(FW-1930): microsyntax expressions may also contain unbound/static attributes, which\n    // should be set for inline templates.\n    const initialInputs = inputsStore !== null && tNodeAttrs !== null && !isInlineTemplate(tNode) ? generateInitialInputs(inputsStore, directiveIndex, tNodeAttrs) : null;\n    inputsFromAttrs.push(initialInputs);\n  }\n  if (inputsStore !== null) {\n    if (inputsStore.hasOwnProperty('class')) {\n      tNode.flags |= 8 /* TNodeFlags.hasClassInput */;\n    }\n    if (inputsStore.hasOwnProperty('style')) {\n      tNode.flags |= 16 /* TNodeFlags.hasStyleInput */;\n    }\n  }\n  tNode.initialInputs = inputsFromAttrs;\n  tNode.inputs = inputsStore;\n  tNode.outputs = outputsStore;\n}\n/**\n * Mapping between attributes names that don't correspond to their element property names.\n *\n * Performance note: this function is written as a series of if checks (instead of, say, a property\n * object lookup) for performance reasons - the series of `if` checks seems to be the fastest way of\n * mapping property names. Do NOT change without benchmarking.\n *\n * Note: this mapping has to be kept in sync with the equally named mapping in the template\n * type-checking machinery of ngtsc.\n */\nfunction mapPropName(name) {\n  if (name === 'class') return 'className';\n  if (name === 'for') return 'htmlFor';\n  if (name === 'formaction') return 'formAction';\n  if (name === 'innerHtml') return 'innerHTML';\n  if (name === 'readonly') return 'readOnly';\n  if (name === 'tabindex') return 'tabIndex';\n  return name;\n}\nfunction elementPropertyInternal(tView, tNode, lView, propName, value, renderer, sanitizer, nativeOnly) {\n  ngDevMode && assertNotSame(value, NO_CHANGE, 'Incoming value should never be NO_CHANGE.');\n  const element = getNativeByTNode(tNode, lView);\n  let inputData = tNode.inputs;\n  let dataValue;\n  if (!nativeOnly && inputData != null && (dataValue = inputData[propName])) {\n    setInputsForProperty(tView, lView, dataValue, propName, value);\n    if (isComponentHost(tNode)) markDirtyIfOnPush(lView, tNode.index);\n    if (ngDevMode) {\n      setNgReflectProperties(lView, element, tNode.type, dataValue, value);\n    }\n  } else if (tNode.type & 3 /* TNodeType.AnyRNode */) {\n    propName = mapPropName(propName);\n    if (ngDevMode) {\n      validateAgainstEventProperties(propName);\n      if (!isPropertyValid(element, propName, tNode.value, tView.schemas)) {\n        handleUnknownPropertyError(propName, tNode.value, tNode.type, lView);\n      }\n      ngDevMode.rendererSetProperty++;\n    }\n    // It is assumed that the sanitizer is only added when the compiler determines that the\n    // property is risky, so sanitization can be done without further checks.\n    value = sanitizer != null ? sanitizer(value, tNode.value || '', propName) : value;\n    renderer.setProperty(element, propName, value);\n  } else if (tNode.type & 12 /* TNodeType.AnyContainer */) {\n    // If the node is a container and the property didn't\n    // match any of the inputs or schemas we should throw.\n    if (ngDevMode && !matchingSchemas(tView.schemas, tNode.value)) {\n      handleUnknownPropertyError(propName, tNode.value, tNode.type, lView);\n    }\n  }\n}\n/** If node is an OnPush component, marks its LView dirty. */\nfunction markDirtyIfOnPush(lView, viewIndex) {\n  ngDevMode && assertLView(lView);\n  const childComponentLView = getComponentLViewByIndex(viewIndex, lView);\n  if (!(childComponentLView[FLAGS] & 16 /* LViewFlags.CheckAlways */)) {\n    childComponentLView[FLAGS] |= 64 /* LViewFlags.Dirty */;\n  }\n}\nfunction setNgReflectProperty(lView, element, type, attrName, value) {\n  const renderer = lView[RENDERER];\n  attrName = normalizeDebugBindingName(attrName);\n  const debugValue = normalizeDebugBindingValue(value);\n  if (type & 3 /* TNodeType.AnyRNode */) {\n    if (value == null) {\n      renderer.removeAttribute(element, attrName);\n    } else {\n      renderer.setAttribute(element, attrName, debugValue);\n    }\n  } else {\n    const textContent = escapeCommentText(`bindings=${JSON.stringify({\n      [attrName]: debugValue\n    }, null, 2)}`);\n    renderer.setValue(element, textContent);\n  }\n}\nfunction setNgReflectProperties(lView, element, type, dataValue, value) {\n  if (type & (3 /* TNodeType.AnyRNode */ | 4 /* TNodeType.Container */)) {\n    /**\n     * dataValue is an array containing runtime input or output names for the directives:\n     * i+0: directive instance index\n     * i+1: privateName\n     *\n     * e.g. [0, 'change', 'change-minified']\n     * we want to set the reflected property with the privateName: dataValue[i+1]\n     */\n    for (let i = 0; i < dataValue.length; i += 3) {\n      setNgReflectProperty(lView, element, type, dataValue[i + 1], value);\n    }\n  }\n}\n/**\n * Resolve the matched directives on a node.\n */\nfunction resolveDirectives(tView, lView, tNode, localRefs) {\n  // Please make sure to have explicit type for `exportsMap`. Inferred type triggers bug in\n  // tsickle.\n  ngDevMode && assertFirstCreatePass(tView);\n  if (getBindingsEnabled()) {\n    const exportsMap = localRefs === null ? null : {\n      '': -1\n    };\n    const matchResult = findDirectiveDefMatches(tView, tNode);\n    let directiveDefs;\n    let hostDirectiveDefs;\n    if (matchResult === null) {\n      directiveDefs = hostDirectiveDefs = null;\n    } else {\n      [directiveDefs, hostDirectiveDefs] = matchResult;\n    }\n    if (directiveDefs !== null) {\n      initializeDirectives(tView, lView, tNode, directiveDefs, exportsMap, hostDirectiveDefs);\n    }\n    if (exportsMap) cacheMatchingLocalNames(tNode, localRefs, exportsMap);\n  }\n  // Merge the template attrs last so that they have the highest priority.\n  tNode.mergedAttrs = mergeHostAttrs(tNode.mergedAttrs, tNode.attrs);\n}\n/** Initializes the data structures necessary for a list of directives to be instantiated. */\nfunction initializeDirectives(tView, lView, tNode, directives, exportsMap, hostDirectiveDefs) {\n  ngDevMode && assertFirstCreatePass(tView);\n  // Publishes the directive types to DI so they can be injected. Needs to\n  // happen in a separate pass before the TNode flags have been initialized.\n  for (let i = 0; i < directives.length; i++) {\n    diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, lView), tView, directives[i].type);\n  }\n  initTNodeFlags(tNode, tView.data.length, directives.length);\n  // When the same token is provided by several directives on the same node, some rules apply in\n  // the viewEngine:\n  // - viewProviders have priority over providers\n  // - the last directive in NgModule.declarations has priority over the previous one\n  // So to match these rules, the order in which providers are added in the arrays is very\n  // important.\n  for (let i = 0; i < directives.length; i++) {\n    const def = directives[i];\n    if (def.providersResolver) def.providersResolver(def);\n  }\n  let preOrderHooksFound = false;\n  let preOrderCheckHooksFound = false;\n  let directiveIdx = allocExpando(tView, lView, directives.length, null);\n  ngDevMode && assertSame(directiveIdx, tNode.directiveStart, 'TNode.directiveStart should point to just allocated space');\n  for (let i = 0; i < directives.length; i++) {\n    const def = directives[i];\n    // Merge the attrs in the order of matches. This assumes that the first directive is the\n    // component itself, so that the component has the least priority.\n    tNode.mergedAttrs = mergeHostAttrs(tNode.mergedAttrs, def.hostAttrs);\n    configureViewWithDirective(tView, tNode, lView, directiveIdx, def);\n    saveNameToExportMap(directiveIdx, def, exportsMap);\n    if (def.contentQueries !== null) tNode.flags |= 4 /* TNodeFlags.hasContentQuery */;\n    if (def.hostBindings !== null || def.hostAttrs !== null || def.hostVars !== 0) tNode.flags |= 64 /* TNodeFlags.hasHostBindings */;\n    const lifeCycleHooks = def.type.prototype;\n    // Only push a node index into the preOrderHooks array if this is the first\n    // pre-order hook found on this node.\n    if (!preOrderHooksFound && (lifeCycleHooks.ngOnChanges || lifeCycleHooks.ngOnInit || lifeCycleHooks.ngDoCheck)) {\n      // We will push the actual hook function into this array later during dir instantiation.\n      // We cannot do it now because we must ensure hooks are registered in the same\n      // order that directives are created (i.e. injection order).\n      (tView.preOrderHooks ??= []).push(tNode.index);\n      preOrderHooksFound = true;\n    }\n    if (!preOrderCheckHooksFound && (lifeCycleHooks.ngOnChanges || lifeCycleHooks.ngDoCheck)) {\n      (tView.preOrderCheckHooks ??= []).push(tNode.index);\n      preOrderCheckHooksFound = true;\n    }\n    directiveIdx++;\n  }\n  initializeInputAndOutputAliases(tView, tNode, hostDirectiveDefs);\n}\n/**\n * Add `hostBindings` to the `TView.hostBindingOpCodes`.\n *\n * @param tView `TView` to which the `hostBindings` should be added.\n * @param tNode `TNode` the element which contains the directive\n * @param directiveIdx Directive index in view.\n * @param directiveVarsIdx Where will the directive's vars be stored\n * @param def `ComponentDef`/`DirectiveDef`, which contains the `hostVars`/`hostBindings` to add.\n */\nfunction registerHostBindingOpCodes(tView, tNode, directiveIdx, directiveVarsIdx, def) {\n  ngDevMode && assertFirstCreatePass(tView);\n  const hostBindings = def.hostBindings;\n  if (hostBindings) {\n    let hostBindingOpCodes = tView.hostBindingOpCodes;\n    if (hostBindingOpCodes === null) {\n      hostBindingOpCodes = tView.hostBindingOpCodes = [];\n    }\n    const elementIndx = ~tNode.index;\n    if (lastSelectedElementIdx(hostBindingOpCodes) != elementIndx) {\n      // Conditionally add select element so that we are more efficient in execution.\n      // NOTE: this is strictly not necessary and it trades code size for runtime perf.\n      // (We could just always add it.)\n      hostBindingOpCodes.push(elementIndx);\n    }\n    hostBindingOpCodes.push(directiveIdx, directiveVarsIdx, hostBindings);\n  }\n}\n/**\n * Returns the last selected element index in the `HostBindingOpCodes`\n *\n * For perf reasons we don't need to update the selected element index in `HostBindingOpCodes` only\n * if it changes. This method returns the last index (or '0' if not found.)\n *\n * Selected element index are only the ones which are negative.\n */\nfunction lastSelectedElementIdx(hostBindingOpCodes) {\n  let i = hostBindingOpCodes.length;\n  while (i > 0) {\n    const value = hostBindingOpCodes[--i];\n    if (typeof value === 'number' && value < 0) {\n      return value;\n    }\n  }\n  return 0;\n}\n/**\n * Instantiate all the directives that were previously resolved on the current node.\n */\nfunction instantiateAllDirectives(tView, lView, tNode, native) {\n  const start = tNode.directiveStart;\n  const end = tNode.directiveEnd;\n  // The component view needs to be created before creating the node injector\n  // since it is used to inject some special symbols like `ChangeDetectorRef`.\n  if (isComponentHost(tNode)) {\n    ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */);\n    addComponentLogic(lView, tNode, tView.data[start + tNode.componentOffset]);\n  }\n  if (!tView.firstCreatePass) {\n    getOrCreateNodeInjectorForNode(tNode, lView);\n  }\n  attachPatchData(native, lView);\n  const initialInputs = tNode.initialInputs;\n  for (let i = start; i < end; i++) {\n    const def = tView.data[i];\n    const directive = getNodeInjectable(lView, tView, i, tNode);\n    attachPatchData(directive, lView);\n    if (initialInputs !== null) {\n      setInputsFromAttrs(lView, i - start, directive, def, tNode, initialInputs);\n    }\n    if (isComponentDef(def)) {\n      const componentView = getComponentLViewByIndex(tNode.index, lView);\n      componentView[CONTEXT] = getNodeInjectable(lView, tView, i, tNode);\n    }\n  }\n}\nfunction invokeDirectivesHostBindings(tView, lView, tNode) {\n  const start = tNode.directiveStart;\n  const end = tNode.directiveEnd;\n  const elementIndex = tNode.index;\n  const currentDirectiveIndex = getCurrentDirectiveIndex();\n  try {\n    setSelectedIndex(elementIndex);\n    for (let dirIndex = start; dirIndex < end; dirIndex++) {\n      const def = tView.data[dirIndex];\n      const directive = lView[dirIndex];\n      setCurrentDirectiveIndex(dirIndex);\n      if (def.hostBindings !== null || def.hostVars !== 0 || def.hostAttrs !== null) {\n        invokeHostBindingsInCreationMode(def, directive);\n      }\n    }\n  } finally {\n    setSelectedIndex(-1);\n    setCurrentDirectiveIndex(currentDirectiveIndex);\n  }\n}\n/**\n * Invoke the host bindings in creation mode.\n *\n * @param def `DirectiveDef` which may contain the `hostBindings` function.\n * @param directive Instance of directive.\n */\nfunction invokeHostBindingsInCreationMode(def, directive) {\n  if (def.hostBindings !== null) {\n    def.hostBindings(1 /* RenderFlags.Create */, directive);\n  }\n}\n/**\n * Matches the current node against all available selectors.\n * If a component is matched (at most one), it is returned in first position in the array.\n */\nfunction findDirectiveDefMatches(tView, tNode) {\n  ngDevMode && assertFirstCreatePass(tView);\n  ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */);\n  const registry = tView.directiveRegistry;\n  let matches = null;\n  let hostDirectiveDefs = null;\n  if (registry) {\n    for (let i = 0; i < registry.length; i++) {\n      const def = registry[i];\n      if (isNodeMatchingSelectorList(tNode, def.selectors, /* isProjectionMode */false)) {\n        matches || (matches = []);\n        if (isComponentDef(def)) {\n          if (ngDevMode) {\n            assertTNodeType(tNode, 2 /* TNodeType.Element */, `\"${tNode.value}\" tags cannot be used as component hosts. ` + `Please use a different tag to activate the ${stringify(def.type)} component.`);\n            if (isComponentHost(tNode)) {\n              throwMultipleComponentError(tNode, matches.find(isComponentDef).type, def.type);\n            }\n          }\n          // Components are inserted at the front of the matches array so that their lifecycle\n          // hooks run before any directive lifecycle hooks. This appears to be for ViewEngine\n          // compatibility. This logic doesn't make sense with host directives, because it\n          // would allow the host directives to undo any overrides the host may have made.\n          // To handle this case, the host directives of components are inserted at the beginning\n          // of the array, followed by the component. As such, the insertion order is as follows:\n          // 1. Host directives belonging to the selector-matched component.\n          // 2. Selector-matched component.\n          // 3. Host directives belonging to selector-matched directives.\n          // 4. Selector-matched directives.\n          if (def.findHostDirectiveDefs !== null) {\n            const hostDirectiveMatches = [];\n            hostDirectiveDefs = hostDirectiveDefs || new Map();\n            def.findHostDirectiveDefs(def, hostDirectiveMatches, hostDirectiveDefs);\n            // Add all host directives declared on this component, followed by the component itself.\n            // Host directives should execute first so the host has a chance to override changes\n            // to the DOM made by them.\n            matches.unshift(...hostDirectiveMatches, def);\n            // Component is offset starting from the beginning of the host directives array.\n            const componentOffset = hostDirectiveMatches.length;\n            markAsComponentHost(tView, tNode, componentOffset);\n          } else {\n            // No host directives on this component, just add the\n            // component def to the beginning of the matches.\n            matches.unshift(def);\n            markAsComponentHost(tView, tNode, 0);\n          }\n        } else {\n          // Append any host directives to the matches first.\n          hostDirectiveDefs = hostDirectiveDefs || new Map();\n          def.findHostDirectiveDefs?.(def, matches, hostDirectiveDefs);\n          matches.push(def);\n        }\n      }\n    }\n  }\n  ngDevMode && matches !== null && assertNoDuplicateDirectives(matches);\n  return matches === null ? null : [matches, hostDirectiveDefs];\n}\n/**\n * Marks a given TNode as a component's host. This consists of:\n * - setting the component offset on the TNode.\n * - storing index of component's host element so it will be queued for view refresh during CD.\n */\nfunction markAsComponentHost(tView, hostTNode, componentOffset) {\n  ngDevMode && assertFirstCreatePass(tView);\n  ngDevMode && assertGreaterThan(componentOffset, -1, 'componentOffset must be great than -1');\n  hostTNode.componentOffset = componentOffset;\n  (tView.components ??= []).push(hostTNode.index);\n}\n/** Caches local names and their matching directive indices for query and template lookups. */\nfunction cacheMatchingLocalNames(tNode, localRefs, exportsMap) {\n  if (localRefs) {\n    const localNames = tNode.localNames = [];\n    // Local names must be stored in tNode in the same order that localRefs are defined\n    // in the template to ensure the data is loaded in the same slots as their refs\n    // in the template (for template queries).\n    for (let i = 0; i < localRefs.length; i += 2) {\n      const index = exportsMap[localRefs[i + 1]];\n      if (index == null) throw new RuntimeError(-301 /* RuntimeErrorCode.EXPORT_NOT_FOUND */, ngDevMode && `Export of name '${localRefs[i + 1]}' not found!`);\n      localNames.push(localRefs[i], index);\n    }\n  }\n}\n/**\n * Builds up an export map as directives are created, so local refs can be quickly mapped\n * to their directive instances.\n */\nfunction saveNameToExportMap(directiveIdx, def, exportsMap) {\n  if (exportsMap) {\n    if (def.exportAs) {\n      for (let i = 0; i < def.exportAs.length; i++) {\n        exportsMap[def.exportAs[i]] = directiveIdx;\n      }\n    }\n    if (isComponentDef(def)) exportsMap[''] = directiveIdx;\n  }\n}\n/**\n * Initializes the flags on the current node, setting all indices to the initial index,\n * the directive count to 0, and adding the isComponent flag.\n * @param index the initial index\n */\nfunction initTNodeFlags(tNode, index, numberOfDirectives) {\n  ngDevMode && assertNotEqual(numberOfDirectives, tNode.directiveEnd - tNode.directiveStart, 'Reached the max number of directives');\n  tNode.flags |= 1 /* TNodeFlags.isDirectiveHost */;\n  // When the first directive is created on a node, save the index\n  tNode.directiveStart = index;\n  tNode.directiveEnd = index + numberOfDirectives;\n  tNode.providerIndexes = index;\n}\n/**\n * Setup directive for instantiation.\n *\n * We need to create a `NodeInjectorFactory` which is then inserted in both the `Blueprint` as well\n * as `LView`. `TView` gets the `DirectiveDef`.\n *\n * @param tView `TView`\n * @param tNode `TNode`\n * @param lView `LView`\n * @param directiveIndex Index where the directive will be stored in the Expando.\n * @param def `DirectiveDef`\n */\nfunction configureViewWithDirective(tView, tNode, lView, directiveIndex, def) {\n  ngDevMode && assertGreaterThanOrEqual(directiveIndex, HEADER_OFFSET, 'Must be in Expando section');\n  tView.data[directiveIndex] = def;\n  const directiveFactory = def.factory || (def.factory = getFactoryDef(def.type, true));\n  // Even though `directiveFactory` will already be using `ɵɵdirectiveInject` in its generated code,\n  // we also want to support `inject()` directly from the directive constructor context so we set\n  // `ɵɵdirectiveInject` as the inject implementation here too.\n  const nodeInjectorFactory = new NodeInjectorFactory(directiveFactory, isComponentDef(def), ɵɵdirectiveInject);\n  tView.blueprint[directiveIndex] = nodeInjectorFactory;\n  lView[directiveIndex] = nodeInjectorFactory;\n  registerHostBindingOpCodes(tView, tNode, directiveIndex, allocExpando(tView, lView, def.hostVars, NO_CHANGE), def);\n}\nfunction addComponentLogic(lView, hostTNode, def) {\n  const native = getNativeByTNode(hostTNode, lView);\n  const tView = getOrCreateComponentTView(def);\n  // Only component views should be added to the view tree directly. Embedded views are\n  // accessed through their containers because they may be removed / re-added later.\n  const rendererFactory = lView[ENVIRONMENT].rendererFactory;\n  let lViewFlags = 16 /* LViewFlags.CheckAlways */;\n  if (def.signals) {\n    lViewFlags = 4096 /* LViewFlags.SignalView */;\n  } else if (def.onPush) {\n    lViewFlags = 64 /* LViewFlags.Dirty */;\n  }\n  const componentView = addToViewTree(lView, createLView(lView, tView, null, lViewFlags, native, hostTNode, null, rendererFactory.createRenderer(native, def), null, null, null));\n  // Component view will always be created before any injected LContainers,\n  // so this is a regular element, wrap it with the component view\n  lView[hostTNode.index] = componentView;\n}\nfunction elementAttributeInternal(tNode, lView, name, value, sanitizer, namespace) {\n  if (ngDevMode) {\n    assertNotSame(value, NO_CHANGE, 'Incoming value should never be NO_CHANGE.');\n    validateAgainstEventAttributes(name);\n    assertTNodeType(tNode, 2 /* TNodeType.Element */, `Attempted to set attribute \\`${name}\\` on a container node. ` + `Host bindings are not valid on ng-container or ng-template.`);\n  }\n  const element = getNativeByTNode(tNode, lView);\n  setElementAttribute(lView[RENDERER], element, namespace, tNode.value, name, value, sanitizer);\n}\nfunction setElementAttribute(renderer, element, namespace, tagName, name, value, sanitizer) {\n  if (value == null) {\n    ngDevMode && ngDevMode.rendererRemoveAttribute++;\n    renderer.removeAttribute(element, name, namespace);\n  } else {\n    ngDevMode && ngDevMode.rendererSetAttribute++;\n    const strValue = sanitizer == null ? renderStringify(value) : sanitizer(value, tagName || '', name);\n    renderer.setAttribute(element, name, strValue, namespace);\n  }\n}\n/**\n * Sets initial input properties on directive instances from attribute data\n *\n * @param lView Current LView that is being processed.\n * @param directiveIndex Index of the directive in directives array\n * @param instance Instance of the directive on which to set the initial inputs\n * @param def The directive def that contains the list of inputs\n * @param tNode The static data for this node\n */\nfunction setInputsFromAttrs(lView, directiveIndex, instance, def, tNode, initialInputData) {\n  const initialInputs = initialInputData[directiveIndex];\n  if (initialInputs !== null) {\n    for (let i = 0; i < initialInputs.length;) {\n      const publicName = initialInputs[i++];\n      const privateName = initialInputs[i++];\n      const flags = initialInputs[i++];\n      const value = initialInputs[i++];\n      writeToDirectiveInput(def, instance, publicName, privateName, flags, value);\n      if (ngDevMode) {\n        const nativeElement = getNativeByTNode(tNode, lView);\n        setNgReflectProperty(lView, nativeElement, tNode.type, privateName, value);\n      }\n    }\n  }\n}\n/**\n * Generates initialInputData for a node and stores it in the template's static storage\n * so subsequent template invocations don't have to recalculate it.\n *\n * initialInputData is an array containing values that need to be set as input properties\n * for directives on this node, but only once on creation. We need this array to support\n * the case where you set an @Input property of a directive using attribute-like syntax.\n * e.g. if you have a `name` @Input, you can set it once like this:\n *\n * <my-component name=\"Bess\"></my-component>\n *\n * @param inputs Input alias map that was generated from the directive def inputs.\n * @param directiveIndex Index of the directive that is currently being processed.\n * @param attrs Static attrs on this node.\n */\nfunction generateInitialInputs(inputs, directiveIndex, attrs) {\n  let inputsToStore = null;\n  let i = 0;\n  while (i < attrs.length) {\n    const attrName = attrs[i];\n    if (attrName === 0 /* AttributeMarker.NamespaceURI */) {\n      // We do not allow inputs on namespaced attributes.\n      i += 4;\n      continue;\n    } else if (attrName === 5 /* AttributeMarker.ProjectAs */) {\n      // Skip over the `ngProjectAs` value.\n      i += 2;\n      continue;\n    }\n    // If we hit any other attribute markers, we're done anyway. None of those are valid inputs.\n    if (typeof attrName === 'number') break;\n    if (inputs.hasOwnProperty(attrName)) {\n      if (inputsToStore === null) inputsToStore = [];\n      // Find the input's public name from the input store. Note that we can be found easier\n      // through the directive def, but we want to do it using the inputs store so that it can\n      // account for host directive aliases.\n      const inputConfig = inputs[attrName];\n      for (let j = 0; j < inputConfig.length; j += 3) {\n        if (inputConfig[j] === directiveIndex) {\n          inputsToStore.push(attrName, inputConfig[j + 1], inputConfig[j + 2], attrs[i + 1]);\n          // A directive can't have multiple inputs with the same name so we can break here.\n          break;\n        }\n      }\n    }\n    i += 2;\n  }\n  return inputsToStore;\n}\n//////////////////////////\n//// ViewContainer & View\n//////////////////////////\n/**\n * Creates a LContainer, either from a container instruction, or for a ViewContainerRef.\n *\n * @param hostNative The host element for the LContainer\n * @param hostTNode The host TNode for the LContainer\n * @param currentView The parent view of the LContainer\n * @param native The native comment element\n * @param isForViewContainerRef Optional a flag indicating the ViewContainerRef case\n * @returns LContainer\n */\nfunction createLContainer(hostNative, currentView, native, tNode) {\n  ngDevMode && assertLView(currentView);\n  const lContainer = [hostNative,\n  // host native\n  true,\n  // Boolean `true` in this position signifies that this is an `LContainer`\n  0,\n  // flags\n  currentView,\n  // parent\n  null,\n  // next\n  tNode,\n  // t_host\n  null,\n  // dehydrated views\n  native,\n  // native,\n  null,\n  // view refs\n  null // moved views\n  ];\n  ngDevMode && assertEqual(lContainer.length, CONTAINER_HEADER_OFFSET, 'Should allocate correct number of slots for LContainer header.');\n  return lContainer;\n}\n/** Refreshes all content queries declared by directives in a given view */\nfunction refreshContentQueries(tView, lView) {\n  const contentQueries = tView.contentQueries;\n  if (contentQueries !== null) {\n    const prevConsumer = setActiveConsumer$1(null);\n    try {\n      for (let i = 0; i < contentQueries.length; i += 2) {\n        const queryStartIdx = contentQueries[i];\n        const directiveDefIdx = contentQueries[i + 1];\n        if (directiveDefIdx !== -1) {\n          const directiveDef = tView.data[directiveDefIdx];\n          ngDevMode && assertDefined(directiveDef, 'DirectiveDef not found.');\n          ngDevMode && assertDefined(directiveDef.contentQueries, 'contentQueries function should be defined');\n          setCurrentQueryIndex(queryStartIdx);\n          directiveDef.contentQueries(2 /* RenderFlags.Update */, lView[directiveDefIdx], directiveDefIdx);\n        }\n      }\n    } finally {\n      setActiveConsumer$1(prevConsumer);\n    }\n  }\n}\n/**\n * Adds LView or LContainer to the end of the current view tree.\n *\n * This structure will be used to traverse through nested views to remove listeners\n * and call onDestroy callbacks.\n *\n * @param lView The view where LView or LContainer should be added\n * @param adjustedHostIndex Index of the view's host node in LView[], adjusted for header\n * @param lViewOrLContainer The LView or LContainer to add to the view tree\n * @returns The state passed in\n */\nfunction addToViewTree(lView, lViewOrLContainer) {\n  // TODO(benlesh/misko): This implementation is incorrect, because it always adds the LContainer\n  // to the end of the queue, which means if the developer retrieves the LContainers from RNodes out\n  // of order, the change detection will run out of order, as the act of retrieving the the\n  // LContainer from the RNode is what adds it to the queue.\n  if (lView[CHILD_HEAD]) {\n    lView[CHILD_TAIL][NEXT] = lViewOrLContainer;\n  } else {\n    lView[CHILD_HEAD] = lViewOrLContainer;\n  }\n  lView[CHILD_TAIL] = lViewOrLContainer;\n  return lViewOrLContainer;\n}\n///////////////////////////////\n//// Change detection\n///////////////////////////////\nfunction executeViewQueryFn(flags, viewQueryFn, component) {\n  ngDevMode && assertDefined(viewQueryFn, 'View queries function to execute must be defined.');\n  setCurrentQueryIndex(0);\n  const prevConsumer = setActiveConsumer$1(null);\n  try {\n    viewQueryFn(flags, component);\n  } finally {\n    setActiveConsumer$1(prevConsumer);\n  }\n}\n///////////////////////////////\n//// Bindings & interpolations\n///////////////////////////////\n/**\n * Stores meta-data for a property binding to be used by TestBed's `DebugElement.properties`.\n *\n * In order to support TestBed's `DebugElement.properties` we need to save, for each binding:\n * - a bound property name;\n * - a static parts of interpolated strings;\n *\n * A given property metadata is saved at the binding's index in the `TView.data` (in other words, a\n * property binding metadata will be stored in `TView.data` at the same index as a bound value in\n * `LView`). Metadata are represented as `INTERPOLATION_DELIMITER`-delimited string with the\n * following format:\n * - `propertyName` for bound properties;\n * - `propertyName�prefix�interpolation_static_part1�..interpolation_static_partN�suffix` for\n * interpolated properties.\n *\n * @param tData `TData` where meta-data will be saved;\n * @param tNode `TNode` that is a target of the binding;\n * @param propertyName bound property name;\n * @param bindingIndex binding index in `LView`\n * @param interpolationParts static interpolation parts (for property interpolations)\n */\nfunction storePropertyBindingMetadata(tData, tNode, propertyName, bindingIndex, ...interpolationParts) {\n  // Binding meta-data are stored only the first time a given property instruction is processed.\n  // Since we don't have a concept of the \"first update pass\" we need to check for presence of the\n  // binding meta-data to decide if one should be stored (or if was stored already).\n  if (tData[bindingIndex] === null) {\n    if (tNode.inputs == null || !tNode.inputs[propertyName]) {\n      const propBindingIdxs = tNode.propertyBindings || (tNode.propertyBindings = []);\n      propBindingIdxs.push(bindingIndex);\n      let bindingMetadata = propertyName;\n      if (interpolationParts.length > 0) {\n        bindingMetadata += INTERPOLATION_DELIMITER + interpolationParts.join(INTERPOLATION_DELIMITER);\n      }\n      tData[bindingIndex] = bindingMetadata;\n    }\n  }\n}\nfunction getOrCreateLViewCleanup(view) {\n  // top level variables should not be exported for performance reasons (PERF_NOTES.md)\n  return view[CLEANUP] || (view[CLEANUP] = []);\n}\nfunction getOrCreateTViewCleanup(tView) {\n  return tView.cleanup || (tView.cleanup = []);\n}\n/**\n * There are cases where the sub component's renderer needs to be included\n * instead of the current renderer (see the componentSyntheticHost* instructions).\n */\nfunction loadComponentRenderer(currentDef, tNode, lView) {\n  // TODO(FW-2043): the `currentDef` is null when host bindings are invoked while creating root\n  // component (see packages/core/src/render3/component.ts). This is not consistent with the process\n  // of creating inner components, when current directive index is available in the state. In order\n  // to avoid relying on current def being `null` (thus special-casing root component creation), the\n  // process of creating root component should be unified with the process of creating inner\n  // components.\n  if (currentDef === null || isComponentDef(currentDef)) {\n    lView = unwrapLView(lView[tNode.index]);\n  }\n  return lView[RENDERER];\n}\n/** Handles an error thrown in an LView. */\nfunction handleError(lView, error) {\n  const injector = lView[INJECTOR];\n  const errorHandler = injector ? injector.get(ErrorHandler, null) : null;\n  errorHandler && errorHandler.handleError(error);\n}\n/**\n * Set the inputs of directives at the current node to corresponding value.\n *\n * @param tView The current TView\n * @param lView the `LView` which contains the directives.\n * @param inputs mapping between the public \"input\" name and privately-known,\n *        possibly minified, property names to write to.\n * @param value Value to set.\n */\nfunction setInputsForProperty(tView, lView, inputs, publicName, value) {\n  for (let i = 0; i < inputs.length;) {\n    const index = inputs[i++];\n    const privateName = inputs[i++];\n    const flags = inputs[i++];\n    const instance = lView[index];\n    ngDevMode && assertIndexInRange(lView, index);\n    const def = tView.data[index];\n    writeToDirectiveInput(def, instance, publicName, privateName, flags, value);\n  }\n}\n/**\n * Updates a text binding at a given index in a given LView.\n */\nfunction textBindingInternal(lView, index, value) {\n  ngDevMode && assertString(value, 'Value should be a string');\n  ngDevMode && assertNotSame(value, NO_CHANGE, 'value should not be NO_CHANGE');\n  ngDevMode && assertIndexInRange(lView, index);\n  const element = getNativeByIndex(index, lView);\n  ngDevMode && assertDefined(element, 'native element should exist');\n  updateTextNode(lView[RENDERER], element, value);\n}\nfunction renderComponent(hostLView, componentHostIdx) {\n  ngDevMode && assertEqual(isCreationMode(hostLView), true, 'Should be run in creation mode');\n  const componentView = getComponentLViewByIndex(componentHostIdx, hostLView);\n  const componentTView = componentView[TVIEW];\n  syncViewWithBlueprint(componentTView, componentView);\n  const hostRNode = componentView[HOST];\n  // Populate an LView with hydration info retrieved from the DOM via TransferState.\n  if (hostRNode !== null && componentView[HYDRATION] === null) {\n    componentView[HYDRATION] = retrieveHydrationInfo(hostRNode, componentView[INJECTOR]);\n  }\n  renderView(componentTView, componentView, componentView[CONTEXT]);\n}\n/**\n * Syncs an LView instance with its blueprint if they have gotten out of sync.\n *\n * Typically, blueprints and their view instances should always be in sync, so the loop here\n * will be skipped. However, consider this case of two components side-by-side:\n *\n * App template:\n * ```\n * <comp></comp>\n * <comp></comp>\n * ```\n *\n * The following will happen:\n * 1. App template begins processing.\n * 2. First <comp> is matched as a component and its LView is created.\n * 3. Second <comp> is matched as a component and its LView is created.\n * 4. App template completes processing, so it's time to check child templates.\n * 5. First <comp> template is checked. It has a directive, so its def is pushed to blueprint.\n * 6. Second <comp> template is checked. Its blueprint has been updated by the first\n * <comp> template, but its LView was created before this update, so it is out of sync.\n *\n * Note that embedded views inside ngFor loops will never be out of sync because these views\n * are processed as soon as they are created.\n *\n * @param tView The `TView` that contains the blueprint for syncing\n * @param lView The view to sync\n */\nfunction syncViewWithBlueprint(tView, lView) {\n  for (let i = lView.length; i < tView.blueprint.length; i++) {\n    lView.push(tView.blueprint[i]);\n  }\n}\n/**\n * Processes a view in the creation mode. This includes a number of steps in a specific order:\n * - creating view query functions (if any);\n * - executing a template function in the creation mode;\n * - updating static queries (if any);\n * - creating child components defined in a given view.\n */\nfunction renderView(tView, lView, context) {\n  ngDevMode && assertEqual(isCreationMode(lView), true, 'Should be run in creation mode');\n  ngDevMode && assertNotReactive(renderView.name);\n  enterView(lView);\n  try {\n    const viewQuery = tView.viewQuery;\n    if (viewQuery !== null) {\n      executeViewQueryFn(1 /* RenderFlags.Create */, viewQuery, context);\n    }\n    // Execute a template associated with this view, if it exists. A template function might not be\n    // defined for the root component views.\n    const templateFn = tView.template;\n    if (templateFn !== null) {\n      executeTemplate(tView, lView, templateFn, 1 /* RenderFlags.Create */, context);\n    }\n    // This needs to be set before children are processed to support recursive components.\n    // This must be set to false immediately after the first creation run because in an\n    // ngFor loop, all the views will be created together before update mode runs and turns\n    // off firstCreatePass. If we don't set it here, instances will perform directive\n    // matching, etc again and again.\n    if (tView.firstCreatePass) {\n      tView.firstCreatePass = false;\n    }\n    // Mark all queries active in this view as dirty. This is necessary for signal-based queries to\n    // have a clear marking point where we can read query results atomically (for a given view).\n    lView[QUERIES]?.finishViewCreation(tView);\n    // We resolve content queries specifically marked as `static` in creation mode. Dynamic\n    // content queries are resolved during change detection (i.e. update mode), after embedded\n    // views are refreshed (see block above).\n    if (tView.staticContentQueries) {\n      refreshContentQueries(tView, lView);\n    }\n    // We must materialize query results before child components are processed\n    // in case a child component has projected a container. The LContainer needs\n    // to exist so the embedded views are properly attached by the container.\n    if (tView.staticViewQueries) {\n      executeViewQueryFn(2 /* RenderFlags.Update */, tView.viewQuery, context);\n    }\n    // Render child component views.\n    const components = tView.components;\n    if (components !== null) {\n      renderChildComponents(lView, components);\n    }\n  } catch (error) {\n    // If we didn't manage to get past the first template pass due to\n    // an error, mark the view as corrupted so we can try to recover.\n    if (tView.firstCreatePass) {\n      tView.incompleteFirstPass = true;\n      tView.firstCreatePass = false;\n    }\n    throw error;\n  } finally {\n    lView[FLAGS] &= ~4 /* LViewFlags.CreationMode */;\n    leaveView();\n  }\n}\n/** Renders child components in the current view (creation mode). */\nfunction renderChildComponents(hostLView, components) {\n  for (let i = 0; i < components.length; i++) {\n    renderComponent(hostLView, components[i]);\n  }\n}\nfunction createAndRenderEmbeddedLView(declarationLView, templateTNode, context, options) {\n  const prevConsumer = setActiveConsumer$1(null);\n  try {\n    const embeddedTView = templateTNode.tView;\n    ngDevMode && assertDefined(embeddedTView, 'TView must be defined for a template node.');\n    ngDevMode && assertTNodeForLView(templateTNode, declarationLView);\n    // Embedded views follow the change detection strategy of the view they're declared in.\n    const isSignalView = declarationLView[FLAGS] & 4096 /* LViewFlags.SignalView */;\n    const viewFlags = isSignalView ? 4096 /* LViewFlags.SignalView */ : 16 /* LViewFlags.CheckAlways */;\n    const embeddedLView = createLView(declarationLView, embeddedTView, context, viewFlags, null, templateTNode, null, null, options?.injector ?? null, options?.embeddedViewInjector ?? null, options?.dehydratedView ?? null);\n    const declarationLContainer = declarationLView[templateTNode.index];\n    ngDevMode && assertLContainer(declarationLContainer);\n    embeddedLView[DECLARATION_LCONTAINER] = declarationLContainer;\n    const declarationViewLQueries = declarationLView[QUERIES];\n    if (declarationViewLQueries !== null) {\n      embeddedLView[QUERIES] = declarationViewLQueries.createEmbeddedView(embeddedTView);\n    }\n    // execute creation mode of a view\n    renderView(embeddedTView, embeddedLView, context);\n    return embeddedLView;\n  } finally {\n    setActiveConsumer$1(prevConsumer);\n  }\n}\nfunction getLViewFromLContainer(lContainer, index) {\n  const adjustedIndex = CONTAINER_HEADER_OFFSET + index;\n  // avoid reading past the array boundaries\n  if (adjustedIndex < lContainer.length) {\n    const lView = lContainer[adjustedIndex];\n    ngDevMode && assertLView(lView);\n    return lView;\n  }\n  return undefined;\n}\n/**\n * Returns whether an elements that belong to a view should be\n * inserted into the DOM. For client-only cases, DOM elements are\n * always inserted. For hydration cases, we check whether serialized\n * info is available for a view and the view is not in a \"skip hydration\"\n * block (in which case view contents was re-created, thus needing insertion).\n */\nfunction shouldAddViewToDom(tNode, dehydratedView) {\n  return !dehydratedView || dehydratedView.firstChild === null || hasInSkipHydrationBlockFlag(tNode);\n}\nfunction addLViewToLContainer(lContainer, lView, index, addToDOM = true) {\n  const tView = lView[TVIEW];\n  // Insert into the view tree so the new view can be change-detected\n  insertView(tView, lView, lContainer, index);\n  // Insert elements that belong to this view into the DOM tree\n  if (addToDOM) {\n    const beforeNode = getBeforeNodeForView(index, lContainer);\n    const renderer = lView[RENDERER];\n    const parentRNode = nativeParentNode(renderer, lContainer[NATIVE]);\n    if (parentRNode !== null) {\n      addViewToDOM(tView, lContainer[T_HOST], renderer, lView, parentRNode, beforeNode);\n    }\n  }\n  // When in hydration mode, reset the pointer to the first child in\n  // the dehydrated view. This indicates that the view was hydrated and\n  // further attaching/detaching should work with this view as normal.\n  const hydrationInfo = lView[HYDRATION];\n  if (hydrationInfo !== null && hydrationInfo.firstChild !== null) {\n    hydrationInfo.firstChild = null;\n  }\n}\nfunction removeLViewFromLContainer(lContainer, index) {\n  const lView = detachView(lContainer, index);\n  if (lView !== undefined) {\n    destroyLView(lView[TVIEW], lView);\n  }\n  return lView;\n}\nfunction collectNativeNodes(tView, lView, tNode, result, isProjection = false) {\n  while (tNode !== null) {\n    ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */ | 16 /* TNodeType.Projection */ | 32 /* TNodeType.Icu */);\n    const lNode = lView[tNode.index];\n    if (lNode !== null) {\n      result.push(unwrapRNode(lNode));\n    }\n    // A given lNode can represent either a native node or a LContainer (when it is a host of a\n    // ViewContainerRef). When we find a LContainer we need to descend into it to collect root nodes\n    // from the views in this container.\n    if (isLContainer(lNode)) {\n      collectNativeNodesInLContainer(lNode, result);\n    }\n    const tNodeType = tNode.type;\n    if (tNodeType & 8 /* TNodeType.ElementContainer */) {\n      collectNativeNodes(tView, lView, tNode.child, result);\n    } else if (tNodeType & 32 /* TNodeType.Icu */) {\n      const nextRNode = icuContainerIterate(tNode, lView);\n      let rNode;\n      while (rNode = nextRNode()) {\n        result.push(rNode);\n      }\n    } else if (tNodeType & 16 /* TNodeType.Projection */) {\n      const nodesInSlot = getProjectionNodes(lView, tNode);\n      if (Array.isArray(nodesInSlot)) {\n        result.push(...nodesInSlot);\n      } else {\n        const parentView = getLViewParent(lView[DECLARATION_COMPONENT_VIEW]);\n        ngDevMode && assertParentView(parentView);\n        collectNativeNodes(parentView[TVIEW], parentView, nodesInSlot, result, true);\n      }\n    }\n    tNode = isProjection ? tNode.projectionNext : tNode.next;\n  }\n  return result;\n}\n/**\n * Collects all root nodes in all views in a given LContainer.\n */\nfunction collectNativeNodesInLContainer(lContainer, result) {\n  for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {\n    const lViewInAContainer = lContainer[i];\n    const lViewFirstChildTNode = lViewInAContainer[TVIEW].firstChild;\n    if (lViewFirstChildTNode !== null) {\n      collectNativeNodes(lViewInAContainer[TVIEW], lViewInAContainer, lViewFirstChildTNode, result);\n    }\n  }\n  // When an LContainer is created, the anchor (comment) node is:\n  // - (1) either reused in case of an ElementContainer (<ng-container>)\n  // - (2) or a new comment node is created\n  // In the first case, the anchor comment node would be added to the final\n  // list by the code in the `collectNativeNodes` function\n  // (see the `result.push(unwrapRNode(lNode))` line), but the second\n  // case requires extra handling: the anchor node needs to be added to the\n  // final list manually. See additional information in the `createAnchorNode`\n  // function in the `view_container_ref.ts`.\n  //\n  // In the first case, the same reference would be stored in the `NATIVE`\n  // and `HOST` slots in an LContainer. Otherwise, this is the second case and\n  // we should add an element to the final list.\n  if (lContainer[NATIVE] !== lContainer[HOST]) {\n    result.push(lContainer[NATIVE]);\n  }\n}\nlet freeConsumers = [];\n/**\n * Create a new template consumer pointing at the specified LView.\n * Sometimes, a previously created consumer may be reused, in order to save on allocations. In that\n * case, the LView will be updated.\n */\nfunction getOrBorrowReactiveLViewConsumer(lView) {\n  return lView[REACTIVE_TEMPLATE_CONSUMER] ?? borrowReactiveLViewConsumer(lView);\n}\nfunction borrowReactiveLViewConsumer(lView) {\n  const consumer = freeConsumers.pop() ?? Object.create(REACTIVE_LVIEW_CONSUMER_NODE);\n  consumer.lView = lView;\n  return consumer;\n}\nfunction maybeReturnReactiveLViewConsumer(consumer) {\n  if (consumer.lView[REACTIVE_TEMPLATE_CONSUMER] === consumer) {\n    // The consumer got committed.\n    return;\n  }\n  consumer.lView = null;\n  freeConsumers.push(consumer);\n}\nconst REACTIVE_LVIEW_CONSUMER_NODE = {\n  ...REACTIVE_NODE$1,\n  consumerIsAlwaysLive: true,\n  consumerMarkedDirty: node => {\n    markAncestorsForTraversal(node.lView);\n  },\n  consumerOnSignalRead() {\n    this.lView[REACTIVE_TEMPLATE_CONSUMER] = this;\n  }\n};\n\n/**\n * The maximum number of times the change detection traversal will rerun before throwing an error.\n */\nconst MAXIMUM_REFRESH_RERUNS = 100;\nfunction detectChangesInternal(lView, notifyErrorHandler = true, mode = 0 /* ChangeDetectionMode.Global */) {\n  const environment = lView[ENVIRONMENT];\n  const rendererFactory = environment.rendererFactory;\n  // Check no changes mode is a dev only mode used to verify that bindings have not changed\n  // since they were assigned. We do not want to invoke renderer factory functions in that mode\n  // to avoid any possible side-effects.\n  const checkNoChangesMode = !!ngDevMode && isInCheckNoChangesMode();\n  if (!checkNoChangesMode) {\n    rendererFactory.begin?.();\n  }\n  try {\n    detectChangesInViewWhileDirty(lView, mode);\n  } catch (error) {\n    if (notifyErrorHandler) {\n      handleError(lView, error);\n    }\n    throw error;\n  } finally {\n    if (!checkNoChangesMode) {\n      rendererFactory.end?.();\n      // One final flush of the effects queue to catch any effects created in `ngAfterViewInit` or\n      // other post-order hooks.\n      environment.inlineEffectRunner?.flush();\n    }\n  }\n}\nfunction detectChangesInViewWhileDirty(lView, mode) {\n  detectChangesInView$1(lView, mode);\n  let retries = 0;\n  // If after running change detection, this view still needs to be refreshed or there are\n  // descendants views that need to be refreshed due to re-dirtying during the change detection\n  // run, detect changes on the view again. We run change detection in `Targeted` mode to only\n  // refresh views with the `RefreshView` flag.\n  while (requiresRefreshOrTraversal(lView)) {\n    if (retries === MAXIMUM_REFRESH_RERUNS) {\n      throw new RuntimeError(103 /* RuntimeErrorCode.INFINITE_CHANGE_DETECTION */, ngDevMode && 'Infinite change detection while trying to refresh views. ' + 'There may be components which each cause the other to require a refresh, ' + 'causing an infinite loop.');\n    }\n    retries++;\n    // Even if this view is detached, we still detect changes in targeted mode because this was\n    // the root of the change detection run.\n    detectChangesInView$1(lView, 1 /* ChangeDetectionMode.Targeted */);\n  }\n}\nfunction checkNoChangesInternal(lView, notifyErrorHandler = true) {\n  setIsInCheckNoChangesMode(true);\n  try {\n    detectChangesInternal(lView, notifyErrorHandler);\n  } finally {\n    setIsInCheckNoChangesMode(false);\n  }\n}\n/**\n * Processes a view in update mode. This includes a number of steps in a specific order:\n * - executing a template function in update mode;\n * - executing hooks;\n * - refreshing queries;\n * - setting host bindings;\n * - refreshing child (embedded and component) views.\n */\nfunction refreshView(tView, lView, templateFn, context) {\n  ngDevMode && assertEqual(isCreationMode(lView), false, 'Should be run in update mode');\n  const flags = lView[FLAGS];\n  if ((flags & 256 /* LViewFlags.Destroyed */) === 256 /* LViewFlags.Destroyed */) return;\n  // Check no changes mode is a dev only mode used to verify that bindings have not changed\n  // since they were assigned. We do not want to execute lifecycle hooks in that mode.\n  const isInCheckNoChangesPass = ngDevMode && isInCheckNoChangesMode();\n  !isInCheckNoChangesPass && lView[ENVIRONMENT].inlineEffectRunner?.flush();\n  // Start component reactive context\n  // - We might already be in a reactive context if this is an embedded view of the host.\n  // - We might be descending into a view that needs a consumer.\n  enterView(lView);\n  let prevConsumer = null;\n  let currentConsumer = null;\n  if (!isInCheckNoChangesPass && viewShouldHaveReactiveConsumer(tView)) {\n    currentConsumer = getOrBorrowReactiveLViewConsumer(lView);\n    prevConsumer = consumerBeforeComputation$1(currentConsumer);\n  }\n  try {\n    resetPreOrderHookFlags(lView);\n    setBindingIndex(tView.bindingStartIndex);\n    if (templateFn !== null) {\n      executeTemplate(tView, lView, templateFn, 2 /* RenderFlags.Update */, context);\n    }\n    const hooksInitPhaseCompleted = (flags & 3 /* LViewFlags.InitPhaseStateMask */) === 3 /* InitPhaseState.InitPhaseCompleted */;\n    // execute pre-order hooks (OnInit, OnChanges, DoCheck)\n    // PERF WARNING: do NOT extract this to a separate function without running benchmarks\n    if (!isInCheckNoChangesPass) {\n      if (hooksInitPhaseCompleted) {\n        const preOrderCheckHooks = tView.preOrderCheckHooks;\n        if (preOrderCheckHooks !== null) {\n          executeCheckHooks(lView, preOrderCheckHooks, null);\n        }\n      } else {\n        const preOrderHooks = tView.preOrderHooks;\n        if (preOrderHooks !== null) {\n          executeInitAndCheckHooks(lView, preOrderHooks, 0 /* InitPhaseState.OnInitHooksToBeRun */, null);\n        }\n        incrementInitPhaseFlags(lView, 0 /* InitPhaseState.OnInitHooksToBeRun */);\n      }\n    }\n    // First mark transplanted views that are declared in this lView as needing a refresh at their\n    // insertion points. This is needed to avoid the situation where the template is defined in this\n    // `LView` but its declaration appears after the insertion component.\n    markTransplantedViewsForRefresh(lView);\n    detectChangesInEmbeddedViews(lView, 0 /* ChangeDetectionMode.Global */);\n    // Content query results must be refreshed before content hooks are called.\n    if (tView.contentQueries !== null) {\n      refreshContentQueries(tView, lView);\n    }\n    // execute content hooks (AfterContentInit, AfterContentChecked)\n    // PERF WARNING: do NOT extract this to a separate function without running benchmarks\n    if (!isInCheckNoChangesPass) {\n      if (hooksInitPhaseCompleted) {\n        const contentCheckHooks = tView.contentCheckHooks;\n        if (contentCheckHooks !== null) {\n          executeCheckHooks(lView, contentCheckHooks);\n        }\n      } else {\n        const contentHooks = tView.contentHooks;\n        if (contentHooks !== null) {\n          executeInitAndCheckHooks(lView, contentHooks, 1 /* InitPhaseState.AfterContentInitHooksToBeRun */);\n        }\n        incrementInitPhaseFlags(lView, 1 /* InitPhaseState.AfterContentInitHooksToBeRun */);\n      }\n    }\n    processHostBindingOpCodes(tView, lView);\n    // Refresh child component views.\n    const components = tView.components;\n    if (components !== null) {\n      detectChangesInChildComponents(lView, components, 0 /* ChangeDetectionMode.Global */);\n    }\n    // View queries must execute after refreshing child components because a template in this view\n    // could be inserted in a child component. If the view query executes before child component\n    // refresh, the template might not yet be inserted.\n    const viewQuery = tView.viewQuery;\n    if (viewQuery !== null) {\n      executeViewQueryFn(2 /* RenderFlags.Update */, viewQuery, context);\n    }\n    // execute view hooks (AfterViewInit, AfterViewChecked)\n    // PERF WARNING: do NOT extract this to a separate function without running benchmarks\n    if (!isInCheckNoChangesPass) {\n      if (hooksInitPhaseCompleted) {\n        const viewCheckHooks = tView.viewCheckHooks;\n        if (viewCheckHooks !== null) {\n          executeCheckHooks(lView, viewCheckHooks);\n        }\n      } else {\n        const viewHooks = tView.viewHooks;\n        if (viewHooks !== null) {\n          executeInitAndCheckHooks(lView, viewHooks, 2 /* InitPhaseState.AfterViewInitHooksToBeRun */);\n        }\n        incrementInitPhaseFlags(lView, 2 /* InitPhaseState.AfterViewInitHooksToBeRun */);\n      }\n    }\n    if (tView.firstUpdatePass === true) {\n      // We need to make sure that we only flip the flag on successful `refreshView` only\n      // Don't do this in `finally` block.\n      // If we did this in `finally` block then an exception could block the execution of styling\n      // instructions which in turn would be unable to insert themselves into the styling linked\n      // list. The result of this would be that if the exception would not be throw on subsequent CD\n      // the styling would be unable to process it data and reflect to the DOM.\n      tView.firstUpdatePass = false;\n    }\n    // Schedule any effects that are waiting on the update pass of this view.\n    if (lView[EFFECTS_TO_SCHEDULE]) {\n      for (const notifyEffect of lView[EFFECTS_TO_SCHEDULE]) {\n        notifyEffect();\n      }\n      // Once they've been run, we can drop the array.\n      lView[EFFECTS_TO_SCHEDULE] = null;\n    }\n    // Do not reset the dirty state when running in check no changes mode. We don't want components\n    // to behave differently depending on whether check no changes is enabled or not. For example:\n    // Marking an OnPush component as dirty from within the `ngAfterViewInit` hook in order to\n    // refresh a `NgClass` binding should work. If we would reset the dirty state in the check\n    // no changes cycle, the component would be not be dirty for the next update pass. This would\n    // be different in production mode where the component dirty state is not reset.\n    if (!isInCheckNoChangesPass) {\n      lView[FLAGS] &= ~(64 /* LViewFlags.Dirty */ | 8 /* LViewFlags.FirstLViewPass */);\n    }\n  } catch (e) {\n    // If refreshing a view causes an error, we need to remark the ancestors as needing traversal\n    // because the error might have caused a situation where views below the current location are\n    // dirty but will be unreachable because the \"has dirty children\" flag in the ancestors has been\n    // cleared during change detection and we failed to run to completion.\n    markAncestorsForTraversal(lView);\n    throw e;\n  } finally {\n    if (currentConsumer !== null) {\n      consumerAfterComputation$1(currentConsumer, prevConsumer);\n      maybeReturnReactiveLViewConsumer(currentConsumer);\n    }\n    leaveView();\n  }\n}\n/**\n * Indicates if the view should get its own reactive consumer node.\n *\n * In the current design, all embedded views share a consumer with the component view. This allows\n * us to refresh at the component level rather than at a per-view level. In addition, root views get\n * their own reactive node because root component will have a host view that executes the\n * component's host bindings. This needs to be tracked in a consumer as well.\n *\n * To get a more granular change detection than per-component, all we would just need to update the\n * condition here so that a given view gets a reactive consumer which can become dirty independently\n * from its parent component. For example embedded views for signal components could be created with\n * a new type \"SignalEmbeddedView\" and the condition here wouldn't even need updating in order to\n * get granular per-view change detection for signal components.\n */\nfunction viewShouldHaveReactiveConsumer(tView) {\n  return tView.type !== 2 /* TViewType.Embedded */;\n}\n/**\n * Goes over embedded views (ones created through ViewContainerRef APIs) and refreshes\n * them by executing an associated template function.\n */\nfunction detectChangesInEmbeddedViews(lView, mode) {\n  for (let lContainer = getFirstLContainer(lView); lContainer !== null; lContainer = getNextLContainer(lContainer)) {\n    for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {\n      const embeddedLView = lContainer[i];\n      detectChangesInViewIfAttached(embeddedLView, mode);\n    }\n  }\n}\n/**\n * Mark transplanted views as needing to be refreshed at their insertion points.\n *\n * @param lView The `LView` that may have transplanted views.\n */\nfunction markTransplantedViewsForRefresh(lView) {\n  for (let lContainer = getFirstLContainer(lView); lContainer !== null; lContainer = getNextLContainer(lContainer)) {\n    if (!(lContainer[FLAGS] & LContainerFlags.HasTransplantedViews)) continue;\n    const movedViews = lContainer[MOVED_VIEWS];\n    ngDevMode && assertDefined(movedViews, 'Transplanted View flags set but missing MOVED_VIEWS');\n    for (let i = 0; i < movedViews.length; i++) {\n      const movedLView = movedViews[i];\n      const insertionLContainer = movedLView[PARENT];\n      ngDevMode && assertLContainer(insertionLContainer);\n      markViewForRefresh(movedLView);\n    }\n  }\n}\n/**\n * Detects changes in a component by entering the component view and processing its bindings,\n * queries, etc. if it is CheckAlways, OnPush and Dirty, etc.\n *\n * @param componentHostIdx  Element index in LView[] (adjusted for HEADER_OFFSET)\n */\nfunction detectChangesInComponent(hostLView, componentHostIdx, mode) {\n  ngDevMode && assertEqual(isCreationMode(hostLView), false, 'Should be run in update mode');\n  const componentView = getComponentLViewByIndex(componentHostIdx, hostLView);\n  detectChangesInViewIfAttached(componentView, mode);\n}\n/**\n * Visits a view as part of change detection traversal.\n *\n * If the view is detached, no additional traversal happens.\n */\nfunction detectChangesInViewIfAttached(lView, mode) {\n  if (!viewAttachedToChangeDetector(lView)) {\n    return;\n  }\n  detectChangesInView$1(lView, mode);\n}\n/**\n * Visits a view as part of change detection traversal.\n *\n * The view is refreshed if:\n * - If the view is CheckAlways or Dirty and ChangeDetectionMode is `Global`\n * - If the view has the `RefreshView` flag\n *\n * The view is not refreshed, but descendants are traversed in `ChangeDetectionMode.Targeted` if the\n * view HasChildViewsToRefresh flag is set.\n */\nfunction detectChangesInView$1(lView, mode) {\n  const isInCheckNoChangesPass = ngDevMode && isInCheckNoChangesMode();\n  const tView = lView[TVIEW];\n  const flags = lView[FLAGS];\n  const consumer = lView[REACTIVE_TEMPLATE_CONSUMER];\n  // Refresh CheckAlways views in Global mode.\n  let shouldRefreshView = !!(mode === 0 /* ChangeDetectionMode.Global */ && flags & 16 /* LViewFlags.CheckAlways */);\n  // Refresh Dirty views in Global mode, as long as we're not in checkNoChanges.\n  // CheckNoChanges never worked with `OnPush` components because the `Dirty` flag was\n  // cleared before checkNoChanges ran. Because there is now a loop for to check for\n  // backwards views, it gives an opportunity for `OnPush` components to be marked `Dirty`\n  // before the CheckNoChanges pass. We don't want existing errors that are hidden by the\n  // current CheckNoChanges bug to surface when making unrelated changes.\n  shouldRefreshView ||= !!(flags & 64 /* LViewFlags.Dirty */ && mode === 0 /* ChangeDetectionMode.Global */ && !isInCheckNoChangesPass);\n  // Always refresh views marked for refresh, regardless of mode.\n  shouldRefreshView ||= !!(flags & 1024 /* LViewFlags.RefreshView */);\n  // Refresh views when they have a dirty reactive consumer, regardless of mode.\n  shouldRefreshView ||= !!(consumer?.dirty && consumerPollProducersForChange$1(consumer));\n  // Mark the Flags and `ReactiveNode` as not dirty before refreshing the component, so that they\n  // can be re-dirtied during the refresh process.\n  if (consumer) {\n    consumer.dirty = false;\n  }\n  lView[FLAGS] &= ~(8192 /* LViewFlags.HasChildViewsToRefresh */ | 1024 /* LViewFlags.RefreshView */);\n  if (shouldRefreshView) {\n    refreshView(tView, lView, tView.template, lView[CONTEXT]);\n  } else if (flags & 8192 /* LViewFlags.HasChildViewsToRefresh */) {\n    detectChangesInEmbeddedViews(lView, 1 /* ChangeDetectionMode.Targeted */);\n    const components = tView.components;\n    if (components !== null) {\n      detectChangesInChildComponents(lView, components, 1 /* ChangeDetectionMode.Targeted */);\n    }\n  }\n}\n/** Refreshes child components in the current view (update mode). */\nfunction detectChangesInChildComponents(hostLView, components, mode) {\n  for (let i = 0; i < components.length; i++) {\n    detectChangesInComponent(hostLView, components[i], mode);\n  }\n}\n\n/**\n * Marks current view and all ancestors dirty.\n *\n * Returns the root view because it is found as a byproduct of marking the view tree\n * dirty, and can be used by methods that consume markViewDirty() to easily schedule\n * change detection. Otherwise, such methods would need to traverse up the view tree\n * an additional time to get the root view and schedule a tick on it.\n *\n * @param lView The starting LView to mark dirty\n * @returns the root LView\n */\nfunction markViewDirty(lView) {\n  lView[ENVIRONMENT].changeDetectionScheduler?.notify();\n  while (lView) {\n    lView[FLAGS] |= 64 /* LViewFlags.Dirty */;\n    const parent = getLViewParent(lView);\n    // Stop traversing up as soon as you find a root view that wasn't attached to any container\n    if (isRootView(lView) && !parent) {\n      return lView;\n    }\n    // continue otherwise\n    lView = parent;\n  }\n  return null;\n}\nclass ViewRef$1 {\n  get rootNodes() {\n    const lView = this._lView;\n    const tView = lView[TVIEW];\n    return collectNativeNodes(tView, lView, tView.firstChild, []);\n  }\n  constructor(\n  /**\n   * This represents `LView` associated with the component when ViewRef is a ChangeDetectorRef.\n   *\n   * When ViewRef is created for a dynamic component, this also represents the `LView` for the\n   * component.\n   *\n   * For a \"regular\" ViewRef created for an embedded view, this is the `LView` for the embedded\n   * view.\n   *\n   * @internal\n   */\n  _lView,\n  /**\n   * This represents the `LView` associated with the point where `ChangeDetectorRef` was\n   * requested.\n   *\n   * This may be different from `_lView` if the `_cdRefInjectingView` is an embedded view.\n   */\n  _cdRefInjectingView, notifyErrorHandler = true) {\n    this._lView = _lView;\n    this._cdRefInjectingView = _cdRefInjectingView;\n    this.notifyErrorHandler = notifyErrorHandler;\n    this._appRef = null;\n    this._attachedToViewContainer = false;\n  }\n  get context() {\n    return this._lView[CONTEXT];\n  }\n  /**\n   * @deprecated Replacing the full context object is not supported. Modify the context\n   *   directly, or consider using a `Proxy` if you need to replace the full object.\n   * // TODO(devversion): Remove this.\n   */\n  set context(value) {\n    if (ngDevMode) {\n      // Note: We have a warning message here because the `@deprecated` JSDoc will not be picked\n      // up for assignments on the setter. We want to let users know about the deprecated usage.\n      console.warn('Angular: Replacing the `context` object of an `EmbeddedViewRef` is deprecated.');\n    }\n    this._lView[CONTEXT] = value;\n  }\n  get destroyed() {\n    return (this._lView[FLAGS] & 256 /* LViewFlags.Destroyed */) === 256 /* LViewFlags.Destroyed */;\n  }\n  destroy() {\n    if (this._appRef) {\n      this._appRef.detachView(this);\n    } else if (this._attachedToViewContainer) {\n      const parent = this._lView[PARENT];\n      if (isLContainer(parent)) {\n        const viewRefs = parent[VIEW_REFS];\n        const index = viewRefs ? viewRefs.indexOf(this) : -1;\n        if (index > -1) {\n          ngDevMode && assertEqual(index, parent.indexOf(this._lView) - CONTAINER_HEADER_OFFSET, 'An attached view should be in the same position within its container as its ViewRef in the VIEW_REFS array.');\n          detachView(parent, index);\n          removeFromArray(viewRefs, index);\n        }\n      }\n      this._attachedToViewContainer = false;\n    }\n    destroyLView(this._lView[TVIEW], this._lView);\n  }\n  onDestroy(callback) {\n    storeLViewOnDestroy(this._lView, callback);\n  }\n  /**\n   * Marks a view and all of its ancestors dirty.\n   *\n   * This can be used to ensure an {@link ChangeDetectionStrategy#OnPush} component is\n   * checked when it needs to be re-rendered but the two normal triggers haven't marked it\n   * dirty (i.e. inputs haven't changed and events haven't fired in the view).\n   *\n   * <!-- TODO: Add a link to a chapter on OnPush components -->\n   *\n   * @usageNotes\n   * ### Example\n   *\n   * ```typescript\n   * @Component({\n   *   selector: 'app-root',\n   *   template: `Number of ticks: {{numberOfTicks}}`\n   *   changeDetection: ChangeDetectionStrategy.OnPush,\n   * })\n   * class AppComponent {\n   *   numberOfTicks = 0;\n   *\n   *   constructor(private ref: ChangeDetectorRef) {\n   *     setInterval(() => {\n   *       this.numberOfTicks++;\n   *       // the following is required, otherwise the view will not be updated\n   *       this.ref.markForCheck();\n   *     }, 1000);\n   *   }\n   * }\n   * ```\n   */\n  markForCheck() {\n    markViewDirty(this._cdRefInjectingView || this._lView);\n  }\n  /**\n   * Detaches the view from the change detection tree.\n   *\n   * Detached views will not be checked during change detection runs until they are\n   * re-attached, even if they are dirty. `detach` can be used in combination with\n   * {@link ChangeDetectorRef#detectChanges} to implement local change\n   * detection checks.\n   *\n   * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->\n   * <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->\n   *\n   * @usageNotes\n   * ### Example\n   *\n   * The following example defines a component with a large list of readonly data.\n   * Imagine the data changes constantly, many times per second. For performance reasons,\n   * we want to check and update the list every five seconds. We can do that by detaching\n   * the component's change detector and doing a local check every five seconds.\n   *\n   * ```typescript\n   * class DataProvider {\n   *   // in a real application the returned data will be different every time\n   *   get data() {\n   *     return [1,2,3,4,5];\n   *   }\n   * }\n   *\n   * @Component({\n   *   selector: 'giant-list',\n   *   template: `\n   *     <li *ngFor=\"let d of dataProvider.data\">Data {{d}}</li>\n   *   `,\n   * })\n   * class GiantList {\n   *   constructor(private ref: ChangeDetectorRef, private dataProvider: DataProvider) {\n   *     ref.detach();\n   *     setInterval(() => {\n   *       this.ref.detectChanges();\n   *     }, 5000);\n   *   }\n   * }\n   *\n   * @Component({\n   *   selector: 'app',\n   *   providers: [DataProvider],\n   *   template: `\n   *     <giant-list><giant-list>\n   *   `,\n   * })\n   * class App {\n   * }\n   * ```\n   */\n  detach() {\n    this._lView[FLAGS] &= ~128 /* LViewFlags.Attached */;\n  }\n  /**\n   * Re-attaches a view to the change detection tree.\n   *\n   * This can be used to re-attach views that were previously detached from the tree\n   * using {@link ChangeDetectorRef#detach}. Views are attached to the tree by default.\n   *\n   * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->\n   *\n   * @usageNotes\n   * ### Example\n   *\n   * The following example creates a component displaying `live` data. The component will detach\n   * its change detector from the main change detector tree when the component's live property\n   * is set to false.\n   *\n   * ```typescript\n   * class DataProvider {\n   *   data = 1;\n   *\n   *   constructor() {\n   *     setInterval(() => {\n   *       this.data = this.data * 2;\n   *     }, 500);\n   *   }\n   * }\n   *\n   * @Component({\n   *   selector: 'live-data',\n   *   inputs: ['live'],\n   *   template: 'Data: {{dataProvider.data}}'\n   * })\n   * class LiveData {\n   *   constructor(private ref: ChangeDetectorRef, private dataProvider: DataProvider) {}\n   *\n   *   set live(value) {\n   *     if (value) {\n   *       this.ref.reattach();\n   *     } else {\n   *       this.ref.detach();\n   *     }\n   *   }\n   * }\n   *\n   * @Component({\n   *   selector: 'app-root',\n   *   providers: [DataProvider],\n   *   template: `\n   *     Live Update: <input type=\"checkbox\" [(ngModel)]=\"live\">\n   *     <live-data [live]=\"live\"><live-data>\n   *   `,\n   * })\n   * class AppComponent {\n   *   live = true;\n   * }\n   * ```\n   */\n  reattach() {\n    updateAncestorTraversalFlagsOnAttach(this._lView);\n    this._lView[FLAGS] |= 128 /* LViewFlags.Attached */;\n  }\n  /**\n   * Checks the view and its children.\n   *\n   * This can also be used in combination with {@link ChangeDetectorRef#detach} to implement\n   * local change detection checks.\n   *\n   * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->\n   * <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->\n   *\n   * @usageNotes\n   * ### Example\n   *\n   * The following example defines a component with a large list of readonly data.\n   * Imagine, the data changes constantly, many times per second. For performance reasons,\n   * we want to check and update the list every five seconds.\n   *\n   * We can do that by detaching the component's change detector and doing a local change detection\n   * check every five seconds.\n   *\n   * See {@link ChangeDetectorRef#detach} for more information.\n   */\n  detectChanges() {\n    // Add `RefreshView` flag to ensure this view is refreshed if not already dirty.\n    // `RefreshView` flag is used intentionally over `Dirty` because it gets cleared before\n    // executing any of the actual refresh code while the `Dirty` flag doesn't get cleared\n    // until the end of the refresh. Using `RefreshView` prevents creating a potential difference\n    // in the state of the LViewFlags during template execution.\n    this._lView[FLAGS] |= 1024 /* LViewFlags.RefreshView */;\n    detectChangesInternal(this._lView, this.notifyErrorHandler);\n  }\n  /**\n   * Checks the change detector and its children, and throws if any changes are detected.\n   *\n   * This is used in development mode to verify that running change detection doesn't\n   * introduce other changes.\n   */\n  checkNoChanges() {\n    if (ngDevMode) {\n      checkNoChangesInternal(this._lView, this.notifyErrorHandler);\n    }\n  }\n  attachToViewContainerRef() {\n    if (this._appRef) {\n      throw new RuntimeError(902 /* RuntimeErrorCode.VIEW_ALREADY_ATTACHED */, ngDevMode && 'This view is already attached directly to the ApplicationRef!');\n    }\n    this._attachedToViewContainer = true;\n  }\n  detachFromAppRef() {\n    this._appRef = null;\n    detachViewFromDOM(this._lView[TVIEW], this._lView);\n  }\n  attachToAppRef(appRef) {\n    if (this._attachedToViewContainer) {\n      throw new RuntimeError(902 /* RuntimeErrorCode.VIEW_ALREADY_ATTACHED */, ngDevMode && 'This view is already attached to a ViewContainer!');\n    }\n    this._appRef = appRef;\n    updateAncestorTraversalFlagsOnAttach(this._lView);\n  }\n}\n\n/**\n * Represents an embedded template that can be used to instantiate embedded views.\n * To instantiate embedded views based on a template, use the `ViewContainerRef`\n * method `createEmbeddedView()`.\n *\n * Access a `TemplateRef` instance by placing a directive on an `<ng-template>`\n * element (or directive prefixed with `*`). The `TemplateRef` for the embedded view\n * is injected into the constructor of the directive,\n * using the `TemplateRef` token.\n *\n * You can also use a `Query` to find a `TemplateRef` associated with\n * a component or a directive.\n *\n * @see {@link ViewContainerRef}\n * @see [Navigate the Component Tree with DI](guide/dependency-injection-navtree)\n *\n * @publicApi\n */\nlet TemplateRef = /*#__PURE__*/(() => {\n  class TemplateRef {\n    /**\n     * @internal\n     * @nocollapse\n     */\n    static {\n      this.__NG_ELEMENT_ID__ = injectTemplateRef;\n    }\n  }\n  return TemplateRef;\n})();\nconst ViewEngineTemplateRef = TemplateRef;\n// TODO(alxhub): combine interface and implementation. Currently this is challenging since something\n// in g3 depends on them being separate.\nconst R3TemplateRef = class TemplateRef extends ViewEngineTemplateRef {\n  constructor(_declarationLView, _declarationTContainer, elementRef) {\n    super();\n    this._declarationLView = _declarationLView;\n    this._declarationTContainer = _declarationTContainer;\n    this.elementRef = elementRef;\n  }\n  /**\n   * Returns an `ssrId` associated with a TView, which was used to\n   * create this instance of the `TemplateRef`.\n   *\n   * @internal\n   */\n  get ssrId() {\n    return this._declarationTContainer.tView?.ssrId || null;\n  }\n  createEmbeddedView(context, injector) {\n    return this.createEmbeddedViewImpl(context, injector);\n  }\n  /**\n   * @internal\n   */\n  createEmbeddedViewImpl(context, injector, dehydratedView) {\n    const embeddedLView = createAndRenderEmbeddedLView(this._declarationLView, this._declarationTContainer, context, {\n      embeddedViewInjector: injector,\n      dehydratedView\n    });\n    return new ViewRef$1(embeddedLView);\n  }\n};\n/**\n * Creates a TemplateRef given a node.\n *\n * @returns The TemplateRef instance to use\n */\nfunction injectTemplateRef() {\n  return createTemplateRef(getCurrentTNode(), getLView());\n}\n/**\n * Creates a TemplateRef and stores it on the injector.\n *\n * @param hostTNode The node on which a TemplateRef is requested\n * @param hostLView The `LView` to which the node belongs\n * @returns The TemplateRef instance or null if we can't create a TemplateRef on a given node type\n */\nfunction createTemplateRef(hostTNode, hostLView) {\n  if (hostTNode.type & 4 /* TNodeType.Container */) {\n    ngDevMode && assertDefined(hostTNode.tView, 'TView must be allocated');\n    return new R3TemplateRef(hostLView, hostTNode, createElementRef(hostTNode, hostLView));\n  }\n  return null;\n}\nconst AT_THIS_LOCATION = '<-- AT THIS LOCATION';\n/**\n * Retrieves a user friendly string for a given TNodeType for use in\n * friendly error messages\n *\n * @param tNodeType\n * @returns\n */\nfunction getFriendlyStringFromTNodeType(tNodeType) {\n  switch (tNodeType) {\n    case 4 /* TNodeType.Container */:\n      return 'view container';\n    case 2 /* TNodeType.Element */:\n      return 'element';\n    case 8 /* TNodeType.ElementContainer */:\n      return 'ng-container';\n    case 32 /* TNodeType.Icu */:\n      return 'icu';\n    case 64 /* TNodeType.Placeholder */:\n      return 'i18n';\n    case 16 /* TNodeType.Projection */:\n      return 'projection';\n    case 1 /* TNodeType.Text */:\n      return 'text';\n    default:\n      // This should not happen as we cover all possible TNode types above.\n      return '<unknown>';\n  }\n}\n/**\n * Validates that provided nodes match during the hydration process.\n */\nfunction validateMatchingNode(node, nodeType, tagName, lView, tNode, isViewContainerAnchor = false) {\n  if (!node || node.nodeType !== nodeType || node.nodeType === Node.ELEMENT_NODE && node.tagName.toLowerCase() !== tagName?.toLowerCase()) {\n    const expectedNode = shortRNodeDescription(nodeType, tagName, null);\n    let header = `During hydration Angular expected ${expectedNode} but `;\n    const hostComponentDef = getDeclarationComponentDef(lView);\n    const componentClassName = hostComponentDef?.type?.name;\n    const expectedDom = describeExpectedDom(lView, tNode, isViewContainerAnchor);\n    const expected = `Angular expected this DOM:\\n\\n${expectedDom}\\n\\n`;\n    let actual = '';\n    const componentHostElement = unwrapRNode(lView[HOST]);\n    if (!node) {\n      // No node found during hydration.\n      header += `the node was not found.\\n\\n`;\n      // Since the node is missing, we use the closest node to attach the error to\n      markRNodeAsHavingHydrationMismatch(componentHostElement, expectedDom);\n    } else {\n      const actualNode = shortRNodeDescription(node.nodeType, node.tagName ?? null, node.textContent ?? null);\n      header += `found ${actualNode}.\\n\\n`;\n      const actualDom = describeDomFromNode(node);\n      actual = `Actual DOM is:\\n\\n${actualDom}\\n\\n`;\n      // DevTools only report hydration issues on the component level, so we attach extra debug\n      // info to a component host element to make it available to DevTools.\n      markRNodeAsHavingHydrationMismatch(componentHostElement, expectedDom, actualDom);\n    }\n    const footer = getHydrationErrorFooter(componentClassName);\n    const message = header + expected + actual + getHydrationAttributeNote() + footer;\n    throw new RuntimeError(-500 /* RuntimeErrorCode.HYDRATION_NODE_MISMATCH */, message);\n  }\n}\n/**\n * Validates that a given node has sibling nodes\n */\nfunction validateSiblingNodeExists(node) {\n  validateNodeExists(node);\n  if (!node.nextSibling) {\n    const header = 'During hydration Angular expected more sibling nodes to be present.\\n\\n';\n    const actual = `Actual DOM is:\\n\\n${describeDomFromNode(node)}\\n\\n`;\n    const footer = getHydrationErrorFooter();\n    const message = header + actual + footer;\n    markRNodeAsHavingHydrationMismatch(node, '', actual);\n    throw new RuntimeError(-501 /* RuntimeErrorCode.HYDRATION_MISSING_SIBLINGS */, message);\n  }\n}\n/**\n * Validates that a node exists or throws\n */\nfunction validateNodeExists(node, lView = null, tNode = null) {\n  if (!node) {\n    const header = 'During hydration, Angular expected an element to be present at this location.\\n\\n';\n    let expected = '';\n    let footer = '';\n    if (lView !== null && tNode !== null) {\n      expected = describeExpectedDom(lView, tNode, false);\n      footer = getHydrationErrorFooter();\n      // Since the node is missing, we use the closest node to attach the error to\n      markRNodeAsHavingHydrationMismatch(unwrapRNode(lView[HOST]), expected, '');\n    }\n    throw new RuntimeError(-502 /* RuntimeErrorCode.HYDRATION_MISSING_NODE */, `${header}${expected}\\n\\n${footer}`);\n  }\n}\n/**\n * Builds the hydration error message when a node is not found\n *\n * @param lView the LView where the node exists\n * @param tNode the TNode\n */\nfunction nodeNotFoundError(lView, tNode) {\n  const header = 'During serialization, Angular was unable to find an element in the DOM:\\n\\n';\n  const expected = `${describeExpectedDom(lView, tNode, false)}\\n\\n`;\n  const footer = getHydrationErrorFooter();\n  throw new RuntimeError(-502 /* RuntimeErrorCode.HYDRATION_MISSING_NODE */, header + expected + footer);\n}\n/**\n * Builds a hydration error message when a node is not found at a path location\n *\n * @param host the Host Node\n * @param path the path to the node\n */\nfunction nodeNotFoundAtPathError(host, path) {\n  const header = `During hydration Angular was unable to locate a node ` + `using the \"${path}\" path, starting from the ${describeRNode(host)} node.\\n\\n`;\n  const footer = getHydrationErrorFooter();\n  markRNodeAsHavingHydrationMismatch(host);\n  throw new RuntimeError(-502 /* RuntimeErrorCode.HYDRATION_MISSING_NODE */, header + footer);\n}\n/**\n * Builds the hydration error message in the case that dom nodes are created outside of\n * the Angular context and are being used as projected nodes\n *\n * @param lView the LView\n * @param tNode the TNode\n * @returns an error\n */\nfunction unsupportedProjectionOfDomNodes(rNode) {\n  const header = 'During serialization, Angular detected DOM nodes ' + 'that were created outside of Angular context and provided as projectable nodes ' + '(likely via `ViewContainerRef.createComponent` or `createComponent` APIs). ' + 'Hydration is not supported for such cases, consider refactoring the code to avoid ' + 'this pattern or using `ngSkipHydration` on the host element of the component.\\n\\n';\n  const actual = `${describeDomFromNode(rNode)}\\n\\n`;\n  const message = header + actual + getHydrationAttributeNote();\n  return new RuntimeError(-503 /* RuntimeErrorCode.UNSUPPORTED_PROJECTION_DOM_NODES */, message);\n}\n/**\n * Builds the hydration error message in the case that ngSkipHydration was used on a\n * node that is not a component host element or host binding\n *\n * @param rNode the HTML Element\n * @returns an error\n */\nfunction invalidSkipHydrationHost(rNode) {\n  const header = 'The `ngSkipHydration` flag is applied on a node ' + 'that doesn\\'t act as a component host. Hydration can be ' + 'skipped only on per-component basis.\\n\\n';\n  const actual = `${describeDomFromNode(rNode)}\\n\\n`;\n  const footer = 'Please move the `ngSkipHydration` attribute to the component host element.\\n\\n';\n  const message = header + actual + footer;\n  return new RuntimeError(-504 /* RuntimeErrorCode.INVALID_SKIP_HYDRATION_HOST */, message);\n}\n// Stringification methods\n/**\n * Stringifies a given TNode's attributes\n *\n * @param tNode a provided TNode\n * @returns string\n */\nfunction stringifyTNodeAttrs(tNode) {\n  const results = [];\n  if (tNode.attrs) {\n    for (let i = 0; i < tNode.attrs.length;) {\n      const attrName = tNode.attrs[i++];\n      // Once we reach the first flag, we know that the list of\n      // attributes is over.\n      if (typeof attrName == 'number') {\n        break;\n      }\n      const attrValue = tNode.attrs[i++];\n      results.push(`${attrName}=\"${shorten(attrValue)}\"`);\n    }\n  }\n  return results.join(' ');\n}\n/**\n * The list of internal attributes that should be filtered out while\n * producing an error message.\n */\nconst internalAttrs = /*#__PURE__*/new Set(['ngh', 'ng-version', 'ng-server-context']);\n/**\n * Stringifies an HTML Element's attributes\n *\n * @param rNode an HTML Element\n * @returns string\n */\nfunction stringifyRNodeAttrs(rNode) {\n  const results = [];\n  for (let i = 0; i < rNode.attributes.length; i++) {\n    const attr = rNode.attributes[i];\n    if (internalAttrs.has(attr.name)) continue;\n    results.push(`${attr.name}=\"${shorten(attr.value)}\"`);\n  }\n  return results.join(' ');\n}\n// Methods for Describing the DOM\n/**\n * Converts a tNode to a helpful readable string value for use in error messages\n *\n * @param tNode a given TNode\n * @param innerContent the content of the node\n * @returns string\n */\nfunction describeTNode(tNode, innerContent = '…') {\n  switch (tNode.type) {\n    case 1 /* TNodeType.Text */:\n      const content = tNode.value ? `(${tNode.value})` : '';\n      return `#text${content}`;\n    case 2 /* TNodeType.Element */:\n      const attrs = stringifyTNodeAttrs(tNode);\n      const tag = tNode.value.toLowerCase();\n      return `<${tag}${attrs ? ' ' + attrs : ''}>${innerContent}</${tag}>`;\n    case 8 /* TNodeType.ElementContainer */:\n      return '<!-- ng-container -->';\n    case 4 /* TNodeType.Container */:\n      return '<!-- container -->';\n    default:\n      const typeAsString = getFriendlyStringFromTNodeType(tNode.type);\n      return `#node(${typeAsString})`;\n  }\n}\n/**\n * Converts an RNode to a helpful readable string value for use in error messages\n *\n * @param rNode a given RNode\n * @param innerContent the content of the node\n * @returns string\n */\nfunction describeRNode(rNode, innerContent = '…') {\n  const node = rNode;\n  switch (node.nodeType) {\n    case Node.ELEMENT_NODE:\n      const tag = node.tagName.toLowerCase();\n      const attrs = stringifyRNodeAttrs(node);\n      return `<${tag}${attrs ? ' ' + attrs : ''}>${innerContent}</${tag}>`;\n    case Node.TEXT_NODE:\n      const content = node.textContent ? shorten(node.textContent) : '';\n      return `#text${content ? `(${content})` : ''}`;\n    case Node.COMMENT_NODE:\n      return `<!-- ${shorten(node.textContent ?? '')} -->`;\n    default:\n      return `#node(${node.nodeType})`;\n  }\n}\n/**\n * Builds the string containing the expected DOM present given the LView and TNode\n * values for a readable error message\n *\n * @param lView the lView containing the DOM\n * @param tNode the tNode\n * @param isViewContainerAnchor boolean\n * @returns string\n */\nfunction describeExpectedDom(lView, tNode, isViewContainerAnchor) {\n  const spacer = '  ';\n  let content = '';\n  if (tNode.prev) {\n    content += spacer + '…\\n';\n    content += spacer + describeTNode(tNode.prev) + '\\n';\n  } else if (tNode.type && tNode.type & 12 /* TNodeType.AnyContainer */) {\n    content += spacer + '…\\n';\n  }\n  if (isViewContainerAnchor) {\n    content += spacer + describeTNode(tNode) + '\\n';\n    content += spacer + `<!-- container -->  ${AT_THIS_LOCATION}\\n`;\n  } else {\n    content += spacer + describeTNode(tNode) + `  ${AT_THIS_LOCATION}\\n`;\n  }\n  content += spacer + '…\\n';\n  const parentRNode = tNode.type ? getParentRElement(lView[TVIEW], tNode, lView) : null;\n  if (parentRNode) {\n    content = describeRNode(parentRNode, '\\n' + content);\n  }\n  return content;\n}\n/**\n * Builds the string containing the DOM present around a given RNode for a\n * readable error message\n *\n * @param node the RNode\n * @returns string\n */\nfunction describeDomFromNode(node) {\n  const spacer = '  ';\n  let content = '';\n  const currentNode = node;\n  if (currentNode.previousSibling) {\n    content += spacer + '…\\n';\n    content += spacer + describeRNode(currentNode.previousSibling) + '\\n';\n  }\n  content += spacer + describeRNode(currentNode) + `  ${AT_THIS_LOCATION}\\n`;\n  if (node.nextSibling) {\n    content += spacer + '…\\n';\n  }\n  if (node.parentNode) {\n    content = describeRNode(currentNode.parentNode, '\\n' + content);\n  }\n  return content;\n}\n/**\n * Shortens the description of a given RNode by its type for readability\n *\n * @param nodeType the type of node\n * @param tagName the node tag name\n * @param textContent the text content in the node\n * @returns string\n */\nfunction shortRNodeDescription(nodeType, tagName, textContent) {\n  switch (nodeType) {\n    case Node.ELEMENT_NODE:\n      return `<${tagName.toLowerCase()}>`;\n    case Node.TEXT_NODE:\n      const content = textContent ? ` (with the \"${shorten(textContent)}\" content)` : '';\n      return `a text node${content}`;\n    case Node.COMMENT_NODE:\n      return 'a comment node';\n    default:\n      return `#node(nodeType=${nodeType})`;\n  }\n}\n/**\n * Builds the footer hydration error message\n *\n * @param componentClassName the name of the component class\n * @returns string\n */\nfunction getHydrationErrorFooter(componentClassName) {\n  const componentInfo = componentClassName ? `the \"${componentClassName}\"` : 'corresponding';\n  return `To fix this problem:\\n` + `  * check ${componentInfo} component for hydration-related issues\\n` + `  * check to see if your template has valid HTML structure\\n` + `  * or skip hydration by adding the \\`ngSkipHydration\\` attribute ` + `to its host node in a template\\n\\n`;\n}\n/**\n * An attribute related note for hydration errors\n */\nfunction getHydrationAttributeNote() {\n  return 'Note: attributes are only displayed to better represent the DOM' + ' but have no effect on hydration mismatches.\\n\\n';\n}\n// Node string utility functions\n/**\n * Strips all newlines out of a given string\n *\n * @param input a string to be cleared of new line characters\n * @returns\n */\nfunction stripNewlines(input) {\n  return input.replace(/\\s+/gm, '');\n}\n/**\n * Reduces a string down to a maximum length of characters with ellipsis for readability\n *\n * @param input a string input\n * @param maxLength a maximum length in characters\n * @returns string\n */\nfunction shorten(input, maxLength = 50) {\n  if (!input) {\n    return '';\n  }\n  input = stripNewlines(input);\n  return input.length > maxLength ? `${input.substring(0, maxLength - 1)}…` : input;\n}\n\n/**\n * Removes all dehydrated views from a given LContainer:\n * both in internal data structure, as well as removing\n * corresponding DOM nodes that belong to that dehydrated view.\n */\nfunction removeDehydratedViews(lContainer) {\n  const views = lContainer[DEHYDRATED_VIEWS] ?? [];\n  const parentLView = lContainer[PARENT];\n  const renderer = parentLView[RENDERER];\n  for (const view of views) {\n    removeDehydratedView(view, renderer);\n    ngDevMode && ngDevMode.dehydratedViewsRemoved++;\n  }\n  // Reset the value to an empty array to indicate that no\n  // further processing of dehydrated views is needed for\n  // this view container (i.e. do not trigger the lookup process\n  // once again in case a `ViewContainerRef` is created later).\n  lContainer[DEHYDRATED_VIEWS] = EMPTY_ARRAY;\n}\n/**\n * Helper function to remove all nodes from a dehydrated view.\n */\nfunction removeDehydratedView(dehydratedView, renderer) {\n  let nodesRemoved = 0;\n  let currentRNode = dehydratedView.firstChild;\n  if (currentRNode) {\n    const numNodes = dehydratedView.data[NUM_ROOT_NODES];\n    while (nodesRemoved < numNodes) {\n      ngDevMode && validateSiblingNodeExists(currentRNode);\n      const nextSibling = currentRNode.nextSibling;\n      nativeRemoveNode(renderer, currentRNode, false);\n      currentRNode = nextSibling;\n      nodesRemoved++;\n    }\n  }\n}\n/**\n * Walks over all views within this LContainer invokes dehydrated views\n * cleanup function for each one.\n */\nfunction cleanupLContainer(lContainer) {\n  removeDehydratedViews(lContainer);\n  for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {\n    cleanupLView(lContainer[i]);\n  }\n}\n/**\n * Removes any remaining dehydrated i18n nodes from a given LView,\n * both in internal data structure, as well as removing the\n * corresponding DOM nodes.\n */\nfunction cleanupDehydratedI18nNodes(lView) {\n  const i18nNodes = lView[HYDRATION]?.i18nNodes;\n  if (i18nNodes) {\n    const renderer = lView[RENDERER];\n    for (const node of i18nNodes.values()) {\n      nativeRemoveNode(renderer, node, false);\n    }\n    lView[HYDRATION].i18nNodes = undefined;\n  }\n}\n/**\n * Walks over `LContainer`s and components registered within\n * this LView and invokes dehydrated views cleanup function for each one.\n */\nfunction cleanupLView(lView) {\n  cleanupDehydratedI18nNodes(lView);\n  const tView = lView[TVIEW];\n  for (let i = HEADER_OFFSET; i < tView.bindingStartIndex; i++) {\n    if (isLContainer(lView[i])) {\n      const lContainer = lView[i];\n      cleanupLContainer(lContainer);\n    } else if (isLView(lView[i])) {\n      // This is a component, enter the `cleanupLView` recursively.\n      cleanupLView(lView[i]);\n    }\n  }\n}\n/**\n * Walks over all views registered within the ApplicationRef and removes\n * all dehydrated views from all `LContainer`s along the way.\n */\nfunction cleanupDehydratedViews(appRef) {\n  const viewRefs = appRef._views;\n  for (const viewRef of viewRefs) {\n    const lNode = getLNodeForHydration(viewRef);\n    // An `lView` might be `null` if a `ViewRef` represents\n    // an embedded view (not a component view).\n    if (lNode !== null && lNode[HOST] !== null) {\n      if (isLView(lNode)) {\n        cleanupLView(lNode);\n      } else {\n        // Cleanup in the root component view\n        const componentLView = lNode[HOST];\n        cleanupLView(componentLView);\n        // Cleanup in all views within this view container\n        cleanupLContainer(lNode);\n      }\n      ngDevMode && ngDevMode.dehydratedViewsCleanupRuns++;\n    }\n  }\n}\n\n/**\n * Regexp that extracts a reference node information from the compressed node location.\n * The reference node is represented as either:\n *  - a number which points to an LView slot\n *  - the `b` char which indicates that the lookup should start from the `document.body`\n *  - the `h` char to start lookup from the component host node (`lView[HOST]`)\n */\nconst REF_EXTRACTOR_REGEXP = /*#__PURE__*/new RegExp(`^(\\\\d+)*(${REFERENCE_NODE_BODY}|${REFERENCE_NODE_HOST})*(.*)`);\n/**\n * Helper function that takes a reference node location and a set of navigation steps\n * (from the reference node) to a target node and outputs a string that represents\n * a location.\n *\n * For example, given: referenceNode = 'b' (body) and path = ['firstChild', 'firstChild',\n * 'nextSibling'], the function returns: `bf2n`.\n */\nfunction compressNodeLocation(referenceNode, path) {\n  const result = [referenceNode];\n  for (const segment of path) {\n    const lastIdx = result.length - 1;\n    if (lastIdx > 0 && result[lastIdx - 1] === segment) {\n      // An empty string in a count slot represents 1 occurrence of an instruction.\n      const value = result[lastIdx] || 1;\n      result[lastIdx] = value + 1;\n    } else {\n      // Adding a new segment to the path.\n      // Using an empty string in a counter field to avoid encoding `1`s\n      // into the path, since they are implicit (e.g. `f1n1` vs `fn`), so\n      // it's enough to have a single char in this case.\n      result.push(segment, '');\n    }\n  }\n  return result.join('');\n}\n/**\n * Helper function that reverts the `compressNodeLocation` and transforms a given\n * string into an array where at 0th position there is a reference node info and\n * after that it contains information (in pairs) about a navigation step and the\n * number of repetitions.\n *\n * For example, the path like 'bf2n' will be transformed to:\n * ['b', 'firstChild', 2, 'nextSibling', 1].\n *\n * This information is later consumed by the code that navigates the DOM to find\n * a given node by its location.\n */\nfunction decompressNodeLocation(path) {\n  const matches = path.match(REF_EXTRACTOR_REGEXP);\n  const [_, refNodeId, refNodeName, rest] = matches;\n  // If a reference node is represented by an index, transform it to a number.\n  const ref = refNodeId ? parseInt(refNodeId, 10) : refNodeName;\n  const steps = [];\n  // Match all segments in a path.\n  for (const [_, step, count] of rest.matchAll(/(f|n)(\\d*)/g)) {\n    const repeat = parseInt(count, 10) || 1;\n    steps.push(step, repeat);\n  }\n  return [ref, ...steps];\n}\n\n/** Whether current TNode is a first node in an <ng-container>. */\nfunction isFirstElementInNgContainer(tNode) {\n  return !tNode.prev && tNode.parent?.type === 8 /* TNodeType.ElementContainer */;\n}\n/** Returns an instruction index (subtracting HEADER_OFFSET). */\nfunction getNoOffsetIndex(tNode) {\n  return tNode.index - HEADER_OFFSET;\n}\n/**\n * Check whether a given node exists, but is disconnected from the DOM.\n *\n * Note: we leverage the fact that we have this information available in the DOM emulation\n * layer (in Domino) for now. Longer-term solution should not rely on the DOM emulation and\n * only use internal data structures and state to compute this information.\n */\nfunction isDisconnectedNode(tNode, lView) {\n  return !(tNode.type & 16 /* TNodeType.Projection */) && !!lView[tNode.index] && !unwrapRNode(lView[tNode.index])?.isConnected;\n}\n/**\n * Locate a node in an i18n tree that corresponds to a given instruction index.\n *\n * @param hydrationInfo The hydration annotation data\n * @param noOffsetIndex the instruction index\n * @returns an RNode that corresponds to the instruction index\n */\nfunction locateI18nRNodeByIndex(hydrationInfo, noOffsetIndex) {\n  const i18nNodes = hydrationInfo.i18nNodes;\n  if (i18nNodes) {\n    const native = i18nNodes.get(noOffsetIndex);\n    if (native) {\n      i18nNodes.delete(noOffsetIndex);\n    }\n    return native;\n  }\n  return null;\n}\n/**\n * Locate a node in DOM tree that corresponds to a given TNode.\n *\n * @param hydrationInfo The hydration annotation data\n * @param tView the current tView\n * @param lView the current lView\n * @param tNode the current tNode\n * @returns an RNode that represents a given tNode\n */\nfunction locateNextRNode(hydrationInfo, tView, lView, tNode) {\n  const noOffsetIndex = getNoOffsetIndex(tNode);\n  let native = locateI18nRNodeByIndex(hydrationInfo, noOffsetIndex);\n  if (!native) {\n    const nodes = hydrationInfo.data[NODES];\n    if (nodes?.[noOffsetIndex]) {\n      // We know the exact location of the node.\n      native = locateRNodeByPath(nodes[noOffsetIndex], lView);\n    } else if (tView.firstChild === tNode) {\n      // We create a first node in this view, so we use a reference\n      // to the first child in this DOM segment.\n      native = hydrationInfo.firstChild;\n    } else {\n      // Locate a node based on a previous sibling or a parent node.\n      const previousTNodeParent = tNode.prev === null;\n      const previousTNode = tNode.prev ?? tNode.parent;\n      ngDevMode && assertDefined(previousTNode, 'Unexpected state: current TNode does not have a connection ' + 'to the previous node or a parent node.');\n      if (isFirstElementInNgContainer(tNode)) {\n        const noOffsetParentIndex = getNoOffsetIndex(tNode.parent);\n        native = getSegmentHead(hydrationInfo, noOffsetParentIndex);\n      } else {\n        let previousRElement = getNativeByTNode(previousTNode, lView);\n        if (previousTNodeParent) {\n          native = previousRElement.firstChild;\n        } else {\n          // If the previous node is an element, but it also has container info,\n          // this means that we are processing a node like `<div #vcrTarget>`, which is\n          // represented in the DOM as `<div></div>...<!--container-->`.\n          // In this case, there are nodes *after* this element and we need to skip\n          // all of them to reach an element that we are looking for.\n          const noOffsetPrevSiblingIndex = getNoOffsetIndex(previousTNode);\n          const segmentHead = getSegmentHead(hydrationInfo, noOffsetPrevSiblingIndex);\n          if (previousTNode.type === 2 /* TNodeType.Element */ && segmentHead) {\n            const numRootNodesToSkip = calcSerializedContainerSize(hydrationInfo, noOffsetPrevSiblingIndex);\n            // `+1` stands for an anchor comment node after all the views in this container.\n            const nodesToSkip = numRootNodesToSkip + 1;\n            // First node after this segment.\n            native = siblingAfter(nodesToSkip, segmentHead);\n          } else {\n            native = previousRElement.nextSibling;\n          }\n        }\n      }\n    }\n  }\n  return native;\n}\n/**\n * Skips over a specified number of nodes and returns the next sibling node after that.\n */\nfunction siblingAfter(skip, from) {\n  let currentNode = from;\n  for (let i = 0; i < skip; i++) {\n    ngDevMode && validateSiblingNodeExists(currentNode);\n    currentNode = currentNode.nextSibling;\n  }\n  return currentNode;\n}\n/**\n * Helper function to produce a string representation of the navigation steps\n * (in terms of `nextSibling` and `firstChild` navigations). Used in error\n * messages in dev mode.\n */\nfunction stringifyNavigationInstructions(instructions) {\n  const container = [];\n  for (let i = 0; i < instructions.length; i += 2) {\n    const step = instructions[i];\n    const repeat = instructions[i + 1];\n    for (let r = 0; r < repeat; r++) {\n      container.push(step === NodeNavigationStep.FirstChild ? 'firstChild' : 'nextSibling');\n    }\n  }\n  return container.join('.');\n}\n/**\n * Helper function that navigates from a starting point node (the `from` node)\n * using provided set of navigation instructions (within `path` argument).\n */\nfunction navigateToNode(from, instructions) {\n  let node = from;\n  for (let i = 0; i < instructions.length; i += 2) {\n    const step = instructions[i];\n    const repeat = instructions[i + 1];\n    for (let r = 0; r < repeat; r++) {\n      if (ngDevMode && !node) {\n        throw nodeNotFoundAtPathError(from, stringifyNavigationInstructions(instructions));\n      }\n      switch (step) {\n        case NodeNavigationStep.FirstChild:\n          node = node.firstChild;\n          break;\n        case NodeNavigationStep.NextSibling:\n          node = node.nextSibling;\n          break;\n      }\n    }\n  }\n  if (ngDevMode && !node) {\n    throw nodeNotFoundAtPathError(from, stringifyNavigationInstructions(instructions));\n  }\n  return node;\n}\n/**\n * Locates an RNode given a set of navigation instructions (which also contains\n * a starting point node info).\n */\nfunction locateRNodeByPath(path, lView) {\n  const [referenceNode, ...navigationInstructions] = decompressNodeLocation(path);\n  let ref;\n  if (referenceNode === REFERENCE_NODE_HOST) {\n    ref = lView[DECLARATION_COMPONENT_VIEW][HOST];\n  } else if (referenceNode === REFERENCE_NODE_BODY) {\n    ref = ɵɵresolveBody(lView[DECLARATION_COMPONENT_VIEW][HOST]);\n  } else {\n    const parentElementId = Number(referenceNode);\n    ref = unwrapRNode(lView[parentElementId + HEADER_OFFSET]);\n  }\n  return navigateToNode(ref, navigationInstructions);\n}\n/**\n * Generate a list of DOM navigation operations to get from node `start` to node `finish`.\n *\n * Note: assumes that node `start` occurs before node `finish` in an in-order traversal of the DOM\n * tree. That is, we should be able to get from `start` to `finish` purely by using `.firstChild`\n * and `.nextSibling` operations.\n */\nfunction navigateBetween(start, finish) {\n  if (start === finish) {\n    return [];\n  } else if (start.parentElement == null || finish.parentElement == null) {\n    return null;\n  } else if (start.parentElement === finish.parentElement) {\n    return navigateBetweenSiblings(start, finish);\n  } else {\n    // `finish` is a child of its parent, so the parent will always have a child.\n    const parent = finish.parentElement;\n    const parentPath = navigateBetween(start, parent);\n    const childPath = navigateBetween(parent.firstChild, finish);\n    if (!parentPath || !childPath) return null;\n    return [\n    // First navigate to `finish`'s parent\n    ...parentPath,\n    // Then to its first child.\n    NodeNavigationStep.FirstChild,\n    // And finally from that node to `finish` (maybe a no-op if we're already there).\n    ...childPath];\n  }\n}\n/**\n * Calculates a path between 2 sibling nodes (generates a number of `NextSibling` navigations).\n * Returns `null` if no such path exists between the given nodes.\n */\nfunction navigateBetweenSiblings(start, finish) {\n  const nav = [];\n  let node = null;\n  for (node = start; node != null && node !== finish; node = node.nextSibling) {\n    nav.push(NodeNavigationStep.NextSibling);\n  }\n  // If the `node` becomes `null` or `undefined` at the end, that means that we\n  // didn't find the `end` node, thus return `null` (which would trigger serialization\n  // error to be produced).\n  return node == null ? null : nav;\n}\n/**\n * Calculates a path between 2 nodes in terms of `nextSibling` and `firstChild`\n * navigations:\n * - the `from` node is a known node, used as an starting point for the lookup\n *   (the `fromNodeName` argument is a string representation of the node).\n * - the `to` node is a node that the runtime logic would be looking up,\n *   using the path generated by this function.\n */\nfunction calcPathBetween(from, to, fromNodeName) {\n  const path = navigateBetween(from, to);\n  return path === null ? null : compressNodeLocation(fromNodeName, path);\n}\n/**\n * Invoked at serialization time (on the server) when a set of navigation\n * instructions needs to be generated for a TNode.\n */\nfunction calcPathForNode(tNode, lView) {\n  let parentTNode = tNode.parent;\n  let parentIndex;\n  let parentRNode;\n  let referenceNodeName;\n  // Skip over all parent nodes that are disconnected from the DOM, such nodes\n  // can not be used as anchors.\n  //\n  // This might happen in certain content projection-based use-cases, where\n  // a content of an element is projected and used, when a parent element\n  // itself remains detached from DOM. In this scenario we try to find a parent\n  // element that is attached to DOM and can act as an anchor instead.\n  while (parentTNode !== null && isDisconnectedNode(parentTNode, lView)) {\n    parentTNode = parentTNode.parent;\n  }\n  if (parentTNode === null || !(parentTNode.type & 3 /* TNodeType.AnyRNode */)) {\n    // If there is no parent TNode or a parent TNode does not represent an RNode\n    // (i.e. not a DOM node), use component host element as a reference node.\n    parentIndex = referenceNodeName = REFERENCE_NODE_HOST;\n    parentRNode = lView[DECLARATION_COMPONENT_VIEW][HOST];\n  } else {\n    // Use parent TNode as a reference node.\n    parentIndex = parentTNode.index;\n    parentRNode = unwrapRNode(lView[parentIndex]);\n    referenceNodeName = renderStringify(parentIndex - HEADER_OFFSET);\n  }\n  let rNode = unwrapRNode(lView[tNode.index]);\n  if (tNode.type & 12 /* TNodeType.AnyContainer */) {\n    // For <ng-container> nodes, instead of serializing a reference\n    // to the anchor comment node, serialize a location of the first\n    // DOM element. Paired with the container size (serialized as a part\n    // of `ngh.containers`), it should give enough information for runtime\n    // to hydrate nodes in this container.\n    const firstRNode = getFirstNativeNode(lView, tNode);\n    // If container is not empty, use a reference to the first element,\n    // otherwise, rNode would point to an anchor comment node.\n    if (firstRNode) {\n      rNode = firstRNode;\n    }\n  }\n  let path = calcPathBetween(parentRNode, rNode, referenceNodeName);\n  if (path === null && parentRNode !== rNode) {\n    // Searching for a path between elements within a host node failed.\n    // Trying to find a path to an element starting from the `document.body` instead.\n    //\n    // Important note: this type of reference is relatively unstable, since Angular\n    // may not be able to control parts of the page that the runtime logic navigates\n    // through. This is mostly needed to cover \"portals\" use-case (like menus, dialog boxes,\n    // etc), where nodes are content-projected (including direct DOM manipulations) outside\n    // of the host node. The better solution is to provide APIs to work with \"portals\",\n    // at which point this code path would not be needed.\n    const body = parentRNode.ownerDocument.body;\n    path = calcPathBetween(body, rNode, REFERENCE_NODE_BODY);\n    if (path === null) {\n      // If the path is still empty, it's likely that this node is detached and\n      // won't be found during hydration.\n      throw nodeNotFoundError(lView, tNode);\n    }\n  }\n  return path;\n}\n\n/**\n * Given a current DOM node and a serialized information about the views\n * in a container, walks over the DOM structure, collecting the list of\n * dehydrated views.\n */\nfunction locateDehydratedViewsInContainer(currentRNode, serializedViews) {\n  const dehydratedViews = [];\n  for (const serializedView of serializedViews) {\n    // Repeats a view multiple times as needed, based on the serialized information\n    // (for example, for *ngFor-produced views).\n    for (let i = 0; i < (serializedView[MULTIPLIER] ?? 1); i++) {\n      const view = {\n        data: serializedView,\n        firstChild: null\n      };\n      if (serializedView[NUM_ROOT_NODES] > 0) {\n        // Keep reference to the first node in this view,\n        // so it can be accessed while invoking template instructions.\n        view.firstChild = currentRNode;\n        // Move over to the next node after this view, which can\n        // either be a first node of the next view or an anchor comment\n        // node after the last view in a container.\n        currentRNode = siblingAfter(serializedView[NUM_ROOT_NODES], currentRNode);\n      }\n      dehydratedViews.push(view);\n    }\n  }\n  return [currentRNode, dehydratedViews];\n}\n/**\n * Reference to a function that searches for a matching dehydrated views\n * stored on a given lContainer.\n * Returns `null` by default, when hydration is not enabled.\n */\nlet _findMatchingDehydratedViewImpl = () => null;\n/**\n * Retrieves the next dehydrated view from the LContainer and verifies that\n * it matches a given template id (from the TView that was used to create this\n * instance of a view). If the id doesn't match, that means that we are in an\n * unexpected state and can not complete the reconciliation process. Thus,\n * all dehydrated views from this LContainer are removed (including corresponding\n * DOM nodes) and the rendering is performed as if there were no dehydrated views\n * in this container.\n */\nfunction findMatchingDehydratedViewImpl(lContainer, template) {\n  const views = lContainer[DEHYDRATED_VIEWS];\n  if (!template || views === null || views.length === 0) {\n    return null;\n  }\n  const view = views[0];\n  // Verify whether the first dehydrated view in the container matches\n  // the template id passed to this function (that originated from a TView\n  // that was used to create an instance of an embedded or component views.\n  if (view.data[TEMPLATE_ID] === template) {\n    // If the template id matches - extract the first view and return it.\n    return views.shift();\n  } else {\n    // Otherwise, we are at the state when reconciliation can not be completed,\n    // thus we remove all dehydrated views within this container (remove them\n    // from internal data structures as well as delete associated elements from\n    // the DOM tree).\n    removeDehydratedViews(lContainer);\n    return null;\n  }\n}\nfunction enableFindMatchingDehydratedViewImpl() {\n  _findMatchingDehydratedViewImpl = findMatchingDehydratedViewImpl;\n}\nfunction findMatchingDehydratedView(lContainer, template) {\n  return _findMatchingDehydratedViewImpl(lContainer, template);\n}\n\n/**\n * Injectable that is notified when an `LView` is made aware of changes to application state.\n */\nclass ChangeDetectionScheduler {}\n\n/**\n * Represents a component created by a `ComponentFactory`.\n * Provides access to the component instance and related objects,\n * and provides the means of destroying the instance.\n *\n * @publicApi\n */\nclass ComponentRef$1 {}\n/**\n * Base class for a factory that can create a component dynamically.\n * Instantiate a factory for a given type of component with `resolveComponentFactory()`.\n * Use the resulting `ComponentFactory.create()` method to create a component of that type.\n *\n * @publicApi\n *\n * @deprecated Angular no longer requires Component factories. Please use other APIs where\n *     Component class can be used directly.\n */\nclass ComponentFactory$1 {}\nfunction noComponentFactoryError(component) {\n  const error = Error(`No component factory found for ${stringify(component)}.`);\n  error[ERROR_COMPONENT] = component;\n  return error;\n}\nconst ERROR_COMPONENT = 'ngComponent';\nfunction getComponent(error) {\n  return error[ERROR_COMPONENT];\n}\nclass _NullComponentFactoryResolver {\n  resolveComponentFactory(component) {\n    throw noComponentFactoryError(component);\n  }\n}\n/**\n * A simple registry that maps `Components` to generated `ComponentFactory` classes\n * that can be used to create instances of components.\n * Use to obtain the factory for a given component type,\n * then use the factory's `create()` method to create a component of that type.\n *\n * Note: since v13, dynamic component creation via\n * [`ViewContainerRef.createComponent`](api/core/ViewContainerRef#createComponent)\n * does **not** require resolving component factory: component class can be used directly.\n *\n * @publicApi\n *\n * @deprecated Angular no longer requires Component factories. Please use other APIs where\n *     Component class can be used directly.\n */\nlet ComponentFactoryResolver$1 = /*#__PURE__*/(() => {\n  class ComponentFactoryResolver$1 {\n    static {\n      this.NULL = /* @__PURE__ */new _NullComponentFactoryResolver();\n    }\n  }\n  return ComponentFactoryResolver$1;\n})();\n/**\n * Creates and initializes a custom renderer that implements the `Renderer2` base class.\n *\n * @publicApi\n */\nclass RendererFactory2 {}\n/**\n * Extend this base class to implement custom rendering. By default, Angular\n * renders a template into DOM. You can use custom rendering to intercept\n * rendering calls, or to render to something other than DOM.\n *\n * Create your custom renderer using `RendererFactory2`.\n *\n * Use a custom renderer to bypass Angular's templating and\n * make custom UI changes that can't be expressed declaratively.\n * For example if you need to set a property or an attribute whose name is\n * not statically known, use the `setProperty()` or\n * `setAttribute()` method.\n *\n * @publicApi\n */\nlet Renderer2 = /*#__PURE__*/(() => {\n  class Renderer2 {\n    constructor() {\n      /**\n       * If null or undefined, the view engine won't call it.\n       * This is used as a performance optimization for production mode.\n       */\n      this.destroyNode = null;\n    }\n    /**\n     * @internal\n     * @nocollapse\n     */\n    static {\n      this.__NG_ELEMENT_ID__ = () => injectRenderer2();\n    }\n  }\n  return Renderer2;\n})();\n/** Injects a Renderer2 for the current component. */\nfunction injectRenderer2() {\n  // We need the Renderer to be based on the component that it's being injected into, however since\n  // DI happens before we've entered its view, `getLView` will return the parent view instead.\n  const lView = getLView();\n  const tNode = getCurrentTNode();\n  const nodeAtIndex = getComponentLViewByIndex(tNode.index, lView);\n  return (isLView(nodeAtIndex) ? nodeAtIndex : lView)[RENDERER];\n}\n\n/**\n * Sanitizer is used by the views to sanitize potentially dangerous values.\n *\n * @publicApi\n */\nlet Sanitizer = /*#__PURE__*/(() => {\n  class Sanitizer {\n    /** @nocollapse */\n    static {\n      this.ɵprov = ɵɵdefineInjectable({\n        token: Sanitizer,\n        providedIn: 'root',\n        factory: () => null\n      });\n    }\n  }\n  return Sanitizer;\n})(); // This default value is when checking the hierarchy for a token.\n//\n// It means both:\n// - the token is not provided by the current injector,\n// - only the element injectors should be checked (ie do not check module injectors\n//\n//          mod1\n//         /\n//       el1   mod2\n//         \\  /\n//         el2\n//\n// When requesting el2.injector.get(token), we should check in the following order and return the\n// first found value:\n// - el2.injector.get(token, default)\n// - el1.injector.get(token, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR) -> do not check the module\n// - mod2.injector.get(token, default)\nconst NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR = {};\n\n/**\n * Asserts that the current stack frame is not within a reactive context. Useful\n * to disallow certain code from running inside a reactive context (see {@link toSignal}).\n *\n * @param debugFn a reference to the function making the assertion (used for the error message).\n *\n * @publicApi\n */\nfunction assertNotInReactiveContext(debugFn, extraContext) {\n  // Taking a `Function` instead of a string name here prevents the un-minified name of the function\n  // from being retained in the bundle regardless of minification.\n  if (getActiveConsumer$1() !== null) {\n    throw new RuntimeError(-602 /* RuntimeErrorCode.ASSERTION_NOT_INSIDE_REACTIVE_CONTEXT */, ngDevMode && `${debugFn.name}() cannot be called from within a reactive context.${extraContext ? ` ${extraContext}` : ''}`);\n  }\n}\nconst markedFeatures = /*#__PURE__*/new Set();\n// tslint:disable:ban\n/**\n * A guarded `performance.mark` for feature marking.\n *\n * This method exists because while all supported browser and node.js version supported by Angular\n * support performance.mark API. This is not the case for other environments such as JSDOM and\n * Cloudflare workers.\n */\nfunction performanceMarkFeature(feature) {\n  if (markedFeatures.has(feature)) {\n    return;\n  }\n  markedFeatures.add(feature);\n  performance?.mark?.('mark_feature_usage', {\n    detail: {\n      feature\n    }\n  });\n}\nfunction noop(...args) {\n  // Do nothing.\n}\nfunction getNativeRequestAnimationFrame() {\n  // Note: the `getNativeRequestAnimationFrame` is used in the `NgZone` class, but we cannot use the\n  // `inject` function. The `NgZone` instance may be created manually, and thus the injection\n  // context will be unavailable. This might be enough to check whether `requestAnimationFrame` is\n  // available because otherwise, we'll fall back to `setTimeout`.\n  const isBrowser = typeof _global['requestAnimationFrame'] === 'function';\n  // Note: `requestAnimationFrame` is unavailable when the code runs in the Node.js environment. We\n  // use `setTimeout` because no changes are required other than checking if the current platform is\n  // the browser. `setTimeout` is a well-established API that is available in both environments.\n  // `requestAnimationFrame` is used in the browser to coalesce event tasks since event tasks are\n  // usually executed within the same rendering frame (but this is more implementation details of\n  // browsers).\n  let nativeRequestAnimationFrame = _global[isBrowser ? 'requestAnimationFrame' : 'setTimeout'];\n  let nativeCancelAnimationFrame = _global[isBrowser ? 'cancelAnimationFrame' : 'clearTimeout'];\n  if (typeof Zone !== 'undefined' && nativeRequestAnimationFrame && nativeCancelAnimationFrame) {\n    // Note: zone.js sets original implementations on patched APIs behind the\n    // `__zone_symbol__OriginalDelegate` key (see `attachOriginToPatched`). Given the following\n    // example: `window.requestAnimationFrame.__zone_symbol__OriginalDelegate`; this would return an\n    // unpatched implementation of the `requestAnimationFrame`, which isn't intercepted by the\n    // Angular zone. We use the unpatched implementation to avoid another change detection when\n    // coalescing tasks.\n    const unpatchedRequestAnimationFrame = nativeRequestAnimationFrame[Zone.__symbol__('OriginalDelegate')];\n    if (unpatchedRequestAnimationFrame) {\n      nativeRequestAnimationFrame = unpatchedRequestAnimationFrame;\n    }\n    const unpatchedCancelAnimationFrame = nativeCancelAnimationFrame[Zone.__symbol__('OriginalDelegate')];\n    if (unpatchedCancelAnimationFrame) {\n      nativeCancelAnimationFrame = unpatchedCancelAnimationFrame;\n    }\n  }\n  return {\n    nativeRequestAnimationFrame,\n    nativeCancelAnimationFrame\n  };\n}\nclass AsyncStackTaggingZoneSpec {\n  constructor(namePrefix, consoleAsyncStackTaggingImpl = console) {\n    this.name = 'asyncStackTagging for ' + namePrefix;\n    this.createTask = consoleAsyncStackTaggingImpl?.createTask ?? (() => null);\n  }\n  onScheduleTask(delegate, _current, target, task) {\n    task.consoleTask = this.createTask(`Zone - ${task.source || task.type}`);\n    return delegate.scheduleTask(target, task);\n  }\n  onInvokeTask(delegate, _currentZone, targetZone, task, applyThis, applyArgs) {\n    let ret;\n    if (task.consoleTask) {\n      ret = task.consoleTask.run(() => delegate.invokeTask(targetZone, task, applyThis, applyArgs));\n    } else {\n      ret = delegate.invokeTask(targetZone, task, applyThis, applyArgs);\n    }\n    return ret;\n  }\n}\n\n/**\n * An injectable service for executing work inside or outside of the Angular zone.\n *\n * The most common use of this service is to optimize performance when starting a work consisting of\n * one or more asynchronous tasks that don't require UI updates or error handling to be handled by\n * Angular. Such tasks can be kicked off via {@link #runOutsideAngular} and if needed, these tasks\n * can reenter the Angular zone via {@link #run}.\n *\n * <!-- TODO: add/fix links to:\n *   - docs explaining zones and the use of zones in Angular and change-detection\n *   - link to runOutsideAngular/run (throughout this file!)\n *   -->\n *\n * @usageNotes\n * ### Example\n *\n * ```\n * import {Component, NgZone} from '@angular/core';\n * import {NgIf} from '@angular/common';\n *\n * @Component({\n *   selector: 'ng-zone-demo',\n *   template: `\n *     <h2>Demo: NgZone</h2>\n *\n *     <p>Progress: {{progress}}%</p>\n *     <p *ngIf=\"progress >= 100\">Done processing {{label}} of Angular zone!</p>\n *\n *     <button (click)=\"processWithinAngularZone()\">Process within Angular zone</button>\n *     <button (click)=\"processOutsideOfAngularZone()\">Process outside of Angular zone</button>\n *   `,\n * })\n * export class NgZoneDemo {\n *   progress: number = 0;\n *   label: string;\n *\n *   constructor(private _ngZone: NgZone) {}\n *\n *   // Loop inside the Angular zone\n *   // so the UI DOES refresh after each setTimeout cycle\n *   processWithinAngularZone() {\n *     this.label = 'inside';\n *     this.progress = 0;\n *     this._increaseProgress(() => console.log('Inside Done!'));\n *   }\n *\n *   // Loop outside of the Angular zone\n *   // so the UI DOES NOT refresh after each setTimeout cycle\n *   processOutsideOfAngularZone() {\n *     this.label = 'outside';\n *     this.progress = 0;\n *     this._ngZone.runOutsideAngular(() => {\n *       this._increaseProgress(() => {\n *         // reenter the Angular zone and display done\n *         this._ngZone.run(() => { console.log('Outside Done!'); });\n *       });\n *     });\n *   }\n *\n *   _increaseProgress(doneCallback: () => void) {\n *     this.progress += 1;\n *     console.log(`Current progress: ${this.progress}%`);\n *\n *     if (this.progress < 100) {\n *       window.setTimeout(() => this._increaseProgress(doneCallback), 10);\n *     } else {\n *       doneCallback();\n *     }\n *   }\n * }\n * ```\n *\n * @publicApi\n */\nclass NgZone {\n  constructor({\n    enableLongStackTrace = false,\n    shouldCoalesceEventChangeDetection = false,\n    shouldCoalesceRunChangeDetection = false\n  }) {\n    this.hasPendingMacrotasks = false;\n    this.hasPendingMicrotasks = false;\n    /**\n     * Whether there are no outstanding microtasks or macrotasks.\n     */\n    this.isStable = true;\n    /**\n     * Notifies when code enters Angular Zone. This gets fired first on VM Turn.\n     */\n    this.onUnstable = new EventEmitter(false);\n    /**\n     * Notifies when there is no more microtasks enqueued in the current VM Turn.\n     * This is a hint for Angular to do change detection, which may enqueue more microtasks.\n     * For this reason this event can fire multiple times per VM Turn.\n     */\n    this.onMicrotaskEmpty = new EventEmitter(false);\n    /**\n     * Notifies when the last `onMicrotaskEmpty` has run and there are no more microtasks, which\n     * implies we are about to relinquish VM turn.\n     * This event gets called just once.\n     */\n    this.onStable = new EventEmitter(false);\n    /**\n     * Notifies that an error has been delivered.\n     */\n    this.onError = new EventEmitter(false);\n    if (typeof Zone == 'undefined') {\n      throw new RuntimeError(908 /* RuntimeErrorCode.MISSING_ZONEJS */, ngDevMode && `In this configuration Angular requires Zone.js`);\n    }\n    Zone.assertZonePatched();\n    const self = this;\n    self._nesting = 0;\n    self._outer = self._inner = Zone.current;\n    // AsyncStackTaggingZoneSpec provides `linked stack traces` to show\n    // where the async operation is scheduled. For more details, refer\n    // to this article, https://developer.chrome.com/blog/devtools-better-angular-debugging/\n    // And we only import this AsyncStackTaggingZoneSpec in development mode,\n    // in the production mode, the AsyncStackTaggingZoneSpec will be tree shaken away.\n    if (ngDevMode) {\n      self._inner = self._inner.fork(new AsyncStackTaggingZoneSpec('Angular'));\n    }\n    if (Zone['TaskTrackingZoneSpec']) {\n      self._inner = self._inner.fork(new Zone['TaskTrackingZoneSpec']());\n    }\n    if (enableLongStackTrace && Zone['longStackTraceZoneSpec']) {\n      self._inner = self._inner.fork(Zone['longStackTraceZoneSpec']);\n    }\n    // if shouldCoalesceRunChangeDetection is true, all tasks including event tasks will be\n    // coalesced, so shouldCoalesceEventChangeDetection option is not necessary and can be skipped.\n    self.shouldCoalesceEventChangeDetection = !shouldCoalesceRunChangeDetection && shouldCoalesceEventChangeDetection;\n    self.shouldCoalesceRunChangeDetection = shouldCoalesceRunChangeDetection;\n    self.lastRequestAnimationFrameId = -1;\n    self.nativeRequestAnimationFrame = getNativeRequestAnimationFrame().nativeRequestAnimationFrame;\n    forkInnerZoneWithAngularBehavior(self);\n  }\n  /**\n    This method checks whether the method call happens within an Angular Zone instance.\n  */\n  static isInAngularZone() {\n    // Zone needs to be checked, because this method might be called even when NoopNgZone is used.\n    return typeof Zone !== 'undefined' && Zone.current.get('isAngularZone') === true;\n  }\n  /**\n    Assures that the method is called within the Angular Zone, otherwise throws an error.\n  */\n  static assertInAngularZone() {\n    if (!NgZone.isInAngularZone()) {\n      throw new RuntimeError(909 /* RuntimeErrorCode.UNEXPECTED_ZONE_STATE */, ngDevMode && 'Expected to be in Angular Zone, but it is not!');\n    }\n  }\n  /**\n    Assures that the method is called outside of the Angular Zone, otherwise throws an error.\n  */\n  static assertNotInAngularZone() {\n    if (NgZone.isInAngularZone()) {\n      throw new RuntimeError(909 /* RuntimeErrorCode.UNEXPECTED_ZONE_STATE */, ngDevMode && 'Expected to not be in Angular Zone, but it is!');\n    }\n  }\n  /**\n   * Executes the `fn` function synchronously within the Angular zone and returns value returned by\n   * the function.\n   *\n   * Running functions via `run` allows you to reenter Angular zone from a task that was executed\n   * outside of the Angular zone (typically started via {@link #runOutsideAngular}).\n   *\n   * Any future tasks or microtasks scheduled from within this function will continue executing from\n   * within the Angular zone.\n   *\n   * If a synchronous error happens it will be rethrown and not reported via `onError`.\n   */\n  run(fn, applyThis, applyArgs) {\n    return this._inner.run(fn, applyThis, applyArgs);\n  }\n  /**\n   * Executes the `fn` function synchronously within the Angular zone as a task and returns value\n   * returned by the function.\n   *\n   * Running functions via `run` allows you to reenter Angular zone from a task that was executed\n   * outside of the Angular zone (typically started via {@link #runOutsideAngular}).\n   *\n   * Any future tasks or microtasks scheduled from within this function will continue executing from\n   * within the Angular zone.\n   *\n   * If a synchronous error happens it will be rethrown and not reported via `onError`.\n   */\n  runTask(fn, applyThis, applyArgs, name) {\n    const zone = this._inner;\n    const task = zone.scheduleEventTask('NgZoneEvent: ' + name, fn, EMPTY_PAYLOAD, noop, noop);\n    try {\n      return zone.runTask(task, applyThis, applyArgs);\n    } finally {\n      zone.cancelTask(task);\n    }\n  }\n  /**\n   * Same as `run`, except that synchronous errors are caught and forwarded via `onError` and not\n   * rethrown.\n   */\n  runGuarded(fn, applyThis, applyArgs) {\n    return this._inner.runGuarded(fn, applyThis, applyArgs);\n  }\n  /**\n   * Executes the `fn` function synchronously in Angular's parent zone and returns value returned by\n   * the function.\n   *\n   * Running functions via {@link #runOutsideAngular} allows you to escape Angular's zone and do\n   * work that\n   * doesn't trigger Angular change-detection or is subject to Angular's error handling.\n   *\n   * Any future tasks or microtasks scheduled from within this function will continue executing from\n   * outside of the Angular zone.\n   *\n   * Use {@link #run} to reenter the Angular zone and do work that updates the application model.\n   */\n  runOutsideAngular(fn) {\n    return this._outer.run(fn);\n  }\n}\nconst EMPTY_PAYLOAD = {};\nfunction checkStable(zone) {\n  // TODO: @JiaLiPassion, should check zone.isCheckStableRunning to prevent\n  // re-entry. The case is:\n  //\n  // @Component({...})\n  // export class AppComponent {\n  // constructor(private ngZone: NgZone) {\n  //   this.ngZone.onStable.subscribe(() => {\n  //     this.ngZone.run(() => console.log('stable'););\n  //   });\n  // }\n  //\n  // The onStable subscriber run another function inside ngZone\n  // which causes `checkStable()` re-entry.\n  // But this fix causes some issues in g3, so this fix will be\n  // launched in another PR.\n  if (zone._nesting == 0 && !zone.hasPendingMicrotasks && !zone.isStable) {\n    try {\n      zone._nesting++;\n      zone.onMicrotaskEmpty.emit(null);\n    } finally {\n      zone._nesting--;\n      if (!zone.hasPendingMicrotasks) {\n        try {\n          zone.runOutsideAngular(() => zone.onStable.emit(null));\n        } finally {\n          zone.isStable = true;\n        }\n      }\n    }\n  }\n}\nfunction delayChangeDetectionForEvents(zone) {\n  /**\n   * We also need to check _nesting here\n   * Consider the following case with shouldCoalesceRunChangeDetection = true\n   *\n   * ngZone.run(() => {});\n   * ngZone.run(() => {});\n   *\n   * We want the two `ngZone.run()` only trigger one change detection\n   * when shouldCoalesceRunChangeDetection is true.\n   * And because in this case, change detection run in async way(requestAnimationFrame),\n   * so we also need to check the _nesting here to prevent multiple\n   * change detections.\n   */\n  if (zone.isCheckStableRunning || zone.lastRequestAnimationFrameId !== -1) {\n    return;\n  }\n  zone.lastRequestAnimationFrameId = zone.nativeRequestAnimationFrame.call(_global, () => {\n    // This is a work around for https://github.com/angular/angular/issues/36839.\n    // The core issue is that when event coalescing is enabled it is possible for microtasks\n    // to get flushed too early (As is the case with `Promise.then`) between the\n    // coalescing eventTasks.\n    //\n    // To workaround this we schedule a \"fake\" eventTask before we process the\n    // coalescing eventTasks. The benefit of this is that the \"fake\" container eventTask\n    //  will prevent the microtasks queue from getting drained in between the coalescing\n    // eventTask execution.\n    if (!zone.fakeTopEventTask) {\n      zone.fakeTopEventTask = Zone.root.scheduleEventTask('fakeTopEventTask', () => {\n        zone.lastRequestAnimationFrameId = -1;\n        updateMicroTaskStatus(zone);\n        zone.isCheckStableRunning = true;\n        checkStable(zone);\n        zone.isCheckStableRunning = false;\n      }, undefined, () => {}, () => {});\n    }\n    zone.fakeTopEventTask.invoke();\n  });\n  updateMicroTaskStatus(zone);\n}\nfunction forkInnerZoneWithAngularBehavior(zone) {\n  const delayChangeDetectionForEventsDelegate = () => {\n    delayChangeDetectionForEvents(zone);\n  };\n  zone._inner = zone._inner.fork({\n    name: 'angular',\n    properties: {\n      'isAngularZone': true\n    },\n    onInvokeTask: (delegate, current, target, task, applyThis, applyArgs) => {\n      if (shouldBeIgnoredByZone(applyArgs)) {\n        return delegate.invokeTask(target, task, applyThis, applyArgs);\n      }\n      try {\n        onEnter(zone);\n        return delegate.invokeTask(target, task, applyThis, applyArgs);\n      } finally {\n        if (zone.shouldCoalesceEventChangeDetection && task.type === 'eventTask' || zone.shouldCoalesceRunChangeDetection) {\n          delayChangeDetectionForEventsDelegate();\n        }\n        onLeave(zone);\n      }\n    },\n    onInvoke: (delegate, current, target, callback, applyThis, applyArgs, source) => {\n      try {\n        onEnter(zone);\n        return delegate.invoke(target, callback, applyThis, applyArgs, source);\n      } finally {\n        if (zone.shouldCoalesceRunChangeDetection) {\n          delayChangeDetectionForEventsDelegate();\n        }\n        onLeave(zone);\n      }\n    },\n    onHasTask: (delegate, current, target, hasTaskState) => {\n      delegate.hasTask(target, hasTaskState);\n      if (current === target) {\n        // We are only interested in hasTask events which originate from our zone\n        // (A child hasTask event is not interesting to us)\n        if (hasTaskState.change == 'microTask') {\n          zone._hasPendingMicrotasks = hasTaskState.microTask;\n          updateMicroTaskStatus(zone);\n          checkStable(zone);\n        } else if (hasTaskState.change == 'macroTask') {\n          zone.hasPendingMacrotasks = hasTaskState.macroTask;\n        }\n      }\n    },\n    onHandleError: (delegate, current, target, error) => {\n      delegate.handleError(target, error);\n      zone.runOutsideAngular(() => zone.onError.emit(error));\n      return false;\n    }\n  });\n}\nfunction updateMicroTaskStatus(zone) {\n  if (zone._hasPendingMicrotasks || (zone.shouldCoalesceEventChangeDetection || zone.shouldCoalesceRunChangeDetection) && zone.lastRequestAnimationFrameId !== -1) {\n    zone.hasPendingMicrotasks = true;\n  } else {\n    zone.hasPendingMicrotasks = false;\n  }\n}\nfunction onEnter(zone) {\n  zone._nesting++;\n  if (zone.isStable) {\n    zone.isStable = false;\n    zone.onUnstable.emit(null);\n  }\n}\nfunction onLeave(zone) {\n  zone._nesting--;\n  checkStable(zone);\n}\n/**\n * Provides a noop implementation of `NgZone` which does nothing. This zone requires explicit calls\n * to framework to perform rendering.\n */\nclass NoopNgZone {\n  constructor() {\n    this.hasPendingMicrotasks = false;\n    this.hasPendingMacrotasks = false;\n    this.isStable = true;\n    this.onUnstable = new EventEmitter();\n    this.onMicrotaskEmpty = new EventEmitter();\n    this.onStable = new EventEmitter();\n    this.onError = new EventEmitter();\n  }\n  run(fn, applyThis, applyArgs) {\n    return fn.apply(applyThis, applyArgs);\n  }\n  runGuarded(fn, applyThis, applyArgs) {\n    return fn.apply(applyThis, applyArgs);\n  }\n  runOutsideAngular(fn) {\n    return fn();\n  }\n  runTask(fn, applyThis, applyArgs, name) {\n    return fn.apply(applyThis, applyArgs);\n  }\n}\nfunction shouldBeIgnoredByZone(applyArgs) {\n  if (!Array.isArray(applyArgs)) {\n    return false;\n  }\n  // We should only ever get 1 arg passed through to invokeTask.\n  // Short circuit here incase that behavior changes.\n  if (applyArgs.length !== 1) {\n    return false;\n  }\n  // Prevent triggering change detection when the __ignore_ng_zone__ flag is detected.\n  return applyArgs[0].data?.['__ignore_ng_zone__'] === true;\n}\nfunction getNgZone(ngZoneToUse = 'zone.js', options) {\n  if (ngZoneToUse === 'noop') {\n    return new NoopNgZone();\n  }\n  if (ngZoneToUse === 'zone.js') {\n    return new NgZone(options);\n  }\n  return ngZoneToUse;\n}\n\n/**\n * The phase to run an `afterRender` or `afterNextRender` callback in.\n *\n * Callbacks in the same phase run in the order they are registered. Phases run in the\n * following order after each render:\n *\n *   1. `AfterRenderPhase.EarlyRead`\n *   2. `AfterRenderPhase.Write`\n *   3. `AfterRenderPhase.MixedReadWrite`\n *   4. `AfterRenderPhase.Read`\n *\n * Angular is unable to verify or enforce that phases are used correctly, and instead\n * relies on each developer to follow the guidelines documented for each value and\n * carefully choose the appropriate one, refactoring their code if necessary. By doing\n * so, Angular is better able to minimize the performance degradation associated with\n * manual DOM access, ensuring the best experience for the end users of your application\n * or library.\n *\n * @developerPreview\n */\nvar AfterRenderPhase = /*#__PURE__*/function (AfterRenderPhase) {\n  /**\n   * Use `AfterRenderPhase.EarlyRead` for callbacks that only need to **read** from the\n   * DOM before a subsequent `AfterRenderPhase.Write` callback, for example to perform\n   * custom layout that the browser doesn't natively support. **Never** use this phase\n   * for callbacks that can write to the DOM or when `AfterRenderPhase.Read` is adequate.\n   *\n   * <div class=\"alert is-important\">\n   *\n   * Using this value can degrade performance.\n   * Instead, prefer using built-in browser functionality when possible.\n   *\n   * </div>\n   */\n  AfterRenderPhase[AfterRenderPhase[\"EarlyRead\"] = 0] = \"EarlyRead\";\n  /**\n   * Use `AfterRenderPhase.Write` for callbacks that only **write** to the DOM. **Never**\n   * use this phase for callbacks that can read from the DOM.\n   */\n  AfterRenderPhase[AfterRenderPhase[\"Write\"] = 1] = \"Write\";\n  /**\n   * Use `AfterRenderPhase.MixedReadWrite` for callbacks that read from or write to the\n   * DOM, that haven't been refactored to use a different phase. **Never** use this phase\n   * for callbacks that can use a different phase instead.\n   *\n   * <div class=\"alert is-critical\">\n   *\n   * Using this value can **significantly** degrade performance.\n   * Instead, prefer refactoring into multiple callbacks using a more specific phase.\n   *\n   * </div>\n   */\n  AfterRenderPhase[AfterRenderPhase[\"MixedReadWrite\"] = 2] = \"MixedReadWrite\";\n  /**\n   * Use `AfterRenderPhase.Read` for callbacks that only **read** from the DOM. **Never**\n   * use this phase for callbacks that can write to the DOM.\n   */\n  AfterRenderPhase[AfterRenderPhase[\"Read\"] = 3] = \"Read\";\n  return AfterRenderPhase;\n}(AfterRenderPhase || {});\n/** `AfterRenderRef` that does nothing. */\nconst NOOP_AFTER_RENDER_REF = {\n  destroy() {}\n};\n/**\n * Register a callback to run once before any userspace `afterRender` or\n * `afterNextRender` callbacks.\n *\n * This function should almost always be used instead of `afterRender` or\n * `afterNextRender` for implementing framework functionality. Consider:\n *\n *   1.) `AfterRenderPhase.EarlyRead` is intended to be used for implementing\n *       custom layout. If the framework itself mutates the DOM after *any*\n *       `AfterRenderPhase.EarlyRead` callbacks are run, the phase can no\n *       longer reliably serve its purpose.\n *\n *   2.) Importing `afterRender` in the framework can reduce the ability for it\n *       to be tree-shaken, and the framework shouldn't need much of the behavior.\n */\nfunction internalAfterNextRender(callback, options) {\n  const injector = options?.injector ?? inject(Injector);\n  // Similarly to the public `afterNextRender` function, an internal one\n  // is only invoked in a browser as long as the runOnServer option is not set.\n  if (!options?.runOnServer && !isPlatformBrowser(injector)) return;\n  const afterRenderEventManager = injector.get(AfterRenderEventManager);\n  afterRenderEventManager.internalCallbacks.push(callback);\n}\n/**\n * Register a callback to be invoked each time the application\n * finishes rendering.\n *\n * <div class=\"alert is-critical\">\n *\n * You should always explicitly specify a non-default [phase](api/core/AfterRenderPhase), or you\n * risk significant performance degradation.\n *\n * </div>\n *\n * Note that the callback will run\n * - in the order it was registered\n * - once per render\n * - on browser platforms only\n *\n * <div class=\"alert is-important\">\n *\n * Components are not guaranteed to be [hydrated](guide/hydration) before the callback runs.\n * You must use caution when directly reading or writing the DOM and layout.\n *\n * </div>\n *\n * @param callback A callback function to register\n *\n * @usageNotes\n *\n * Use `afterRender` to read or write the DOM after each render.\n *\n * ### Example\n * ```ts\n * @Component({\n *   selector: 'my-cmp',\n *   template: `<span #content>{{ ... }}</span>`,\n * })\n * export class MyComponent {\n *   @ViewChild('content') contentRef: ElementRef;\n *\n *   constructor() {\n *     afterRender(() => {\n *       console.log('content height: ' + this.contentRef.nativeElement.scrollHeight);\n *     }, {phase: AfterRenderPhase.Read});\n *   }\n * }\n * ```\n *\n * @developerPreview\n */\nfunction afterRender(callback, options) {\n  ngDevMode && assertNotInReactiveContext(afterRender, 'Call `afterRender` outside of a reactive context. For example, schedule the render ' + 'callback inside the component constructor`.');\n  !options && assertInInjectionContext(afterRender);\n  const injector = options?.injector ?? inject(Injector);\n  if (!isPlatformBrowser(injector)) {\n    return NOOP_AFTER_RENDER_REF;\n  }\n  performanceMarkFeature('NgAfterRender');\n  const afterRenderEventManager = injector.get(AfterRenderEventManager);\n  // Lazily initialize the handler implementation, if necessary. This is so that it can be\n  // tree-shaken if `afterRender` and `afterNextRender` aren't used.\n  const callbackHandler = afterRenderEventManager.handler ??= new AfterRenderCallbackHandlerImpl();\n  const phase = options?.phase ?? AfterRenderPhase.MixedReadWrite;\n  const destroy = () => {\n    callbackHandler.unregister(instance);\n    unregisterFn();\n  };\n  const unregisterFn = injector.get(DestroyRef).onDestroy(destroy);\n  const instance = runInInjectionContext(injector, () => new AfterRenderCallback(phase, callback));\n  callbackHandler.register(instance);\n  return {\n    destroy\n  };\n}\n/**\n * Register a callback to be invoked the next time the application\n * finishes rendering.\n *\n * <div class=\"alert is-critical\">\n *\n * You should always explicitly specify a non-default [phase](api/core/AfterRenderPhase), or you\n * risk significant performance degradation.\n *\n * </div>\n *\n * Note that the callback will run\n * - in the order it was registered\n * - on browser platforms only\n *\n * <div class=\"alert is-important\">\n *\n * Components are not guaranteed to be [hydrated](guide/hydration) before the callback runs.\n * You must use caution when directly reading or writing the DOM and layout.\n *\n * </div>\n *\n * @param callback A callback function to register\n *\n * @usageNotes\n *\n * Use `afterNextRender` to read or write the DOM once,\n * for example to initialize a non-Angular library.\n *\n * ### Example\n * ```ts\n * @Component({\n *   selector: 'my-chart-cmp',\n *   template: `<div #chart>{{ ... }}</div>`,\n * })\n * export class MyChartCmp {\n *   @ViewChild('chart') chartRef: ElementRef;\n *   chart: MyChart|null;\n *\n *   constructor() {\n *     afterNextRender(() => {\n *       this.chart = new MyChart(this.chartRef.nativeElement);\n *     }, {phase: AfterRenderPhase.Write});\n *   }\n * }\n * ```\n *\n * @developerPreview\n */\nfunction afterNextRender(callback, options) {\n  !options && assertInInjectionContext(afterNextRender);\n  const injector = options?.injector ?? inject(Injector);\n  if (!isPlatformBrowser(injector)) {\n    return NOOP_AFTER_RENDER_REF;\n  }\n  performanceMarkFeature('NgAfterNextRender');\n  const afterRenderEventManager = injector.get(AfterRenderEventManager);\n  // Lazily initialize the handler implementation, if necessary. This is so that it can be\n  // tree-shaken if `afterRender` and `afterNextRender` aren't used.\n  const callbackHandler = afterRenderEventManager.handler ??= new AfterRenderCallbackHandlerImpl();\n  const phase = options?.phase ?? AfterRenderPhase.MixedReadWrite;\n  const destroy = () => {\n    callbackHandler.unregister(instance);\n    unregisterFn();\n  };\n  const unregisterFn = injector.get(DestroyRef).onDestroy(destroy);\n  const instance = runInInjectionContext(injector, () => new AfterRenderCallback(phase, () => {\n    destroy();\n    callback();\n  }));\n  callbackHandler.register(instance);\n  return {\n    destroy\n  };\n}\n/**\n * A wrapper around a function to be used as an after render callback.\n */\nclass AfterRenderCallback {\n  constructor(phase, callbackFn) {\n    this.phase = phase;\n    this.callbackFn = callbackFn;\n    this.zone = inject(NgZone);\n    this.errorHandler = inject(ErrorHandler, {\n      optional: true\n    });\n    // Registering a callback will notify the scheduler.\n    inject(ChangeDetectionScheduler, {\n      optional: true\n    })?.notify(1 /* NotificationType.AfterRenderHooks */);\n  }\n  invoke() {\n    try {\n      this.zone.runOutsideAngular(this.callbackFn);\n    } catch (err) {\n      this.errorHandler?.handleError(err);\n    }\n  }\n}\n/**\n * Core functionality for `afterRender` and `afterNextRender`. Kept separate from\n * `AfterRenderEventManager` for tree-shaking.\n */\nclass AfterRenderCallbackHandlerImpl {\n  constructor() {\n    this.executingCallbacks = false;\n    this.buckets = {\n      // Note: the order of these keys controls the order the phases are run.\n      [AfterRenderPhase.EarlyRead]: new Set(),\n      [AfterRenderPhase.Write]: new Set(),\n      [AfterRenderPhase.MixedReadWrite]: new Set(),\n      [AfterRenderPhase.Read]: new Set()\n    };\n    this.deferredCallbacks = new Set();\n  }\n  register(callback) {\n    // If we're currently running callbacks, new callbacks should be deferred\n    // until the next render operation.\n    const target = this.executingCallbacks ? this.deferredCallbacks : this.buckets[callback.phase];\n    target.add(callback);\n  }\n  unregister(callback) {\n    this.buckets[callback.phase].delete(callback);\n    this.deferredCallbacks.delete(callback);\n  }\n  execute() {\n    this.executingCallbacks = true;\n    for (const bucket of Object.values(this.buckets)) {\n      for (const callback of bucket) {\n        callback.invoke();\n      }\n    }\n    this.executingCallbacks = false;\n    for (const callback of this.deferredCallbacks) {\n      this.buckets[callback.phase].add(callback);\n    }\n    this.deferredCallbacks.clear();\n  }\n  destroy() {\n    for (const bucket of Object.values(this.buckets)) {\n      bucket.clear();\n    }\n    this.deferredCallbacks.clear();\n  }\n}\n/**\n * Implements core timing for `afterRender` and `afterNextRender` events.\n * Delegates to an optional `AfterRenderCallbackHandler` for implementation.\n */\nlet AfterRenderEventManager = /*#__PURE__*/(() => {\n  class AfterRenderEventManager {\n    constructor() {\n      /* @internal */\n      this.handler = null;\n      /* @internal */\n      this.internalCallbacks = [];\n    }\n    /**\n     * Executes internal and user-provided callbacks.\n     */\n    execute() {\n      this.executeInternalCallbacks();\n      this.handler?.execute();\n    }\n    executeInternalCallbacks() {\n      // Note: internal callbacks power `internalAfterNextRender`. Since internal callbacks\n      // are fairly trivial, they are kept separate so that `AfterRenderCallbackHandlerImpl`\n      // can still be tree-shaken unless used by the application.\n      const callbacks = [...this.internalCallbacks];\n      this.internalCallbacks.length = 0;\n      for (const callback of callbacks) {\n        callback();\n      }\n    }\n    ngOnDestroy() {\n      this.handler?.destroy();\n      this.handler = null;\n      this.internalCallbacks.length = 0;\n    }\n    /** @nocollapse */\n    static {\n      this.ɵprov = ɵɵdefineInjectable({\n        token: AfterRenderEventManager,\n        providedIn: 'root',\n        factory: () => new AfterRenderEventManager()\n      });\n    }\n  }\n  return AfterRenderEventManager;\n})();\nfunction isModuleWithProviders(value) {\n  return value.ngModule !== undefined;\n}\nfunction isNgModule(value) {\n  return !!getNgModuleDef(value);\n}\nfunction isPipe(value) {\n  return !!getPipeDef$1(value);\n}\nfunction isDirective(value) {\n  return !!getDirectiveDef(value);\n}\nfunction isComponent(value) {\n  return !!getComponentDef(value);\n}\nfunction getDependencyTypeForError(type) {\n  if (getComponentDef(type)) return 'component';\n  if (getDirectiveDef(type)) return 'directive';\n  if (getPipeDef$1(type)) return 'pipe';\n  return 'type';\n}\nfunction verifyStandaloneImport(depType, importingType) {\n  if (isForwardRef(depType)) {\n    depType = resolveForwardRef(depType);\n    if (!depType) {\n      throw new Error(`Expected forwardRef function, imported from \"${stringifyForError(importingType)}\", to return a standalone entity or NgModule but got \"${stringifyForError(depType) || depType}\".`);\n    }\n  }\n  if (getNgModuleDef(depType) == null) {\n    const def = getComponentDef(depType) || getDirectiveDef(depType) || getPipeDef$1(depType);\n    if (def != null) {\n      // if a component, directive or pipe is imported make sure that it is standalone\n      if (!def.standalone) {\n        throw new Error(`The \"${stringifyForError(depType)}\" ${getDependencyTypeForError(depType)}, imported from \"${stringifyForError(importingType)}\", is not standalone. Did you forget to add the standalone: true flag?`);\n      }\n    } else {\n      // it can be either a module with provider or an unknown (not annotated) type\n      if (isModuleWithProviders(depType)) {\n        throw new Error(`A module with providers was imported from \"${stringifyForError(importingType)}\". Modules with providers are not supported in standalone components imports.`);\n      } else {\n        throw new Error(`The \"${stringifyForError(depType)}\" type, imported from \"${stringifyForError(importingType)}\", must be a standalone component / directive / pipe or an NgModule. Did you forget to add the required @Component / @Directive / @Pipe or @NgModule annotation?`);\n      }\n    }\n  }\n}\n\n/**\n * Indicates whether to use the runtime dependency tracker for scope calculation in JIT compilation.\n * The value \"false\" means the old code path based on patching scope info into the types will be\n * used.\n *\n * @deprecated For migration purposes only, to be removed soon.\n */\nconst USE_RUNTIME_DEPS_TRACKER_FOR_JIT = true;\n/**\n * An implementation of DepsTrackerApi which will be used for JIT and local compilation.\n */\nclass DepsTracker {\n  constructor() {\n    this.ownerNgModule = new Map();\n    this.ngModulesWithSomeUnresolvedDecls = new Set();\n    this.ngModulesScopeCache = new Map();\n    this.standaloneComponentsScopeCache = new Map();\n  }\n  /**\n   * Attempts to resolve ng module's forward ref declarations as much as possible and add them to\n   * the `ownerNgModule` map. This method normally should be called after the initial parsing when\n   * all the forward refs are resolved (e.g., when trying to render a component)\n   */\n  resolveNgModulesDecls() {\n    if (this.ngModulesWithSomeUnresolvedDecls.size === 0) {\n      return;\n    }\n    for (const moduleType of this.ngModulesWithSomeUnresolvedDecls) {\n      const def = getNgModuleDef(moduleType);\n      if (def?.declarations) {\n        for (const decl of maybeUnwrapFn(def.declarations)) {\n          if (isComponent(decl)) {\n            this.ownerNgModule.set(decl, moduleType);\n          }\n        }\n      }\n    }\n    this.ngModulesWithSomeUnresolvedDecls.clear();\n  }\n  /** @override */\n  getComponentDependencies(type, rawImports) {\n    this.resolveNgModulesDecls();\n    const def = getComponentDef(type);\n    if (def === null) {\n      throw new Error(`Attempting to get component dependencies for a type that is not a component: ${type}`);\n    }\n    if (def.standalone) {\n      const scope = this.getStandaloneComponentScope(type, rawImports);\n      if (scope.compilation.isPoisoned) {\n        return {\n          dependencies: []\n        };\n      }\n      return {\n        dependencies: [...scope.compilation.directives, ...scope.compilation.pipes, ...scope.compilation.ngModules]\n      };\n    } else {\n      if (!this.ownerNgModule.has(type)) {\n        // This component is orphan! No need to handle the error since the component rendering\n        // pipeline (e.g., view_container_ref) will check for this error based on configs.\n        return {\n          dependencies: []\n        };\n      }\n      const scope = this.getNgModuleScope(this.ownerNgModule.get(type));\n      if (scope.compilation.isPoisoned) {\n        return {\n          dependencies: []\n        };\n      }\n      return {\n        dependencies: [...scope.compilation.directives, ...scope.compilation.pipes]\n      };\n    }\n  }\n  /**\n   * @override\n   * This implementation does not make use of param scopeInfo since it assumes the scope info is\n   * already added to the type itself through methods like {@link ɵɵsetNgModuleScope}\n   */\n  registerNgModule(type, scopeInfo) {\n    if (!isNgModule(type)) {\n      throw new Error(`Attempting to register a Type which is not NgModule as NgModule: ${type}`);\n    }\n    // Lazily process the NgModules later when needed.\n    this.ngModulesWithSomeUnresolvedDecls.add(type);\n  }\n  /** @override */\n  clearScopeCacheFor(type) {\n    this.ngModulesScopeCache.delete(type);\n    this.standaloneComponentsScopeCache.delete(type);\n  }\n  /** @override */\n  getNgModuleScope(type) {\n    if (this.ngModulesScopeCache.has(type)) {\n      return this.ngModulesScopeCache.get(type);\n    }\n    const scope = this.computeNgModuleScope(type);\n    this.ngModulesScopeCache.set(type, scope);\n    return scope;\n  }\n  /** Compute NgModule scope afresh. */\n  computeNgModuleScope(type) {\n    const def = getNgModuleDef(type, true);\n    const scope = {\n      exported: {\n        directives: new Set(),\n        pipes: new Set()\n      },\n      compilation: {\n        directives: new Set(),\n        pipes: new Set()\n      }\n    };\n    // Analyzing imports\n    for (const imported of maybeUnwrapFn(def.imports)) {\n      if (isNgModule(imported)) {\n        const importedScope = this.getNgModuleScope(imported);\n        // When this module imports another, the imported module's exported directives and pipes\n        // are added to the compilation scope of this module.\n        addSet(importedScope.exported.directives, scope.compilation.directives);\n        addSet(importedScope.exported.pipes, scope.compilation.pipes);\n      } else if (isStandalone(imported)) {\n        if (isDirective(imported) || isComponent(imported)) {\n          scope.compilation.directives.add(imported);\n        } else if (isPipe(imported)) {\n          scope.compilation.pipes.add(imported);\n        } else {\n          // The standalone thing is neither a component nor a directive nor a pipe ... (what?)\n          throw new RuntimeError(1000 /* RuntimeErrorCode.RUNTIME_DEPS_INVALID_IMPORTED_TYPE */, 'The standalone imported type is neither a component nor a directive nor a pipe');\n        }\n      } else {\n        // The import is neither a module nor a module-with-providers nor a standalone thing. This\n        // is going to be an error. So we short circuit.\n        scope.compilation.isPoisoned = true;\n        break;\n      }\n    }\n    // Analyzing declarations\n    if (!scope.compilation.isPoisoned) {\n      for (const decl of maybeUnwrapFn(def.declarations)) {\n        // Cannot declare another NgModule or a standalone thing\n        if (isNgModule(decl) || isStandalone(decl)) {\n          scope.compilation.isPoisoned = true;\n          break;\n        }\n        if (isPipe(decl)) {\n          scope.compilation.pipes.add(decl);\n        } else {\n          // decl is either a directive or a component. The component may not yet have the ɵcmp due\n          // to async compilation.\n          scope.compilation.directives.add(decl);\n        }\n      }\n    }\n    // Analyzing exports\n    for (const exported of maybeUnwrapFn(def.exports)) {\n      if (isNgModule(exported)) {\n        // When this module exports another, the exported module's exported directives and pipes\n        // are added to both the compilation and exported scopes of this module.\n        const exportedScope = this.getNgModuleScope(exported);\n        // Based on the current logic there is no way to have poisoned exported scope. So no need to\n        // check for it.\n        addSet(exportedScope.exported.directives, scope.exported.directives);\n        addSet(exportedScope.exported.pipes, scope.exported.pipes);\n        // Some test toolings which run in JIT mode depend on this behavior that the exported scope\n        // should also be present in the compilation scope, even though AoT does not support this\n        // and it is also in odds with NgModule metadata definitions. Without this some tests in\n        // Google will fail.\n        addSet(exportedScope.exported.directives, scope.compilation.directives);\n        addSet(exportedScope.exported.pipes, scope.compilation.pipes);\n      } else if (isPipe(exported)) {\n        scope.exported.pipes.add(exported);\n      } else {\n        scope.exported.directives.add(exported);\n      }\n    }\n    return scope;\n  }\n  /** @override */\n  getStandaloneComponentScope(type, rawImports) {\n    if (this.standaloneComponentsScopeCache.has(type)) {\n      return this.standaloneComponentsScopeCache.get(type);\n    }\n    const ans = this.computeStandaloneComponentScope(type, rawImports);\n    this.standaloneComponentsScopeCache.set(type, ans);\n    return ans;\n  }\n  computeStandaloneComponentScope(type, rawImports) {\n    const ans = {\n      compilation: {\n        // Standalone components are always able to self-reference.\n        directives: new Set([type]),\n        pipes: new Set(),\n        ngModules: new Set()\n      }\n    };\n    for (const rawImport of flatten(rawImports ?? [])) {\n      const imported = resolveForwardRef(rawImport);\n      try {\n        verifyStandaloneImport(imported, type);\n      } catch (e) {\n        // Short-circuit if an import is not valid\n        ans.compilation.isPoisoned = true;\n        return ans;\n      }\n      if (isNgModule(imported)) {\n        ans.compilation.ngModules.add(imported);\n        const importedScope = this.getNgModuleScope(imported);\n        // Short-circuit if an imported NgModule has corrupted exported scope.\n        if (importedScope.exported.isPoisoned) {\n          ans.compilation.isPoisoned = true;\n          return ans;\n        }\n        addSet(importedScope.exported.directives, ans.compilation.directives);\n        addSet(importedScope.exported.pipes, ans.compilation.pipes);\n      } else if (isPipe(imported)) {\n        ans.compilation.pipes.add(imported);\n      } else if (isDirective(imported) || isComponent(imported)) {\n        ans.compilation.directives.add(imported);\n      } else {\n        // The imported thing is not module/pipe/directive/component, so we error and short-circuit\n        // here\n        ans.compilation.isPoisoned = true;\n        return ans;\n      }\n    }\n    return ans;\n  }\n  /** @override */\n  isOrphanComponent(cmp) {\n    const def = getComponentDef(cmp);\n    if (!def || def.standalone) {\n      return false;\n    }\n    this.resolveNgModulesDecls();\n    return !this.ownerNgModule.has(cmp);\n  }\n}\nfunction addSet(sourceSet, targetSet) {\n  for (const m of sourceSet) {\n    targetSet.add(m);\n  }\n}\n/** The deps tracker to be used in the current Angular app in dev mode. */\nconst depsTracker = /*#__PURE__*/new DepsTracker();\nconst TEST_ONLY = {\n  DepsTracker\n};\n\n/**\n * Compute the static styling (class/style) from `TAttributes`.\n *\n * This function should be called during `firstCreatePass` only.\n *\n * @param tNode The `TNode` into which the styling information should be loaded.\n * @param attrs `TAttributes` containing the styling information.\n * @param writeToHost Where should the resulting static styles be written?\n *   - `false` Write to `TNode.stylesWithoutHost` / `TNode.classesWithoutHost`\n *   - `true` Write to `TNode.styles` / `TNode.classes`\n */\nfunction computeStaticStyling(tNode, attrs, writeToHost) {\n  ngDevMode && assertFirstCreatePass(getTView(), 'Expecting to be called in first template pass only');\n  let styles = writeToHost ? tNode.styles : null;\n  let classes = writeToHost ? tNode.classes : null;\n  let mode = 0;\n  if (attrs !== null) {\n    for (let i = 0; i < attrs.length; i++) {\n      const value = attrs[i];\n      if (typeof value === 'number') {\n        mode = value;\n      } else if (mode == 1 /* AttributeMarker.Classes */) {\n        classes = concatStringsWithSpace(classes, value);\n      } else if (mode == 2 /* AttributeMarker.Styles */) {\n        const style = value;\n        const styleValue = attrs[++i];\n        styles = concatStringsWithSpace(styles, style + ': ' + styleValue + ';');\n      }\n    }\n  }\n  writeToHost ? tNode.styles = styles : tNode.stylesWithoutHost = styles;\n  writeToHost ? tNode.classes = classes : tNode.classesWithoutHost = classes;\n}\nclass ComponentFactoryResolver extends ComponentFactoryResolver$1 {\n  /**\n   * @param ngModule The NgModuleRef to which all resolved factories are bound.\n   */\n  constructor(ngModule) {\n    super();\n    this.ngModule = ngModule;\n  }\n  resolveComponentFactory(component) {\n    ngDevMode && assertComponentType(component);\n    const componentDef = getComponentDef(component);\n    return new ComponentFactory(componentDef, this.ngModule);\n  }\n}\nfunction toRefArray(map) {\n  const array = [];\n  for (const publicName in map) {\n    if (!map.hasOwnProperty(publicName)) {\n      continue;\n    }\n    const value = map[publicName];\n    if (value === undefined) {\n      continue;\n    }\n    array.push({\n      propName: Array.isArray(value) ? value[0] : value,\n      templateName: publicName\n    });\n  }\n  return array;\n}\nfunction getNamespace(elementName) {\n  const name = elementName.toLowerCase();\n  return name === 'svg' ? SVG_NAMESPACE : name === 'math' ? MATH_ML_NAMESPACE : null;\n}\n/**\n * Injector that looks up a value using a specific injector, before falling back to the module\n * injector. Used primarily when creating components or embedded views dynamically.\n */\nclass ChainedInjector {\n  constructor(injector, parentInjector) {\n    this.injector = injector;\n    this.parentInjector = parentInjector;\n  }\n  get(token, notFoundValue, flags) {\n    flags = convertToBitFlags(flags);\n    const value = this.injector.get(token, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, flags);\n    if (value !== NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR || notFoundValue === NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR) {\n      // Return the value from the root element injector when\n      // - it provides it\n      //   (value !== NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR)\n      // - the module injector should not be checked\n      //   (notFoundValue === NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR)\n      return value;\n    }\n    return this.parentInjector.get(token, notFoundValue, flags);\n  }\n}\n/**\n * ComponentFactory interface implementation.\n */\nclass ComponentFactory extends ComponentFactory$1 {\n  get inputs() {\n    const componentDef = this.componentDef;\n    const inputTransforms = componentDef.inputTransforms;\n    const refArray = toRefArray(componentDef.inputs);\n    if (inputTransforms !== null) {\n      for (const input of refArray) {\n        if (inputTransforms.hasOwnProperty(input.propName)) {\n          input.transform = inputTransforms[input.propName];\n        }\n      }\n    }\n    return refArray;\n  }\n  get outputs() {\n    return toRefArray(this.componentDef.outputs);\n  }\n  /**\n   * @param componentDef The component definition.\n   * @param ngModule The NgModuleRef to which the factory is bound.\n   */\n  constructor(componentDef, ngModule) {\n    super();\n    this.componentDef = componentDef;\n    this.ngModule = ngModule;\n    this.componentType = componentDef.type;\n    this.selector = stringifyCSSSelectorList(componentDef.selectors);\n    this.ngContentSelectors = componentDef.ngContentSelectors ? componentDef.ngContentSelectors : [];\n    this.isBoundToModule = !!ngModule;\n  }\n  create(injector, projectableNodes, rootSelectorOrNode, environmentInjector) {\n    const prevConsumer = setActiveConsumer$1(null);\n    try {\n      // Check if the component is orphan\n      if (ngDevMode && (typeof ngJitMode === 'undefined' || ngJitMode) && this.componentDef.debugInfo?.forbidOrphanRendering) {\n        if (depsTracker.isOrphanComponent(this.componentType)) {\n          throw new RuntimeError(1001 /* RuntimeErrorCode.RUNTIME_DEPS_ORPHAN_COMPONENT */, `Orphan component found! Trying to render the component ${debugStringifyTypeForError(this.componentType)} without first loading the NgModule that declares it. It is recommended to make this component standalone in order to avoid this error. If this is not possible now, import the component's NgModule in the appropriate NgModule, or the standalone component in which you are trying to render this component. If this is a lazy import, load the NgModule lazily as well and use its module injector.`);\n        }\n      }\n      environmentInjector = environmentInjector || this.ngModule;\n      let realEnvironmentInjector = environmentInjector instanceof EnvironmentInjector ? environmentInjector : environmentInjector?.injector;\n      if (realEnvironmentInjector && this.componentDef.getStandaloneInjector !== null) {\n        realEnvironmentInjector = this.componentDef.getStandaloneInjector(realEnvironmentInjector) || realEnvironmentInjector;\n      }\n      const rootViewInjector = realEnvironmentInjector ? new ChainedInjector(injector, realEnvironmentInjector) : injector;\n      const rendererFactory = rootViewInjector.get(RendererFactory2, null);\n      if (rendererFactory === null) {\n        throw new RuntimeError(407 /* RuntimeErrorCode.RENDERER_NOT_FOUND */, ngDevMode && 'Angular was not able to inject a renderer (RendererFactory2). ' + 'Likely this is due to a broken DI hierarchy. ' + 'Make sure that any injector used to create this component has a correct parent.');\n      }\n      const sanitizer = rootViewInjector.get(Sanitizer, null);\n      const afterRenderEventManager = rootViewInjector.get(AfterRenderEventManager, null);\n      const changeDetectionScheduler = rootViewInjector.get(ChangeDetectionScheduler, null);\n      const environment = {\n        rendererFactory,\n        sanitizer,\n        // We don't use inline effects (yet).\n        inlineEffectRunner: null,\n        afterRenderEventManager,\n        changeDetectionScheduler\n      };\n      const hostRenderer = rendererFactory.createRenderer(null, this.componentDef);\n      // Determine a tag name used for creating host elements when this component is created\n      // dynamically. Default to 'div' if this component did not specify any tag name in its\n      // selector.\n      const elementName = this.componentDef.selectors[0][0] || 'div';\n      const hostRNode = rootSelectorOrNode ? locateHostElement(hostRenderer, rootSelectorOrNode, this.componentDef.encapsulation, rootViewInjector) : createElementNode(hostRenderer, elementName, getNamespace(elementName));\n      let rootFlags = 512 /* LViewFlags.IsRoot */;\n      if (this.componentDef.signals) {\n        rootFlags |= 4096 /* LViewFlags.SignalView */;\n      } else if (!this.componentDef.onPush) {\n        rootFlags |= 16 /* LViewFlags.CheckAlways */;\n      }\n      let hydrationInfo = null;\n      if (hostRNode !== null) {\n        hydrationInfo = retrieveHydrationInfo(hostRNode, rootViewInjector, true /* isRootView */);\n      }\n      // Create the root view. Uses empty TView and ContentTemplate.\n      const rootTView = createTView(0 /* TViewType.Root */, null, null, 1, 0, null, null, null, null, null, null);\n      const rootLView = createLView(null, rootTView, null, rootFlags, null, null, environment, hostRenderer, rootViewInjector, null, hydrationInfo);\n      // rootView is the parent when bootstrapping\n      // TODO(misko): it looks like we are entering view here but we don't really need to as\n      // `renderView` does that. However as the code is written it is needed because\n      // `createRootComponentView` and `createRootComponent` both read global state. Fixing those\n      // issues would allow us to drop this.\n      enterView(rootLView);\n      let component;\n      let tElementNode;\n      try {\n        const rootComponentDef = this.componentDef;\n        let rootDirectives;\n        let hostDirectiveDefs = null;\n        if (rootComponentDef.findHostDirectiveDefs) {\n          rootDirectives = [];\n          hostDirectiveDefs = new Map();\n          rootComponentDef.findHostDirectiveDefs(rootComponentDef, rootDirectives, hostDirectiveDefs);\n          rootDirectives.push(rootComponentDef);\n          ngDevMode && assertNoDuplicateDirectives(rootDirectives);\n        } else {\n          rootDirectives = [rootComponentDef];\n        }\n        const hostTNode = createRootComponentTNode(rootLView, hostRNode);\n        const componentView = createRootComponentView(hostTNode, hostRNode, rootComponentDef, rootDirectives, rootLView, environment, hostRenderer);\n        tElementNode = getTNode(rootTView, HEADER_OFFSET);\n        // TODO(crisbeto): in practice `hostRNode` should always be defined, but there are some\n        // tests where the renderer is mocked out and `undefined` is returned. We should update the\n        // tests so that this check can be removed.\n        if (hostRNode) {\n          setRootNodeAttributes(hostRenderer, rootComponentDef, hostRNode, rootSelectorOrNode);\n        }\n        if (projectableNodes !== undefined) {\n          projectNodes(tElementNode, this.ngContentSelectors, projectableNodes);\n        }\n        // TODO: should LifecycleHooksFeature and other host features be generated by the compiler\n        // and executed here? Angular 5 reference: https://stackblitz.com/edit/lifecycle-hooks-vcref\n        component = createRootComponent(componentView, rootComponentDef, rootDirectives, hostDirectiveDefs, rootLView, [LifecycleHooksFeature]);\n        renderView(rootTView, rootLView, null);\n      } finally {\n        leaveView();\n      }\n      return new ComponentRef(this.componentType, component, createElementRef(tElementNode, rootLView), rootLView, tElementNode);\n    } finally {\n      setActiveConsumer$1(prevConsumer);\n    }\n  }\n}\n/**\n * Represents an instance of a Component created via a {@link ComponentFactory}.\n *\n * `ComponentRef` provides access to the Component Instance as well other objects related to this\n * Component Instance and allows you to destroy the Component Instance via the {@link #destroy}\n * method.\n *\n */\nclass ComponentRef extends ComponentRef$1 {\n  constructor(componentType, instance, location, _rootLView, _tNode) {\n    super();\n    this.location = location;\n    this._rootLView = _rootLView;\n    this._tNode = _tNode;\n    this.previousInputValues = null;\n    this.instance = instance;\n    this.hostView = this.changeDetectorRef = new ViewRef$1(_rootLView, undefined, /* _cdRefInjectingView */false);\n    this.componentType = componentType;\n  }\n  setInput(name, value) {\n    const inputData = this._tNode.inputs;\n    let dataValue;\n    if (inputData !== null && (dataValue = inputData[name])) {\n      this.previousInputValues ??= new Map();\n      // Do not set the input if it is the same as the last value\n      // This behavior matches `bindingUpdated` when binding inputs in templates.\n      if (this.previousInputValues.has(name) && Object.is(this.previousInputValues.get(name), value)) {\n        return;\n      }\n      const lView = this._rootLView;\n      setInputsForProperty(lView[TVIEW], lView, dataValue, name, value);\n      this.previousInputValues.set(name, value);\n      const childComponentLView = getComponentLViewByIndex(this._tNode.index, lView);\n      markViewDirty(childComponentLView);\n    } else {\n      if (ngDevMode) {\n        const cmpNameForError = stringifyForError(this.componentType);\n        let message = `Can't set value of the '${name}' input on the '${cmpNameForError}' component. `;\n        message += `Make sure that the '${name}' property is annotated with @Input() or a mapped @Input('${name}') exists.`;\n        reportUnknownPropertyError(message);\n      }\n    }\n  }\n  get injector() {\n    return new NodeInjector(this._tNode, this._rootLView);\n  }\n  destroy() {\n    this.hostView.destroy();\n  }\n  onDestroy(callback) {\n    this.hostView.onDestroy(callback);\n  }\n}\n/** Creates a TNode that can be used to instantiate a root component. */\nfunction createRootComponentTNode(lView, rNode) {\n  const tView = lView[TVIEW];\n  const index = HEADER_OFFSET;\n  ngDevMode && assertIndexInRange(lView, index);\n  lView[index] = rNode;\n  // '#host' is added here as we don't know the real host DOM name (we don't want to read it) and at\n  // the same time we want to communicate the debug `TNode` that this is a special `TNode`\n  // representing a host element.\n  return getOrCreateTNode(tView, index, 2 /* TNodeType.Element */, '#host', null);\n}\n/**\n * Creates the root component view and the root component node.\n *\n * @param hostRNode Render host element.\n * @param rootComponentDef ComponentDef\n * @param rootView The parent view where the host node is stored\n * @param rendererFactory Factory to be used for creating child renderers.\n * @param hostRenderer The current renderer\n * @param sanitizer The sanitizer, if provided\n *\n * @returns Component view created\n */\nfunction createRootComponentView(tNode, hostRNode, rootComponentDef, rootDirectives, rootView, environment, hostRenderer) {\n  const tView = rootView[TVIEW];\n  applyRootComponentStyling(rootDirectives, tNode, hostRNode, hostRenderer);\n  // Hydration info is on the host element and needs to be retrieved\n  // and passed to the component LView.\n  let hydrationInfo = null;\n  if (hostRNode !== null) {\n    hydrationInfo = retrieveHydrationInfo(hostRNode, rootView[INJECTOR]);\n  }\n  const viewRenderer = environment.rendererFactory.createRenderer(hostRNode, rootComponentDef);\n  let lViewFlags = 16 /* LViewFlags.CheckAlways */;\n  if (rootComponentDef.signals) {\n    lViewFlags = 4096 /* LViewFlags.SignalView */;\n  } else if (rootComponentDef.onPush) {\n    lViewFlags = 64 /* LViewFlags.Dirty */;\n  }\n  const componentView = createLView(rootView, getOrCreateComponentTView(rootComponentDef), null, lViewFlags, rootView[tNode.index], tNode, environment, viewRenderer, null, null, hydrationInfo);\n  if (tView.firstCreatePass) {\n    markAsComponentHost(tView, tNode, rootDirectives.length - 1);\n  }\n  addToViewTree(rootView, componentView);\n  // Store component view at node index, with node as the HOST\n  return rootView[tNode.index] = componentView;\n}\n/** Sets up the styling information on a root component. */\nfunction applyRootComponentStyling(rootDirectives, tNode, rNode, hostRenderer) {\n  for (const def of rootDirectives) {\n    tNode.mergedAttrs = mergeHostAttrs(tNode.mergedAttrs, def.hostAttrs);\n  }\n  if (tNode.mergedAttrs !== null) {\n    computeStaticStyling(tNode, tNode.mergedAttrs, true);\n    if (rNode !== null) {\n      setupStaticAttributes(hostRenderer, rNode, tNode);\n    }\n  }\n}\n/**\n * Creates a root component and sets it up with features and host bindings.Shared by\n * renderComponent() and ViewContainerRef.createComponent().\n */\nfunction createRootComponent(componentView, rootComponentDef, rootDirectives, hostDirectiveDefs, rootLView, hostFeatures) {\n  const rootTNode = getCurrentTNode();\n  ngDevMode && assertDefined(rootTNode, 'tNode should have been already created');\n  const tView = rootLView[TVIEW];\n  const native = getNativeByTNode(rootTNode, rootLView);\n  initializeDirectives(tView, rootLView, rootTNode, rootDirectives, null, hostDirectiveDefs);\n  for (let i = 0; i < rootDirectives.length; i++) {\n    const directiveIndex = rootTNode.directiveStart + i;\n    const directiveInstance = getNodeInjectable(rootLView, tView, directiveIndex, rootTNode);\n    attachPatchData(directiveInstance, rootLView);\n  }\n  invokeDirectivesHostBindings(tView, rootLView, rootTNode);\n  if (native) {\n    attachPatchData(native, rootLView);\n  }\n  // We're guaranteed for the `componentOffset` to be positive here\n  // since a root component always matches a component def.\n  ngDevMode && assertGreaterThan(rootTNode.componentOffset, -1, 'componentOffset must be great than -1');\n  const component = getNodeInjectable(rootLView, tView, rootTNode.directiveStart + rootTNode.componentOffset, rootTNode);\n  componentView[CONTEXT] = rootLView[CONTEXT] = component;\n  if (hostFeatures !== null) {\n    for (const feature of hostFeatures) {\n      feature(component, rootComponentDef);\n    }\n  }\n  // We want to generate an empty QueryList for root content queries for backwards\n  // compatibility with ViewEngine.\n  executeContentQueries(tView, rootTNode, rootLView);\n  return component;\n}\n/** Sets the static attributes on a root component. */\nfunction setRootNodeAttributes(hostRenderer, componentDef, hostRNode, rootSelectorOrNode) {\n  if (rootSelectorOrNode) {\n    // The placeholder will be replaced with the actual version at build time.\n    setUpAttributes(hostRenderer, hostRNode, ['ng-version', '17.3.11']);\n  } else {\n    // If host element is created as a part of this function call (i.e. `rootSelectorOrNode`\n    // is not defined), also apply attributes and classes extracted from component selector.\n    // Extract attributes and classes from the first selector only to match VE behavior.\n    const {\n      attrs,\n      classes\n    } = extractAttrsAndClassesFromSelector(componentDef.selectors[0]);\n    if (attrs) {\n      setUpAttributes(hostRenderer, hostRNode, attrs);\n    }\n    if (classes && classes.length > 0) {\n      writeDirectClass(hostRenderer, hostRNode, classes.join(' '));\n    }\n  }\n}\n/** Projects the `projectableNodes` that were specified when creating a root component. */\nfunction projectNodes(tNode, ngContentSelectors, projectableNodes) {\n  const projection = tNode.projection = [];\n  for (let i = 0; i < ngContentSelectors.length; i++) {\n    const nodesforSlot = projectableNodes[i];\n    // Projectable nodes can be passed as array of arrays or an array of iterables (ngUpgrade\n    // case). Here we do normalize passed data structure to be an array of arrays to avoid\n    // complex checks down the line.\n    // We also normalize the length of the passed in projectable nodes (to match the number of\n    // <ng-container> slots defined by a component).\n    projection.push(nodesforSlot != null ? Array.from(nodesforSlot) : null);\n  }\n}\n/**\n * Used to enable lifecycle hooks on the root component.\n *\n * Include this feature when calling `renderComponent` if the root component\n * you are rendering has lifecycle hooks defined. Otherwise, the hooks won't\n * be called properly.\n *\n * Example:\n *\n * ```\n * renderComponent(AppComponent, {hostFeatures: [LifecycleHooksFeature]});\n * ```\n */\nfunction LifecycleHooksFeature() {\n  const tNode = getCurrentTNode();\n  ngDevMode && assertDefined(tNode, 'TNode is required');\n  registerPostOrderHooks(getLView()[TVIEW], tNode);\n}\n\n/**\n * Represents a container where one or more views can be attached to a component.\n *\n * Can contain *host views* (created by instantiating a\n * component with the `createComponent()` method), and *embedded views*\n * (created by instantiating a `TemplateRef` with the `createEmbeddedView()` method).\n *\n * A view container instance can contain other view containers,\n * creating a [view hierarchy](guide/glossary#view-hierarchy).\n *\n * @usageNotes\n *\n * The example below demonstrates how the `createComponent` function can be used\n * to create an instance of a ComponentRef dynamically and attach it to an ApplicationRef,\n * so that it gets included into change detection cycles.\n *\n * Note: the example uses standalone components, but the function can also be used for\n * non-standalone components (declared in an NgModule) as well.\n *\n * ```typescript\n * @Component({\n *   standalone: true,\n *   selector: 'dynamic',\n *   template: `<span>This is a content of a dynamic component.</span>`,\n * })\n * class DynamicComponent {\n *   vcr = inject(ViewContainerRef);\n * }\n *\n * @Component({\n *   standalone: true,\n *   selector: 'app',\n *   template: `<main>Hi! This is the main content.</main>`,\n * })\n * class AppComponent {\n *   vcr = inject(ViewContainerRef);\n *\n *   ngAfterViewInit() {\n *     const compRef = this.vcr.createComponent(DynamicComponent);\n *     compRef.changeDetectorRef.detectChanges();\n *   }\n * }\n * ```\n *\n * @see {@link ComponentRef}\n * @see {@link EmbeddedViewRef}\n *\n * @publicApi\n */\nlet ViewContainerRef = /*#__PURE__*/(() => {\n  class ViewContainerRef {\n    /**\n     * @internal\n     * @nocollapse\n     */\n    static {\n      this.__NG_ELEMENT_ID__ = injectViewContainerRef;\n    }\n  }\n  return ViewContainerRef;\n})();\n/**\n * Creates a ViewContainerRef and stores it on the injector. Or, if the ViewContainerRef\n * already exists, retrieves the existing ViewContainerRef.\n *\n * @returns The ViewContainerRef instance to use\n */\nfunction injectViewContainerRef() {\n  const previousTNode = getCurrentTNode();\n  return createContainerRef(previousTNode, getLView());\n}\nconst VE_ViewContainerRef = ViewContainerRef;\n// TODO(alxhub): cleaning up this indirection triggers a subtle bug in Closure in g3. Once the fix\n// for that lands, this can be cleaned up.\nconst R3ViewContainerRef = class ViewContainerRef extends VE_ViewContainerRef {\n  constructor(_lContainer, _hostTNode, _hostLView) {\n    super();\n    this._lContainer = _lContainer;\n    this._hostTNode = _hostTNode;\n    this._hostLView = _hostLView;\n  }\n  get element() {\n    return createElementRef(this._hostTNode, this._hostLView);\n  }\n  get injector() {\n    return new NodeInjector(this._hostTNode, this._hostLView);\n  }\n  /** @deprecated No replacement */\n  get parentInjector() {\n    const parentLocation = getParentInjectorLocation(this._hostTNode, this._hostLView);\n    if (hasParentInjector(parentLocation)) {\n      const parentView = getParentInjectorView(parentLocation, this._hostLView);\n      const injectorIndex = getParentInjectorIndex(parentLocation);\n      ngDevMode && assertNodeInjector(parentView, injectorIndex);\n      const parentTNode = parentView[TVIEW].data[injectorIndex + 8 /* NodeInjectorOffset.TNODE */];\n      return new NodeInjector(parentTNode, parentView);\n    } else {\n      return new NodeInjector(null, this._hostLView);\n    }\n  }\n  clear() {\n    while (this.length > 0) {\n      this.remove(this.length - 1);\n    }\n  }\n  get(index) {\n    const viewRefs = getViewRefs(this._lContainer);\n    return viewRefs !== null && viewRefs[index] || null;\n  }\n  get length() {\n    return this._lContainer.length - CONTAINER_HEADER_OFFSET;\n  }\n  createEmbeddedView(templateRef, context, indexOrOptions) {\n    let index;\n    let injector;\n    if (typeof indexOrOptions === 'number') {\n      index = indexOrOptions;\n    } else if (indexOrOptions != null) {\n      index = indexOrOptions.index;\n      injector = indexOrOptions.injector;\n    }\n    const dehydratedView = findMatchingDehydratedView(this._lContainer, templateRef.ssrId);\n    const viewRef = templateRef.createEmbeddedViewImpl(context || {}, injector, dehydratedView);\n    this.insertImpl(viewRef, index, shouldAddViewToDom(this._hostTNode, dehydratedView));\n    return viewRef;\n  }\n  createComponent(componentFactoryOrType, indexOrOptions, injector, projectableNodes, environmentInjector) {\n    const isComponentFactory = componentFactoryOrType && !isType(componentFactoryOrType);\n    let index;\n    // This function supports 2 signatures and we need to handle options correctly for both:\n    //   1. When first argument is a Component type. This signature also requires extra\n    //      options to be provided as object (more ergonomic option).\n    //   2. First argument is a Component factory. In this case extra options are represented as\n    //      positional arguments. This signature is less ergonomic and will be deprecated.\n    if (isComponentFactory) {\n      if (ngDevMode) {\n        assertEqual(typeof indexOrOptions !== 'object', true, 'It looks like Component factory was provided as the first argument ' + 'and an options object as the second argument. This combination of arguments ' + 'is incompatible. You can either change the first argument to provide Component ' + 'type or change the second argument to be a number (representing an index at ' + 'which to insert the new component\\'s host view into this container)');\n      }\n      index = indexOrOptions;\n    } else {\n      if (ngDevMode) {\n        assertDefined(getComponentDef(componentFactoryOrType), `Provided Component class doesn't contain Component definition. ` + `Please check whether provided class has @Component decorator.`);\n        assertEqual(typeof indexOrOptions !== 'number', true, 'It looks like Component type was provided as the first argument ' + 'and a number (representing an index at which to insert the new component\\'s ' + 'host view into this container as the second argument. This combination of arguments ' + 'is incompatible. Please use an object as the second argument instead.');\n      }\n      const options = indexOrOptions || {};\n      if (ngDevMode && options.environmentInjector && options.ngModuleRef) {\n        throwError(`Cannot pass both environmentInjector and ngModuleRef options to createComponent().`);\n      }\n      index = options.index;\n      injector = options.injector;\n      projectableNodes = options.projectableNodes;\n      environmentInjector = options.environmentInjector || options.ngModuleRef;\n    }\n    const componentFactory = isComponentFactory ? componentFactoryOrType : new ComponentFactory(getComponentDef(componentFactoryOrType));\n    const contextInjector = injector || this.parentInjector;\n    // If an `NgModuleRef` is not provided explicitly, try retrieving it from the DI tree.\n    if (!environmentInjector && componentFactory.ngModule == null) {\n      // For the `ComponentFactory` case, entering this logic is very unlikely, since we expect that\n      // an instance of a `ComponentFactory`, resolved via `ComponentFactoryResolver` would have an\n      // `ngModule` field. This is possible in some test scenarios and potentially in some JIT-based\n      // use-cases. For the `ComponentFactory` case we preserve backwards-compatibility and try\n      // using a provided injector first, then fall back to the parent injector of this\n      // `ViewContainerRef` instance.\n      //\n      // For the factory-less case, it's critical to establish a connection with the module\n      // injector tree (by retrieving an instance of an `NgModuleRef` and accessing its injector),\n      // so that a component can use DI tokens provided in MgModules. For this reason, we can not\n      // rely on the provided injector, since it might be detached from the DI tree (for example, if\n      // it was created via `Injector.create` without specifying a parent injector, or if an\n      // injector is retrieved from an `NgModuleRef` created via `createNgModule` using an\n      // NgModule outside of a module tree). Instead, we always use `ViewContainerRef`'s parent\n      // injector, which is normally connected to the DI tree, which includes module injector\n      // subtree.\n      const _injector = isComponentFactory ? contextInjector : this.parentInjector;\n      // DO NOT REFACTOR. The code here used to have a `injector.get(NgModuleRef, null) ||\n      // undefined` expression which seems to cause internal google apps to fail. This is documented\n      // in the following internal bug issue: go/b/142967802\n      const result = _injector.get(EnvironmentInjector, null);\n      if (result) {\n        environmentInjector = result;\n      }\n    }\n    const componentDef = getComponentDef(componentFactory.componentType ?? {});\n    const dehydratedView = findMatchingDehydratedView(this._lContainer, componentDef?.id ?? null);\n    const rNode = dehydratedView?.firstChild ?? null;\n    const componentRef = componentFactory.create(contextInjector, projectableNodes, rNode, environmentInjector);\n    this.insertImpl(componentRef.hostView, index, shouldAddViewToDom(this._hostTNode, dehydratedView));\n    return componentRef;\n  }\n  insert(viewRef, index) {\n    return this.insertImpl(viewRef, index, true);\n  }\n  insertImpl(viewRef, index, addToDOM) {\n    const lView = viewRef._lView;\n    if (ngDevMode && viewRef.destroyed) {\n      throw new Error('Cannot insert a destroyed View in a ViewContainer!');\n    }\n    if (viewAttachedToContainer(lView)) {\n      // If view is already attached, detach it first so we clean up references appropriately.\n      const prevIdx = this.indexOf(viewRef);\n      // A view might be attached either to this or a different container. The `prevIdx` for\n      // those cases will be:\n      // equal to -1 for views attached to this ViewContainerRef\n      // >= 0 for views attached to a different ViewContainerRef\n      if (prevIdx !== -1) {\n        this.detach(prevIdx);\n      } else {\n        const prevLContainer = lView[PARENT];\n        ngDevMode && assertEqual(isLContainer(prevLContainer), true, 'An attached view should have its PARENT point to a container.');\n        // We need to re-create a R3ViewContainerRef instance since those are not stored on\n        // LView (nor anywhere else).\n        const prevVCRef = new R3ViewContainerRef(prevLContainer, prevLContainer[T_HOST], prevLContainer[PARENT]);\n        prevVCRef.detach(prevVCRef.indexOf(viewRef));\n      }\n    }\n    // Logical operation of adding `LView` to `LContainer`\n    const adjustedIdx = this._adjustIndex(index);\n    const lContainer = this._lContainer;\n    addLViewToLContainer(lContainer, lView, adjustedIdx, addToDOM);\n    viewRef.attachToViewContainerRef();\n    addToArray(getOrCreateViewRefs(lContainer), adjustedIdx, viewRef);\n    return viewRef;\n  }\n  move(viewRef, newIndex) {\n    if (ngDevMode && viewRef.destroyed) {\n      throw new Error('Cannot move a destroyed View in a ViewContainer!');\n    }\n    return this.insert(viewRef, newIndex);\n  }\n  indexOf(viewRef) {\n    const viewRefsArr = getViewRefs(this._lContainer);\n    return viewRefsArr !== null ? viewRefsArr.indexOf(viewRef) : -1;\n  }\n  remove(index) {\n    const adjustedIdx = this._adjustIndex(index, -1);\n    const detachedView = detachView(this._lContainer, adjustedIdx);\n    if (detachedView) {\n      // Before destroying the view, remove it from the container's array of `ViewRef`s.\n      // This ensures the view container length is updated before calling\n      // `destroyLView`, which could recursively call view container methods that\n      // rely on an accurate container length.\n      // (e.g. a method on this view container being called by a child directive's OnDestroy\n      // lifecycle hook)\n      removeFromArray(getOrCreateViewRefs(this._lContainer), adjustedIdx);\n      destroyLView(detachedView[TVIEW], detachedView);\n    }\n  }\n  detach(index) {\n    const adjustedIdx = this._adjustIndex(index, -1);\n    const view = detachView(this._lContainer, adjustedIdx);\n    const wasDetached = view && removeFromArray(getOrCreateViewRefs(this._lContainer), adjustedIdx) != null;\n    return wasDetached ? new ViewRef$1(view) : null;\n  }\n  _adjustIndex(index, shift = 0) {\n    if (index == null) {\n      return this.length + shift;\n    }\n    if (ngDevMode) {\n      assertGreaterThan(index, -1, `ViewRef index must be positive, got ${index}`);\n      // +1 because it's legal to insert at the end.\n      assertLessThan(index, this.length + 1 + shift, 'index');\n    }\n    return index;\n  }\n};\nfunction getViewRefs(lContainer) {\n  return lContainer[VIEW_REFS];\n}\nfunction getOrCreateViewRefs(lContainer) {\n  return lContainer[VIEW_REFS] || (lContainer[VIEW_REFS] = []);\n}\n/**\n * Creates a ViewContainerRef and stores it on the injector.\n *\n * @param hostTNode The node that is requesting a ViewContainerRef\n * @param hostLView The view to which the node belongs\n * @returns The ViewContainerRef instance to use\n */\nfunction createContainerRef(hostTNode, hostLView) {\n  ngDevMode && assertTNodeType(hostTNode, 12 /* TNodeType.AnyContainer */ | 3 /* TNodeType.AnyRNode */);\n  let lContainer;\n  const slotValue = hostLView[hostTNode.index];\n  if (isLContainer(slotValue)) {\n    // If the host is a container, we don't need to create a new LContainer\n    lContainer = slotValue;\n  } else {\n    // An LContainer anchor can not be `null`, but we set it here temporarily\n    // and update to the actual value later in this function (see\n    // `_locateOrCreateAnchorNode`).\n    lContainer = createLContainer(slotValue, hostLView, null, hostTNode);\n    hostLView[hostTNode.index] = lContainer;\n    addToViewTree(hostLView, lContainer);\n  }\n  _locateOrCreateAnchorNode(lContainer, hostLView, hostTNode, slotValue);\n  return new R3ViewContainerRef(lContainer, hostTNode, hostLView);\n}\n/**\n * Creates and inserts a comment node that acts as an anchor for a view container.\n *\n * If the host is a regular element, we have to insert a comment node manually which will\n * be used as an anchor when inserting elements. In this specific case we use low-level DOM\n * manipulation to insert it.\n */\nfunction insertAnchorNode(hostLView, hostTNode) {\n  const renderer = hostLView[RENDERER];\n  ngDevMode && ngDevMode.rendererCreateComment++;\n  const commentNode = renderer.createComment(ngDevMode ? 'container' : '');\n  const hostNative = getNativeByTNode(hostTNode, hostLView);\n  const parentOfHostNative = nativeParentNode(renderer, hostNative);\n  nativeInsertBefore(renderer, parentOfHostNative, commentNode, nativeNextSibling(renderer, hostNative), false);\n  return commentNode;\n}\nlet _locateOrCreateAnchorNode = createAnchorNode;\nlet _populateDehydratedViewsInLContainer = () => false; // noop by default\n/**\n * Looks up dehydrated views that belong to a given LContainer and populates\n * this information into the `LContainer[DEHYDRATED_VIEWS]` slot. When running\n * in client-only mode, this function is a noop.\n *\n * @param lContainer LContainer that should be populated.\n * @param tNode Corresponding TNode.\n * @param hostLView LView that hosts LContainer.\n * @returns a boolean flag that indicates whether a populating operation\n *   was successful. The operation might be unsuccessful in case is has completed\n *   previously, we are rendering in client-only mode or this content is located\n *   in a skip hydration section.\n */\nfunction populateDehydratedViewsInLContainer(lContainer, tNode, hostLView) {\n  return _populateDehydratedViewsInLContainer(lContainer, tNode, hostLView);\n}\n/**\n * Regular creation mode: an anchor is created and\n * assigned to the `lContainer[NATIVE]` slot.\n */\nfunction createAnchorNode(lContainer, hostLView, hostTNode, slotValue) {\n  // We already have a native element (anchor) set, return.\n  if (lContainer[NATIVE]) return;\n  let commentNode;\n  // If the host is an element container, the native host element is guaranteed to be a\n  // comment and we can reuse that comment as anchor element for the new LContainer.\n  // The comment node in question is already part of the DOM structure so we don't need to append\n  // it again.\n  if (hostTNode.type & 8 /* TNodeType.ElementContainer */) {\n    commentNode = unwrapRNode(slotValue);\n  } else {\n    commentNode = insertAnchorNode(hostLView, hostTNode);\n  }\n  lContainer[NATIVE] = commentNode;\n}\n/**\n * Hydration logic that looks up all dehydrated views in this container\n * and puts them into `lContainer[DEHYDRATED_VIEWS]` slot.\n *\n * @returns a boolean flag that indicates whether a populating operation\n *   was successful. The operation might be unsuccessful in case is has completed\n *   previously, we are rendering in client-only mode or this content is located\n *   in a skip hydration section.\n */\nfunction populateDehydratedViewsInLContainerImpl(lContainer, tNode, hostLView) {\n  // We already have a native element (anchor) set and the process\n  // of finding dehydrated views happened (so the `lContainer[DEHYDRATED_VIEWS]`\n  // is not null), exit early.\n  if (lContainer[NATIVE] && lContainer[DEHYDRATED_VIEWS]) {\n    return true;\n  }\n  const hydrationInfo = hostLView[HYDRATION];\n  const noOffsetIndex = tNode.index - HEADER_OFFSET;\n  const isNodeCreationMode = !hydrationInfo || isInSkipHydrationBlock(tNode) || isDisconnectedNode$1(hydrationInfo, noOffsetIndex);\n  // Regular creation mode.\n  if (isNodeCreationMode) {\n    return false;\n  }\n  // Hydration mode, looking up an anchor node and dehydrated views in DOM.\n  const currentRNode = getSegmentHead(hydrationInfo, noOffsetIndex);\n  const serializedViews = hydrationInfo.data[CONTAINERS]?.[noOffsetIndex];\n  ngDevMode && assertDefined(serializedViews, 'Unexpected state: no hydration info available for a given TNode, ' + 'which represents a view container.');\n  const [commentNode, dehydratedViews] = locateDehydratedViewsInContainer(currentRNode, serializedViews);\n  if (ngDevMode) {\n    validateMatchingNode(commentNode, Node.COMMENT_NODE, null, hostLView, tNode, true);\n    // Do not throw in case this node is already claimed (thus `false` as a second\n    // argument). If this container is created based on an `<ng-template>`, the comment\n    // node would be already claimed from the `template` instruction. If an element acts\n    // as an anchor (e.g. <div #vcRef>), a separate comment node would be created/located,\n    // so we need to claim it here.\n    markRNodeAsClaimedByHydration(commentNode, false);\n  }\n  lContainer[NATIVE] = commentNode;\n  lContainer[DEHYDRATED_VIEWS] = dehydratedViews;\n  return true;\n}\nfunction locateOrCreateAnchorNode(lContainer, hostLView, hostTNode, slotValue) {\n  if (!_populateDehydratedViewsInLContainer(lContainer, hostTNode, hostLView)) {\n    // Populating dehydrated views operation returned `false`, which indicates\n    // that the logic was running in client-only mode, this an anchor comment\n    // node should be created for this container.\n    createAnchorNode(lContainer, hostLView, hostTNode, slotValue);\n  }\n}\nfunction enableLocateOrCreateContainerRefImpl() {\n  _locateOrCreateAnchorNode = locateOrCreateAnchorNode;\n  _populateDehydratedViewsInLContainer = populateDehydratedViewsInLContainerImpl;\n}\nclass LQuery_ {\n  constructor(queryList) {\n    this.queryList = queryList;\n    this.matches = null;\n  }\n  clone() {\n    return new LQuery_(this.queryList);\n  }\n  setDirty() {\n    this.queryList.setDirty();\n  }\n}\nclass LQueries_ {\n  constructor(queries = []) {\n    this.queries = queries;\n  }\n  createEmbeddedView(tView) {\n    const tQueries = tView.queries;\n    if (tQueries !== null) {\n      const noOfInheritedQueries = tView.contentQueries !== null ? tView.contentQueries[0] : tQueries.length;\n      const viewLQueries = [];\n      // An embedded view has queries propagated from a declaration view at the beginning of the\n      // TQueries collection and up until a first content query declared in the embedded view. Only\n      // propagated LQueries are created at this point (LQuery corresponding to declared content\n      // queries will be instantiated from the content query instructions for each directive).\n      for (let i = 0; i < noOfInheritedQueries; i++) {\n        const tQuery = tQueries.getByIndex(i);\n        const parentLQuery = this.queries[tQuery.indexInDeclarationView];\n        viewLQueries.push(parentLQuery.clone());\n      }\n      return new LQueries_(viewLQueries);\n    }\n    return null;\n  }\n  insertView(tView) {\n    this.dirtyQueriesWithMatches(tView);\n  }\n  detachView(tView) {\n    this.dirtyQueriesWithMatches(tView);\n  }\n  finishViewCreation(tView) {\n    this.dirtyQueriesWithMatches(tView);\n  }\n  dirtyQueriesWithMatches(tView) {\n    for (let i = 0; i < this.queries.length; i++) {\n      if (getTQuery(tView, i).matches !== null) {\n        this.queries[i].setDirty();\n      }\n    }\n  }\n}\nclass TQueryMetadata_ {\n  constructor(predicate, flags, read = null) {\n    this.flags = flags;\n    this.read = read;\n    // Compiler might not be able to pre-optimize and split multiple selectors.\n    if (typeof predicate === 'string') {\n      this.predicate = splitQueryMultiSelectors(predicate);\n    } else {\n      this.predicate = predicate;\n    }\n  }\n}\nclass TQueries_ {\n  constructor(queries = []) {\n    this.queries = queries;\n  }\n  elementStart(tView, tNode) {\n    ngDevMode && assertFirstCreatePass(tView, 'Queries should collect results on the first template pass only');\n    for (let i = 0; i < this.queries.length; i++) {\n      this.queries[i].elementStart(tView, tNode);\n    }\n  }\n  elementEnd(tNode) {\n    for (let i = 0; i < this.queries.length; i++) {\n      this.queries[i].elementEnd(tNode);\n    }\n  }\n  embeddedTView(tNode) {\n    let queriesForTemplateRef = null;\n    for (let i = 0; i < this.length; i++) {\n      const childQueryIndex = queriesForTemplateRef !== null ? queriesForTemplateRef.length : 0;\n      const tqueryClone = this.getByIndex(i).embeddedTView(tNode, childQueryIndex);\n      if (tqueryClone) {\n        tqueryClone.indexInDeclarationView = i;\n        if (queriesForTemplateRef !== null) {\n          queriesForTemplateRef.push(tqueryClone);\n        } else {\n          queriesForTemplateRef = [tqueryClone];\n        }\n      }\n    }\n    return queriesForTemplateRef !== null ? new TQueries_(queriesForTemplateRef) : null;\n  }\n  template(tView, tNode) {\n    ngDevMode && assertFirstCreatePass(tView, 'Queries should collect results on the first template pass only');\n    for (let i = 0; i < this.queries.length; i++) {\n      this.queries[i].template(tView, tNode);\n    }\n  }\n  getByIndex(index) {\n    ngDevMode && assertIndexInRange(this.queries, index);\n    return this.queries[index];\n  }\n  get length() {\n    return this.queries.length;\n  }\n  track(tquery) {\n    this.queries.push(tquery);\n  }\n}\nclass TQuery_ {\n  constructor(metadata, nodeIndex = -1) {\n    this.metadata = metadata;\n    this.matches = null;\n    this.indexInDeclarationView = -1;\n    this.crossesNgTemplate = false;\n    /**\n     * A flag indicating if a given query still applies to nodes it is crossing. We use this flag\n     * (alongside with _declarationNodeIndex) to know when to stop applying content queries to\n     * elements in a template.\n     */\n    this._appliesToNextNode = true;\n    this._declarationNodeIndex = nodeIndex;\n  }\n  elementStart(tView, tNode) {\n    if (this.isApplyingToNode(tNode)) {\n      this.matchTNode(tView, tNode);\n    }\n  }\n  elementEnd(tNode) {\n    if (this._declarationNodeIndex === tNode.index) {\n      this._appliesToNextNode = false;\n    }\n  }\n  template(tView, tNode) {\n    this.elementStart(tView, tNode);\n  }\n  embeddedTView(tNode, childQueryIndex) {\n    if (this.isApplyingToNode(tNode)) {\n      this.crossesNgTemplate = true;\n      // A marker indicating a `<ng-template>` element (a placeholder for query results from\n      // embedded views created based on this `<ng-template>`).\n      this.addMatch(-tNode.index, childQueryIndex);\n      return new TQuery_(this.metadata);\n    }\n    return null;\n  }\n  isApplyingToNode(tNode) {\n    if (this._appliesToNextNode && (this.metadata.flags & 1 /* QueryFlags.descendants */) !== 1 /* QueryFlags.descendants */) {\n      const declarationNodeIdx = this._declarationNodeIndex;\n      let parent = tNode.parent;\n      // Determine if a given TNode is a \"direct\" child of a node on which a content query was\n      // declared (only direct children of query's host node can match with the descendants: false\n      // option). There are 3 main use-case / conditions to consider here:\n      // - <needs-target><i #target></i></needs-target>: here <i #target> parent node is a query\n      // host node;\n      // - <needs-target><ng-template [ngIf]=\"true\"><i #target></i></ng-template></needs-target>:\n      // here <i #target> parent node is null;\n      // - <needs-target><ng-container><i #target></i></ng-container></needs-target>: here we need\n      // to go past `<ng-container>` to determine <i #target> parent node (but we shouldn't traverse\n      // up past the query's host node!).\n      while (parent !== null && parent.type & 8 /* TNodeType.ElementContainer */ && parent.index !== declarationNodeIdx) {\n        parent = parent.parent;\n      }\n      return declarationNodeIdx === (parent !== null ? parent.index : -1);\n    }\n    return this._appliesToNextNode;\n  }\n  matchTNode(tView, tNode) {\n    const predicate = this.metadata.predicate;\n    if (Array.isArray(predicate)) {\n      for (let i = 0; i < predicate.length; i++) {\n        const name = predicate[i];\n        this.matchTNodeWithReadOption(tView, tNode, getIdxOfMatchingSelector(tNode, name));\n        // Also try matching the name to a provider since strings can be used as DI tokens too.\n        this.matchTNodeWithReadOption(tView, tNode, locateDirectiveOrProvider(tNode, tView, name, false, false));\n      }\n    } else {\n      if (predicate === TemplateRef) {\n        if (tNode.type & 4 /* TNodeType.Container */) {\n          this.matchTNodeWithReadOption(tView, tNode, -1);\n        }\n      } else {\n        this.matchTNodeWithReadOption(tView, tNode, locateDirectiveOrProvider(tNode, tView, predicate, false, false));\n      }\n    }\n  }\n  matchTNodeWithReadOption(tView, tNode, nodeMatchIdx) {\n    if (nodeMatchIdx !== null) {\n      const read = this.metadata.read;\n      if (read !== null) {\n        if (read === ElementRef || read === ViewContainerRef || read === TemplateRef && tNode.type & 4 /* TNodeType.Container */) {\n          this.addMatch(tNode.index, -2);\n        } else {\n          const directiveOrProviderIdx = locateDirectiveOrProvider(tNode, tView, read, false, false);\n          if (directiveOrProviderIdx !== null) {\n            this.addMatch(tNode.index, directiveOrProviderIdx);\n          }\n        }\n      } else {\n        this.addMatch(tNode.index, nodeMatchIdx);\n      }\n    }\n  }\n  addMatch(tNodeIdx, matchIdx) {\n    if (this.matches === null) {\n      this.matches = [tNodeIdx, matchIdx];\n    } else {\n      this.matches.push(tNodeIdx, matchIdx);\n    }\n  }\n}\n/**\n * Iterates over local names for a given node and returns directive index\n * (or -1 if a local name points to an element).\n *\n * @param tNode static data of a node to check\n * @param selector selector to match\n * @returns directive index, -1 or null if a selector didn't match any of the local names\n */\nfunction getIdxOfMatchingSelector(tNode, selector) {\n  const localNames = tNode.localNames;\n  if (localNames !== null) {\n    for (let i = 0; i < localNames.length; i += 2) {\n      if (localNames[i] === selector) {\n        return localNames[i + 1];\n      }\n    }\n  }\n  return null;\n}\nfunction createResultByTNodeType(tNode, currentView) {\n  if (tNode.type & (3 /* TNodeType.AnyRNode */ | 8 /* TNodeType.ElementContainer */)) {\n    return createElementRef(tNode, currentView);\n  } else if (tNode.type & 4 /* TNodeType.Container */) {\n    return createTemplateRef(tNode, currentView);\n  }\n  return null;\n}\nfunction createResultForNode(lView, tNode, matchingIdx, read) {\n  if (matchingIdx === -1) {\n    // if read token and / or strategy is not specified, detect it using appropriate tNode type\n    return createResultByTNodeType(tNode, lView);\n  } else if (matchingIdx === -2) {\n    // read a special token from a node injector\n    return createSpecialToken(lView, tNode, read);\n  } else {\n    // read a token\n    return getNodeInjectable(lView, lView[TVIEW], matchingIdx, tNode);\n  }\n}\nfunction createSpecialToken(lView, tNode, read) {\n  if (read === ElementRef) {\n    return createElementRef(tNode, lView);\n  } else if (read === TemplateRef) {\n    return createTemplateRef(tNode, lView);\n  } else if (read === ViewContainerRef) {\n    ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */);\n    return createContainerRef(tNode, lView);\n  } else {\n    ngDevMode && throwError(`Special token to read should be one of ElementRef, TemplateRef or ViewContainerRef but got ${stringify(read)}.`);\n  }\n}\n/**\n * A helper function that creates query results for a given view. This function is meant to do the\n * processing once and only once for a given view instance (a set of results for a given view\n * doesn't change).\n */\nfunction materializeViewResults(tView, lView, tQuery, queryIndex) {\n  const lQuery = lView[QUERIES].queries[queryIndex];\n  if (lQuery.matches === null) {\n    const tViewData = tView.data;\n    const tQueryMatches = tQuery.matches;\n    const result = [];\n    for (let i = 0; tQueryMatches !== null && i < tQueryMatches.length; i += 2) {\n      const matchedNodeIdx = tQueryMatches[i];\n      if (matchedNodeIdx < 0) {\n        // we at the <ng-template> marker which might have results in views created based on this\n        // <ng-template> - those results will be in separate views though, so here we just leave\n        // null as a placeholder\n        result.push(null);\n      } else {\n        ngDevMode && assertIndexInRange(tViewData, matchedNodeIdx);\n        const tNode = tViewData[matchedNodeIdx];\n        result.push(createResultForNode(lView, tNode, tQueryMatches[i + 1], tQuery.metadata.read));\n      }\n    }\n    lQuery.matches = result;\n  }\n  return lQuery.matches;\n}\n/**\n * A helper function that collects (already materialized) query results from a tree of views,\n * starting with a provided LView.\n */\nfunction collectQueryResults(tView, lView, queryIndex, result) {\n  const tQuery = tView.queries.getByIndex(queryIndex);\n  const tQueryMatches = tQuery.matches;\n  if (tQueryMatches !== null) {\n    const lViewResults = materializeViewResults(tView, lView, tQuery, queryIndex);\n    for (let i = 0; i < tQueryMatches.length; i += 2) {\n      const tNodeIdx = tQueryMatches[i];\n      if (tNodeIdx > 0) {\n        result.push(lViewResults[i / 2]);\n      } else {\n        const childQueryIndex = tQueryMatches[i + 1];\n        const declarationLContainer = lView[-tNodeIdx];\n        ngDevMode && assertLContainer(declarationLContainer);\n        // collect matches for views inserted in this container\n        for (let i = CONTAINER_HEADER_OFFSET; i < declarationLContainer.length; i++) {\n          const embeddedLView = declarationLContainer[i];\n          if (embeddedLView[DECLARATION_LCONTAINER] === embeddedLView[PARENT]) {\n            collectQueryResults(embeddedLView[TVIEW], embeddedLView, childQueryIndex, result);\n          }\n        }\n        // collect matches for views created from this declaration container and inserted into\n        // different containers\n        if (declarationLContainer[MOVED_VIEWS] !== null) {\n          const embeddedLViews = declarationLContainer[MOVED_VIEWS];\n          for (let i = 0; i < embeddedLViews.length; i++) {\n            const embeddedLView = embeddedLViews[i];\n            collectQueryResults(embeddedLView[TVIEW], embeddedLView, childQueryIndex, result);\n          }\n        }\n      }\n    }\n  }\n  return result;\n}\nfunction loadQueryInternal(lView, queryIndex) {\n  ngDevMode && assertDefined(lView[QUERIES], 'LQueries should be defined when trying to load a query');\n  ngDevMode && assertIndexInRange(lView[QUERIES].queries, queryIndex);\n  return lView[QUERIES].queries[queryIndex].queryList;\n}\n/**\n * Creates a new instance of LQuery and returns its index in the collection of LQuery objects.\n *\n * @returns index in the collection of LQuery objects\n */\nfunction createLQuery(tView, lView, flags) {\n  const queryList = new QueryList((flags & 4 /* QueryFlags.emitDistinctChangesOnly */) === 4 /* QueryFlags.emitDistinctChangesOnly */);\n  storeCleanupWithContext(tView, lView, queryList, queryList.destroy);\n  const lQueries = (lView[QUERIES] ??= new LQueries_()).queries;\n  return lQueries.push(new LQuery_(queryList)) - 1;\n}\nfunction createViewQuery(predicate, flags, read) {\n  ngDevMode && assertNumber(flags, 'Expecting flags');\n  const tView = getTView();\n  if (tView.firstCreatePass) {\n    createTQuery(tView, new TQueryMetadata_(predicate, flags, read), -1);\n    if ((flags & 2 /* QueryFlags.isStatic */) === 2 /* QueryFlags.isStatic */) {\n      tView.staticViewQueries = true;\n    }\n  }\n  return createLQuery(tView, getLView(), flags);\n}\nfunction createContentQuery(directiveIndex, predicate, flags, read) {\n  ngDevMode && assertNumber(flags, 'Expecting flags');\n  const tView = getTView();\n  if (tView.firstCreatePass) {\n    const tNode = getCurrentTNode();\n    createTQuery(tView, new TQueryMetadata_(predicate, flags, read), tNode.index);\n    saveContentQueryAndDirectiveIndex(tView, directiveIndex);\n    if ((flags & 2 /* QueryFlags.isStatic */) === 2 /* QueryFlags.isStatic */) {\n      tView.staticContentQueries = true;\n    }\n  }\n  return createLQuery(tView, getLView(), flags);\n}\n/** Splits multiple selectors in the locator. */\nfunction splitQueryMultiSelectors(locator) {\n  return locator.split(',').map(s => s.trim());\n}\nfunction createTQuery(tView, metadata, nodeIndex) {\n  if (tView.queries === null) tView.queries = new TQueries_();\n  tView.queries.track(new TQuery_(metadata, nodeIndex));\n}\nfunction saveContentQueryAndDirectiveIndex(tView, directiveIndex) {\n  const tViewContentQueries = tView.contentQueries || (tView.contentQueries = []);\n  const lastSavedDirectiveIndex = tViewContentQueries.length ? tViewContentQueries[tViewContentQueries.length - 1] : -1;\n  if (directiveIndex !== lastSavedDirectiveIndex) {\n    tViewContentQueries.push(tView.queries.length - 1, directiveIndex);\n  }\n}\nfunction getTQuery(tView, index) {\n  ngDevMode && assertDefined(tView.queries, 'TQueries must be defined to retrieve a TQuery');\n  return tView.queries.getByIndex(index);\n}\n/**\n * A helper function collecting results from all the views where a given query was active.\n * @param lView\n * @param queryIndex\n */\nfunction getQueryResults(lView, queryIndex) {\n  const tView = lView[TVIEW];\n  const tQuery = getTQuery(tView, queryIndex);\n  return tQuery.crossesNgTemplate ? collectQueryResults(tView, lView, queryIndex, []) : materializeViewResults(tView, lView, tQuery, queryIndex);\n}\n\n/**\n * Checks if the given `value` is a reactive `Signal`.\n */\nfunction isSignal(value) {\n  return typeof value === 'function' && value[SIGNAL$1] !== undefined;\n}\n\n/** Symbol used distinguish `WritableSignal` from other non-writable signals and functions. */\nconst ɵWRITABLE_SIGNAL = /* @__PURE__ */Symbol('WRITABLE_SIGNAL');\n/**\n * Utility function used during template type checking to extract the value from a `WritableSignal`.\n * @codeGenApi\n */\nfunction ɵunwrapWritableSignal(value) {\n  // Note: the function uses `WRITABLE_SIGNAL` as a brand instead of `WritableSignal<T>`,\n  // because the latter incorrectly unwraps non-signal getter functions.\n  return null;\n}\n/**\n * Create a `Signal` that can be set or updated directly.\n */\nfunction signal(initialValue, options) {\n  performanceMarkFeature('NgSignals');\n  const signalFn = createSignal$1(initialValue);\n  const node = signalFn[SIGNAL$1];\n  if (options?.equal) {\n    node.equal = options.equal;\n  }\n  signalFn.set = newValue => signalSetFn$1(node, newValue);\n  signalFn.update = updateFn => signalUpdateFn$1(node, updateFn);\n  signalFn.asReadonly = signalAsReadonlyFn.bind(signalFn);\n  if (ngDevMode) {\n    signalFn.toString = () => `[Signal: ${signalFn()}]`;\n  }\n  return signalFn;\n}\nfunction signalAsReadonlyFn() {\n  const node = this[SIGNAL$1];\n  if (node.readonlyFn === undefined) {\n    const readonlyFn = () => this();\n    readonlyFn[SIGNAL$1] = node;\n    node.readonlyFn = readonlyFn;\n  }\n  return node.readonlyFn;\n}\n/**\n * Checks if the given `value` is a writeable signal.\n */\nfunction isWritableSignal(value) {\n  return isSignal(value) && typeof value.set === 'function';\n}\n\n/**\n * A signal factory function in charge of creating a new computed signal capturing query\n * results. This centralized creation function is used by all types of queries (child / children,\n * required / optional).\n *\n * @param firstOnly indicates if all or only the first result should be returned\n * @param required indicates if at least one result is required\n * @returns a read-only signal with query results\n */\nfunction createQuerySignalFn(firstOnly, required) {\n  let node;\n  const signalFn = createComputed$1(() => {\n    // A dedicated signal that increments its value every time a query changes its dirty status. By\n    // using this signal we can implement a query as computed and avoid creation of a specialized\n    // reactive node type. Please note that a query gets marked dirty under the following\n    // circumstances:\n    // - a view (where a query is active) finished its first creation pass;\n    // - a new view is inserted / deleted and it impacts query results.\n    node._dirtyCounter();\n    const value = refreshSignalQuery(node, firstOnly);\n    if (required && value === undefined) {\n      throw new RuntimeError(-951 /* RuntimeErrorCode.REQUIRED_QUERY_NO_VALUE */, ngDevMode && 'Child query result is required but no value is available.');\n    }\n    return value;\n  });\n  node = signalFn[SIGNAL$1];\n  node._dirtyCounter = signal(0);\n  node._flatValue = undefined;\n  if (ngDevMode) {\n    signalFn.toString = () => `[Query Signal]`;\n  }\n  return signalFn;\n}\nfunction createSingleResultOptionalQuerySignalFn() {\n  return createQuerySignalFn( /* firstOnly */true, /* required */false);\n}\nfunction createSingleResultRequiredQuerySignalFn() {\n  return createQuerySignalFn( /* firstOnly */true, /* required */true);\n}\nfunction createMultiResultQuerySignalFn() {\n  return createQuerySignalFn( /* firstOnly */false, /* required */false);\n}\nfunction bindQueryToSignal(target, queryIndex) {\n  const node = target[SIGNAL$1];\n  node._lView = getLView();\n  node._queryIndex = queryIndex;\n  node._queryList = loadQueryInternal(node._lView, queryIndex);\n  node._queryList.onDirty(() => node._dirtyCounter.update(v => v + 1));\n}\nfunction refreshSignalQuery(node, firstOnly) {\n  const lView = node._lView;\n  const queryIndex = node._queryIndex;\n  // There are 2 conditions under which we want to return \"empty\" results instead of the ones\n  // collected by a query:\n  //\n  // 1) a given query wasn't created yet (this is a period of time between the directive creation\n  // and execution of the query creation function) - in this case a query doesn't exist yet and we\n  // don't have any results to return.\n  //\n  // 2) we are in the process of constructing a view (the first\n  // creation pass didn't finish) and a query might have partial results, but we don't want to\n  // return those - instead we do delay results collection until all nodes had a chance of matching\n  // and we can present consistent, \"atomic\" (on a view level) results.\n  if (lView === undefined || queryIndex === undefined || lView[FLAGS] & 4 /* LViewFlags.CreationMode */) {\n    return firstOnly ? undefined : EMPTY_ARRAY;\n  }\n  const queryList = loadQueryInternal(lView, queryIndex);\n  const results = getQueryResults(lView, queryIndex);\n  queryList.reset(results, unwrapElementRef);\n  if (firstOnly) {\n    return queryList.first;\n  } else {\n    // TODO: remove access to the private _changesDetected field by abstracting / removing usage of\n    // QueryList in the signal-based queries (perf follow-up)\n    const resultChanged = queryList._changesDetected;\n    if (resultChanged || node._flatValue === undefined) {\n      return node._flatValue = queryList.toArray();\n    }\n    return node._flatValue;\n  }\n}\nfunction viewChildFn(locator, opts) {\n  ngDevMode && assertInInjectionContext(viewChild);\n  return createSingleResultOptionalQuerySignalFn();\n}\nfunction viewChildRequiredFn(locator, opts) {\n  ngDevMode && assertInInjectionContext(viewChild);\n  return createSingleResultRequiredQuerySignalFn();\n}\n/**\n * Initializes a view child query.\n *\n * Consider using `viewChild.required` for queries that should always match.\n *\n * @usageNotes\n * Create a child query in your component by declaring a\n * class field and initializing it with the `viewChild()` function.\n *\n * ```ts\n * @Component({template: '<div #el></div><my-component #cmp />'})\n * export class TestComponent {\n *   divEl = viewChild<ElementRef>('el');                   // Signal<ElementRef|undefined>\n *   divElRequired = viewChild.required<ElementRef>('el');  // Signal<ElementRef>\n *   cmp = viewChild(MyComponent);                          // Signal<MyComponent|undefined>\n *   cmpRequired = viewChild.required(MyComponent);         // Signal<MyComponent>\n * }\n * ```\n *\n * @developerPreview\n * @initializerApiFunction\n */\nconst viewChild = /*#__PURE__*/(() => {\n  // Note: This may be considered a side-effect, but nothing will depend on\n  // this assignment, unless this `viewChild` constant export is accessed. It's a\n  // self-contained side effect that is local to the user facing `viewChild` export.\n  viewChildFn.required = viewChildRequiredFn;\n  return viewChildFn;\n})();\n/**\n * Initializes a view children query.\n *\n * Query results are represented as a signal of a read-only collection containing all matched\n * elements.\n *\n * @usageNotes\n * Create a children query in your component by declaring a\n * class field and initializing it with the `viewChildren()` function.\n *\n * ```ts\n * @Component({...})\n * export class TestComponent {\n *   divEls = viewChildren<ElementRef>('el');   // Signal<ReadonlyArray<ElementRef>>\n * }\n * ```\n *\n * @initializerApiFunction\n * @developerPreview\n */\nfunction viewChildren(locator, opts) {\n  ngDevMode && assertInInjectionContext(viewChildren);\n  return createMultiResultQuerySignalFn();\n}\nfunction contentChildFn(locator, opts) {\n  ngDevMode && assertInInjectionContext(contentChild);\n  return createSingleResultOptionalQuerySignalFn();\n}\nfunction contentChildRequiredFn(locator, opts) {\n  ngDevMode && assertInInjectionContext(contentChildren);\n  return createSingleResultRequiredQuerySignalFn();\n}\n/**\n * Initializes a content child query. Consider using `contentChild.required` for queries that should\n * always match.\n *\n * @usageNotes\n * Create a child query in your component by declaring a\n * class field and initializing it with the `contentChild()` function.\n *\n * ```ts\n * @Component({...})\n * export class TestComponent {\n *   headerEl = contentChild<ElementRef>('h');                    // Signal<ElementRef|undefined>\n *   headerElElRequired = contentChild.required<ElementRef>('h'); // Signal<ElementRef>\n *   header = contentChild(MyHeader);                             // Signal<MyHeader|undefined>\n *   headerRequired = contentChild.required(MyHeader);            // Signal<MyHeader>\n * }\n * ```\n *\n * @initializerApiFunction\n * @developerPreview\n */\nconst contentChild = /*#__PURE__*/(() => {\n  // Note: This may be considered a side-effect, but nothing will depend on\n  // this assignment, unless this `viewChild` constant export is accessed. It's a\n  // self-contained side effect that is local to the user facing `viewChild` export.\n  contentChildFn.required = contentChildRequiredFn;\n  return contentChildFn;\n})();\n/**\n * Initializes a content children query.\n *\n * Query results are represented as a signal of a read-only collection containing all matched\n * elements.\n *\n * @usageNotes\n * Create a children query in your component by declaring a\n * class field and initializing it with the `contentChildren()` function.\n *\n * ```ts\n * @Component({...})\n * export class TestComponent {\n *   headerEl = contentChildren<ElementRef>('h');   // Signal<ReadonlyArray<ElementRef>>\n * }\n * ```\n *\n * @initializerApiFunction\n * @developerPreview\n */\nfunction contentChildren(locator, opts) {\n  return createMultiResultQuerySignalFn();\n}\n\n/**\n * Creates a model signal.\n *\n * @param initialValue The initial value.\n *   Can be set to {@link REQUIRED_UNSET_VALUE} for required model signals.\n * @param options Additional options for the model.\n */\nfunction createModelSignal(initialValue) {\n  const node = Object.create(INPUT_SIGNAL_NODE);\n  const emitterRef = new OutputEmitterRef();\n  node.value = initialValue;\n  function getter() {\n    producerAccessed$1(node);\n    assertModelSet(node.value);\n    return node.value;\n  }\n  getter[SIGNAL$1] = node;\n  getter.asReadonly = signalAsReadonlyFn.bind(getter);\n  // TODO: Should we throw an error when updating a destroyed model?\n  getter.set = newValue => {\n    if (!node.equal(node.value, newValue)) {\n      signalSetFn$1(node, newValue);\n      emitterRef.emit(newValue);\n    }\n  };\n  getter.update = updateFn => {\n    assertModelSet(node.value);\n    getter.set(updateFn(node.value));\n  };\n  getter.subscribe = emitterRef.subscribe.bind(emitterRef);\n  getter.destroyRef = emitterRef.destroyRef;\n  if (ngDevMode) {\n    getter.toString = () => `[Model Signal: ${getter()}]`;\n  }\n  return getter;\n}\n/** Asserts that a model's value is set. */\nfunction assertModelSet(value) {\n  if (value === REQUIRED_UNSET_VALUE) {\n    throw new RuntimeError(-952 /* RuntimeErrorCode.REQUIRED_MODEL_NO_VALUE */, ngDevMode && 'Model is required but no value is available yet.');\n  }\n}\nfunction modelFunction(initialValue) {\n  ngDevMode && assertInInjectionContext(model);\n  return createModelSignal(initialValue);\n}\nfunction modelRequiredFunction() {\n  ngDevMode && assertInInjectionContext(model);\n  return createModelSignal(REQUIRED_UNSET_VALUE);\n}\n/**\n * `model` declares a writeable signal that is exposed as an input/output\n * pair on the containing directive.\n *\n * The input name is taken either from the class member or from the `alias` option.\n * The output name is generated by taking the input name and appending `Change`.\n *\n * @usageNotes\n *\n * To use `model()`, import the function from `@angular/core`.\n *\n * ```\n * import {model} from '@angular/core`;\n * ```\n *\n * Inside your component, introduce a new class member and initialize\n * it with a call to `model` or `model.required`.\n *\n * ```ts\n * @Directive({\n *   ...\n * })\n * export class MyDir {\n *   firstName = model<string>();            // ModelSignal<string|undefined>\n *   lastName  = model.required<string>();   // ModelSignal<string>\n *   age       = model(0);                   // ModelSignal<number>\n * }\n * ```\n *\n * Inside your component template, you can display the value of a `model`\n * by calling the signal.\n *\n * ```html\n * <span>{{firstName()}}</span>\n * ```\n *\n * Updating the `model` is equivalent to updating a writable signal.\n *\n * ```ts\n * updateName(newFirstName: string): void {\n *   this.firstName.set(newFirstName);\n * }\n * ```\n *\n * @developerPreview\n * @initializerApiFunction\n */\nconst model = /*#__PURE__*/(() => {\n  // Note: This may be considered a side-effect, but nothing will depend on\n  // this assignment, unless this `model` constant export is accessed. It's a\n  // self-contained side effect that is local to the user facing `model` export.\n  modelFunction.required = modelRequiredFunction;\n  return modelFunction;\n})();\n\n// Stores the default value of `emitDistinctChangesOnly` when the `emitDistinctChangesOnly` is not\n// explicitly set.\nconst emitDistinctChangesOnlyDefaultValue = true;\n/**\n * Base class for query metadata.\n *\n * @see {@link ContentChildren}\n * @see {@link ContentChild}\n * @see {@link ViewChildren}\n * @see {@link ViewChild}\n *\n * @publicApi\n */\nclass Query {}\n/**\n * ContentChildren decorator and metadata.\n *\n *\n * @Annotation\n * @publicApi\n */\nconst ContentChildren = /*#__PURE__*/makePropDecorator('ContentChildren', (selector, opts = {}) => ({\n  selector,\n  first: false,\n  isViewQuery: false,\n  descendants: false,\n  emitDistinctChangesOnly: emitDistinctChangesOnlyDefaultValue,\n  ...opts\n}), Query);\n/**\n * ContentChild decorator and metadata.\n *\n *\n * @Annotation\n *\n * @publicApi\n */\nconst ContentChild = /*#__PURE__*/makePropDecorator('ContentChild', (selector, opts = {}) => ({\n  selector,\n  first: true,\n  isViewQuery: false,\n  descendants: true,\n  ...opts\n}), Query);\n/**\n * ViewChildren decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst ViewChildren = /*#__PURE__*/makePropDecorator('ViewChildren', (selector, opts = {}) => ({\n  selector,\n  first: false,\n  isViewQuery: true,\n  descendants: true,\n  emitDistinctChangesOnly: emitDistinctChangesOnlyDefaultValue,\n  ...opts\n}), Query);\n/**\n * ViewChild decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst ViewChild = /*#__PURE__*/makePropDecorator('ViewChild', (selector, opts) => ({\n  selector,\n  first: true,\n  isViewQuery: true,\n  descendants: true,\n  ...opts\n}), Query);\n\n/**\n * Used to resolve resource URLs on `@Component` when used with JIT compilation.\n *\n * Example:\n * ```\n * @Component({\n *   selector: 'my-comp',\n *   templateUrl: 'my-comp.html', // This requires asynchronous resolution\n * })\n * class MyComponent{\n * }\n *\n * // Calling `renderComponent` will fail because `renderComponent` is a synchronous process\n * // and `MyComponent`'s `@Component.templateUrl` needs to be resolved asynchronously.\n *\n * // Calling `resolveComponentResources()` will resolve `@Component.templateUrl` into\n * // `@Component.template`, which allows `renderComponent` to proceed in a synchronous manner.\n *\n * // Use browser's `fetch()` function as the default resource resolution strategy.\n * resolveComponentResources(fetch).then(() => {\n *   // After resolution all URLs have been converted into `template` strings.\n *   renderComponent(MyComponent);\n * });\n *\n * ```\n *\n * NOTE: In AOT the resolution happens during compilation, and so there should be no need\n * to call this method outside JIT mode.\n *\n * @param resourceResolver a function which is responsible for returning a `Promise` to the\n * contents of the resolved URL. Browser's `fetch()` method is a good default implementation.\n */\nfunction resolveComponentResources(resourceResolver) {\n  // Store all promises which are fetching the resources.\n  const componentResolved = [];\n  // Cache so that we don't fetch the same resource more than once.\n  const urlMap = new Map();\n  function cachedResourceResolve(url) {\n    let promise = urlMap.get(url);\n    if (!promise) {\n      const resp = resourceResolver(url);\n      urlMap.set(url, promise = resp.then(unwrapResponse));\n    }\n    return promise;\n  }\n  componentResourceResolutionQueue.forEach((component, type) => {\n    const promises = [];\n    if (component.templateUrl) {\n      promises.push(cachedResourceResolve(component.templateUrl).then(template => {\n        component.template = template;\n      }));\n    }\n    const styles = typeof component.styles === 'string' ? [component.styles] : component.styles || [];\n    component.styles = styles;\n    if (component.styleUrl && component.styleUrls?.length) {\n      throw new Error('@Component cannot define both `styleUrl` and `styleUrls`. ' + 'Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple');\n    } else if (component.styleUrls?.length) {\n      const styleOffset = component.styles.length;\n      const styleUrls = component.styleUrls;\n      component.styleUrls.forEach((styleUrl, index) => {\n        styles.push(''); // pre-allocate array.\n        promises.push(cachedResourceResolve(styleUrl).then(style => {\n          styles[styleOffset + index] = style;\n          styleUrls.splice(styleUrls.indexOf(styleUrl), 1);\n          if (styleUrls.length == 0) {\n            component.styleUrls = undefined;\n          }\n        }));\n      });\n    } else if (component.styleUrl) {\n      promises.push(cachedResourceResolve(component.styleUrl).then(style => {\n        styles.push(style);\n        component.styleUrl = undefined;\n      }));\n    }\n    const fullyResolved = Promise.all(promises).then(() => componentDefResolved(type));\n    componentResolved.push(fullyResolved);\n  });\n  clearResolutionOfComponentResourcesQueue();\n  return Promise.all(componentResolved).then(() => undefined);\n}\nlet componentResourceResolutionQueue = /*#__PURE__*/new Map();\n// Track when existing ɵcmp for a Type is waiting on resources.\nconst componentDefPendingResolution = /*#__PURE__*/new Set();\nfunction maybeQueueResolutionOfComponentResources(type, metadata) {\n  if (componentNeedsResolution(metadata)) {\n    componentResourceResolutionQueue.set(type, metadata);\n    componentDefPendingResolution.add(type);\n  }\n}\nfunction isComponentDefPendingResolution(type) {\n  return componentDefPendingResolution.has(type);\n}\nfunction componentNeedsResolution(component) {\n  return !!(component.templateUrl && !component.hasOwnProperty('template') || component.styleUrls && component.styleUrls.length || component.styleUrl);\n}\nfunction clearResolutionOfComponentResourcesQueue() {\n  const old = componentResourceResolutionQueue;\n  componentResourceResolutionQueue = new Map();\n  return old;\n}\nfunction restoreComponentResolutionQueue(queue) {\n  componentDefPendingResolution.clear();\n  queue.forEach((_, type) => componentDefPendingResolution.add(type));\n  componentResourceResolutionQueue = queue;\n}\nfunction isComponentResourceResolutionQueueEmpty() {\n  return componentResourceResolutionQueue.size === 0;\n}\nfunction unwrapResponse(response) {\n  return typeof response == 'string' ? response : response.text();\n}\nfunction componentDefResolved(type) {\n  componentDefPendingResolution.delete(type);\n}\n\n/**\n * Map of module-id to the corresponding NgModule.\n */\nconst modules = /*#__PURE__*/new Map();\n/**\n * Whether to check for duplicate NgModule registrations.\n *\n * This can be disabled for testing.\n */\nlet checkForDuplicateNgModules = true;\nfunction assertSameOrNotExisting(id, type, incoming) {\n  if (type && type !== incoming && checkForDuplicateNgModules) {\n    throw new Error(`Duplicate module registered for ${id} - ${stringify(type)} vs ${stringify(type.name)}`);\n  }\n}\n/**\n * Adds the given NgModule type to Angular's NgModule registry.\n *\n * This is generated as a side-effect of NgModule compilation. Note that the `id` is passed in\n * explicitly and not read from the NgModule definition. This is for two reasons: it avoids a\n * megamorphic read, and in JIT there's a chicken-and-egg problem where the NgModule may not be\n * fully resolved when it's registered.\n *\n * @codeGenApi\n */\nfunction registerNgModuleType(ngModuleType, id) {\n  const existing = modules.get(id) || null;\n  assertSameOrNotExisting(id, existing, ngModuleType);\n  modules.set(id, ngModuleType);\n}\nfunction clearModulesForTest() {\n  modules.clear();\n}\nfunction getRegisteredNgModuleType(id) {\n  return modules.get(id);\n}\n/**\n * Control whether the NgModule registration system enforces that each NgModule type registered has\n * a unique id.\n *\n * This is useful for testing as the NgModule registry cannot be properly reset between tests with\n * Angular's current API.\n */\nfunction setAllowDuplicateNgModuleIdsForTest(allowDuplicates) {\n  checkForDuplicateNgModules = !allowDuplicates;\n}\n\n/**\n * Validation function invoked at runtime for each binding that might potentially\n * represent a security-sensitive attribute of an <iframe>.\n * See `IFRAME_SECURITY_SENSITIVE_ATTRS` in the\n * `packages/compiler/src/schema/dom_security_schema.ts` script for the full list\n * of such attributes.\n *\n * @codeGenApi\n */\nfunction ɵɵvalidateIframeAttribute(attrValue, tagName, attrName) {\n  const lView = getLView();\n  const tNode = getSelectedTNode();\n  const element = getNativeByTNode(tNode, lView);\n  // Restrict any dynamic bindings of security-sensitive attributes/properties\n  // on an <iframe> for security reasons.\n  if (tNode.type === 2 /* TNodeType.Element */ && tagName.toLowerCase() === 'iframe') {\n    const iframe = element;\n    // Unset previously applied `src` and `srcdoc` if we come across a situation when\n    // a security-sensitive attribute is set later via an attribute/property binding.\n    iframe.src = '';\n    iframe.srcdoc = trustedHTMLFromString('');\n    // Also remove the <iframe> from the document.\n    nativeRemoveNode(lView[RENDERER], iframe);\n    const errorMessage = ngDevMode && `Angular has detected that the \\`${attrName}\\` was applied ` + `as a binding to an <iframe>${getTemplateLocationDetails(lView)}. ` + `For security reasons, the \\`${attrName}\\` can be set on an <iframe> ` + `as a static attribute only. \\n` + `To fix this, switch the \\`${attrName}\\` binding to a static attribute ` + `in a template or in host bindings section.`;\n    throw new RuntimeError(-910 /* RuntimeErrorCode.UNSAFE_IFRAME_ATTRS */, errorMessage);\n  }\n  return attrValue;\n}\nfunction getSuperType(type) {\n  return Object.getPrototypeOf(type.prototype).constructor;\n}\n/**\n * Merges the definition from a super class to a sub class.\n * @param definition The definition that is a SubClass of another directive of component\n *\n * @codeGenApi\n */\nfunction ɵɵInheritDefinitionFeature(definition) {\n  let superType = getSuperType(definition.type);\n  let shouldInheritFields = true;\n  const inheritanceChain = [definition];\n  while (superType) {\n    let superDef = undefined;\n    if (isComponentDef(definition)) {\n      // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n      superDef = superType.ɵcmp || superType.ɵdir;\n    } else {\n      if (superType.ɵcmp) {\n        throw new RuntimeError(903 /* RuntimeErrorCode.INVALID_INHERITANCE */, ngDevMode && `Directives cannot inherit Components. Directive ${stringifyForError(definition.type)} is attempting to extend component ${stringifyForError(superType)}`);\n      }\n      // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n      superDef = superType.ɵdir;\n    }\n    if (superDef) {\n      if (shouldInheritFields) {\n        inheritanceChain.push(superDef);\n        // Some fields in the definition may be empty, if there were no values to put in them that\n        // would've justified object creation. Unwrap them if necessary.\n        const writeableDef = definition;\n        writeableDef.inputs = maybeUnwrapEmpty(definition.inputs);\n        writeableDef.inputTransforms = maybeUnwrapEmpty(definition.inputTransforms);\n        writeableDef.declaredInputs = maybeUnwrapEmpty(definition.declaredInputs);\n        writeableDef.outputs = maybeUnwrapEmpty(definition.outputs);\n        // Merge hostBindings\n        const superHostBindings = superDef.hostBindings;\n        superHostBindings && inheritHostBindings(definition, superHostBindings);\n        // Merge queries\n        const superViewQuery = superDef.viewQuery;\n        const superContentQueries = superDef.contentQueries;\n        superViewQuery && inheritViewQuery(definition, superViewQuery);\n        superContentQueries && inheritContentQueries(definition, superContentQueries);\n        // Merge inputs and outputs\n        mergeInputsWithTransforms(definition, superDef);\n        fillProperties(definition.outputs, superDef.outputs);\n        // Merge animations metadata.\n        // If `superDef` is a Component, the `data` field is present (defaults to an empty object).\n        if (isComponentDef(superDef) && superDef.data.animation) {\n          // If super def is a Component, the `definition` is also a Component, since Directives can\n          // not inherit Components (we throw an error above and cannot reach this code).\n          const defData = definition.data;\n          defData.animation = (defData.animation || []).concat(superDef.data.animation);\n        }\n      }\n      // Run parent features\n      const features = superDef.features;\n      if (features) {\n        for (let i = 0; i < features.length; i++) {\n          const feature = features[i];\n          if (feature && feature.ngInherit) {\n            feature(definition);\n          }\n          // If `InheritDefinitionFeature` is a part of the current `superDef`, it means that this\n          // def already has all the necessary information inherited from its super class(es), so we\n          // can stop merging fields from super classes. However we need to iterate through the\n          // prototype chain to look for classes that might contain other \"features\" (like\n          // NgOnChanges), which we should invoke for the original `definition`. We set the\n          // `shouldInheritFields` flag to indicate that, essentially skipping fields inheritance\n          // logic and only invoking functions from the \"features\" list.\n          if (feature === ɵɵInheritDefinitionFeature) {\n            shouldInheritFields = false;\n          }\n        }\n      }\n    }\n    superType = Object.getPrototypeOf(superType);\n  }\n  mergeHostAttrsAcrossInheritance(inheritanceChain);\n}\nfunction mergeInputsWithTransforms(target, source) {\n  for (const key in source.inputs) {\n    if (!source.inputs.hasOwnProperty(key)) {\n      continue;\n    }\n    if (target.inputs.hasOwnProperty(key)) {\n      continue;\n    }\n    const value = source.inputs[key];\n    if (value === undefined) {\n      continue;\n    }\n    target.inputs[key] = value;\n    target.declaredInputs[key] = source.declaredInputs[key];\n    // If the input is inherited, and we have a transform for it, we also inherit it.\n    // Note that transforms should not be inherited if the input has its own metadata\n    // in the `source` directive itself already (i.e. the input is re-declared/overridden).\n    if (source.inputTransforms !== null) {\n      // Note: transforms are stored with their minified names.\n      // Perf: only access the minified name when there are source transforms.\n      const minifiedName = Array.isArray(value) ? value[0] : value;\n      if (!source.inputTransforms.hasOwnProperty(minifiedName)) {\n        continue;\n      }\n      target.inputTransforms ??= {};\n      target.inputTransforms[minifiedName] = source.inputTransforms[minifiedName];\n    }\n  }\n}\n/**\n * Merge the `hostAttrs` and `hostVars` from the inherited parent to the base class.\n *\n * @param inheritanceChain A list of `WritableDefs` starting at the top most type and listing\n * sub-types in order. For each type take the `hostAttrs` and `hostVars` and merge it with the child\n * type.\n */\nfunction mergeHostAttrsAcrossInheritance(inheritanceChain) {\n  let hostVars = 0;\n  let hostAttrs = null;\n  // We process the inheritance order from the base to the leaves here.\n  for (let i = inheritanceChain.length - 1; i >= 0; i--) {\n    const def = inheritanceChain[i];\n    // For each `hostVars`, we need to add the superclass amount.\n    def.hostVars = hostVars += def.hostVars;\n    // for each `hostAttrs` we need to merge it with superclass.\n    def.hostAttrs = mergeHostAttrs(def.hostAttrs, hostAttrs = mergeHostAttrs(hostAttrs, def.hostAttrs));\n  }\n}\nfunction maybeUnwrapEmpty(value) {\n  if (value === EMPTY_OBJ) {\n    return {};\n  } else if (value === EMPTY_ARRAY) {\n    return [];\n  } else {\n    return value;\n  }\n}\nfunction inheritViewQuery(definition, superViewQuery) {\n  const prevViewQuery = definition.viewQuery;\n  if (prevViewQuery) {\n    definition.viewQuery = (rf, ctx) => {\n      superViewQuery(rf, ctx);\n      prevViewQuery(rf, ctx);\n    };\n  } else {\n    definition.viewQuery = superViewQuery;\n  }\n}\nfunction inheritContentQueries(definition, superContentQueries) {\n  const prevContentQueries = definition.contentQueries;\n  if (prevContentQueries) {\n    definition.contentQueries = (rf, ctx, directiveIndex) => {\n      superContentQueries(rf, ctx, directiveIndex);\n      prevContentQueries(rf, ctx, directiveIndex);\n    };\n  } else {\n    definition.contentQueries = superContentQueries;\n  }\n}\nfunction inheritHostBindings(definition, superHostBindings) {\n  const prevHostBindings = definition.hostBindings;\n  if (prevHostBindings) {\n    definition.hostBindings = (rf, ctx) => {\n      superHostBindings(rf, ctx);\n      prevHostBindings(rf, ctx);\n    };\n  } else {\n    definition.hostBindings = superHostBindings;\n  }\n}\n\n/**\n * Fields which exist on either directive or component definitions, and need to be copied from\n * parent to child classes by the `ɵɵCopyDefinitionFeature`.\n */\nconst COPY_DIRECTIVE_FIELDS = [\n// The child class should use the providers of its parent.\n'providersResolver'\n// Not listed here are any fields which are handled by the `ɵɵInheritDefinitionFeature`, such\n// as inputs, outputs, and host binding functions.\n];\n/**\n * Fields which exist only on component definitions, and need to be copied from parent to child\n * classes by the `ɵɵCopyDefinitionFeature`.\n *\n * The type here allows any field of `ComponentDef` which is not also a property of `DirectiveDef`,\n * since those should go in `COPY_DIRECTIVE_FIELDS` above.\n */\nconst COPY_COMPONENT_FIELDS = [\n// The child class should use the template function of its parent, including all template\n// semantics.\n'template', 'decls', 'consts', 'vars', 'onPush', 'ngContentSelectors',\n// The child class should use the CSS styles of its parent, including all styling semantics.\n'styles', 'encapsulation',\n// The child class should be checked by the runtime in the same way as its parent.\n'schemas'];\n/**\n * Copies the fields not handled by the `ɵɵInheritDefinitionFeature` from the supertype of a\n * definition.\n *\n * This exists primarily to support ngcc migration of an existing View Engine pattern, where an\n * entire decorator is inherited from a parent to a child class. When ngcc detects this case, it\n * generates a skeleton definition on the child class, and applies this feature.\n *\n * The `ɵɵCopyDefinitionFeature` then copies any needed fields from the parent class' definition,\n * including things like the component template function.\n *\n * @param definition The definition of a child class which inherits from a parent class with its\n * own definition.\n *\n * @codeGenApi\n */\nfunction ɵɵCopyDefinitionFeature(definition) {\n  let superType = getSuperType(definition.type);\n  let superDef = undefined;\n  if (isComponentDef(definition)) {\n    // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n    superDef = superType.ɵcmp;\n  } else {\n    // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n    superDef = superType.ɵdir;\n  }\n  // Needed because `definition` fields are readonly.\n  const defAny = definition;\n  // Copy over any fields that apply to either directives or components.\n  for (const field of COPY_DIRECTIVE_FIELDS) {\n    defAny[field] = superDef[field];\n  }\n  if (isComponentDef(superDef)) {\n    // Copy over any component-specific fields.\n    for (const field of COPY_COMPONENT_FIELDS) {\n      defAny[field] = superDef[field];\n    }\n  }\n}\n\n/**\n * This feature adds the host directives behavior to a directive definition by patching a\n * function onto it. The expectation is that the runtime will invoke the function during\n * directive matching.\n *\n * For example:\n * ```ts\n * class ComponentWithHostDirective {\n *   static ɵcmp = defineComponent({\n *    type: ComponentWithHostDirective,\n *    features: [ɵɵHostDirectivesFeature([\n *      SimpleHostDirective,\n *      {directive: AdvancedHostDirective, inputs: ['foo: alias'], outputs: ['bar']},\n *    ])]\n *  });\n * }\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵHostDirectivesFeature(rawHostDirectives) {\n  const feature = definition => {\n    const resolved = (Array.isArray(rawHostDirectives) ? rawHostDirectives : rawHostDirectives()).map(dir => {\n      return typeof dir === 'function' ? {\n        directive: resolveForwardRef(dir),\n        inputs: EMPTY_OBJ,\n        outputs: EMPTY_OBJ\n      } : {\n        directive: resolveForwardRef(dir.directive),\n        inputs: bindingArrayToMap(dir.inputs),\n        outputs: bindingArrayToMap(dir.outputs)\n      };\n    });\n    if (definition.hostDirectives === null) {\n      definition.findHostDirectiveDefs = findHostDirectiveDefs;\n      definition.hostDirectives = resolved;\n    } else {\n      definition.hostDirectives.unshift(...resolved);\n    }\n  };\n  feature.ngInherit = true;\n  return feature;\n}\nfunction findHostDirectiveDefs(currentDef, matchedDefs, hostDirectiveDefs) {\n  if (currentDef.hostDirectives !== null) {\n    for (const hostDirectiveConfig of currentDef.hostDirectives) {\n      const hostDirectiveDef = getDirectiveDef(hostDirectiveConfig.directive);\n      if (typeof ngDevMode === 'undefined' || ngDevMode) {\n        validateHostDirective(hostDirectiveConfig, hostDirectiveDef);\n      }\n      // We need to patch the `declaredInputs` so that\n      // `ngOnChanges` can map the properties correctly.\n      patchDeclaredInputs(hostDirectiveDef.declaredInputs, hostDirectiveConfig.inputs);\n      // Host directives execute before the host so that its host bindings can be overwritten.\n      findHostDirectiveDefs(hostDirectiveDef, matchedDefs, hostDirectiveDefs);\n      hostDirectiveDefs.set(hostDirectiveDef, hostDirectiveConfig);\n      matchedDefs.push(hostDirectiveDef);\n    }\n  }\n}\n/**\n * Converts an array in the form of `['publicName', 'alias', 'otherPublicName', 'otherAlias']` into\n * a map in the form of `{publicName: 'alias', otherPublicName: 'otherAlias'}`.\n */\nfunction bindingArrayToMap(bindings) {\n  if (bindings === undefined || bindings.length === 0) {\n    return EMPTY_OBJ;\n  }\n  const result = {};\n  for (let i = 0; i < bindings.length; i += 2) {\n    result[bindings[i]] = bindings[i + 1];\n  }\n  return result;\n}\n/**\n * `ngOnChanges` has some leftover legacy ViewEngine behavior where the keys inside the\n * `SimpleChanges` event refer to the *declared* name of the input, not its public name or its\n * minified name. E.g. in `@Input('alias') foo: string`, the name in the `SimpleChanges` object\n * will always be `foo`, and not `alias` or the minified name of `foo` in apps using property\n * minification.\n *\n * This is achieved through the `DirectiveDef.declaredInputs` map that is constructed when the\n * definition is declared. When a property is written to the directive instance, the\n * `NgOnChangesFeature` will try to remap the property name being written to using the\n * `declaredInputs`.\n *\n * Since the host directive input remapping happens during directive matching, `declaredInputs`\n * won't contain the new alias that the input is available under. This function addresses the\n * issue by patching the host directive aliases to the `declaredInputs`. There is *not* a risk of\n * this patching accidentally introducing new inputs to the host directive, because `declaredInputs`\n * is used *only* by the `NgOnChangesFeature` when determining what name is used in the\n * `SimpleChanges` object which won't be reached if an input doesn't exist.\n */\nfunction patchDeclaredInputs(declaredInputs, exposedInputs) {\n  for (const publicName in exposedInputs) {\n    if (exposedInputs.hasOwnProperty(publicName)) {\n      const remappedPublicName = exposedInputs[publicName];\n      const privateName = declaredInputs[publicName];\n      // We *technically* shouldn't be able to hit this case because we can't have multiple\n      // inputs on the same property and we have validations against conflicting aliases in\n      // `validateMappings`. If we somehow did, it would lead to `ngOnChanges` being invoked\n      // with the wrong name so we have a non-user-friendly assertion here just in case.\n      if ((typeof ngDevMode === 'undefined' || ngDevMode) && declaredInputs.hasOwnProperty(remappedPublicName)) {\n        assertEqual(declaredInputs[remappedPublicName], declaredInputs[publicName], `Conflicting host directive input alias ${publicName}.`);\n      }\n      declaredInputs[remappedPublicName] = privateName;\n    }\n  }\n}\n/**\n * Verifies that the host directive has been configured correctly.\n * @param hostDirectiveConfig Host directive configuration object.\n * @param directiveDef Directive definition of the host directive.\n */\nfunction validateHostDirective(hostDirectiveConfig, directiveDef) {\n  const type = hostDirectiveConfig.directive;\n  if (directiveDef === null) {\n    if (getComponentDef(type) !== null) {\n      throw new RuntimeError(310 /* RuntimeErrorCode.HOST_DIRECTIVE_COMPONENT */, `Host directive ${type.name} cannot be a component.`);\n    }\n    throw new RuntimeError(307 /* RuntimeErrorCode.HOST_DIRECTIVE_UNRESOLVABLE */, `Could not resolve metadata for host directive ${type.name}. ` + `Make sure that the ${type.name} class is annotated with an @Directive decorator.`);\n  }\n  if (!directiveDef.standalone) {\n    throw new RuntimeError(308 /* RuntimeErrorCode.HOST_DIRECTIVE_NOT_STANDALONE */, `Host directive ${directiveDef.type.name} must be standalone.`);\n  }\n  validateMappings('input', directiveDef, hostDirectiveConfig.inputs);\n  validateMappings('output', directiveDef, hostDirectiveConfig.outputs);\n}\n/**\n * Checks that the host directive inputs/outputs configuration is valid.\n * @param bindingType Kind of binding that is being validated. Used in the error message.\n * @param def Definition of the host directive that is being validated against.\n * @param hostDirectiveBindings Host directive mapping object that shold be validated.\n */\nfunction validateMappings(bindingType, def, hostDirectiveBindings) {\n  const className = def.type.name;\n  const bindings = bindingType === 'input' ? def.inputs : def.outputs;\n  for (const publicName in hostDirectiveBindings) {\n    if (hostDirectiveBindings.hasOwnProperty(publicName)) {\n      if (!bindings.hasOwnProperty(publicName)) {\n        throw new RuntimeError(311 /* RuntimeErrorCode.HOST_DIRECTIVE_UNDEFINED_BINDING */, `Directive ${className} does not have an ${bindingType} with a public name of ${publicName}.`);\n      }\n      const remappedPublicName = hostDirectiveBindings[publicName];\n      if (bindings.hasOwnProperty(remappedPublicName) && remappedPublicName !== publicName) {\n        throw new RuntimeError(312 /* RuntimeErrorCode.HOST_DIRECTIVE_CONFLICTING_ALIAS */, `Cannot alias ${bindingType} ${publicName} of host directive ${className} to ${remappedPublicName}, because it already has a different ${bindingType} with the same public name.`);\n      }\n    }\n  }\n}\n\n/**\n * Decorates the directive definition with support for input transform functions.\n *\n * If the directive uses inheritance, the feature should be included before the\n * `InheritDefinitionFeature` to ensure that the `inputTransforms` field is populated.\n *\n * @codeGenApi\n */\nfunction ɵɵInputTransformsFeature(definition) {\n  const inputs = definition.inputConfig;\n  const inputTransforms = {};\n  for (const minifiedKey in inputs) {\n    if (inputs.hasOwnProperty(minifiedKey)) {\n      // Note: the private names are used for the keys, rather than the public ones, because public\n      // names can be re-aliased in host directives which would invalidate the lookup.\n      const value = inputs[minifiedKey];\n      if (Array.isArray(value) && value[3]) {\n        inputTransforms[minifiedKey] = value[3];\n      }\n    }\n  }\n  definition.inputTransforms = inputTransforms;\n}\n\n/**\n * Represents an instance of an `NgModule` created by an `NgModuleFactory`.\n * Provides access to the `NgModule` instance and related objects.\n *\n * @publicApi\n */\nclass NgModuleRef$1 {}\n/**\n * @publicApi\n *\n * @deprecated\n * This class was mostly used as a part of ViewEngine-based JIT API and is no longer needed in Ivy\n * JIT mode. See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes)\n * for additional context. Angular provides APIs that accept NgModule classes directly (such as\n * [PlatformRef.bootstrapModule](api/core/PlatformRef#bootstrapModule) and\n * [createNgModule](api/core/createNgModule)), consider switching to those APIs instead of\n * using factory-based ones.\n */\nclass NgModuleFactory$1 {}\n\n/**\n * Returns a new NgModuleRef instance based on the NgModule class and parent injector provided.\n *\n * @param ngModule NgModule class.\n * @param parentInjector Optional injector instance to use as a parent for the module injector. If\n *     not provided, `NullInjector` will be used instead.\n * @returns NgModuleRef that represents an NgModule instance.\n *\n * @publicApi\n */\nfunction createNgModule(ngModule, parentInjector) {\n  return new NgModuleRef(ngModule, parentInjector ?? null, []);\n}\n/**\n * The `createNgModule` function alias for backwards-compatibility.\n * Please avoid using it directly and use `createNgModule` instead.\n *\n * @deprecated Use `createNgModule` instead.\n */\nconst createNgModuleRef = createNgModule;\nclass NgModuleRef extends NgModuleRef$1 {\n  constructor(ngModuleType, _parent, additionalProviders) {\n    super();\n    this._parent = _parent;\n    // tslint:disable-next-line:require-internal-with-underscore\n    this._bootstrapComponents = [];\n    this.destroyCbs = [];\n    // When bootstrapping a module we have a dependency graph that looks like this:\n    // ApplicationRef -> ComponentFactoryResolver -> NgModuleRef. The problem is that if the\n    // module being resolved tries to inject the ComponentFactoryResolver, it'll create a\n    // circular dependency which will result in a runtime error, because the injector doesn't\n    // exist yet. We work around the issue by creating the ComponentFactoryResolver ourselves\n    // and providing it, rather than letting the injector resolve it.\n    this.componentFactoryResolver = new ComponentFactoryResolver(this);\n    const ngModuleDef = getNgModuleDef(ngModuleType);\n    ngDevMode && assertDefined(ngModuleDef, `NgModule '${stringify(ngModuleType)}' is not a subtype of 'NgModuleType'.`);\n    this._bootstrapComponents = maybeUnwrapFn(ngModuleDef.bootstrap);\n    this._r3Injector = createInjectorWithoutInjectorInstances(ngModuleType, _parent, [{\n      provide: NgModuleRef$1,\n      useValue: this\n    }, {\n      provide: ComponentFactoryResolver$1,\n      useValue: this.componentFactoryResolver\n    }, ...additionalProviders], stringify(ngModuleType), new Set(['environment']));\n    // We need to resolve the injector types separately from the injector creation, because\n    // the module might be trying to use this ref in its constructor for DI which will cause a\n    // circular error that will eventually error out, because the injector isn't created yet.\n    this._r3Injector.resolveInjectorInitializers();\n    this.instance = this._r3Injector.get(ngModuleType);\n  }\n  get injector() {\n    return this._r3Injector;\n  }\n  destroy() {\n    ngDevMode && assertDefined(this.destroyCbs, 'NgModule already destroyed');\n    const injector = this._r3Injector;\n    !injector.destroyed && injector.destroy();\n    this.destroyCbs.forEach(fn => fn());\n    this.destroyCbs = null;\n  }\n  onDestroy(callback) {\n    ngDevMode && assertDefined(this.destroyCbs, 'NgModule already destroyed');\n    this.destroyCbs.push(callback);\n  }\n}\nclass NgModuleFactory extends NgModuleFactory$1 {\n  constructor(moduleType) {\n    super();\n    this.moduleType = moduleType;\n  }\n  create(parentInjector) {\n    return new NgModuleRef(this.moduleType, parentInjector, []);\n  }\n}\nfunction createNgModuleRefWithProviders(moduleType, parentInjector, additionalProviders) {\n  return new NgModuleRef(moduleType, parentInjector, additionalProviders);\n}\nclass EnvironmentNgModuleRefAdapter extends NgModuleRef$1 {\n  constructor(config) {\n    super();\n    this.componentFactoryResolver = new ComponentFactoryResolver(this);\n    this.instance = null;\n    const injector = new R3Injector([...config.providers, {\n      provide: NgModuleRef$1,\n      useValue: this\n    }, {\n      provide: ComponentFactoryResolver$1,\n      useValue: this.componentFactoryResolver\n    }], config.parent || getNullInjector(), config.debugName, new Set(['environment']));\n    this.injector = injector;\n    if (config.runEnvironmentInitializers) {\n      injector.resolveInjectorInitializers();\n    }\n  }\n  destroy() {\n    this.injector.destroy();\n  }\n  onDestroy(callback) {\n    this.injector.onDestroy(callback);\n  }\n}\n/**\n * Create a new environment injector.\n *\n * Learn more about environment injectors in\n * [this guide](guide/standalone-components#environment-injectors).\n *\n * @param providers An array of providers.\n * @param parent A parent environment injector.\n * @param debugName An optional name for this injector instance, which will be used in error\n *     messages.\n *\n * @publicApi\n */\nfunction createEnvironmentInjector(providers, parent, debugName = null) {\n  const adapter = new EnvironmentNgModuleRefAdapter({\n    providers,\n    parent,\n    debugName,\n    runEnvironmentInitializers: true\n  });\n  return adapter.injector;\n}\n\n/**\n * A service used by the framework to create and cache injector instances.\n *\n * This service is used to create a single injector instance for each defer\n * block definition, to avoid creating an injector for each defer block instance\n * of a certain type.\n */\nlet CachedInjectorService = /*#__PURE__*/(() => {\n  class CachedInjectorService {\n    constructor() {\n      this.cachedInjectors = new Map();\n    }\n    getOrCreateInjector(key, parentInjector, providers, debugName) {\n      if (!this.cachedInjectors.has(key)) {\n        const injector = providers.length > 0 ? createEnvironmentInjector(providers, parentInjector, debugName) : null;\n        this.cachedInjectors.set(key, injector);\n      }\n      return this.cachedInjectors.get(key);\n    }\n    ngOnDestroy() {\n      try {\n        for (const injector of this.cachedInjectors.values()) {\n          if (injector !== null) {\n            injector.destroy();\n          }\n        }\n      } finally {\n        this.cachedInjectors.clear();\n      }\n    }\n    /** @nocollapse */\n    static {\n      this.ɵprov = ɵɵdefineInjectable({\n        token: CachedInjectorService,\n        providedIn: 'environment',\n        factory: () => new CachedInjectorService()\n      });\n    }\n  }\n  return CachedInjectorService;\n})();\n/**\n * The name of a field that Angular monkey-patches onto a component\n * class to store a function that loads defer-loadable dependencies\n * and applies metadata to a class.\n */\nconst ASYNC_COMPONENT_METADATA_FN = '__ngAsyncComponentMetadataFn__';\n/**\n * If a given component has unresolved async metadata - returns a reference\n * to a function that applies component metadata after resolving defer-loadable\n * dependencies. Otherwise - this function returns `null`.\n */\nfunction getAsyncClassMetadataFn(type) {\n  const componentClass = type; // cast to `any`, so that we can read a monkey-patched field\n  return componentClass[ASYNC_COMPONENT_METADATA_FN] ?? null;\n}\n/**\n * Handles the process of applying metadata info to a component class in case\n * component template has defer blocks (thus some dependencies became deferrable).\n *\n * @param type Component class where metadata should be added\n * @param dependencyLoaderFn Function that loads dependencies\n * @param metadataSetterFn Function that forms a scope in which the `setClassMetadata` is invoked\n */\nfunction setClassMetadataAsync(type, dependencyLoaderFn, metadataSetterFn) {\n  const componentClass = type; // cast to `any`, so that we can monkey-patch it\n  componentClass[ASYNC_COMPONENT_METADATA_FN] = () => Promise.all(dependencyLoaderFn()).then(dependencies => {\n    metadataSetterFn(...dependencies);\n    // Metadata is now set, reset field value to indicate that this component\n    // can by used/compiled synchronously.\n    componentClass[ASYNC_COMPONENT_METADATA_FN] = null;\n    return dependencies;\n  });\n  return componentClass[ASYNC_COMPONENT_METADATA_FN];\n}\n/**\n * Adds decorator, constructor, and property metadata to a given type via static metadata fields\n * on the type.\n *\n * These metadata fields can later be read with Angular's `ReflectionCapabilities` API.\n *\n * Calls to `setClassMetadata` can be guarded by ngDevMode, resulting in the metadata assignments\n * being tree-shaken away during production builds.\n */\nfunction setClassMetadata(type, decorators, ctorParameters, propDecorators) {\n  return noSideEffects(() => {\n    const clazz = type;\n    if (decorators !== null) {\n      if (clazz.hasOwnProperty('decorators') && clazz.decorators !== undefined) {\n        clazz.decorators.push(...decorators);\n      } else {\n        clazz.decorators = decorators;\n      }\n    }\n    if (ctorParameters !== null) {\n      // Rather than merging, clobber the existing parameters. If other projects exist which\n      // use tsickle-style annotations and reflect over them in the same way, this could\n      // cause issues, but that is vanishingly unlikely.\n      clazz.ctorParameters = ctorParameters;\n    }\n    if (propDecorators !== null) {\n      // The property decorator objects are merged as it is possible different fields have\n      // different decorator types. Decorators on individual fields are not merged, as it's\n      // also incredibly unlikely that a field will be decorated both with an Angular\n      // decorator and a non-Angular decorator that's also been downleveled.\n      if (clazz.hasOwnProperty('propDecorators') && clazz.propDecorators !== undefined) {\n        clazz.propDecorators = {\n          ...clazz.propDecorators,\n          ...propDecorators\n        };\n      } else {\n        clazz.propDecorators = propDecorators;\n      }\n    }\n  });\n}\n\n/*\n * This file exists to support compilation of @angular/core in Ivy mode.\n *\n * When the Angular compiler processes a compilation unit, it normally writes imports to\n * @angular/core. When compiling the core package itself this strategy isn't usable. Instead, the\n * compiler writes imports to this file.\n *\n * Only a subset of such imports are supported - core is not allowed to declare components or pipes.\n * A check in ngtsc's `R3SymbolsImportRewriter` validates this condition. The rewriter is only used\n * when compiling @angular/core and is responsible for translating an external name (prefixed with\n * ɵ) to the internal symbol name as exported below.\n *\n * The below symbols are used for @Injectable and @NgModule compilation.\n */\n/**\n * The existence of this constant (in this particular file) informs the Angular compiler that the\n * current program is actually @angular/core, which needs to be compiled specially.\n */\nconst ITS_JUST_ANGULAR = true;\n\n/**\n * *Internal* service that keeps track of pending tasks happening in the system.\n *\n * This information is needed to make sure that the serialization on the server\n * is delayed until all tasks in the queue (such as an initial navigation or a\n * pending HTTP request) are completed.\n *\n * Pending tasks continue to contribute to the stableness of `ApplicationRef`\n * throughout the lifetime of the application.\n */\nlet PendingTasks = /*#__PURE__*/(() => {\n  class PendingTasks {\n    constructor() {\n      this.taskId = 0;\n      this.pendingTasks = new Set();\n      this.hasPendingTasks = new BehaviorSubject(false);\n    }\n    get _hasPendingTasks() {\n      return this.hasPendingTasks.value;\n    }\n    add() {\n      if (!this._hasPendingTasks) {\n        this.hasPendingTasks.next(true);\n      }\n      const taskId = this.taskId++;\n      this.pendingTasks.add(taskId);\n      return taskId;\n    }\n    remove(taskId) {\n      this.pendingTasks.delete(taskId);\n      if (this.pendingTasks.size === 0 && this._hasPendingTasks) {\n        this.hasPendingTasks.next(false);\n      }\n    }\n    ngOnDestroy() {\n      this.pendingTasks.clear();\n      if (this._hasPendingTasks) {\n        this.hasPendingTasks.next(false);\n      }\n    }\n    static {\n      this.ɵfac = function PendingTasks_Factory(t) {\n        return new (t || PendingTasks)();\n      };\n    }\n    static {\n      this.ɵprov = /*@__PURE__*/ɵɵdefineInjectable({\n        token: PendingTasks,\n        factory: PendingTasks.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return PendingTasks;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(PendingTasks, [{\n    type: Injectable,\n    args: [{\n      providedIn: 'root'\n    }]\n  }], null, null);\n})();\nfunction isIterable(obj) {\n  return obj !== null && typeof obj === 'object' && obj[Symbol.iterator] !== undefined;\n}\nfunction isListLikeIterable(obj) {\n  if (!isJsObject(obj)) return false;\n  return Array.isArray(obj) || !(obj instanceof Map) &&\n  // JS Map are iterables but return entries as [k, v]\n  Symbol.iterator in obj; // JS Iterable have a Symbol.iterator prop\n}\nfunction areIterablesEqual(a, b, comparator) {\n  const iterator1 = a[Symbol.iterator]();\n  const iterator2 = b[Symbol.iterator]();\n  while (true) {\n    const item1 = iterator1.next();\n    const item2 = iterator2.next();\n    if (item1.done && item2.done) return true;\n    if (item1.done || item2.done) return false;\n    if (!comparator(item1.value, item2.value)) return false;\n  }\n}\nfunction iterateListLike(obj, fn) {\n  if (Array.isArray(obj)) {\n    for (let i = 0; i < obj.length; i++) {\n      fn(obj[i]);\n    }\n  } else {\n    const iterator = obj[Symbol.iterator]();\n    let item;\n    while (!(item = iterator.next()).done) {\n      fn(item.value);\n    }\n  }\n}\nfunction isJsObject(o) {\n  return o !== null && (typeof o === 'function' || typeof o === 'object');\n}\nfunction devModeEqual(a, b) {\n  const isListLikeIterableA = isListLikeIterable(a);\n  const isListLikeIterableB = isListLikeIterable(b);\n  if (isListLikeIterableA && isListLikeIterableB) {\n    return areIterablesEqual(a, b, devModeEqual);\n  } else {\n    const isAObject = a && (typeof a === 'object' || typeof a === 'function');\n    const isBObject = b && (typeof b === 'object' || typeof b === 'function');\n    if (!isListLikeIterableA && isAObject && !isListLikeIterableB && isBObject) {\n      return true;\n    } else {\n      return Object.is(a, b);\n    }\n  }\n}\n\n// TODO(misko): consider inlining\n/** Updates binding and returns the value. */\nfunction updateBinding(lView, bindingIndex, value) {\n  return lView[bindingIndex] = value;\n}\n/** Gets the current binding value. */\nfunction getBinding(lView, bindingIndex) {\n  ngDevMode && assertIndexInRange(lView, bindingIndex);\n  ngDevMode && assertNotSame(lView[bindingIndex], NO_CHANGE, 'Stored value should never be NO_CHANGE.');\n  return lView[bindingIndex];\n}\n/**\n * Updates binding if changed, then returns whether it was updated.\n *\n * This function also checks the `CheckNoChangesMode` and throws if changes are made.\n * Some changes (Objects/iterables) during `CheckNoChangesMode` are exempt to comply with VE\n * behavior.\n *\n * @param lView current `LView`\n * @param bindingIndex The binding in the `LView` to check\n * @param value New value to check against `lView[bindingIndex]`\n * @returns `true` if the bindings has changed. (Throws if binding has changed during\n *          `CheckNoChangesMode`)\n */\nfunction bindingUpdated(lView, bindingIndex, value) {\n  ngDevMode && assertNotSame(value, NO_CHANGE, 'Incoming value should never be NO_CHANGE.');\n  ngDevMode && assertLessThan(bindingIndex, lView.length, `Slot should have been initialized to NO_CHANGE`);\n  const oldValue = lView[bindingIndex];\n  if (Object.is(oldValue, value)) {\n    return false;\n  } else {\n    if (ngDevMode && isInCheckNoChangesMode()) {\n      // View engine didn't report undefined values as changed on the first checkNoChanges pass\n      // (before the change detection was run).\n      const oldValueToCompare = oldValue !== NO_CHANGE ? oldValue : undefined;\n      if (!devModeEqual(oldValueToCompare, value)) {\n        const details = getExpressionChangedErrorDetails(lView, bindingIndex, oldValueToCompare, value);\n        throwErrorIfNoChangesMode(oldValue === NO_CHANGE, details.oldValue, details.newValue, details.propName, lView);\n      }\n      // There was a change, but the `devModeEqual` decided that the change is exempt from an error.\n      // For this reason we exit as if no change. The early exit is needed to prevent the changed\n      // value to be written into `LView` (If we would write the new value that we would not see it\n      // as change on next CD.)\n      return false;\n    }\n    lView[bindingIndex] = value;\n    return true;\n  }\n}\n/** Updates 2 bindings if changed, then returns whether either was updated. */\nfunction bindingUpdated2(lView, bindingIndex, exp1, exp2) {\n  const different = bindingUpdated(lView, bindingIndex, exp1);\n  return bindingUpdated(lView, bindingIndex + 1, exp2) || different;\n}\n/** Updates 3 bindings if changed, then returns whether any was updated. */\nfunction bindingUpdated3(lView, bindingIndex, exp1, exp2, exp3) {\n  const different = bindingUpdated2(lView, bindingIndex, exp1, exp2);\n  return bindingUpdated(lView, bindingIndex + 2, exp3) || different;\n}\n/** Updates 4 bindings if changed, then returns whether any was updated. */\nfunction bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4) {\n  const different = bindingUpdated2(lView, bindingIndex, exp1, exp2);\n  return bindingUpdated2(lView, bindingIndex + 2, exp3, exp4) || different;\n}\n\n/**\n * Checks whether a TNode is considered detached, i.e. not present in the\n * translated i18n template. We should not attempt hydration for such nodes\n * and instead, use a regular \"creation mode\".\n */\nfunction isDetachedByI18n(tNode) {\n  return (tNode.flags & 32 /* TNodeFlags.isDetached */) === 32 /* TNodeFlags.isDetached */;\n}\nfunction templateFirstCreatePass(index, tView, lView, templateFn, decls, vars, tagName, attrsIndex, localRefsIndex) {\n  ngDevMode && assertFirstCreatePass(tView);\n  ngDevMode && ngDevMode.firstCreatePass++;\n  const tViewConsts = tView.consts;\n  // TODO(pk): refactor getOrCreateTNode to have the \"create\" only version\n  const tNode = getOrCreateTNode(tView, index, 4 /* TNodeType.Container */, tagName || null, getConstant(tViewConsts, attrsIndex));\n  resolveDirectives(tView, lView, tNode, getConstant(tViewConsts, localRefsIndex));\n  registerPostOrderHooks(tView, tNode);\n  const embeddedTView = tNode.tView = createTView(2 /* TViewType.Embedded */, tNode, templateFn, decls, vars, tView.directiveRegistry, tView.pipeRegistry, null, tView.schemas, tViewConsts, null /* ssrId */);\n  if (tView.queries !== null) {\n    tView.queries.template(tView, tNode);\n    embeddedTView.queries = tView.queries.embeddedTView(tNode);\n  }\n  return tNode;\n}\n/**\n * Creates an LContainer for an ng-template (dynamically-inserted view), e.g.\n *\n * <ng-template #foo>\n *    <div></div>\n * </ng-template>\n *\n * @param index The index of the container in the data array\n * @param templateFn Inline template\n * @param decls The number of nodes, local refs, and pipes for this template\n * @param vars The number of bindings for this template\n * @param tagName The name of the container element, if applicable\n * @param attrsIndex Index of template attributes in the `consts` array.\n * @param localRefs Index of the local references in the `consts` array.\n * @param localRefExtractor A function which extracts local-refs values from the template.\n *        Defaults to the current element associated with the local-ref.\n *\n * @codeGenApi\n */\nfunction ɵɵtemplate(index, templateFn, decls, vars, tagName, attrsIndex, localRefsIndex, localRefExtractor) {\n  const lView = getLView();\n  const tView = getTView();\n  const adjustedIndex = index + HEADER_OFFSET;\n  const tNode = tView.firstCreatePass ? templateFirstCreatePass(adjustedIndex, tView, lView, templateFn, decls, vars, tagName, attrsIndex, localRefsIndex) : tView.data[adjustedIndex];\n  setCurrentTNode(tNode, false);\n  const comment = _locateOrCreateContainerAnchor(tView, lView, tNode, index);\n  if (wasLastNodeCreated()) {\n    appendChild(tView, lView, comment, tNode);\n  }\n  attachPatchData(comment, lView);\n  const lContainer = createLContainer(comment, lView, comment, tNode);\n  lView[adjustedIndex] = lContainer;\n  addToViewTree(lView, lContainer);\n  // If hydration is enabled, looks up dehydrated views in the DOM\n  // using hydration annotation info and stores those views on LContainer.\n  // In client-only mode, this function is a noop.\n  populateDehydratedViewsInLContainer(lContainer, tNode, lView);\n  if (isDirectiveHost(tNode)) {\n    createDirectivesInstances(tView, lView, tNode);\n  }\n  if (localRefsIndex != null) {\n    saveResolvedLocalsInData(lView, tNode, localRefExtractor);\n  }\n  return ɵɵtemplate;\n}\nlet _locateOrCreateContainerAnchor = createContainerAnchorImpl;\n/**\n * Regular creation mode for LContainers and their anchor (comment) nodes.\n */\nfunction createContainerAnchorImpl(tView, lView, tNode, index) {\n  lastNodeWasCreated(true);\n  return lView[RENDERER].createComment(ngDevMode ? 'container' : '');\n}\n/**\n * Enables hydration code path (to lookup existing elements in DOM)\n * in addition to the regular creation mode for LContainers and their\n * anchor (comment) nodes.\n */\nfunction locateOrCreateContainerAnchorImpl(tView, lView, tNode, index) {\n  const hydrationInfo = lView[HYDRATION];\n  const isNodeCreationMode = !hydrationInfo || isInSkipHydrationBlock$1() || isDetachedByI18n(tNode) || isDisconnectedNode$1(hydrationInfo, index);\n  lastNodeWasCreated(isNodeCreationMode);\n  // Regular creation mode.\n  if (isNodeCreationMode) {\n    return createContainerAnchorImpl(tView, lView, tNode, index);\n  }\n  const ssrId = hydrationInfo.data[TEMPLATES]?.[index] ?? null;\n  // Apply `ssrId` value to the underlying TView if it was not previously set.\n  //\n  // There might be situations when the same component is present in a template\n  // multiple times and some instances are opted-out of using hydration via\n  // `ngSkipHydration` attribute. In this scenario, at the time a TView is created,\n  // the `ssrId` might be `null` (if the first component is opted-out of hydration).\n  // The code below makes sure that the `ssrId` is applied to the TView if it's still\n  // `null` and verifies we never try to override it with a different value.\n  if (ssrId !== null && tNode.tView !== null) {\n    if (tNode.tView.ssrId === null) {\n      tNode.tView.ssrId = ssrId;\n    } else {\n      ngDevMode && assertEqual(tNode.tView.ssrId, ssrId, 'Unexpected value of the `ssrId` for this TView');\n    }\n  }\n  // Hydration mode, looking up existing elements in DOM.\n  const currentRNode = locateNextRNode(hydrationInfo, tView, lView, tNode);\n  ngDevMode && validateNodeExists(currentRNode, lView, tNode);\n  setSegmentHead(hydrationInfo, index, currentRNode);\n  const viewContainerSize = calcSerializedContainerSize(hydrationInfo, index);\n  const comment = siblingAfter(viewContainerSize, currentRNode);\n  if (ngDevMode) {\n    validateMatchingNode(comment, Node.COMMENT_NODE, null, lView, tNode);\n    markRNodeAsClaimedByHydration(comment);\n  }\n  return comment;\n}\nfunction enableLocateOrCreateContainerAnchorImpl() {\n  _locateOrCreateContainerAnchor = locateOrCreateContainerAnchorImpl;\n}\n\n/**\n * Describes the state of defer block dependency loading.\n */\nvar DeferDependenciesLoadingState = /*#__PURE__*/function (DeferDependenciesLoadingState) {\n  /** Initial state, dependency loading is not yet triggered */\n  DeferDependenciesLoadingState[DeferDependenciesLoadingState[\"NOT_STARTED\"] = 0] = \"NOT_STARTED\";\n  /** Dependency loading is in progress */\n  DeferDependenciesLoadingState[DeferDependenciesLoadingState[\"IN_PROGRESS\"] = 1] = \"IN_PROGRESS\";\n  /** Dependency loading has completed successfully */\n  DeferDependenciesLoadingState[DeferDependenciesLoadingState[\"COMPLETE\"] = 2] = \"COMPLETE\";\n  /** Dependency loading has failed */\n  DeferDependenciesLoadingState[DeferDependenciesLoadingState[\"FAILED\"] = 3] = \"FAILED\";\n  return DeferDependenciesLoadingState;\n}(DeferDependenciesLoadingState || {});\n/** Slot index where `minimum` parameter value is stored. */\nconst MINIMUM_SLOT = 0;\n/** Slot index where `after` parameter value is stored. */\nconst LOADING_AFTER_SLOT = 1;\n/**\n * Describes the current state of this defer block instance.\n *\n * @publicApi\n * @developerPreview\n */\nvar DeferBlockState = /*#__PURE__*/function (DeferBlockState) {\n  /** The placeholder block content is rendered */\n  DeferBlockState[DeferBlockState[\"Placeholder\"] = 0] = \"Placeholder\";\n  /** The loading block content is rendered */\n  DeferBlockState[DeferBlockState[\"Loading\"] = 1] = \"Loading\";\n  /** The main content block content is rendered */\n  DeferBlockState[DeferBlockState[\"Complete\"] = 2] = \"Complete\";\n  /** The error block content is rendered */\n  DeferBlockState[DeferBlockState[\"Error\"] = 3] = \"Error\";\n  return DeferBlockState;\n}(DeferBlockState || {});\n/**\n * Describes the initial state of this defer block instance.\n *\n * Note: this state is internal only and *must* be represented\n * with a number lower than any value in the `DeferBlockState` enum.\n */\nvar DeferBlockInternalState = /*#__PURE__*/function (DeferBlockInternalState) {\n  /** Initial state. Nothing is rendered yet. */\n  DeferBlockInternalState[DeferBlockInternalState[\"Initial\"] = -1] = \"Initial\";\n  return DeferBlockInternalState;\n}(DeferBlockInternalState || {});\nconst NEXT_DEFER_BLOCK_STATE = 0;\n// Note: it's *important* to keep the state in this slot, because this slot\n// is used by runtime logic to differentiate between LViews, LContainers and\n// other types (see `isLView` and `isLContainer` functions). In case of defer\n// blocks, this slot would always be a number.\nconst DEFER_BLOCK_STATE = 1;\nconst STATE_IS_FROZEN_UNTIL = 2;\nconst LOADING_AFTER_CLEANUP_FN = 3;\nconst TRIGGER_CLEANUP_FNS = 4;\nconst PREFETCH_TRIGGER_CLEANUP_FNS = 5;\n/**\n * Options for configuring defer blocks behavior.\n * @publicApi\n * @developerPreview\n */\nvar DeferBlockBehavior = /*#__PURE__*/function (DeferBlockBehavior) {\n  /**\n   * Manual triggering mode for defer blocks. Provides control over when defer blocks render\n   * and which state they render.\n   */\n  DeferBlockBehavior[DeferBlockBehavior[\"Manual\"] = 0] = \"Manual\";\n  /**\n   * Playthrough mode for defer blocks. This mode behaves like defer blocks would in a browser.\n   * This is the default behavior in test environments.\n   */\n  DeferBlockBehavior[DeferBlockBehavior[\"Playthrough\"] = 1] = \"Playthrough\";\n  return DeferBlockBehavior;\n}(DeferBlockBehavior || {});\n/*!\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Registers a cleanup function associated with a prefetching trigger\n * or a regular trigger of a defer block.\n */\nfunction storeTriggerCleanupFn(type, lDetails, cleanupFn) {\n  const key = type === 1 /* TriggerType.Prefetch */ ? PREFETCH_TRIGGER_CLEANUP_FNS : TRIGGER_CLEANUP_FNS;\n  if (lDetails[key] === null) {\n    lDetails[key] = [];\n  }\n  lDetails[key].push(cleanupFn);\n}\n/**\n * Invokes registered cleanup functions either for prefetch or for regular triggers.\n */\nfunction invokeTriggerCleanupFns(type, lDetails) {\n  const key = type === 1 /* TriggerType.Prefetch */ ? PREFETCH_TRIGGER_CLEANUP_FNS : TRIGGER_CLEANUP_FNS;\n  const cleanupFns = lDetails[key];\n  if (cleanupFns !== null) {\n    for (const cleanupFn of cleanupFns) {\n      cleanupFn();\n    }\n    lDetails[key] = null;\n  }\n}\n/**\n * Invokes registered cleanup functions for both prefetch and regular triggers.\n */\nfunction invokeAllTriggerCleanupFns(lDetails) {\n  invokeTriggerCleanupFns(1 /* TriggerType.Prefetch */, lDetails);\n  invokeTriggerCleanupFns(0 /* TriggerType.Regular */, lDetails);\n}\n\n// Public API for Zone\n\n/**\n * Calculates a data slot index for defer block info (either static or\n * instance-specific), given an index of a defer instruction.\n */\nfunction getDeferBlockDataIndex(deferBlockIndex) {\n  // Instance state is located at the *next* position\n  // after the defer block slot in an LView or TView.data.\n  return deferBlockIndex + 1;\n}\n/** Retrieves a defer block state from an LView, given a TNode that represents a block. */\nfunction getLDeferBlockDetails(lView, tNode) {\n  const tView = lView[TVIEW];\n  const slotIndex = getDeferBlockDataIndex(tNode.index);\n  ngDevMode && assertIndexInDeclRange(tView, slotIndex);\n  return lView[slotIndex];\n}\n/** Stores a defer block instance state in LView. */\nfunction setLDeferBlockDetails(lView, deferBlockIndex, lDetails) {\n  const tView = lView[TVIEW];\n  const slotIndex = getDeferBlockDataIndex(deferBlockIndex);\n  ngDevMode && assertIndexInDeclRange(tView, slotIndex);\n  lView[slotIndex] = lDetails;\n}\n/** Retrieves static info about a defer block, given a TView and a TNode that represents a block. */\nfunction getTDeferBlockDetails(tView, tNode) {\n  const slotIndex = getDeferBlockDataIndex(tNode.index);\n  ngDevMode && assertIndexInDeclRange(tView, slotIndex);\n  return tView.data[slotIndex];\n}\n/** Stores a defer block static info in `TView.data`. */\nfunction setTDeferBlockDetails(tView, deferBlockIndex, deferBlockConfig) {\n  const slotIndex = getDeferBlockDataIndex(deferBlockIndex);\n  ngDevMode && assertIndexInDeclRange(tView, slotIndex);\n  tView.data[slotIndex] = deferBlockConfig;\n}\nfunction getTemplateIndexForState(newState, hostLView, tNode) {\n  const tView = hostLView[TVIEW];\n  const tDetails = getTDeferBlockDetails(tView, tNode);\n  switch (newState) {\n    case DeferBlockState.Complete:\n      return tDetails.primaryTmplIndex;\n    case DeferBlockState.Loading:\n      return tDetails.loadingTmplIndex;\n    case DeferBlockState.Error:\n      return tDetails.errorTmplIndex;\n    case DeferBlockState.Placeholder:\n      return tDetails.placeholderTmplIndex;\n    default:\n      ngDevMode && throwError(`Unexpected defer block state: ${newState}`);\n      return null;\n  }\n}\n/**\n * Returns a minimum amount of time that a given state should be rendered for,\n * taking into account `minimum` parameter value. If the `minimum` value is\n * not specified - returns `null`.\n */\nfunction getMinimumDurationForState(tDetails, currentState) {\n  if (currentState === DeferBlockState.Placeholder) {\n    return tDetails.placeholderBlockConfig?.[MINIMUM_SLOT] ?? null;\n  } else if (currentState === DeferBlockState.Loading) {\n    return tDetails.loadingBlockConfig?.[MINIMUM_SLOT] ?? null;\n  }\n  return null;\n}\n/** Retrieves the value of the `after` parameter on the @loading block. */\nfunction getLoadingBlockAfter(tDetails) {\n  return tDetails.loadingBlockConfig?.[LOADING_AFTER_SLOT] ?? null;\n}\n/**\n * Adds downloaded dependencies into a directive or a pipe registry,\n * making sure that a dependency doesn't yet exist in the registry.\n */\nfunction addDepsToRegistry(currentDeps, newDeps) {\n  if (!currentDeps || currentDeps.length === 0) {\n    return newDeps;\n  }\n  const currentDepSet = new Set(currentDeps);\n  for (const dep of newDeps) {\n    currentDepSet.add(dep);\n  }\n  // If `currentDeps` is the same length, there were no new deps and can\n  // return the original array.\n  return currentDeps.length === currentDepSet.size ? currentDeps : Array.from(currentDepSet);\n}\n/** Retrieves a TNode that represents main content of a defer block. */\nfunction getPrimaryBlockTNode(tView, tDetails) {\n  const adjustedIndex = tDetails.primaryTmplIndex + HEADER_OFFSET;\n  return getTNode(tView, adjustedIndex);\n}\n/**\n * Asserts whether all dependencies for a defer block are loaded.\n * Always run this function (in dev mode) before rendering a defer\n * block in completed state.\n */\nfunction assertDeferredDependenciesLoaded(tDetails) {\n  assertEqual(tDetails.loadingState, DeferDependenciesLoadingState.COMPLETE, 'Expecting all deferred dependencies to be loaded.');\n}\n/**\n * Determines if a given value matches the expected structure of a defer block\n *\n * We can safely rely on the primaryTmplIndex because every defer block requires\n * that a primary template exists. All the other template options are optional.\n */\nfunction isTDeferBlockDetails(value) {\n  return value !== null && typeof value === 'object' && typeof value.primaryTmplIndex === 'number';\n}\n\n/*!\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Configuration object used to register passive and capturing events. */\nconst eventListenerOptions = {\n  passive: true,\n  capture: true\n};\n/** Keeps track of the currently-registered `on hover` triggers. */\nconst hoverTriggers = /*#__PURE__*/new WeakMap();\n/** Keeps track of the currently-registered `on interaction` triggers. */\nconst interactionTriggers = /*#__PURE__*/new WeakMap();\n/** Currently-registered `viewport` triggers. */\nconst viewportTriggers = /*#__PURE__*/new WeakMap();\n/** Names of the events considered as interaction events. */\nconst interactionEventNames = ['click', 'keydown'];\n/** Names of the events considered as hover events. */\nconst hoverEventNames = ['mouseenter', 'focusin'];\n/** `IntersectionObserver` used to observe `viewport` triggers. */\nlet intersectionObserver = null;\n/** Number of elements currently observed with `viewport` triggers. */\nlet observedViewportElements = 0;\n/** Object keeping track of registered callbacks for a deferred block trigger. */\nclass DeferEventEntry {\n  constructor() {\n    this.callbacks = new Set();\n    this.listener = () => {\n      for (const callback of this.callbacks) {\n        callback();\n      }\n    };\n  }\n}\n/**\n * Registers an interaction trigger.\n * @param trigger Element that is the trigger.\n * @param callback Callback to be invoked when the trigger is interacted with.\n */\nfunction onInteraction(trigger, callback) {\n  let entry = interactionTriggers.get(trigger);\n  // If this is the first entry for this element, add the listeners.\n  if (!entry) {\n    // Note that managing events centrally like this lends itself well to using global\n    // event delegation. It currently does delegation at the element level, rather than the\n    // document level, because:\n    // 1. Global delegation is the most effective when there are a lot of events being registered\n    // at the same time. Deferred blocks are unlikely to be used in such a way.\n    // 2. Matching events to their target isn't free. For each `click` and `keydown` event we\n    // would have look through all the triggers and check if the target either is the element\n    // itself or it's contained within the element. Given that `click` and `keydown` are some\n    // of the most common events, this may end up introducing a lot of runtime overhead.\n    // 3. We're still registering only two events per element, no matter how many deferred blocks\n    // are referencing it.\n    entry = new DeferEventEntry();\n    interactionTriggers.set(trigger, entry);\n    for (const name of interactionEventNames) {\n      trigger.addEventListener(name, entry.listener, eventListenerOptions);\n    }\n  }\n  entry.callbacks.add(callback);\n  return () => {\n    const {\n      callbacks,\n      listener\n    } = entry;\n    callbacks.delete(callback);\n    if (callbacks.size === 0) {\n      interactionTriggers.delete(trigger);\n      for (const name of interactionEventNames) {\n        trigger.removeEventListener(name, listener, eventListenerOptions);\n      }\n    }\n  };\n}\n/**\n * Registers a hover trigger.\n * @param trigger Element that is the trigger.\n * @param callback Callback to be invoked when the trigger is hovered over.\n */\nfunction onHover(trigger, callback) {\n  let entry = hoverTriggers.get(trigger);\n  // If this is the first entry for this element, add the listener.\n  if (!entry) {\n    entry = new DeferEventEntry();\n    hoverTriggers.set(trigger, entry);\n    for (const name of hoverEventNames) {\n      trigger.addEventListener(name, entry.listener, eventListenerOptions);\n    }\n  }\n  entry.callbacks.add(callback);\n  return () => {\n    const {\n      callbacks,\n      listener\n    } = entry;\n    callbacks.delete(callback);\n    if (callbacks.size === 0) {\n      for (const name of hoverEventNames) {\n        trigger.removeEventListener(name, listener, eventListenerOptions);\n      }\n      hoverTriggers.delete(trigger);\n    }\n  };\n}\n/**\n * Registers a viewport trigger.\n * @param trigger Element that is the trigger.\n * @param callback Callback to be invoked when the trigger comes into the viewport.\n * @param injector Injector that can be used by the trigger to resolve DI tokens.\n */\nfunction onViewport(trigger, callback, injector) {\n  const ngZone = injector.get(NgZone);\n  let entry = viewportTriggers.get(trigger);\n  intersectionObserver = intersectionObserver || ngZone.runOutsideAngular(() => {\n    return new IntersectionObserver(entries => {\n      for (const current of entries) {\n        // Only invoke the callbacks if the specific element is intersecting.\n        if (current.isIntersecting && viewportTriggers.has(current.target)) {\n          ngZone.run(viewportTriggers.get(current.target).listener);\n        }\n      }\n    });\n  });\n  if (!entry) {\n    entry = new DeferEventEntry();\n    ngZone.runOutsideAngular(() => intersectionObserver.observe(trigger));\n    viewportTriggers.set(trigger, entry);\n    observedViewportElements++;\n  }\n  entry.callbacks.add(callback);\n  return () => {\n    // It's possible that a different cleanup callback fully removed this element already.\n    if (!viewportTriggers.has(trigger)) {\n      return;\n    }\n    entry.callbacks.delete(callback);\n    if (entry.callbacks.size === 0) {\n      intersectionObserver?.unobserve(trigger);\n      viewportTriggers.delete(trigger);\n      observedViewportElements--;\n    }\n    if (observedViewportElements === 0) {\n      intersectionObserver?.disconnect();\n      intersectionObserver = null;\n    }\n  };\n}\n/**\n * Helper function to get the LView in which a deferred block's trigger is rendered.\n * @param deferredHostLView LView in which the deferred block is defined.\n * @param deferredTNode TNode defining the deferred block.\n * @param walkUpTimes Number of times to go up in the view hierarchy to find the trigger's view.\n *   A negative value means that the trigger is inside the block's placeholder, while an undefined\n *   value means that the trigger is in the same LView as the deferred block.\n */\nfunction getTriggerLView(deferredHostLView, deferredTNode, walkUpTimes) {\n  // The trigger is in the same view, we don't need to traverse.\n  if (walkUpTimes == null) {\n    return deferredHostLView;\n  }\n  // A positive value or zero means that the trigger is in a parent view.\n  if (walkUpTimes >= 0) {\n    return walkUpViews(walkUpTimes, deferredHostLView);\n  }\n  // If the value is negative, it means that the trigger is inside the placeholder.\n  const deferredContainer = deferredHostLView[deferredTNode.index];\n  ngDevMode && assertLContainer(deferredContainer);\n  const triggerLView = deferredContainer[CONTAINER_HEADER_OFFSET] ?? null;\n  // We need to null check, because the placeholder might not have been rendered yet.\n  if (ngDevMode && triggerLView !== null) {\n    const lDetails = getLDeferBlockDetails(deferredHostLView, deferredTNode);\n    const renderedState = lDetails[DEFER_BLOCK_STATE];\n    assertEqual(renderedState, DeferBlockState.Placeholder, 'Expected a placeholder to be rendered in this defer block.');\n    assertLView(triggerLView);\n  }\n  return triggerLView;\n}\n/**\n * Gets the element that a deferred block's trigger is pointing to.\n * @param triggerLView LView in which the trigger is defined.\n * @param triggerIndex Index at which the trigger element should've been rendered.\n */\nfunction getTriggerElement(triggerLView, triggerIndex) {\n  const element = getNativeByIndex(HEADER_OFFSET + triggerIndex, triggerLView);\n  ngDevMode && assertElement(element);\n  return element;\n}\n/**\n * Registers a DOM-node based trigger.\n * @param initialLView LView in which the defer block is rendered.\n * @param tNode TNode representing the defer block.\n * @param triggerIndex Index at which to find the trigger element.\n * @param walkUpTimes Number of times to go up/down in the view hierarchy to find the trigger.\n * @param registerFn Function that will register the DOM events.\n * @param callback Callback to be invoked when the trigger receives the event that should render\n *     the deferred block.\n * @param type Trigger type to distinguish between regular and prefetch triggers.\n */\nfunction registerDomTrigger(initialLView, tNode, triggerIndex, walkUpTimes, registerFn, callback, type) {\n  const injector = initialLView[INJECTOR];\n  function pollDomTrigger() {\n    // If the initial view was destroyed, we don't need to do anything.\n    if (isDestroyed(initialLView)) {\n      return;\n    }\n    const lDetails = getLDeferBlockDetails(initialLView, tNode);\n    const renderedState = lDetails[DEFER_BLOCK_STATE];\n    // If the block was loaded before the trigger was resolved, we don't need to do anything.\n    if (renderedState !== DeferBlockInternalState.Initial && renderedState !== DeferBlockState.Placeholder) {\n      return;\n    }\n    const triggerLView = getTriggerLView(initialLView, tNode, walkUpTimes);\n    // Keep polling until we resolve the trigger's LView.\n    if (!triggerLView) {\n      internalAfterNextRender(pollDomTrigger, {\n        injector\n      });\n      return;\n    }\n    // It's possible that the trigger's view was destroyed before we resolved the trigger element.\n    if (isDestroyed(triggerLView)) {\n      return;\n    }\n    const element = getTriggerElement(triggerLView, triggerIndex);\n    const cleanup = registerFn(element, () => {\n      if (initialLView !== triggerLView) {\n        removeLViewOnDestroy(triggerLView, cleanup);\n      }\n      callback();\n    }, injector);\n    // The trigger and deferred block might be in different LViews.\n    // For the main LView the cleanup would happen as a part of\n    // `storeTriggerCleanupFn` logic. For trigger LView we register\n    // a cleanup function there to remove event handlers in case an\n    // LView gets destroyed before a trigger is invoked.\n    if (initialLView !== triggerLView) {\n      storeLViewOnDestroy(triggerLView, cleanup);\n    }\n    storeTriggerCleanupFn(type, lDetails, cleanup);\n  }\n  // Begin polling for the trigger.\n  internalAfterNextRender(pollDomTrigger, {\n    injector\n  });\n}\n\n/**\n * Helper function to schedule a callback to be invoked when a browser becomes idle.\n *\n * @param callback A function to be invoked when a browser becomes idle.\n * @param lView LView that hosts an instance of a defer block.\n */\nfunction onIdle(callback, lView) {\n  const injector = lView[INJECTOR];\n  const scheduler = injector.get(IdleScheduler);\n  const cleanupFn = () => scheduler.remove(callback);\n  scheduler.add(callback);\n  return cleanupFn;\n}\n/**\n * Use shims for the `requestIdleCallback` and `cancelIdleCallback` functions for\n * environments where those functions are not available (e.g. Node.js and Safari).\n *\n * Note: we wrap the `requestIdleCallback` call into a function, so that it can be\n * overridden/mocked in test environment and picked up by the runtime code.\n */\nconst _requestIdleCallback = () => typeof requestIdleCallback !== 'undefined' ? requestIdleCallback : setTimeout;\nconst _cancelIdleCallback = () => typeof requestIdleCallback !== 'undefined' ? cancelIdleCallback : clearTimeout;\n/**\n * Helper service to schedule `requestIdleCallback`s for batches of defer blocks,\n * to avoid calling `requestIdleCallback` for each defer block (e.g. if\n * defer blocks are defined inside a for loop).\n */\nlet IdleScheduler = /*#__PURE__*/(() => {\n  class IdleScheduler {\n    constructor() {\n      // Indicates whether current callbacks are being invoked.\n      this.executingCallbacks = false;\n      // Currently scheduled idle callback id.\n      this.idleId = null;\n      // Set of callbacks to be invoked next.\n      this.current = new Set();\n      // Set of callbacks collected while invoking current set of callbacks.\n      // Those callbacks are scheduled for the next idle period.\n      this.deferred = new Set();\n      this.ngZone = inject(NgZone);\n      this.requestIdleCallbackFn = _requestIdleCallback().bind(globalThis);\n      this.cancelIdleCallbackFn = _cancelIdleCallback().bind(globalThis);\n    }\n    add(callback) {\n      const target = this.executingCallbacks ? this.deferred : this.current;\n      target.add(callback);\n      if (this.idleId === null) {\n        this.scheduleIdleCallback();\n      }\n    }\n    remove(callback) {\n      const {\n        current,\n        deferred\n      } = this;\n      current.delete(callback);\n      deferred.delete(callback);\n      // If the last callback was removed and there is a pending\n      // idle callback - cancel it.\n      if (current.size === 0 && deferred.size === 0) {\n        this.cancelIdleCallback();\n      }\n    }\n    scheduleIdleCallback() {\n      const callback = () => {\n        this.cancelIdleCallback();\n        this.executingCallbacks = true;\n        for (const callback of this.current) {\n          callback();\n        }\n        this.current.clear();\n        this.executingCallbacks = false;\n        // If there are any callbacks added during an invocation\n        // of the current ones - make them \"current\" and schedule\n        // a new idle callback.\n        if (this.deferred.size > 0) {\n          for (const callback of this.deferred) {\n            this.current.add(callback);\n          }\n          this.deferred.clear();\n          this.scheduleIdleCallback();\n        }\n      };\n      // Ensure that the callback runs in the NgZone since\n      // the `requestIdleCallback` is not currently patched by Zone.js.\n      this.idleId = this.requestIdleCallbackFn(() => this.ngZone.run(callback));\n    }\n    cancelIdleCallback() {\n      if (this.idleId !== null) {\n        this.cancelIdleCallbackFn(this.idleId);\n        this.idleId = null;\n      }\n    }\n    ngOnDestroy() {\n      this.cancelIdleCallback();\n      this.current.clear();\n      this.deferred.clear();\n    }\n    /** @nocollapse */\n    static {\n      this.ɵprov = ɵɵdefineInjectable({\n        token: IdleScheduler,\n        providedIn: 'root',\n        factory: () => new IdleScheduler()\n      });\n    }\n  }\n  return IdleScheduler;\n})();\n/**\n * Returns a function that captures a provided delay.\n * Invoking the returned function schedules a trigger.\n */\nfunction onTimer(delay) {\n  return (callback, lView) => scheduleTimerTrigger(delay, callback, lView);\n}\n/**\n * Schedules a callback to be invoked after a given timeout.\n *\n * @param delay A number of ms to wait until firing a callback.\n * @param callback A function to be invoked after a timeout.\n * @param lView LView that hosts an instance of a defer block.\n */\nfunction scheduleTimerTrigger(delay, callback, lView) {\n  const injector = lView[INJECTOR];\n  const scheduler = injector.get(TimerScheduler);\n  const cleanupFn = () => scheduler.remove(callback);\n  scheduler.add(delay, callback);\n  return cleanupFn;\n}\n/**\n * Helper service to schedule `setTimeout`s for batches of defer blocks,\n * to avoid calling `setTimeout` for each defer block (e.g. if defer blocks\n * are created inside a for loop).\n */\nlet TimerScheduler = /*#__PURE__*/(() => {\n  class TimerScheduler {\n    constructor() {\n      // Indicates whether current callbacks are being invoked.\n      this.executingCallbacks = false;\n      // Currently scheduled `setTimeout` id.\n      this.timeoutId = null;\n      // When currently scheduled timer would fire.\n      this.invokeTimerAt = null;\n      // List of callbacks to be invoked.\n      // For each callback we also store a timestamp on when the callback\n      // should be invoked. We store timestamps and callback functions\n      // in a flat array to avoid creating new objects for each entry.\n      // [timestamp1, callback1, timestamp2, callback2, ...]\n      this.current = [];\n      // List of callbacks collected while invoking current set of callbacks.\n      // Those callbacks are added to the \"current\" queue at the end of\n      // the current callback invocation. The shape of this list is the same\n      // as the shape of the `current` list.\n      this.deferred = [];\n    }\n    add(delay, callback) {\n      const target = this.executingCallbacks ? this.deferred : this.current;\n      this.addToQueue(target, Date.now() + delay, callback);\n      this.scheduleTimer();\n    }\n    remove(callback) {\n      const {\n        current,\n        deferred\n      } = this;\n      const callbackIndex = this.removeFromQueue(current, callback);\n      if (callbackIndex === -1) {\n        // Try cleaning up deferred queue only in case\n        // we didn't find a callback in the \"current\" queue.\n        this.removeFromQueue(deferred, callback);\n      }\n      // If the last callback was removed and there is a pending timeout - cancel it.\n      if (current.length === 0 && deferred.length === 0) {\n        this.clearTimeout();\n      }\n    }\n    addToQueue(target, invokeAt, callback) {\n      let insertAtIndex = target.length;\n      for (let i = 0; i < target.length; i += 2) {\n        const invokeQueuedCallbackAt = target[i];\n        if (invokeQueuedCallbackAt > invokeAt) {\n          // We've reached a first timer that is scheduled\n          // for a later time than what we are trying to insert.\n          // This is the location at which we need to insert,\n          // no need to iterate further.\n          insertAtIndex = i;\n          break;\n        }\n      }\n      arrayInsert2(target, insertAtIndex, invokeAt, callback);\n    }\n    removeFromQueue(target, callback) {\n      let index = -1;\n      for (let i = 0; i < target.length; i += 2) {\n        const queuedCallback = target[i + 1];\n        if (queuedCallback === callback) {\n          index = i;\n          break;\n        }\n      }\n      if (index > -1) {\n        // Remove 2 elements: a timestamp slot and\n        // the following slot with a callback function.\n        arraySplice(target, index, 2);\n      }\n      return index;\n    }\n    scheduleTimer() {\n      const callback = () => {\n        this.clearTimeout();\n        this.executingCallbacks = true;\n        // Clone the current state of the queue, since it might be altered\n        // as we invoke callbacks.\n        const current = [...this.current];\n        // Invoke callbacks that were scheduled to run before the current time.\n        const now = Date.now();\n        for (let i = 0; i < current.length; i += 2) {\n          const invokeAt = current[i];\n          const callback = current[i + 1];\n          if (invokeAt <= now) {\n            callback();\n          } else {\n            // We've reached a timer that should not be invoked yet.\n            break;\n          }\n        }\n        // The state of the queue might've changed after callbacks invocation,\n        // run the cleanup logic based on the *current* state of the queue.\n        let lastCallbackIndex = -1;\n        for (let i = 0; i < this.current.length; i += 2) {\n          const invokeAt = this.current[i];\n          if (invokeAt <= now) {\n            // Add +1 to account for a callback function that\n            // goes after the timestamp in events array.\n            lastCallbackIndex = i + 1;\n          } else {\n            // We've reached a timer that should not be invoked yet.\n            break;\n          }\n        }\n        if (lastCallbackIndex >= 0) {\n          arraySplice(this.current, 0, lastCallbackIndex + 1);\n        }\n        this.executingCallbacks = false;\n        // If there are any callbacks added during an invocation\n        // of the current ones - move them over to the \"current\"\n        // queue.\n        if (this.deferred.length > 0) {\n          for (let i = 0; i < this.deferred.length; i += 2) {\n            const invokeAt = this.deferred[i];\n            const callback = this.deferred[i + 1];\n            this.addToQueue(this.current, invokeAt, callback);\n          }\n          this.deferred.length = 0;\n        }\n        this.scheduleTimer();\n      };\n      // Avoid running timer callbacks more than once per\n      // average frame duration. This is needed for better\n      // batching and to avoid kicking off excessive change\n      // detection cycles.\n      const FRAME_DURATION_MS = 16; // 1000ms / 60fps\n      if (this.current.length > 0) {\n        const now = Date.now();\n        // First element in the queue points at the timestamp\n        // of the first (earliest) event.\n        const invokeAt = this.current[0];\n        if (this.timeoutId === null ||\n        // Reschedule a timer in case a queue contains an item with\n        // an earlier timestamp and the delta is more than an average\n        // frame duration.\n        this.invokeTimerAt && this.invokeTimerAt - invokeAt > FRAME_DURATION_MS) {\n          // There was a timeout already, but an earlier event was added\n          // into the queue. In this case we drop an old timer and setup\n          // a new one with an updated (smaller) timeout.\n          this.clearTimeout();\n          const timeout = Math.max(invokeAt - now, FRAME_DURATION_MS);\n          this.invokeTimerAt = invokeAt;\n          this.timeoutId = setTimeout(callback, timeout);\n        }\n      }\n    }\n    clearTimeout() {\n      if (this.timeoutId !== null) {\n        clearTimeout(this.timeoutId);\n        this.timeoutId = null;\n      }\n    }\n    ngOnDestroy() {\n      this.clearTimeout();\n      this.current.length = 0;\n      this.deferred.length = 0;\n    }\n    /** @nocollapse */\n    static {\n      this.ɵprov = ɵɵdefineInjectable({\n        token: TimerScheduler,\n        providedIn: 'root',\n        factory: () => new TimerScheduler()\n      });\n    }\n  }\n  return TimerScheduler;\n})();\n/**\n * **INTERNAL**, avoid referencing it in application code.\n * *\n * Injector token that allows to provide `DeferBlockDependencyInterceptor` class\n * implementation.\n *\n * This token is only injected in devMode\n */\nconst DEFER_BLOCK_DEPENDENCY_INTERCEPTOR = /*#__PURE__*/new InjectionToken('DEFER_BLOCK_DEPENDENCY_INTERCEPTOR');\n/**\n * **INTERNAL**, token used for configuring defer block behavior.\n */\nconst DEFER_BLOCK_CONFIG = /*#__PURE__*/new InjectionToken(ngDevMode ? 'DEFER_BLOCK_CONFIG' : '');\n/**\n * Returns whether defer blocks should be triggered.\n *\n * Currently, defer blocks are not triggered on the server,\n * only placeholder content is rendered (if provided).\n */\nfunction shouldTriggerDeferBlock(injector) {\n  const config = injector.get(DEFER_BLOCK_CONFIG, null, {\n    optional: true\n  });\n  if (config?.behavior === DeferBlockBehavior.Manual) {\n    return false;\n  }\n  return isPlatformBrowser(injector);\n}\n/**\n * Reference to the timer-based scheduler implementation of defer block state\n * rendering method. It's used to make timer-based scheduling tree-shakable.\n * If `minimum` or `after` parameters are used, compiler generates an extra\n * argument for the `ɵɵdefer` instruction, which references a timer-based\n * implementation.\n */\nlet applyDeferBlockStateWithSchedulingImpl = null;\n/**\n * Enables timer-related scheduling if `after` or `minimum` parameters are setup\n * on the `@loading` or `@placeholder` blocks.\n */\nfunction ɵɵdeferEnableTimerScheduling(tView, tDetails, placeholderConfigIndex, loadingConfigIndex) {\n  const tViewConsts = tView.consts;\n  if (placeholderConfigIndex != null) {\n    tDetails.placeholderBlockConfig = getConstant(tViewConsts, placeholderConfigIndex);\n  }\n  if (loadingConfigIndex != null) {\n    tDetails.loadingBlockConfig = getConstant(tViewConsts, loadingConfigIndex);\n  }\n  // Enable implementation that supports timer-based scheduling.\n  if (applyDeferBlockStateWithSchedulingImpl === null) {\n    applyDeferBlockStateWithSchedulingImpl = applyDeferBlockStateWithScheduling;\n  }\n}\n/**\n * Creates runtime data structures for defer blocks.\n *\n * @param index Index of the `defer` instruction.\n * @param primaryTmplIndex Index of the template with the primary block content.\n * @param dependencyResolverFn Function that contains dependencies for this defer block.\n * @param loadingTmplIndex Index of the template with the loading block content.\n * @param placeholderTmplIndex Index of the template with the placeholder block content.\n * @param errorTmplIndex Index of the template with the error block content.\n * @param loadingConfigIndex Index in the constants array of the configuration of the loading.\n *     block.\n * @param placeholderConfigIndex Index in the constants array of the configuration of the\n *     placeholder block.\n * @param enableTimerScheduling Function that enables timer-related scheduling if `after`\n *     or `minimum` parameters are setup on the `@loading` or `@placeholder` blocks.\n *\n * @codeGenApi\n */\nfunction ɵɵdefer(index, primaryTmplIndex, dependencyResolverFn, loadingTmplIndex, placeholderTmplIndex, errorTmplIndex, loadingConfigIndex, placeholderConfigIndex, enableTimerScheduling) {\n  const lView = getLView();\n  const tView = getTView();\n  const adjustedIndex = index + HEADER_OFFSET;\n  ɵɵtemplate(index, null, 0, 0);\n  if (tView.firstCreatePass) {\n    performanceMarkFeature('NgDefer');\n    const tDetails = {\n      primaryTmplIndex,\n      loadingTmplIndex: loadingTmplIndex ?? null,\n      placeholderTmplIndex: placeholderTmplIndex ?? null,\n      errorTmplIndex: errorTmplIndex ?? null,\n      placeholderBlockConfig: null,\n      loadingBlockConfig: null,\n      dependencyResolverFn: dependencyResolverFn ?? null,\n      loadingState: DeferDependenciesLoadingState.NOT_STARTED,\n      loadingPromise: null,\n      providers: null\n    };\n    enableTimerScheduling?.(tView, tDetails, placeholderConfigIndex, loadingConfigIndex);\n    setTDeferBlockDetails(tView, adjustedIndex, tDetails);\n  }\n  const tNode = getCurrentTNode();\n  const lContainer = lView[adjustedIndex];\n  // If hydration is enabled, looks up dehydrated views in the DOM\n  // using hydration annotation info and stores those views on LContainer.\n  // In client-only mode, this function is a noop.\n  populateDehydratedViewsInLContainer(lContainer, tNode, lView);\n  // Init instance-specific defer details and store it.\n  const lDetails = [null,\n  // NEXT_DEFER_BLOCK_STATE\n  DeferBlockInternalState.Initial,\n  // DEFER_BLOCK_STATE\n  null,\n  // STATE_IS_FROZEN_UNTIL\n  null,\n  // LOADING_AFTER_CLEANUP_FN\n  null,\n  // TRIGGER_CLEANUP_FNS\n  null // PREFETCH_TRIGGER_CLEANUP_FNS\n  ];\n  setLDeferBlockDetails(lView, adjustedIndex, lDetails);\n  const cleanupTriggersFn = () => invokeAllTriggerCleanupFns(lDetails);\n  // When defer block is triggered - unsubscribe from LView destroy cleanup.\n  storeTriggerCleanupFn(0 /* TriggerType.Regular */, lDetails, () => removeLViewOnDestroy(lView, cleanupTriggersFn));\n  storeLViewOnDestroy(lView, cleanupTriggersFn);\n}\n/**\n * Loads defer block dependencies when a trigger value becomes truthy.\n * @codeGenApi\n */\nfunction ɵɵdeferWhen(rawValue) {\n  const lView = getLView();\n  const bindingIndex = nextBindingIndex();\n  if (bindingUpdated(lView, bindingIndex, rawValue)) {\n    const prevConsumer = setActiveConsumer$1(null);\n    try {\n      const value = Boolean(rawValue); // handle truthy or falsy values\n      const tNode = getSelectedTNode();\n      const lDetails = getLDeferBlockDetails(lView, tNode);\n      const renderedState = lDetails[DEFER_BLOCK_STATE];\n      if (value === false && renderedState === DeferBlockInternalState.Initial) {\n        // If nothing is rendered yet, render a placeholder (if defined).\n        renderPlaceholder(lView, tNode);\n      } else if (value === true && (renderedState === DeferBlockInternalState.Initial || renderedState === DeferBlockState.Placeholder)) {\n        // The `when` condition has changed to `true`, trigger defer block loading\n        // if the block is either in initial (nothing is rendered) or a placeholder\n        // state.\n        triggerDeferBlock(lView, tNode);\n      }\n    } finally {\n      setActiveConsumer$1(prevConsumer);\n    }\n  }\n}\n/**\n * Prefetches the deferred content when a value becomes truthy.\n * @codeGenApi\n */\nfunction ɵɵdeferPrefetchWhen(rawValue) {\n  const lView = getLView();\n  const bindingIndex = nextBindingIndex();\n  if (bindingUpdated(lView, bindingIndex, rawValue)) {\n    const prevConsumer = setActiveConsumer$1(null);\n    try {\n      const value = Boolean(rawValue); // handle truthy or falsy values\n      const tView = lView[TVIEW];\n      const tNode = getSelectedTNode();\n      const tDetails = getTDeferBlockDetails(tView, tNode);\n      if (value === true && tDetails.loadingState === DeferDependenciesLoadingState.NOT_STARTED) {\n        // If loading has not been started yet, trigger it now.\n        triggerPrefetching(tDetails, lView, tNode);\n      }\n    } finally {\n      setActiveConsumer$1(prevConsumer);\n    }\n  }\n}\n/**\n * Sets up logic to handle the `on idle` deferred trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferOnIdle() {\n  scheduleDelayedTrigger(onIdle);\n}\n/**\n * Sets up logic to handle the `prefetch on idle` deferred trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferPrefetchOnIdle() {\n  scheduleDelayedPrefetching(onIdle);\n}\n/**\n * Sets up logic to handle the `on immediate` deferred trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferOnImmediate() {\n  const lView = getLView();\n  const tNode = getCurrentTNode();\n  const tView = lView[TVIEW];\n  const injector = lView[INJECTOR];\n  const tDetails = getTDeferBlockDetails(tView, tNode);\n  // Render placeholder block only if loading template is not present and we're on\n  // the client to avoid content flickering, since it would be immediately replaced\n  // by the loading block.\n  if (!shouldTriggerDeferBlock(injector) || tDetails.loadingTmplIndex === null) {\n    renderPlaceholder(lView, tNode);\n  }\n  triggerDeferBlock(lView, tNode);\n}\n/**\n * Sets up logic to handle the `prefetch on immediate` deferred trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferPrefetchOnImmediate() {\n  const lView = getLView();\n  const tNode = getCurrentTNode();\n  const tView = lView[TVIEW];\n  const tDetails = getTDeferBlockDetails(tView, tNode);\n  if (tDetails.loadingState === DeferDependenciesLoadingState.NOT_STARTED) {\n    triggerResourceLoading(tDetails, lView, tNode);\n  }\n}\n/**\n * Creates runtime data structures for the `on timer` deferred trigger.\n * @param delay Amount of time to wait before loading the content.\n * @codeGenApi\n */\nfunction ɵɵdeferOnTimer(delay) {\n  scheduleDelayedTrigger(onTimer(delay));\n}\n/**\n * Creates runtime data structures for the `prefetch on timer` deferred trigger.\n * @param delay Amount of time to wait before prefetching the content.\n * @codeGenApi\n */\nfunction ɵɵdeferPrefetchOnTimer(delay) {\n  scheduleDelayedPrefetching(onTimer(delay));\n}\n/**\n * Creates runtime data structures for the `on hover` deferred trigger.\n * @param triggerIndex Index at which to find the trigger element.\n * @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferOnHover(triggerIndex, walkUpTimes) {\n  const lView = getLView();\n  const tNode = getCurrentTNode();\n  renderPlaceholder(lView, tNode);\n  registerDomTrigger(lView, tNode, triggerIndex, walkUpTimes, onHover, () => triggerDeferBlock(lView, tNode), 0 /* TriggerType.Regular */);\n}\n/**\n * Creates runtime data structures for the `prefetch on hover` deferred trigger.\n * @param triggerIndex Index at which to find the trigger element.\n * @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferPrefetchOnHover(triggerIndex, walkUpTimes) {\n  const lView = getLView();\n  const tNode = getCurrentTNode();\n  const tView = lView[TVIEW];\n  const tDetails = getTDeferBlockDetails(tView, tNode);\n  if (tDetails.loadingState === DeferDependenciesLoadingState.NOT_STARTED) {\n    registerDomTrigger(lView, tNode, triggerIndex, walkUpTimes, onHover, () => triggerPrefetching(tDetails, lView, tNode), 1 /* TriggerType.Prefetch */);\n  }\n}\n/**\n * Creates runtime data structures for the `on interaction` deferred trigger.\n * @param triggerIndex Index at which to find the trigger element.\n * @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferOnInteraction(triggerIndex, walkUpTimes) {\n  const lView = getLView();\n  const tNode = getCurrentTNode();\n  renderPlaceholder(lView, tNode);\n  registerDomTrigger(lView, tNode, triggerIndex, walkUpTimes, onInteraction, () => triggerDeferBlock(lView, tNode), 0 /* TriggerType.Regular */);\n}\n/**\n * Creates runtime data structures for the `prefetch on interaction` deferred trigger.\n * @param triggerIndex Index at which to find the trigger element.\n * @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferPrefetchOnInteraction(triggerIndex, walkUpTimes) {\n  const lView = getLView();\n  const tNode = getCurrentTNode();\n  const tView = lView[TVIEW];\n  const tDetails = getTDeferBlockDetails(tView, tNode);\n  if (tDetails.loadingState === DeferDependenciesLoadingState.NOT_STARTED) {\n    registerDomTrigger(lView, tNode, triggerIndex, walkUpTimes, onInteraction, () => triggerPrefetching(tDetails, lView, tNode), 1 /* TriggerType.Prefetch */);\n  }\n}\n/**\n * Creates runtime data structures for the `on viewport` deferred trigger.\n * @param triggerIndex Index at which to find the trigger element.\n * @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferOnViewport(triggerIndex, walkUpTimes) {\n  const lView = getLView();\n  const tNode = getCurrentTNode();\n  renderPlaceholder(lView, tNode);\n  registerDomTrigger(lView, tNode, triggerIndex, walkUpTimes, onViewport, () => triggerDeferBlock(lView, tNode), 0 /* TriggerType.Regular */);\n}\n/**\n * Creates runtime data structures for the `prefetch on viewport` deferred trigger.\n * @param triggerIndex Index at which to find the trigger element.\n * @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferPrefetchOnViewport(triggerIndex, walkUpTimes) {\n  const lView = getLView();\n  const tNode = getCurrentTNode();\n  const tView = lView[TVIEW];\n  const tDetails = getTDeferBlockDetails(tView, tNode);\n  if (tDetails.loadingState === DeferDependenciesLoadingState.NOT_STARTED) {\n    registerDomTrigger(lView, tNode, triggerIndex, walkUpTimes, onViewport, () => triggerPrefetching(tDetails, lView, tNode), 1 /* TriggerType.Prefetch */);\n  }\n}\n/********** Helper functions **********/\n/**\n * Schedules triggering of a defer block for `on idle` and `on timer` conditions.\n */\nfunction scheduleDelayedTrigger(scheduleFn) {\n  const lView = getLView();\n  const tNode = getCurrentTNode();\n  renderPlaceholder(lView, tNode);\n  // Only trigger the scheduled trigger on the browser\n  // since we don't want to delay the server response.\n  if (isPlatformBrowser(lView[INJECTOR])) {\n    const cleanupFn = scheduleFn(() => triggerDeferBlock(lView, tNode), lView);\n    const lDetails = getLDeferBlockDetails(lView, tNode);\n    storeTriggerCleanupFn(0 /* TriggerType.Regular */, lDetails, cleanupFn);\n  }\n}\n/**\n * Schedules prefetching for `on idle` and `on timer` triggers.\n *\n * @param scheduleFn A function that does the scheduling.\n */\nfunction scheduleDelayedPrefetching(scheduleFn) {\n  const lView = getLView();\n  // Only trigger the scheduled trigger on the browser\n  // since we don't want to delay the server response.\n  if (isPlatformBrowser(lView[INJECTOR])) {\n    const tNode = getCurrentTNode();\n    const tView = lView[TVIEW];\n    const tDetails = getTDeferBlockDetails(tView, tNode);\n    if (tDetails.loadingState === DeferDependenciesLoadingState.NOT_STARTED) {\n      const lDetails = getLDeferBlockDetails(lView, tNode);\n      const prefetch = () => triggerPrefetching(tDetails, lView, tNode);\n      const cleanupFn = scheduleFn(prefetch, lView);\n      storeTriggerCleanupFn(1 /* TriggerType.Prefetch */, lDetails, cleanupFn);\n    }\n  }\n}\n/**\n * Transitions a defer block to the new state. Updates the  necessary\n * data structures and renders corresponding block.\n *\n * @param newState New state that should be applied to the defer block.\n * @param tNode TNode that represents a defer block.\n * @param lContainer Represents an instance of a defer block.\n * @param skipTimerScheduling Indicates that `@loading` and `@placeholder` block\n *   should be rendered immediately, even if they have `after` or `minimum` config\n *   options setup. This flag to needed for testing APIs to transition defer block\n *   between states via `DeferFixture.render` method.\n */\nfunction renderDeferBlockState(newState, tNode, lContainer, skipTimerScheduling = false) {\n  const hostLView = lContainer[PARENT];\n  const hostTView = hostLView[TVIEW];\n  // Check if this view is not destroyed. Since the loading process was async,\n  // the view might end up being destroyed by the time rendering happens.\n  if (isDestroyed(hostLView)) return;\n  // Make sure this TNode belongs to TView that represents host LView.\n  ngDevMode && assertTNodeForLView(tNode, hostLView);\n  const lDetails = getLDeferBlockDetails(hostLView, tNode);\n  ngDevMode && assertDefined(lDetails, 'Expected a defer block state defined');\n  const currentState = lDetails[DEFER_BLOCK_STATE];\n  if (isValidStateChange(currentState, newState) && isValidStateChange(lDetails[NEXT_DEFER_BLOCK_STATE] ?? -1, newState)) {\n    const injector = hostLView[INJECTOR];\n    const tDetails = getTDeferBlockDetails(hostTView, tNode);\n    // Skips scheduling on the server since it can delay the server response.\n    const needsScheduling = !skipTimerScheduling && isPlatformBrowser(injector) && (getLoadingBlockAfter(tDetails) !== null || getMinimumDurationForState(tDetails, DeferBlockState.Loading) !== null || getMinimumDurationForState(tDetails, DeferBlockState.Placeholder));\n    if (ngDevMode && needsScheduling) {\n      assertDefined(applyDeferBlockStateWithSchedulingImpl, 'Expected scheduling function to be defined');\n    }\n    const applyStateFn = needsScheduling ? applyDeferBlockStateWithSchedulingImpl : applyDeferBlockState;\n    try {\n      applyStateFn(newState, lDetails, lContainer, tNode, hostLView);\n    } catch (error) {\n      handleError(hostLView, error);\n    }\n  }\n}\n/**\n * Detects whether an injector is an instance of a `ChainedInjector`,\n * created based on the `OutletInjector`.\n */\nfunction isRouterOutletInjector(currentInjector) {\n  return currentInjector instanceof ChainedInjector && typeof currentInjector.injector.__ngOutletInjector === 'function';\n}\n/**\n * Creates an instance of the `OutletInjector` using a private factory\n * function available on the `OutletInjector` class.\n *\n * @param parentOutletInjector Parent OutletInjector, which should be used\n *                             to produce a new instance.\n * @param parentInjector An Injector, which should be used as a parent one\n *                       for a newly created `OutletInjector` instance.\n */\nfunction createRouterOutletInjector(parentOutletInjector, parentInjector) {\n  const outletInjector = parentOutletInjector.injector;\n  return outletInjector.__ngOutletInjector(parentInjector);\n}\n/**\n * Applies changes to the DOM to reflect a given state.\n */\nfunction applyDeferBlockState(newState, lDetails, lContainer, tNode, hostLView) {\n  const stateTmplIndex = getTemplateIndexForState(newState, hostLView, tNode);\n  if (stateTmplIndex !== null) {\n    lDetails[DEFER_BLOCK_STATE] = newState;\n    const hostTView = hostLView[TVIEW];\n    const adjustedIndex = stateTmplIndex + HEADER_OFFSET;\n    const activeBlockTNode = getTNode(hostTView, adjustedIndex);\n    // There is only 1 view that can be present in an LContainer that\n    // represents a defer block, so always refer to the first one.\n    const viewIndex = 0;\n    removeLViewFromLContainer(lContainer, viewIndex);\n    let injector;\n    if (newState === DeferBlockState.Complete) {\n      // When we render a defer block in completed state, there might be\n      // newly loaded standalone components used within the block, which may\n      // import NgModules with providers. In order to make those providers\n      // available for components declared in that NgModule, we create an instance\n      // of environment injector to host those providers and pass this injector\n      // to the logic that creates a view.\n      const tDetails = getTDeferBlockDetails(hostTView, tNode);\n      const providers = tDetails.providers;\n      if (providers && providers.length > 0) {\n        const parentInjector = hostLView[INJECTOR];\n        // Note: we have a special case for Router's `OutletInjector`,\n        // since it's not an instance of the `EnvironmentInjector`, so\n        // we can't inject it. Once the `OutletInjector` is replaced\n        // with the `EnvironmentInjector` in Router's code, this special\n        // handling can be removed.\n        const isParentOutletInjector = isRouterOutletInjector(parentInjector);\n        const parentEnvInjector = isParentOutletInjector ? parentInjector : parentInjector.get(EnvironmentInjector);\n        injector = parentEnvInjector.get(CachedInjectorService).getOrCreateInjector(tDetails, parentEnvInjector, providers, ngDevMode ? 'DeferBlock Injector' : '');\n        // Note: this is a continuation of the special case for Router's `OutletInjector`.\n        // Since the `OutletInjector` handles `ActivatedRoute` and `ChildrenOutletContexts`\n        // dynamically (i.e. their values are not really stored statically in an injector),\n        // we need to \"wrap\" a defer injector into another `OutletInjector`, so we retain\n        // the dynamic resolution of the mentioned tokens.\n        if (isParentOutletInjector) {\n          injector = createRouterOutletInjector(parentInjector, injector);\n        }\n      }\n    }\n    const dehydratedView = findMatchingDehydratedView(lContainer, activeBlockTNode.tView.ssrId);\n    const embeddedLView = createAndRenderEmbeddedLView(hostLView, activeBlockTNode, null, {\n      dehydratedView,\n      injector\n    });\n    addLViewToLContainer(lContainer, embeddedLView, viewIndex, shouldAddViewToDom(activeBlockTNode, dehydratedView));\n    markViewDirty(embeddedLView);\n  }\n}\n/**\n * Extends the `applyDeferBlockState` with timer-based scheduling.\n * This function becomes available on a page if there are defer blocks\n * that use `after` or `minimum` parameters in the `@loading` or\n * `@placeholder` blocks.\n */\nfunction applyDeferBlockStateWithScheduling(newState, lDetails, lContainer, tNode, hostLView) {\n  const now = Date.now();\n  const hostTView = hostLView[TVIEW];\n  const tDetails = getTDeferBlockDetails(hostTView, tNode);\n  if (lDetails[STATE_IS_FROZEN_UNTIL] === null || lDetails[STATE_IS_FROZEN_UNTIL] <= now) {\n    lDetails[STATE_IS_FROZEN_UNTIL] = null;\n    const loadingAfter = getLoadingBlockAfter(tDetails);\n    const inLoadingAfterPhase = lDetails[LOADING_AFTER_CLEANUP_FN] !== null;\n    if (newState === DeferBlockState.Loading && loadingAfter !== null && !inLoadingAfterPhase) {\n      // Trying to render loading, but it has an `after` config,\n      // so schedule an update action after a timeout.\n      lDetails[NEXT_DEFER_BLOCK_STATE] = newState;\n      const cleanupFn = scheduleDeferBlockUpdate(loadingAfter, lDetails, tNode, lContainer, hostLView);\n      lDetails[LOADING_AFTER_CLEANUP_FN] = cleanupFn;\n    } else {\n      // If we transition to a complete or an error state and there is a pending\n      // operation to render loading after a timeout - invoke a cleanup operation,\n      // which stops the timer.\n      if (newState > DeferBlockState.Loading && inLoadingAfterPhase) {\n        lDetails[LOADING_AFTER_CLEANUP_FN]();\n        lDetails[LOADING_AFTER_CLEANUP_FN] = null;\n        lDetails[NEXT_DEFER_BLOCK_STATE] = null;\n      }\n      applyDeferBlockState(newState, lDetails, lContainer, tNode, hostLView);\n      const duration = getMinimumDurationForState(tDetails, newState);\n      if (duration !== null) {\n        lDetails[STATE_IS_FROZEN_UNTIL] = now + duration;\n        scheduleDeferBlockUpdate(duration, lDetails, tNode, lContainer, hostLView);\n      }\n    }\n  } else {\n    // We are still rendering the previous state.\n    // Update the `NEXT_DEFER_BLOCK_STATE`, which would be\n    // picked up once it's time to transition to the next state.\n    lDetails[NEXT_DEFER_BLOCK_STATE] = newState;\n  }\n}\n/**\n * Schedules an update operation after a specified timeout.\n */\nfunction scheduleDeferBlockUpdate(timeout, lDetails, tNode, lContainer, hostLView) {\n  const callback = () => {\n    const nextState = lDetails[NEXT_DEFER_BLOCK_STATE];\n    lDetails[STATE_IS_FROZEN_UNTIL] = null;\n    lDetails[NEXT_DEFER_BLOCK_STATE] = null;\n    if (nextState !== null) {\n      renderDeferBlockState(nextState, tNode, lContainer);\n    }\n  };\n  return scheduleTimerTrigger(timeout, callback, hostLView);\n}\n/**\n * Checks whether we can transition to the next state.\n *\n * We transition to the next state if the previous state was represented\n * with a number that is less than the next state. For example, if the current\n * state is \"loading\" (represented as `1`), we should not show a placeholder\n * (represented as `0`), but we can show a completed state (represented as `2`)\n * or an error state (represented as `3`).\n */\nfunction isValidStateChange(currentState, newState) {\n  return currentState < newState;\n}\n/**\n * Trigger prefetching of dependencies for a defer block.\n *\n * @param tDetails Static information about this defer block.\n * @param lView LView of a host view.\n */\nfunction triggerPrefetching(tDetails, lView, tNode) {\n  if (lView[INJECTOR] && shouldTriggerDeferBlock(lView[INJECTOR])) {\n    triggerResourceLoading(tDetails, lView, tNode);\n  }\n}\n/**\n * Trigger loading of defer block dependencies if the process hasn't started yet.\n *\n * @param tDetails Static information about this defer block.\n * @param lView LView of a host view.\n */\nfunction triggerResourceLoading(tDetails, lView, tNode) {\n  const injector = lView[INJECTOR];\n  const tView = lView[TVIEW];\n  if (tDetails.loadingState !== DeferDependenciesLoadingState.NOT_STARTED) {\n    // If the loading status is different from initial one, it means that\n    // the loading of dependencies is in progress and there is nothing to do\n    // in this function. All details can be obtained from the `tDetails` object.\n    return tDetails.loadingPromise ?? Promise.resolve();\n  }\n  const lDetails = getLDeferBlockDetails(lView, tNode);\n  const primaryBlockTNode = getPrimaryBlockTNode(tView, tDetails);\n  // Switch from NOT_STARTED -> IN_PROGRESS state.\n  tDetails.loadingState = DeferDependenciesLoadingState.IN_PROGRESS;\n  // Prefetching is triggered, cleanup all registered prefetch triggers.\n  invokeTriggerCleanupFns(1 /* TriggerType.Prefetch */, lDetails);\n  let dependenciesFn = tDetails.dependencyResolverFn;\n  if (ngDevMode) {\n    // Check if dependency function interceptor is configured.\n    const deferDependencyInterceptor = injector.get(DEFER_BLOCK_DEPENDENCY_INTERCEPTOR, null, {\n      optional: true\n    });\n    if (deferDependencyInterceptor) {\n      dependenciesFn = deferDependencyInterceptor.intercept(dependenciesFn);\n    }\n  }\n  // Indicate that an application is not stable and has a pending task.\n  const pendingTasks = injector.get(PendingTasks);\n  const taskId = pendingTasks.add();\n  // The `dependenciesFn` might be `null` when all dependencies within\n  // a given defer block were eagerly referenced elsewhere in a file,\n  // thus no dynamic `import()`s were produced.\n  if (!dependenciesFn) {\n    tDetails.loadingPromise = Promise.resolve().then(() => {\n      tDetails.loadingPromise = null;\n      tDetails.loadingState = DeferDependenciesLoadingState.COMPLETE;\n      pendingTasks.remove(taskId);\n    });\n    return tDetails.loadingPromise;\n  }\n  // Start downloading of defer block dependencies.\n  tDetails.loadingPromise = Promise.allSettled(dependenciesFn()).then(results => {\n    let failed = false;\n    const directiveDefs = [];\n    const pipeDefs = [];\n    for (const result of results) {\n      if (result.status === 'fulfilled') {\n        const dependency = result.value;\n        const directiveDef = getComponentDef(dependency) || getDirectiveDef(dependency);\n        if (directiveDef) {\n          directiveDefs.push(directiveDef);\n        } else {\n          const pipeDef = getPipeDef$1(dependency);\n          if (pipeDef) {\n            pipeDefs.push(pipeDef);\n          }\n        }\n      } else {\n        failed = true;\n        break;\n      }\n    }\n    // Loading is completed, we no longer need the loading Promise\n    // and a pending task should also be removed.\n    tDetails.loadingPromise = null;\n    pendingTasks.remove(taskId);\n    if (failed) {\n      tDetails.loadingState = DeferDependenciesLoadingState.FAILED;\n      if (tDetails.errorTmplIndex === null) {\n        const templateLocation = getTemplateLocationDetails(lView);\n        const error = new RuntimeError(750 /* RuntimeErrorCode.DEFER_LOADING_FAILED */, ngDevMode && 'Loading dependencies for `@defer` block failed, ' + `but no \\`@error\\` block was configured${templateLocation}. ` + 'Consider using the `@error` block to render an error state.');\n        handleError(lView, error);\n      }\n    } else {\n      tDetails.loadingState = DeferDependenciesLoadingState.COMPLETE;\n      // Update directive and pipe registries to add newly downloaded dependencies.\n      const primaryBlockTView = primaryBlockTNode.tView;\n      if (directiveDefs.length > 0) {\n        primaryBlockTView.directiveRegistry = addDepsToRegistry(primaryBlockTView.directiveRegistry, directiveDefs);\n        // Extract providers from all NgModules imported by standalone components\n        // used within this defer block.\n        const directiveTypes = directiveDefs.map(def => def.type);\n        const providers = internalImportProvidersFrom(false, ...directiveTypes);\n        tDetails.providers = providers;\n      }\n      if (pipeDefs.length > 0) {\n        primaryBlockTView.pipeRegistry = addDepsToRegistry(primaryBlockTView.pipeRegistry, pipeDefs);\n      }\n    }\n  });\n  return tDetails.loadingPromise;\n}\n/** Utility function to render placeholder content (if present) */\nfunction renderPlaceholder(lView, tNode) {\n  const lContainer = lView[tNode.index];\n  ngDevMode && assertLContainer(lContainer);\n  renderDeferBlockState(DeferBlockState.Placeholder, tNode, lContainer);\n}\n/**\n * Subscribes to the \"loading\" Promise and renders corresponding defer sub-block,\n * based on the loading results.\n *\n * @param lContainer Represents an instance of a defer block.\n * @param tNode Represents defer block info shared across all instances.\n */\nfunction renderDeferStateAfterResourceLoading(tDetails, tNode, lContainer) {\n  ngDevMode && assertDefined(tDetails.loadingPromise, 'Expected loading Promise to exist on this defer block');\n  tDetails.loadingPromise.then(() => {\n    if (tDetails.loadingState === DeferDependenciesLoadingState.COMPLETE) {\n      ngDevMode && assertDeferredDependenciesLoaded(tDetails);\n      // Everything is loaded, show the primary block content\n      renderDeferBlockState(DeferBlockState.Complete, tNode, lContainer);\n    } else if (tDetails.loadingState === DeferDependenciesLoadingState.FAILED) {\n      renderDeferBlockState(DeferBlockState.Error, tNode, lContainer);\n    }\n  });\n}\n/**\n * Attempts to trigger loading of defer block dependencies.\n * If the block is already in a loading, completed or an error state -\n * no additional actions are taken.\n */\nfunction triggerDeferBlock(lView, tNode) {\n  const tView = lView[TVIEW];\n  const lContainer = lView[tNode.index];\n  const injector = lView[INJECTOR];\n  ngDevMode && assertLContainer(lContainer);\n  if (!shouldTriggerDeferBlock(injector)) return;\n  const lDetails = getLDeferBlockDetails(lView, tNode);\n  const tDetails = getTDeferBlockDetails(tView, tNode);\n  // Defer block is triggered, cleanup all registered trigger functions.\n  invokeAllTriggerCleanupFns(lDetails);\n  switch (tDetails.loadingState) {\n    case DeferDependenciesLoadingState.NOT_STARTED:\n      renderDeferBlockState(DeferBlockState.Loading, tNode, lContainer);\n      triggerResourceLoading(tDetails, lView, tNode);\n      // The `loadingState` might have changed to \"loading\".\n      if (tDetails.loadingState === DeferDependenciesLoadingState.IN_PROGRESS) {\n        renderDeferStateAfterResourceLoading(tDetails, tNode, lContainer);\n      }\n      break;\n    case DeferDependenciesLoadingState.IN_PROGRESS:\n      renderDeferBlockState(DeferBlockState.Loading, tNode, lContainer);\n      renderDeferStateAfterResourceLoading(tDetails, tNode, lContainer);\n      break;\n    case DeferDependenciesLoadingState.COMPLETE:\n      ngDevMode && assertDeferredDependenciesLoaded(tDetails);\n      renderDeferBlockState(DeferBlockState.Complete, tNode, lContainer);\n      break;\n    case DeferDependenciesLoadingState.FAILED:\n      renderDeferBlockState(DeferBlockState.Error, tNode, lContainer);\n      break;\n    default:\n      if (ngDevMode) {\n        throwError('Unknown defer block state');\n      }\n  }\n}\n\n/**\n * Updates the value of or removes a bound attribute on an Element.\n *\n * Used in the case of `[attr.title]=\"value\"`\n *\n * @param name name The name of the attribute.\n * @param value value The attribute is removed when value is `null` or `undefined`.\n *                  Otherwise the attribute value is set to the stringified value.\n * @param sanitizer An optional function used to sanitize the value.\n * @param namespace Optional namespace to use when setting the attribute.\n *\n * @codeGenApi\n */\nfunction ɵɵattribute(name, value, sanitizer, namespace) {\n  const lView = getLView();\n  const bindingIndex = nextBindingIndex();\n  if (bindingUpdated(lView, bindingIndex, value)) {\n    const tView = getTView();\n    const tNode = getSelectedTNode();\n    elementAttributeInternal(tNode, lView, name, value, sanitizer, namespace);\n    ngDevMode && storePropertyBindingMetadata(tView.data, tNode, 'attr.' + name, bindingIndex);\n  }\n  return ɵɵattribute;\n}\n\n/**\n * Create interpolation bindings with a variable number of expressions.\n *\n * If there are 1 to 8 expressions `interpolation1()` to `interpolation8()` should be used instead.\n * Those are faster because there is no need to create an array of expressions and iterate over it.\n *\n * `values`:\n * - has static text at even indexes,\n * - has evaluated expressions at odd indexes.\n *\n * Returns the concatenated string when any of the arguments changes, `NO_CHANGE` otherwise.\n */\nfunction interpolationV(lView, values) {\n  ngDevMode && assertLessThan(2, values.length, 'should have at least 3 values');\n  ngDevMode && assertEqual(values.length % 2, 1, 'should have an odd number of values');\n  let isBindingUpdated = false;\n  let bindingIndex = getBindingIndex();\n  for (let i = 1; i < values.length; i += 2) {\n    // Check if bindings (odd indexes) have changed\n    isBindingUpdated = bindingUpdated(lView, bindingIndex++, values[i]) || isBindingUpdated;\n  }\n  setBindingIndex(bindingIndex);\n  if (!isBindingUpdated) {\n    return NO_CHANGE;\n  }\n  // Build the updated content\n  let content = values[0];\n  for (let i = 1; i < values.length; i += 2) {\n    content += renderStringify(values[i]) + values[i + 1];\n  }\n  return content;\n}\n/**\n * Creates an interpolation binding with 1 expression.\n *\n * @param prefix static value used for concatenation only.\n * @param v0 value checked for change.\n * @param suffix static value used for concatenation only.\n */\nfunction interpolation1(lView, prefix, v0, suffix) {\n  const different = bindingUpdated(lView, nextBindingIndex(), v0);\n  return different ? prefix + renderStringify(v0) + suffix : NO_CHANGE;\n}\n/**\n * Creates an interpolation binding with 2 expressions.\n */\nfunction interpolation2(lView, prefix, v0, i0, v1, suffix) {\n  const bindingIndex = getBindingIndex();\n  const different = bindingUpdated2(lView, bindingIndex, v0, v1);\n  incrementBindingIndex(2);\n  return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + suffix : NO_CHANGE;\n}\n/**\n * Creates an interpolation binding with 3 expressions.\n */\nfunction interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix) {\n  const bindingIndex = getBindingIndex();\n  const different = bindingUpdated3(lView, bindingIndex, v0, v1, v2);\n  incrementBindingIndex(3);\n  return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 + renderStringify(v2) + suffix : NO_CHANGE;\n}\n/**\n * Create an interpolation binding with 4 expressions.\n */\nfunction interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {\n  const bindingIndex = getBindingIndex();\n  const different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);\n  incrementBindingIndex(4);\n  return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 + renderStringify(v2) + i2 + renderStringify(v3) + suffix : NO_CHANGE;\n}\n/**\n * Creates an interpolation binding with 5 expressions.\n */\nfunction interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {\n  const bindingIndex = getBindingIndex();\n  let different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);\n  different = bindingUpdated(lView, bindingIndex + 4, v4) || different;\n  incrementBindingIndex(5);\n  return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 + renderStringify(v2) + i2 + renderStringify(v3) + i3 + renderStringify(v4) + suffix : NO_CHANGE;\n}\n/**\n * Creates an interpolation binding with 6 expressions.\n */\nfunction interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {\n  const bindingIndex = getBindingIndex();\n  let different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);\n  different = bindingUpdated2(lView, bindingIndex + 4, v4, v5) || different;\n  incrementBindingIndex(6);\n  return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 + renderStringify(v2) + i2 + renderStringify(v3) + i3 + renderStringify(v4) + i4 + renderStringify(v5) + suffix : NO_CHANGE;\n}\n/**\n * Creates an interpolation binding with 7 expressions.\n */\nfunction interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {\n  const bindingIndex = getBindingIndex();\n  let different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);\n  different = bindingUpdated3(lView, bindingIndex + 4, v4, v5, v6) || different;\n  incrementBindingIndex(7);\n  return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 + renderStringify(v2) + i2 + renderStringify(v3) + i3 + renderStringify(v4) + i4 + renderStringify(v5) + i5 + renderStringify(v6) + suffix : NO_CHANGE;\n}\n/**\n * Creates an interpolation binding with 8 expressions.\n */\nfunction interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {\n  const bindingIndex = getBindingIndex();\n  let different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);\n  different = bindingUpdated4(lView, bindingIndex + 4, v4, v5, v6, v7) || different;\n  incrementBindingIndex(8);\n  return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 + renderStringify(v2) + i2 + renderStringify(v3) + i3 + renderStringify(v4) + i4 + renderStringify(v5) + i5 + renderStringify(v6) + i6 + renderStringify(v7) + suffix : NO_CHANGE;\n}\n\n/**\n *\n * Update an interpolated attribute on an element with single bound value surrounded by text.\n *\n * Used when the value passed to a property has 1 interpolated value in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate1('title', 'prefix', v0, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate1(attrName, prefix, v0, suffix, sanitizer, namespace) {\n  const lView = getLView();\n  const interpolatedValue = interpolation1(lView, prefix, v0, suffix);\n  if (interpolatedValue !== NO_CHANGE) {\n    const tNode = getSelectedTNode();\n    elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n    ngDevMode && storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 1, prefix, suffix);\n  }\n  return ɵɵattributeInterpolate1;\n}\n/**\n *\n * Update an interpolated attribute on an element with 2 bound values surrounded by text.\n *\n * Used when the value passed to a property has 2 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate2('title', 'prefix', v0, '-', v1, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate2(attrName, prefix, v0, i0, v1, suffix, sanitizer, namespace) {\n  const lView = getLView();\n  const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);\n  if (interpolatedValue !== NO_CHANGE) {\n    const tNode = getSelectedTNode();\n    elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n    ngDevMode && storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 2, prefix, i0, suffix);\n  }\n  return ɵɵattributeInterpolate2;\n}\n/**\n *\n * Update an interpolated attribute on an element with 3 bound values surrounded by text.\n *\n * Used when the value passed to a property has 3 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}-{{v2}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate3(\n * 'title', 'prefix', v0, '-', v1, '-', v2, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate3(attrName, prefix, v0, i0, v1, i1, v2, suffix, sanitizer, namespace) {\n  const lView = getLView();\n  const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);\n  if (interpolatedValue !== NO_CHANGE) {\n    const tNode = getSelectedTNode();\n    elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n    ngDevMode && storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 3, prefix, i0, i1, suffix);\n  }\n  return ɵɵattributeInterpolate3;\n}\n/**\n *\n * Update an interpolated attribute on an element with 4 bound values surrounded by text.\n *\n * Used when the value passed to a property has 4 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate4(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate4(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, suffix, sanitizer, namespace) {\n  const lView = getLView();\n  const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);\n  if (interpolatedValue !== NO_CHANGE) {\n    const tNode = getSelectedTNode();\n    elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n    ngDevMode && storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 4, prefix, i0, i1, i2, suffix);\n  }\n  return ɵɵattributeInterpolate4;\n}\n/**\n *\n * Update an interpolated attribute on an element with 5 bound values surrounded by text.\n *\n * Used when the value passed to a property has 5 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate5(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate5(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix, sanitizer, namespace) {\n  const lView = getLView();\n  const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);\n  if (interpolatedValue !== NO_CHANGE) {\n    const tNode = getSelectedTNode();\n    elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n    ngDevMode && storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 5, prefix, i0, i1, i2, i3, suffix);\n  }\n  return ɵɵattributeInterpolate5;\n}\n/**\n *\n * Update an interpolated attribute on an element with 6 bound values surrounded by text.\n *\n * Used when the value passed to a property has 6 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate6(\n *    'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate6(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix, sanitizer, namespace) {\n  const lView = getLView();\n  const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);\n  if (interpolatedValue !== NO_CHANGE) {\n    const tNode = getSelectedTNode();\n    elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n    ngDevMode && storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 6, prefix, i0, i1, i2, i3, i4, suffix);\n  }\n  return ɵɵattributeInterpolate6;\n}\n/**\n *\n * Update an interpolated attribute on an element with 7 bound values surrounded by text.\n *\n * Used when the value passed to a property has 7 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate7(\n *    'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate7(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix, sanitizer, namespace) {\n  const lView = getLView();\n  const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);\n  if (interpolatedValue !== NO_CHANGE) {\n    const tNode = getSelectedTNode();\n    elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n    ngDevMode && storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 7, prefix, i0, i1, i2, i3, i4, i5, suffix);\n  }\n  return ɵɵattributeInterpolate7;\n}\n/**\n *\n * Update an interpolated attribute on an element with 8 bound values surrounded by text.\n *\n * Used when the value passed to a property has 8 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate8(\n *  'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param i6 Static value used for concatenation only.\n * @param v7 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate8(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix, sanitizer, namespace) {\n  const lView = getLView();\n  const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);\n  if (interpolatedValue !== NO_CHANGE) {\n    const tNode = getSelectedTNode();\n    elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n    ngDevMode && storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 8, prefix, i0, i1, i2, i3, i4, i5, i6, suffix);\n  }\n  return ɵɵattributeInterpolate8;\n}\n/**\n * Update an interpolated attribute on an element with 9 or more bound values surrounded by text.\n *\n * Used when the number of interpolated values exceeds 8.\n *\n * ```html\n * <div\n *  title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolateV(\n *  'title', ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,\n *  'suffix']);\n * ```\n *\n * @param attrName The name of the attribute to update.\n * @param values The collection of values and the strings in-between those values, beginning with\n * a string prefix and ending with a string suffix.\n * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolateV(attrName, values, sanitizer, namespace) {\n  const lView = getLView();\n  const interpolated = interpolationV(lView, values);\n  if (interpolated !== NO_CHANGE) {\n    const tNode = getSelectedTNode();\n    elementAttributeInternal(tNode, lView, attrName, interpolated, sanitizer, namespace);\n    if (ngDevMode) {\n      const interpolationInBetween = [values[0]]; // prefix\n      for (let i = 2; i < values.length; i += 2) {\n        interpolationInBetween.push(values[i]);\n      }\n      storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - interpolationInBetween.length + 1, ...interpolationInBetween);\n    }\n  }\n  return ɵɵattributeInterpolateV;\n}\nfunction toTStylingRange(prev, next) {\n  ngDevMode && assertNumberInRange(prev, 0, 32767 /* StylingRange.UNSIGNED_MASK */);\n  ngDevMode && assertNumberInRange(next, 0, 32767 /* StylingRange.UNSIGNED_MASK */);\n  return prev << 17 /* StylingRange.PREV_SHIFT */ | next << 2 /* StylingRange.NEXT_SHIFT */;\n}\nfunction getTStylingRangePrev(tStylingRange) {\n  ngDevMode && assertNumber(tStylingRange, 'expected number');\n  return tStylingRange >> 17 /* StylingRange.PREV_SHIFT */ & 32767 /* StylingRange.UNSIGNED_MASK */;\n}\nfunction getTStylingRangePrevDuplicate(tStylingRange) {\n  ngDevMode && assertNumber(tStylingRange, 'expected number');\n  return (tStylingRange & 2 /* StylingRange.PREV_DUPLICATE */) == 2 /* StylingRange.PREV_DUPLICATE */;\n}\nfunction setTStylingRangePrev(tStylingRange, previous) {\n  ngDevMode && assertNumber(tStylingRange, 'expected number');\n  ngDevMode && assertNumberInRange(previous, 0, 32767 /* StylingRange.UNSIGNED_MASK */);\n  return tStylingRange & ~4294836224 /* StylingRange.PREV_MASK */ | previous << 17 /* StylingRange.PREV_SHIFT */;\n}\nfunction setTStylingRangePrevDuplicate(tStylingRange) {\n  ngDevMode && assertNumber(tStylingRange, 'expected number');\n  return tStylingRange | 2 /* StylingRange.PREV_DUPLICATE */;\n}\nfunction getTStylingRangeNext(tStylingRange) {\n  ngDevMode && assertNumber(tStylingRange, 'expected number');\n  return (tStylingRange & 131068 /* StylingRange.NEXT_MASK */) >> 2 /* StylingRange.NEXT_SHIFT */;\n}\nfunction setTStylingRangeNext(tStylingRange, next) {\n  ngDevMode && assertNumber(tStylingRange, 'expected number');\n  ngDevMode && assertNumberInRange(next, 0, 32767 /* StylingRange.UNSIGNED_MASK */);\n  return tStylingRange & ~131068 /* StylingRange.NEXT_MASK */ |\n  //\n  next << 2 /* StylingRange.NEXT_SHIFT */;\n}\nfunction getTStylingRangeNextDuplicate(tStylingRange) {\n  ngDevMode && assertNumber(tStylingRange, 'expected number');\n  return (tStylingRange & 1 /* StylingRange.NEXT_DUPLICATE */) === 1 /* StylingRange.NEXT_DUPLICATE */;\n}\nfunction setTStylingRangeNextDuplicate(tStylingRange) {\n  ngDevMode && assertNumber(tStylingRange, 'expected number');\n  return tStylingRange | 1 /* StylingRange.NEXT_DUPLICATE */;\n}\nfunction getTStylingRangeTail(tStylingRange) {\n  ngDevMode && assertNumber(tStylingRange, 'expected number');\n  const next = getTStylingRangeNext(tStylingRange);\n  return next === 0 ? getTStylingRangePrev(tStylingRange) : next;\n}\n\n/**\n * NOTE: The word `styling` is used interchangeably as style or class styling.\n *\n * This file contains code to link styling instructions together so that they can be replayed in\n * priority order. The file exists because Ivy styling instruction execution order does not match\n * that of the priority order. The purpose of this code is to create a linked list so that the\n * instructions can be traversed in priority order when computing the styles.\n *\n * Assume we are dealing with the following code:\n * ```\n * @Component({\n *   template: `\n *     <my-cmp [style]=\" {color: '#001'} \"\n *             [style.color]=\" #002 \"\n *             dir-style-color-1\n *             dir-style-color-2> `\n * })\n * class ExampleComponent {\n *   static ngComp = ... {\n *     ...\n *     // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`\n *     ɵɵstyleMap({color: '#001'});\n *     ɵɵstyleProp('color', '#002');\n *     ...\n *   }\n * }\n *\n * @Directive({\n *   selector: `[dir-style-color-1]',\n * })\n * class Style1Directive {\n *   @HostBinding('style') style = {color: '#005'};\n *   @HostBinding('style.color') color = '#006';\n *\n *   static ngDir = ... {\n *     ...\n *     // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`\n *     ɵɵstyleMap({color: '#005'});\n *     ɵɵstyleProp('color', '#006');\n *     ...\n *   }\n * }\n *\n * @Directive({\n *   selector: `[dir-style-color-2]',\n * })\n * class Style2Directive {\n *   @HostBinding('style') style = {color: '#007'};\n *   @HostBinding('style.color') color = '#008';\n *\n *   static ngDir = ... {\n *     ...\n *     // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`\n *     ɵɵstyleMap({color: '#007'});\n *     ɵɵstyleProp('color', '#008');\n *     ...\n *   }\n * }\n *\n * @Directive({\n *   selector: `my-cmp',\n * })\n * class MyComponent {\n *   @HostBinding('style') style = {color: '#003'};\n *   @HostBinding('style.color') color = '#004';\n *\n *   static ngComp = ... {\n *     ...\n *     // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`\n *     ɵɵstyleMap({color: '#003'});\n *     ɵɵstyleProp('color', '#004');\n *     ...\n *   }\n * }\n * ```\n *\n * The Order of instruction execution is:\n *\n * NOTE: the comment binding location is for illustrative purposes only.\n *\n * ```\n * // Template: (ExampleComponent)\n *     ɵɵstyleMap({color: '#001'});   // Binding index: 10\n *     ɵɵstyleProp('color', '#002');  // Binding index: 12\n * // MyComponent\n *     ɵɵstyleMap({color: '#003'});   // Binding index: 20\n *     ɵɵstyleProp('color', '#004');  // Binding index: 22\n * // Style1Directive\n *     ɵɵstyleMap({color: '#005'});   // Binding index: 24\n *     ɵɵstyleProp('color', '#006');  // Binding index: 26\n * // Style2Directive\n *     ɵɵstyleMap({color: '#007'});   // Binding index: 28\n *     ɵɵstyleProp('color', '#008');  // Binding index: 30\n * ```\n *\n * The correct priority order of concatenation is:\n *\n * ```\n * // MyComponent\n *     ɵɵstyleMap({color: '#003'});   // Binding index: 20\n *     ɵɵstyleProp('color', '#004');  // Binding index: 22\n * // Style1Directive\n *     ɵɵstyleMap({color: '#005'});   // Binding index: 24\n *     ɵɵstyleProp('color', '#006');  // Binding index: 26\n * // Style2Directive\n *     ɵɵstyleMap({color: '#007'});   // Binding index: 28\n *     ɵɵstyleProp('color', '#008');  // Binding index: 30\n * // Template: (ExampleComponent)\n *     ɵɵstyleMap({color: '#001'});   // Binding index: 10\n *     ɵɵstyleProp('color', '#002');  // Binding index: 12\n * ```\n *\n * What color should be rendered?\n *\n * Once the items are correctly sorted in the list, the answer is simply the last item in the\n * concatenation list which is `#002`.\n *\n * To do so we keep a linked list of all of the bindings which pertain to this element.\n * Notice that the bindings are inserted in the order of execution, but the `TView.data` allows\n * us to traverse them in the order of priority.\n *\n * |Idx|`TView.data`|`LView`          | Notes\n * |---|------------|-----------------|--------------\n * |...|            |                 |\n * |10 |`null`      |`{color: '#001'}`| `ɵɵstyleMap('color', {color: '#001'})`\n * |11 |`30 | 12`   | ...             |\n * |12 |`color`     |`'#002'`         | `ɵɵstyleProp('color', '#002')`\n * |13 |`10 | 0`    | ...             |\n * |...|            |                 |\n * |20 |`null`      |`{color: '#003'}`| `ɵɵstyleMap('color', {color: '#003'})`\n * |21 |`0 | 22`    | ...             |\n * |22 |`color`     |`'#004'`         | `ɵɵstyleProp('color', '#004')`\n * |23 |`20 | 24`   | ...             |\n * |24 |`null`      |`{color: '#005'}`| `ɵɵstyleMap('color', {color: '#005'})`\n * |25 |`22 | 26`   | ...             |\n * |26 |`color`     |`'#006'`         | `ɵɵstyleProp('color', '#006')`\n * |27 |`24 | 28`   | ...             |\n * |28 |`null`      |`{color: '#007'}`| `ɵɵstyleMap('color', {color: '#007'})`\n * |29 |`26 | 30`   | ...             |\n * |30 |`color`     |`'#008'`         | `ɵɵstyleProp('color', '#008')`\n * |31 |`28 | 10`   | ...             |\n *\n * The above data structure allows us to re-concatenate the styling no matter which data binding\n * changes.\n *\n * NOTE: in addition to keeping track of next/previous index the `TView.data` also stores prev/next\n * duplicate bit. The duplicate bit if true says there either is a binding with the same name or\n * there is a map (which may contain the name). This information is useful in knowing if other\n * styles with higher priority need to be searched for overwrites.\n *\n * NOTE: See `should support example in 'tnode_linked_list.ts' documentation` in\n * `tnode_linked_list_spec.ts` for working example.\n */\nlet __unused_const_as_closure_does_not_like_standalone_comment_blocks__;\n/**\n * Insert new `tStyleValue` at `TData` and link existing style bindings such that we maintain linked\n * list of styles and compute the duplicate flag.\n *\n * Note: this function is executed during `firstUpdatePass` only to populate the `TView.data`.\n *\n * The function works by keeping track of `tStylingRange` which contains two pointers pointing to\n * the head/tail of the template portion of the styles.\n *  - if `isHost === false` (we are template) then insertion is at tail of `TStylingRange`\n *  - if `isHost === true` (we are host binding) then insertion is at head of `TStylingRange`\n *\n * @param tData The `TData` to insert into.\n * @param tNode `TNode` associated with the styling element.\n * @param tStylingKey See `TStylingKey`.\n * @param index location of where `tStyleValue` should be stored (and linked into list.)\n * @param isHostBinding `true` if the insertion is for a `hostBinding`. (insertion is in front of\n *               template.)\n * @param isClassBinding True if the associated `tStylingKey` as a `class` styling.\n *                       `tNode.classBindings` should be used (or `tNode.styleBindings` otherwise.)\n */\nfunction insertTStylingBinding(tData, tNode, tStylingKeyWithStatic, index, isHostBinding, isClassBinding) {\n  ngDevMode && assertFirstUpdatePass(getTView());\n  let tBindings = isClassBinding ? tNode.classBindings : tNode.styleBindings;\n  let tmplHead = getTStylingRangePrev(tBindings);\n  let tmplTail = getTStylingRangeNext(tBindings);\n  tData[index] = tStylingKeyWithStatic;\n  let isKeyDuplicateOfStatic = false;\n  let tStylingKey;\n  if (Array.isArray(tStylingKeyWithStatic)) {\n    // We are case when the `TStylingKey` contains static fields as well.\n    const staticKeyValueArray = tStylingKeyWithStatic;\n    tStylingKey = staticKeyValueArray[1]; // unwrap.\n    // We need to check if our key is present in the static so that we can mark it as duplicate.\n    if (tStylingKey === null || keyValueArrayIndexOf(staticKeyValueArray, tStylingKey) > 0) {\n      // tStylingKey is present in the statics, need to mark it as duplicate.\n      isKeyDuplicateOfStatic = true;\n    }\n  } else {\n    tStylingKey = tStylingKeyWithStatic;\n  }\n  if (isHostBinding) {\n    // We are inserting host bindings\n    // If we don't have template bindings then `tail` is 0.\n    const hasTemplateBindings = tmplTail !== 0;\n    // This is important to know because that means that the `head` can't point to the first\n    // template bindings (there are none.) Instead the head points to the tail of the template.\n    if (hasTemplateBindings) {\n      // template head's \"prev\" will point to last host binding or to 0 if no host bindings yet\n      const previousNode = getTStylingRangePrev(tData[tmplHead + 1]);\n      tData[index + 1] = toTStylingRange(previousNode, tmplHead);\n      // if a host binding has already been registered, we need to update the next of that host\n      // binding to point to this one\n      if (previousNode !== 0) {\n        // We need to update the template-tail value to point to us.\n        tData[previousNode + 1] = setTStylingRangeNext(tData[previousNode + 1], index);\n      }\n      // The \"previous\" of the template binding head should point to this host binding\n      tData[tmplHead + 1] = setTStylingRangePrev(tData[tmplHead + 1], index);\n    } else {\n      tData[index + 1] = toTStylingRange(tmplHead, 0);\n      // if a host binding has already been registered, we need to update the next of that host\n      // binding to point to this one\n      if (tmplHead !== 0) {\n        // We need to update the template-tail value to point to us.\n        tData[tmplHead + 1] = setTStylingRangeNext(tData[tmplHead + 1], index);\n      }\n      // if we don't have template, the head points to template-tail, and needs to be advanced.\n      tmplHead = index;\n    }\n  } else {\n    // We are inserting in template section.\n    // We need to set this binding's \"previous\" to the current template tail\n    tData[index + 1] = toTStylingRange(tmplTail, 0);\n    ngDevMode && assertEqual(tmplHead !== 0 && tmplTail === 0, false, 'Adding template bindings after hostBindings is not allowed.');\n    if (tmplHead === 0) {\n      tmplHead = index;\n    } else {\n      // We need to update the previous value \"next\" to point to this binding\n      tData[tmplTail + 1] = setTStylingRangeNext(tData[tmplTail + 1], index);\n    }\n    tmplTail = index;\n  }\n  // Now we need to update / compute the duplicates.\n  // Starting with our location search towards head (least priority)\n  if (isKeyDuplicateOfStatic) {\n    tData[index + 1] = setTStylingRangePrevDuplicate(tData[index + 1]);\n  }\n  markDuplicates(tData, tStylingKey, index, true);\n  markDuplicates(tData, tStylingKey, index, false);\n  markDuplicateOfResidualStyling(tNode, tStylingKey, tData, index, isClassBinding);\n  tBindings = toTStylingRange(tmplHead, tmplTail);\n  if (isClassBinding) {\n    tNode.classBindings = tBindings;\n  } else {\n    tNode.styleBindings = tBindings;\n  }\n}\n/**\n * Look into the residual styling to see if the current `tStylingKey` is duplicate of residual.\n *\n * @param tNode `TNode` where the residual is stored.\n * @param tStylingKey `TStylingKey` to store.\n * @param tData `TData` associated with the current `LView`.\n * @param index location of where `tStyleValue` should be stored (and linked into list.)\n * @param isClassBinding True if the associated `tStylingKey` as a `class` styling.\n *                       `tNode.classBindings` should be used (or `tNode.styleBindings` otherwise.)\n */\nfunction markDuplicateOfResidualStyling(tNode, tStylingKey, tData, index, isClassBinding) {\n  const residual = isClassBinding ? tNode.residualClasses : tNode.residualStyles;\n  if (residual != null /* or undefined */ && typeof tStylingKey == 'string' && keyValueArrayIndexOf(residual, tStylingKey) >= 0) {\n    // We have duplicate in the residual so mark ourselves as duplicate.\n    tData[index + 1] = setTStylingRangeNextDuplicate(tData[index + 1]);\n  }\n}\n/**\n * Marks `TStyleValue`s as duplicates if another style binding in the list has the same\n * `TStyleValue`.\n *\n * NOTE: this function is intended to be called twice once with `isPrevDir` set to `true` and once\n * with it set to `false` to search both the previous as well as next items in the list.\n *\n * No duplicate case\n * ```\n *   [style.color]\n *   [style.width.px] <<- index\n *   [style.height.px]\n * ```\n *\n * In the above case adding `[style.width.px]` to the existing `[style.color]` produces no\n * duplicates because `width` is not found in any other part of the linked list.\n *\n * Duplicate case\n * ```\n *   [style.color]\n *   [style.width.em]\n *   [style.width.px] <<- index\n * ```\n * In the above case adding `[style.width.px]` will produce a duplicate with `[style.width.em]`\n * because `width` is found in the chain.\n *\n * Map case 1\n * ```\n *   [style.width.px]\n *   [style.color]\n *   [style]  <<- index\n * ```\n * In the above case adding `[style]` will produce a duplicate with any other bindings because\n * `[style]` is a Map and as such is fully dynamic and could produce `color` or `width`.\n *\n * Map case 2\n * ```\n *   [style]\n *   [style.width.px]\n *   [style.color]  <<- index\n * ```\n * In the above case adding `[style.color]` will produce a duplicate because there is already a\n * `[style]` binding which is a Map and as such is fully dynamic and could produce `color` or\n * `width`.\n *\n * NOTE: Once `[style]` (Map) is added into the system all things are mapped as duplicates.\n * NOTE: We use `style` as example, but same logic is applied to `class`es as well.\n *\n * @param tData `TData` where the linked list is stored.\n * @param tStylingKey `TStylingKeyPrimitive` which contains the value to compare to other keys in\n *        the linked list.\n * @param index Starting location in the linked list to search from\n * @param isPrevDir Direction.\n *        - `true` for previous (lower priority);\n *        - `false` for next (higher priority).\n */\nfunction markDuplicates(tData, tStylingKey, index, isPrevDir) {\n  const tStylingAtIndex = tData[index + 1];\n  const isMap = tStylingKey === null;\n  let cursor = isPrevDir ? getTStylingRangePrev(tStylingAtIndex) : getTStylingRangeNext(tStylingAtIndex);\n  let foundDuplicate = false;\n  // We keep iterating as long as we have a cursor\n  // AND either:\n  // - we found what we are looking for, OR\n  // - we are a map in which case we have to continue searching even after we find what we were\n  //   looking for since we are a wild card and everything needs to be flipped to duplicate.\n  while (cursor !== 0 && (foundDuplicate === false || isMap)) {\n    ngDevMode && assertIndexInRange(tData, cursor);\n    const tStylingValueAtCursor = tData[cursor];\n    const tStyleRangeAtCursor = tData[cursor + 1];\n    if (isStylingMatch(tStylingValueAtCursor, tStylingKey)) {\n      foundDuplicate = true;\n      tData[cursor + 1] = isPrevDir ? setTStylingRangeNextDuplicate(tStyleRangeAtCursor) : setTStylingRangePrevDuplicate(tStyleRangeAtCursor);\n    }\n    cursor = isPrevDir ? getTStylingRangePrev(tStyleRangeAtCursor) : getTStylingRangeNext(tStyleRangeAtCursor);\n  }\n  if (foundDuplicate) {\n    // if we found a duplicate, than mark ourselves.\n    tData[index + 1] = isPrevDir ? setTStylingRangePrevDuplicate(tStylingAtIndex) : setTStylingRangeNextDuplicate(tStylingAtIndex);\n  }\n}\n/**\n * Determines if two `TStylingKey`s are a match.\n *\n * When computing whether a binding contains a duplicate, we need to compare if the instruction\n * `TStylingKey` has a match.\n *\n * Here are examples of `TStylingKey`s which match given `tStylingKeyCursor` is:\n * - `color`\n *    - `color`    // Match another color\n *    - `null`     // That means that `tStylingKey` is a `classMap`/`styleMap` instruction\n *    - `['', 'color', 'other', true]` // wrapped `color` so match\n *    - `['', null, 'other', true]`       // wrapped `null` so match\n *    - `['', 'width', 'color', 'value']` // wrapped static value contains a match on `'color'`\n * - `null`       // `tStylingKeyCursor` always match as it is `classMap`/`styleMap` instruction\n *\n * @param tStylingKeyCursor\n * @param tStylingKey\n */\nfunction isStylingMatch(tStylingKeyCursor, tStylingKey) {\n  ngDevMode && assertNotEqual(Array.isArray(tStylingKey), true, 'Expected that \\'tStylingKey\\' has been unwrapped');\n  if (tStylingKeyCursor === null ||\n  // If the cursor is `null` it means that we have map at that\n  // location so we must assume that we have a match.\n  tStylingKey == null ||\n  // If `tStylingKey` is `null` then it is a map therefor assume that it\n  // contains a match.\n  (Array.isArray(tStylingKeyCursor) ? tStylingKeyCursor[1] : tStylingKeyCursor) === tStylingKey // If the keys match explicitly than we are a match.\n  ) {\n    return true;\n  } else if (Array.isArray(tStylingKeyCursor) && typeof tStylingKey === 'string') {\n    // if we did not find a match, but `tStylingKeyCursor` is `KeyValueArray` that means cursor has\n    // statics and we need to check those as well.\n    return keyValueArrayIndexOf(tStylingKeyCursor, tStylingKey) >= 0; // see if we are matching the key\n  }\n  return false;\n}\n\n// Global state of the parser. (This makes parser non-reentrant, but that is not an issue)\nconst parserState = {\n  textEnd: 0,\n  key: 0,\n  keyEnd: 0,\n  value: 0,\n  valueEnd: 0\n};\n/**\n * Retrieves the last parsed `key` of style.\n * @param text the text to substring the key from.\n */\nfunction getLastParsedKey(text) {\n  return text.substring(parserState.key, parserState.keyEnd);\n}\n/**\n * Retrieves the last parsed `value` of style.\n * @param text the text to substring the key from.\n */\nfunction getLastParsedValue(text) {\n  return text.substring(parserState.value, parserState.valueEnd);\n}\n/**\n * Initializes `className` string for parsing and parses the first token.\n *\n * This function is intended to be used in this format:\n * ```\n * for (let i = parseClassName(text); i >= 0; i = parseClassNameNext(text, i)) {\n *   const key = getLastParsedKey();\n *   ...\n * }\n * ```\n * @param text `className` to parse\n * @returns index where the next invocation of `parseClassNameNext` should resume.\n */\nfunction parseClassName(text) {\n  resetParserState(text);\n  return parseClassNameNext(text, consumeWhitespace(text, 0, parserState.textEnd));\n}\n/**\n * Parses next `className` token.\n *\n * This function is intended to be used in this format:\n * ```\n * for (let i = parseClassName(text); i >= 0; i = parseClassNameNext(text, i)) {\n *   const key = getLastParsedKey();\n *   ...\n * }\n * ```\n *\n * @param text `className` to parse\n * @param index where the parsing should resume.\n * @returns index where the next invocation of `parseClassNameNext` should resume.\n */\nfunction parseClassNameNext(text, index) {\n  const end = parserState.textEnd;\n  if (end === index) {\n    return -1;\n  }\n  index = parserState.keyEnd = consumeClassToken(text, parserState.key = index, end);\n  return consumeWhitespace(text, index, end);\n}\n/**\n * Initializes `cssText` string for parsing and parses the first key/values.\n *\n * This function is intended to be used in this format:\n * ```\n * for (let i = parseStyle(text); i >= 0; i = parseStyleNext(text, i))) {\n *   const key = getLastParsedKey();\n *   const value = getLastParsedValue();\n *   ...\n * }\n * ```\n * @param text `cssText` to parse\n * @returns index where the next invocation of `parseStyleNext` should resume.\n */\nfunction parseStyle(text) {\n  resetParserState(text);\n  return parseStyleNext(text, consumeWhitespace(text, 0, parserState.textEnd));\n}\n/**\n * Parses the next `cssText` key/values.\n *\n * This function is intended to be used in this format:\n * ```\n * for (let i = parseStyle(text); i >= 0; i = parseStyleNext(text, i))) {\n *   const key = getLastParsedKey();\n *   const value = getLastParsedValue();\n *   ...\n * }\n *\n * @param text `cssText` to parse\n * @param index where the parsing should resume.\n * @returns index where the next invocation of `parseStyleNext` should resume.\n */\nfunction parseStyleNext(text, startIndex) {\n  const end = parserState.textEnd;\n  let index = parserState.key = consumeWhitespace(text, startIndex, end);\n  if (end === index) {\n    // we reached an end so just quit\n    return -1;\n  }\n  index = parserState.keyEnd = consumeStyleKey(text, index, end);\n  index = consumeSeparator(text, index, end, 58 /* CharCode.COLON */);\n  index = parserState.value = consumeWhitespace(text, index, end);\n  index = parserState.valueEnd = consumeStyleValue(text, index, end);\n  return consumeSeparator(text, index, end, 59 /* CharCode.SEMI_COLON */);\n}\n/**\n * Reset the global state of the styling parser.\n * @param text The styling text to parse.\n */\nfunction resetParserState(text) {\n  parserState.key = 0;\n  parserState.keyEnd = 0;\n  parserState.value = 0;\n  parserState.valueEnd = 0;\n  parserState.textEnd = text.length;\n}\n/**\n * Returns index of next non-whitespace character.\n *\n * @param text Text to scan\n * @param startIndex Starting index of character where the scan should start.\n * @param endIndex Ending index of character where the scan should end.\n * @returns Index of next non-whitespace character (May be the same as `start` if no whitespace at\n *          that location.)\n */\nfunction consumeWhitespace(text, startIndex, endIndex) {\n  while (startIndex < endIndex && text.charCodeAt(startIndex) <= 32 /* CharCode.SPACE */) {\n    startIndex++;\n  }\n  return startIndex;\n}\n/**\n * Returns index of last char in class token.\n *\n * @param text Text to scan\n * @param startIndex Starting index of character where the scan should start.\n * @param endIndex Ending index of character where the scan should end.\n * @returns Index after last char in class token.\n */\nfunction consumeClassToken(text, startIndex, endIndex) {\n  while (startIndex < endIndex && text.charCodeAt(startIndex) > 32 /* CharCode.SPACE */) {\n    startIndex++;\n  }\n  return startIndex;\n}\n/**\n * Consumes all of the characters belonging to style key and token.\n *\n * @param text Text to scan\n * @param startIndex Starting index of character where the scan should start.\n * @param endIndex Ending index of character where the scan should end.\n * @returns Index after last style key character.\n */\nfunction consumeStyleKey(text, startIndex, endIndex) {\n  let ch;\n  while (startIndex < endIndex && ((ch = text.charCodeAt(startIndex)) === 45 /* CharCode.DASH */ || ch === 95 /* CharCode.UNDERSCORE */ || (ch & -33 /* CharCode.UPPER_CASE */) >= 65 /* CharCode.A */ && (ch & -33 /* CharCode.UPPER_CASE */) <= 90 /* CharCode.Z */ || ch >= 48 /* CharCode.ZERO */ && ch <= 57 /* CharCode.NINE */)) {\n    startIndex++;\n  }\n  return startIndex;\n}\n/**\n * Consumes all whitespace and the separator `:` after the style key.\n *\n * @param text Text to scan\n * @param startIndex Starting index of character where the scan should start.\n * @param endIndex Ending index of character where the scan should end.\n * @returns Index after separator and surrounding whitespace.\n */\nfunction consumeSeparator(text, startIndex, endIndex, separator) {\n  startIndex = consumeWhitespace(text, startIndex, endIndex);\n  if (startIndex < endIndex) {\n    if (ngDevMode && text.charCodeAt(startIndex) !== separator) {\n      malformedStyleError(text, String.fromCharCode(separator), startIndex);\n    }\n    startIndex++;\n  }\n  return startIndex;\n}\n/**\n * Consumes style value honoring `url()` and `\"\"` text.\n *\n * @param text Text to scan\n * @param startIndex Starting index of character where the scan should start.\n * @param endIndex Ending index of character where the scan should end.\n * @returns Index after last style value character.\n */\nfunction consumeStyleValue(text, startIndex, endIndex) {\n  let ch1 = -1; // 1st previous character\n  let ch2 = -1; // 2nd previous character\n  let ch3 = -1; // 3rd previous character\n  let i = startIndex;\n  let lastChIndex = i;\n  while (i < endIndex) {\n    const ch = text.charCodeAt(i++);\n    if (ch === 59 /* CharCode.SEMI_COLON */) {\n      return lastChIndex;\n    } else if (ch === 34 /* CharCode.DOUBLE_QUOTE */ || ch === 39 /* CharCode.SINGLE_QUOTE */) {\n      lastChIndex = i = consumeQuotedText(text, ch, i, endIndex);\n    } else if (startIndex === i - 4 &&\n    // We have seen only 4 characters so far \"URL(\" (Ignore \"foo_URL()\")\n    ch3 === 85 /* CharCode.U */ && ch2 === 82 /* CharCode.R */ && ch1 === 76 /* CharCode.L */ && ch === 40 /* CharCode.OPEN_PAREN */) {\n      lastChIndex = i = consumeQuotedText(text, 41 /* CharCode.CLOSE_PAREN */, i, endIndex);\n    } else if (ch > 32 /* CharCode.SPACE */) {\n      // if we have a non-whitespace character then capture its location\n      lastChIndex = i;\n    }\n    ch3 = ch2;\n    ch2 = ch1;\n    ch1 = ch & -33 /* CharCode.UPPER_CASE */;\n  }\n  return lastChIndex;\n}\n/**\n * Consumes all of the quoted characters.\n *\n * @param text Text to scan\n * @param quoteCharCode CharCode of either `\"` or `'` quote or `)` for `url(...)`.\n * @param startIndex Starting index of character where the scan should start.\n * @param endIndex Ending index of character where the scan should end.\n * @returns Index after quoted characters.\n */\nfunction consumeQuotedText(text, quoteCharCode, startIndex, endIndex) {\n  let ch1 = -1; // 1st previous character\n  let index = startIndex;\n  while (index < endIndex) {\n    const ch = text.charCodeAt(index++);\n    if (ch == quoteCharCode && ch1 !== 92 /* CharCode.BACK_SLASH */) {\n      return index;\n    }\n    if (ch == 92 /* CharCode.BACK_SLASH */ && ch1 === 92 /* CharCode.BACK_SLASH */) {\n      // two back slashes cancel each other out. For example `\"\\\\\"` should properly end the\n      // quotation. (It should not assume that the last `\"` is escaped.)\n      ch1 = 0;\n    } else {\n      ch1 = ch;\n    }\n  }\n  throw ngDevMode ? malformedStyleError(text, String.fromCharCode(quoteCharCode), endIndex) : new Error();\n}\nfunction malformedStyleError(text, expecting, index) {\n  ngDevMode && assertEqual(typeof text === 'string', true, 'String expected here');\n  throw throwError(`Malformed style at location ${index} in string '` + text.substring(0, index) + '[>>' + text.substring(index, index + 1) + '<<]' + text.slice(index + 1) + `'. Expecting '${expecting}'.`);\n}\n\n/**\n * Update a property on a selected element.\n *\n * Operates on the element selected by index via the {@link select} instruction.\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled\n *\n * @param propName Name of property. Because it is going to DOM, this is not subject to\n *        renaming as part of minification.\n * @param value New value to write.\n * @param sanitizer An optional function used to sanitize the value.\n * @returns This function returns itself so that it may be chained\n * (e.g. `property('name', ctx.name)('title', ctx.title)`)\n *\n * @codeGenApi\n */\nfunction ɵɵproperty(propName, value, sanitizer) {\n  const lView = getLView();\n  const bindingIndex = nextBindingIndex();\n  if (bindingUpdated(lView, bindingIndex, value)) {\n    const tView = getTView();\n    const tNode = getSelectedTNode();\n    elementPropertyInternal(tView, tNode, lView, propName, value, lView[RENDERER], sanitizer, false);\n    ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, bindingIndex);\n  }\n  return ɵɵproperty;\n}\n/**\n * Given `<div style=\"...\" my-dir>` and `MyDir` with `@Input('style')` we need to write to\n * directive input.\n */\nfunction setDirectiveInputsWhichShadowsStyling(tView, tNode, lView, value, isClassBased) {\n  const inputs = tNode.inputs;\n  const property = isClassBased ? 'class' : 'style';\n  // We support both 'class' and `className` hence the fallback.\n  setInputsForProperty(tView, lView, inputs[property], property, value);\n}\n\n/**\n * Update a style binding on an element with the provided value.\n *\n * If the style value is falsy then it will be removed from the element\n * (or assigned a different value depending if there are any styles placed\n * on the element with `styleMap` or any static styles that are\n * present from when the element was created with `styling`).\n *\n * Note that the styling element is updated as part of `stylingApply`.\n *\n * @param prop A valid CSS property.\n * @param value New value to write (`null` or an empty string to remove).\n * @param suffix Optional suffix. Used with scalar values to add unit such as `px`.\n *\n * Note that this will apply the provided style value to the host element if this function is called\n * within a host binding function.\n *\n * @codeGenApi\n */\nfunction ɵɵstyleProp(prop, value, suffix) {\n  checkStylingProperty(prop, value, suffix, false);\n  return ɵɵstyleProp;\n}\n/**\n * Update a class binding on an element with the provided value.\n *\n * This instruction is meant to handle the `[class.foo]=\"exp\"` case and,\n * therefore, the class binding itself must already be allocated using\n * `styling` within the creation block.\n *\n * @param prop A valid CSS class (only one).\n * @param value A true/false value which will turn the class on or off.\n *\n * Note that this will apply the provided class value to the host element if this function\n * is called within a host binding function.\n *\n * @codeGenApi\n */\nfunction ɵɵclassProp(className, value) {\n  checkStylingProperty(className, value, null, true);\n  return ɵɵclassProp;\n}\n/**\n * Update style bindings using an object literal on an element.\n *\n * This instruction is meant to apply styling via the `[style]=\"exp\"` template bindings.\n * When styles are applied to the element they will then be updated with respect to\n * any styles/classes set via `styleProp`. If any styles are set to falsy\n * then they will be removed from the element.\n *\n * Note that the styling instruction will not be applied until `stylingApply` is called.\n *\n * @param styles A key/value style map of the styles that will be applied to the given element.\n *        Any missing styles (that have already been applied to the element beforehand) will be\n *        removed (unset) from the element's styling.\n *\n * Note that this will apply the provided styleMap value to the host element if this function\n * is called within a host binding.\n *\n * @codeGenApi\n */\nfunction ɵɵstyleMap(styles) {\n  checkStylingMap(styleKeyValueArraySet, styleStringParser, styles, false);\n}\n/**\n * Parse text as style and add values to KeyValueArray.\n *\n * This code is pulled out to a separate function so that it can be tree shaken away if it is not\n * needed. It is only referenced from `ɵɵstyleMap`.\n *\n * @param keyValueArray KeyValueArray to add parsed values to.\n * @param text text to parse.\n */\nfunction styleStringParser(keyValueArray, text) {\n  for (let i = parseStyle(text); i >= 0; i = parseStyleNext(text, i)) {\n    styleKeyValueArraySet(keyValueArray, getLastParsedKey(text), getLastParsedValue(text));\n  }\n}\n/**\n * Update class bindings using an object literal or class-string on an element.\n *\n * This instruction is meant to apply styling via the `[class]=\"exp\"` template bindings.\n * When classes are applied to the element they will then be updated with\n * respect to any styles/classes set via `classProp`. If any\n * classes are set to falsy then they will be removed from the element.\n *\n * Note that the styling instruction will not be applied until `stylingApply` is called.\n * Note that this will the provided classMap value to the host element if this function is called\n * within a host binding.\n *\n * @param classes A key/value map or string of CSS classes that will be added to the\n *        given element. Any missing classes (that have already been applied to the element\n *        beforehand) will be removed (unset) from the element's list of CSS classes.\n *\n * @codeGenApi\n */\nfunction ɵɵclassMap(classes) {\n  checkStylingMap(classKeyValueArraySet, classStringParser, classes, true);\n}\n/**\n * Parse text as class and add values to KeyValueArray.\n *\n * This code is pulled out to a separate function so that it can be tree shaken away if it is not\n * needed. It is only referenced from `ɵɵclassMap`.\n *\n * @param keyValueArray KeyValueArray to add parsed values to.\n * @param text text to parse.\n */\nfunction classStringParser(keyValueArray, text) {\n  for (let i = parseClassName(text); i >= 0; i = parseClassNameNext(text, i)) {\n    keyValueArraySet(keyValueArray, getLastParsedKey(text), true);\n  }\n}\n/**\n * Common code between `ɵɵclassProp` and `ɵɵstyleProp`.\n *\n * @param prop property name.\n * @param value binding value.\n * @param suffix suffix for the property (e.g. `em` or `px`)\n * @param isClassBased `true` if `class` change (`false` if `style`)\n */\nfunction checkStylingProperty(prop, value, suffix, isClassBased) {\n  const lView = getLView();\n  const tView = getTView();\n  // Styling instructions use 2 slots per binding.\n  // 1. one for the value / TStylingKey\n  // 2. one for the intermittent-value / TStylingRange\n  const bindingIndex = incrementBindingIndex(2);\n  if (tView.firstUpdatePass) {\n    stylingFirstUpdatePass(tView, prop, bindingIndex, isClassBased);\n  }\n  if (value !== NO_CHANGE && bindingUpdated(lView, bindingIndex, value)) {\n    const tNode = tView.data[getSelectedIndex()];\n    updateStyling(tView, tNode, lView, lView[RENDERER], prop, lView[bindingIndex + 1] = normalizeSuffix(value, suffix), isClassBased, bindingIndex);\n  }\n}\n/**\n * Common code between `ɵɵclassMap` and `ɵɵstyleMap`.\n *\n * @param keyValueArraySet (See `keyValueArraySet` in \"util/array_utils\") Gets passed in as a\n *        function so that `style` can be processed. This is done for tree shaking purposes.\n * @param stringParser Parser used to parse `value` if `string`. (Passed in as `style` and `class`\n *        have different parsers.)\n * @param value bound value from application\n * @param isClassBased `true` if `class` change (`false` if `style`)\n */\nfunction checkStylingMap(keyValueArraySet, stringParser, value, isClassBased) {\n  const tView = getTView();\n  const bindingIndex = incrementBindingIndex(2);\n  if (tView.firstUpdatePass) {\n    stylingFirstUpdatePass(tView, null, bindingIndex, isClassBased);\n  }\n  const lView = getLView();\n  if (value !== NO_CHANGE && bindingUpdated(lView, bindingIndex, value)) {\n    // `getSelectedIndex()` should be here (rather than in instruction) so that it is guarded by the\n    // if so as not to read unnecessarily.\n    const tNode = tView.data[getSelectedIndex()];\n    if (hasStylingInputShadow(tNode, isClassBased) && !isInHostBindings(tView, bindingIndex)) {\n      if (ngDevMode) {\n        // verify that if we are shadowing then `TData` is appropriately marked so that we skip\n        // processing this binding in styling resolution.\n        const tStylingKey = tView.data[bindingIndex];\n        assertEqual(Array.isArray(tStylingKey) ? tStylingKey[1] : tStylingKey, false, 'Styling linked list shadow input should be marked as \\'false\\'');\n      }\n      // VE does not concatenate the static portion like we are doing here.\n      // Instead VE just ignores the static completely if dynamic binding is present.\n      // Because of locality we have already set the static portion because we don't know if there\n      // is a dynamic portion until later. If we would ignore the static portion it would look like\n      // the binding has removed it. This would confuse `[ngStyle]`/`[ngClass]` to do the wrong\n      // thing as it would think that the static portion was removed. For this reason we\n      // concatenate it so that `[ngStyle]`/`[ngClass]`  can continue to work on changed.\n      let staticPrefix = isClassBased ? tNode.classesWithoutHost : tNode.stylesWithoutHost;\n      ngDevMode && isClassBased === false && staticPrefix !== null && assertEqual(staticPrefix.endsWith(';'), true, 'Expecting static portion to end with \\';\\'');\n      if (staticPrefix !== null) {\n        // We want to make sure that falsy values of `value` become empty strings.\n        value = concatStringsWithSpace(staticPrefix, value ? value : '');\n      }\n      // Given `<div [style] my-dir>` such that `my-dir` has `@Input('style')`.\n      // This takes over the `[style]` binding. (Same for `[class]`)\n      setDirectiveInputsWhichShadowsStyling(tView, tNode, lView, value, isClassBased);\n    } else {\n      updateStylingMap(tView, tNode, lView, lView[RENDERER], lView[bindingIndex + 1], lView[bindingIndex + 1] = toStylingKeyValueArray(keyValueArraySet, stringParser, value), isClassBased, bindingIndex);\n    }\n  }\n}\n/**\n * Determines when the binding is in `hostBindings` section\n *\n * @param tView Current `TView`\n * @param bindingIndex index of binding which we would like if it is in `hostBindings`\n */\nfunction isInHostBindings(tView, bindingIndex) {\n  // All host bindings are placed after the expando section.\n  return bindingIndex >= tView.expandoStartIndex;\n}\n/**\n * Collects the necessary information to insert the binding into a linked list of style bindings\n * using `insertTStylingBinding`.\n *\n * @param tView `TView` where the binding linked list will be stored.\n * @param tStylingKey Property/key of the binding.\n * @param bindingIndex Index of binding associated with the `prop`\n * @param isClassBased `true` if `class` change (`false` if `style`)\n */\nfunction stylingFirstUpdatePass(tView, tStylingKey, bindingIndex, isClassBased) {\n  ngDevMode && assertFirstUpdatePass(tView);\n  const tData = tView.data;\n  if (tData[bindingIndex + 1] === null) {\n    // The above check is necessary because we don't clear first update pass until first successful\n    // (no exception) template execution. This prevents the styling instruction from double adding\n    // itself to the list.\n    // `getSelectedIndex()` should be here (rather than in instruction) so that it is guarded by the\n    // if so as not to read unnecessarily.\n    const tNode = tData[getSelectedIndex()];\n    ngDevMode && assertDefined(tNode, 'TNode expected');\n    const isHostBindings = isInHostBindings(tView, bindingIndex);\n    if (hasStylingInputShadow(tNode, isClassBased) && tStylingKey === null && !isHostBindings) {\n      // `tStylingKey === null` implies that we are either `[style]` or `[class]` binding.\n      // If there is a directive which uses `@Input('style')` or `@Input('class')` than\n      // we need to neutralize this binding since that directive is shadowing it.\n      // We turn this into a noop by setting the key to `false`\n      tStylingKey = false;\n    }\n    tStylingKey = wrapInStaticStylingKey(tData, tNode, tStylingKey, isClassBased);\n    insertTStylingBinding(tData, tNode, tStylingKey, bindingIndex, isHostBindings, isClassBased);\n  }\n}\n/**\n * Adds static styling information to the binding if applicable.\n *\n * The linked list of styles not only stores the list and keys, but also stores static styling\n * information on some of the keys. This function determines if the key should contain the styling\n * information and computes it.\n *\n * See `TStylingStatic` for more details.\n *\n * @param tData `TData` where the linked list is stored.\n * @param tNode `TNode` for which the styling is being computed.\n * @param stylingKey `TStylingKeyPrimitive` which may need to be wrapped into `TStylingKey`\n * @param isClassBased `true` if `class` (`false` if `style`)\n */\nfunction wrapInStaticStylingKey(tData, tNode, stylingKey, isClassBased) {\n  const hostDirectiveDef = getCurrentDirectiveDef(tData);\n  let residual = isClassBased ? tNode.residualClasses : tNode.residualStyles;\n  if (hostDirectiveDef === null) {\n    // We are in template node.\n    // If template node already had styling instruction then it has already collected the static\n    // styling and there is no need to collect them again. We know that we are the first styling\n    // instruction because the `TNode.*Bindings` points to 0 (nothing has been inserted yet).\n    const isFirstStylingInstructionInTemplate = (isClassBased ? tNode.classBindings : tNode.styleBindings) === 0;\n    if (isFirstStylingInstructionInTemplate) {\n      // It would be nice to be able to get the statics from `mergeAttrs`, however, at this point\n      // they are already merged and it would not be possible to figure which property belongs where\n      // in the priority.\n      stylingKey = collectStylingFromDirectives(null, tData, tNode, stylingKey, isClassBased);\n      stylingKey = collectStylingFromTAttrs(stylingKey, tNode.attrs, isClassBased);\n      // We know that if we have styling binding in template we can't have residual.\n      residual = null;\n    }\n  } else {\n    // We are in host binding node and there was no binding instruction in template node.\n    // This means that we need to compute the residual.\n    const directiveStylingLast = tNode.directiveStylingLast;\n    const isFirstStylingInstructionInHostBinding = directiveStylingLast === -1 || tData[directiveStylingLast] !== hostDirectiveDef;\n    if (isFirstStylingInstructionInHostBinding) {\n      stylingKey = collectStylingFromDirectives(hostDirectiveDef, tData, tNode, stylingKey, isClassBased);\n      if (residual === null) {\n        // - If `null` than either:\n        //    - Template styling instruction already ran and it has consumed the static\n        //      styling into its `TStylingKey` and so there is no need to update residual. Instead\n        //      we need to update the `TStylingKey` associated with the first template node\n        //      instruction. OR\n        //    - Some other styling instruction ran and determined that there are no residuals\n        let templateStylingKey = getTemplateHeadTStylingKey(tData, tNode, isClassBased);\n        if (templateStylingKey !== undefined && Array.isArray(templateStylingKey)) {\n          // Only recompute if `templateStylingKey` had static values. (If no static value found\n          // then there is nothing to do since this operation can only produce less static keys, not\n          // more.)\n          templateStylingKey = collectStylingFromDirectives(null, tData, tNode, templateStylingKey[1] /* unwrap previous statics */, isClassBased);\n          templateStylingKey = collectStylingFromTAttrs(templateStylingKey, tNode.attrs, isClassBased);\n          setTemplateHeadTStylingKey(tData, tNode, isClassBased, templateStylingKey);\n        }\n      } else {\n        // We only need to recompute residual if it is not `null`.\n        // - If existing residual (implies there was no template styling). This means that some of\n        //   the statics may have moved from the residual to the `stylingKey` and so we have to\n        //   recompute.\n        // - If `undefined` this is the first time we are running.\n        residual = collectResidual(tData, tNode, isClassBased);\n      }\n    }\n  }\n  if (residual !== undefined) {\n    isClassBased ? tNode.residualClasses = residual : tNode.residualStyles = residual;\n  }\n  return stylingKey;\n}\n/**\n * Retrieve the `TStylingKey` for the template styling instruction.\n *\n * This is needed since `hostBinding` styling instructions are inserted after the template\n * instruction. While the template instruction needs to update the residual in `TNode` the\n * `hostBinding` instructions need to update the `TStylingKey` of the template instruction because\n * the template instruction is downstream from the `hostBindings` instructions.\n *\n * @param tData `TData` where the linked list is stored.\n * @param tNode `TNode` for which the styling is being computed.\n * @param isClassBased `true` if `class` (`false` if `style`)\n * @return `TStylingKey` if found or `undefined` if not found.\n */\nfunction getTemplateHeadTStylingKey(tData, tNode, isClassBased) {\n  const bindings = isClassBased ? tNode.classBindings : tNode.styleBindings;\n  if (getTStylingRangeNext(bindings) === 0) {\n    // There does not seem to be a styling instruction in the `template`.\n    return undefined;\n  }\n  return tData[getTStylingRangePrev(bindings)];\n}\n/**\n * Update the `TStylingKey` of the first template instruction in `TNode`.\n *\n * Logically `hostBindings` styling instructions are of lower priority than that of the template.\n * However, they execute after the template styling instructions. This means that they get inserted\n * in front of the template styling instructions.\n *\n * If we have a template styling instruction and a new `hostBindings` styling instruction is\n * executed it means that it may need to steal static fields from the template instruction. This\n * method allows us to update the first template instruction `TStylingKey` with a new value.\n *\n * Assume:\n * ```\n * <div my-dir style=\"color: red\" [style.color]=\"tmplExp\"></div>\n *\n * @Directive({\n *   host: {\n *     'style': 'width: 100px',\n *     '[style.color]': 'dirExp',\n *   }\n * })\n * class MyDir {}\n * ```\n *\n * when `[style.color]=\"tmplExp\"` executes it creates this data structure.\n * ```\n *  ['', 'color', 'color', 'red', 'width', '100px'],\n * ```\n *\n * The reason for this is that the template instruction does not know if there are styling\n * instructions and must assume that there are none and must collect all of the static styling.\n * (both\n * `color' and 'width`)\n *\n * When `'[style.color]': 'dirExp',` executes we need to insert a new data into the linked list.\n * ```\n *  ['', 'color', 'width', '100px'],  // newly inserted\n *  ['', 'color', 'color', 'red', 'width', '100px'], // this is wrong\n * ```\n *\n * Notice that the template statics is now wrong as it incorrectly contains `width` so we need to\n * update it like so:\n * ```\n *  ['', 'color', 'width', '100px'],\n *  ['', 'color', 'color', 'red'],    // UPDATE\n * ```\n *\n * @param tData `TData` where the linked list is stored.\n * @param tNode `TNode` for which the styling is being computed.\n * @param isClassBased `true` if `class` (`false` if `style`)\n * @param tStylingKey New `TStylingKey` which is replacing the old one.\n */\nfunction setTemplateHeadTStylingKey(tData, tNode, isClassBased, tStylingKey) {\n  const bindings = isClassBased ? tNode.classBindings : tNode.styleBindings;\n  ngDevMode && assertNotEqual(getTStylingRangeNext(bindings), 0, 'Expecting to have at least one template styling binding.');\n  tData[getTStylingRangePrev(bindings)] = tStylingKey;\n}\n/**\n * Collect all static values after the current `TNode.directiveStylingLast` index.\n *\n * Collect the remaining styling information which has not yet been collected by an existing\n * styling instruction.\n *\n * @param tData `TData` where the `DirectiveDefs` are stored.\n * @param tNode `TNode` which contains the directive range.\n * @param isClassBased `true` if `class` (`false` if `style`)\n */\nfunction collectResidual(tData, tNode, isClassBased) {\n  let residual = undefined;\n  const directiveEnd = tNode.directiveEnd;\n  ngDevMode && assertNotEqual(tNode.directiveStylingLast, -1, 'By the time this function gets called at least one hostBindings-node styling instruction must have executed.');\n  // We add `1 + tNode.directiveStart` because we need to skip the current directive (as we are\n  // collecting things after the last `hostBindings` directive which had a styling instruction.)\n  for (let i = 1 + tNode.directiveStylingLast; i < directiveEnd; i++) {\n    const attrs = tData[i].hostAttrs;\n    residual = collectStylingFromTAttrs(residual, attrs, isClassBased);\n  }\n  return collectStylingFromTAttrs(residual, tNode.attrs, isClassBased);\n}\n/**\n * Collect the static styling information with lower priority than `hostDirectiveDef`.\n *\n * (This is opposite of residual styling.)\n *\n * @param hostDirectiveDef `DirectiveDef` for which we want to collect lower priority static\n *        styling. (Or `null` if template styling)\n * @param tData `TData` where the linked list is stored.\n * @param tNode `TNode` for which the styling is being computed.\n * @param stylingKey Existing `TStylingKey` to update or wrap.\n * @param isClassBased `true` if `class` (`false` if `style`)\n */\nfunction collectStylingFromDirectives(hostDirectiveDef, tData, tNode, stylingKey, isClassBased) {\n  // We need to loop because there can be directives which have `hostAttrs` but don't have\n  // `hostBindings` so this loop catches up to the current directive..\n  let currentDirective = null;\n  const directiveEnd = tNode.directiveEnd;\n  let directiveStylingLast = tNode.directiveStylingLast;\n  if (directiveStylingLast === -1) {\n    directiveStylingLast = tNode.directiveStart;\n  } else {\n    directiveStylingLast++;\n  }\n  while (directiveStylingLast < directiveEnd) {\n    currentDirective = tData[directiveStylingLast];\n    ngDevMode && assertDefined(currentDirective, 'expected to be defined');\n    stylingKey = collectStylingFromTAttrs(stylingKey, currentDirective.hostAttrs, isClassBased);\n    if (currentDirective === hostDirectiveDef) break;\n    directiveStylingLast++;\n  }\n  if (hostDirectiveDef !== null) {\n    // we only advance the styling cursor if we are collecting data from host bindings.\n    // Template executes before host bindings and so if we would update the index,\n    // host bindings would not get their statics.\n    tNode.directiveStylingLast = directiveStylingLast;\n  }\n  return stylingKey;\n}\n/**\n * Convert `TAttrs` into `TStylingStatic`.\n *\n * @param stylingKey existing `TStylingKey` to update or wrap.\n * @param attrs `TAttributes` to process.\n * @param isClassBased `true` if `class` (`false` if `style`)\n */\nfunction collectStylingFromTAttrs(stylingKey, attrs, isClassBased) {\n  const desiredMarker = isClassBased ? 1 /* AttributeMarker.Classes */ : 2 /* AttributeMarker.Styles */;\n  let currentMarker = -1 /* AttributeMarker.ImplicitAttributes */;\n  if (attrs !== null) {\n    for (let i = 0; i < attrs.length; i++) {\n      const item = attrs[i];\n      if (typeof item === 'number') {\n        currentMarker = item;\n      } else {\n        if (currentMarker === desiredMarker) {\n          if (!Array.isArray(stylingKey)) {\n            stylingKey = stylingKey === undefined ? [] : ['', stylingKey];\n          }\n          keyValueArraySet(stylingKey, item, isClassBased ? true : attrs[++i]);\n        }\n      }\n    }\n  }\n  return stylingKey === undefined ? null : stylingKey;\n}\n/**\n * Convert user input to `KeyValueArray`.\n *\n * This function takes user input which could be `string`, Object literal, or iterable and converts\n * it into a consistent representation. The output of this is `KeyValueArray` (which is an array\n * where\n * even indexes contain keys and odd indexes contain values for those keys).\n *\n * The advantage of converting to `KeyValueArray` is that we can perform diff in an input\n * independent\n * way.\n * (ie we can compare `foo bar` to `['bar', 'baz'] and determine a set of changes which need to be\n * applied)\n *\n * The fact that `KeyValueArray` is sorted is very important because it allows us to compute the\n * difference in linear fashion without the need to allocate any additional data.\n *\n * For example if we kept this as a `Map` we would have to iterate over previous `Map` to determine\n * which values need to be deleted, over the new `Map` to determine additions, and we would have to\n * keep additional `Map` to keep track of duplicates or items which have not yet been visited.\n *\n * @param keyValueArraySet (See `keyValueArraySet` in \"util/array_utils\") Gets passed in as a\n *        function so that `style` can be processed. This is done\n *        for tree shaking purposes.\n * @param stringParser The parser is passed in so that it will be tree shakable. See\n *        `styleStringParser` and `classStringParser`\n * @param value The value to parse/convert to `KeyValueArray`\n */\nfunction toStylingKeyValueArray(keyValueArraySet, stringParser, value) {\n  if (value == null /*|| value === undefined */ || value === '') return EMPTY_ARRAY;\n  const styleKeyValueArray = [];\n  const unwrappedValue = unwrapSafeValue(value);\n  if (Array.isArray(unwrappedValue)) {\n    for (let i = 0; i < unwrappedValue.length; i++) {\n      keyValueArraySet(styleKeyValueArray, unwrappedValue[i], true);\n    }\n  } else if (typeof unwrappedValue === 'object') {\n    for (const key in unwrappedValue) {\n      if (unwrappedValue.hasOwnProperty(key)) {\n        keyValueArraySet(styleKeyValueArray, key, unwrappedValue[key]);\n      }\n    }\n  } else if (typeof unwrappedValue === 'string') {\n    stringParser(styleKeyValueArray, unwrappedValue);\n  } else {\n    ngDevMode && throwError('Unsupported styling type ' + typeof unwrappedValue + ': ' + unwrappedValue);\n  }\n  return styleKeyValueArray;\n}\n/**\n * Set a `value` for a `key`.\n *\n * See: `keyValueArraySet` for details\n *\n * @param keyValueArray KeyValueArray to add to.\n * @param key Style key to add.\n * @param value The value to set.\n */\nfunction styleKeyValueArraySet(keyValueArray, key, value) {\n  keyValueArraySet(keyValueArray, key, unwrapSafeValue(value));\n}\n/**\n * Class-binding-specific function for setting the `value` for a `key`.\n *\n * See: `keyValueArraySet` for details\n *\n * @param keyValueArray KeyValueArray to add to.\n * @param key Style key to add.\n * @param value The value to set.\n */\nfunction classKeyValueArraySet(keyValueArray, key, value) {\n  // We use `classList.add` to eventually add the CSS classes to the DOM node. Any value passed into\n  // `add` is stringified and added to the `class` attribute, e.g. even null, undefined or numbers\n  // will be added. Stringify the key here so that our internal data structure matches the value in\n  // the DOM. The only exceptions are empty strings and strings that contain spaces for which\n  // the browser throws an error. We ignore such values, because the error is somewhat cryptic.\n  const stringKey = String(key);\n  if (stringKey !== '' && !stringKey.includes(' ')) {\n    keyValueArraySet(keyValueArray, stringKey, value);\n  }\n}\n/**\n * Update map based styling.\n *\n * Map based styling could be anything which contains more than one binding. For example `string`,\n * or object literal. Dealing with all of these types would complicate the logic so\n * instead this function expects that the complex input is first converted into normalized\n * `KeyValueArray`. The advantage of normalization is that we get the values sorted, which makes it\n * very cheap to compute deltas between the previous and current value.\n *\n * @param tView Associated `TView.data` contains the linked list of binding priorities.\n * @param tNode `TNode` where the binding is located.\n * @param lView `LView` contains the values associated with other styling binding at this `TNode`.\n * @param renderer Renderer to use if any updates.\n * @param oldKeyValueArray Previous value represented as `KeyValueArray`\n * @param newKeyValueArray Current value represented as `KeyValueArray`\n * @param isClassBased `true` if `class` (`false` if `style`)\n * @param bindingIndex Binding index of the binding.\n */\nfunction updateStylingMap(tView, tNode, lView, renderer, oldKeyValueArray, newKeyValueArray, isClassBased, bindingIndex) {\n  if (oldKeyValueArray === NO_CHANGE) {\n    // On first execution the oldKeyValueArray is NO_CHANGE => treat it as empty KeyValueArray.\n    oldKeyValueArray = EMPTY_ARRAY;\n  }\n  let oldIndex = 0;\n  let newIndex = 0;\n  let oldKey = 0 < oldKeyValueArray.length ? oldKeyValueArray[0] : null;\n  let newKey = 0 < newKeyValueArray.length ? newKeyValueArray[0] : null;\n  while (oldKey !== null || newKey !== null) {\n    ngDevMode && assertLessThan(oldIndex, 999, 'Are we stuck in infinite loop?');\n    ngDevMode && assertLessThan(newIndex, 999, 'Are we stuck in infinite loop?');\n    const oldValue = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex + 1] : undefined;\n    const newValue = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex + 1] : undefined;\n    let setKey = null;\n    let setValue = undefined;\n    if (oldKey === newKey) {\n      // UPDATE: Keys are equal => new value is overwriting old value.\n      oldIndex += 2;\n      newIndex += 2;\n      if (oldValue !== newValue) {\n        setKey = newKey;\n        setValue = newValue;\n      }\n    } else if (newKey === null || oldKey !== null && oldKey < newKey) {\n      // DELETE: oldKey key is missing or we did not find the oldKey in the newValue\n      // (because the keyValueArray is sorted and `newKey` is found later alphabetically).\n      // `\"background\" < \"color\"` so we need to delete `\"background\"` because it is not found in the\n      // new array.\n      oldIndex += 2;\n      setKey = oldKey;\n    } else {\n      // CREATE: newKey's is earlier alphabetically than oldKey's (or no oldKey) => we have new key.\n      // `\"color\" > \"background\"` so we need to add `color` because it is in new array but not in\n      // old array.\n      ngDevMode && assertDefined(newKey, 'Expecting to have a valid key');\n      newIndex += 2;\n      setKey = newKey;\n      setValue = newValue;\n    }\n    if (setKey !== null) {\n      updateStyling(tView, tNode, lView, renderer, setKey, setValue, isClassBased, bindingIndex);\n    }\n    oldKey = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex] : null;\n    newKey = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex] : null;\n  }\n}\n/**\n * Update a simple (property name) styling.\n *\n * This function takes `prop` and updates the DOM to that value. The function takes the binding\n * value as well as binding priority into consideration to determine which value should be written\n * to DOM. (For example it may be determined that there is a higher priority overwrite which blocks\n * the DOM write, or if the value goes to `undefined` a lower priority overwrite may be consulted.)\n *\n * @param tView Associated `TView.data` contains the linked list of binding priorities.\n * @param tNode `TNode` where the binding is located.\n * @param lView `LView` contains the values associated with other styling binding at this `TNode`.\n * @param renderer Renderer to use if any updates.\n * @param prop Either style property name or a class name.\n * @param value Either style value for `prop` or `true`/`false` if `prop` is class.\n * @param isClassBased `true` if `class` (`false` if `style`)\n * @param bindingIndex Binding index of the binding.\n */\nfunction updateStyling(tView, tNode, lView, renderer, prop, value, isClassBased, bindingIndex) {\n  if (!(tNode.type & 3 /* TNodeType.AnyRNode */)) {\n    // It is possible to have styling on non-elements (such as ng-container).\n    // This is rare, but it does happen. In such a case, just ignore the binding.\n    return;\n  }\n  const tData = tView.data;\n  const tRange = tData[bindingIndex + 1];\n  const higherPriorityValue = getTStylingRangeNextDuplicate(tRange) ? findStylingValue(tData, tNode, lView, prop, getTStylingRangeNext(tRange), isClassBased) : undefined;\n  if (!isStylingValuePresent(higherPriorityValue)) {\n    // We don't have a next duplicate, or we did not find a duplicate value.\n    if (!isStylingValuePresent(value)) {\n      // We should delete current value or restore to lower priority value.\n      if (getTStylingRangePrevDuplicate(tRange)) {\n        // We have a possible prev duplicate, let's retrieve it.\n        value = findStylingValue(tData, null, lView, prop, bindingIndex, isClassBased);\n      }\n    }\n    const rNode = getNativeByIndex(getSelectedIndex(), lView);\n    applyStyling(renderer, isClassBased, rNode, prop, value);\n  }\n}\n/**\n * Search for styling value with higher priority which is overwriting current value, or a\n * value of lower priority to which we should fall back if the value is `undefined`.\n *\n * When value is being applied at a location, related values need to be consulted.\n * - If there is a higher priority binding, we should be using that one instead.\n *   For example `<div  [style]=\"{color:exp1}\" [style.color]=\"exp2\">` change to `exp1`\n *   requires that we check `exp2` to see if it is set to value other than `undefined`.\n * - If there is a lower priority binding and we are changing to `undefined`\n *   For example `<div  [style]=\"{color:exp1}\" [style.color]=\"exp2\">` change to `exp2` to\n *   `undefined` requires that we check `exp1` (and static values) and use that as new value.\n *\n * NOTE: The styling stores two values.\n * 1. The raw value which came from the application is stored at `index + 0` location. (This value\n *    is used for dirty checking).\n * 2. The normalized value is stored at `index + 1`.\n *\n * @param tData `TData` used for traversing the priority.\n * @param tNode `TNode` to use for resolving static styling. Also controls search direction.\n *   - `TNode` search next and quit as soon as `isStylingValuePresent(value)` is true.\n *      If no value found consult `tNode.residualStyle`/`tNode.residualClass` for default value.\n *   - `null` search prev and go all the way to end. Return last value where\n *     `isStylingValuePresent(value)` is true.\n * @param lView `LView` used for retrieving the actual values.\n * @param prop Property which we are interested in.\n * @param index Starting index in the linked list of styling bindings where the search should start.\n * @param isClassBased `true` if `class` (`false` if `style`)\n */\nfunction findStylingValue(tData, tNode, lView, prop, index, isClassBased) {\n  // `TNode` to use for resolving static styling. Also controls search direction.\n  //   - `TNode` search next and quit as soon as `isStylingValuePresent(value)` is true.\n  //      If no value found consult `tNode.residualStyle`/`tNode.residualClass` for default value.\n  //   - `null` search prev and go all the way to end. Return last value where\n  //     `isStylingValuePresent(value)` is true.\n  const isPrevDirection = tNode === null;\n  let value = undefined;\n  while (index > 0) {\n    const rawKey = tData[index];\n    const containsStatics = Array.isArray(rawKey);\n    // Unwrap the key if we contain static values.\n    const key = containsStatics ? rawKey[1] : rawKey;\n    const isStylingMap = key === null;\n    let valueAtLViewIndex = lView[index + 1];\n    if (valueAtLViewIndex === NO_CHANGE) {\n      // In firstUpdatePass the styling instructions create a linked list of styling.\n      // On subsequent passes it is possible for a styling instruction to try to read a binding\n      // which\n      // has not yet executed. In that case we will find `NO_CHANGE` and we should assume that\n      // we have `undefined` (or empty array in case of styling-map instruction) instead. This\n      // allows the resolution to apply the value (which may later be overwritten when the\n      // binding actually executes.)\n      valueAtLViewIndex = isStylingMap ? EMPTY_ARRAY : undefined;\n    }\n    let currentValue = isStylingMap ? keyValueArrayGet(valueAtLViewIndex, prop) : key === prop ? valueAtLViewIndex : undefined;\n    if (containsStatics && !isStylingValuePresent(currentValue)) {\n      currentValue = keyValueArrayGet(rawKey, prop);\n    }\n    if (isStylingValuePresent(currentValue)) {\n      value = currentValue;\n      if (isPrevDirection) {\n        return value;\n      }\n    }\n    const tRange = tData[index + 1];\n    index = isPrevDirection ? getTStylingRangePrev(tRange) : getTStylingRangeNext(tRange);\n  }\n  if (tNode !== null) {\n    // in case where we are going in next direction AND we did not find anything, we need to\n    // consult residual styling\n    let residual = isClassBased ? tNode.residualClasses : tNode.residualStyles;\n    if (residual != null /** OR residual !=== undefined */) {\n      value = keyValueArrayGet(residual, prop);\n    }\n  }\n  return value;\n}\n/**\n * Determines if the binding value should be used (or if the value is 'undefined' and hence priority\n * resolution should be used.)\n *\n * @param value Binding style value.\n */\nfunction isStylingValuePresent(value) {\n  // Currently only `undefined` value is considered non-binding. That is `undefined` says I don't\n  // have an opinion as to what this binding should be and you should consult other bindings by\n  // priority to determine the valid value.\n  // This is extracted into a single function so that we have a single place to control this.\n  return value !== undefined;\n}\n/**\n * Normalizes and/or adds a suffix to the value.\n *\n * If value is `null`/`undefined` no suffix is added\n * @param value\n * @param suffix\n */\nfunction normalizeSuffix(value, suffix) {\n  if (value == null || value === '') {\n    // do nothing\n    // Do not add the suffix if the value is going to be empty.\n    // As it produce invalid CSS, which the browsers will automatically omit but Domino will not.\n    // Example: `\"left\": \"px;\"` instead of `\"left\": \"\"`.\n  } else if (typeof suffix === 'string') {\n    value = value + suffix;\n  } else if (typeof value === 'object') {\n    value = stringify(unwrapSafeValue(value));\n  }\n  return value;\n}\n/**\n * Tests if the `TNode` has input shadow.\n *\n * An input shadow is when a directive steals (shadows) the input by using `@Input('style')` or\n * `@Input('class')` as input.\n *\n * @param tNode `TNode` which we would like to see if it has shadow.\n * @param isClassBased `true` if `class` (`false` if `style`)\n */\nfunction hasStylingInputShadow(tNode, isClassBased) {\n  return (tNode.flags & (isClassBased ? 8 /* TNodeFlags.hasClassInput */ : 16 /* TNodeFlags.hasStyleInput */)) !== 0;\n}\n\n/**\n *\n * Update an interpolated class on an element with single bound value surrounded by text.\n *\n * Used when the value passed to a property has 1 interpolated value in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate1('prefix', v0, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate1(prefix, v0, suffix) {\n  const lView = getLView();\n  const interpolatedValue = interpolation1(lView, prefix, v0, suffix);\n  checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 2 bound values surrounded by text.\n *\n * Used when the value passed to a property has 2 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate2('prefix', v0, '-', v1, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate2(prefix, v0, i0, v1, suffix) {\n  const lView = getLView();\n  const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);\n  checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 3 bound values surrounded by text.\n *\n * Used when the value passed to a property has 3 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}-{{v2}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate3(\n * 'prefix', v0, '-', v1, '-', v2, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate3(prefix, v0, i0, v1, i1, v2, suffix) {\n  const lView = getLView();\n  const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);\n  checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 4 bound values surrounded by text.\n *\n * Used when the value passed to a property has 4 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate4(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate4(prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {\n  const lView = getLView();\n  const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);\n  checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 5 bound values surrounded by text.\n *\n * Used when the value passed to a property has 5 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate5(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate5(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {\n  const lView = getLView();\n  const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);\n  checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 6 bound values surrounded by text.\n *\n * Used when the value passed to a property has 6 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate6(\n *    'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate6(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {\n  const lView = getLView();\n  const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);\n  checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 7 bound values surrounded by text.\n *\n * Used when the value passed to a property has 7 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate7(\n *    'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate7(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {\n  const lView = getLView();\n  const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);\n  checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 8 bound values surrounded by text.\n *\n * Used when the value passed to a property has 8 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate8(\n *  'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param i6 Static value used for concatenation only.\n * @param v7 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate8(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {\n  const lView = getLView();\n  const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);\n  checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n * Update an interpolated class on an element with 9 or more bound values surrounded by text.\n *\n * Used when the number of interpolated values exceeds 8.\n *\n * ```html\n * <div\n *  class=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolateV(\n *  ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,\n *  'suffix']);\n * ```\n *.\n * @param values The collection of values and the strings in-between those values, beginning with\n * a string prefix and ending with a string suffix.\n * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolateV(values) {\n  const lView = getLView();\n  const interpolatedValue = interpolationV(lView, values);\n  checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n\n/*!\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Instruction that returns the component instance in which the current instruction is executing.\n * This is a constant-time version of `nextContent` for the case where we know that we need the\n * component instance specifically, rather than the context of a particular template.\n *\n * @codeGenApi\n */\nfunction ɵɵcomponentInstance() {\n  const instance = getLView()[DECLARATION_COMPONENT_VIEW][CONTEXT];\n  ngDevMode && assertDefined(instance, 'Expected component instance to be defined');\n  return instance;\n}\n\n/**\n * A type representing the live collection to be reconciled with any new (incoming) collection. This\n * is an adapter class that makes it possible to work with different internal data structures,\n * regardless of the actual values of the incoming collection.\n */\nclass LiveCollection {\n  destroy(item) {\n    // noop by default\n  }\n  updateValue(index, value) {\n    // noop by default\n  }\n  // operations below could be implemented on top of the operations defined so far, but having\n  // them explicitly allow clear expression of intent and potentially more performant\n  // implementations\n  swap(index1, index2) {\n    const startIdx = Math.min(index1, index2);\n    const endIdx = Math.max(index1, index2);\n    const endItem = this.detach(endIdx);\n    if (endIdx - startIdx > 1) {\n      const startItem = this.detach(startIdx);\n      this.attach(startIdx, endItem);\n      this.attach(endIdx, startItem);\n    } else {\n      this.attach(startIdx, endItem);\n    }\n  }\n  move(prevIndex, newIdx) {\n    this.attach(newIdx, this.detach(prevIndex));\n  }\n}\nfunction valuesMatching(liveIdx, liveValue, newIdx, newValue, trackBy) {\n  if (liveIdx === newIdx && Object.is(liveValue, newValue)) {\n    // matching and no value identity to update\n    return 1;\n  } else if (Object.is(trackBy(liveIdx, liveValue), trackBy(newIdx, newValue))) {\n    // matching but requires value identity update\n    return -1;\n  }\n  return 0;\n}\n/**\n * The live collection reconciliation algorithm that perform various in-place operations, so it\n * reflects the content of the new (incoming) collection.\n *\n * The reconciliation algorithm has 2 code paths:\n * - \"fast\" path that don't require any memory allocation;\n * - \"slow\" path that requires additional memory allocation for intermediate data structures used to\n * collect additional information about the live collection.\n * It might happen that the algorithm switches between the two modes in question in a single\n * reconciliation path - generally it tries to stay on the \"fast\" path as much as possible.\n *\n * The overall complexity of the algorithm is O(n + m) for speed and O(n) for memory (where n is the\n * length of the live collection and m is the length of the incoming collection). Given the problem\n * at hand the complexity / performance constraints makes it impossible to perform the absolute\n * minimum of operation to reconcile the 2 collections. The algorithm makes different tradeoffs to\n * stay within reasonable performance bounds and may apply sub-optimal number of operations in\n * certain situations.\n *\n * @param liveCollection the current, live collection;\n * @param newCollection the new, incoming collection;\n * @param trackByFn key generation function that determines equality between items in the life and\n *     incoming collection;\n */\nfunction reconcile(liveCollection, newCollection, trackByFn) {\n  let detachedItems = undefined;\n  let liveKeysInTheFuture = undefined;\n  let liveStartIdx = 0;\n  let liveEndIdx = liveCollection.length - 1;\n  if (Array.isArray(newCollection)) {\n    let newEndIdx = newCollection.length - 1;\n    while (liveStartIdx <= liveEndIdx && liveStartIdx <= newEndIdx) {\n      // compare from the beginning\n      const liveStartValue = liveCollection.at(liveStartIdx);\n      const newStartValue = newCollection[liveStartIdx];\n      const isStartMatching = valuesMatching(liveStartIdx, liveStartValue, liveStartIdx, newStartValue, trackByFn);\n      if (isStartMatching !== 0) {\n        if (isStartMatching < 0) {\n          liveCollection.updateValue(liveStartIdx, newStartValue);\n        }\n        liveStartIdx++;\n        continue;\n      }\n      // compare from the end\n      // TODO(perf): do _all_ the matching from the end\n      const liveEndValue = liveCollection.at(liveEndIdx);\n      const newEndValue = newCollection[newEndIdx];\n      const isEndMatching = valuesMatching(liveEndIdx, liveEndValue, newEndIdx, newEndValue, trackByFn);\n      if (isEndMatching !== 0) {\n        if (isEndMatching < 0) {\n          liveCollection.updateValue(liveEndIdx, newEndValue);\n        }\n        liveEndIdx--;\n        newEndIdx--;\n        continue;\n      }\n      // Detect swap and moves:\n      const liveStartKey = trackByFn(liveStartIdx, liveStartValue);\n      const liveEndKey = trackByFn(liveEndIdx, liveEndValue);\n      const newStartKey = trackByFn(liveStartIdx, newStartValue);\n      if (Object.is(newStartKey, liveEndKey)) {\n        const newEndKey = trackByFn(newEndIdx, newEndValue);\n        // detect swap on both ends;\n        if (Object.is(newEndKey, liveStartKey)) {\n          liveCollection.swap(liveStartIdx, liveEndIdx);\n          liveCollection.updateValue(liveEndIdx, newEndValue);\n          newEndIdx--;\n          liveEndIdx--;\n        } else {\n          // the new item is the same as the live item with the end pointer - this is a move forward\n          // to an earlier index;\n          liveCollection.move(liveEndIdx, liveStartIdx);\n        }\n        liveCollection.updateValue(liveStartIdx, newStartValue);\n        liveStartIdx++;\n        continue;\n      }\n      // Fallback to the slow path: we need to learn more about the content of the live and new\n      // collections.\n      detachedItems ??= new UniqueValueMultiKeyMap();\n      liveKeysInTheFuture ??= initLiveItemsInTheFuture(liveCollection, liveStartIdx, liveEndIdx, trackByFn);\n      // Check if I'm inserting a previously detached item: if so, attach it here\n      if (attachPreviouslyDetached(liveCollection, detachedItems, liveStartIdx, newStartKey)) {\n        liveCollection.updateValue(liveStartIdx, newStartValue);\n        liveStartIdx++;\n        liveEndIdx++;\n      } else if (!liveKeysInTheFuture.has(newStartKey)) {\n        // Check if we seen a new item that doesn't exist in the old collection and must be INSERTED\n        const newItem = liveCollection.create(liveStartIdx, newCollection[liveStartIdx]);\n        liveCollection.attach(liveStartIdx, newItem);\n        liveStartIdx++;\n        liveEndIdx++;\n      } else {\n        // We know that the new item exists later on in old collection but we don't know its index\n        // and as the consequence can't move it (don't know where to find it). Detach the old item,\n        // hoping that it unlocks the fast path again.\n        detachedItems.set(liveStartKey, liveCollection.detach(liveStartIdx));\n        liveEndIdx--;\n      }\n    }\n    // Final cleanup steps:\n    // - more items in the new collection => insert\n    while (liveStartIdx <= newEndIdx) {\n      createOrAttach(liveCollection, detachedItems, trackByFn, liveStartIdx, newCollection[liveStartIdx]);\n      liveStartIdx++;\n    }\n  } else if (newCollection != null) {\n    // iterable - immediately fallback to the slow path\n    const newCollectionIterator = newCollection[Symbol.iterator]();\n    let newIterationResult = newCollectionIterator.next();\n    while (!newIterationResult.done && liveStartIdx <= liveEndIdx) {\n      const liveValue = liveCollection.at(liveStartIdx);\n      const newValue = newIterationResult.value;\n      const isStartMatching = valuesMatching(liveStartIdx, liveValue, liveStartIdx, newValue, trackByFn);\n      if (isStartMatching !== 0) {\n        // found a match - move on, but update value\n        if (isStartMatching < 0) {\n          liveCollection.updateValue(liveStartIdx, newValue);\n        }\n        liveStartIdx++;\n        newIterationResult = newCollectionIterator.next();\n      } else {\n        detachedItems ??= new UniqueValueMultiKeyMap();\n        liveKeysInTheFuture ??= initLiveItemsInTheFuture(liveCollection, liveStartIdx, liveEndIdx, trackByFn);\n        // Check if I'm inserting a previously detached item: if so, attach it here\n        const newKey = trackByFn(liveStartIdx, newValue);\n        if (attachPreviouslyDetached(liveCollection, detachedItems, liveStartIdx, newKey)) {\n          liveCollection.updateValue(liveStartIdx, newValue);\n          liveStartIdx++;\n          liveEndIdx++;\n          newIterationResult = newCollectionIterator.next();\n        } else if (!liveKeysInTheFuture.has(newKey)) {\n          liveCollection.attach(liveStartIdx, liveCollection.create(liveStartIdx, newValue));\n          liveStartIdx++;\n          liveEndIdx++;\n          newIterationResult = newCollectionIterator.next();\n        } else {\n          // it is a move forward - detach the current item without advancing in collections\n          const liveKey = trackByFn(liveStartIdx, liveValue);\n          detachedItems.set(liveKey, liveCollection.detach(liveStartIdx));\n          liveEndIdx--;\n        }\n      }\n    }\n    // this is a new item as we run out of the items in the old collection - create or attach a\n    // previously detached one\n    while (!newIterationResult.done) {\n      createOrAttach(liveCollection, detachedItems, trackByFn, liveCollection.length, newIterationResult.value);\n      newIterationResult = newCollectionIterator.next();\n    }\n  }\n  // Cleanups common to the array and iterable:\n  // - more items in the live collection => delete starting from the end;\n  while (liveStartIdx <= liveEndIdx) {\n    liveCollection.destroy(liveCollection.detach(liveEndIdx--));\n  }\n  // - destroy items that were detached but never attached again.\n  detachedItems?.forEach(item => {\n    liveCollection.destroy(item);\n  });\n}\nfunction attachPreviouslyDetached(prevCollection, detachedItems, index, key) {\n  if (detachedItems !== undefined && detachedItems.has(key)) {\n    prevCollection.attach(index, detachedItems.get(key));\n    detachedItems.delete(key);\n    return true;\n  }\n  return false;\n}\nfunction createOrAttach(liveCollection, detachedItems, trackByFn, index, value) {\n  if (!attachPreviouslyDetached(liveCollection, detachedItems, index, trackByFn(index, value))) {\n    const newItem = liveCollection.create(index, value);\n    liveCollection.attach(index, newItem);\n  } else {\n    liveCollection.updateValue(index, value);\n  }\n}\nfunction initLiveItemsInTheFuture(liveCollection, start, end, trackByFn) {\n  const keys = new Set();\n  for (let i = start; i <= end; i++) {\n    keys.add(trackByFn(i, liveCollection.at(i)));\n  }\n  return keys;\n}\n/**\n * A specific, partial implementation of the Map interface with the following characteristics:\n * - allows multiple values for a given key;\n * - maintain FIFO order for multiple values corresponding to a given key;\n * - assumes that all values are unique.\n *\n * The implementation aims at having the minimal overhead for cases where keys are _not_ duplicated\n * (the most common case in the list reconciliation algorithm). To achieve this, the first value for\n * a given key is stored in a regular map. Then, when more values are set for a given key, we\n * maintain a form of linked list in a separate map. To maintain this linked list we assume that all\n * values (in the entire collection) are unique.\n */\nclass UniqueValueMultiKeyMap {\n  constructor() {\n    // A map from a key to the first value corresponding to this key.\n    this.kvMap = new Map();\n    // A map that acts as a linked list of values - each value maps to the next value in this \"linked\n    // list\" (this only works if values are unique). Allocated lazily to avoid memory consumption when\n    // there are no duplicated values.\n    this._vMap = undefined;\n  }\n  has(key) {\n    return this.kvMap.has(key);\n  }\n  delete(key) {\n    if (!this.has(key)) return false;\n    const value = this.kvMap.get(key);\n    if (this._vMap !== undefined && this._vMap.has(value)) {\n      this.kvMap.set(key, this._vMap.get(value));\n      this._vMap.delete(value);\n    } else {\n      this.kvMap.delete(key);\n    }\n    return true;\n  }\n  get(key) {\n    return this.kvMap.get(key);\n  }\n  set(key, value) {\n    if (this.kvMap.has(key)) {\n      let prevValue = this.kvMap.get(key);\n      ngDevMode && assertNotSame(prevValue, value, `Detected a duplicated value ${value} for the key ${key}`);\n      if (this._vMap === undefined) {\n        this._vMap = new Map();\n      }\n      const vMap = this._vMap;\n      while (vMap.has(prevValue)) {\n        prevValue = vMap.get(prevValue);\n      }\n      vMap.set(prevValue, value);\n    } else {\n      this.kvMap.set(key, value);\n    }\n  }\n  forEach(cb) {\n    for (let [key, value] of this.kvMap) {\n      cb(value, key);\n      if (this._vMap !== undefined) {\n        const vMap = this._vMap;\n        while (vMap.has(value)) {\n          value = vMap.get(value);\n          cb(value, key);\n        }\n      }\n    }\n  }\n}\n\n/**\n * The conditional instruction represents the basic building block on the runtime side to support\n * built-in \"if\" and \"switch\". On the high level this instruction is responsible for adding and\n * removing views selected by a conditional expression.\n *\n * @param containerIndex index of a container in a host view (indexed from HEADER_OFFSET) where\n *     conditional views should be inserted.\n * @param matchingTemplateIndex index of a template TNode representing a conditional view to be\n *     inserted; -1 represents a special case when there is no view to insert.\n * @codeGenApi\n */\nfunction ɵɵconditional(containerIndex, matchingTemplateIndex, value) {\n  performanceMarkFeature('NgControlFlow');\n  const hostLView = getLView();\n  const bindingIndex = nextBindingIndex();\n  const lContainer = getLContainer(hostLView, HEADER_OFFSET + containerIndex);\n  const viewInContainerIdx = 0;\n  if (bindingUpdated(hostLView, bindingIndex, matchingTemplateIndex)) {\n    const prevConsumer = setActiveConsumer$1(null);\n    try {\n      // The index of the view to show changed - remove the previously displayed one\n      // (it is a noop if there are no active views in a container).\n      removeLViewFromLContainer(lContainer, viewInContainerIdx);\n      // Index -1 is a special case where none of the conditions evaluates to\n      // a truthy value and as the consequence we've got no view to show.\n      if (matchingTemplateIndex !== -1) {\n        const templateTNode = getExistingTNode(hostLView[TVIEW], HEADER_OFFSET + matchingTemplateIndex);\n        const dehydratedView = findMatchingDehydratedView(lContainer, templateTNode.tView.ssrId);\n        const embeddedLView = createAndRenderEmbeddedLView(hostLView, templateTNode, value, {\n          dehydratedView\n        });\n        addLViewToLContainer(lContainer, embeddedLView, viewInContainerIdx, shouldAddViewToDom(templateTNode, dehydratedView));\n      }\n    } finally {\n      setActiveConsumer$1(prevConsumer);\n    }\n  } else {\n    // We might keep displaying the same template but the actual value of the expression could have\n    // changed - re-bind in context.\n    const lView = getLViewFromLContainer(lContainer, viewInContainerIdx);\n    if (lView !== undefined) {\n      lView[CONTEXT] = value;\n    }\n  }\n}\nclass RepeaterContext {\n  constructor(lContainer, $implicit, $index) {\n    this.lContainer = lContainer;\n    this.$implicit = $implicit;\n    this.$index = $index;\n  }\n  get $count() {\n    return this.lContainer.length - CONTAINER_HEADER_OFFSET;\n  }\n}\n/**\n * A built-in trackBy function used for situations where users specified collection index as a\n * tracking expression. Having this function body in the runtime avoids unnecessary code generation.\n *\n * @param index\n * @returns\n */\nfunction ɵɵrepeaterTrackByIndex(index) {\n  return index;\n}\n/**\n * A built-in trackBy function used for situations where users specified collection item reference\n * as a tracking expression. Having this function body in the runtime avoids unnecessary code\n * generation.\n *\n * @param index\n * @returns\n */\nfunction ɵɵrepeaterTrackByIdentity(_, value) {\n  return value;\n}\nclass RepeaterMetadata {\n  constructor(hasEmptyBlock, trackByFn, liveCollection) {\n    this.hasEmptyBlock = hasEmptyBlock;\n    this.trackByFn = trackByFn;\n    this.liveCollection = liveCollection;\n  }\n}\n/**\n * The repeaterCreate instruction runs in the creation part of the template pass and initializes\n * internal data structures required by the update pass of the built-in repeater logic. Repeater\n * metadata are allocated in the data part of LView with the following layout:\n * - LView[HEADER_OFFSET + index] - metadata\n * - LView[HEADER_OFFSET + index + 1] - reference to a template function rendering an item\n * - LView[HEADER_OFFSET + index + 2] - optional reference to a template function rendering an empty\n * block\n *\n * @param index Index at which to store the metadata of the repeater.\n * @param templateFn Reference to the template of the main repeater block.\n * @param decls The number of nodes, local refs, and pipes for the main block.\n * @param vars The number of bindings for the main block.\n * @param tagName The name of the container element, if applicable\n * @param attrsIndex Index of template attributes in the `consts` array.\n * @param trackByFn Reference to the tracking function.\n * @param trackByUsesComponentInstance Whether the tracking function has any references to the\n *  component instance. If it doesn't, we can avoid rebinding it.\n * @param emptyTemplateFn Reference to the template function of the empty block.\n * @param emptyDecls The number of nodes, local refs, and pipes for the empty block.\n * @param emptyVars The number of bindings for the empty block.\n * @param emptyTagName The name of the empty block container element, if applicable\n * @param emptyAttrsIndex Index of the empty block template attributes in the `consts` array.\n *\n * @codeGenApi\n */\nfunction ɵɵrepeaterCreate(index, templateFn, decls, vars, tagName, attrsIndex, trackByFn, trackByUsesComponentInstance, emptyTemplateFn, emptyDecls, emptyVars, emptyTagName, emptyAttrsIndex) {\n  performanceMarkFeature('NgControlFlow');\n  ngDevMode && assertFunction(trackByFn, `A track expression must be a function, was ${typeof trackByFn} instead.`);\n  const hasEmptyBlock = emptyTemplateFn !== undefined;\n  const hostLView = getLView();\n  const boundTrackBy = trackByUsesComponentInstance ?\n  // We only want to bind when necessary, because it produces a\n  // new function. For pure functions it's not necessary.\n  trackByFn.bind(hostLView[DECLARATION_COMPONENT_VIEW][CONTEXT]) : trackByFn;\n  const metadata = new RepeaterMetadata(hasEmptyBlock, boundTrackBy);\n  hostLView[HEADER_OFFSET + index] = metadata;\n  ɵɵtemplate(index + 1, templateFn, decls, vars, tagName, attrsIndex);\n  if (hasEmptyBlock) {\n    ngDevMode && assertDefined(emptyDecls, 'Missing number of declarations for the empty repeater block.');\n    ngDevMode && assertDefined(emptyVars, 'Missing number of bindings for the empty repeater block.');\n    ɵɵtemplate(index + 2, emptyTemplateFn, emptyDecls, emptyVars, emptyTagName, emptyAttrsIndex);\n  }\n}\nclass LiveCollectionLContainerImpl extends LiveCollection {\n  constructor(lContainer, hostLView, templateTNode) {\n    super();\n    this.lContainer = lContainer;\n    this.hostLView = hostLView;\n    this.templateTNode = templateTNode;\n    /**\n     Property indicating if indexes in the repeater context need to be updated following the live\n     collection changes. Index updates are necessary if and only if views are inserted / removed in\n     the middle of LContainer. Adds and removals at the end don't require index updates.\n    */\n    this.needsIndexUpdate = false;\n  }\n  get length() {\n    return this.lContainer.length - CONTAINER_HEADER_OFFSET;\n  }\n  at(index) {\n    return this.getLView(index)[CONTEXT].$implicit;\n  }\n  attach(index, lView) {\n    const dehydratedView = lView[HYDRATION];\n    this.needsIndexUpdate ||= index !== this.length;\n    addLViewToLContainer(this.lContainer, lView, index, shouldAddViewToDom(this.templateTNode, dehydratedView));\n  }\n  detach(index) {\n    this.needsIndexUpdate ||= index !== this.length - 1;\n    return detachExistingView(this.lContainer, index);\n  }\n  create(index, value) {\n    const dehydratedView = findMatchingDehydratedView(this.lContainer, this.templateTNode.tView.ssrId);\n    const embeddedLView = createAndRenderEmbeddedLView(this.hostLView, this.templateTNode, new RepeaterContext(this.lContainer, value, index), {\n      dehydratedView\n    });\n    return embeddedLView;\n  }\n  destroy(lView) {\n    destroyLView(lView[TVIEW], lView);\n  }\n  updateValue(index, value) {\n    this.getLView(index)[CONTEXT].$implicit = value;\n  }\n  reset() {\n    this.needsIndexUpdate = false;\n  }\n  updateIndexes() {\n    if (this.needsIndexUpdate) {\n      for (let i = 0; i < this.length; i++) {\n        this.getLView(i)[CONTEXT].$index = i;\n      }\n    }\n  }\n  getLView(index) {\n    return getExistingLViewFromLContainer(this.lContainer, index);\n  }\n}\n/**\n * The repeater instruction does update-time diffing of a provided collection (against the\n * collection seen previously) and maps changes in the collection to views structure (by adding,\n * removing or moving views as needed).\n * @param collection - the collection instance to be checked for changes\n * @codeGenApi\n */\nfunction ɵɵrepeater(collection) {\n  const prevConsumer = setActiveConsumer$1(null);\n  const metadataSlotIdx = getSelectedIndex();\n  try {\n    const hostLView = getLView();\n    const hostTView = hostLView[TVIEW];\n    const metadata = hostLView[metadataSlotIdx];\n    if (metadata.liveCollection === undefined) {\n      const containerIndex = metadataSlotIdx + 1;\n      const lContainer = getLContainer(hostLView, containerIndex);\n      const itemTemplateTNode = getExistingTNode(hostTView, containerIndex);\n      metadata.liveCollection = new LiveCollectionLContainerImpl(lContainer, hostLView, itemTemplateTNode);\n    } else {\n      metadata.liveCollection.reset();\n    }\n    const liveCollection = metadata.liveCollection;\n    reconcile(liveCollection, collection, metadata.trackByFn);\n    // moves in the container might caused context's index to get out of order, re-adjust if needed\n    liveCollection.updateIndexes();\n    // handle empty blocks\n    if (metadata.hasEmptyBlock) {\n      const bindingIndex = nextBindingIndex();\n      const isCollectionEmpty = liveCollection.length === 0;\n      if (bindingUpdated(hostLView, bindingIndex, isCollectionEmpty)) {\n        const emptyTemplateIndex = metadataSlotIdx + 2;\n        const lContainerForEmpty = getLContainer(hostLView, emptyTemplateIndex);\n        if (isCollectionEmpty) {\n          const emptyTemplateTNode = getExistingTNode(hostTView, emptyTemplateIndex);\n          const dehydratedView = findMatchingDehydratedView(lContainerForEmpty, emptyTemplateTNode.tView.ssrId);\n          const embeddedLView = createAndRenderEmbeddedLView(hostLView, emptyTemplateTNode, undefined, {\n            dehydratedView\n          });\n          addLViewToLContainer(lContainerForEmpty, embeddedLView, 0, shouldAddViewToDom(emptyTemplateTNode, dehydratedView));\n        } else {\n          removeLViewFromLContainer(lContainerForEmpty, 0);\n        }\n      }\n    }\n  } finally {\n    setActiveConsumer$1(prevConsumer);\n  }\n}\nfunction getLContainer(lView, index) {\n  const lContainer = lView[index];\n  ngDevMode && assertLContainer(lContainer);\n  return lContainer;\n}\nfunction detachExistingView(lContainer, index) {\n  const existingLView = detachView(lContainer, index);\n  ngDevMode && assertLView(existingLView);\n  return existingLView;\n}\nfunction getExistingLViewFromLContainer(lContainer, index) {\n  const existingLView = getLViewFromLContainer(lContainer, index);\n  ngDevMode && assertLView(existingLView);\n  return existingLView;\n}\nfunction getExistingTNode(tView, index) {\n  const tNode = getTNode(tView, index);\n  ngDevMode && assertTNode(tNode);\n  return tNode;\n}\nfunction elementStartFirstCreatePass(index, tView, lView, name, attrsIndex, localRefsIndex) {\n  ngDevMode && assertFirstCreatePass(tView);\n  ngDevMode && ngDevMode.firstCreatePass++;\n  const tViewConsts = tView.consts;\n  const attrs = getConstant(tViewConsts, attrsIndex);\n  const tNode = getOrCreateTNode(tView, index, 2 /* TNodeType.Element */, name, attrs);\n  resolveDirectives(tView, lView, tNode, getConstant(tViewConsts, localRefsIndex));\n  if (tNode.attrs !== null) {\n    computeStaticStyling(tNode, tNode.attrs, false);\n  }\n  if (tNode.mergedAttrs !== null) {\n    computeStaticStyling(tNode, tNode.mergedAttrs, true);\n  }\n  if (tView.queries !== null) {\n    tView.queries.elementStart(tView, tNode);\n  }\n  return tNode;\n}\n/**\n * Create DOM element. The instruction must later be followed by `elementEnd()` call.\n *\n * @param index Index of the element in the LView array\n * @param name Name of the DOM Node\n * @param attrsIndex Index of the element's attributes in the `consts` array.\n * @param localRefsIndex Index of the element's local references in the `consts` array.\n * @returns This function returns itself so that it may be chained.\n *\n * Attributes and localRefs are passed as an array of strings where elements with an even index\n * hold an attribute name and elements with an odd index hold an attribute value, ex.:\n * ['id', 'warning5', 'class', 'alert']\n *\n * @codeGenApi\n */\nfunction ɵɵelementStart(index, name, attrsIndex, localRefsIndex) {\n  const lView = getLView();\n  const tView = getTView();\n  const adjustedIndex = HEADER_OFFSET + index;\n  ngDevMode && assertEqual(getBindingIndex(), tView.bindingStartIndex, 'elements should be created before any bindings');\n  ngDevMode && assertIndexInRange(lView, adjustedIndex);\n  const renderer = lView[RENDERER];\n  const tNode = tView.firstCreatePass ? elementStartFirstCreatePass(adjustedIndex, tView, lView, name, attrsIndex, localRefsIndex) : tView.data[adjustedIndex];\n  const native = _locateOrCreateElementNode(tView, lView, tNode, renderer, name, index);\n  lView[adjustedIndex] = native;\n  const hasDirectives = isDirectiveHost(tNode);\n  if (ngDevMode && tView.firstCreatePass) {\n    validateElementIsKnown(native, lView, tNode.value, tView.schemas, hasDirectives);\n  }\n  setCurrentTNode(tNode, true);\n  setupStaticAttributes(renderer, native, tNode);\n  if (!isDetachedByI18n(tNode) && wasLastNodeCreated()) {\n    // In the i18n case, the translation may have removed this element, so only add it if it is not\n    // detached. See `TNodeType.Placeholder` and `LFrame.inI18n` for more context.\n    appendChild(tView, lView, native, tNode);\n  }\n  // any immediate children of a component or template container must be pre-emptively\n  // monkey-patched with the component view data so that the element can be inspected\n  // later on using any element discovery utility methods (see `element_discovery.ts`)\n  if (getElementDepthCount() === 0) {\n    attachPatchData(native, lView);\n  }\n  increaseElementDepthCount();\n  if (hasDirectives) {\n    createDirectivesInstances(tView, lView, tNode);\n    executeContentQueries(tView, tNode, lView);\n  }\n  if (localRefsIndex !== null) {\n    saveResolvedLocalsInData(lView, tNode);\n  }\n  return ɵɵelementStart;\n}\n/**\n * Mark the end of the element.\n * @returns This function returns itself so that it may be chained.\n *\n * @codeGenApi\n */\nfunction ɵɵelementEnd() {\n  let currentTNode = getCurrentTNode();\n  ngDevMode && assertDefined(currentTNode, 'No parent node to close.');\n  if (isCurrentTNodeParent()) {\n    setCurrentTNodeAsNotParent();\n  } else {\n    ngDevMode && assertHasParent(getCurrentTNode());\n    currentTNode = currentTNode.parent;\n    setCurrentTNode(currentTNode, false);\n  }\n  const tNode = currentTNode;\n  ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */);\n  if (isSkipHydrationRootTNode(tNode)) {\n    leaveSkipHydrationBlock();\n  }\n  decreaseElementDepthCount();\n  const tView = getTView();\n  if (tView.firstCreatePass) {\n    registerPostOrderHooks(tView, currentTNode);\n    if (isContentQueryHost(currentTNode)) {\n      tView.queries.elementEnd(currentTNode);\n    }\n  }\n  if (tNode.classesWithoutHost != null && hasClassInput(tNode)) {\n    setDirectiveInputsWhichShadowsStyling(tView, tNode, getLView(), tNode.classesWithoutHost, true);\n  }\n  if (tNode.stylesWithoutHost != null && hasStyleInput(tNode)) {\n    setDirectiveInputsWhichShadowsStyling(tView, tNode, getLView(), tNode.stylesWithoutHost, false);\n  }\n  return ɵɵelementEnd;\n}\n/**\n * Creates an empty element using {@link elementStart} and {@link elementEnd}\n *\n * @param index Index of the element in the data array\n * @param name Name of the DOM Node\n * @param attrsIndex Index of the element's attributes in the `consts` array.\n * @param localRefsIndex Index of the element's local references in the `consts` array.\n * @returns This function returns itself so that it may be chained.\n *\n * @codeGenApi\n */\nfunction ɵɵelement(index, name, attrsIndex, localRefsIndex) {\n  ɵɵelementStart(index, name, attrsIndex, localRefsIndex);\n  ɵɵelementEnd();\n  return ɵɵelement;\n}\nlet _locateOrCreateElementNode = (tView, lView, tNode, renderer, name, index) => {\n  lastNodeWasCreated(true);\n  return createElementNode(renderer, name, getNamespace$1());\n};\n/**\n * Enables hydration code path (to lookup existing elements in DOM)\n * in addition to the regular creation mode of element nodes.\n */\nfunction locateOrCreateElementNodeImpl(tView, lView, tNode, renderer, name, index) {\n  const hydrationInfo = lView[HYDRATION];\n  const isNodeCreationMode = !hydrationInfo || isInSkipHydrationBlock$1() || isDetachedByI18n(tNode) || isDisconnectedNode$1(hydrationInfo, index);\n  lastNodeWasCreated(isNodeCreationMode);\n  // Regular creation mode.\n  if (isNodeCreationMode) {\n    return createElementNode(renderer, name, getNamespace$1());\n  }\n  // Hydration mode, looking up an existing element in DOM.\n  const native = locateNextRNode(hydrationInfo, tView, lView, tNode);\n  ngDevMode && validateMatchingNode(native, Node.ELEMENT_NODE, name, lView, tNode);\n  ngDevMode && markRNodeAsClaimedByHydration(native);\n  // This element might also be an anchor of a view container.\n  if (getSerializedContainerViews(hydrationInfo, index)) {\n    // Important note: this element acts as an anchor, but it's **not** a part\n    // of the embedded view, so we start the segment **after** this element, taking\n    // a reference to the next sibling. For example, the following template:\n    // `<div #vcrTarget>` is represented in the DOM as `<div></div>...<!--container-->`,\n    // so while processing a `<div>` instruction, point to the next sibling as a\n    // start of a segment.\n    ngDevMode && validateNodeExists(native.nextSibling, lView, tNode);\n    setSegmentHead(hydrationInfo, index, native.nextSibling);\n  }\n  // Checks if the skip hydration attribute is present during hydration so we know to\n  // skip attempting to hydrate this block. We check both TNode and RElement for an\n  // attribute: the RElement case is needed for i18n cases, when we add it to host\n  // elements during the annotation phase (after all internal data structures are setup).\n  if (hydrationInfo && (hasSkipHydrationAttrOnTNode(tNode) || hasSkipHydrationAttrOnRElement(native))) {\n    if (isComponentHost(tNode)) {\n      enterSkipHydrationBlock(tNode);\n      // Since this isn't hydratable, we need to empty the node\n      // so there's no duplicate content after render\n      clearElementContents(native);\n      ngDevMode && markRNodeAsSkippedByHydration(native);\n    } else if (ngDevMode) {\n      // If this is not a component host, throw an error.\n      // Hydration can be skipped on per-component basis only.\n      throw invalidSkipHydrationHost(native);\n    }\n  }\n  return native;\n}\nfunction enableLocateOrCreateElementNodeImpl() {\n  _locateOrCreateElementNode = locateOrCreateElementNodeImpl;\n}\nfunction elementContainerStartFirstCreatePass(index, tView, lView, attrsIndex, localRefsIndex) {\n  ngDevMode && ngDevMode.firstCreatePass++;\n  const tViewConsts = tView.consts;\n  const attrs = getConstant(tViewConsts, attrsIndex);\n  const tNode = getOrCreateTNode(tView, index, 8 /* TNodeType.ElementContainer */, 'ng-container', attrs);\n  // While ng-container doesn't necessarily support styling, we use the style context to identify\n  // and execute directives on the ng-container.\n  if (attrs !== null) {\n    computeStaticStyling(tNode, attrs, true);\n  }\n  const localRefs = getConstant(tViewConsts, localRefsIndex);\n  resolveDirectives(tView, lView, tNode, localRefs);\n  if (tView.queries !== null) {\n    tView.queries.elementStart(tView, tNode);\n  }\n  return tNode;\n}\n/**\n * Creates a logical container for other nodes (<ng-container>) backed by a comment node in the DOM.\n * The instruction must later be followed by `elementContainerEnd()` call.\n *\n * @param index Index of the element in the LView array\n * @param attrsIndex Index of the container attributes in the `consts` array.\n * @param localRefsIndex Index of the container's local references in the `consts` array.\n * @returns This function returns itself so that it may be chained.\n *\n * Even if this instruction accepts a set of attributes no actual attribute values are propagated to\n * the DOM (as a comment node can't have attributes). Attributes are here only for directive\n * matching purposes and setting initial inputs of directives.\n *\n * @codeGenApi\n */\nfunction ɵɵelementContainerStart(index, attrsIndex, localRefsIndex) {\n  const lView = getLView();\n  const tView = getTView();\n  const adjustedIndex = index + HEADER_OFFSET;\n  ngDevMode && assertIndexInRange(lView, adjustedIndex);\n  ngDevMode && assertEqual(getBindingIndex(), tView.bindingStartIndex, 'element containers should be created before any bindings');\n  const tNode = tView.firstCreatePass ? elementContainerStartFirstCreatePass(adjustedIndex, tView, lView, attrsIndex, localRefsIndex) : tView.data[adjustedIndex];\n  setCurrentTNode(tNode, true);\n  const comment = _locateOrCreateElementContainerNode(tView, lView, tNode, index);\n  lView[adjustedIndex] = comment;\n  if (wasLastNodeCreated()) {\n    appendChild(tView, lView, comment, tNode);\n  }\n  attachPatchData(comment, lView);\n  if (isDirectiveHost(tNode)) {\n    createDirectivesInstances(tView, lView, tNode);\n    executeContentQueries(tView, tNode, lView);\n  }\n  if (localRefsIndex != null) {\n    saveResolvedLocalsInData(lView, tNode);\n  }\n  return ɵɵelementContainerStart;\n}\n/**\n * Mark the end of the <ng-container>.\n * @returns This function returns itself so that it may be chained.\n *\n * @codeGenApi\n */\nfunction ɵɵelementContainerEnd() {\n  let currentTNode = getCurrentTNode();\n  const tView = getTView();\n  if (isCurrentTNodeParent()) {\n    setCurrentTNodeAsNotParent();\n  } else {\n    ngDevMode && assertHasParent(currentTNode);\n    currentTNode = currentTNode.parent;\n    setCurrentTNode(currentTNode, false);\n  }\n  ngDevMode && assertTNodeType(currentTNode, 8 /* TNodeType.ElementContainer */);\n  if (tView.firstCreatePass) {\n    registerPostOrderHooks(tView, currentTNode);\n    if (isContentQueryHost(currentTNode)) {\n      tView.queries.elementEnd(currentTNode);\n    }\n  }\n  return ɵɵelementContainerEnd;\n}\n/**\n * Creates an empty logical container using {@link elementContainerStart}\n * and {@link elementContainerEnd}\n *\n * @param index Index of the element in the LView array\n * @param attrsIndex Index of the container attributes in the `consts` array.\n * @param localRefsIndex Index of the container's local references in the `consts` array.\n * @returns This function returns itself so that it may be chained.\n *\n * @codeGenApi\n */\nfunction ɵɵelementContainer(index, attrsIndex, localRefsIndex) {\n  ɵɵelementContainerStart(index, attrsIndex, localRefsIndex);\n  ɵɵelementContainerEnd();\n  return ɵɵelementContainer;\n}\nlet _locateOrCreateElementContainerNode = (tView, lView, tNode, index) => {\n  lastNodeWasCreated(true);\n  return createCommentNode(lView[RENDERER], ngDevMode ? 'ng-container' : '');\n};\n/**\n * Enables hydration code path (to lookup existing elements in DOM)\n * in addition to the regular creation mode of comment nodes that\n * represent <ng-container>'s anchor.\n */\nfunction locateOrCreateElementContainerNode(tView, lView, tNode, index) {\n  let comment;\n  const hydrationInfo = lView[HYDRATION];\n  const isNodeCreationMode = !hydrationInfo || isInSkipHydrationBlock$1() || isDetachedByI18n(tNode);\n  lastNodeWasCreated(isNodeCreationMode);\n  // Regular creation mode.\n  if (isNodeCreationMode) {\n    return createCommentNode(lView[RENDERER], ngDevMode ? 'ng-container' : '');\n  }\n  // Hydration mode, looking up existing elements in DOM.\n  const currentRNode = locateNextRNode(hydrationInfo, tView, lView, tNode);\n  ngDevMode && validateNodeExists(currentRNode, lView, tNode);\n  const ngContainerSize = getNgContainerSize(hydrationInfo, index);\n  ngDevMode && assertNumber(ngContainerSize, 'Unexpected state: hydrating an <ng-container>, ' + 'but no hydration info is available.');\n  setSegmentHead(hydrationInfo, index, currentRNode);\n  comment = siblingAfter(ngContainerSize, currentRNode);\n  if (ngDevMode) {\n    validateMatchingNode(comment, Node.COMMENT_NODE, null, lView, tNode);\n    markRNodeAsClaimedByHydration(comment);\n  }\n  return comment;\n}\nfunction enableLocateOrCreateElementContainerNodeImpl() {\n  _locateOrCreateElementContainerNode = locateOrCreateElementContainerNode;\n}\n\n/**\n * Returns the current OpaqueViewState instance.\n *\n * Used in conjunction with the restoreView() instruction to save a snapshot\n * of the current view and restore it when listeners are invoked. This allows\n * walking the declaration view tree in listeners to get vars from parent views.\n *\n * @codeGenApi\n */\nfunction ɵɵgetCurrentView() {\n  return getLView();\n}\n\n/**\n * Update a property on a host element. Only applies to native node properties, not inputs.\n *\n * Operates on the element selected by index via the {@link select} instruction.\n *\n * @param propName Name of property. Because it is going to DOM, this is not subject to\n *        renaming as part of minification.\n * @param value New value to write.\n * @param sanitizer An optional function used to sanitize the value.\n * @returns This function returns itself so that it may be chained\n * (e.g. `property('name', ctx.name)('title', ctx.title)`)\n *\n * @codeGenApi\n */\nfunction ɵɵhostProperty(propName, value, sanitizer) {\n  const lView = getLView();\n  const bindingIndex = nextBindingIndex();\n  if (bindingUpdated(lView, bindingIndex, value)) {\n    const tView = getTView();\n    const tNode = getSelectedTNode();\n    elementPropertyInternal(tView, tNode, lView, propName, value, lView[RENDERER], sanitizer, true);\n    ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, bindingIndex);\n  }\n  return ɵɵhostProperty;\n}\n/**\n * Updates a synthetic host binding (e.g. `[@foo]`) on a component or directive.\n *\n * This instruction is for compatibility purposes and is designed to ensure that a\n * synthetic host binding (e.g. `@HostBinding('@foo')`) properly gets rendered in\n * the component's renderer. Normally all host bindings are evaluated with the parent\n * component's renderer, but, in the case of animation @triggers, they need to be\n * evaluated with the sub component's renderer (because that's where the animation\n * triggers are defined).\n *\n * Do not use this instruction as a replacement for `elementProperty`. This instruction\n * only exists to ensure compatibility with the ViewEngine's host binding behavior.\n *\n * @param index The index of the element to update in the data array\n * @param propName Name of property. Because it is going to DOM, this is not subject to\n *        renaming as part of minification.\n * @param value New value to write.\n * @param sanitizer An optional function used to sanitize the value.\n *\n * @codeGenApi\n */\nfunction ɵɵsyntheticHostProperty(propName, value, sanitizer) {\n  const lView = getLView();\n  const bindingIndex = nextBindingIndex();\n  if (bindingUpdated(lView, bindingIndex, value)) {\n    const tView = getTView();\n    const tNode = getSelectedTNode();\n    const currentDef = getCurrentDirectiveDef(tView.data);\n    const renderer = loadComponentRenderer(currentDef, tNode, lView);\n    elementPropertyInternal(tView, tNode, lView, propName, value, renderer, sanitizer, true);\n    ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, bindingIndex);\n  }\n  return ɵɵsyntheticHostProperty;\n}\n\n/**\n * NOTE: changes to the `ngI18nClosureMode` name must be synced with `compiler-cli/src/tooling.ts`.\n */\nif (typeof ngI18nClosureMode === 'undefined') {\n  // These property accesses can be ignored because ngI18nClosureMode will be set to false\n  // when optimizing code and the whole if statement will be dropped.\n  // Make sure to refer to ngI18nClosureMode as ['ngI18nClosureMode'] for closure.\n  // NOTE: we need to have it in IIFE so that the tree-shaker is happy.\n  /*#__PURE__*/(function () {\n    // tslint:disable-next-line:no-toplevel-property-access\n    _global['ngI18nClosureMode'] =\n    // TODO(FW-1250): validate that this actually, you know, works.\n    // tslint:disable-next-line:no-toplevel-property-access\n    typeof goog !== 'undefined' && typeof goog.getMsg === 'function';\n  })();\n}\n\n// THIS CODE IS GENERATED - DO NOT MODIFY.\nconst u = undefined;\nfunction plural(val) {\n  const n = val,\n    i = Math.floor(Math.abs(val)),\n    v = val.toString().replace(/^[^.]*\\.?/, '').length;\n  if (i === 1 && v === 0) return 1;\n  return 5;\n}\nvar localeEn = [\"en\", [[\"a\", \"p\"], [\"AM\", \"PM\"], u], [[\"AM\", \"PM\"], u, u], [[\"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\"]], u, [[\"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\"]], u, [[\"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}\", u, \"{1} 'at' {0}\", u], [\".\", \",\", \";\", \"%\", \"+\", \"-\", \"E\", \"×\", \"‰\", \"∞\", \"NaN\", \":\"], [\"#,##0.###\", \"#,##0%\", \"¤#,##0.00\", \"#E0\"], \"USD\", \"$\", \"US Dollar\", {}, \"ltr\", plural];\n\n/**\n * This const is used to store the locale data registered with `registerLocaleData`\n */\nlet LOCALE_DATA = {};\n/**\n * Register locale data to be used internally by Angular. See the\n * [\"I18n guide\"](guide/i18n-common-format-data-locale) to know how to import additional locale\n * data.\n *\n * The signature `registerLocaleData(data: any, extraData?: any)` is deprecated since v5.1\n */\nfunction registerLocaleData(data, localeId, extraData) {\n  if (typeof localeId !== 'string') {\n    extraData = localeId;\n    localeId = data[LocaleDataIndex.LocaleId];\n  }\n  localeId = localeId.toLowerCase().replace(/_/g, '-');\n  LOCALE_DATA[localeId] = data;\n  if (extraData) {\n    LOCALE_DATA[localeId][LocaleDataIndex.ExtraData] = extraData;\n  }\n}\n/**\n * Finds the locale data for a given locale.\n *\n * @param locale The locale code.\n * @returns The locale data.\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n */\nfunction findLocaleData(locale) {\n  const normalizedLocale = normalizeLocale(locale);\n  let match = getLocaleData(normalizedLocale);\n  if (match) {\n    return match;\n  }\n  // let's try to find a parent locale\n  const parentLocale = normalizedLocale.split('-')[0];\n  match = getLocaleData(parentLocale);\n  if (match) {\n    return match;\n  }\n  if (parentLocale === 'en') {\n    return localeEn;\n  }\n  throw new RuntimeError(701 /* RuntimeErrorCode.MISSING_LOCALE_DATA */, ngDevMode && `Missing locale data for the locale \"${locale}\".`);\n}\n/**\n * Retrieves the default currency code for the given locale.\n *\n * The default is defined as the first currency which is still in use.\n *\n * @param locale The code of the locale whose currency code we want.\n * @returns The code of the default currency for the given locale.\n *\n */\nfunction getLocaleCurrencyCode(locale) {\n  const data = findLocaleData(locale);\n  return data[LocaleDataIndex.CurrencyCode] || null;\n}\n/**\n * Retrieves the plural function used by ICU expressions to determine the plural case to use\n * for a given locale.\n * @param locale A locale code for the locale format rules to use.\n * @returns The plural function for the locale.\n * @see {@link NgPlural}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n */\nfunction getLocalePluralCase(locale) {\n  const data = findLocaleData(locale);\n  return data[LocaleDataIndex.PluralCase];\n}\n/**\n * Helper function to get the given `normalizedLocale` from `LOCALE_DATA`\n * or from the global `ng.common.locale`.\n */\nfunction getLocaleData(normalizedLocale) {\n  if (!(normalizedLocale in LOCALE_DATA)) {\n    LOCALE_DATA[normalizedLocale] = _global.ng && _global.ng.common && _global.ng.common.locales && _global.ng.common.locales[normalizedLocale];\n  }\n  return LOCALE_DATA[normalizedLocale];\n}\n/**\n * Helper function to remove all the locale data from `LOCALE_DATA`.\n */\nfunction unregisterAllLocaleData() {\n  LOCALE_DATA = {};\n}\n/**\n * Index of each type of locale data from the locale data array\n */\nvar LocaleDataIndex = /*#__PURE__*/function (LocaleDataIndex) {\n  LocaleDataIndex[LocaleDataIndex[\"LocaleId\"] = 0] = \"LocaleId\";\n  LocaleDataIndex[LocaleDataIndex[\"DayPeriodsFormat\"] = 1] = \"DayPeriodsFormat\";\n  LocaleDataIndex[LocaleDataIndex[\"DayPeriodsStandalone\"] = 2] = \"DayPeriodsStandalone\";\n  LocaleDataIndex[LocaleDataIndex[\"DaysFormat\"] = 3] = \"DaysFormat\";\n  LocaleDataIndex[LocaleDataIndex[\"DaysStandalone\"] = 4] = \"DaysStandalone\";\n  LocaleDataIndex[LocaleDataIndex[\"MonthsFormat\"] = 5] = \"MonthsFormat\";\n  LocaleDataIndex[LocaleDataIndex[\"MonthsStandalone\"] = 6] = \"MonthsStandalone\";\n  LocaleDataIndex[LocaleDataIndex[\"Eras\"] = 7] = \"Eras\";\n  LocaleDataIndex[LocaleDataIndex[\"FirstDayOfWeek\"] = 8] = \"FirstDayOfWeek\";\n  LocaleDataIndex[LocaleDataIndex[\"WeekendRange\"] = 9] = \"WeekendRange\";\n  LocaleDataIndex[LocaleDataIndex[\"DateFormat\"] = 10] = \"DateFormat\";\n  LocaleDataIndex[LocaleDataIndex[\"TimeFormat\"] = 11] = \"TimeFormat\";\n  LocaleDataIndex[LocaleDataIndex[\"DateTimeFormat\"] = 12] = \"DateTimeFormat\";\n  LocaleDataIndex[LocaleDataIndex[\"NumberSymbols\"] = 13] = \"NumberSymbols\";\n  LocaleDataIndex[LocaleDataIndex[\"NumberFormats\"] = 14] = \"NumberFormats\";\n  LocaleDataIndex[LocaleDataIndex[\"CurrencyCode\"] = 15] = \"CurrencyCode\";\n  LocaleDataIndex[LocaleDataIndex[\"CurrencySymbol\"] = 16] = \"CurrencySymbol\";\n  LocaleDataIndex[LocaleDataIndex[\"CurrencyName\"] = 17] = \"CurrencyName\";\n  LocaleDataIndex[LocaleDataIndex[\"Currencies\"] = 18] = \"Currencies\";\n  LocaleDataIndex[LocaleDataIndex[\"Directionality\"] = 19] = \"Directionality\";\n  LocaleDataIndex[LocaleDataIndex[\"PluralCase\"] = 20] = \"PluralCase\";\n  LocaleDataIndex[LocaleDataIndex[\"ExtraData\"] = 21] = \"ExtraData\";\n  return LocaleDataIndex;\n}(LocaleDataIndex || {});\n/**\n * Returns the canonical form of a locale name - lowercase with `_` replaced with `-`.\n */\nfunction normalizeLocale(locale) {\n  return locale.toLowerCase().replace(/_/g, '-');\n}\nconst pluralMapping = ['zero', 'one', 'two', 'few', 'many'];\n/**\n * Returns the plural case based on the locale\n */\nfunction getPluralCase(value, locale) {\n  const plural = getLocalePluralCase(locale)(parseInt(value, 10));\n  const result = pluralMapping[plural];\n  return result !== undefined ? result : 'other';\n}\n/**\n * The locale id that the application is using by default (for translations and ICU expressions).\n */\nconst DEFAULT_LOCALE_ID = 'en-US';\n/**\n * USD currency code that the application uses by default for CurrencyPipe when no\n * DEFAULT_CURRENCY_CODE is provided.\n */\nconst USD_CURRENCY_CODE = 'USD';\n\n/**\n * Marks that the next string is an element name.\n *\n * See `I18nMutateOpCodes` documentation.\n */\nconst ELEMENT_MARKER = {\n  marker: 'element'\n};\n/**\n * Marks that the next string is comment text need for ICU.\n *\n * See `I18nMutateOpCodes` documentation.\n */\nconst ICU_MARKER = {\n  marker: 'ICU'\n};\n/**\n * See `I18nCreateOpCodes`\n */\nvar I18nCreateOpCode = /*#__PURE__*/function (I18nCreateOpCode) {\n  /**\n   * Number of bits to shift index so that it can be combined with the `APPEND_EAGERLY` and\n   * `COMMENT`.\n   */\n  I18nCreateOpCode[I18nCreateOpCode[\"SHIFT\"] = 2] = \"SHIFT\";\n  /**\n   * Should the node be appended to parent immediately after creation.\n   */\n  I18nCreateOpCode[I18nCreateOpCode[\"APPEND_EAGERLY\"] = 1] = \"APPEND_EAGERLY\";\n  /**\n   * If set the node should be comment (rather than a text) node.\n   */\n  I18nCreateOpCode[I18nCreateOpCode[\"COMMENT\"] = 2] = \"COMMENT\";\n  return I18nCreateOpCode;\n}(I18nCreateOpCode || {});\n/**\n * The locale id that the application is currently using (for translations and ICU expressions).\n * This is the ivy version of `LOCALE_ID` that was defined as an injection token for the view engine\n * but is now defined as a global value.\n */\nlet LOCALE_ID$1 = DEFAULT_LOCALE_ID;\n/**\n * Sets the locale id that will be used for translations and ICU expressions.\n * This is the ivy version of `LOCALE_ID` that was defined as an injection token for the view engine\n * but is now defined as a global value.\n *\n * @param localeId\n */\nfunction setLocaleId(localeId) {\n  ngDevMode && assertDefined(localeId, `Expected localeId to be defined`);\n  if (typeof localeId === 'string') {\n    LOCALE_ID$1 = localeId.toLowerCase().replace(/_/g, '-');\n  }\n}\n/**\n * Gets the locale id that will be used for translations and ICU expressions.\n * This is the ivy version of `LOCALE_ID` that was defined as an injection token for the view engine\n * but is now defined as a global value.\n */\nfunction getLocaleId() {\n  return LOCALE_ID$1;\n}\n\n/**\n * Find a node in front of which `currentTNode` should be inserted (takes i18n into account).\n *\n * This method determines the `RNode` in front of which we should insert the `currentRNode`. This\n * takes `TNode.insertBeforeIndex` into account.\n *\n * @param parentTNode parent `TNode`\n * @param currentTNode current `TNode` (The node which we would like to insert into the DOM)\n * @param lView current `LView`\n */\nfunction getInsertInFrontOfRNodeWithI18n(parentTNode, currentTNode, lView) {\n  const tNodeInsertBeforeIndex = currentTNode.insertBeforeIndex;\n  const insertBeforeIndex = Array.isArray(tNodeInsertBeforeIndex) ? tNodeInsertBeforeIndex[0] : tNodeInsertBeforeIndex;\n  if (insertBeforeIndex === null) {\n    return getInsertInFrontOfRNodeWithNoI18n(parentTNode, currentTNode, lView);\n  } else {\n    ngDevMode && assertIndexInRange(lView, insertBeforeIndex);\n    return unwrapRNode(lView[insertBeforeIndex]);\n  }\n}\n/**\n * Process `TNode.insertBeforeIndex` by adding i18n text nodes.\n *\n * See `TNode.insertBeforeIndex`\n */\nfunction processI18nInsertBefore(renderer, childTNode, lView, childRNode, parentRElement) {\n  const tNodeInsertBeforeIndex = childTNode.insertBeforeIndex;\n  if (Array.isArray(tNodeInsertBeforeIndex)) {\n    // An array indicates that there are i18n nodes that need to be added as children of this\n    // `childRNode`. These i18n nodes were created before this `childRNode` was available and so\n    // only now can be added. The first element of the array is the normal index where we should\n    // insert the `childRNode`. Additional elements are the extra nodes to be added as children of\n    // `childRNode`.\n    ngDevMode && assertDomNode(childRNode);\n    let i18nParent = childRNode;\n    let anchorRNode = null;\n    if (!(childTNode.type & 3 /* TNodeType.AnyRNode */)) {\n      anchorRNode = i18nParent;\n      i18nParent = parentRElement;\n    }\n    if (i18nParent !== null && childTNode.componentOffset === -1) {\n      for (let i = 1; i < tNodeInsertBeforeIndex.length; i++) {\n        // No need to `unwrapRNode` because all of the indexes point to i18n text nodes.\n        // see `assertDomNode` below.\n        const i18nChild = lView[tNodeInsertBeforeIndex[i]];\n        nativeInsertBefore(renderer, i18nParent, i18nChild, anchorRNode, false);\n      }\n    }\n  }\n}\n\n/**\n * Add `tNode` to `previousTNodes` list and update relevant `TNode`s in `previousTNodes` list\n * `tNode.insertBeforeIndex`.\n *\n * Things to keep in mind:\n * 1. All i18n text nodes are encoded as `TNodeType.Element` and are created eagerly by the\n *    `ɵɵi18nStart` instruction.\n * 2. All `TNodeType.Placeholder` `TNodes` are elements which will be created later by\n *    `ɵɵelementStart` instruction.\n * 3. `ɵɵelementStart` instruction will create `TNode`s in the ascending `TNode.index` order. (So a\n *    smaller index `TNode` is guaranteed to be created before a larger one)\n *\n * We use the above three invariants to determine `TNode.insertBeforeIndex`.\n *\n * In an ideal world `TNode.insertBeforeIndex` would always be `TNode.next.index`. However,\n * this will not work because `TNode.next.index` may be larger than `TNode.index` which means that\n * the next node is not yet created and therefore we can't insert in front of it.\n *\n * Rule1: `TNode.insertBeforeIndex = null` if `TNode.next === null` (Initial condition, as we don't\n *        know if there will be further `TNode`s inserted after.)\n * Rule2: If `previousTNode` is created after the `tNode` being inserted, then\n *        `previousTNode.insertBeforeNode = tNode.index` (So when a new `tNode` is added we check\n *        previous to see if we can update its `insertBeforeTNode`)\n *\n * See `TNode.insertBeforeIndex` for more context.\n *\n * @param previousTNodes A list of previous TNodes so that we can easily traverse `TNode`s in\n *     reverse order. (If `TNode` would have `previous` this would not be necessary.)\n * @param newTNode A TNode to add to the `previousTNodes` list.\n */\nfunction addTNodeAndUpdateInsertBeforeIndex(previousTNodes, newTNode) {\n  // Start with Rule1\n  ngDevMode && assertEqual(newTNode.insertBeforeIndex, null, 'We expect that insertBeforeIndex is not set');\n  previousTNodes.push(newTNode);\n  if (previousTNodes.length > 1) {\n    for (let i = previousTNodes.length - 2; i >= 0; i--) {\n      const existingTNode = previousTNodes[i];\n      // Text nodes are created eagerly and so they don't need their `indexBeforeIndex` updated.\n      // It is safe to ignore them.\n      if (!isI18nText(existingTNode)) {\n        if (isNewTNodeCreatedBefore(existingTNode, newTNode) && getInsertBeforeIndex(existingTNode) === null) {\n          // If it was created before us in time, (and it does not yet have `insertBeforeIndex`)\n          // then add the `insertBeforeIndex`.\n          setInsertBeforeIndex(existingTNode, newTNode.index);\n        }\n      }\n    }\n  }\n}\nfunction isI18nText(tNode) {\n  return !(tNode.type & 64 /* TNodeType.Placeholder */);\n}\nfunction isNewTNodeCreatedBefore(existingTNode, newTNode) {\n  return isI18nText(newTNode) || existingTNode.index > newTNode.index;\n}\nfunction getInsertBeforeIndex(tNode) {\n  const index = tNode.insertBeforeIndex;\n  return Array.isArray(index) ? index[0] : index;\n}\nfunction setInsertBeforeIndex(tNode, value) {\n  const index = tNode.insertBeforeIndex;\n  if (Array.isArray(index)) {\n    // Array is stored if we have to insert child nodes. See `TNode.insertBeforeIndex`\n    index[0] = value;\n  } else {\n    setI18nHandling(getInsertInFrontOfRNodeWithI18n, processI18nInsertBefore);\n    tNode.insertBeforeIndex = value;\n  }\n}\n\n/**\n * Retrieve `TIcu` at a given `index`.\n *\n * The `TIcu` can be stored either directly (if it is nested ICU) OR\n * it is stored inside tho `TIcuContainer` if it is top level ICU.\n *\n * The reason for this is that the top level ICU need a `TNode` so that they are part of the render\n * tree, but nested ICU's have no TNode, because we don't know ahead of time if the nested ICU is\n * expressed (parent ICU may have selected a case which does not contain it.)\n *\n * @param tView Current `TView`.\n * @param index Index where the value should be read from.\n */\nfunction getTIcu(tView, index) {\n  const value = tView.data[index];\n  if (value === null || typeof value === 'string') return null;\n  if (ngDevMode && !(value.hasOwnProperty('tView') || value.hasOwnProperty('currentCaseLViewIndex'))) {\n    throwError('We expect to get \\'null\\'|\\'TIcu\\'|\\'TIcuContainer\\', but got: ' + value);\n  }\n  // Here the `value.hasOwnProperty('currentCaseLViewIndex')` is a polymorphic read as it can be\n  // either TIcu or TIcuContainerNode. This is not ideal, but we still think it is OK because it\n  // will be just two cases which fits into the browser inline cache (inline cache can take up to\n  // 4)\n  const tIcu = value.hasOwnProperty('currentCaseLViewIndex') ? value : value.value;\n  ngDevMode && assertTIcu(tIcu);\n  return tIcu;\n}\n/**\n * Store `TIcu` at a give `index`.\n *\n * The `TIcu` can be stored either directly (if it is nested ICU) OR\n * it is stored inside tho `TIcuContainer` if it is top level ICU.\n *\n * The reason for this is that the top level ICU need a `TNode` so that they are part of the render\n * tree, but nested ICU's have no TNode, because we don't know ahead of time if the nested ICU is\n * expressed (parent ICU may have selected a case which does not contain it.)\n *\n * @param tView Current `TView`.\n * @param index Index where the value should be stored at in `Tview.data`\n * @param tIcu The TIcu to store.\n */\nfunction setTIcu(tView, index, tIcu) {\n  const tNode = tView.data[index];\n  ngDevMode && assertEqual(tNode === null || tNode.hasOwnProperty('tView'), true, 'We expect to get \\'null\\'|\\'TIcuContainer\\'');\n  if (tNode === null) {\n    tView.data[index] = tIcu;\n  } else {\n    ngDevMode && assertTNodeType(tNode, 32 /* TNodeType.Icu */);\n    tNode.value = tIcu;\n  }\n}\n/**\n * Set `TNode.insertBeforeIndex` taking the `Array` into account.\n *\n * See `TNode.insertBeforeIndex`\n */\nfunction setTNodeInsertBeforeIndex(tNode, index) {\n  ngDevMode && assertTNode(tNode);\n  let insertBeforeIndex = tNode.insertBeforeIndex;\n  if (insertBeforeIndex === null) {\n    setI18nHandling(getInsertInFrontOfRNodeWithI18n, processI18nInsertBefore);\n    insertBeforeIndex = tNode.insertBeforeIndex = [null /* may be updated to number later */, index];\n  } else {\n    assertEqual(Array.isArray(insertBeforeIndex), true, 'Expecting array here');\n    insertBeforeIndex.push(index);\n  }\n}\n/**\n * Create `TNode.type=TNodeType.Placeholder` node.\n *\n * See `TNodeType.Placeholder` for more information.\n */\nfunction createTNodePlaceholder(tView, previousTNodes, index) {\n  const tNode = createTNodeAtIndex(tView, index, 64 /* TNodeType.Placeholder */, null, null);\n  addTNodeAndUpdateInsertBeforeIndex(previousTNodes, tNode);\n  return tNode;\n}\n/**\n * Returns current ICU case.\n *\n * ICU cases are stored as index into the `TIcu.cases`.\n * At times it is necessary to communicate that the ICU case just switched and that next ICU update\n * should update all bindings regardless of the mask. In such a case the we store negative numbers\n * for cases which have just been switched. This function removes the negative flag.\n */\nfunction getCurrentICUCaseIndex(tIcu, lView) {\n  const currentCase = lView[tIcu.currentCaseLViewIndex];\n  return currentCase === null ? currentCase : currentCase < 0 ? ~currentCase : currentCase;\n}\nfunction getParentFromIcuCreateOpCode(mergedCode) {\n  return mergedCode >>> 17 /* IcuCreateOpCode.SHIFT_PARENT */;\n}\nfunction getRefFromIcuCreateOpCode(mergedCode) {\n  return (mergedCode & 131070 /* IcuCreateOpCode.MASK_REF */) >>> 1 /* IcuCreateOpCode.SHIFT_REF */;\n}\nfunction getInstructionFromIcuCreateOpCode(mergedCode) {\n  return mergedCode & 1 /* IcuCreateOpCode.MASK_INSTRUCTION */;\n}\nfunction icuCreateOpCode(opCode, parentIdx, refIdx) {\n  ngDevMode && assertGreaterThanOrEqual(parentIdx, 0, 'Missing parent index');\n  ngDevMode && assertGreaterThan(refIdx, 0, 'Missing ref index');\n  return opCode | parentIdx << 17 /* IcuCreateOpCode.SHIFT_PARENT */ | refIdx << 1 /* IcuCreateOpCode.SHIFT_REF */;\n}\n\n/**\n * Keep track of which input bindings in `ɵɵi18nExp` have changed.\n *\n * This is used to efficiently update expressions in i18n only when the corresponding input has\n * changed.\n *\n * 1) Each bit represents which of the `ɵɵi18nExp` has changed.\n * 2) There are 32 bits allowed in JS.\n * 3) Bit 32 is special as it is shared for all changes past 32. (In other words if you have more\n * than 32 `ɵɵi18nExp` then all changes past 32nd `ɵɵi18nExp` will be mapped to same bit. This means\n * that we may end up changing more than we need to. But i18n expressions with 32 bindings is rare\n * so in practice it should not be an issue.)\n */\nlet changeMask = 0b0;\n/**\n * Keeps track of which bit needs to be updated in `changeMask`\n *\n * This value gets incremented on every call to `ɵɵi18nExp`\n */\nlet changeMaskCounter = 0;\n/**\n * Keep track of which input bindings in `ɵɵi18nExp` have changed.\n *\n * `setMaskBit` gets invoked by each call to `ɵɵi18nExp`.\n *\n * @param hasChange did `ɵɵi18nExp` detect a change.\n */\nfunction setMaskBit(hasChange) {\n  if (hasChange) {\n    changeMask = changeMask | 1 << Math.min(changeMaskCounter, 31);\n  }\n  changeMaskCounter++;\n}\nfunction applyI18n(tView, lView, index) {\n  if (changeMaskCounter > 0) {\n    ngDevMode && assertDefined(tView, `tView should be defined`);\n    const tI18n = tView.data[index];\n    // When `index` points to an `ɵɵi18nAttributes` then we have an array otherwise `TI18n`\n    const updateOpCodes = Array.isArray(tI18n) ? tI18n : tI18n.update;\n    const bindingsStartIndex = getBindingIndex() - changeMaskCounter - 1;\n    applyUpdateOpCodes(tView, lView, updateOpCodes, bindingsStartIndex, changeMask);\n  }\n  // Reset changeMask & maskBit to default for the next update cycle\n  changeMask = 0b0;\n  changeMaskCounter = 0;\n}\nfunction createNodeWithoutHydration(lView, textOrName, nodeType) {\n  const renderer = lView[RENDERER];\n  switch (nodeType) {\n    case Node.COMMENT_NODE:\n      return createCommentNode(renderer, textOrName);\n    case Node.TEXT_NODE:\n      return createTextNode(renderer, textOrName);\n    case Node.ELEMENT_NODE:\n      return createElementNode(renderer, textOrName, null);\n  }\n}\nlet _locateOrCreateNode = (lView, index, textOrName, nodeType) => {\n  lastNodeWasCreated(true);\n  return createNodeWithoutHydration(lView, textOrName, nodeType);\n};\nfunction locateOrCreateNodeImpl(lView, index, textOrName, nodeType) {\n  // TODO: Add support for hydration\n  lastNodeWasCreated(true);\n  return createNodeWithoutHydration(lView, textOrName, nodeType);\n}\nfunction enableLocateOrCreateI18nNodeImpl() {\n  _locateOrCreateNode = locateOrCreateNodeImpl;\n}\n/**\n * Apply `I18nCreateOpCodes` op-codes as stored in `TI18n.create`.\n *\n * Creates text (and comment) nodes which are internationalized.\n *\n * @param lView Current lView\n * @param createOpCodes Set of op-codes to apply\n * @param parentRNode Parent node (so that direct children can be added eagerly) or `null` if it is\n *     a root node.\n * @param insertInFrontOf DOM node that should be used as an anchor.\n */\nfunction applyCreateOpCodes(lView, createOpCodes, parentRNode, insertInFrontOf) {\n  const renderer = lView[RENDERER];\n  for (let i = 0; i < createOpCodes.length; i++) {\n    const opCode = createOpCodes[i++];\n    const text = createOpCodes[i];\n    const isComment = (opCode & I18nCreateOpCode.COMMENT) === I18nCreateOpCode.COMMENT;\n    const appendNow = (opCode & I18nCreateOpCode.APPEND_EAGERLY) === I18nCreateOpCode.APPEND_EAGERLY;\n    const index = opCode >>> I18nCreateOpCode.SHIFT;\n    let rNode = lView[index];\n    let lastNodeWasCreated = false;\n    if (rNode === null) {\n      // We only create new DOM nodes if they don't already exist: If ICU switches case back to a\n      // case which was already instantiated, no need to create new DOM nodes.\n      rNode = lView[index] = _locateOrCreateNode(lView, index, text, isComment ? Node.COMMENT_NODE : Node.TEXT_NODE);\n      lastNodeWasCreated = wasLastNodeCreated();\n    }\n    if (appendNow && parentRNode !== null && lastNodeWasCreated) {\n      nativeInsertBefore(renderer, parentRNode, rNode, insertInFrontOf, false);\n    }\n  }\n}\n/**\n * Apply `I18nMutateOpCodes` OpCodes.\n *\n * @param tView Current `TView`\n * @param mutableOpCodes Mutable OpCodes to process\n * @param lView Current `LView`\n * @param anchorRNode place where the i18n node should be inserted.\n */\nfunction applyMutableOpCodes(tView, mutableOpCodes, lView, anchorRNode) {\n  ngDevMode && assertDomNode(anchorRNode);\n  const renderer = lView[RENDERER];\n  // `rootIdx` represents the node into which all inserts happen.\n  let rootIdx = null;\n  // `rootRNode` represents the real node into which we insert. This can be different from\n  // `lView[rootIdx]` if we have projection.\n  //  - null we don't have a parent (as can be the case in when we are inserting into a root of\n  //    LView which has no parent.)\n  //  - `RElement` The element representing the root after taking projection into account.\n  let rootRNode;\n  for (let i = 0; i < mutableOpCodes.length; i++) {\n    const opCode = mutableOpCodes[i];\n    if (typeof opCode == 'string') {\n      const textNodeIndex = mutableOpCodes[++i];\n      if (lView[textNodeIndex] === null) {\n        ngDevMode && ngDevMode.rendererCreateTextNode++;\n        ngDevMode && assertIndexInRange(lView, textNodeIndex);\n        lView[textNodeIndex] = _locateOrCreateNode(lView, textNodeIndex, opCode, Node.TEXT_NODE);\n      }\n    } else if (typeof opCode == 'number') {\n      switch (opCode & 1 /* IcuCreateOpCode.MASK_INSTRUCTION */) {\n        case 0 /* IcuCreateOpCode.AppendChild */:\n          const parentIdx = getParentFromIcuCreateOpCode(opCode);\n          if (rootIdx === null) {\n            // The first operation should save the `rootIdx` because the first operation\n            // must insert into the root. (Only subsequent operations can insert into a dynamic\n            // parent)\n            rootIdx = parentIdx;\n            rootRNode = nativeParentNode(renderer, anchorRNode);\n          }\n          let insertInFrontOf;\n          let parentRNode;\n          if (parentIdx === rootIdx) {\n            insertInFrontOf = anchorRNode;\n            parentRNode = rootRNode;\n          } else {\n            insertInFrontOf = null;\n            parentRNode = unwrapRNode(lView[parentIdx]);\n          }\n          // FIXME(misko): Refactor with `processI18nText`\n          if (parentRNode !== null) {\n            // This can happen if the `LView` we are adding to is not attached to a parent `LView`.\n            // In such a case there is no \"root\" we can attach to. This is fine, as we still need to\n            // create the elements. When the `LView` gets later added to a parent these \"root\" nodes\n            // get picked up and added.\n            ngDevMode && assertDomNode(parentRNode);\n            const refIdx = getRefFromIcuCreateOpCode(opCode);\n            ngDevMode && assertGreaterThan(refIdx, HEADER_OFFSET, 'Missing ref');\n            // `unwrapRNode` is not needed here as all of these point to RNodes as part of the i18n\n            // which can't have components.\n            const child = lView[refIdx];\n            ngDevMode && assertDomNode(child);\n            nativeInsertBefore(renderer, parentRNode, child, insertInFrontOf, false);\n            const tIcu = getTIcu(tView, refIdx);\n            if (tIcu !== null && typeof tIcu === 'object') {\n              // If we just added a comment node which has ICU then that ICU may have already been\n              // rendered and therefore we need to re-add it here.\n              ngDevMode && assertTIcu(tIcu);\n              const caseIndex = getCurrentICUCaseIndex(tIcu, lView);\n              if (caseIndex !== null) {\n                applyMutableOpCodes(tView, tIcu.create[caseIndex], lView, lView[tIcu.anchorIdx]);\n              }\n            }\n          }\n          break;\n        case 1 /* IcuCreateOpCode.Attr */:\n          const elementNodeIndex = opCode >>> 1 /* IcuCreateOpCode.SHIFT_REF */;\n          const attrName = mutableOpCodes[++i];\n          const attrValue = mutableOpCodes[++i];\n          // This code is used for ICU expressions only, since we don't support\n          // directives/components in ICUs, we don't need to worry about inputs here\n          setElementAttribute(renderer, getNativeByIndex(elementNodeIndex, lView), null, null, attrName, attrValue, null);\n          break;\n        default:\n          if (ngDevMode) {\n            throw new RuntimeError(700 /* RuntimeErrorCode.INVALID_I18N_STRUCTURE */, `Unable to determine the type of mutate operation for \"${opCode}\"`);\n          }\n      }\n    } else {\n      switch (opCode) {\n        case ICU_MARKER:\n          const commentValue = mutableOpCodes[++i];\n          const commentNodeIndex = mutableOpCodes[++i];\n          if (lView[commentNodeIndex] === null) {\n            ngDevMode && assertEqual(typeof commentValue, 'string', `Expected \"${commentValue}\" to be a comment node value`);\n            ngDevMode && ngDevMode.rendererCreateComment++;\n            ngDevMode && assertIndexInExpandoRange(lView, commentNodeIndex);\n            const commentRNode = lView[commentNodeIndex] = _locateOrCreateNode(lView, commentNodeIndex, commentValue, Node.COMMENT_NODE);\n            // FIXME(misko): Attaching patch data is only needed for the root (Also add tests)\n            attachPatchData(commentRNode, lView);\n          }\n          break;\n        case ELEMENT_MARKER:\n          const tagName = mutableOpCodes[++i];\n          const elementNodeIndex = mutableOpCodes[++i];\n          if (lView[elementNodeIndex] === null) {\n            ngDevMode && assertEqual(typeof tagName, 'string', `Expected \"${tagName}\" to be an element node tag name`);\n            ngDevMode && ngDevMode.rendererCreateElement++;\n            ngDevMode && assertIndexInExpandoRange(lView, elementNodeIndex);\n            const elementRNode = lView[elementNodeIndex] = _locateOrCreateNode(lView, elementNodeIndex, tagName, Node.ELEMENT_NODE);\n            // FIXME(misko): Attaching patch data is only needed for the root (Also add tests)\n            attachPatchData(elementRNode, lView);\n          }\n          break;\n        default:\n          ngDevMode && throwError(`Unable to determine the type of mutate operation for \"${opCode}\"`);\n      }\n    }\n  }\n}\n/**\n * Apply `I18nUpdateOpCodes` OpCodes\n *\n * @param tView Current `TView`\n * @param lView Current `LView`\n * @param updateOpCodes OpCodes to process\n * @param bindingsStartIndex Location of the first `ɵɵi18nApply`\n * @param changeMask Each bit corresponds to a `ɵɵi18nExp` (Counting backwards from\n *     `bindingsStartIndex`)\n */\nfunction applyUpdateOpCodes(tView, lView, updateOpCodes, bindingsStartIndex, changeMask) {\n  for (let i = 0; i < updateOpCodes.length; i++) {\n    // bit code to check if we should apply the next update\n    const checkBit = updateOpCodes[i];\n    // Number of opCodes to skip until next set of update codes\n    const skipCodes = updateOpCodes[++i];\n    if (checkBit & changeMask) {\n      // The value has been updated since last checked\n      let value = '';\n      for (let j = i + 1; j <= i + skipCodes; j++) {\n        const opCode = updateOpCodes[j];\n        if (typeof opCode == 'string') {\n          value += opCode;\n        } else if (typeof opCode == 'number') {\n          if (opCode < 0) {\n            // Negative opCode represent `i18nExp` values offset.\n            value += renderStringify(lView[bindingsStartIndex - opCode]);\n          } else {\n            const nodeIndex = opCode >>> 2 /* I18nUpdateOpCode.SHIFT_REF */;\n            switch (opCode & 3 /* I18nUpdateOpCode.MASK_OPCODE */) {\n              case 1 /* I18nUpdateOpCode.Attr */:\n                const propName = updateOpCodes[++j];\n                const sanitizeFn = updateOpCodes[++j];\n                const tNodeOrTagName = tView.data[nodeIndex];\n                ngDevMode && assertDefined(tNodeOrTagName, 'Experting TNode or string');\n                if (typeof tNodeOrTagName === 'string') {\n                  // IF we don't have a `TNode`, then we are an element in ICU (as ICU content does\n                  // not have TNode), in which case we know that there are no directives, and hence\n                  // we use attribute setting.\n                  setElementAttribute(lView[RENDERER], lView[nodeIndex], null, tNodeOrTagName, propName, value, sanitizeFn);\n                } else {\n                  elementPropertyInternal(tView, tNodeOrTagName, lView, propName, value, lView[RENDERER], sanitizeFn, false);\n                }\n                break;\n              case 0 /* I18nUpdateOpCode.Text */:\n                const rText = lView[nodeIndex];\n                rText !== null && updateTextNode(lView[RENDERER], rText, value);\n                break;\n              case 2 /* I18nUpdateOpCode.IcuSwitch */:\n                applyIcuSwitchCase(tView, getTIcu(tView, nodeIndex), lView, value);\n                break;\n              case 3 /* I18nUpdateOpCode.IcuUpdate */:\n                applyIcuUpdateCase(tView, getTIcu(tView, nodeIndex), bindingsStartIndex, lView);\n                break;\n            }\n          }\n        }\n      }\n    } else {\n      const opCode = updateOpCodes[i + 1];\n      if (opCode > 0 && (opCode & 3 /* I18nUpdateOpCode.MASK_OPCODE */) === 3 /* I18nUpdateOpCode.IcuUpdate */) {\n        // Special case for the `icuUpdateCase`. It could be that the mask did not match, but\n        // we still need to execute `icuUpdateCase` because the case has changed recently due to\n        // previous `icuSwitchCase` instruction. (`icuSwitchCase` and `icuUpdateCase` always come in\n        // pairs.)\n        const nodeIndex = opCode >>> 2 /* I18nUpdateOpCode.SHIFT_REF */;\n        const tIcu = getTIcu(tView, nodeIndex);\n        const currentIndex = lView[tIcu.currentCaseLViewIndex];\n        if (currentIndex < 0) {\n          applyIcuUpdateCase(tView, tIcu, bindingsStartIndex, lView);\n        }\n      }\n    }\n    i += skipCodes;\n  }\n}\n/**\n * Apply OpCodes associated with updating an existing ICU.\n *\n * @param tView Current `TView`\n * @param tIcu Current `TIcu`\n * @param bindingsStartIndex Location of the first `ɵɵi18nApply`\n * @param lView Current `LView`\n */\nfunction applyIcuUpdateCase(tView, tIcu, bindingsStartIndex, lView) {\n  ngDevMode && assertIndexInRange(lView, tIcu.currentCaseLViewIndex);\n  let activeCaseIndex = lView[tIcu.currentCaseLViewIndex];\n  if (activeCaseIndex !== null) {\n    let mask = changeMask;\n    if (activeCaseIndex < 0) {\n      // Clear the flag.\n      // Negative number means that the ICU was freshly created and we need to force the update.\n      activeCaseIndex = lView[tIcu.currentCaseLViewIndex] = ~activeCaseIndex;\n      // -1 is same as all bits on, which simulates creation since it marks all bits dirty\n      mask = -1;\n    }\n    applyUpdateOpCodes(tView, lView, tIcu.update[activeCaseIndex], bindingsStartIndex, mask);\n  }\n}\n/**\n * Apply OpCodes associated with switching a case on ICU.\n *\n * This involves tearing down existing case and than building up a new case.\n *\n * @param tView Current `TView`\n * @param tIcu Current `TIcu`\n * @param lView Current `LView`\n * @param value Value of the case to update to.\n */\nfunction applyIcuSwitchCase(tView, tIcu, lView, value) {\n  // Rebuild a new case for this ICU\n  const caseIndex = getCaseIndex(tIcu, value);\n  let activeCaseIndex = getCurrentICUCaseIndex(tIcu, lView);\n  if (activeCaseIndex !== caseIndex) {\n    applyIcuSwitchCaseRemove(tView, tIcu, lView);\n    lView[tIcu.currentCaseLViewIndex] = caseIndex === null ? null : ~caseIndex;\n    if (caseIndex !== null) {\n      // Add the nodes for the new case\n      const anchorRNode = lView[tIcu.anchorIdx];\n      if (anchorRNode) {\n        ngDevMode && assertDomNode(anchorRNode);\n        applyMutableOpCodes(tView, tIcu.create[caseIndex], lView, anchorRNode);\n      }\n    }\n  }\n}\n/**\n * Apply OpCodes associated with tearing ICU case.\n *\n * This involves tearing down existing case and than building up a new case.\n *\n * @param tView Current `TView`\n * @param tIcu Current `TIcu`\n * @param lView Current `LView`\n */\nfunction applyIcuSwitchCaseRemove(tView, tIcu, lView) {\n  let activeCaseIndex = getCurrentICUCaseIndex(tIcu, lView);\n  if (activeCaseIndex !== null) {\n    const removeCodes = tIcu.remove[activeCaseIndex];\n    for (let i = 0; i < removeCodes.length; i++) {\n      const nodeOrIcuIndex = removeCodes[i];\n      if (nodeOrIcuIndex > 0) {\n        // Positive numbers are `RNode`s.\n        const rNode = getNativeByIndex(nodeOrIcuIndex, lView);\n        rNode !== null && nativeRemoveNode(lView[RENDERER], rNode);\n      } else {\n        // Negative numbers are ICUs\n        applyIcuSwitchCaseRemove(tView, getTIcu(tView, ~nodeOrIcuIndex), lView);\n      }\n    }\n  }\n}\n/**\n * Returns the index of the current case of an ICU expression depending on the main binding value\n *\n * @param icuExpression\n * @param bindingValue The value of the main binding used by this ICU expression\n */\nfunction getCaseIndex(icuExpression, bindingValue) {\n  let index = icuExpression.cases.indexOf(bindingValue);\n  if (index === -1) {\n    switch (icuExpression.type) {\n      case 1 /* IcuType.plural */:\n        {\n          const resolvedCase = getPluralCase(bindingValue, getLocaleId());\n          index = icuExpression.cases.indexOf(resolvedCase);\n          if (index === -1 && resolvedCase !== 'other') {\n            index = icuExpression.cases.indexOf('other');\n          }\n          break;\n        }\n      case 0 /* IcuType.select */:\n        {\n          index = icuExpression.cases.indexOf('other');\n          break;\n        }\n    }\n  }\n  return index === -1 ? null : index;\n}\nfunction loadIcuContainerVisitor() {\n  const _stack = [];\n  let _index = -1;\n  let _lView;\n  let _removes;\n  /**\n   * Retrieves a set of root nodes from `TIcu.remove`. Used by `TNodeType.ICUContainer`\n   * to determine which root belong to the ICU.\n   *\n   * Example of usage.\n   * ```\n   * const nextRNode = icuContainerIteratorStart(tIcuContainerNode, lView);\n   * let rNode: RNode|null;\n   * while(rNode = nextRNode()) {\n   *   console.log(rNode);\n   * }\n   * ```\n   *\n   * @param tIcuContainerNode Current `TIcuContainerNode`\n   * @param lView `LView` where the `RNode`s should be looked up.\n   */\n  function icuContainerIteratorStart(tIcuContainerNode, lView) {\n    _lView = lView;\n    while (_stack.length) _stack.pop();\n    ngDevMode && assertTNodeForLView(tIcuContainerNode, lView);\n    enterIcu(tIcuContainerNode.value, lView);\n    return icuContainerIteratorNext;\n  }\n  function enterIcu(tIcu, lView) {\n    _index = 0;\n    const currentCase = getCurrentICUCaseIndex(tIcu, lView);\n    if (currentCase !== null) {\n      ngDevMode && assertNumberInRange(currentCase, 0, tIcu.cases.length - 1);\n      _removes = tIcu.remove[currentCase];\n    } else {\n      _removes = EMPTY_ARRAY;\n    }\n  }\n  function icuContainerIteratorNext() {\n    if (_index < _removes.length) {\n      const removeOpCode = _removes[_index++];\n      ngDevMode && assertNumber(removeOpCode, 'Expecting OpCode number');\n      if (removeOpCode > 0) {\n        const rNode = _lView[removeOpCode];\n        ngDevMode && assertDomNode(rNode);\n        return rNode;\n      } else {\n        _stack.push(_index, _removes);\n        // ICUs are represented by negative indices\n        const tIcuIndex = ~removeOpCode;\n        const tIcu = _lView[TVIEW].data[tIcuIndex];\n        ngDevMode && assertTIcu(tIcu);\n        enterIcu(tIcu, _lView);\n        return icuContainerIteratorNext();\n      }\n    } else {\n      if (_stack.length === 0) {\n        return null;\n      } else {\n        _removes = _stack.pop();\n        _index = _stack.pop();\n        return icuContainerIteratorNext();\n      }\n    }\n  }\n  return icuContainerIteratorStart;\n}\n\n/**\n * Converts `I18nCreateOpCodes` array into a human readable format.\n *\n * This function is attached to the `I18nCreateOpCodes.debug` property if `ngDevMode` is enabled.\n * This function provides a human readable view of the opcodes. This is useful when debugging the\n * application as well as writing more readable tests.\n *\n * @param this `I18nCreateOpCodes` if attached as a method.\n * @param opcodes `I18nCreateOpCodes` if invoked as a function.\n */\nfunction i18nCreateOpCodesToString(opcodes) {\n  const createOpCodes = opcodes || (Array.isArray(this) ? this : []);\n  let lines = [];\n  for (let i = 0; i < createOpCodes.length; i++) {\n    const opCode = createOpCodes[i++];\n    const text = createOpCodes[i];\n    const isComment = (opCode & I18nCreateOpCode.COMMENT) === I18nCreateOpCode.COMMENT;\n    const appendNow = (opCode & I18nCreateOpCode.APPEND_EAGERLY) === I18nCreateOpCode.APPEND_EAGERLY;\n    const index = opCode >>> I18nCreateOpCode.SHIFT;\n    lines.push(`lView[${index}] = document.${isComment ? 'createComment' : 'createText'}(${JSON.stringify(text)});`);\n    if (appendNow) {\n      lines.push(`parent.appendChild(lView[${index}]);`);\n    }\n  }\n  return lines;\n}\n/**\n * Converts `I18nUpdateOpCodes` array into a human readable format.\n *\n * This function is attached to the `I18nUpdateOpCodes.debug` property if `ngDevMode` is enabled.\n * This function provides a human readable view of the opcodes. This is useful when debugging the\n * application as well as writing more readable tests.\n *\n * @param this `I18nUpdateOpCodes` if attached as a method.\n * @param opcodes `I18nUpdateOpCodes` if invoked as a function.\n */\nfunction i18nUpdateOpCodesToString(opcodes) {\n  const parser = new OpCodeParser(opcodes || (Array.isArray(this) ? this : []));\n  let lines = [];\n  function consumeOpCode(value) {\n    const ref = value >>> 2 /* I18nUpdateOpCode.SHIFT_REF */;\n    const opCode = value & 3 /* I18nUpdateOpCode.MASK_OPCODE */;\n    switch (opCode) {\n      case 0 /* I18nUpdateOpCode.Text */:\n        return `(lView[${ref}] as Text).textContent = $$$`;\n      case 1 /* I18nUpdateOpCode.Attr */:\n        const attrName = parser.consumeString();\n        const sanitizationFn = parser.consumeFunction();\n        const value = sanitizationFn ? `(${sanitizationFn})($$$)` : '$$$';\n        return `(lView[${ref}] as Element).setAttribute('${attrName}', ${value})`;\n      case 2 /* I18nUpdateOpCode.IcuSwitch */:\n        return `icuSwitchCase(${ref}, $$$)`;\n      case 3 /* I18nUpdateOpCode.IcuUpdate */:\n        return `icuUpdateCase(${ref})`;\n    }\n    throw new Error('unexpected OpCode');\n  }\n  while (parser.hasMore()) {\n    let mask = parser.consumeNumber();\n    let size = parser.consumeNumber();\n    const end = parser.i + size;\n    const statements = [];\n    let statement = '';\n    while (parser.i < end) {\n      let value = parser.consumeNumberOrString();\n      if (typeof value === 'string') {\n        statement += value;\n      } else if (value < 0) {\n        // Negative numbers are ref indexes\n        // Here `i` refers to current binding index. It is to signify that the value is relative,\n        // rather than absolute.\n        statement += '${lView[i' + value + ']}';\n      } else {\n        // Positive numbers are operations.\n        const opCodeText = consumeOpCode(value);\n        statements.push(opCodeText.replace('$$$', '`' + statement + '`') + ';');\n        statement = '';\n      }\n    }\n    lines.push(`if (mask & 0b${mask.toString(2)}) { ${statements.join(' ')} }`);\n  }\n  return lines;\n}\n/**\n * Converts `I18nCreateOpCodes` array into a human readable format.\n *\n * This function is attached to the `I18nCreateOpCodes.debug` if `ngDevMode` is enabled. This\n * function provides a human readable view of the opcodes. This is useful when debugging the\n * application as well as writing more readable tests.\n *\n * @param this `I18nCreateOpCodes` if attached as a method.\n * @param opcodes `I18nCreateOpCodes` if invoked as a function.\n */\nfunction icuCreateOpCodesToString(opcodes) {\n  const parser = new OpCodeParser(opcodes || (Array.isArray(this) ? this : []));\n  let lines = [];\n  function consumeOpCode(opCode) {\n    const parent = getParentFromIcuCreateOpCode(opCode);\n    const ref = getRefFromIcuCreateOpCode(opCode);\n    switch (getInstructionFromIcuCreateOpCode(opCode)) {\n      case 0 /* IcuCreateOpCode.AppendChild */:\n        return `(lView[${parent}] as Element).appendChild(lView[${lastRef}])`;\n      case 1 /* IcuCreateOpCode.Attr */:\n        return `(lView[${ref}] as Element).setAttribute(\"${parser.consumeString()}\", \"${parser.consumeString()}\")`;\n    }\n    throw new Error('Unexpected OpCode: ' + getInstructionFromIcuCreateOpCode(opCode));\n  }\n  let lastRef = -1;\n  while (parser.hasMore()) {\n    let value = parser.consumeNumberStringOrMarker();\n    if (value === ICU_MARKER) {\n      const text = parser.consumeString();\n      lastRef = parser.consumeNumber();\n      lines.push(`lView[${lastRef}] = document.createComment(\"${text}\")`);\n    } else if (value === ELEMENT_MARKER) {\n      const text = parser.consumeString();\n      lastRef = parser.consumeNumber();\n      lines.push(`lView[${lastRef}] = document.createElement(\"${text}\")`);\n    } else if (typeof value === 'string') {\n      lastRef = parser.consumeNumber();\n      lines.push(`lView[${lastRef}] = document.createTextNode(\"${value}\")`);\n    } else if (typeof value === 'number') {\n      const line = consumeOpCode(value);\n      line && lines.push(line);\n    } else {\n      throw new Error('Unexpected value');\n    }\n  }\n  return lines;\n}\n/**\n * Converts `I18nRemoveOpCodes` array into a human readable format.\n *\n * This function is attached to the `I18nRemoveOpCodes.debug` if `ngDevMode` is enabled. This\n * function provides a human readable view of the opcodes. This is useful when debugging the\n * application as well as writing more readable tests.\n *\n * @param this `I18nRemoveOpCodes` if attached as a method.\n * @param opcodes `I18nRemoveOpCodes` if invoked as a function.\n */\nfunction i18nRemoveOpCodesToString(opcodes) {\n  const removeCodes = opcodes || (Array.isArray(this) ? this : []);\n  let lines = [];\n  for (let i = 0; i < removeCodes.length; i++) {\n    const nodeOrIcuIndex = removeCodes[i];\n    if (nodeOrIcuIndex > 0) {\n      // Positive numbers are `RNode`s.\n      lines.push(`remove(lView[${nodeOrIcuIndex}])`);\n    } else {\n      // Negative numbers are ICUs\n      lines.push(`removeNestedICU(${~nodeOrIcuIndex})`);\n    }\n  }\n  return lines;\n}\nclass OpCodeParser {\n  constructor(codes) {\n    this.i = 0;\n    this.codes = codes;\n  }\n  hasMore() {\n    return this.i < this.codes.length;\n  }\n  consumeNumber() {\n    let value = this.codes[this.i++];\n    assertNumber(value, 'expecting number in OpCode');\n    return value;\n  }\n  consumeString() {\n    let value = this.codes[this.i++];\n    assertString(value, 'expecting string in OpCode');\n    return value;\n  }\n  consumeFunction() {\n    let value = this.codes[this.i++];\n    if (value === null || typeof value === 'function') {\n      return value;\n    }\n    throw new Error('expecting function in OpCode');\n  }\n  consumeNumberOrString() {\n    let value = this.codes[this.i++];\n    if (typeof value === 'string') {\n      return value;\n    }\n    assertNumber(value, 'expecting number or string in OpCode');\n    return value;\n  }\n  consumeNumberStringOrMarker() {\n    let value = this.codes[this.i++];\n    if (typeof value === 'string' || typeof value === 'number' || value == ICU_MARKER || value == ELEMENT_MARKER) {\n      return value;\n    }\n    assertNumber(value, 'expecting number, string, ICU_MARKER or ELEMENT_MARKER in OpCode');\n    return value;\n  }\n}\nconst BINDING_REGEXP = /�(\\d+):?\\d*�/gi;\nconst ICU_REGEXP = /({\\s*�\\d+:?\\d*�\\s*,\\s*\\S{6}\\s*,[\\s\\S]*})/gi;\nconst NESTED_ICU = /�(\\d+)�/;\nconst ICU_BLOCK_REGEXP = /^\\s*(�\\d+:?\\d*�)\\s*,\\s*(select|plural)\\s*,/;\nconst MARKER = `�`;\nconst SUBTEMPLATE_REGEXP = /�\\/?\\*(\\d+:\\d+)�/gi;\nconst PH_REGEXP = /�(\\/?[#*]\\d+):?\\d*�/gi;\n/**\n * Angular uses the special entity &ngsp; as a placeholder for non-removable space.\n * It's replaced by the 0xE500 PUA (Private Use Areas) unicode character and later on replaced by a\n * space.\n * We are re-implementing the same idea since translations might contain this special character.\n */\nconst NGSP_UNICODE_REGEXP = /\\uE500/g;\nfunction replaceNgsp(value) {\n  return value.replace(NGSP_UNICODE_REGEXP, ' ');\n}\n/**\n * Patch a `debug` property getter on top of the existing object.\n *\n * NOTE: always call this method with `ngDevMode && attachDebugObject(...)`\n *\n * @param obj Object to patch\n * @param debugGetter Getter returning a value to patch\n */\nfunction attachDebugGetter(obj, debugGetter) {\n  if (ngDevMode) {\n    Object.defineProperty(obj, 'debug', {\n      get: debugGetter,\n      enumerable: false\n    });\n  } else {\n    throw new Error('This method should be guarded with `ngDevMode` so that it can be tree shaken in production!');\n  }\n}\n/**\n * Create dynamic nodes from i18n translation block.\n *\n * - Text nodes are created synchronously\n * - TNodes are linked into tree lazily\n *\n * @param tView Current `TView`\n * @parentTNodeIndex index to the parent TNode of this i18n block\n * @param lView Current `LView`\n * @param index Index of `ɵɵi18nStart` instruction.\n * @param message Message to translate.\n * @param subTemplateIndex Index into the sub template of message translation. (ie in case of\n *     `ngIf`) (-1 otherwise)\n */\nfunction i18nStartFirstCreatePass(tView, parentTNodeIndex, lView, index, message, subTemplateIndex) {\n  const rootTNode = getCurrentParentTNode();\n  const createOpCodes = [];\n  const updateOpCodes = [];\n  const existingTNodeStack = [[]];\n  const astStack = [[]];\n  if (ngDevMode) {\n    attachDebugGetter(createOpCodes, i18nCreateOpCodesToString);\n    attachDebugGetter(updateOpCodes, i18nUpdateOpCodesToString);\n  }\n  message = getTranslationForTemplate(message, subTemplateIndex);\n  const msgParts = replaceNgsp(message).split(PH_REGEXP);\n  for (let i = 0; i < msgParts.length; i++) {\n    let value = msgParts[i];\n    if ((i & 1) === 0) {\n      // Even indexes are text (including bindings & ICU expressions)\n      const parts = i18nParseTextIntoPartsAndICU(value);\n      for (let j = 0; j < parts.length; j++) {\n        let part = parts[j];\n        if ((j & 1) === 0) {\n          // `j` is odd therefore `part` is string\n          const text = part;\n          ngDevMode && assertString(text, 'Parsed ICU part should be string');\n          if (text !== '') {\n            i18nStartFirstCreatePassProcessTextNode(astStack[0], tView, rootTNode, existingTNodeStack[0], createOpCodes, updateOpCodes, lView, text);\n          }\n        } else {\n          // `j` is Even therefor `part` is an `ICUExpression`\n          const icuExpression = part;\n          // Verify that ICU expression has the right shape. Translations might contain invalid\n          // constructions (while original messages were correct), so ICU parsing at runtime may\n          // not succeed (thus `icuExpression` remains a string).\n          // Note: we intentionally retain the error here by not using `ngDevMode`, because\n          // the value can change based on the locale and users aren't guaranteed to hit\n          // an invalid string while they're developing.\n          if (typeof icuExpression !== 'object') {\n            throw new Error(`Unable to parse ICU expression in \"${message}\" message.`);\n          }\n          const icuContainerTNode = createTNodeAndAddOpCode(tView, rootTNode, existingTNodeStack[0], lView, createOpCodes, ngDevMode ? `ICU ${index}:${icuExpression.mainBinding}` : '', true);\n          const icuNodeIndex = icuContainerTNode.index;\n          ngDevMode && assertGreaterThanOrEqual(icuNodeIndex, HEADER_OFFSET, 'Index must be in absolute LView offset');\n          icuStart(astStack[0], tView, lView, updateOpCodes, parentTNodeIndex, icuExpression, icuNodeIndex);\n        }\n      }\n    } else {\n      // Odd indexes are placeholders (elements and sub-templates)\n      // At this point value is something like: '/#1:2' (originally coming from '�/#1:2�')\n      const isClosing = value.charCodeAt(0) === 47 /* CharCode.SLASH */;\n      const type = value.charCodeAt(isClosing ? 1 : 0);\n      ngDevMode && assertOneOf(type, 42 /* CharCode.STAR */, 35 /* CharCode.HASH */);\n      const index = HEADER_OFFSET + Number.parseInt(value.substring(isClosing ? 2 : 1));\n      if (isClosing) {\n        existingTNodeStack.shift();\n        astStack.shift();\n        setCurrentTNode(getCurrentParentTNode(), false);\n      } else {\n        const tNode = createTNodePlaceholder(tView, existingTNodeStack[0], index);\n        existingTNodeStack.unshift([]);\n        setCurrentTNode(tNode, true);\n        const placeholderNode = {\n          kind: 2 /* I18nNodeKind.PLACEHOLDER */,\n          index,\n          children: [],\n          type: type === 35 /* CharCode.HASH */ ? 0 /* I18nPlaceholderType.ELEMENT */ : 1 /* I18nPlaceholderType.SUBTEMPLATE */\n        };\n        astStack[0].push(placeholderNode);\n        astStack.unshift(placeholderNode.children);\n      }\n    }\n  }\n  tView.data[index] = {\n    create: createOpCodes,\n    update: updateOpCodes,\n    ast: astStack[0]\n  };\n}\n/**\n * Allocate space in i18n Range add create OpCode instruction to create a text or comment node.\n *\n * @param tView Current `TView` needed to allocate space in i18n range.\n * @param rootTNode Root `TNode` of the i18n block. This node determines if the new TNode will be\n *     added as part of the `i18nStart` instruction or as part of the `TNode.insertBeforeIndex`.\n * @param existingTNodes internal state for `addTNodeAndUpdateInsertBeforeIndex`.\n * @param lView Current `LView` needed to allocate space in i18n range.\n * @param createOpCodes Array storing `I18nCreateOpCodes` where new opCodes will be added.\n * @param text Text to be added when the `Text` or `Comment` node will be created.\n * @param isICU true if a `Comment` node for ICU (instead of `Text`) node should be created.\n */\nfunction createTNodeAndAddOpCode(tView, rootTNode, existingTNodes, lView, createOpCodes, text, isICU) {\n  const i18nNodeIdx = allocExpando(tView, lView, 1, null);\n  let opCode = i18nNodeIdx << I18nCreateOpCode.SHIFT;\n  let parentTNode = getCurrentParentTNode();\n  if (rootTNode === parentTNode) {\n    // FIXME(misko): A null `parentTNode` should represent when we fall of the `LView` boundary.\n    // (there is no parent), but in some circumstances (because we are inconsistent about how we set\n    // `previousOrParentTNode`) it could point to `rootTNode` So this is a work around.\n    parentTNode = null;\n  }\n  if (parentTNode === null) {\n    // If we don't have a parent that means that we can eagerly add nodes.\n    // If we have a parent than these nodes can't be added now (as the parent has not been created\n    // yet) and instead the `parentTNode` is responsible for adding it. See\n    // `TNode.insertBeforeIndex`\n    opCode |= I18nCreateOpCode.APPEND_EAGERLY;\n  }\n  if (isICU) {\n    opCode |= I18nCreateOpCode.COMMENT;\n    ensureIcuContainerVisitorLoaded(loadIcuContainerVisitor);\n  }\n  createOpCodes.push(opCode, text === null ? '' : text);\n  // We store `{{?}}` so that when looking at debug `TNodeType.template` we can see where the\n  // bindings are.\n  const tNode = createTNodeAtIndex(tView, i18nNodeIdx, isICU ? 32 /* TNodeType.Icu */ : 1 /* TNodeType.Text */, text === null ? ngDevMode ? '{{?}}' : '' : text, null);\n  addTNodeAndUpdateInsertBeforeIndex(existingTNodes, tNode);\n  const tNodeIdx = tNode.index;\n  setCurrentTNode(tNode, false /* Text nodes are self closing */);\n  if (parentTNode !== null && rootTNode !== parentTNode) {\n    // We are a child of deeper node (rather than a direct child of `i18nStart` instruction.)\n    // We have to make sure to add ourselves to the parent.\n    setTNodeInsertBeforeIndex(parentTNode, tNodeIdx);\n  }\n  return tNode;\n}\n/**\n * Processes text node in i18n block.\n *\n * Text nodes can have:\n * - Create instruction in `createOpCodes` for creating the text node.\n * - Allocate spec for text node in i18n range of `LView`\n * - If contains binding:\n *    - bindings => allocate space in i18n range of `LView` to store the binding value.\n *    - populate `updateOpCodes` with update instructions.\n *\n * @param tView Current `TView`\n * @param rootTNode Root `TNode` of the i18n block. This node determines if the new TNode will\n *     be added as part of the `i18nStart` instruction or as part of the\n *     `TNode.insertBeforeIndex`.\n * @param existingTNodes internal state for `addTNodeAndUpdateInsertBeforeIndex`.\n * @param createOpCodes Location where the creation OpCodes will be stored.\n * @param lView Current `LView`\n * @param text The translated text (which may contain binding)\n */\nfunction i18nStartFirstCreatePassProcessTextNode(ast, tView, rootTNode, existingTNodes, createOpCodes, updateOpCodes, lView, text) {\n  const hasBinding = text.match(BINDING_REGEXP);\n  const tNode = createTNodeAndAddOpCode(tView, rootTNode, existingTNodes, lView, createOpCodes, hasBinding ? null : text, false);\n  const index = tNode.index;\n  if (hasBinding) {\n    generateBindingUpdateOpCodes(updateOpCodes, text, index, null, 0, null);\n  }\n  ast.push({\n    kind: 0 /* I18nNodeKind.TEXT */,\n    index\n  });\n}\n/**\n * See `i18nAttributes` above.\n */\nfunction i18nAttributesFirstPass(tView, index, values) {\n  const previousElement = getCurrentTNode();\n  const previousElementIndex = previousElement.index;\n  const updateOpCodes = [];\n  if (ngDevMode) {\n    attachDebugGetter(updateOpCodes, i18nUpdateOpCodesToString);\n  }\n  if (tView.firstCreatePass && tView.data[index] === null) {\n    for (let i = 0; i < values.length; i += 2) {\n      const attrName = values[i];\n      const message = values[i + 1];\n      if (message !== '') {\n        // Check if attribute value contains an ICU and throw an error if that's the case.\n        // ICUs in element attributes are not supported.\n        // Note: we intentionally retain the error here by not using `ngDevMode`, because\n        // the `value` can change based on the locale and users aren't guaranteed to hit\n        // an invalid string while they're developing.\n        if (ICU_REGEXP.test(message)) {\n          throw new Error(`ICU expressions are not supported in attributes. Message: \"${message}\".`);\n        }\n        // i18n attributes that hit this code path are guaranteed to have bindings, because\n        // the compiler treats static i18n attributes as regular attribute bindings.\n        // Since this may not be the first i18n attribute on this element we need to pass in how\n        // many previous bindings there have already been.\n        generateBindingUpdateOpCodes(updateOpCodes, message, previousElementIndex, attrName, countBindings(updateOpCodes), null);\n      }\n    }\n    tView.data[index] = updateOpCodes;\n  }\n}\n/**\n * Generate the OpCodes to update the bindings of a string.\n *\n * @param updateOpCodes Place where the update opcodes will be stored.\n * @param str The string containing the bindings.\n * @param destinationNode Index of the destination node which will receive the binding.\n * @param attrName Name of the attribute, if the string belongs to an attribute.\n * @param sanitizeFn Sanitization function used to sanitize the string after update, if necessary.\n * @param bindingStart The lView index of the next expression that can be bound via an opCode.\n * @returns The mask value for these bindings\n */\nfunction generateBindingUpdateOpCodes(updateOpCodes, str, destinationNode, attrName, bindingStart, sanitizeFn) {\n  ngDevMode && assertGreaterThanOrEqual(destinationNode, HEADER_OFFSET, 'Index must be in absolute LView offset');\n  const maskIndex = updateOpCodes.length; // Location of mask\n  const sizeIndex = maskIndex + 1; // location of size for skipping\n  updateOpCodes.push(null, null); // Alloc space for mask and size\n  const startIndex = maskIndex + 2; // location of first allocation.\n  if (ngDevMode) {\n    attachDebugGetter(updateOpCodes, i18nUpdateOpCodesToString);\n  }\n  const textParts = str.split(BINDING_REGEXP);\n  let mask = 0;\n  for (let j = 0; j < textParts.length; j++) {\n    const textValue = textParts[j];\n    if (j & 1) {\n      // Odd indexes are bindings\n      const bindingIndex = bindingStart + parseInt(textValue, 10);\n      updateOpCodes.push(-1 - bindingIndex);\n      mask = mask | toMaskBit(bindingIndex);\n    } else if (textValue !== '') {\n      // Even indexes are text\n      updateOpCodes.push(textValue);\n    }\n  }\n  updateOpCodes.push(destinationNode << 2 /* I18nUpdateOpCode.SHIFT_REF */ | (attrName ? 1 /* I18nUpdateOpCode.Attr */ : 0 /* I18nUpdateOpCode.Text */));\n  if (attrName) {\n    updateOpCodes.push(attrName, sanitizeFn);\n  }\n  updateOpCodes[maskIndex] = mask;\n  updateOpCodes[sizeIndex] = updateOpCodes.length - startIndex;\n  return mask;\n}\n/**\n * Count the number of bindings in the given `opCodes`.\n *\n * It could be possible to speed this up, by passing the number of bindings found back from\n * `generateBindingUpdateOpCodes()` to `i18nAttributesFirstPass()` but this would then require more\n * complexity in the code and/or transient objects to be created.\n *\n * Since this function is only called once when the template is instantiated, is trivial in the\n * first instance (since `opCodes` will be an empty array), and it is not common for elements to\n * contain multiple i18n bound attributes, it seems like this is a reasonable compromise.\n */\nfunction countBindings(opCodes) {\n  let count = 0;\n  for (let i = 0; i < opCodes.length; i++) {\n    const opCode = opCodes[i];\n    // Bindings are negative numbers.\n    if (typeof opCode === 'number' && opCode < 0) {\n      count++;\n    }\n  }\n  return count;\n}\n/**\n * Convert binding index to mask bit.\n *\n * Each index represents a single bit on the bit-mask. Because bit-mask only has 32 bits, we make\n * the 32nd bit share all masks for all bindings higher than 32. Since it is extremely rare to\n * have more than 32 bindings this will be hit very rarely. The downside of hitting this corner\n * case is that we will execute binding code more often than necessary. (penalty of performance)\n */\nfunction toMaskBit(bindingIndex) {\n  return 1 << Math.min(bindingIndex, 31);\n}\nfunction isRootTemplateMessage(subTemplateIndex) {\n  return subTemplateIndex === -1;\n}\n/**\n * Removes everything inside the sub-templates of a message.\n */\nfunction removeInnerTemplateTranslation(message) {\n  let match;\n  let res = '';\n  let index = 0;\n  let inTemplate = false;\n  let tagMatched;\n  while ((match = SUBTEMPLATE_REGEXP.exec(message)) !== null) {\n    if (!inTemplate) {\n      res += message.substring(index, match.index + match[0].length);\n      tagMatched = match[1];\n      inTemplate = true;\n    } else {\n      if (match[0] === `${MARKER}/*${tagMatched}${MARKER}`) {\n        index = match.index;\n        inTemplate = false;\n      }\n    }\n  }\n  ngDevMode && assertEqual(inTemplate, false, `Tag mismatch: unable to find the end of the sub-template in the translation \"${message}\"`);\n  res += message.slice(index);\n  return res;\n}\n/**\n * Extracts a part of a message and removes the rest.\n *\n * This method is used for extracting a part of the message associated with a template. A\n * translated message can span multiple templates.\n *\n * Example:\n * ```\n * <div i18n>Translate <span *ngIf>me</span>!</div>\n * ```\n *\n * @param message The message to crop\n * @param subTemplateIndex Index of the sub-template to extract. If undefined it returns the\n * external template and removes all sub-templates.\n */\nfunction getTranslationForTemplate(message, subTemplateIndex) {\n  if (isRootTemplateMessage(subTemplateIndex)) {\n    // We want the root template message, ignore all sub-templates\n    return removeInnerTemplateTranslation(message);\n  } else {\n    // We want a specific sub-template\n    const start = message.indexOf(`:${subTemplateIndex}${MARKER}`) + 2 + subTemplateIndex.toString().length;\n    const end = message.search(new RegExp(`${MARKER}\\\\/\\\\*\\\\d+:${subTemplateIndex}${MARKER}`));\n    return removeInnerTemplateTranslation(message.substring(start, end));\n  }\n}\n/**\n * Generate the OpCodes for ICU expressions.\n *\n * @param icuExpression\n * @param index Index where the anchor is stored and an optional `TIcuContainerNode`\n *   - `lView[anchorIdx]` points to a `Comment` node representing the anchor for the ICU.\n *   - `tView.data[anchorIdx]` points to the `TIcuContainerNode` if ICU is root (`null` otherwise)\n */\nfunction icuStart(ast, tView, lView, updateOpCodes, parentIdx, icuExpression, anchorIdx) {\n  ngDevMode && assertDefined(icuExpression, 'ICU expression must be defined');\n  let bindingMask = 0;\n  const tIcu = {\n    type: icuExpression.type,\n    currentCaseLViewIndex: allocExpando(tView, lView, 1, null),\n    anchorIdx,\n    cases: [],\n    create: [],\n    remove: [],\n    update: []\n  };\n  addUpdateIcuSwitch(updateOpCodes, icuExpression, anchorIdx);\n  setTIcu(tView, anchorIdx, tIcu);\n  const values = icuExpression.values;\n  const cases = [];\n  for (let i = 0; i < values.length; i++) {\n    // Each value is an array of strings & other ICU expressions\n    const valueArr = values[i];\n    const nestedIcus = [];\n    for (let j = 0; j < valueArr.length; j++) {\n      const value = valueArr[j];\n      if (typeof value !== 'string') {\n        // It is an nested ICU expression\n        const icuIndex = nestedIcus.push(value) - 1;\n        // Replace nested ICU expression by a comment node\n        valueArr[j] = `<!--�${icuIndex}�-->`;\n      }\n    }\n    const caseAst = [];\n    cases.push(caseAst);\n    bindingMask = parseIcuCase(caseAst, tView, tIcu, lView, updateOpCodes, parentIdx, icuExpression.cases[i], valueArr.join(''), nestedIcus) | bindingMask;\n  }\n  if (bindingMask) {\n    addUpdateIcuUpdate(updateOpCodes, bindingMask, anchorIdx);\n  }\n  ast.push({\n    kind: 3 /* I18nNodeKind.ICU */,\n    index: anchorIdx,\n    cases,\n    currentCaseLViewIndex: tIcu.currentCaseLViewIndex\n  });\n}\n/**\n * Parses text containing an ICU expression and produces a JSON object for it.\n * Original code from closure library, modified for Angular.\n *\n * @param pattern Text containing an ICU expression that needs to be parsed.\n *\n */\nfunction parseICUBlock(pattern) {\n  const cases = [];\n  const values = [];\n  let icuType = 1 /* IcuType.plural */;\n  let mainBinding = 0;\n  pattern = pattern.replace(ICU_BLOCK_REGEXP, function (str, binding, type) {\n    if (type === 'select') {\n      icuType = 0 /* IcuType.select */;\n    } else {\n      icuType = 1 /* IcuType.plural */;\n    }\n    mainBinding = parseInt(binding.slice(1), 10);\n    return '';\n  });\n  const parts = i18nParseTextIntoPartsAndICU(pattern);\n  // Looking for (key block)+ sequence. One of the keys has to be \"other\".\n  for (let pos = 0; pos < parts.length;) {\n    let key = parts[pos++].trim();\n    if (icuType === 1 /* IcuType.plural */) {\n      // Key can be \"=x\", we just want \"x\"\n      key = key.replace(/\\s*(?:=)?(\\w+)\\s*/, '$1');\n    }\n    if (key.length) {\n      cases.push(key);\n    }\n    const blocks = i18nParseTextIntoPartsAndICU(parts[pos++]);\n    if (cases.length > values.length) {\n      values.push(blocks);\n    }\n  }\n  // TODO(ocombe): support ICU expressions in attributes, see #21615\n  return {\n    type: icuType,\n    mainBinding: mainBinding,\n    cases,\n    values\n  };\n}\n/**\n * Breaks pattern into strings and top level {...} blocks.\n * Can be used to break a message into text and ICU expressions, or to break an ICU expression\n * into keys and cases. Original code from closure library, modified for Angular.\n *\n * @param pattern (sub)Pattern to be broken.\n * @returns An `Array<string|IcuExpression>` where:\n *   - odd positions: `string` => text between ICU expressions\n *   - even positions: `ICUExpression` => ICU expression parsed into `ICUExpression` record.\n */\nfunction i18nParseTextIntoPartsAndICU(pattern) {\n  if (!pattern) {\n    return [];\n  }\n  let prevPos = 0;\n  const braceStack = [];\n  const results = [];\n  const braces = /[{}]/g;\n  // lastIndex doesn't get set to 0 so we have to.\n  braces.lastIndex = 0;\n  let match;\n  while (match = braces.exec(pattern)) {\n    const pos = match.index;\n    if (match[0] == '}') {\n      braceStack.pop();\n      if (braceStack.length == 0) {\n        // End of the block.\n        const block = pattern.substring(prevPos, pos);\n        if (ICU_BLOCK_REGEXP.test(block)) {\n          results.push(parseICUBlock(block));\n        } else {\n          results.push(block);\n        }\n        prevPos = pos + 1;\n      }\n    } else {\n      if (braceStack.length == 0) {\n        const substring = pattern.substring(prevPos, pos);\n        results.push(substring);\n        prevPos = pos + 1;\n      }\n      braceStack.push('{');\n    }\n  }\n  const substring = pattern.substring(prevPos);\n  results.push(substring);\n  return results;\n}\n/**\n * Parses a node, its children and its siblings, and generates the mutate & update OpCodes.\n *\n */\nfunction parseIcuCase(ast, tView, tIcu, lView, updateOpCodes, parentIdx, caseName, unsafeCaseHtml, nestedIcus) {\n  const create = [];\n  const remove = [];\n  const update = [];\n  if (ngDevMode) {\n    attachDebugGetter(create, icuCreateOpCodesToString);\n    attachDebugGetter(remove, i18nRemoveOpCodesToString);\n    attachDebugGetter(update, i18nUpdateOpCodesToString);\n  }\n  tIcu.cases.push(caseName);\n  tIcu.create.push(create);\n  tIcu.remove.push(remove);\n  tIcu.update.push(update);\n  const inertBodyHelper = getInertBodyHelper(getDocument());\n  const inertBodyElement = inertBodyHelper.getInertBodyElement(unsafeCaseHtml);\n  ngDevMode && assertDefined(inertBodyElement, 'Unable to generate inert body element');\n  const inertRootNode = getTemplateContent(inertBodyElement) || inertBodyElement;\n  if (inertRootNode) {\n    return walkIcuTree(ast, tView, tIcu, lView, updateOpCodes, create, remove, update, inertRootNode, parentIdx, nestedIcus, 0);\n  } else {\n    return 0;\n  }\n}\nfunction walkIcuTree(ast, tView, tIcu, lView, sharedUpdateOpCodes, create, remove, update, parentNode, parentIdx, nestedIcus, depth) {\n  let bindingMask = 0;\n  let currentNode = parentNode.firstChild;\n  while (currentNode) {\n    const newIndex = allocExpando(tView, lView, 1, null);\n    switch (currentNode.nodeType) {\n      case Node.ELEMENT_NODE:\n        const element = currentNode;\n        const tagName = element.tagName.toLowerCase();\n        if (VALID_ELEMENTS.hasOwnProperty(tagName)) {\n          addCreateNodeAndAppend(create, ELEMENT_MARKER, tagName, parentIdx, newIndex);\n          tView.data[newIndex] = tagName;\n          const elAttrs = element.attributes;\n          for (let i = 0; i < elAttrs.length; i++) {\n            const attr = elAttrs.item(i);\n            const lowerAttrName = attr.name.toLowerCase();\n            const hasBinding = !!attr.value.match(BINDING_REGEXP);\n            // we assume the input string is safe, unless it's using a binding\n            if (hasBinding) {\n              if (VALID_ATTRS.hasOwnProperty(lowerAttrName)) {\n                if (URI_ATTRS[lowerAttrName]) {\n                  generateBindingUpdateOpCodes(update, attr.value, newIndex, attr.name, 0, _sanitizeUrl);\n                } else {\n                  generateBindingUpdateOpCodes(update, attr.value, newIndex, attr.name, 0, null);\n                }\n              } else {\n                ngDevMode && console.warn(`WARNING: ignoring unsafe attribute value ` + `${lowerAttrName} on element ${tagName} ` + `(see ${XSS_SECURITY_URL})`);\n              }\n            } else {\n              addCreateAttribute(create, newIndex, attr);\n            }\n          }\n          const elementNode = {\n            kind: 1 /* I18nNodeKind.ELEMENT */,\n            index: newIndex,\n            children: []\n          };\n          ast.push(elementNode);\n          // Parse the children of this node (if any)\n          bindingMask = walkIcuTree(elementNode.children, tView, tIcu, lView, sharedUpdateOpCodes, create, remove, update, currentNode, newIndex, nestedIcus, depth + 1) | bindingMask;\n          addRemoveNode(remove, newIndex, depth);\n        }\n        break;\n      case Node.TEXT_NODE:\n        const value = currentNode.textContent || '';\n        const hasBinding = value.match(BINDING_REGEXP);\n        addCreateNodeAndAppend(create, null, hasBinding ? '' : value, parentIdx, newIndex);\n        addRemoveNode(remove, newIndex, depth);\n        if (hasBinding) {\n          bindingMask = generateBindingUpdateOpCodes(update, value, newIndex, null, 0, null) | bindingMask;\n        }\n        ast.push({\n          kind: 0 /* I18nNodeKind.TEXT */,\n          index: newIndex\n        });\n        break;\n      case Node.COMMENT_NODE:\n        // Check if the comment node is a placeholder for a nested ICU\n        const isNestedIcu = NESTED_ICU.exec(currentNode.textContent || '');\n        if (isNestedIcu) {\n          const nestedIcuIndex = parseInt(isNestedIcu[1], 10);\n          const icuExpression = nestedIcus[nestedIcuIndex];\n          // Create the comment node that will anchor the ICU expression\n          addCreateNodeAndAppend(create, ICU_MARKER, ngDevMode ? `nested ICU ${nestedIcuIndex}` : '', parentIdx, newIndex);\n          icuStart(ast, tView, lView, sharedUpdateOpCodes, parentIdx, icuExpression, newIndex);\n          addRemoveNestedIcu(remove, newIndex, depth);\n        }\n        break;\n    }\n    currentNode = currentNode.nextSibling;\n  }\n  return bindingMask;\n}\nfunction addRemoveNode(remove, index, depth) {\n  if (depth === 0) {\n    remove.push(index);\n  }\n}\nfunction addRemoveNestedIcu(remove, index, depth) {\n  if (depth === 0) {\n    remove.push(~index); // remove ICU at `index`\n    remove.push(index); // remove ICU comment at `index`\n  }\n}\nfunction addUpdateIcuSwitch(update, icuExpression, index) {\n  update.push(toMaskBit(icuExpression.mainBinding), 2, -1 - icuExpression.mainBinding, index << 2 /* I18nUpdateOpCode.SHIFT_REF */ | 2 /* I18nUpdateOpCode.IcuSwitch */);\n}\nfunction addUpdateIcuUpdate(update, bindingMask, index) {\n  update.push(bindingMask, 1, index << 2 /* I18nUpdateOpCode.SHIFT_REF */ | 3 /* I18nUpdateOpCode.IcuUpdate */);\n}\nfunction addCreateNodeAndAppend(create, marker, text, appendToParentIdx, createAtIdx) {\n  if (marker !== null) {\n    create.push(marker);\n  }\n  create.push(text, createAtIdx, icuCreateOpCode(0 /* IcuCreateOpCode.AppendChild */, appendToParentIdx, createAtIdx));\n}\nfunction addCreateAttribute(create, newIndex, attr) {\n  create.push(newIndex << 1 /* IcuCreateOpCode.SHIFT_REF */ | 1 /* IcuCreateOpCode.Attr */, attr.name, attr.value);\n}\n\n// i18nPostprocess consts\nconst ROOT_TEMPLATE_ID = 0;\nconst PP_MULTI_VALUE_PLACEHOLDERS_REGEXP = /\\[(�.+?�?)\\]/;\nconst PP_PLACEHOLDERS_REGEXP = /\\[(�.+?�?)\\]|(�\\/?\\*\\d+:\\d+�)/g;\nconst PP_ICU_VARS_REGEXP = /({\\s*)(VAR_(PLURAL|SELECT)(_\\d+)?)(\\s*,)/g;\nconst PP_ICU_PLACEHOLDERS_REGEXP = /{([A-Z0-9_]+)}/g;\nconst PP_ICUS_REGEXP = /�I18N_EXP_(ICU(_\\d+)?)�/g;\nconst PP_CLOSE_TEMPLATE_REGEXP = /\\/\\*/;\nconst PP_TEMPLATE_ID_REGEXP = /\\d+\\:(\\d+)/;\n/**\n * Handles message string post-processing for internationalization.\n *\n * Handles message string post-processing by transforming it from intermediate\n * format (that might contain some markers that we need to replace) to the final\n * form, consumable by i18nStart instruction. Post processing steps include:\n *\n * 1. Resolve all multi-value cases (like [�*1:1��#2:1�|�#4:1�|�5�])\n * 2. Replace all ICU vars (like \"VAR_PLURAL\")\n * 3. Replace all placeholders used inside ICUs in a form of {PLACEHOLDER}\n * 4. Replace all ICU references with corresponding values (like �ICU_EXP_ICU_1�)\n *    in case multiple ICUs have the same placeholder name\n *\n * @param message Raw translation string for post processing\n * @param replacements Set of replacements that should be applied\n *\n * @returns Transformed string that can be consumed by i18nStart instruction\n *\n * @codeGenApi\n */\nfunction i18nPostprocess(message, replacements = {}) {\n  /**\n   * Step 1: resolve all multi-value placeholders like [�#5�|�*1:1��#2:1�|�#4:1�]\n   *\n   * Note: due to the way we process nested templates (BFS), multi-value placeholders are typically\n   * grouped by templates, for example: [�#5�|�#6�|�#1:1�|�#3:2�] where �#5� and �#6� belong to root\n   * template, �#1:1� belong to nested template with index 1 and �#1:2� - nested template with index\n   * 3. However in real templates the order might be different: i.e. �#1:1� and/or �#3:2� may go in\n   * front of �#6�. The post processing step restores the right order by keeping track of the\n   * template id stack and looks for placeholders that belong to the currently active template.\n   */\n  let result = message;\n  if (PP_MULTI_VALUE_PLACEHOLDERS_REGEXP.test(message)) {\n    const matches = {};\n    const templateIdsStack = [ROOT_TEMPLATE_ID];\n    result = result.replace(PP_PLACEHOLDERS_REGEXP, (m, phs, tmpl) => {\n      const content = phs || tmpl;\n      const placeholders = matches[content] || [];\n      if (!placeholders.length) {\n        content.split('|').forEach(placeholder => {\n          const match = placeholder.match(PP_TEMPLATE_ID_REGEXP);\n          const templateId = match ? parseInt(match[1], 10) : ROOT_TEMPLATE_ID;\n          const isCloseTemplateTag = PP_CLOSE_TEMPLATE_REGEXP.test(placeholder);\n          placeholders.push([templateId, isCloseTemplateTag, placeholder]);\n        });\n        matches[content] = placeholders;\n      }\n      if (!placeholders.length) {\n        throw new Error(`i18n postprocess: unmatched placeholder - ${content}`);\n      }\n      const currentTemplateId = templateIdsStack[templateIdsStack.length - 1];\n      let idx = 0;\n      // find placeholder index that matches current template id\n      for (let i = 0; i < placeholders.length; i++) {\n        if (placeholders[i][0] === currentTemplateId) {\n          idx = i;\n          break;\n        }\n      }\n      // update template id stack based on the current tag extracted\n      const [templateId, isCloseTemplateTag, placeholder] = placeholders[idx];\n      if (isCloseTemplateTag) {\n        templateIdsStack.pop();\n      } else if (currentTemplateId !== templateId) {\n        templateIdsStack.push(templateId);\n      }\n      // remove processed tag from the list\n      placeholders.splice(idx, 1);\n      return placeholder;\n    });\n  }\n  // return current result if no replacements specified\n  if (!Object.keys(replacements).length) {\n    return result;\n  }\n  /**\n   * Step 2: replace all ICU vars (like \"VAR_PLURAL\")\n   */\n  result = result.replace(PP_ICU_VARS_REGEXP, (match, start, key, _type, _idx, end) => {\n    return replacements.hasOwnProperty(key) ? `${start}${replacements[key]}${end}` : match;\n  });\n  /**\n   * Step 3: replace all placeholders used inside ICUs in a form of {PLACEHOLDER}\n   */\n  result = result.replace(PP_ICU_PLACEHOLDERS_REGEXP, (match, key) => {\n    return replacements.hasOwnProperty(key) ? replacements[key] : match;\n  });\n  /**\n   * Step 4: replace all ICU references with corresponding values (like �ICU_EXP_ICU_1�) in case\n   * multiple ICUs have the same placeholder name\n   */\n  result = result.replace(PP_ICUS_REGEXP, (match, key) => {\n    if (replacements.hasOwnProperty(key)) {\n      const list = replacements[key];\n      if (!list.length) {\n        throw new Error(`i18n postprocess: unmatched ICU - ${match} with key: ${key}`);\n      }\n      return list.shift();\n    }\n    return match;\n  });\n  return result;\n}\n\n/**\n * Marks a block of text as translatable.\n *\n * The instructions `i18nStart` and `i18nEnd` mark the translation block in the template.\n * The translation `message` is the value which is locale specific. The translation string may\n * contain placeholders which associate inner elements and sub-templates within the translation.\n *\n * The translation `message` placeholders are:\n * - `�{index}(:{block})�`: *Binding Placeholder*: Marks a location where an expression will be\n *   interpolated into. The placeholder `index` points to the expression binding index. An optional\n *   `block` that matches the sub-template in which it was declared.\n * - `�#{index}(:{block})�`/`�/#{index}(:{block})�`: *Element Placeholder*:  Marks the beginning\n *   and end of DOM element that were embedded in the original translation block. The placeholder\n *   `index` points to the element index in the template instructions set. An optional `block` that\n *   matches the sub-template in which it was declared.\n * - `�*{index}:{block}�`/`�/*{index}:{block}�`: *Sub-template Placeholder*: Sub-templates must be\n *   split up and translated separately in each angular template function. The `index` points to the\n *   `template` instruction index. A `block` that matches the sub-template in which it was declared.\n *\n * @param index A unique index of the translation in the static block.\n * @param messageIndex An index of the translation message from the `def.consts` array.\n * @param subTemplateIndex Optional sub-template index in the `message`.\n *\n * @codeGenApi\n */\nfunction ɵɵi18nStart(index, messageIndex, subTemplateIndex = -1) {\n  const tView = getTView();\n  const lView = getLView();\n  const adjustedIndex = HEADER_OFFSET + index;\n  ngDevMode && assertDefined(tView, `tView should be defined`);\n  const message = getConstant(tView.consts, messageIndex);\n  const parentTNode = getCurrentParentTNode();\n  if (tView.firstCreatePass) {\n    i18nStartFirstCreatePass(tView, parentTNode === null ? 0 : parentTNode.index, lView, adjustedIndex, message, subTemplateIndex);\n  }\n  // Set a flag that this LView has i18n blocks.\n  // The flag is later used to determine whether this component should\n  // be hydrated (currently hydration is not supported for i18n blocks).\n  if (tView.type === 2 /* TViewType.Embedded */) {\n    // Annotate host component's LView (not embedded view's LView),\n    // since hydration can be skipped on per-component basis only.\n    const componentLView = lView[DECLARATION_COMPONENT_VIEW];\n    componentLView[FLAGS] |= 32 /* LViewFlags.HasI18n */;\n  } else {\n    lView[FLAGS] |= 32 /* LViewFlags.HasI18n */;\n  }\n  const tI18n = tView.data[adjustedIndex];\n  const sameViewParentTNode = parentTNode === lView[T_HOST] ? null : parentTNode;\n  const parentRNode = getClosestRElement(tView, sameViewParentTNode, lView);\n  // If `parentTNode` is an `ElementContainer` than it has `<!--ng-container--->`.\n  // When we do inserts we have to make sure to insert in front of `<!--ng-container--->`.\n  const insertInFrontOf = parentTNode && parentTNode.type & 8 /* TNodeType.ElementContainer */ ? lView[parentTNode.index] : null;\n  applyCreateOpCodes(lView, tI18n.create, parentRNode, insertInFrontOf);\n  setInI18nBlock(true);\n}\n/**\n * Translates a translation block marked by `i18nStart` and `i18nEnd`. It inserts the text/ICU nodes\n * into the render tree, moves the placeholder nodes and removes the deleted nodes.\n *\n * @codeGenApi\n */\nfunction ɵɵi18nEnd() {\n  setInI18nBlock(false);\n}\n/**\n *\n * Use this instruction to create a translation block that doesn't contain any placeholder.\n * It calls both {@link i18nStart} and {@link i18nEnd} in one instruction.\n *\n * The translation `message` is the value which is locale specific. The translation string may\n * contain placeholders which associate inner elements and sub-templates within the translation.\n *\n * The translation `message` placeholders are:\n * - `�{index}(:{block})�`: *Binding Placeholder*: Marks a location where an expression will be\n *   interpolated into. The placeholder `index` points to the expression binding index. An optional\n *   `block` that matches the sub-template in which it was declared.\n * - `�#{index}(:{block})�`/`�/#{index}(:{block})�`: *Element Placeholder*:  Marks the beginning\n *   and end of DOM element that were embedded in the original translation block. The placeholder\n *   `index` points to the element index in the template instructions set. An optional `block` that\n *   matches the sub-template in which it was declared.\n * - `�*{index}:{block}�`/`�/*{index}:{block}�`: *Sub-template Placeholder*: Sub-templates must be\n *   split up and translated separately in each angular template function. The `index` points to the\n *   `template` instruction index. A `block` that matches the sub-template in which it was declared.\n *\n * @param index A unique index of the translation in the static block.\n * @param messageIndex An index of the translation message from the `def.consts` array.\n * @param subTemplateIndex Optional sub-template index in the `message`.\n *\n * @codeGenApi\n */\nfunction ɵɵi18n(index, messageIndex, subTemplateIndex) {\n  ɵɵi18nStart(index, messageIndex, subTemplateIndex);\n  ɵɵi18nEnd();\n}\n/**\n * Marks a list of attributes as translatable.\n *\n * @param index A unique index in the static block\n * @param values\n *\n * @codeGenApi\n */\nfunction ɵɵi18nAttributes(index, attrsIndex) {\n  const tView = getTView();\n  ngDevMode && assertDefined(tView, `tView should be defined`);\n  const attrs = getConstant(tView.consts, attrsIndex);\n  i18nAttributesFirstPass(tView, index + HEADER_OFFSET, attrs);\n}\n/**\n * Stores the values of the bindings during each update cycle in order to determine if we need to\n * update the translated nodes.\n *\n * @param value The binding's value\n * @returns This function returns itself so that it may be chained\n * (e.g. `i18nExp(ctx.name)(ctx.title)`)\n *\n * @codeGenApi\n */\nfunction ɵɵi18nExp(value) {\n  const lView = getLView();\n  setMaskBit(bindingUpdated(lView, nextBindingIndex(), value));\n  return ɵɵi18nExp;\n}\n/**\n * Updates a translation block or an i18n attribute when the bindings have changed.\n *\n * @param index Index of either {@link i18nStart} (translation block) or {@link i18nAttributes}\n * (i18n attribute) on which it should update the content.\n *\n * @codeGenApi\n */\nfunction ɵɵi18nApply(index) {\n  applyI18n(getTView(), getLView(), index + HEADER_OFFSET);\n}\n/**\n * Handles message string post-processing for internationalization.\n *\n * Handles message string post-processing by transforming it from intermediate\n * format (that might contain some markers that we need to replace) to the final\n * form, consumable by i18nStart instruction. Post processing steps include:\n *\n * 1. Resolve all multi-value cases (like [�*1:1��#2:1�|�#4:1�|�5�])\n * 2. Replace all ICU vars (like \"VAR_PLURAL\")\n * 3. Replace all placeholders used inside ICUs in a form of {PLACEHOLDER}\n * 4. Replace all ICU references with corresponding values (like �ICU_EXP_ICU_1�)\n *    in case multiple ICUs have the same placeholder name\n *\n * @param message Raw translation string for post processing\n * @param replacements Set of replacements that should be applied\n *\n * @returns Transformed string that can be consumed by i18nStart instruction\n *\n * @codeGenApi\n */\nfunction ɵɵi18nPostprocess(message, replacements = {}) {\n  return i18nPostprocess(message, replacements);\n}\n\n/**\n * Adds an event listener to the current node.\n *\n * If an output exists on one of the node's directives, it also subscribes to the output\n * and saves the subscription for later cleanup.\n *\n * @param eventName Name of the event\n * @param listenerFn The function to be called when event emits\n * @param useCapture Whether or not to use capture in event listener - this argument is a reminder\n *     from the Renderer3 infrastructure and should be removed from the instruction arguments\n * @param eventTargetResolver Function that returns global target information in case this listener\n * should be attached to a global object like window, document or body\n *\n * @codeGenApi\n */\nfunction ɵɵlistener(eventName, listenerFn, useCapture, eventTargetResolver) {\n  const lView = getLView();\n  const tView = getTView();\n  const tNode = getCurrentTNode();\n  listenerInternal(tView, lView, lView[RENDERER], tNode, eventName, listenerFn, eventTargetResolver);\n  return ɵɵlistener;\n}\n/**\n * Registers a synthetic host listener (e.g. `(@foo.start)`) on a component or directive.\n *\n * This instruction is for compatibility purposes and is designed to ensure that a\n * synthetic host listener (e.g. `@HostListener('@foo.start')`) properly gets rendered\n * in the component's renderer. Normally all host listeners are evaluated with the\n * parent component's renderer, but, in the case of animation @triggers, they need\n * to be evaluated with the sub component's renderer (because that's where the\n * animation triggers are defined).\n *\n * Do not use this instruction as a replacement for `listener`. This instruction\n * only exists to ensure compatibility with the ViewEngine's host binding behavior.\n *\n * @param eventName Name of the event\n * @param listenerFn The function to be called when event emits\n * @param useCapture Whether or not to use capture in event listener\n * @param eventTargetResolver Function that returns global target information in case this listener\n * should be attached to a global object like window, document or body\n *\n * @codeGenApi\n */\nfunction ɵɵsyntheticHostListener(eventName, listenerFn) {\n  const tNode = getCurrentTNode();\n  const lView = getLView();\n  const tView = getTView();\n  const currentDef = getCurrentDirectiveDef(tView.data);\n  const renderer = loadComponentRenderer(currentDef, tNode, lView);\n  listenerInternal(tView, lView, renderer, tNode, eventName, listenerFn);\n  return ɵɵsyntheticHostListener;\n}\n/**\n * A utility function that checks if a given element has already an event handler registered for an\n * event with a specified name. The TView.cleanup data structure is used to find out which events\n * are registered for a given element.\n */\nfunction findExistingListener(tView, lView, eventName, tNodeIdx) {\n  const tCleanup = tView.cleanup;\n  if (tCleanup != null) {\n    for (let i = 0; i < tCleanup.length - 1; i += 2) {\n      const cleanupEventName = tCleanup[i];\n      if (cleanupEventName === eventName && tCleanup[i + 1] === tNodeIdx) {\n        // We have found a matching event name on the same node but it might not have been\n        // registered yet, so we must explicitly verify entries in the LView cleanup data\n        // structures.\n        const lCleanup = lView[CLEANUP];\n        const listenerIdxInLCleanup = tCleanup[i + 2];\n        return lCleanup.length > listenerIdxInLCleanup ? lCleanup[listenerIdxInLCleanup] : null;\n      }\n      // TView.cleanup can have a mix of 4-elements entries (for event handler cleanups) or\n      // 2-element entries (for directive and queries destroy hooks). As such we can encounter\n      // blocks of 4 or 2 items in the tView.cleanup and this is why we iterate over 2 elements\n      // first and jump another 2 elements if we detect listeners cleanup (4 elements). Also check\n      // documentation of TView.cleanup for more details of this data structure layout.\n      if (typeof cleanupEventName === 'string') {\n        i += 2;\n      }\n    }\n  }\n  return null;\n}\nfunction listenerInternal(tView, lView, renderer, tNode, eventName, listenerFn, eventTargetResolver) {\n  const isTNodeDirectiveHost = isDirectiveHost(tNode);\n  const firstCreatePass = tView.firstCreatePass;\n  const tCleanup = firstCreatePass && getOrCreateTViewCleanup(tView);\n  const context = lView[CONTEXT];\n  // When the ɵɵlistener instruction was generated and is executed we know that there is either a\n  // native listener or a directive output on this element. As such we we know that we will have to\n  // register a listener and store its cleanup function on LView.\n  const lCleanup = getOrCreateLViewCleanup(lView);\n  ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */);\n  let processOutputs = true;\n  // Adding a native event listener is applicable when:\n  // - The corresponding TNode represents a DOM element.\n  // - The event target has a resolver (usually resulting in a global object,\n  //   such as `window` or `document`).\n  if (tNode.type & 3 /* TNodeType.AnyRNode */ || eventTargetResolver) {\n    const native = getNativeByTNode(tNode, lView);\n    const target = eventTargetResolver ? eventTargetResolver(native) : native;\n    const lCleanupIndex = lCleanup.length;\n    const idxOrTargetGetter = eventTargetResolver ? _lView => eventTargetResolver(unwrapRNode(_lView[tNode.index])) : tNode.index;\n    // In order to match current behavior, native DOM event listeners must be added for all\n    // events (including outputs).\n    // There might be cases where multiple directives on the same element try to register an event\n    // handler function for the same event. In this situation we want to avoid registration of\n    // several native listeners as each registration would be intercepted by NgZone and\n    // trigger change detection. This would mean that a single user action would result in several\n    // change detections being invoked. To avoid this situation we want to have only one call to\n    // native handler registration (for the same element and same type of event).\n    //\n    // In order to have just one native event handler in presence of multiple handler functions,\n    // we just register a first handler function as a native event listener and then chain\n    // (coalesce) other handler functions on top of the first native handler function.\n    let existingListener = null;\n    // Please note that the coalescing described here doesn't happen for events specifying an\n    // alternative target (ex. (document:click)) - this is to keep backward compatibility with the\n    // view engine.\n    // Also, we don't have to search for existing listeners is there are no directives\n    // matching on a given node as we can't register multiple event handlers for the same event in\n    // a template (this would mean having duplicate attributes).\n    if (!eventTargetResolver && isTNodeDirectiveHost) {\n      existingListener = findExistingListener(tView, lView, eventName, tNode.index);\n    }\n    if (existingListener !== null) {\n      // Attach a new listener to coalesced listeners list, maintaining the order in which\n      // listeners are registered. For performance reasons, we keep a reference to the last\n      // listener in that list (in `__ngLastListenerFn__` field), so we can avoid going through\n      // the entire set each time we need to add a new listener.\n      const lastListenerFn = existingListener.__ngLastListenerFn__ || existingListener;\n      lastListenerFn.__ngNextListenerFn__ = listenerFn;\n      existingListener.__ngLastListenerFn__ = listenerFn;\n      processOutputs = false;\n    } else {\n      listenerFn = wrapListener(tNode, lView, context, listenerFn, false /** preventDefault */);\n      const cleanupFn = renderer.listen(target, eventName, listenerFn);\n      ngDevMode && ngDevMode.rendererAddEventListener++;\n      lCleanup.push(listenerFn, cleanupFn);\n      tCleanup && tCleanup.push(eventName, idxOrTargetGetter, lCleanupIndex, lCleanupIndex + 1);\n    }\n  } else {\n    // Even if there is no native listener to add, we still need to wrap the listener so that OnPush\n    // ancestors are marked dirty when an event occurs.\n    listenerFn = wrapListener(tNode, lView, context, listenerFn, false /** preventDefault */);\n  }\n  // subscribe to directive outputs\n  const outputs = tNode.outputs;\n  let props;\n  if (processOutputs && outputs !== null && (props = outputs[eventName])) {\n    const propsLength = props.length;\n    if (propsLength) {\n      for (let i = 0; i < propsLength; i += 2) {\n        const index = props[i];\n        ngDevMode && assertIndexInRange(lView, index);\n        const minifiedName = props[i + 1];\n        const directiveInstance = lView[index];\n        const output = directiveInstance[minifiedName];\n        if (ngDevMode && !isOutputSubscribable(output)) {\n          throw new Error(`@Output ${minifiedName} not initialized in '${directiveInstance.constructor.name}'.`);\n        }\n        const subscription = output.subscribe(listenerFn);\n        const idx = lCleanup.length;\n        lCleanup.push(listenerFn, subscription);\n        tCleanup && tCleanup.push(eventName, tNode.index, idx, -(idx + 1));\n      }\n    }\n  }\n}\nfunction executeListenerWithErrorHandling(lView, context, listenerFn, e) {\n  const prevConsumer = setActiveConsumer$1(null);\n  try {\n    profiler(6 /* ProfilerEvent.OutputStart */, context, listenerFn);\n    // Only explicitly returning false from a listener should preventDefault\n    return listenerFn(e) !== false;\n  } catch (error) {\n    handleError(lView, error);\n    return false;\n  } finally {\n    profiler(7 /* ProfilerEvent.OutputEnd */, context, listenerFn);\n    setActiveConsumer$1(prevConsumer);\n  }\n}\n/**\n * Wraps an event listener with a function that marks ancestors dirty and prevents default behavior,\n * if applicable.\n *\n * @param tNode The TNode associated with this listener\n * @param lView The LView that contains this listener\n * @param listenerFn The listener function to call\n * @param wrapWithPreventDefault Whether or not to prevent default behavior\n * (the procedural renderer does this already, so in those cases, we should skip)\n */\nfunction wrapListener(tNode, lView, context, listenerFn, wrapWithPreventDefault) {\n  // Note: we are performing most of the work in the listener function itself\n  // to optimize listener registration.\n  return function wrapListenerIn_markDirtyAndPreventDefault(e) {\n    // Ivy uses `Function` as a special token that allows us to unwrap the function\n    // so that it can be invoked programmatically by `DebugNode.triggerEventHandler`.\n    if (e === Function) {\n      return listenerFn;\n    }\n    // In order to be backwards compatible with View Engine, events on component host nodes\n    // must also mark the component view itself dirty (i.e. the view that it owns).\n    const startView = tNode.componentOffset > -1 ? getComponentLViewByIndex(tNode.index, lView) : lView;\n    markViewDirty(startView);\n    let result = executeListenerWithErrorHandling(lView, context, listenerFn, e);\n    // A just-invoked listener function might have coalesced listeners so we need to check for\n    // their presence and invoke as needed.\n    let nextListenerFn = wrapListenerIn_markDirtyAndPreventDefault.__ngNextListenerFn__;\n    while (nextListenerFn) {\n      // We should prevent default if any of the listeners explicitly return false\n      result = executeListenerWithErrorHandling(lView, context, nextListenerFn, e) && result;\n      nextListenerFn = nextListenerFn.__ngNextListenerFn__;\n    }\n    if (wrapWithPreventDefault && result === false) {\n      e.preventDefault();\n    }\n    return result;\n  };\n}\n/**\n * Whether the given value represents a subscribable output.\n *\n * For example, an `EventEmitter, a `Subject`, an `Observable` or an\n * `OutputEmitter`.\n */\nfunction isOutputSubscribable(value) {\n  return value != null && typeof value.subscribe === 'function';\n}\n\n/**\n * Retrieves a context at the level specified and saves it as the global, contextViewData.\n * Will get the next level up if level is not specified.\n *\n * This is used to save contexts of parent views so they can be bound in embedded views, or\n * in conjunction with reference() to bind a ref from a parent view.\n *\n * @param level The relative level of the view from which to grab context compared to contextVewData\n * @returns context\n *\n * @codeGenApi\n */\nfunction ɵɵnextContext(level = 1) {\n  return nextContextImpl(level);\n}\n\n/**\n * Checks a given node against matching projection slots and returns the\n * determined slot index. Returns \"null\" if no slot matched the given node.\n *\n * This function takes into account the parsed ngProjectAs selector from the\n * node's attributes. If present, it will check whether the ngProjectAs selector\n * matches any of the projection slot selectors.\n */\nfunction matchingProjectionSlotIndex(tNode, projectionSlots) {\n  let wildcardNgContentIndex = null;\n  const ngProjectAsAttrVal = getProjectAsAttrValue(tNode);\n  for (let i = 0; i < projectionSlots.length; i++) {\n    const slotValue = projectionSlots[i];\n    // The last wildcard projection slot should match all nodes which aren't matching\n    // any selector. This is necessary to be backwards compatible with view engine.\n    if (slotValue === '*') {\n      wildcardNgContentIndex = i;\n      continue;\n    }\n    // If we ran into an `ngProjectAs` attribute, we should match its parsed selector\n    // to the list of selectors, otherwise we fall back to matching against the node.\n    if (ngProjectAsAttrVal === null ? isNodeMatchingSelectorList(tNode, slotValue, /* isProjectionMode */true) : isSelectorInSelectorList(ngProjectAsAttrVal, slotValue)) {\n      return i; // first matching selector \"captures\" a given node\n    }\n  }\n  return wildcardNgContentIndex;\n}\n/**\n * Instruction to distribute projectable nodes among <ng-content> occurrences in a given template.\n * It takes all the selectors from the entire component's template and decides where\n * each projected node belongs (it re-distributes nodes among \"buckets\" where each \"bucket\" is\n * backed by a selector).\n *\n * This function requires CSS selectors to be provided in 2 forms: parsed (by a compiler) and text,\n * un-parsed form.\n *\n * The parsed form is needed for efficient matching of a node against a given CSS selector.\n * The un-parsed, textual form is needed for support of the ngProjectAs attribute.\n *\n * Having a CSS selector in 2 different formats is not ideal, but alternatives have even more\n * drawbacks:\n * - having only a textual form would require runtime parsing of CSS selectors;\n * - we can't have only a parsed as we can't re-construct textual form from it (as entered by a\n * template author).\n *\n * @param projectionSlots? A collection of projection slots. A projection slot can be based\n *        on a parsed CSS selectors or set to the wildcard selector (\"*\") in order to match\n *        all nodes which do not match any selector. If not specified, a single wildcard\n *        selector projection slot will be defined.\n *\n * @codeGenApi\n */\nfunction ɵɵprojectionDef(projectionSlots) {\n  const componentNode = getLView()[DECLARATION_COMPONENT_VIEW][T_HOST];\n  if (!componentNode.projection) {\n    // If no explicit projection slots are defined, fall back to a single\n    // projection slot with the wildcard selector.\n    const numProjectionSlots = projectionSlots ? projectionSlots.length : 1;\n    const projectionHeads = componentNode.projection = newArray(numProjectionSlots, null);\n    const tails = projectionHeads.slice();\n    let componentChild = componentNode.child;\n    while (componentChild !== null) {\n      const slotIndex = projectionSlots ? matchingProjectionSlotIndex(componentChild, projectionSlots) : 0;\n      if (slotIndex !== null) {\n        if (tails[slotIndex]) {\n          tails[slotIndex].projectionNext = componentChild;\n        } else {\n          projectionHeads[slotIndex] = componentChild;\n        }\n        tails[slotIndex] = componentChild;\n      }\n      componentChild = componentChild.next;\n    }\n  }\n}\n/**\n * Inserts previously re-distributed projected nodes. This instruction must be preceded by a call\n * to the projectionDef instruction.\n *\n * @param nodeIndex\n * @param selectorIndex:\n *        - 0 when the selector is `*` (or unspecified as this is the default value),\n *        - 1 based index of the selector from the {@link projectionDef}\n *\n * @codeGenApi\n */\nfunction ɵɵprojection(nodeIndex, selectorIndex = 0, attrs) {\n  const lView = getLView();\n  const tView = getTView();\n  const tProjectionNode = getOrCreateTNode(tView, HEADER_OFFSET + nodeIndex, 16 /* TNodeType.Projection */, null, attrs || null);\n  // We can't use viewData[HOST_NODE] because projection nodes can be nested in embedded views.\n  if (tProjectionNode.projection === null) tProjectionNode.projection = selectorIndex;\n  // `<ng-content>` has no content\n  setCurrentTNodeAsNotParent();\n  const hydrationInfo = lView[HYDRATION];\n  const isNodeCreationMode = !hydrationInfo || isInSkipHydrationBlock$1();\n  if (isNodeCreationMode && (tProjectionNode.flags & 32 /* TNodeFlags.isDetached */) !== 32 /* TNodeFlags.isDetached */) {\n    // re-distribution of projectable nodes is stored on a component's view level\n    applyProjection(tView, lView, tProjectionNode);\n  }\n}\n\n/**\n *\n * Update an interpolated property on an element with a lone bound value\n *\n * Used when the value passed to a property has 1 interpolated value in it, an no additional text\n * surrounds that interpolated value:\n *\n * ```html\n * <div title=\"{{v0}}\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate('title', v0);\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate(propName, v0, sanitizer) {\n  ɵɵpropertyInterpolate1(propName, '', v0, '', sanitizer);\n  return ɵɵpropertyInterpolate;\n}\n/**\n *\n * Update an interpolated property on an element with single bound value surrounded by text.\n *\n * Used when the value passed to a property has 1 interpolated value in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate1('title', 'prefix', v0, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate1(propName, prefix, v0, suffix, sanitizer) {\n  const lView = getLView();\n  const interpolatedValue = interpolation1(lView, prefix, v0, suffix);\n  if (interpolatedValue !== NO_CHANGE) {\n    const tView = getTView();\n    const tNode = getSelectedTNode();\n    elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n    ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 1, prefix, suffix);\n  }\n  return ɵɵpropertyInterpolate1;\n}\n/**\n *\n * Update an interpolated property on an element with 2 bound values surrounded by text.\n *\n * Used when the value passed to a property has 2 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate2('title', 'prefix', v0, '-', v1, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate2(propName, prefix, v0, i0, v1, suffix, sanitizer) {\n  const lView = getLView();\n  const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);\n  if (interpolatedValue !== NO_CHANGE) {\n    const tView = getTView();\n    const tNode = getSelectedTNode();\n    elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n    ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 2, prefix, i0, suffix);\n  }\n  return ɵɵpropertyInterpolate2;\n}\n/**\n *\n * Update an interpolated property on an element with 3 bound values surrounded by text.\n *\n * Used when the value passed to a property has 3 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}-{{v2}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate3(\n * 'title', 'prefix', v0, '-', v1, '-', v2, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate3(propName, prefix, v0, i0, v1, i1, v2, suffix, sanitizer) {\n  const lView = getLView();\n  const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);\n  if (interpolatedValue !== NO_CHANGE) {\n    const tView = getTView();\n    const tNode = getSelectedTNode();\n    elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n    ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 3, prefix, i0, i1, suffix);\n  }\n  return ɵɵpropertyInterpolate3;\n}\n/**\n *\n * Update an interpolated property on an element with 4 bound values surrounded by text.\n *\n * Used when the value passed to a property has 4 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate4(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate4(propName, prefix, v0, i0, v1, i1, v2, i2, v3, suffix, sanitizer) {\n  const lView = getLView();\n  const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);\n  if (interpolatedValue !== NO_CHANGE) {\n    const tView = getTView();\n    const tNode = getSelectedTNode();\n    elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n    ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 4, prefix, i0, i1, i2, suffix);\n  }\n  return ɵɵpropertyInterpolate4;\n}\n/**\n *\n * Update an interpolated property on an element with 5 bound values surrounded by text.\n *\n * Used when the value passed to a property has 5 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate5(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate5(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix, sanitizer) {\n  const lView = getLView();\n  const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);\n  if (interpolatedValue !== NO_CHANGE) {\n    const tView = getTView();\n    const tNode = getSelectedTNode();\n    elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n    ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 5, prefix, i0, i1, i2, i3, suffix);\n  }\n  return ɵɵpropertyInterpolate5;\n}\n/**\n *\n * Update an interpolated property on an element with 6 bound values surrounded by text.\n *\n * Used when the value passed to a property has 6 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate6(\n *    'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate6(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix, sanitizer) {\n  const lView = getLView();\n  const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);\n  if (interpolatedValue !== NO_CHANGE) {\n    const tView = getTView();\n    const tNode = getSelectedTNode();\n    elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n    ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 6, prefix, i0, i1, i2, i3, i4, suffix);\n  }\n  return ɵɵpropertyInterpolate6;\n}\n/**\n *\n * Update an interpolated property on an element with 7 bound values surrounded by text.\n *\n * Used when the value passed to a property has 7 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate7(\n *    'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate7(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix, sanitizer) {\n  const lView = getLView();\n  const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);\n  if (interpolatedValue !== NO_CHANGE) {\n    const tView = getTView();\n    const tNode = getSelectedTNode();\n    elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n    ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 7, prefix, i0, i1, i2, i3, i4, i5, suffix);\n  }\n  return ɵɵpropertyInterpolate7;\n}\n/**\n *\n * Update an interpolated property on an element with 8 bound values surrounded by text.\n *\n * Used when the value passed to a property has 8 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate8(\n *  'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param i6 Static value used for concatenation only.\n * @param v7 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate8(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix, sanitizer) {\n  const lView = getLView();\n  const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);\n  if (interpolatedValue !== NO_CHANGE) {\n    const tView = getTView();\n    const tNode = getSelectedTNode();\n    elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n    ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 8, prefix, i0, i1, i2, i3, i4, i5, i6, suffix);\n  }\n  return ɵɵpropertyInterpolate8;\n}\n/**\n * Update an interpolated property on an element with 9 or more bound values surrounded by text.\n *\n * Used when the number of interpolated values exceeds 8.\n *\n * ```html\n * <div\n *  title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolateV(\n *  'title', ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,\n *  'suffix']);\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update.\n * @param values The collection of values and the strings in between those values, beginning with a\n * string prefix and ending with a string suffix.\n * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolateV(propName, values, sanitizer) {\n  const lView = getLView();\n  const interpolatedValue = interpolationV(lView, values);\n  if (interpolatedValue !== NO_CHANGE) {\n    const tView = getTView();\n    const tNode = getSelectedTNode();\n    elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n    if (ngDevMode) {\n      const interpolationInBetween = [values[0]]; // prefix\n      for (let i = 2; i < values.length; i += 2) {\n        interpolationInBetween.push(values[i]);\n      }\n      storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - interpolationInBetween.length + 1, ...interpolationInBetween);\n    }\n  }\n  return ɵɵpropertyInterpolateV;\n}\n\n/**\n * Registers a QueryList, associated with a content query, for later refresh (part of a view\n * refresh).\n *\n * @param directiveIndex Current directive index\n * @param predicate The type for which the query will search\n * @param flags Flags associated with the query\n * @param read What to save in the query\n * @returns QueryList<T>\n *\n * @codeGenApi\n */\nfunction ɵɵcontentQuery(directiveIndex, predicate, flags, read) {\n  createContentQuery(directiveIndex, predicate, flags, read);\n}\n/**\n * Creates a new view query by initializing internal data structures.\n *\n * @param predicate The type for which the query will search\n * @param flags Flags associated with the query\n * @param read What to save in the query\n *\n * @codeGenApi\n */\nfunction ɵɵviewQuery(predicate, flags, read) {\n  createViewQuery(predicate, flags, read);\n}\n/**\n * Refreshes a query by combining matches from all active views and removing matches from deleted\n * views.\n *\n * @returns `true` if a query got dirty during change detection or if this is a static query\n * resolving in creation mode, `false` otherwise.\n *\n * @codeGenApi\n */\nfunction ɵɵqueryRefresh(queryList) {\n  const lView = getLView();\n  const tView = getTView();\n  const queryIndex = getCurrentQueryIndex();\n  setCurrentQueryIndex(queryIndex + 1);\n  const tQuery = getTQuery(tView, queryIndex);\n  if (queryList.dirty && isCreationMode(lView) === ((tQuery.metadata.flags & 2 /* QueryFlags.isStatic */) === 2 /* QueryFlags.isStatic */)) {\n    if (tQuery.matches === null) {\n      queryList.reset([]);\n    } else {\n      const result = getQueryResults(lView, queryIndex);\n      queryList.reset(result, unwrapElementRef);\n      queryList.notifyOnChanges();\n    }\n    return true;\n  }\n  return false;\n}\n/**\n * Loads a QueryList corresponding to the current view or content query.\n *\n * @codeGenApi\n */\nfunction ɵɵloadQuery() {\n  return loadQueryInternal(getLView(), getCurrentQueryIndex());\n}\n\n/**\n * Creates a new content query and binds it to a signal created by an authoring function.\n *\n * @param directiveIndex Current directive index\n * @param target The target signal to which the query should be bound\n * @param predicate The type for which the query will search\n * @param flags Flags associated with the query\n * @param read What to save in the query\n *\n * @codeGenApi\n */\nfunction ɵɵcontentQuerySignal(directiveIndex, target, predicate, flags, read) {\n  bindQueryToSignal(target, createContentQuery(directiveIndex, predicate, flags, read));\n}\n/**\n * Creates a new view query by initializing internal data structures and binding a new query to the\n * target signal.\n *\n * @param target The target signal to assign the query results to.\n * @param predicate The type or label that should match a given query\n * @param flags Flags associated with the query\n * @param read What to save in the query\n *\n * @codeGenApi\n */\nfunction ɵɵviewQuerySignal(target, predicate, flags, read) {\n  bindQueryToSignal(target, createViewQuery(predicate, flags, read));\n}\n/**\n * Advances the current query index by a specified offset.\n *\n * Adjusting the current query index is necessary in cases where a given directive has a mix of\n * zone-based and signal-based queries. The signal-based queries don't require tracking of the\n * current index (those are refreshed on demand and not during change detection) so this instruction\n * is only necessary for backward-compatibility.\n *\n * @param index offset to apply to the current query index (defaults to 1)\n *\n * @codeGenApi\n */\nfunction ɵɵqueryAdvance(indexOffset = 1) {\n  setCurrentQueryIndex(getCurrentQueryIndex() + indexOffset);\n}\n\n/** Store a value in the `data` at a given `index`. */\nfunction store(tView, lView, index, value) {\n  // We don't store any static data for local variables, so the first time\n  // we see the template, we should store as null to avoid a sparse array\n  if (index >= tView.data.length) {\n    tView.data[index] = null;\n    tView.blueprint[index] = null;\n  }\n  lView[index] = value;\n}\n/**\n * Retrieves a local reference from the current contextViewData.\n *\n * If the reference to retrieve is in a parent view, this instruction is used in conjunction\n * with a nextContext() call, which walks up the tree and updates the contextViewData instance.\n *\n * @param index The index of the local ref in contextViewData.\n *\n * @codeGenApi\n */\nfunction ɵɵreference(index) {\n  const contextLView = getContextLView();\n  return load(contextLView, HEADER_OFFSET + index);\n}\n\n/**\n *\n * Update an interpolated style on an element with single bound value surrounded by text.\n *\n * Used when the value passed to a property has 1 interpolated value in it:\n *\n * ```html\n * <div style=\"key: {{v0}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate1('key: ', v0, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate1(prefix, v0, suffix) {\n  const lView = getLView();\n  const interpolatedValue = interpolation1(lView, prefix, v0, suffix);\n  ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 2 bound values surrounded by text.\n *\n * Used when the value passed to a property has 2 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key1: {{v1}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate2('key: ', v0, '; key1: ', v1, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate2(prefix, v0, i0, v1, suffix) {\n  const lView = getLView();\n  const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);\n  ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 3 bound values surrounded by text.\n *\n * Used when the value passed to a property has 3 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key2: {{v1}}; key2: {{v2}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate3(\n *     'key: ', v0, '; key1: ', v1, '; key2: ', v2, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate3(prefix, v0, i0, v1, i1, v2, suffix) {\n  const lView = getLView();\n  const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);\n  ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 4 bound values surrounded by text.\n *\n * Used when the value passed to a property has 4 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate4(\n *     'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate4(prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {\n  const lView = getLView();\n  const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);\n  ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 5 bound values surrounded by text.\n *\n * Used when the value passed to a property has 5 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate5(\n *     'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate5(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {\n  const lView = getLView();\n  const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);\n  ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 6 bound values surrounded by text.\n *\n * Used when the value passed to a property has 6 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}};\n *             key5: {{v5}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate6(\n *    'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,\n *    'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate6(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {\n  const lView = getLView();\n  const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);\n  ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 7 bound values surrounded by text.\n *\n * Used when the value passed to a property has 7 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}; key5: {{v5}};\n *             key6: {{v6}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate7(\n *    'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,\n *    '; key6: ', v6, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate7(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {\n  const lView = getLView();\n  const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);\n  ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 8 bound values surrounded by text.\n *\n * Used when the value passed to a property has 8 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}; key5: {{v5}};\n *             key6: {{v6}}; key7: {{v7}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate8(\n *    'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,\n *    '; key6: ', v6, '; key7: ', v7, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param i6 Static value used for concatenation only.\n * @param v7 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate8(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {\n  const lView = getLView();\n  const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);\n  ɵɵstyleMap(interpolatedValue);\n}\n/**\n * Update an interpolated style on an element with 9 or more bound values surrounded by text.\n *\n * Used when the number of interpolated values exceeds 8.\n *\n * ```html\n * <div\n *  class=\"key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}; key5: {{v5}};\n *         key6: {{v6}}; key7: {{v7}}; key8: {{v8}}; key9: {{v9}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolateV(\n *    ['key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,\n *     '; key6: ', v6, '; key7: ', v7, '; key8: ', v8, '; key9: ', v9, 'suffix']);\n * ```\n *.\n * @param values The collection of values and the strings in-between those values, beginning with\n * a string prefix and ending with a string suffix.\n * (e.g. `['prefix', value0, '; key2: ', value1, '; key2: ', value2, ..., value99, 'suffix']`)\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolateV(values) {\n  const lView = getLView();\n  const interpolatedValue = interpolationV(lView, values);\n  ɵɵstyleMap(interpolatedValue);\n}\n\n/**\n *\n * Update an interpolated style property on an element with single bound value surrounded by text.\n *\n * Used when the value passed to a property has 1 interpolated value in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate1(0, 'prefix', v0, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n *        index of the style in the style bindings array that was passed into\n *        `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate1(prop, prefix, v0, suffix, valueSuffix) {\n  const lView = getLView();\n  const interpolatedValue = interpolation1(lView, prefix, v0, suffix);\n  checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n  return ɵɵstylePropInterpolate1;\n}\n/**\n *\n * Update an interpolated style property on an element with 2 bound values surrounded by text.\n *\n * Used when the value passed to a property has 2 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate2(0, 'prefix', v0, '-', v1, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n *        index of the style in the style bindings array that was passed into\n *        `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate2(prop, prefix, v0, i0, v1, suffix, valueSuffix) {\n  const lView = getLView();\n  const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);\n  checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n  return ɵɵstylePropInterpolate2;\n}\n/**\n *\n * Update an interpolated style property on an element with 3 bound values surrounded by text.\n *\n * Used when the value passed to a property has 3 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}-{{v2}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate3(0, 'prefix', v0, '-', v1, '-', v2, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n *        index of the style in the style bindings array that was passed into\n *        `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate3(prop, prefix, v0, i0, v1, i1, v2, suffix, valueSuffix) {\n  const lView = getLView();\n  const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);\n  checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n  return ɵɵstylePropInterpolate3;\n}\n/**\n *\n * Update an interpolated style property on an element with 4 bound values surrounded by text.\n *\n * Used when the value passed to a property has 4 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate4(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n *        index of the style in the style bindings array that was passed into\n *        `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate4(prop, prefix, v0, i0, v1, i1, v2, i2, v3, suffix, valueSuffix) {\n  const lView = getLView();\n  const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);\n  checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n  return ɵɵstylePropInterpolate4;\n}\n/**\n *\n * Update an interpolated style property on an element with 5 bound values surrounded by text.\n *\n * Used when the value passed to a property has 5 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate5(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n *        index of the style in the style bindings array that was passed into\n *        `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate5(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix, valueSuffix) {\n  const lView = getLView();\n  const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);\n  checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n  return ɵɵstylePropInterpolate5;\n}\n/**\n *\n * Update an interpolated style property on an element with 6 bound values surrounded by text.\n *\n * Used when the value passed to a property has 6 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate6(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n *        index of the style in the style bindings array that was passed into\n *        `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate6(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix, valueSuffix) {\n  const lView = getLView();\n  const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);\n  checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n  return ɵɵstylePropInterpolate6;\n}\n/**\n *\n * Update an interpolated style property on an element with 7 bound values surrounded by text.\n *\n * Used when the value passed to a property has 7 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate7(\n *    0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n *        index of the style in the style bindings array that was passed into\n *        `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate7(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix, valueSuffix) {\n  const lView = getLView();\n  const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);\n  checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n  return ɵɵstylePropInterpolate7;\n}\n/**\n *\n * Update an interpolated style property on an element with 8 bound values surrounded by text.\n *\n * Used when the value passed to a property has 8 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate8(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6,\n * '-', v7, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n *        index of the style in the style bindings array that was passed into\n *        `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param i6 Static value used for concatenation only.\n * @param v7 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate8(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix, valueSuffix) {\n  const lView = getLView();\n  const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);\n  checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n  return ɵɵstylePropInterpolate8;\n}\n/**\n * Update an interpolated style property on an element with 9 or more bound values surrounded by\n * text.\n *\n * Used when the number of interpolated values exceeds 8.\n *\n * ```html\n * <div\n *  style.color=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix\">\n * </div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolateV(\n *  0, ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,\n *  'suffix']);\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n *        index of the style in the style bindings array that was passed into\n *        `styling`..\n * @param values The collection of values and the strings in-between those values, beginning with\n * a string prefix and ending with a string suffix.\n * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolateV(prop, values, valueSuffix) {\n  const lView = getLView();\n  const interpolatedValue = interpolationV(lView, values);\n  checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n  return ɵɵstylePropInterpolateV;\n}\n\n/**\n * Create static text node\n *\n * @param index Index of the node in the data array\n * @param value Static string value to write.\n *\n * @codeGenApi\n */\nfunction ɵɵtext(index, value = '') {\n  const lView = getLView();\n  const tView = getTView();\n  const adjustedIndex = index + HEADER_OFFSET;\n  ngDevMode && assertEqual(getBindingIndex(), tView.bindingStartIndex, 'text nodes should be created before any bindings');\n  ngDevMode && assertIndexInRange(lView, adjustedIndex);\n  const tNode = tView.firstCreatePass ? getOrCreateTNode(tView, adjustedIndex, 1 /* TNodeType.Text */, value, null) : tView.data[adjustedIndex];\n  const textNative = _locateOrCreateTextNode(tView, lView, tNode, value, index);\n  lView[adjustedIndex] = textNative;\n  if (wasLastNodeCreated()) {\n    appendChild(tView, lView, textNative, tNode);\n  }\n  // Text nodes are self closing.\n  setCurrentTNode(tNode, false);\n}\nlet _locateOrCreateTextNode = (tView, lView, tNode, value, index) => {\n  lastNodeWasCreated(true);\n  return createTextNode(lView[RENDERER], value);\n};\n/**\n * Enables hydration code path (to lookup existing elements in DOM)\n * in addition to the regular creation mode of text nodes.\n */\nfunction locateOrCreateTextNodeImpl(tView, lView, tNode, value, index) {\n  const hydrationInfo = lView[HYDRATION];\n  const isNodeCreationMode = !hydrationInfo || isInSkipHydrationBlock$1() || isDetachedByI18n(tNode) || isDisconnectedNode$1(hydrationInfo, index);\n  lastNodeWasCreated(isNodeCreationMode);\n  // Regular creation mode.\n  if (isNodeCreationMode) {\n    return createTextNode(lView[RENDERER], value);\n  }\n  // Hydration mode, looking up an existing element in DOM.\n  const textNative = locateNextRNode(hydrationInfo, tView, lView, tNode);\n  ngDevMode && validateMatchingNode(textNative, Node.TEXT_NODE, null, lView, tNode);\n  ngDevMode && markRNodeAsClaimedByHydration(textNative);\n  return textNative;\n}\nfunction enableLocateOrCreateTextNodeImpl() {\n  _locateOrCreateTextNode = locateOrCreateTextNodeImpl;\n}\n\n/**\n *\n * Update text content with a lone bound value\n *\n * Used when a text node has 1 interpolated value in it, an no additional text\n * surrounds that interpolated value:\n *\n * ```html\n * <div>{{v0}}</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate(v0);\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate(v0) {\n  ɵɵtextInterpolate1('', v0, '');\n  return ɵɵtextInterpolate;\n}\n/**\n *\n * Update text content with single bound value surrounded by other text.\n *\n * Used when a text node has 1 interpolated value in it:\n *\n * ```html\n * <div>prefix{{v0}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate1('prefix', v0, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate1(prefix, v0, suffix) {\n  const lView = getLView();\n  const interpolated = interpolation1(lView, prefix, v0, suffix);\n  if (interpolated !== NO_CHANGE) {\n    textBindingInternal(lView, getSelectedIndex(), interpolated);\n  }\n  return ɵɵtextInterpolate1;\n}\n/**\n *\n * Update text content with 2 bound values surrounded by other text.\n *\n * Used when a text node has 2 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate2('prefix', v0, '-', v1, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate2(prefix, v0, i0, v1, suffix) {\n  const lView = getLView();\n  const interpolated = interpolation2(lView, prefix, v0, i0, v1, suffix);\n  if (interpolated !== NO_CHANGE) {\n    textBindingInternal(lView, getSelectedIndex(), interpolated);\n  }\n  return ɵɵtextInterpolate2;\n}\n/**\n *\n * Update text content with 3 bound values surrounded by other text.\n *\n * Used when a text node has 3 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate3(\n * 'prefix', v0, '-', v1, '-', v2, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate3(prefix, v0, i0, v1, i1, v2, suffix) {\n  const lView = getLView();\n  const interpolated = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);\n  if (interpolated !== NO_CHANGE) {\n    textBindingInternal(lView, getSelectedIndex(), interpolated);\n  }\n  return ɵɵtextInterpolate3;\n}\n/**\n *\n * Update text content with 4 bound values surrounded by other text.\n *\n * Used when a text node has 4 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate4(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see ɵɵtextInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate4(prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {\n  const lView = getLView();\n  const interpolated = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);\n  if (interpolated !== NO_CHANGE) {\n    textBindingInternal(lView, getSelectedIndex(), interpolated);\n  }\n  return ɵɵtextInterpolate4;\n}\n/**\n *\n * Update text content with 5 bound values surrounded by other text.\n *\n * Used when a text node has 5 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate5(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate5(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {\n  const lView = getLView();\n  const interpolated = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);\n  if (interpolated !== NO_CHANGE) {\n    textBindingInternal(lView, getSelectedIndex(), interpolated);\n  }\n  return ɵɵtextInterpolate5;\n}\n/**\n *\n * Update text content with 6 bound values surrounded by other text.\n *\n * Used when a text node has 6 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate6(\n *    'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');\n * ```\n *\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change. @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate6(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {\n  const lView = getLView();\n  const interpolated = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);\n  if (interpolated !== NO_CHANGE) {\n    textBindingInternal(lView, getSelectedIndex(), interpolated);\n  }\n  return ɵɵtextInterpolate6;\n}\n/**\n *\n * Update text content with 7 bound values surrounded by other text.\n *\n * Used when a text node has 7 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate7(\n *    'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate7(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {\n  const lView = getLView();\n  const interpolated = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);\n  if (interpolated !== NO_CHANGE) {\n    textBindingInternal(lView, getSelectedIndex(), interpolated);\n  }\n  return ɵɵtextInterpolate7;\n}\n/**\n *\n * Update text content with 8 bound values surrounded by other text.\n *\n * Used when a text node has 8 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate8(\n *  'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate8(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {\n  const lView = getLView();\n  const interpolated = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);\n  if (interpolated !== NO_CHANGE) {\n    textBindingInternal(lView, getSelectedIndex(), interpolated);\n  }\n  return ɵɵtextInterpolate8;\n}\n/**\n * Update text content with 9 or more bound values other surrounded by text.\n *\n * Used when the number of interpolated values exceeds 8.\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolateV(\n *  ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,\n *  'suffix']);\n * ```\n *.\n * @param values The collection of values and the strings in between those values, beginning with\n * a string prefix and ending with a string suffix.\n * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)\n *\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵtextInterpolateV(values) {\n  const lView = getLView();\n  const interpolated = interpolationV(lView, values);\n  if (interpolated !== NO_CHANGE) {\n    textBindingInternal(lView, getSelectedIndex(), interpolated);\n  }\n  return ɵɵtextInterpolateV;\n}\n\n/*!\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Update a two-way bound property on a selected element.\n *\n * Operates on the element selected by index via the {@link select} instruction.\n *\n * @param propName Name of property.\n * @param value New value to write.\n * @param sanitizer An optional function used to sanitize the value.\n * @returns This function returns itself so that it may be chained\n * (e.g. `twoWayProperty('name', ctx.name)('title', ctx.title)`)\n *\n * @codeGenApi\n */\nfunction ɵɵtwoWayProperty(propName, value, sanitizer) {\n  // TODO(crisbeto): perf impact of re-evaluating this on each change detection?\n  if (isWritableSignal(value)) {\n    value = value();\n  }\n  const lView = getLView();\n  const bindingIndex = nextBindingIndex();\n  if (bindingUpdated(lView, bindingIndex, value)) {\n    const tView = getTView();\n    const tNode = getSelectedTNode();\n    elementPropertyInternal(tView, tNode, lView, propName, value, lView[RENDERER], sanitizer, false);\n    ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, bindingIndex);\n  }\n  return ɵɵtwoWayProperty;\n}\n/**\n * Function used inside two-way listeners to conditionally set the value of the bound expression.\n *\n * @param target Field on which to set the value.\n * @param value Value to be set to the field.\n *\n * @codeGenApi\n */\nfunction ɵɵtwoWayBindingSet(target, value) {\n  const canWrite = isWritableSignal(target);\n  canWrite && target.set(value);\n  return canWrite;\n}\n/**\n * Adds an event listener that updates a two-way binding to the current node.\n *\n * @param eventName Name of the event.\n * @param listenerFn The function to be called when event emits.\n *\n * @codeGenApi\n */\nfunction ɵɵtwoWayListener(eventName, listenerFn) {\n  const lView = getLView();\n  const tView = getTView();\n  const tNode = getCurrentTNode();\n  listenerInternal(tView, lView, lView[RENDERER], tNode, eventName, listenerFn);\n  return ɵɵtwoWayListener;\n}\n\n/*\n * This file re-exports all symbols contained in this directory.\n *\n * Why is this file not `index.ts`?\n *\n * There seems to be an inconsistent path resolution of an `index.ts` file\n * when only the parent directory is referenced. This could be due to the\n * node module resolution configuration differing from rollup and/or typescript.\n *\n * With commit\n * https://github.com/angular/angular/commit/d5e3f2c64bd13ce83e7c70788b7fc514ca4a9918\n * the `instructions.ts` file was moved to `instructions/instructions.ts` and an\n * `index.ts` file was used to re-export everything. Having had file names that were\n * importing from `instructions' directly (not the from the sub file or the `index.ts`\n * file) caused strange CI issues. `index.ts` had to be renamed to `all.ts` for this\n * to work.\n *\n * Jira Issue = FW-1184\n */\n\n/**\n * Resolves the providers which are defined in the DirectiveDef.\n *\n * When inserting the tokens and the factories in their respective arrays, we can assume that\n * this method is called first for the component (if any), and then for other directives on the same\n * node.\n * As a consequence,the providers are always processed in that order:\n * 1) The view providers of the component\n * 2) The providers of the component\n * 3) The providers of the other directives\n * This matches the structure of the injectables arrays of a view (for each node).\n * So the tokens and the factories can be pushed at the end of the arrays, except\n * in one case for multi providers.\n *\n * @param def the directive definition\n * @param providers: Array of `providers`.\n * @param viewProviders: Array of `viewProviders`.\n */\nfunction providersResolver(def, providers, viewProviders) {\n  const tView = getTView();\n  if (tView.firstCreatePass) {\n    const isComponent = isComponentDef(def);\n    // The list of view providers is processed first, and the flags are updated\n    resolveProvider(viewProviders, tView.data, tView.blueprint, isComponent, true);\n    // Then, the list of providers is processed, and the flags are updated\n    resolveProvider(providers, tView.data, tView.blueprint, isComponent, false);\n  }\n}\n/**\n * Resolves a provider and publishes it to the DI system.\n */\nfunction resolveProvider(provider, tInjectables, lInjectablesBlueprint, isComponent, isViewProvider) {\n  provider = resolveForwardRef(provider);\n  if (Array.isArray(provider)) {\n    // Recursively call `resolveProvider`\n    // Recursion is OK in this case because this code will not be in hot-path once we implement\n    // cloning of the initial state.\n    for (let i = 0; i < provider.length; i++) {\n      resolveProvider(provider[i], tInjectables, lInjectablesBlueprint, isComponent, isViewProvider);\n    }\n  } else {\n    const tView = getTView();\n    const lView = getLView();\n    const tNode = getCurrentTNode();\n    let token = isTypeProvider(provider) ? provider : resolveForwardRef(provider.provide);\n    const providerFactory = providerToFactory(provider);\n    if (ngDevMode) {\n      const injector = new NodeInjector(tNode, lView);\n      runInInjectorProfilerContext(injector, token, () => {\n        emitProviderConfiguredEvent(provider, isViewProvider);\n      });\n    }\n    const beginIndex = tNode.providerIndexes & 1048575 /* TNodeProviderIndexes.ProvidersStartIndexMask */;\n    const endIndex = tNode.directiveStart;\n    const cptViewProvidersCount = tNode.providerIndexes >> 20 /* TNodeProviderIndexes.CptViewProvidersCountShift */;\n    if (isTypeProvider(provider) || !provider.multi) {\n      // Single provider case: the factory is created and pushed immediately\n      const factory = new NodeInjectorFactory(providerFactory, isViewProvider, ɵɵdirectiveInject);\n      const existingFactoryIndex = indexOf(token, tInjectables, isViewProvider ? beginIndex : beginIndex + cptViewProvidersCount, endIndex);\n      if (existingFactoryIndex === -1) {\n        diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, lView), tView, token);\n        registerDestroyHooksIfSupported(tView, provider, tInjectables.length);\n        tInjectables.push(token);\n        tNode.directiveStart++;\n        tNode.directiveEnd++;\n        if (isViewProvider) {\n          tNode.providerIndexes += 1048576 /* TNodeProviderIndexes.CptViewProvidersCountShifter */;\n        }\n        lInjectablesBlueprint.push(factory);\n        lView.push(factory);\n      } else {\n        lInjectablesBlueprint[existingFactoryIndex] = factory;\n        lView[existingFactoryIndex] = factory;\n      }\n    } else {\n      // Multi provider case:\n      // We create a multi factory which is going to aggregate all the values.\n      // Since the output of such a factory depends on content or view injection,\n      // we create two of them, which are linked together.\n      //\n      // The first one (for view providers) is always in the first block of the injectables array,\n      // and the second one (for providers) is always in the second block.\n      // This is important because view providers have higher priority. When a multi token\n      // is being looked up, the view providers should be found first.\n      // Note that it is not possible to have a multi factory in the third block (directive block).\n      //\n      // The algorithm to process multi providers is as follows:\n      // 1) If the multi provider comes from the `viewProviders` of the component:\n      //   a) If the special view providers factory doesn't exist, it is created and pushed.\n      //   b) Else, the multi provider is added to the existing multi factory.\n      // 2) If the multi provider comes from the `providers` of the component or of another\n      // directive:\n      //   a) If the multi factory doesn't exist, it is created and provider pushed into it.\n      //      It is also linked to the multi factory for view providers, if it exists.\n      //   b) Else, the multi provider is added to the existing multi factory.\n      const existingProvidersFactoryIndex = indexOf(token, tInjectables, beginIndex + cptViewProvidersCount, endIndex);\n      const existingViewProvidersFactoryIndex = indexOf(token, tInjectables, beginIndex, beginIndex + cptViewProvidersCount);\n      const doesProvidersFactoryExist = existingProvidersFactoryIndex >= 0 && lInjectablesBlueprint[existingProvidersFactoryIndex];\n      const doesViewProvidersFactoryExist = existingViewProvidersFactoryIndex >= 0 && lInjectablesBlueprint[existingViewProvidersFactoryIndex];\n      if (isViewProvider && !doesViewProvidersFactoryExist || !isViewProvider && !doesProvidersFactoryExist) {\n        // Cases 1.a and 2.a\n        diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, lView), tView, token);\n        const factory = multiFactory(isViewProvider ? multiViewProvidersFactoryResolver : multiProvidersFactoryResolver, lInjectablesBlueprint.length, isViewProvider, isComponent, providerFactory);\n        if (!isViewProvider && doesViewProvidersFactoryExist) {\n          lInjectablesBlueprint[existingViewProvidersFactoryIndex].providerFactory = factory;\n        }\n        registerDestroyHooksIfSupported(tView, provider, tInjectables.length, 0);\n        tInjectables.push(token);\n        tNode.directiveStart++;\n        tNode.directiveEnd++;\n        if (isViewProvider) {\n          tNode.providerIndexes += 1048576 /* TNodeProviderIndexes.CptViewProvidersCountShifter */;\n        }\n        lInjectablesBlueprint.push(factory);\n        lView.push(factory);\n      } else {\n        // Cases 1.b and 2.b\n        const indexInFactory = multiFactoryAdd(lInjectablesBlueprint[isViewProvider ? existingViewProvidersFactoryIndex : existingProvidersFactoryIndex], providerFactory, !isViewProvider && isComponent);\n        registerDestroyHooksIfSupported(tView, provider, existingProvidersFactoryIndex > -1 ? existingProvidersFactoryIndex : existingViewProvidersFactoryIndex, indexInFactory);\n      }\n      if (!isViewProvider && isComponent && doesViewProvidersFactoryExist) {\n        lInjectablesBlueprint[existingViewProvidersFactoryIndex].componentProviders++;\n      }\n    }\n  }\n}\n/**\n * Registers the `ngOnDestroy` hook of a provider, if the provider supports destroy hooks.\n * @param tView `TView` in which to register the hook.\n * @param provider Provider whose hook should be registered.\n * @param contextIndex Index under which to find the context for the hook when it's being invoked.\n * @param indexInFactory Only required for `multi` providers. Index of the provider in the multi\n * provider factory.\n */\nfunction registerDestroyHooksIfSupported(tView, provider, contextIndex, indexInFactory) {\n  const providerIsTypeProvider = isTypeProvider(provider);\n  const providerIsClassProvider = isClassProvider(provider);\n  if (providerIsTypeProvider || providerIsClassProvider) {\n    // Resolve forward references as `useClass` can hold a forward reference.\n    const classToken = providerIsClassProvider ? resolveForwardRef(provider.useClass) : provider;\n    const prototype = classToken.prototype;\n    const ngOnDestroy = prototype.ngOnDestroy;\n    if (ngOnDestroy) {\n      const hooks = tView.destroyHooks || (tView.destroyHooks = []);\n      if (!providerIsTypeProvider && provider.multi) {\n        ngDevMode && assertDefined(indexInFactory, 'indexInFactory when registering multi factory destroy hook');\n        const existingCallbacksIndex = hooks.indexOf(contextIndex);\n        if (existingCallbacksIndex === -1) {\n          hooks.push(contextIndex, [indexInFactory, ngOnDestroy]);\n        } else {\n          hooks[existingCallbacksIndex + 1].push(indexInFactory, ngOnDestroy);\n        }\n      } else {\n        hooks.push(contextIndex, ngOnDestroy);\n      }\n    }\n  }\n}\n/**\n * Add a factory in a multi factory.\n * @returns Index at which the factory was inserted.\n */\nfunction multiFactoryAdd(multiFactory, factory, isComponentProvider) {\n  if (isComponentProvider) {\n    multiFactory.componentProviders++;\n  }\n  return multiFactory.multi.push(factory) - 1;\n}\n/**\n * Returns the index of item in the array, but only in the begin to end range.\n */\nfunction indexOf(item, arr, begin, end) {\n  for (let i = begin; i < end; i++) {\n    if (arr[i] === item) return i;\n  }\n  return -1;\n}\n/**\n * Use this with `multi` `providers`.\n */\nfunction multiProvidersFactoryResolver(_, tData, lData, tNode) {\n  return multiResolve(this.multi, []);\n}\n/**\n * Use this with `multi` `viewProviders`.\n *\n * This factory knows how to concatenate itself with the existing `multi` `providers`.\n */\nfunction multiViewProvidersFactoryResolver(_, tData, lView, tNode) {\n  const factories = this.multi;\n  let result;\n  if (this.providerFactory) {\n    const componentCount = this.providerFactory.componentProviders;\n    const multiProviders = getNodeInjectable(lView, lView[TVIEW], this.providerFactory.index, tNode);\n    // Copy the section of the array which contains `multi` `providers` from the component\n    result = multiProviders.slice(0, componentCount);\n    // Insert the `viewProvider` instances.\n    multiResolve(factories, result);\n    // Copy the section of the array which contains `multi` `providers` from other directives\n    for (let i = componentCount; i < multiProviders.length; i++) {\n      result.push(multiProviders[i]);\n    }\n  } else {\n    result = [];\n    // Insert the `viewProvider` instances.\n    multiResolve(factories, result);\n  }\n  return result;\n}\n/**\n * Maps an array of factories into an array of values.\n */\nfunction multiResolve(factories, result) {\n  for (let i = 0; i < factories.length; i++) {\n    const factory = factories[i];\n    result.push(factory());\n  }\n  return result;\n}\n/**\n * Creates a multi factory.\n */\nfunction multiFactory(factoryFn, index, isViewProvider, isComponent, f) {\n  const factory = new NodeInjectorFactory(factoryFn, isViewProvider, ɵɵdirectiveInject);\n  factory.multi = [];\n  factory.index = index;\n  factory.componentProviders = 0;\n  multiFactoryAdd(factory, f, isComponent && !isViewProvider);\n  return factory;\n}\n\n/**\n * This feature resolves the providers of a directive (or component),\n * and publish them into the DI system, making it visible to others for injection.\n *\n * For example:\n * ```ts\n * class ComponentWithProviders {\n *   constructor(private greeter: GreeterDE) {}\n *\n *   static ɵcmp = defineComponent({\n *     type: ComponentWithProviders,\n *     selectors: [['component-with-providers']],\n *    factory: () => new ComponentWithProviders(directiveInject(GreeterDE as any)),\n *    decls: 1,\n *    vars: 1,\n *    template: function(fs: RenderFlags, ctx: ComponentWithProviders) {\n *      if (fs & RenderFlags.Create) {\n *        ɵɵtext(0);\n *      }\n *      if (fs & RenderFlags.Update) {\n *        ɵɵtextInterpolate(ctx.greeter.greet());\n *      }\n *    },\n *    features: [ɵɵProvidersFeature([GreeterDE])]\n *  });\n * }\n * ```\n *\n * @param definition\n *\n * @codeGenApi\n */\nfunction ɵɵProvidersFeature(providers, viewProviders = []) {\n  return definition => {\n    definition.providersResolver = (def, processProvidersFn) => {\n      return providersResolver(def,\n      //\n      processProvidersFn ? processProvidersFn(providers) : providers,\n      //\n      viewProviders);\n    };\n  };\n}\n\n/**\n * A service used by the framework to create instances of standalone injectors. Those injectors are\n * created on demand in case of dynamic component instantiation and contain ambient providers\n * collected from the imports graph rooted at a given standalone component.\n */\nlet StandaloneService = /*#__PURE__*/(() => {\n  class StandaloneService {\n    constructor(_injector) {\n      this._injector = _injector;\n      this.cachedInjectors = new Map();\n    }\n    getOrCreateStandaloneInjector(componentDef) {\n      if (!componentDef.standalone) {\n        return null;\n      }\n      if (!this.cachedInjectors.has(componentDef)) {\n        const providers = internalImportProvidersFrom(false, componentDef.type);\n        const standaloneInjector = providers.length > 0 ? createEnvironmentInjector([providers], this._injector, `Standalone[${componentDef.type.name}]`) : null;\n        this.cachedInjectors.set(componentDef, standaloneInjector);\n      }\n      return this.cachedInjectors.get(componentDef);\n    }\n    ngOnDestroy() {\n      try {\n        for (const injector of this.cachedInjectors.values()) {\n          if (injector !== null) {\n            injector.destroy();\n          }\n        }\n      } finally {\n        this.cachedInjectors.clear();\n      }\n    }\n    /** @nocollapse */\n    static {\n      this.ɵprov = ɵɵdefineInjectable({\n        token: StandaloneService,\n        providedIn: 'environment',\n        factory: () => new StandaloneService(ɵɵinject(EnvironmentInjector))\n      });\n    }\n  }\n  return StandaloneService;\n})();\n/**\n * A feature that acts as a setup code for the {@link StandaloneService}.\n *\n * The most important responsibility of this feature is to expose the \"getStandaloneInjector\"\n * function (an entry points to a standalone injector creation) on a component definition object. We\n * go through the features infrastructure to make sure that the standalone injector creation logic\n * is tree-shakable and not included in applications that don't use standalone components.\n *\n * @codeGenApi\n */\nfunction ɵɵStandaloneFeature(definition) {\n  performanceMarkFeature('NgStandalone');\n  definition.getStandaloneInjector = parentInjector => {\n    return parentInjector.get(StandaloneService).getOrCreateStandaloneInjector(definition);\n  };\n}\n\n/**\n * Generated next to NgModules to monkey-patch directive and pipe references onto a component's\n * definition, when generating a direct reference in the component file would otherwise create an\n * import cycle.\n *\n * See [this explanation](https://hackmd.io/Odw80D0pR6yfsOjg_7XCJg?view) for more details.\n *\n * @codeGenApi\n */\nfunction ɵɵsetComponentScope(type, directives, pipes) {\n  const def = type.ɵcmp;\n  def.directiveDefs = extractDefListOrFactory(directives, /* pipeDef */false);\n  def.pipeDefs = extractDefListOrFactory(pipes, /* pipeDef */true);\n}\n/**\n * Adds the module metadata that is necessary to compute the module's transitive scope to an\n * existing module definition.\n *\n * Scope metadata of modules is not used in production builds, so calls to this function can be\n * marked pure to tree-shake it from the bundle, allowing for all referenced declarations\n * to become eligible for tree-shaking as well.\n *\n * @codeGenApi\n */\nfunction ɵɵsetNgModuleScope(type, scope) {\n  return noSideEffects(() => {\n    const ngModuleDef = getNgModuleDef(type, true);\n    ngModuleDef.declarations = convertToTypeArray(scope.declarations || EMPTY_ARRAY);\n    ngModuleDef.imports = convertToTypeArray(scope.imports || EMPTY_ARRAY);\n    ngModuleDef.exports = convertToTypeArray(scope.exports || EMPTY_ARRAY);\n    if (scope.bootstrap) {\n      // This only happens in local compilation mode.\n      ngModuleDef.bootstrap = convertToTypeArray(scope.bootstrap);\n    }\n    depsTracker.registerNgModule(type, scope);\n  });\n}\nfunction convertToTypeArray(values) {\n  if (typeof values === 'function') {\n    return values;\n  }\n  const flattenValues = flatten(values);\n  if (flattenValues.some(isForwardRef)) {\n    return () => flattenValues.map(resolveForwardRef).map(maybeUnwrapModuleWithProviders);\n  } else {\n    return flattenValues.map(maybeUnwrapModuleWithProviders);\n  }\n}\nfunction maybeUnwrapModuleWithProviders(value) {\n  return isModuleWithProviders(value) ? value.ngModule : value;\n}\n\n/**\n * Bindings for pure functions are stored after regular bindings.\n *\n * |-------decls------|---------vars---------|                 |----- hostVars (dir1) ------|\n * ------------------------------------------------------------------------------------------\n * | nodes/refs/pipes | bindings | fn slots  | injector | dir1 | host bindings | host slots |\n * ------------------------------------------------------------------------------------------\n *                    ^                      ^\n *      TView.bindingStartIndex      TView.expandoStartIndex\n *\n * Pure function instructions are given an offset from the binding root. Adding the offset to the\n * binding root gives the first index where the bindings are stored. In component views, the binding\n * root is the bindingStartIndex. In host bindings, the binding root is the expandoStartIndex +\n * any directive instances + any hostVars in directives evaluated before it.\n *\n * See VIEW_DATA.md for more information about host binding resolution.\n */\n/**\n * If the value hasn't been saved, calls the pure function to store and return the\n * value. If it has been saved, returns the saved value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn Function that returns a value\n * @param thisArg Optional calling context of pureFn\n * @returns value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction0(slotOffset, pureFn, thisArg) {\n  const bindingIndex = getBindingRoot() + slotOffset;\n  const lView = getLView();\n  return lView[bindingIndex] === NO_CHANGE ? updateBinding(lView, bindingIndex, thisArg ? pureFn.call(thisArg) : pureFn()) : getBinding(lView, bindingIndex);\n}\n/**\n * If the value of the provided exp has changed, calls the pure function to return\n * an updated value. Or if the value has not changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn Function that returns an updated value\n * @param exp Updated expression value\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction1(slotOffset, pureFn, exp, thisArg) {\n  return pureFunction1Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp, thisArg);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction2(slotOffset, pureFn, exp1, exp2, thisArg) {\n  return pureFunction2Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp1, exp2, thisArg);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction3(slotOffset, pureFn, exp1, exp2, exp3, thisArg) {\n  return pureFunction3Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp1, exp2, exp3, thisArg);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param exp4\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction4(slotOffset, pureFn, exp1, exp2, exp3, exp4, thisArg) {\n  return pureFunction4Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp1, exp2, exp3, exp4, thisArg);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param exp4\n * @param exp5\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction5(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, thisArg) {\n  const bindingIndex = getBindingRoot() + slotOffset;\n  const lView = getLView();\n  const different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);\n  return bindingUpdated(lView, bindingIndex + 4, exp5) || different ? updateBinding(lView, bindingIndex + 5, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5) : pureFn(exp1, exp2, exp3, exp4, exp5)) : getBinding(lView, bindingIndex + 5);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param exp4\n * @param exp5\n * @param exp6\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction6(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, exp6, thisArg) {\n  const bindingIndex = getBindingRoot() + slotOffset;\n  const lView = getLView();\n  const different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);\n  return bindingUpdated2(lView, bindingIndex + 4, exp5, exp6) || different ? updateBinding(lView, bindingIndex + 6, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5, exp6) : pureFn(exp1, exp2, exp3, exp4, exp5, exp6)) : getBinding(lView, bindingIndex + 6);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param exp4\n * @param exp5\n * @param exp6\n * @param exp7\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction7(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, exp6, exp7, thisArg) {\n  const bindingIndex = getBindingRoot() + slotOffset;\n  const lView = getLView();\n  let different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);\n  return bindingUpdated3(lView, bindingIndex + 4, exp5, exp6, exp7) || different ? updateBinding(lView, bindingIndex + 7, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5, exp6, exp7) : pureFn(exp1, exp2, exp3, exp4, exp5, exp6, exp7)) : getBinding(lView, bindingIndex + 7);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param exp4\n * @param exp5\n * @param exp6\n * @param exp7\n * @param exp8\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction8(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, exp6, exp7, exp8, thisArg) {\n  const bindingIndex = getBindingRoot() + slotOffset;\n  const lView = getLView();\n  const different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);\n  return bindingUpdated4(lView, bindingIndex + 4, exp5, exp6, exp7, exp8) || different ? updateBinding(lView, bindingIndex + 8, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5, exp6, exp7, exp8) : pureFn(exp1, exp2, exp3, exp4, exp5, exp6, exp7, exp8)) : getBinding(lView, bindingIndex + 8);\n}\n/**\n * pureFunction instruction that can support any number of bindings.\n *\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn A pure function that takes binding values and builds an object or array\n * containing those values.\n * @param exps An array of binding values\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunctionV(slotOffset, pureFn, exps, thisArg) {\n  return pureFunctionVInternal(getLView(), getBindingRoot(), slotOffset, pureFn, exps, thisArg);\n}\n/**\n * Results of a pure function invocation are stored in LView in a dedicated slot that is initialized\n * to NO_CHANGE. In rare situations a pure pipe might throw an exception on the very first\n * invocation and not produce any valid results. In this case LView would keep holding the NO_CHANGE\n * value. The NO_CHANGE is not something that we can use in expressions / bindings thus we convert\n * it to `undefined`.\n */\nfunction getPureFunctionReturnValue(lView, returnValueIndex) {\n  ngDevMode && assertIndexInRange(lView, returnValueIndex);\n  const lastReturnValue = lView[returnValueIndex];\n  return lastReturnValue === NO_CHANGE ? undefined : lastReturnValue;\n}\n/**\n * If the value of the provided exp has changed, calls the pure function to return\n * an updated value. Or if the value has not changed, returns cached value.\n *\n * @param lView LView in which the function is being executed.\n * @param bindingRoot Binding root index.\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn Function that returns an updated value\n * @param exp Updated expression value\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n */\nfunction pureFunction1Internal(lView, bindingRoot, slotOffset, pureFn, exp, thisArg) {\n  const bindingIndex = bindingRoot + slotOffset;\n  return bindingUpdated(lView, bindingIndex, exp) ? updateBinding(lView, bindingIndex + 1, thisArg ? pureFn.call(thisArg, exp) : pureFn(exp)) : getPureFunctionReturnValue(lView, bindingIndex + 1);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param lView LView in which the function is being executed.\n * @param bindingRoot Binding root index.\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n */\nfunction pureFunction2Internal(lView, bindingRoot, slotOffset, pureFn, exp1, exp2, thisArg) {\n  const bindingIndex = bindingRoot + slotOffset;\n  return bindingUpdated2(lView, bindingIndex, exp1, exp2) ? updateBinding(lView, bindingIndex + 2, thisArg ? pureFn.call(thisArg, exp1, exp2) : pureFn(exp1, exp2)) : getPureFunctionReturnValue(lView, bindingIndex + 2);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param lView LView in which the function is being executed.\n * @param bindingRoot Binding root index.\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n */\nfunction pureFunction3Internal(lView, bindingRoot, slotOffset, pureFn, exp1, exp2, exp3, thisArg) {\n  const bindingIndex = bindingRoot + slotOffset;\n  return bindingUpdated3(lView, bindingIndex, exp1, exp2, exp3) ? updateBinding(lView, bindingIndex + 3, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3) : pureFn(exp1, exp2, exp3)) : getPureFunctionReturnValue(lView, bindingIndex + 3);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param lView LView in which the function is being executed.\n * @param bindingRoot Binding root index.\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param exp4\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n */\nfunction pureFunction4Internal(lView, bindingRoot, slotOffset, pureFn, exp1, exp2, exp3, exp4, thisArg) {\n  const bindingIndex = bindingRoot + slotOffset;\n  return bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4) ? updateBinding(lView, bindingIndex + 4, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4) : pureFn(exp1, exp2, exp3, exp4)) : getPureFunctionReturnValue(lView, bindingIndex + 4);\n}\n/**\n * pureFunction instruction that can support any number of bindings.\n *\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param lView LView in which the function is being executed.\n * @param bindingRoot Binding root index.\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn A pure function that takes binding values and builds an object or array\n * containing those values.\n * @param exps An array of binding values\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n */\nfunction pureFunctionVInternal(lView, bindingRoot, slotOffset, pureFn, exps, thisArg) {\n  let bindingIndex = bindingRoot + slotOffset;\n  let different = false;\n  for (let i = 0; i < exps.length; i++) {\n    bindingUpdated(lView, bindingIndex++, exps[i]) && (different = true);\n  }\n  return different ? updateBinding(lView, bindingIndex, pureFn.apply(thisArg, exps)) : getPureFunctionReturnValue(lView, bindingIndex);\n}\n\n/**\n * Create a pipe.\n *\n * @param index Pipe index where the pipe will be stored.\n * @param pipeName The name of the pipe\n * @returns T the instance of the pipe.\n *\n * @codeGenApi\n */\nfunction ɵɵpipe(index, pipeName) {\n  const tView = getTView();\n  let pipeDef;\n  const adjustedIndex = index + HEADER_OFFSET;\n  if (tView.firstCreatePass) {\n    // The `getPipeDef` throws if a pipe with a given name is not found\n    // (so we use non-null assertion below).\n    pipeDef = getPipeDef(pipeName, tView.pipeRegistry);\n    tView.data[adjustedIndex] = pipeDef;\n    if (pipeDef.onDestroy) {\n      (tView.destroyHooks ??= []).push(adjustedIndex, pipeDef.onDestroy);\n    }\n  } else {\n    pipeDef = tView.data[adjustedIndex];\n  }\n  const pipeFactory = pipeDef.factory || (pipeDef.factory = getFactoryDef(pipeDef.type, true));\n  let previousInjectorProfilerContext;\n  if (ngDevMode) {\n    previousInjectorProfilerContext = setInjectorProfilerContext({\n      injector: new NodeInjector(getCurrentTNode(), getLView()),\n      token: pipeDef.type\n    });\n  }\n  const previousInjectImplementation = setInjectImplementation(ɵɵdirectiveInject);\n  try {\n    // DI for pipes is supposed to behave like directives when placed on a component\n    // host node, which means that we have to disable access to `viewProviders`.\n    const previousIncludeViewProviders = setIncludeViewProviders(false);\n    const pipeInstance = pipeFactory();\n    setIncludeViewProviders(previousIncludeViewProviders);\n    store(tView, getLView(), adjustedIndex, pipeInstance);\n    return pipeInstance;\n  } finally {\n    // we have to restore the injector implementation in finally, just in case the creation of the\n    // pipe throws an error.\n    setInjectImplementation(previousInjectImplementation);\n    ngDevMode && setInjectorProfilerContext(previousInjectorProfilerContext);\n  }\n}\n/**\n * Searches the pipe registry for a pipe with the given name. If one is found,\n * returns the pipe. Otherwise, an error is thrown because the pipe cannot be resolved.\n *\n * @param name Name of pipe to resolve\n * @param registry Full list of available pipes\n * @returns Matching PipeDef\n */\nfunction getPipeDef(name, registry) {\n  if (registry) {\n    if (ngDevMode) {\n      const pipes = registry.filter(pipe => pipe.name === name);\n      // TODO: Throw an error in the next major\n      if (pipes.length > 1) {\n        console.warn(formatRuntimeError(313 /* RuntimeErrorCode.MULTIPLE_MATCHING_PIPES */, getMultipleMatchingPipesMessage(name)));\n      }\n    }\n    for (let i = registry.length - 1; i >= 0; i--) {\n      const pipeDef = registry[i];\n      if (name === pipeDef.name) {\n        return pipeDef;\n      }\n    }\n  }\n  if (ngDevMode) {\n    throw new RuntimeError(-302 /* RuntimeErrorCode.PIPE_NOT_FOUND */, getPipeNotFoundErrorMessage(name));\n  }\n  return;\n}\n/**\n * Generates a helpful error message for the user when multiple pipes match the name.\n *\n * @param name Name of the pipe\n * @returns The error message\n */\nfunction getMultipleMatchingPipesMessage(name) {\n  const lView = getLView();\n  const declarationLView = lView[DECLARATION_COMPONENT_VIEW];\n  const context = declarationLView[CONTEXT];\n  const hostIsStandalone = isHostComponentStandalone(lView);\n  const componentInfoMessage = context ? ` in the '${context.constructor.name}' component` : '';\n  const verifyMessage = `check ${hostIsStandalone ? '\\'@Component.imports\\' of this component' : 'the imports of this module'}`;\n  const errorMessage = `Multiple pipes match the name \\`${name}\\`${componentInfoMessage}. ${verifyMessage}`;\n  return errorMessage;\n}\n/**\n * Generates a helpful error message for the user when a pipe is not found.\n *\n * @param name Name of the missing pipe\n * @returns The error message\n */\nfunction getPipeNotFoundErrorMessage(name) {\n  const lView = getLView();\n  const declarationLView = lView[DECLARATION_COMPONENT_VIEW];\n  const context = declarationLView[CONTEXT];\n  const hostIsStandalone = isHostComponentStandalone(lView);\n  const componentInfoMessage = context ? ` in the '${context.constructor.name}' component` : '';\n  const verifyMessage = `Verify that it is ${hostIsStandalone ? 'included in the \\'@Component.imports\\' of this component' : 'declared or imported in this module'}`;\n  const errorMessage = `The pipe '${name}' could not be found${componentInfoMessage}. ${verifyMessage}`;\n  return errorMessage;\n}\n/**\n * Invokes a pipe with 1 arguments.\n *\n * This instruction acts as a guard to {@link PipeTransform#transform} invoking\n * the pipe only when an input to the pipe changes.\n *\n * @param index Pipe index where the pipe was stored on creation.\n * @param offset the binding offset\n * @param v1 1st argument to {@link PipeTransform#transform}.\n *\n * @codeGenApi\n */\nfunction ɵɵpipeBind1(index, offset, v1) {\n  const adjustedIndex = index + HEADER_OFFSET;\n  const lView = getLView();\n  const pipeInstance = load(lView, adjustedIndex);\n  return isPure(lView, adjustedIndex) ? pureFunction1Internal(lView, getBindingRoot(), offset, pipeInstance.transform, v1, pipeInstance) : pipeInstance.transform(v1);\n}\n/**\n * Invokes a pipe with 2 arguments.\n *\n * This instruction acts as a guard to {@link PipeTransform#transform} invoking\n * the pipe only when an input to the pipe changes.\n *\n * @param index Pipe index where the pipe was stored on creation.\n * @param slotOffset the offset in the reserved slot space\n * @param v1 1st argument to {@link PipeTransform#transform}.\n * @param v2 2nd argument to {@link PipeTransform#transform}.\n *\n * @codeGenApi\n */\nfunction ɵɵpipeBind2(index, slotOffset, v1, v2) {\n  const adjustedIndex = index + HEADER_OFFSET;\n  const lView = getLView();\n  const pipeInstance = load(lView, adjustedIndex);\n  return isPure(lView, adjustedIndex) ? pureFunction2Internal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, v1, v2, pipeInstance) : pipeInstance.transform(v1, v2);\n}\n/**\n * Invokes a pipe with 3 arguments.\n *\n * This instruction acts as a guard to {@link PipeTransform#transform} invoking\n * the pipe only when an input to the pipe changes.\n *\n * @param index Pipe index where the pipe was stored on creation.\n * @param slotOffset the offset in the reserved slot space\n * @param v1 1st argument to {@link PipeTransform#transform}.\n * @param v2 2nd argument to {@link PipeTransform#transform}.\n * @param v3 4rd argument to {@link PipeTransform#transform}.\n *\n * @codeGenApi\n */\nfunction ɵɵpipeBind3(index, slotOffset, v1, v2, v3) {\n  const adjustedIndex = index + HEADER_OFFSET;\n  const lView = getLView();\n  const pipeInstance = load(lView, adjustedIndex);\n  return isPure(lView, adjustedIndex) ? pureFunction3Internal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, v1, v2, v3, pipeInstance) : pipeInstance.transform(v1, v2, v3);\n}\n/**\n * Invokes a pipe with 4 arguments.\n *\n * This instruction acts as a guard to {@link PipeTransform#transform} invoking\n * the pipe only when an input to the pipe changes.\n *\n * @param index Pipe index where the pipe was stored on creation.\n * @param slotOffset the offset in the reserved slot space\n * @param v1 1st argument to {@link PipeTransform#transform}.\n * @param v2 2nd argument to {@link PipeTransform#transform}.\n * @param v3 3rd argument to {@link PipeTransform#transform}.\n * @param v4 4th argument to {@link PipeTransform#transform}.\n *\n * @codeGenApi\n */\nfunction ɵɵpipeBind4(index, slotOffset, v1, v2, v3, v4) {\n  const adjustedIndex = index + HEADER_OFFSET;\n  const lView = getLView();\n  const pipeInstance = load(lView, adjustedIndex);\n  return isPure(lView, adjustedIndex) ? pureFunction4Internal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, v1, v2, v3, v4, pipeInstance) : pipeInstance.transform(v1, v2, v3, v4);\n}\n/**\n * Invokes a pipe with variable number of arguments.\n *\n * This instruction acts as a guard to {@link PipeTransform#transform} invoking\n * the pipe only when an input to the pipe changes.\n *\n * @param index Pipe index where the pipe was stored on creation.\n * @param slotOffset the offset in the reserved slot space\n * @param values Array of arguments to pass to {@link PipeTransform#transform} method.\n *\n * @codeGenApi\n */\nfunction ɵɵpipeBindV(index, slotOffset, values) {\n  const adjustedIndex = index + HEADER_OFFSET;\n  const lView = getLView();\n  const pipeInstance = load(lView, adjustedIndex);\n  return isPure(lView, adjustedIndex) ? pureFunctionVInternal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, values, pipeInstance) : pipeInstance.transform.apply(pipeInstance, values);\n}\nfunction isPure(lView, index) {\n  return lView[TVIEW].data[index].pure;\n}\n\n/**\n * Retrieves `TemplateRef` instance from `Injector` when a local reference is placed on the\n * `<ng-template>` element.\n *\n * @codeGenApi\n */\nfunction ɵɵtemplateRefExtractor(tNode, lView) {\n  return createTemplateRef(tNode, lView);\n}\nfunction ɵɵgetComponentDepsFactory(type, rawImports) {\n  return () => {\n    try {\n      return depsTracker.getComponentDependencies(type, rawImports).dependencies;\n    } catch (e) {\n      console.error(`Computing dependencies in local compilation mode for the component \"${type.name}\" failed with the exception:`, e);\n      throw e;\n    }\n  };\n}\n\n/**\n * Sets the debug info for an Angular class.\n *\n * This runtime is guarded by ngDevMode flag.\n */\nfunction ɵsetClassDebugInfo(type, debugInfo) {\n  const def = getComponentDef(type);\n  if (def !== null) {\n    def.debugInfo = debugInfo;\n  }\n}\n\n/**\n * A mapping of the @angular/core API surface used in generated expressions to the actual symbols.\n *\n * This should be kept up to date with the public exports of @angular/core.\n */\nconst angularCoreEnv = /*#__PURE__*/(() => ({\n  'ɵɵattribute': ɵɵattribute,\n  'ɵɵattributeInterpolate1': ɵɵattributeInterpolate1,\n  'ɵɵattributeInterpolate2': ɵɵattributeInterpolate2,\n  'ɵɵattributeInterpolate3': ɵɵattributeInterpolate3,\n  'ɵɵattributeInterpolate4': ɵɵattributeInterpolate4,\n  'ɵɵattributeInterpolate5': ɵɵattributeInterpolate5,\n  'ɵɵattributeInterpolate6': ɵɵattributeInterpolate6,\n  'ɵɵattributeInterpolate7': ɵɵattributeInterpolate7,\n  'ɵɵattributeInterpolate8': ɵɵattributeInterpolate8,\n  'ɵɵattributeInterpolateV': ɵɵattributeInterpolateV,\n  'ɵɵdefineComponent': ɵɵdefineComponent,\n  'ɵɵdefineDirective': ɵɵdefineDirective,\n  'ɵɵdefineInjectable': ɵɵdefineInjectable,\n  'ɵɵdefineInjector': ɵɵdefineInjector,\n  'ɵɵdefineNgModule': ɵɵdefineNgModule,\n  'ɵɵdefinePipe': ɵɵdefinePipe,\n  'ɵɵdirectiveInject': ɵɵdirectiveInject,\n  'ɵɵgetInheritedFactory': ɵɵgetInheritedFactory,\n  'ɵɵinject': ɵɵinject,\n  'ɵɵinjectAttribute': ɵɵinjectAttribute,\n  'ɵɵinvalidFactory': ɵɵinvalidFactory,\n  'ɵɵinvalidFactoryDep': ɵɵinvalidFactoryDep,\n  'ɵɵtemplateRefExtractor': ɵɵtemplateRefExtractor,\n  'ɵɵresetView': ɵɵresetView,\n  'ɵɵHostDirectivesFeature': ɵɵHostDirectivesFeature,\n  'ɵɵNgOnChangesFeature': ɵɵNgOnChangesFeature,\n  'ɵɵProvidersFeature': ɵɵProvidersFeature,\n  'ɵɵCopyDefinitionFeature': ɵɵCopyDefinitionFeature,\n  'ɵɵInheritDefinitionFeature': ɵɵInheritDefinitionFeature,\n  'ɵɵInputTransformsFeature': ɵɵInputTransformsFeature,\n  'ɵɵStandaloneFeature': ɵɵStandaloneFeature,\n  'ɵɵnextContext': ɵɵnextContext,\n  'ɵɵnamespaceHTML': ɵɵnamespaceHTML,\n  'ɵɵnamespaceMathML': ɵɵnamespaceMathML,\n  'ɵɵnamespaceSVG': ɵɵnamespaceSVG,\n  'ɵɵenableBindings': ɵɵenableBindings,\n  'ɵɵdisableBindings': ɵɵdisableBindings,\n  'ɵɵelementStart': ɵɵelementStart,\n  'ɵɵelementEnd': ɵɵelementEnd,\n  'ɵɵelement': ɵɵelement,\n  'ɵɵelementContainerStart': ɵɵelementContainerStart,\n  'ɵɵelementContainerEnd': ɵɵelementContainerEnd,\n  'ɵɵelementContainer': ɵɵelementContainer,\n  'ɵɵpureFunction0': ɵɵpureFunction0,\n  'ɵɵpureFunction1': ɵɵpureFunction1,\n  'ɵɵpureFunction2': ɵɵpureFunction2,\n  'ɵɵpureFunction3': ɵɵpureFunction3,\n  'ɵɵpureFunction4': ɵɵpureFunction4,\n  'ɵɵpureFunction5': ɵɵpureFunction5,\n  'ɵɵpureFunction6': ɵɵpureFunction6,\n  'ɵɵpureFunction7': ɵɵpureFunction7,\n  'ɵɵpureFunction8': ɵɵpureFunction8,\n  'ɵɵpureFunctionV': ɵɵpureFunctionV,\n  'ɵɵgetCurrentView': ɵɵgetCurrentView,\n  'ɵɵrestoreView': ɵɵrestoreView,\n  'ɵɵlistener': ɵɵlistener,\n  'ɵɵprojection': ɵɵprojection,\n  'ɵɵsyntheticHostProperty': ɵɵsyntheticHostProperty,\n  'ɵɵsyntheticHostListener': ɵɵsyntheticHostListener,\n  'ɵɵpipeBind1': ɵɵpipeBind1,\n  'ɵɵpipeBind2': ɵɵpipeBind2,\n  'ɵɵpipeBind3': ɵɵpipeBind3,\n  'ɵɵpipeBind4': ɵɵpipeBind4,\n  'ɵɵpipeBindV': ɵɵpipeBindV,\n  'ɵɵprojectionDef': ɵɵprojectionDef,\n  'ɵɵhostProperty': ɵɵhostProperty,\n  'ɵɵproperty': ɵɵproperty,\n  'ɵɵpropertyInterpolate': ɵɵpropertyInterpolate,\n  'ɵɵpropertyInterpolate1': ɵɵpropertyInterpolate1,\n  'ɵɵpropertyInterpolate2': ɵɵpropertyInterpolate2,\n  'ɵɵpropertyInterpolate3': ɵɵpropertyInterpolate3,\n  'ɵɵpropertyInterpolate4': ɵɵpropertyInterpolate4,\n  'ɵɵpropertyInterpolate5': ɵɵpropertyInterpolate5,\n  'ɵɵpropertyInterpolate6': ɵɵpropertyInterpolate6,\n  'ɵɵpropertyInterpolate7': ɵɵpropertyInterpolate7,\n  'ɵɵpropertyInterpolate8': ɵɵpropertyInterpolate8,\n  'ɵɵpropertyInterpolateV': ɵɵpropertyInterpolateV,\n  'ɵɵpipe': ɵɵpipe,\n  'ɵɵqueryRefresh': ɵɵqueryRefresh,\n  'ɵɵqueryAdvance': ɵɵqueryAdvance,\n  'ɵɵviewQuery': ɵɵviewQuery,\n  'ɵɵviewQuerySignal': ɵɵviewQuerySignal,\n  'ɵɵloadQuery': ɵɵloadQuery,\n  'ɵɵcontentQuery': ɵɵcontentQuery,\n  'ɵɵcontentQuerySignal': ɵɵcontentQuerySignal,\n  'ɵɵreference': ɵɵreference,\n  'ɵɵclassMap': ɵɵclassMap,\n  'ɵɵclassMapInterpolate1': ɵɵclassMapInterpolate1,\n  'ɵɵclassMapInterpolate2': ɵɵclassMapInterpolate2,\n  'ɵɵclassMapInterpolate3': ɵɵclassMapInterpolate3,\n  'ɵɵclassMapInterpolate4': ɵɵclassMapInterpolate4,\n  'ɵɵclassMapInterpolate5': ɵɵclassMapInterpolate5,\n  'ɵɵclassMapInterpolate6': ɵɵclassMapInterpolate6,\n  'ɵɵclassMapInterpolate7': ɵɵclassMapInterpolate7,\n  'ɵɵclassMapInterpolate8': ɵɵclassMapInterpolate8,\n  'ɵɵclassMapInterpolateV': ɵɵclassMapInterpolateV,\n  'ɵɵstyleMap': ɵɵstyleMap,\n  'ɵɵstyleMapInterpolate1': ɵɵstyleMapInterpolate1,\n  'ɵɵstyleMapInterpolate2': ɵɵstyleMapInterpolate2,\n  'ɵɵstyleMapInterpolate3': ɵɵstyleMapInterpolate3,\n  'ɵɵstyleMapInterpolate4': ɵɵstyleMapInterpolate4,\n  'ɵɵstyleMapInterpolate5': ɵɵstyleMapInterpolate5,\n  'ɵɵstyleMapInterpolate6': ɵɵstyleMapInterpolate6,\n  'ɵɵstyleMapInterpolate7': ɵɵstyleMapInterpolate7,\n  'ɵɵstyleMapInterpolate8': ɵɵstyleMapInterpolate8,\n  'ɵɵstyleMapInterpolateV': ɵɵstyleMapInterpolateV,\n  'ɵɵstyleProp': ɵɵstyleProp,\n  'ɵɵstylePropInterpolate1': ɵɵstylePropInterpolate1,\n  'ɵɵstylePropInterpolate2': ɵɵstylePropInterpolate2,\n  'ɵɵstylePropInterpolate3': ɵɵstylePropInterpolate3,\n  'ɵɵstylePropInterpolate4': ɵɵstylePropInterpolate4,\n  'ɵɵstylePropInterpolate5': ɵɵstylePropInterpolate5,\n  'ɵɵstylePropInterpolate6': ɵɵstylePropInterpolate6,\n  'ɵɵstylePropInterpolate7': ɵɵstylePropInterpolate7,\n  'ɵɵstylePropInterpolate8': ɵɵstylePropInterpolate8,\n  'ɵɵstylePropInterpolateV': ɵɵstylePropInterpolateV,\n  'ɵɵclassProp': ɵɵclassProp,\n  'ɵɵadvance': ɵɵadvance,\n  'ɵɵtemplate': ɵɵtemplate,\n  'ɵɵconditional': ɵɵconditional,\n  'ɵɵdefer': ɵɵdefer,\n  'ɵɵdeferWhen': ɵɵdeferWhen,\n  'ɵɵdeferOnIdle': ɵɵdeferOnIdle,\n  'ɵɵdeferOnImmediate': ɵɵdeferOnImmediate,\n  'ɵɵdeferOnTimer': ɵɵdeferOnTimer,\n  'ɵɵdeferOnHover': ɵɵdeferOnHover,\n  'ɵɵdeferOnInteraction': ɵɵdeferOnInteraction,\n  'ɵɵdeferOnViewport': ɵɵdeferOnViewport,\n  'ɵɵdeferPrefetchWhen': ɵɵdeferPrefetchWhen,\n  'ɵɵdeferPrefetchOnIdle': ɵɵdeferPrefetchOnIdle,\n  'ɵɵdeferPrefetchOnImmediate': ɵɵdeferPrefetchOnImmediate,\n  'ɵɵdeferPrefetchOnTimer': ɵɵdeferPrefetchOnTimer,\n  'ɵɵdeferPrefetchOnHover': ɵɵdeferPrefetchOnHover,\n  'ɵɵdeferPrefetchOnInteraction': ɵɵdeferPrefetchOnInteraction,\n  'ɵɵdeferPrefetchOnViewport': ɵɵdeferPrefetchOnViewport,\n  'ɵɵdeferEnableTimerScheduling': ɵɵdeferEnableTimerScheduling,\n  'ɵɵrepeater': ɵɵrepeater,\n  'ɵɵrepeaterCreate': ɵɵrepeaterCreate,\n  'ɵɵrepeaterTrackByIndex': ɵɵrepeaterTrackByIndex,\n  'ɵɵrepeaterTrackByIdentity': ɵɵrepeaterTrackByIdentity,\n  'ɵɵcomponentInstance': ɵɵcomponentInstance,\n  'ɵɵtext': ɵɵtext,\n  'ɵɵtextInterpolate': ɵɵtextInterpolate,\n  'ɵɵtextInterpolate1': ɵɵtextInterpolate1,\n  'ɵɵtextInterpolate2': ɵɵtextInterpolate2,\n  'ɵɵtextInterpolate3': ɵɵtextInterpolate3,\n  'ɵɵtextInterpolate4': ɵɵtextInterpolate4,\n  'ɵɵtextInterpolate5': ɵɵtextInterpolate5,\n  'ɵɵtextInterpolate6': ɵɵtextInterpolate6,\n  'ɵɵtextInterpolate7': ɵɵtextInterpolate7,\n  'ɵɵtextInterpolate8': ɵɵtextInterpolate8,\n  'ɵɵtextInterpolateV': ɵɵtextInterpolateV,\n  'ɵɵi18n': ɵɵi18n,\n  'ɵɵi18nAttributes': ɵɵi18nAttributes,\n  'ɵɵi18nExp': ɵɵi18nExp,\n  'ɵɵi18nStart': ɵɵi18nStart,\n  'ɵɵi18nEnd': ɵɵi18nEnd,\n  'ɵɵi18nApply': ɵɵi18nApply,\n  'ɵɵi18nPostprocess': ɵɵi18nPostprocess,\n  'ɵɵresolveWindow': ɵɵresolveWindow,\n  'ɵɵresolveDocument': ɵɵresolveDocument,\n  'ɵɵresolveBody': ɵɵresolveBody,\n  'ɵɵsetComponentScope': ɵɵsetComponentScope,\n  'ɵɵsetNgModuleScope': ɵɵsetNgModuleScope,\n  'ɵɵregisterNgModuleType': registerNgModuleType,\n  'ɵɵgetComponentDepsFactory': ɵɵgetComponentDepsFactory,\n  'ɵsetClassDebugInfo': ɵsetClassDebugInfo,\n  'ɵɵsanitizeHtml': ɵɵsanitizeHtml,\n  'ɵɵsanitizeStyle': ɵɵsanitizeStyle,\n  'ɵɵsanitizeResourceUrl': ɵɵsanitizeResourceUrl,\n  'ɵɵsanitizeScript': ɵɵsanitizeScript,\n  'ɵɵsanitizeUrl': ɵɵsanitizeUrl,\n  'ɵɵsanitizeUrlOrResourceUrl': ɵɵsanitizeUrlOrResourceUrl,\n  'ɵɵtrustConstantHtml': ɵɵtrustConstantHtml,\n  'ɵɵtrustConstantResourceUrl': ɵɵtrustConstantResourceUrl,\n  'ɵɵvalidateIframeAttribute': ɵɵvalidateIframeAttribute,\n  'forwardRef': forwardRef,\n  'resolveForwardRef': resolveForwardRef,\n  'ɵɵtwoWayProperty': ɵɵtwoWayProperty,\n  'ɵɵtwoWayBindingSet': ɵɵtwoWayBindingSet,\n  'ɵɵtwoWayListener': ɵɵtwoWayListener,\n  'ɵɵInputFlags': InputFlags\n}))();\nlet jitOptions = null;\nfunction setJitOptions(options) {\n  if (jitOptions !== null) {\n    if (options.defaultEncapsulation !== jitOptions.defaultEncapsulation) {\n      ngDevMode && console.error('Provided value for `defaultEncapsulation` can not be changed once it has been set.');\n      return;\n    }\n    if (options.preserveWhitespaces !== jitOptions.preserveWhitespaces) {\n      ngDevMode && console.error('Provided value for `preserveWhitespaces` can not be changed once it has been set.');\n      return;\n    }\n  }\n  jitOptions = options;\n}\nfunction getJitOptions() {\n  return jitOptions;\n}\nfunction resetJitOptions() {\n  jitOptions = null;\n}\nfunction patchModuleCompilation() {\n  // Does nothing, but exists as a target for patching.\n}\nconst moduleQueue = [];\n/**\n * Enqueues moduleDef to be checked later to see if scope can be set on its\n * component declarations.\n */\nfunction enqueueModuleForDelayedScoping(moduleType, ngModule) {\n  moduleQueue.push({\n    moduleType,\n    ngModule\n  });\n}\nlet flushingModuleQueue = false;\n/**\n * Loops over queued module definitions, if a given module definition has all of its\n * declarations resolved, it dequeues that module definition and sets the scope on\n * its declarations.\n */\nfunction flushModuleScopingQueueAsMuchAsPossible() {\n  if (!flushingModuleQueue) {\n    flushingModuleQueue = true;\n    try {\n      for (let i = moduleQueue.length - 1; i >= 0; i--) {\n        const {\n          moduleType,\n          ngModule\n        } = moduleQueue[i];\n        if (ngModule.declarations && ngModule.declarations.every(isResolvedDeclaration)) {\n          // dequeue\n          moduleQueue.splice(i, 1);\n          setScopeOnDeclaredComponents(moduleType, ngModule);\n        }\n      }\n    } finally {\n      flushingModuleQueue = false;\n    }\n  }\n}\n/**\n * Returns truthy if a declaration has resolved. If the declaration happens to be\n * an array of declarations, it will recurse to check each declaration in that array\n * (which may also be arrays).\n */\nfunction isResolvedDeclaration(declaration) {\n  if (Array.isArray(declaration)) {\n    return declaration.every(isResolvedDeclaration);\n  }\n  return !!resolveForwardRef(declaration);\n}\n/**\n * Compiles a module in JIT mode.\n *\n * This function automatically gets called when a class has a `@NgModule` decorator.\n */\nfunction compileNgModule(moduleType, ngModule = {}) {\n  patchModuleCompilation();\n  compileNgModuleDefs(moduleType, ngModule);\n  if (ngModule.id !== undefined) {\n    registerNgModuleType(moduleType, ngModule.id);\n  }\n  // Because we don't know if all declarations have resolved yet at the moment the\n  // NgModule decorator is executing, we're enqueueing the setting of module scope\n  // on its declarations to be run at a later time when all declarations for the module,\n  // including forward refs, have resolved.\n  enqueueModuleForDelayedScoping(moduleType, ngModule);\n}\n/**\n * Compiles and adds the `ɵmod`, `ɵfac` and `ɵinj` properties to the module class.\n *\n * It's possible to compile a module via this API which will allow duplicate declarations in its\n * root.\n */\nfunction compileNgModuleDefs(moduleType, ngModule, allowDuplicateDeclarationsInRoot = false) {\n  ngDevMode && assertDefined(moduleType, 'Required value moduleType');\n  ngDevMode && assertDefined(ngModule, 'Required value ngModule');\n  const declarations = flatten(ngModule.declarations || EMPTY_ARRAY);\n  let ngModuleDef = null;\n  Object.defineProperty(moduleType, NG_MOD_DEF, {\n    configurable: true,\n    get: () => {\n      if (ngModuleDef === null) {\n        if (ngDevMode && ngModule.imports && ngModule.imports.indexOf(moduleType) > -1) {\n          // We need to assert this immediately, because allowing it to continue will cause it to\n          // go into an infinite loop before we've reached the point where we throw all the errors.\n          throw new Error(`'${stringifyForError(moduleType)}' module can't import itself`);\n        }\n        const compiler = getCompilerFacade({\n          usage: 0 /* JitCompilerUsage.Decorator */,\n          kind: 'NgModule',\n          type: moduleType\n        });\n        ngModuleDef = compiler.compileNgModule(angularCoreEnv, `ng:///${moduleType.name}/ɵmod.js`, {\n          type: moduleType,\n          bootstrap: flatten(ngModule.bootstrap || EMPTY_ARRAY).map(resolveForwardRef),\n          declarations: declarations.map(resolveForwardRef),\n          imports: flatten(ngModule.imports || EMPTY_ARRAY).map(resolveForwardRef).map(expandModuleWithProviders),\n          exports: flatten(ngModule.exports || EMPTY_ARRAY).map(resolveForwardRef).map(expandModuleWithProviders),\n          schemas: ngModule.schemas ? flatten(ngModule.schemas) : null,\n          id: ngModule.id || null\n        });\n        // Set `schemas` on ngModuleDef to an empty array in JIT mode to indicate that runtime\n        // should verify that there are no unknown elements in a template. In AOT mode, that check\n        // happens at compile time and `schemas` information is not present on Component and Module\n        // defs after compilation (so the check doesn't happen the second time at runtime).\n        if (!ngModuleDef.schemas) {\n          ngModuleDef.schemas = [];\n        }\n      }\n      return ngModuleDef;\n    }\n  });\n  let ngFactoryDef = null;\n  Object.defineProperty(moduleType, NG_FACTORY_DEF, {\n    get: () => {\n      if (ngFactoryDef === null) {\n        const compiler = getCompilerFacade({\n          usage: 0 /* JitCompilerUsage.Decorator */,\n          kind: 'NgModule',\n          type: moduleType\n        });\n        ngFactoryDef = compiler.compileFactory(angularCoreEnv, `ng:///${moduleType.name}/ɵfac.js`, {\n          name: moduleType.name,\n          type: moduleType,\n          deps: reflectDependencies(moduleType),\n          target: compiler.FactoryTarget.NgModule,\n          typeArgumentCount: 0\n        });\n      }\n      return ngFactoryDef;\n    },\n    // Make the property configurable in dev mode to allow overriding in tests\n    configurable: !!ngDevMode\n  });\n  let ngInjectorDef = null;\n  Object.defineProperty(moduleType, NG_INJ_DEF, {\n    get: () => {\n      if (ngInjectorDef === null) {\n        ngDevMode && verifySemanticsOfNgModuleDef(moduleType, allowDuplicateDeclarationsInRoot);\n        const meta = {\n          name: moduleType.name,\n          type: moduleType,\n          providers: ngModule.providers || EMPTY_ARRAY,\n          imports: [(ngModule.imports || EMPTY_ARRAY).map(resolveForwardRef), (ngModule.exports || EMPTY_ARRAY).map(resolveForwardRef)]\n        };\n        const compiler = getCompilerFacade({\n          usage: 0 /* JitCompilerUsage.Decorator */,\n          kind: 'NgModule',\n          type: moduleType\n        });\n        ngInjectorDef = compiler.compileInjector(angularCoreEnv, `ng:///${moduleType.name}/ɵinj.js`, meta);\n      }\n      return ngInjectorDef;\n    },\n    // Make the property configurable in dev mode to allow overriding in tests\n    configurable: !!ngDevMode\n  });\n}\nfunction generateStandaloneInDeclarationsError(type, location) {\n  const prefix = `Unexpected \"${stringifyForError(type)}\" found in the \"declarations\" array of the`;\n  const suffix = `\"${stringifyForError(type)}\" is marked as standalone and can't be declared ` + 'in any NgModule - did you intend to import it instead (by adding it to the \"imports\" array)?';\n  return `${prefix} ${location}, ${suffix}`;\n}\nfunction verifySemanticsOfNgModuleDef(moduleType, allowDuplicateDeclarationsInRoot, importingModule) {\n  if (verifiedNgModule.get(moduleType)) return;\n  // skip verifications of standalone components, directives, and pipes\n  if (isStandalone(moduleType)) return;\n  verifiedNgModule.set(moduleType, true);\n  moduleType = resolveForwardRef(moduleType);\n  let ngModuleDef;\n  if (importingModule) {\n    ngModuleDef = getNgModuleDef(moduleType);\n    if (!ngModuleDef) {\n      throw new Error(`Unexpected value '${moduleType.name}' imported by the module '${importingModule.name}'. Please add an @NgModule annotation.`);\n    }\n  } else {\n    ngModuleDef = getNgModuleDef(moduleType, true);\n  }\n  const errors = [];\n  const declarations = maybeUnwrapFn(ngModuleDef.declarations);\n  const imports = maybeUnwrapFn(ngModuleDef.imports);\n  flatten(imports).map(unwrapModuleWithProvidersImports).forEach(modOrStandaloneCmpt => {\n    verifySemanticsOfNgModuleImport(modOrStandaloneCmpt, moduleType);\n    verifySemanticsOfNgModuleDef(modOrStandaloneCmpt, false, moduleType);\n  });\n  const exports = maybeUnwrapFn(ngModuleDef.exports);\n  declarations.forEach(verifyDeclarationsHaveDefinitions);\n  declarations.forEach(verifyDirectivesHaveSelector);\n  declarations.forEach(declarationType => verifyNotStandalone(declarationType, moduleType));\n  const combinedDeclarations = [...declarations.map(resolveForwardRef), ...flatten(imports.map(computeCombinedExports)).map(resolveForwardRef)];\n  exports.forEach(verifyExportsAreDeclaredOrReExported);\n  declarations.forEach(decl => verifyDeclarationIsUnique(decl, allowDuplicateDeclarationsInRoot));\n  const ngModule = getAnnotation(moduleType, 'NgModule');\n  if (ngModule) {\n    ngModule.imports && flatten(ngModule.imports).map(unwrapModuleWithProvidersImports).forEach(mod => {\n      verifySemanticsOfNgModuleImport(mod, moduleType);\n      verifySemanticsOfNgModuleDef(mod, false, moduleType);\n    });\n    ngModule.bootstrap && deepForEach(ngModule.bootstrap, verifyCorrectBootstrapType);\n    ngModule.bootstrap && deepForEach(ngModule.bootstrap, verifyComponentIsPartOfNgModule);\n  }\n  // Throw Error if any errors were detected.\n  if (errors.length) {\n    throw new Error(errors.join('\\n'));\n  }\n  ////////////////////////////////////////////////////////////////////////////////////////////////\n  function verifyDeclarationsHaveDefinitions(type) {\n    type = resolveForwardRef(type);\n    const def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef$1(type);\n    if (!def) {\n      errors.push(`Unexpected value '${stringifyForError(type)}' declared by the module '${stringifyForError(moduleType)}'. Please add a @Pipe/@Directive/@Component annotation.`);\n    }\n  }\n  function verifyDirectivesHaveSelector(type) {\n    type = resolveForwardRef(type);\n    const def = getDirectiveDef(type);\n    if (!getComponentDef(type) && def && def.selectors.length == 0) {\n      errors.push(`Directive ${stringifyForError(type)} has no selector, please add it!`);\n    }\n  }\n  function verifyNotStandalone(type, moduleType) {\n    type = resolveForwardRef(type);\n    const def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef$1(type);\n    if (def?.standalone) {\n      const location = `\"${stringifyForError(moduleType)}\" NgModule`;\n      errors.push(generateStandaloneInDeclarationsError(type, location));\n    }\n  }\n  function verifyExportsAreDeclaredOrReExported(type) {\n    type = resolveForwardRef(type);\n    const kind = getComponentDef(type) && 'component' || getDirectiveDef(type) && 'directive' || getPipeDef$1(type) && 'pipe';\n    if (kind) {\n      // only checked if we are declared as Component, Directive, or Pipe\n      // Modules don't need to be declared or imported.\n      if (combinedDeclarations.lastIndexOf(type) === -1) {\n        // We are exporting something which we don't explicitly declare or import.\n        errors.push(`Can't export ${kind} ${stringifyForError(type)} from ${stringifyForError(moduleType)} as it was neither declared nor imported!`);\n      }\n    }\n  }\n  function verifyDeclarationIsUnique(type, suppressErrors) {\n    type = resolveForwardRef(type);\n    const existingModule = ownerNgModule.get(type);\n    if (existingModule && existingModule !== moduleType) {\n      if (!suppressErrors) {\n        const modules = [existingModule, moduleType].map(stringifyForError).sort();\n        errors.push(`Type ${stringifyForError(type)} is part of the declarations of 2 modules: ${modules[0]} and ${modules[1]}! ` + `Please consider moving ${stringifyForError(type)} to a higher module that imports ${modules[0]} and ${modules[1]}. ` + `You can also create a new NgModule that exports and includes ${stringifyForError(type)} then import that NgModule in ${modules[0]} and ${modules[1]}.`);\n      }\n    } else {\n      // Mark type as having owner.\n      ownerNgModule.set(type, moduleType);\n    }\n  }\n  function verifyComponentIsPartOfNgModule(type) {\n    type = resolveForwardRef(type);\n    const existingModule = ownerNgModule.get(type);\n    if (!existingModule && !isStandalone(type)) {\n      errors.push(`Component ${stringifyForError(type)} is not part of any NgModule or the module has not been imported into your module.`);\n    }\n  }\n  function verifyCorrectBootstrapType(type) {\n    type = resolveForwardRef(type);\n    if (!getComponentDef(type)) {\n      errors.push(`${stringifyForError(type)} cannot be used as an entry component.`);\n    }\n    if (isStandalone(type)) {\n      // Note: this error should be the same as the\n      // `NGMODULE_BOOTSTRAP_IS_STANDALONE` one in AOT compiler.\n      errors.push(`The \\`${stringifyForError(type)}\\` class is a standalone component, which can ` + `not be used in the \\`@NgModule.bootstrap\\` array. Use the \\`bootstrapApplication\\` ` + `function for bootstrap instead.`);\n    }\n  }\n  function verifySemanticsOfNgModuleImport(type, importingModule) {\n    type = resolveForwardRef(type);\n    const directiveDef = getComponentDef(type) || getDirectiveDef(type);\n    if (directiveDef !== null && !directiveDef.standalone) {\n      throw new Error(`Unexpected directive '${type.name}' imported by the module '${importingModule.name}'. Please add an @NgModule annotation.`);\n    }\n    const pipeDef = getPipeDef$1(type);\n    if (pipeDef !== null && !pipeDef.standalone) {\n      throw new Error(`Unexpected pipe '${type.name}' imported by the module '${importingModule.name}'. Please add an @NgModule annotation.`);\n    }\n  }\n}\nfunction unwrapModuleWithProvidersImports(typeOrWithProviders) {\n  typeOrWithProviders = resolveForwardRef(typeOrWithProviders);\n  return typeOrWithProviders.ngModule || typeOrWithProviders;\n}\nfunction getAnnotation(type, name) {\n  let annotation = null;\n  collect(type.__annotations__);\n  collect(type.decorators);\n  return annotation;\n  function collect(annotations) {\n    if (annotations) {\n      annotations.forEach(readAnnotation);\n    }\n  }\n  function readAnnotation(decorator) {\n    if (!annotation) {\n      const proto = Object.getPrototypeOf(decorator);\n      if (proto.ngMetadataName == name) {\n        annotation = decorator;\n      } else if (decorator.type) {\n        const proto = Object.getPrototypeOf(decorator.type);\n        if (proto.ngMetadataName == name) {\n          annotation = decorator.args[0];\n        }\n      }\n    }\n  }\n}\n/**\n * Keep track of compiled components. This is needed because in tests we often want to compile the\n * same component with more than one NgModule. This would cause an error unless we reset which\n * NgModule the component belongs to. We keep the list of compiled components here so that the\n * TestBed can reset it later.\n */\nlet ownerNgModule = /*#__PURE__*/new WeakMap();\nlet verifiedNgModule = /*#__PURE__*/new WeakMap();\nfunction resetCompiledComponents() {\n  ownerNgModule = new WeakMap();\n  verifiedNgModule = new WeakMap();\n  moduleQueue.length = 0;\n  GENERATED_COMP_IDS.clear();\n}\n/**\n * Computes the combined declarations of explicit declarations, as well as declarations inherited by\n * traversing the exports of imported modules.\n * @param type\n */\nfunction computeCombinedExports(type) {\n  type = resolveForwardRef(type);\n  const ngModuleDef = getNgModuleDef(type);\n  // a standalone component, directive or pipe\n  if (ngModuleDef === null) {\n    return [type];\n  }\n  return flatten(maybeUnwrapFn(ngModuleDef.exports).map(type => {\n    const ngModuleDef = getNgModuleDef(type);\n    if (ngModuleDef) {\n      verifySemanticsOfNgModuleDef(type, false);\n      return computeCombinedExports(type);\n    } else {\n      return type;\n    }\n  }));\n}\n/**\n * Some declared components may be compiled asynchronously, and thus may not have their\n * ɵcmp set yet. If this is the case, then a reference to the module is written into\n * the `ngSelectorScope` property of the declared type.\n */\nfunction setScopeOnDeclaredComponents(moduleType, ngModule) {\n  const declarations = flatten(ngModule.declarations || EMPTY_ARRAY);\n  const transitiveScopes = transitiveScopesFor(moduleType);\n  declarations.forEach(declaration => {\n    declaration = resolveForwardRef(declaration);\n    if (declaration.hasOwnProperty(NG_COMP_DEF)) {\n      // A `ɵcmp` field exists - go ahead and patch the component directly.\n      const component = declaration;\n      const componentDef = getComponentDef(component);\n      patchComponentDefWithScope(componentDef, transitiveScopes);\n    } else if (!declaration.hasOwnProperty(NG_DIR_DEF) && !declaration.hasOwnProperty(NG_PIPE_DEF)) {\n      // Set `ngSelectorScope` for future reference when the component compilation finishes.\n      declaration.ngSelectorScope = moduleType;\n    }\n  });\n}\n/**\n * Patch the definition of a component with directives and pipes from the compilation scope of\n * a given module.\n */\nfunction patchComponentDefWithScope(componentDef, transitiveScopes) {\n  componentDef.directiveDefs = () => Array.from(transitiveScopes.compilation.directives).map(dir => dir.hasOwnProperty(NG_COMP_DEF) ? getComponentDef(dir) : getDirectiveDef(dir)).filter(def => !!def);\n  componentDef.pipeDefs = () => Array.from(transitiveScopes.compilation.pipes).map(pipe => getPipeDef$1(pipe));\n  componentDef.schemas = transitiveScopes.schemas;\n  // Since we avoid Components/Directives/Pipes recompiling in case there are no overrides, we\n  // may face a problem where previously compiled defs available to a given Component/Directive\n  // are cached in TView and may become stale (in case any of these defs gets recompiled). In\n  // order to avoid this problem, we force fresh TView to be created.\n  componentDef.tView = null;\n}\n/**\n * Compute the pair of transitive scopes (compilation scope and exported scope) for a given type\n * (either a NgModule or a standalone component / directive / pipe).\n */\nfunction transitiveScopesFor(type) {\n  if (isNgModule(type)) {\n    if (USE_RUNTIME_DEPS_TRACKER_FOR_JIT) {\n      const scope = depsTracker.getNgModuleScope(type);\n      const def = getNgModuleDef(type, true);\n      return {\n        schemas: def.schemas || null,\n        ...scope\n      };\n    } else {\n      return transitiveScopesForNgModule(type);\n    }\n  } else if (isStandalone(type)) {\n    const directiveDef = getComponentDef(type) || getDirectiveDef(type);\n    if (directiveDef !== null) {\n      return {\n        schemas: null,\n        compilation: {\n          directives: new Set(),\n          pipes: new Set()\n        },\n        exported: {\n          directives: new Set([type]),\n          pipes: new Set()\n        }\n      };\n    }\n    const pipeDef = getPipeDef$1(type);\n    if (pipeDef !== null) {\n      return {\n        schemas: null,\n        compilation: {\n          directives: new Set(),\n          pipes: new Set()\n        },\n        exported: {\n          directives: new Set(),\n          pipes: new Set([type])\n        }\n      };\n    }\n  }\n  // TODO: change the error message to be more user-facing and take standalone into account\n  throw new Error(`${type.name} does not have a module def (ɵmod property)`);\n}\n/**\n * Compute the pair of transitive scopes (compilation scope and exported scope) for a given module.\n *\n * This operation is memoized and the result is cached on the module's definition. This function can\n * be called on modules with components that have not fully compiled yet, but the result should not\n * be used until they have.\n *\n * @param moduleType module that transitive scope should be calculated for.\n */\nfunction transitiveScopesForNgModule(moduleType) {\n  const def = getNgModuleDef(moduleType, true);\n  if (def.transitiveCompileScopes !== null) {\n    return def.transitiveCompileScopes;\n  }\n  const scopes = {\n    schemas: def.schemas || null,\n    compilation: {\n      directives: new Set(),\n      pipes: new Set()\n    },\n    exported: {\n      directives: new Set(),\n      pipes: new Set()\n    }\n  };\n  maybeUnwrapFn(def.imports).forEach(imported => {\n    // When this module imports another, the imported module's exported directives and pipes are\n    // added to the compilation scope of this module.\n    const importedScope = transitiveScopesFor(imported);\n    importedScope.exported.directives.forEach(entry => scopes.compilation.directives.add(entry));\n    importedScope.exported.pipes.forEach(entry => scopes.compilation.pipes.add(entry));\n  });\n  maybeUnwrapFn(def.declarations).forEach(declared => {\n    const declaredWithDefs = declared;\n    if (getPipeDef$1(declaredWithDefs)) {\n      scopes.compilation.pipes.add(declared);\n    } else {\n      // Either declared has a ɵcmp or ɵdir, or it's a component which hasn't\n      // had its template compiled yet. In either case, it gets added to the compilation's\n      // directives.\n      scopes.compilation.directives.add(declared);\n    }\n  });\n  maybeUnwrapFn(def.exports).forEach(exported => {\n    const exportedType = exported;\n    // Either the type is a module, a pipe, or a component/directive (which may not have a\n    // ɵcmp as it might be compiled asynchronously).\n    if (isNgModule(exportedType)) {\n      // When this module exports another, the exported module's exported directives and pipes are\n      // added to both the compilation and exported scopes of this module.\n      const exportedScope = transitiveScopesFor(exportedType);\n      exportedScope.exported.directives.forEach(entry => {\n        scopes.compilation.directives.add(entry);\n        scopes.exported.directives.add(entry);\n      });\n      exportedScope.exported.pipes.forEach(entry => {\n        scopes.compilation.pipes.add(entry);\n        scopes.exported.pipes.add(entry);\n      });\n    } else if (getPipeDef$1(exportedType)) {\n      scopes.exported.pipes.add(exportedType);\n    } else {\n      scopes.exported.directives.add(exportedType);\n    }\n  });\n  def.transitiveCompileScopes = scopes;\n  return scopes;\n}\nfunction expandModuleWithProviders(value) {\n  if (isModuleWithProviders(value)) {\n    return value.ngModule;\n  }\n  return value;\n}\n\n/**\n * Keep track of the compilation depth to avoid reentrancy issues during JIT compilation. This\n * matters in the following scenario:\n *\n * Consider a component 'A' that extends component 'B', both declared in module 'M'. During\n * the compilation of 'A' the definition of 'B' is requested to capture the inheritance chain,\n * potentially triggering compilation of 'B'. If this nested compilation were to trigger\n * `flushModuleScopingQueueAsMuchAsPossible` it may happen that module 'M' is still pending in the\n * queue, resulting in 'A' and 'B' to be patched with the NgModule scope. As the compilation of\n * 'A' is still in progress, this would introduce a circular dependency on its compilation. To avoid\n * this issue, the module scope queue is only flushed for compilations at the depth 0, to ensure\n * all compilations have finished.\n */\nlet compilationDepth = 0;\n/**\n * Compile an Angular component according to its decorator metadata, and patch the resulting\n * component def (ɵcmp) onto the component type.\n *\n * Compilation may be asynchronous (due to the need to resolve URLs for the component template or\n * other resources, for example). In the event that compilation is not immediate, `compileComponent`\n * will enqueue resource resolution into a global queue and will fail to return the `ɵcmp`\n * until the global queue has been resolved with a call to `resolveComponentResources`.\n */\nfunction compileComponent(type, metadata) {\n  // Initialize ngDevMode. This must be the first statement in compileComponent.\n  // See the `initNgDevMode` docstring for more information.\n  (typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode();\n  let ngComponentDef = null;\n  // Metadata may have resources which need to be resolved.\n  maybeQueueResolutionOfComponentResources(type, metadata);\n  // Note that we're using the same function as `Directive`, because that's only subset of metadata\n  // that we need to create the ngFactoryDef. We're avoiding using the component metadata\n  // because we'd have to resolve the asynchronous templates.\n  addDirectiveFactoryDef(type, metadata);\n  Object.defineProperty(type, NG_COMP_DEF, {\n    get: () => {\n      if (ngComponentDef === null) {\n        const compiler = getCompilerFacade({\n          usage: 0 /* JitCompilerUsage.Decorator */,\n          kind: 'component',\n          type: type\n        });\n        if (componentNeedsResolution(metadata)) {\n          const error = [`Component '${type.name}' is not resolved:`];\n          if (metadata.templateUrl) {\n            error.push(` - templateUrl: ${metadata.templateUrl}`);\n          }\n          if (metadata.styleUrls && metadata.styleUrls.length) {\n            error.push(` - styleUrls: ${JSON.stringify(metadata.styleUrls)}`);\n          }\n          if (metadata.styleUrl) {\n            error.push(` - styleUrl: ${metadata.styleUrl}`);\n          }\n          error.push(`Did you run and wait for 'resolveComponentResources()'?`);\n          throw new Error(error.join('\\n'));\n        }\n        // This const was called `jitOptions` previously but had to be renamed to `options` because\n        // of a bug with Terser that caused optimized JIT builds to throw a `ReferenceError`.\n        // This bug was investigated in https://github.com/angular/angular-cli/issues/17264.\n        // We should not rename it back until https://github.com/terser/terser/issues/615 is fixed.\n        const options = getJitOptions();\n        let preserveWhitespaces = metadata.preserveWhitespaces;\n        if (preserveWhitespaces === undefined) {\n          if (options !== null && options.preserveWhitespaces !== undefined) {\n            preserveWhitespaces = options.preserveWhitespaces;\n          } else {\n            preserveWhitespaces = false;\n          }\n        }\n        let encapsulation = metadata.encapsulation;\n        if (encapsulation === undefined) {\n          if (options !== null && options.defaultEncapsulation !== undefined) {\n            encapsulation = options.defaultEncapsulation;\n          } else {\n            encapsulation = ViewEncapsulation$1.Emulated;\n          }\n        }\n        const templateUrl = metadata.templateUrl || `ng:///${type.name}/template.html`;\n        const meta = {\n          ...directiveMetadata(type, metadata),\n          typeSourceSpan: compiler.createParseSourceSpan('Component', type.name, templateUrl),\n          template: metadata.template || '',\n          preserveWhitespaces,\n          styles: typeof metadata.styles === 'string' ? [metadata.styles] : metadata.styles || EMPTY_ARRAY,\n          animations: metadata.animations,\n          // JIT components are always compiled against an empty set of `declarations`. Instead, the\n          // `directiveDefs` and `pipeDefs` are updated at a later point:\n          //  * for NgModule-based components, they're set when the NgModule which declares the\n          //    component resolves in the module scoping queue\n          //  * for standalone components, they're set just below, after `compileComponent`.\n          declarations: [],\n          changeDetection: metadata.changeDetection,\n          encapsulation,\n          interpolation: metadata.interpolation,\n          viewProviders: metadata.viewProviders || null\n        };\n        compilationDepth++;\n        try {\n          if (meta.usesInheritance) {\n            addDirectiveDefToUndecoratedParents(type);\n          }\n          ngComponentDef = compiler.compileComponent(angularCoreEnv, templateUrl, meta);\n          if (metadata.standalone) {\n            // Patch the component definition for standalone components with `directiveDefs` and\n            // `pipeDefs` functions which lazily compute the directives/pipes available in the\n            // standalone component. Also set `dependencies` to the lazily resolved list of imports.\n            const imports = flatten(metadata.imports || EMPTY_ARRAY);\n            const {\n              directiveDefs,\n              pipeDefs\n            } = getStandaloneDefFunctions(type, imports);\n            ngComponentDef.directiveDefs = directiveDefs;\n            ngComponentDef.pipeDefs = pipeDefs;\n            ngComponentDef.dependencies = () => imports.map(resolveForwardRef);\n          }\n        } finally {\n          // Ensure that the compilation depth is decremented even when the compilation failed.\n          compilationDepth--;\n        }\n        if (compilationDepth === 0) {\n          // When NgModule decorator executed, we enqueued the module definition such that\n          // it would only dequeue and add itself as module scope to all of its declarations,\n          // but only if  if all of its declarations had resolved. This call runs the check\n          // to see if any modules that are in the queue can be dequeued and add scope to\n          // their declarations.\n          flushModuleScopingQueueAsMuchAsPossible();\n        }\n        // If component compilation is async, then the @NgModule annotation which declares the\n        // component may execute and set an ngSelectorScope property on the component type. This\n        // allows the component to patch itself with directiveDefs from the module after it\n        // finishes compiling.\n        if (hasSelectorScope(type)) {\n          const scopes = transitiveScopesFor(type.ngSelectorScope);\n          patchComponentDefWithScope(ngComponentDef, scopes);\n        }\n        if (metadata.schemas) {\n          if (metadata.standalone) {\n            ngComponentDef.schemas = metadata.schemas;\n          } else {\n            throw new Error(`The 'schemas' was specified for the ${stringifyForError(type)} but is only valid on a component that is standalone.`);\n          }\n        } else if (metadata.standalone) {\n          ngComponentDef.schemas = [];\n        }\n      }\n      return ngComponentDef;\n    },\n    // Make the property configurable in dev mode to allow overriding in tests\n    configurable: !!ngDevMode\n  });\n}\n/**\n * Build memoized `directiveDefs` and `pipeDefs` functions for the component definition of a\n * standalone component, which process `imports` and filter out directives and pipes. The use of\n * memoized functions here allows for the delayed resolution of any `forwardRef`s present in the\n * component's `imports`.\n */\nfunction getStandaloneDefFunctions(type, imports) {\n  let cachedDirectiveDefs = null;\n  let cachedPipeDefs = null;\n  const directiveDefs = () => {\n    if (!USE_RUNTIME_DEPS_TRACKER_FOR_JIT) {\n      if (cachedDirectiveDefs === null) {\n        // Standalone components are always able to self-reference, so include the component's own\n        // definition in its `directiveDefs`.\n        cachedDirectiveDefs = [getComponentDef(type)];\n        const seen = new Set([type]);\n        for (const rawDep of imports) {\n          ngDevMode && verifyStandaloneImport(rawDep, type);\n          const dep = resolveForwardRef(rawDep);\n          if (seen.has(dep)) {\n            continue;\n          }\n          seen.add(dep);\n          if (!!getNgModuleDef(dep)) {\n            const scope = transitiveScopesFor(dep);\n            for (const dir of scope.exported.directives) {\n              const def = getComponentDef(dir) || getDirectiveDef(dir);\n              if (def && !seen.has(dir)) {\n                seen.add(dir);\n                cachedDirectiveDefs.push(def);\n              }\n            }\n          } else {\n            const def = getComponentDef(dep) || getDirectiveDef(dep);\n            if (def) {\n              cachedDirectiveDefs.push(def);\n            }\n          }\n        }\n      }\n      return cachedDirectiveDefs;\n    } else {\n      if (ngDevMode) {\n        for (const rawDep of imports) {\n          verifyStandaloneImport(rawDep, type);\n        }\n      }\n      if (!isComponent(type)) {\n        return [];\n      }\n      const scope = depsTracker.getStandaloneComponentScope(type, imports);\n      return [...scope.compilation.directives].map(p => getComponentDef(p) || getDirectiveDef(p)).filter(d => d !== null);\n    }\n  };\n  const pipeDefs = () => {\n    if (!USE_RUNTIME_DEPS_TRACKER_FOR_JIT) {\n      if (cachedPipeDefs === null) {\n        cachedPipeDefs = [];\n        const seen = new Set();\n        for (const rawDep of imports) {\n          const dep = resolveForwardRef(rawDep);\n          if (seen.has(dep)) {\n            continue;\n          }\n          seen.add(dep);\n          if (!!getNgModuleDef(dep)) {\n            const scope = transitiveScopesFor(dep);\n            for (const pipe of scope.exported.pipes) {\n              const def = getPipeDef$1(pipe);\n              if (def && !seen.has(pipe)) {\n                seen.add(pipe);\n                cachedPipeDefs.push(def);\n              }\n            }\n          } else {\n            const def = getPipeDef$1(dep);\n            if (def) {\n              cachedPipeDefs.push(def);\n            }\n          }\n        }\n      }\n      return cachedPipeDefs;\n    } else {\n      if (ngDevMode) {\n        for (const rawDep of imports) {\n          verifyStandaloneImport(rawDep, type);\n        }\n      }\n      if (!isComponent(type)) {\n        return [];\n      }\n      const scope = depsTracker.getStandaloneComponentScope(type, imports);\n      return [...scope.compilation.pipes].map(p => getPipeDef$1(p)).filter(d => d !== null);\n    }\n  };\n  return {\n    directiveDefs,\n    pipeDefs\n  };\n}\nfunction hasSelectorScope(component) {\n  return component.ngSelectorScope !== undefined;\n}\n/**\n * Compile an Angular directive according to its decorator metadata, and patch the resulting\n * directive def onto the component type.\n *\n * In the event that compilation is not immediate, `compileDirective` will return a `Promise` which\n * will resolve when compilation completes and the directive becomes usable.\n */\nfunction compileDirective(type, directive) {\n  let ngDirectiveDef = null;\n  addDirectiveFactoryDef(type, directive || {});\n  Object.defineProperty(type, NG_DIR_DEF, {\n    get: () => {\n      if (ngDirectiveDef === null) {\n        // `directive` can be null in the case of abstract directives as a base class\n        // that use `@Directive()` with no selector. In that case, pass empty object to the\n        // `directiveMetadata` function instead of null.\n        const meta = getDirectiveMetadata(type, directive || {});\n        const compiler = getCompilerFacade({\n          usage: 0 /* JitCompilerUsage.Decorator */,\n          kind: 'directive',\n          type\n        });\n        ngDirectiveDef = compiler.compileDirective(angularCoreEnv, meta.sourceMapUrl, meta.metadata);\n      }\n      return ngDirectiveDef;\n    },\n    // Make the property configurable in dev mode to allow overriding in tests\n    configurable: !!ngDevMode\n  });\n}\nfunction getDirectiveMetadata(type, metadata) {\n  const name = type && type.name;\n  const sourceMapUrl = `ng:///${name}/ɵdir.js`;\n  const compiler = getCompilerFacade({\n    usage: 0 /* JitCompilerUsage.Decorator */,\n    kind: 'directive',\n    type\n  });\n  const facade = directiveMetadata(type, metadata);\n  facade.typeSourceSpan = compiler.createParseSourceSpan('Directive', name, sourceMapUrl);\n  if (facade.usesInheritance) {\n    addDirectiveDefToUndecoratedParents(type);\n  }\n  return {\n    metadata: facade,\n    sourceMapUrl\n  };\n}\nfunction addDirectiveFactoryDef(type, metadata) {\n  let ngFactoryDef = null;\n  Object.defineProperty(type, NG_FACTORY_DEF, {\n    get: () => {\n      if (ngFactoryDef === null) {\n        const meta = getDirectiveMetadata(type, metadata);\n        const compiler = getCompilerFacade({\n          usage: 0 /* JitCompilerUsage.Decorator */,\n          kind: 'directive',\n          type\n        });\n        ngFactoryDef = compiler.compileFactory(angularCoreEnv, `ng:///${type.name}/ɵfac.js`, {\n          name: meta.metadata.name,\n          type: meta.metadata.type,\n          typeArgumentCount: 0,\n          deps: reflectDependencies(type),\n          target: compiler.FactoryTarget.Directive\n        });\n      }\n      return ngFactoryDef;\n    },\n    // Make the property configurable in dev mode to allow overriding in tests\n    configurable: !!ngDevMode\n  });\n}\nfunction extendsDirectlyFromObject(type) {\n  return Object.getPrototypeOf(type.prototype) === Object.prototype;\n}\n/**\n * Extract the `R3DirectiveMetadata` for a particular directive (either a `Directive` or a\n * `Component`).\n */\nfunction directiveMetadata(type, metadata) {\n  // Reflect inputs and outputs.\n  const reflect = getReflect();\n  const propMetadata = reflect.ownPropMetadata(type);\n  return {\n    name: type.name,\n    type: type,\n    selector: metadata.selector !== undefined ? metadata.selector : null,\n    host: metadata.host || EMPTY_OBJ,\n    propMetadata: propMetadata,\n    inputs: metadata.inputs || EMPTY_ARRAY,\n    outputs: metadata.outputs || EMPTY_ARRAY,\n    queries: extractQueriesMetadata(type, propMetadata, isContentQuery),\n    lifecycle: {\n      usesOnChanges: reflect.hasLifecycleHook(type, 'ngOnChanges')\n    },\n    typeSourceSpan: null,\n    usesInheritance: !extendsDirectlyFromObject(type),\n    exportAs: extractExportAs(metadata.exportAs),\n    providers: metadata.providers || null,\n    viewQueries: extractQueriesMetadata(type, propMetadata, isViewQuery),\n    isStandalone: !!metadata.standalone,\n    isSignal: !!metadata.signals,\n    hostDirectives: metadata.hostDirectives?.map(directive => typeof directive === 'function' ? {\n      directive\n    } : directive) || null\n  };\n}\n/**\n * Adds a directive definition to all parent classes of a type that don't have an Angular decorator.\n */\nfunction addDirectiveDefToUndecoratedParents(type) {\n  const objPrototype = Object.prototype;\n  let parent = Object.getPrototypeOf(type.prototype).constructor;\n  // Go up the prototype until we hit `Object`.\n  while (parent && parent !== objPrototype) {\n    // Since inheritance works if the class was annotated already, we only need to add\n    // the def if there are no annotations and the def hasn't been created already.\n    if (!getDirectiveDef(parent) && !getComponentDef(parent) && shouldAddAbstractDirective(parent)) {\n      compileDirective(parent, null);\n    }\n    parent = Object.getPrototypeOf(parent);\n  }\n}\nfunction convertToR3QueryPredicate(selector) {\n  return typeof selector === 'string' ? splitByComma(selector) : resolveForwardRef(selector);\n}\nfunction convertToR3QueryMetadata(propertyName, ann) {\n  return {\n    propertyName: propertyName,\n    predicate: convertToR3QueryPredicate(ann.selector),\n    descendants: ann.descendants,\n    first: ann.first,\n    read: ann.read ? ann.read : null,\n    static: !!ann.static,\n    emitDistinctChangesOnly: !!ann.emitDistinctChangesOnly,\n    isSignal: !!ann.isSignal\n  };\n}\nfunction extractQueriesMetadata(type, propMetadata, isQueryAnn) {\n  const queriesMeta = [];\n  for (const field in propMetadata) {\n    if (propMetadata.hasOwnProperty(field)) {\n      const annotations = propMetadata[field];\n      annotations.forEach(ann => {\n        if (isQueryAnn(ann)) {\n          if (!ann.selector) {\n            throw new Error(`Can't construct a query for the property \"${field}\" of ` + `\"${stringifyForError(type)}\" since the query selector wasn't defined.`);\n          }\n          if (annotations.some(isInputAnnotation)) {\n            throw new Error(`Cannot combine @Input decorators with query decorators`);\n          }\n          queriesMeta.push(convertToR3QueryMetadata(field, ann));\n        }\n      });\n    }\n  }\n  return queriesMeta;\n}\nfunction extractExportAs(exportAs) {\n  return exportAs === undefined ? null : splitByComma(exportAs);\n}\nfunction isContentQuery(value) {\n  const name = value.ngMetadataName;\n  return name === 'ContentChild' || name === 'ContentChildren';\n}\nfunction isViewQuery(value) {\n  const name = value.ngMetadataName;\n  return name === 'ViewChild' || name === 'ViewChildren';\n}\nfunction isInputAnnotation(value) {\n  return value.ngMetadataName === 'Input';\n}\nfunction splitByComma(value) {\n  return value.split(',').map(piece => piece.trim());\n}\nconst LIFECYCLE_HOOKS = ['ngOnChanges', 'ngOnInit', 'ngOnDestroy', 'ngDoCheck', 'ngAfterViewInit', 'ngAfterViewChecked', 'ngAfterContentInit', 'ngAfterContentChecked'];\nfunction shouldAddAbstractDirective(type) {\n  const reflect = getReflect();\n  if (LIFECYCLE_HOOKS.some(hookName => reflect.hasLifecycleHook(type, hookName))) {\n    return true;\n  }\n  const propMetadata = reflect.propMetadata(type);\n  for (const field in propMetadata) {\n    const annotations = propMetadata[field];\n    for (let i = 0; i < annotations.length; i++) {\n      const current = annotations[i];\n      const metadataName = current.ngMetadataName;\n      if (isInputAnnotation(current) || isContentQuery(current) || isViewQuery(current) || metadataName === 'Output' || metadataName === 'HostBinding' || metadataName === 'HostListener') {\n        return true;\n      }\n    }\n  }\n  return false;\n}\nfunction compilePipe(type, meta) {\n  let ngPipeDef = null;\n  let ngFactoryDef = null;\n  Object.defineProperty(type, NG_FACTORY_DEF, {\n    get: () => {\n      if (ngFactoryDef === null) {\n        const metadata = getPipeMetadata(type, meta);\n        const compiler = getCompilerFacade({\n          usage: 0 /* JitCompilerUsage.Decorator */,\n          kind: 'pipe',\n          type: metadata.type\n        });\n        ngFactoryDef = compiler.compileFactory(angularCoreEnv, `ng:///${metadata.name}/ɵfac.js`, {\n          name: metadata.name,\n          type: metadata.type,\n          typeArgumentCount: 0,\n          deps: reflectDependencies(type),\n          target: compiler.FactoryTarget.Pipe\n        });\n      }\n      return ngFactoryDef;\n    },\n    // Make the property configurable in dev mode to allow overriding in tests\n    configurable: !!ngDevMode\n  });\n  Object.defineProperty(type, NG_PIPE_DEF, {\n    get: () => {\n      if (ngPipeDef === null) {\n        const metadata = getPipeMetadata(type, meta);\n        const compiler = getCompilerFacade({\n          usage: 0 /* JitCompilerUsage.Decorator */,\n          kind: 'pipe',\n          type: metadata.type\n        });\n        ngPipeDef = compiler.compilePipe(angularCoreEnv, `ng:///${metadata.name}/ɵpipe.js`, metadata);\n      }\n      return ngPipeDef;\n    },\n    // Make the property configurable in dev mode to allow overriding in tests\n    configurable: !!ngDevMode\n  });\n}\nfunction getPipeMetadata(type, meta) {\n  return {\n    type: type,\n    name: type.name,\n    pipeName: meta.name,\n    pure: meta.pure !== undefined ? meta.pure : true,\n    isStandalone: !!meta.standalone\n  };\n}\n\n/**\n * Type of the Directive metadata.\n *\n * @publicApi\n */\nconst Directive = /*#__PURE__*/makeDecorator('Directive', (dir = {}) => dir, undefined, undefined, (type, meta) => compileDirective(type, meta));\n/**\n * Component decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Component = /*#__PURE__*/makeDecorator('Component', (c = {}) => ({\n  changeDetection: ChangeDetectionStrategy.Default,\n  ...c\n}), Directive, undefined, (type, meta) => compileComponent(type, meta));\n/**\n * @Annotation\n * @publicApi\n */\nconst Pipe = /*#__PURE__*/makeDecorator('Pipe', p => ({\n  pure: true,\n  ...p\n}), undefined, undefined, (type, meta) => compilePipe(type, meta));\n/**\n * @Annotation\n * @publicApi\n */\nconst Input = /*#__PURE__*/makePropDecorator('Input', arg => {\n  if (!arg) {\n    return {};\n  }\n  return typeof arg === 'string' ? {\n    alias: arg\n  } : arg;\n});\n/**\n * @Annotation\n * @publicApi\n */\nconst Output = /*#__PURE__*/makePropDecorator('Output', alias => ({\n  alias\n}));\n/**\n * @Annotation\n * @publicApi\n */\nconst HostBinding = /*#__PURE__*/makePropDecorator('HostBinding', hostPropertyName => ({\n  hostPropertyName\n}));\n/**\n * Decorator that binds a DOM event to a host listener and supplies configuration metadata.\n * Angular invokes the supplied handler method when the host element emits the specified event,\n * and updates the bound element with the result.\n *\n * If the handler method returns false, applies `preventDefault` on the bound element.\n *\n * @usageNotes\n *\n * The following example declares a directive\n * that attaches a click listener to a button and counts clicks.\n *\n * ```ts\n * @Directive({selector: 'button[counting]'})\n * class CountClicks {\n *   numberOfClicks = 0;\n *\n *   @HostListener('click', ['$event.target'])\n *   onClick(btn) {\n *     console.log('button', btn, 'number of clicks:', this.numberOfClicks++);\n *   }\n * }\n *\n * @Component({\n *   selector: 'app',\n *   template: '<button counting>Increment</button>',\n * })\n * class App {}\n *\n * ```\n *\n * The following example registers another DOM event handler that listens for `Enter` key-press\n * events on the global `window`.\n * ``` ts\n * import { HostListener, Component } from \"@angular/core\";\n *\n * @Component({\n *   selector: 'app',\n *   template: `<h1>Hello, you have pressed enter {{counter}} number of times!</h1> Press enter key\n * to increment the counter.\n *   <button (click)=\"resetCounter()\">Reset Counter</button>`\n * })\n * class AppComponent {\n *   counter = 0;\n *   @HostListener('window:keydown.enter', ['$event'])\n *   handleKeyDown(event: KeyboardEvent) {\n *     this.counter++;\n *   }\n *   resetCounter() {\n *     this.counter = 0;\n *   }\n * }\n * ```\n * The list of valid key names for `keydown` and `keyup` events\n * can be found here:\n * https://www.w3.org/TR/DOM-Level-3-Events-key/#named-key-attribute-values\n *\n * Note that keys can also be combined, e.g. `@HostListener('keydown.shift.a')`.\n *\n * The global target names that can be used to prefix an event name are\n * `document:`, `window:` and `body:`.\n *\n * @Annotation\n * @publicApi\n */\nconst HostListener = /*#__PURE__*/makePropDecorator('HostListener', (eventName, args) => ({\n  eventName,\n  args\n}));\n\n/**\n * @Annotation\n */\nconst NgModule = /*#__PURE__*/makeDecorator('NgModule', ngModule => ngModule, undefined, undefined,\n/**\n * Decorator that marks the following class as an NgModule, and supplies\n * configuration metadata for it.\n *\n * * The `declarations` option configures the compiler\n * with information about what belongs to the NgModule.\n * * The `providers` options configures the NgModule's injector to provide\n * dependencies the NgModule members.\n * * The `imports` and `exports` options bring in members from other modules, and make\n * this module's members available to others.\n */\n(type, meta) => compileNgModule(type, meta));\n\n/**\n * This indirection is needed to free up Component, etc symbols in the public API\n * to be used by the decorator versions of these annotations.\n */\n\n/**\n * @description Represents the version of Angular\n *\n * @publicApi\n */\nclass Version {\n  constructor(full) {\n    this.full = full;\n    const parts = full.split('.');\n    this.major = parts[0];\n    this.minor = parts[1];\n    this.patch = parts.slice(2).join('.');\n  }\n}\n/**\n * @publicApi\n */\nconst VERSION = /*#__PURE__*/new Version('17.3.11');\nlet Console = /*#__PURE__*/(() => {\n  class Console {\n    log(message) {\n      // tslint:disable-next-line:no-console\n      console.log(message);\n    }\n    // Note: for reporting errors use `DOM.logError()` as it is platform specific\n    warn(message) {\n      // tslint:disable-next-line:no-console\n      console.warn(message);\n    }\n    static {\n      this.ɵfac = function Console_Factory(t) {\n        return new (t || Console)();\n      };\n    }\n    static {\n      this.ɵprov = /*@__PURE__*/ɵɵdefineInjectable({\n        token: Console,\n        factory: Console.ɵfac,\n        providedIn: 'platform'\n      });\n    }\n  }\n  return Console;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(Console, [{\n    type: Injectable,\n    args: [{\n      providedIn: 'platform'\n    }]\n  }], null, null);\n})();\n\n/**\n * These are the data structures that our framework injector profiler will fill with data in order\n * to support DI debugging APIs.\n *\n * resolverToTokenToDependencies: Maps an injector to a Map of tokens to an Array of\n * dependencies. Injector -> Token -> Dependencies This is used to support the\n * getDependenciesFromInjectable API, which takes in an injector and a token and returns it's\n * dependencies.\n *\n * resolverToProviders: Maps a DI resolver (an Injector or a TNode) to the providers configured\n * within it This is used to support the getInjectorProviders API, which takes in an injector and\n * returns the providers that it was configured with. Note that for the element injector case we\n * use the TNode instead of the LView as the DI resolver. This is because the registration of\n * providers happens only once per type of TNode. If an injector is created with an identical TNode,\n * the providers for that injector will not be reconfigured.\n *\n * standaloneInjectorToComponent: Maps the injector of a standalone component to the standalone\n * component that it is associated with. Used in the getInjectorProviders API, specificially in the\n * discovery of import paths for each provider. This is necessary because the imports array of a\n * standalone component is processed and configured in its standalone injector, but exists within\n * the component's definition. Because getInjectorProviders takes in an injector, if that injector\n * is the injector of a standalone component, we need to be able to discover the place where the\n * imports array is located (the component) in order to flatten the imports array within it to\n * discover all of it's providers.\n *\n *\n * All of these data structures are instantiated with WeakMaps. This will ensure that the presence\n * of any object in the keys of these maps does not prevent the garbage collector from collecting\n * those objects. Because of this property of WeakMaps, these data structures will never be the\n * source of a memory leak.\n *\n * An example of this advantage: When components are destroyed, we don't need to do\n * any additional work to remove that component from our mappings.\n *\n */\nclass DIDebugData {\n  constructor() {\n    this.resolverToTokenToDependencies = new WeakMap();\n    this.resolverToProviders = new WeakMap();\n    this.standaloneInjectorToComponent = new WeakMap();\n  }\n  reset() {\n    this.resolverToTokenToDependencies = new WeakMap();\n    this.resolverToProviders = new WeakMap();\n    this.standaloneInjectorToComponent = new WeakMap();\n  }\n}\nlet frameworkDIDebugData = /*#__PURE__*/new DIDebugData();\nfunction getFrameworkDIDebugData() {\n  return frameworkDIDebugData;\n}\n/**\n * Initalize default handling of injector events. This handling parses events\n * as they are emitted and constructs the data structures necessary to support\n * some of debug APIs.\n *\n * See handleInjectEvent, handleCreateEvent and handleProviderConfiguredEvent\n * for descriptions of each handler\n *\n * Supported APIs:\n *               - getDependenciesFromInjectable\n *               - getInjectorProviders\n */\nfunction setupFrameworkInjectorProfiler() {\n  frameworkDIDebugData.reset();\n  setInjectorProfiler(injectorProfilerEvent => handleInjectorProfilerEvent(injectorProfilerEvent));\n}\nfunction handleInjectorProfilerEvent(injectorProfilerEvent) {\n  const {\n    context,\n    type\n  } = injectorProfilerEvent;\n  if (type === 0 /* InjectorProfilerEventType.Inject */) {\n    handleInjectEvent(context, injectorProfilerEvent.service);\n  } else if (type === 1 /* InjectorProfilerEventType.InstanceCreatedByInjector */) {\n    handleInstanceCreatedByInjectorEvent(context, injectorProfilerEvent.instance);\n  } else if (type === 2 /* InjectorProfilerEventType.ProviderConfigured */) {\n    handleProviderConfiguredEvent(context, injectorProfilerEvent.providerRecord);\n  }\n}\n/**\n *\n * Stores the injected service in frameworkDIDebugData.resolverToTokenToDependencies\n * based on it's injector and token.\n *\n * @param context InjectorProfilerContext the injection context that this event occurred in.\n * @param data InjectedService the service associated with this inject event.\n *\n */\nfunction handleInjectEvent(context, data) {\n  const diResolver = getDIResolver(context.injector);\n  if (diResolver === null) {\n    throwError('An Inject event must be run within an injection context.');\n  }\n  const diResolverToInstantiatedToken = frameworkDIDebugData.resolverToTokenToDependencies;\n  if (!diResolverToInstantiatedToken.has(diResolver)) {\n    diResolverToInstantiatedToken.set(diResolver, new WeakMap());\n  }\n  // if token is a primitive type, ignore this event. We do this because we cannot keep track of\n  // non-primitive tokens in WeakMaps since they are not garbage collectable.\n  if (!canBeHeldWeakly(context.token)) {\n    return;\n  }\n  const instantiatedTokenToDependencies = diResolverToInstantiatedToken.get(diResolver);\n  if (!instantiatedTokenToDependencies.has(context.token)) {\n    instantiatedTokenToDependencies.set(context.token, []);\n  }\n  const {\n    token,\n    value,\n    flags\n  } = data;\n  assertDefined(context.token, 'Injector profiler context token is undefined.');\n  const dependencies = instantiatedTokenToDependencies.get(context.token);\n  assertDefined(dependencies, 'Could not resolve dependencies for token.');\n  if (context.injector instanceof NodeInjector) {\n    dependencies.push({\n      token,\n      value,\n      flags,\n      injectedIn: getNodeInjectorContext(context.injector)\n    });\n  } else {\n    dependencies.push({\n      token,\n      value,\n      flags\n    });\n  }\n}\n/**\n *\n * Returns the LView and TNode associated with a NodeInjector. Returns undefined if the injector\n * is not a NodeInjector.\n *\n * @param injector\n * @returns {lView: LView, tNode: TNode}|undefined\n */\nfunction getNodeInjectorContext(injector) {\n  if (!(injector instanceof NodeInjector)) {\n    throwError('getNodeInjectorContext must be called with a NodeInjector');\n  }\n  const lView = getNodeInjectorLView(injector);\n  const tNode = getNodeInjectorTNode(injector);\n  if (tNode === null) {\n    return;\n  }\n  assertTNodeForLView(tNode, lView);\n  return {\n    lView,\n    tNode\n  };\n}\n/**\n *\n * If the created instance is an instance of a standalone component, maps the injector to that\n * standalone component in frameworkDIDebugData.standaloneInjectorToComponent\n *\n * @param context InjectorProfilerContext the injection context that this event occurred in.\n * @param data InjectorCreatedInstance an object containing the instance that was just created\n *\n */\nfunction handleInstanceCreatedByInjectorEvent(context, data) {\n  const {\n    value\n  } = data;\n  if (getDIResolver(context.injector) === null) {\n    throwError('An InjectorCreatedInstance event must be run within an injection context.');\n  }\n  // if our value is an instance of a standalone component, map the injector of that standalone\n  // component to the component class. Otherwise, this event is a noop.\n  let standaloneComponent = undefined;\n  if (typeof value === 'object') {\n    standaloneComponent = value?.constructor;\n  }\n  if (standaloneComponent === undefined || !isStandaloneComponent(standaloneComponent)) {\n    return;\n  }\n  const environmentInjector = context.injector.get(EnvironmentInjector, null, {\n    optional: true\n  });\n  // Standalone components should have an environment injector. If one cannot be\n  // found we may be in a test case for low level functionality that did not explictly\n  // setup this injector. In those cases, we simply ignore this event.\n  if (environmentInjector === null) {\n    return;\n  }\n  const {\n    standaloneInjectorToComponent\n  } = frameworkDIDebugData;\n  // If our injector has already been mapped, as is the case\n  // when a standalone component imports another standalone component,\n  // we consider the original component (the component doing the importing)\n  // as the component connected to our injector.\n  if (standaloneInjectorToComponent.has(environmentInjector)) {\n    return;\n  }\n  // If our injector hasn't been mapped, then we map it to the standalone component\n  standaloneInjectorToComponent.set(environmentInjector, standaloneComponent);\n}\nfunction isStandaloneComponent(value) {\n  const def = getComponentDef(value);\n  return !!def?.standalone;\n}\n/**\n *\n * Stores the emitted ProviderRecords from the InjectorProfilerEventType.ProviderConfigured\n * event in frameworkDIDebugData.resolverToProviders\n *\n * @param context InjectorProfilerContext the injection context that this event occurred in.\n * @param data ProviderRecord an object containing the instance that was just created\n *\n */\nfunction handleProviderConfiguredEvent(context, data) {\n  const {\n    resolverToProviders\n  } = frameworkDIDebugData;\n  let diResolver;\n  if (context?.injector instanceof NodeInjector) {\n    diResolver = getNodeInjectorTNode(context.injector);\n  } else {\n    diResolver = context.injector;\n  }\n  if (diResolver === null) {\n    throwError('A ProviderConfigured event must be run within an injection context.');\n  }\n  if (!resolverToProviders.has(diResolver)) {\n    resolverToProviders.set(diResolver, []);\n  }\n  resolverToProviders.get(diResolver).push(data);\n}\nfunction getDIResolver(injector) {\n  let diResolver = null;\n  if (injector === undefined) {\n    return diResolver;\n  }\n  // We use the LView as the diResolver for NodeInjectors because they\n  // do not persist anywhere in the framework. They are simply wrappers around an LView and a TNode\n  // that do persist. Because of this, we rely on the LView of the NodeInjector in order to use\n  // as a concrete key to represent this injector. If we get the same LView back later, we know\n  // we're looking at the same injector.\n  if (injector instanceof NodeInjector) {\n    diResolver = getNodeInjectorLView(injector);\n  }\n  // Other injectors can be used a keys for a map because their instances\n  // persist\n  else {\n    diResolver = injector;\n  }\n  return diResolver;\n}\n// inspired by\n// https://tc39.es/ecma262/multipage/executable-code-and-execution-contexts.html#sec-canbeheldweakly\nfunction canBeHeldWeakly(value) {\n  // we check for value !== null here because typeof null === 'object\n  return value !== null && (typeof value === 'object' || typeof value === 'function' || typeof value === 'symbol');\n}\n\n/**\n * Marks a component for check (in case of OnPush components) and synchronously\n * performs change detection on the application this component belongs to.\n *\n * @param component Component to {@link ChangeDetectorRef#markForCheck mark for check}.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction applyChanges(component) {\n  ngDevMode && assertDefined(component, 'component');\n  markViewDirty(getComponentViewByInstance(component));\n  getRootComponents(component).forEach(rootComponent => detectChanges(rootComponent));\n}\n/**\n * Synchronously perform change detection on a component (and possibly its sub-components).\n *\n * This function triggers change detection in a synchronous way on a component.\n *\n * @param component The component which the change detection should be performed on.\n */\nfunction detectChanges(component) {\n  const view = getComponentViewByInstance(component);\n  view[FLAGS] |= 1024 /* LViewFlags.RefreshView */;\n  detectChangesInternal(view);\n}\n\n/**\n * Discovers the dependencies of an injectable instance. Provides DI information about each\n * dependency that the injectable was instantiated with, including where they were provided from.\n *\n * @param injector An injector instance\n * @param token a DI token that was constructed by the given injector instance\n * @returns an object that contains the created instance of token as well as all of the dependencies\n * that it was instantiated with OR undefined if the token was not created within the given\n * injector.\n */\nfunction getDependenciesFromInjectable(injector, token) {\n  // First we check to see if the token given maps to an actual instance in the injector given.\n  // We use `self: true` because we only want to look at the injector we were given.\n  // We use `optional: true` because it's possible that the token we were given was never\n  // constructed by the injector we were given.\n  const instance = injector.get(token, null, {\n    self: true,\n    optional: true\n  });\n  if (instance === null) {\n    throw new Error(`Unable to determine instance of ${token} in given injector`);\n  }\n  const unformattedDependencies = getDependenciesForTokenInInjector(token, injector);\n  const resolutionPath = getInjectorResolutionPath(injector);\n  const dependencies = unformattedDependencies.map(dep => {\n    // injectedIn contains private fields, so we omit it from the response\n    const formattedDependency = {\n      value: dep.value\n    };\n    // convert injection flags to booleans\n    const flags = dep.flags;\n    formattedDependency.flags = {\n      optional: (8 /* InternalInjectFlags.Optional */ & flags) === 8 /* InternalInjectFlags.Optional */,\n      host: (1 /* InternalInjectFlags.Host */ & flags) === 1 /* InternalInjectFlags.Host */,\n      self: (2 /* InternalInjectFlags.Self */ & flags) === 2 /* InternalInjectFlags.Self */,\n      skipSelf: (4 /* InternalInjectFlags.SkipSelf */ & flags) === 4 /* InternalInjectFlags.SkipSelf */\n    };\n    // find the injector that provided the dependency\n    for (let i = 0; i < resolutionPath.length; i++) {\n      const injectorToCheck = resolutionPath[i];\n      // if skipSelf is true we skip the first injector\n      if (i === 0 && formattedDependency.flags.skipSelf) {\n        continue;\n      }\n      // host only applies to NodeInjectors\n      if (formattedDependency.flags.host && injectorToCheck instanceof EnvironmentInjector) {\n        break;\n      }\n      const instance = injectorToCheck.get(dep.token, null, {\n        self: true,\n        optional: true\n      });\n      if (instance !== null) {\n        // if host flag is true we double check that we can get the service from the first element\n        // in the resolution path by using the host flag. This is done to make sure that we've found\n        // the correct providing injector, and not a node injector that is connected to our path via\n        // a router outlet.\n        if (formattedDependency.flags.host) {\n          const firstInjector = resolutionPath[0];\n          const lookupFromFirstInjector = firstInjector.get(dep.token, null, {\n            ...formattedDependency.flags,\n            optional: true\n          });\n          if (lookupFromFirstInjector !== null) {\n            formattedDependency.providedIn = injectorToCheck;\n          }\n          break;\n        }\n        formattedDependency.providedIn = injectorToCheck;\n        break;\n      }\n      // if self is true we stop after the first injector\n      if (i === 0 && formattedDependency.flags.self) {\n        break;\n      }\n    }\n    if (dep.token) formattedDependency.token = dep.token;\n    return formattedDependency;\n  });\n  return {\n    instance,\n    dependencies\n  };\n}\nfunction getDependenciesForTokenInInjector(token, injector) {\n  const {\n    resolverToTokenToDependencies\n  } = getFrameworkDIDebugData();\n  if (!(injector instanceof NodeInjector)) {\n    return resolverToTokenToDependencies.get(injector)?.get?.(token) ?? [];\n  }\n  const lView = getNodeInjectorLView(injector);\n  const tokenDependencyMap = resolverToTokenToDependencies.get(lView);\n  const dependencies = tokenDependencyMap?.get(token) ?? [];\n  // In the NodeInjector case, all injections for every node are stored in the same lView.\n  // We use the injectedIn field of the dependency to filter out the dependencies that\n  // do not come from the same node as the instance we're looking at.\n  return dependencies.filter(dependency => {\n    const dependencyNode = dependency.injectedIn?.tNode;\n    if (dependencyNode === undefined) {\n      return false;\n    }\n    const instanceNode = getNodeInjectorTNode(injector);\n    assertTNode(dependencyNode);\n    assertTNode(instanceNode);\n    return dependencyNode === instanceNode;\n  });\n}\n/**\n * Gets the class associated with an injector that contains a provider `imports` array in it's\n * definition\n *\n * For Module Injectors this returns the NgModule constructor.\n *\n * For Standalone injectors this returns the standalone component constructor.\n *\n * @param injector Injector an injector instance\n * @returns the constructor where the `imports` array that configures this injector is located\n */\nfunction getProviderImportsContainer(injector) {\n  const {\n    standaloneInjectorToComponent\n  } = getFrameworkDIDebugData();\n  // standalone components configure providers through a component def, so we have to\n  // use the standalone component associated with this injector if Injector represents\n  // a standalone components EnvironmentInjector\n  if (standaloneInjectorToComponent.has(injector)) {\n    return standaloneInjectorToComponent.get(injector);\n  }\n  // Module injectors configure providers through their NgModule def, so we use the\n  // injector to lookup its NgModuleRef and through that grab its instance\n  const defTypeRef = injector.get(NgModuleRef$1, null, {\n    self: true,\n    optional: true\n  });\n  // If we can't find an associated imports container, return null.\n  // This could be the case if this function is called with an R3Injector that does not represent\n  // a standalone component or NgModule.\n  if (defTypeRef === null) {\n    return null;\n  }\n  // In standalone applications, the root environment injector created by bootstrapApplication\n  // may have no associated \"instance\".\n  if (defTypeRef.instance === null) {\n    return null;\n  }\n  return defTypeRef.instance.constructor;\n}\n/**\n * Gets the providers configured on a NodeInjector\n *\n * @param injector A NodeInjector instance\n * @returns ProviderRecord[] an array of objects representing the providers configured on this\n *     injector\n */\nfunction getNodeInjectorProviders(injector) {\n  const diResolver = getNodeInjectorTNode(injector);\n  const {\n    resolverToProviders\n  } = getFrameworkDIDebugData();\n  return resolverToProviders.get(diResolver) ?? [];\n}\n/**\n * Gets a mapping of providers configured on an injector to their import paths\n *\n * ModuleA -> imports ModuleB\n * ModuleB -> imports ModuleC\n * ModuleB -> provides MyServiceA\n * ModuleC -> provides MyServiceB\n *\n * getProviderImportPaths(ModuleA)\n * > Map(2) {\n *   MyServiceA => [ModuleA, ModuleB]\n *   MyServiceB => [ModuleA, ModuleB, ModuleC]\n *  }\n *\n * @param providerImportsContainer constructor of class that contains an `imports` array in it's\n *     definition\n * @returns A Map object that maps providers to an array of constructors representing it's import\n *     path\n *\n */\nfunction getProviderImportPaths(providerImportsContainer) {\n  const providerToPath = new Map();\n  const visitedContainers = new Set();\n  const visitor = walkProviderTreeToDiscoverImportPaths(providerToPath, visitedContainers);\n  walkProviderTree(providerImportsContainer, visitor, [], new Set());\n  return providerToPath;\n}\n/**\n *\n * Higher order function that returns a visitor for WalkProviderTree\n *\n * Takes in a Map and Set to keep track of the providers and containers\n * visited, so that we can discover the import paths of these providers\n * during the traversal.\n *\n * This visitor takes advantage of the fact that walkProviderTree performs a\n * postorder traversal of the provider tree for the passed in container. Because postorder\n * traversal recursively processes subtrees from leaf nodes until the traversal reaches the root,\n * we write a visitor that constructs provider import paths in reverse.\n *\n *\n * We use the visitedContainers set defined outside this visitor\n * because we want to run some logic only once for\n * each container in the tree. That logic can be described as:\n *\n *\n * 1. for each discovered_provider and discovered_path in the incomplete provider paths we've\n * already discovered\n * 2. get the first container in discovered_path\n * 3. if that first container is in the imports array of the container we're visiting\n *    Then the container we're visiting is also in the import path of discovered_provider, so we\n *    unshift discovered_path with the container we're currently visiting\n *\n *\n * Example Run:\n * ```\n *                 ┌──────────┐\n *                 │containerA│\n *      ┌─imports-─┤          ├──imports─┐\n *      │          │  provA   │          │\n *      │          │  provB   │          │\n *      │          └──────────┘          │\n *      │                                │\n *     ┌▼─────────┐             ┌────────▼─┐\n *     │containerB│             │containerC│\n *     │          │             │          │\n *     │  provD   │             │  provF   │\n *     │  provE   │             │  provG   │\n *     └──────────┘             └──────────┘\n * ```\n *\n * Each step of the traversal,\n *\n * ```\n * visitor(provD, containerB)\n * providerToPath === Map { provD => [containerB] }\n * visitedContainers === Set { containerB }\n *\n * visitor(provE, containerB)\n * providerToPath === Map { provD => [containerB], provE => [containerB] }\n * visitedContainers === Set { containerB }\n *\n * visitor(provF, containerC)\n * providerToPath === Map { provD => [containerB], provE => [containerB], provF => [containerC] }\n * visitedContainers === Set { containerB, containerC }\n *\n * visitor(provG, containerC)\n * providerToPath === Map {\n *   provD => [containerB], provE => [containerB], provF => [containerC], provG => [containerC]\n * }\n * visitedContainers === Set { containerB, containerC }\n *\n * visitor(provA, containerA)\n * providerToPath === Map {\n *   provD => [containerA, containerB],\n *   provE => [containerA, containerB],\n *   provF => [containerA, containerC],\n *   provG => [containerA, containerC],\n *   provA => [containerA]\n * }\n * visitedContainers === Set { containerB, containerC, containerA }\n *\n * visitor(provB, containerA)\n * providerToPath === Map {\n *   provD => [containerA, containerB],\n *   provE => [containerA, containerB],\n *   provF => [containerA, containerC],\n *   provG => [containerA, containerC],\n *   provA => [containerA]\n *   provB => [containerA]\n * }\n * visitedContainers === Set { containerB, containerC, containerA }\n * ```\n *\n * @param providerToPath Map map of providers to paths that this function fills\n * @param visitedContainers Set a set to keep track of the containers we've already visited\n * @return function(provider SingleProvider, container: Type<unknown> | InjectorType<unknown>) =>\n *     void\n */\nfunction walkProviderTreeToDiscoverImportPaths(providerToPath, visitedContainers) {\n  return (provider, container) => {\n    // If the provider is not already in the providerToPath map,\n    // add an entry with the provider as the key and an array containing the current container as\n    // the value\n    if (!providerToPath.has(provider)) {\n      providerToPath.set(provider, [container]);\n    }\n    // This block will run exactly once for each container in the import tree.\n    // This is where we run the logic to check the imports array of the current\n    // container to see if it's the next container in the path for our currently\n    // discovered providers.\n    if (!visitedContainers.has(container)) {\n      // Iterate through the providers we've already seen\n      for (const prov of providerToPath.keys()) {\n        const existingImportPath = providerToPath.get(prov);\n        let containerDef = getInjectorDef(container);\n        if (!containerDef) {\n          const ngModule = container.ngModule;\n          containerDef = getInjectorDef(ngModule);\n        }\n        if (!containerDef) {\n          return;\n        }\n        const lastContainerAddedToPath = existingImportPath[0];\n        let isNextStepInPath = false;\n        deepForEach(containerDef.imports, moduleImport => {\n          if (isNextStepInPath) {\n            return;\n          }\n          isNextStepInPath = moduleImport.ngModule === lastContainerAddedToPath || moduleImport === lastContainerAddedToPath;\n          if (isNextStepInPath) {\n            providerToPath.get(prov)?.unshift(container);\n          }\n        });\n      }\n    }\n    visitedContainers.add(container);\n  };\n}\n/**\n * Gets the providers configured on an EnvironmentInjector\n *\n * @param injector EnvironmentInjector\n * @returns an array of objects representing the providers of the given injector\n */\nfunction getEnvironmentInjectorProviders(injector) {\n  const providerRecordsWithoutImportPaths = getFrameworkDIDebugData().resolverToProviders.get(injector) ?? [];\n  // platform injector has no provider imports container so can we skip trying to\n  // find import paths\n  if (isPlatformInjector(injector)) {\n    return providerRecordsWithoutImportPaths;\n  }\n  const providerImportsContainer = getProviderImportsContainer(injector);\n  if (providerImportsContainer === null) {\n    // We assume that if an environment injector exists without an associated provider imports\n    // container, it was created without such a container. Some examples cases where this could\n    // happen:\n    // - The root injector of a standalone application\n    // - A router injector created by using the providers array in a lazy loaded route\n    // - A manually created injector that is attached to the injector tree\n    // Since each of these cases has no provider container, there is no concept of import paths,\n    // so we can simply return the provider records.\n    return providerRecordsWithoutImportPaths;\n  }\n  const providerToPath = getProviderImportPaths(providerImportsContainer);\n  const providerRecords = [];\n  for (const providerRecord of providerRecordsWithoutImportPaths) {\n    const provider = providerRecord.provider;\n    // Ignore these special providers for now until we have a cleaner way of\n    // determing when they are provided by the framework vs provided by the user.\n    const token = provider.provide;\n    if (token === ENVIRONMENT_INITIALIZER || token === INJECTOR_DEF_TYPES) {\n      continue;\n    }\n    let importPath = providerToPath.get(provider) ?? [];\n    const def = getComponentDef(providerImportsContainer);\n    const isStandaloneComponent = !!def?.standalone;\n    // We prepend the component constructor in the standalone case\n    // because walkProviderTree does not visit this constructor during it's traversal\n    if (isStandaloneComponent) {\n      importPath = [providerImportsContainer, ...importPath];\n    }\n    providerRecords.push({\n      ...providerRecord,\n      importPath\n    });\n  }\n  return providerRecords;\n}\nfunction isPlatformInjector(injector) {\n  return injector instanceof R3Injector && injector.scopes.has('platform');\n}\n/**\n * Gets the providers configured on an injector.\n *\n * @param injector the injector to lookup the providers of\n * @returns ProviderRecord[] an array of objects representing the providers of the given injector\n */\nfunction getInjectorProviders(injector) {\n  if (injector instanceof NodeInjector) {\n    return getNodeInjectorProviders(injector);\n  } else if (injector instanceof EnvironmentInjector) {\n    return getEnvironmentInjectorProviders(injector);\n  }\n  throwError('getInjectorProviders only supports NodeInjector and EnvironmentInjector');\n}\n/**\n *\n * Given an injector, this function will return\n * an object containing the type and source of the injector.\n *\n * |              | type        | source                                                      |\n * |--------------|-------------|-------------------------------------------------------------|\n * | NodeInjector | element     | DOM element that created this injector                      |\n * | R3Injector   | environment | `injector.source`                                           |\n * | NullInjector | null        | null                                                        |\n *\n * @param injector the Injector to get metadata for\n * @returns an object containing the type and source of the given injector. If the injector metadata\n *     cannot be determined, returns null.\n */\nfunction getInjectorMetadata(injector) {\n  if (injector instanceof NodeInjector) {\n    const lView = getNodeInjectorLView(injector);\n    const tNode = getNodeInjectorTNode(injector);\n    assertTNodeForLView(tNode, lView);\n    return {\n      type: 'element',\n      source: getNativeByTNode(tNode, lView)\n    };\n  }\n  if (injector instanceof R3Injector) {\n    return {\n      type: 'environment',\n      source: injector.source ?? null\n    };\n  }\n  if (injector instanceof NullInjector) {\n    return {\n      type: 'null',\n      source: null\n    };\n  }\n  return null;\n}\nfunction getInjectorResolutionPath(injector) {\n  const resolutionPath = [injector];\n  getInjectorResolutionPathHelper(injector, resolutionPath);\n  return resolutionPath;\n}\nfunction getInjectorResolutionPathHelper(injector, resolutionPath) {\n  const parent = getInjectorParent(injector);\n  // if getInjectorParent can't find a parent, then we've either reached the end\n  // of the path, or we need to move from the Element Injector tree to the\n  // module injector tree using the first injector in our path as the connection point.\n  if (parent === null) {\n    if (injector instanceof NodeInjector) {\n      const firstInjector = resolutionPath[0];\n      if (firstInjector instanceof NodeInjector) {\n        const moduleInjector = getModuleInjectorOfNodeInjector(firstInjector);\n        if (moduleInjector === null) {\n          throwError('NodeInjector must have some connection to the module injector tree');\n        }\n        resolutionPath.push(moduleInjector);\n        getInjectorResolutionPathHelper(moduleInjector, resolutionPath);\n      }\n      return resolutionPath;\n    }\n  } else {\n    resolutionPath.push(parent);\n    getInjectorResolutionPathHelper(parent, resolutionPath);\n  }\n  return resolutionPath;\n}\n/**\n * Gets the parent of an injector.\n *\n * This function is not able to make the jump from the Element Injector Tree to the Module\n * injector tree. This is because the \"parent\" (the next step in the reoslution path)\n * of a root NodeInjector is dependent on which NodeInjector ancestor initiated\n * the DI lookup. See getInjectorResolutionPath for a function that can make this jump.\n *\n * In the below diagram:\n * ```ts\n * getInjectorParent(NodeInjectorB)\n *  > NodeInjectorA\n * getInjectorParent(NodeInjectorA) // or getInjectorParent(getInjectorParent(NodeInjectorB))\n *  > null // cannot jump to ModuleInjector tree\n * ```\n *\n * ```\n *                ┌───────┐                ┌───────────────────┐\n *    ┌───────────┤ModuleA├───Injector────►│EnvironmentInjector│\n *    │           └───┬───┘                └───────────────────┘\n *    │               │\n *    │           bootstraps\n *    │               │\n *    │               │\n *    │          ┌────▼─────┐                 ┌─────────────┐\n * declares      │ComponentA├────Injector────►│NodeInjectorA│\n *    │          └────┬─────┘                 └─────▲───────┘\n *    │               │                             │\n *    │            renders                        parent\n *    │               │                             │\n *    │          ┌────▼─────┐                 ┌─────┴───────┐\n *    └─────────►│ComponentB├────Injector────►│NodeInjectorB│\n *               └──────────┘                 └─────────────┘\n *```\n *\n * @param injector an Injector to get the parent of\n * @returns Injector the parent of the given injector\n */\nfunction getInjectorParent(injector) {\n  if (injector instanceof R3Injector) {\n    return injector.parent;\n  }\n  let tNode;\n  let lView;\n  if (injector instanceof NodeInjector) {\n    tNode = getNodeInjectorTNode(injector);\n    lView = getNodeInjectorLView(injector);\n  } else if (injector instanceof NullInjector) {\n    return null;\n  } else if (injector instanceof ChainedInjector) {\n    return injector.parentInjector;\n  } else {\n    throwError('getInjectorParent only support injectors of type R3Injector, NodeInjector, NullInjector, ChainedInjector');\n  }\n  const parentLocation = getParentInjectorLocation(tNode, lView);\n  if (hasParentInjector(parentLocation)) {\n    const parentInjectorIndex = getParentInjectorIndex(parentLocation);\n    const parentLView = getParentInjectorView(parentLocation, lView);\n    const parentTView = parentLView[TVIEW];\n    const parentTNode = parentTView.data[parentInjectorIndex + 8 /* NodeInjectorOffset.TNODE */];\n    return new NodeInjector(parentTNode, parentLView);\n  } else {\n    const chainedInjector = lView[INJECTOR];\n    // Case where chainedInjector.injector is an OutletInjector and chainedInjector.injector.parent\n    // is a NodeInjector.\n    // todo(aleksanderbodurri): ideally nothing in packages/core should deal\n    // directly with router concerns. Refactor this so that we can make the jump from\n    // NodeInjector -> OutletInjector -> NodeInjector\n    // without explictly relying on types contracts from packages/router\n    const injectorParent = chainedInjector.injector?.parent;\n    if (injectorParent instanceof NodeInjector) {\n      return injectorParent;\n    }\n  }\n  return null;\n}\n/**\n * Gets the module injector of a NodeInjector.\n *\n * @param injector NodeInjector to get module injector of\n * @returns Injector representing module injector of the given NodeInjector\n */\nfunction getModuleInjectorOfNodeInjector(injector) {\n  let lView;\n  if (injector instanceof NodeInjector) {\n    lView = getNodeInjectorLView(injector);\n  } else {\n    throwError('getModuleInjectorOfNodeInjector must be called with a NodeInjector');\n  }\n  const inj = lView[INJECTOR];\n  const moduleInjector = inj instanceof ChainedInjector ? inj.parentInjector : inj.parent;\n  if (!moduleInjector) {\n    throwError('NodeInjector must have some connection to the module injector tree');\n  }\n  return moduleInjector;\n}\n\n/**\n * This file introduces series of globally accessible debug tools\n * to allow for the Angular debugging story to function.\n *\n * To see this in action run the following command:\n *\n *   bazel run //packages/core/test/bundling/todo:devserver\n *\n *  Then load `localhost:5432` and start using the console tools.\n */\n/**\n * This value reflects the property on the window where the dev\n * tools are patched (window.ng).\n * */\nconst GLOBAL_PUBLISH_EXPANDO_KEY = 'ng';\nconst globalUtilsFunctions = {\n  /**\n   * Warning: functions that start with `ɵ` are considered *INTERNAL* and should not be relied upon\n   * in application's code. The contract of those functions might be changed in any release and/or a\n   * function can be removed completely.\n   */\n  'ɵgetDependenciesFromInjectable': getDependenciesFromInjectable,\n  'ɵgetInjectorProviders': getInjectorProviders,\n  'ɵgetInjectorResolutionPath': getInjectorResolutionPath,\n  'ɵgetInjectorMetadata': getInjectorMetadata,\n  'ɵsetProfiler': setProfiler,\n  'getDirectiveMetadata': getDirectiveMetadata$1,\n  'getComponent': getComponent$1,\n  'getContext': getContext,\n  'getListeners': getListeners,\n  'getOwningComponent': getOwningComponent,\n  'getHostElement': getHostElement,\n  'getInjector': getInjector,\n  'getRootComponents': getRootComponents,\n  'getDirectives': getDirectives,\n  'applyChanges': applyChanges,\n  'isSignal': isSignal\n};\nlet _published = false;\n/**\n * Publishes a collection of default debug tools onto`window.ng`.\n *\n * These functions are available globally when Angular is in development\n * mode and are automatically stripped away from prod mode is on.\n */\nfunction publishDefaultGlobalUtils$1() {\n  if (!_published) {\n    _published = true;\n    if (typeof window !== 'undefined') {\n      // Only configure the injector profiler when running in the browser.\n      setupFrameworkInjectorProfiler();\n    }\n    for (const [methodName, method] of Object.entries(globalUtilsFunctions)) {\n      publishGlobalUtil(methodName, method);\n    }\n  }\n}\n/**\n * Publishes the given function to `window.ng` so that it can be\n * used from the browser console when an application is not in production.\n */\nfunction publishGlobalUtil(name, fn) {\n  if (typeof COMPILED === 'undefined' || !COMPILED) {\n    // Note: we can't export `ng` when using closure enhanced optimization as:\n    // - closure declares globals itself for minified names, which sometimes clobber our `ng` global\n    // - we can't declare a closure extern as the namespace `ng` is already used within Google\n    //   for typings for AngularJS (via `goog.provide('ng....')`).\n    const w = _global;\n    ngDevMode && assertDefined(fn, 'function not defined');\n    w[GLOBAL_PUBLISH_EXPANDO_KEY] ??= {};\n    w[GLOBAL_PUBLISH_EXPANDO_KEY][name] = fn;\n  }\n}\n\n/**\n * Internal injection token that can used to access an instance of a Testability class.\n *\n * This token acts as a bridge between the core bootstrap code and the `Testability` class. This is\n * needed to ensure that there are no direct references to the `Testability` class, so it can be\n * tree-shaken away (if not referenced). For the environments/setups when the `Testability` class\n * should be available, this token is used to add a provider that references the `Testability`\n * class. Otherwise, only this token is retained in a bundle, but the `Testability` class is not.\n */\nconst TESTABILITY = /*#__PURE__*/new InjectionToken('');\n/**\n * Internal injection token to retrieve Testability getter class instance.\n */\nconst TESTABILITY_GETTER = /*#__PURE__*/new InjectionToken('');\n/**\n * The Testability service provides testing hooks that can be accessed from\n * the browser.\n *\n * Angular applications bootstrapped using an NgModule (via `@NgModule.bootstrap` field) will also\n * instantiate Testability by default (in both development and production modes).\n *\n * For applications bootstrapped using the `bootstrapApplication` function, Testability is not\n * included by default. You can include it into your applications by getting the list of necessary\n * providers using the `provideProtractorTestingSupport()` function and adding them into the\n * `options.providers` array. Example:\n *\n * ```typescript\n * import {provideProtractorTestingSupport} from '@angular/platform-browser';\n *\n * await bootstrapApplication(RootComponent, providers: [provideProtractorTestingSupport()]);\n * ```\n *\n * @publicApi\n */\nlet Testability = /*#__PURE__*/(() => {\n  class Testability {\n    constructor(_ngZone, registry, testabilityGetter) {\n      this._ngZone = _ngZone;\n      this.registry = registry;\n      this._pendingCount = 0;\n      this._isZoneStable = true;\n      this._callbacks = [];\n      this.taskTrackingZone = null;\n      // If there was no Testability logic registered in the global scope\n      // before, register the current testability getter as a global one.\n      if (!_testabilityGetter) {\n        setTestabilityGetter(testabilityGetter);\n        testabilityGetter.addToWindow(registry);\n      }\n      this._watchAngularEvents();\n      _ngZone.run(() => {\n        this.taskTrackingZone = typeof Zone == 'undefined' ? null : Zone.current.get('TaskTrackingZone');\n      });\n    }\n    _watchAngularEvents() {\n      this._ngZone.onUnstable.subscribe({\n        next: () => {\n          this._isZoneStable = false;\n        }\n      });\n      this._ngZone.runOutsideAngular(() => {\n        this._ngZone.onStable.subscribe({\n          next: () => {\n            NgZone.assertNotInAngularZone();\n            queueMicrotask(() => {\n              this._isZoneStable = true;\n              this._runCallbacksIfReady();\n            });\n          }\n        });\n      });\n    }\n    /**\n     * Increases the number of pending request\n     * @deprecated pending requests are now tracked with zones.\n     */\n    increasePendingRequestCount() {\n      this._pendingCount += 1;\n      return this._pendingCount;\n    }\n    /**\n     * Decreases the number of pending request\n     * @deprecated pending requests are now tracked with zones\n     */\n    decreasePendingRequestCount() {\n      this._pendingCount -= 1;\n      if (this._pendingCount < 0) {\n        throw new Error('pending async requests below zero');\n      }\n      this._runCallbacksIfReady();\n      return this._pendingCount;\n    }\n    /**\n     * Whether an associated application is stable\n     */\n    isStable() {\n      return this._isZoneStable && this._pendingCount === 0 && !this._ngZone.hasPendingMacrotasks;\n    }\n    _runCallbacksIfReady() {\n      if (this.isStable()) {\n        // Schedules the call backs in a new frame so that it is always async.\n        queueMicrotask(() => {\n          while (this._callbacks.length !== 0) {\n            let cb = this._callbacks.pop();\n            clearTimeout(cb.timeoutId);\n            cb.doneCb();\n          }\n        });\n      } else {\n        // Still not stable, send updates.\n        let pending = this.getPendingTasks();\n        this._callbacks = this._callbacks.filter(cb => {\n          if (cb.updateCb && cb.updateCb(pending)) {\n            clearTimeout(cb.timeoutId);\n            return false;\n          }\n          return true;\n        });\n      }\n    }\n    getPendingTasks() {\n      if (!this.taskTrackingZone) {\n        return [];\n      }\n      // Copy the tasks data so that we don't leak tasks.\n      return this.taskTrackingZone.macroTasks.map(t => {\n        return {\n          source: t.source,\n          // From TaskTrackingZone:\n          // https://github.com/angular/zone.js/blob/master/lib/zone-spec/task-tracking.ts#L40\n          creationLocation: t.creationLocation,\n          data: t.data\n        };\n      });\n    }\n    addCallback(cb, timeout, updateCb) {\n      let timeoutId = -1;\n      if (timeout && timeout > 0) {\n        timeoutId = setTimeout(() => {\n          this._callbacks = this._callbacks.filter(cb => cb.timeoutId !== timeoutId);\n          cb();\n        }, timeout);\n      }\n      this._callbacks.push({\n        doneCb: cb,\n        timeoutId: timeoutId,\n        updateCb: updateCb\n      });\n    }\n    /**\n     * Wait for the application to be stable with a timeout. If the timeout is reached before that\n     * happens, the callback receives a list of the macro tasks that were pending, otherwise null.\n     *\n     * @param doneCb The callback to invoke when Angular is stable or the timeout expires\n     *    whichever comes first.\n     * @param timeout Optional. The maximum time to wait for Angular to become stable. If not\n     *    specified, whenStable() will wait forever.\n     * @param updateCb Optional. If specified, this callback will be invoked whenever the set of\n     *    pending macrotasks changes. If this callback returns true doneCb will not be invoked\n     *    and no further updates will be issued.\n     */\n    whenStable(doneCb, timeout, updateCb) {\n      if (updateCb && !this.taskTrackingZone) {\n        throw new Error('Task tracking zone is required when passing an update callback to ' + 'whenStable(). Is \"zone.js/plugins/task-tracking\" loaded?');\n      }\n      this.addCallback(doneCb, timeout, updateCb);\n      this._runCallbacksIfReady();\n    }\n    /**\n     * Get the number of pending requests\n     * @deprecated pending requests are now tracked with zones\n     */\n    getPendingRequestCount() {\n      return this._pendingCount;\n    }\n    /**\n     * Registers an application with a testability hook so that it can be tracked.\n     * @param token token of application, root element\n     *\n     * @internal\n     */\n    registerApplication(token) {\n      this.registry.registerApplication(token, this);\n    }\n    /**\n     * Unregisters an application.\n     * @param token token of application, root element\n     *\n     * @internal\n     */\n    unregisterApplication(token) {\n      this.registry.unregisterApplication(token);\n    }\n    /**\n     * Find providers by name\n     * @param using The root element to search from\n     * @param provider The name of binding variable\n     * @param exactMatch Whether using exactMatch\n     */\n    findProviders(using, provider, exactMatch) {\n      // TODO(juliemr): implement.\n      return [];\n    }\n    static {\n      this.ɵfac = function Testability_Factory(t) {\n        return new (t || Testability)(ɵɵinject(NgZone), ɵɵinject(TestabilityRegistry), ɵɵinject(TESTABILITY_GETTER));\n      };\n    }\n    static {\n      this.ɵprov = /*@__PURE__*/ɵɵdefineInjectable({\n        token: Testability,\n        factory: Testability.ɵfac\n      });\n    }\n  }\n  return Testability;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(Testability, [{\n    type: Injectable\n  }], () => [{\n    type: NgZone\n  }, {\n    type: TestabilityRegistry\n  }, {\n    type: undefined,\n    decorators: [{\n      type: Inject,\n      args: [TESTABILITY_GETTER]\n    }]\n  }], null);\n})();\n/**\n * A global registry of {@link Testability} instances for specific elements.\n * @publicApi\n */\nlet TestabilityRegistry = /*#__PURE__*/(() => {\n  class TestabilityRegistry {\n    constructor() {\n      /** @internal */\n      this._applications = new Map();\n    }\n    /**\n     * Registers an application with a testability hook so that it can be tracked\n     * @param token token of application, root element\n     * @param testability Testability hook\n     */\n    registerApplication(token, testability) {\n      this._applications.set(token, testability);\n    }\n    /**\n     * Unregisters an application.\n     * @param token token of application, root element\n     */\n    unregisterApplication(token) {\n      this._applications.delete(token);\n    }\n    /**\n     * Unregisters all applications\n     */\n    unregisterAllApplications() {\n      this._applications.clear();\n    }\n    /**\n     * Get a testability hook associated with the application\n     * @param elem root element\n     */\n    getTestability(elem) {\n      return this._applications.get(elem) || null;\n    }\n    /**\n     * Get all registered testabilities\n     */\n    getAllTestabilities() {\n      return Array.from(this._applications.values());\n    }\n    /**\n     * Get all registered applications(root elements)\n     */\n    getAllRootElements() {\n      return Array.from(this._applications.keys());\n    }\n    /**\n     * Find testability of a node in the Tree\n     * @param elem node\n     * @param findInAncestors whether finding testability in ancestors if testability was not found in\n     * current node\n     */\n    findTestabilityInTree(elem, findInAncestors = true) {\n      return _testabilityGetter?.findTestabilityInTree(this, elem, findInAncestors) ?? null;\n    }\n    static {\n      this.ɵfac = function TestabilityRegistry_Factory(t) {\n        return new (t || TestabilityRegistry)();\n      };\n    }\n    static {\n      this.ɵprov = /*@__PURE__*/ɵɵdefineInjectable({\n        token: TestabilityRegistry,\n        factory: TestabilityRegistry.ɵfac,\n        providedIn: 'platform'\n      });\n    }\n  }\n  return TestabilityRegistry;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(TestabilityRegistry, [{\n    type: Injectable,\n    args: [{\n      providedIn: 'platform'\n    }]\n  }], null, null);\n})();\n/**\n * Set the {@link GetTestability} implementation used by the Angular testing framework.\n * @publicApi\n */\nfunction setTestabilityGetter(getter) {\n  _testabilityGetter = getter;\n}\nlet _testabilityGetter;\n\n/**\n * Determine if the argument is shaped like a Promise\n */\nfunction isPromise(obj) {\n  // allow any Promise/A+ compliant thenable.\n  // It's up to the caller to ensure that obj.then conforms to the spec\n  return !!obj && typeof obj.then === 'function';\n}\n/**\n * Determine if the argument is a Subscribable\n */\nfunction isSubscribable(obj) {\n  return !!obj && typeof obj.subscribe === 'function';\n}\n\n/**\n * A [DI token](guide/glossary#di-token \"DI token definition\") that you can use to provide\n * one or more initialization functions.\n *\n * The provided functions are injected at application startup and executed during\n * app initialization. If any of these functions returns a Promise or an Observable, initialization\n * does not complete until the Promise is resolved or the Observable is completed.\n *\n * You can, for example, create a factory function that loads language data\n * or an external configuration, and provide that function to the `APP_INITIALIZER` token.\n * The function is executed during the application bootstrap process,\n * and the needed data is available on startup.\n *\n * @see {@link ApplicationInitStatus}\n *\n * @usageNotes\n *\n * The following example illustrates how to configure a multi-provider using `APP_INITIALIZER` token\n * and a function returning a promise.\n * ### Example with NgModule-based application\n * ```\n *  function initializeApp(): Promise<any> {\n *    return new Promise((resolve, reject) => {\n *      // Do some asynchronous stuff\n *      resolve();\n *    });\n *  }\n *\n *  @NgModule({\n *   imports: [BrowserModule],\n *   declarations: [AppComponent],\n *   bootstrap: [AppComponent],\n *   providers: [{\n *     provide: APP_INITIALIZER,\n *     useFactory: () => initializeApp,\n *     multi: true\n *    }]\n *   })\n *  export class AppModule {}\n * ```\n *\n * ### Example with standalone application\n * ```\n * export function initializeApp(http: HttpClient) {\n *   return (): Promise<any> =>\n *     firstValueFrom(\n *       http\n *         .get(\"https://someUrl.com/api/user\")\n *         .pipe(tap(user => { ... }))\n *     );\n * }\n *\n * bootstrapApplication(App, {\n *   providers: [\n *     provideHttpClient(),\n *     {\n *       provide: APP_INITIALIZER,\n *       useFactory: initializeApp,\n *       multi: true,\n *       deps: [HttpClient],\n *     },\n *   ],\n * });\n\n * ```\n *\n *\n * It's also possible to configure a multi-provider using `APP_INITIALIZER` token and a function\n * returning an observable, see an example below. Note: the `HttpClient` in this example is used for\n * demo purposes to illustrate how the factory function can work with other providers available\n * through DI.\n *\n * ### Example with NgModule-based application\n * ```\n *  function initializeAppFactory(httpClient: HttpClient): () => Observable<any> {\n *   return () => httpClient.get(\"https://someUrl.com/api/user\")\n *     .pipe(\n *        tap(user => { ... })\n *     );\n *  }\n *\n *  @NgModule({\n *    imports: [BrowserModule, HttpClientModule],\n *    declarations: [AppComponent],\n *    bootstrap: [AppComponent],\n *    providers: [{\n *      provide: APP_INITIALIZER,\n *      useFactory: initializeAppFactory,\n *      deps: [HttpClient],\n *      multi: true\n *    }]\n *  })\n *  export class AppModule {}\n * ```\n *\n * ### Example with standalone application\n * ```\n *  function initializeAppFactory(httpClient: HttpClient): () => Observable<any> {\n *   return () => httpClient.get(\"https://someUrl.com/api/user\")\n *     .pipe(\n *        tap(user => { ... })\n *     );\n *  }\n *\n * bootstrapApplication(App, {\n *   providers: [\n *     provideHttpClient(),\n *     {\n *       provide: APP_INITIALIZER,\n *       useFactory: initializeAppFactory,\n *       multi: true,\n *       deps: [HttpClient],\n *     },\n *   ],\n * });\n * ```\n *\n * @publicApi\n */\nconst APP_INITIALIZER = /*#__PURE__*/new InjectionToken(ngDevMode ? 'Application Initializer' : '');\n/**\n * A class that reflects the state of running {@link APP_INITIALIZER} functions.\n *\n * @publicApi\n */\nlet ApplicationInitStatus = /*#__PURE__*/(() => {\n  class ApplicationInitStatus {\n    constructor() {\n      this.initialized = false;\n      this.done = false;\n      this.donePromise = new Promise((res, rej) => {\n        this.resolve = res;\n        this.reject = rej;\n      });\n      this.appInits = inject(APP_INITIALIZER, {\n        optional: true\n      }) ?? [];\n      if ((typeof ngDevMode === 'undefined' || ngDevMode) && !Array.isArray(this.appInits)) {\n        throw new RuntimeError(-209 /* RuntimeErrorCode.INVALID_MULTI_PROVIDER */, 'Unexpected type of the `APP_INITIALIZER` token value ' + `(expected an array, but got ${typeof this.appInits}). ` + 'Please check that the `APP_INITIALIZER` token is configured as a ' + '`multi: true` provider.');\n      }\n    }\n    /** @internal */\n    runInitializers() {\n      if (this.initialized) {\n        return;\n      }\n      const asyncInitPromises = [];\n      for (const appInits of this.appInits) {\n        const initResult = appInits();\n        if (isPromise(initResult)) {\n          asyncInitPromises.push(initResult);\n        } else if (isSubscribable(initResult)) {\n          const observableAsPromise = new Promise((resolve, reject) => {\n            initResult.subscribe({\n              complete: resolve,\n              error: reject\n            });\n          });\n          asyncInitPromises.push(observableAsPromise);\n        }\n      }\n      const complete = () => {\n        // @ts-expect-error overwriting a readonly\n        this.done = true;\n        this.resolve();\n      };\n      Promise.all(asyncInitPromises).then(() => {\n        complete();\n      }).catch(e => {\n        this.reject(e);\n      });\n      if (asyncInitPromises.length === 0) {\n        complete();\n      }\n      this.initialized = true;\n    }\n    static {\n      this.ɵfac = function ApplicationInitStatus_Factory(t) {\n        return new (t || ApplicationInitStatus)();\n      };\n    }\n    static {\n      this.ɵprov = /*@__PURE__*/ɵɵdefineInjectable({\n        token: ApplicationInitStatus,\n        factory: ApplicationInitStatus.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return ApplicationInitStatus;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(ApplicationInitStatus, [{\n    type: Injectable,\n    args: [{\n      providedIn: 'root'\n    }]\n  }], () => [], null);\n})();\n\n/**\n * A [DI token](guide/glossary#di-token \"DI token definition\") that provides a set of callbacks to\n * be called for every component that is bootstrapped.\n *\n * Each callback must take a `ComponentRef` instance and return nothing.\n *\n * `(componentRef: ComponentRef) => void`\n *\n * @publicApi\n */\nconst APP_BOOTSTRAP_LISTENER = /*#__PURE__*/new InjectionToken(ngDevMode ? 'appBootstrapListener' : '');\nfunction publishDefaultGlobalUtils() {\n  ngDevMode && publishDefaultGlobalUtils$1();\n}\n/**\n * Sets the error for an invalid write to a signal to be an Angular `RuntimeError`.\n */\nfunction publishSignalConfiguration() {\n  setThrowInvalidWriteToSignalError$1(() => {\n    throw new RuntimeError(600 /* RuntimeErrorCode.SIGNAL_WRITE_FROM_ILLEGAL_CONTEXT */, ngDevMode && 'Writing to signals is not allowed in a `computed` or an `effect` by default. ' + 'Use `allowSignalWrites` in the `CreateEffectOptions` to enable this inside effects.');\n  });\n}\nfunction isBoundToModule(cf) {\n  return cf.isBoundToModule;\n}\n/**\n * A token for third-party components that can register themselves with NgProbe.\n *\n * @deprecated\n * @publicApi\n */\nclass NgProbeToken {\n  constructor(name, token) {\n    this.name = name;\n    this.token = token;\n  }\n}\nfunction _callAndReportToErrorHandler(errorHandler, ngZone, callback) {\n  try {\n    const result = callback();\n    if (isPromise(result)) {\n      return result.catch(e => {\n        ngZone.runOutsideAngular(() => errorHandler.handleError(e));\n        // rethrow as the exception handler might not do it\n        throw e;\n      });\n    }\n    return result;\n  } catch (e) {\n    ngZone.runOutsideAngular(() => errorHandler.handleError(e));\n    // rethrow as the exception handler might not do it\n    throw e;\n  }\n}\nfunction optionsReducer(dst, objs) {\n  if (Array.isArray(objs)) {\n    return objs.reduce(optionsReducer, dst);\n  }\n  return {\n    ...dst,\n    ...objs\n  };\n}\n/**\n * A reference to an Angular application running on a page.\n *\n * @usageNotes\n * {@a is-stable-examples}\n * ### isStable examples and caveats\n *\n * Note two important points about `isStable`, demonstrated in the examples below:\n * - the application will never be stable if you start any kind\n * of recurrent asynchronous task when the application starts\n * (for example for a polling process, started with a `setInterval`, a `setTimeout`\n * or using RxJS operators like `interval`);\n * - the `isStable` Observable runs outside of the Angular zone.\n *\n * Let's imagine that you start a recurrent task\n * (here incrementing a counter, using RxJS `interval`),\n * and at the same time subscribe to `isStable`.\n *\n * ```\n * constructor(appRef: ApplicationRef) {\n *   appRef.isStable.pipe(\n *      filter(stable => stable)\n *   ).subscribe(() => console.log('App is stable now');\n *   interval(1000).subscribe(counter => console.log(counter));\n * }\n * ```\n * In this example, `isStable` will never emit `true`,\n * and the trace \"App is stable now\" will never get logged.\n *\n * If you want to execute something when the app is stable,\n * you have to wait for the application to be stable\n * before starting your polling process.\n *\n * ```\n * constructor(appRef: ApplicationRef) {\n *   appRef.isStable.pipe(\n *     first(stable => stable),\n *     tap(stable => console.log('App is stable now')),\n *     switchMap(() => interval(1000))\n *   ).subscribe(counter => console.log(counter));\n * }\n * ```\n * In this example, the trace \"App is stable now\" will be logged\n * and then the counter starts incrementing every second.\n *\n * Note also that this Observable runs outside of the Angular zone,\n * which means that the code in the subscription\n * to this Observable will not trigger the change detection.\n *\n * Let's imagine that instead of logging the counter value,\n * you update a field of your component\n * and display it in its template.\n *\n * ```\n * constructor(appRef: ApplicationRef) {\n *   appRef.isStable.pipe(\n *     first(stable => stable),\n *     switchMap(() => interval(1000))\n *   ).subscribe(counter => this.value = counter);\n * }\n * ```\n * As the `isStable` Observable runs outside the zone,\n * the `value` field will be updated properly,\n * but the template will not be refreshed!\n *\n * You'll have to manually trigger the change detection to update the template.\n *\n * ```\n * constructor(appRef: ApplicationRef, cd: ChangeDetectorRef) {\n *   appRef.isStable.pipe(\n *     first(stable => stable),\n *     switchMap(() => interval(1000))\n *   ).subscribe(counter => {\n *     this.value = counter;\n *     cd.detectChanges();\n *   });\n * }\n * ```\n *\n * Or make the subscription callback run inside the zone.\n *\n * ```\n * constructor(appRef: ApplicationRef, zone: NgZone) {\n *   appRef.isStable.pipe(\n *     first(stable => stable),\n *     switchMap(() => interval(1000))\n *   ).subscribe(counter => zone.run(() => this.value = counter));\n * }\n * ```\n *\n * @publicApi\n */\nlet ApplicationRef = /*#__PURE__*/(() => {\n  class ApplicationRef {\n    constructor() {\n      /** @internal */\n      this._bootstrapListeners = [];\n      this._runningTick = false;\n      this._destroyed = false;\n      this._destroyListeners = [];\n      /** @internal */\n      this._views = [];\n      this.internalErrorHandler = inject(INTERNAL_APPLICATION_ERROR_HANDLER);\n      this.afterRenderEffectManager = inject(AfterRenderEventManager);\n      // Needed for ComponentFixture temporarily during migration of autoDetect behavior\n      // Eventually the hostView of the fixture should just attach to ApplicationRef.\n      this.externalTestViews = new Set();\n      this.beforeRender = new Subject();\n      this.afterTick = new Subject();\n      /**\n       * Get a list of component types registered to this application.\n       * This list is populated even before the component is created.\n       */\n      this.componentTypes = [];\n      /**\n       * Get a list of components registered to this application.\n       */\n      this.components = [];\n      /**\n       * Returns an Observable that indicates when the application is stable or unstable.\n       */\n      this.isStable = inject(PendingTasks).hasPendingTasks.pipe(map(pending => !pending));\n      this._injector = inject(EnvironmentInjector);\n    }\n    /**\n     * Indicates whether this instance was destroyed.\n     */\n    get destroyed() {\n      return this._destroyed;\n    }\n    /**\n     * The `EnvironmentInjector` used to create this application.\n     */\n    get injector() {\n      return this._injector;\n    }\n    /**\n     * Bootstrap a component onto the element identified by its selector or, optionally, to a\n     * specified element.\n     *\n     * @usageNotes\n     * ### Bootstrap process\n     *\n     * When bootstrapping a component, Angular mounts it onto a target DOM element\n     * and kicks off automatic change detection. The target DOM element can be\n     * provided using the `rootSelectorOrNode` argument.\n     *\n     * If the target DOM element is not provided, Angular tries to find one on a page\n     * using the `selector` of the component that is being bootstrapped\n     * (first matched element is used).\n     *\n     * ### Example\n     *\n     * Generally, we define the component to bootstrap in the `bootstrap` array of `NgModule`,\n     * but it requires us to know the component while writing the application code.\n     *\n     * Imagine a situation where we have to wait for an API call to decide about the component to\n     * bootstrap. We can use the `ngDoBootstrap` hook of the `NgModule` and call this method to\n     * dynamically bootstrap a component.\n     *\n     * {@example core/ts/platform/platform.ts region='componentSelector'}\n     *\n     * Optionally, a component can be mounted onto a DOM element that does not match the\n     * selector of the bootstrapped component.\n     *\n     * In the following example, we are providing a CSS selector to match the target element.\n     *\n     * {@example core/ts/platform/platform.ts region='cssSelector'}\n     *\n     * While in this example, we are providing reference to a DOM node.\n     *\n     * {@example core/ts/platform/platform.ts region='domNode'}\n     */\n    bootstrap(componentOrFactory, rootSelectorOrNode) {\n      (typeof ngDevMode === 'undefined' || ngDevMode) && this.warnIfDestroyed();\n      const isComponentFactory = componentOrFactory instanceof ComponentFactory$1;\n      const initStatus = this._injector.get(ApplicationInitStatus);\n      if (!initStatus.done) {\n        const standalone = !isComponentFactory && isStandalone(componentOrFactory);\n        const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) && 'Cannot bootstrap as there are still asynchronous initializers running.' + (standalone ? '' : ' Bootstrap components in the `ngDoBootstrap` method of the root module.');\n        throw new RuntimeError(405 /* RuntimeErrorCode.ASYNC_INITIALIZERS_STILL_RUNNING */, errorMessage);\n      }\n      let componentFactory;\n      if (isComponentFactory) {\n        componentFactory = componentOrFactory;\n      } else {\n        const resolver = this._injector.get(ComponentFactoryResolver$1);\n        componentFactory = resolver.resolveComponentFactory(componentOrFactory);\n      }\n      this.componentTypes.push(componentFactory.componentType);\n      // Create a factory associated with the current module if it's not bound to some other\n      const ngModule = isBoundToModule(componentFactory) ? undefined : this._injector.get(NgModuleRef$1);\n      const selectorOrNode = rootSelectorOrNode || componentFactory.selector;\n      const compRef = componentFactory.create(Injector.NULL, [], selectorOrNode, ngModule);\n      const nativeElement = compRef.location.nativeElement;\n      const testability = compRef.injector.get(TESTABILITY, null);\n      testability?.registerApplication(nativeElement);\n      compRef.onDestroy(() => {\n        this.detachView(compRef.hostView);\n        remove(this.components, compRef);\n        testability?.unregisterApplication(nativeElement);\n      });\n      this._loadComponent(compRef);\n      if (typeof ngDevMode === 'undefined' || ngDevMode) {\n        const _console = this._injector.get(Console);\n        _console.log(`Angular is running in development mode.`);\n      }\n      return compRef;\n    }\n    /**\n     * Invoke this method to explicitly process change detection and its side-effects.\n     *\n     * In development mode, `tick()` also performs a second change detection cycle to ensure that no\n     * further changes are detected. If additional changes are picked up during this second cycle,\n     * bindings in the app have side-effects that cannot be resolved in a single change detection\n     * pass.\n     * In this case, Angular throws an error, since an Angular application can only have one change\n     * detection pass during which all change detection must complete.\n     */\n    tick() {\n      this._tick(true);\n    }\n    /** @internal */\n    _tick(refreshViews) {\n      (typeof ngDevMode === 'undefined' || ngDevMode) && this.warnIfDestroyed();\n      if (this._runningTick) {\n        throw new RuntimeError(101 /* RuntimeErrorCode.RECURSIVE_APPLICATION_REF_TICK */, ngDevMode && 'ApplicationRef.tick is called recursively');\n      }\n      const prevConsumer = setActiveConsumer$1(null);\n      try {\n        this._runningTick = true;\n        this.detectChangesInAttachedViews(refreshViews);\n        if (typeof ngDevMode === 'undefined' || ngDevMode) {\n          for (let view of this._views) {\n            view.checkNoChanges();\n          }\n        }\n      } catch (e) {\n        // Attention: Don't rethrow as it could cancel subscriptions to Observables!\n        this.internalErrorHandler(e);\n      } finally {\n        this.afterTick.next();\n        this._runningTick = false;\n        setActiveConsumer$1(prevConsumer);\n      }\n    }\n    detectChangesInAttachedViews(refreshViews) {\n      let runs = 0;\n      const afterRenderEffectManager = this.afterRenderEffectManager;\n      while (true) {\n        if (runs === MAXIMUM_REFRESH_RERUNS) {\n          throw new RuntimeError(103 /* RuntimeErrorCode.INFINITE_CHANGE_DETECTION */, ngDevMode && 'Infinite change detection while refreshing application views. ' + 'Ensure afterRender or queueStateUpdate hooks are not continuously causing updates.');\n        }\n        if (refreshViews) {\n          const isFirstPass = runs === 0;\n          this.beforeRender.next(isFirstPass);\n          for (let {\n            _lView,\n            notifyErrorHandler\n          } of this._views) {\n            detectChangesInViewIfRequired(_lView, isFirstPass, notifyErrorHandler);\n          }\n        }\n        runs++;\n        afterRenderEffectManager.executeInternalCallbacks();\n        // If we have a newly dirty view after running internal callbacks, recheck the views again\n        // before running user-provided callbacks\n        if ([...this.externalTestViews.keys(), ...this._views].some(({\n          _lView\n        }) => shouldRecheckView(_lView))) {\n          continue;\n        }\n        afterRenderEffectManager.execute();\n        // If after running all afterRender callbacks we have no more views that need to be refreshed,\n        // we can break out of the loop\n        if (![...this.externalTestViews.keys(), ...this._views].some(({\n          _lView\n        }) => shouldRecheckView(_lView))) {\n          break;\n        }\n      }\n    }\n    /**\n     * Attaches a view so that it will be dirty checked.\n     * The view will be automatically detached when it is destroyed.\n     * This will throw if the view is already attached to a ViewContainer.\n     */\n    attachView(viewRef) {\n      (typeof ngDevMode === 'undefined' || ngDevMode) && this.warnIfDestroyed();\n      const view = viewRef;\n      this._views.push(view);\n      view.attachToAppRef(this);\n    }\n    /**\n     * Detaches a view from dirty checking again.\n     */\n    detachView(viewRef) {\n      (typeof ngDevMode === 'undefined' || ngDevMode) && this.warnIfDestroyed();\n      const view = viewRef;\n      remove(this._views, view);\n      view.detachFromAppRef();\n    }\n    _loadComponent(componentRef) {\n      this.attachView(componentRef.hostView);\n      this.tick();\n      this.components.push(componentRef);\n      // Get the listeners lazily to prevent DI cycles.\n      const listeners = this._injector.get(APP_BOOTSTRAP_LISTENER, []);\n      if (ngDevMode && !Array.isArray(listeners)) {\n        throw new RuntimeError(-209 /* RuntimeErrorCode.INVALID_MULTI_PROVIDER */, 'Unexpected type of the `APP_BOOTSTRAP_LISTENER` token value ' + `(expected an array, but got ${typeof listeners}). ` + 'Please check that the `APP_BOOTSTRAP_LISTENER` token is configured as a ' + '`multi: true` provider.');\n      }\n      [...this._bootstrapListeners, ...listeners].forEach(listener => listener(componentRef));\n    }\n    /** @internal */\n    ngOnDestroy() {\n      if (this._destroyed) return;\n      try {\n        // Call all the lifecycle hooks.\n        this._destroyListeners.forEach(listener => listener());\n        // Destroy all registered views.\n        this._views.slice().forEach(view => view.destroy());\n      } finally {\n        // Indicate that this instance is destroyed.\n        this._destroyed = true;\n        // Release all references.\n        this._views = [];\n        this._bootstrapListeners = [];\n        this._destroyListeners = [];\n      }\n    }\n    /**\n     * Registers a listener to be called when an instance is destroyed.\n     *\n     * @param callback A callback function to add as a listener.\n     * @returns A function which unregisters a listener.\n     */\n    onDestroy(callback) {\n      (typeof ngDevMode === 'undefined' || ngDevMode) && this.warnIfDestroyed();\n      this._destroyListeners.push(callback);\n      return () => remove(this._destroyListeners, callback);\n    }\n    /**\n     * Destroys an Angular application represented by this `ApplicationRef`. Calling this function\n     * will destroy the associated environment injectors as well as all the bootstrapped components\n     * with their views.\n     */\n    destroy() {\n      if (this._destroyed) {\n        throw new RuntimeError(406 /* RuntimeErrorCode.APPLICATION_REF_ALREADY_DESTROYED */, ngDevMode && 'This instance of the `ApplicationRef` has already been destroyed.');\n      }\n      const injector = this._injector;\n      // Check that this injector instance supports destroy operation.\n      if (injector.destroy && !injector.destroyed) {\n        // Destroying an underlying injector will trigger the `ngOnDestroy` lifecycle\n        // hook, which invokes the remaining cleanup actions.\n        injector.destroy();\n      }\n    }\n    /**\n     * Returns the number of attached views.\n     */\n    get viewCount() {\n      return this._views.length;\n    }\n    warnIfDestroyed() {\n      if ((typeof ngDevMode === 'undefined' || ngDevMode) && this._destroyed) {\n        console.warn(formatRuntimeError(406 /* RuntimeErrorCode.APPLICATION_REF_ALREADY_DESTROYED */, 'This instance of the `ApplicationRef` has already been destroyed.'));\n      }\n    }\n    static {\n      this.ɵfac = function ApplicationRef_Factory(t) {\n        return new (t || ApplicationRef)();\n      };\n    }\n    static {\n      this.ɵprov = /*@__PURE__*/ɵɵdefineInjectable({\n        token: ApplicationRef,\n        factory: ApplicationRef.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return ApplicationRef;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(ApplicationRef, [{\n    type: Injectable,\n    args: [{\n      providedIn: 'root'\n    }]\n  }], null, null);\n})();\nfunction remove(list, el) {\n  const index = list.indexOf(el);\n  if (index > -1) {\n    list.splice(index, 1);\n  }\n}\nlet whenStableStore;\n/**\n * Returns a Promise that resolves when the application becomes stable after this method is called\n * the first time.\n */\nfunction whenStable(applicationRef) {\n  whenStableStore ??= new WeakMap();\n  const cachedWhenStable = whenStableStore.get(applicationRef);\n  if (cachedWhenStable) {\n    return cachedWhenStable;\n  }\n  const whenStablePromise = applicationRef.isStable.pipe(first(isStable => isStable)).toPromise().then(() => void 0);\n  whenStableStore.set(applicationRef, whenStablePromise);\n  // Be a good citizen and clean the store `onDestroy` even though we are using `WeakMap`.\n  applicationRef.onDestroy(() => whenStableStore?.delete(applicationRef));\n  return whenStablePromise;\n}\nfunction detectChangesInViewIfRequired(lView, isFirstPass, notifyErrorHandler) {\n  // When re-checking, only check views which actually need it.\n  if (!isFirstPass && !shouldRecheckView(lView)) {\n    return;\n  }\n  detectChangesInView(lView, notifyErrorHandler, isFirstPass);\n}\nfunction shouldRecheckView(view) {\n  return requiresRefreshOrTraversal(view);\n}\nfunction detectChangesInView(lView, notifyErrorHandler, isFirstPass) {\n  let mode;\n  if (isFirstPass) {\n    // The first pass is always in Global mode, which includes `CheckAlways` views.\n    mode = 0 /* ChangeDetectionMode.Global */;\n    // Add `RefreshView` flag to ensure this view is refreshed if not already dirty.\n    // `RefreshView` flag is used intentionally over `Dirty` because it gets cleared before\n    // executing any of the actual refresh code while the `Dirty` flag doesn't get cleared\n    // until the end of the refresh. Using `RefreshView` prevents creating a potential\n    // difference in the state of the LViewFlags during template execution.\n    lView[FLAGS] |= 1024 /* LViewFlags.RefreshView */;\n  } else if (lView[FLAGS] & 64 /* LViewFlags.Dirty */) {\n    // The root view has been explicitly marked for check, so check it in Global mode.\n    mode = 0 /* ChangeDetectionMode.Global */;\n  } else {\n    // The view has not been marked for check, but contains a view marked for refresh\n    // (likely via a signal). Start this change detection in Targeted mode to skip the root\n    // view and check just the view(s) that need refreshed.\n    mode = 1 /* ChangeDetectionMode.Targeted */;\n  }\n  detectChangesInternal(lView, notifyErrorHandler, mode);\n}\n\n/**\n * Combination of NgModuleFactory and ComponentFactories.\n *\n * @publicApi\n *\n * @deprecated\n * Ivy JIT mode doesn't require accessing this symbol.\n * See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes) for\n * additional context.\n */\nclass ModuleWithComponentFactories {\n  constructor(ngModuleFactory, componentFactories) {\n    this.ngModuleFactory = ngModuleFactory;\n    this.componentFactories = componentFactories;\n  }\n}\n/**\n * Low-level service for running the angular compiler during runtime\n * to create {@link ComponentFactory}s, which\n * can later be used to create and render a Component instance.\n *\n * Each `@NgModule` provides an own `Compiler` to its injector,\n * that will use the directives/pipes of the ng module for compilation\n * of components.\n *\n * @publicApi\n *\n * @deprecated\n * Ivy JIT mode doesn't require accessing this symbol.\n * See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes) for\n * additional context.\n */\nlet Compiler = /*#__PURE__*/(() => {\n  class Compiler {\n    /**\n     * Compiles the given NgModule and all of its components. All templates of the components\n     * have to be inlined.\n     */\n    compileModuleSync(moduleType) {\n      return new NgModuleFactory(moduleType);\n    }\n    /**\n     * Compiles the given NgModule and all of its components\n     */\n    compileModuleAsync(moduleType) {\n      return Promise.resolve(this.compileModuleSync(moduleType));\n    }\n    /**\n     * Same as {@link #compileModuleSync} but also creates ComponentFactories for all components.\n     */\n    compileModuleAndAllComponentsSync(moduleType) {\n      const ngModuleFactory = this.compileModuleSync(moduleType);\n      const moduleDef = getNgModuleDef(moduleType);\n      const componentFactories = maybeUnwrapFn(moduleDef.declarations).reduce((factories, declaration) => {\n        const componentDef = getComponentDef(declaration);\n        componentDef && factories.push(new ComponentFactory(componentDef));\n        return factories;\n      }, []);\n      return new ModuleWithComponentFactories(ngModuleFactory, componentFactories);\n    }\n    /**\n     * Same as {@link #compileModuleAsync} but also creates ComponentFactories for all components.\n     */\n    compileModuleAndAllComponentsAsync(moduleType) {\n      return Promise.resolve(this.compileModuleAndAllComponentsSync(moduleType));\n    }\n    /**\n     * Clears all caches.\n     */\n    clearCache() {}\n    /**\n     * Clears the cache for the given component/ngModule.\n     */\n    clearCacheFor(type) {}\n    /**\n     * Returns the id for a given NgModule, if one is defined and known to the compiler.\n     */\n    getModuleId(moduleType) {\n      return undefined;\n    }\n    static {\n      this.ɵfac = function Compiler_Factory(t) {\n        return new (t || Compiler)();\n      };\n    }\n    static {\n      this.ɵprov = /*@__PURE__*/ɵɵdefineInjectable({\n        token: Compiler,\n        factory: Compiler.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return Compiler;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(Compiler, [{\n    type: Injectable,\n    args: [{\n      providedIn: 'root'\n    }]\n  }], null, null);\n})();\n/**\n * Token to provide CompilerOptions in the platform injector.\n *\n * @publicApi\n */\nconst COMPILER_OPTIONS = /*#__PURE__*/new InjectionToken(ngDevMode ? 'compilerOptions' : '');\n/**\n * A factory for creating a Compiler\n *\n * @publicApi\n *\n * @deprecated\n * Ivy JIT mode doesn't require accessing this symbol.\n * See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes) for\n * additional context.\n */\nclass CompilerFactory {}\nfunction compileNgModuleFactory(injector, options, moduleType) {\n  ngDevMode && assertNgModuleType(moduleType);\n  const moduleFactory = new NgModuleFactory(moduleType);\n  // All of the logic below is irrelevant for AOT-compiled code.\n  if (typeof ngJitMode !== 'undefined' && !ngJitMode) {\n    return Promise.resolve(moduleFactory);\n  }\n  const compilerOptions = injector.get(COMPILER_OPTIONS, []).concat(options);\n  // Configure the compiler to use the provided options. This call may fail when multiple modules\n  // are bootstrapped with incompatible options, as a component can only be compiled according to\n  // a single set of options.\n  setJitOptions({\n    defaultEncapsulation: _lastDefined(compilerOptions.map(opts => opts.defaultEncapsulation)),\n    preserveWhitespaces: _lastDefined(compilerOptions.map(opts => opts.preserveWhitespaces))\n  });\n  if (isComponentResourceResolutionQueueEmpty()) {\n    return Promise.resolve(moduleFactory);\n  }\n  const compilerProviders = compilerOptions.flatMap(option => option.providers ?? []);\n  // In case there are no compiler providers, we just return the module factory as\n  // there won't be any resource loader. This can happen with Ivy, because AOT compiled\n  // modules can be still passed through \"bootstrapModule\". In that case we shouldn't\n  // unnecessarily require the JIT compiler.\n  if (compilerProviders.length === 0) {\n    return Promise.resolve(moduleFactory);\n  }\n  const compiler = getCompilerFacade({\n    usage: 0 /* JitCompilerUsage.Decorator */,\n    kind: 'NgModule',\n    type: moduleType\n  });\n  const compilerInjector = Injector.create({\n    providers: compilerProviders\n  });\n  const resourceLoader = compilerInjector.get(compiler.ResourceLoader);\n  // The resource loader can also return a string while the \"resolveComponentResources\"\n  // always expects a promise. Therefore we need to wrap the returned value in a promise.\n  return resolveComponentResources(url => Promise.resolve(resourceLoader.get(url))).then(() => moduleFactory);\n}\nfunction _lastDefined(args) {\n  for (let i = args.length - 1; i >= 0; i--) {\n    if (args[i] !== undefined) {\n      return args[i];\n    }\n  }\n  return undefined;\n}\nlet NgZoneChangeDetectionScheduler = /*#__PURE__*/(() => {\n  class NgZoneChangeDetectionScheduler {\n    constructor() {\n      this.zone = inject(NgZone);\n      this.applicationRef = inject(ApplicationRef);\n    }\n    initialize() {\n      if (this._onMicrotaskEmptySubscription) {\n        return;\n      }\n      this._onMicrotaskEmptySubscription = this.zone.onMicrotaskEmpty.subscribe({\n        next: () => {\n          this.zone.run(() => {\n            this.applicationRef.tick();\n          });\n        }\n      });\n    }\n    ngOnDestroy() {\n      this._onMicrotaskEmptySubscription?.unsubscribe();\n    }\n    static {\n      this.ɵfac = function NgZoneChangeDetectionScheduler_Factory(t) {\n        return new (t || NgZoneChangeDetectionScheduler)();\n      };\n    }\n    static {\n      this.ɵprov = /*@__PURE__*/ɵɵdefineInjectable({\n        token: NgZoneChangeDetectionScheduler,\n        factory: NgZoneChangeDetectionScheduler.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return NgZoneChangeDetectionScheduler;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(NgZoneChangeDetectionScheduler, [{\n    type: Injectable,\n    args: [{\n      providedIn: 'root'\n    }]\n  }], null, null);\n})();\n/**\n * Internal token used to verify that `provideZoneChangeDetection` is not used\n * with the bootstrapModule API.\n */\nconst PROVIDED_NG_ZONE = /*#__PURE__*/new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'provideZoneChangeDetection token' : '');\nfunction internalProvideZoneChangeDetection(ngZoneFactory) {\n  return [{\n    provide: NgZone,\n    useFactory: ngZoneFactory\n  }, {\n    provide: ENVIRONMENT_INITIALIZER,\n    multi: true,\n    useFactory: () => {\n      const ngZoneChangeDetectionScheduler = inject(NgZoneChangeDetectionScheduler, {\n        optional: true\n      });\n      if ((typeof ngDevMode === 'undefined' || ngDevMode) && ngZoneChangeDetectionScheduler === null) {\n        throw new RuntimeError(402 /* RuntimeErrorCode.MISSING_REQUIRED_INJECTABLE_IN_BOOTSTRAP */, `A required Injectable was not found in the dependency injection tree. ` + 'If you are bootstrapping an NgModule, make sure that the `BrowserModule` is imported.');\n      }\n      return () => ngZoneChangeDetectionScheduler.initialize();\n    }\n  }, {\n    provide: ENVIRONMENT_INITIALIZER,\n    multi: true,\n    useFactory: () => {\n      const service = inject(ZoneStablePendingTask);\n      return () => {\n        service.initialize();\n      };\n    }\n  }, {\n    provide: INTERNAL_APPLICATION_ERROR_HANDLER,\n    useFactory: ngZoneApplicationErrorHandlerFactory\n  }];\n}\nfunction ngZoneApplicationErrorHandlerFactory() {\n  const zone = inject(NgZone);\n  const userErrorHandler = inject(ErrorHandler);\n  return e => zone.runOutsideAngular(() => userErrorHandler.handleError(e));\n}\n/**\n * Provides `NgZone`-based change detection for the application bootstrapped using\n * `bootstrapApplication`.\n *\n * `NgZone` is already provided in applications by default. This provider allows you to configure\n * options like `eventCoalescing` in the `NgZone`.\n * This provider is not available for `platformBrowser().bootstrapModule`, which uses\n * `BootstrapOptions` instead.\n *\n * @usageNotes\n * ```typescript\n * bootstrapApplication(MyApp, {providers: [\n *   provideZoneChangeDetection({eventCoalescing: true}),\n * ]});\n * ```\n *\n * @publicApi\n * @see {@link bootstrapApplication}\n * @see {@link NgZoneOptions}\n */\nfunction provideZoneChangeDetection(options) {\n  const zoneProviders = internalProvideZoneChangeDetection(() => new NgZone(getNgZoneOptions(options)));\n  return makeEnvironmentProviders([typeof ngDevMode === 'undefined' || ngDevMode ? {\n    provide: PROVIDED_NG_ZONE,\n    useValue: true\n  } : [], zoneProviders]);\n}\n// Transforms a set of `BootstrapOptions` (supported by the NgModule-based bootstrap APIs) ->\n// `NgZoneOptions` that are recognized by the NgZone constructor. Passing no options will result in\n// a set of default options returned.\nfunction getNgZoneOptions(options) {\n  return {\n    enableLongStackTrace: typeof ngDevMode === 'undefined' ? false : !!ngDevMode,\n    shouldCoalesceEventChangeDetection: options?.eventCoalescing ?? false,\n    shouldCoalesceRunChangeDetection: options?.runCoalescing ?? false\n  };\n}\nlet ZoneStablePendingTask = /*#__PURE__*/(() => {\n  class ZoneStablePendingTask {\n    constructor() {\n      this.subscription = new Subscription();\n      this.initialized = false;\n      this.zone = inject(NgZone);\n      this.pendingTasks = inject(PendingTasks);\n    }\n    initialize() {\n      if (this.initialized) {\n        return;\n      }\n      this.initialized = true;\n      let task = null;\n      if (!this.zone.isStable && !this.zone.hasPendingMacrotasks && !this.zone.hasPendingMicrotasks) {\n        task = this.pendingTasks.add();\n      }\n      this.zone.runOutsideAngular(() => {\n        this.subscription.add(this.zone.onStable.subscribe(() => {\n          NgZone.assertNotInAngularZone();\n          // Check whether there are no pending macro/micro tasks in the next tick\n          // to allow for NgZone to update the state.\n          queueMicrotask(() => {\n            if (task !== null && !this.zone.hasPendingMacrotasks && !this.zone.hasPendingMicrotasks) {\n              this.pendingTasks.remove(task);\n              task = null;\n            }\n          });\n        }));\n      });\n      this.subscription.add(this.zone.onUnstable.subscribe(() => {\n        NgZone.assertInAngularZone();\n        task ??= this.pendingTasks.add();\n      }));\n    }\n    ngOnDestroy() {\n      this.subscription.unsubscribe();\n    }\n    static {\n      this.ɵfac = function ZoneStablePendingTask_Factory(t) {\n        return new (t || ZoneStablePendingTask)();\n      };\n    }\n    static {\n      this.ɵprov = /*@__PURE__*/ɵɵdefineInjectable({\n        token: ZoneStablePendingTask,\n        factory: ZoneStablePendingTask.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return ZoneStablePendingTask;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(ZoneStablePendingTask, [{\n    type: Injectable,\n    args: [{\n      providedIn: 'root'\n    }]\n  }], null, null);\n})();\n\n/**\n * Work out the locale from the potential global properties.\n *\n * * Closure Compiler: use `goog.LOCALE`.\n * * Ivy enabled: use `$localize.locale`\n */\nfunction getGlobalLocale() {\n  if (typeof ngI18nClosureMode !== 'undefined' && ngI18nClosureMode && typeof goog !== 'undefined' && goog.LOCALE !== 'en') {\n    // * The default `goog.LOCALE` value is `en`, while Angular used `en-US`.\n    // * In order to preserve backwards compatibility, we use Angular default value over\n    //   Closure Compiler's one.\n    return goog.LOCALE;\n  } else {\n    // KEEP `typeof $localize !== 'undefined' && $localize.locale` IN SYNC WITH THE LOCALIZE\n    // COMPILE-TIME INLINER.\n    //\n    // * During compile time inlining of translations the expression will be replaced\n    //   with a string literal that is the current locale. Other forms of this expression are not\n    //   guaranteed to be replaced.\n    //\n    // * During runtime translation evaluation, the developer is required to set `$localize.locale`\n    //   if required, or just to provide their own `LOCALE_ID` provider.\n    return typeof $localize !== 'undefined' && $localize.locale || DEFAULT_LOCALE_ID;\n  }\n}\n/**\n * Provide this token to set the locale of your application.\n * It is used for i18n extraction, by i18n pipes (DatePipe, I18nPluralPipe, CurrencyPipe,\n * DecimalPipe and PercentPipe) and by ICU expressions.\n *\n * See the [i18n guide](guide/i18n-common-locale-id) for more information.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * import { LOCALE_ID } from '@angular/core';\n * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n * import { AppModule } from './app/app.module';\n *\n * platformBrowserDynamic().bootstrapModule(AppModule, {\n *   providers: [{provide: LOCALE_ID, useValue: 'en-US' }]\n * });\n * ```\n *\n * @publicApi\n */\nconst LOCALE_ID = /*#__PURE__*/new InjectionToken(ngDevMode ? 'LocaleId' : '', {\n  providedIn: 'root',\n  factory: () => inject(LOCALE_ID, InjectFlags.Optional | InjectFlags.SkipSelf) || getGlobalLocale()\n});\n/**\n * Provide this token to set the default currency code your application uses for\n * CurrencyPipe when there is no currency code passed into it. This is only used by\n * CurrencyPipe and has no relation to locale currency. Defaults to USD if not configured.\n *\n * See the [i18n guide](guide/i18n-common-locale-id) for more information.\n *\n * <div class=\"alert is-helpful\">\n *\n * **Deprecation notice:**\n *\n * The default currency code is currently always `USD` but this is deprecated from v9.\n *\n * **In v10 the default currency code will be taken from the current locale.**\n *\n * If you need the previous behavior then set it by creating a `DEFAULT_CURRENCY_CODE` provider in\n * your application `NgModule`:\n *\n * ```ts\n * {provide: DEFAULT_CURRENCY_CODE, useValue: 'USD'}\n * ```\n *\n * </div>\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n * import { AppModule } from './app/app.module';\n *\n * platformBrowserDynamic().bootstrapModule(AppModule, {\n *   providers: [{provide: DEFAULT_CURRENCY_CODE, useValue: 'EUR' }]\n * });\n * ```\n *\n * @publicApi\n */\nconst DEFAULT_CURRENCY_CODE = /*#__PURE__*/new InjectionToken(ngDevMode ? 'DefaultCurrencyCode' : '', {\n  providedIn: 'root',\n  factory: () => USD_CURRENCY_CODE\n});\n/**\n * Use this token at bootstrap to provide the content of your translation file (`xtb`,\n * `xlf` or `xlf2`) when you want to translate your application in another language.\n *\n * See the [i18n guide](guide/i18n-common-merge) for more information.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * import { TRANSLATIONS } from '@angular/core';\n * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n * import { AppModule } from './app/app.module';\n *\n * // content of your translation file\n * const translations = '....';\n *\n * platformBrowserDynamic().bootstrapModule(AppModule, {\n *   providers: [{provide: TRANSLATIONS, useValue: translations }]\n * });\n * ```\n *\n * @publicApi\n */\nconst TRANSLATIONS = /*#__PURE__*/new InjectionToken(ngDevMode ? 'Translations' : '');\n/**\n * Provide this token at bootstrap to set the format of your {@link TRANSLATIONS}: `xtb`,\n * `xlf` or `xlf2`.\n *\n * See the [i18n guide](guide/i18n-common-merge) for more information.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * import { TRANSLATIONS_FORMAT } from '@angular/core';\n * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n * import { AppModule } from './app/app.module';\n *\n * platformBrowserDynamic().bootstrapModule(AppModule, {\n *   providers: [{provide: TRANSLATIONS_FORMAT, useValue: 'xlf' }]\n * });\n * ```\n *\n * @publicApi\n */\nconst TRANSLATIONS_FORMAT = /*#__PURE__*/new InjectionToken(ngDevMode ? 'TranslationsFormat' : '');\n/**\n * Use this enum at bootstrap as an option of `bootstrapModule` to define the strategy\n * that the compiler should use in case of missing translations:\n * - Error: throw if you have missing translations.\n * - Warning (default): show a warning in the console and/or shell.\n * - Ignore: do nothing.\n *\n * See the [i18n guide](guide/i18n-common-merge#report-missing-translations) for more information.\n *\n * @usageNotes\n * ### Example\n * ```typescript\n * import { MissingTranslationStrategy } from '@angular/core';\n * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n * import { AppModule } from './app/app.module';\n *\n * platformBrowserDynamic().bootstrapModule(AppModule, {\n *   missingTranslation: MissingTranslationStrategy.Error\n * });\n * ```\n *\n * @publicApi\n */\nvar MissingTranslationStrategy = /*#__PURE__*/function (MissingTranslationStrategy) {\n  MissingTranslationStrategy[MissingTranslationStrategy[\"Error\"] = 0] = \"Error\";\n  MissingTranslationStrategy[MissingTranslationStrategy[\"Warning\"] = 1] = \"Warning\";\n  MissingTranslationStrategy[MissingTranslationStrategy[\"Ignore\"] = 2] = \"Ignore\";\n  return MissingTranslationStrategy;\n}(MissingTranslationStrategy || {});\n/**\n * Internal token that allows to register extra callbacks that should be invoked during the\n * `PlatformRef.destroy` operation. This token is needed to avoid a direct reference to the\n * `PlatformRef` class (i.e. register the callback via `PlatformRef.onDestroy`), thus making the\n * entire class tree-shakeable.\n */\nconst PLATFORM_DESTROY_LISTENERS = /*#__PURE__*/new InjectionToken(ngDevMode ? 'PlatformDestroyListeners' : '');\n/**\n * The Angular platform is the entry point for Angular on a web page.\n * Each page has exactly one platform. Services (such as reflection) which are common\n * to every Angular application running on the page are bound in its scope.\n * A page's platform is initialized implicitly when a platform is created using a platform\n * factory such as `PlatformBrowser`, or explicitly by calling the `createPlatform()` function.\n *\n * @publicApi\n */\nlet PlatformRef = /*#__PURE__*/(() => {\n  class PlatformRef {\n    /** @internal */\n    constructor(_injector) {\n      this._injector = _injector;\n      this._modules = [];\n      this._destroyListeners = [];\n      this._destroyed = false;\n    }\n    /**\n     * Creates an instance of an `@NgModule` for the given platform.\n     *\n     * @deprecated Passing NgModule factories as the `PlatformRef.bootstrapModuleFactory` function\n     *     argument is deprecated. Use the `PlatformRef.bootstrapModule` API instead.\n     */\n    bootstrapModuleFactory(moduleFactory, options) {\n      // Note: We need to create the NgZone _before_ we instantiate the module,\n      // as instantiating the module creates some providers eagerly.\n      // So we create a mini parent injector that just contains the new NgZone and\n      // pass that as parent to the NgModuleFactory.\n      const ngZone = getNgZone(options?.ngZone, getNgZoneOptions({\n        eventCoalescing: options?.ngZoneEventCoalescing,\n        runCoalescing: options?.ngZoneRunCoalescing\n      }));\n      // Note: Create ngZoneInjector within ngZone.run so that all of the instantiated services are\n      // created within the Angular zone\n      // Do not try to replace ngZone.run with ApplicationRef#run because ApplicationRef would then be\n      // created outside of the Angular zone.\n      return ngZone.run(() => {\n        const moduleRef = createNgModuleRefWithProviders(moduleFactory.moduleType, this.injector, internalProvideZoneChangeDetection(() => ngZone));\n        if ((typeof ngDevMode === 'undefined' || ngDevMode) && moduleRef.injector.get(PROVIDED_NG_ZONE, null) !== null) {\n          throw new RuntimeError(207 /* RuntimeErrorCode.PROVIDER_IN_WRONG_CONTEXT */, '`bootstrapModule` does not support `provideZoneChangeDetection`. Use `BootstrapOptions` instead.');\n        }\n        const exceptionHandler = moduleRef.injector.get(ErrorHandler, null);\n        if ((typeof ngDevMode === 'undefined' || ngDevMode) && exceptionHandler === null) {\n          throw new RuntimeError(402 /* RuntimeErrorCode.MISSING_REQUIRED_INJECTABLE_IN_BOOTSTRAP */, 'No ErrorHandler. Is platform module (BrowserModule) included?');\n        }\n        ngZone.runOutsideAngular(() => {\n          const subscription = ngZone.onError.subscribe({\n            next: error => {\n              exceptionHandler.handleError(error);\n            }\n          });\n          moduleRef.onDestroy(() => {\n            remove(this._modules, moduleRef);\n            subscription.unsubscribe();\n          });\n        });\n        return _callAndReportToErrorHandler(exceptionHandler, ngZone, () => {\n          const initStatus = moduleRef.injector.get(ApplicationInitStatus);\n          initStatus.runInitializers();\n          return initStatus.donePromise.then(() => {\n            // If the `LOCALE_ID` provider is defined at bootstrap then we set the value for ivy\n            const localeId = moduleRef.injector.get(LOCALE_ID, DEFAULT_LOCALE_ID);\n            setLocaleId(localeId || DEFAULT_LOCALE_ID);\n            this._moduleDoBootstrap(moduleRef);\n            return moduleRef;\n          });\n        });\n      });\n    }\n    /**\n     * Creates an instance of an `@NgModule` for a given platform.\n     *\n     * @usageNotes\n     * ### Simple Example\n     *\n     * ```typescript\n     * @NgModule({\n     *   imports: [BrowserModule]\n     * })\n     * class MyModule {}\n     *\n     * let moduleRef = platformBrowser().bootstrapModule(MyModule);\n     * ```\n     *\n     */\n    bootstrapModule(moduleType, compilerOptions = []) {\n      const options = optionsReducer({}, compilerOptions);\n      return compileNgModuleFactory(this.injector, options, moduleType).then(moduleFactory => this.bootstrapModuleFactory(moduleFactory, options));\n    }\n    _moduleDoBootstrap(moduleRef) {\n      const appRef = moduleRef.injector.get(ApplicationRef);\n      if (moduleRef._bootstrapComponents.length > 0) {\n        moduleRef._bootstrapComponents.forEach(f => appRef.bootstrap(f));\n      } else if (moduleRef.instance.ngDoBootstrap) {\n        moduleRef.instance.ngDoBootstrap(appRef);\n      } else {\n        throw new RuntimeError(-403 /* RuntimeErrorCode.BOOTSTRAP_COMPONENTS_NOT_FOUND */, ngDevMode && `The module ${stringify(moduleRef.instance.constructor)} was bootstrapped, ` + `but it does not declare \"@NgModule.bootstrap\" components nor a \"ngDoBootstrap\" method. ` + `Please define one of these.`);\n      }\n      this._modules.push(moduleRef);\n    }\n    /**\n     * Registers a listener to be called when the platform is destroyed.\n     */\n    onDestroy(callback) {\n      this._destroyListeners.push(callback);\n    }\n    /**\n     * Retrieves the platform {@link Injector}, which is the parent injector for\n     * every Angular application on the page and provides singleton providers.\n     */\n    get injector() {\n      return this._injector;\n    }\n    /**\n     * Destroys the current Angular platform and all Angular applications on the page.\n     * Destroys all modules and listeners registered with the platform.\n     */\n    destroy() {\n      if (this._destroyed) {\n        throw new RuntimeError(404 /* RuntimeErrorCode.PLATFORM_ALREADY_DESTROYED */, ngDevMode && 'The platform has already been destroyed!');\n      }\n      this._modules.slice().forEach(module => module.destroy());\n      this._destroyListeners.forEach(listener => listener());\n      const destroyListeners = this._injector.get(PLATFORM_DESTROY_LISTENERS, null);\n      if (destroyListeners) {\n        destroyListeners.forEach(listener => listener());\n        destroyListeners.clear();\n      }\n      this._destroyed = true;\n    }\n    /**\n     * Indicates whether this instance was destroyed.\n     */\n    get destroyed() {\n      return this._destroyed;\n    }\n    static {\n      this.ɵfac = function PlatformRef_Factory(t) {\n        return new (t || PlatformRef)(ɵɵinject(Injector));\n      };\n    }\n    static {\n      this.ɵprov = /*@__PURE__*/ɵɵdefineInjectable({\n        token: PlatformRef,\n        factory: PlatformRef.ɵfac,\n        providedIn: 'platform'\n      });\n    }\n  }\n  return PlatformRef;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(PlatformRef, [{\n    type: Injectable,\n    args: [{\n      providedIn: 'platform'\n    }]\n  }], () => [{\n    type: Injector\n  }], null);\n})();\nlet _platformInjector = null;\n/**\n * Internal token to indicate whether having multiple bootstrapped platform should be allowed (only\n * one bootstrapped platform is allowed by default). This token helps to support SSR scenarios.\n */\nconst ALLOW_MULTIPLE_PLATFORMS = /*#__PURE__*/new InjectionToken(ngDevMode ? 'AllowMultipleToken' : '');\n/**\n * Creates a platform.\n * Platforms must be created on launch using this function.\n *\n * @publicApi\n */\nfunction createPlatform(injector) {\n  if (_platformInjector && !_platformInjector.get(ALLOW_MULTIPLE_PLATFORMS, false)) {\n    throw new RuntimeError(400 /* RuntimeErrorCode.MULTIPLE_PLATFORMS */, ngDevMode && 'There can be only one platform. Destroy the previous one to create a new one.');\n  }\n  publishDefaultGlobalUtils();\n  publishSignalConfiguration();\n  _platformInjector = injector;\n  const platform = injector.get(PlatformRef);\n  runPlatformInitializers(injector);\n  return platform;\n}\n/**\n * Creates a factory for a platform. Can be used to provide or override `Providers` specific to\n * your application's runtime needs, such as `PLATFORM_INITIALIZER` and `PLATFORM_ID`.\n * @param parentPlatformFactory Another platform factory to modify. Allows you to compose factories\n * to build up configurations that might be required by different libraries or parts of the\n * application.\n * @param name Identifies the new platform factory.\n * @param providers A set of dependency providers for platforms created with the new factory.\n *\n * @publicApi\n */\nfunction createPlatformFactory(parentPlatformFactory, name, providers = []) {\n  const desc = `Platform: ${name}`;\n  const marker = new InjectionToken(desc);\n  return (extraProviders = []) => {\n    let platform = getPlatform();\n    if (!platform || platform.injector.get(ALLOW_MULTIPLE_PLATFORMS, false)) {\n      const platformProviders = [...providers, ...extraProviders, {\n        provide: marker,\n        useValue: true\n      }];\n      if (parentPlatformFactory) {\n        parentPlatformFactory(platformProviders);\n      } else {\n        createPlatform(createPlatformInjector(platformProviders, desc));\n      }\n    }\n    return assertPlatform(marker);\n  };\n}\n/**\n * Helper function to create an instance of a platform injector (that maintains the 'platform'\n * scope).\n */\nfunction createPlatformInjector(providers = [], name) {\n  return Injector.create({\n    name,\n    providers: [{\n      provide: INJECTOR_SCOPE,\n      useValue: 'platform'\n    }, {\n      provide: PLATFORM_DESTROY_LISTENERS,\n      useValue: new Set([() => _platformInjector = null])\n    }, ...providers]\n  });\n}\n/**\n * Checks that there is currently a platform that contains the given token as a provider.\n *\n * @publicApi\n */\nfunction assertPlatform(requiredToken) {\n  const platform = getPlatform();\n  if (!platform) {\n    throw new RuntimeError(401 /* RuntimeErrorCode.PLATFORM_NOT_FOUND */, ngDevMode && 'No platform exists!');\n  }\n  if ((typeof ngDevMode === 'undefined' || ngDevMode) && !platform.injector.get(requiredToken, null)) {\n    throw new RuntimeError(400 /* RuntimeErrorCode.MULTIPLE_PLATFORMS */, 'A platform with a different configuration has been created. Please destroy it first.');\n  }\n  return platform;\n}\n/**\n * Returns the current platform.\n *\n * @publicApi\n */\nfunction getPlatform() {\n  return _platformInjector?.get(PlatformRef) ?? null;\n}\n/**\n * Destroys the current Angular platform and all Angular applications on the page.\n * Destroys all modules and listeners registered with the platform.\n *\n * @publicApi\n */\nfunction destroyPlatform() {\n  getPlatform()?.destroy();\n}\n/**\n * The goal of this function is to bootstrap a platform injector,\n * but avoid referencing `PlatformRef` class.\n * This function is needed for bootstrapping a Standalone Component.\n */\nfunction createOrReusePlatformInjector(providers = []) {\n  // If a platform injector already exists, it means that the platform\n  // is already bootstrapped and no additional actions are required.\n  if (_platformInjector) return _platformInjector;\n  publishDefaultGlobalUtils();\n  // Otherwise, setup a new platform injector and run platform initializers.\n  const injector = createPlatformInjector(providers);\n  _platformInjector = injector;\n  publishSignalConfiguration();\n  runPlatformInitializers(injector);\n  return injector;\n}\nfunction runPlatformInitializers(injector) {\n  const inits = injector.get(PLATFORM_INITIALIZER, null);\n  inits?.forEach(init => init());\n}\n\n/**\n * Returns whether Angular is in development mode.\n *\n * By default, this is true, unless `enableProdMode` is invoked prior to calling this method or the\n * application is built using the Angular CLI with the `optimization` option.\n * @see {@link cli/build ng build}\n *\n * @publicApi\n */\nfunction isDevMode() {\n  return typeof ngDevMode === 'undefined' || !!ngDevMode;\n}\n/**\n * Disable Angular's development mode, which turns off assertions and other\n * checks within the framework.\n *\n * One important assertion this disables verifies that a change detection pass\n * does not result in additional changes to any bindings (also known as\n * unidirectional data flow).\n *\n * Using this method is discouraged as the Angular CLI will set production mode when using the\n * `optimization` option.\n * @see {@link cli/build ng build}\n *\n * @publicApi\n */\nfunction enableProdMode() {\n  // The below check is there so when ngDevMode is set via terser\n  // `global['ngDevMode'] = false;` is also dropped.\n  if (typeof ngDevMode === 'undefined' || ngDevMode) {\n    _global['ngDevMode'] = false;\n  }\n}\n\n// Public API for render\n\n/**\n * Returns the NgModuleFactory with the given id (specified using [@NgModule.id\n * field](api/core/NgModule#id)), if it exists and has been loaded. Factories for NgModules that do\n * not specify an `id` cannot be retrieved. Throws if an NgModule cannot be found.\n * @publicApi\n * @deprecated Use `getNgModuleById` instead.\n */\nfunction getModuleFactory(id) {\n  const type = getRegisteredNgModuleType(id);\n  if (!type) throw noModuleError(id);\n  return new NgModuleFactory(type);\n}\n/**\n * Returns the NgModule class with the given id (specified using [@NgModule.id\n * field](api/core/NgModule#id)), if it exists and has been loaded. Classes for NgModules that do\n * not specify an `id` cannot be retrieved. Throws if an NgModule cannot be found.\n * @publicApi\n */\nfunction getNgModuleById(id) {\n  const type = getRegisteredNgModuleType(id);\n  if (!type) throw noModuleError(id);\n  return type;\n}\nfunction noModuleError(id) {\n  return new Error(`No module with ID ${id} loaded`);\n}\n\n/**\n * Base class that provides change detection functionality.\n * A change-detection tree collects all views that are to be checked for changes.\n * Use the methods to add and remove views from the tree, initiate change-detection,\n * and explicitly mark views as _dirty_, meaning that they have changed and need to be re-rendered.\n *\n * @see [Using change detection hooks](guide/lifecycle-hooks#using-change-detection-hooks)\n * @see [Defining custom change detection](guide/lifecycle-hooks#defining-custom-change-detection)\n *\n * @usageNotes\n *\n * The following examples demonstrate how to modify default change-detection behavior\n * to perform explicit detection when needed.\n *\n * ### Use `markForCheck()` with `CheckOnce` strategy\n *\n * The following example sets the `OnPush` change-detection strategy for a component\n * (`CheckOnce`, rather than the default `CheckAlways`), then forces a second check\n * after an interval.\n *\n * <code-example path=\"core/ts/change_detect/change-detection.ts\"\n * region=\"mark-for-check\"></code-example>\n *\n * ### Detach change detector to limit how often check occurs\n *\n * The following example defines a component with a large list of read-only data\n * that is expected to change constantly, many times per second.\n * To improve performance, we want to check and update the list\n * less often than the changes actually occur. To do that, we detach\n * the component's change detector and perform an explicit local check every five seconds.\n *\n * <code-example path=\"core/ts/change_detect/change-detection.ts\" region=\"detach\"></code-example>\n *\n *\n * ### Reattaching a detached component\n *\n * The following example creates a component displaying live data.\n * The component detaches its change detector from the main change detector tree\n * when the `live` property is set to false, and reattaches it when the property\n * becomes true.\n *\n * <code-example path=\"core/ts/change_detect/change-detection.ts\" region=\"reattach\"></code-example>\n *\n * @publicApi\n */\nlet ChangeDetectorRef = /*#__PURE__*/(() => {\n  class ChangeDetectorRef {\n    /**\n     * @internal\n     * @nocollapse\n     */\n    static {\n      this.__NG_ELEMENT_ID__ = injectChangeDetectorRef;\n    }\n  }\n  return ChangeDetectorRef;\n})();\n/** Returns a ChangeDetectorRef (a.k.a. a ViewRef) */\nfunction injectChangeDetectorRef(flags) {\n  return createViewRef(getCurrentTNode(), getLView(), (flags & 16 /* InternalInjectFlags.ForPipe */) === 16 /* InternalInjectFlags.ForPipe */);\n}\n/**\n * Creates a ViewRef and stores it on the injector as ChangeDetectorRef (public alias).\n *\n * @param tNode The node that is requesting a ChangeDetectorRef\n * @param lView The view to which the node belongs\n * @param isPipe Whether the view is being injected into a pipe.\n * @returns The ChangeDetectorRef to use\n */\nfunction createViewRef(tNode, lView, isPipe) {\n  if (isComponentHost(tNode) && !isPipe) {\n    // The LView represents the location where the component is declared.\n    // Instead we want the LView for the component View and so we need to look it up.\n    const componentView = getComponentLViewByIndex(tNode.index, lView); // look down\n    return new ViewRef$1(componentView, componentView);\n  } else if (tNode.type & (3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */ | 32 /* TNodeType.Icu */)) {\n    // The LView represents the location where the injection is requested from.\n    // We need to locate the containing LView (in case where the `lView` is an embedded view)\n    const hostComponentView = lView[DECLARATION_COMPONENT_VIEW]; // look up\n    return new ViewRef$1(hostComponentView, lView);\n  }\n  return null;\n}\n\n/**\n * Represents an Angular [view](guide/glossary#view \"Definition\").\n *\n * @see {@link ChangeDetectorRef#usage-notes Change detection usage}\n *\n * @publicApi\n */\nclass ViewRef extends ChangeDetectorRef {}\n/**\n * Represents an Angular [view](guide/glossary#view) in a view container.\n * An [embedded view](guide/glossary#view-hierarchy) can be referenced from a component\n * other than the hosting component whose template defines it, or it can be defined\n * independently by a `TemplateRef`.\n *\n * Properties of elements in a view can change, but the structure (number and order) of elements in\n * a view cannot. Change the structure of elements by inserting, moving, or\n * removing nested views in a view container.\n *\n * @see {@link ViewContainerRef}\n *\n * @usageNotes\n *\n * The following template breaks down into two separate `TemplateRef` instances,\n * an outer one and an inner one.\n *\n * ```\n * Count: {{items.length}}\n * <ul>\n *   <li *ngFor=\"let  item of items\">{{item}}</li>\n * </ul>\n * ```\n *\n * This is the outer `TemplateRef`:\n *\n * ```\n * Count: {{items.length}}\n * <ul>\n *   <ng-template ngFor let-item [ngForOf]=\"items\"></ng-template>\n * </ul>\n * ```\n *\n * This is the inner `TemplateRef`:\n *\n * ```\n *   <li>{{item}}</li>\n * ```\n *\n * The outer and inner `TemplateRef` instances are assembled into views as follows:\n *\n * ```\n * <!-- ViewRef: outer-0 -->\n * Count: 2\n * <ul>\n *   <ng-template view-container-ref></ng-template>\n *   <!-- ViewRef: inner-1 --><li>first</li><!-- /ViewRef: inner-1 -->\n *   <!-- ViewRef: inner-2 --><li>second</li><!-- /ViewRef: inner-2 -->\n * </ul>\n * <!-- /ViewRef: outer-0 -->\n * ```\n * @publicApi\n */\nclass EmbeddedViewRef extends ViewRef {}\n\n// Public API for compiler\n\n// This file exists for easily patching NgModuleFactoryLoader in g3\nvar ng_module_factory_loader_impl = {};\n\n/**\n * @publicApi\n */\nclass DebugEventListener {\n  constructor(name, callback) {\n    this.name = name;\n    this.callback = callback;\n  }\n}\n/**\n * @publicApi\n */\nfunction asNativeElements(debugEls) {\n  return debugEls.map(el => el.nativeElement);\n}\n/**\n * @publicApi\n */\nclass DebugNode {\n  constructor(nativeNode) {\n    this.nativeNode = nativeNode;\n  }\n  /**\n   * The `DebugElement` parent. Will be `null` if this is the root element.\n   */\n  get parent() {\n    const parent = this.nativeNode.parentNode;\n    return parent ? new DebugElement(parent) : null;\n  }\n  /**\n   * The host dependency injector. For example, the root element's component instance injector.\n   */\n  get injector() {\n    return getInjector(this.nativeNode);\n  }\n  /**\n   * The element's own component instance, if it has one.\n   */\n  get componentInstance() {\n    const nativeElement = this.nativeNode;\n    return nativeElement && (getComponent$1(nativeElement) || getOwningComponent(nativeElement));\n  }\n  /**\n   * An object that provides parent context for this element. Often an ancestor component instance\n   * that governs this element.\n   *\n   * When an element is repeated within *ngFor, the context is an `NgForOf` whose `$implicit`\n   * property is the value of the row instance value. For example, the `hero` in `*ngFor=\"let hero\n   * of heroes\"`.\n   */\n  get context() {\n    return getComponent$1(this.nativeNode) || getContext(this.nativeNode);\n  }\n  /**\n   * The callbacks attached to the component's @Output properties and/or the element's event\n   * properties.\n   */\n  get listeners() {\n    return getListeners(this.nativeNode).filter(listener => listener.type === 'dom');\n  }\n  /**\n   * Dictionary of objects associated with template local variables (e.g. #foo), keyed by the local\n   * variable name.\n   */\n  get references() {\n    return getLocalRefs(this.nativeNode);\n  }\n  /**\n   * This component's injector lookup tokens. Includes the component itself plus the tokens that the\n   * component lists in its providers metadata.\n   */\n  get providerTokens() {\n    return getInjectionTokens(this.nativeNode);\n  }\n}\n/**\n * @publicApi\n *\n * @see [Component testing scenarios](guide/testing-components-scenarios)\n * @see [Basics of testing components](guide/testing-components-basics)\n * @see [Testing utility APIs](guide/testing-utility-apis)\n */\nclass DebugElement extends DebugNode {\n  constructor(nativeNode) {\n    ngDevMode && assertDomNode(nativeNode);\n    super(nativeNode);\n  }\n  /**\n   * The underlying DOM element at the root of the component.\n   */\n  get nativeElement() {\n    return this.nativeNode.nodeType == Node.ELEMENT_NODE ? this.nativeNode : null;\n  }\n  /**\n   * The element tag name, if it is an element.\n   */\n  get name() {\n    const context = getLContext(this.nativeNode);\n    const lView = context ? context.lView : null;\n    if (lView !== null) {\n      const tData = lView[TVIEW].data;\n      const tNode = tData[context.nodeIndex];\n      return tNode.value;\n    } else {\n      return this.nativeNode.nodeName;\n    }\n  }\n  /**\n   *  Gets a map of property names to property values for an element.\n   *\n   *  This map includes:\n   *  - Regular property bindings (e.g. `[id]=\"id\"`)\n   *  - Host property bindings (e.g. `host: { '[id]': \"id\" }`)\n   *  - Interpolated property bindings (e.g. `id=\"{{ value }}\")\n   *\n   *  It does not include:\n   *  - input property bindings (e.g. `[myCustomInput]=\"value\"`)\n   *  - attribute bindings (e.g. `[attr.role]=\"menu\"`)\n   */\n  get properties() {\n    const context = getLContext(this.nativeNode);\n    const lView = context ? context.lView : null;\n    if (lView === null) {\n      return {};\n    }\n    const tData = lView[TVIEW].data;\n    const tNode = tData[context.nodeIndex];\n    const properties = {};\n    // Collect properties from the DOM.\n    copyDomProperties(this.nativeElement, properties);\n    // Collect properties from the bindings. This is needed for animation renderer which has\n    // synthetic properties which don't get reflected into the DOM.\n    collectPropertyBindings(properties, tNode, lView, tData);\n    return properties;\n  }\n  /**\n   *  A map of attribute names to attribute values for an element.\n   */\n  // TODO: replace null by undefined in the return type\n  get attributes() {\n    const attributes = {};\n    const element = this.nativeElement;\n    if (!element) {\n      return attributes;\n    }\n    const context = getLContext(element);\n    const lView = context ? context.lView : null;\n    if (lView === null) {\n      return {};\n    }\n    const tNodeAttrs = lView[TVIEW].data[context.nodeIndex].attrs;\n    const lowercaseTNodeAttrs = [];\n    // For debug nodes we take the element's attribute directly from the DOM since it allows us\n    // to account for ones that weren't set via bindings (e.g. ViewEngine keeps track of the ones\n    // that are set through `Renderer2`). The problem is that the browser will lowercase all names,\n    // however since we have the attributes already on the TNode, we can preserve the case by going\n    // through them once, adding them to the `attributes` map and putting their lower-cased name\n    // into an array. Afterwards when we're going through the native DOM attributes, we can check\n    // whether we haven't run into an attribute already through the TNode.\n    if (tNodeAttrs) {\n      let i = 0;\n      while (i < tNodeAttrs.length) {\n        const attrName = tNodeAttrs[i];\n        // Stop as soon as we hit a marker. We only care about the regular attributes. Everything\n        // else will be handled below when we read the final attributes off the DOM.\n        if (typeof attrName !== 'string') break;\n        const attrValue = tNodeAttrs[i + 1];\n        attributes[attrName] = attrValue;\n        lowercaseTNodeAttrs.push(attrName.toLowerCase());\n        i += 2;\n      }\n    }\n    for (const attr of element.attributes) {\n      // Make sure that we don't assign the same attribute both in its\n      // case-sensitive form and the lower-cased one from the browser.\n      if (!lowercaseTNodeAttrs.includes(attr.name)) {\n        attributes[attr.name] = attr.value;\n      }\n    }\n    return attributes;\n  }\n  /**\n   * The inline styles of the DOM element.\n   */\n  // TODO: replace null by undefined in the return type\n  get styles() {\n    const element = this.nativeElement;\n    return element?.style ?? {};\n  }\n  /**\n   * A map containing the class names on the element as keys.\n   *\n   * This map is derived from the `className` property of the DOM element.\n   *\n   * Note: The values of this object will always be `true`. The class key will not appear in the KV\n   * object if it does not exist on the element.\n   *\n   * @see [Element.className](https://developer.mozilla.org/en-US/docs/Web/API/Element/className)\n   */\n  get classes() {\n    const result = {};\n    const element = this.nativeElement;\n    // SVG elements return an `SVGAnimatedString` instead of a plain string for the `className`.\n    const className = element.className;\n    const classes = typeof className !== 'string' ? className.baseVal.split(' ') : className.split(' ');\n    classes.forEach(value => result[value] = true);\n    return result;\n  }\n  /**\n   * The `childNodes` of the DOM element as a `DebugNode` array.\n   *\n   * @see [Node.childNodes](https://developer.mozilla.org/en-US/docs/Web/API/Node/childNodes)\n   */\n  get childNodes() {\n    const childNodes = this.nativeNode.childNodes;\n    const children = [];\n    for (let i = 0; i < childNodes.length; i++) {\n      const element = childNodes[i];\n      children.push(getDebugNode(element));\n    }\n    return children;\n  }\n  /**\n   * The immediate `DebugElement` children. Walk the tree by descending through `children`.\n   */\n  get children() {\n    const nativeElement = this.nativeElement;\n    if (!nativeElement) return [];\n    const childNodes = nativeElement.children;\n    const children = [];\n    for (let i = 0; i < childNodes.length; i++) {\n      const element = childNodes[i];\n      children.push(getDebugNode(element));\n    }\n    return children;\n  }\n  /**\n   * @returns the first `DebugElement` that matches the predicate at any depth in the subtree.\n   */\n  query(predicate) {\n    const results = this.queryAll(predicate);\n    return results[0] || null;\n  }\n  /**\n   * @returns All `DebugElement` matches for the predicate at any depth in the subtree.\n   */\n  queryAll(predicate) {\n    const matches = [];\n    _queryAll(this, predicate, matches, true);\n    return matches;\n  }\n  /**\n   * @returns All `DebugNode` matches for the predicate at any depth in the subtree.\n   */\n  queryAllNodes(predicate) {\n    const matches = [];\n    _queryAll(this, predicate, matches, false);\n    return matches;\n  }\n  /**\n   * Triggers the event by its name if there is a corresponding listener in the element's\n   * `listeners` collection.\n   *\n   * If the event lacks a listener or there's some other problem, consider\n   * calling `nativeElement.dispatchEvent(eventObject)`.\n   *\n   * @param eventName The name of the event to trigger\n   * @param eventObj The _event object_ expected by the handler\n   *\n   * @see [Testing components scenarios](guide/testing-components-scenarios#trigger-event-handler)\n   */\n  triggerEventHandler(eventName, eventObj) {\n    const node = this.nativeNode;\n    const invokedListeners = [];\n    this.listeners.forEach(listener => {\n      if (listener.name === eventName) {\n        const callback = listener.callback;\n        callback.call(node, eventObj);\n        invokedListeners.push(callback);\n      }\n    });\n    // We need to check whether `eventListeners` exists, because it's something\n    // that Zone.js only adds to `EventTarget` in browser environments.\n    if (typeof node.eventListeners === 'function') {\n      // Note that in Ivy we wrap event listeners with a call to `event.preventDefault` in some\n      // cases. We use '__ngUnwrap__' as a special token that gives us access to the actual event\n      // listener.\n      node.eventListeners(eventName).forEach(listener => {\n        // In order to ensure that we can detect the special __ngUnwrap__ token described above, we\n        // use `toString` on the listener and see if it contains the token. We use this approach to\n        // ensure that it still worked with compiled code since it cannot remove or rename string\n        // literals. We also considered using a special function name (i.e. if(listener.name ===\n        // special)) but that was more cumbersome and we were also concerned the compiled code could\n        // strip the name, turning the condition in to (\"\" === \"\") and always returning true.\n        if (listener.toString().indexOf('__ngUnwrap__') !== -1) {\n          const unwrappedListener = listener('__ngUnwrap__');\n          return invokedListeners.indexOf(unwrappedListener) === -1 && unwrappedListener.call(node, eventObj);\n        }\n      });\n    }\n  }\n}\nfunction copyDomProperties(element, properties) {\n  if (element) {\n    // Skip own properties (as those are patched)\n    let obj = Object.getPrototypeOf(element);\n    const NodePrototype = Node.prototype;\n    while (obj !== null && obj !== NodePrototype) {\n      const descriptors = Object.getOwnPropertyDescriptors(obj);\n      for (let key in descriptors) {\n        if (!key.startsWith('__') && !key.startsWith('on')) {\n          // don't include properties starting with `__` and `on`.\n          // `__` are patched values which should not be included.\n          // `on` are listeners which also should not be included.\n          const value = element[key];\n          if (isPrimitiveValue(value)) {\n            properties[key] = value;\n          }\n        }\n      }\n      obj = Object.getPrototypeOf(obj);\n    }\n  }\n}\nfunction isPrimitiveValue(value) {\n  return typeof value === 'string' || typeof value === 'boolean' || typeof value === 'number' || value === null;\n}\nfunction _queryAll(parentElement, predicate, matches, elementsOnly) {\n  const context = getLContext(parentElement.nativeNode);\n  const lView = context ? context.lView : null;\n  if (lView !== null) {\n    const parentTNode = lView[TVIEW].data[context.nodeIndex];\n    _queryNodeChildren(parentTNode, lView, predicate, matches, elementsOnly, parentElement.nativeNode);\n  } else {\n    // If the context is null, then `parentElement` was either created with Renderer2 or native DOM\n    // APIs.\n    _queryNativeNodeDescendants(parentElement.nativeNode, predicate, matches, elementsOnly);\n  }\n}\n/**\n * Recursively match the current TNode against the predicate, and goes on with the next ones.\n *\n * @param tNode the current TNode\n * @param lView the LView of this TNode\n * @param predicate the predicate to match\n * @param matches the list of positive matches\n * @param elementsOnly whether only elements should be searched\n * @param rootNativeNode the root native node on which predicate should not be matched\n */\nfunction _queryNodeChildren(tNode, lView, predicate, matches, elementsOnly, rootNativeNode) {\n  ngDevMode && assertTNodeForLView(tNode, lView);\n  const nativeNode = getNativeByTNodeOrNull(tNode, lView);\n  // For each type of TNode, specific logic is executed.\n  if (tNode.type & (3 /* TNodeType.AnyRNode */ | 8 /* TNodeType.ElementContainer */)) {\n    // Case 1: the TNode is an element\n    // The native node has to be checked.\n    _addQueryMatch(nativeNode, predicate, matches, elementsOnly, rootNativeNode);\n    if (isComponentHost(tNode)) {\n      // If the element is the host of a component, then all nodes in its view have to be processed.\n      // Note: the component's content (tNode.child) will be processed from the insertion points.\n      const componentView = getComponentLViewByIndex(tNode.index, lView);\n      if (componentView && componentView[TVIEW].firstChild) {\n        _queryNodeChildren(componentView[TVIEW].firstChild, componentView, predicate, matches, elementsOnly, rootNativeNode);\n      }\n    } else {\n      if (tNode.child) {\n        // Otherwise, its children have to be processed.\n        _queryNodeChildren(tNode.child, lView, predicate, matches, elementsOnly, rootNativeNode);\n      }\n      // We also have to query the DOM directly in order to catch elements inserted through\n      // Renderer2. Note that this is __not__ optimal, because we're walking similar trees multiple\n      // times. ViewEngine could do it more efficiently, because all the insertions go through\n      // Renderer2, however that's not the case in Ivy. This approach is being used because:\n      // 1. Matching the ViewEngine behavior would mean potentially introducing a dependency\n      //    from `Renderer2` to Ivy which could bring Ivy code into ViewEngine.\n      // 2. It allows us to capture nodes that were inserted directly via the DOM.\n      nativeNode && _queryNativeNodeDescendants(nativeNode, predicate, matches, elementsOnly);\n    }\n    // In all cases, if a dynamic container exists for this node, each view inside it has to be\n    // processed.\n    const nodeOrContainer = lView[tNode.index];\n    if (isLContainer(nodeOrContainer)) {\n      _queryNodeChildrenInContainer(nodeOrContainer, predicate, matches, elementsOnly, rootNativeNode);\n    }\n  } else if (tNode.type & 4 /* TNodeType.Container */) {\n    // Case 2: the TNode is a container\n    // The native node has to be checked.\n    const lContainer = lView[tNode.index];\n    _addQueryMatch(lContainer[NATIVE], predicate, matches, elementsOnly, rootNativeNode);\n    // Each view inside the container has to be processed.\n    _queryNodeChildrenInContainer(lContainer, predicate, matches, elementsOnly, rootNativeNode);\n  } else if (tNode.type & 16 /* TNodeType.Projection */) {\n    // Case 3: the TNode is a projection insertion point (i.e. a <ng-content>).\n    // The nodes projected at this location all need to be processed.\n    const componentView = lView[DECLARATION_COMPONENT_VIEW];\n    const componentHost = componentView[T_HOST];\n    const head = componentHost.projection[tNode.projection];\n    if (Array.isArray(head)) {\n      for (let nativeNode of head) {\n        _addQueryMatch(nativeNode, predicate, matches, elementsOnly, rootNativeNode);\n      }\n    } else if (head) {\n      const nextLView = componentView[PARENT];\n      const nextTNode = nextLView[TVIEW].data[head.index];\n      _queryNodeChildren(nextTNode, nextLView, predicate, matches, elementsOnly, rootNativeNode);\n    }\n  } else if (tNode.child) {\n    // Case 4: the TNode is a view.\n    _queryNodeChildren(tNode.child, lView, predicate, matches, elementsOnly, rootNativeNode);\n  }\n  // We don't want to go to the next sibling of the root node.\n  if (rootNativeNode !== nativeNode) {\n    // To determine the next node to be processed, we need to use the next or the projectionNext\n    // link, depending on whether the current node has been projected.\n    const nextTNode = tNode.flags & 2 /* TNodeFlags.isProjected */ ? tNode.projectionNext : tNode.next;\n    if (nextTNode) {\n      _queryNodeChildren(nextTNode, lView, predicate, matches, elementsOnly, rootNativeNode);\n    }\n  }\n}\n/**\n * Process all TNodes in a given container.\n *\n * @param lContainer the container to be processed\n * @param predicate the predicate to match\n * @param matches the list of positive matches\n * @param elementsOnly whether only elements should be searched\n * @param rootNativeNode the root native node on which predicate should not be matched\n */\nfunction _queryNodeChildrenInContainer(lContainer, predicate, matches, elementsOnly, rootNativeNode) {\n  for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {\n    const childView = lContainer[i];\n    const firstChild = childView[TVIEW].firstChild;\n    if (firstChild) {\n      _queryNodeChildren(firstChild, childView, predicate, matches, elementsOnly, rootNativeNode);\n    }\n  }\n}\n/**\n * Match the current native node against the predicate.\n *\n * @param nativeNode the current native node\n * @param predicate the predicate to match\n * @param matches the list of positive matches\n * @param elementsOnly whether only elements should be searched\n * @param rootNativeNode the root native node on which predicate should not be matched\n */\nfunction _addQueryMatch(nativeNode, predicate, matches, elementsOnly, rootNativeNode) {\n  if (rootNativeNode !== nativeNode) {\n    const debugNode = getDebugNode(nativeNode);\n    if (!debugNode) {\n      return;\n    }\n    // Type of the \"predicate and \"matches\" array are set based on the value of\n    // the \"elementsOnly\" parameter. TypeScript is not able to properly infer these\n    // types with generics, so we manually cast the parameters accordingly.\n    if (elementsOnly && debugNode instanceof DebugElement && predicate(debugNode) && matches.indexOf(debugNode) === -1) {\n      matches.push(debugNode);\n    } else if (!elementsOnly && predicate(debugNode) && matches.indexOf(debugNode) === -1) {\n      matches.push(debugNode);\n    }\n  }\n}\n/**\n * Match all the descendants of a DOM node against a predicate.\n *\n * @param nativeNode the current native node\n * @param predicate the predicate to match\n * @param matches the list where matches are stored\n * @param elementsOnly whether only elements should be searched\n */\nfunction _queryNativeNodeDescendants(parentNode, predicate, matches, elementsOnly) {\n  const nodes = parentNode.childNodes;\n  const length = nodes.length;\n  for (let i = 0; i < length; i++) {\n    const node = nodes[i];\n    const debugNode = getDebugNode(node);\n    if (debugNode) {\n      if (elementsOnly && debugNode instanceof DebugElement && predicate(debugNode) && matches.indexOf(debugNode) === -1) {\n        matches.push(debugNode);\n      } else if (!elementsOnly && predicate(debugNode) && matches.indexOf(debugNode) === -1) {\n        matches.push(debugNode);\n      }\n      _queryNativeNodeDescendants(node, predicate, matches, elementsOnly);\n    }\n  }\n}\n/**\n * Iterates through the property bindings for a given node and generates\n * a map of property names to values. This map only contains property bindings\n * defined in templates, not in host bindings.\n */\nfunction collectPropertyBindings(properties, tNode, lView, tData) {\n  let bindingIndexes = tNode.propertyBindings;\n  if (bindingIndexes !== null) {\n    for (let i = 0; i < bindingIndexes.length; i++) {\n      const bindingIndex = bindingIndexes[i];\n      const propMetadata = tData[bindingIndex];\n      const metadataParts = propMetadata.split(INTERPOLATION_DELIMITER);\n      const propertyName = metadataParts[0];\n      if (metadataParts.length > 1) {\n        let value = metadataParts[1];\n        for (let j = 1; j < metadataParts.length - 1; j++) {\n          value += renderStringify(lView[bindingIndex + j - 1]) + metadataParts[j + 1];\n        }\n        properties[propertyName] = value;\n      } else {\n        properties[propertyName] = lView[bindingIndex];\n      }\n    }\n  }\n}\n// Need to keep the nodes in a global Map so that multiple angular apps are supported.\nconst _nativeNodeToDebugNode = /*#__PURE__*/new Map();\nconst NG_DEBUG_PROPERTY = '__ng_debug__';\n/**\n * @publicApi\n */\nfunction getDebugNode(nativeNode) {\n  if (nativeNode instanceof Node) {\n    if (!nativeNode.hasOwnProperty(NG_DEBUG_PROPERTY)) {\n      nativeNode[NG_DEBUG_PROPERTY] = nativeNode.nodeType == Node.ELEMENT_NODE ? new DebugElement(nativeNode) : new DebugNode(nativeNode);\n    }\n    return nativeNode[NG_DEBUG_PROPERTY];\n  }\n  return null;\n}\nfunction getAllDebugNodes() {\n  return Array.from(_nativeNodeToDebugNode.values());\n}\nfunction indexDebugNode(node) {\n  _nativeNodeToDebugNode.set(node.nativeNode, node);\n}\nfunction removeDebugNodeFromIndex(node) {\n  _nativeNodeToDebugNode.delete(node.nativeNode);\n}\nclass DefaultIterableDifferFactory {\n  constructor() {}\n  supports(obj) {\n    return isListLikeIterable(obj);\n  }\n  create(trackByFn) {\n    return new DefaultIterableDiffer(trackByFn);\n  }\n}\nconst trackByIdentity = (index, item) => item;\n/**\n * @deprecated v4.0.0 - Should not be part of public API.\n * @publicApi\n */\nclass DefaultIterableDiffer {\n  constructor(trackByFn) {\n    this.length = 0;\n    // Keeps track of the used records at any point in time (during & across `_check()` calls)\n    this._linkedRecords = null;\n    // Keeps track of the removed records at any point in time during `_check()` calls.\n    this._unlinkedRecords = null;\n    this._previousItHead = null;\n    this._itHead = null;\n    this._itTail = null;\n    this._additionsHead = null;\n    this._additionsTail = null;\n    this._movesHead = null;\n    this._movesTail = null;\n    this._removalsHead = null;\n    this._removalsTail = null;\n    // Keeps track of records where custom track by is the same, but item identity has changed\n    this._identityChangesHead = null;\n    this._identityChangesTail = null;\n    this._trackByFn = trackByFn || trackByIdentity;\n  }\n  forEachItem(fn) {\n    let record;\n    for (record = this._itHead; record !== null; record = record._next) {\n      fn(record);\n    }\n  }\n  forEachOperation(fn) {\n    let nextIt = this._itHead;\n    let nextRemove = this._removalsHead;\n    let addRemoveOffset = 0;\n    let moveOffsets = null;\n    while (nextIt || nextRemove) {\n      // Figure out which is the next record to process\n      // Order: remove, add, move\n      const record = !nextRemove || nextIt && nextIt.currentIndex < getPreviousIndex(nextRemove, addRemoveOffset, moveOffsets) ? nextIt : nextRemove;\n      const adjPreviousIndex = getPreviousIndex(record, addRemoveOffset, moveOffsets);\n      const currentIndex = record.currentIndex;\n      // consume the item, and adjust the addRemoveOffset and update moveDistance if necessary\n      if (record === nextRemove) {\n        addRemoveOffset--;\n        nextRemove = nextRemove._nextRemoved;\n      } else {\n        nextIt = nextIt._next;\n        if (record.previousIndex == null) {\n          addRemoveOffset++;\n        } else {\n          // INVARIANT:  currentIndex < previousIndex\n          if (!moveOffsets) moveOffsets = [];\n          const localMovePreviousIndex = adjPreviousIndex - addRemoveOffset;\n          const localCurrentIndex = currentIndex - addRemoveOffset;\n          if (localMovePreviousIndex != localCurrentIndex) {\n            for (let i = 0; i < localMovePreviousIndex; i++) {\n              const offset = i < moveOffsets.length ? moveOffsets[i] : moveOffsets[i] = 0;\n              const index = offset + i;\n              if (localCurrentIndex <= index && index < localMovePreviousIndex) {\n                moveOffsets[i] = offset + 1;\n              }\n            }\n            const previousIndex = record.previousIndex;\n            moveOffsets[previousIndex] = localCurrentIndex - localMovePreviousIndex;\n          }\n        }\n      }\n      if (adjPreviousIndex !== currentIndex) {\n        fn(record, adjPreviousIndex, currentIndex);\n      }\n    }\n  }\n  forEachPreviousItem(fn) {\n    let record;\n    for (record = this._previousItHead; record !== null; record = record._nextPrevious) {\n      fn(record);\n    }\n  }\n  forEachAddedItem(fn) {\n    let record;\n    for (record = this._additionsHead; record !== null; record = record._nextAdded) {\n      fn(record);\n    }\n  }\n  forEachMovedItem(fn) {\n    let record;\n    for (record = this._movesHead; record !== null; record = record._nextMoved) {\n      fn(record);\n    }\n  }\n  forEachRemovedItem(fn) {\n    let record;\n    for (record = this._removalsHead; record !== null; record = record._nextRemoved) {\n      fn(record);\n    }\n  }\n  forEachIdentityChange(fn) {\n    let record;\n    for (record = this._identityChangesHead; record !== null; record = record._nextIdentityChange) {\n      fn(record);\n    }\n  }\n  diff(collection) {\n    if (collection == null) collection = [];\n    if (!isListLikeIterable(collection)) {\n      throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, ngDevMode && `Error trying to diff '${stringify(collection)}'. Only arrays and iterables are allowed`);\n    }\n    if (this.check(collection)) {\n      return this;\n    } else {\n      return null;\n    }\n  }\n  onDestroy() {}\n  check(collection) {\n    this._reset();\n    let record = this._itHead;\n    let mayBeDirty = false;\n    let index;\n    let item;\n    let itemTrackBy;\n    if (Array.isArray(collection)) {\n      this.length = collection.length;\n      for (let index = 0; index < this.length; index++) {\n        item = collection[index];\n        itemTrackBy = this._trackByFn(index, item);\n        if (record === null || !Object.is(record.trackById, itemTrackBy)) {\n          record = this._mismatch(record, item, itemTrackBy, index);\n          mayBeDirty = true;\n        } else {\n          if (mayBeDirty) {\n            // TODO(misko): can we limit this to duplicates only?\n            record = this._verifyReinsertion(record, item, itemTrackBy, index);\n          }\n          if (!Object.is(record.item, item)) this._addIdentityChange(record, item);\n        }\n        record = record._next;\n      }\n    } else {\n      index = 0;\n      iterateListLike(collection, item => {\n        itemTrackBy = this._trackByFn(index, item);\n        if (record === null || !Object.is(record.trackById, itemTrackBy)) {\n          record = this._mismatch(record, item, itemTrackBy, index);\n          mayBeDirty = true;\n        } else {\n          if (mayBeDirty) {\n            // TODO(misko): can we limit this to duplicates only?\n            record = this._verifyReinsertion(record, item, itemTrackBy, index);\n          }\n          if (!Object.is(record.item, item)) this._addIdentityChange(record, item);\n        }\n        record = record._next;\n        index++;\n      });\n      this.length = index;\n    }\n    this._truncate(record);\n    this.collection = collection;\n    return this.isDirty;\n  }\n  /* CollectionChanges is considered dirty if it has any additions, moves, removals, or identity\n   * changes.\n   */\n  get isDirty() {\n    return this._additionsHead !== null || this._movesHead !== null || this._removalsHead !== null || this._identityChangesHead !== null;\n  }\n  /**\n   * Reset the state of the change objects to show no changes. This means set previousKey to\n   * currentKey, and clear all of the queues (additions, moves, removals).\n   * Set the previousIndexes of moved and added items to their currentIndexes\n   * Reset the list of additions, moves and removals\n   *\n   * @internal\n   */\n  _reset() {\n    if (this.isDirty) {\n      let record;\n      for (record = this._previousItHead = this._itHead; record !== null; record = record._next) {\n        record._nextPrevious = record._next;\n      }\n      for (record = this._additionsHead; record !== null; record = record._nextAdded) {\n        record.previousIndex = record.currentIndex;\n      }\n      this._additionsHead = this._additionsTail = null;\n      for (record = this._movesHead; record !== null; record = record._nextMoved) {\n        record.previousIndex = record.currentIndex;\n      }\n      this._movesHead = this._movesTail = null;\n      this._removalsHead = this._removalsTail = null;\n      this._identityChangesHead = this._identityChangesTail = null;\n      // TODO(vicb): when assert gets supported\n      // assert(!this.isDirty);\n    }\n  }\n  /**\n   * This is the core function which handles differences between collections.\n   *\n   * - `record` is the record which we saw at this position last time. If null then it is a new\n   *   item.\n   * - `item` is the current item in the collection\n   * - `index` is the position of the item in the collection\n   *\n   * @internal\n   */\n  _mismatch(record, item, itemTrackBy, index) {\n    // The previous record after which we will append the current one.\n    let previousRecord;\n    if (record === null) {\n      previousRecord = this._itTail;\n    } else {\n      previousRecord = record._prev;\n      // Remove the record from the collection since we know it does not match the item.\n      this._remove(record);\n    }\n    // See if we have evicted the item, which used to be at some anterior position of _itHead list.\n    record = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy, null);\n    if (record !== null) {\n      // It is an item which we have evicted earlier: reinsert it back into the list.\n      // But first we need to check if identity changed, so we can update in view if necessary.\n      if (!Object.is(record.item, item)) this._addIdentityChange(record, item);\n      this._reinsertAfter(record, previousRecord, index);\n    } else {\n      // Attempt to see if the item is at some posterior position of _itHead list.\n      record = this._linkedRecords === null ? null : this._linkedRecords.get(itemTrackBy, index);\n      if (record !== null) {\n        // We have the item in _itHead at/after `index` position. We need to move it forward in the\n        // collection.\n        // But first we need to check if identity changed, so we can update in view if necessary.\n        if (!Object.is(record.item, item)) this._addIdentityChange(record, item);\n        this._moveAfter(record, previousRecord, index);\n      } else {\n        // It is a new item: add it.\n        record = this._addAfter(new IterableChangeRecord_(item, itemTrackBy), previousRecord, index);\n      }\n    }\n    return record;\n  }\n  /**\n   * This check is only needed if an array contains duplicates. (Short circuit of nothing dirty)\n   *\n   * Use case: `[a, a]` => `[b, a, a]`\n   *\n   * If we did not have this check then the insertion of `b` would:\n   *   1) evict first `a`\n   *   2) insert `b` at `0` index.\n   *   3) leave `a` at index `1` as is. <-- this is wrong!\n   *   3) reinsert `a` at index 2. <-- this is wrong!\n   *\n   * The correct behavior is:\n   *   1) evict first `a`\n   *   2) insert `b` at `0` index.\n   *   3) reinsert `a` at index 1.\n   *   3) move `a` at from `1` to `2`.\n   *\n   *\n   * Double check that we have not evicted a duplicate item. We need to check if the item type may\n   * have already been removed:\n   * The insertion of b will evict the first 'a'. If we don't reinsert it now it will be reinserted\n   * at the end. Which will show up as the two 'a's switching position. This is incorrect, since a\n   * better way to think of it is as insert of 'b' rather then switch 'a' with 'b' and then add 'a'\n   * at the end.\n   *\n   * @internal\n   */\n  _verifyReinsertion(record, item, itemTrackBy, index) {\n    let reinsertRecord = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy, null);\n    if (reinsertRecord !== null) {\n      record = this._reinsertAfter(reinsertRecord, record._prev, index);\n    } else if (record.currentIndex != index) {\n      record.currentIndex = index;\n      this._addToMoves(record, index);\n    }\n    return record;\n  }\n  /**\n   * Get rid of any excess {@link IterableChangeRecord_}s from the previous collection\n   *\n   * - `record` The first excess {@link IterableChangeRecord_}.\n   *\n   * @internal\n   */\n  _truncate(record) {\n    // Anything after that needs to be removed;\n    while (record !== null) {\n      const nextRecord = record._next;\n      this._addToRemovals(this._unlink(record));\n      record = nextRecord;\n    }\n    if (this._unlinkedRecords !== null) {\n      this._unlinkedRecords.clear();\n    }\n    if (this._additionsTail !== null) {\n      this._additionsTail._nextAdded = null;\n    }\n    if (this._movesTail !== null) {\n      this._movesTail._nextMoved = null;\n    }\n    if (this._itTail !== null) {\n      this._itTail._next = null;\n    }\n    if (this._removalsTail !== null) {\n      this._removalsTail._nextRemoved = null;\n    }\n    if (this._identityChangesTail !== null) {\n      this._identityChangesTail._nextIdentityChange = null;\n    }\n  }\n  /** @internal */\n  _reinsertAfter(record, prevRecord, index) {\n    if (this._unlinkedRecords !== null) {\n      this._unlinkedRecords.remove(record);\n    }\n    const prev = record._prevRemoved;\n    const next = record._nextRemoved;\n    if (prev === null) {\n      this._removalsHead = next;\n    } else {\n      prev._nextRemoved = next;\n    }\n    if (next === null) {\n      this._removalsTail = prev;\n    } else {\n      next._prevRemoved = prev;\n    }\n    this._insertAfter(record, prevRecord, index);\n    this._addToMoves(record, index);\n    return record;\n  }\n  /** @internal */\n  _moveAfter(record, prevRecord, index) {\n    this._unlink(record);\n    this._insertAfter(record, prevRecord, index);\n    this._addToMoves(record, index);\n    return record;\n  }\n  /** @internal */\n  _addAfter(record, prevRecord, index) {\n    this._insertAfter(record, prevRecord, index);\n    if (this._additionsTail === null) {\n      // TODO(vicb):\n      // assert(this._additionsHead === null);\n      this._additionsTail = this._additionsHead = record;\n    } else {\n      // TODO(vicb):\n      // assert(_additionsTail._nextAdded === null);\n      // assert(record._nextAdded === null);\n      this._additionsTail = this._additionsTail._nextAdded = record;\n    }\n    return record;\n  }\n  /** @internal */\n  _insertAfter(record, prevRecord, index) {\n    // TODO(vicb):\n    // assert(record != prevRecord);\n    // assert(record._next === null);\n    // assert(record._prev === null);\n    const next = prevRecord === null ? this._itHead : prevRecord._next;\n    // TODO(vicb):\n    // assert(next != record);\n    // assert(prevRecord != record);\n    record._next = next;\n    record._prev = prevRecord;\n    if (next === null) {\n      this._itTail = record;\n    } else {\n      next._prev = record;\n    }\n    if (prevRecord === null) {\n      this._itHead = record;\n    } else {\n      prevRecord._next = record;\n    }\n    if (this._linkedRecords === null) {\n      this._linkedRecords = new _DuplicateMap();\n    }\n    this._linkedRecords.put(record);\n    record.currentIndex = index;\n    return record;\n  }\n  /** @internal */\n  _remove(record) {\n    return this._addToRemovals(this._unlink(record));\n  }\n  /** @internal */\n  _unlink(record) {\n    if (this._linkedRecords !== null) {\n      this._linkedRecords.remove(record);\n    }\n    const prev = record._prev;\n    const next = record._next;\n    // TODO(vicb):\n    // assert((record._prev = null) === null);\n    // assert((record._next = null) === null);\n    if (prev === null) {\n      this._itHead = next;\n    } else {\n      prev._next = next;\n    }\n    if (next === null) {\n      this._itTail = prev;\n    } else {\n      next._prev = prev;\n    }\n    return record;\n  }\n  /** @internal */\n  _addToMoves(record, toIndex) {\n    // TODO(vicb):\n    // assert(record._nextMoved === null);\n    if (record.previousIndex === toIndex) {\n      return record;\n    }\n    if (this._movesTail === null) {\n      // TODO(vicb):\n      // assert(_movesHead === null);\n      this._movesTail = this._movesHead = record;\n    } else {\n      // TODO(vicb):\n      // assert(_movesTail._nextMoved === null);\n      this._movesTail = this._movesTail._nextMoved = record;\n    }\n    return record;\n  }\n  _addToRemovals(record) {\n    if (this._unlinkedRecords === null) {\n      this._unlinkedRecords = new _DuplicateMap();\n    }\n    this._unlinkedRecords.put(record);\n    record.currentIndex = null;\n    record._nextRemoved = null;\n    if (this._removalsTail === null) {\n      // TODO(vicb):\n      // assert(_removalsHead === null);\n      this._removalsTail = this._removalsHead = record;\n      record._prevRemoved = null;\n    } else {\n      // TODO(vicb):\n      // assert(_removalsTail._nextRemoved === null);\n      // assert(record._nextRemoved === null);\n      record._prevRemoved = this._removalsTail;\n      this._removalsTail = this._removalsTail._nextRemoved = record;\n    }\n    return record;\n  }\n  /** @internal */\n  _addIdentityChange(record, item) {\n    record.item = item;\n    if (this._identityChangesTail === null) {\n      this._identityChangesTail = this._identityChangesHead = record;\n    } else {\n      this._identityChangesTail = this._identityChangesTail._nextIdentityChange = record;\n    }\n    return record;\n  }\n}\nclass IterableChangeRecord_ {\n  constructor(item, trackById) {\n    this.item = item;\n    this.trackById = trackById;\n    this.currentIndex = null;\n    this.previousIndex = null;\n    /** @internal */\n    this._nextPrevious = null;\n    /** @internal */\n    this._prev = null;\n    /** @internal */\n    this._next = null;\n    /** @internal */\n    this._prevDup = null;\n    /** @internal */\n    this._nextDup = null;\n    /** @internal */\n    this._prevRemoved = null;\n    /** @internal */\n    this._nextRemoved = null;\n    /** @internal */\n    this._nextAdded = null;\n    /** @internal */\n    this._nextMoved = null;\n    /** @internal */\n    this._nextIdentityChange = null;\n  }\n}\n// A linked list of IterableChangeRecords with the same IterableChangeRecord_.item\nclass _DuplicateItemRecordList {\n  constructor() {\n    /** @internal */\n    this._head = null;\n    /** @internal */\n    this._tail = null;\n  }\n  /**\n   * Append the record to the list of duplicates.\n   *\n   * Note: by design all records in the list of duplicates hold the same value in record.item.\n   */\n  add(record) {\n    if (this._head === null) {\n      this._head = this._tail = record;\n      record._nextDup = null;\n      record._prevDup = null;\n    } else {\n      // TODO(vicb):\n      // assert(record.item ==  _head.item ||\n      //       record.item is num && record.item.isNaN && _head.item is num && _head.item.isNaN);\n      this._tail._nextDup = record;\n      record._prevDup = this._tail;\n      record._nextDup = null;\n      this._tail = record;\n    }\n  }\n  // Returns a IterableChangeRecord_ having IterableChangeRecord_.trackById == trackById and\n  // IterableChangeRecord_.currentIndex >= atOrAfterIndex\n  get(trackById, atOrAfterIndex) {\n    let record;\n    for (record = this._head; record !== null; record = record._nextDup) {\n      if ((atOrAfterIndex === null || atOrAfterIndex <= record.currentIndex) && Object.is(record.trackById, trackById)) {\n        return record;\n      }\n    }\n    return null;\n  }\n  /**\n   * Remove one {@link IterableChangeRecord_} from the list of duplicates.\n   *\n   * Returns whether the list of duplicates is empty.\n   */\n  remove(record) {\n    // TODO(vicb):\n    // assert(() {\n    //  // verify that the record being removed is in the list.\n    //  for (IterableChangeRecord_ cursor = _head; cursor != null; cursor = cursor._nextDup) {\n    //    if (identical(cursor, record)) return true;\n    //  }\n    //  return false;\n    //});\n    const prev = record._prevDup;\n    const next = record._nextDup;\n    if (prev === null) {\n      this._head = next;\n    } else {\n      prev._nextDup = next;\n    }\n    if (next === null) {\n      this._tail = prev;\n    } else {\n      next._prevDup = prev;\n    }\n    return this._head === null;\n  }\n}\nclass _DuplicateMap {\n  constructor() {\n    this.map = new Map();\n  }\n  put(record) {\n    const key = record.trackById;\n    let duplicates = this.map.get(key);\n    if (!duplicates) {\n      duplicates = new _DuplicateItemRecordList();\n      this.map.set(key, duplicates);\n    }\n    duplicates.add(record);\n  }\n  /**\n   * Retrieve the `value` using key. Because the IterableChangeRecord_ value may be one which we\n   * have already iterated over, we use the `atOrAfterIndex` to pretend it is not there.\n   *\n   * Use case: `[a, b, c, a, a]` if we are at index `3` which is the second `a` then asking if we\n   * have any more `a`s needs to return the second `a`.\n   */\n  get(trackById, atOrAfterIndex) {\n    const key = trackById;\n    const recordList = this.map.get(key);\n    return recordList ? recordList.get(trackById, atOrAfterIndex) : null;\n  }\n  /**\n   * Removes a {@link IterableChangeRecord_} from the list of duplicates.\n   *\n   * The list of duplicates also is removed from the map if it gets empty.\n   */\n  remove(record) {\n    const key = record.trackById;\n    const recordList = this.map.get(key);\n    // Remove the list of duplicates when it gets empty\n    if (recordList.remove(record)) {\n      this.map.delete(key);\n    }\n    return record;\n  }\n  get isEmpty() {\n    return this.map.size === 0;\n  }\n  clear() {\n    this.map.clear();\n  }\n}\nfunction getPreviousIndex(item, addRemoveOffset, moveOffsets) {\n  const previousIndex = item.previousIndex;\n  if (previousIndex === null) return previousIndex;\n  let moveOffset = 0;\n  if (moveOffsets && previousIndex < moveOffsets.length) {\n    moveOffset = moveOffsets[previousIndex];\n  }\n  return previousIndex + addRemoveOffset + moveOffset;\n}\nclass DefaultKeyValueDifferFactory {\n  constructor() {}\n  supports(obj) {\n    return obj instanceof Map || isJsObject(obj);\n  }\n  create() {\n    return new DefaultKeyValueDiffer();\n  }\n}\nclass DefaultKeyValueDiffer {\n  constructor() {\n    this._records = new Map();\n    this._mapHead = null;\n    // _appendAfter is used in the check loop\n    this._appendAfter = null;\n    this._previousMapHead = null;\n    this._changesHead = null;\n    this._changesTail = null;\n    this._additionsHead = null;\n    this._additionsTail = null;\n    this._removalsHead = null;\n    this._removalsTail = null;\n  }\n  get isDirty() {\n    return this._additionsHead !== null || this._changesHead !== null || this._removalsHead !== null;\n  }\n  forEachItem(fn) {\n    let record;\n    for (record = this._mapHead; record !== null; record = record._next) {\n      fn(record);\n    }\n  }\n  forEachPreviousItem(fn) {\n    let record;\n    for (record = this._previousMapHead; record !== null; record = record._nextPrevious) {\n      fn(record);\n    }\n  }\n  forEachChangedItem(fn) {\n    let record;\n    for (record = this._changesHead; record !== null; record = record._nextChanged) {\n      fn(record);\n    }\n  }\n  forEachAddedItem(fn) {\n    let record;\n    for (record = this._additionsHead; record !== null; record = record._nextAdded) {\n      fn(record);\n    }\n  }\n  forEachRemovedItem(fn) {\n    let record;\n    for (record = this._removalsHead; record !== null; record = record._nextRemoved) {\n      fn(record);\n    }\n  }\n  diff(map) {\n    if (!map) {\n      map = new Map();\n    } else if (!(map instanceof Map || isJsObject(map))) {\n      throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, ngDevMode && `Error trying to diff '${stringify(map)}'. Only maps and objects are allowed`);\n    }\n    return this.check(map) ? this : null;\n  }\n  onDestroy() {}\n  /**\n   * Check the current state of the map vs the previous.\n   * The algorithm is optimised for when the keys do no change.\n   */\n  check(map) {\n    this._reset();\n    let insertBefore = this._mapHead;\n    this._appendAfter = null;\n    this._forEach(map, (value, key) => {\n      if (insertBefore && insertBefore.key === key) {\n        this._maybeAddToChanges(insertBefore, value);\n        this._appendAfter = insertBefore;\n        insertBefore = insertBefore._next;\n      } else {\n        const record = this._getOrCreateRecordForKey(key, value);\n        insertBefore = this._insertBeforeOrAppend(insertBefore, record);\n      }\n    });\n    // Items remaining at the end of the list have been deleted\n    if (insertBefore) {\n      if (insertBefore._prev) {\n        insertBefore._prev._next = null;\n      }\n      this._removalsHead = insertBefore;\n      for (let record = insertBefore; record !== null; record = record._nextRemoved) {\n        if (record === this._mapHead) {\n          this._mapHead = null;\n        }\n        this._records.delete(record.key);\n        record._nextRemoved = record._next;\n        record.previousValue = record.currentValue;\n        record.currentValue = null;\n        record._prev = null;\n        record._next = null;\n      }\n    }\n    // Make sure tails have no next records from previous runs\n    if (this._changesTail) this._changesTail._nextChanged = null;\n    if (this._additionsTail) this._additionsTail._nextAdded = null;\n    return this.isDirty;\n  }\n  /**\n   * Inserts a record before `before` or append at the end of the list when `before` is null.\n   *\n   * Notes:\n   * - This method appends at `this._appendAfter`,\n   * - This method updates `this._appendAfter`,\n   * - The return value is the new value for the insertion pointer.\n   */\n  _insertBeforeOrAppend(before, record) {\n    if (before) {\n      const prev = before._prev;\n      record._next = before;\n      record._prev = prev;\n      before._prev = record;\n      if (prev) {\n        prev._next = record;\n      }\n      if (before === this._mapHead) {\n        this._mapHead = record;\n      }\n      this._appendAfter = before;\n      return before;\n    }\n    if (this._appendAfter) {\n      this._appendAfter._next = record;\n      record._prev = this._appendAfter;\n    } else {\n      this._mapHead = record;\n    }\n    this._appendAfter = record;\n    return null;\n  }\n  _getOrCreateRecordForKey(key, value) {\n    if (this._records.has(key)) {\n      const record = this._records.get(key);\n      this._maybeAddToChanges(record, value);\n      const prev = record._prev;\n      const next = record._next;\n      if (prev) {\n        prev._next = next;\n      }\n      if (next) {\n        next._prev = prev;\n      }\n      record._next = null;\n      record._prev = null;\n      return record;\n    }\n    const record = new KeyValueChangeRecord_(key);\n    this._records.set(key, record);\n    record.currentValue = value;\n    this._addToAdditions(record);\n    return record;\n  }\n  /** @internal */\n  _reset() {\n    if (this.isDirty) {\n      let record;\n      // let `_previousMapHead` contain the state of the map before the changes\n      this._previousMapHead = this._mapHead;\n      for (record = this._previousMapHead; record !== null; record = record._next) {\n        record._nextPrevious = record._next;\n      }\n      // Update `record.previousValue` with the value of the item before the changes\n      // We need to update all changed items (that's those which have been added and changed)\n      for (record = this._changesHead; record !== null; record = record._nextChanged) {\n        record.previousValue = record.currentValue;\n      }\n      for (record = this._additionsHead; record != null; record = record._nextAdded) {\n        record.previousValue = record.currentValue;\n      }\n      this._changesHead = this._changesTail = null;\n      this._additionsHead = this._additionsTail = null;\n      this._removalsHead = null;\n    }\n  }\n  // Add the record or a given key to the list of changes only when the value has actually changed\n  _maybeAddToChanges(record, newValue) {\n    if (!Object.is(newValue, record.currentValue)) {\n      record.previousValue = record.currentValue;\n      record.currentValue = newValue;\n      this._addToChanges(record);\n    }\n  }\n  _addToAdditions(record) {\n    if (this._additionsHead === null) {\n      this._additionsHead = this._additionsTail = record;\n    } else {\n      this._additionsTail._nextAdded = record;\n      this._additionsTail = record;\n    }\n  }\n  _addToChanges(record) {\n    if (this._changesHead === null) {\n      this._changesHead = this._changesTail = record;\n    } else {\n      this._changesTail._nextChanged = record;\n      this._changesTail = record;\n    }\n  }\n  /** @internal */\n  _forEach(obj, fn) {\n    if (obj instanceof Map) {\n      obj.forEach(fn);\n    } else {\n      Object.keys(obj).forEach(k => fn(obj[k], k));\n    }\n  }\n}\nclass KeyValueChangeRecord_ {\n  constructor(key) {\n    this.key = key;\n    this.previousValue = null;\n    this.currentValue = null;\n    /** @internal */\n    this._nextPrevious = null;\n    /** @internal */\n    this._next = null;\n    /** @internal */\n    this._prev = null;\n    /** @internal */\n    this._nextAdded = null;\n    /** @internal */\n    this._nextRemoved = null;\n    /** @internal */\n    this._nextChanged = null;\n  }\n}\nfunction defaultIterableDiffersFactory() {\n  return new IterableDiffers([new DefaultIterableDifferFactory()]);\n}\n/**\n * A repository of different iterable diffing strategies used by NgFor, NgClass, and others.\n *\n * @publicApi\n */\nlet IterableDiffers = /*#__PURE__*/(() => {\n  class IterableDiffers {\n    /** @nocollapse */\n    static {\n      this.ɵprov = ɵɵdefineInjectable({\n        token: IterableDiffers,\n        providedIn: 'root',\n        factory: defaultIterableDiffersFactory\n      });\n    }\n    constructor(factories) {\n      this.factories = factories;\n    }\n    static create(factories, parent) {\n      if (parent != null) {\n        const copied = parent.factories.slice();\n        factories = factories.concat(copied);\n      }\n      return new IterableDiffers(factories);\n    }\n    /**\n     * Takes an array of {@link IterableDifferFactory} and returns a provider used to extend the\n     * inherited {@link IterableDiffers} instance with the provided factories and return a new\n     * {@link IterableDiffers} instance.\n     *\n     * @usageNotes\n     * ### Example\n     *\n     * The following example shows how to extend an existing list of factories,\n     * which will only be applied to the injector for this component and its children.\n     * This step is all that's required to make a new {@link IterableDiffer} available.\n     *\n     * ```\n     * @Component({\n     *   viewProviders: [\n     *     IterableDiffers.extend([new ImmutableListDiffer()])\n     *   ]\n     * })\n     * ```\n     */\n    static extend(factories) {\n      return {\n        provide: IterableDiffers,\n        useFactory: parent => {\n          // if parent is null, it means that we are in the root injector and we have just overridden\n          // the default injection mechanism for IterableDiffers, in such a case just assume\n          // `defaultIterableDiffersFactory`.\n          return IterableDiffers.create(factories, parent || defaultIterableDiffersFactory());\n        },\n        // Dependency technically isn't optional, but we can provide a better error message this way.\n        deps: [[IterableDiffers, new SkipSelf(), new Optional()]]\n      };\n    }\n    find(iterable) {\n      const factory = this.factories.find(f => f.supports(iterable));\n      if (factory != null) {\n        return factory;\n      } else {\n        throw new RuntimeError(901 /* RuntimeErrorCode.NO_SUPPORTING_DIFFER_FACTORY */, ngDevMode && `Cannot find a differ supporting object '${iterable}' of type '${getTypeNameForDebugging(iterable)}'`);\n      }\n    }\n  }\n  return IterableDiffers;\n})();\nfunction getTypeNameForDebugging(type) {\n  return type['name'] || typeof type;\n}\nfunction defaultKeyValueDiffersFactory() {\n  return new KeyValueDiffers([new DefaultKeyValueDifferFactory()]);\n}\n/**\n * A repository of different Map diffing strategies used by NgClass, NgStyle, and others.\n *\n * @publicApi\n */\nlet KeyValueDiffers = /*#__PURE__*/(() => {\n  class KeyValueDiffers {\n    /** @nocollapse */\n    static {\n      this.ɵprov = ɵɵdefineInjectable({\n        token: KeyValueDiffers,\n        providedIn: 'root',\n        factory: defaultKeyValueDiffersFactory\n      });\n    }\n    constructor(factories) {\n      this.factories = factories;\n    }\n    static create(factories, parent) {\n      if (parent) {\n        const copied = parent.factories.slice();\n        factories = factories.concat(copied);\n      }\n      return new KeyValueDiffers(factories);\n    }\n    /**\n     * Takes an array of {@link KeyValueDifferFactory} and returns a provider used to extend the\n     * inherited {@link KeyValueDiffers} instance with the provided factories and return a new\n     * {@link KeyValueDiffers} instance.\n     *\n     * @usageNotes\n     * ### Example\n     *\n     * The following example shows how to extend an existing list of factories,\n     * which will only be applied to the injector for this component and its children.\n     * This step is all that's required to make a new {@link KeyValueDiffer} available.\n     *\n     * ```\n     * @Component({\n     *   viewProviders: [\n     *     KeyValueDiffers.extend([new ImmutableMapDiffer()])\n     *   ]\n     * })\n     * ```\n     */\n    static extend(factories) {\n      return {\n        provide: KeyValueDiffers,\n        useFactory: parent => {\n          // if parent is null, it means that we are in the root injector and we have just overridden\n          // the default injection mechanism for KeyValueDiffers, in such a case just assume\n          // `defaultKeyValueDiffersFactory`.\n          return KeyValueDiffers.create(factories, parent || defaultKeyValueDiffersFactory());\n        },\n        // Dependency technically isn't optional, but we can provide a better error message this way.\n        deps: [[KeyValueDiffers, new SkipSelf(), new Optional()]]\n      };\n    }\n    find(kv) {\n      const factory = this.factories.find(f => f.supports(kv));\n      if (factory) {\n        return factory;\n      }\n      throw new RuntimeError(901 /* RuntimeErrorCode.NO_SUPPORTING_DIFFER_FACTORY */, ngDevMode && `Cannot find a differ supporting object '${kv}'`);\n    }\n  }\n  return KeyValueDiffers;\n})();\n/**\n * Structural diffing for `Object`s and `Map`s.\n */\nconst keyValDiff = [/*#__PURE__*/new DefaultKeyValueDifferFactory()];\n/**\n * Structural diffing for `Iterable` types such as `Array`s.\n */\nconst iterableDiff = [/*#__PURE__*/new DefaultIterableDifferFactory()];\nconst defaultIterableDiffers = /*#__PURE__*/new IterableDiffers(iterableDiff);\nconst defaultKeyValueDiffers = /*#__PURE__*/new KeyValueDiffers(keyValDiff);\n\n/**\n * @module\n * @description\n * Change detection enables data binding in Angular.\n */\n\n/**\n * This platform has to be included in any other platform\n *\n * @publicApi\n */\nconst platformCore = /*#__PURE__*/createPlatformFactory(null, 'core', []);\n\n/**\n * Re-exported by `BrowserModule`, which is included automatically in the root\n * `AppModule` when you create a new app with the CLI `new` command. Eagerly injects\n * `ApplicationRef` to instantiate it.\n *\n * @publicApi\n */\nlet ApplicationModule = /*#__PURE__*/(() => {\n  class ApplicationModule {\n    // Inject ApplicationRef to make it eager...\n    constructor(appRef) {}\n    static {\n      this.ɵfac = function ApplicationModule_Factory(t) {\n        return new (t || ApplicationModule)(ɵɵinject(ApplicationRef));\n      };\n    }\n    static {\n      this.ɵmod = /*@__PURE__*/ɵɵdefineNgModule({\n        type: ApplicationModule\n      });\n    }\n    static {\n      this.ɵinj = /*@__PURE__*/ɵɵdefineInjector({});\n    }\n  }\n  return ApplicationModule;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(ApplicationModule, [{\n    type: NgModule\n  }], () => [{\n    type: ApplicationRef\n  }], null);\n})();\n\n/**\n * The default equality function used for `signal` and `computed`, which uses referential equality.\n */\nfunction defaultEquals(a, b) {\n  return Object.is(a, b);\n}\n\n/**\n * The currently active consumer `ReactiveNode`, if running code in a reactive context.\n *\n * Change this via `setActiveConsumer`.\n */\nlet activeConsumer = null;\nlet inNotificationPhase = false;\n/**\n * Global epoch counter. Incremented whenever a source signal is set.\n */\nlet epoch = 1;\n/**\n * Symbol used to tell `Signal`s apart from other functions.\n *\n * This can be used to auto-unwrap signals in various cases, or to auto-wrap non-signal values.\n */\nconst SIGNAL = /* @__PURE__ */Symbol('SIGNAL');\nfunction setActiveConsumer(consumer) {\n  const prev = activeConsumer;\n  activeConsumer = consumer;\n  return prev;\n}\nfunction getActiveConsumer() {\n  return activeConsumer;\n}\nfunction isInNotificationPhase() {\n  return inNotificationPhase;\n}\nfunction isReactive(value) {\n  return value[SIGNAL] !== undefined;\n}\nconst REACTIVE_NODE = {\n  version: 0,\n  lastCleanEpoch: 0,\n  dirty: false,\n  producerNode: undefined,\n  producerLastReadVersion: undefined,\n  producerIndexOfThis: undefined,\n  nextProducerIndex: 0,\n  liveConsumerNode: undefined,\n  liveConsumerIndexOfThis: undefined,\n  consumerAllowSignalWrites: false,\n  consumerIsAlwaysLive: false,\n  producerMustRecompute: () => false,\n  producerRecomputeValue: () => {},\n  consumerMarkedDirty: () => {},\n  consumerOnSignalRead: () => {}\n};\n/**\n * Called by implementations when a producer's signal is read.\n */\nfunction producerAccessed(node) {\n  if (inNotificationPhase) {\n    throw new Error(typeof ngDevMode !== 'undefined' && ngDevMode ? `Assertion error: signal read during notification phase` : '');\n  }\n  if (activeConsumer === null) {\n    // Accessed outside of a reactive context, so nothing to record.\n    return;\n  }\n  activeConsumer.consumerOnSignalRead(node);\n  // This producer is the `idx`th dependency of `activeConsumer`.\n  const idx = activeConsumer.nextProducerIndex++;\n  assertConsumerNode(activeConsumer);\n  if (idx < activeConsumer.producerNode.length && activeConsumer.producerNode[idx] !== node) {\n    // There's been a change in producers since the last execution of `activeConsumer`.\n    // `activeConsumer.producerNode[idx]` holds a stale dependency which will be be removed and\n    // replaced with `this`.\n    //\n    // If `activeConsumer` isn't live, then this is a no-op, since we can replace the producer in\n    // `activeConsumer.producerNode` directly. However, if `activeConsumer` is live, then we need\n    // to remove it from the stale producer's `liveConsumer`s.\n    if (consumerIsLive(activeConsumer)) {\n      const staleProducer = activeConsumer.producerNode[idx];\n      producerRemoveLiveConsumerAtIndex(staleProducer, activeConsumer.producerIndexOfThis[idx]);\n      // At this point, the only record of `staleProducer` is the reference at\n      // `activeConsumer.producerNode[idx]` which will be overwritten below.\n    }\n  }\n  if (activeConsumer.producerNode[idx] !== node) {\n    // We're a new dependency of the consumer (at `idx`).\n    activeConsumer.producerNode[idx] = node;\n    // If the active consumer is live, then add it as a live consumer. If not, then use 0 as a\n    // placeholder value.\n    activeConsumer.producerIndexOfThis[idx] = consumerIsLive(activeConsumer) ? producerAddLiveConsumer(node, activeConsumer, idx) : 0;\n  }\n  activeConsumer.producerLastReadVersion[idx] = node.version;\n}\n/**\n * Increment the global epoch counter.\n *\n * Called by source producers (that is, not computeds) whenever their values change.\n */\nfunction producerIncrementEpoch() {\n  epoch++;\n}\n/**\n * Ensure this producer's `version` is up-to-date.\n */\nfunction producerUpdateValueVersion(node) {\n  if (consumerIsLive(node) && !node.dirty) {\n    // A live consumer will be marked dirty by producers, so a clean state means that its version\n    // is guaranteed to be up-to-date.\n    return;\n  }\n  if (!node.dirty && node.lastCleanEpoch === epoch) {\n    // Even non-live consumers can skip polling if they previously found themselves to be clean at\n    // the current epoch, since their dependencies could not possibly have changed (such a change\n    // would've increased the epoch).\n    return;\n  }\n  if (!node.producerMustRecompute(node) && !consumerPollProducersForChange(node)) {\n    // None of our producers report a change since the last time they were read, so no\n    // recomputation of our value is necessary, and we can consider ourselves clean.\n    node.dirty = false;\n    node.lastCleanEpoch = epoch;\n    return;\n  }\n  node.producerRecomputeValue(node);\n  // After recomputing the value, we're no longer dirty.\n  node.dirty = false;\n  node.lastCleanEpoch = epoch;\n}\n/**\n * Propagate a dirty notification to live consumers of this producer.\n */\nfunction producerNotifyConsumers(node) {\n  if (node.liveConsumerNode === undefined) {\n    return;\n  }\n  // Prevent signal reads when we're updating the graph\n  const prev = inNotificationPhase;\n  inNotificationPhase = true;\n  try {\n    for (const consumer of node.liveConsumerNode) {\n      if (!consumer.dirty) {\n        consumerMarkDirty(consumer);\n      }\n    }\n  } finally {\n    inNotificationPhase = prev;\n  }\n}\n/**\n * Whether this `ReactiveNode` in its producer capacity is currently allowed to initiate updates,\n * based on the current consumer context.\n */\nfunction producerUpdatesAllowed() {\n  return activeConsumer?.consumerAllowSignalWrites !== false;\n}\nfunction consumerMarkDirty(node) {\n  node.dirty = true;\n  producerNotifyConsumers(node);\n  node.consumerMarkedDirty?.(node);\n}\n/**\n * Prepare this consumer to run a computation in its reactive context.\n *\n * Must be called by subclasses which represent reactive computations, before those computations\n * begin.\n */\nfunction consumerBeforeComputation(node) {\n  node && (node.nextProducerIndex = 0);\n  return setActiveConsumer(node);\n}\n/**\n * Finalize this consumer's state after a reactive computation has run.\n *\n * Must be called by subclasses which represent reactive computations, after those computations\n * have finished.\n */\nfunction consumerAfterComputation(node, prevConsumer) {\n  setActiveConsumer(prevConsumer);\n  if (!node || node.producerNode === undefined || node.producerIndexOfThis === undefined || node.producerLastReadVersion === undefined) {\n    return;\n  }\n  if (consumerIsLive(node)) {\n    // For live consumers, we need to remove the producer -> consumer edge for any stale producers\n    // which weren't dependencies after the recomputation.\n    for (let i = node.nextProducerIndex; i < node.producerNode.length; i++) {\n      producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);\n    }\n  }\n  // Truncate the producer tracking arrays.\n  // Perf note: this is essentially truncating the length to `node.nextProducerIndex`, but\n  // benchmarking has shown that individual pop operations are faster.\n  while (node.producerNode.length > node.nextProducerIndex) {\n    node.producerNode.pop();\n    node.producerLastReadVersion.pop();\n    node.producerIndexOfThis.pop();\n  }\n}\n/**\n * Determine whether this consumer has any dependencies which have changed since the last time\n * they were read.\n */\nfunction consumerPollProducersForChange(node) {\n  assertConsumerNode(node);\n  // Poll producers for change.\n  for (let i = 0; i < node.producerNode.length; i++) {\n    const producer = node.producerNode[i];\n    const seenVersion = node.producerLastReadVersion[i];\n    // First check the versions. A mismatch means that the producer's value is known to have\n    // changed since the last time we read it.\n    if (seenVersion !== producer.version) {\n      return true;\n    }\n    // The producer's version is the same as the last time we read it, but it might itself be\n    // stale. Force the producer to recompute its version (calculating a new value if necessary).\n    producerUpdateValueVersion(producer);\n    // Now when we do this check, `producer.version` is guaranteed to be up to date, so if the\n    // versions still match then it has not changed since the last time we read it.\n    if (seenVersion !== producer.version) {\n      return true;\n    }\n  }\n  return false;\n}\n/**\n * Disconnect this consumer from the graph.\n */\nfunction consumerDestroy(node) {\n  assertConsumerNode(node);\n  if (consumerIsLive(node)) {\n    // Drop all connections from the graph to this node.\n    for (let i = 0; i < node.producerNode.length; i++) {\n      producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);\n    }\n  }\n  // Truncate all the arrays to drop all connection from this node to the graph.\n  node.producerNode.length = node.producerLastReadVersion.length = node.producerIndexOfThis.length = 0;\n  if (node.liveConsumerNode) {\n    node.liveConsumerNode.length = node.liveConsumerIndexOfThis.length = 0;\n  }\n}\n/**\n * Add `consumer` as a live consumer of this node.\n *\n * Note that this operation is potentially transitive. If this node becomes live, then it becomes\n * a live consumer of all of its current producers.\n */\nfunction producerAddLiveConsumer(node, consumer, indexOfThis) {\n  assertProducerNode(node);\n  assertConsumerNode(node);\n  if (node.liveConsumerNode.length === 0) {\n    // When going from 0 to 1 live consumers, we become a live consumer to our producers.\n    for (let i = 0; i < node.producerNode.length; i++) {\n      node.producerIndexOfThis[i] = producerAddLiveConsumer(node.producerNode[i], node, i);\n    }\n  }\n  node.liveConsumerIndexOfThis.push(indexOfThis);\n  return node.liveConsumerNode.push(consumer) - 1;\n}\n/**\n * Remove the live consumer at `idx`.\n */\nfunction producerRemoveLiveConsumerAtIndex(node, idx) {\n  assertProducerNode(node);\n  assertConsumerNode(node);\n  if (typeof ngDevMode !== 'undefined' && ngDevMode && idx >= node.liveConsumerNode.length) {\n    throw new Error(`Assertion error: active consumer index ${idx} is out of bounds of ${node.liveConsumerNode.length} consumers)`);\n  }\n  if (node.liveConsumerNode.length === 1) {\n    // When removing the last live consumer, we will no longer be live. We need to remove\n    // ourselves from our producers' tracking (which may cause consumer-producers to lose\n    // liveness as well).\n    for (let i = 0; i < node.producerNode.length; i++) {\n      producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);\n    }\n  }\n  // Move the last value of `liveConsumers` into `idx`. Note that if there's only a single\n  // live consumer, this is a no-op.\n  const lastIdx = node.liveConsumerNode.length - 1;\n  node.liveConsumerNode[idx] = node.liveConsumerNode[lastIdx];\n  node.liveConsumerIndexOfThis[idx] = node.liveConsumerIndexOfThis[lastIdx];\n  // Truncate the array.\n  node.liveConsumerNode.length--;\n  node.liveConsumerIndexOfThis.length--;\n  // If the index is still valid, then we need to fix the index pointer from the producer to this\n  // consumer, and update it from `lastIdx` to `idx` (accounting for the move above).\n  if (idx < node.liveConsumerNode.length) {\n    const idxProducer = node.liveConsumerIndexOfThis[idx];\n    const consumer = node.liveConsumerNode[idx];\n    assertConsumerNode(consumer);\n    consumer.producerIndexOfThis[idxProducer] = idx;\n  }\n}\nfunction consumerIsLive(node) {\n  return node.consumerIsAlwaysLive || (node?.liveConsumerNode?.length ?? 0) > 0;\n}\nfunction assertConsumerNode(node) {\n  node.producerNode ??= [];\n  node.producerIndexOfThis ??= [];\n  node.producerLastReadVersion ??= [];\n}\nfunction assertProducerNode(node) {\n  node.liveConsumerNode ??= [];\n  node.liveConsumerIndexOfThis ??= [];\n}\n\n/**\n * Create a computed signal which derives a reactive value from an expression.\n */\nfunction createComputed(computation) {\n  const node = Object.create(COMPUTED_NODE);\n  node.computation = computation;\n  const computed = () => {\n    // Check if the value needs updating before returning it.\n    producerUpdateValueVersion(node);\n    // Record that someone looked at this signal.\n    producerAccessed(node);\n    if (node.value === ERRORED) {\n      throw node.error;\n    }\n    return node.value;\n  };\n  computed[SIGNAL] = node;\n  return computed;\n}\n/**\n * A dedicated symbol used before a computed value has been calculated for the first time.\n * Explicitly typed as `any` so we can use it as signal's value.\n */\nconst UNSET = /* @__PURE__ */Symbol('UNSET');\n/**\n * A dedicated symbol used in place of a computed signal value to indicate that a given computation\n * is in progress. Used to detect cycles in computation chains.\n * Explicitly typed as `any` so we can use it as signal's value.\n */\nconst COMPUTING = /* @__PURE__ */Symbol('COMPUTING');\n/**\n * A dedicated symbol used in place of a computed signal value to indicate that a given computation\n * failed. The thrown error is cached until the computation gets dirty again.\n * Explicitly typed as `any` so we can use it as signal's value.\n */\nconst ERRORED = /* @__PURE__ */Symbol('ERRORED');\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst COMPUTED_NODE = /* @__PURE__ */(() => {\n  return {\n    ...REACTIVE_NODE,\n    value: UNSET,\n    dirty: true,\n    error: null,\n    equal: defaultEquals,\n    producerMustRecompute(node) {\n      // Force a recomputation if there's no current value, or if the current value is in the\n      // process of being calculated (which should throw an error).\n      return node.value === UNSET || node.value === COMPUTING;\n    },\n    producerRecomputeValue(node) {\n      if (node.value === COMPUTING) {\n        // Our computation somehow led to a cyclic read of itself.\n        throw new Error('Detected cycle in computations.');\n      }\n      const oldValue = node.value;\n      node.value = COMPUTING;\n      const prevConsumer = consumerBeforeComputation(node);\n      let newValue;\n      try {\n        newValue = node.computation();\n      } catch (err) {\n        newValue = ERRORED;\n        node.error = err;\n      } finally {\n        consumerAfterComputation(node, prevConsumer);\n      }\n      if (oldValue !== UNSET && oldValue !== ERRORED && newValue !== ERRORED && node.equal(oldValue, newValue)) {\n        // No change to `valueVersion` - old and new values are\n        // semantically equivalent.\n        node.value = oldValue;\n        return;\n      }\n      node.value = newValue;\n      node.version++;\n    }\n  };\n})();\nfunction defaultThrowError() {\n  throw new Error();\n}\nlet throwInvalidWriteToSignalErrorFn = defaultThrowError;\nfunction throwInvalidWriteToSignalError() {\n  throwInvalidWriteToSignalErrorFn();\n}\nfunction setThrowInvalidWriteToSignalError(fn) {\n  throwInvalidWriteToSignalErrorFn = fn;\n}\n\n/**\n * If set, called after `WritableSignal`s are updated.\n *\n * This hook can be used to achieve various effects, such as running effects synchronously as part\n * of setting a signal.\n */\nlet postSignalSetFn = null;\n/**\n * Create a `Signal` that can be set or updated directly.\n */\nfunction createSignal(initialValue) {\n  const node = Object.create(SIGNAL_NODE);\n  node.value = initialValue;\n  const getter = () => {\n    producerAccessed(node);\n    return node.value;\n  };\n  getter[SIGNAL] = node;\n  return getter;\n}\nfunction setPostSignalSetFn(fn) {\n  const prev = postSignalSetFn;\n  postSignalSetFn = fn;\n  return prev;\n}\nfunction signalGetFn() {\n  producerAccessed(this);\n  return this.value;\n}\nfunction signalSetFn(node, newValue) {\n  if (!producerUpdatesAllowed()) {\n    throwInvalidWriteToSignalError();\n  }\n  if (!node.equal(node.value, newValue)) {\n    node.value = newValue;\n    signalValueChanged(node);\n  }\n}\nfunction signalUpdateFn(node, updater) {\n  if (!producerUpdatesAllowed()) {\n    throwInvalidWriteToSignalError();\n  }\n  signalSetFn(node, updater(node.value));\n}\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst SIGNAL_NODE = /* @__PURE__ */(() => {\n  return {\n    ...REACTIVE_NODE,\n    equal: defaultEquals,\n    value: undefined\n  };\n})();\nfunction signalValueChanged(node) {\n  node.version++;\n  producerIncrementEpoch();\n  producerNotifyConsumers(node);\n  postSignalSetFn?.();\n}\nfunction createWatch(fn, schedule, allowSignalWrites) {\n  const node = Object.create(WATCH_NODE);\n  if (allowSignalWrites) {\n    node.consumerAllowSignalWrites = true;\n  }\n  node.fn = fn;\n  node.schedule = schedule;\n  const registerOnCleanup = cleanupFn => {\n    node.cleanupFn = cleanupFn;\n  };\n  function isWatchNodeDestroyed(node) {\n    return node.fn === null && node.schedule === null;\n  }\n  function destroyWatchNode(node) {\n    if (!isWatchNodeDestroyed(node)) {\n      consumerDestroy(node); // disconnect watcher from the reactive graph\n      node.cleanupFn();\n      // nullify references to the integration functions to mark node as destroyed\n      node.fn = null;\n      node.schedule = null;\n      node.cleanupFn = NOOP_CLEANUP_FN;\n    }\n  }\n  const run = () => {\n    if (node.fn === null) {\n      // trying to run a destroyed watch is noop\n      return;\n    }\n    if (isInNotificationPhase()) {\n      throw new Error(`Schedulers cannot synchronously execute watches while scheduling.`);\n    }\n    node.dirty = false;\n    if (node.hasRun && !consumerPollProducersForChange(node)) {\n      return;\n    }\n    node.hasRun = true;\n    const prevConsumer = consumerBeforeComputation(node);\n    try {\n      node.cleanupFn();\n      node.cleanupFn = NOOP_CLEANUP_FN;\n      node.fn(registerOnCleanup);\n    } finally {\n      consumerAfterComputation(node, prevConsumer);\n    }\n  };\n  node.ref = {\n    notify: () => consumerMarkDirty(node),\n    run,\n    cleanup: () => node.cleanupFn(),\n    destroy: () => destroyWatchNode(node),\n    [SIGNAL]: node\n  };\n  return node.ref;\n}\nconst NOOP_CLEANUP_FN = () => {};\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst WATCH_NODE = /* @__PURE__ */(() => {\n  return {\n    ...REACTIVE_NODE,\n    consumerIsAlwaysLive: true,\n    consumerAllowSignalWrites: false,\n    consumerMarkedDirty: node => {\n      if (node.schedule !== null) {\n        node.schedule(node.ref);\n      }\n    },\n    hasRun: false,\n    cleanupFn: NOOP_CLEANUP_FN\n  };\n})();\nfunction setAlternateWeakRefImpl(impl) {\n  // TODO: remove this function\n}\n\n// A delay in milliseconds before the scan is run after onLoad, to avoid any\n// potential race conditions with other LCP-related functions. This delay\n// happens outside of the main JavaScript execution and will only effect the timing\n// on when the warning becomes visible in the console.\nconst SCAN_DELAY = 200;\nconst OVERSIZED_IMAGE_TOLERANCE = 1200;\nlet ImagePerformanceWarning = /*#__PURE__*/(() => {\n  class ImagePerformanceWarning {\n    constructor() {\n      // Map of full image URLs -> original `ngSrc` values.\n      this.window = null;\n      this.observer = null;\n      this.options = inject(IMAGE_CONFIG);\n      this.ngZone = inject(NgZone);\n    }\n    start() {\n      if (typeof PerformanceObserver === 'undefined' || this.options?.disableImageSizeWarning && this.options?.disableImageLazyLoadWarning) {\n        return;\n      }\n      this.observer = this.initPerformanceObserver();\n      const doc = getDocument();\n      const win = doc.defaultView;\n      if (typeof win !== 'undefined') {\n        this.window = win;\n        // Wait to avoid race conditions where LCP image triggers\n        // load event before it's recorded by the performance observer\n        const waitToScan = () => {\n          setTimeout(this.scanImages.bind(this), SCAN_DELAY);\n        };\n        // Angular doesn't have to run change detection whenever any asynchronous tasks are invoked in\n        // the scope of this functionality.\n        this.ngZone.runOutsideAngular(() => {\n          // Consider the case when the application is created and destroyed multiple times.\n          // Typically, applications are created instantly once the page is loaded, and the\n          // `window.load` listener is always triggered. However, the `window.load` event will never\n          // be fired if the page is loaded, and the application is created later. Checking for\n          // `readyState` is the easiest way to determine whether the page has been loaded or not.\n          if (doc.readyState === 'complete') {\n            waitToScan();\n          } else {\n            this.window?.addEventListener('load', waitToScan, {\n              once: true\n            });\n          }\n        });\n      }\n    }\n    ngOnDestroy() {\n      this.observer?.disconnect();\n    }\n    initPerformanceObserver() {\n      if (typeof PerformanceObserver === 'undefined') {\n        return null;\n      }\n      const observer = new PerformanceObserver(entryList => {\n        const entries = entryList.getEntries();\n        if (entries.length === 0) return;\n        // We use the latest entry produced by the `PerformanceObserver` as the best\n        // signal on which element is actually an LCP one. As an example, the first image to load on\n        // a page, by virtue of being the only thing on the page so far, is often a LCP candidate\n        // and gets reported by PerformanceObserver, but isn't necessarily the LCP element.\n        const lcpElement = entries[entries.length - 1];\n        // Cast to `any` due to missing `element` on the `LargestContentfulPaint` type of entry.\n        // See https://developer.mozilla.org/en-US/docs/Web/API/LargestContentfulPaint\n        const imgSrc = lcpElement.element?.src ?? '';\n        // Exclude `data:` and `blob:` URLs, since they are fetched resources.\n        if (imgSrc.startsWith('data:') || imgSrc.startsWith('blob:')) return;\n        this.lcpImageUrl = imgSrc;\n      });\n      observer.observe({\n        type: 'largest-contentful-paint',\n        buffered: true\n      });\n      return observer;\n    }\n    scanImages() {\n      const images = getDocument().querySelectorAll('img');\n      let lcpElementFound,\n        lcpElementLoadedCorrectly = false;\n      images.forEach(image => {\n        if (!this.options?.disableImageSizeWarning) {\n          for (const image of images) {\n            // Image elements using the NgOptimizedImage directive are excluded,\n            // as that directive has its own version of this check.\n            if (!image.getAttribute('ng-img') && this.isOversized(image)) {\n              logOversizedImageWarning(image.src);\n            }\n          }\n        }\n        if (!this.options?.disableImageLazyLoadWarning && this.lcpImageUrl) {\n          if (image.src === this.lcpImageUrl) {\n            lcpElementFound = true;\n            if (image.loading !== 'lazy' || image.getAttribute('ng-img')) {\n              // This variable is set to true and never goes back to false to account\n              // for the case where multiple images have the same src url, and some\n              // have lazy loading while others don't.\n              // Also ignore NgOptimizedImage because there's a different warning for that.\n              lcpElementLoadedCorrectly = true;\n            }\n          }\n        }\n      });\n      if (lcpElementFound && !lcpElementLoadedCorrectly && this.lcpImageUrl && !this.options?.disableImageLazyLoadWarning) {\n        logLazyLCPWarning(this.lcpImageUrl);\n      }\n    }\n    isOversized(image) {\n      if (!this.window) {\n        return false;\n      }\n      const computedStyle = this.window.getComputedStyle(image);\n      let renderedWidth = parseFloat(computedStyle.getPropertyValue('width'));\n      let renderedHeight = parseFloat(computedStyle.getPropertyValue('height'));\n      const boxSizing = computedStyle.getPropertyValue('box-sizing');\n      const objectFit = computedStyle.getPropertyValue('object-fit');\n      if (objectFit === `cover`) {\n        // Object fit cover may indicate a use case such as a sprite sheet where\n        // this warning does not apply.\n        return false;\n      }\n      if (boxSizing === 'border-box') {\n        const paddingTop = computedStyle.getPropertyValue('padding-top');\n        const paddingRight = computedStyle.getPropertyValue('padding-right');\n        const paddingBottom = computedStyle.getPropertyValue('padding-bottom');\n        const paddingLeft = computedStyle.getPropertyValue('padding-left');\n        renderedWidth -= parseFloat(paddingRight) + parseFloat(paddingLeft);\n        renderedHeight -= parseFloat(paddingTop) + parseFloat(paddingBottom);\n      }\n      const intrinsicWidth = image.naturalWidth;\n      const intrinsicHeight = image.naturalHeight;\n      const recommendedWidth = this.window.devicePixelRatio * renderedWidth;\n      const recommendedHeight = this.window.devicePixelRatio * renderedHeight;\n      const oversizedWidth = intrinsicWidth - recommendedWidth >= OVERSIZED_IMAGE_TOLERANCE;\n      const oversizedHeight = intrinsicHeight - recommendedHeight >= OVERSIZED_IMAGE_TOLERANCE;\n      return oversizedWidth || oversizedHeight;\n    }\n    static {\n      this.ɵfac = function ImagePerformanceWarning_Factory(t) {\n        return new (t || ImagePerformanceWarning)();\n      };\n    }\n    static {\n      this.ɵprov = /*@__PURE__*/ɵɵdefineInjectable({\n        token: ImagePerformanceWarning,\n        factory: ImagePerformanceWarning.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return ImagePerformanceWarning;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(ImagePerformanceWarning, [{\n    type: Injectable,\n    args: [{\n      providedIn: 'root'\n    }]\n  }], null, null);\n})();\nfunction logLazyLCPWarning(src) {\n  console.warn(formatRuntimeError(-913 /* RuntimeErrorCode.IMAGE_PERFORMANCE_WARNING */, `An image with src ${src} is the Largest Contentful Paint (LCP) element ` + `but was given a \"loading\" value of \"lazy\", which can negatively impact ` + `application loading performance. This warning can be addressed by ` + `changing the loading value of the LCP image to \"eager\", or by using the ` + `NgOptimizedImage directive's prioritization utilities. For more ` + `information about addressing or disabling this warning, see ` + `https://angular.io/errors/NG0913`));\n}\nfunction logOversizedImageWarning(src) {\n  console.warn(formatRuntimeError(-913 /* RuntimeErrorCode.IMAGE_PERFORMANCE_WARNING */, `An image with src ${src} has intrinsic file dimensions much larger than its ` + `rendered size. This can negatively impact application loading performance. ` + `For more information about addressing or disabling this warning, see ` + `https://angular.io/errors/NG0913`));\n}\n\n/**\n * Internal create application API that implements the core application creation logic and optional\n * bootstrap logic.\n *\n * Platforms (such as `platform-browser`) may require different set of application and platform\n * providers for an application to function correctly. As a result, platforms may use this function\n * internally and supply the necessary providers during the bootstrap, while exposing\n * platform-specific APIs as a part of their public API.\n *\n * @returns A promise that returns an `ApplicationRef` instance once resolved.\n */\nfunction internalCreateApplication(config) {\n  try {\n    const {\n      rootComponent,\n      appProviders,\n      platformProviders\n    } = config;\n    if ((typeof ngDevMode === 'undefined' || ngDevMode) && rootComponent !== undefined) {\n      assertStandaloneComponentType(rootComponent);\n    }\n    const platformInjector = createOrReusePlatformInjector(platformProviders);\n    // Create root application injector based on a set of providers configured at the platform\n    // bootstrap level as well as providers passed to the bootstrap call by a user.\n    const allAppProviders = [provideZoneChangeDetection(), ...(appProviders || [])];\n    const adapter = new EnvironmentNgModuleRefAdapter({\n      providers: allAppProviders,\n      parent: platformInjector,\n      debugName: typeof ngDevMode === 'undefined' || ngDevMode ? 'Environment Injector' : '',\n      // We skip environment initializers because we need to run them inside the NgZone, which\n      // happens after we get the NgZone instance from the Injector.\n      runEnvironmentInitializers: false\n    });\n    const envInjector = adapter.injector;\n    const ngZone = envInjector.get(NgZone);\n    return ngZone.run(() => {\n      envInjector.resolveInjectorInitializers();\n      const exceptionHandler = envInjector.get(ErrorHandler, null);\n      if ((typeof ngDevMode === 'undefined' || ngDevMode) && !exceptionHandler) {\n        throw new RuntimeError(402 /* RuntimeErrorCode.MISSING_REQUIRED_INJECTABLE_IN_BOOTSTRAP */, 'No `ErrorHandler` found in the Dependency Injection tree.');\n      }\n      let onErrorSubscription;\n      ngZone.runOutsideAngular(() => {\n        onErrorSubscription = ngZone.onError.subscribe({\n          next: error => {\n            exceptionHandler.handleError(error);\n          }\n        });\n      });\n      // If the whole platform is destroyed, invoke the `destroy` method\n      // for all bootstrapped applications as well.\n      const destroyListener = () => envInjector.destroy();\n      const onPlatformDestroyListeners = platformInjector.get(PLATFORM_DESTROY_LISTENERS);\n      onPlatformDestroyListeners.add(destroyListener);\n      envInjector.onDestroy(() => {\n        onErrorSubscription.unsubscribe();\n        onPlatformDestroyListeners.delete(destroyListener);\n      });\n      return _callAndReportToErrorHandler(exceptionHandler, ngZone, () => {\n        const initStatus = envInjector.get(ApplicationInitStatus);\n        initStatus.runInitializers();\n        return initStatus.donePromise.then(() => {\n          const localeId = envInjector.get(LOCALE_ID, DEFAULT_LOCALE_ID);\n          setLocaleId(localeId || DEFAULT_LOCALE_ID);\n          const appRef = envInjector.get(ApplicationRef);\n          if (rootComponent !== undefined) {\n            appRef.bootstrap(rootComponent);\n          }\n          if (typeof ngDevMode === 'undefined' || ngDevMode) {\n            const imagePerformanceService = envInjector.get(ImagePerformanceWarning);\n            imagePerformanceService.start();\n          }\n          return appRef;\n        });\n      });\n    });\n  } catch (e) {\n    return Promise.reject(e);\n  }\n}\nlet ChangeDetectionSchedulerImpl = /*#__PURE__*/(() => {\n  class ChangeDetectionSchedulerImpl {\n    constructor() {\n      this.appRef = inject(ApplicationRef);\n      this.taskService = inject(PendingTasks);\n      this.pendingRenderTaskId = null;\n      this.shouldRefreshViews = false;\n    }\n    notify(type = 0 /* NotificationType.RefreshViews */) {\n      // When the only source of notification is an afterRender hook will skip straight to the hooks\n      // rather than refreshing views in ApplicationRef.tick\n      this.shouldRefreshViews ||= type === 0 /* NotificationType.RefreshViews */;\n      if (this.pendingRenderTaskId !== null) {\n        return;\n      }\n      this.pendingRenderTaskId = this.taskService.add();\n      this.raceTimeoutAndRequestAnimationFrame();\n    }\n    /**\n     * Run change detection after the first of setTimeout and requestAnimationFrame resolves.\n     *\n     * - `requestAnimationFrame` ensures that change detection runs ahead of a browser repaint.\n     * This ensures that the create and update passes of a change detection always happen\n     * in the same frame.\n     * - When the browser is resource-starved, `rAF` can execute _before_ a `setTimeout` because\n     * rendering is a very high priority process. This means that `setTimeout` cannot guarantee\n     * same-frame create and update pass, when `setTimeout` is used to schedule the update phase.\n     * - While `rAF` gives us the desirable same-frame updates, it has two limitations that\n     * prevent it from being used alone. First, it does not run in background tabs, which would\n     * prevent Angular from initializing an application when opened in a new tab (for example).\n     * Second, repeated calls to requestAnimationFrame will execute at the refresh rate of the\n     * hardware (~16ms for a 60Hz display). This would cause significant slowdown of tests that\n     * are written with several updates and asserts in the form of \"update; await stable; assert;\".\n     * - Both `setTimeout` and `rAF` are able to \"coalesce\" several events from a single user\n     * interaction into a single change detection. Importantly, this reduces view tree traversals when\n     * compared to an alternative timing mechanism like `queueMicrotask`, where change detection would\n     * then be interleaves between each event.\n     *\n     * By running change detection after the first of `setTimeout` and `rAF` to execute, we get the\n     * best of both worlds.\n     */\n    async raceTimeoutAndRequestAnimationFrame() {\n      const timeout = new Promise(resolve => setTimeout(resolve));\n      const rAF = typeof _global['requestAnimationFrame'] === 'function' ? new Promise(resolve => requestAnimationFrame(() => resolve())) : null;\n      await Promise.race([timeout, rAF]);\n      this.tick();\n    }\n    tick() {\n      try {\n        if (!this.appRef.destroyed) {\n          this.appRef._tick(this.shouldRefreshViews);\n        }\n      } finally {\n        this.shouldRefreshViews = false;\n        // If this is the last task, the service will synchronously emit a stable notification. If\n        // there is a subscriber that then acts in a way that tries to notify the scheduler again,\n        // we need to be able to respond to schedule a new change detection. Therefore, we should\n        // clear the task ID before removing it from the pending tasks (or the tasks service should\n        // not synchronously emit stable, similar to how Zone stableness only happens if it's still\n        // stable after a microtask).\n        const taskId = this.pendingRenderTaskId;\n        this.pendingRenderTaskId = null;\n        this.taskService.remove(taskId);\n      }\n    }\n    static {\n      this.ɵfac = function ChangeDetectionSchedulerImpl_Factory(t) {\n        return new (t || ChangeDetectionSchedulerImpl)();\n      };\n    }\n    static {\n      this.ɵprov = /*@__PURE__*/ɵɵdefineInjectable({\n        token: ChangeDetectionSchedulerImpl,\n        factory: ChangeDetectionSchedulerImpl.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return ChangeDetectionSchedulerImpl;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(ChangeDetectionSchedulerImpl, [{\n    type: Injectable,\n    args: [{\n      providedIn: 'root'\n    }]\n  }], null, null);\n})();\nfunction provideZonelessChangeDetection() {\n  return makeEnvironmentProviders([{\n    provide: ChangeDetectionScheduler,\n    useExisting: ChangeDetectionSchedulerImpl\n  }, {\n    provide: NgZone,\n    useClass: NoopNgZone\n  }]);\n}\n\n/**\n * Retrieves all defer blocks in a given LView.\n *\n * @param lView lView with defer blocks\n * @param deferBlocks defer block aggregator array\n */\nfunction getDeferBlocks(lView, deferBlocks) {\n  const tView = lView[TVIEW];\n  for (let i = HEADER_OFFSET; i < tView.bindingStartIndex; i++) {\n    if (isLContainer(lView[i])) {\n      const lContainer = lView[i];\n      // An LContainer may represent an instance of a defer block, in which case\n      // we store it as a result. Otherwise, keep iterating over LContainer views and\n      // look for defer blocks.\n      const isLast = i === tView.bindingStartIndex - 1;\n      if (!isLast) {\n        const tNode = tView.data[i];\n        const tDetails = getTDeferBlockDetails(tView, tNode);\n        if (isTDeferBlockDetails(tDetails)) {\n          deferBlocks.push({\n            lContainer,\n            lView,\n            tNode,\n            tDetails\n          });\n          // This LContainer represents a defer block, so we exit\n          // this iteration and don't inspect views in this LContainer.\n          continue;\n        }\n      }\n      for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {\n        getDeferBlocks(lContainer[i], deferBlocks);\n      }\n    } else if (isLView(lView[i])) {\n      // This is a component, enter the `getDeferBlocks` recursively.\n      getDeferBlocks(lView[i], deferBlocks);\n    }\n  }\n}\n\n/**\n * Indicates whether the hydration-related code was added,\n * prevents adding it multiple times.\n */\nlet isHydrationSupportEnabled = false;\n/**\n * Indicates whether support for hydrating i18n blocks is enabled.\n */\nlet _isI18nHydrationSupportEnabled = false;\n/**\n * Defines a period of time that Angular waits for the `ApplicationRef.isStable` to emit `true`.\n * If there was no event with the `true` value during this time, Angular reports a warning.\n */\nconst APPLICATION_IS_STABLE_TIMEOUT = 10_000;\n/**\n * Brings the necessary hydration code in tree-shakable manner.\n * The code is only present when the `provideClientHydration` is\n * invoked. Otherwise, this code is tree-shaken away during the\n * build optimization step.\n *\n * This technique allows us to swap implementations of methods so\n * tree shaking works appropriately when hydration is disabled or\n * enabled. It brings in the appropriate version of the method that\n * supports hydration only when enabled.\n */\nfunction enableHydrationRuntimeSupport() {\n  if (!isHydrationSupportEnabled) {\n    isHydrationSupportEnabled = true;\n    enableRetrieveHydrationInfoImpl();\n    enableLocateOrCreateElementNodeImpl();\n    enableLocateOrCreateTextNodeImpl();\n    enableLocateOrCreateElementContainerNodeImpl();\n    enableLocateOrCreateContainerAnchorImpl();\n    enableLocateOrCreateContainerRefImpl();\n    enableFindMatchingDehydratedViewImpl();\n    enableApplyRootElementTransformImpl();\n    enableLocateOrCreateI18nNodeImpl();\n  }\n}\n/**\n * Outputs a message with hydration stats into a console.\n */\nfunction printHydrationStats(injector) {\n  const console = injector.get(Console);\n  const message = `Angular hydrated ${ngDevMode.hydratedComponents} component(s) ` + `and ${ngDevMode.hydratedNodes} node(s), ` + `${ngDevMode.componentsSkippedHydration} component(s) were skipped. ` + `Learn more at https://angular.io/guide/hydration.`;\n  // tslint:disable-next-line:no-console\n  console.log(message);\n}\n/**\n * Returns a Promise that is resolved when an application becomes stable.\n */\nfunction whenStableWithTimeout(appRef, injector) {\n  const whenStablePromise = whenStable(appRef);\n  if (typeof ngDevMode !== 'undefined' && ngDevMode) {\n    const timeoutTime = APPLICATION_IS_STABLE_TIMEOUT;\n    const console = injector.get(Console);\n    const ngZone = injector.get(NgZone);\n    // The following call should not and does not prevent the app to become stable\n    // We cannot use RxJS timer here because the app would remain unstable.\n    // This also avoids an extra change detection cycle.\n    const timeoutId = ngZone.runOutsideAngular(() => {\n      return setTimeout(() => logWarningOnStableTimedout(timeoutTime, console), timeoutTime);\n    });\n    whenStablePromise.finally(() => clearTimeout(timeoutId));\n  }\n  return whenStablePromise;\n}\n/**\n * Returns a set of providers required to setup hydration support\n * for an application that is server side rendered. This function is\n * included into the `provideClientHydration` public API function from\n * the `platform-browser` package.\n *\n * The function sets up an internal flag that would be recognized during\n * the server side rendering time as well, so there is no need to\n * configure or change anything in NgUniversal to enable the feature.\n */\nfunction withDomHydration() {\n  return makeEnvironmentProviders([{\n    provide: IS_HYDRATION_DOM_REUSE_ENABLED,\n    useFactory: () => {\n      let isEnabled = true;\n      if (isPlatformBrowser()) {\n        // On the client, verify that the server response contains\n        // hydration annotations. Otherwise, keep hydration disabled.\n        const transferState = inject(TransferState, {\n          optional: true\n        });\n        isEnabled = !!transferState?.get(NGH_DATA_KEY, null);\n        if (!isEnabled && typeof ngDevMode !== 'undefined' && ngDevMode) {\n          const console = inject(Console);\n          const message = formatRuntimeError(-505 /* RuntimeErrorCode.MISSING_HYDRATION_ANNOTATIONS */, 'Angular hydration was requested on the client, but there was no ' + 'serialized information present in the server response, ' + 'thus hydration was not enabled. ' + 'Make sure the `provideClientHydration()` is included into the list ' + 'of providers in the server part of the application configuration.');\n          // tslint:disable-next-line:no-console\n          console.warn(message);\n        }\n      }\n      if (isEnabled) {\n        performanceMarkFeature('NgHydration');\n      }\n      return isEnabled;\n    }\n  }, {\n    provide: ENVIRONMENT_INITIALIZER,\n    useValue: () => {\n      _isI18nHydrationSupportEnabled = !!inject(IS_I18N_HYDRATION_ENABLED, {\n        optional: true\n      });\n      // Since this function is used across both server and client,\n      // make sure that the runtime code is only added when invoked\n      // on the client. Moving forward, the `isPlatformBrowser` check should\n      // be replaced with a tree-shakable alternative (e.g. `isServer`\n      // flag).\n      if (isPlatformBrowser() && inject(IS_HYDRATION_DOM_REUSE_ENABLED)) {\n        verifySsrContentsIntegrity();\n        enableHydrationRuntimeSupport();\n      }\n    },\n    multi: true\n  }, {\n    provide: PRESERVE_HOST_CONTENT,\n    useFactory: () => {\n      // Preserve host element content only in a browser\n      // environment and when hydration is configured properly.\n      // On a server, an application is rendered from scratch,\n      // so the host content needs to be empty.\n      return isPlatformBrowser() && inject(IS_HYDRATION_DOM_REUSE_ENABLED);\n    }\n  }, {\n    provide: APP_BOOTSTRAP_LISTENER,\n    useFactory: () => {\n      if (isPlatformBrowser() && inject(IS_HYDRATION_DOM_REUSE_ENABLED)) {\n        const appRef = inject(ApplicationRef);\n        const injector = inject(Injector);\n        return () => {\n          // Wait until an app becomes stable and cleanup all views that\n          // were not claimed during the application bootstrap process.\n          // The timing is similar to when we start the serialization process\n          // on the server.\n          //\n          // Note: the cleanup task *MUST* be scheduled within the Angular zone in Zone apps\n          // to ensure that change detection is properly run afterward.\n          whenStableWithTimeout(appRef, injector).then(() => {\n            cleanupDehydratedViews(appRef);\n            if (typeof ngDevMode !== 'undefined' && ngDevMode) {\n              printHydrationStats(injector);\n            }\n          });\n        };\n      }\n      return () => {}; // noop\n    },\n    multi: true\n  }]);\n}\n/**\n * Returns a set of providers required to setup support for i18n hydration.\n * Requires hydration to be enabled separately.\n */\nfunction withI18nHydration() {\n  return makeEnvironmentProviders([{\n    provide: IS_I18N_HYDRATION_ENABLED,\n    useValue: true\n  }]);\n}\n/**\n * Returns whether i18n hydration support is enabled.\n */\nfunction isI18nHydrationSupportEnabled() {\n  return _isI18nHydrationSupportEnabled;\n}\n/**\n *\n * @param time The time in ms until the stable timedout warning message is logged\n */\nfunction logWarningOnStableTimedout(time, console) {\n  const message = `Angular hydration expected the ApplicationRef.isStable() to emit \\`true\\`, but it ` + `didn't happen within ${time}ms. Angular hydration logic depends on the application becoming stable ` + `as a signal to complete hydration process.`;\n  console.warn(formatRuntimeError(-506 /* RuntimeErrorCode.HYDRATION_STABLE_TIMEDOUT */, message));\n}\n/**\n * Verifies whether the DOM contains a special marker added during SSR time to make sure\n * there is no SSR'ed contents transformations happen after SSR is completed. Typically that\n * happens either by CDN or during the build process as an optimization to remove comment nodes.\n * Hydration process requires comment nodes produced by Angular to locate correct DOM segments.\n * When this special marker is *not* present - throw an error and do not proceed with hydration,\n * since it will not be able to function correctly.\n *\n * Note: this function is invoked only on the client, so it's safe to use DOM APIs.\n */\nfunction verifySsrContentsIntegrity() {\n  const doc = getDocument();\n  let hydrationMarker;\n  for (const node of doc.body.childNodes) {\n    if (node.nodeType === Node.COMMENT_NODE && node.textContent?.trim() === SSR_CONTENT_INTEGRITY_MARKER) {\n      hydrationMarker = node;\n      break;\n    }\n  }\n  if (!hydrationMarker) {\n    throw new RuntimeError(-507 /* RuntimeErrorCode.MISSING_SSR_CONTENT_INTEGRITY_MARKER */, typeof ngDevMode !== 'undefined' && ngDevMode && 'Angular hydration logic detected that HTML content of this page was modified after it ' + 'was produced during server side rendering. Make sure that there are no optimizations ' + 'that remove comment nodes from HTML enabled on your CDN. Angular hydration ' + 'relies on HTML produced by the server, including whitespaces and comment nodes.');\n  }\n}\n\n/**\n * A collection that tracks all serialized views (`ngh` DOM annotations)\n * to avoid duplication. An attempt to add a duplicate view results in the\n * collection returning the index of the previously collected serialized view.\n * This reduces the number of annotations needed for a given page.\n */\nclass SerializedViewCollection {\n  constructor() {\n    this.views = [];\n    this.indexByContent = new Map();\n  }\n  add(serializedView) {\n    const viewAsString = JSON.stringify(serializedView);\n    if (!this.indexByContent.has(viewAsString)) {\n      const index = this.views.length;\n      this.views.push(serializedView);\n      this.indexByContent.set(viewAsString, index);\n      return index;\n    }\n    return this.indexByContent.get(viewAsString);\n  }\n  getAll() {\n    return this.views;\n  }\n}\n/**\n * Global counter that is used to generate a unique id for TViews\n * during the serialization process.\n */\nlet tViewSsrId = 0;\n/**\n * Generates a unique id for a given TView and returns this id.\n * The id is also stored on this instance of a TView and reused in\n * subsequent calls.\n *\n * This id is needed to uniquely identify and pick up dehydrated views\n * at runtime.\n */\nfunction getSsrId(tView) {\n  if (!tView.ssrId) {\n    tView.ssrId = `t${tViewSsrId++}`;\n  }\n  return tView.ssrId;\n}\n/**\n * Computes the number of root nodes in a given view\n * (or child nodes in a given container if a tNode is provided).\n */\nfunction calcNumRootNodes(tView, lView, tNode) {\n  const rootNodes = [];\n  collectNativeNodes(tView, lView, tNode, rootNodes);\n  return rootNodes.length;\n}\n/**\n * Computes the number of root nodes in all views in a given LContainer.\n */\nfunction calcNumRootNodesInLContainer(lContainer) {\n  const rootNodes = [];\n  collectNativeNodesInLContainer(lContainer, rootNodes);\n  return rootNodes.length;\n}\n/**\n * Annotates root level component's LView for hydration,\n * see `annotateHostElementForHydration` for additional information.\n */\nfunction annotateComponentLViewForHydration(lView, context) {\n  const hostElement = lView[HOST];\n  // Root elements might also be annotated with the `ngSkipHydration` attribute,\n  // check if it's present before starting the serialization process.\n  if (hostElement && !hostElement.hasAttribute(SKIP_HYDRATION_ATTR_NAME)) {\n    return annotateHostElementForHydration(hostElement, lView, context);\n  }\n  return null;\n}\n/**\n * Annotates root level LContainer for hydration. This happens when a root component\n * injects ViewContainerRef, thus making the component an anchor for a view container.\n * This function serializes the component itself as well as all views from the view\n * container.\n */\nfunction annotateLContainerForHydration(lContainer, context) {\n  const componentLView = unwrapLView(lContainer[HOST]);\n  // Serialize the root component itself.\n  const componentLViewNghIndex = annotateComponentLViewForHydration(componentLView, context);\n  const hostElement = unwrapRNode(componentLView[HOST]);\n  // Serialize all views within this view container.\n  const rootLView = lContainer[PARENT];\n  const rootLViewNghIndex = annotateHostElementForHydration(hostElement, rootLView, context);\n  const renderer = componentLView[RENDERER];\n  // For cases when a root component also acts as an anchor node for a ViewContainerRef\n  // (for example, when ViewContainerRef is injected in a root component), there is a need\n  // to serialize information about the component itself, as well as an LContainer that\n  // represents this ViewContainerRef. Effectively, we need to serialize 2 pieces of info:\n  // (1) hydration info for the root component itself and (2) hydration info for the\n  // ViewContainerRef instance (an LContainer). Each piece of information is included into\n  // the hydration data (in the TransferState object) separately, thus we end up with 2 ids.\n  // Since we only have 1 root element, we encode both bits of info into a single string:\n  // ids are separated by the `|` char (e.g. `10|25`, where `10` is the ngh for a component view\n  // and 25 is the `ngh` for a root view which holds LContainer).\n  const finalIndex = `${componentLViewNghIndex}|${rootLViewNghIndex}`;\n  renderer.setAttribute(hostElement, NGH_ATTR_NAME, finalIndex);\n}\n/**\n * Annotates all components bootstrapped in a given ApplicationRef\n * with info needed for hydration.\n *\n * @param appRef An instance of an ApplicationRef.\n * @param doc A reference to the current Document instance.\n */\nfunction annotateForHydration(appRef, doc) {\n  const serializedViewCollection = new SerializedViewCollection();\n  const corruptedTextNodes = new Map();\n  const viewRefs = appRef._views;\n  for (const viewRef of viewRefs) {\n    const lNode = getLNodeForHydration(viewRef);\n    // An `lView` might be `null` if a `ViewRef` represents\n    // an embedded view (not a component view).\n    if (lNode !== null) {\n      const context = {\n        serializedViewCollection,\n        corruptedTextNodes\n      };\n      if (isLContainer(lNode)) {\n        annotateLContainerForHydration(lNode, context);\n      } else {\n        annotateComponentLViewForHydration(lNode, context);\n      }\n      insertCorruptedTextNodeMarkers(corruptedTextNodes, doc);\n    }\n  }\n  // Note: we *always* include hydration info key and a corresponding value\n  // into the TransferState, even if the list of serialized views is empty.\n  // This is needed as a signal to the client that the server part of the\n  // hydration logic was setup and enabled correctly. Otherwise, if a client\n  // hydration doesn't find a key in the transfer state - an error is produced.\n  const serializedViews = serializedViewCollection.getAll();\n  const transferState = appRef.injector.get(TransferState);\n  transferState.set(NGH_DATA_KEY, serializedViews);\n}\n/**\n * Serializes the lContainer data into a list of SerializedView objects,\n * that represent views within this lContainer.\n *\n * @param lContainer the lContainer we are serializing\n * @param context the hydration context\n * @returns an array of the `SerializedView` objects\n */\nfunction serializeLContainer(lContainer, context) {\n  const views = [];\n  let lastViewAsString = '';\n  for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {\n    let childLView = lContainer[i];\n    let template;\n    let numRootNodes;\n    let serializedView;\n    if (isRootView(childLView)) {\n      // If this is a root view, get an LView for the underlying component,\n      // because it contains information about the view to serialize.\n      childLView = childLView[HEADER_OFFSET];\n      // If we have an LContainer at this position, this indicates that the\n      // host element was used as a ViewContainerRef anchor (e.g. a `ViewContainerRef`\n      // was injected within the component class). This case requires special handling.\n      if (isLContainer(childLView)) {\n        // Calculate the number of root nodes in all views in a given container\n        // and increment by one to account for an anchor node itself, i.e. in this\n        // scenario we'll have a layout that would look like this:\n        // `<app-root /><#VIEW1><#VIEW2>...<!--container-->`\n        // The `+1` is to capture the `<app-root />` element.\n        numRootNodes = calcNumRootNodesInLContainer(childLView) + 1;\n        annotateLContainerForHydration(childLView, context);\n        const componentLView = unwrapLView(childLView[HOST]);\n        serializedView = {\n          [TEMPLATE_ID]: componentLView[TVIEW].ssrId,\n          [NUM_ROOT_NODES]: numRootNodes\n        };\n      }\n    }\n    if (!serializedView) {\n      const childTView = childLView[TVIEW];\n      if (childTView.type === 1 /* TViewType.Component */) {\n        template = childTView.ssrId;\n        // This is a component view, thus it has only 1 root node: the component\n        // host node itself (other nodes would be inside that host node).\n        numRootNodes = 1;\n      } else {\n        template = getSsrId(childTView);\n        numRootNodes = calcNumRootNodes(childTView, childLView, childTView.firstChild);\n      }\n      serializedView = {\n        [TEMPLATE_ID]: template,\n        [NUM_ROOT_NODES]: numRootNodes,\n        ...serializeLView(lContainer[i], context)\n      };\n    }\n    // Check if the previous view has the same shape (for example, it was\n    // produced by the *ngFor), in which case bump the counter on the previous\n    // view instead of including the same information again.\n    const currentViewAsString = JSON.stringify(serializedView);\n    if (views.length > 0 && currentViewAsString === lastViewAsString) {\n      const previousView = views[views.length - 1];\n      previousView[MULTIPLIER] ??= 1;\n      previousView[MULTIPLIER]++;\n    } else {\n      // Record this view as most recently added.\n      lastViewAsString = currentViewAsString;\n      views.push(serializedView);\n    }\n  }\n  return views;\n}\n/**\n * Helper function to produce a node path (which navigation steps runtime logic\n * needs to take to locate a node) and stores it in the `NODES` section of the\n * current serialized view.\n */\nfunction appendSerializedNodePath(ngh, tNode, lView) {\n  const noOffsetIndex = tNode.index - HEADER_OFFSET;\n  ngh[NODES] ??= {};\n  ngh[NODES][noOffsetIndex] = calcPathForNode(tNode, lView);\n}\n/**\n * Helper function to append information about a disconnected node.\n * This info is needed at runtime to avoid DOM lookups for this element\n * and instead, the element would be created from scratch.\n */\nfunction appendDisconnectedNodeIndex(ngh, tNode) {\n  const noOffsetIndex = tNode.index - HEADER_OFFSET;\n  ngh[DISCONNECTED_NODES] ??= [];\n  if (!ngh[DISCONNECTED_NODES].includes(noOffsetIndex)) {\n    ngh[DISCONNECTED_NODES].push(noOffsetIndex);\n  }\n}\n/**\n * Serializes the lView data into a SerializedView object that will later be added\n * to the TransferState storage and referenced using the `ngh` attribute on a host\n * element.\n *\n * @param lView the lView we are serializing\n * @param context the hydration context\n * @returns the `SerializedView` object containing the data to be added to the host node\n */\nfunction serializeLView(lView, context) {\n  const ngh = {};\n  const tView = lView[TVIEW];\n  // Iterate over DOM element references in an LView.\n  for (let i = HEADER_OFFSET; i < tView.bindingStartIndex; i++) {\n    const tNode = tView.data[i];\n    const noOffsetIndex = i - HEADER_OFFSET;\n    // Skip processing of a given slot in the following cases:\n    // - Local refs (e.g. <div #localRef>) take up an extra slot in LViews\n    //   to store the same element. In this case, there is no information in\n    //   a corresponding slot in TNode data structure.\n    // - When a slot contains something other than a TNode. For example, there\n    //   might be some metadata information about a defer block or a control flow block.\n    if (!isTNodeShape(tNode)) {\n      continue;\n    }\n    // Check if a native node that represents a given TNode is disconnected from the DOM tree.\n    // Such nodes must be excluded from the hydration (since the hydration won't be able to\n    // find them), so the TNode ids are collected and used at runtime to skip the hydration.\n    //\n    // This situation may happen during the content projection, when some nodes don't make it\n    // into one of the content projection slots (for example, when there is no default\n    // <ng-content /> slot in projector component's template).\n    if (isDisconnectedNode(tNode, lView) && isContentProjectedNode(tNode)) {\n      appendDisconnectedNodeIndex(ngh, tNode);\n      continue;\n    }\n    if (Array.isArray(tNode.projection)) {\n      for (const projectionHeadTNode of tNode.projection) {\n        // We may have `null`s in slots with no projected content.\n        if (!projectionHeadTNode) continue;\n        if (!Array.isArray(projectionHeadTNode)) {\n          // If we process re-projected content (i.e. `<ng-content>`\n          // appears at projection location), skip annotations for this content\n          // since all DOM nodes in this projection were handled while processing\n          // a parent lView, which contains those nodes.\n          if (!isProjectionTNode(projectionHeadTNode) && !isInSkipHydrationBlock(projectionHeadTNode)) {\n            if (isDisconnectedNode(projectionHeadTNode, lView)) {\n              // Check whether this node is connected, since we may have a TNode\n              // in the data structure as a projection segment head, but the\n              // content projection slot might be disabled (e.g.\n              // <ng-content *ngIf=\"false\" />).\n              appendDisconnectedNodeIndex(ngh, projectionHeadTNode);\n            } else {\n              appendSerializedNodePath(ngh, projectionHeadTNode, lView);\n            }\n          }\n        } else {\n          // If a value is an array, it means that we are processing a projection\n          // where projectable nodes were passed in as DOM nodes (for example, when\n          // calling `ViewContainerRef.createComponent(CmpA, {projectableNodes: [...]})`).\n          //\n          // In this scenario, nodes can come from anywhere (either created manually,\n          // accessed via `document.querySelector`, etc) and may be in any state\n          // (attached or detached from the DOM tree). As a result, we can not reliably\n          // restore the state for such cases during hydration.\n          throw unsupportedProjectionOfDomNodes(unwrapRNode(lView[i]));\n        }\n      }\n    }\n    conditionallyAnnotateNodePath(ngh, tNode, lView);\n    if (isLContainer(lView[i])) {\n      // Serialize information about a template.\n      const embeddedTView = tNode.tView;\n      if (embeddedTView !== null) {\n        ngh[TEMPLATES] ??= {};\n        ngh[TEMPLATES][noOffsetIndex] = getSsrId(embeddedTView);\n      }\n      // Serialize views within this LContainer.\n      const hostNode = lView[i][HOST]; // host node of this container\n      // LView[i][HOST] can be of 2 different types:\n      // - either a DOM node\n      // - or an array that represents an LView of a component\n      if (Array.isArray(hostNode)) {\n        // This is a component, serialize info about it.\n        const targetNode = unwrapRNode(hostNode);\n        if (!targetNode.hasAttribute(SKIP_HYDRATION_ATTR_NAME)) {\n          annotateHostElementForHydration(targetNode, hostNode, context);\n        }\n      }\n      ngh[CONTAINERS] ??= {};\n      ngh[CONTAINERS][noOffsetIndex] = serializeLContainer(lView[i], context);\n    } else if (Array.isArray(lView[i])) {\n      // This is a component, annotate the host node with an `ngh` attribute.\n      const targetNode = unwrapRNode(lView[i][HOST]);\n      if (!targetNode.hasAttribute(SKIP_HYDRATION_ATTR_NAME)) {\n        annotateHostElementForHydration(targetNode, lView[i], context);\n      }\n    } else {\n      // <ng-container> case\n      if (tNode.type & 8 /* TNodeType.ElementContainer */) {\n        // An <ng-container> is represented by the number of\n        // top-level nodes. This information is needed to skip over\n        // those nodes to reach a corresponding anchor node (comment node).\n        ngh[ELEMENT_CONTAINERS] ??= {};\n        ngh[ELEMENT_CONTAINERS][noOffsetIndex] = calcNumRootNodes(tView, lView, tNode.child);\n      } else if (tNode.type & 16 /* TNodeType.Projection */) {\n        // Current TNode represents an `<ng-content>` slot, thus it has no\n        // DOM elements associated with it, so the **next sibling** node would\n        // not be able to find an anchor. In this case, use full path instead.\n        let nextTNode = tNode.next;\n        // Skip over all `<ng-content>` slots in a row.\n        while (nextTNode !== null && nextTNode.type & 16 /* TNodeType.Projection */) {\n          nextTNode = nextTNode.next;\n        }\n        if (nextTNode && !isInSkipHydrationBlock(nextTNode)) {\n          // Handle a tNode after the `<ng-content>` slot.\n          appendSerializedNodePath(ngh, nextTNode, lView);\n        }\n      } else {\n        // Handle cases where text nodes can be lost after DOM serialization:\n        //  1. When there is an *empty text node* in DOM: in this case, this\n        //     node would not make it into the serialized string and as a result,\n        //     this node wouldn't be created in a browser. This would result in\n        //     a mismatch during the hydration, where the runtime logic would expect\n        //     a text node to be present in live DOM, but no text node would exist.\n        //     Example: `<span>{{ name }}</span>` when the `name` is an empty string.\n        //     This would result in `<span></span>` string after serialization and\n        //     in a browser only the `span` element would be created. To resolve that,\n        //     an extra comment node is appended in place of an empty text node and\n        //     that special comment node is replaced with an empty text node *before*\n        //     hydration.\n        //  2. When there are 2 consecutive text nodes present in the DOM.\n        //     Example: `<div>Hello <ng-container *ngIf=\"true\">world</ng-container></div>`.\n        //     In this scenario, the live DOM would look like this:\n        //       <div>#text('Hello ') #text('world') #comment('container')</div>\n        //     Serialized string would look like this: `<div>Hello world<!--container--></div>`.\n        //     The live DOM in a browser after that would be:\n        //       <div>#text('Hello world') #comment('container')</div>\n        //     Notice how 2 text nodes are now \"merged\" into one. This would cause hydration\n        //     logic to fail, since it'd expect 2 text nodes being present, not one.\n        //     To fix this, we insert a special comment node in between those text nodes, so\n        //     serialized representation is: `<div>Hello <!--ngtns-->world<!--container--></div>`.\n        //     This forces browser to create 2 text nodes separated by a comment node.\n        //     Before running a hydration process, this special comment node is removed, so the\n        //     live DOM has exactly the same state as it was before serialization.\n        if (tNode.type & 1 /* TNodeType.Text */) {\n          const rNode = unwrapRNode(lView[i]);\n          // Collect this node as required special annotation only when its\n          // contents is empty. Otherwise, such text node would be present on\n          // the client after server-side rendering and no special handling needed.\n          if (rNode.textContent === '') {\n            context.corruptedTextNodes.set(rNode, \"ngetn\" /* TextNodeMarker.EmptyNode */);\n          } else if (rNode.nextSibling?.nodeType === Node.TEXT_NODE) {\n            context.corruptedTextNodes.set(rNode, \"ngtns\" /* TextNodeMarker.Separator */);\n          }\n        }\n      }\n    }\n  }\n  return ngh;\n}\n/**\n * Serializes node location in cases when it's needed, specifically:\n *\n *  1. If `tNode.projectionNext` is different from `tNode.next` - it means that\n *     the next `tNode` after projection is different from the one in the original\n *     template. Since hydration relies on `tNode.next`, this serialized info\n *     if required to help runtime code find the node at the correct location.\n *  2. In certain content projection-based use-cases, it's possible that only\n *     a content of a projected element is rendered. In this case, content nodes\n *     require an extra annotation, since runtime logic can't rely on parent-child\n *     connection to identify the location of a node.\n */\nfunction conditionallyAnnotateNodePath(ngh, tNode, lView) {\n  // Handle case #1 described above.\n  if (tNode.projectionNext && tNode.projectionNext !== tNode.next && !isInSkipHydrationBlock(tNode.projectionNext)) {\n    appendSerializedNodePath(ngh, tNode.projectionNext, lView);\n  }\n  // Handle case #2 described above.\n  // Note: we only do that for the first node (i.e. when `tNode.prev === null`),\n  // the rest of the nodes would rely on the current node location, so no extra\n  // annotation is needed.\n  if (tNode.prev === null && tNode.parent !== null && isDisconnectedNode(tNode.parent, lView) && !isDisconnectedNode(tNode, lView)) {\n    appendSerializedNodePath(ngh, tNode, lView);\n  }\n}\n/**\n * Determines whether a component instance that is represented\n * by a given LView uses `ViewEncapsulation.ShadowDom`.\n */\nfunction componentUsesShadowDomEncapsulation(lView) {\n  const instance = lView[CONTEXT];\n  return instance?.constructor ? getComponentDef(instance.constructor)?.encapsulation === ViewEncapsulation$1.ShadowDom : false;\n}\n/**\n * Annotates component host element for hydration:\n * - by either adding the `ngh` attribute and collecting hydration-related info\n *   for the serialization and transferring to the client\n * - or by adding the `ngSkipHydration` attribute in case Angular detects that\n *   component contents is not compatible with hydration.\n *\n * @param element The Host element to be annotated\n * @param lView The associated LView\n * @param context The hydration context\n * @returns An index of serialized view from the transfer state object\n *          or `null` when a given component can not be serialized.\n */\nfunction annotateHostElementForHydration(element, lView, context) {\n  const renderer = lView[RENDERER];\n  if (hasI18n(lView) && !isI18nHydrationSupportEnabled() || componentUsesShadowDomEncapsulation(lView)) {\n    // Attach the skip hydration attribute if this component:\n    // - either has i18n blocks, since hydrating such blocks is not yet supported\n    // - or uses ShadowDom view encapsulation, since Domino doesn't support\n    //   shadow DOM, so we can not guarantee that client and server representations\n    //   would exactly match\n    renderer.setAttribute(element, SKIP_HYDRATION_ATTR_NAME, '');\n    return null;\n  } else {\n    const ngh = serializeLView(lView, context);\n    const index = context.serializedViewCollection.add(ngh);\n    renderer.setAttribute(element, NGH_ATTR_NAME, index.toString());\n    return index;\n  }\n}\n/**\n * Physically inserts the comment nodes to ensure empty text nodes and adjacent\n * text node separators are preserved after server serialization of the DOM.\n * These get swapped back for empty text nodes or separators once hydration happens\n * on the client.\n *\n * @param corruptedTextNodes The Map of text nodes to be replaced with comments\n * @param doc The document\n */\nfunction insertCorruptedTextNodeMarkers(corruptedTextNodes, doc) {\n  for (const [textNode, marker] of corruptedTextNodes) {\n    textNode.after(doc.createComment(marker));\n  }\n}\n/**\n * Detects whether a given TNode represents a node that\n * is being content projected.\n */\nfunction isContentProjectedNode(tNode) {\n  let currentTNode = tNode;\n  while (currentTNode != null) {\n    // If we come across a component host node in parent nodes -\n    // this TNode is in the content projection section.\n    if (isComponentHost(currentTNode)) {\n      return true;\n    }\n    currentTNode = currentTNode.parent;\n  }\n  return false;\n}\n\n/**\n * Queue a state update to be performed asynchronously.\n *\n * This is useful to safely update application state that is used in an expression that was already\n * checked during change detection. This defers the update until later and prevents\n * `ExpressionChangedAfterItHasBeenChecked` errors. Using signals for state is recommended instead,\n * but it's not always immediately possible to change the state to a signal because it would be a\n * breaking change. When the callback updates state used in an expression, this needs to be\n * accompanied by an explicit notification to the framework that something has changed (i.e.\n * updating a signal or calling `ChangeDetectorRef.markForCheck()`) or may still cause\n * `ExpressionChangedAfterItHasBeenChecked` in dev mode or fail to synchronize the state to the DOM\n * in production.\n */\nfunction queueStateUpdate(callback, options) {\n  !options && assertInInjectionContext(queueStateUpdate);\n  const injector = options?.injector ?? inject(Injector);\n  const appRef = injector.get(ApplicationRef);\n  let executed = false;\n  const runCallbackOnce = () => {\n    if (executed || appRef.destroyed) return;\n    executed = true;\n    callback();\n  };\n  internalAfterNextRender(runCallbackOnce, {\n    injector,\n    runOnServer: true\n  });\n  queueMicrotask(runCallbackOnce);\n}\n\n/**\n * Transforms a value (typically a string) to a boolean.\n * Intended to be used as a transform function of an input.\n *\n *  @usageNotes\n *  ```typescript\n *  @Input({ transform: booleanAttribute }) status!: boolean;\n *  ```\n * @param value Value to be transformed.\n *\n * @publicApi\n */\nfunction booleanAttribute(value) {\n  return typeof value === 'boolean' ? value : value != null && value !== 'false';\n}\n/**\n * Transforms a value (typically a string) to a number.\n * Intended to be used as a transform function of an input.\n * @param value Value to be transformed.\n * @param fallbackValue Value to use if the provided value can't be parsed as a number.\n *\n *  @usageNotes\n *  ```typescript\n *  @Input({ transform: numberAttribute }) id!: number;\n *  ```\n *\n * @publicApi\n */\nfunction numberAttribute(value, fallbackValue = NaN) {\n  // parseFloat(value) handles most of the cases we're interested in (it treats null, empty string,\n  // and other non-number values as NaN, where Number just uses 0) but it considers the string\n  // '123hello' to be a valid number. Therefore we also check if Number(value) is NaN.\n  const isNumberValue = !isNaN(parseFloat(value)) && !isNaN(Number(value));\n  return isNumberValue ? Number(value) : fallbackValue;\n}\n\n/**\n * Compiles a partial directive declaration object into a full directive definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareDirective(decl) {\n  const compiler = getCompilerFacade({\n    usage: 1 /* JitCompilerUsage.PartialDeclaration */,\n    kind: 'directive',\n    type: decl.type\n  });\n  return compiler.compileDirectiveDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵfac.js`, decl);\n}\n/**\n * Evaluates the class metadata declaration.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareClassMetadata(decl) {\n  setClassMetadata(decl.type, decl.decorators, decl.ctorParameters ?? null, decl.propDecorators ?? null);\n}\n/**\n * Compiles a partial component declaration object into a full component definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareComponent(decl) {\n  const compiler = getCompilerFacade({\n    usage: 1 /* JitCompilerUsage.PartialDeclaration */,\n    kind: 'component',\n    type: decl.type\n  });\n  return compiler.compileComponentDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵcmp.js`, decl);\n}\n/**\n * Compiles a partial pipe declaration object into a full pipe definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareFactory(decl) {\n  const compiler = getCompilerFacade({\n    usage: 1 /* JitCompilerUsage.PartialDeclaration */,\n    kind: getFactoryKind(decl.target),\n    type: decl.type\n  });\n  return compiler.compileFactoryDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵfac.js`, decl);\n}\nfunction getFactoryKind(target) {\n  switch (target) {\n    case FactoryTarget.Directive:\n      return 'directive';\n    case FactoryTarget.Component:\n      return 'component';\n    case FactoryTarget.Injectable:\n      return 'injectable';\n    case FactoryTarget.Pipe:\n      return 'pipe';\n    case FactoryTarget.NgModule:\n      return 'NgModule';\n  }\n}\n/**\n * Compiles a partial injectable declaration object into a full injectable definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareInjectable(decl) {\n  const compiler = getCompilerFacade({\n    usage: 1 /* JitCompilerUsage.PartialDeclaration */,\n    kind: 'injectable',\n    type: decl.type\n  });\n  return compiler.compileInjectableDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵprov.js`, decl);\n}\n/**\n * Compiles a partial injector declaration object into a full injector definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareInjector(decl) {\n  const compiler = getCompilerFacade({\n    usage: 1 /* JitCompilerUsage.PartialDeclaration */,\n    kind: 'NgModule',\n    type: decl.type\n  });\n  return compiler.compileInjectorDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵinj.js`, decl);\n}\n/**\n * Compiles a partial NgModule declaration object into a full NgModule definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareNgModule(decl) {\n  const compiler = getCompilerFacade({\n    usage: 1 /* JitCompilerUsage.PartialDeclaration */,\n    kind: 'NgModule',\n    type: decl.type\n  });\n  return compiler.compileNgModuleDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵmod.js`, decl);\n}\n/**\n * Compiles a partial pipe declaration object into a full pipe definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclarePipe(decl) {\n  const compiler = getCompilerFacade({\n    usage: 1 /* JitCompilerUsage.PartialDeclaration */,\n    kind: 'pipe',\n    type: decl.type\n  });\n  return compiler.compilePipeDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵpipe.js`, decl);\n}\n\n// clang-format off\n// clang-format on\n\n/**\n * Create a computed `Signal` which derives a reactive value from an expression.\n */\nfunction computed(computation, options) {\n  performanceMarkFeature('NgSignals');\n  const getter = createComputed$1(computation);\n  if (options?.equal) {\n    getter[SIGNAL$1].equal = options.equal;\n  }\n  if (ngDevMode) {\n    getter.toString = () => `[Computed: ${getter()}]`;\n  }\n  return getter;\n}\n\n/**\n * Execute an arbitrary function in a non-reactive (non-tracking) context. The executed function\n * can, optionally, return a value.\n */\nfunction untracked(nonReactiveReadsFn) {\n  const prevConsumer = setActiveConsumer$1(null);\n  // We are not trying to catch any particular errors here, just making sure that the consumers\n  // stack is restored in case of errors.\n  try {\n    return nonReactiveReadsFn();\n  } finally {\n    setActiveConsumer$1(prevConsumer);\n  }\n}\n\n/**\n * Not public API, which guarantees `EffectScheduler` only ever comes from the application root\n * injector.\n */\nconst APP_EFFECT_SCHEDULER = /*#__PURE__*/new InjectionToken('', {\n  providedIn: 'root',\n  factory: () => inject(EffectScheduler)\n});\n/**\n * A scheduler which manages the execution of effects.\n */\nlet EffectScheduler = /*#__PURE__*/(() => {\n  class EffectScheduler {\n    /** @nocollapse */\n    static {\n      this.ɵprov = ɵɵdefineInjectable({\n        token: EffectScheduler,\n        providedIn: 'root',\n        factory: () => new ZoneAwareEffectScheduler()\n      });\n    }\n  }\n  return EffectScheduler;\n})();\n/**\n * A wrapper around `ZoneAwareQueueingScheduler` that schedules flushing via the microtask queue\n * when.\n */\nclass ZoneAwareEffectScheduler {\n  constructor() {\n    this.queuedEffectCount = 0;\n    this.queues = new Map();\n    this.pendingTasks = inject(PendingTasks);\n    this.taskId = null;\n  }\n  scheduleEffect(handle) {\n    this.enqueue(handle);\n    if (this.taskId === null) {\n      const taskId = this.taskId = this.pendingTasks.add();\n      queueMicrotask(() => {\n        this.flush();\n        this.pendingTasks.remove(taskId);\n        this.taskId = null;\n      });\n    }\n  }\n  enqueue(handle) {\n    const zone = handle.creationZone;\n    if (!this.queues.has(zone)) {\n      this.queues.set(zone, new Set());\n    }\n    const queue = this.queues.get(zone);\n    if (queue.has(handle)) {\n      return;\n    }\n    this.queuedEffectCount++;\n    queue.add(handle);\n  }\n  /**\n   * Run all scheduled effects.\n   *\n   * Execution order of effects within the same zone is guaranteed to be FIFO, but there is no\n   * ordering guarantee between effects scheduled in different zones.\n   */\n  flush() {\n    while (this.queuedEffectCount > 0) {\n      for (const [zone, queue] of this.queues) {\n        // `zone` here must be defined.\n        if (zone === null) {\n          this.flushQueue(queue);\n        } else {\n          zone.run(() => this.flushQueue(queue));\n        }\n      }\n    }\n  }\n  flushQueue(queue) {\n    for (const handle of queue) {\n      queue.delete(handle);\n      this.queuedEffectCount--;\n      // TODO: what happens if this throws an error?\n      handle.run();\n    }\n  }\n}\n/**\n * Core reactive node for an Angular effect.\n *\n * `EffectHandle` combines the reactive graph's `Watch` base node for effects with the framework's\n * scheduling abstraction (`EffectScheduler`) as well as automatic cleanup via `DestroyRef` if\n * available/requested.\n */\nclass EffectHandle {\n  constructor(scheduler, effectFn, creationZone, destroyRef, injector, allowSignalWrites) {\n    this.scheduler = scheduler;\n    this.effectFn = effectFn;\n    this.creationZone = creationZone;\n    this.injector = injector;\n    this.watcher = createWatch$1(onCleanup => this.runEffect(onCleanup), () => this.schedule(), allowSignalWrites);\n    this.unregisterOnDestroy = destroyRef?.onDestroy(() => this.destroy());\n  }\n  runEffect(onCleanup) {\n    try {\n      this.effectFn(onCleanup);\n    } catch (err) {\n      // Inject the `ErrorHandler` here in order to avoid circular DI error\n      // if the effect is used inside of a custom `ErrorHandler`.\n      const errorHandler = this.injector.get(ErrorHandler, null, {\n        optional: true\n      });\n      errorHandler?.handleError(err);\n    }\n  }\n  run() {\n    this.watcher.run();\n  }\n  schedule() {\n    this.scheduler.scheduleEffect(this);\n  }\n  destroy() {\n    this.watcher.destroy();\n    this.unregisterOnDestroy?.();\n    // Note: if the effect is currently scheduled, it's not un-scheduled, and so the scheduler will\n    // retain a reference to it. Attempting to execute it will be a no-op.\n  }\n}\n/**\n * Create a global `Effect` for the given reactive function.\n *\n * @developerPreview\n */\nfunction effect(effectFn, options) {\n  performanceMarkFeature('NgSignals');\n  ngDevMode && assertNotInReactiveContext(effect, 'Call `effect` outside of a reactive context. For example, schedule the ' + 'effect inside the component constructor.');\n  !options?.injector && assertInInjectionContext(effect);\n  const injector = options?.injector ?? inject(Injector);\n  const destroyRef = options?.manualCleanup !== true ? injector.get(DestroyRef) : null;\n  const handle = new EffectHandle(injector.get(APP_EFFECT_SCHEDULER), effectFn, typeof Zone === 'undefined' ? null : Zone.current, destroyRef, injector, options?.allowSignalWrites ?? false);\n  // Effects need to be marked dirty manually to trigger their initial run. The timing of this\n  // marking matters, because the effects may read signals that track component inputs, which are\n  // only available after those components have had their first update pass.\n  //\n  // We inject `ChangeDetectorRef` optionally, to determine whether this effect is being created in\n  // the context of a component or not. If it is, then we check whether the component has already\n  // run its update pass, and defer the effect's initial scheduling until the update pass if it\n  // hasn't already run.\n  const cdr = injector.get(ChangeDetectorRef, null, {\n    optional: true\n  });\n  if (!cdr || !(cdr._lView[FLAGS] & 8 /* LViewFlags.FirstLViewPass */)) {\n    // This effect is either not running in a view injector, or the view has already\n    // undergone its first change detection pass, which is necessary for any required inputs to be\n    // set.\n    handle.watcher.notify();\n  } else {\n    // Delay the initialization of the effect until the view is fully initialized.\n    (cdr._lView[EFFECTS_TO_SCHEDULE] ??= []).push(handle.watcher.notify);\n  }\n  return handle;\n}\n\n// clang-format off\n// clang-format on\n\n// This file exists to allow the set of reactivity exports to be modified in g3, as these APIs are\n\n/**\n * Creates a `ComponentRef` instance based on provided component type and a set of options.\n *\n * @usageNotes\n *\n * The example below demonstrates how the `createComponent` function can be used\n * to create an instance of a ComponentRef dynamically and attach it to an ApplicationRef,\n * so that it gets included into change detection cycles.\n *\n * Note: the example uses standalone components, but the function can also be used for\n * non-standalone components (declared in an NgModule) as well.\n *\n * ```typescript\n * @Component({\n *   standalone: true,\n *   template: `Hello {{ name }}!`\n * })\n * class HelloComponent {\n *   name = 'Angular';\n * }\n *\n * @Component({\n *   standalone: true,\n *   template: `<div id=\"hello-component-host\"></div>`\n * })\n * class RootComponent {}\n *\n * // Bootstrap an application.\n * const applicationRef = await bootstrapApplication(RootComponent);\n *\n * // Locate a DOM node that would be used as a host.\n * const hostElement = document.getElementById('hello-component-host');\n *\n * // Get an `EnvironmentInjector` instance from the `ApplicationRef`.\n * const environmentInjector = applicationRef.injector;\n *\n * // We can now create a `ComponentRef` instance.\n * const componentRef = createComponent(HelloComponent, {hostElement, environmentInjector});\n *\n * // Last step is to register the newly created ref using the `ApplicationRef` instance\n * // to include the component view into change detection cycles.\n * applicationRef.attachView(componentRef.hostView);\n * componentRef.changeDetectorRef.detectChanges();\n * ```\n *\n * @param component Component class reference.\n * @param options Set of options to use:\n *  * `environmentInjector`: An `EnvironmentInjector` instance to be used for the component, see\n * additional info about it [here](/guide/standalone-components#environment-injectors).\n *  * `hostElement` (optional): A DOM node that should act as a host node for the component. If not\n * provided, Angular creates one based on the tag name used in the component selector (and falls\n * back to using `div` if selector doesn't have tag name info).\n *  * `elementInjector` (optional): An `ElementInjector` instance, see additional info about it\n * [here](/guide/hierarchical-dependency-injection#elementinjector).\n *  * `projectableNodes` (optional): A list of DOM nodes that should be projected through\n *                      [`<ng-content>`](api/core/ng-content) of the new component instance.\n * @returns ComponentRef instance that represents a given Component.\n *\n * @publicApi\n */\nfunction createComponent(component, options) {\n  ngDevMode && assertComponentDef(component);\n  const componentDef = getComponentDef(component);\n  const elementInjector = options.elementInjector || getNullInjector();\n  const factory = new ComponentFactory(componentDef);\n  return factory.create(elementInjector, options.projectableNodes, options.hostElement, options.environmentInjector);\n}\n/**\n * Creates an object that allows to retrieve component metadata.\n *\n * @usageNotes\n *\n * The example below demonstrates how to use the function and how the fields\n * of the returned object map to the component metadata.\n *\n * ```typescript\n * @Component({\n *   standalone: true,\n *   selector: 'foo-component',\n *   template: `\n *     <ng-content></ng-content>\n *     <ng-content select=\"content-selector-a\"></ng-content>\n *   `,\n * })\n * class FooComponent {\n *   @Input('inputName') inputPropName: string;\n *   @Output('outputName') outputPropName = new EventEmitter<void>();\n * }\n *\n * const mirror = reflectComponentType(FooComponent);\n * expect(mirror.type).toBe(FooComponent);\n * expect(mirror.selector).toBe('foo-component');\n * expect(mirror.isStandalone).toBe(true);\n * expect(mirror.inputs).toEqual([{propName: 'inputName', templateName: 'inputPropName'}]);\n * expect(mirror.outputs).toEqual([{propName: 'outputName', templateName: 'outputPropName'}]);\n * expect(mirror.ngContentSelectors).toEqual([\n *   '*',                 // first `<ng-content>` in a template, the selector defaults to `*`\n *   'content-selector-a' // second `<ng-content>` in a template\n * ]);\n * ```\n *\n * @param component Component class reference.\n * @returns An object that allows to retrieve component metadata.\n *\n * @publicApi\n */\nfunction reflectComponentType(component) {\n  const componentDef = getComponentDef(component);\n  if (!componentDef) return null;\n  const factory = new ComponentFactory(componentDef);\n  return {\n    get selector() {\n      return factory.selector;\n    },\n    get type() {\n      return factory.componentType;\n    },\n    get inputs() {\n      return factory.inputs;\n    },\n    get outputs() {\n      return factory.outputs;\n    },\n    get ngContentSelectors() {\n      return factory.ngContentSelectors;\n    },\n    get isStandalone() {\n      return componentDef.standalone;\n    },\n    get isSignal() {\n      return componentDef.signals;\n    }\n  };\n}\n\n/**\n * Merge multiple application configurations from left to right.\n *\n * @param configs Two or more configurations to be merged.\n * @returns A merged [ApplicationConfig](api/core/ApplicationConfig).\n *\n * @publicApi\n */\nfunction mergeApplicationConfig(...configs) {\n  return configs.reduce((prev, curr) => {\n    return Object.assign(prev, curr, {\n      providers: [...prev.providers, ...curr.providers]\n    });\n  }, {\n    providers: []\n  });\n}\n\n/**\n * @module\n * @description\n * Entry point from which you should import all public core APIs.\n */\nif (typeof ngDevMode !== 'undefined' && ngDevMode) {\n  // This helper is to give a reasonable error message to people upgrading to v9 that have not yet\n  // installed `@angular/localize` in their app.\n  // tslint:disable-next-line: no-toplevel-property-access\n  _global.$localize ??= function () {\n    throw new Error('It looks like your application or one of its dependencies is using i18n.\\n' + 'Angular 9 introduced a global `$localize()` function that needs to be loaded.\\n' + 'Please run `ng add @angular/localize` from the Angular CLI.\\n' + '(For non-CLI projects, add `import \\'@angular/localize/init\\';` to your `polyfills.ts` file.\\n' + 'For server-side rendering applications add the import to your `main.server.ts` file.)');\n  };\n}\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n// This file only reexports content of the `src` folder. Keep it that way.\n\n/* This file is not used to build this module. It is only used during editing\n * by the TypeScript language service and during build for verification. `ngc`\n * replaces this file with production index.ts when it rewrites private symbol\n * names.\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ANIMATION_MODULE_TYPE, APP_BOOTSTRAP_LISTENER, APP_ID, APP_INITIALIZER, AfterRenderPhase, ApplicationInitStatus, ApplicationModule, ApplicationRef, Attribute, COMPILER_OPTIONS, CSP_NONCE, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, ChangeDetectorRef, Compiler, CompilerFactory, Component, ComponentFactory$1 as ComponentFactory, ComponentFactoryResolver$1 as ComponentFactoryResolver, ComponentRef$1 as ComponentRef, ContentChild, ContentChildren, DEFAULT_CURRENCY_CODE, DebugElement, DebugEventListener, DebugNode, DefaultIterableDiffer, DestroyRef, Directive, ENVIRONMENT_INITIALIZER, ElementRef, EmbeddedViewRef, EnvironmentInjector, ErrorHandler, EventEmitter, Host, HostAttributeToken, HostBinding, HostListener, INJECTOR$1 as INJECTOR, Inject, InjectFlags, Injectable, InjectionToken, Injector, Input, IterableDiffers, KeyValueDiffers, LOCALE_ID, MissingTranslationStrategy, ModuleWithComponentFactories, NO_ERRORS_SCHEMA, NgModule, NgModuleFactory$1 as NgModuleFactory, NgModuleRef$1 as NgModuleRef, NgProbeToken, NgZone, Optional, Output, OutputEmitterRef, PACKAGE_ROOT_URL, PLATFORM_ID, PLATFORM_INITIALIZER, Pipe, PlatformRef, Query, QueryList, Renderer2, RendererFactory2, RendererStyleFlags2, Sanitizer, SecurityContext, Self, SimpleChange, SkipSelf, TRANSLATIONS, TRANSLATIONS_FORMAT, TemplateRef, Testability, TestabilityRegistry, TransferState, Type, VERSION, Version, ViewChild, ViewChildren, ViewContainerRef, ViewEncapsulation$1 as ViewEncapsulation, ViewRef, afterNextRender, afterRender, asNativeElements, assertInInjectionContext, assertNotInReactiveContext, assertPlatform, booleanAttribute, computed, contentChild, contentChildren, createComponent, createEnvironmentInjector, createNgModule, createNgModuleRef, createPlatform, createPlatformFactory, defineInjectable, destroyPlatform, effect, enableProdMode, forwardRef, getDebugNode, getModuleFactory, getNgModuleById, getPlatform, importProvidersFrom, inject, input, isDevMode, isSignal, isStandalone, makeEnvironmentProviders, makeStateKey, mergeApplicationConfig, model, numberAttribute, output, platformCore, provideZoneChangeDetection, reflectComponentType, resolveForwardRef, runInInjectionContext, setTestabilityGetter, signal, untracked, viewChild, viewChildren, ALLOW_MULTIPLE_PLATFORMS as ɵALLOW_MULTIPLE_PLATFORMS, AfterRenderEventManager as ɵAfterRenderEventManager, CONTAINER_HEADER_OFFSET as ɵCONTAINER_HEADER_OFFSET, ChangeDetectionScheduler as ɵChangeDetectionScheduler, ComponentFactory$1 as ɵComponentFactory, Console as ɵConsole, DEFAULT_LOCALE_ID as ɵDEFAULT_LOCALE_ID, DEFER_BLOCK_CONFIG as ɵDEFER_BLOCK_CONFIG, DEFER_BLOCK_DEPENDENCY_INTERCEPTOR as ɵDEFER_BLOCK_DEPENDENCY_INTERCEPTOR, DeferBlockBehavior as ɵDeferBlockBehavior, DeferBlockState as ɵDeferBlockState, EffectScheduler as ɵEffectScheduler, IMAGE_CONFIG as ɵIMAGE_CONFIG, IMAGE_CONFIG_DEFAULTS as ɵIMAGE_CONFIG_DEFAULTS, INJECTOR_SCOPE as ɵINJECTOR_SCOPE, ɵINPUT_SIGNAL_BRAND_WRITE_TYPE, IS_HYDRATION_DOM_REUSE_ENABLED as ɵIS_HYDRATION_DOM_REUSE_ENABLED, LContext as ɵLContext, LifecycleHooksFeature as ɵLifecycleHooksFeature, LocaleDataIndex as ɵLocaleDataIndex, NG_COMP_DEF as ɵNG_COMP_DEF, NG_DIR_DEF as ɵNG_DIR_DEF, NG_ELEMENT_ID as ɵNG_ELEMENT_ID, NG_INJ_DEF as ɵNG_INJ_DEF, NG_MOD_DEF as ɵNG_MOD_DEF, NG_PIPE_DEF as ɵNG_PIPE_DEF, NG_PROV_DEF as ɵNG_PROV_DEF, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR as ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, NO_CHANGE as ɵNO_CHANGE, NgModuleFactory as ɵNgModuleFactory, NoopNgZone as ɵNoopNgZone, PendingTasks as ɵPendingTasks, ReflectionCapabilities as ɵReflectionCapabilities, ComponentFactory as ɵRender3ComponentFactory, ComponentRef as ɵRender3ComponentRef, NgModuleRef as ɵRender3NgModuleRef, RuntimeError as ɵRuntimeError, SSR_CONTENT_INTEGRITY_MARKER as ɵSSR_CONTENT_INTEGRITY_MARKER, TESTABILITY as ɵTESTABILITY, TESTABILITY_GETTER as ɵTESTABILITY_GETTER, USE_RUNTIME_DEPS_TRACKER_FOR_JIT as ɵUSE_RUNTIME_DEPS_TRACKER_FOR_JIT, ViewRef$1 as ɵViewRef, XSS_SECURITY_URL as ɵXSS_SECURITY_URL, _sanitizeHtml as ɵ_sanitizeHtml, _sanitizeUrl as ɵ_sanitizeUrl, allowSanitizationBypassAndThrow as ɵallowSanitizationBypassAndThrow, annotateForHydration as ɵannotateForHydration, bypassSanitizationTrustHtml as ɵbypassSanitizationTrustHtml, bypassSanitizationTrustResourceUrl as ɵbypassSanitizationTrustResourceUrl, bypassSanitizationTrustScript as ɵbypassSanitizationTrustScript, bypassSanitizationTrustStyle as ɵbypassSanitizationTrustStyle, bypassSanitizationTrustUrl as ɵbypassSanitizationTrustUrl, clearResolutionOfComponentResourcesQueue as ɵclearResolutionOfComponentResourcesQueue, compileComponent as ɵcompileComponent, compileDirective as ɵcompileDirective, compileNgModule as ɵcompileNgModule, compileNgModuleDefs as ɵcompileNgModuleDefs, compileNgModuleFactory as ɵcompileNgModuleFactory, compilePipe as ɵcompilePipe, convertToBitFlags as ɵconvertToBitFlags, createInjector as ɵcreateInjector, defaultIterableDiffers as ɵdefaultIterableDiffers, defaultKeyValueDiffers as ɵdefaultKeyValueDiffers, depsTracker as ɵdepsTracker, detectChangesInViewIfRequired as ɵdetectChangesInViewIfRequired, devModeEqual as ɵdevModeEqual, findLocaleData as ɵfindLocaleData, flushModuleScopingQueueAsMuchAsPossible as ɵflushModuleScopingQueueAsMuchAsPossible, formatRuntimeError as ɵformatRuntimeError, generateStandaloneInDeclarationsError as ɵgenerateStandaloneInDeclarationsError, getAsyncClassMetadataFn as ɵgetAsyncClassMetadataFn, getDebugNode as ɵgetDebugNode, getDeferBlocks as ɵgetDeferBlocks, getDirectives as ɵgetDirectives, getEnsureDirtyViewsAreAlwaysReachable as ɵgetEnsureDirtyViewsAreAlwaysReachable, getHostElement as ɵgetHostElement, getInjectableDef as ɵgetInjectableDef, getLContext as ɵgetLContext, getLocaleCurrencyCode as ɵgetLocaleCurrencyCode, getLocalePluralCase as ɵgetLocalePluralCase, getOutputDestroyRef as ɵgetOutputDestroyRef, getSanitizationBypassType as ɵgetSanitizationBypassType, ɵgetUnknownElementStrictMode, ɵgetUnknownPropertyStrictMode, _global as ɵglobal, injectChangeDetectorRef as ɵinjectChangeDetectorRef, internalAfterNextRender as ɵinternalAfterNextRender, internalCreateApplication as ɵinternalCreateApplication, isBoundToModule as ɵisBoundToModule, isComponentDefPendingResolution as ɵisComponentDefPendingResolution, isEnvironmentProviders as ɵisEnvironmentProviders, isInjectable as ɵisInjectable, isNgModule as ɵisNgModule, isPromise as ɵisPromise, isSubscribable as ɵisSubscribable, noSideEffects as ɵnoSideEffects, patchComponentDefWithScope as ɵpatchComponentDefWithScope, performanceMarkFeature as ɵperformanceMarkFeature, provideZonelessChangeDetection as ɵprovideZonelessChangeDetection, queueStateUpdate as ɵqueueStateUpdate, readHydrationInfo as ɵreadHydrationInfo, registerLocaleData as ɵregisterLocaleData, renderDeferBlockState as ɵrenderDeferBlockState, resetCompiledComponents as ɵresetCompiledComponents, resetJitOptions as ɵresetJitOptions, resolveComponentResources as ɵresolveComponentResources, restoreComponentResolutionQueue as ɵrestoreComponentResolutionQueue, setAllowDuplicateNgModuleIdsForTest as ɵsetAllowDuplicateNgModuleIdsForTest, setAlternateWeakRefImpl as ɵsetAlternateWeakRefImpl, ɵsetClassDebugInfo, setClassMetadata as ɵsetClassMetadata, setClassMetadataAsync as ɵsetClassMetadataAsync, setCurrentInjector as ɵsetCurrentInjector, setDocument as ɵsetDocument, setEnsureDirtyViewsAreAlwaysReachable as ɵsetEnsureDirtyViewsAreAlwaysReachable, setInjectorProfilerContext as ɵsetInjectorProfilerContext, setLocaleId as ɵsetLocaleId, ɵsetUnknownElementStrictMode, ɵsetUnknownPropertyStrictMode, store as ɵstore, stringify as ɵstringify, transitiveScopesFor as ɵtransitiveScopesFor, triggerResourceLoading as ɵtriggerResourceLoading, truncateMiddle as ɵtruncateMiddle, unregisterAllLocaleData as ɵunregisterLocaleData, unwrapSafeValue as ɵunwrapSafeValue, ɵunwrapWritableSignal, whenStable as ɵwhenStable, withDomHydration as ɵwithDomHydration, withI18nHydration as ɵwithI18nHydration, ɵɵCopyDefinitionFeature, FactoryTarget as ɵɵFactoryTarget, ɵɵHostDirectivesFeature, ɵɵInheritDefinitionFeature, InputFlags as ɵɵInputFlags, ɵɵInputTransformsFeature, ɵɵNgOnChangesFeature, ɵɵProvidersFeature, ɵɵStandaloneFeature, ɵɵadvance, ɵɵattribute, ɵɵattributeInterpolate1, ɵɵattributeInterpolate2, ɵɵattributeInterpolate3, ɵɵattributeInterpolate4, ɵɵattributeInterpolate5, ɵɵattributeInterpolate6, ɵɵattributeInterpolate7, ɵɵattributeInterpolate8, ɵɵattributeInterpolateV, ɵɵclassMap, ɵɵclassMapInterpolate1, ɵɵclassMapInterpolate2, ɵɵclassMapInterpolate3, ɵɵclassMapInterpolate4, ɵɵclassMapInterpolate5, ɵɵclassMapInterpolate6, ɵɵclassMapInterpolate7, ɵɵclassMapInterpolate8, ɵɵclassMapInterpolateV, ɵɵclassProp, ɵɵcomponentInstance, ɵɵconditional, ɵɵcontentQuery, ɵɵcontentQuerySignal, ɵɵdefer, ɵɵdeferEnableTimerScheduling, ɵɵdeferOnHover, ɵɵdeferOnIdle, ɵɵdeferOnImmediate, ɵɵdeferOnInteraction, ɵɵdeferOnTimer, ɵɵdeferOnViewport, ɵɵdeferPrefetchOnHover, ɵɵdeferPrefetchOnIdle, ɵɵdeferPrefetchOnImmediate, ɵɵdeferPrefetchOnInteraction, ɵɵdeferPrefetchOnTimer, ɵɵdeferPrefetchOnViewport, ɵɵdeferPrefetchWhen, ɵɵdeferWhen, ɵɵdefineComponent, ɵɵdefineDirective, ɵɵdefineInjectable, ɵɵdefineInjector, ɵɵdefineNgModule, ɵɵdefinePipe, ɵɵdirectiveInject, ɵɵdisableBindings, ɵɵelement, ɵɵelementContainer, ɵɵelementContainerEnd, ɵɵelementContainerStart, ɵɵelementEnd, ɵɵelementStart, ɵɵenableBindings, ɵɵgetComponentDepsFactory, ɵɵgetCurrentView, ɵɵgetInheritedFactory, ɵɵhostProperty, ɵɵi18n, ɵɵi18nApply, ɵɵi18nAttributes, ɵɵi18nEnd, ɵɵi18nExp, ɵɵi18nPostprocess, ɵɵi18nStart, ɵɵinject, ɵɵinjectAttribute, ɵɵinvalidFactory, ɵɵinvalidFactoryDep, ɵɵlistener, ɵɵloadQuery, ɵɵnamespaceHTML, ɵɵnamespaceMathML, ɵɵnamespaceSVG, ɵɵnextContext, ɵɵngDeclareClassMetadata, ɵɵngDeclareComponent, ɵɵngDeclareDirective, ɵɵngDeclareFactory, ɵɵngDeclareInjectable, ɵɵngDeclareInjector, ɵɵngDeclareNgModule, ɵɵngDeclarePipe, ɵɵpipe, ɵɵpipeBind1, ɵɵpipeBind2, ɵɵpipeBind3, ɵɵpipeBind4, ɵɵpipeBindV, ɵɵprojection, ɵɵprojectionDef, ɵɵproperty, ɵɵpropertyInterpolate, ɵɵpropertyInterpolate1, ɵɵpropertyInterpolate2, ɵɵpropertyInterpolate3, ɵɵpropertyInterpolate4, ɵɵpropertyInterpolate5, ɵɵpropertyInterpolate6, ɵɵpropertyInterpolate7, ɵɵpropertyInterpolate8, ɵɵpropertyInterpolateV, ɵɵpureFunction0, ɵɵpureFunction1, ɵɵpureFunction2, ɵɵpureFunction3, ɵɵpureFunction4, ɵɵpureFunction5, ɵɵpureFunction6, ɵɵpureFunction7, ɵɵpureFunction8, ɵɵpureFunctionV, ɵɵqueryAdvance, ɵɵqueryRefresh, ɵɵreference, registerNgModuleType as ɵɵregisterNgModuleType, ɵɵrepeater, ɵɵrepeaterCreate, ɵɵrepeaterTrackByIdentity, ɵɵrepeaterTrackByIndex, ɵɵresetView, ɵɵresolveBody, ɵɵresolveDocument, ɵɵresolveWindow, ɵɵrestoreView, ɵɵsanitizeHtml, ɵɵsanitizeResourceUrl, ɵɵsanitizeScript, ɵɵsanitizeStyle, ɵɵsanitizeUrl, ɵɵsanitizeUrlOrResourceUrl, ɵɵsetComponentScope, ɵɵsetNgModuleScope, ɵɵstyleMap, ɵɵstyleMapInterpolate1, ɵɵstyleMapInterpolate2, ɵɵstyleMapInterpolate3, ɵɵstyleMapInterpolate4, ɵɵstyleMapInterpolate5, ɵɵstyleMapInterpolate6, ɵɵstyleMapInterpolate7, ɵɵstyleMapInterpolate8, ɵɵstyleMapInterpolateV, ɵɵstyleProp, ɵɵstylePropInterpolate1, ɵɵstylePropInterpolate2, ɵɵstylePropInterpolate3, ɵɵstylePropInterpolate4, ɵɵstylePropInterpolate5, ɵɵstylePropInterpolate6, ɵɵstylePropInterpolate7, ɵɵstylePropInterpolate8, ɵɵstylePropInterpolateV, ɵɵsyntheticHostListener, ɵɵsyntheticHostProperty, ɵɵtemplate, ɵɵtemplateRefExtractor, ɵɵtext, ɵɵtextInterpolate, ɵɵtextInterpolate1, ɵɵtextInterpolate2, ɵɵtextInterpolate3, ɵɵtextInterpolate4, ɵɵtextInterpolate5, ɵɵtextInterpolate6, ɵɵtextInterpolate7, ɵɵtextInterpolate8, ɵɵtextInterpolateV, ɵɵtrustConstantHtml, ɵɵtrustConstantResourceUrl, ɵɵtwoWayBindingSet, ɵɵtwoWayListener, ɵɵtwoWayProperty, ɵɵvalidateIframeAttribute, ɵɵviewQuery, ɵɵviewQuerySignal };\n","/**\n * @license Angular v17.3.11\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { Injectable, InjectionToken, inject, Optional, Inject, EventEmitter, ɵɵinject, ɵfindLocaleData, ɵLocaleDataIndex, ɵgetLocaleCurrencyCode, ɵgetLocalePluralCase, LOCALE_ID, ɵregisterLocaleData, ɵstringify, Directive, Input, createNgModule, NgModuleRef, ɵRuntimeError, ɵformatRuntimeError, Host, Attribute, RendererStyleFlags2, untracked, ɵisPromise, ɵisSubscribable, Pipe, DEFAULT_CURRENCY_CODE, NgModule, Version, ɵɵdefineInjectable, PLATFORM_ID, ɵIMAGE_CONFIG, Renderer2, ElementRef, Injector, ɵperformanceMarkFeature, NgZone, ChangeDetectorRef, numberAttribute, booleanAttribute, ɵIMAGE_CONFIG_DEFAULTS, ɵunwrapSafeValue } from '@angular/core';\nexport { ɵIMAGE_CONFIG as IMAGE_CONFIG } from '@angular/core';\nlet _DOM = null;\nfunction getDOM() {\n  return _DOM;\n}\nfunction setRootDomAdapter(adapter) {\n  _DOM ??= adapter;\n}\n/* tslint:disable:requireParameterType */\n/**\n * Provides DOM operations in an environment-agnostic way.\n *\n * @security Tread carefully! Interacting with the DOM directly is dangerous and\n * can introduce XSS risks.\n */\nclass DomAdapter {}\n\n/**\n * This class wraps the platform Navigation API which allows server-specific and test\n * implementations.\n */\nlet PlatformNavigation = /*#__PURE__*/(() => {\n  class PlatformNavigation {\n    static {\n      this.ɵfac = function PlatformNavigation_Factory(t) {\n        return new (t || PlatformNavigation)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: PlatformNavigation,\n        factory: () => (() => window.navigation)(),\n        providedIn: 'platform'\n      });\n    }\n  }\n  return PlatformNavigation;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * A DI Token representing the main rendering context.\n * In a browser and SSR this is the DOM Document.\n * When using SSR, that document is created by [Domino](https://github.com/angular/domino).\n *\n * @publicApi\n */\nconst DOCUMENT = /*#__PURE__*/new InjectionToken(ngDevMode ? 'DocumentToken' : '');\n\n/**\n * This class should not be used directly by an application developer. Instead, use\n * {@link Location}.\n *\n * `PlatformLocation` encapsulates all calls to DOM APIs, which allows the Router to be\n * platform-agnostic.\n * This means that we can have different implementation of `PlatformLocation` for the different\n * platforms that Angular supports. For example, `@angular/platform-browser` provides an\n * implementation specific to the browser environment, while `@angular/platform-server` provides\n * one suitable for use with server-side rendering.\n *\n * The `PlatformLocation` class is used directly by all implementations of {@link LocationStrategy}\n * when they need to interact with the DOM APIs like pushState, popState, etc.\n *\n * {@link LocationStrategy} in turn is used by the {@link Location} service which is used directly\n * by the {@link Router} in order to navigate between routes. Since all interactions between {@link\n * Router} /\n * {@link Location} / {@link LocationStrategy} and DOM APIs flow through the `PlatformLocation`\n * class, they are all platform-agnostic.\n *\n * @publicApi\n */\nlet PlatformLocation = /*#__PURE__*/(() => {\n  class PlatformLocation {\n    historyGo(relativePosition) {\n      throw new Error(ngDevMode ? 'Not implemented' : '');\n    }\n    static {\n      this.ɵfac = function PlatformLocation_Factory(t) {\n        return new (t || PlatformLocation)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: PlatformLocation,\n        factory: () => (() => inject(BrowserPlatformLocation))(),\n        providedIn: 'platform'\n      });\n    }\n  }\n  return PlatformLocation;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n * Indicates when a location is initialized.\n *\n * @publicApi\n */\nconst LOCATION_INITIALIZED = /*#__PURE__*/new InjectionToken(ngDevMode ? 'Location Initialized' : '');\n/**\n * `PlatformLocation` encapsulates all of the direct calls to platform APIs.\n * This class should not be used directly by an application developer. Instead, use\n * {@link Location}.\n *\n * @publicApi\n */\nlet BrowserPlatformLocation = /*#__PURE__*/(() => {\n  class BrowserPlatformLocation extends PlatformLocation {\n    constructor() {\n      super();\n      this._doc = inject(DOCUMENT);\n      this._location = window.location;\n      this._history = window.history;\n    }\n    getBaseHrefFromDOM() {\n      return getDOM().getBaseHref(this._doc);\n    }\n    onPopState(fn) {\n      const window = getDOM().getGlobalEventTarget(this._doc, 'window');\n      window.addEventListener('popstate', fn, false);\n      return () => window.removeEventListener('popstate', fn);\n    }\n    onHashChange(fn) {\n      const window = getDOM().getGlobalEventTarget(this._doc, 'window');\n      window.addEventListener('hashchange', fn, false);\n      return () => window.removeEventListener('hashchange', fn);\n    }\n    get href() {\n      return this._location.href;\n    }\n    get protocol() {\n      return this._location.protocol;\n    }\n    get hostname() {\n      return this._location.hostname;\n    }\n    get port() {\n      return this._location.port;\n    }\n    get pathname() {\n      return this._location.pathname;\n    }\n    get search() {\n      return this._location.search;\n    }\n    get hash() {\n      return this._location.hash;\n    }\n    set pathname(newPath) {\n      this._location.pathname = newPath;\n    }\n    pushState(state, title, url) {\n      this._history.pushState(state, title, url);\n    }\n    replaceState(state, title, url) {\n      this._history.replaceState(state, title, url);\n    }\n    forward() {\n      this._history.forward();\n    }\n    back() {\n      this._history.back();\n    }\n    historyGo(relativePosition = 0) {\n      this._history.go(relativePosition);\n    }\n    getState() {\n      return this._history.state;\n    }\n    static {\n      this.ɵfac = function BrowserPlatformLocation_Factory(t) {\n        return new (t || BrowserPlatformLocation)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: BrowserPlatformLocation,\n        factory: () => (() => new BrowserPlatformLocation())(),\n        providedIn: 'platform'\n      });\n    }\n  }\n  return BrowserPlatformLocation;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Joins two parts of a URL with a slash if needed.\n *\n * @param start  URL string\n * @param end    URL string\n *\n *\n * @returns The joined URL string.\n */\nfunction joinWithSlash(start, end) {\n  if (start.length == 0) {\n    return end;\n  }\n  if (end.length == 0) {\n    return start;\n  }\n  let slashes = 0;\n  if (start.endsWith('/')) {\n    slashes++;\n  }\n  if (end.startsWith('/')) {\n    slashes++;\n  }\n  if (slashes == 2) {\n    return start + end.substring(1);\n  }\n  if (slashes == 1) {\n    return start + end;\n  }\n  return start + '/' + end;\n}\n/**\n * Removes a trailing slash from a URL string if needed.\n * Looks for the first occurrence of either `#`, `?`, or the end of the\n * line as `/` characters and removes the trailing slash if one exists.\n *\n * @param url URL string.\n *\n * @returns The URL string, modified if needed.\n */\nfunction stripTrailingSlash(url) {\n  const match = url.match(/#|\\?|$/);\n  const pathEndIdx = match && match.index || url.length;\n  const droppedSlashIdx = pathEndIdx - (url[pathEndIdx - 1] === '/' ? 1 : 0);\n  return url.slice(0, droppedSlashIdx) + url.slice(pathEndIdx);\n}\n/**\n * Normalizes URL parameters by prepending with `?` if needed.\n *\n * @param  params String of URL parameters.\n *\n * @returns The normalized URL parameters string.\n */\nfunction normalizeQueryParams(params) {\n  return params && params[0] !== '?' ? '?' + params : params;\n}\n\n/**\n * Enables the `Location` service to read route state from the browser's URL.\n * Angular provides two strategies:\n * `HashLocationStrategy` and `PathLocationStrategy`.\n *\n * Applications should use the `Router` or `Location` services to\n * interact with application route state.\n *\n * For instance, `HashLocationStrategy` produces URLs like\n * <code class=\"no-auto-link\">http://example.com#/foo</code>,\n * and `PathLocationStrategy` produces\n * <code class=\"no-auto-link\">http://example.com/foo</code> as an equivalent URL.\n *\n * See these two classes for more.\n *\n * @publicApi\n */\nlet LocationStrategy = /*#__PURE__*/(() => {\n  class LocationStrategy {\n    historyGo(relativePosition) {\n      throw new Error(ngDevMode ? 'Not implemented' : '');\n    }\n    static {\n      this.ɵfac = function LocationStrategy_Factory(t) {\n        return new (t || LocationStrategy)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: LocationStrategy,\n        factory: () => (() => inject(PathLocationStrategy))(),\n        providedIn: 'root'\n      });\n    }\n  }\n  return LocationStrategy;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * A predefined [DI token](guide/glossary#di-token) for the base href\n * to be used with the `PathLocationStrategy`.\n * The base href is the URL prefix that should be preserved when generating\n * and recognizing URLs.\n *\n * @usageNotes\n *\n * The following example shows how to use this token to configure the root app injector\n * with a base href value, so that the DI framework can supply the dependency anywhere in the app.\n *\n * ```typescript\n * import {NgModule} from '@angular/core';\n * import {APP_BASE_HREF} from '@angular/common';\n *\n * @NgModule({\n *   providers: [{provide: APP_BASE_HREF, useValue: '/my/app'}]\n * })\n * class AppModule {}\n * ```\n *\n * @publicApi\n */\nconst APP_BASE_HREF = /*#__PURE__*/new InjectionToken(ngDevMode ? 'appBaseHref' : '');\n/**\n * @description\n * A {@link LocationStrategy} used to configure the {@link Location} service to\n * represent its state in the\n * [path](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax) of the\n * browser's URL.\n *\n * If you're using `PathLocationStrategy`, you may provide a {@link APP_BASE_HREF}\n * or add a `<base href>` element to the document to override the default.\n *\n * For instance, if you provide an `APP_BASE_HREF` of `'/my/app/'` and call\n * `location.go('/foo')`, the browser's URL will become\n * `example.com/my/app/foo`. To ensure all relative URIs resolve correctly,\n * the `<base href>` and/or `APP_BASE_HREF` should end with a `/`.\n *\n * Similarly, if you add `<base href='/my/app/'/>` to the document and call\n * `location.go('/foo')`, the browser's URL will become\n * `example.com/my/app/foo`.\n *\n * Note that when using `PathLocationStrategy`, neither the query nor\n * the fragment in the `<base href>` will be preserved, as outlined\n * by the [RFC](https://tools.ietf.org/html/rfc3986#section-5.2.2).\n *\n * @usageNotes\n *\n * ### Example\n *\n * {@example common/location/ts/path_location_component.ts region='LocationComponent'}\n *\n * @publicApi\n */\nlet PathLocationStrategy = /*#__PURE__*/(() => {\n  class PathLocationStrategy extends LocationStrategy {\n    constructor(_platformLocation, href) {\n      super();\n      this._platformLocation = _platformLocation;\n      this._removeListenerFns = [];\n      this._baseHref = href ?? this._platformLocation.getBaseHrefFromDOM() ?? inject(DOCUMENT).location?.origin ?? '';\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n      while (this._removeListenerFns.length) {\n        this._removeListenerFns.pop()();\n      }\n    }\n    onPopState(fn) {\n      this._removeListenerFns.push(this._platformLocation.onPopState(fn), this._platformLocation.onHashChange(fn));\n    }\n    getBaseHref() {\n      return this._baseHref;\n    }\n    prepareExternalUrl(internal) {\n      return joinWithSlash(this._baseHref, internal);\n    }\n    path(includeHash = false) {\n      const pathname = this._platformLocation.pathname + normalizeQueryParams(this._platformLocation.search);\n      const hash = this._platformLocation.hash;\n      return hash && includeHash ? `${pathname}${hash}` : pathname;\n    }\n    pushState(state, title, url, queryParams) {\n      const externalUrl = this.prepareExternalUrl(url + normalizeQueryParams(queryParams));\n      this._platformLocation.pushState(state, title, externalUrl);\n    }\n    replaceState(state, title, url, queryParams) {\n      const externalUrl = this.prepareExternalUrl(url + normalizeQueryParams(queryParams));\n      this._platformLocation.replaceState(state, title, externalUrl);\n    }\n    forward() {\n      this._platformLocation.forward();\n    }\n    back() {\n      this._platformLocation.back();\n    }\n    getState() {\n      return this._platformLocation.getState();\n    }\n    historyGo(relativePosition = 0) {\n      this._platformLocation.historyGo?.(relativePosition);\n    }\n    static {\n      this.ɵfac = function PathLocationStrategy_Factory(t) {\n        return new (t || PathLocationStrategy)(i0.ɵɵinject(PlatformLocation), i0.ɵɵinject(APP_BASE_HREF, 8));\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: PathLocationStrategy,\n        factory: PathLocationStrategy.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return PathLocationStrategy;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * @description\n * A {@link LocationStrategy} used to configure the {@link Location} service to\n * represent its state in the\n * [hash fragment](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax)\n * of the browser's URL.\n *\n * For instance, if you call `location.go('/foo')`, the browser's URL will become\n * `example.com#/foo`.\n *\n * @usageNotes\n *\n * ### Example\n *\n * {@example common/location/ts/hash_location_component.ts region='LocationComponent'}\n *\n * @publicApi\n */\nlet HashLocationStrategy = /*#__PURE__*/(() => {\n  class HashLocationStrategy extends LocationStrategy {\n    constructor(_platformLocation, _baseHref) {\n      super();\n      this._platformLocation = _platformLocation;\n      this._baseHref = '';\n      this._removeListenerFns = [];\n      if (_baseHref != null) {\n        this._baseHref = _baseHref;\n      }\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n      while (this._removeListenerFns.length) {\n        this._removeListenerFns.pop()();\n      }\n    }\n    onPopState(fn) {\n      this._removeListenerFns.push(this._platformLocation.onPopState(fn), this._platformLocation.onHashChange(fn));\n    }\n    getBaseHref() {\n      return this._baseHref;\n    }\n    path(includeHash = false) {\n      // the hash value is always prefixed with a `#`\n      // and if it is empty then it will stay empty\n      const path = this._platformLocation.hash ?? '#';\n      return path.length > 0 ? path.substring(1) : path;\n    }\n    prepareExternalUrl(internal) {\n      const url = joinWithSlash(this._baseHref, internal);\n      return url.length > 0 ? '#' + url : url;\n    }\n    pushState(state, title, path, queryParams) {\n      let url = this.prepareExternalUrl(path + normalizeQueryParams(queryParams));\n      if (url.length == 0) {\n        url = this._platformLocation.pathname;\n      }\n      this._platformLocation.pushState(state, title, url);\n    }\n    replaceState(state, title, path, queryParams) {\n      let url = this.prepareExternalUrl(path + normalizeQueryParams(queryParams));\n      if (url.length == 0) {\n        url = this._platformLocation.pathname;\n      }\n      this._platformLocation.replaceState(state, title, url);\n    }\n    forward() {\n      this._platformLocation.forward();\n    }\n    back() {\n      this._platformLocation.back();\n    }\n    getState() {\n      return this._platformLocation.getState();\n    }\n    historyGo(relativePosition = 0) {\n      this._platformLocation.historyGo?.(relativePosition);\n    }\n    static {\n      this.ɵfac = function HashLocationStrategy_Factory(t) {\n        return new (t || HashLocationStrategy)(i0.ɵɵinject(PlatformLocation), i0.ɵɵinject(APP_BASE_HREF, 8));\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: HashLocationStrategy,\n        factory: HashLocationStrategy.ɵfac\n      });\n    }\n  }\n  return HashLocationStrategy;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * @description\n *\n * A service that applications can use to interact with a browser's URL.\n *\n * Depending on the `LocationStrategy` used, `Location` persists\n * to the URL's path or the URL's hash segment.\n *\n * @usageNotes\n *\n * It's better to use the `Router.navigate()` service to trigger route changes. Use\n * `Location` only if you need to interact with or create normalized URLs outside of\n * routing.\n *\n * `Location` is responsible for normalizing the URL against the application's base href.\n * A normalized URL is absolute from the URL host, includes the application's base href, and has no\n * trailing slash:\n * - `/my/app/user/123` is normalized\n * - `my/app/user/123` **is not** normalized\n * - `/my/app/user/123/` **is not** normalized\n *\n * ### Example\n *\n * <code-example path='common/location/ts/path_location_component.ts'\n * region='LocationComponent'></code-example>\n *\n * @publicApi\n */\nlet Location = /*#__PURE__*/(() => {\n  class Location {\n    constructor(locationStrategy) {\n      /** @internal */\n      this._subject = new EventEmitter();\n      /** @internal */\n      this._urlChangeListeners = [];\n      /** @internal */\n      this._urlChangeSubscription = null;\n      this._locationStrategy = locationStrategy;\n      const baseHref = this._locationStrategy.getBaseHref();\n      // Note: This class's interaction with base HREF does not fully follow the rules\n      // outlined in the spec https://www.freesoft.org/CIE/RFC/1808/18.htm.\n      // Instead of trying to fix individual bugs with more and more code, we should\n      // investigate using the URL constructor and providing the base as a second\n      // argument.\n      // https://developer.mozilla.org/en-US/docs/Web/API/URL/URL#parameters\n      this._basePath = _stripOrigin(stripTrailingSlash(_stripIndexHtml(baseHref)));\n      this._locationStrategy.onPopState(ev => {\n        this._subject.emit({\n          'url': this.path(true),\n          'pop': true,\n          'state': ev.state,\n          'type': ev.type\n        });\n      });\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n      this._urlChangeSubscription?.unsubscribe();\n      this._urlChangeListeners = [];\n    }\n    /**\n     * Normalizes the URL path for this location.\n     *\n     * @param includeHash True to include an anchor fragment in the path.\n     *\n     * @returns The normalized URL path.\n     */\n    // TODO: vsavkin. Remove the boolean flag and always include hash once the deprecated router is\n    // removed.\n    path(includeHash = false) {\n      return this.normalize(this._locationStrategy.path(includeHash));\n    }\n    /**\n     * Reports the current state of the location history.\n     * @returns The current value of the `history.state` object.\n     */\n    getState() {\n      return this._locationStrategy.getState();\n    }\n    /**\n     * Normalizes the given path and compares to the current normalized path.\n     *\n     * @param path The given URL path.\n     * @param query Query parameters.\n     *\n     * @returns True if the given URL path is equal to the current normalized path, false\n     * otherwise.\n     */\n    isCurrentPathEqualTo(path, query = '') {\n      return this.path() == this.normalize(path + normalizeQueryParams(query));\n    }\n    /**\n     * Normalizes a URL path by stripping any trailing slashes.\n     *\n     * @param url String representing a URL.\n     *\n     * @returns The normalized URL string.\n     */\n    normalize(url) {\n      return Location.stripTrailingSlash(_stripBasePath(this._basePath, _stripIndexHtml(url)));\n    }\n    /**\n     * Normalizes an external URL path.\n     * If the given URL doesn't begin with a leading slash (`'/'`), adds one\n     * before normalizing. Adds a hash if `HashLocationStrategy` is\n     * in use, or the `APP_BASE_HREF` if the `PathLocationStrategy` is in use.\n     *\n     * @param url String representing a URL.\n     *\n     * @returns  A normalized platform-specific URL.\n     */\n    prepareExternalUrl(url) {\n      if (url && url[0] !== '/') {\n        url = '/' + url;\n      }\n      return this._locationStrategy.prepareExternalUrl(url);\n    }\n    // TODO: rename this method to pushState\n    /**\n     * Changes the browser's URL to a normalized version of a given URL, and pushes a\n     * new item onto the platform's history.\n     *\n     * @param path  URL path to normalize.\n     * @param query Query parameters.\n     * @param state Location history state.\n     *\n     */\n    go(path, query = '', state = null) {\n      this._locationStrategy.pushState(state, '', path, query);\n      this._notifyUrlChangeListeners(this.prepareExternalUrl(path + normalizeQueryParams(query)), state);\n    }\n    /**\n     * Changes the browser's URL to a normalized version of the given URL, and replaces\n     * the top item on the platform's history stack.\n     *\n     * @param path  URL path to normalize.\n     * @param query Query parameters.\n     * @param state Location history state.\n     */\n    replaceState(path, query = '', state = null) {\n      this._locationStrategy.replaceState(state, '', path, query);\n      this._notifyUrlChangeListeners(this.prepareExternalUrl(path + normalizeQueryParams(query)), state);\n    }\n    /**\n     * Navigates forward in the platform's history.\n     */\n    forward() {\n      this._locationStrategy.forward();\n    }\n    /**\n     * Navigates back in the platform's history.\n     */\n    back() {\n      this._locationStrategy.back();\n    }\n    /**\n     * Navigate to a specific page from session history, identified by its relative position to the\n     * current page.\n     *\n     * @param relativePosition  Position of the target page in the history relative to the current\n     *     page.\n     * A negative value moves backwards, a positive value moves forwards, e.g. `location.historyGo(2)`\n     * moves forward two pages and `location.historyGo(-2)` moves back two pages. When we try to go\n     * beyond what's stored in the history session, we stay in the current page. Same behaviour occurs\n     * when `relativePosition` equals 0.\n     * @see https://developer.mozilla.org/en-US/docs/Web/API/History_API#Moving_to_a_specific_point_in_history\n     */\n    historyGo(relativePosition = 0) {\n      this._locationStrategy.historyGo?.(relativePosition);\n    }\n    /**\n     * Registers a URL change listener. Use to catch updates performed by the Angular\n     * framework that are not detectible through \"popstate\" or \"hashchange\" events.\n     *\n     * @param fn The change handler function, which take a URL and a location history state.\n     * @returns A function that, when executed, unregisters a URL change listener.\n     */\n    onUrlChange(fn) {\n      this._urlChangeListeners.push(fn);\n      this._urlChangeSubscription ??= this.subscribe(v => {\n        this._notifyUrlChangeListeners(v.url, v.state);\n      });\n      return () => {\n        const fnIndex = this._urlChangeListeners.indexOf(fn);\n        this._urlChangeListeners.splice(fnIndex, 1);\n        if (this._urlChangeListeners.length === 0) {\n          this._urlChangeSubscription?.unsubscribe();\n          this._urlChangeSubscription = null;\n        }\n      };\n    }\n    /** @internal */\n    _notifyUrlChangeListeners(url = '', state) {\n      this._urlChangeListeners.forEach(fn => fn(url, state));\n    }\n    /**\n     * Subscribes to the platform's `popState` events.\n     *\n     * Note: `Location.go()` does not trigger the `popState` event in the browser. Use\n     * `Location.onUrlChange()` to subscribe to URL changes instead.\n     *\n     * @param value Event that is triggered when the state history changes.\n     * @param exception The exception to throw.\n     *\n     * @see [onpopstate](https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onpopstate)\n     *\n     * @returns Subscribed events.\n     */\n    subscribe(onNext, onThrow, onReturn) {\n      return this._subject.subscribe({\n        next: onNext,\n        error: onThrow,\n        complete: onReturn\n      });\n    }\n    /**\n     * Normalizes URL parameters by prepending with `?` if needed.\n     *\n     * @param  params String of URL parameters.\n     *\n     * @returns The normalized URL parameters string.\n     */\n    static {\n      this.normalizeQueryParams = normalizeQueryParams;\n    }\n    /**\n     * Joins two parts of a URL with a slash if needed.\n     *\n     * @param start  URL string\n     * @param end    URL string\n     *\n     *\n     * @returns The joined URL string.\n     */\n    static {\n      this.joinWithSlash = joinWithSlash;\n    }\n    /**\n     * Removes a trailing slash from a URL string if needed.\n     * Looks for the first occurrence of either `#`, `?`, or the end of the\n     * line as `/` characters and removes the trailing slash if one exists.\n     *\n     * @param url URL string.\n     *\n     * @returns The URL string, modified if needed.\n     */\n    static {\n      this.stripTrailingSlash = stripTrailingSlash;\n    }\n    static {\n      this.ɵfac = function Location_Factory(t) {\n        return new (t || Location)(i0.ɵɵinject(LocationStrategy));\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: Location,\n        factory: () => createLocation(),\n        providedIn: 'root'\n      });\n    }\n  }\n  return Location;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction createLocation() {\n  return new Location(ɵɵinject(LocationStrategy));\n}\nfunction _stripBasePath(basePath, url) {\n  if (!basePath || !url.startsWith(basePath)) {\n    return url;\n  }\n  const strippedUrl = url.substring(basePath.length);\n  if (strippedUrl === '' || ['/', ';', '?', '#'].includes(strippedUrl[0])) {\n    return strippedUrl;\n  }\n  return url;\n}\nfunction _stripIndexHtml(url) {\n  return url.replace(/\\/index.html$/, '');\n}\nfunction _stripOrigin(baseHref) {\n  // DO NOT REFACTOR! Previously, this check looked like this:\n  // `/^(https?:)?\\/\\//.test(baseHref)`, but that resulted in\n  // syntactically incorrect code after Closure Compiler minification.\n  // This was likely caused by a bug in Closure Compiler, but\n  // for now, the check is rewritten to use `new RegExp` instead.\n  const isAbsoluteUrl = new RegExp('^(https?:)?//').test(baseHref);\n  if (isAbsoluteUrl) {\n    const [, pathname] = baseHref.split(/\\/\\/[^\\/]+/);\n    return pathname;\n  }\n  return baseHref;\n}\n\n/** @internal */\nconst CURRENCIES_EN = {\n  \"ADP\": [undefined, undefined, 0],\n  \"AFN\": [undefined, \"؋\", 0],\n  \"ALL\": [undefined, undefined, 0],\n  \"AMD\": [undefined, \"֏\", 2],\n  \"AOA\": [undefined, \"Kz\"],\n  \"ARS\": [undefined, \"$\"],\n  \"AUD\": [\"A$\", \"$\"],\n  \"AZN\": [undefined, \"₼\"],\n  \"BAM\": [undefined, \"KM\"],\n  \"BBD\": [undefined, \"$\"],\n  \"BDT\": [undefined, \"৳\"],\n  \"BHD\": [undefined, undefined, 3],\n  \"BIF\": [undefined, undefined, 0],\n  \"BMD\": [undefined, \"$\"],\n  \"BND\": [undefined, \"$\"],\n  \"BOB\": [undefined, \"Bs\"],\n  \"BRL\": [\"R$\"],\n  \"BSD\": [undefined, \"$\"],\n  \"BWP\": [undefined, \"P\"],\n  \"BYN\": [undefined, undefined, 2],\n  \"BYR\": [undefined, undefined, 0],\n  \"BZD\": [undefined, \"$\"],\n  \"CAD\": [\"CA$\", \"$\", 2],\n  \"CHF\": [undefined, undefined, 2],\n  \"CLF\": [undefined, undefined, 4],\n  \"CLP\": [undefined, \"$\", 0],\n  \"CNY\": [\"CN¥\", \"¥\"],\n  \"COP\": [undefined, \"$\", 2],\n  \"CRC\": [undefined, \"₡\", 2],\n  \"CUC\": [undefined, \"$\"],\n  \"CUP\": [undefined, \"$\"],\n  \"CZK\": [undefined, \"Kč\", 2],\n  \"DJF\": [undefined, undefined, 0],\n  \"DKK\": [undefined, \"kr\", 2],\n  \"DOP\": [undefined, \"$\"],\n  \"EGP\": [undefined, \"E£\"],\n  \"ESP\": [undefined, \"₧\", 0],\n  \"EUR\": [\"€\"],\n  \"FJD\": [undefined, \"$\"],\n  \"FKP\": [undefined, \"£\"],\n  \"GBP\": [\"£\"],\n  \"GEL\": [undefined, \"₾\"],\n  \"GHS\": [undefined, \"GH₵\"],\n  \"GIP\": [undefined, \"£\"],\n  \"GNF\": [undefined, \"FG\", 0],\n  \"GTQ\": [undefined, \"Q\"],\n  \"GYD\": [undefined, \"$\", 2],\n  \"HKD\": [\"HK$\", \"$\"],\n  \"HNL\": [undefined, \"L\"],\n  \"HRK\": [undefined, \"kn\"],\n  \"HUF\": [undefined, \"Ft\", 2],\n  \"IDR\": [undefined, \"Rp\", 2],\n  \"ILS\": [\"₪\"],\n  \"INR\": [\"₹\"],\n  \"IQD\": [undefined, undefined, 0],\n  \"IRR\": [undefined, undefined, 0],\n  \"ISK\": [undefined, \"kr\", 0],\n  \"ITL\": [undefined, undefined, 0],\n  \"JMD\": [undefined, \"$\"],\n  \"JOD\": [undefined, undefined, 3],\n  \"JPY\": [\"¥\", undefined, 0],\n  \"KHR\": [undefined, \"៛\"],\n  \"KMF\": [undefined, \"CF\", 0],\n  \"KPW\": [undefined, \"₩\", 0],\n  \"KRW\": [\"₩\", undefined, 0],\n  \"KWD\": [undefined, undefined, 3],\n  \"KYD\": [undefined, \"$\"],\n  \"KZT\": [undefined, \"₸\"],\n  \"LAK\": [undefined, \"₭\", 0],\n  \"LBP\": [undefined, \"L£\", 0],\n  \"LKR\": [undefined, \"Rs\"],\n  \"LRD\": [undefined, \"$\"],\n  \"LTL\": [undefined, \"Lt\"],\n  \"LUF\": [undefined, undefined, 0],\n  \"LVL\": [undefined, \"Ls\"],\n  \"LYD\": [undefined, undefined, 3],\n  \"MGA\": [undefined, \"Ar\", 0],\n  \"MGF\": [undefined, undefined, 0],\n  \"MMK\": [undefined, \"K\", 0],\n  \"MNT\": [undefined, \"₮\", 2],\n  \"MRO\": [undefined, undefined, 0],\n  \"MUR\": [undefined, \"Rs\", 2],\n  \"MXN\": [\"MX$\", \"$\"],\n  \"MYR\": [undefined, \"RM\"],\n  \"NAD\": [undefined, \"$\"],\n  \"NGN\": [undefined, \"₦\"],\n  \"NIO\": [undefined, \"C$\"],\n  \"NOK\": [undefined, \"kr\", 2],\n  \"NPR\": [undefined, \"Rs\"],\n  \"NZD\": [\"NZ$\", \"$\"],\n  \"OMR\": [undefined, undefined, 3],\n  \"PHP\": [\"₱\"],\n  \"PKR\": [undefined, \"Rs\", 2],\n  \"PLN\": [undefined, \"zł\"],\n  \"PYG\": [undefined, \"₲\", 0],\n  \"RON\": [undefined, \"lei\"],\n  \"RSD\": [undefined, undefined, 0],\n  \"RUB\": [undefined, \"₽\"],\n  \"RWF\": [undefined, \"RF\", 0],\n  \"SBD\": [undefined, \"$\"],\n  \"SEK\": [undefined, \"kr\", 2],\n  \"SGD\": [undefined, \"$\"],\n  \"SHP\": [undefined, \"£\"],\n  \"SLE\": [undefined, undefined, 2],\n  \"SLL\": [undefined, undefined, 0],\n  \"SOS\": [undefined, undefined, 0],\n  \"SRD\": [undefined, \"$\"],\n  \"SSP\": [undefined, \"£\"],\n  \"STD\": [undefined, undefined, 0],\n  \"STN\": [undefined, \"Db\"],\n  \"SYP\": [undefined, \"£\", 0],\n  \"THB\": [undefined, \"฿\"],\n  \"TMM\": [undefined, undefined, 0],\n  \"TND\": [undefined, undefined, 3],\n  \"TOP\": [undefined, \"T$\"],\n  \"TRL\": [undefined, undefined, 0],\n  \"TRY\": [undefined, \"₺\"],\n  \"TTD\": [undefined, \"$\"],\n  \"TWD\": [\"NT$\", \"$\", 2],\n  \"TZS\": [undefined, undefined, 2],\n  \"UAH\": [undefined, \"₴\"],\n  \"UGX\": [undefined, undefined, 0],\n  \"USD\": [\"$\"],\n  \"UYI\": [undefined, undefined, 0],\n  \"UYU\": [undefined, \"$\"],\n  \"UYW\": [undefined, undefined, 4],\n  \"UZS\": [undefined, undefined, 2],\n  \"VEF\": [undefined, \"Bs\", 2],\n  \"VND\": [\"₫\", undefined, 0],\n  \"VUV\": [undefined, undefined, 0],\n  \"XAF\": [\"FCFA\", undefined, 0],\n  \"XCD\": [\"EC$\", \"$\"],\n  \"XOF\": [\"F CFA\", undefined, 0],\n  \"XPF\": [\"CFPF\", undefined, 0],\n  \"XXX\": [\"¤\"],\n  \"YER\": [undefined, undefined, 0],\n  \"ZAR\": [undefined, \"R\"],\n  \"ZMK\": [undefined, undefined, 0],\n  \"ZMW\": [undefined, \"ZK\"],\n  \"ZWD\": [undefined, undefined, 0]\n};\n\n/**\n * Format styles that can be used to represent numbers.\n * @see {@link getLocaleNumberFormat}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nvar NumberFormatStyle = /*#__PURE__*/function (NumberFormatStyle) {\n  NumberFormatStyle[NumberFormatStyle[\"Decimal\"] = 0] = \"Decimal\";\n  NumberFormatStyle[NumberFormatStyle[\"Percent\"] = 1] = \"Percent\";\n  NumberFormatStyle[NumberFormatStyle[\"Currency\"] = 2] = \"Currency\";\n  NumberFormatStyle[NumberFormatStyle[\"Scientific\"] = 3] = \"Scientific\";\n  return NumberFormatStyle;\n}(NumberFormatStyle || {});\n/**\n * Plurality cases used for translating plurals to different languages.\n *\n * @see {@link NgPlural}\n * @see {@link NgPluralCase}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nvar Plural = /*#__PURE__*/function (Plural) {\n  Plural[Plural[\"Zero\"] = 0] = \"Zero\";\n  Plural[Plural[\"One\"] = 1] = \"One\";\n  Plural[Plural[\"Two\"] = 2] = \"Two\";\n  Plural[Plural[\"Few\"] = 3] = \"Few\";\n  Plural[Plural[\"Many\"] = 4] = \"Many\";\n  Plural[Plural[\"Other\"] = 5] = \"Other\";\n  return Plural;\n}(Plural || {});\n/**\n * Context-dependant translation forms for strings.\n * Typically the standalone version is for the nominative form of the word,\n * and the format version is used for the genitive case.\n * @see [CLDR website](http://cldr.unicode.org/translation/date-time-1/date-time#TOC-Standalone-vs.-Format-Styles)\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nvar FormStyle = /*#__PURE__*/function (FormStyle) {\n  FormStyle[FormStyle[\"Format\"] = 0] = \"Format\";\n  FormStyle[FormStyle[\"Standalone\"] = 1] = \"Standalone\";\n  return FormStyle;\n}(FormStyle || {});\n/**\n * String widths available for translations.\n * The specific character widths are locale-specific.\n * Examples are given for the word \"Sunday\" in English.\n *\n * @publicApi\n */\nvar TranslationWidth = /*#__PURE__*/function (TranslationWidth) {\n  /** 1 character for `en-US`. For example: 'S' */\n  TranslationWidth[TranslationWidth[\"Narrow\"] = 0] = \"Narrow\";\n  /** 3 characters for `en-US`. For example: 'Sun' */\n  TranslationWidth[TranslationWidth[\"Abbreviated\"] = 1] = \"Abbreviated\";\n  /** Full length for `en-US`. For example: \"Sunday\" */\n  TranslationWidth[TranslationWidth[\"Wide\"] = 2] = \"Wide\";\n  /** 2 characters for `en-US`, For example: \"Su\" */\n  TranslationWidth[TranslationWidth[\"Short\"] = 3] = \"Short\";\n  return TranslationWidth;\n}(TranslationWidth || {});\n/**\n * String widths available for date-time formats.\n * The specific character widths are locale-specific.\n * Examples are given for `en-US`.\n *\n * @see {@link getLocaleDateFormat}\n * @see {@link getLocaleTimeFormat}\n * @see {@link getLocaleDateTimeFormat}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n * @publicApi\n */\nvar FormatWidth = /*#__PURE__*/function (FormatWidth) {\n  /**\n   * For `en-US`, `'M/d/yy, h:mm a'`\n   * (Example: `6/15/15, 9:03 AM`)\n   */\n  FormatWidth[FormatWidth[\"Short\"] = 0] = \"Short\";\n  /**\n   * For `en-US`, `'MMM d, y, h:mm:ss a'`\n   * (Example: `Jun 15, 2015, 9:03:01 AM`)\n   */\n  FormatWidth[FormatWidth[\"Medium\"] = 1] = \"Medium\";\n  /**\n   * For `en-US`, `'MMMM d, y, h:mm:ss a z'`\n   * (Example: `June 15, 2015 at 9:03:01 AM GMT+1`)\n   */\n  FormatWidth[FormatWidth[\"Long\"] = 2] = \"Long\";\n  /**\n   * For `en-US`, `'EEEE, MMMM d, y, h:mm:ss a zzzz'`\n   * (Example: `Monday, June 15, 2015 at 9:03:01 AM GMT+01:00`)\n   */\n  FormatWidth[FormatWidth[\"Full\"] = 3] = \"Full\";\n  return FormatWidth;\n}(FormatWidth || {});\n// This needs to be an object literal, rather than an enum, because TypeScript 5.4+\n// doesn't allow numeric keys and we have `Infinity` and `NaN`.\n/**\n * Symbols that can be used to replace placeholders in number patterns.\n * Examples are based on `en-US` values.\n *\n * @see {@link getLocaleNumberSymbol}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n * @object-literal-as-enum\n */\nconst NumberSymbol = {\n  /**\n   * Decimal separator.\n   * For `en-US`, the dot character.\n   * Example: 2,345`.`67\n   */\n  Decimal: 0,\n  /**\n   * Grouping separator, typically for thousands.\n   * For `en-US`, the comma character.\n   * Example: 2`,`345.67\n   */\n  Group: 1,\n  /**\n   * List-item separator.\n   * Example: \"one, two, and three\"\n   */\n  List: 2,\n  /**\n   * Sign for percentage (out of 100).\n   * Example: 23.4%\n   */\n  PercentSign: 3,\n  /**\n   * Sign for positive numbers.\n   * Example: +23\n   */\n  PlusSign: 4,\n  /**\n   * Sign for negative numbers.\n   * Example: -23\n   */\n  MinusSign: 5,\n  /**\n   * Computer notation for exponential value (n times a power of 10).\n   * Example: 1.2E3\n   */\n  Exponential: 6,\n  /**\n   * Human-readable format of exponential.\n   * Example: 1.2x103\n   */\n  SuperscriptingExponent: 7,\n  /**\n   * Sign for permille (out of 1000).\n   * Example: 23.4‰\n   */\n  PerMille: 8,\n  /**\n   * Infinity, can be used with plus and minus.\n   * Example: ∞, +∞, -∞\n   */\n  Infinity: 9,\n  /**\n   * Not a number.\n   * Example: NaN\n   */\n  NaN: 10,\n  /**\n   * Symbol used between time units.\n   * Example: 10:52\n   */\n  TimeSeparator: 11,\n  /**\n   * Decimal separator for currency values (fallback to `Decimal`).\n   * Example: $2,345.67\n   */\n  CurrencyDecimal: 12,\n  /**\n   * Group separator for currency values (fallback to `Group`).\n   * Example: $2,345.67\n   */\n  CurrencyGroup: 13\n};\n/**\n * The value for each day of the week, based on the `en-US` locale\n *\n * @publicApi\n */\nvar WeekDay = /*#__PURE__*/function (WeekDay) {\n  WeekDay[WeekDay[\"Sunday\"] = 0] = \"Sunday\";\n  WeekDay[WeekDay[\"Monday\"] = 1] = \"Monday\";\n  WeekDay[WeekDay[\"Tuesday\"] = 2] = \"Tuesday\";\n  WeekDay[WeekDay[\"Wednesday\"] = 3] = \"Wednesday\";\n  WeekDay[WeekDay[\"Thursday\"] = 4] = \"Thursday\";\n  WeekDay[WeekDay[\"Friday\"] = 5] = \"Friday\";\n  WeekDay[WeekDay[\"Saturday\"] = 6] = \"Saturday\";\n  return WeekDay;\n}(WeekDay || {});\n/**\n * Retrieves the locale ID from the currently loaded locale.\n * The loaded locale could be, for example, a global one rather than a regional one.\n * @param locale A locale code, such as `fr-FR`.\n * @returns The locale code. For example, `fr`.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleId(locale) {\n  return ɵfindLocaleData(locale)[ɵLocaleDataIndex.LocaleId];\n}\n/**\n * Retrieves day period strings for the given locale.\n *\n * @param locale A locale code for the locale format rules to use.\n * @param formStyle The required grammatical form.\n * @param width The required character width.\n * @returns An array of localized period strings. For example, `[AM, PM]` for `en-US`.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleDayPeriods(locale, formStyle, width) {\n  const data = ɵfindLocaleData(locale);\n  const amPmData = [data[ɵLocaleDataIndex.DayPeriodsFormat], data[ɵLocaleDataIndex.DayPeriodsStandalone]];\n  const amPm = getLastDefinedValue(amPmData, formStyle);\n  return getLastDefinedValue(amPm, width);\n}\n/**\n * Retrieves days of the week for the given locale, using the Gregorian calendar.\n *\n * @param locale A locale code for the locale format rules to use.\n * @param formStyle The required grammatical form.\n * @param width The required character width.\n * @returns An array of localized name strings.\n * For example,`[Sunday, Monday, ... Saturday]` for `en-US`.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleDayNames(locale, formStyle, width) {\n  const data = ɵfindLocaleData(locale);\n  const daysData = [data[ɵLocaleDataIndex.DaysFormat], data[ɵLocaleDataIndex.DaysStandalone]];\n  const days = getLastDefinedValue(daysData, formStyle);\n  return getLastDefinedValue(days, width);\n}\n/**\n * Retrieves months of the year for the given locale, using the Gregorian calendar.\n *\n * @param locale A locale code for the locale format rules to use.\n * @param formStyle The required grammatical form.\n * @param width The required character width.\n * @returns An array of localized name strings.\n * For example,  `[January, February, ...]` for `en-US`.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleMonthNames(locale, formStyle, width) {\n  const data = ɵfindLocaleData(locale);\n  const monthsData = [data[ɵLocaleDataIndex.MonthsFormat], data[ɵLocaleDataIndex.MonthsStandalone]];\n  const months = getLastDefinedValue(monthsData, formStyle);\n  return getLastDefinedValue(months, width);\n}\n/**\n * Retrieves Gregorian-calendar eras for the given locale.\n * @param locale A locale code for the locale format rules to use.\n * @param width The required character width.\n\n * @returns An array of localized era strings.\n * For example, `[AD, BC]` for `en-US`.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleEraNames(locale, width) {\n  const data = ɵfindLocaleData(locale);\n  const erasData = data[ɵLocaleDataIndex.Eras];\n  return getLastDefinedValue(erasData, width);\n}\n/**\n * Retrieves the first day of the week for the given locale.\n *\n * @param locale A locale code for the locale format rules to use.\n * @returns A day index number, using the 0-based week-day index for `en-US`\n * (Sunday = 0, Monday = 1, ...).\n * For example, for `fr-FR`, returns 1 to indicate that the first day is Monday.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleFirstDayOfWeek(locale) {\n  const data = ɵfindLocaleData(locale);\n  return data[ɵLocaleDataIndex.FirstDayOfWeek];\n}\n/**\n * Range of week days that are considered the week-end for the given locale.\n *\n * @param locale A locale code for the locale format rules to use.\n * @returns The range of day values, `[startDay, endDay]`.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleWeekEndRange(locale) {\n  const data = ɵfindLocaleData(locale);\n  return data[ɵLocaleDataIndex.WeekendRange];\n}\n/**\n * Retrieves a localized date-value formatting string.\n *\n * @param locale A locale code for the locale format rules to use.\n * @param width The format type.\n * @returns The localized formatting string.\n * @see {@link FormatWidth}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleDateFormat(locale, width) {\n  const data = ɵfindLocaleData(locale);\n  return getLastDefinedValue(data[ɵLocaleDataIndex.DateFormat], width);\n}\n/**\n * Retrieves a localized time-value formatting string.\n *\n * @param locale A locale code for the locale format rules to use.\n * @param width The format type.\n * @returns The localized formatting string.\n * @see {@link FormatWidth}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n\n * @publicApi\n */\nfunction getLocaleTimeFormat(locale, width) {\n  const data = ɵfindLocaleData(locale);\n  return getLastDefinedValue(data[ɵLocaleDataIndex.TimeFormat], width);\n}\n/**\n * Retrieves a localized date-time formatting string.\n *\n * @param locale A locale code for the locale format rules to use.\n * @param width The format type.\n * @returns The localized formatting string.\n * @see {@link FormatWidth}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleDateTimeFormat(locale, width) {\n  const data = ɵfindLocaleData(locale);\n  const dateTimeFormatData = data[ɵLocaleDataIndex.DateTimeFormat];\n  return getLastDefinedValue(dateTimeFormatData, width);\n}\n/**\n * Retrieves a localized number symbol that can be used to replace placeholders in number formats.\n * @param locale The locale code.\n * @param symbol The symbol to localize. Must be one of `NumberSymbol`.\n * @returns The character for the localized symbol.\n * @see {@link NumberSymbol}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleNumberSymbol(locale, symbol) {\n  const data = ɵfindLocaleData(locale);\n  const res = data[ɵLocaleDataIndex.NumberSymbols][symbol];\n  if (typeof res === 'undefined') {\n    if (symbol === NumberSymbol.CurrencyDecimal) {\n      return data[ɵLocaleDataIndex.NumberSymbols][NumberSymbol.Decimal];\n    } else if (symbol === NumberSymbol.CurrencyGroup) {\n      return data[ɵLocaleDataIndex.NumberSymbols][NumberSymbol.Group];\n    }\n  }\n  return res;\n}\n/**\n * Retrieves a number format for a given locale.\n *\n * Numbers are formatted using patterns, like `#,###.00`. For example, the pattern `#,###.00`\n * when used to format the number 12345.678 could result in \"12'345,678\". That would happen if the\n * grouping separator for your language is an apostrophe, and the decimal separator is a comma.\n *\n * <b>Important:</b> The characters `.` `,` `0` `#` (and others below) are special placeholders\n * that stand for the decimal separator, and so on, and are NOT real characters.\n * You must NOT \"translate\" the placeholders. For example, don't change `.` to `,` even though in\n * your language the decimal point is written with a comma. The symbols should be replaced by the\n * local equivalents, using the appropriate `NumberSymbol` for your language.\n *\n * Here are the special characters used in number patterns:\n *\n * | Symbol | Meaning |\n * |--------|---------|\n * | . | Replaced automatically by the character used for the decimal point. |\n * | , | Replaced by the \"grouping\" (thousands) separator. |\n * | 0 | Replaced by a digit (or zero if there aren't enough digits). |\n * | # | Replaced by a digit (or nothing if there aren't enough). |\n * | ¤ | Replaced by a currency symbol, such as $ or USD. |\n * | % | Marks a percent format. The % symbol may change position, but must be retained. |\n * | E | Marks a scientific format. The E symbol may change position, but must be retained. |\n * | ' | Special characters used as literal characters are quoted with ASCII single quotes. |\n *\n * @param locale A locale code for the locale format rules to use.\n * @param type The type of numeric value to be formatted (such as `Decimal` or `Currency`.)\n * @returns The localized format string.\n * @see {@link NumberFormatStyle}\n * @see [CLDR website](http://cldr.unicode.org/translation/number-patterns)\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleNumberFormat(locale, type) {\n  const data = ɵfindLocaleData(locale);\n  return data[ɵLocaleDataIndex.NumberFormats][type];\n}\n/**\n * Retrieves the symbol used to represent the currency for the main country\n * corresponding to a given locale. For example, '$' for `en-US`.\n *\n * @param locale A locale code for the locale format rules to use.\n * @returns The localized symbol character,\n * or `null` if the main country cannot be determined.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleCurrencySymbol(locale) {\n  const data = ɵfindLocaleData(locale);\n  return data[ɵLocaleDataIndex.CurrencySymbol] || null;\n}\n/**\n * Retrieves the name of the currency for the main country corresponding\n * to a given locale. For example, 'US Dollar' for `en-US`.\n * @param locale A locale code for the locale format rules to use.\n * @returns The currency name,\n * or `null` if the main country cannot be determined.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleCurrencyName(locale) {\n  const data = ɵfindLocaleData(locale);\n  return data[ɵLocaleDataIndex.CurrencyName] || null;\n}\n/**\n * Retrieves the default currency code for the given locale.\n *\n * The default is defined as the first currency which is still in use.\n *\n * @param locale The code of the locale whose currency code we want.\n * @returns The code of the default currency for the given locale.\n *\n * @publicApi\n */\nfunction getLocaleCurrencyCode(locale) {\n  return ɵgetLocaleCurrencyCode(locale);\n}\n/**\n * Retrieves the currency values for a given locale.\n * @param locale A locale code for the locale format rules to use.\n * @returns The currency values.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n */\nfunction getLocaleCurrencies(locale) {\n  const data = ɵfindLocaleData(locale);\n  return data[ɵLocaleDataIndex.Currencies];\n}\n/**\n * @alias core/ɵgetLocalePluralCase\n * @publicApi\n */\nconst getLocalePluralCase = ɵgetLocalePluralCase;\nfunction checkFullData(data) {\n  if (!data[ɵLocaleDataIndex.ExtraData]) {\n    throw new Error(`Missing extra locale data for the locale \"${data[ɵLocaleDataIndex.LocaleId]}\". Use \"registerLocaleData\" to load new data. See the \"I18n guide\" on angular.io to know more.`);\n  }\n}\n/**\n * Retrieves locale-specific rules used to determine which day period to use\n * when more than one period is defined for a locale.\n *\n * There is a rule for each defined day period. The\n * first rule is applied to the first day period and so on.\n * Fall back to AM/PM when no rules are available.\n *\n * A rule can specify a period as time range, or as a single time value.\n *\n * This functionality is only available when you have loaded the full locale data.\n * See the [\"I18n guide\"](guide/i18n-common-format-data-locale).\n *\n * @param locale A locale code for the locale format rules to use.\n * @returns The rules for the locale, a single time value or array of *from-time, to-time*,\n * or null if no periods are available.\n *\n * @see {@link getLocaleExtraDayPeriods}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleExtraDayPeriodRules(locale) {\n  const data = ɵfindLocaleData(locale);\n  checkFullData(data);\n  const rules = data[ɵLocaleDataIndex.ExtraData][2 /* ɵExtraLocaleDataIndex.ExtraDayPeriodsRules */] || [];\n  return rules.map(rule => {\n    if (typeof rule === 'string') {\n      return extractTime(rule);\n    }\n    return [extractTime(rule[0]), extractTime(rule[1])];\n  });\n}\n/**\n * Retrieves locale-specific day periods, which indicate roughly how a day is broken up\n * in different languages.\n * For example, for `en-US`, periods are morning, noon, afternoon, evening, and midnight.\n *\n * This functionality is only available when you have loaded the full locale data.\n * See the [\"I18n guide\"](guide/i18n-common-format-data-locale).\n *\n * @param locale A locale code for the locale format rules to use.\n * @param formStyle The required grammatical form.\n * @param width The required character width.\n * @returns The translated day-period strings.\n * @see {@link getLocaleExtraDayPeriodRules}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleExtraDayPeriods(locale, formStyle, width) {\n  const data = ɵfindLocaleData(locale);\n  checkFullData(data);\n  const dayPeriodsData = [data[ɵLocaleDataIndex.ExtraData][0 /* ɵExtraLocaleDataIndex.ExtraDayPeriodFormats */], data[ɵLocaleDataIndex.ExtraData][1 /* ɵExtraLocaleDataIndex.ExtraDayPeriodStandalone */]];\n  const dayPeriods = getLastDefinedValue(dayPeriodsData, formStyle) || [];\n  return getLastDefinedValue(dayPeriods, width) || [];\n}\n/**\n * Retrieves the writing direction of a specified locale\n * @param locale A locale code for the locale format rules to use.\n * @publicApi\n * @returns 'rtl' or 'ltr'\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n */\nfunction getLocaleDirection(locale) {\n  const data = ɵfindLocaleData(locale);\n  return data[ɵLocaleDataIndex.Directionality];\n}\n/**\n * Retrieves the first value that is defined in an array, going backwards from an index position.\n *\n * To avoid repeating the same data (as when the \"format\" and \"standalone\" forms are the same)\n * add the first value to the locale data arrays, and add other values only if they are different.\n *\n * @param data The data array to retrieve from.\n * @param index A 0-based index into the array to start from.\n * @returns The value immediately before the given index position.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLastDefinedValue(data, index) {\n  for (let i = index; i > -1; i--) {\n    if (typeof data[i] !== 'undefined') {\n      return data[i];\n    }\n  }\n  throw new Error('Locale data API: locale data undefined');\n}\n/**\n * Extracts the hours and minutes from a string like \"15:45\"\n */\nfunction extractTime(time) {\n  const [h, m] = time.split(':');\n  return {\n    hours: +h,\n    minutes: +m\n  };\n}\n/**\n * Retrieves the currency symbol for a given currency code.\n *\n * For example, for the default `en-US` locale, the code `USD` can\n * be represented by the narrow symbol `$` or the wide symbol `US$`.\n *\n * @param code The currency code.\n * @param format The format, `wide` or `narrow`.\n * @param locale A locale code for the locale format rules to use.\n *\n * @returns The symbol, or the currency code if no symbol is available.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getCurrencySymbol(code, format, locale = 'en') {\n  const currency = getLocaleCurrencies(locale)[code] || CURRENCIES_EN[code] || [];\n  const symbolNarrow = currency[1 /* ɵCurrencyIndex.SymbolNarrow */];\n  if (format === 'narrow' && typeof symbolNarrow === 'string') {\n    return symbolNarrow;\n  }\n  return currency[0 /* ɵCurrencyIndex.Symbol */] || code;\n}\n// Most currencies have cents, that's why the default is 2\nconst DEFAULT_NB_OF_CURRENCY_DIGITS = 2;\n/**\n * Reports the number of decimal digits for a given currency.\n * The value depends upon the presence of cents in that particular currency.\n *\n * @param code The currency code.\n * @returns The number of decimal digits, typically 0 or 2.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getNumberOfCurrencyDigits(code) {\n  let digits;\n  const currency = CURRENCIES_EN[code];\n  if (currency) {\n    digits = currency[2 /* ɵCurrencyIndex.NbOfDigits */];\n  }\n  return typeof digits === 'number' ? digits : DEFAULT_NB_OF_CURRENCY_DIGITS;\n}\nconst ISO8601_DATE_REGEX = /^(\\d{4,})-?(\\d\\d)-?(\\d\\d)(?:T(\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:\\.(\\d+))?)?)?(Z|([+-])(\\d\\d):?(\\d\\d))?)?$/;\n//    1        2       3         4          5          6          7          8  9     10      11\nconst NAMED_FORMATS = {};\nconst DATE_FORMATS_SPLIT = /((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\\s\\S]*)/;\nvar ZoneWidth = /*#__PURE__*/function (ZoneWidth) {\n  ZoneWidth[ZoneWidth[\"Short\"] = 0] = \"Short\";\n  ZoneWidth[ZoneWidth[\"ShortGMT\"] = 1] = \"ShortGMT\";\n  ZoneWidth[ZoneWidth[\"Long\"] = 2] = \"Long\";\n  ZoneWidth[ZoneWidth[\"Extended\"] = 3] = \"Extended\";\n  return ZoneWidth;\n}(ZoneWidth || {});\nvar DateType = /*#__PURE__*/function (DateType) {\n  DateType[DateType[\"FullYear\"] = 0] = \"FullYear\";\n  DateType[DateType[\"Month\"] = 1] = \"Month\";\n  DateType[DateType[\"Date\"] = 2] = \"Date\";\n  DateType[DateType[\"Hours\"] = 3] = \"Hours\";\n  DateType[DateType[\"Minutes\"] = 4] = \"Minutes\";\n  DateType[DateType[\"Seconds\"] = 5] = \"Seconds\";\n  DateType[DateType[\"FractionalSeconds\"] = 6] = \"FractionalSeconds\";\n  DateType[DateType[\"Day\"] = 7] = \"Day\";\n  return DateType;\n}(DateType || {});\nvar TranslationType = /*#__PURE__*/function (TranslationType) {\n  TranslationType[TranslationType[\"DayPeriods\"] = 0] = \"DayPeriods\";\n  TranslationType[TranslationType[\"Days\"] = 1] = \"Days\";\n  TranslationType[TranslationType[\"Months\"] = 2] = \"Months\";\n  TranslationType[TranslationType[\"Eras\"] = 3] = \"Eras\";\n  return TranslationType;\n}(TranslationType || {});\n/**\n * @ngModule CommonModule\n * @description\n *\n * Formats a date according to locale rules.\n *\n * @param value The date to format, as a Date, or a number (milliseconds since UTC epoch)\n * or an [ISO date-time string](https://www.w3.org/TR/NOTE-datetime).\n * @param format The date-time components to include. See `DatePipe` for details.\n * @param locale A locale code for the locale format rules to use.\n * @param timezone The time zone. A time zone offset from GMT (such as `'+0430'`),\n * or a standard UTC/GMT or continental US time zone abbreviation.\n * If not specified, uses host system settings.\n *\n * @returns The formatted date string.\n *\n * @see {@link DatePipe}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction formatDate(value, format, locale, timezone) {\n  let date = toDate(value);\n  const namedFormat = getNamedFormat(locale, format);\n  format = namedFormat || format;\n  let parts = [];\n  let match;\n  while (format) {\n    match = DATE_FORMATS_SPLIT.exec(format);\n    if (match) {\n      parts = parts.concat(match.slice(1));\n      const part = parts.pop();\n      if (!part) {\n        break;\n      }\n      format = part;\n    } else {\n      parts.push(format);\n      break;\n    }\n  }\n  let dateTimezoneOffset = date.getTimezoneOffset();\n  if (timezone) {\n    dateTimezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);\n    date = convertTimezoneToLocal(date, timezone, true);\n  }\n  let text = '';\n  parts.forEach(value => {\n    const dateFormatter = getDateFormatter(value);\n    text += dateFormatter ? dateFormatter(date, locale, dateTimezoneOffset) : value === \"''\" ? \"'\" : value.replace(/(^'|'$)/g, '').replace(/''/g, \"'\");\n  });\n  return text;\n}\n/**\n * Create a new Date object with the given date value, and the time set to midnight.\n *\n * We cannot use `new Date(year, month, date)` because it maps years between 0 and 99 to 1900-1999.\n * See: https://github.com/angular/angular/issues/40377\n *\n * Note that this function returns a Date object whose time is midnight in the current locale's\n * timezone. In the future we might want to change this to be midnight in UTC, but this would be a\n * considerable breaking change.\n */\nfunction createDate(year, month, date) {\n  // The `newDate` is set to midnight (UTC) on January 1st 1970.\n  // - In PST this will be December 31st 1969 at 4pm.\n  // - In GMT this will be January 1st 1970 at 1am.\n  // Note that they even have different years, dates and months!\n  const newDate = new Date(0);\n  // `setFullYear()` allows years like 0001 to be set correctly. This function does not\n  // change the internal time of the date.\n  // Consider calling `setFullYear(2019, 8, 20)` (September 20, 2019).\n  // - In PST this will now be September 20, 2019 at 4pm\n  // - In GMT this will now be September 20, 2019 at 1am\n  newDate.setFullYear(year, month, date);\n  // We want the final date to be at local midnight, so we reset the time.\n  // - In PST this will now be September 20, 2019 at 12am\n  // - In GMT this will now be September 20, 2019 at 12am\n  newDate.setHours(0, 0, 0);\n  return newDate;\n}\nfunction getNamedFormat(locale, format) {\n  const localeId = getLocaleId(locale);\n  NAMED_FORMATS[localeId] ??= {};\n  if (NAMED_FORMATS[localeId][format]) {\n    return NAMED_FORMATS[localeId][format];\n  }\n  let formatValue = '';\n  switch (format) {\n    case 'shortDate':\n      formatValue = getLocaleDateFormat(locale, FormatWidth.Short);\n      break;\n    case 'mediumDate':\n      formatValue = getLocaleDateFormat(locale, FormatWidth.Medium);\n      break;\n    case 'longDate':\n      formatValue = getLocaleDateFormat(locale, FormatWidth.Long);\n      break;\n    case 'fullDate':\n      formatValue = getLocaleDateFormat(locale, FormatWidth.Full);\n      break;\n    case 'shortTime':\n      formatValue = getLocaleTimeFormat(locale, FormatWidth.Short);\n      break;\n    case 'mediumTime':\n      formatValue = getLocaleTimeFormat(locale, FormatWidth.Medium);\n      break;\n    case 'longTime':\n      formatValue = getLocaleTimeFormat(locale, FormatWidth.Long);\n      break;\n    case 'fullTime':\n      formatValue = getLocaleTimeFormat(locale, FormatWidth.Full);\n      break;\n    case 'short':\n      const shortTime = getNamedFormat(locale, 'shortTime');\n      const shortDate = getNamedFormat(locale, 'shortDate');\n      formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Short), [shortTime, shortDate]);\n      break;\n    case 'medium':\n      const mediumTime = getNamedFormat(locale, 'mediumTime');\n      const mediumDate = getNamedFormat(locale, 'mediumDate');\n      formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Medium), [mediumTime, mediumDate]);\n      break;\n    case 'long':\n      const longTime = getNamedFormat(locale, 'longTime');\n      const longDate = getNamedFormat(locale, 'longDate');\n      formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Long), [longTime, longDate]);\n      break;\n    case 'full':\n      const fullTime = getNamedFormat(locale, 'fullTime');\n      const fullDate = getNamedFormat(locale, 'fullDate');\n      formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Full), [fullTime, fullDate]);\n      break;\n  }\n  if (formatValue) {\n    NAMED_FORMATS[localeId][format] = formatValue;\n  }\n  return formatValue;\n}\nfunction formatDateTime(str, opt_values) {\n  if (opt_values) {\n    str = str.replace(/\\{([^}]+)}/g, function (match, key) {\n      return opt_values != null && key in opt_values ? opt_values[key] : match;\n    });\n  }\n  return str;\n}\nfunction padNumber(num, digits, minusSign = '-', trim, negWrap) {\n  let neg = '';\n  if (num < 0 || negWrap && num <= 0) {\n    if (negWrap) {\n      num = -num + 1;\n    } else {\n      num = -num;\n      neg = minusSign;\n    }\n  }\n  let strNum = String(num);\n  while (strNum.length < digits) {\n    strNum = '0' + strNum;\n  }\n  if (trim) {\n    strNum = strNum.slice(strNum.length - digits);\n  }\n  return neg + strNum;\n}\nfunction formatFractionalSeconds(milliseconds, digits) {\n  const strMs = padNumber(milliseconds, 3);\n  return strMs.substring(0, digits);\n}\n/**\n * Returns a date formatter that transforms a date into its locale digit representation\n */\nfunction dateGetter(name, size, offset = 0, trim = false, negWrap = false) {\n  return function (date, locale) {\n    let part = getDatePart(name, date);\n    if (offset > 0 || part > -offset) {\n      part += offset;\n    }\n    if (name === DateType.Hours) {\n      if (part === 0 && offset === -12) {\n        part = 12;\n      }\n    } else if (name === DateType.FractionalSeconds) {\n      return formatFractionalSeconds(part, size);\n    }\n    const localeMinus = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);\n    return padNumber(part, size, localeMinus, trim, negWrap);\n  };\n}\nfunction getDatePart(part, date) {\n  switch (part) {\n    case DateType.FullYear:\n      return date.getFullYear();\n    case DateType.Month:\n      return date.getMonth();\n    case DateType.Date:\n      return date.getDate();\n    case DateType.Hours:\n      return date.getHours();\n    case DateType.Minutes:\n      return date.getMinutes();\n    case DateType.Seconds:\n      return date.getSeconds();\n    case DateType.FractionalSeconds:\n      return date.getMilliseconds();\n    case DateType.Day:\n      return date.getDay();\n    default:\n      throw new Error(`Unknown DateType value \"${part}\".`);\n  }\n}\n/**\n * Returns a date formatter that transforms a date into its locale string representation\n */\nfunction dateStrGetter(name, width, form = FormStyle.Format, extended = false) {\n  return function (date, locale) {\n    return getDateTranslation(date, locale, name, width, form, extended);\n  };\n}\n/**\n * Returns the locale translation of a date for a given form, type and width\n */\nfunction getDateTranslation(date, locale, name, width, form, extended) {\n  switch (name) {\n    case TranslationType.Months:\n      return getLocaleMonthNames(locale, form, width)[date.getMonth()];\n    case TranslationType.Days:\n      return getLocaleDayNames(locale, form, width)[date.getDay()];\n    case TranslationType.DayPeriods:\n      const currentHours = date.getHours();\n      const currentMinutes = date.getMinutes();\n      if (extended) {\n        const rules = getLocaleExtraDayPeriodRules(locale);\n        const dayPeriods = getLocaleExtraDayPeriods(locale, form, width);\n        const index = rules.findIndex(rule => {\n          if (Array.isArray(rule)) {\n            // morning, afternoon, evening, night\n            const [from, to] = rule;\n            const afterFrom = currentHours >= from.hours && currentMinutes >= from.minutes;\n            const beforeTo = currentHours < to.hours || currentHours === to.hours && currentMinutes < to.minutes;\n            // We must account for normal rules that span a period during the day (e.g. 6am-9am)\n            // where `from` is less (earlier) than `to`. But also rules that span midnight (e.g.\n            // 10pm - 5am) where `from` is greater (later!) than `to`.\n            //\n            // In the first case the current time must be BOTH after `from` AND before `to`\n            // (e.g. 8am is after 6am AND before 10am).\n            //\n            // In the second case the current time must be EITHER after `from` OR before `to`\n            // (e.g. 4am is before 5am but not after 10pm; and 11pm is not before 5am but it is\n            // after 10pm).\n            if (from.hours < to.hours) {\n              if (afterFrom && beforeTo) {\n                return true;\n              }\n            } else if (afterFrom || beforeTo) {\n              return true;\n            }\n          } else {\n            // noon or midnight\n            if (rule.hours === currentHours && rule.minutes === currentMinutes) {\n              return true;\n            }\n          }\n          return false;\n        });\n        if (index !== -1) {\n          return dayPeriods[index];\n        }\n      }\n      // if no rules for the day periods, we use am/pm by default\n      return getLocaleDayPeriods(locale, form, width)[currentHours < 12 ? 0 : 1];\n    case TranslationType.Eras:\n      return getLocaleEraNames(locale, width)[date.getFullYear() <= 0 ? 0 : 1];\n    default:\n      // This default case is not needed by TypeScript compiler, as the switch is exhaustive.\n      // However Closure Compiler does not understand that and reports an error in typed mode.\n      // The `throw new Error` below works around the problem, and the unexpected: never variable\n      // makes sure tsc still checks this code is unreachable.\n      const unexpected = name;\n      throw new Error(`unexpected translation type ${unexpected}`);\n  }\n}\n/**\n * Returns a date formatter that transforms a date and an offset into a timezone with ISO8601 or\n * GMT format depending on the width (eg: short = +0430, short:GMT = GMT+4, long = GMT+04:30,\n * extended = +04:30)\n */\nfunction timeZoneGetter(width) {\n  return function (date, locale, offset) {\n    const zone = -1 * offset;\n    const minusSign = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);\n    const hours = zone > 0 ? Math.floor(zone / 60) : Math.ceil(zone / 60);\n    switch (width) {\n      case ZoneWidth.Short:\n        return (zone >= 0 ? '+' : '') + padNumber(hours, 2, minusSign) + padNumber(Math.abs(zone % 60), 2, minusSign);\n      case ZoneWidth.ShortGMT:\n        return 'GMT' + (zone >= 0 ? '+' : '') + padNumber(hours, 1, minusSign);\n      case ZoneWidth.Long:\n        return 'GMT' + (zone >= 0 ? '+' : '') + padNumber(hours, 2, minusSign) + ':' + padNumber(Math.abs(zone % 60), 2, minusSign);\n      case ZoneWidth.Extended:\n        if (offset === 0) {\n          return 'Z';\n        } else {\n          return (zone >= 0 ? '+' : '') + padNumber(hours, 2, minusSign) + ':' + padNumber(Math.abs(zone % 60), 2, minusSign);\n        }\n      default:\n        throw new Error(`Unknown zone width \"${width}\"`);\n    }\n  };\n}\nconst JANUARY = 0;\nconst THURSDAY = 4;\nfunction getFirstThursdayOfYear(year) {\n  const firstDayOfYear = createDate(year, JANUARY, 1).getDay();\n  return createDate(year, 0, 1 + (firstDayOfYear <= THURSDAY ? THURSDAY : THURSDAY + 7) - firstDayOfYear);\n}\n/**\n *  ISO Week starts on day 1 (Monday) and ends with day 0 (Sunday)\n */\nfunction getThursdayThisIsoWeek(datetime) {\n  // getDay returns 0-6 range with sunday as 0.\n  const currentDay = datetime.getDay();\n  // On a Sunday, read the previous Thursday since ISO weeks start on Monday.\n  const deltaToThursday = currentDay === 0 ? -3 : THURSDAY - currentDay;\n  return createDate(datetime.getFullYear(), datetime.getMonth(), datetime.getDate() + deltaToThursday);\n}\nfunction weekGetter(size, monthBased = false) {\n  return function (date, locale) {\n    let result;\n    if (monthBased) {\n      const nbDaysBefore1stDayOfMonth = new Date(date.getFullYear(), date.getMonth(), 1).getDay() - 1;\n      const today = date.getDate();\n      result = 1 + Math.floor((today + nbDaysBefore1stDayOfMonth) / 7);\n    } else {\n      const thisThurs = getThursdayThisIsoWeek(date);\n      // Some days of a year are part of next year according to ISO 8601.\n      // Compute the firstThurs from the year of this week's Thursday\n      const firstThurs = getFirstThursdayOfYear(thisThurs.getFullYear());\n      const diff = thisThurs.getTime() - firstThurs.getTime();\n      result = 1 + Math.round(diff / 6.048e8); // 6.048e8 ms per week\n    }\n    return padNumber(result, size, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));\n  };\n}\n/**\n * Returns a date formatter that provides the week-numbering year for the input date.\n */\nfunction weekNumberingYearGetter(size, trim = false) {\n  return function (date, locale) {\n    const thisThurs = getThursdayThisIsoWeek(date);\n    const weekNumberingYear = thisThurs.getFullYear();\n    return padNumber(weekNumberingYear, size, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign), trim);\n  };\n}\nconst DATE_FORMATS = {};\n// Based on CLDR formats:\n// See complete list: http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n// See also explanations: http://cldr.unicode.org/translation/date-time\n// TODO(ocombe): support all missing cldr formats: U, Q, D, F, e, j, J, C, A, v, V, X, x\nfunction getDateFormatter(format) {\n  if (DATE_FORMATS[format]) {\n    return DATE_FORMATS[format];\n  }\n  let formatter;\n  switch (format) {\n    // Era name (AD/BC)\n    case 'G':\n    case 'GG':\n    case 'GGG':\n      formatter = dateStrGetter(TranslationType.Eras, TranslationWidth.Abbreviated);\n      break;\n    case 'GGGG':\n      formatter = dateStrGetter(TranslationType.Eras, TranslationWidth.Wide);\n      break;\n    case 'GGGGG':\n      formatter = dateStrGetter(TranslationType.Eras, TranslationWidth.Narrow);\n      break;\n    // 1 digit representation of the year, e.g. (AD 1 => 1, AD 199 => 199)\n    case 'y':\n      formatter = dateGetter(DateType.FullYear, 1, 0, false, true);\n      break;\n    // 2 digit representation of the year, padded (00-99). (e.g. AD 2001 => 01, AD 2010 => 10)\n    case 'yy':\n      formatter = dateGetter(DateType.FullYear, 2, 0, true, true);\n      break;\n    // 3 digit representation of the year, padded (000-999). (e.g. AD 2001 => 01, AD 2010 => 10)\n    case 'yyy':\n      formatter = dateGetter(DateType.FullYear, 3, 0, false, true);\n      break;\n    // 4 digit representation of the year (e.g. AD 1 => 0001, AD 2010 => 2010)\n    case 'yyyy':\n      formatter = dateGetter(DateType.FullYear, 4, 0, false, true);\n      break;\n    // 1 digit representation of the week-numbering year, e.g. (AD 1 => 1, AD 199 => 199)\n    case 'Y':\n      formatter = weekNumberingYearGetter(1);\n      break;\n    // 2 digit representation of the week-numbering year, padded (00-99). (e.g. AD 2001 => 01, AD\n    // 2010 => 10)\n    case 'YY':\n      formatter = weekNumberingYearGetter(2, true);\n      break;\n    // 3 digit representation of the week-numbering year, padded (000-999). (e.g. AD 1 => 001, AD\n    // 2010 => 2010)\n    case 'YYY':\n      formatter = weekNumberingYearGetter(3);\n      break;\n    // 4 digit representation of the week-numbering year (e.g. AD 1 => 0001, AD 2010 => 2010)\n    case 'YYYY':\n      formatter = weekNumberingYearGetter(4);\n      break;\n    // Month of the year (1-12), numeric\n    case 'M':\n    case 'L':\n      formatter = dateGetter(DateType.Month, 1, 1);\n      break;\n    case 'MM':\n    case 'LL':\n      formatter = dateGetter(DateType.Month, 2, 1);\n      break;\n    // Month of the year (January, ...), string, format\n    case 'MMM':\n      formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Abbreviated);\n      break;\n    case 'MMMM':\n      formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Wide);\n      break;\n    case 'MMMMM':\n      formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Narrow);\n      break;\n    // Month of the year (January, ...), string, standalone\n    case 'LLL':\n      formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Abbreviated, FormStyle.Standalone);\n      break;\n    case 'LLLL':\n      formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Wide, FormStyle.Standalone);\n      break;\n    case 'LLLLL':\n      formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Narrow, FormStyle.Standalone);\n      break;\n    // Week of the year (1, ... 52)\n    case 'w':\n      formatter = weekGetter(1);\n      break;\n    case 'ww':\n      formatter = weekGetter(2);\n      break;\n    // Week of the month (1, ...)\n    case 'W':\n      formatter = weekGetter(1, true);\n      break;\n    // Day of the month (1-31)\n    case 'd':\n      formatter = dateGetter(DateType.Date, 1);\n      break;\n    case 'dd':\n      formatter = dateGetter(DateType.Date, 2);\n      break;\n    // Day of the Week StandAlone (1, 1, Mon, Monday, M, Mo)\n    case 'c':\n    case 'cc':\n      formatter = dateGetter(DateType.Day, 1);\n      break;\n    case 'ccc':\n      formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Abbreviated, FormStyle.Standalone);\n      break;\n    case 'cccc':\n      formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Wide, FormStyle.Standalone);\n      break;\n    case 'ccccc':\n      formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Narrow, FormStyle.Standalone);\n      break;\n    case 'cccccc':\n      formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Short, FormStyle.Standalone);\n      break;\n    // Day of the Week\n    case 'E':\n    case 'EE':\n    case 'EEE':\n      formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Abbreviated);\n      break;\n    case 'EEEE':\n      formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Wide);\n      break;\n    case 'EEEEE':\n      formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Narrow);\n      break;\n    case 'EEEEEE':\n      formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Short);\n      break;\n    // Generic period of the day (am-pm)\n    case 'a':\n    case 'aa':\n    case 'aaa':\n      formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Abbreviated);\n      break;\n    case 'aaaa':\n      formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Wide);\n      break;\n    case 'aaaaa':\n      formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Narrow);\n      break;\n    // Extended period of the day (midnight, at night, ...), standalone\n    case 'b':\n    case 'bb':\n    case 'bbb':\n      formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Abbreviated, FormStyle.Standalone, true);\n      break;\n    case 'bbbb':\n      formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Wide, FormStyle.Standalone, true);\n      break;\n    case 'bbbbb':\n      formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Narrow, FormStyle.Standalone, true);\n      break;\n    // Extended period of the day (midnight, night, ...), standalone\n    case 'B':\n    case 'BB':\n    case 'BBB':\n      formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Abbreviated, FormStyle.Format, true);\n      break;\n    case 'BBBB':\n      formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Wide, FormStyle.Format, true);\n      break;\n    case 'BBBBB':\n      formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Narrow, FormStyle.Format, true);\n      break;\n    // Hour in AM/PM, (1-12)\n    case 'h':\n      formatter = dateGetter(DateType.Hours, 1, -12);\n      break;\n    case 'hh':\n      formatter = dateGetter(DateType.Hours, 2, -12);\n      break;\n    // Hour of the day (0-23)\n    case 'H':\n      formatter = dateGetter(DateType.Hours, 1);\n      break;\n    // Hour in day, padded (00-23)\n    case 'HH':\n      formatter = dateGetter(DateType.Hours, 2);\n      break;\n    // Minute of the hour (0-59)\n    case 'm':\n      formatter = dateGetter(DateType.Minutes, 1);\n      break;\n    case 'mm':\n      formatter = dateGetter(DateType.Minutes, 2);\n      break;\n    // Second of the minute (0-59)\n    case 's':\n      formatter = dateGetter(DateType.Seconds, 1);\n      break;\n    case 'ss':\n      formatter = dateGetter(DateType.Seconds, 2);\n      break;\n    // Fractional second\n    case 'S':\n      formatter = dateGetter(DateType.FractionalSeconds, 1);\n      break;\n    case 'SS':\n      formatter = dateGetter(DateType.FractionalSeconds, 2);\n      break;\n    case 'SSS':\n      formatter = dateGetter(DateType.FractionalSeconds, 3);\n      break;\n    // Timezone ISO8601 short format (-0430)\n    case 'Z':\n    case 'ZZ':\n    case 'ZZZ':\n      formatter = timeZoneGetter(ZoneWidth.Short);\n      break;\n    // Timezone ISO8601 extended format (-04:30)\n    case 'ZZZZZ':\n      formatter = timeZoneGetter(ZoneWidth.Extended);\n      break;\n    // Timezone GMT short format (GMT+4)\n    case 'O':\n    case 'OO':\n    case 'OOO':\n    // Should be location, but fallback to format O instead because we don't have the data yet\n    case 'z':\n    case 'zz':\n    case 'zzz':\n      formatter = timeZoneGetter(ZoneWidth.ShortGMT);\n      break;\n    // Timezone GMT long format (GMT+0430)\n    case 'OOOO':\n    case 'ZZZZ':\n    // Should be location, but fallback to format O instead because we don't have the data yet\n    case 'zzzz':\n      formatter = timeZoneGetter(ZoneWidth.Long);\n      break;\n    default:\n      return null;\n  }\n  DATE_FORMATS[format] = formatter;\n  return formatter;\n}\nfunction timezoneToOffset(timezone, fallback) {\n  // Support: IE 11 only, Edge 13-15+\n  // IE/Edge do not \"understand\" colon (`:`) in timezone\n  timezone = timezone.replace(/:/g, '');\n  const requestedTimezoneOffset = Date.parse('Jan 01, 1970 00:00:00 ' + timezone) / 60000;\n  return isNaN(requestedTimezoneOffset) ? fallback : requestedTimezoneOffset;\n}\nfunction addDateMinutes(date, minutes) {\n  date = new Date(date.getTime());\n  date.setMinutes(date.getMinutes() + minutes);\n  return date;\n}\nfunction convertTimezoneToLocal(date, timezone, reverse) {\n  const reverseValue = reverse ? -1 : 1;\n  const dateTimezoneOffset = date.getTimezoneOffset();\n  const timezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);\n  return addDateMinutes(date, reverseValue * (timezoneOffset - dateTimezoneOffset));\n}\n/**\n * Converts a value to date.\n *\n * Supported input formats:\n * - `Date`\n * - number: timestamp\n * - string: numeric (e.g. \"1234\"), ISO and date strings in a format supported by\n *   [Date.parse()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse).\n *   Note: ISO strings without time return a date without timeoffset.\n *\n * Throws if unable to convert to a date.\n */\nfunction toDate(value) {\n  if (isDate(value)) {\n    return value;\n  }\n  if (typeof value === 'number' && !isNaN(value)) {\n    return new Date(value);\n  }\n  if (typeof value === 'string') {\n    value = value.trim();\n    if (/^(\\d{4}(-\\d{1,2}(-\\d{1,2})?)?)$/.test(value)) {\n      /* For ISO Strings without time the day, month and year must be extracted from the ISO String\n      before Date creation to avoid time offset and errors in the new Date.\n      If we only replace '-' with ',' in the ISO String (\"2015,01,01\"), and try to create a new\n      date, some browsers (e.g. IE 9) will throw an invalid Date error.\n      If we leave the '-' (\"2015-01-01\") and try to create a new Date(\"2015-01-01\") the timeoffset\n      is applied.\n      Note: ISO months are 0 for January, 1 for February, ... */\n      const [y, m = 1, d = 1] = value.split('-').map(val => +val);\n      return createDate(y, m - 1, d);\n    }\n    const parsedNb = parseFloat(value);\n    // any string that only contains numbers, like \"1234\" but not like \"1234hello\"\n    if (!isNaN(value - parsedNb)) {\n      return new Date(parsedNb);\n    }\n    let match;\n    if (match = value.match(ISO8601_DATE_REGEX)) {\n      return isoStringToDate(match);\n    }\n  }\n  const date = new Date(value);\n  if (!isDate(date)) {\n    throw new Error(`Unable to convert \"${value}\" into a date`);\n  }\n  return date;\n}\n/**\n * Converts a date in ISO8601 to a Date.\n * Used instead of `Date.parse` because of browser discrepancies.\n */\nfunction isoStringToDate(match) {\n  const date = new Date(0);\n  let tzHour = 0;\n  let tzMin = 0;\n  // match[8] means that the string contains \"Z\" (UTC) or a timezone like \"+01:00\" or \"+0100\"\n  const dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear;\n  const timeSetter = match[8] ? date.setUTCHours : date.setHours;\n  // if there is a timezone defined like \"+01:00\" or \"+0100\"\n  if (match[9]) {\n    tzHour = Number(match[9] + match[10]);\n    tzMin = Number(match[9] + match[11]);\n  }\n  dateSetter.call(date, Number(match[1]), Number(match[2]) - 1, Number(match[3]));\n  const h = Number(match[4] || 0) - tzHour;\n  const m = Number(match[5] || 0) - tzMin;\n  const s = Number(match[6] || 0);\n  // The ECMAScript specification (https://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.11)\n  // defines that `DateTime` milliseconds should always be rounded down, so that `999.9ms`\n  // becomes `999ms`.\n  const ms = Math.floor(parseFloat('0.' + (match[7] || 0)) * 1000);\n  timeSetter.call(date, h, m, s, ms);\n  return date;\n}\nfunction isDate(value) {\n  return value instanceof Date && !isNaN(value.valueOf());\n}\nconst NUMBER_FORMAT_REGEXP = /^(\\d+)?\\.((\\d+)(-(\\d+))?)?$/;\nconst MAX_DIGITS = 22;\nconst DECIMAL_SEP = '.';\nconst ZERO_CHAR = '0';\nconst PATTERN_SEP = ';';\nconst GROUP_SEP = ',';\nconst DIGIT_CHAR = '#';\nconst CURRENCY_CHAR = '¤';\nconst PERCENT_CHAR = '%';\n/**\n * Transforms a number to a locale string based on a style and a format.\n */\nfunction formatNumberToLocaleString(value, pattern, locale, groupSymbol, decimalSymbol, digitsInfo, isPercent = false) {\n  let formattedText = '';\n  let isZero = false;\n  if (!isFinite(value)) {\n    formattedText = getLocaleNumberSymbol(locale, NumberSymbol.Infinity);\n  } else {\n    let parsedNumber = parseNumber(value);\n    if (isPercent) {\n      parsedNumber = toPercent(parsedNumber);\n    }\n    let minInt = pattern.minInt;\n    let minFraction = pattern.minFrac;\n    let maxFraction = pattern.maxFrac;\n    if (digitsInfo) {\n      const parts = digitsInfo.match(NUMBER_FORMAT_REGEXP);\n      if (parts === null) {\n        throw new Error(`${digitsInfo} is not a valid digit info`);\n      }\n      const minIntPart = parts[1];\n      const minFractionPart = parts[3];\n      const maxFractionPart = parts[5];\n      if (minIntPart != null) {\n        minInt = parseIntAutoRadix(minIntPart);\n      }\n      if (minFractionPart != null) {\n        minFraction = parseIntAutoRadix(minFractionPart);\n      }\n      if (maxFractionPart != null) {\n        maxFraction = parseIntAutoRadix(maxFractionPart);\n      } else if (minFractionPart != null && minFraction > maxFraction) {\n        maxFraction = minFraction;\n      }\n    }\n    roundNumber(parsedNumber, minFraction, maxFraction);\n    let digits = parsedNumber.digits;\n    let integerLen = parsedNumber.integerLen;\n    const exponent = parsedNumber.exponent;\n    let decimals = [];\n    isZero = digits.every(d => !d);\n    // pad zeros for small numbers\n    for (; integerLen < minInt; integerLen++) {\n      digits.unshift(0);\n    }\n    // pad zeros for small numbers\n    for (; integerLen < 0; integerLen++) {\n      digits.unshift(0);\n    }\n    // extract decimals digits\n    if (integerLen > 0) {\n      decimals = digits.splice(integerLen, digits.length);\n    } else {\n      decimals = digits;\n      digits = [0];\n    }\n    // format the integer digits with grouping separators\n    const groups = [];\n    if (digits.length >= pattern.lgSize) {\n      groups.unshift(digits.splice(-pattern.lgSize, digits.length).join(''));\n    }\n    while (digits.length > pattern.gSize) {\n      groups.unshift(digits.splice(-pattern.gSize, digits.length).join(''));\n    }\n    if (digits.length) {\n      groups.unshift(digits.join(''));\n    }\n    formattedText = groups.join(getLocaleNumberSymbol(locale, groupSymbol));\n    // append the decimal digits\n    if (decimals.length) {\n      formattedText += getLocaleNumberSymbol(locale, decimalSymbol) + decimals.join('');\n    }\n    if (exponent) {\n      formattedText += getLocaleNumberSymbol(locale, NumberSymbol.Exponential) + '+' + exponent;\n    }\n  }\n  if (value < 0 && !isZero) {\n    formattedText = pattern.negPre + formattedText + pattern.negSuf;\n  } else {\n    formattedText = pattern.posPre + formattedText + pattern.posSuf;\n  }\n  return formattedText;\n}\n/**\n * @ngModule CommonModule\n * @description\n *\n * Formats a number as currency using locale rules.\n *\n * @param value The number to format.\n * @param locale A locale code for the locale format rules to use.\n * @param currency A string containing the currency symbol or its name,\n * such as \"$\" or \"Canadian Dollar\". Used in output string, but does not affect the operation\n * of the function.\n * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217)\n * currency code, such as `USD` for the US dollar and `EUR` for the euro.\n * Used to determine the number of digits in the decimal part.\n * @param digitsInfo Decimal representation options, specified by a string in the following format:\n * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.\n *\n * @returns The formatted currency value.\n *\n * @see {@link formatNumber}\n * @see {@link DecimalPipe}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction formatCurrency(value, locale, currency, currencyCode, digitsInfo) {\n  const format = getLocaleNumberFormat(locale, NumberFormatStyle.Currency);\n  const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));\n  pattern.minFrac = getNumberOfCurrencyDigits(currencyCode);\n  pattern.maxFrac = pattern.minFrac;\n  const res = formatNumberToLocaleString(value, pattern, locale, NumberSymbol.CurrencyGroup, NumberSymbol.CurrencyDecimal, digitsInfo);\n  return res.replace(CURRENCY_CHAR, currency)\n  // if we have 2 time the currency character, the second one is ignored\n  .replace(CURRENCY_CHAR, '')\n  // If there is a spacing between currency character and the value and\n  // the currency character is suppressed by passing an empty string, the\n  // spacing character would remain as part of the string. Then we\n  // should remove it.\n  .trim();\n}\n/**\n * @ngModule CommonModule\n * @description\n *\n * Formats a number as a percentage according to locale rules.\n *\n * @param value The number to format.\n * @param locale A locale code for the locale format rules to use.\n * @param digitsInfo Decimal representation options, specified by a string in the following format:\n * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.\n *\n * @returns The formatted percentage value.\n *\n * @see {@link formatNumber}\n * @see {@link DecimalPipe}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n * @publicApi\n *\n */\nfunction formatPercent(value, locale, digitsInfo) {\n  const format = getLocaleNumberFormat(locale, NumberFormatStyle.Percent);\n  const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));\n  const res = formatNumberToLocaleString(value, pattern, locale, NumberSymbol.Group, NumberSymbol.Decimal, digitsInfo, true);\n  return res.replace(new RegExp(PERCENT_CHAR, 'g'), getLocaleNumberSymbol(locale, NumberSymbol.PercentSign));\n}\n/**\n * @ngModule CommonModule\n * @description\n *\n * Formats a number as text, with group sizing, separator, and other\n * parameters based on the locale.\n *\n * @param value The number to format.\n * @param locale A locale code for the locale format rules to use.\n * @param digitsInfo Decimal representation options, specified by a string in the following format:\n * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.\n *\n * @returns The formatted text string.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction formatNumber(value, locale, digitsInfo) {\n  const format = getLocaleNumberFormat(locale, NumberFormatStyle.Decimal);\n  const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));\n  return formatNumberToLocaleString(value, pattern, locale, NumberSymbol.Group, NumberSymbol.Decimal, digitsInfo);\n}\nfunction parseNumberFormat(format, minusSign = '-') {\n  const p = {\n    minInt: 1,\n    minFrac: 0,\n    maxFrac: 0,\n    posPre: '',\n    posSuf: '',\n    negPre: '',\n    negSuf: '',\n    gSize: 0,\n    lgSize: 0\n  };\n  const patternParts = format.split(PATTERN_SEP);\n  const positive = patternParts[0];\n  const negative = patternParts[1];\n  const positiveParts = positive.indexOf(DECIMAL_SEP) !== -1 ? positive.split(DECIMAL_SEP) : [positive.substring(0, positive.lastIndexOf(ZERO_CHAR) + 1), positive.substring(positive.lastIndexOf(ZERO_CHAR) + 1)],\n    integer = positiveParts[0],\n    fraction = positiveParts[1] || '';\n  p.posPre = integer.substring(0, integer.indexOf(DIGIT_CHAR));\n  for (let i = 0; i < fraction.length; i++) {\n    const ch = fraction.charAt(i);\n    if (ch === ZERO_CHAR) {\n      p.minFrac = p.maxFrac = i + 1;\n    } else if (ch === DIGIT_CHAR) {\n      p.maxFrac = i + 1;\n    } else {\n      p.posSuf += ch;\n    }\n  }\n  const groups = integer.split(GROUP_SEP);\n  p.gSize = groups[1] ? groups[1].length : 0;\n  p.lgSize = groups[2] || groups[1] ? (groups[2] || groups[1]).length : 0;\n  if (negative) {\n    const trunkLen = positive.length - p.posPre.length - p.posSuf.length,\n      pos = negative.indexOf(DIGIT_CHAR);\n    p.negPre = negative.substring(0, pos).replace(/'/g, '');\n    p.negSuf = negative.slice(pos + trunkLen).replace(/'/g, '');\n  } else {\n    p.negPre = minusSign + p.posPre;\n    p.negSuf = p.posSuf;\n  }\n  return p;\n}\n// Transforms a parsed number into a percentage by multiplying it by 100\nfunction toPercent(parsedNumber) {\n  // if the number is 0, don't do anything\n  if (parsedNumber.digits[0] === 0) {\n    return parsedNumber;\n  }\n  // Getting the current number of decimals\n  const fractionLen = parsedNumber.digits.length - parsedNumber.integerLen;\n  if (parsedNumber.exponent) {\n    parsedNumber.exponent += 2;\n  } else {\n    if (fractionLen === 0) {\n      parsedNumber.digits.push(0, 0);\n    } else if (fractionLen === 1) {\n      parsedNumber.digits.push(0);\n    }\n    parsedNumber.integerLen += 2;\n  }\n  return parsedNumber;\n}\n/**\n * Parses a number.\n * Significant bits of this parse algorithm came from https://github.com/MikeMcl/big.js/\n */\nfunction parseNumber(num) {\n  let numStr = Math.abs(num) + '';\n  let exponent = 0,\n    digits,\n    integerLen;\n  let i, j, zeros;\n  // Decimal point?\n  if ((integerLen = numStr.indexOf(DECIMAL_SEP)) > -1) {\n    numStr = numStr.replace(DECIMAL_SEP, '');\n  }\n  // Exponential form?\n  if ((i = numStr.search(/e/i)) > 0) {\n    // Work out the exponent.\n    if (integerLen < 0) integerLen = i;\n    integerLen += +numStr.slice(i + 1);\n    numStr = numStr.substring(0, i);\n  } else if (integerLen < 0) {\n    // There was no decimal point or exponent so it is an integer.\n    integerLen = numStr.length;\n  }\n  // Count the number of leading zeros.\n  for (i = 0; numStr.charAt(i) === ZERO_CHAR; i++) {\n    /* empty */\n  }\n  if (i === (zeros = numStr.length)) {\n    // The digits are all zero.\n    digits = [0];\n    integerLen = 1;\n  } else {\n    // Count the number of trailing zeros\n    zeros--;\n    while (numStr.charAt(zeros) === ZERO_CHAR) zeros--;\n    // Trailing zeros are insignificant so ignore them\n    integerLen -= i;\n    digits = [];\n    // Convert string to array of digits without leading/trailing zeros.\n    for (j = 0; i <= zeros; i++, j++) {\n      digits[j] = Number(numStr.charAt(i));\n    }\n  }\n  // If the number overflows the maximum allowed digits then use an exponent.\n  if (integerLen > MAX_DIGITS) {\n    digits = digits.splice(0, MAX_DIGITS - 1);\n    exponent = integerLen - 1;\n    integerLen = 1;\n  }\n  return {\n    digits,\n    exponent,\n    integerLen\n  };\n}\n/**\n * Round the parsed number to the specified number of decimal places\n * This function changes the parsedNumber in-place\n */\nfunction roundNumber(parsedNumber, minFrac, maxFrac) {\n  if (minFrac > maxFrac) {\n    throw new Error(`The minimum number of digits after fraction (${minFrac}) is higher than the maximum (${maxFrac}).`);\n  }\n  let digits = parsedNumber.digits;\n  let fractionLen = digits.length - parsedNumber.integerLen;\n  const fractionSize = Math.min(Math.max(minFrac, fractionLen), maxFrac);\n  // The index of the digit to where rounding is to occur\n  let roundAt = fractionSize + parsedNumber.integerLen;\n  let digit = digits[roundAt];\n  if (roundAt > 0) {\n    // Drop fractional digits beyond `roundAt`\n    digits.splice(Math.max(parsedNumber.integerLen, roundAt));\n    // Set non-fractional digits beyond `roundAt` to 0\n    for (let j = roundAt; j < digits.length; j++) {\n      digits[j] = 0;\n    }\n  } else {\n    // We rounded to zero so reset the parsedNumber\n    fractionLen = Math.max(0, fractionLen);\n    parsedNumber.integerLen = 1;\n    digits.length = Math.max(1, roundAt = fractionSize + 1);\n    digits[0] = 0;\n    for (let i = 1; i < roundAt; i++) digits[i] = 0;\n  }\n  if (digit >= 5) {\n    if (roundAt - 1 < 0) {\n      for (let k = 0; k > roundAt; k--) {\n        digits.unshift(0);\n        parsedNumber.integerLen++;\n      }\n      digits.unshift(1);\n      parsedNumber.integerLen++;\n    } else {\n      digits[roundAt - 1]++;\n    }\n  }\n  // Pad out with zeros to get the required fraction length\n  for (; fractionLen < Math.max(0, fractionSize); fractionLen++) digits.push(0);\n  let dropTrailingZeros = fractionSize !== 0;\n  // Minimal length = nb of decimals required + current nb of integers\n  // Any number besides that is optional and can be removed if it's a trailing 0\n  const minLen = minFrac + parsedNumber.integerLen;\n  // Do any carrying, e.g. a digit was rounded up to 10\n  const carry = digits.reduceRight(function (carry, d, i, digits) {\n    d = d + carry;\n    digits[i] = d < 10 ? d : d - 10; // d % 10\n    if (dropTrailingZeros) {\n      // Do not keep meaningless fractional trailing zeros (e.g. 15.52000 --> 15.52)\n      if (digits[i] === 0 && i >= minLen) {\n        digits.pop();\n      } else {\n        dropTrailingZeros = false;\n      }\n    }\n    return d >= 10 ? 1 : 0; // Math.floor(d / 10);\n  }, 0);\n  if (carry) {\n    digits.unshift(carry);\n    parsedNumber.integerLen++;\n  }\n}\nfunction parseIntAutoRadix(text) {\n  const result = parseInt(text);\n  if (isNaN(result)) {\n    throw new Error('Invalid integer literal when parsing ' + text);\n  }\n  return result;\n}\n\n/**\n * @publicApi\n */\nlet NgLocalization = /*#__PURE__*/(() => {\n  class NgLocalization {\n    static {\n      this.ɵfac = function NgLocalization_Factory(t) {\n        return new (t || NgLocalization)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: NgLocalization,\n        factory: function NgLocalization_Factory(t) {\n          let r = null;\n          if (t) {\n            r = new t();\n          } else {\n            r = (locale => new NgLocaleLocalization(locale))(i0.ɵɵinject(LOCALE_ID));\n          }\n          return r;\n        },\n        providedIn: 'root'\n      });\n    }\n  }\n  return NgLocalization;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Returns the plural category for a given value.\n * - \"=value\" when the case exists,\n * - the plural category otherwise\n */\nfunction getPluralCategory(value, cases, ngLocalization, locale) {\n  let key = `=${value}`;\n  if (cases.indexOf(key) > -1) {\n    return key;\n  }\n  key = ngLocalization.getPluralCategory(value, locale);\n  if (cases.indexOf(key) > -1) {\n    return key;\n  }\n  if (cases.indexOf('other') > -1) {\n    return 'other';\n  }\n  throw new Error(`No plural message found for value \"${value}\"`);\n}\n/**\n * Returns the plural case based on the locale\n *\n * @publicApi\n */\nlet NgLocaleLocalization = /*#__PURE__*/(() => {\n  class NgLocaleLocalization extends NgLocalization {\n    constructor(locale) {\n      super();\n      this.locale = locale;\n    }\n    getPluralCategory(value, locale) {\n      const plural = getLocalePluralCase(locale || this.locale)(value);\n      switch (plural) {\n        case Plural.Zero:\n          return 'zero';\n        case Plural.One:\n          return 'one';\n        case Plural.Two:\n          return 'two';\n        case Plural.Few:\n          return 'few';\n        case Plural.Many:\n          return 'many';\n        default:\n          return 'other';\n      }\n    }\n    static {\n      this.ɵfac = function NgLocaleLocalization_Factory(t) {\n        return new (t || NgLocaleLocalization)(i0.ɵɵinject(LOCALE_ID));\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: NgLocaleLocalization,\n        factory: NgLocaleLocalization.ɵfac\n      });\n    }\n  }\n  return NgLocaleLocalization;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Register global data to be used internally by Angular. See the\n * [\"I18n guide\"](guide/i18n-common-format-data-locale) to know how to import additional locale\n * data.\n *\n * The signature registerLocaleData(data: any, extraData?: any) is deprecated since v5.1\n *\n * @publicApi\n */\nfunction registerLocaleData(data, localeId, extraData) {\n  return ɵregisterLocaleData(data, localeId, extraData);\n}\nfunction parseCookieValue(cookieStr, name) {\n  name = encodeURIComponent(name);\n  for (const cookie of cookieStr.split(';')) {\n    const eqIndex = cookie.indexOf('=');\n    const [cookieName, cookieValue] = eqIndex == -1 ? [cookie, ''] : [cookie.slice(0, eqIndex), cookie.slice(eqIndex + 1)];\n    if (cookieName.trim() === name) {\n      return decodeURIComponent(cookieValue);\n    }\n  }\n  return null;\n}\nconst WS_REGEXP = /\\s+/;\nconst EMPTY_ARRAY = [];\n/**\n * @ngModule CommonModule\n *\n * @usageNotes\n * ```\n *     <some-element [ngClass]=\"'first second'\">...</some-element>\n *\n *     <some-element [ngClass]=\"['first', 'second']\">...</some-element>\n *\n *     <some-element [ngClass]=\"{'first': true, 'second': true, 'third': false}\">...</some-element>\n *\n *     <some-element [ngClass]=\"stringExp|arrayExp|objExp\">...</some-element>\n *\n *     <some-element [ngClass]=\"{'class1 class2 class3' : true}\">...</some-element>\n * ```\n *\n * @description\n *\n * Adds and removes CSS classes on an HTML element.\n *\n * The CSS classes are updated as follows, depending on the type of the expression evaluation:\n * - `string` - the CSS classes listed in the string (space delimited) are added,\n * - `Array` - the CSS classes declared as Array elements are added,\n * - `Object` - keys are CSS classes that get added when the expression given in the value\n *              evaluates to a truthy value, otherwise they are removed.\n *\n * @publicApi\n */\nlet NgClass = /*#__PURE__*/(() => {\n  class NgClass {\n    constructor(_ngEl, _renderer) {\n      this._ngEl = _ngEl;\n      this._renderer = _renderer;\n      this.initialClasses = EMPTY_ARRAY;\n      this.stateMap = new Map();\n    }\n    set klass(value) {\n      this.initialClasses = value != null ? value.trim().split(WS_REGEXP) : EMPTY_ARRAY;\n    }\n    set ngClass(value) {\n      this.rawClass = typeof value === 'string' ? value.trim().split(WS_REGEXP) : value;\n    }\n    /*\n    The NgClass directive uses the custom change detection algorithm for its inputs. The custom\n    algorithm is necessary since inputs are represented as complex object or arrays that need to be\n    deeply-compared.\n       This algorithm is perf-sensitive since NgClass is used very frequently and its poor performance\n    might negatively impact runtime performance of the entire change detection cycle. The design of\n    this algorithm is making sure that:\n    - there is no unnecessary DOM manipulation (CSS classes are added / removed from the DOM only when\n    needed), even if references to bound objects change;\n    - there is no memory allocation if nothing changes (even relatively modest memory allocation\n    during the change detection cycle can result in GC pauses for some of the CD cycles).\n       The algorithm works by iterating over the set of bound classes, staring with [class] binding and\n    then going over [ngClass] binding. For each CSS class name:\n    - check if it was seen before (this information is tracked in the state map) and if its value\n    changed;\n    - mark it as \"touched\" - names that are not marked are not present in the latest set of binding\n    and we can remove such class name from the internal data structures;\n       After iteration over all the CSS class names we've got data structure with all the information\n    necessary to synchronize changes to the DOM - it is enough to iterate over the state map, flush\n    changes to the DOM and reset internal data structures so those are ready for the next change\n    detection cycle.\n     */\n    ngDoCheck() {\n      // classes from the [class] binding\n      for (const klass of this.initialClasses) {\n        this._updateState(klass, true);\n      }\n      // classes from the [ngClass] binding\n      const rawClass = this.rawClass;\n      if (Array.isArray(rawClass) || rawClass instanceof Set) {\n        for (const klass of rawClass) {\n          this._updateState(klass, true);\n        }\n      } else if (rawClass != null) {\n        for (const klass of Object.keys(rawClass)) {\n          this._updateState(klass, Boolean(rawClass[klass]));\n        }\n      }\n      this._applyStateDiff();\n    }\n    _updateState(klass, nextEnabled) {\n      const state = this.stateMap.get(klass);\n      if (state !== undefined) {\n        if (state.enabled !== nextEnabled) {\n          state.changed = true;\n          state.enabled = nextEnabled;\n        }\n        state.touched = true;\n      } else {\n        this.stateMap.set(klass, {\n          enabled: nextEnabled,\n          changed: true,\n          touched: true\n        });\n      }\n    }\n    _applyStateDiff() {\n      for (const stateEntry of this.stateMap) {\n        const klass = stateEntry[0];\n        const state = stateEntry[1];\n        if (state.changed) {\n          this._toggleClass(klass, state.enabled);\n          state.changed = false;\n        } else if (!state.touched) {\n          // A class that was previously active got removed from the new collection of classes -\n          // remove from the DOM as well.\n          if (state.enabled) {\n            this._toggleClass(klass, false);\n          }\n          this.stateMap.delete(klass);\n        }\n        state.touched = false;\n      }\n    }\n    _toggleClass(klass, enabled) {\n      if (ngDevMode) {\n        if (typeof klass !== 'string') {\n          throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${ɵstringify(klass)}`);\n        }\n      }\n      klass = klass.trim();\n      if (klass.length > 0) {\n        klass.split(WS_REGEXP).forEach(klass => {\n          if (enabled) {\n            this._renderer.addClass(this._ngEl.nativeElement, klass);\n          } else {\n            this._renderer.removeClass(this._ngEl.nativeElement, klass);\n          }\n        });\n      }\n    }\n    static {\n      this.ɵfac = function NgClass_Factory(t) {\n        return new (t || NgClass)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: NgClass,\n        selectors: [[\"\", \"ngClass\", \"\"]],\n        inputs: {\n          klass: [i0.ɵɵInputFlags.None, \"class\", \"klass\"],\n          ngClass: \"ngClass\"\n        },\n        standalone: true\n      });\n    }\n  }\n  return NgClass;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Instantiates a {@link Component} type and inserts its Host View into the current View.\n * `NgComponentOutlet` provides a declarative approach for dynamic component creation.\n *\n * `NgComponentOutlet` requires a component type, if a falsy value is set the view will clear and\n * any existing component will be destroyed.\n *\n * @usageNotes\n *\n * ### Fine tune control\n *\n * You can control the component creation process by using the following optional attributes:\n *\n * * `ngComponentOutletInputs`: Optional component inputs object, which will be bind to the\n * component.\n *\n * * `ngComponentOutletInjector`: Optional custom {@link Injector} that will be used as parent for\n * the Component. Defaults to the injector of the current view container.\n *\n * * `ngComponentOutletContent`: Optional list of projectable nodes to insert into the content\n * section of the component, if it exists.\n *\n * * `ngComponentOutletNgModule`: Optional NgModule class reference to allow loading another\n * module dynamically, then loading a component from that module.\n *\n * * `ngComponentOutletNgModuleFactory`: Deprecated config option that allows providing optional\n * NgModule factory to allow loading another module dynamically, then loading a component from that\n * module. Use `ngComponentOutletNgModule` instead.\n *\n * ### Syntax\n *\n * Simple\n * ```\n * <ng-container *ngComponentOutlet=\"componentTypeExpression\"></ng-container>\n * ```\n *\n * With inputs\n * ```\n * <ng-container *ngComponentOutlet=\"componentTypeExpression;\n *                                   inputs: inputsExpression;\">\n * </ng-container>\n * ```\n *\n * Customized injector/content\n * ```\n * <ng-container *ngComponentOutlet=\"componentTypeExpression;\n *                                   injector: injectorExpression;\n *                                   content: contentNodesExpression;\">\n * </ng-container>\n * ```\n *\n * Customized NgModule reference\n * ```\n * <ng-container *ngComponentOutlet=\"componentTypeExpression;\n *                                   ngModule: ngModuleClass;\">\n * </ng-container>\n * ```\n *\n * ### A simple example\n *\n * {@example common/ngComponentOutlet/ts/module.ts region='SimpleExample'}\n *\n * A more complete example with additional options:\n *\n * {@example common/ngComponentOutlet/ts/module.ts region='CompleteExample'}\n *\n * @publicApi\n * @ngModule CommonModule\n */\nlet NgComponentOutlet = /*#__PURE__*/(() => {\n  class NgComponentOutlet {\n    constructor(_viewContainerRef) {\n      this._viewContainerRef = _viewContainerRef;\n      this.ngComponentOutlet = null;\n      /**\n       * A helper data structure that allows us to track inputs that were part of the\n       * ngComponentOutletInputs expression. Tracking inputs is necessary for proper removal of ones\n       * that are no longer referenced.\n       */\n      this._inputsUsed = new Map();\n    }\n    _needToReCreateNgModuleInstance(changes) {\n      // Note: square brackets property accessor is safe for Closure compiler optimizations (the\n      // `changes` argument of the `ngOnChanges` lifecycle hook retains the names of the fields that\n      // were changed).\n      return changes['ngComponentOutletNgModule'] !== undefined || changes['ngComponentOutletNgModuleFactory'] !== undefined;\n    }\n    _needToReCreateComponentInstance(changes) {\n      // Note: square brackets property accessor is safe for Closure compiler optimizations (the\n      // `changes` argument of the `ngOnChanges` lifecycle hook retains the names of the fields that\n      // were changed).\n      return changes['ngComponentOutlet'] !== undefined || changes['ngComponentOutletContent'] !== undefined || changes['ngComponentOutletInjector'] !== undefined || this._needToReCreateNgModuleInstance(changes);\n    }\n    /** @nodoc */\n    ngOnChanges(changes) {\n      if (this._needToReCreateComponentInstance(changes)) {\n        this._viewContainerRef.clear();\n        this._inputsUsed.clear();\n        this._componentRef = undefined;\n        if (this.ngComponentOutlet) {\n          const injector = this.ngComponentOutletInjector || this._viewContainerRef.parentInjector;\n          if (this._needToReCreateNgModuleInstance(changes)) {\n            this._moduleRef?.destroy();\n            if (this.ngComponentOutletNgModule) {\n              this._moduleRef = createNgModule(this.ngComponentOutletNgModule, getParentInjector(injector));\n            } else if (this.ngComponentOutletNgModuleFactory) {\n              this._moduleRef = this.ngComponentOutletNgModuleFactory.create(getParentInjector(injector));\n            } else {\n              this._moduleRef = undefined;\n            }\n          }\n          this._componentRef = this._viewContainerRef.createComponent(this.ngComponentOutlet, {\n            injector,\n            ngModuleRef: this._moduleRef,\n            projectableNodes: this.ngComponentOutletContent\n          });\n        }\n      }\n    }\n    /** @nodoc */\n    ngDoCheck() {\n      if (this._componentRef) {\n        if (this.ngComponentOutletInputs) {\n          for (const inputName of Object.keys(this.ngComponentOutletInputs)) {\n            this._inputsUsed.set(inputName, true);\n          }\n        }\n        this._applyInputStateDiff(this._componentRef);\n      }\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n      this._moduleRef?.destroy();\n    }\n    _applyInputStateDiff(componentRef) {\n      for (const [inputName, touched] of this._inputsUsed) {\n        if (!touched) {\n          // The input that was previously active no longer exists and needs to be set to undefined.\n          componentRef.setInput(inputName, undefined);\n          this._inputsUsed.delete(inputName);\n        } else {\n          // Since touched is true, it can be asserted that the inputs object is not empty.\n          componentRef.setInput(inputName, this.ngComponentOutletInputs[inputName]);\n          this._inputsUsed.set(inputName, false);\n        }\n      }\n    }\n    static {\n      this.ɵfac = function NgComponentOutlet_Factory(t) {\n        return new (t || NgComponentOutlet)(i0.ɵɵdirectiveInject(i0.ViewContainerRef));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: NgComponentOutlet,\n        selectors: [[\"\", \"ngComponentOutlet\", \"\"]],\n        inputs: {\n          ngComponentOutlet: \"ngComponentOutlet\",\n          ngComponentOutletInputs: \"ngComponentOutletInputs\",\n          ngComponentOutletInjector: \"ngComponentOutletInjector\",\n          ngComponentOutletContent: \"ngComponentOutletContent\",\n          ngComponentOutletNgModule: \"ngComponentOutletNgModule\",\n          ngComponentOutletNgModuleFactory: \"ngComponentOutletNgModuleFactory\"\n        },\n        standalone: true,\n        features: [i0.ɵɵNgOnChangesFeature]\n      });\n    }\n  }\n  return NgComponentOutlet;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n// Helper function that returns an Injector instance of a parent NgModule.\nfunction getParentInjector(injector) {\n  const parentNgModule = injector.get(NgModuleRef);\n  return parentNgModule.injector;\n}\n\n/**\n * @publicApi\n */\nclass NgForOfContext {\n  constructor($implicit, ngForOf, index, count) {\n    this.$implicit = $implicit;\n    this.ngForOf = ngForOf;\n    this.index = index;\n    this.count = count;\n  }\n  get first() {\n    return this.index === 0;\n  }\n  get last() {\n    return this.index === this.count - 1;\n  }\n  get even() {\n    return this.index % 2 === 0;\n  }\n  get odd() {\n    return !this.even;\n  }\n}\n/**\n * A [structural directive](guide/structural-directives) that renders\n * a template for each item in a collection.\n * The directive is placed on an element, which becomes the parent\n * of the cloned templates.\n *\n * The `ngForOf` directive is generally used in the\n * [shorthand form](guide/structural-directives#asterisk) `*ngFor`.\n * In this form, the template to be rendered for each iteration is the content\n * of an anchor element containing the directive.\n *\n * The following example shows the shorthand syntax with some options,\n * contained in an `<li>` element.\n *\n * ```\n * <li *ngFor=\"let item of items; index as i; trackBy: trackByFn\">...</li>\n * ```\n *\n * The shorthand form expands into a long form that uses the `ngForOf` selector\n * on an `<ng-template>` element.\n * The content of the `<ng-template>` element is the `<li>` element that held the\n * short-form directive.\n *\n * Here is the expanded version of the short-form example.\n *\n * ```\n * <ng-template ngFor let-item [ngForOf]=\"items\" let-i=\"index\" [ngForTrackBy]=\"trackByFn\">\n *   <li>...</li>\n * </ng-template>\n * ```\n *\n * Angular automatically expands the shorthand syntax as it compiles the template.\n * The context for each embedded view is logically merged to the current component\n * context according to its lexical position.\n *\n * When using the shorthand syntax, Angular allows only [one structural directive\n * on an element](guide/structural-directives#one-per-element).\n * If you want to iterate conditionally, for example,\n * put the `*ngIf` on a container element that wraps the `*ngFor` element.\n * For further discussion, see\n * [Structural Directives](guide/structural-directives#one-per-element).\n *\n * @usageNotes\n *\n * ### Local variables\n *\n * `NgForOf` provides exported values that can be aliased to local variables.\n * For example:\n *\n *  ```\n * <li *ngFor=\"let user of users; index as i; first as isFirst\">\n *    {{i}}/{{users.length}}. {{user}} <span *ngIf=\"isFirst\">default</span>\n * </li>\n * ```\n *\n * The following exported values can be aliased to local variables:\n *\n * - `$implicit: T`: The value of the individual items in the iterable (`ngForOf`).\n * - `ngForOf: NgIterable<T>`: The value of the iterable expression. Useful when the expression is\n * more complex then a property access, for example when using the async pipe (`userStreams |\n * async`).\n * - `index: number`: The index of the current item in the iterable.\n * - `count: number`: The length of the iterable.\n * - `first: boolean`: True when the item is the first item in the iterable.\n * - `last: boolean`: True when the item is the last item in the iterable.\n * - `even: boolean`: True when the item has an even index in the iterable.\n * - `odd: boolean`: True when the item has an odd index in the iterable.\n *\n * ### Change propagation\n *\n * When the contents of the iterator changes, `NgForOf` makes the corresponding changes to the DOM:\n *\n * * When an item is added, a new instance of the template is added to the DOM.\n * * When an item is removed, its template instance is removed from the DOM.\n * * When items are reordered, their respective templates are reordered in the DOM.\n *\n * Angular uses object identity to track insertions and deletions within the iterator and reproduce\n * those changes in the DOM. This has important implications for animations and any stateful\n * controls that are present, such as `<input>` elements that accept user input. Inserted rows can\n * be animated in, deleted rows can be animated out, and unchanged rows retain any unsaved state\n * such as user input.\n * For more on animations, see [Transitions and Triggers](guide/transition-and-triggers).\n *\n * The identities of elements in the iterator can change while the data does not.\n * This can happen, for example, if the iterator is produced from an RPC to the server, and that\n * RPC is re-run. Even if the data hasn't changed, the second response produces objects with\n * different identities, and Angular must tear down the entire DOM and rebuild it (as if all old\n * elements were deleted and all new elements inserted).\n *\n * To avoid this expensive operation, you can customize the default tracking algorithm.\n * by supplying the `trackBy` option to `NgForOf`.\n * `trackBy` takes a function that has two arguments: `index` and `item`.\n * If `trackBy` is given, Angular tracks changes by the return value of the function.\n *\n * @see [Structural Directives](guide/structural-directives)\n * @ngModule CommonModule\n * @publicApi\n */\nlet NgForOf = /*#__PURE__*/(() => {\n  class NgForOf {\n    /**\n     * The value of the iterable expression, which can be used as a\n     * [template input variable](guide/structural-directives#shorthand).\n     */\n    set ngForOf(ngForOf) {\n      this._ngForOf = ngForOf;\n      this._ngForOfDirty = true;\n    }\n    /**\n     * Specifies a custom `TrackByFunction` to compute the identity of items in an iterable.\n     *\n     * If a custom `TrackByFunction` is not provided, `NgForOf` will use the item's [object\n     * identity](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is)\n     * as the key.\n     *\n     * `NgForOf` uses the computed key to associate items in an iterable with DOM elements\n     * it produces for these items.\n     *\n     * A custom `TrackByFunction` is useful to provide good user experience in cases when items in an\n     * iterable rendered using `NgForOf` have a natural identifier (for example, custom ID or a\n     * primary key), and this iterable could be updated with new object instances that still\n     * represent the same underlying entity (for example, when data is re-fetched from the server,\n     * and the iterable is recreated and re-rendered, but most of the data is still the same).\n     *\n     * @see {@link TrackByFunction}\n     */\n    set ngForTrackBy(fn) {\n      if ((typeof ngDevMode === 'undefined' || ngDevMode) && fn != null && typeof fn !== 'function') {\n        console.warn(`trackBy must be a function, but received ${JSON.stringify(fn)}. ` + `See https://angular.io/api/common/NgForOf#change-propagation for more information.`);\n      }\n      this._trackByFn = fn;\n    }\n    get ngForTrackBy() {\n      return this._trackByFn;\n    }\n    constructor(_viewContainer, _template, _differs) {\n      this._viewContainer = _viewContainer;\n      this._template = _template;\n      this._differs = _differs;\n      this._ngForOf = null;\n      this._ngForOfDirty = true;\n      this._differ = null;\n    }\n    /**\n     * A reference to the template that is stamped out for each item in the iterable.\n     * @see [template reference variable](guide/template-reference-variables)\n     */\n    set ngForTemplate(value) {\n      // TODO(TS2.1): make TemplateRef<Partial<NgForRowOf<T>>> once we move to TS v2.1\n      // The current type is too restrictive; a template that just uses index, for example,\n      // should be acceptable.\n      if (value) {\n        this._template = value;\n      }\n    }\n    /**\n     * Applies the changes when needed.\n     * @nodoc\n     */\n    ngDoCheck() {\n      if (this._ngForOfDirty) {\n        this._ngForOfDirty = false;\n        // React on ngForOf changes only once all inputs have been initialized\n        const value = this._ngForOf;\n        if (!this._differ && value) {\n          if (typeof ngDevMode === 'undefined' || ngDevMode) {\n            try {\n              // CAUTION: this logic is duplicated for production mode below, as the try-catch\n              // is only present in development builds.\n              this._differ = this._differs.find(value).create(this.ngForTrackBy);\n            } catch {\n              let errorMessage = `Cannot find a differ supporting object '${value}' of type '` + `${getTypeName(value)}'. NgFor only supports binding to Iterables, such as Arrays.`;\n              if (typeof value === 'object') {\n                errorMessage += ' Did you mean to use the keyvalue pipe?';\n              }\n              throw new ɵRuntimeError(-2200 /* RuntimeErrorCode.NG_FOR_MISSING_DIFFER */, errorMessage);\n            }\n          } else {\n            // CAUTION: this logic is duplicated for development mode above, as the try-catch\n            // is only present in development builds.\n            this._differ = this._differs.find(value).create(this.ngForTrackBy);\n          }\n        }\n      }\n      if (this._differ) {\n        const changes = this._differ.diff(this._ngForOf);\n        if (changes) this._applyChanges(changes);\n      }\n    }\n    _applyChanges(changes) {\n      const viewContainer = this._viewContainer;\n      changes.forEachOperation((item, adjustedPreviousIndex, currentIndex) => {\n        if (item.previousIndex == null) {\n          // NgForOf is never \"null\" or \"undefined\" here because the differ detected\n          // that a new item needs to be inserted from the iterable. This implies that\n          // there is an iterable value for \"_ngForOf\".\n          viewContainer.createEmbeddedView(this._template, new NgForOfContext(item.item, this._ngForOf, -1, -1), currentIndex === null ? undefined : currentIndex);\n        } else if (currentIndex == null) {\n          viewContainer.remove(adjustedPreviousIndex === null ? undefined : adjustedPreviousIndex);\n        } else if (adjustedPreviousIndex !== null) {\n          const view = viewContainer.get(adjustedPreviousIndex);\n          viewContainer.move(view, currentIndex);\n          applyViewChange(view, item);\n        }\n      });\n      for (let i = 0, ilen = viewContainer.length; i < ilen; i++) {\n        const viewRef = viewContainer.get(i);\n        const context = viewRef.context;\n        context.index = i;\n        context.count = ilen;\n        context.ngForOf = this._ngForOf;\n      }\n      changes.forEachIdentityChange(record => {\n        const viewRef = viewContainer.get(record.currentIndex);\n        applyViewChange(viewRef, record);\n      });\n    }\n    /**\n     * Asserts the correct type of the context for the template that `NgForOf` will render.\n     *\n     * The presence of this method is a signal to the Ivy template type-check compiler that the\n     * `NgForOf` structural directive renders its template with a specific context type.\n     */\n    static ngTemplateContextGuard(dir, ctx) {\n      return true;\n    }\n    static {\n      this.ɵfac = function NgForOf_Factory(t) {\n        return new (t || NgForOf)(i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.TemplateRef), i0.ɵɵdirectiveInject(i0.IterableDiffers));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: NgForOf,\n        selectors: [[\"\", \"ngFor\", \"\", \"ngForOf\", \"\"]],\n        inputs: {\n          ngForOf: \"ngForOf\",\n          ngForTrackBy: \"ngForTrackBy\",\n          ngForTemplate: \"ngForTemplate\"\n        },\n        standalone: true\n      });\n    }\n  }\n  return NgForOf;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction applyViewChange(view, record) {\n  view.context.$implicit = record.item;\n}\nfunction getTypeName(type) {\n  return type['name'] || typeof type;\n}\n\n/**\n * A structural directive that conditionally includes a template based on the value of\n * an expression coerced to Boolean.\n * When the expression evaluates to true, Angular renders the template\n * provided in a `then` clause, and when  false or null,\n * Angular renders the template provided in an optional `else` clause. The default\n * template for the `else` clause is blank.\n *\n * A [shorthand form](guide/structural-directives#asterisk) of the directive,\n * `*ngIf=\"condition\"`, is generally used, provided\n * as an attribute of the anchor element for the inserted template.\n * Angular expands this into a more explicit version, in which the anchor element\n * is contained in an `<ng-template>` element.\n *\n * Simple form with shorthand syntax:\n *\n * ```\n * <div *ngIf=\"condition\">Content to render when condition is true.</div>\n * ```\n *\n * Simple form with expanded syntax:\n *\n * ```\n * <ng-template [ngIf]=\"condition\"><div>Content to render when condition is\n * true.</div></ng-template>\n * ```\n *\n * Form with an \"else\" block:\n *\n * ```\n * <div *ngIf=\"condition; else elseBlock\">Content to render when condition is true.</div>\n * <ng-template #elseBlock>Content to render when condition is false.</ng-template>\n * ```\n *\n * Shorthand form with \"then\" and \"else\" blocks:\n *\n * ```\n * <div *ngIf=\"condition; then thenBlock else elseBlock\"></div>\n * <ng-template #thenBlock>Content to render when condition is true.</ng-template>\n * <ng-template #elseBlock>Content to render when condition is false.</ng-template>\n * ```\n *\n * Form with storing the value locally:\n *\n * ```\n * <div *ngIf=\"condition as value; else elseBlock\">{{value}}</div>\n * <ng-template #elseBlock>Content to render when value is null.</ng-template>\n * ```\n *\n * @usageNotes\n *\n * The `*ngIf` directive is most commonly used to conditionally show an inline template,\n * as seen in the following  example.\n * The default `else` template is blank.\n *\n * {@example common/ngIf/ts/module.ts region='NgIfSimple'}\n *\n * ### Showing an alternative template using `else`\n *\n * To display a template when `expression` evaluates to false, use an `else` template\n * binding as shown in the following example.\n * The `else` binding points to an `<ng-template>`  element labeled `#elseBlock`.\n * The template can be defined anywhere in the component view, but is typically placed right after\n * `ngIf` for readability.\n *\n * {@example common/ngIf/ts/module.ts region='NgIfElse'}\n *\n * ### Using an external `then` template\n *\n * In the previous example, the then-clause template is specified inline, as the content of the\n * tag that contains the `ngIf` directive. You can also specify a template that is defined\n * externally, by referencing a labeled `<ng-template>` element. When you do this, you can\n * change which template to use at runtime, as shown in the following example.\n *\n * {@example common/ngIf/ts/module.ts region='NgIfThenElse'}\n *\n * ### Storing a conditional result in a variable\n *\n * You might want to show a set of properties from the same object. If you are waiting\n * for asynchronous data, the object can be undefined.\n * In this case, you can use `ngIf` and store the result of the condition in a local\n * variable as shown in the following example.\n *\n * {@example common/ngIf/ts/module.ts region='NgIfAs'}\n *\n * This code uses only one `AsyncPipe`, so only one subscription is created.\n * The conditional statement stores the result of `userStream|async` in the local variable `user`.\n * You can then bind the local `user` repeatedly.\n *\n * The conditional displays the data only if `userStream` returns a value,\n * so you don't need to use the\n * safe-navigation-operator (`?.`)\n * to guard against null values when accessing properties.\n * You can display an alternative template while waiting for the data.\n *\n * ### Shorthand syntax\n *\n * The shorthand syntax `*ngIf` expands into two separate template specifications\n * for the \"then\" and \"else\" clauses. For example, consider the following shorthand statement,\n * that is meant to show a loading page while waiting for data to be loaded.\n *\n * ```\n * <div class=\"hero-list\" *ngIf=\"heroes else loading\">\n *  ...\n * </div>\n *\n * <ng-template #loading>\n *  <div>Loading...</div>\n * </ng-template>\n * ```\n *\n * You can see that the \"else\" clause references the `<ng-template>`\n * with the `#loading` label, and the template for the \"then\" clause\n * is provided as the content of the anchor element.\n *\n * However, when Angular expands the shorthand syntax, it creates\n * another `<ng-template>` tag, with `ngIf` and `ngIfElse` directives.\n * The anchor element containing the template for the \"then\" clause becomes\n * the content of this unlabeled `<ng-template>` tag.\n *\n * ```\n * <ng-template [ngIf]=\"heroes\" [ngIfElse]=\"loading\">\n *  <div class=\"hero-list\">\n *   ...\n *  </div>\n * </ng-template>\n *\n * <ng-template #loading>\n *  <div>Loading...</div>\n * </ng-template>\n * ```\n *\n * The presence of the implicit template object has implications for the nesting of\n * structural directives. For more on this subject, see\n * [Structural Directives](guide/structural-directives#one-per-element).\n *\n * @ngModule CommonModule\n * @publicApi\n */\nlet NgIf = /*#__PURE__*/(() => {\n  class NgIf {\n    constructor(_viewContainer, templateRef) {\n      this._viewContainer = _viewContainer;\n      this._context = new NgIfContext();\n      this._thenTemplateRef = null;\n      this._elseTemplateRef = null;\n      this._thenViewRef = null;\n      this._elseViewRef = null;\n      this._thenTemplateRef = templateRef;\n    }\n    /**\n     * The Boolean expression to evaluate as the condition for showing a template.\n     */\n    set ngIf(condition) {\n      this._context.$implicit = this._context.ngIf = condition;\n      this._updateView();\n    }\n    /**\n     * A template to show if the condition expression evaluates to true.\n     */\n    set ngIfThen(templateRef) {\n      assertTemplate('ngIfThen', templateRef);\n      this._thenTemplateRef = templateRef;\n      this._thenViewRef = null; // clear previous view if any.\n      this._updateView();\n    }\n    /**\n     * A template to show if the condition expression evaluates to false.\n     */\n    set ngIfElse(templateRef) {\n      assertTemplate('ngIfElse', templateRef);\n      this._elseTemplateRef = templateRef;\n      this._elseViewRef = null; // clear previous view if any.\n      this._updateView();\n    }\n    _updateView() {\n      if (this._context.$implicit) {\n        if (!this._thenViewRef) {\n          this._viewContainer.clear();\n          this._elseViewRef = null;\n          if (this._thenTemplateRef) {\n            this._thenViewRef = this._viewContainer.createEmbeddedView(this._thenTemplateRef, this._context);\n          }\n        }\n      } else {\n        if (!this._elseViewRef) {\n          this._viewContainer.clear();\n          this._thenViewRef = null;\n          if (this._elseTemplateRef) {\n            this._elseViewRef = this._viewContainer.createEmbeddedView(this._elseTemplateRef, this._context);\n          }\n        }\n      }\n    }\n    /**\n     * Asserts the correct type of the context for the template that `NgIf` will render.\n     *\n     * The presence of this method is a signal to the Ivy template type-check compiler that the\n     * `NgIf` structural directive renders its template with a specific context type.\n     */\n    static ngTemplateContextGuard(dir, ctx) {\n      return true;\n    }\n    static {\n      this.ɵfac = function NgIf_Factory(t) {\n        return new (t || NgIf)(i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.TemplateRef));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: NgIf,\n        selectors: [[\"\", \"ngIf\", \"\"]],\n        inputs: {\n          ngIf: \"ngIf\",\n          ngIfThen: \"ngIfThen\",\n          ngIfElse: \"ngIfElse\"\n        },\n        standalone: true\n      });\n    }\n  }\n  return NgIf;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @publicApi\n */\nclass NgIfContext {\n  constructor() {\n    this.$implicit = null;\n    this.ngIf = null;\n  }\n}\nfunction assertTemplate(property, templateRef) {\n  const isTemplateRefOrNull = !!(!templateRef || templateRef.createEmbeddedView);\n  if (!isTemplateRefOrNull) {\n    throw new Error(`${property} must be a TemplateRef, but received '${ɵstringify(templateRef)}'.`);\n  }\n}\n\n/**\n * A constant indicating a type of comparison that NgSwitch uses to match cases. Extracted to a\n * separate file to facilitate G3 patches.\n */\nconst NG_SWITCH_USE_STRICT_EQUALS = true;\nclass SwitchView {\n  constructor(_viewContainerRef, _templateRef) {\n    this._viewContainerRef = _viewContainerRef;\n    this._templateRef = _templateRef;\n    this._created = false;\n  }\n  create() {\n    this._created = true;\n    this._viewContainerRef.createEmbeddedView(this._templateRef);\n  }\n  destroy() {\n    this._created = false;\n    this._viewContainerRef.clear();\n  }\n  enforceState(created) {\n    if (created && !this._created) {\n      this.create();\n    } else if (!created && this._created) {\n      this.destroy();\n    }\n  }\n}\n/**\n * @ngModule CommonModule\n *\n * @description\n * The `[ngSwitch]` directive on a container specifies an expression to match against.\n * The expressions to match are provided by `ngSwitchCase` directives on views within the container.\n * - Every view that matches is rendered.\n * - If there are no matches, a view with the `ngSwitchDefault` directive is rendered.\n * - Elements within the `[NgSwitch]` statement but outside of any `NgSwitchCase`\n * or `ngSwitchDefault` directive are preserved at the location.\n *\n * @usageNotes\n * Define a container element for the directive, and specify the switch expression\n * to match against as an attribute:\n *\n * ```\n * <container-element [ngSwitch]=\"switch_expression\">\n * ```\n *\n * Within the container, `*ngSwitchCase` statements specify the match expressions\n * as attributes. Include `*ngSwitchDefault` as the final case.\n *\n * ```\n * <container-element [ngSwitch]=\"switch_expression\">\n *    <some-element *ngSwitchCase=\"match_expression_1\">...</some-element>\n * ...\n *    <some-element *ngSwitchDefault>...</some-element>\n * </container-element>\n * ```\n *\n * ### Usage Examples\n *\n * The following example shows how to use more than one case to display the same view:\n *\n * ```\n * <container-element [ngSwitch]=\"switch_expression\">\n *   <!-- the same view can be shown in more than one case -->\n *   <some-element *ngSwitchCase=\"match_expression_1\">...</some-element>\n *   <some-element *ngSwitchCase=\"match_expression_2\">...</some-element>\n *   <some-other-element *ngSwitchCase=\"match_expression_3\">...</some-other-element>\n *   <!--default case when there are no matches -->\n *   <some-element *ngSwitchDefault>...</some-element>\n * </container-element>\n * ```\n *\n * The following example shows how cases can be nested:\n * ```\n * <container-element [ngSwitch]=\"switch_expression\">\n *       <some-element *ngSwitchCase=\"match_expression_1\">...</some-element>\n *       <some-element *ngSwitchCase=\"match_expression_2\">...</some-element>\n *       <some-other-element *ngSwitchCase=\"match_expression_3\">...</some-other-element>\n *       <ng-container *ngSwitchCase=\"match_expression_3\">\n *         <!-- use a ng-container to group multiple root nodes -->\n *         <inner-element></inner-element>\n *         <inner-other-element></inner-other-element>\n *       </ng-container>\n *       <some-element *ngSwitchDefault>...</some-element>\n *     </container-element>\n * ```\n *\n * @publicApi\n * @see {@link NgSwitchCase}\n * @see {@link NgSwitchDefault}\n * @see [Structural Directives](guide/structural-directives)\n *\n */\nlet NgSwitch = /*#__PURE__*/(() => {\n  class NgSwitch {\n    constructor() {\n      this._defaultViews = [];\n      this._defaultUsed = false;\n      this._caseCount = 0;\n      this._lastCaseCheckIndex = 0;\n      this._lastCasesMatched = false;\n    }\n    set ngSwitch(newValue) {\n      this._ngSwitch = newValue;\n      if (this._caseCount === 0) {\n        this._updateDefaultCases(true);\n      }\n    }\n    /** @internal */\n    _addCase() {\n      return this._caseCount++;\n    }\n    /** @internal */\n    _addDefault(view) {\n      this._defaultViews.push(view);\n    }\n    /** @internal */\n    _matchCase(value) {\n      const matched = NG_SWITCH_USE_STRICT_EQUALS ? value === this._ngSwitch : value == this._ngSwitch;\n      if ((typeof ngDevMode === 'undefined' || ngDevMode) && matched !== (value == this._ngSwitch)) {\n        console.warn(ɵformatRuntimeError(2001 /* RuntimeErrorCode.EQUALITY_NG_SWITCH_DIFFERENCE */, 'As of Angular v17 the NgSwitch directive uses strict equality comparison === instead of == to match different cases. ' + `Previously the case value \"${stringifyValue(value)}\" matched switch expression value \"${stringifyValue(this._ngSwitch)}\", but this is no longer the case with the stricter equality check. ` + 'Your comparison results return different results using === vs. == and you should adjust your ngSwitch expression and / or values to conform with the strict equality requirements.'));\n      }\n      this._lastCasesMatched ||= matched;\n      this._lastCaseCheckIndex++;\n      if (this._lastCaseCheckIndex === this._caseCount) {\n        this._updateDefaultCases(!this._lastCasesMatched);\n        this._lastCaseCheckIndex = 0;\n        this._lastCasesMatched = false;\n      }\n      return matched;\n    }\n    _updateDefaultCases(useDefault) {\n      if (this._defaultViews.length > 0 && useDefault !== this._defaultUsed) {\n        this._defaultUsed = useDefault;\n        for (const defaultView of this._defaultViews) {\n          defaultView.enforceState(useDefault);\n        }\n      }\n    }\n    static {\n      this.ɵfac = function NgSwitch_Factory(t) {\n        return new (t || NgSwitch)();\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: NgSwitch,\n        selectors: [[\"\", \"ngSwitch\", \"\"]],\n        inputs: {\n          ngSwitch: \"ngSwitch\"\n        },\n        standalone: true\n      });\n    }\n  }\n  return NgSwitch;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @ngModule CommonModule\n *\n * @description\n * Provides a switch case expression to match against an enclosing `ngSwitch` expression.\n * When the expressions match, the given `NgSwitchCase` template is rendered.\n * If multiple match expressions match the switch expression value, all of them are displayed.\n *\n * @usageNotes\n *\n * Within a switch container, `*ngSwitchCase` statements specify the match expressions\n * as attributes. Include `*ngSwitchDefault` as the final case.\n *\n * ```\n * <container-element [ngSwitch]=\"switch_expression\">\n *   <some-element *ngSwitchCase=\"match_expression_1\">...</some-element>\n *   ...\n *   <some-element *ngSwitchDefault>...</some-element>\n * </container-element>\n * ```\n *\n * Each switch-case statement contains an in-line HTML template or template reference\n * that defines the subtree to be selected if the value of the match expression\n * matches the value of the switch expression.\n *\n * As of Angular v17 the NgSwitch directive uses strict equality comparison (`===`) instead of\n * loose equality (`==`) to match different cases.\n *\n * @publicApi\n * @see {@link NgSwitch}\n * @see {@link NgSwitchDefault}\n *\n */\nlet NgSwitchCase = /*#__PURE__*/(() => {\n  class NgSwitchCase {\n    constructor(viewContainer, templateRef, ngSwitch) {\n      this.ngSwitch = ngSwitch;\n      if ((typeof ngDevMode === 'undefined' || ngDevMode) && !ngSwitch) {\n        throwNgSwitchProviderNotFoundError('ngSwitchCase', 'NgSwitchCase');\n      }\n      ngSwitch._addCase();\n      this._view = new SwitchView(viewContainer, templateRef);\n    }\n    /**\n     * Performs case matching. For internal use only.\n     * @nodoc\n     */\n    ngDoCheck() {\n      this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase));\n    }\n    static {\n      this.ɵfac = function NgSwitchCase_Factory(t) {\n        return new (t || NgSwitchCase)(i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.TemplateRef), i0.ɵɵdirectiveInject(NgSwitch, 9));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: NgSwitchCase,\n        selectors: [[\"\", \"ngSwitchCase\", \"\"]],\n        inputs: {\n          ngSwitchCase: \"ngSwitchCase\"\n        },\n        standalone: true\n      });\n    }\n  }\n  return NgSwitchCase;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @ngModule CommonModule\n *\n * @description\n *\n * Creates a view that is rendered when no `NgSwitchCase` expressions\n * match the `NgSwitch` expression.\n * This statement should be the final case in an `NgSwitch`.\n *\n * @publicApi\n * @see {@link NgSwitch}\n * @see {@link NgSwitchCase}\n *\n */\nlet NgSwitchDefault = /*#__PURE__*/(() => {\n  class NgSwitchDefault {\n    constructor(viewContainer, templateRef, ngSwitch) {\n      if ((typeof ngDevMode === 'undefined' || ngDevMode) && !ngSwitch) {\n        throwNgSwitchProviderNotFoundError('ngSwitchDefault', 'NgSwitchDefault');\n      }\n      ngSwitch._addDefault(new SwitchView(viewContainer, templateRef));\n    }\n    static {\n      this.ɵfac = function NgSwitchDefault_Factory(t) {\n        return new (t || NgSwitchDefault)(i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.TemplateRef), i0.ɵɵdirectiveInject(NgSwitch, 9));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: NgSwitchDefault,\n        selectors: [[\"\", \"ngSwitchDefault\", \"\"]],\n        standalone: true\n      });\n    }\n  }\n  return NgSwitchDefault;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction throwNgSwitchProviderNotFoundError(attrName, directiveName) {\n  throw new ɵRuntimeError(2000 /* RuntimeErrorCode.PARENT_NG_SWITCH_NOT_FOUND */, `An element with the \"${attrName}\" attribute ` + `(matching the \"${directiveName}\" directive) must be located inside an element with the \"ngSwitch\" attribute ` + `(matching \"NgSwitch\" directive)`);\n}\nfunction stringifyValue(value) {\n  return typeof value === 'string' ? `'${value}'` : String(value);\n}\n\n/**\n * @ngModule CommonModule\n *\n * @usageNotes\n * ```\n * <some-element [ngPlural]=\"value\">\n *   <ng-template ngPluralCase=\"=0\">there is nothing</ng-template>\n *   <ng-template ngPluralCase=\"=1\">there is one</ng-template>\n *   <ng-template ngPluralCase=\"few\">there are a few</ng-template>\n * </some-element>\n * ```\n *\n * @description\n *\n * Adds / removes DOM sub-trees based on a numeric value. Tailored for pluralization.\n *\n * Displays DOM sub-trees that match the switch expression value, or failing that, DOM sub-trees\n * that match the switch expression's pluralization category.\n *\n * To use this directive you must provide a container element that sets the `[ngPlural]` attribute\n * to a switch expression. Inner elements with a `[ngPluralCase]` will display based on their\n * expression:\n * - if `[ngPluralCase]` is set to a value starting with `=`, it will only display if the value\n *   matches the switch expression exactly,\n * - otherwise, the view will be treated as a \"category match\", and will only display if exact\n *   value matches aren't found and the value maps to its category for the defined locale.\n *\n * See http://cldr.unicode.org/index/cldr-spec/plural-rules\n *\n * @publicApi\n */\nlet NgPlural = /*#__PURE__*/(() => {\n  class NgPlural {\n    constructor(_localization) {\n      this._localization = _localization;\n      this._caseViews = {};\n    }\n    set ngPlural(value) {\n      this._updateView(value);\n    }\n    addCase(value, switchView) {\n      this._caseViews[value] = switchView;\n    }\n    _updateView(switchValue) {\n      this._clearViews();\n      const cases = Object.keys(this._caseViews);\n      const key = getPluralCategory(switchValue, cases, this._localization);\n      this._activateView(this._caseViews[key]);\n    }\n    _clearViews() {\n      if (this._activeView) this._activeView.destroy();\n    }\n    _activateView(view) {\n      if (view) {\n        this._activeView = view;\n        this._activeView.create();\n      }\n    }\n    static {\n      this.ɵfac = function NgPlural_Factory(t) {\n        return new (t || NgPlural)(i0.ɵɵdirectiveInject(NgLocalization));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: NgPlural,\n        selectors: [[\"\", \"ngPlural\", \"\"]],\n        inputs: {\n          ngPlural: \"ngPlural\"\n        },\n        standalone: true\n      });\n    }\n  }\n  return NgPlural;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @ngModule CommonModule\n *\n * @description\n *\n * Creates a view that will be added/removed from the parent {@link NgPlural} when the\n * given expression matches the plural expression according to CLDR rules.\n *\n * @usageNotes\n * ```\n * <some-element [ngPlural]=\"value\">\n *   <ng-template ngPluralCase=\"=0\">...</ng-template>\n *   <ng-template ngPluralCase=\"other\">...</ng-template>\n * </some-element>\n *```\n *\n * See {@link NgPlural} for more details and example.\n *\n * @publicApi\n */\nlet NgPluralCase = /*#__PURE__*/(() => {\n  class NgPluralCase {\n    constructor(value, template, viewContainer, ngPlural) {\n      this.value = value;\n      const isANumber = !isNaN(Number(value));\n      ngPlural.addCase(isANumber ? `=${value}` : value, new SwitchView(viewContainer, template));\n    }\n    static {\n      this.ɵfac = function NgPluralCase_Factory(t) {\n        return new (t || NgPluralCase)(i0.ɵɵinjectAttribute('ngPluralCase'), i0.ɵɵdirectiveInject(i0.TemplateRef), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(NgPlural, 1));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: NgPluralCase,\n        selectors: [[\"\", \"ngPluralCase\", \"\"]],\n        standalone: true\n      });\n    }\n  }\n  return NgPluralCase;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * @ngModule CommonModule\n *\n * @usageNotes\n *\n * Set the font of the containing element to the result of an expression.\n *\n * ```\n * <some-element [ngStyle]=\"{'font-style': styleExp}\">...</some-element>\n * ```\n *\n * Set the width of the containing element to a pixel value returned by an expression.\n *\n * ```\n * <some-element [ngStyle]=\"{'max-width.px': widthExp}\">...</some-element>\n * ```\n *\n * Set a collection of style values using an expression that returns key-value pairs.\n *\n * ```\n * <some-element [ngStyle]=\"objExp\">...</some-element>\n * ```\n *\n * @description\n *\n * An attribute directive that updates styles for the containing HTML element.\n * Sets one or more style properties, specified as colon-separated key-value pairs.\n * The key is a style name, with an optional `.<unit>` suffix\n * (such as 'top.px', 'font-style.em').\n * The value is an expression to be evaluated.\n * The resulting non-null value, expressed in the given unit,\n * is assigned to the given style property.\n * If the result of evaluation is null, the corresponding style is removed.\n *\n * @publicApi\n */\nlet NgStyle = /*#__PURE__*/(() => {\n  class NgStyle {\n    constructor(_ngEl, _differs, _renderer) {\n      this._ngEl = _ngEl;\n      this._differs = _differs;\n      this._renderer = _renderer;\n      this._ngStyle = null;\n      this._differ = null;\n    }\n    set ngStyle(values) {\n      this._ngStyle = values;\n      if (!this._differ && values) {\n        this._differ = this._differs.find(values).create();\n      }\n    }\n    ngDoCheck() {\n      if (this._differ) {\n        const changes = this._differ.diff(this._ngStyle);\n        if (changes) {\n          this._applyChanges(changes);\n        }\n      }\n    }\n    _setStyle(nameAndUnit, value) {\n      const [name, unit] = nameAndUnit.split('.');\n      const flags = name.indexOf('-') === -1 ? undefined : RendererStyleFlags2.DashCase;\n      if (value != null) {\n        this._renderer.setStyle(this._ngEl.nativeElement, name, unit ? `${value}${unit}` : value, flags);\n      } else {\n        this._renderer.removeStyle(this._ngEl.nativeElement, name, flags);\n      }\n    }\n    _applyChanges(changes) {\n      changes.forEachRemovedItem(record => this._setStyle(record.key, null));\n      changes.forEachAddedItem(record => this._setStyle(record.key, record.currentValue));\n      changes.forEachChangedItem(record => this._setStyle(record.key, record.currentValue));\n    }\n    static {\n      this.ɵfac = function NgStyle_Factory(t) {\n        return new (t || NgStyle)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.KeyValueDiffers), i0.ɵɵdirectiveInject(i0.Renderer2));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: NgStyle,\n        selectors: [[\"\", \"ngStyle\", \"\"]],\n        inputs: {\n          ngStyle: \"ngStyle\"\n        },\n        standalone: true\n      });\n    }\n  }\n  return NgStyle;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * @ngModule CommonModule\n *\n * @description\n *\n * Inserts an embedded view from a prepared `TemplateRef`.\n *\n * You can attach a context object to the `EmbeddedViewRef` by setting `[ngTemplateOutletContext]`.\n * `[ngTemplateOutletContext]` should be an object, the object's keys will be available for binding\n * by the local template `let` declarations.\n *\n * @usageNotes\n * ```\n * <ng-container *ngTemplateOutlet=\"templateRefExp; context: contextExp\"></ng-container>\n * ```\n *\n * Using the key `$implicit` in the context object will set its value as default.\n *\n * ### Example\n *\n * {@example common/ngTemplateOutlet/ts/module.ts region='NgTemplateOutlet'}\n *\n * @publicApi\n */\nlet NgTemplateOutlet = /*#__PURE__*/(() => {\n  class NgTemplateOutlet {\n    constructor(_viewContainerRef) {\n      this._viewContainerRef = _viewContainerRef;\n      this._viewRef = null;\n      /**\n       * A context object to attach to the {@link EmbeddedViewRef}. This should be an\n       * object, the object's keys will be available for binding by the local template `let`\n       * declarations.\n       * Using the key `$implicit` in the context object will set its value as default.\n       */\n      this.ngTemplateOutletContext = null;\n      /**\n       * A string defining the template reference and optionally the context object for the template.\n       */\n      this.ngTemplateOutlet = null;\n      /** Injector to be used within the embedded view. */\n      this.ngTemplateOutletInjector = null;\n    }\n    ngOnChanges(changes) {\n      if (this._shouldRecreateView(changes)) {\n        const viewContainerRef = this._viewContainerRef;\n        if (this._viewRef) {\n          viewContainerRef.remove(viewContainerRef.indexOf(this._viewRef));\n        }\n        // If there is no outlet, clear the destroyed view ref.\n        if (!this.ngTemplateOutlet) {\n          this._viewRef = null;\n          return;\n        }\n        // Create a context forward `Proxy` that will always bind to the user-specified context,\n        // without having to destroy and re-create views whenever the context changes.\n        const viewContext = this._createContextForwardProxy();\n        this._viewRef = viewContainerRef.createEmbeddedView(this.ngTemplateOutlet, viewContext, {\n          injector: this.ngTemplateOutletInjector ?? undefined\n        });\n      }\n    }\n    /**\n     * We need to re-create existing embedded view if either is true:\n     * - the outlet changed.\n     * - the injector changed.\n     */\n    _shouldRecreateView(changes) {\n      return !!changes['ngTemplateOutlet'] || !!changes['ngTemplateOutletInjector'];\n    }\n    /**\n     * For a given outlet instance, we create a proxy object that delegates\n     * to the user-specified context. This allows changing, or swapping out\n     * the context object completely without having to destroy/re-create the view.\n     */\n    _createContextForwardProxy() {\n      return new Proxy({}, {\n        set: (_target, prop, newValue) => {\n          if (!this.ngTemplateOutletContext) {\n            return false;\n          }\n          return Reflect.set(this.ngTemplateOutletContext, prop, newValue);\n        },\n        get: (_target, prop, receiver) => {\n          if (!this.ngTemplateOutletContext) {\n            return undefined;\n          }\n          return Reflect.get(this.ngTemplateOutletContext, prop, receiver);\n        }\n      });\n    }\n    static {\n      this.ɵfac = function NgTemplateOutlet_Factory(t) {\n        return new (t || NgTemplateOutlet)(i0.ɵɵdirectiveInject(i0.ViewContainerRef));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: NgTemplateOutlet,\n        selectors: [[\"\", \"ngTemplateOutlet\", \"\"]],\n        inputs: {\n          ngTemplateOutletContext: \"ngTemplateOutletContext\",\n          ngTemplateOutlet: \"ngTemplateOutlet\",\n          ngTemplateOutletInjector: \"ngTemplateOutletInjector\"\n        },\n        standalone: true,\n        features: [i0.ɵɵNgOnChangesFeature]\n      });\n    }\n  }\n  return NgTemplateOutlet;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * A collection of Angular directives that are likely to be used in each and every Angular\n * application.\n */\nconst COMMON_DIRECTIVES = [NgClass, NgComponentOutlet, NgForOf, NgIf, NgTemplateOutlet, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgPlural, NgPluralCase];\nfunction invalidPipeArgumentError(type, value) {\n  return new ɵRuntimeError(2100 /* RuntimeErrorCode.INVALID_PIPE_ARGUMENT */, ngDevMode && `InvalidPipeArgument: '${value}' for pipe '${ɵstringify(type)}'`);\n}\nclass SubscribableStrategy {\n  createSubscription(async, updateLatestValue) {\n    // Subscription can be side-effectful, and we don't want any signal reads which happen in the\n    // side effect of the subscription to be tracked by a component's template when that\n    // subscription is triggered via the async pipe. So we wrap the subscription in `untracked` to\n    // decouple from the current reactive context.\n    //\n    // `untracked` also prevents signal _writes_ which happen in the subscription side effect from\n    // being treated as signal writes during the template evaluation (which throws errors).\n    return untracked(() => async.subscribe({\n      next: updateLatestValue,\n      error: e => {\n        throw e;\n      }\n    }));\n  }\n  dispose(subscription) {\n    // See the comment in `createSubscription` above on the use of `untracked`.\n    untracked(() => subscription.unsubscribe());\n  }\n}\nclass PromiseStrategy {\n  createSubscription(async, updateLatestValue) {\n    return async.then(updateLatestValue, e => {\n      throw e;\n    });\n  }\n  dispose(subscription) {}\n}\nconst _promiseStrategy = /*#__PURE__*/new PromiseStrategy();\nconst _subscribableStrategy = /*#__PURE__*/new SubscribableStrategy();\n/**\n * @ngModule CommonModule\n * @description\n *\n * Unwraps a value from an asynchronous primitive.\n *\n * The `async` pipe subscribes to an `Observable` or `Promise` and returns the latest value it has\n * emitted. When a new value is emitted, the `async` pipe marks the component to be checked for\n * changes. When the component gets destroyed, the `async` pipe unsubscribes automatically to avoid\n * potential memory leaks. When the reference of the expression changes, the `async` pipe\n * automatically unsubscribes from the old `Observable` or `Promise` and subscribes to the new one.\n *\n * @usageNotes\n *\n * ### Examples\n *\n * This example binds a `Promise` to the view. Clicking the `Resolve` button resolves the\n * promise.\n *\n * {@example common/pipes/ts/async_pipe.ts region='AsyncPipePromise'}\n *\n * It's also possible to use `async` with Observables. The example below binds the `time` Observable\n * to the view. The Observable continuously updates the view with the current time.\n *\n * {@example common/pipes/ts/async_pipe.ts region='AsyncPipeObservable'}\n *\n * @publicApi\n */\nlet AsyncPipe = /*#__PURE__*/(() => {\n  class AsyncPipe {\n    constructor(ref) {\n      this._latestValue = null;\n      this.markForCheckOnValueUpdate = true;\n      this._subscription = null;\n      this._obj = null;\n      this._strategy = null;\n      // Assign `ref` into `this._ref` manually instead of declaring `_ref` in the constructor\n      // parameter list, as the type of `this._ref` includes `null` unlike the type of `ref`.\n      this._ref = ref;\n    }\n    ngOnDestroy() {\n      if (this._subscription) {\n        this._dispose();\n      }\n      // Clear the `ChangeDetectorRef` and its association with the view data, to mitigate\n      // potential memory leaks in Observables that could otherwise cause the view data to\n      // be retained.\n      // https://github.com/angular/angular/issues/17624\n      this._ref = null;\n    }\n    transform(obj) {\n      if (!this._obj) {\n        if (obj) {\n          try {\n            // Only call `markForCheck` if the value is updated asynchronously.\n            // Synchronous updates _during_ subscription should not wastefully mark for check -\n            // this value is already going to be returned from the transform function.\n            this.markForCheckOnValueUpdate = false;\n            this._subscribe(obj);\n          } finally {\n            this.markForCheckOnValueUpdate = true;\n          }\n        }\n        return this._latestValue;\n      }\n      if (obj !== this._obj) {\n        this._dispose();\n        return this.transform(obj);\n      }\n      return this._latestValue;\n    }\n    _subscribe(obj) {\n      this._obj = obj;\n      this._strategy = this._selectStrategy(obj);\n      this._subscription = this._strategy.createSubscription(obj, value => this._updateLatestValue(obj, value));\n    }\n    _selectStrategy(obj) {\n      if (ɵisPromise(obj)) {\n        return _promiseStrategy;\n      }\n      if (ɵisSubscribable(obj)) {\n        return _subscribableStrategy;\n      }\n      throw invalidPipeArgumentError(AsyncPipe, obj);\n    }\n    _dispose() {\n      // Note: `dispose` is only called if a subscription has been initialized before, indicating\n      // that `this._strategy` is also available.\n      this._strategy.dispose(this._subscription);\n      this._latestValue = null;\n      this._subscription = null;\n      this._obj = null;\n    }\n    _updateLatestValue(async, value) {\n      if (async === this._obj) {\n        this._latestValue = value;\n        if (this.markForCheckOnValueUpdate) {\n          this._ref?.markForCheck();\n        }\n      }\n    }\n    static {\n      this.ɵfac = function AsyncPipe_Factory(t) {\n        return new (t || AsyncPipe)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef, 16));\n      };\n    }\n    static {\n      this.ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({\n        name: \"async\",\n        type: AsyncPipe,\n        pure: false,\n        standalone: true\n      });\n    }\n  }\n  return AsyncPipe;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Transforms text to all lower case.\n *\n * @see {@link UpperCasePipe}\n * @see {@link TitleCasePipe}\n * @usageNotes\n *\n * The following example defines a view that allows the user to enter\n * text, and then uses the pipe to convert the input text to all lower case.\n *\n * <code-example path=\"common/pipes/ts/lowerupper_pipe.ts\" region='LowerUpperPipe'></code-example>\n *\n * @ngModule CommonModule\n * @publicApi\n */\nlet LowerCasePipe = /*#__PURE__*/(() => {\n  class LowerCasePipe {\n    transform(value) {\n      if (value == null) return null;\n      if (typeof value !== 'string') {\n        throw invalidPipeArgumentError(LowerCasePipe, value);\n      }\n      return value.toLowerCase();\n    }\n    static {\n      this.ɵfac = function LowerCasePipe_Factory(t) {\n        return new (t || LowerCasePipe)();\n      };\n    }\n    static {\n      this.ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({\n        name: \"lowercase\",\n        type: LowerCasePipe,\n        pure: true,\n        standalone: true\n      });\n    }\n  }\n  return LowerCasePipe;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n//\n// Regex below matches any Unicode word and number compatible with ES5. In ES2018 the same result\n// can be achieved by using /[0-9\\p{L}]\\S*/gu and also known as Unicode Property Escapes\n// (https://2ality.com/2017/07/regexp-unicode-property-escapes.html). Since there is no\n// transpilation of this functionality down to ES5 without external tool, the only solution is\n// to use already transpiled form. Example can be found here -\n// https://mothereff.in/regexpu#input=var+regex+%3D+%2F%5B0-9%5Cp%7BL%7D%5D%5CS*%2Fgu%3B%0A%0A&unicodePropertyEscape=1\n//\nconst unicodeWordMatch = /(?:[0-9A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\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\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CA\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7D9\\uA7F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA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\\uDC5F-\\uDC61\\uDC80-\\uDCAF\\uDCC4\\uDCC5\\uDCC7\\uDD80-\\uDDAE\\uDDD8-\\uDDDB\\uDE00-\\uDE2F\\uDE44\\uDE80-\\uDEAA\\uDEB8\\uDF00-\\uDF1A\\uDF40-\\uDF46]|\\uD806[\\uDC00-\\uDC2B\\uDCA0-\\uDCDF\\uDCFF-\\uDD06\\uDD09\\uDD0C-\\uDD13\\uDD15\\uDD16\\uDD18-\\uDD2F\\uDD3F\\uDD41\\uDDA0-\\uDDA7\\uDDAA-\\uDDD0\\uDDE1\\uDDE3\\uDE00\\uDE0B-\\uDE32\\uDE3A\\uDE50\\uDE5C-\\uDE89\\uDE9D\\uDEB0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC2E\\uDC40\\uDC72-\\uDC8F\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD30\\uDD46\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD89\\uDD98\\uDEE0-\\uDEF2\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC80-\\uDD43]|\\uD80B[\\uDF90-\\uDFF0]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2E]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE70-\\uDEBE\\uDED0-\\uDEED\\uDF00-\\uDF2F\\uDF40-\\uDF43\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF50\\uDF93-\\uDF9F\\uDFE0\\uDFE1\\uDFE3]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82B[\\uDFF0-\\uDFF3\\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\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF38\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A])\\S*/g;\n/**\n * Transforms text to title case.\n * Capitalizes the first letter of each word and transforms the\n * rest of the word to lower case.\n * Words are delimited by any whitespace character, such as a space, tab, or line-feed character.\n *\n * @see {@link LowerCasePipe}\n * @see {@link UpperCasePipe}\n *\n * @usageNotes\n * The following example shows the result of transforming various strings into title case.\n *\n * <code-example path=\"common/pipes/ts/titlecase_pipe.ts\" region='TitleCasePipe'></code-example>\n *\n * @ngModule CommonModule\n * @publicApi\n */\nlet TitleCasePipe = /*#__PURE__*/(() => {\n  class TitleCasePipe {\n    transform(value) {\n      if (value == null) return null;\n      if (typeof value !== 'string') {\n        throw invalidPipeArgumentError(TitleCasePipe, value);\n      }\n      return value.replace(unicodeWordMatch, txt => txt[0].toUpperCase() + txt.slice(1).toLowerCase());\n    }\n    static {\n      this.ɵfac = function TitleCasePipe_Factory(t) {\n        return new (t || TitleCasePipe)();\n      };\n    }\n    static {\n      this.ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({\n        name: \"titlecase\",\n        type: TitleCasePipe,\n        pure: true,\n        standalone: true\n      });\n    }\n  }\n  return TitleCasePipe;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Transforms text to all upper case.\n * @see {@link LowerCasePipe}\n * @see {@link TitleCasePipe}\n *\n * @ngModule CommonModule\n * @publicApi\n */\nlet UpperCasePipe = /*#__PURE__*/(() => {\n  class UpperCasePipe {\n    transform(value) {\n      if (value == null) return null;\n      if (typeof value !== 'string') {\n        throw invalidPipeArgumentError(UpperCasePipe, value);\n      }\n      return value.toUpperCase();\n    }\n    static {\n      this.ɵfac = function UpperCasePipe_Factory(t) {\n        return new (t || UpperCasePipe)();\n      };\n    }\n    static {\n      this.ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({\n        name: \"uppercase\",\n        type: UpperCasePipe,\n        pure: true,\n        standalone: true\n      });\n    }\n  }\n  return UpperCasePipe;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * The default date format of Angular date pipe, which corresponds to the following format:\n * `'MMM d,y'` (e.g. `Jun 15, 2015`)\n */\nconst DEFAULT_DATE_FORMAT = 'mediumDate';\n\n/**\n * Optionally-provided default timezone to use for all instances of `DatePipe` (such as `'+0430'`).\n * If the value isn't provided, the `DatePipe` will use the end-user's local system timezone.\n *\n * @deprecated use DATE_PIPE_DEFAULT_OPTIONS token to configure DatePipe\n */\nconst DATE_PIPE_DEFAULT_TIMEZONE = /*#__PURE__*/new InjectionToken(ngDevMode ? 'DATE_PIPE_DEFAULT_TIMEZONE' : '');\n/**\n * DI token that allows to provide default configuration for the `DatePipe` instances in an\n * application. The value is an object which can include the following fields:\n * - `dateFormat`: configures the default date format. If not provided, the `DatePipe`\n * will use the 'mediumDate' as a value.\n * - `timezone`: configures the default timezone. If not provided, the `DatePipe` will\n * use the end-user's local system timezone.\n *\n * @see {@link DatePipeConfig}\n *\n * @usageNotes\n *\n * Various date pipe default values can be overwritten by providing this token with\n * the value that has this interface.\n *\n * For example:\n *\n * Override the default date format by providing a value using the token:\n * ```typescript\n * providers: [\n *   {provide: DATE_PIPE_DEFAULT_OPTIONS, useValue: {dateFormat: 'shortDate'}}\n * ]\n * ```\n *\n * Override the default timezone by providing a value using the token:\n * ```typescript\n * providers: [\n *   {provide: DATE_PIPE_DEFAULT_OPTIONS, useValue: {timezone: '-1200'}}\n * ]\n * ```\n */\nconst DATE_PIPE_DEFAULT_OPTIONS = /*#__PURE__*/new InjectionToken(ngDevMode ? 'DATE_PIPE_DEFAULT_OPTIONS' : '');\n// clang-format off\n/**\n * @ngModule CommonModule\n * @description\n *\n * Formats a date value according to locale rules.\n *\n * `DatePipe` is executed only when it detects a pure change to the input value.\n * A pure change is either a change to a primitive input value\n * (such as `String`, `Number`, `Boolean`, or `Symbol`),\n * or a changed object reference (such as `Date`, `Array`, `Function`, or `Object`).\n *\n * Note that mutating a `Date` object does not cause the pipe to be rendered again.\n * To ensure that the pipe is executed, you must create a new `Date` object.\n *\n * Only the `en-US` locale data comes with Angular. To localize dates\n * in another language, you must import the corresponding locale data.\n * See the [I18n guide](guide/i18n-common-format-data-locale) for more information.\n *\n * The time zone of the formatted value can be specified either by passing it in as the second\n * parameter of the pipe, or by setting the default through the `DATE_PIPE_DEFAULT_OPTIONS`\n * injection token. The value that is passed in as the second parameter takes precedence over\n * the one defined using the injection token.\n *\n * @see {@link formatDate}\n *\n *\n * @usageNotes\n *\n * The result of this pipe is not reevaluated when the input is mutated. To avoid the need to\n * reformat the date on every change-detection cycle, treat the date as an immutable object\n * and change the reference when the pipe needs to run again.\n *\n * ### Pre-defined format options\n *\n * | Option        | Equivalent to                       | Examples (given in `en-US` locale)              |\n * |---------------|-------------------------------------|-------------------------------------------------|\n * | `'short'`     | `'M/d/yy, h:mm a'`                  | `6/15/15, 9:03 AM`                              |\n * | `'medium'`    | `'MMM d, y, h:mm:ss a'`             | `Jun 15, 2015, 9:03:01 AM`                      |\n * | `'long'`      | `'MMMM d, y, h:mm:ss a z'`          | `June 15, 2015 at 9:03:01 AM GMT+1`             |\n * | `'full'`      | `'EEEE, MMMM d, y, h:mm:ss a zzzz'` | `Monday, June 15, 2015 at 9:03:01 AM GMT+01:00` |\n * | `'shortDate'` | `'M/d/yy'`                          | `6/15/15`                                       |\n * | `'mediumDate'`| `'MMM d, y'`                        | `Jun 15, 2015`                                  |\n * | `'longDate'`  | `'MMMM d, y'`                       | `June 15, 2015`                                 |\n * | `'fullDate'`  | `'EEEE, MMMM d, y'`                 | `Monday, June 15, 2015`                         |\n * | `'shortTime'` | `'h:mm a'`                          | `9:03 AM`                                       |\n * | `'mediumTime'`| `'h:mm:ss a'`                       | `9:03:01 AM`                                    |\n * | `'longTime'`  | `'h:mm:ss a z'`                     | `9:03:01 AM GMT+1`                              |\n * | `'fullTime'`  | `'h:mm:ss a zzzz'`                  | `9:03:01 AM GMT+01:00`                          |\n *\n * ### Custom format options\n *\n * You can construct a format string using symbols to specify the components\n * of a date-time value, as described in the following table.\n * Format details depend on the locale.\n * Fields marked with (*) are only available in the extra data set for the given locale.\n *\n *  | Field type              | Format      | Description                                                   | Example Value                                              |\n *  |-------------------------|-------------|---------------------------------------------------------------|------------------------------------------------------------|\n *  | Era                     | G, GG & GGG | Abbreviated                                                   | AD                                                         |\n *  |                         | GGGG        | Wide                                                          | Anno Domini                                                |\n *  |                         | GGGGG       | Narrow                                                        | A                                                          |\n *  | Year                    | y           | Numeric: minimum digits                                       | 2, 20, 201, 2017, 20173                                    |\n *  |                         | yy          | Numeric: 2 digits + zero padded                               | 02, 20, 01, 17, 73                                         |\n *  |                         | yyy         | Numeric: 3 digits + zero padded                               | 002, 020, 201, 2017, 20173                                 |\n *  |                         | yyyy        | Numeric: 4 digits or more + zero padded                       | 0002, 0020, 0201, 2017, 20173                              |\n *  | ISO Week-numbering year | Y           | Numeric: minimum digits                                       | 2, 20, 201, 2017, 20173                                    |\n *  |                         | YY          | Numeric: 2 digits + zero padded                               | 02, 20, 01, 17, 73                                         |\n *  |                         | YYY         | Numeric: 3 digits + zero padded                               | 002, 020, 201, 2017, 20173                                 |\n *  |                         | YYYY        | Numeric: 4 digits or more + zero padded                       | 0002, 0020, 0201, 2017, 20173                              |\n *  | Month                   | M           | Numeric: 1 digit                                              | 9, 12                                                      |\n *  |                         | MM          | Numeric: 2 digits + zero padded                               | 09, 12                                                     |\n *  |                         | MMM         | Abbreviated                                                   | Sep                                                        |\n *  |                         | MMMM        | Wide                                                          | September                                                  |\n *  |                         | MMMMM       | Narrow                                                        | S                                                          |\n *  | Month standalone        | L           | Numeric: 1 digit                                              | 9, 12                                                      |\n *  |                         | LL          | Numeric: 2 digits + zero padded                               | 09, 12                                                     |\n *  |                         | LLL         | Abbreviated                                                   | Sep                                                        |\n *  |                         | LLLL        | Wide                                                          | September                                                  |\n *  |                         | LLLLL       | Narrow                                                        | S                                                          |\n *  | ISO Week of year        | w           | Numeric: minimum digits                                       | 1... 53                                                    |\n *  |                         | ww          | Numeric: 2 digits + zero padded                               | 01... 53                                                   |\n *  | Week of month           | W           | Numeric: 1 digit                                              | 1... 5                                                     |\n *  | Day of month            | d           | Numeric: minimum digits                                       | 1                                                          |\n *  |                         | dd          | Numeric: 2 digits + zero padded                               | 01                                                         |\n *  | Week day                | E, EE & EEE | Abbreviated                                                   | Tue                                                        |\n *  |                         | EEEE        | Wide                                                          | Tuesday                                                    |\n *  |                         | EEEEE       | Narrow                                                        | T                                                          |\n *  |                         | EEEEEE      | Short                                                         | Tu                                                         |\n *  | Week day standalone     | c, cc       | Numeric: 1 digit                                              | 2                                                          |\n *  |                         | ccc         | Abbreviated                                                   | Tue                                                        |\n *  |                         | cccc        | Wide                                                          | Tuesday                                                    |\n *  |                         | ccccc       | Narrow                                                        | T                                                          |\n *  |                         | cccccc      | Short                                                         | Tu                                                         |\n *  | Period                  | a, aa & aaa | Abbreviated                                                   | am/pm or AM/PM                                             |\n *  |                         | aaaa        | Wide (fallback to `a` when missing)                           | ante meridiem/post meridiem                                |\n *  |                         | aaaaa       | Narrow                                                        | a/p                                                        |\n *  | Period*                 | B, BB & BBB | Abbreviated                                                   | mid.                                                       |\n *  |                         | BBBB        | Wide                                                          | am, pm, midnight, noon, morning, afternoon, evening, night |\n *  |                         | BBBBB       | Narrow                                                        | md                                                         |\n *  | Period standalone*      | b, bb & bbb | Abbreviated                                                   | mid.                                                       |\n *  |                         | bbbb        | Wide                                                          | am, pm, midnight, noon, morning, afternoon, evening, night |\n *  |                         | bbbbb       | Narrow                                                        | md                                                         |\n *  | Hour 1-12               | h           | Numeric: minimum digits                                       | 1, 12                                                      |\n *  |                         | hh          | Numeric: 2 digits + zero padded                               | 01, 12                                                     |\n *  | Hour 0-23               | H           | Numeric: minimum digits                                       | 0, 23                                                      |\n *  |                         | HH          | Numeric: 2 digits + zero padded                               | 00, 23                                                     |\n *  | Minute                  | m           | Numeric: minimum digits                                       | 8, 59                                                      |\n *  |                         | mm          | Numeric: 2 digits + zero padded                               | 08, 59                                                     |\n *  | Second                  | s           | Numeric: minimum digits                                       | 0... 59                                                    |\n *  |                         | ss          | Numeric: 2 digits + zero padded                               | 00... 59                                                   |\n *  | Fractional seconds      | S           | Numeric: 1 digit                                              | 0... 9                                                     |\n *  |                         | SS          | Numeric: 2 digits + zero padded                               | 00... 99                                                   |\n *  |                         | SSS         | Numeric: 3 digits + zero padded (= milliseconds)              | 000... 999                                                 |\n *  | Zone                    | z, zz & zzz | Short specific non location format (fallback to O)            | GMT-8                                                      |\n *  |                         | zzzz        | Long specific non location format (fallback to OOOO)          | GMT-08:00                                                  |\n *  |                         | Z, ZZ & ZZZ | ISO8601 basic format                                          | -0800                                                      |\n *  |                         | ZZZZ        | Long localized GMT format                                     | GMT-8:00                                                   |\n *  |                         | ZZZZZ       | ISO8601 extended format + Z indicator for offset 0 (= XXXXX)  | -08:00                                                     |\n *  |                         | O, OO & OOO | Short localized GMT format                                    | GMT-8                                                      |\n *  |                         | OOOO        | Long localized GMT format                                     | GMT-08:00                                                  |\n *\n *\n * ### Format examples\n *\n * These examples transform a date into various formats,\n * assuming that `dateObj` is a JavaScript `Date` object for\n * year: 2015, month: 6, day: 15, hour: 21, minute: 43, second: 11,\n * given in the local time for the `en-US` locale.\n *\n * ```\n * {{ dateObj | date }}               // output is 'Jun 15, 2015'\n * {{ dateObj | date:'medium' }}      // output is 'Jun 15, 2015, 9:43:11 PM'\n * {{ dateObj | date:'shortTime' }}   // output is '9:43 PM'\n * {{ dateObj | date:'mm:ss' }}       // output is '43:11'\n * {{ dateObj | date:\"MMM dd, yyyy 'at' hh:mm a\" }}  // output is 'Jun 15, 2015 at 09:43 PM'\n * ```\n *\n * ### Usage example\n *\n * The following component uses a date pipe to display the current date in different formats.\n *\n * ```\n * @Component({\n *  selector: 'date-pipe',\n *  template: `<div>\n *    <p>Today is {{today | date}}</p>\n *    <p>Or if you prefer, {{today | date:'fullDate'}}</p>\n *    <p>The time is {{today | date:'h:mm a z'}}</p>\n *  </div>`\n * })\n * // Get the current date and time as a date-time value.\n * export class DatePipeComponent {\n *   today: number = Date.now();\n * }\n * ```\n *\n * @publicApi\n */\n// clang-format on\nlet DatePipe = /*#__PURE__*/(() => {\n  class DatePipe {\n    constructor(locale, defaultTimezone, defaultOptions) {\n      this.locale = locale;\n      this.defaultTimezone = defaultTimezone;\n      this.defaultOptions = defaultOptions;\n    }\n    transform(value, format, timezone, locale) {\n      if (value == null || value === '' || value !== value) return null;\n      try {\n        const _format = format ?? this.defaultOptions?.dateFormat ?? DEFAULT_DATE_FORMAT;\n        const _timezone = timezone ?? this.defaultOptions?.timezone ?? this.defaultTimezone ?? undefined;\n        return formatDate(value, _format, locale || this.locale, _timezone);\n      } catch (error) {\n        throw invalidPipeArgumentError(DatePipe, error.message);\n      }\n    }\n    static {\n      this.ɵfac = function DatePipe_Factory(t) {\n        return new (t || DatePipe)(i0.ɵɵdirectiveInject(LOCALE_ID, 16), i0.ɵɵdirectiveInject(DATE_PIPE_DEFAULT_TIMEZONE, 24), i0.ɵɵdirectiveInject(DATE_PIPE_DEFAULT_OPTIONS, 24));\n      };\n    }\n    static {\n      this.ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({\n        name: \"date\",\n        type: DatePipe,\n        pure: true,\n        standalone: true\n      });\n    }\n  }\n  return DatePipe;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst _INTERPOLATION_REGEXP = /#/g;\n/**\n * @ngModule CommonModule\n * @description\n *\n * Maps a value to a string that pluralizes the value according to locale rules.\n *\n * @usageNotes\n *\n * ### Example\n *\n * {@example common/pipes/ts/i18n_pipe.ts region='I18nPluralPipeComponent'}\n *\n * @publicApi\n */\nlet I18nPluralPipe = /*#__PURE__*/(() => {\n  class I18nPluralPipe {\n    constructor(_localization) {\n      this._localization = _localization;\n    }\n    /**\n     * @param value the number to be formatted\n     * @param pluralMap an object that mimics the ICU format, see\n     * https://unicode-org.github.io/icu/userguide/format_parse/messages/.\n     * @param locale a `string` defining the locale to use (uses the current {@link LOCALE_ID} by\n     * default).\n     */\n    transform(value, pluralMap, locale) {\n      if (value == null) return '';\n      if (typeof pluralMap !== 'object' || pluralMap === null) {\n        throw invalidPipeArgumentError(I18nPluralPipe, pluralMap);\n      }\n      const key = getPluralCategory(value, Object.keys(pluralMap), this._localization, locale);\n      return pluralMap[key].replace(_INTERPOLATION_REGEXP, value.toString());\n    }\n    static {\n      this.ɵfac = function I18nPluralPipe_Factory(t) {\n        return new (t || I18nPluralPipe)(i0.ɵɵdirectiveInject(NgLocalization, 16));\n      };\n    }\n    static {\n      this.ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({\n        name: \"i18nPlural\",\n        type: I18nPluralPipe,\n        pure: true,\n        standalone: true\n      });\n    }\n  }\n  return I18nPluralPipe;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * @ngModule CommonModule\n * @description\n *\n * Generic selector that displays the string that matches the current value.\n *\n * If none of the keys of the `mapping` match the `value`, then the content\n * of the `other` key is returned when present, otherwise an empty string is returned.\n *\n * @usageNotes\n *\n * ### Example\n *\n * {@example common/pipes/ts/i18n_pipe.ts region='I18nSelectPipeComponent'}\n *\n * @publicApi\n */\nlet I18nSelectPipe = /*#__PURE__*/(() => {\n  class I18nSelectPipe {\n    /**\n     * @param value a string to be internationalized.\n     * @param mapping an object that indicates the text that should be displayed\n     * for different values of the provided `value`.\n     */\n    transform(value, mapping) {\n      if (value == null) return '';\n      if (typeof mapping !== 'object' || typeof value !== 'string') {\n        throw invalidPipeArgumentError(I18nSelectPipe, mapping);\n      }\n      if (mapping.hasOwnProperty(value)) {\n        return mapping[value];\n      }\n      if (mapping.hasOwnProperty('other')) {\n        return mapping['other'];\n      }\n      return '';\n    }\n    static {\n      this.ɵfac = function I18nSelectPipe_Factory(t) {\n        return new (t || I18nSelectPipe)();\n      };\n    }\n    static {\n      this.ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({\n        name: \"i18nSelect\",\n        type: I18nSelectPipe,\n        pure: true,\n        standalone: true\n      });\n    }\n  }\n  return I18nSelectPipe;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * @ngModule CommonModule\n * @description\n *\n * Converts a value into its JSON-format representation.  Useful for debugging.\n *\n * @usageNotes\n *\n * The following component uses a JSON pipe to convert an object\n * to JSON format, and displays the string in both formats for comparison.\n *\n * {@example common/pipes/ts/json_pipe.ts region='JsonPipe'}\n *\n * @publicApi\n */\nlet JsonPipe = /*#__PURE__*/(() => {\n  class JsonPipe {\n    /**\n     * @param value A value of any type to convert into a JSON-format string.\n     */\n    transform(value) {\n      return JSON.stringify(value, null, 2);\n    }\n    static {\n      this.ɵfac = function JsonPipe_Factory(t) {\n        return new (t || JsonPipe)();\n      };\n    }\n    static {\n      this.ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({\n        name: \"json\",\n        type: JsonPipe,\n        pure: false,\n        standalone: true\n      });\n    }\n  }\n  return JsonPipe;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction makeKeyValuePair(key, value) {\n  return {\n    key: key,\n    value: value\n  };\n}\n/**\n * @ngModule CommonModule\n * @description\n *\n * Transforms Object or Map into an array of key value pairs.\n *\n * The output array will be ordered by keys.\n * By default the comparator will be by Unicode point value.\n * You can optionally pass a compareFn if your keys are complex types.\n *\n * @usageNotes\n * ### Examples\n *\n * This examples show how an Object or a Map can be iterated by ngFor with the use of this\n * keyvalue pipe.\n *\n * {@example common/pipes/ts/keyvalue_pipe.ts region='KeyValuePipe'}\n *\n * @publicApi\n */\nlet KeyValuePipe = /*#__PURE__*/(() => {\n  class KeyValuePipe {\n    constructor(differs) {\n      this.differs = differs;\n      this.keyValues = [];\n      this.compareFn = defaultComparator;\n    }\n    transform(input, compareFn = defaultComparator) {\n      if (!input || !(input instanceof Map) && typeof input !== 'object') {\n        return null;\n      }\n      // make a differ for whatever type we've been passed in\n      this.differ ??= this.differs.find(input).create();\n      const differChanges = this.differ.diff(input);\n      const compareFnChanged = compareFn !== this.compareFn;\n      if (differChanges) {\n        this.keyValues = [];\n        differChanges.forEachItem(r => {\n          this.keyValues.push(makeKeyValuePair(r.key, r.currentValue));\n        });\n      }\n      if (differChanges || compareFnChanged) {\n        this.keyValues.sort(compareFn);\n        this.compareFn = compareFn;\n      }\n      return this.keyValues;\n    }\n    static {\n      this.ɵfac = function KeyValuePipe_Factory(t) {\n        return new (t || KeyValuePipe)(i0.ɵɵdirectiveInject(i0.KeyValueDiffers, 16));\n      };\n    }\n    static {\n      this.ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({\n        name: \"keyvalue\",\n        type: KeyValuePipe,\n        pure: false,\n        standalone: true\n      });\n    }\n  }\n  return KeyValuePipe;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction defaultComparator(keyValueA, keyValueB) {\n  const a = keyValueA.key;\n  const b = keyValueB.key;\n  // if same exit with 0;\n  if (a === b) return 0;\n  // make sure that undefined are at the end of the sort.\n  if (a === undefined) return 1;\n  if (b === undefined) return -1;\n  // make sure that nulls are at the end of the sort.\n  if (a === null) return 1;\n  if (b === null) return -1;\n  if (typeof a == 'string' && typeof b == 'string') {\n    return a < b ? -1 : 1;\n  }\n  if (typeof a == 'number' && typeof b == 'number') {\n    return a - b;\n  }\n  if (typeof a == 'boolean' && typeof b == 'boolean') {\n    return a < b ? -1 : 1;\n  }\n  // `a` and `b` are of different types. Compare their string values.\n  const aString = String(a);\n  const bString = String(b);\n  return aString == bString ? 0 : aString < bString ? -1 : 1;\n}\n\n/**\n * @ngModule CommonModule\n * @description\n *\n * Formats a value according to digit options and locale rules.\n * Locale determines group sizing and separator,\n * decimal point character, and other locale-specific configurations.\n *\n * @see {@link formatNumber}\n *\n * @usageNotes\n *\n * ### digitsInfo\n *\n * The value's decimal representation is specified by the `digitsInfo`\n * parameter, written in the following format:<br>\n *\n * ```\n * {minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}\n * ```\n *\n *  - `minIntegerDigits`:\n * The minimum number of integer digits before the decimal point.\n * Default is 1.\n *\n * - `minFractionDigits`:\n * The minimum number of digits after the decimal point.\n * Default is 0.\n *\n *  - `maxFractionDigits`:\n * The maximum number of digits after the decimal point.\n * Default is 3.\n *\n * If the formatted value is truncated it will be rounded using the \"to-nearest\" method:\n *\n * ```\n * {{3.6 | number: '1.0-0'}}\n * <!--will output '4'-->\n *\n * {{-3.6 | number:'1.0-0'}}\n * <!--will output '-4'-->\n * ```\n *\n * ### locale\n *\n * `locale` will format a value according to locale rules.\n * Locale determines group sizing and separator,\n * decimal point character, and other locale-specific configurations.\n *\n * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.\n *\n * See [Setting your app locale](guide/i18n-common-locale-id).\n *\n * ### Example\n *\n * The following code shows how the pipe transforms values\n * according to various format specifications,\n * where the caller's default locale is `en-US`.\n *\n * <code-example path=\"common/pipes/ts/number_pipe.ts\" region='NumberPipe'></code-example>\n *\n * @publicApi\n */\nlet DecimalPipe = /*#__PURE__*/(() => {\n  class DecimalPipe {\n    constructor(_locale) {\n      this._locale = _locale;\n    }\n    /**\n     * @param value The value to be formatted.\n     * @param digitsInfo Sets digit and decimal representation.\n     * [See more](#digitsinfo).\n     * @param locale Specifies what locale format rules to use.\n     * [See more](#locale).\n     */\n    transform(value, digitsInfo, locale) {\n      if (!isValue(value)) return null;\n      locale ||= this._locale;\n      try {\n        const num = strToNumber(value);\n        return formatNumber(num, locale, digitsInfo);\n      } catch (error) {\n        throw invalidPipeArgumentError(DecimalPipe, error.message);\n      }\n    }\n    static {\n      this.ɵfac = function DecimalPipe_Factory(t) {\n        return new (t || DecimalPipe)(i0.ɵɵdirectiveInject(LOCALE_ID, 16));\n      };\n    }\n    static {\n      this.ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({\n        name: \"number\",\n        type: DecimalPipe,\n        pure: true,\n        standalone: true\n      });\n    }\n  }\n  return DecimalPipe;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @ngModule CommonModule\n * @description\n *\n * Transforms a number to a percentage\n * string, formatted according to locale rules that determine group sizing and\n * separator, decimal-point character, and other locale-specific\n * configurations.\n *\n * @see {@link formatPercent}\n *\n * @usageNotes\n * The following code shows how the pipe transforms numbers\n * into text strings, according to various format specifications,\n * where the caller's default locale is `en-US`.\n *\n * <code-example path=\"common/pipes/ts/percent_pipe.ts\" region='PercentPipe'></code-example>\n *\n * @publicApi\n */\nlet PercentPipe = /*#__PURE__*/(() => {\n  class PercentPipe {\n    constructor(_locale) {\n      this._locale = _locale;\n    }\n    /**\n     *\n     * @param value The number to be formatted as a percentage.\n     * @param digitsInfo Decimal representation options, specified by a string\n     * in the following format:<br>\n     * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.\n     *   - `minIntegerDigits`: The minimum number of integer digits before the decimal point.\n     * Default is `1`.\n     *   - `minFractionDigits`: The minimum number of digits after the decimal point.\n     * Default is `0`.\n     *   - `maxFractionDigits`: The maximum number of digits after the decimal point.\n     * Default is `0`.\n     * @param locale A locale code for the locale format rules to use.\n     * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.\n     * See [Setting your app locale](guide/i18n-common-locale-id).\n     */\n    transform(value, digitsInfo, locale) {\n      if (!isValue(value)) return null;\n      locale ||= this._locale;\n      try {\n        const num = strToNumber(value);\n        return formatPercent(num, locale, digitsInfo);\n      } catch (error) {\n        throw invalidPipeArgumentError(PercentPipe, error.message);\n      }\n    }\n    static {\n      this.ɵfac = function PercentPipe_Factory(t) {\n        return new (t || PercentPipe)(i0.ɵɵdirectiveInject(LOCALE_ID, 16));\n      };\n    }\n    static {\n      this.ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({\n        name: \"percent\",\n        type: PercentPipe,\n        pure: true,\n        standalone: true\n      });\n    }\n  }\n  return PercentPipe;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @ngModule CommonModule\n * @description\n *\n * Transforms a number to a currency string, formatted according to locale rules\n * that determine group sizing and separator, decimal-point character,\n * and other locale-specific configurations.\n *\n *\n * @see {@link getCurrencySymbol}\n * @see {@link formatCurrency}\n *\n * @usageNotes\n * The following code shows how the pipe transforms numbers\n * into text strings, according to various format specifications,\n * where the caller's default locale is `en-US`.\n *\n * <code-example path=\"common/pipes/ts/currency_pipe.ts\" region='CurrencyPipe'></code-example>\n *\n * @publicApi\n */\nlet CurrencyPipe = /*#__PURE__*/(() => {\n  class CurrencyPipe {\n    constructor(_locale, _defaultCurrencyCode = 'USD') {\n      this._locale = _locale;\n      this._defaultCurrencyCode = _defaultCurrencyCode;\n    }\n    /**\n     *\n     * @param value The number to be formatted as currency.\n     * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code,\n     * such as `USD` for the US dollar and `EUR` for the euro. The default currency code can be\n     * configured using the `DEFAULT_CURRENCY_CODE` injection token.\n     * @param display The format for the currency indicator. One of the following:\n     *   - `code`: Show the code (such as `USD`).\n     *   - `symbol`(default): Show the symbol (such as `$`).\n     *   - `symbol-narrow`: Use the narrow symbol for locales that have two symbols for their\n     * currency.\n     * For example, the Canadian dollar CAD has the symbol `CA$` and the symbol-narrow `$`. If the\n     * locale has no narrow symbol, uses the standard symbol for the locale.\n     *   - String: Use the given string value instead of a code or a symbol.\n     * For example, an empty string will suppress the currency & symbol.\n     *   - Boolean (marked deprecated in v5): `true` for symbol and false for `code`.\n     *\n     * @param digitsInfo Decimal representation options, specified by a string\n     * in the following format:<br>\n     * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.\n     *   - `minIntegerDigits`: The minimum number of integer digits before the decimal point.\n     * Default is `1`.\n     *   - `minFractionDigits`: The minimum number of digits after the decimal point.\n     * Default is `2`.\n     *   - `maxFractionDigits`: The maximum number of digits after the decimal point.\n     * Default is `2`.\n     * If not provided, the number will be formatted with the proper amount of digits,\n     * depending on what the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) specifies.\n     * For example, the Canadian dollar has 2 digits, whereas the Chilean peso has none.\n     * @param locale A locale code for the locale format rules to use.\n     * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.\n     * See [Setting your app locale](guide/i18n-common-locale-id).\n     */\n    transform(value, currencyCode = this._defaultCurrencyCode, display = 'symbol', digitsInfo, locale) {\n      if (!isValue(value)) return null;\n      locale ||= this._locale;\n      if (typeof display === 'boolean') {\n        if ((typeof ngDevMode === 'undefined' || ngDevMode) && console && console.warn) {\n          console.warn(`Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are \"code\", \"symbol\" or \"symbol-narrow\".`);\n        }\n        display = display ? 'symbol' : 'code';\n      }\n      let currency = currencyCode || this._defaultCurrencyCode;\n      if (display !== 'code') {\n        if (display === 'symbol' || display === 'symbol-narrow') {\n          currency = getCurrencySymbol(currency, display === 'symbol' ? 'wide' : 'narrow', locale);\n        } else {\n          currency = display;\n        }\n      }\n      try {\n        const num = strToNumber(value);\n        return formatCurrency(num, locale, currency, currencyCode, digitsInfo);\n      } catch (error) {\n        throw invalidPipeArgumentError(CurrencyPipe, error.message);\n      }\n    }\n    static {\n      this.ɵfac = function CurrencyPipe_Factory(t) {\n        return new (t || CurrencyPipe)(i0.ɵɵdirectiveInject(LOCALE_ID, 16), i0.ɵɵdirectiveInject(DEFAULT_CURRENCY_CODE, 16));\n      };\n    }\n    static {\n      this.ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({\n        name: \"currency\",\n        type: CurrencyPipe,\n        pure: true,\n        standalone: true\n      });\n    }\n  }\n  return CurrencyPipe;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction isValue(value) {\n  return !(value == null || value === '' || value !== value);\n}\n/**\n * Transforms a string into a number (if needed).\n */\nfunction strToNumber(value) {\n  // Convert strings to numbers\n  if (typeof value === 'string' && !isNaN(Number(value) - parseFloat(value))) {\n    return Number(value);\n  }\n  if (typeof value !== 'number') {\n    throw new Error(`${value} is not a number`);\n  }\n  return value;\n}\n\n/**\n * @ngModule CommonModule\n * @description\n *\n * Creates a new `Array` or `String` containing a subset (slice) of the elements.\n *\n * @usageNotes\n *\n * All behavior is based on the expected behavior of the JavaScript API `Array.prototype.slice()`\n * and `String.prototype.slice()`.\n *\n * When operating on an `Array`, the returned `Array` is always a copy even when all\n * the elements are being returned.\n *\n * When operating on a blank value, the pipe returns the blank value.\n *\n * ### List Example\n *\n * This `ngFor` example:\n *\n * {@example common/pipes/ts/slice_pipe.ts region='SlicePipe_list'}\n *\n * produces the following:\n *\n * ```html\n * <li>b</li>\n * <li>c</li>\n * ```\n *\n * ### String Examples\n *\n * {@example common/pipes/ts/slice_pipe.ts region='SlicePipe_string'}\n *\n * @publicApi\n */\nlet SlicePipe = /*#__PURE__*/(() => {\n  class SlicePipe {\n    transform(value, start, end) {\n      if (value == null) return null;\n      if (!this.supports(value)) {\n        throw invalidPipeArgumentError(SlicePipe, value);\n      }\n      return value.slice(start, end);\n    }\n    supports(obj) {\n      return typeof obj === 'string' || Array.isArray(obj);\n    }\n    static {\n      this.ɵfac = function SlicePipe_Factory(t) {\n        return new (t || SlicePipe)();\n      };\n    }\n    static {\n      this.ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({\n        name: \"slice\",\n        type: SlicePipe,\n        pure: false,\n        standalone: true\n      });\n    }\n  }\n  return SlicePipe;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * @module\n * @description\n * This module provides a set of common Pipes.\n */\n/**\n * A collection of Angular pipes that are likely to be used in each and every application.\n */\nconst COMMON_PIPES = [AsyncPipe, UpperCasePipe, LowerCasePipe, JsonPipe, SlicePipe, DecimalPipe, PercentPipe, TitleCasePipe, CurrencyPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, KeyValuePipe];\n\n// Note: This does not contain the location providers,\n// as they need some platform specific implementations to work.\n/**\n * Exports all the basic Angular directives and pipes,\n * such as `NgIf`, `NgForOf`, `DecimalPipe`, and so on.\n * Re-exported by `BrowserModule`, which is included automatically in the root\n * `AppModule` when you create a new app with the CLI `new` command.\n *\n * @publicApi\n */\nlet CommonModule = /*#__PURE__*/(() => {\n  class CommonModule {\n    static {\n      this.ɵfac = function CommonModule_Factory(t) {\n        return new (t || CommonModule)();\n      };\n    }\n    static {\n      this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n        type: CommonModule\n      });\n    }\n    static {\n      this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({});\n    }\n  }\n  return CommonModule;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst PLATFORM_BROWSER_ID = 'browser';\nconst PLATFORM_SERVER_ID = 'server';\nconst PLATFORM_WORKER_APP_ID = 'browserWorkerApp';\nconst PLATFORM_WORKER_UI_ID = 'browserWorkerUi';\n/**\n * Returns whether a platform id represents a browser platform.\n * @publicApi\n */\nfunction isPlatformBrowser(platformId) {\n  return platformId === PLATFORM_BROWSER_ID;\n}\n/**\n * Returns whether a platform id represents a server platform.\n * @publicApi\n */\nfunction isPlatformServer(platformId) {\n  return platformId === PLATFORM_SERVER_ID;\n}\n/**\n * Returns whether a platform id represents a web worker app platform.\n * @publicApi\n * @deprecated This function serves no purpose since the removal of the Webworker platform. It will\n *     always return `false`.\n */\nfunction isPlatformWorkerApp(platformId) {\n  return platformId === PLATFORM_WORKER_APP_ID;\n}\n/**\n * Returns whether a platform id represents a web worker UI platform.\n * @publicApi\n * @deprecated This function serves no purpose since the removal of the Webworker platform. It will\n *     always return `false`.\n */\nfunction isPlatformWorkerUi(platformId) {\n  return platformId === PLATFORM_WORKER_UI_ID;\n}\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the common package.\n */\n/**\n * @publicApi\n */\nconst VERSION = /*#__PURE__*/new Version('17.3.11');\n\n/**\n * Defines a scroll position manager. Implemented by `BrowserViewportScroller`.\n *\n * @publicApi\n */\nlet ViewportScroller = /*#__PURE__*/(() => {\n  class ViewportScroller {\n    // De-sugared tree-shakable injection\n    // See #23917\n    /** @nocollapse */\n    static {\n      this.ɵprov = ɵɵdefineInjectable({\n        token: ViewportScroller,\n        providedIn: 'root',\n        factory: () => isPlatformBrowser(inject(PLATFORM_ID)) ? new BrowserViewportScroller(inject(DOCUMENT), window) : new NullViewportScroller()\n      });\n    }\n  }\n  return ViewportScroller;\n})();\n/**\n * Manages the scroll position for a browser window.\n */\nclass BrowserViewportScroller {\n  constructor(document, window) {\n    this.document = document;\n    this.window = window;\n    this.offset = () => [0, 0];\n  }\n  /**\n   * Configures the top offset used when scrolling to an anchor.\n   * @param offset A position in screen coordinates (a tuple with x and y values)\n   * or a function that returns the top offset position.\n   *\n   */\n  setOffset(offset) {\n    if (Array.isArray(offset)) {\n      this.offset = () => offset;\n    } else {\n      this.offset = offset;\n    }\n  }\n  /**\n   * Retrieves the current scroll position.\n   * @returns The position in screen coordinates.\n   */\n  getScrollPosition() {\n    return [this.window.scrollX, this.window.scrollY];\n  }\n  /**\n   * Sets the scroll position.\n   * @param position The new position in screen coordinates.\n   */\n  scrollToPosition(position) {\n    this.window.scrollTo(position[0], position[1]);\n  }\n  /**\n   * Scrolls to an element and attempts to focus the element.\n   *\n   * Note that the function name here is misleading in that the target string may be an ID for a\n   * non-anchor element.\n   *\n   * @param target The ID of an element or name of the anchor.\n   *\n   * @see https://html.spec.whatwg.org/#the-indicated-part-of-the-document\n   * @see https://html.spec.whatwg.org/#scroll-to-fragid\n   */\n  scrollToAnchor(target) {\n    const elSelected = findAnchorFromDocument(this.document, target);\n    if (elSelected) {\n      this.scrollToElement(elSelected);\n      // After scrolling to the element, the spec dictates that we follow the focus steps for the\n      // target. Rather than following the robust steps, simply attempt focus.\n      //\n      // @see https://html.spec.whatwg.org/#get-the-focusable-area\n      // @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLOrForeignElement/focus\n      // @see https://html.spec.whatwg.org/#focusable-area\n      elSelected.focus();\n    }\n  }\n  /**\n   * Disables automatic scroll restoration provided by the browser.\n   */\n  setHistoryScrollRestoration(scrollRestoration) {\n    this.window.history.scrollRestoration = scrollRestoration;\n  }\n  /**\n   * Scrolls to an element using the native offset and the specified offset set on this scroller.\n   *\n   * The offset can be used when we know that there is a floating header and scrolling naively to an\n   * element (ex: `scrollIntoView`) leaves the element hidden behind the floating header.\n   */\n  scrollToElement(el) {\n    const rect = el.getBoundingClientRect();\n    const left = rect.left + this.window.pageXOffset;\n    const top = rect.top + this.window.pageYOffset;\n    const offset = this.offset();\n    this.window.scrollTo(left - offset[0], top - offset[1]);\n  }\n}\nfunction findAnchorFromDocument(document, target) {\n  const documentResult = document.getElementById(target) || document.getElementsByName(target)[0];\n  if (documentResult) {\n    return documentResult;\n  }\n  // `getElementById` and `getElementsByName` won't pierce through the shadow DOM so we\n  // have to traverse the DOM manually and do the lookup through the shadow roots.\n  if (typeof document.createTreeWalker === 'function' && document.body && typeof document.body.attachShadow === 'function') {\n    const treeWalker = document.createTreeWalker(document.body, NodeFilter.SHOW_ELEMENT);\n    let currentNode = treeWalker.currentNode;\n    while (currentNode) {\n      const shadowRoot = currentNode.shadowRoot;\n      if (shadowRoot) {\n        // Note that `ShadowRoot` doesn't support `getElementsByName`\n        // so we have to fall back to `querySelector`.\n        const result = shadowRoot.getElementById(target) || shadowRoot.querySelector(`[name=\"${target}\"]`);\n        if (result) {\n          return result;\n        }\n      }\n      currentNode = treeWalker.nextNode();\n    }\n  }\n  return null;\n}\n/**\n * Provides an empty implementation of the viewport scroller.\n */\nclass NullViewportScroller {\n  /**\n   * Empty implementation\n   */\n  setOffset(offset) {}\n  /**\n   * Empty implementation\n   */\n  getScrollPosition() {\n    return [0, 0];\n  }\n  /**\n   * Empty implementation\n   */\n  scrollToPosition(position) {}\n  /**\n   * Empty implementation\n   */\n  scrollToAnchor(anchor) {}\n  /**\n   * Empty implementation\n   */\n  setHistoryScrollRestoration(scrollRestoration) {}\n}\n\n/**\n * A wrapper around the `XMLHttpRequest` constructor.\n *\n * @publicApi\n */\nclass XhrFactory {}\n\n/**\n * Value (out of 100) of the requested quality for placeholder images.\n */\nconst PLACEHOLDER_QUALITY = '20';\n\n// Converts a string that represents a URL into a URL class instance.\nfunction getUrl(src, win) {\n  // Don't use a base URL is the URL is absolute.\n  return isAbsoluteUrl(src) ? new URL(src) : new URL(src, win.location.href);\n}\n// Checks whether a URL is absolute (i.e. starts with `http://` or `https://`).\nfunction isAbsoluteUrl(src) {\n  return /^https?:\\/\\//.test(src);\n}\n// Given a URL, extract the hostname part.\n// If a URL is a relative one - the URL is returned as is.\nfunction extractHostname(url) {\n  return isAbsoluteUrl(url) ? new URL(url).hostname : url;\n}\nfunction isValidPath(path) {\n  const isString = typeof path === 'string';\n  if (!isString || path.trim() === '') {\n    return false;\n  }\n  // Calling new URL() will throw if the path string is malformed\n  try {\n    const url = new URL(path);\n    return true;\n  } catch {\n    return false;\n  }\n}\nfunction normalizePath(path) {\n  return path.endsWith('/') ? path.slice(0, -1) : path;\n}\nfunction normalizeSrc(src) {\n  return src.startsWith('/') ? src.slice(1) : src;\n}\n\n/**\n * Noop image loader that does no transformation to the original src and just returns it as is.\n * This loader is used as a default one if more specific logic is not provided in an app config.\n *\n * @see {@link ImageLoader}\n * @see {@link NgOptimizedImage}\n */\nconst noopImageLoader = config => config.src;\n/**\n * Injection token that configures the image loader function.\n *\n * @see {@link ImageLoader}\n * @see {@link NgOptimizedImage}\n * @publicApi\n */\nconst IMAGE_LOADER = /*#__PURE__*/new InjectionToken(ngDevMode ? 'ImageLoader' : '', {\n  providedIn: 'root',\n  factory: () => noopImageLoader\n});\n/**\n * Internal helper function that makes it easier to introduce custom image loaders for the\n * `NgOptimizedImage` directive. It is enough to specify a URL builder function to obtain full DI\n * configuration for a given loader: a DI token corresponding to the actual loader function, plus DI\n * tokens managing preconnect check functionality.\n * @param buildUrlFn a function returning a full URL based on loader's configuration\n * @param exampleUrls example of full URLs for a given loader (used in error messages)\n * @returns a set of DI providers corresponding to the configured image loader\n */\nfunction createImageLoader(buildUrlFn, exampleUrls) {\n  return function provideImageLoader(path) {\n    if (!isValidPath(path)) {\n      throwInvalidPathError(path, exampleUrls || []);\n    }\n    // The trailing / is stripped (if provided) to make URL construction (concatenation) easier in\n    // the individual loader functions.\n    path = normalizePath(path);\n    const loaderFn = config => {\n      if (isAbsoluteUrl(config.src)) {\n        // Image loader functions expect an image file name (e.g. `my-image.png`)\n        // or a relative path + a file name (e.g. `/a/b/c/my-image.png`) as an input,\n        // so the final absolute URL can be constructed.\n        // When an absolute URL is provided instead - the loader can not\n        // build a final URL, thus the error is thrown to indicate that.\n        throwUnexpectedAbsoluteUrlError(path, config.src);\n      }\n      return buildUrlFn(path, {\n        ...config,\n        src: normalizeSrc(config.src)\n      });\n    };\n    const providers = [{\n      provide: IMAGE_LOADER,\n      useValue: loaderFn\n    }];\n    return providers;\n  };\n}\nfunction throwInvalidPathError(path, exampleUrls) {\n  throw new ɵRuntimeError(2959 /* RuntimeErrorCode.INVALID_LOADER_ARGUMENTS */, ngDevMode && `Image loader has detected an invalid path (\\`${path}\\`). ` + `To fix this, supply a path using one of the following formats: ${exampleUrls.join(' or ')}`);\n}\nfunction throwUnexpectedAbsoluteUrlError(path, url) {\n  throw new ɵRuntimeError(2959 /* RuntimeErrorCode.INVALID_LOADER_ARGUMENTS */, ngDevMode && `Image loader has detected a \\`<img>\\` tag with an invalid \\`ngSrc\\` attribute: ${url}. ` + `This image loader expects \\`ngSrc\\` to be a relative URL - ` + `however the provided value is an absolute URL. ` + `To fix this, provide \\`ngSrc\\` as a path relative to the base URL ` + `configured for this loader (\\`${path}\\`).`);\n}\n\n/**\n * Function that generates an ImageLoader for [Cloudflare Image\n * Resizing](https://developers.cloudflare.com/images/image-resizing/) and turns it into an Angular\n * provider. Note: Cloudflare has multiple image products - this provider is specifically for\n * Cloudflare Image Resizing; it will not work with Cloudflare Images or Cloudflare Polish.\n *\n * @param path Your domain name, e.g. https://mysite.com\n * @returns Provider that provides an ImageLoader function\n *\n * @publicApi\n */\nconst provideCloudflareLoader = /*#__PURE__*/createImageLoader(createCloudflareUrl, ngDevMode ? ['https://<ZONE>/cdn-cgi/image/<OPTIONS>/<SOURCE-IMAGE>'] : undefined);\nfunction createCloudflareUrl(path, config) {\n  let params = `format=auto`;\n  if (config.width) {\n    params += `,width=${config.width}`;\n  }\n  // When requesting a placeholder image we ask for a low quality image to reduce the load time.\n  if (config.isPlaceholder) {\n    params += `,quality=${PLACEHOLDER_QUALITY}`;\n  }\n  // Cloudflare image URLs format:\n  // https://developers.cloudflare.com/images/image-resizing/url-format/\n  return `${path}/cdn-cgi/image/${params}/${config.src}`;\n}\n\n/**\n * Name and URL tester for Cloudinary.\n */\nconst cloudinaryLoaderInfo = {\n  name: 'Cloudinary',\n  testUrl: isCloudinaryUrl\n};\nconst CLOUDINARY_LOADER_REGEX = /https?\\:\\/\\/[^\\/]+\\.cloudinary\\.com\\/.+/;\n/**\n * Tests whether a URL is from Cloudinary CDN.\n */\nfunction isCloudinaryUrl(url) {\n  return CLOUDINARY_LOADER_REGEX.test(url);\n}\n/**\n * Function that generates an ImageLoader for Cloudinary and turns it into an Angular provider.\n *\n * @param path Base URL of your Cloudinary images\n * This URL should match one of the following formats:\n * https://res.cloudinary.com/mysite\n * https://mysite.cloudinary.com\n * https://subdomain.mysite.com\n * @returns Set of providers to configure the Cloudinary loader.\n *\n * @publicApi\n */\nconst provideCloudinaryLoader = /*#__PURE__*/createImageLoader(createCloudinaryUrl, ngDevMode ? ['https://res.cloudinary.com/mysite', 'https://mysite.cloudinary.com', 'https://subdomain.mysite.com'] : undefined);\nfunction createCloudinaryUrl(path, config) {\n  // Cloudinary image URLformat:\n  // https://cloudinary.com/documentation/image_transformations#transformation_url_structure\n  // Example of a Cloudinary image URL:\n  // https://res.cloudinary.com/mysite/image/upload/c_scale,f_auto,q_auto,w_600/marketing/tile-topics-m.png\n  // For a placeholder image, we use the lowest image setting available to reduce the load time\n  // else we use the auto size\n  const quality = config.isPlaceholder ? 'q_auto:low' : 'q_auto';\n  let params = `f_auto,${quality}`;\n  if (config.width) {\n    params += `,w_${config.width}`;\n  }\n  return `${path}/image/upload/${params}/${config.src}`;\n}\n\n/**\n * Name and URL tester for ImageKit.\n */\nconst imageKitLoaderInfo = {\n  name: 'ImageKit',\n  testUrl: isImageKitUrl\n};\nconst IMAGE_KIT_LOADER_REGEX = /https?\\:\\/\\/[^\\/]+\\.imagekit\\.io\\/.+/;\n/**\n * Tests whether a URL is from ImageKit CDN.\n */\nfunction isImageKitUrl(url) {\n  return IMAGE_KIT_LOADER_REGEX.test(url);\n}\n/**\n * Function that generates an ImageLoader for ImageKit and turns it into an Angular provider.\n *\n * @param path Base URL of your ImageKit images\n * This URL should match one of the following formats:\n * https://ik.imagekit.io/myaccount\n * https://subdomain.mysite.com\n * @returns Set of providers to configure the ImageKit loader.\n *\n * @publicApi\n */\nconst provideImageKitLoader = /*#__PURE__*/createImageLoader(createImagekitUrl, ngDevMode ? ['https://ik.imagekit.io/mysite', 'https://subdomain.mysite.com'] : undefined);\nfunction createImagekitUrl(path, config) {\n  // Example of an ImageKit image URL:\n  // https://ik.imagekit.io/demo/tr:w-300,h-300/medium_cafe_B1iTdD0C.jpg\n  const {\n    src,\n    width\n  } = config;\n  const params = [];\n  if (width) {\n    params.push(`w-${width}`);\n  }\n  // When requesting a placeholder image we ask for a low quality image to reduce the load time.\n  if (config.isPlaceholder) {\n    params.push(`q-${PLACEHOLDER_QUALITY}`);\n  }\n  const urlSegments = params.length ? [path, `tr:${params.join(',')}`, src] : [path, src];\n  const url = new URL(urlSegments.join('/'));\n  return url.href;\n}\n\n/**\n * Name and URL tester for Imgix.\n */\nconst imgixLoaderInfo = {\n  name: 'Imgix',\n  testUrl: isImgixUrl\n};\nconst IMGIX_LOADER_REGEX = /https?\\:\\/\\/[^\\/]+\\.imgix\\.net\\/.+/;\n/**\n * Tests whether a URL is from Imgix CDN.\n */\nfunction isImgixUrl(url) {\n  return IMGIX_LOADER_REGEX.test(url);\n}\n/**\n * Function that generates an ImageLoader for Imgix and turns it into an Angular provider.\n *\n * @param path path to the desired Imgix origin,\n * e.g. https://somepath.imgix.net or https://images.mysite.com\n * @returns Set of providers to configure the Imgix loader.\n *\n * @publicApi\n */\nconst provideImgixLoader = /*#__PURE__*/createImageLoader(createImgixUrl, ngDevMode ? ['https://somepath.imgix.net/'] : undefined);\nfunction createImgixUrl(path, config) {\n  const url = new URL(`${path}/${config.src}`);\n  // This setting ensures the smallest allowable format is set.\n  url.searchParams.set('auto', 'format');\n  if (config.width) {\n    url.searchParams.set('w', config.width.toString());\n  }\n  // When requesting a placeholder image we ask a low quality image to reduce the load time.\n  if (config.isPlaceholder) {\n    url.searchParams.set('q', PLACEHOLDER_QUALITY);\n  }\n  return url.href;\n}\n\n/**\n * Name and URL tester for Netlify.\n */\nconst netlifyLoaderInfo = {\n  name: 'Netlify',\n  testUrl: isNetlifyUrl\n};\nconst NETLIFY_LOADER_REGEX = /https?\\:\\/\\/[^\\/]+\\.netlify\\.app\\/.+/;\n/**\n * Tests whether a URL is from a Netlify site. This won't catch sites with a custom domain,\n * but it's a good start for sites in development. This is only used to warn users who haven't\n * configured an image loader.\n */\nfunction isNetlifyUrl(url) {\n  return NETLIFY_LOADER_REGEX.test(url);\n}\n/**\n * Function that generates an ImageLoader for Netlify and turns it into an Angular provider.\n *\n * @param path optional URL of the desired Netlify site. Defaults to the current site.\n * @returns Set of providers to configure the Netlify loader.\n *\n * @publicApi\n */\nfunction provideNetlifyLoader(path) {\n  if (path && !isValidPath(path)) {\n    throw new ɵRuntimeError(2959 /* RuntimeErrorCode.INVALID_LOADER_ARGUMENTS */, ngDevMode && `Image loader has detected an invalid path (\\`${path}\\`). ` + `To fix this, supply either the full URL to the Netlify site, or leave it empty to use the current site.`);\n  }\n  if (path) {\n    const url = new URL(path);\n    path = url.origin;\n  }\n  const loaderFn = config => {\n    return createNetlifyUrl(config, path);\n  };\n  const providers = [{\n    provide: IMAGE_LOADER,\n    useValue: loaderFn\n  }];\n  return providers;\n}\nconst validParams = /*#__PURE__*/new Map([['height', 'h'], ['fit', 'fit'], ['quality', 'q'], ['q', 'q'], ['position', 'position']]);\nfunction createNetlifyUrl(config, path) {\n  // Note: `path` can be undefined, in which case we use a fake one to construct a `URL` instance.\n  const url = new URL(path ?? 'https://a/');\n  url.pathname = '/.netlify/images';\n  if (!isAbsoluteUrl(config.src) && !config.src.startsWith('/')) {\n    config.src = '/' + config.src;\n  }\n  url.searchParams.set('url', config.src);\n  if (config.width) {\n    url.searchParams.set('w', config.width.toString());\n  }\n  // When requesting a placeholder image we ask for a low quality image to reduce the load time.\n  // If the quality is specified in the loader config - always use provided value.\n  const configQuality = config.loaderParams?.['quality'] ?? config.loaderParams?.['q'];\n  if (config.isPlaceholder && !configQuality) {\n    url.searchParams.set('q', PLACEHOLDER_QUALITY);\n  }\n  for (const [param, value] of Object.entries(config.loaderParams ?? {})) {\n    if (validParams.has(param)) {\n      url.searchParams.set(validParams.get(param), value.toString());\n    } else {\n      if (ngDevMode) {\n        console.warn(ɵformatRuntimeError(2959 /* RuntimeErrorCode.INVALID_LOADER_ARGUMENTS */, `The Netlify image loader has detected an \\`<img>\\` tag with the unsupported attribute \"\\`${param}\\`\".`));\n      }\n    }\n  }\n  // The \"a\" hostname is used for relative URLs, so we can remove it from the final URL.\n  return url.hostname === 'a' ? url.href.replace(url.origin, '') : url.href;\n}\n\n// Assembles directive details string, useful for error messages.\nfunction imgDirectiveDetails(ngSrc, includeNgSrc = true) {\n  const ngSrcInfo = includeNgSrc ? `(activated on an <img> element with the \\`ngSrc=\"${ngSrc}\"\\`) ` : '';\n  return `The NgOptimizedImage directive ${ngSrcInfo}has detected that`;\n}\n\n/**\n * Asserts that the application is in development mode. Throws an error if the application is in\n * production mode. This assert can be used to make sure that there is no dev-mode code invoked in\n * the prod mode accidentally.\n */\nfunction assertDevMode(checkName) {\n  if (!ngDevMode) {\n    throw new ɵRuntimeError(2958 /* RuntimeErrorCode.UNEXPECTED_DEV_MODE_CHECK_IN_PROD_MODE */, `Unexpected invocation of the ${checkName} in the prod mode. ` + `Please make sure that the prod mode is enabled for production builds.`);\n  }\n}\n\n/**\n * Observer that detects whether an image with `NgOptimizedImage`\n * is treated as a Largest Contentful Paint (LCP) element. If so,\n * asserts that the image has the `priority` attribute.\n *\n * Note: this is a dev-mode only class and it does not appear in prod bundles,\n * thus there is no `ngDevMode` use in the code.\n *\n * Based on https://web.dev/lcp/#measure-lcp-in-javascript.\n */\nlet LCPImageObserver = /*#__PURE__*/(() => {\n  class LCPImageObserver {\n    constructor() {\n      // Map of full image URLs -> original `ngSrc` values.\n      this.images = new Map();\n      this.window = null;\n      this.observer = null;\n      assertDevMode('LCP checker');\n      const win = inject(DOCUMENT).defaultView;\n      if (typeof win !== 'undefined' && typeof PerformanceObserver !== 'undefined') {\n        this.window = win;\n        this.observer = this.initPerformanceObserver();\n      }\n    }\n    /**\n     * Inits PerformanceObserver and subscribes to LCP events.\n     * Based on https://web.dev/lcp/#measure-lcp-in-javascript\n     */\n    initPerformanceObserver() {\n      const observer = new PerformanceObserver(entryList => {\n        const entries = entryList.getEntries();\n        if (entries.length === 0) return;\n        // We use the latest entry produced by the `PerformanceObserver` as the best\n        // signal on which element is actually an LCP one. As an example, the first image to load on\n        // a page, by virtue of being the only thing on the page so far, is often a LCP candidate\n        // and gets reported by PerformanceObserver, but isn't necessarily the LCP element.\n        const lcpElement = entries[entries.length - 1];\n        // Cast to `any` due to missing `element` on the `LargestContentfulPaint` type of entry.\n        // See https://developer.mozilla.org/en-US/docs/Web/API/LargestContentfulPaint\n        const imgSrc = lcpElement.element?.src ?? '';\n        // Exclude `data:` and `blob:` URLs, since they are not supported by the directive.\n        if (imgSrc.startsWith('data:') || imgSrc.startsWith('blob:')) return;\n        const img = this.images.get(imgSrc);\n        if (!img) return;\n        if (!img.priority && !img.alreadyWarnedPriority) {\n          img.alreadyWarnedPriority = true;\n          logMissingPriorityError(imgSrc);\n        }\n        if (img.modified && !img.alreadyWarnedModified) {\n          img.alreadyWarnedModified = true;\n          logModifiedWarning(imgSrc);\n        }\n      });\n      observer.observe({\n        type: 'largest-contentful-paint',\n        buffered: true\n      });\n      return observer;\n    }\n    registerImage(rewrittenSrc, originalNgSrc, isPriority) {\n      if (!this.observer) return;\n      const newObservedImageState = {\n        priority: isPriority,\n        modified: false,\n        alreadyWarnedModified: false,\n        alreadyWarnedPriority: false\n      };\n      this.images.set(getUrl(rewrittenSrc, this.window).href, newObservedImageState);\n    }\n    unregisterImage(rewrittenSrc) {\n      if (!this.observer) return;\n      this.images.delete(getUrl(rewrittenSrc, this.window).href);\n    }\n    updateImage(originalSrc, newSrc) {\n      const originalUrl = getUrl(originalSrc, this.window).href;\n      const img = this.images.get(originalUrl);\n      if (img) {\n        img.modified = true;\n        this.images.set(getUrl(newSrc, this.window).href, img);\n        this.images.delete(originalUrl);\n      }\n    }\n    ngOnDestroy() {\n      if (!this.observer) return;\n      this.observer.disconnect();\n      this.images.clear();\n    }\n    static {\n      this.ɵfac = function LCPImageObserver_Factory(t) {\n        return new (t || LCPImageObserver)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: LCPImageObserver,\n        factory: LCPImageObserver.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return LCPImageObserver;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction logMissingPriorityError(ngSrc) {\n  const directiveDetails = imgDirectiveDetails(ngSrc);\n  console.error(ɵformatRuntimeError(2955 /* RuntimeErrorCode.LCP_IMG_MISSING_PRIORITY */, `${directiveDetails} this image is the Largest Contentful Paint (LCP) ` + `element but was not marked \"priority\". This image should be marked ` + `\"priority\" in order to prioritize its loading. ` + `To fix this, add the \"priority\" attribute.`));\n}\nfunction logModifiedWarning(ngSrc) {\n  const directiveDetails = imgDirectiveDetails(ngSrc);\n  console.warn(ɵformatRuntimeError(2964 /* RuntimeErrorCode.LCP_IMG_NGSRC_MODIFIED */, `${directiveDetails} this image is the Largest Contentful Paint (LCP) ` + `element and has had its \"ngSrc\" attribute modified. This can cause ` + `slower loading performance. It is recommended not to modify the \"ngSrc\" ` + `property on any image which could be the LCP element.`));\n}\n\n// Set of origins that are always excluded from the preconnect checks.\nconst INTERNAL_PRECONNECT_CHECK_BLOCKLIST = /*#__PURE__*/new Set(['localhost', '127.0.0.1', '0.0.0.0']);\n/**\n * Injection token to configure which origins should be excluded\n * from the preconnect checks. It can either be a single string or an array of strings\n * to represent a group of origins, for example:\n *\n * ```typescript\n *  {provide: PRECONNECT_CHECK_BLOCKLIST, useValue: 'https://your-domain.com'}\n * ```\n *\n * or:\n *\n * ```typescript\n *  {provide: PRECONNECT_CHECK_BLOCKLIST,\n *   useValue: ['https://your-domain-1.com', 'https://your-domain-2.com']}\n * ```\n *\n * @publicApi\n */\nconst PRECONNECT_CHECK_BLOCKLIST = /*#__PURE__*/new InjectionToken(ngDevMode ? 'PRECONNECT_CHECK_BLOCKLIST' : '');\n/**\n * Contains the logic to detect whether an image, marked with the \"priority\" attribute\n * has a corresponding `<link rel=\"preconnect\">` tag in the `document.head`.\n *\n * Note: this is a dev-mode only class, which should not appear in prod bundles,\n * thus there is no `ngDevMode` use in the code.\n */\nlet PreconnectLinkChecker = /*#__PURE__*/(() => {\n  class PreconnectLinkChecker {\n    constructor() {\n      this.document = inject(DOCUMENT);\n      /**\n       * Set of <link rel=\"preconnect\"> tags found on this page.\n       * The `null` value indicates that there was no DOM query operation performed.\n       */\n      this.preconnectLinks = null;\n      /*\n       * Keep track of all already seen origin URLs to avoid repeating the same check.\n       */\n      this.alreadySeen = new Set();\n      this.window = null;\n      this.blocklist = new Set(INTERNAL_PRECONNECT_CHECK_BLOCKLIST);\n      assertDevMode('preconnect link checker');\n      const win = this.document.defaultView;\n      if (typeof win !== 'undefined') {\n        this.window = win;\n      }\n      const blocklist = inject(PRECONNECT_CHECK_BLOCKLIST, {\n        optional: true\n      });\n      if (blocklist) {\n        this.populateBlocklist(blocklist);\n      }\n    }\n    populateBlocklist(origins) {\n      if (Array.isArray(origins)) {\n        deepForEach(origins, origin => {\n          this.blocklist.add(extractHostname(origin));\n        });\n      } else {\n        this.blocklist.add(extractHostname(origins));\n      }\n    }\n    /**\n     * Checks that a preconnect resource hint exists in the head for the\n     * given src.\n     *\n     * @param rewrittenSrc src formatted with loader\n     * @param originalNgSrc ngSrc value\n     */\n    assertPreconnect(rewrittenSrc, originalNgSrc) {\n      if (!this.window) return;\n      const imgUrl = getUrl(rewrittenSrc, this.window);\n      if (this.blocklist.has(imgUrl.hostname) || this.alreadySeen.has(imgUrl.origin)) return;\n      // Register this origin as seen, so we don't check it again later.\n      this.alreadySeen.add(imgUrl.origin);\n      // Note: we query for preconnect links only *once* and cache the results\n      // for the entire lifespan of an application, since it's unlikely that the\n      // list would change frequently. This allows to make sure there are no\n      // performance implications of making extra DOM lookups for each image.\n      this.preconnectLinks ??= this.queryPreconnectLinks();\n      if (!this.preconnectLinks.has(imgUrl.origin)) {\n        console.warn(ɵformatRuntimeError(2956 /* RuntimeErrorCode.PRIORITY_IMG_MISSING_PRECONNECT_TAG */, `${imgDirectiveDetails(originalNgSrc)} there is no preconnect tag present for this ` + `image. Preconnecting to the origin(s) that serve priority images ensures that these ` + `images are delivered as soon as possible. To fix this, please add the following ` + `element into the <head> of the document:\\n` + `  <link rel=\"preconnect\" href=\"${imgUrl.origin}\">`));\n      }\n    }\n    queryPreconnectLinks() {\n      const preconnectUrls = new Set();\n      const selector = 'link[rel=preconnect]';\n      const links = Array.from(this.document.querySelectorAll(selector));\n      for (let link of links) {\n        const url = getUrl(link.href, this.window);\n        preconnectUrls.add(url.origin);\n      }\n      return preconnectUrls;\n    }\n    ngOnDestroy() {\n      this.preconnectLinks?.clear();\n      this.alreadySeen.clear();\n    }\n    static {\n      this.ɵfac = function PreconnectLinkChecker_Factory(t) {\n        return new (t || PreconnectLinkChecker)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: PreconnectLinkChecker,\n        factory: PreconnectLinkChecker.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return PreconnectLinkChecker;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Invokes a callback for each element in the array. Also invokes a callback\n * recursively for each nested array.\n */\nfunction deepForEach(input, fn) {\n  for (let value of input) {\n    Array.isArray(value) ? deepForEach(value, fn) : fn(value);\n  }\n}\n\n/**\n * In SSR scenarios, a preload `<link>` element is generated for priority images.\n * Having a large number of preload tags may negatively affect the performance,\n * so we warn developers (by throwing an error) if the number of preloaded images\n * is above a certain threshold. This const specifies this threshold.\n */\nconst DEFAULT_PRELOADED_IMAGES_LIMIT = 5;\n/**\n * Helps to keep track of priority images that already have a corresponding\n * preload tag (to avoid generating multiple preload tags with the same URL).\n *\n * This Set tracks the original src passed into the `ngSrc` input not the src after it has been\n * run through the specified `IMAGE_LOADER`.\n */\nconst PRELOADED_IMAGES = /*#__PURE__*/new InjectionToken('NG_OPTIMIZED_PRELOADED_IMAGES', {\n  providedIn: 'root',\n  factory: () => new Set()\n});\n\n/**\n * @description Contains the logic needed to track and add preload link tags to the `<head>` tag. It\n * will also track what images have already had preload link tags added so as to not duplicate link\n * tags.\n *\n * In dev mode this service will validate that the number of preloaded images does not exceed the\n * configured default preloaded images limit: {@link DEFAULT_PRELOADED_IMAGES_LIMIT}.\n */\nlet PreloadLinkCreator = /*#__PURE__*/(() => {\n  class PreloadLinkCreator {\n    constructor() {\n      this.preloadedImages = inject(PRELOADED_IMAGES);\n      this.document = inject(DOCUMENT);\n    }\n    /**\n     * @description Add a preload `<link>` to the `<head>` of the `index.html` that is served from the\n     * server while using Angular Universal and SSR to kick off image loads for high priority images.\n     *\n     * The `sizes` (passed in from the user) and `srcset` (parsed and formatted from `ngSrcset`)\n     * properties used to set the corresponding attributes, `imagesizes` and `imagesrcset`\n     * respectively, on the preload `<link>` tag so that the correctly sized image is preloaded from\n     * the CDN.\n     *\n     * {@link https://web.dev/preload-responsive-images/#imagesrcset-and-imagesizes}\n     *\n     * @param renderer The `Renderer2` passed in from the directive\n     * @param src The original src of the image that is set on the `ngSrc` input.\n     * @param srcset The parsed and formatted srcset created from the `ngSrcset` input\n     * @param sizes The value of the `sizes` attribute passed in to the `<img>` tag\n     */\n    createPreloadLinkTag(renderer, src, srcset, sizes) {\n      if (ngDevMode) {\n        if (this.preloadedImages.size >= DEFAULT_PRELOADED_IMAGES_LIMIT) {\n          throw new ɵRuntimeError(2961 /* RuntimeErrorCode.TOO_MANY_PRELOADED_IMAGES */, ngDevMode && `The \\`NgOptimizedImage\\` directive has detected that more than ` + `${DEFAULT_PRELOADED_IMAGES_LIMIT} images were marked as priority. ` + `This might negatively affect an overall performance of the page. ` + `To fix this, remove the \"priority\" attribute from images with less priority.`);\n        }\n      }\n      if (this.preloadedImages.has(src)) {\n        return;\n      }\n      this.preloadedImages.add(src);\n      const preload = renderer.createElement('link');\n      renderer.setAttribute(preload, 'as', 'image');\n      renderer.setAttribute(preload, 'href', src);\n      renderer.setAttribute(preload, 'rel', 'preload');\n      renderer.setAttribute(preload, 'fetchpriority', 'high');\n      if (sizes) {\n        renderer.setAttribute(preload, 'imageSizes', sizes);\n      }\n      if (srcset) {\n        renderer.setAttribute(preload, 'imageSrcset', srcset);\n      }\n      renderer.appendChild(this.document.head, preload);\n    }\n    static {\n      this.ɵfac = function PreloadLinkCreator_Factory(t) {\n        return new (t || PreloadLinkCreator)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: PreloadLinkCreator,\n        factory: PreloadLinkCreator.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return PreloadLinkCreator;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * When a Base64-encoded image is passed as an input to the `NgOptimizedImage` directive,\n * an error is thrown. The image content (as a string) might be very long, thus making\n * it hard to read an error message if the entire string is included. This const defines\n * the number of characters that should be included into the error message. The rest\n * of the content is truncated.\n */\nconst BASE64_IMG_MAX_LENGTH_IN_ERROR = 50;\n/**\n * RegExpr to determine whether a src in a srcset is using width descriptors.\n * Should match something like: \"100w, 200w\".\n */\nconst VALID_WIDTH_DESCRIPTOR_SRCSET = /^((\\s*\\d+w\\s*(,|$)){1,})$/;\n/**\n * RegExpr to determine whether a src in a srcset is using density descriptors.\n * Should match something like: \"1x, 2x, 50x\". Also supports decimals like \"1.5x, 1.50x\".\n */\nconst VALID_DENSITY_DESCRIPTOR_SRCSET = /^((\\s*\\d+(\\.\\d+)?x\\s*(,|$)){1,})$/;\n/**\n * Srcset values with a density descriptor higher than this value will actively\n * throw an error. Such densities are not permitted as they cause image sizes\n * to be unreasonably large and slow down LCP.\n */\nconst ABSOLUTE_SRCSET_DENSITY_CAP = 3;\n/**\n * Used only in error message text to communicate best practices, as we will\n * only throw based on the slightly more conservative ABSOLUTE_SRCSET_DENSITY_CAP.\n */\nconst RECOMMENDED_SRCSET_DENSITY_CAP = 2;\n/**\n * Used in generating automatic density-based srcsets\n */\nconst DENSITY_SRCSET_MULTIPLIERS = [1, 2];\n/**\n * Used to determine which breakpoints to use on full-width images\n */\nconst VIEWPORT_BREAKPOINT_CUTOFF = 640;\n/**\n * Used to determine whether two aspect ratios are similar in value.\n */\nconst ASPECT_RATIO_TOLERANCE = 0.1;\n/**\n * Used to determine whether the image has been requested at an overly\n * large size compared to the actual rendered image size (after taking\n * into account a typical device pixel ratio). In pixels.\n */\nconst OVERSIZED_IMAGE_TOLERANCE = 1000;\n/**\n * Used to limit automatic srcset generation of very large sources for\n * fixed-size images. In pixels.\n */\nconst FIXED_SRCSET_WIDTH_LIMIT = 1920;\nconst FIXED_SRCSET_HEIGHT_LIMIT = 1080;\n/**\n * Default blur radius of the CSS filter used on placeholder images, in pixels\n */\nconst PLACEHOLDER_BLUR_AMOUNT = 15;\n/**\n * Used to warn or error when the user provides an overly large dataURL for the placeholder\n * attribute.\n * Character count of Base64 images is 1 character per byte, and base64 encoding is approximately\n * 33% larger than base images, so 4000 characters is around 3KB on disk and 10000 characters is\n * around 7.7KB. Experimentally, 4000 characters is about 20x20px in PNG or medium-quality JPEG\n * format, and 10,000 is around 50x50px, but there's quite a bit of variation depending on how the\n * image is saved.\n */\nconst DATA_URL_WARN_LIMIT = 4000;\nconst DATA_URL_ERROR_LIMIT = 10000;\n/** Info about built-in loaders we can test for. */\nconst BUILT_IN_LOADERS = [imgixLoaderInfo, imageKitLoaderInfo, cloudinaryLoaderInfo, netlifyLoaderInfo];\n/**\n * Directive that improves image loading performance by enforcing best practices.\n *\n * `NgOptimizedImage` ensures that the loading of the Largest Contentful Paint (LCP) image is\n * prioritized by:\n * - Automatically setting the `fetchpriority` attribute on the `<img>` tag\n * - Lazy loading non-priority images by default\n * - Automatically generating a preconnect link tag in the document head\n *\n * In addition, the directive:\n * - Generates appropriate asset URLs if a corresponding `ImageLoader` function is provided\n * - Automatically generates a srcset\n * - Requires that `width` and `height` are set\n * - Warns if `width` or `height` have been set incorrectly\n * - Warns if the image will be visually distorted when rendered\n *\n * @usageNotes\n * The `NgOptimizedImage` directive is marked as [standalone](guide/standalone-components) and can\n * be imported directly.\n *\n * Follow the steps below to enable and use the directive:\n * 1. Import it into the necessary NgModule or a standalone Component.\n * 2. Optionally provide an `ImageLoader` if you use an image hosting service.\n * 3. Update the necessary `<img>` tags in templates and replace `src` attributes with `ngSrc`.\n * Using a `ngSrc` allows the directive to control when the `src` gets set, which triggers an image\n * download.\n *\n * Step 1: import the `NgOptimizedImage` directive.\n *\n * ```typescript\n * import { NgOptimizedImage } from '@angular/common';\n *\n * // Include it into the necessary NgModule\n * @NgModule({\n *   imports: [NgOptimizedImage],\n * })\n * class AppModule {}\n *\n * // ... or a standalone Component\n * @Component({\n *   standalone: true\n *   imports: [NgOptimizedImage],\n * })\n * class MyStandaloneComponent {}\n * ```\n *\n * Step 2: configure a loader.\n *\n * To use the **default loader**: no additional code changes are necessary. The URL returned by the\n * generic loader will always match the value of \"src\". In other words, this loader applies no\n * transformations to the resource URL and the value of the `ngSrc` attribute will be used as is.\n *\n * To use an existing loader for a **third-party image service**: add the provider factory for your\n * chosen service to the `providers` array. In the example below, the Imgix loader is used:\n *\n * ```typescript\n * import {provideImgixLoader} from '@angular/common';\n *\n * // Call the function and add the result to the `providers` array:\n * providers: [\n *   provideImgixLoader(\"https://my.base.url/\"),\n * ],\n * ```\n *\n * The `NgOptimizedImage` directive provides the following functions:\n * - `provideCloudflareLoader`\n * - `provideCloudinaryLoader`\n * - `provideImageKitLoader`\n * - `provideImgixLoader`\n *\n * If you use a different image provider, you can create a custom loader function as described\n * below.\n *\n * To use a **custom loader**: provide your loader function as a value for the `IMAGE_LOADER` DI\n * token.\n *\n * ```typescript\n * import {IMAGE_LOADER, ImageLoaderConfig} from '@angular/common';\n *\n * // Configure the loader using the `IMAGE_LOADER` token.\n * providers: [\n *   {\n *      provide: IMAGE_LOADER,\n *      useValue: (config: ImageLoaderConfig) => {\n *        return `https://example.com/${config.src}-${config.width}.jpg}`;\n *      }\n *   },\n * ],\n * ```\n *\n * Step 3: update `<img>` tags in templates to use `ngSrc` instead of `src`.\n *\n * ```\n * <img ngSrc=\"logo.png\" width=\"200\" height=\"100\">\n * ```\n *\n * @publicApi\n */\nlet NgOptimizedImage = /*#__PURE__*/(() => {\n  class NgOptimizedImage {\n    constructor() {\n      this.imageLoader = inject(IMAGE_LOADER);\n      this.config = processConfig(inject(ɵIMAGE_CONFIG));\n      this.renderer = inject(Renderer2);\n      this.imgElement = inject(ElementRef).nativeElement;\n      this.injector = inject(Injector);\n      this.isServer = isPlatformServer(inject(PLATFORM_ID));\n      this.preloadLinkCreator = inject(PreloadLinkCreator);\n      // a LCP image observer - should be injected only in the dev mode\n      this.lcpObserver = ngDevMode ? this.injector.get(LCPImageObserver) : null;\n      /**\n       * Calculate the rewritten `src` once and store it.\n       * This is needed to avoid repetitive calculations and make sure the directive cleanup in the\n       * `ngOnDestroy` does not rely on the `IMAGE_LOADER` logic (which in turn can rely on some other\n       * instance that might be already destroyed).\n       */\n      this._renderedSrc = null;\n      /**\n       * Indicates whether this image should have a high priority.\n       */\n      this.priority = false;\n      /**\n       * Disables automatic srcset generation for this image.\n       */\n      this.disableOptimizedSrcset = false;\n      /**\n       * Sets the image to \"fill mode\", which eliminates the height/width requirement and adds\n       * styles such that the image fills its containing element.\n       */\n      this.fill = false;\n    }\n    /** @nodoc */\n    ngOnInit() {\n      ɵperformanceMarkFeature('NgOptimizedImage');\n      if (ngDevMode) {\n        const ngZone = this.injector.get(NgZone);\n        assertNonEmptyInput(this, 'ngSrc', this.ngSrc);\n        assertValidNgSrcset(this, this.ngSrcset);\n        assertNoConflictingSrc(this);\n        if (this.ngSrcset) {\n          assertNoConflictingSrcset(this);\n        }\n        assertNotBase64Image(this);\n        assertNotBlobUrl(this);\n        if (this.fill) {\n          assertEmptyWidthAndHeight(this);\n          // This leaves the Angular zone to avoid triggering unnecessary change detection cycles when\n          // `load` tasks are invoked on images.\n          ngZone.runOutsideAngular(() => assertNonZeroRenderedHeight(this, this.imgElement, this.renderer));\n        } else {\n          assertNonEmptyWidthAndHeight(this);\n          if (this.height !== undefined) {\n            assertGreaterThanZero(this, this.height, 'height');\n          }\n          if (this.width !== undefined) {\n            assertGreaterThanZero(this, this.width, 'width');\n          }\n          // Only check for distorted images when not in fill mode, where\n          // images may be intentionally stretched, cropped or letterboxed.\n          ngZone.runOutsideAngular(() => assertNoImageDistortion(this, this.imgElement, this.renderer));\n        }\n        assertValidLoadingInput(this);\n        if (!this.ngSrcset) {\n          assertNoComplexSizes(this);\n        }\n        assertValidPlaceholder(this, this.imageLoader);\n        assertNotMissingBuiltInLoader(this.ngSrc, this.imageLoader);\n        assertNoNgSrcsetWithoutLoader(this, this.imageLoader);\n        assertNoLoaderParamsWithoutLoader(this, this.imageLoader);\n        if (this.lcpObserver !== null) {\n          const ngZone = this.injector.get(NgZone);\n          ngZone.runOutsideAngular(() => {\n            this.lcpObserver.registerImage(this.getRewrittenSrc(), this.ngSrc, this.priority);\n          });\n        }\n        if (this.priority) {\n          const checker = this.injector.get(PreconnectLinkChecker);\n          checker.assertPreconnect(this.getRewrittenSrc(), this.ngSrc);\n        }\n      }\n      if (this.placeholder) {\n        this.removePlaceholderOnLoad(this.imgElement);\n      }\n      this.setHostAttributes();\n    }\n    setHostAttributes() {\n      // Must set width/height explicitly in case they are bound (in which case they will\n      // only be reflected and not found by the browser)\n      if (this.fill) {\n        this.sizes ||= '100vw';\n      } else {\n        this.setHostAttribute('width', this.width.toString());\n        this.setHostAttribute('height', this.height.toString());\n      }\n      this.setHostAttribute('loading', this.getLoadingBehavior());\n      this.setHostAttribute('fetchpriority', this.getFetchPriority());\n      // The `data-ng-img` attribute flags an image as using the directive, to allow\n      // for analysis of the directive's performance.\n      this.setHostAttribute('ng-img', 'true');\n      // The `src` and `srcset` attributes should be set last since other attributes\n      // could affect the image's loading behavior.\n      const rewrittenSrcset = this.updateSrcAndSrcset();\n      if (this.sizes) {\n        this.setHostAttribute('sizes', this.sizes);\n      }\n      if (this.isServer && this.priority) {\n        this.preloadLinkCreator.createPreloadLinkTag(this.renderer, this.getRewrittenSrc(), rewrittenSrcset, this.sizes);\n      }\n    }\n    /** @nodoc */\n    ngOnChanges(changes) {\n      if (ngDevMode) {\n        assertNoPostInitInputChange(this, changes, ['ngSrcset', 'width', 'height', 'priority', 'fill', 'loading', 'sizes', 'loaderParams', 'disableOptimizedSrcset']);\n      }\n      if (changes['ngSrc'] && !changes['ngSrc'].isFirstChange()) {\n        const oldSrc = this._renderedSrc;\n        this.updateSrcAndSrcset(true);\n        const newSrc = this._renderedSrc;\n        if (this.lcpObserver !== null && oldSrc && newSrc && oldSrc !== newSrc) {\n          const ngZone = this.injector.get(NgZone);\n          ngZone.runOutsideAngular(() => {\n            this.lcpObserver?.updateImage(oldSrc, newSrc);\n          });\n        }\n      }\n    }\n    callImageLoader(configWithoutCustomParams) {\n      let augmentedConfig = configWithoutCustomParams;\n      if (this.loaderParams) {\n        augmentedConfig.loaderParams = this.loaderParams;\n      }\n      return this.imageLoader(augmentedConfig);\n    }\n    getLoadingBehavior() {\n      if (!this.priority && this.loading !== undefined) {\n        return this.loading;\n      }\n      return this.priority ? 'eager' : 'lazy';\n    }\n    getFetchPriority() {\n      return this.priority ? 'high' : 'auto';\n    }\n    getRewrittenSrc() {\n      // ImageLoaderConfig supports setting a width property. However, we're not setting width here\n      // because if the developer uses rendered width instead of intrinsic width in the HTML width\n      // attribute, the image requested may be too small for 2x+ screens.\n      if (!this._renderedSrc) {\n        const imgConfig = {\n          src: this.ngSrc\n        };\n        // Cache calculated image src to reuse it later in the code.\n        this._renderedSrc = this.callImageLoader(imgConfig);\n      }\n      return this._renderedSrc;\n    }\n    getRewrittenSrcset() {\n      const widthSrcSet = VALID_WIDTH_DESCRIPTOR_SRCSET.test(this.ngSrcset);\n      const finalSrcs = this.ngSrcset.split(',').filter(src => src !== '').map(srcStr => {\n        srcStr = srcStr.trim();\n        const width = widthSrcSet ? parseFloat(srcStr) : parseFloat(srcStr) * this.width;\n        return `${this.callImageLoader({\n          src: this.ngSrc,\n          width\n        })} ${srcStr}`;\n      });\n      return finalSrcs.join(', ');\n    }\n    getAutomaticSrcset() {\n      if (this.sizes) {\n        return this.getResponsiveSrcset();\n      } else {\n        return this.getFixedSrcset();\n      }\n    }\n    getResponsiveSrcset() {\n      const {\n        breakpoints\n      } = this.config;\n      let filteredBreakpoints = breakpoints;\n      if (this.sizes?.trim() === '100vw') {\n        // Since this is a full-screen-width image, our srcset only needs to include\n        // breakpoints with full viewport widths.\n        filteredBreakpoints = breakpoints.filter(bp => bp >= VIEWPORT_BREAKPOINT_CUTOFF);\n      }\n      const finalSrcs = filteredBreakpoints.map(bp => `${this.callImageLoader({\n        src: this.ngSrc,\n        width: bp\n      })} ${bp}w`);\n      return finalSrcs.join(', ');\n    }\n    updateSrcAndSrcset(forceSrcRecalc = false) {\n      if (forceSrcRecalc) {\n        // Reset cached value, so that the followup `getRewrittenSrc()` call\n        // will recalculate it and update the cache.\n        this._renderedSrc = null;\n      }\n      const rewrittenSrc = this.getRewrittenSrc();\n      this.setHostAttribute('src', rewrittenSrc);\n      let rewrittenSrcset = undefined;\n      if (this.ngSrcset) {\n        rewrittenSrcset = this.getRewrittenSrcset();\n      } else if (this.shouldGenerateAutomaticSrcset()) {\n        rewrittenSrcset = this.getAutomaticSrcset();\n      }\n      if (rewrittenSrcset) {\n        this.setHostAttribute('srcset', rewrittenSrcset);\n      }\n      return rewrittenSrcset;\n    }\n    getFixedSrcset() {\n      const finalSrcs = DENSITY_SRCSET_MULTIPLIERS.map(multiplier => `${this.callImageLoader({\n        src: this.ngSrc,\n        width: this.width * multiplier\n      })} ${multiplier}x`);\n      return finalSrcs.join(', ');\n    }\n    shouldGenerateAutomaticSrcset() {\n      let oversizedImage = false;\n      if (!this.sizes) {\n        oversizedImage = this.width > FIXED_SRCSET_WIDTH_LIMIT || this.height > FIXED_SRCSET_HEIGHT_LIMIT;\n      }\n      return !this.disableOptimizedSrcset && !this.srcset && this.imageLoader !== noopImageLoader && !oversizedImage;\n    }\n    /**\n     * Returns an image url formatted for use with the CSS background-image property. Expects one of:\n     * * A base64 encoded image, which is wrapped and passed through.\n     * * A boolean. If true, calls the image loader to generate a small placeholder url.\n     */\n    generatePlaceholder(placeholderInput) {\n      const {\n        placeholderResolution\n      } = this.config;\n      if (placeholderInput === true) {\n        return `url(${this.callImageLoader({\n          src: this.ngSrc,\n          width: placeholderResolution,\n          isPlaceholder: true\n        })})`;\n      } else if (typeof placeholderInput === 'string' && placeholderInput.startsWith('data:')) {\n        return `url(${placeholderInput})`;\n      }\n      return null;\n    }\n    /**\n     * Determines if blur should be applied, based on an optional boolean\n     * property `blur` within the optional configuration object `placeholderConfig`.\n     */\n    shouldBlurPlaceholder(placeholderConfig) {\n      if (!placeholderConfig || !placeholderConfig.hasOwnProperty('blur')) {\n        return true;\n      }\n      return Boolean(placeholderConfig.blur);\n    }\n    removePlaceholderOnLoad(img) {\n      const callback = () => {\n        const changeDetectorRef = this.injector.get(ChangeDetectorRef);\n        removeLoadListenerFn();\n        removeErrorListenerFn();\n        this.placeholder = false;\n        changeDetectorRef.markForCheck();\n      };\n      const removeLoadListenerFn = this.renderer.listen(img, 'load', callback);\n      const removeErrorListenerFn = this.renderer.listen(img, 'error', callback);\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n      if (ngDevMode) {\n        if (!this.priority && this._renderedSrc !== null && this.lcpObserver !== null) {\n          this.lcpObserver.unregisterImage(this._renderedSrc);\n        }\n      }\n    }\n    setHostAttribute(name, value) {\n      this.renderer.setAttribute(this.imgElement, name, value);\n    }\n    static {\n      this.ɵfac = function NgOptimizedImage_Factory(t) {\n        return new (t || NgOptimizedImage)();\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: NgOptimizedImage,\n        selectors: [[\"img\", \"ngSrc\", \"\"]],\n        hostVars: 18,\n        hostBindings: function NgOptimizedImage_HostBindings(rf, ctx) {\n          if (rf & 2) {\n            i0.ɵɵstyleProp(\"position\", ctx.fill ? \"absolute\" : null)(\"width\", ctx.fill ? \"100%\" : null)(\"height\", ctx.fill ? \"100%\" : null)(\"inset\", ctx.fill ? \"0\" : null)(\"background-size\", ctx.placeholder ? \"cover\" : null)(\"background-position\", ctx.placeholder ? \"50% 50%\" : null)(\"background-repeat\", ctx.placeholder ? \"no-repeat\" : null)(\"background-image\", ctx.placeholder ? ctx.generatePlaceholder(ctx.placeholder) : null)(\"filter\", ctx.placeholder && ctx.shouldBlurPlaceholder(ctx.placeholderConfig) ? \"blur(15px)\" : null);\n          }\n        },\n        inputs: {\n          ngSrc: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"ngSrc\", \"ngSrc\", unwrapSafeUrl],\n          ngSrcset: \"ngSrcset\",\n          sizes: \"sizes\",\n          width: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"width\", \"width\", numberAttribute],\n          height: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"height\", \"height\", numberAttribute],\n          loading: \"loading\",\n          priority: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"priority\", \"priority\", booleanAttribute],\n          loaderParams: \"loaderParams\",\n          disableOptimizedSrcset: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"disableOptimizedSrcset\", \"disableOptimizedSrcset\", booleanAttribute],\n          fill: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"fill\", \"fill\", booleanAttribute],\n          placeholder: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"placeholder\", \"placeholder\", booleanOrDataUrlAttribute],\n          placeholderConfig: \"placeholderConfig\",\n          src: \"src\",\n          srcset: \"srcset\"\n        },\n        standalone: true,\n        features: [i0.ɵɵInputTransformsFeature, i0.ɵɵNgOnChangesFeature]\n      });\n    }\n  }\n  return NgOptimizedImage;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/***** Helpers *****/\n/**\n * Sorts provided config breakpoints and uses defaults.\n */\nfunction processConfig(config) {\n  let sortedBreakpoints = {};\n  if (config.breakpoints) {\n    sortedBreakpoints.breakpoints = config.breakpoints.sort((a, b) => a - b);\n  }\n  return Object.assign({}, ɵIMAGE_CONFIG_DEFAULTS, config, sortedBreakpoints);\n}\n/***** Assert functions *****/\n/**\n * Verifies that there is no `src` set on a host element.\n */\nfunction assertNoConflictingSrc(dir) {\n  if (dir.src) {\n    throw new ɵRuntimeError(2950 /* RuntimeErrorCode.UNEXPECTED_SRC_ATTR */, `${imgDirectiveDetails(dir.ngSrc)} both \\`src\\` and \\`ngSrc\\` have been set. ` + `Supplying both of these attributes breaks lazy loading. ` + `The NgOptimizedImage directive sets \\`src\\` itself based on the value of \\`ngSrc\\`. ` + `To fix this, please remove the \\`src\\` attribute.`);\n  }\n}\n/**\n * Verifies that there is no `srcset` set on a host element.\n */\nfunction assertNoConflictingSrcset(dir) {\n  if (dir.srcset) {\n    throw new ɵRuntimeError(2951 /* RuntimeErrorCode.UNEXPECTED_SRCSET_ATTR */, `${imgDirectiveDetails(dir.ngSrc)} both \\`srcset\\` and \\`ngSrcset\\` have been set. ` + `Supplying both of these attributes breaks lazy loading. ` + `The NgOptimizedImage directive sets \\`srcset\\` itself based on the value of ` + `\\`ngSrcset\\`. To fix this, please remove the \\`srcset\\` attribute.`);\n  }\n}\n/**\n * Verifies that the `ngSrc` is not a Base64-encoded image.\n */\nfunction assertNotBase64Image(dir) {\n  let ngSrc = dir.ngSrc.trim();\n  if (ngSrc.startsWith('data:')) {\n    if (ngSrc.length > BASE64_IMG_MAX_LENGTH_IN_ERROR) {\n      ngSrc = ngSrc.substring(0, BASE64_IMG_MAX_LENGTH_IN_ERROR) + '...';\n    }\n    throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc, false)} \\`ngSrc\\` is a Base64-encoded string ` + `(${ngSrc}). NgOptimizedImage does not support Base64-encoded strings. ` + `To fix this, disable the NgOptimizedImage directive for this element ` + `by removing \\`ngSrc\\` and using a standard \\`src\\` attribute instead.`);\n  }\n}\n/**\n * Verifies that the 'sizes' only includes responsive values.\n */\nfunction assertNoComplexSizes(dir) {\n  let sizes = dir.sizes;\n  if (sizes?.match(/((\\)|,)\\s|^)\\d+px/)) {\n    throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc, false)} \\`sizes\\` was set to a string including ` + `pixel values. For automatic \\`srcset\\` generation, \\`sizes\\` must only include responsive ` + `values, such as \\`sizes=\"50vw\"\\` or \\`sizes=\"(min-width: 768px) 50vw, 100vw\"\\`. ` + `To fix this, modify the \\`sizes\\` attribute, or provide your own \\`ngSrcset\\` value directly.`);\n  }\n}\nfunction assertValidPlaceholder(dir, imageLoader) {\n  assertNoPlaceholderConfigWithoutPlaceholder(dir);\n  assertNoRelativePlaceholderWithoutLoader(dir, imageLoader);\n  assertNoOversizedDataUrl(dir);\n}\n/**\n * Verifies that placeholderConfig isn't being used without placeholder\n */\nfunction assertNoPlaceholderConfigWithoutPlaceholder(dir) {\n  if (dir.placeholderConfig && !dir.placeholder) {\n    throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc, false)} \\`placeholderConfig\\` options were provided for an ` + `image that does not use the \\`placeholder\\` attribute, and will have no effect.`);\n  }\n}\n/**\n * Warns if a relative URL placeholder is specified, but no loader is present to provide the small\n * image.\n */\nfunction assertNoRelativePlaceholderWithoutLoader(dir, imageLoader) {\n  if (dir.placeholder === true && imageLoader === noopImageLoader) {\n    throw new ɵRuntimeError(2963 /* RuntimeErrorCode.MISSING_NECESSARY_LOADER */, `${imgDirectiveDetails(dir.ngSrc)} the \\`placeholder\\` attribute is set to true but ` + `no image loader is configured (i.e. the default one is being used), ` + `which would result in the same image being used for the primary image and its placeholder. ` + `To fix this, provide a loader or remove the \\`placeholder\\` attribute from the image.`);\n  }\n}\n/**\n * Warns or throws an error if an oversized dataURL placeholder is provided.\n */\nfunction assertNoOversizedDataUrl(dir) {\n  if (dir.placeholder && typeof dir.placeholder === 'string' && dir.placeholder.startsWith('data:')) {\n    if (dir.placeholder.length > DATA_URL_ERROR_LIMIT) {\n      throw new ɵRuntimeError(2965 /* RuntimeErrorCode.OVERSIZED_PLACEHOLDER */, `${imgDirectiveDetails(dir.ngSrc)} the \\`placeholder\\` attribute is set to a data URL which is longer ` + `than ${DATA_URL_ERROR_LIMIT} characters. This is strongly discouraged, as large inline placeholders ` + `directly increase the bundle size of Angular and hurt page load performance. To fix this, generate ` + `a smaller data URL placeholder.`);\n    }\n    if (dir.placeholder.length > DATA_URL_WARN_LIMIT) {\n      console.warn(ɵformatRuntimeError(2965 /* RuntimeErrorCode.OVERSIZED_PLACEHOLDER */, `${imgDirectiveDetails(dir.ngSrc)} the \\`placeholder\\` attribute is set to a data URL which is longer ` + `than ${DATA_URL_WARN_LIMIT} characters. This is discouraged, as large inline placeholders ` + `directly increase the bundle size of Angular and hurt page load performance. For better loading performance, ` + `generate a smaller data URL placeholder.`));\n    }\n  }\n}\n/**\n * Verifies that the `ngSrc` is not a Blob URL.\n */\nfunction assertNotBlobUrl(dir) {\n  const ngSrc = dir.ngSrc.trim();\n  if (ngSrc.startsWith('blob:')) {\n    throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} \\`ngSrc\\` was set to a blob URL (${ngSrc}). ` + `Blob URLs are not supported by the NgOptimizedImage directive. ` + `To fix this, disable the NgOptimizedImage directive for this element ` + `by removing \\`ngSrc\\` and using a regular \\`src\\` attribute instead.`);\n  }\n}\n/**\n * Verifies that the input is set to a non-empty string.\n */\nfunction assertNonEmptyInput(dir, name, value) {\n  const isString = typeof value === 'string';\n  const isEmptyString = isString && value.trim() === '';\n  if (!isString || isEmptyString) {\n    throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} \\`${name}\\` has an invalid value ` + `(\\`${value}\\`). To fix this, change the value to a non-empty string.`);\n  }\n}\n/**\n * Verifies that the `ngSrcset` is in a valid format, e.g. \"100w, 200w\" or \"1x, 2x\".\n */\nfunction assertValidNgSrcset(dir, value) {\n  if (value == null) return;\n  assertNonEmptyInput(dir, 'ngSrcset', value);\n  const stringVal = value;\n  const isValidWidthDescriptor = VALID_WIDTH_DESCRIPTOR_SRCSET.test(stringVal);\n  const isValidDensityDescriptor = VALID_DENSITY_DESCRIPTOR_SRCSET.test(stringVal);\n  if (isValidDensityDescriptor) {\n    assertUnderDensityCap(dir, stringVal);\n  }\n  const isValidSrcset = isValidWidthDescriptor || isValidDensityDescriptor;\n  if (!isValidSrcset) {\n    throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} \\`ngSrcset\\` has an invalid value (\\`${value}\\`). ` + `To fix this, supply \\`ngSrcset\\` using a comma-separated list of one or more width ` + `descriptors (e.g. \"100w, 200w\") or density descriptors (e.g. \"1x, 2x\").`);\n  }\n}\nfunction assertUnderDensityCap(dir, value) {\n  const underDensityCap = value.split(',').every(num => num === '' || parseFloat(num) <= ABSOLUTE_SRCSET_DENSITY_CAP);\n  if (!underDensityCap) {\n    throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the \\`ngSrcset\\` contains an unsupported image density:` + `\\`${value}\\`. NgOptimizedImage generally recommends a max image density of ` + `${RECOMMENDED_SRCSET_DENSITY_CAP}x but supports image densities up to ` + `${ABSOLUTE_SRCSET_DENSITY_CAP}x. The human eye cannot distinguish between image densities ` + `greater than ${RECOMMENDED_SRCSET_DENSITY_CAP}x - which makes them unnecessary for ` + `most use cases. Images that will be pinch-zoomed are typically the primary use case for ` + `${ABSOLUTE_SRCSET_DENSITY_CAP}x images. Please remove the high density descriptor and try again.`);\n  }\n}\n/**\n * Creates a `RuntimeError` instance to represent a situation when an input is set after\n * the directive has initialized.\n */\nfunction postInitInputChangeError(dir, inputName) {\n  let reason;\n  if (inputName === 'width' || inputName === 'height') {\n    reason = `Changing \\`${inputName}\\` may result in different attribute value ` + `applied to the underlying image element and cause layout shifts on a page.`;\n  } else {\n    reason = `Changing the \\`${inputName}\\` would have no effect on the underlying ` + `image element, because the resource loading has already occurred.`;\n  }\n  return new ɵRuntimeError(2953 /* RuntimeErrorCode.UNEXPECTED_INPUT_CHANGE */, `${imgDirectiveDetails(dir.ngSrc)} \\`${inputName}\\` was updated after initialization. ` + `The NgOptimizedImage directive will not react to this input change. ${reason} ` + `To fix this, either switch \\`${inputName}\\` to a static value ` + `or wrap the image element in an *ngIf that is gated on the necessary value.`);\n}\n/**\n * Verify that none of the listed inputs has changed.\n */\nfunction assertNoPostInitInputChange(dir, changes, inputs) {\n  inputs.forEach(input => {\n    const isUpdated = changes.hasOwnProperty(input);\n    if (isUpdated && !changes[input].isFirstChange()) {\n      if (input === 'ngSrc') {\n        // When the `ngSrc` input changes, we detect that only in the\n        // `ngOnChanges` hook, thus the `ngSrc` is already set. We use\n        // `ngSrc` in the error message, so we use a previous value, but\n        // not the updated one in it.\n        dir = {\n          ngSrc: changes[input].previousValue\n        };\n      }\n      throw postInitInputChangeError(dir, input);\n    }\n  });\n}\n/**\n * Verifies that a specified input is a number greater than 0.\n */\nfunction assertGreaterThanZero(dir, inputValue, inputName) {\n  const validNumber = typeof inputValue === 'number' && inputValue > 0;\n  const validString = typeof inputValue === 'string' && /^\\d+$/.test(inputValue.trim()) && parseInt(inputValue) > 0;\n  if (!validNumber && !validString) {\n    throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} \\`${inputName}\\` has an invalid value. ` + `To fix this, provide \\`${inputName}\\` as a number greater than 0.`);\n  }\n}\n/**\n * Verifies that the rendered image is not visually distorted. Effectively this is checking:\n * - Whether the \"width\" and \"height\" attributes reflect the actual dimensions of the image.\n * - Whether image styling is \"correct\" (see below for a longer explanation).\n */\nfunction assertNoImageDistortion(dir, img, renderer) {\n  const removeLoadListenerFn = renderer.listen(img, 'load', () => {\n    removeLoadListenerFn();\n    removeErrorListenerFn();\n    const computedStyle = window.getComputedStyle(img);\n    let renderedWidth = parseFloat(computedStyle.getPropertyValue('width'));\n    let renderedHeight = parseFloat(computedStyle.getPropertyValue('height'));\n    const boxSizing = computedStyle.getPropertyValue('box-sizing');\n    if (boxSizing === 'border-box') {\n      const paddingTop = computedStyle.getPropertyValue('padding-top');\n      const paddingRight = computedStyle.getPropertyValue('padding-right');\n      const paddingBottom = computedStyle.getPropertyValue('padding-bottom');\n      const paddingLeft = computedStyle.getPropertyValue('padding-left');\n      renderedWidth -= parseFloat(paddingRight) + parseFloat(paddingLeft);\n      renderedHeight -= parseFloat(paddingTop) + parseFloat(paddingBottom);\n    }\n    const renderedAspectRatio = renderedWidth / renderedHeight;\n    const nonZeroRenderedDimensions = renderedWidth !== 0 && renderedHeight !== 0;\n    const intrinsicWidth = img.naturalWidth;\n    const intrinsicHeight = img.naturalHeight;\n    const intrinsicAspectRatio = intrinsicWidth / intrinsicHeight;\n    const suppliedWidth = dir.width;\n    const suppliedHeight = dir.height;\n    const suppliedAspectRatio = suppliedWidth / suppliedHeight;\n    // Tolerance is used to account for the impact of subpixel rendering.\n    // Due to subpixel rendering, the rendered, intrinsic, and supplied\n    // aspect ratios of a correctly configured image may not exactly match.\n    // For example, a `width=4030 height=3020` image might have a rendered\n    // size of \"1062w, 796.48h\". (An aspect ratio of 1.334... vs. 1.333...)\n    const inaccurateDimensions = Math.abs(suppliedAspectRatio - intrinsicAspectRatio) > ASPECT_RATIO_TOLERANCE;\n    const stylingDistortion = nonZeroRenderedDimensions && Math.abs(intrinsicAspectRatio - renderedAspectRatio) > ASPECT_RATIO_TOLERANCE;\n    if (inaccurateDimensions) {\n      console.warn(ɵformatRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the aspect ratio of the image does not match ` + `the aspect ratio indicated by the width and height attributes. ` + `\\nIntrinsic image size: ${intrinsicWidth}w x ${intrinsicHeight}h ` + `(aspect-ratio: ${round(intrinsicAspectRatio)}). \\nSupplied width and height attributes: ` + `${suppliedWidth}w x ${suppliedHeight}h (aspect-ratio: ${round(suppliedAspectRatio)}). ` + `\\nTo fix this, update the width and height attributes.`));\n    } else if (stylingDistortion) {\n      console.warn(ɵformatRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the aspect ratio of the rendered image ` + `does not match the image's intrinsic aspect ratio. ` + `\\nIntrinsic image size: ${intrinsicWidth}w x ${intrinsicHeight}h ` + `(aspect-ratio: ${round(intrinsicAspectRatio)}). \\nRendered image size: ` + `${renderedWidth}w x ${renderedHeight}h (aspect-ratio: ` + `${round(renderedAspectRatio)}). \\nThis issue can occur if \"width\" and \"height\" ` + `attributes are added to an image without updating the corresponding ` + `image styling. To fix this, adjust image styling. In most cases, ` + `adding \"height: auto\" or \"width: auto\" to the image styling will fix ` + `this issue.`));\n    } else if (!dir.ngSrcset && nonZeroRenderedDimensions) {\n      // If `ngSrcset` hasn't been set, sanity check the intrinsic size.\n      const recommendedWidth = RECOMMENDED_SRCSET_DENSITY_CAP * renderedWidth;\n      const recommendedHeight = RECOMMENDED_SRCSET_DENSITY_CAP * renderedHeight;\n      const oversizedWidth = intrinsicWidth - recommendedWidth >= OVERSIZED_IMAGE_TOLERANCE;\n      const oversizedHeight = intrinsicHeight - recommendedHeight >= OVERSIZED_IMAGE_TOLERANCE;\n      if (oversizedWidth || oversizedHeight) {\n        console.warn(ɵformatRuntimeError(2960 /* RuntimeErrorCode.OVERSIZED_IMAGE */, `${imgDirectiveDetails(dir.ngSrc)} the intrinsic image is significantly ` + `larger than necessary. ` + `\\nRendered image size: ${renderedWidth}w x ${renderedHeight}h. ` + `\\nIntrinsic image size: ${intrinsicWidth}w x ${intrinsicHeight}h. ` + `\\nRecommended intrinsic image size: ${recommendedWidth}w x ${recommendedHeight}h. ` + `\\nNote: Recommended intrinsic image size is calculated assuming a maximum DPR of ` + `${RECOMMENDED_SRCSET_DENSITY_CAP}. To improve loading time, resize the image ` + `or consider using the \"ngSrcset\" and \"sizes\" attributes.`));\n      }\n    }\n  });\n  // We only listen to the `error` event to remove the `load` event listener because it will not be\n  // fired if the image fails to load. This is done to prevent memory leaks in development mode\n  // because image elements aren't garbage-collected properly. It happens because zone.js stores the\n  // event listener directly on the element and closures capture `dir`.\n  const removeErrorListenerFn = renderer.listen(img, 'error', () => {\n    removeLoadListenerFn();\n    removeErrorListenerFn();\n  });\n}\n/**\n * Verifies that a specified input is set.\n */\nfunction assertNonEmptyWidthAndHeight(dir) {\n  let missingAttributes = [];\n  if (dir.width === undefined) missingAttributes.push('width');\n  if (dir.height === undefined) missingAttributes.push('height');\n  if (missingAttributes.length > 0) {\n    throw new ɵRuntimeError(2954 /* RuntimeErrorCode.REQUIRED_INPUT_MISSING */, `${imgDirectiveDetails(dir.ngSrc)} these required attributes ` + `are missing: ${missingAttributes.map(attr => `\"${attr}\"`).join(', ')}. ` + `Including \"width\" and \"height\" attributes will prevent image-related layout shifts. ` + `To fix this, include \"width\" and \"height\" attributes on the image tag or turn on ` + `\"fill\" mode with the \\`fill\\` attribute.`);\n  }\n}\n/**\n * Verifies that width and height are not set. Used in fill mode, where those attributes don't make\n * sense.\n */\nfunction assertEmptyWidthAndHeight(dir) {\n  if (dir.width || dir.height) {\n    throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the attributes \\`height\\` and/or \\`width\\` are present ` + `along with the \\`fill\\` attribute. Because \\`fill\\` mode causes an image to fill its containing ` + `element, the size attributes have no effect and should be removed.`);\n  }\n}\n/**\n * Verifies that the rendered image has a nonzero height. If the image is in fill mode, provides\n * guidance that this can be caused by the containing element's CSS position property.\n */\nfunction assertNonZeroRenderedHeight(dir, img, renderer) {\n  const removeLoadListenerFn = renderer.listen(img, 'load', () => {\n    removeLoadListenerFn();\n    removeErrorListenerFn();\n    const renderedHeight = img.clientHeight;\n    if (dir.fill && renderedHeight === 0) {\n      console.warn(ɵformatRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the height of the fill-mode image is zero. ` + `This is likely because the containing element does not have the CSS 'position' ` + `property set to one of the following: \"relative\", \"fixed\", or \"absolute\". ` + `To fix this problem, make sure the container element has the CSS 'position' ` + `property defined and the height of the element is not zero.`));\n    }\n  });\n  // See comments in the `assertNoImageDistortion`.\n  const removeErrorListenerFn = renderer.listen(img, 'error', () => {\n    removeLoadListenerFn();\n    removeErrorListenerFn();\n  });\n}\n/**\n * Verifies that the `loading` attribute is set to a valid input &\n * is not used on priority images.\n */\nfunction assertValidLoadingInput(dir) {\n  if (dir.loading && dir.priority) {\n    throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the \\`loading\\` attribute ` + `was used on an image that was marked \"priority\". ` + `Setting \\`loading\\` on priority images is not allowed ` + `because these images will always be eagerly loaded. ` + `To fix this, remove the “loading” attribute from the priority image.`);\n  }\n  const validInputs = ['auto', 'eager', 'lazy'];\n  if (typeof dir.loading === 'string' && !validInputs.includes(dir.loading)) {\n    throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the \\`loading\\` attribute ` + `has an invalid value (\\`${dir.loading}\\`). ` + `To fix this, provide a valid value (\"lazy\", \"eager\", or \"auto\").`);\n  }\n}\n/**\n * Warns if NOT using a loader (falling back to the generic loader) and\n * the image appears to be hosted on one of the image CDNs for which\n * we do have a built-in image loader. Suggests switching to the\n * built-in loader.\n *\n * @param ngSrc Value of the ngSrc attribute\n * @param imageLoader ImageLoader provided\n */\nfunction assertNotMissingBuiltInLoader(ngSrc, imageLoader) {\n  if (imageLoader === noopImageLoader) {\n    let builtInLoaderName = '';\n    for (const loader of BUILT_IN_LOADERS) {\n      if (loader.testUrl(ngSrc)) {\n        builtInLoaderName = loader.name;\n        break;\n      }\n    }\n    if (builtInLoaderName) {\n      console.warn(ɵformatRuntimeError(2962 /* RuntimeErrorCode.MISSING_BUILTIN_LOADER */, `NgOptimizedImage: It looks like your images may be hosted on the ` + `${builtInLoaderName} CDN, but your app is not using Angular's ` + `built-in loader for that CDN. We recommend switching to use ` + `the built-in by calling \\`provide${builtInLoaderName}Loader()\\` ` + `in your \\`providers\\` and passing it your instance's base URL. ` + `If you don't want to use the built-in loader, define a custom ` + `loader function using IMAGE_LOADER to silence this warning.`));\n    }\n  }\n}\n/**\n * Warns if ngSrcset is present and no loader is configured (i.e. the default one is being used).\n */\nfunction assertNoNgSrcsetWithoutLoader(dir, imageLoader) {\n  if (dir.ngSrcset && imageLoader === noopImageLoader) {\n    console.warn(ɵformatRuntimeError(2963 /* RuntimeErrorCode.MISSING_NECESSARY_LOADER */, `${imgDirectiveDetails(dir.ngSrc)} the \\`ngSrcset\\` attribute is present but ` + `no image loader is configured (i.e. the default one is being used), ` + `which would result in the same image being used for all configured sizes. ` + `To fix this, provide a loader or remove the \\`ngSrcset\\` attribute from the image.`));\n  }\n}\n/**\n * Warns if loaderParams is present and no loader is configured (i.e. the default one is being\n * used).\n */\nfunction assertNoLoaderParamsWithoutLoader(dir, imageLoader) {\n  if (dir.loaderParams && imageLoader === noopImageLoader) {\n    console.warn(ɵformatRuntimeError(2963 /* RuntimeErrorCode.MISSING_NECESSARY_LOADER */, `${imgDirectiveDetails(dir.ngSrc)} the \\`loaderParams\\` attribute is present but ` + `no image loader is configured (i.e. the default one is being used), ` + `which means that the loaderParams data will not be consumed and will not affect the URL. ` + `To fix this, provide a custom loader or remove the \\`loaderParams\\` attribute from the image.`));\n  }\n}\nfunction round(input) {\n  return Number.isInteger(input) ? input : input.toFixed(2);\n}\n// Transform function to handle SafeValue input for ngSrc. This doesn't do any sanitization,\n// as that is not needed for img.src and img.srcset. This transform is purely for compatibility.\nfunction unwrapSafeUrl(value) {\n  if (typeof value === 'string') {\n    return value;\n  }\n  return ɵunwrapSafeValue(value);\n}\n// Transform function to handle inputs which may be booleans, strings, or string representations\n// of boolean values. Used for the placeholder attribute.\nfunction booleanOrDataUrlAttribute(value) {\n  if (typeof value === 'string' && value.startsWith(`data:`)) {\n    return value;\n  }\n  return booleanAttribute(value);\n}\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the common package.\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n// This file only reexports content of the `src` folder. Keep it that way.\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { APP_BASE_HREF, AsyncPipe, BrowserPlatformLocation, CommonModule, CurrencyPipe, DATE_PIPE_DEFAULT_OPTIONS, DATE_PIPE_DEFAULT_TIMEZONE, DOCUMENT, DatePipe, DecimalPipe, FormStyle, FormatWidth, HashLocationStrategy, I18nPluralPipe, I18nSelectPipe, IMAGE_LOADER, JsonPipe, KeyValuePipe, LOCATION_INITIALIZED, Location, LocationStrategy, LowerCasePipe, NgClass, NgComponentOutlet, NgForOf as NgFor, NgForOf, NgForOfContext, NgIf, NgIfContext, NgLocaleLocalization, NgLocalization, NgOptimizedImage, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, NumberFormatStyle, NumberSymbol, PRECONNECT_CHECK_BLOCKLIST, PathLocationStrategy, PercentPipe, PlatformLocation, Plural, SlicePipe, TitleCasePipe, TranslationWidth, UpperCasePipe, VERSION, ViewportScroller, WeekDay, XhrFactory, formatCurrency, formatDate, formatNumber, formatPercent, getCurrencySymbol, getLocaleCurrencyCode, getLocaleCurrencyName, getLocaleCurrencySymbol, getLocaleDateFormat, getLocaleDateTimeFormat, getLocaleDayNames, getLocaleDayPeriods, getLocaleDirection, getLocaleEraNames, getLocaleExtraDayPeriodRules, getLocaleExtraDayPeriods, getLocaleFirstDayOfWeek, getLocaleId, getLocaleMonthNames, getLocaleNumberFormat, getLocaleNumberSymbol, getLocalePluralCase, getLocaleTimeFormat, getLocaleWeekEndRange, getNumberOfCurrencyDigits, isPlatformBrowser, isPlatformServer, isPlatformWorkerApp, isPlatformWorkerUi, provideCloudflareLoader, provideCloudinaryLoader, provideImageKitLoader, provideImgixLoader, provideNetlifyLoader, registerLocaleData, DomAdapter as ɵDomAdapter, NullViewportScroller as ɵNullViewportScroller, PLATFORM_BROWSER_ID as ɵPLATFORM_BROWSER_ID, PLATFORM_SERVER_ID as ɵPLATFORM_SERVER_ID, PLATFORM_WORKER_APP_ID as ɵPLATFORM_WORKER_APP_ID, PLATFORM_WORKER_UI_ID as ɵPLATFORM_WORKER_UI_ID, PlatformNavigation as ɵPlatformNavigation, getDOM as ɵgetDOM, normalizeQueryParams as ɵnormalizeQueryParams, parseCookieValue as ɵparseCookieValue, setRootDomAdapter as ɵsetRootDomAdapter };\n","/**\n * @license Angular v17.3.11\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { Injectable, inject, NgZone, runInInjectionContext, InjectionToken, ɵPendingTasks, PLATFORM_ID, ɵConsole, ɵformatRuntimeError, Inject, ɵRuntimeError, makeEnvironmentProviders, NgModule, TransferState, makeStateKey, ɵperformanceMarkFeature, APP_BOOTSTRAP_LISTENER, ApplicationRef, ɵwhenStable, ɵtruncateMiddle } from '@angular/core';\nimport { of, Observable, from } from 'rxjs';\nimport { concatMap, filter, map, finalize, switchMap, tap } from 'rxjs/operators';\nimport * as i1 from '@angular/common';\nimport { isPlatformServer, DOCUMENT, ɵparseCookieValue } from '@angular/common';\n\n/**\n * Transforms an `HttpRequest` into a stream of `HttpEvent`s, one of which will likely be a\n * `HttpResponse`.\n *\n * `HttpHandler` is injectable. When injected, the handler instance dispatches requests to the\n * first interceptor in the chain, which dispatches to the second, etc, eventually reaching the\n * `HttpBackend`.\n *\n * In an `HttpInterceptor`, the `HttpHandler` parameter is the next interceptor in the chain.\n *\n * @publicApi\n */\nclass HttpHandler {}\n/**\n * A final `HttpHandler` which will dispatch the request via browser HTTP APIs to a backend.\n *\n * Interceptors sit between the `HttpClient` interface and the `HttpBackend`.\n *\n * When injected, `HttpBackend` dispatches requests directly to the backend, without going\n * through the interceptor chain.\n *\n * @publicApi\n */\nclass HttpBackend {}\n\n/**\n * Represents the header configuration options for an HTTP request.\n * Instances are immutable. Modifying methods return a cloned\n * instance with the change. The original object is never changed.\n *\n * @publicApi\n */\nclass HttpHeaders {\n  /**  Constructs a new HTTP header object with the given values.*/\n  constructor(headers) {\n    /**\n     * Internal map of lowercased header names to the normalized\n     * form of the name (the form seen first).\n     */\n    this.normalizedNames = new Map();\n    /**\n     * Queued updates to be materialized the next initialization.\n     */\n    this.lazyUpdate = null;\n    if (!headers) {\n      this.headers = new Map();\n    } else if (typeof headers === 'string') {\n      this.lazyInit = () => {\n        this.headers = new Map();\n        headers.split('\\n').forEach(line => {\n          const index = line.indexOf(':');\n          if (index > 0) {\n            const name = line.slice(0, index);\n            const key = name.toLowerCase();\n            const value = line.slice(index + 1).trim();\n            this.maybeSetNormalizedName(name, key);\n            if (this.headers.has(key)) {\n              this.headers.get(key).push(value);\n            } else {\n              this.headers.set(key, [value]);\n            }\n          }\n        });\n      };\n    } else if (typeof Headers !== 'undefined' && headers instanceof Headers) {\n      this.headers = new Map();\n      headers.forEach((values, name) => {\n        this.setHeaderEntries(name, values);\n      });\n    } else {\n      this.lazyInit = () => {\n        if (typeof ngDevMode === 'undefined' || ngDevMode) {\n          assertValidHeaders(headers);\n        }\n        this.headers = new Map();\n        Object.entries(headers).forEach(([name, values]) => {\n          this.setHeaderEntries(name, values);\n        });\n      };\n    }\n  }\n  /**\n   * Checks for existence of a given header.\n   *\n   * @param name The header name to check for existence.\n   *\n   * @returns True if the header exists, false otherwise.\n   */\n  has(name) {\n    this.init();\n    return this.headers.has(name.toLowerCase());\n  }\n  /**\n   * Retrieves the first value of a given header.\n   *\n   * @param name The header name.\n   *\n   * @returns The value string if the header exists, null otherwise\n   */\n  get(name) {\n    this.init();\n    const values = this.headers.get(name.toLowerCase());\n    return values && values.length > 0 ? values[0] : null;\n  }\n  /**\n   * Retrieves the names of the headers.\n   *\n   * @returns A list of header names.\n   */\n  keys() {\n    this.init();\n    return Array.from(this.normalizedNames.values());\n  }\n  /**\n   * Retrieves a list of values for a given header.\n   *\n   * @param name The header name from which to retrieve values.\n   *\n   * @returns A string of values if the header exists, null otherwise.\n   */\n  getAll(name) {\n    this.init();\n    return this.headers.get(name.toLowerCase()) || null;\n  }\n  /**\n   * Appends a new value to the existing set of values for a header\n   * and returns them in a clone of the original instance.\n   *\n   * @param name The header name for which to append the values.\n   * @param value The value to append.\n   *\n   * @returns A clone of the HTTP headers object with the value appended to the given header.\n   */\n  append(name, value) {\n    return this.clone({\n      name,\n      value,\n      op: 'a'\n    });\n  }\n  /**\n   * Sets or modifies a value for a given header in a clone of the original instance.\n   * If the header already exists, its value is replaced with the given value\n   * in the returned object.\n   *\n   * @param name The header name.\n   * @param value The value or values to set or override for the given header.\n   *\n   * @returns A clone of the HTTP headers object with the newly set header value.\n   */\n  set(name, value) {\n    return this.clone({\n      name,\n      value,\n      op: 's'\n    });\n  }\n  /**\n   * Deletes values for a given header in a clone of the original instance.\n   *\n   * @param name The header name.\n   * @param value The value or values to delete for the given header.\n   *\n   * @returns A clone of the HTTP headers object with the given value deleted.\n   */\n  delete(name, value) {\n    return this.clone({\n      name,\n      value,\n      op: 'd'\n    });\n  }\n  maybeSetNormalizedName(name, lcName) {\n    if (!this.normalizedNames.has(lcName)) {\n      this.normalizedNames.set(lcName, name);\n    }\n  }\n  init() {\n    if (!!this.lazyInit) {\n      if (this.lazyInit instanceof HttpHeaders) {\n        this.copyFrom(this.lazyInit);\n      } else {\n        this.lazyInit();\n      }\n      this.lazyInit = null;\n      if (!!this.lazyUpdate) {\n        this.lazyUpdate.forEach(update => this.applyUpdate(update));\n        this.lazyUpdate = null;\n      }\n    }\n  }\n  copyFrom(other) {\n    other.init();\n    Array.from(other.headers.keys()).forEach(key => {\n      this.headers.set(key, other.headers.get(key));\n      this.normalizedNames.set(key, other.normalizedNames.get(key));\n    });\n  }\n  clone(update) {\n    const clone = new HttpHeaders();\n    clone.lazyInit = !!this.lazyInit && this.lazyInit instanceof HttpHeaders ? this.lazyInit : this;\n    clone.lazyUpdate = (this.lazyUpdate || []).concat([update]);\n    return clone;\n  }\n  applyUpdate(update) {\n    const key = update.name.toLowerCase();\n    switch (update.op) {\n      case 'a':\n      case 's':\n        let value = update.value;\n        if (typeof value === 'string') {\n          value = [value];\n        }\n        if (value.length === 0) {\n          return;\n        }\n        this.maybeSetNormalizedName(update.name, key);\n        const base = (update.op === 'a' ? this.headers.get(key) : undefined) || [];\n        base.push(...value);\n        this.headers.set(key, base);\n        break;\n      case 'd':\n        const toDelete = update.value;\n        if (!toDelete) {\n          this.headers.delete(key);\n          this.normalizedNames.delete(key);\n        } else {\n          let existing = this.headers.get(key);\n          if (!existing) {\n            return;\n          }\n          existing = existing.filter(value => toDelete.indexOf(value) === -1);\n          if (existing.length === 0) {\n            this.headers.delete(key);\n            this.normalizedNames.delete(key);\n          } else {\n            this.headers.set(key, existing);\n          }\n        }\n        break;\n    }\n  }\n  setHeaderEntries(name, values) {\n    const headerValues = (Array.isArray(values) ? values : [values]).map(value => value.toString());\n    const key = name.toLowerCase();\n    this.headers.set(key, headerValues);\n    this.maybeSetNormalizedName(name, key);\n  }\n  /**\n   * @internal\n   */\n  forEach(fn) {\n    this.init();\n    Array.from(this.normalizedNames.keys()).forEach(key => fn(this.normalizedNames.get(key), this.headers.get(key)));\n  }\n}\n/**\n * Verifies that the headers object has the right shape: the values\n * must be either strings, numbers or arrays. Throws an error if an invalid\n * header value is present.\n */\nfunction assertValidHeaders(headers) {\n  for (const [key, value] of Object.entries(headers)) {\n    if (!(typeof value === 'string' || typeof value === 'number') && !Array.isArray(value)) {\n      throw new Error(`Unexpected value of the \\`${key}\\` header provided. ` + `Expecting either a string, a number or an array, but got: \\`${value}\\`.`);\n    }\n  }\n}\n\n/**\n * Provides encoding and decoding of URL parameter and query-string values.\n *\n * Serializes and parses URL parameter keys and values to encode and decode them.\n * If you pass URL query parameters without encoding,\n * the query parameters can be misinterpreted at the receiving end.\n *\n *\n * @publicApi\n */\nclass HttpUrlEncodingCodec {\n  /**\n   * Encodes a key name for a URL parameter or query-string.\n   * @param key The key name.\n   * @returns The encoded key name.\n   */\n  encodeKey(key) {\n    return standardEncoding(key);\n  }\n  /**\n   * Encodes the value of a URL parameter or query-string.\n   * @param value The value.\n   * @returns The encoded value.\n   */\n  encodeValue(value) {\n    return standardEncoding(value);\n  }\n  /**\n   * Decodes an encoded URL parameter or query-string key.\n   * @param key The encoded key name.\n   * @returns The decoded key name.\n   */\n  decodeKey(key) {\n    return decodeURIComponent(key);\n  }\n  /**\n   * Decodes an encoded URL parameter or query-string value.\n   * @param value The encoded value.\n   * @returns The decoded value.\n   */\n  decodeValue(value) {\n    return decodeURIComponent(value);\n  }\n}\nfunction paramParser(rawParams, codec) {\n  const map = new Map();\n  if (rawParams.length > 0) {\n    // The `window.location.search` can be used while creating an instance of the `HttpParams` class\n    // (e.g. `new HttpParams({ fromString: window.location.search })`). The `window.location.search`\n    // may start with the `?` char, so we strip it if it's present.\n    const params = rawParams.replace(/^\\?/, '').split('&');\n    params.forEach(param => {\n      const eqIdx = param.indexOf('=');\n      const [key, val] = eqIdx == -1 ? [codec.decodeKey(param), ''] : [codec.decodeKey(param.slice(0, eqIdx)), codec.decodeValue(param.slice(eqIdx + 1))];\n      const list = map.get(key) || [];\n      list.push(val);\n      map.set(key, list);\n    });\n  }\n  return map;\n}\n/**\n * Encode input string with standard encodeURIComponent and then un-encode specific characters.\n */\nconst STANDARD_ENCODING_REGEX = /%(\\d[a-f0-9])/gi;\nconst STANDARD_ENCODING_REPLACEMENTS = {\n  '40': '@',\n  '3A': ':',\n  '24': '$',\n  '2C': ',',\n  '3B': ';',\n  '3D': '=',\n  '3F': '?',\n  '2F': '/'\n};\nfunction standardEncoding(v) {\n  return encodeURIComponent(v).replace(STANDARD_ENCODING_REGEX, (s, t) => STANDARD_ENCODING_REPLACEMENTS[t] ?? s);\n}\nfunction valueToString(value) {\n  return `${value}`;\n}\n/**\n * An HTTP request/response body that represents serialized parameters,\n * per the MIME type `application/x-www-form-urlencoded`.\n *\n * This class is immutable; all mutation operations return a new instance.\n *\n * @publicApi\n */\nclass HttpParams {\n  constructor(options = {}) {\n    this.updates = null;\n    this.cloneFrom = null;\n    this.encoder = options.encoder || new HttpUrlEncodingCodec();\n    if (!!options.fromString) {\n      if (!!options.fromObject) {\n        throw new Error(`Cannot specify both fromString and fromObject.`);\n      }\n      this.map = paramParser(options.fromString, this.encoder);\n    } else if (!!options.fromObject) {\n      this.map = new Map();\n      Object.keys(options.fromObject).forEach(key => {\n        const value = options.fromObject[key];\n        // convert the values to strings\n        const values = Array.isArray(value) ? value.map(valueToString) : [valueToString(value)];\n        this.map.set(key, values);\n      });\n    } else {\n      this.map = null;\n    }\n  }\n  /**\n   * Reports whether the body includes one or more values for a given parameter.\n   * @param param The parameter name.\n   * @returns True if the parameter has one or more values,\n   * false if it has no value or is not present.\n   */\n  has(param) {\n    this.init();\n    return this.map.has(param);\n  }\n  /**\n   * Retrieves the first value for a parameter.\n   * @param param The parameter name.\n   * @returns The first value of the given parameter,\n   * or `null` if the parameter is not present.\n   */\n  get(param) {\n    this.init();\n    const res = this.map.get(param);\n    return !!res ? res[0] : null;\n  }\n  /**\n   * Retrieves all values for a  parameter.\n   * @param param The parameter name.\n   * @returns All values in a string array,\n   * or `null` if the parameter not present.\n   */\n  getAll(param) {\n    this.init();\n    return this.map.get(param) || null;\n  }\n  /**\n   * Retrieves all the parameters for this body.\n   * @returns The parameter names in a string array.\n   */\n  keys() {\n    this.init();\n    return Array.from(this.map.keys());\n  }\n  /**\n   * Appends a new value to existing values for a parameter.\n   * @param param The parameter name.\n   * @param value The new value to add.\n   * @return A new body with the appended value.\n   */\n  append(param, value) {\n    return this.clone({\n      param,\n      value,\n      op: 'a'\n    });\n  }\n  /**\n   * Constructs a new body with appended values for the given parameter name.\n   * @param params parameters and values\n   * @return A new body with the new value.\n   */\n  appendAll(params) {\n    const updates = [];\n    Object.keys(params).forEach(param => {\n      const value = params[param];\n      if (Array.isArray(value)) {\n        value.forEach(_value => {\n          updates.push({\n            param,\n            value: _value,\n            op: 'a'\n          });\n        });\n      } else {\n        updates.push({\n          param,\n          value: value,\n          op: 'a'\n        });\n      }\n    });\n    return this.clone(updates);\n  }\n  /**\n   * Replaces the value for a parameter.\n   * @param param The parameter name.\n   * @param value The new value.\n   * @return A new body with the new value.\n   */\n  set(param, value) {\n    return this.clone({\n      param,\n      value,\n      op: 's'\n    });\n  }\n  /**\n   * Removes a given value or all values from a parameter.\n   * @param param The parameter name.\n   * @param value The value to remove, if provided.\n   * @return A new body with the given value removed, or with all values\n   * removed if no value is specified.\n   */\n  delete(param, value) {\n    return this.clone({\n      param,\n      value,\n      op: 'd'\n    });\n  }\n  /**\n   * Serializes the body to an encoded string, where key-value pairs (separated by `=`) are\n   * separated by `&`s.\n   */\n  toString() {\n    this.init();\n    return this.keys().map(key => {\n      const eKey = this.encoder.encodeKey(key);\n      // `a: ['1']` produces `'a=1'`\n      // `b: []` produces `''`\n      // `c: ['1', '2']` produces `'c=1&c=2'`\n      return this.map.get(key).map(value => eKey + '=' + this.encoder.encodeValue(value)).join('&');\n    })\n    // filter out empty values because `b: []` produces `''`\n    // which results in `a=1&&c=1&c=2` instead of `a=1&c=1&c=2` if we don't\n    .filter(param => param !== '').join('&');\n  }\n  clone(update) {\n    const clone = new HttpParams({\n      encoder: this.encoder\n    });\n    clone.cloneFrom = this.cloneFrom || this;\n    clone.updates = (this.updates || []).concat(update);\n    return clone;\n  }\n  init() {\n    if (this.map === null) {\n      this.map = new Map();\n    }\n    if (this.cloneFrom !== null) {\n      this.cloneFrom.init();\n      this.cloneFrom.keys().forEach(key => this.map.set(key, this.cloneFrom.map.get(key)));\n      this.updates.forEach(update => {\n        switch (update.op) {\n          case 'a':\n          case 's':\n            const base = (update.op === 'a' ? this.map.get(update.param) : undefined) || [];\n            base.push(valueToString(update.value));\n            this.map.set(update.param, base);\n            break;\n          case 'd':\n            if (update.value !== undefined) {\n              let base = this.map.get(update.param) || [];\n              const idx = base.indexOf(valueToString(update.value));\n              if (idx !== -1) {\n                base.splice(idx, 1);\n              }\n              if (base.length > 0) {\n                this.map.set(update.param, base);\n              } else {\n                this.map.delete(update.param);\n              }\n            } else {\n              this.map.delete(update.param);\n              break;\n            }\n        }\n      });\n      this.cloneFrom = this.updates = null;\n    }\n  }\n}\n\n/**\n * A token used to manipulate and access values stored in `HttpContext`.\n *\n * @publicApi\n */\nclass HttpContextToken {\n  constructor(defaultValue) {\n    this.defaultValue = defaultValue;\n  }\n}\n/**\n * Http context stores arbitrary user defined values and ensures type safety without\n * actually knowing the types. It is backed by a `Map` and guarantees that keys do not clash.\n *\n * This context is mutable and is shared between cloned requests unless explicitly specified.\n *\n * @usageNotes\n *\n * ### Usage Example\n *\n * ```typescript\n * // inside cache.interceptors.ts\n * export const IS_CACHE_ENABLED = new HttpContextToken<boolean>(() => false);\n *\n * export class CacheInterceptor implements HttpInterceptor {\n *\n *   intercept(req: HttpRequest<any>, delegate: HttpHandler): Observable<HttpEvent<any>> {\n *     if (req.context.get(IS_CACHE_ENABLED) === true) {\n *       return ...;\n *     }\n *     return delegate.handle(req);\n *   }\n * }\n *\n * // inside a service\n *\n * this.httpClient.get('/api/weather', {\n *   context: new HttpContext().set(IS_CACHE_ENABLED, true)\n * }).subscribe(...);\n * ```\n *\n * @publicApi\n */\nclass HttpContext {\n  constructor() {\n    this.map = new Map();\n  }\n  /**\n   * Store a value in the context. If a value is already present it will be overwritten.\n   *\n   * @param token The reference to an instance of `HttpContextToken`.\n   * @param value The value to store.\n   *\n   * @returns A reference to itself for easy chaining.\n   */\n  set(token, value) {\n    this.map.set(token, value);\n    return this;\n  }\n  /**\n   * Retrieve the value associated with the given token.\n   *\n   * @param token The reference to an instance of `HttpContextToken`.\n   *\n   * @returns The stored value or default if one is defined.\n   */\n  get(token) {\n    if (!this.map.has(token)) {\n      this.map.set(token, token.defaultValue());\n    }\n    return this.map.get(token);\n  }\n  /**\n   * Delete the value associated with the given token.\n   *\n   * @param token The reference to an instance of `HttpContextToken`.\n   *\n   * @returns A reference to itself for easy chaining.\n   */\n  delete(token) {\n    this.map.delete(token);\n    return this;\n  }\n  /**\n   * Checks for existence of a given token.\n   *\n   * @param token The reference to an instance of `HttpContextToken`.\n   *\n   * @returns True if the token exists, false otherwise.\n   */\n  has(token) {\n    return this.map.has(token);\n  }\n  /**\n   * @returns a list of tokens currently stored in the context.\n   */\n  keys() {\n    return this.map.keys();\n  }\n}\n\n/**\n * Determine whether the given HTTP method may include a body.\n */\nfunction mightHaveBody(method) {\n  switch (method) {\n    case 'DELETE':\n    case 'GET':\n    case 'HEAD':\n    case 'OPTIONS':\n    case 'JSONP':\n      return false;\n    default:\n      return true;\n  }\n}\n/**\n * Safely assert whether the given value is an ArrayBuffer.\n *\n * In some execution environments ArrayBuffer is not defined.\n */\nfunction isArrayBuffer(value) {\n  return typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer;\n}\n/**\n * Safely assert whether the given value is a Blob.\n *\n * In some execution environments Blob is not defined.\n */\nfunction isBlob(value) {\n  return typeof Blob !== 'undefined' && value instanceof Blob;\n}\n/**\n * Safely assert whether the given value is a FormData instance.\n *\n * In some execution environments FormData is not defined.\n */\nfunction isFormData(value) {\n  return typeof FormData !== 'undefined' && value instanceof FormData;\n}\n/**\n * Safely assert whether the given value is a URLSearchParams instance.\n *\n * In some execution environments URLSearchParams is not defined.\n */\nfunction isUrlSearchParams(value) {\n  return typeof URLSearchParams !== 'undefined' && value instanceof URLSearchParams;\n}\n/**\n * An outgoing HTTP request with an optional typed body.\n *\n * `HttpRequest` represents an outgoing request, including URL, method,\n * headers, body, and other request configuration options. Instances should be\n * assumed to be immutable. To modify a `HttpRequest`, the `clone`\n * method should be used.\n *\n * @publicApi\n */\nclass HttpRequest {\n  constructor(method, url, third, fourth) {\n    this.url = url;\n    /**\n     * The request body, or `null` if one isn't set.\n     *\n     * Bodies are not enforced to be immutable, as they can include a reference to any\n     * user-defined data type. However, interceptors should take care to preserve\n     * idempotence by treating them as such.\n     */\n    this.body = null;\n    /**\n     * Whether this request should be made in a way that exposes progress events.\n     *\n     * Progress events are expensive (change detection runs on each event) and so\n     * they should only be requested if the consumer intends to monitor them.\n     *\n     * Note: The `FetchBackend` doesn't support progress report on uploads.\n     */\n    this.reportProgress = false;\n    /**\n     * Whether this request should be sent with outgoing credentials (cookies).\n     */\n    this.withCredentials = false;\n    /**\n     * The expected response type of the server.\n     *\n     * This is used to parse the response appropriately before returning it to\n     * the requestee.\n     */\n    this.responseType = 'json';\n    this.method = method.toUpperCase();\n    // Next, need to figure out which argument holds the HttpRequestInit\n    // options, if any.\n    let options;\n    // Check whether a body argument is expected. The only valid way to omit\n    // the body argument is to use a known no-body method like GET.\n    if (mightHaveBody(this.method) || !!fourth) {\n      // Body is the third argument, options are the fourth.\n      this.body = third !== undefined ? third : null;\n      options = fourth;\n    } else {\n      // No body required, options are the third argument. The body stays null.\n      options = third;\n    }\n    // If options have been passed, interpret them.\n    if (options) {\n      // Normalize reportProgress and withCredentials.\n      this.reportProgress = !!options.reportProgress;\n      this.withCredentials = !!options.withCredentials;\n      // Override default response type of 'json' if one is provided.\n      if (!!options.responseType) {\n        this.responseType = options.responseType;\n      }\n      // Override headers if they're provided.\n      if (!!options.headers) {\n        this.headers = options.headers;\n      }\n      if (!!options.context) {\n        this.context = options.context;\n      }\n      if (!!options.params) {\n        this.params = options.params;\n      }\n      // We do want to assign transferCache even if it's falsy (false is valid value)\n      this.transferCache = options.transferCache;\n    }\n    // If no headers have been passed in, construct a new HttpHeaders instance.\n    this.headers ??= new HttpHeaders();\n    // If no context have been passed in, construct a new HttpContext instance.\n    this.context ??= new HttpContext();\n    // If no parameters have been passed in, construct a new HttpUrlEncodedParams instance.\n    if (!this.params) {\n      this.params = new HttpParams();\n      this.urlWithParams = url;\n    } else {\n      // Encode the parameters to a string in preparation for inclusion in the URL.\n      const params = this.params.toString();\n      if (params.length === 0) {\n        // No parameters, the visible URL is just the URL given at creation time.\n        this.urlWithParams = url;\n      } else {\n        // Does the URL already have query parameters? Look for '?'.\n        const qIdx = url.indexOf('?');\n        // There are 3 cases to handle:\n        // 1) No existing parameters -> append '?' followed by params.\n        // 2) '?' exists and is followed by existing query string ->\n        //    append '&' followed by params.\n        // 3) '?' exists at the end of the url -> append params directly.\n        // This basically amounts to determining the character, if any, with\n        // which to join the URL and parameters.\n        const sep = qIdx === -1 ? '?' : qIdx < url.length - 1 ? '&' : '';\n        this.urlWithParams = url + sep + params;\n      }\n    }\n  }\n  /**\n   * Transform the free-form body into a serialized format suitable for\n   * transmission to the server.\n   */\n  serializeBody() {\n    // If no body is present, no need to serialize it.\n    if (this.body === null) {\n      return null;\n    }\n    // Check whether the body is already in a serialized form. If so,\n    // it can just be returned directly.\n    if (typeof this.body === 'string' || isArrayBuffer(this.body) || isBlob(this.body) || isFormData(this.body) || isUrlSearchParams(this.body)) {\n      return this.body;\n    }\n    // Check whether the body is an instance of HttpUrlEncodedParams.\n    if (this.body instanceof HttpParams) {\n      return this.body.toString();\n    }\n    // Check whether the body is an object or array, and serialize with JSON if so.\n    if (typeof this.body === 'object' || typeof this.body === 'boolean' || Array.isArray(this.body)) {\n      return JSON.stringify(this.body);\n    }\n    // Fall back on toString() for everything else.\n    return this.body.toString();\n  }\n  /**\n   * Examine the body and attempt to infer an appropriate MIME type\n   * for it.\n   *\n   * If no such type can be inferred, this method will return `null`.\n   */\n  detectContentTypeHeader() {\n    // An empty body has no content type.\n    if (this.body === null) {\n      return null;\n    }\n    // FormData bodies rely on the browser's content type assignment.\n    if (isFormData(this.body)) {\n      return null;\n    }\n    // Blobs usually have their own content type. If it doesn't, then\n    // no type can be inferred.\n    if (isBlob(this.body)) {\n      return this.body.type || null;\n    }\n    // Array buffers have unknown contents and thus no type can be inferred.\n    if (isArrayBuffer(this.body)) {\n      return null;\n    }\n    // Technically, strings could be a form of JSON data, but it's safe enough\n    // to assume they're plain strings.\n    if (typeof this.body === 'string') {\n      return 'text/plain';\n    }\n    // `HttpUrlEncodedParams` has its own content-type.\n    if (this.body instanceof HttpParams) {\n      return 'application/x-www-form-urlencoded;charset=UTF-8';\n    }\n    // Arrays, objects, boolean and numbers will be encoded as JSON.\n    if (typeof this.body === 'object' || typeof this.body === 'number' || typeof this.body === 'boolean') {\n      return 'application/json';\n    }\n    // No type could be inferred.\n    return null;\n  }\n  clone(update = {}) {\n    // For method, url, and responseType, take the current value unless\n    // it is overridden in the update hash.\n    const method = update.method || this.method;\n    const url = update.url || this.url;\n    const responseType = update.responseType || this.responseType;\n    // Carefully handle the transferCache to differentiate between\n    // `false` and `undefined` in the update args.\n    const transferCache = update.transferCache ?? this.transferCache;\n    // The body is somewhat special - a `null` value in update.body means\n    // whatever current body is present is being overridden with an empty\n    // body, whereas an `undefined` value in update.body implies no\n    // override.\n    const body = update.body !== undefined ? update.body : this.body;\n    // Carefully handle the boolean options to differentiate between\n    // `false` and `undefined` in the update args.\n    const withCredentials = update.withCredentials ?? this.withCredentials;\n    const reportProgress = update.reportProgress ?? this.reportProgress;\n    // Headers and params may be appended to if `setHeaders` or\n    // `setParams` are used.\n    let headers = update.headers || this.headers;\n    let params = update.params || this.params;\n    // Pass on context if needed\n    const context = update.context ?? this.context;\n    // Check whether the caller has asked to add headers.\n    if (update.setHeaders !== undefined) {\n      // Set every requested header.\n      headers = Object.keys(update.setHeaders).reduce((headers, name) => headers.set(name, update.setHeaders[name]), headers);\n    }\n    // Check whether the caller has asked to set params.\n    if (update.setParams) {\n      // Set every requested param.\n      params = Object.keys(update.setParams).reduce((params, param) => params.set(param, update.setParams[param]), params);\n    }\n    // Finally, construct the new HttpRequest using the pieces from above.\n    return new HttpRequest(method, url, body, {\n      params,\n      headers,\n      context,\n      reportProgress,\n      responseType,\n      withCredentials,\n      transferCache\n    });\n  }\n}\n\n/**\n * Type enumeration for the different kinds of `HttpEvent`.\n *\n * @publicApi\n */\nvar HttpEventType = /*#__PURE__*/function (HttpEventType) {\n  /**\n   * The request was sent out over the wire.\n   */\n  HttpEventType[HttpEventType[\"Sent\"] = 0] = \"Sent\";\n  /**\n   * An upload progress event was received.\n   *\n   * Note: The `FetchBackend` doesn't support progress report on uploads.\n   */\n  HttpEventType[HttpEventType[\"UploadProgress\"] = 1] = \"UploadProgress\";\n  /**\n   * The response status code and headers were received.\n   */\n  HttpEventType[HttpEventType[\"ResponseHeader\"] = 2] = \"ResponseHeader\";\n  /**\n   * A download progress event was received.\n   */\n  HttpEventType[HttpEventType[\"DownloadProgress\"] = 3] = \"DownloadProgress\";\n  /**\n   * The full response including the body was received.\n   */\n  HttpEventType[HttpEventType[\"Response\"] = 4] = \"Response\";\n  /**\n   * A custom event from an interceptor or a backend.\n   */\n  HttpEventType[HttpEventType[\"User\"] = 5] = \"User\";\n  return HttpEventType;\n}(HttpEventType || {});\n/**\n * Base class for both `HttpResponse` and `HttpHeaderResponse`.\n *\n * @publicApi\n */\nclass HttpResponseBase {\n  /**\n   * Super-constructor for all responses.\n   *\n   * The single parameter accepted is an initialization hash. Any properties\n   * of the response passed there will override the default values.\n   */\n  constructor(init, defaultStatus = HttpStatusCode.Ok, defaultStatusText = 'OK') {\n    // If the hash has values passed, use them to initialize the response.\n    // Otherwise use the default values.\n    this.headers = init.headers || new HttpHeaders();\n    this.status = init.status !== undefined ? init.status : defaultStatus;\n    this.statusText = init.statusText || defaultStatusText;\n    this.url = init.url || null;\n    // Cache the ok value to avoid defining a getter.\n    this.ok = this.status >= 200 && this.status < 300;\n  }\n}\n/**\n * A partial HTTP response which only includes the status and header data,\n * but no response body.\n *\n * `HttpHeaderResponse` is a `HttpEvent` available on the response\n * event stream, only when progress events are requested.\n *\n * @publicApi\n */\nclass HttpHeaderResponse extends HttpResponseBase {\n  /**\n   * Create a new `HttpHeaderResponse` with the given parameters.\n   */\n  constructor(init = {}) {\n    super(init);\n    this.type = HttpEventType.ResponseHeader;\n  }\n  /**\n   * Copy this `HttpHeaderResponse`, overriding its contents with the\n   * given parameter hash.\n   */\n  clone(update = {}) {\n    // Perform a straightforward initialization of the new HttpHeaderResponse,\n    // overriding the current parameters with new ones if given.\n    return new HttpHeaderResponse({\n      headers: update.headers || this.headers,\n      status: update.status !== undefined ? update.status : this.status,\n      statusText: update.statusText || this.statusText,\n      url: update.url || this.url || undefined\n    });\n  }\n}\n/**\n * A full HTTP response, including a typed response body (which may be `null`\n * if one was not returned).\n *\n * `HttpResponse` is a `HttpEvent` available on the response event\n * stream.\n *\n * @publicApi\n */\nclass HttpResponse extends HttpResponseBase {\n  /**\n   * Construct a new `HttpResponse`.\n   */\n  constructor(init = {}) {\n    super(init);\n    this.type = HttpEventType.Response;\n    this.body = init.body !== undefined ? init.body : null;\n  }\n  clone(update = {}) {\n    return new HttpResponse({\n      body: update.body !== undefined ? update.body : this.body,\n      headers: update.headers || this.headers,\n      status: update.status !== undefined ? update.status : this.status,\n      statusText: update.statusText || this.statusText,\n      url: update.url || this.url || undefined\n    });\n  }\n}\n/**\n * A response that represents an error or failure, either from a\n * non-successful HTTP status, an error while executing the request,\n * or some other failure which occurred during the parsing of the response.\n *\n * Any error returned on the `Observable` response stream will be\n * wrapped in an `HttpErrorResponse` to provide additional context about\n * the state of the HTTP layer when the error occurred. The error property\n * will contain either a wrapped Error object or the error response returned\n * from the server.\n *\n * @publicApi\n */\nclass HttpErrorResponse extends HttpResponseBase {\n  constructor(init) {\n    // Initialize with a default status of 0 / Unknown Error.\n    super(init, 0, 'Unknown Error');\n    this.name = 'HttpErrorResponse';\n    /**\n     * Errors are never okay, even when the status code is in the 2xx success range.\n     */\n    this.ok = false;\n    // If the response was successful, then this was a parse error. Otherwise, it was\n    // a protocol-level failure of some sort. Either the request failed in transit\n    // or the server returned an unsuccessful status code.\n    if (this.status >= 200 && this.status < 300) {\n      this.message = `Http failure during parsing for ${init.url || '(unknown url)'}`;\n    } else {\n      this.message = `Http failure response for ${init.url || '(unknown url)'}: ${init.status} ${init.statusText}`;\n    }\n    this.error = init.error || null;\n  }\n}\n/**\n * Http status codes.\n * As per https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml\n * @publicApi\n */\nvar HttpStatusCode = /*#__PURE__*/function (HttpStatusCode) {\n  HttpStatusCode[HttpStatusCode[\"Continue\"] = 100] = \"Continue\";\n  HttpStatusCode[HttpStatusCode[\"SwitchingProtocols\"] = 101] = \"SwitchingProtocols\";\n  HttpStatusCode[HttpStatusCode[\"Processing\"] = 102] = \"Processing\";\n  HttpStatusCode[HttpStatusCode[\"EarlyHints\"] = 103] = \"EarlyHints\";\n  HttpStatusCode[HttpStatusCode[\"Ok\"] = 200] = \"Ok\";\n  HttpStatusCode[HttpStatusCode[\"Created\"] = 201] = \"Created\";\n  HttpStatusCode[HttpStatusCode[\"Accepted\"] = 202] = \"Accepted\";\n  HttpStatusCode[HttpStatusCode[\"NonAuthoritativeInformation\"] = 203] = \"NonAuthoritativeInformation\";\n  HttpStatusCode[HttpStatusCode[\"NoContent\"] = 204] = \"NoContent\";\n  HttpStatusCode[HttpStatusCode[\"ResetContent\"] = 205] = \"ResetContent\";\n  HttpStatusCode[HttpStatusCode[\"PartialContent\"] = 206] = \"PartialContent\";\n  HttpStatusCode[HttpStatusCode[\"MultiStatus\"] = 207] = \"MultiStatus\";\n  HttpStatusCode[HttpStatusCode[\"AlreadyReported\"] = 208] = \"AlreadyReported\";\n  HttpStatusCode[HttpStatusCode[\"ImUsed\"] = 226] = \"ImUsed\";\n  HttpStatusCode[HttpStatusCode[\"MultipleChoices\"] = 300] = \"MultipleChoices\";\n  HttpStatusCode[HttpStatusCode[\"MovedPermanently\"] = 301] = \"MovedPermanently\";\n  HttpStatusCode[HttpStatusCode[\"Found\"] = 302] = \"Found\";\n  HttpStatusCode[HttpStatusCode[\"SeeOther\"] = 303] = \"SeeOther\";\n  HttpStatusCode[HttpStatusCode[\"NotModified\"] = 304] = \"NotModified\";\n  HttpStatusCode[HttpStatusCode[\"UseProxy\"] = 305] = \"UseProxy\";\n  HttpStatusCode[HttpStatusCode[\"Unused\"] = 306] = \"Unused\";\n  HttpStatusCode[HttpStatusCode[\"TemporaryRedirect\"] = 307] = \"TemporaryRedirect\";\n  HttpStatusCode[HttpStatusCode[\"PermanentRedirect\"] = 308] = \"PermanentRedirect\";\n  HttpStatusCode[HttpStatusCode[\"BadRequest\"] = 400] = \"BadRequest\";\n  HttpStatusCode[HttpStatusCode[\"Unauthorized\"] = 401] = \"Unauthorized\";\n  HttpStatusCode[HttpStatusCode[\"PaymentRequired\"] = 402] = \"PaymentRequired\";\n  HttpStatusCode[HttpStatusCode[\"Forbidden\"] = 403] = \"Forbidden\";\n  HttpStatusCode[HttpStatusCode[\"NotFound\"] = 404] = \"NotFound\";\n  HttpStatusCode[HttpStatusCode[\"MethodNotAllowed\"] = 405] = \"MethodNotAllowed\";\n  HttpStatusCode[HttpStatusCode[\"NotAcceptable\"] = 406] = \"NotAcceptable\";\n  HttpStatusCode[HttpStatusCode[\"ProxyAuthenticationRequired\"] = 407] = \"ProxyAuthenticationRequired\";\n  HttpStatusCode[HttpStatusCode[\"RequestTimeout\"] = 408] = \"RequestTimeout\";\n  HttpStatusCode[HttpStatusCode[\"Conflict\"] = 409] = \"Conflict\";\n  HttpStatusCode[HttpStatusCode[\"Gone\"] = 410] = \"Gone\";\n  HttpStatusCode[HttpStatusCode[\"LengthRequired\"] = 411] = \"LengthRequired\";\n  HttpStatusCode[HttpStatusCode[\"PreconditionFailed\"] = 412] = \"PreconditionFailed\";\n  HttpStatusCode[HttpStatusCode[\"PayloadTooLarge\"] = 413] = \"PayloadTooLarge\";\n  HttpStatusCode[HttpStatusCode[\"UriTooLong\"] = 414] = \"UriTooLong\";\n  HttpStatusCode[HttpStatusCode[\"UnsupportedMediaType\"] = 415] = \"UnsupportedMediaType\";\n  HttpStatusCode[HttpStatusCode[\"RangeNotSatisfiable\"] = 416] = \"RangeNotSatisfiable\";\n  HttpStatusCode[HttpStatusCode[\"ExpectationFailed\"] = 417] = \"ExpectationFailed\";\n  HttpStatusCode[HttpStatusCode[\"ImATeapot\"] = 418] = \"ImATeapot\";\n  HttpStatusCode[HttpStatusCode[\"MisdirectedRequest\"] = 421] = \"MisdirectedRequest\";\n  HttpStatusCode[HttpStatusCode[\"UnprocessableEntity\"] = 422] = \"UnprocessableEntity\";\n  HttpStatusCode[HttpStatusCode[\"Locked\"] = 423] = \"Locked\";\n  HttpStatusCode[HttpStatusCode[\"FailedDependency\"] = 424] = \"FailedDependency\";\n  HttpStatusCode[HttpStatusCode[\"TooEarly\"] = 425] = \"TooEarly\";\n  HttpStatusCode[HttpStatusCode[\"UpgradeRequired\"] = 426] = \"UpgradeRequired\";\n  HttpStatusCode[HttpStatusCode[\"PreconditionRequired\"] = 428] = \"PreconditionRequired\";\n  HttpStatusCode[HttpStatusCode[\"TooManyRequests\"] = 429] = \"TooManyRequests\";\n  HttpStatusCode[HttpStatusCode[\"RequestHeaderFieldsTooLarge\"] = 431] = \"RequestHeaderFieldsTooLarge\";\n  HttpStatusCode[HttpStatusCode[\"UnavailableForLegalReasons\"] = 451] = \"UnavailableForLegalReasons\";\n  HttpStatusCode[HttpStatusCode[\"InternalServerError\"] = 500] = \"InternalServerError\";\n  HttpStatusCode[HttpStatusCode[\"NotImplemented\"] = 501] = \"NotImplemented\";\n  HttpStatusCode[HttpStatusCode[\"BadGateway\"] = 502] = \"BadGateway\";\n  HttpStatusCode[HttpStatusCode[\"ServiceUnavailable\"] = 503] = \"ServiceUnavailable\";\n  HttpStatusCode[HttpStatusCode[\"GatewayTimeout\"] = 504] = \"GatewayTimeout\";\n  HttpStatusCode[HttpStatusCode[\"HttpVersionNotSupported\"] = 505] = \"HttpVersionNotSupported\";\n  HttpStatusCode[HttpStatusCode[\"VariantAlsoNegotiates\"] = 506] = \"VariantAlsoNegotiates\";\n  HttpStatusCode[HttpStatusCode[\"InsufficientStorage\"] = 507] = \"InsufficientStorage\";\n  HttpStatusCode[HttpStatusCode[\"LoopDetected\"] = 508] = \"LoopDetected\";\n  HttpStatusCode[HttpStatusCode[\"NotExtended\"] = 510] = \"NotExtended\";\n  HttpStatusCode[HttpStatusCode[\"NetworkAuthenticationRequired\"] = 511] = \"NetworkAuthenticationRequired\";\n  return HttpStatusCode;\n}(HttpStatusCode || {});\n/**\n * Constructs an instance of `HttpRequestOptions<T>` from a source `HttpMethodOptions` and\n * the given `body`. This function clones the object and adds the body.\n *\n * Note that the `responseType` *options* value is a String that identifies the\n * single data type of the response.\n * A single overload version of the method handles each response type.\n * The value of `responseType` cannot be a union, as the combined signature could imply.\n *\n */\nfunction addBody(options, body) {\n  return {\n    body,\n    headers: options.headers,\n    context: options.context,\n    observe: options.observe,\n    params: options.params,\n    reportProgress: options.reportProgress,\n    responseType: options.responseType,\n    withCredentials: options.withCredentials,\n    transferCache: options.transferCache\n  };\n}\n/**\n * Performs HTTP requests.\n * This service is available as an injectable class, with methods to perform HTTP requests.\n * Each request method has multiple signatures, and the return type varies based on\n * the signature that is called (mainly the values of `observe` and `responseType`).\n *\n * Note that the `responseType` *options* value is a String that identifies the\n * single data type of the response.\n * A single overload version of the method handles each response type.\n * The value of `responseType` cannot be a union, as the combined signature could imply.\n\n *\n * @usageNotes\n * Sample HTTP requests for the [Tour of Heroes](/tutorial/tour-of-heroes/toh-pt0) application.\n *\n * ### HTTP Request Example\n *\n * ```\n *  // GET heroes whose name contains search term\n * searchHeroes(term: string): observable<Hero[]>{\n *\n *  const params = new HttpParams({fromString: 'name=term'});\n *    return this.httpClient.request('GET', this.heroesUrl, {responseType:'json', params});\n * }\n * ```\n *\n * Alternatively, the parameter string can be used without invoking HttpParams\n * by directly joining to the URL.\n * ```\n * this.httpClient.request('GET', this.heroesUrl + '?' + 'name=term', {responseType:'json'});\n * ```\n *\n *\n * ### JSONP Example\n * ```\n * requestJsonp(url, callback = 'callback') {\n *  return this.httpClient.jsonp(this.heroesURL, callback);\n * }\n * ```\n *\n * ### PATCH Example\n * ```\n * // PATCH one of the heroes' name\n * patchHero (id: number, heroName: string): Observable<{}> {\n * const url = `${this.heroesUrl}/${id}`;   // PATCH api/heroes/42\n *  return this.httpClient.patch(url, {name: heroName}, httpOptions)\n *    .pipe(catchError(this.handleError('patchHero')));\n * }\n * ```\n *\n * @see [HTTP Guide](guide/understanding-communicating-with-http)\n * @see [HTTP Request](api/common/http/HttpRequest)\n *\n * @publicApi\n */\nlet HttpClient = /*#__PURE__*/(() => {\n  class HttpClient {\n    constructor(handler) {\n      this.handler = handler;\n    }\n    /**\n     * Constructs an observable for a generic HTTP request that, when subscribed,\n     * fires the request through the chain of registered interceptors and on to the\n     * server.\n     *\n     * You can pass an `HttpRequest` directly as the only parameter. In this case,\n     * the call returns an observable of the raw `HttpEvent` stream.\n     *\n     * Alternatively you can pass an HTTP method as the first parameter,\n     * a URL string as the second, and an options hash containing the request body as the third.\n     * See `addBody()`. In this case, the specified `responseType` and `observe` options determine the\n     * type of returned observable.\n     *   * The `responseType` value determines how a successful response body is parsed.\n     *   * If `responseType` is the default `json`, you can pass a type interface for the resulting\n     * object as a type parameter to the call.\n     *\n     * The `observe` value determines the return type, according to what you are interested in\n     * observing.\n     *   * An `observe` value of events returns an observable of the raw `HttpEvent` stream, including\n     * progress events by default.\n     *   * An `observe` value of response returns an observable of `HttpResponse<T>`,\n     * where the `T` parameter depends on the `responseType` and any optionally provided type\n     * parameter.\n     *   * An `observe` value of body returns an observable of `<T>` with the same `T` body type.\n     *\n     */\n    request(first, url, options = {}) {\n      let req;\n      // First, check whether the primary argument is an instance of `HttpRequest`.\n      if (first instanceof HttpRequest) {\n        // It is. The other arguments must be undefined (per the signatures) and can be\n        // ignored.\n        req = first;\n      } else {\n        // It's a string, so it represents a URL. Construct a request based on it,\n        // and incorporate the remaining arguments (assuming `GET` unless a method is\n        // provided.\n        // Figure out the headers.\n        let headers = undefined;\n        if (options.headers instanceof HttpHeaders) {\n          headers = options.headers;\n        } else {\n          headers = new HttpHeaders(options.headers);\n        }\n        // Sort out parameters.\n        let params = undefined;\n        if (!!options.params) {\n          if (options.params instanceof HttpParams) {\n            params = options.params;\n          } else {\n            params = new HttpParams({\n              fromObject: options.params\n            });\n          }\n        }\n        // Construct the request.\n        req = new HttpRequest(first, url, options.body !== undefined ? options.body : null, {\n          headers,\n          context: options.context,\n          params,\n          reportProgress: options.reportProgress,\n          // By default, JSON is assumed to be returned for all calls.\n          responseType: options.responseType || 'json',\n          withCredentials: options.withCredentials,\n          transferCache: options.transferCache\n        });\n      }\n      // Start with an Observable.of() the initial request, and run the handler (which\n      // includes all interceptors) inside a concatMap(). This way, the handler runs\n      // inside an Observable chain, which causes interceptors to be re-run on every\n      // subscription (this also makes retries re-run the handler, including interceptors).\n      const events$ = of(req).pipe(concatMap(req => this.handler.handle(req)));\n      // If coming via the API signature which accepts a previously constructed HttpRequest,\n      // the only option is to get the event stream. Otherwise, return the event stream if\n      // that is what was requested.\n      if (first instanceof HttpRequest || options.observe === 'events') {\n        return events$;\n      }\n      // The requested stream contains either the full response or the body. In either\n      // case, the first step is to filter the event stream to extract a stream of\n      // responses(s).\n      const res$ = events$.pipe(filter(event => event instanceof HttpResponse));\n      // Decide which stream to return.\n      switch (options.observe || 'body') {\n        case 'body':\n          // The requested stream is the body. Map the response stream to the response\n          // body. This could be done more simply, but a misbehaving interceptor might\n          // transform the response body into a different format and ignore the requested\n          // responseType. Guard against this by validating that the response is of the\n          // requested type.\n          switch (req.responseType) {\n            case 'arraybuffer':\n              return res$.pipe(map(res => {\n                // Validate that the body is an ArrayBuffer.\n                if (res.body !== null && !(res.body instanceof ArrayBuffer)) {\n                  throw new Error('Response is not an ArrayBuffer.');\n                }\n                return res.body;\n              }));\n            case 'blob':\n              return res$.pipe(map(res => {\n                // Validate that the body is a Blob.\n                if (res.body !== null && !(res.body instanceof Blob)) {\n                  throw new Error('Response is not a Blob.');\n                }\n                return res.body;\n              }));\n            case 'text':\n              return res$.pipe(map(res => {\n                // Validate that the body is a string.\n                if (res.body !== null && typeof res.body !== 'string') {\n                  throw new Error('Response is not a string.');\n                }\n                return res.body;\n              }));\n            case 'json':\n            default:\n              // No validation needed for JSON responses, as they can be of any type.\n              return res$.pipe(map(res => res.body));\n          }\n        case 'response':\n          // The response stream was requested directly, so return it.\n          return res$;\n        default:\n          // Guard against new future observe types being added.\n          throw new Error(`Unreachable: unhandled observe type ${options.observe}}`);\n      }\n    }\n    /**\n     * Constructs an observable that, when subscribed, causes the configured\n     * `DELETE` request to execute on the server. See the individual overloads for\n     * details on the return type.\n     *\n     * @param url     The endpoint URL.\n     * @param options The HTTP options to send with the request.\n     *\n     */\n    delete(url, options = {}) {\n      return this.request('DELETE', url, options);\n    }\n    /**\n     * Constructs an observable that, when subscribed, causes the configured\n     * `GET` request to execute on the server. See the individual overloads for\n     * details on the return type.\n     */\n    get(url, options = {}) {\n      return this.request('GET', url, options);\n    }\n    /**\n     * Constructs an observable that, when subscribed, causes the configured\n     * `HEAD` request to execute on the server. The `HEAD` method returns\n     * meta information about the resource without transferring the\n     * resource itself. See the individual overloads for\n     * details on the return type.\n     */\n    head(url, options = {}) {\n      return this.request('HEAD', url, options);\n    }\n    /**\n     * Constructs an `Observable` that, when subscribed, causes a request with the special method\n     * `JSONP` to be dispatched via the interceptor pipeline.\n     * The [JSONP pattern](https://en.wikipedia.org/wiki/JSONP) works around limitations of certain\n     * API endpoints that don't support newer,\n     * and preferable [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) protocol.\n     * JSONP treats the endpoint API as a JavaScript file and tricks the browser to process the\n     * requests even if the API endpoint is not located on the same domain (origin) as the client-side\n     * application making the request.\n     * The endpoint API must support JSONP callback for JSONP requests to work.\n     * The resource API returns the JSON response wrapped in a callback function.\n     * You can pass the callback function name as one of the query parameters.\n     * Note that JSONP requests can only be used with `GET` requests.\n     *\n     * @param url The resource URL.\n     * @param callbackParam The callback function name.\n     *\n     */\n    jsonp(url, callbackParam) {\n      return this.request('JSONP', url, {\n        params: new HttpParams().append(callbackParam, 'JSONP_CALLBACK'),\n        observe: 'body',\n        responseType: 'json'\n      });\n    }\n    /**\n     * Constructs an `Observable` that, when subscribed, causes the configured\n     * `OPTIONS` request to execute on the server. This method allows the client\n     * to determine the supported HTTP methods and other capabilities of an endpoint,\n     * without implying a resource action. See the individual overloads for\n     * details on the return type.\n     */\n    options(url, options = {}) {\n      return this.request('OPTIONS', url, options);\n    }\n    /**\n     * Constructs an observable that, when subscribed, causes the configured\n     * `PATCH` request to execute on the server. See the individual overloads for\n     * details on the return type.\n     */\n    patch(url, body, options = {}) {\n      return this.request('PATCH', url, addBody(options, body));\n    }\n    /**\n     * Constructs an observable that, when subscribed, causes the configured\n     * `POST` request to execute on the server. The server responds with the location of\n     * the replaced resource. See the individual overloads for\n     * details on the return type.\n     */\n    post(url, body, options = {}) {\n      return this.request('POST', url, addBody(options, body));\n    }\n    /**\n     * Constructs an observable that, when subscribed, causes the configured\n     * `PUT` request to execute on the server. The `PUT` method replaces an existing resource\n     * with a new set of values.\n     * See the individual overloads for details on the return type.\n     */\n    put(url, body, options = {}) {\n      return this.request('PUT', url, addBody(options, body));\n    }\n    static {\n      this.ɵfac = function HttpClient_Factory(t) {\n        return new (t || HttpClient)(i0.ɵɵinject(HttpHandler));\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: HttpClient,\n        factory: HttpClient.ɵfac\n      });\n    }\n  }\n  return HttpClient;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst XSSI_PREFIX$1 = /^\\)\\]\\}',?\\n/;\nconst REQUEST_URL_HEADER = `X-Request-URL`;\n/**\n * Determine an appropriate URL for the response, by checking either\n * response url or the X-Request-URL header.\n */\nfunction getResponseUrl$1(response) {\n  if (response.url) {\n    return response.url;\n  }\n  // stored as lowercase in the map\n  const xRequestUrl = REQUEST_URL_HEADER.toLocaleLowerCase();\n  return response.headers.get(xRequestUrl);\n}\n/**\n * Uses `fetch` to send requests to a backend server.\n *\n * This `FetchBackend` requires the support of the\n * [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) which is available on all\n * supported browsers and on Node.js v18 or later.\n *\n * @see {@link HttpHandler}\n *\n * @publicApi\n */\nlet FetchBackend = /*#__PURE__*/(() => {\n  class FetchBackend {\n    constructor() {\n      // We need to bind the native fetch to its context or it will throw an \"illegal invocation\"\n      this.fetchImpl = inject(FetchFactory, {\n        optional: true\n      })?.fetch ?? fetch.bind(globalThis);\n      this.ngZone = inject(NgZone);\n    }\n    handle(request) {\n      return new Observable(observer => {\n        const aborter = new AbortController();\n        this.doRequest(request, aborter.signal, observer).then(noop, error => observer.error(new HttpErrorResponse({\n          error\n        })));\n        return () => aborter.abort();\n      });\n    }\n    async doRequest(request, signal, observer) {\n      const init = this.createRequestInit(request);\n      let response;\n      try {\n        const fetchPromise = this.fetchImpl(request.urlWithParams, {\n          signal,\n          ...init\n        });\n        // Make sure Zone.js doesn't trigger false-positive unhandled promise\n        // error in case the Promise is rejected synchronously. See function\n        // description for additional information.\n        silenceSuperfluousUnhandledPromiseRejection(fetchPromise);\n        // Send the `Sent` event before awaiting the response.\n        observer.next({\n          type: HttpEventType.Sent\n        });\n        response = await fetchPromise;\n      } catch (error) {\n        observer.error(new HttpErrorResponse({\n          error,\n          status: error.status ?? 0,\n          statusText: error.statusText,\n          url: request.urlWithParams,\n          headers: error.headers\n        }));\n        return;\n      }\n      const headers = new HttpHeaders(response.headers);\n      const statusText = response.statusText;\n      const url = getResponseUrl$1(response) ?? request.urlWithParams;\n      let status = response.status;\n      let body = null;\n      if (request.reportProgress) {\n        observer.next(new HttpHeaderResponse({\n          headers,\n          status,\n          statusText,\n          url\n        }));\n      }\n      if (response.body) {\n        // Read Progress\n        const contentLength = response.headers.get('content-length');\n        const chunks = [];\n        const reader = response.body.getReader();\n        let receivedLength = 0;\n        let decoder;\n        let partialText;\n        // We have to check whether the Zone is defined in the global scope because this may be called\n        // when the zone is nooped.\n        const reqZone = typeof Zone !== 'undefined' && Zone.current;\n        // Perform response processing outside of Angular zone to\n        // ensure no excessive change detection runs are executed\n        // Here calling the async ReadableStreamDefaultReader.read() is responsible for triggering CD\n        await this.ngZone.runOutsideAngular(async () => {\n          while (true) {\n            const {\n              done,\n              value\n            } = await reader.read();\n            if (done) {\n              break;\n            }\n            chunks.push(value);\n            receivedLength += value.length;\n            if (request.reportProgress) {\n              partialText = request.responseType === 'text' ? (partialText ?? '') + (decoder ??= new TextDecoder()).decode(value, {\n                stream: true\n              }) : undefined;\n              const reportProgress = () => observer.next({\n                type: HttpEventType.DownloadProgress,\n                total: contentLength ? +contentLength : undefined,\n                loaded: receivedLength,\n                partialText\n              });\n              reqZone ? reqZone.run(reportProgress) : reportProgress();\n            }\n          }\n        });\n        // Combine all chunks.\n        const chunksAll = this.concatChunks(chunks, receivedLength);\n        try {\n          const contentType = response.headers.get('Content-Type') ?? '';\n          body = this.parseBody(request, chunksAll, contentType);\n        } catch (error) {\n          // Body loading or parsing failed\n          observer.error(new HttpErrorResponse({\n            error,\n            headers: new HttpHeaders(response.headers),\n            status: response.status,\n            statusText: response.statusText,\n            url: getResponseUrl$1(response) ?? request.urlWithParams\n          }));\n          return;\n        }\n      }\n      // Same behavior as the XhrBackend\n      if (status === 0) {\n        status = body ? HttpStatusCode.Ok : 0;\n      }\n      // ok determines whether the response will be transmitted on the event or\n      // error channel. Unsuccessful status codes (not 2xx) will always be errors,\n      // but a successful status code can still result in an error if the user\n      // asked for JSON data and the body cannot be parsed as such.\n      const ok = status >= 200 && status < 300;\n      if (ok) {\n        observer.next(new HttpResponse({\n          body,\n          headers,\n          status,\n          statusText,\n          url\n        }));\n        // The full body has been received and delivered, no further events\n        // are possible. This request is complete.\n        observer.complete();\n      } else {\n        observer.error(new HttpErrorResponse({\n          error: body,\n          headers,\n          status,\n          statusText,\n          url\n        }));\n      }\n    }\n    parseBody(request, binContent, contentType) {\n      switch (request.responseType) {\n        case 'json':\n          // stripping the XSSI when present\n          const text = new TextDecoder().decode(binContent).replace(XSSI_PREFIX$1, '');\n          return text === '' ? null : JSON.parse(text);\n        case 'text':\n          return new TextDecoder().decode(binContent);\n        case 'blob':\n          return new Blob([binContent], {\n            type: contentType\n          });\n        case 'arraybuffer':\n          return binContent.buffer;\n      }\n    }\n    createRequestInit(req) {\n      // We could share some of this logic with the XhrBackend\n      const headers = {};\n      const credentials = req.withCredentials ? 'include' : undefined;\n      // Setting all the requested headers.\n      req.headers.forEach((name, values) => headers[name] = values.join(','));\n      // Add an Accept header if one isn't present already.\n      headers['Accept'] ??= 'application/json, text/plain, */*';\n      // Auto-detect the Content-Type header if one isn't present already.\n      if (!headers['Content-Type']) {\n        const detectedType = req.detectContentTypeHeader();\n        // Sometimes Content-Type detection fails.\n        if (detectedType !== null) {\n          headers['Content-Type'] = detectedType;\n        }\n      }\n      return {\n        body: req.serializeBody(),\n        method: req.method,\n        headers,\n        credentials\n      };\n    }\n    concatChunks(chunks, totalLength) {\n      const chunksAll = new Uint8Array(totalLength);\n      let position = 0;\n      for (const chunk of chunks) {\n        chunksAll.set(chunk, position);\n        position += chunk.length;\n      }\n      return chunksAll;\n    }\n    static {\n      this.ɵfac = function FetchBackend_Factory(t) {\n        return new (t || FetchBackend)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: FetchBackend,\n        factory: FetchBackend.ɵfac\n      });\n    }\n  }\n  return FetchBackend;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Abstract class to provide a mocked implementation of `fetch()`\n */\nclass FetchFactory {}\nfunction noop() {}\n/**\n * Zone.js treats a rejected promise that has not yet been awaited\n * as an unhandled error. This function adds a noop `.then` to make\n * sure that Zone.js doesn't throw an error if the Promise is rejected\n * synchronously.\n */\nfunction silenceSuperfluousUnhandledPromiseRejection(promise) {\n  promise.then(noop, noop);\n}\nfunction interceptorChainEndFn(req, finalHandlerFn) {\n  return finalHandlerFn(req);\n}\n/**\n * Constructs a `ChainedInterceptorFn` which adapts a legacy `HttpInterceptor` to the\n * `ChainedInterceptorFn` interface.\n */\nfunction adaptLegacyInterceptorToChain(chainTailFn, interceptor) {\n  return (initialRequest, finalHandlerFn) => interceptor.intercept(initialRequest, {\n    handle: downstreamRequest => chainTailFn(downstreamRequest, finalHandlerFn)\n  });\n}\n/**\n * Constructs a `ChainedInterceptorFn` which wraps and invokes a functional interceptor in the given\n * injector.\n */\nfunction chainedInterceptorFn(chainTailFn, interceptorFn, injector) {\n  // clang-format off\n  return (initialRequest, finalHandlerFn) => runInInjectionContext(injector, () => interceptorFn(initialRequest, downstreamRequest => chainTailFn(downstreamRequest, finalHandlerFn)));\n  // clang-format on\n}\n/**\n * A multi-provider token that represents the array of registered\n * `HttpInterceptor` objects.\n *\n * @publicApi\n */\nconst HTTP_INTERCEPTORS = /*#__PURE__*/new InjectionToken(ngDevMode ? 'HTTP_INTERCEPTORS' : '');\n/**\n * A multi-provided token of `HttpInterceptorFn`s.\n */\nconst HTTP_INTERCEPTOR_FNS = /*#__PURE__*/new InjectionToken(ngDevMode ? 'HTTP_INTERCEPTOR_FNS' : '');\n/**\n * A multi-provided token of `HttpInterceptorFn`s that are only set in root.\n */\nconst HTTP_ROOT_INTERCEPTOR_FNS = /*#__PURE__*/new InjectionToken(ngDevMode ? 'HTTP_ROOT_INTERCEPTOR_FNS' : '');\n/**\n * A provider to set a global primary http backend. If set, it will override the default one\n */\nconst PRIMARY_HTTP_BACKEND = /*#__PURE__*/new InjectionToken(ngDevMode ? 'PRIMARY_HTTP_BACKEND' : '');\n/**\n * Creates an `HttpInterceptorFn` which lazily initializes an interceptor chain from the legacy\n * class-based interceptors and runs the request through it.\n */\nfunction legacyInterceptorFnFactory() {\n  let chain = null;\n  return (req, handler) => {\n    if (chain === null) {\n      const interceptors = inject(HTTP_INTERCEPTORS, {\n        optional: true\n      }) ?? [];\n      // Note: interceptors are wrapped right-to-left so that final execution order is\n      // left-to-right. That is, if `interceptors` is the array `[a, b, c]`, we want to\n      // produce a chain that is conceptually `c(b(a(end)))`, which we build from the inside\n      // out.\n      chain = interceptors.reduceRight(adaptLegacyInterceptorToChain, interceptorChainEndFn);\n    }\n    const pendingTasks = inject(ɵPendingTasks);\n    const taskId = pendingTasks.add();\n    return chain(req, handler).pipe(finalize(() => pendingTasks.remove(taskId)));\n  };\n}\nlet fetchBackendWarningDisplayed = false;\n/** Internal function to reset the flag in tests */\nfunction resetFetchBackendWarningFlag() {\n  fetchBackendWarningDisplayed = false;\n}\nlet HttpInterceptorHandler = /*#__PURE__*/(() => {\n  class HttpInterceptorHandler extends HttpHandler {\n    constructor(backend, injector) {\n      super();\n      this.backend = backend;\n      this.injector = injector;\n      this.chain = null;\n      this.pendingTasks = inject(ɵPendingTasks);\n      // Check if there is a preferred HTTP backend configured and use it if that's the case.\n      // This is needed to enable `FetchBackend` globally for all HttpClient's when `withFetch`\n      // is used.\n      const primaryHttpBackend = inject(PRIMARY_HTTP_BACKEND, {\n        optional: true\n      });\n      this.backend = primaryHttpBackend ?? backend;\n      // We strongly recommend using fetch backend for HTTP calls when SSR is used\n      // for an application. The logic below checks if that's the case and produces\n      // a warning otherwise.\n      if ((typeof ngDevMode === 'undefined' || ngDevMode) && !fetchBackendWarningDisplayed) {\n        const isServer = isPlatformServer(injector.get(PLATFORM_ID));\n        if (isServer && !(this.backend instanceof FetchBackend)) {\n          fetchBackendWarningDisplayed = true;\n          injector.get(ɵConsole).warn(ɵformatRuntimeError(2801 /* RuntimeErrorCode.NOT_USING_FETCH_BACKEND_IN_SSR */, 'Angular detected that `HttpClient` is not configured ' + \"to use `fetch` APIs. It's strongly recommended to \" + 'enable `fetch` for applications that use Server-Side Rendering ' + 'for better performance and compatibility. ' + 'To enable `fetch`, add the `withFetch()` to the `provideHttpClient()` ' + 'call at the root of the application.'));\n        }\n      }\n    }\n    handle(initialRequest) {\n      if (this.chain === null) {\n        const dedupedInterceptorFns = Array.from(new Set([...this.injector.get(HTTP_INTERCEPTOR_FNS), ...this.injector.get(HTTP_ROOT_INTERCEPTOR_FNS, [])]));\n        // Note: interceptors are wrapped right-to-left so that final execution order is\n        // left-to-right. That is, if `dedupedInterceptorFns` is the array `[a, b, c]`, we want to\n        // produce a chain that is conceptually `c(b(a(end)))`, which we build from the inside\n        // out.\n        this.chain = dedupedInterceptorFns.reduceRight((nextSequencedFn, interceptorFn) => chainedInterceptorFn(nextSequencedFn, interceptorFn, this.injector), interceptorChainEndFn);\n      }\n      const taskId = this.pendingTasks.add();\n      return this.chain(initialRequest, downstreamRequest => this.backend.handle(downstreamRequest)).pipe(finalize(() => this.pendingTasks.remove(taskId)));\n    }\n    static {\n      this.ɵfac = function HttpInterceptorHandler_Factory(t) {\n        return new (t || HttpInterceptorHandler)(i0.ɵɵinject(HttpBackend), i0.ɵɵinject(i0.EnvironmentInjector));\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: HttpInterceptorHandler,\n        factory: HttpInterceptorHandler.ɵfac\n      });\n    }\n  }\n  return HttpInterceptorHandler;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// Every request made through JSONP needs a callback name that's unique across the\n// whole page. Each request is assigned an id and the callback name is constructed\n// from that. The next id to be assigned is tracked in a global variable here that\n// is shared among all applications on the page.\nlet nextRequestId = 0;\n/**\n * When a pending <script> is unsubscribed we'll move it to this document, so it won't be\n * executed.\n */\nlet foreignDocument;\n// Error text given when a JSONP script is injected, but doesn't invoke the callback\n// passed in its URL.\nconst JSONP_ERR_NO_CALLBACK = 'JSONP injected script did not invoke callback.';\n// Error text given when a request is passed to the JsonpClientBackend that doesn't\n// have a request method JSONP.\nconst JSONP_ERR_WRONG_METHOD = 'JSONP requests must use JSONP request method.';\nconst JSONP_ERR_WRONG_RESPONSE_TYPE = 'JSONP requests must use Json response type.';\n// Error text given when a request is passed to the JsonpClientBackend that has\n// headers set\nconst JSONP_ERR_HEADERS_NOT_SUPPORTED = 'JSONP requests do not support headers.';\n/**\n * DI token/abstract type representing a map of JSONP callbacks.\n *\n * In the browser, this should always be the `window` object.\n *\n *\n */\nclass JsonpCallbackContext {}\n/**\n * Factory function that determines where to store JSONP callbacks.\n *\n * Ordinarily JSONP callbacks are stored on the `window` object, but this may not exist\n * in test environments. In that case, callbacks are stored on an anonymous object instead.\n *\n *\n */\nfunction jsonpCallbackContext() {\n  if (typeof window === 'object') {\n    return window;\n  }\n  return {};\n}\n/**\n * Processes an `HttpRequest` with the JSONP method,\n * by performing JSONP style requests.\n * @see {@link HttpHandler}\n * @see {@link HttpXhrBackend}\n *\n * @publicApi\n */\nlet JsonpClientBackend = /*#__PURE__*/(() => {\n  class JsonpClientBackend {\n    constructor(callbackMap, document) {\n      this.callbackMap = callbackMap;\n      this.document = document;\n      /**\n       * A resolved promise that can be used to schedule microtasks in the event handlers.\n       */\n      this.resolvedPromise = Promise.resolve();\n    }\n    /**\n     * Get the name of the next callback method, by incrementing the global `nextRequestId`.\n     */\n    nextCallback() {\n      return `ng_jsonp_callback_${nextRequestId++}`;\n    }\n    /**\n     * Processes a JSONP request and returns an event stream of the results.\n     * @param req The request object.\n     * @returns An observable of the response events.\n     *\n     */\n    handle(req) {\n      // Firstly, check both the method and response type. If either doesn't match\n      // then the request was improperly routed here and cannot be handled.\n      if (req.method !== 'JSONP') {\n        throw new Error(JSONP_ERR_WRONG_METHOD);\n      } else if (req.responseType !== 'json') {\n        throw new Error(JSONP_ERR_WRONG_RESPONSE_TYPE);\n      }\n      // Check the request headers. JSONP doesn't support headers and\n      // cannot set any that were supplied.\n      if (req.headers.keys().length > 0) {\n        throw new Error(JSONP_ERR_HEADERS_NOT_SUPPORTED);\n      }\n      // Everything else happens inside the Observable boundary.\n      return new Observable(observer => {\n        // The first step to make a request is to generate the callback name, and replace the\n        // callback placeholder in the URL with the name. Care has to be taken here to ensure\n        // a trailing &, if matched, gets inserted back into the URL in the correct place.\n        const callback = this.nextCallback();\n        const url = req.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/, `=${callback}$1`);\n        // Construct the <script> tag and point it at the URL.\n        const node = this.document.createElement('script');\n        node.src = url;\n        // A JSONP request requires waiting for multiple callbacks. These variables\n        // are closed over and track state across those callbacks.\n        // The response object, if one has been received, or null otherwise.\n        let body = null;\n        // Whether the response callback has been called.\n        let finished = false;\n        // Set the response callback in this.callbackMap (which will be the window\n        // object in the browser. The script being loaded via the <script> tag will\n        // eventually call this callback.\n        this.callbackMap[callback] = data => {\n          // Data has been received from the JSONP script. Firstly, delete this callback.\n          delete this.callbackMap[callback];\n          // Set state to indicate data was received.\n          body = data;\n          finished = true;\n        };\n        // cleanup() is a utility closure that removes the <script> from the page and\n        // the response callback from the window. This logic is used in both the\n        // success, error, and cancellation paths, so it's extracted out for convenience.\n        const cleanup = () => {\n          // Remove the <script> tag if it's still on the page.\n          if (node.parentNode) {\n            node.parentNode.removeChild(node);\n          }\n          // Remove the response callback from the callbackMap (window object in the\n          // browser).\n          delete this.callbackMap[callback];\n        };\n        // onLoad() is the success callback which runs after the response callback\n        // if the JSONP script loads successfully. The event itself is unimportant.\n        // If something went wrong, onLoad() may run without the response callback\n        // having been invoked.\n        const onLoad = event => {\n          // We wrap it in an extra Promise, to ensure the microtask\n          // is scheduled after the loaded endpoint has executed any potential microtask itself,\n          // which is not guaranteed in Internet Explorer and EdgeHTML. See issue #39496\n          this.resolvedPromise.then(() => {\n            // Cleanup the page.\n            cleanup();\n            // Check whether the response callback has run.\n            if (!finished) {\n              // It hasn't, something went wrong with the request. Return an error via\n              // the Observable error path. All JSONP errors have status 0.\n              observer.error(new HttpErrorResponse({\n                url,\n                status: 0,\n                statusText: 'JSONP Error',\n                error: new Error(JSONP_ERR_NO_CALLBACK)\n              }));\n              return;\n            }\n            // Success. body either contains the response body or null if none was\n            // returned.\n            observer.next(new HttpResponse({\n              body,\n              status: HttpStatusCode.Ok,\n              statusText: 'OK',\n              url\n            }));\n            // Complete the stream, the response is over.\n            observer.complete();\n          });\n        };\n        // onError() is the error callback, which runs if the script returned generates\n        // a Javascript error. It emits the error via the Observable error channel as\n        // a HttpErrorResponse.\n        const onError = error => {\n          cleanup();\n          // Wrap the error in a HttpErrorResponse.\n          observer.error(new HttpErrorResponse({\n            error,\n            status: 0,\n            statusText: 'JSONP Error',\n            url\n          }));\n        };\n        // Subscribe to both the success (load) and error events on the <script> tag,\n        // and add it to the page.\n        node.addEventListener('load', onLoad);\n        node.addEventListener('error', onError);\n        this.document.body.appendChild(node);\n        // The request has now been successfully sent.\n        observer.next({\n          type: HttpEventType.Sent\n        });\n        // Cancellation handler.\n        return () => {\n          if (!finished) {\n            this.removeListeners(node);\n          }\n          // And finally, clean up the page.\n          cleanup();\n        };\n      });\n    }\n    removeListeners(script) {\n      // Issue #34818\n      // Changing <script>'s ownerDocument will prevent it from execution.\n      // https://html.spec.whatwg.org/multipage/scripting.html#execute-the-script-block\n      foreignDocument ??= this.document.implementation.createHTMLDocument();\n      foreignDocument.adoptNode(script);\n    }\n    static {\n      this.ɵfac = function JsonpClientBackend_Factory(t) {\n        return new (t || JsonpClientBackend)(i0.ɵɵinject(JsonpCallbackContext), i0.ɵɵinject(DOCUMENT));\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: JsonpClientBackend,\n        factory: JsonpClientBackend.ɵfac\n      });\n    }\n  }\n  return JsonpClientBackend;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Identifies requests with the method JSONP and shifts them to the `JsonpClientBackend`.\n */\nfunction jsonpInterceptorFn(req, next) {\n  if (req.method === 'JSONP') {\n    return inject(JsonpClientBackend).handle(req);\n  }\n  // Fall through for normal HTTP requests.\n  return next(req);\n}\n/**\n * Identifies requests with the method JSONP and\n * shifts them to the `JsonpClientBackend`.\n *\n * @see {@link HttpInterceptor}\n *\n * @publicApi\n */\nlet JsonpInterceptor = /*#__PURE__*/(() => {\n  class JsonpInterceptor {\n    constructor(injector) {\n      this.injector = injector;\n    }\n    /**\n     * Identifies and handles a given JSONP request.\n     * @param initialRequest The outgoing request object to handle.\n     * @param next The next interceptor in the chain, or the backend\n     * if no interceptors remain in the chain.\n     * @returns An observable of the event stream.\n     */\n    intercept(initialRequest, next) {\n      return runInInjectionContext(this.injector, () => jsonpInterceptorFn(initialRequest, downstreamRequest => next.handle(downstreamRequest)));\n    }\n    static {\n      this.ɵfac = function JsonpInterceptor_Factory(t) {\n        return new (t || JsonpInterceptor)(i0.ɵɵinject(i0.EnvironmentInjector));\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: JsonpInterceptor,\n        factory: JsonpInterceptor.ɵfac\n      });\n    }\n  }\n  return JsonpInterceptor;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst XSSI_PREFIX = /^\\)\\]\\}',?\\n/;\n/**\n * Determine an appropriate URL for the response, by checking either\n * XMLHttpRequest.responseURL or the X-Request-URL header.\n */\nfunction getResponseUrl(xhr) {\n  if ('responseURL' in xhr && xhr.responseURL) {\n    return xhr.responseURL;\n  }\n  if (/^X-Request-URL:/m.test(xhr.getAllResponseHeaders())) {\n    return xhr.getResponseHeader('X-Request-URL');\n  }\n  return null;\n}\n/**\n * Uses `XMLHttpRequest` to send requests to a backend server.\n * @see {@link HttpHandler}\n * @see {@link JsonpClientBackend}\n *\n * @publicApi\n */\nlet HttpXhrBackend = /*#__PURE__*/(() => {\n  class HttpXhrBackend {\n    constructor(xhrFactory) {\n      this.xhrFactory = xhrFactory;\n    }\n    /**\n     * Processes a request and returns a stream of response events.\n     * @param req The request object.\n     * @returns An observable of the response events.\n     */\n    handle(req) {\n      // Quick check to give a better error message when a user attempts to use\n      // HttpClient.jsonp() without installing the HttpClientJsonpModule\n      if (req.method === 'JSONP') {\n        throw new ɵRuntimeError(-2800 /* RuntimeErrorCode.MISSING_JSONP_MODULE */, (typeof ngDevMode === 'undefined' || ngDevMode) && `Cannot make a JSONP request without JSONP support. To fix the problem, either add the \\`withJsonpSupport()\\` call (if \\`provideHttpClient()\\` is used) or import the \\`HttpClientJsonpModule\\` in the root NgModule.`);\n      }\n      // Check whether this factory has a special function to load an XHR implementation\n      // for various non-browser environments. We currently limit it to only `ServerXhr`\n      // class, which needs to load an XHR implementation.\n      const xhrFactory = this.xhrFactory;\n      const source = xhrFactory.ɵloadImpl ? from(xhrFactory.ɵloadImpl()) : of(null);\n      return source.pipe(switchMap(() => {\n        // Everything happens on Observable subscription.\n        return new Observable(observer => {\n          // Start by setting up the XHR object with request method, URL, and withCredentials\n          // flag.\n          const xhr = xhrFactory.build();\n          xhr.open(req.method, req.urlWithParams);\n          if (req.withCredentials) {\n            xhr.withCredentials = true;\n          }\n          // Add all the requested headers.\n          req.headers.forEach((name, values) => xhr.setRequestHeader(name, values.join(',')));\n          // Add an Accept header if one isn't present already.\n          if (!req.headers.has('Accept')) {\n            xhr.setRequestHeader('Accept', 'application/json, text/plain, */*');\n          }\n          // Auto-detect the Content-Type header if one isn't present already.\n          if (!req.headers.has('Content-Type')) {\n            const detectedType = req.detectContentTypeHeader();\n            // Sometimes Content-Type detection fails.\n            if (detectedType !== null) {\n              xhr.setRequestHeader('Content-Type', detectedType);\n            }\n          }\n          // Set the responseType if one was requested.\n          if (req.responseType) {\n            const responseType = req.responseType.toLowerCase();\n            // JSON responses need to be processed as text. This is because if the server\n            // returns an XSSI-prefixed JSON response, the browser will fail to parse it,\n            // xhr.response will be null, and xhr.responseText cannot be accessed to\n            // retrieve the prefixed JSON data in order to strip the prefix. Thus, all JSON\n            // is parsed by first requesting text and then applying JSON.parse.\n            xhr.responseType = responseType !== 'json' ? responseType : 'text';\n          }\n          // Serialize the request body if one is present. If not, this will be set to null.\n          const reqBody = req.serializeBody();\n          // If progress events are enabled, response headers will be delivered\n          // in two events - the HttpHeaderResponse event and the full HttpResponse\n          // event. However, since response headers don't change in between these\n          // two events, it doesn't make sense to parse them twice. So headerResponse\n          // caches the data extracted from the response whenever it's first parsed,\n          // to ensure parsing isn't duplicated.\n          let headerResponse = null;\n          // partialFromXhr extracts the HttpHeaderResponse from the current XMLHttpRequest\n          // state, and memoizes it into headerResponse.\n          const partialFromXhr = () => {\n            if (headerResponse !== null) {\n              return headerResponse;\n            }\n            const statusText = xhr.statusText || 'OK';\n            // Parse headers from XMLHttpRequest - this step is lazy.\n            const headers = new HttpHeaders(xhr.getAllResponseHeaders());\n            // Read the response URL from the XMLHttpResponse instance and fall back on the\n            // request URL.\n            const url = getResponseUrl(xhr) || req.url;\n            // Construct the HttpHeaderResponse and memoize it.\n            headerResponse = new HttpHeaderResponse({\n              headers,\n              status: xhr.status,\n              statusText,\n              url\n            });\n            return headerResponse;\n          };\n          // Next, a few closures are defined for the various events which XMLHttpRequest can\n          // emit. This allows them to be unregistered as event listeners later.\n          // First up is the load event, which represents a response being fully available.\n          const onLoad = () => {\n            // Read response state from the memoized partial data.\n            let {\n              headers,\n              status,\n              statusText,\n              url\n            } = partialFromXhr();\n            // The body will be read out if present.\n            let body = null;\n            if (status !== HttpStatusCode.NoContent) {\n              // Use XMLHttpRequest.response if set, responseText otherwise.\n              body = typeof xhr.response === 'undefined' ? xhr.responseText : xhr.response;\n            }\n            // Normalize another potential bug (this one comes from CORS).\n            if (status === 0) {\n              status = !!body ? HttpStatusCode.Ok : 0;\n            }\n            // ok determines whether the response will be transmitted on the event or\n            // error channel. Unsuccessful status codes (not 2xx) will always be errors,\n            // but a successful status code can still result in an error if the user\n            // asked for JSON data and the body cannot be parsed as such.\n            let ok = status >= 200 && status < 300;\n            // Check whether the body needs to be parsed as JSON (in many cases the browser\n            // will have done that already).\n            if (req.responseType === 'json' && typeof body === 'string') {\n              // Save the original body, before attempting XSSI prefix stripping.\n              const originalBody = body;\n              body = body.replace(XSSI_PREFIX, '');\n              try {\n                // Attempt the parse. If it fails, a parse error should be delivered to the\n                // user.\n                body = body !== '' ? JSON.parse(body) : null;\n              } catch (error) {\n                // Since the JSON.parse failed, it's reasonable to assume this might not have\n                // been a JSON response. Restore the original body (including any XSSI prefix)\n                // to deliver a better error response.\n                body = originalBody;\n                // If this was an error request to begin with, leave it as a string, it\n                // probably just isn't JSON. Otherwise, deliver the parsing error to the user.\n                if (ok) {\n                  // Even though the response status was 2xx, this is still an error.\n                  ok = false;\n                  // The parse error contains the text of the body that failed to parse.\n                  body = {\n                    error,\n                    text: body\n                  };\n                }\n              }\n            }\n            if (ok) {\n              // A successful response is delivered on the event stream.\n              observer.next(new HttpResponse({\n                body,\n                headers,\n                status,\n                statusText,\n                url: url || undefined\n              }));\n              // The full body has been received and delivered, no further events\n              // are possible. This request is complete.\n              observer.complete();\n            } else {\n              // An unsuccessful request is delivered on the error channel.\n              observer.error(new HttpErrorResponse({\n                // The error in this case is the response body (error from the server).\n                error: body,\n                headers,\n                status,\n                statusText,\n                url: url || undefined\n              }));\n            }\n          };\n          // The onError callback is called when something goes wrong at the network level.\n          // Connection timeout, DNS error, offline, etc. These are actual errors, and are\n          // transmitted on the error channel.\n          const onError = error => {\n            const {\n              url\n            } = partialFromXhr();\n            const res = new HttpErrorResponse({\n              error,\n              status: xhr.status || 0,\n              statusText: xhr.statusText || 'Unknown Error',\n              url: url || undefined\n            });\n            observer.error(res);\n          };\n          // The sentHeaders flag tracks whether the HttpResponseHeaders event\n          // has been sent on the stream. This is necessary to track if progress\n          // is enabled since the event will be sent on only the first download\n          // progress event.\n          let sentHeaders = false;\n          // The download progress event handler, which is only registered if\n          // progress events are enabled.\n          const onDownProgress = event => {\n            // Send the HttpResponseHeaders event if it hasn't been sent already.\n            if (!sentHeaders) {\n              observer.next(partialFromXhr());\n              sentHeaders = true;\n            }\n            // Start building the download progress event to deliver on the response\n            // event stream.\n            let progressEvent = {\n              type: HttpEventType.DownloadProgress,\n              loaded: event.loaded\n            };\n            // Set the total number of bytes in the event if it's available.\n            if (event.lengthComputable) {\n              progressEvent.total = event.total;\n            }\n            // If the request was for text content and a partial response is\n            // available on XMLHttpRequest, include it in the progress event\n            // to allow for streaming reads.\n            if (req.responseType === 'text' && !!xhr.responseText) {\n              progressEvent.partialText = xhr.responseText;\n            }\n            // Finally, fire the event.\n            observer.next(progressEvent);\n          };\n          // The upload progress event handler, which is only registered if\n          // progress events are enabled.\n          const onUpProgress = event => {\n            // Upload progress events are simpler. Begin building the progress\n            // event.\n            let progress = {\n              type: HttpEventType.UploadProgress,\n              loaded: event.loaded\n            };\n            // If the total number of bytes being uploaded is available, include\n            // it.\n            if (event.lengthComputable) {\n              progress.total = event.total;\n            }\n            // Send the event.\n            observer.next(progress);\n          };\n          // By default, register for load and error events.\n          xhr.addEventListener('load', onLoad);\n          xhr.addEventListener('error', onError);\n          xhr.addEventListener('timeout', onError);\n          xhr.addEventListener('abort', onError);\n          // Progress events are only enabled if requested.\n          if (req.reportProgress) {\n            // Download progress is always enabled if requested.\n            xhr.addEventListener('progress', onDownProgress);\n            // Upload progress depends on whether there is a body to upload.\n            if (reqBody !== null && xhr.upload) {\n              xhr.upload.addEventListener('progress', onUpProgress);\n            }\n          }\n          // Fire the request, and notify the event stream that it was fired.\n          xhr.send(reqBody);\n          observer.next({\n            type: HttpEventType.Sent\n          });\n          // This is the return from the Observable function, which is the\n          // request cancellation handler.\n          return () => {\n            // On a cancellation, remove all registered event listeners.\n            xhr.removeEventListener('error', onError);\n            xhr.removeEventListener('abort', onError);\n            xhr.removeEventListener('load', onLoad);\n            xhr.removeEventListener('timeout', onError);\n            if (req.reportProgress) {\n              xhr.removeEventListener('progress', onDownProgress);\n              if (reqBody !== null && xhr.upload) {\n                xhr.upload.removeEventListener('progress', onUpProgress);\n              }\n            }\n            // Finally, abort the in-flight request.\n            if (xhr.readyState !== xhr.DONE) {\n              xhr.abort();\n            }\n          };\n        });\n      }));\n    }\n    static {\n      this.ɵfac = function HttpXhrBackend_Factory(t) {\n        return new (t || HttpXhrBackend)(i0.ɵɵinject(i1.XhrFactory));\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: HttpXhrBackend,\n        factory: HttpXhrBackend.ɵfac\n      });\n    }\n  }\n  return HttpXhrBackend;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst XSRF_ENABLED = /*#__PURE__*/new InjectionToken(ngDevMode ? 'XSRF_ENABLED' : '');\nconst XSRF_DEFAULT_COOKIE_NAME = 'XSRF-TOKEN';\nconst XSRF_COOKIE_NAME = /*#__PURE__*/new InjectionToken(ngDevMode ? 'XSRF_COOKIE_NAME' : '', {\n  providedIn: 'root',\n  factory: () => XSRF_DEFAULT_COOKIE_NAME\n});\nconst XSRF_DEFAULT_HEADER_NAME = 'X-XSRF-TOKEN';\nconst XSRF_HEADER_NAME = /*#__PURE__*/new InjectionToken(ngDevMode ? 'XSRF_HEADER_NAME' : '', {\n  providedIn: 'root',\n  factory: () => XSRF_DEFAULT_HEADER_NAME\n});\n/**\n * Retrieves the current XSRF token to use with the next outgoing request.\n *\n * @publicApi\n */\nclass HttpXsrfTokenExtractor {}\n/**\n * `HttpXsrfTokenExtractor` which retrieves the token from a cookie.\n */\nlet HttpXsrfCookieExtractor = /*#__PURE__*/(() => {\n  class HttpXsrfCookieExtractor {\n    constructor(doc, platform, cookieName) {\n      this.doc = doc;\n      this.platform = platform;\n      this.cookieName = cookieName;\n      this.lastCookieString = '';\n      this.lastToken = null;\n      /**\n       * @internal for testing\n       */\n      this.parseCount = 0;\n    }\n    getToken() {\n      if (this.platform === 'server') {\n        return null;\n      }\n      const cookieString = this.doc.cookie || '';\n      if (cookieString !== this.lastCookieString) {\n        this.parseCount++;\n        this.lastToken = ɵparseCookieValue(cookieString, this.cookieName);\n        this.lastCookieString = cookieString;\n      }\n      return this.lastToken;\n    }\n    static {\n      this.ɵfac = function HttpXsrfCookieExtractor_Factory(t) {\n        return new (t || HttpXsrfCookieExtractor)(i0.ɵɵinject(DOCUMENT), i0.ɵɵinject(PLATFORM_ID), i0.ɵɵinject(XSRF_COOKIE_NAME));\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: HttpXsrfCookieExtractor,\n        factory: HttpXsrfCookieExtractor.ɵfac\n      });\n    }\n  }\n  return HttpXsrfCookieExtractor;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction xsrfInterceptorFn(req, next) {\n  const lcUrl = req.url.toLowerCase();\n  // Skip both non-mutating requests and absolute URLs.\n  // Non-mutating requests don't require a token, and absolute URLs require special handling\n  // anyway as the cookie set\n  // on our origin is not the same as the token expected by another origin.\n  if (!inject(XSRF_ENABLED) || req.method === 'GET' || req.method === 'HEAD' || lcUrl.startsWith('http://') || lcUrl.startsWith('https://')) {\n    return next(req);\n  }\n  const token = inject(HttpXsrfTokenExtractor).getToken();\n  const headerName = inject(XSRF_HEADER_NAME);\n  // Be careful not to overwrite an existing header of the same name.\n  if (token != null && !req.headers.has(headerName)) {\n    req = req.clone({\n      headers: req.headers.set(headerName, token)\n    });\n  }\n  return next(req);\n}\n/**\n * `HttpInterceptor` which adds an XSRF token to eligible outgoing requests.\n */\nlet HttpXsrfInterceptor = /*#__PURE__*/(() => {\n  class HttpXsrfInterceptor {\n    constructor(injector) {\n      this.injector = injector;\n    }\n    intercept(initialRequest, next) {\n      return runInInjectionContext(this.injector, () => xsrfInterceptorFn(initialRequest, downstreamRequest => next.handle(downstreamRequest)));\n    }\n    static {\n      this.ɵfac = function HttpXsrfInterceptor_Factory(t) {\n        return new (t || HttpXsrfInterceptor)(i0.ɵɵinject(i0.EnvironmentInjector));\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: HttpXsrfInterceptor,\n        factory: HttpXsrfInterceptor.ɵfac\n      });\n    }\n  }\n  return HttpXsrfInterceptor;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Identifies a particular kind of `HttpFeature`.\n *\n * @publicApi\n */\nvar HttpFeatureKind = /*#__PURE__*/function (HttpFeatureKind) {\n  HttpFeatureKind[HttpFeatureKind[\"Interceptors\"] = 0] = \"Interceptors\";\n  HttpFeatureKind[HttpFeatureKind[\"LegacyInterceptors\"] = 1] = \"LegacyInterceptors\";\n  HttpFeatureKind[HttpFeatureKind[\"CustomXsrfConfiguration\"] = 2] = \"CustomXsrfConfiguration\";\n  HttpFeatureKind[HttpFeatureKind[\"NoXsrfProtection\"] = 3] = \"NoXsrfProtection\";\n  HttpFeatureKind[HttpFeatureKind[\"JsonpSupport\"] = 4] = \"JsonpSupport\";\n  HttpFeatureKind[HttpFeatureKind[\"RequestsMadeViaParent\"] = 5] = \"RequestsMadeViaParent\";\n  HttpFeatureKind[HttpFeatureKind[\"Fetch\"] = 6] = \"Fetch\";\n  return HttpFeatureKind;\n}(HttpFeatureKind || {});\nfunction makeHttpFeature(kind, providers) {\n  return {\n    ɵkind: kind,\n    ɵproviders: providers\n  };\n}\n/**\n * Configures Angular's `HttpClient` service to be available for injection.\n *\n * By default, `HttpClient` will be configured for injection with its default options for XSRF\n * protection of outgoing requests. Additional configuration options can be provided by passing\n * feature functions to `provideHttpClient`. For example, HTTP interceptors can be added using the\n * `withInterceptors(...)` feature.\n *\n * <div class=\"alert is-helpful\">\n *\n * It's strongly recommended to enable\n * [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) for applications that use\n * Server-Side Rendering for better performance and compatibility. To enable `fetch`, add\n * `withFetch()` feature to the `provideHttpClient()` call at the root of the application:\n *\n * ```\n * provideHttpClient(withFetch());\n * ```\n *\n * </div>\n *\n * @see {@link withInterceptors}\n * @see {@link withInterceptorsFromDi}\n * @see {@link withXsrfConfiguration}\n * @see {@link withNoXsrfProtection}\n * @see {@link withJsonpSupport}\n * @see {@link withRequestsMadeViaParent}\n * @see {@link withFetch}\n */\nfunction provideHttpClient(...features) {\n  if (ngDevMode) {\n    const featureKinds = new Set(features.map(f => f.ɵkind));\n    if (featureKinds.has(HttpFeatureKind.NoXsrfProtection) && featureKinds.has(HttpFeatureKind.CustomXsrfConfiguration)) {\n      throw new Error(ngDevMode ? `Configuration error: found both withXsrfConfiguration() and withNoXsrfProtection() in the same call to provideHttpClient(), which is a contradiction.` : '');\n    }\n  }\n  const providers = [HttpClient, HttpXhrBackend, HttpInterceptorHandler, {\n    provide: HttpHandler,\n    useExisting: HttpInterceptorHandler\n  }, {\n    provide: HttpBackend,\n    useExisting: HttpXhrBackend\n  }, {\n    provide: HTTP_INTERCEPTOR_FNS,\n    useValue: xsrfInterceptorFn,\n    multi: true\n  }, {\n    provide: XSRF_ENABLED,\n    useValue: true\n  }, {\n    provide: HttpXsrfTokenExtractor,\n    useClass: HttpXsrfCookieExtractor\n  }];\n  for (const feature of features) {\n    providers.push(...feature.ɵproviders);\n  }\n  return makeEnvironmentProviders(providers);\n}\n/**\n * Adds one or more functional-style HTTP interceptors to the configuration of the `HttpClient`\n * instance.\n *\n * @see {@link HttpInterceptorFn}\n * @see {@link provideHttpClient}\n * @publicApi\n */\nfunction withInterceptors(interceptorFns) {\n  return makeHttpFeature(HttpFeatureKind.Interceptors, interceptorFns.map(interceptorFn => {\n    return {\n      provide: HTTP_INTERCEPTOR_FNS,\n      useValue: interceptorFn,\n      multi: true\n    };\n  }));\n}\nconst LEGACY_INTERCEPTOR_FN = /*#__PURE__*/new InjectionToken(ngDevMode ? 'LEGACY_INTERCEPTOR_FN' : '');\n/**\n * Includes class-based interceptors configured using a multi-provider in the current injector into\n * the configured `HttpClient` instance.\n *\n * Prefer `withInterceptors` and functional interceptors instead, as support for DI-provided\n * interceptors may be phased out in a later release.\n *\n * @see {@link HttpInterceptor}\n * @see {@link HTTP_INTERCEPTORS}\n * @see {@link provideHttpClient}\n */\nfunction withInterceptorsFromDi() {\n  // Note: the legacy interceptor function is provided here via an intermediate token\n  // (`LEGACY_INTERCEPTOR_FN`), using a pattern which guarantees that if these providers are\n  // included multiple times, all of the multi-provider entries will have the same instance of the\n  // interceptor function. That way, the `HttpINterceptorHandler` will dedup them and legacy\n  // interceptors will not run multiple times.\n  return makeHttpFeature(HttpFeatureKind.LegacyInterceptors, [{\n    provide: LEGACY_INTERCEPTOR_FN,\n    useFactory: legacyInterceptorFnFactory\n  }, {\n    provide: HTTP_INTERCEPTOR_FNS,\n    useExisting: LEGACY_INTERCEPTOR_FN,\n    multi: true\n  }]);\n}\n/**\n * Customizes the XSRF protection for the configuration of the current `HttpClient` instance.\n *\n * This feature is incompatible with the `withNoXsrfProtection` feature.\n *\n * @see {@link provideHttpClient}\n */\nfunction withXsrfConfiguration({\n  cookieName,\n  headerName\n}) {\n  const providers = [];\n  if (cookieName !== undefined) {\n    providers.push({\n      provide: XSRF_COOKIE_NAME,\n      useValue: cookieName\n    });\n  }\n  if (headerName !== undefined) {\n    providers.push({\n      provide: XSRF_HEADER_NAME,\n      useValue: headerName\n    });\n  }\n  return makeHttpFeature(HttpFeatureKind.CustomXsrfConfiguration, providers);\n}\n/**\n * Disables XSRF protection in the configuration of the current `HttpClient` instance.\n *\n * This feature is incompatible with the `withXsrfConfiguration` feature.\n *\n * @see {@link provideHttpClient}\n */\nfunction withNoXsrfProtection() {\n  return makeHttpFeature(HttpFeatureKind.NoXsrfProtection, [{\n    provide: XSRF_ENABLED,\n    useValue: false\n  }]);\n}\n/**\n * Add JSONP support to the configuration of the current `HttpClient` instance.\n *\n * @see {@link provideHttpClient}\n */\nfunction withJsonpSupport() {\n  return makeHttpFeature(HttpFeatureKind.JsonpSupport, [JsonpClientBackend, {\n    provide: JsonpCallbackContext,\n    useFactory: jsonpCallbackContext\n  }, {\n    provide: HTTP_INTERCEPTOR_FNS,\n    useValue: jsonpInterceptorFn,\n    multi: true\n  }]);\n}\n/**\n * Configures the current `HttpClient` instance to make requests via the parent injector's\n * `HttpClient` instead of directly.\n *\n * By default, `provideHttpClient` configures `HttpClient` in its injector to be an independent\n * instance. For example, even if `HttpClient` is configured in the parent injector with\n * one or more interceptors, they will not intercept requests made via this instance.\n *\n * With this option enabled, once the request has passed through the current injector's\n * interceptors, it will be delegated to the parent injector's `HttpClient` chain instead of\n * dispatched directly, and interceptors in the parent configuration will be applied to the request.\n *\n * If there are several `HttpClient` instances in the injector hierarchy, it's possible for\n * `withRequestsMadeViaParent` to be used at multiple levels, which will cause the request to\n * \"bubble up\" until either reaching the root level or an `HttpClient` which was not configured with\n * this option.\n *\n * @see {@link provideHttpClient}\n * @developerPreview\n */\nfunction withRequestsMadeViaParent() {\n  return makeHttpFeature(HttpFeatureKind.RequestsMadeViaParent, [{\n    provide: HttpBackend,\n    useFactory: () => {\n      const handlerFromParent = inject(HttpHandler, {\n        skipSelf: true,\n        optional: true\n      });\n      if (ngDevMode && handlerFromParent === null) {\n        throw new Error('withRequestsMadeViaParent() can only be used when the parent injector also configures HttpClient');\n      }\n      return handlerFromParent;\n    }\n  }]);\n}\n/**\n * Configures the current `HttpClient` instance to make requests using the fetch API.\n *\n * This `FetchBackend` requires the support of the Fetch API which is available on all evergreen\n * browsers and on NodeJS from v18 onward.\n *\n * Note: The Fetch API doesn't support progress report on uploads.\n *\n * @publicApi\n */\nfunction withFetch() {\n  if ((typeof ngDevMode === 'undefined' || ngDevMode) && typeof fetch !== 'function') {\n    // TODO: Create a runtime error\n    // TODO: Use ENVIRONMENT_INITIALIZER to contextualize the error message (browser or server)\n    throw new Error('The `withFetch` feature of HttpClient requires the `fetch` API to be available. ' + 'If you run the code in a Node environment, make sure you use Node v18.10 or later.');\n  }\n  return makeHttpFeature(HttpFeatureKind.Fetch, [FetchBackend, {\n    provide: HttpBackend,\n    useExisting: FetchBackend\n  }, {\n    provide: PRIMARY_HTTP_BACKEND,\n    useExisting: FetchBackend\n  }]);\n}\n\n/**\n * Configures XSRF protection support for outgoing requests.\n *\n * For a server that supports a cookie-based XSRF protection system,\n * use directly to configure XSRF protection with the correct\n * cookie and header names.\n *\n * If no names are supplied, the default cookie name is `XSRF-TOKEN`\n * and the default header name is `X-XSRF-TOKEN`.\n *\n * @publicApi\n */\nlet HttpClientXsrfModule = /*#__PURE__*/(() => {\n  class HttpClientXsrfModule {\n    /**\n     * Disable the default XSRF protection.\n     */\n    static disable() {\n      return {\n        ngModule: HttpClientXsrfModule,\n        providers: [withNoXsrfProtection().ɵproviders]\n      };\n    }\n    /**\n     * Configure XSRF protection.\n     * @param options An object that can specify either or both\n     * cookie name or header name.\n     * - Cookie name default is `XSRF-TOKEN`.\n     * - Header name default is `X-XSRF-TOKEN`.\n     *\n     */\n    static withOptions(options = {}) {\n      return {\n        ngModule: HttpClientXsrfModule,\n        providers: withXsrfConfiguration(options).ɵproviders\n      };\n    }\n    static {\n      this.ɵfac = function HttpClientXsrfModule_Factory(t) {\n        return new (t || HttpClientXsrfModule)();\n      };\n    }\n    static {\n      this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n        type: HttpClientXsrfModule\n      });\n    }\n    static {\n      this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n        providers: [HttpXsrfInterceptor, {\n          provide: HTTP_INTERCEPTORS,\n          useExisting: HttpXsrfInterceptor,\n          multi: true\n        }, {\n          provide: HttpXsrfTokenExtractor,\n          useClass: HttpXsrfCookieExtractor\n        }, withXsrfConfiguration({\n          cookieName: XSRF_DEFAULT_COOKIE_NAME,\n          headerName: XSRF_DEFAULT_HEADER_NAME\n        }).ɵproviders, {\n          provide: XSRF_ENABLED,\n          useValue: true\n        }]\n      });\n    }\n  }\n  return HttpClientXsrfModule;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Configures the [dependency injector](guide/glossary#injector) for `HttpClient`\n * with supporting services for XSRF. Automatically imported by `HttpClientModule`.\n *\n * You can add interceptors to the chain behind `HttpClient` by binding them to the\n * multiprovider for built-in [DI token](guide/glossary#di-token) `HTTP_INTERCEPTORS`.\n *\n * @publicApi\n */\nlet HttpClientModule = /*#__PURE__*/(() => {\n  class HttpClientModule {\n    static {\n      this.ɵfac = function HttpClientModule_Factory(t) {\n        return new (t || HttpClientModule)();\n      };\n    }\n    static {\n      this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n        type: HttpClientModule\n      });\n    }\n    static {\n      this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n        providers: [provideHttpClient(withInterceptorsFromDi())]\n      });\n    }\n  }\n  return HttpClientModule;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Configures the [dependency injector](guide/glossary#injector) for `HttpClient`\n * with supporting services for JSONP.\n * Without this module, Jsonp requests reach the backend\n * with method JSONP, where they are rejected.\n *\n * @publicApi\n */\nlet HttpClientJsonpModule = /*#__PURE__*/(() => {\n  class HttpClientJsonpModule {\n    static {\n      this.ɵfac = function HttpClientJsonpModule_Factory(t) {\n        return new (t || HttpClientJsonpModule)();\n      };\n    }\n    static {\n      this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n        type: HttpClientJsonpModule\n      });\n    }\n    static {\n      this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n        providers: [withJsonpSupport().ɵproviders]\n      });\n    }\n  }\n  return HttpClientJsonpModule;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Keys within cached response data structure.\n */\nconst BODY = 'b';\nconst HEADERS = 'h';\nconst STATUS = 's';\nconst STATUS_TEXT = 'st';\nconst URL = 'u';\nconst RESPONSE_TYPE = 'rt';\nconst CACHE_OPTIONS = /*#__PURE__*/new InjectionToken(ngDevMode ? 'HTTP_TRANSFER_STATE_CACHE_OPTIONS' : '');\n/**\n * A list of allowed HTTP methods to cache.\n */\nconst ALLOWED_METHODS = ['GET', 'HEAD'];\nfunction transferCacheInterceptorFn(req, next) {\n  const {\n    isCacheActive,\n    ...globalOptions\n  } = inject(CACHE_OPTIONS);\n  const {\n    transferCache: requestOptions,\n    method: requestMethod\n  } = req;\n  // In the following situations we do not want to cache the request\n  if (!isCacheActive ||\n  // POST requests are allowed either globally or at request level\n  requestMethod === 'POST' && !globalOptions.includePostRequests && !requestOptions || requestMethod !== 'POST' && !ALLOWED_METHODS.includes(requestMethod) || requestOptions === false ||\n  //\n  globalOptions.filter?.(req) === false) {\n    return next(req);\n  }\n  const transferState = inject(TransferState);\n  const storeKey = makeCacheKey(req);\n  const response = transferState.get(storeKey, null);\n  let headersToInclude = globalOptions.includeHeaders;\n  if (typeof requestOptions === 'object' && requestOptions.includeHeaders) {\n    // Request-specific config takes precedence over the global config.\n    headersToInclude = requestOptions.includeHeaders;\n  }\n  if (response) {\n    const {\n      [BODY]: undecodedBody,\n      [RESPONSE_TYPE]: responseType,\n      [HEADERS]: httpHeaders,\n      [STATUS]: status,\n      [STATUS_TEXT]: statusText,\n      [URL]: url\n    } = response;\n    // Request found in cache. Respond using it.\n    let body = undecodedBody;\n    switch (responseType) {\n      case 'arraybuffer':\n        body = new TextEncoder().encode(undecodedBody).buffer;\n        break;\n      case 'blob':\n        body = new Blob([undecodedBody]);\n        break;\n    }\n    // We want to warn users accessing a header provided from the cache\n    // That HttpTransferCache alters the headers\n    // The warning will be logged a single time by HttpHeaders instance\n    let headers = new HttpHeaders(httpHeaders);\n    if (typeof ngDevMode === 'undefined' || ngDevMode) {\n      // Append extra logic in dev mode to produce a warning when a header\n      // that was not transferred to the client is accessed in the code via `get`\n      // and `has` calls.\n      headers = appendMissingHeadersDetection(req.url, headers, headersToInclude ?? []);\n    }\n    return of(new HttpResponse({\n      body,\n      headers,\n      status,\n      statusText,\n      url\n    }));\n  }\n  const isServer = isPlatformServer(inject(PLATFORM_ID));\n  // Request not found in cache. Make the request and cache it if on the server.\n  return next(req).pipe(tap(event => {\n    if (event instanceof HttpResponse && isServer) {\n      transferState.set(storeKey, {\n        [BODY]: event.body,\n        [HEADERS]: getFilteredHeaders(event.headers, headersToInclude),\n        [STATUS]: event.status,\n        [STATUS_TEXT]: event.statusText,\n        [URL]: event.url || '',\n        [RESPONSE_TYPE]: req.responseType\n      });\n    }\n  }));\n}\nfunction getFilteredHeaders(headers, includeHeaders) {\n  if (!includeHeaders) {\n    return {};\n  }\n  const headersMap = {};\n  for (const key of includeHeaders) {\n    const values = headers.getAll(key);\n    if (values !== null) {\n      headersMap[key] = values;\n    }\n  }\n  return headersMap;\n}\nfunction sortAndConcatParams(params) {\n  return [...params.keys()].sort().map(k => `${k}=${params.getAll(k)}`).join('&');\n}\nfunction makeCacheKey(request) {\n  // make the params encoded same as a url so it's easy to identify\n  const {\n    params,\n    method,\n    responseType,\n    url\n  } = request;\n  const encodedParams = sortAndConcatParams(params);\n  let serializedBody = request.serializeBody();\n  if (serializedBody instanceof URLSearchParams) {\n    serializedBody = sortAndConcatParams(serializedBody);\n  } else if (typeof serializedBody !== 'string') {\n    serializedBody = '';\n  }\n  const key = [method, responseType, url, serializedBody, encodedParams].join('|');\n  const hash = generateHash(key);\n  return makeStateKey(hash);\n}\n/**\n * A method that returns a hash representation of a string using a variant of DJB2 hash\n * algorithm.\n *\n * This is the same hashing logic that is used to generate component ids.\n */\nfunction generateHash(value) {\n  let hash = 0;\n  for (const char of value) {\n    hash = Math.imul(31, hash) + char.charCodeAt(0) << 0;\n  }\n  // Force positive number hash.\n  // 2147483647 = equivalent of Integer.MAX_VALUE.\n  hash += 2147483647 + 1;\n  return hash.toString();\n}\n/**\n * Returns the DI providers needed to enable HTTP transfer cache.\n *\n * By default, when using server rendering, requests are performed twice: once on the server and\n * other one on the browser.\n *\n * When these providers are added, requests performed on the server are cached and reused during the\n * bootstrapping of the application in the browser thus avoiding duplicate requests and reducing\n * load time.\n *\n */\nfunction withHttpTransferCache(cacheOptions) {\n  return [{\n    provide: CACHE_OPTIONS,\n    useFactory: () => {\n      ɵperformanceMarkFeature('NgHttpTransferCache');\n      return {\n        isCacheActive: true,\n        ...cacheOptions\n      };\n    }\n  }, {\n    provide: HTTP_ROOT_INTERCEPTOR_FNS,\n    useValue: transferCacheInterceptorFn,\n    multi: true,\n    deps: [TransferState, CACHE_OPTIONS]\n  }, {\n    provide: APP_BOOTSTRAP_LISTENER,\n    multi: true,\n    useFactory: () => {\n      const appRef = inject(ApplicationRef);\n      const cacheState = inject(CACHE_OPTIONS);\n      return () => {\n        ɵwhenStable(appRef).then(() => {\n          cacheState.isCacheActive = false;\n        });\n      };\n    }\n  }];\n}\n/**\n * This function will add a proxy to an HttpHeader to intercept calls to get/has\n * and log a warning if the header entry requested has been removed\n */\nfunction appendMissingHeadersDetection(url, headers, headersToInclude) {\n  const warningProduced = new Set();\n  return new Proxy(headers, {\n    get(target, prop) {\n      const value = Reflect.get(target, prop);\n      const methods = new Set(['get', 'has', 'getAll']);\n      if (typeof value !== 'function' || !methods.has(prop)) {\n        return value;\n      }\n      return headerName => {\n        // We log when the key has been removed and a warning hasn't been produced for the header\n        const key = (prop + ':' + headerName).toLowerCase(); // e.g. `get:cache-control`\n        if (!headersToInclude.includes(headerName) && !warningProduced.has(key)) {\n          warningProduced.add(key);\n          const truncatedUrl = ɵtruncateMiddle(url);\n          // TODO: create Error guide for this warning\n          console.warn(ɵformatRuntimeError(2802 /* RuntimeErrorCode.HEADERS_ALTERED_BY_TRANSFER_CACHE */, `Angular detected that the \\`${headerName}\\` header is accessed, but the value of the header ` + `was not transferred from the server to the client by the HttpTransferCache. ` + `To include the value of the \\`${headerName}\\` header for the \\`${truncatedUrl}\\` request, ` + `use the \\`includeHeaders\\` list. The \\`includeHeaders\\` can be defined either ` + `on a request level by adding the \\`transferCache\\` parameter, or on an application ` + `level by adding the \\`httpCacheTransfer.includeHeaders\\` argument to the ` + `\\`provideClientHydration()\\` call. `));\n        }\n        // invoking the original method\n        return value.apply(target, [headerName]);\n      };\n    }\n  });\n}\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { FetchBackend, HTTP_INTERCEPTORS, HttpBackend, HttpClient, HttpClientJsonpModule, HttpClientModule, HttpClientXsrfModule, HttpContext, HttpContextToken, HttpErrorResponse, HttpEventType, HttpFeatureKind, HttpHandler, HttpHeaderResponse, HttpHeaders, HttpParams, HttpRequest, HttpResponse, HttpResponseBase, HttpStatusCode, HttpUrlEncodingCodec, HttpXhrBackend, HttpXsrfTokenExtractor, JsonpClientBackend, JsonpInterceptor, provideHttpClient, withFetch, withInterceptors, withInterceptorsFromDi, withJsonpSupport, withNoXsrfProtection, withRequestsMadeViaParent, withXsrfConfiguration, HTTP_ROOT_INTERCEPTOR_FNS as ɵHTTP_ROOT_INTERCEPTOR_FNS, HttpInterceptorHandler as ɵHttpInterceptingHandler, HttpInterceptorHandler as ɵHttpInterceptorHandler, PRIMARY_HTTP_BACKEND as ɵPRIMARY_HTTP_BACKEND, withHttpTransferCache as ɵwithHttpTransferCache };\n","/**\n * @license Angular v17.3.11\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { ɵglobal, ɵRuntimeError, Injectable, InjectionToken, Inject, APP_ID, CSP_NONCE, PLATFORM_ID, Optional, ViewEncapsulation, RendererStyleFlags2, ɵinternalCreateApplication, ErrorHandler, ɵsetDocument, PLATFORM_INITIALIZER, createPlatformFactory, platformCore, ɵTESTABILITY_GETTER, ɵTESTABILITY, Testability, NgZone, TestabilityRegistry, ɵINJECTOR_SCOPE, RendererFactory2, ApplicationModule, NgModule, SkipSelf, ApplicationRef, ɵConsole, forwardRef, ɵXSS_SECURITY_URL, SecurityContext, ɵallowSanitizationBypassAndThrow, ɵunwrapSafeValue, ɵ_sanitizeUrl, ɵ_sanitizeHtml, ɵbypassSanitizationTrustHtml, ɵbypassSanitizationTrustStyle, ɵbypassSanitizationTrustScript, ɵbypassSanitizationTrustUrl, ɵbypassSanitizationTrustResourceUrl, ENVIRONMENT_INITIALIZER, inject, ɵformatRuntimeError, makeEnvironmentProviders, ɵwithDomHydration, Version, makeStateKey as makeStateKey$1, TransferState as TransferState$1 } from '@angular/core';\nimport { ɵDomAdapter, ɵsetRootDomAdapter, ɵparseCookieValue, ɵgetDOM, isPlatformServer, DOCUMENT, ɵPLATFORM_BROWSER_ID, XhrFactory, CommonModule } from '@angular/common';\nexport { ɵgetDOM } from '@angular/common';\nimport { ɵwithHttpTransferCache } from '@angular/common/http';\n\n/**\n * Provides DOM operations in any browser environment.\n *\n * @security Tread carefully! Interacting with the DOM directly is dangerous and\n * can introduce XSS risks.\n */\nclass GenericBrowserDomAdapter extends ɵDomAdapter {\n  constructor() {\n    super(...arguments);\n    this.supportsDOMEvents = true;\n  }\n}\n\n/**\n * A `DomAdapter` powered by full browser DOM APIs.\n *\n * @security Tread carefully! Interacting with the DOM directly is dangerous and\n * can introduce XSS risks.\n */\n/* tslint:disable:requireParameterType no-console */\nclass BrowserDomAdapter extends GenericBrowserDomAdapter {\n  static makeCurrent() {\n    ɵsetRootDomAdapter(new BrowserDomAdapter());\n  }\n  onAndCancel(el, evt, listener) {\n    el.addEventListener(evt, listener);\n    return () => {\n      el.removeEventListener(evt, listener);\n    };\n  }\n  dispatchEvent(el, evt) {\n    el.dispatchEvent(evt);\n  }\n  remove(node) {\n    if (node.parentNode) {\n      node.parentNode.removeChild(node);\n    }\n  }\n  createElement(tagName, doc) {\n    doc = doc || this.getDefaultDocument();\n    return doc.createElement(tagName);\n  }\n  createHtmlDocument() {\n    return document.implementation.createHTMLDocument('fakeTitle');\n  }\n  getDefaultDocument() {\n    return document;\n  }\n  isElementNode(node) {\n    return node.nodeType === Node.ELEMENT_NODE;\n  }\n  isShadowRoot(node) {\n    return node instanceof DocumentFragment;\n  }\n  /** @deprecated No longer being used in Ivy code. To be removed in version 14. */\n  getGlobalEventTarget(doc, target) {\n    if (target === 'window') {\n      return window;\n    }\n    if (target === 'document') {\n      return doc;\n    }\n    if (target === 'body') {\n      return doc.body;\n    }\n    return null;\n  }\n  getBaseHref(doc) {\n    const href = getBaseElementHref();\n    return href == null ? null : relativePath(href);\n  }\n  resetBaseElement() {\n    baseElement = null;\n  }\n  getUserAgent() {\n    return window.navigator.userAgent;\n  }\n  getCookie(name) {\n    return ɵparseCookieValue(document.cookie, name);\n  }\n}\nlet baseElement = null;\nfunction getBaseElementHref() {\n  baseElement = baseElement || document.querySelector('base');\n  return baseElement ? baseElement.getAttribute('href') : null;\n}\nfunction relativePath(url) {\n  // The base URL doesn't really matter, we just need it so relative paths have something\n  // to resolve against. In the browser `HTMLBaseElement.href` is always absolute.\n  return new URL(url, document.baseURI).pathname;\n}\nclass BrowserGetTestability {\n  addToWindow(registry) {\n    ɵglobal['getAngularTestability'] = (elem, findInAncestors = true) => {\n      const testability = registry.findTestabilityInTree(elem, findInAncestors);\n      if (testability == null) {\n        throw new ɵRuntimeError(5103 /* RuntimeErrorCode.TESTABILITY_NOT_FOUND */, (typeof ngDevMode === 'undefined' || ngDevMode) && 'Could not find testability for element.');\n      }\n      return testability;\n    };\n    ɵglobal['getAllAngularTestabilities'] = () => registry.getAllTestabilities();\n    ɵglobal['getAllAngularRootElements'] = () => registry.getAllRootElements();\n    const whenAllStable = callback => {\n      const testabilities = ɵglobal['getAllAngularTestabilities']();\n      let count = testabilities.length;\n      const decrement = function () {\n        count--;\n        if (count == 0) {\n          callback();\n        }\n      };\n      testabilities.forEach(testability => {\n        testability.whenStable(decrement);\n      });\n    };\n    if (!ɵglobal['frameworkStabilizers']) {\n      ɵglobal['frameworkStabilizers'] = [];\n    }\n    ɵglobal['frameworkStabilizers'].push(whenAllStable);\n  }\n  findTestabilityInTree(registry, elem, findInAncestors) {\n    if (elem == null) {\n      return null;\n    }\n    const t = registry.getTestability(elem);\n    if (t != null) {\n      return t;\n    } else if (!findInAncestors) {\n      return null;\n    }\n    if (ɵgetDOM().isShadowRoot(elem)) {\n      return this.findTestabilityInTree(registry, elem.host, true);\n    }\n    return this.findTestabilityInTree(registry, elem.parentElement, true);\n  }\n}\n\n/**\n * A factory for `HttpXhrBackend` that uses the `XMLHttpRequest` browser API.\n */\nlet BrowserXhr = /*#__PURE__*/(() => {\n  class BrowserXhr {\n    build() {\n      return new XMLHttpRequest();\n    }\n    static {\n      this.ɵfac = function BrowserXhr_Factory(t) {\n        return new (t || BrowserXhr)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: BrowserXhr,\n        factory: BrowserXhr.ɵfac\n      });\n    }\n  }\n  return BrowserXhr;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * The injection token for plugins of the `EventManager` service.\n *\n * @publicApi\n */\nconst EVENT_MANAGER_PLUGINS = /*#__PURE__*/new InjectionToken(ngDevMode ? 'EventManagerPlugins' : '');\n/**\n * An injectable service that provides event management for Angular\n * through a browser plug-in.\n *\n * @publicApi\n */\nlet EventManager = /*#__PURE__*/(() => {\n  class EventManager {\n    /**\n     * Initializes an instance of the event-manager service.\n     */\n    constructor(plugins, _zone) {\n      this._zone = _zone;\n      this._eventNameToPlugin = new Map();\n      plugins.forEach(plugin => {\n        plugin.manager = this;\n      });\n      this._plugins = plugins.slice().reverse();\n    }\n    /**\n     * Registers a handler for a specific element and event.\n     *\n     * @param element The HTML element to receive event notifications.\n     * @param eventName The name of the event to listen for.\n     * @param handler A function to call when the notification occurs. Receives the\n     * event object as an argument.\n     * @returns  A callback function that can be used to remove the handler.\n     */\n    addEventListener(element, eventName, handler) {\n      const plugin = this._findPluginFor(eventName);\n      return plugin.addEventListener(element, eventName, handler);\n    }\n    /**\n     * Retrieves the compilation zone in which event listeners are registered.\n     */\n    getZone() {\n      return this._zone;\n    }\n    /** @internal */\n    _findPluginFor(eventName) {\n      let plugin = this._eventNameToPlugin.get(eventName);\n      if (plugin) {\n        return plugin;\n      }\n      const plugins = this._plugins;\n      plugin = plugins.find(plugin => plugin.supports(eventName));\n      if (!plugin) {\n        throw new ɵRuntimeError(5101 /* RuntimeErrorCode.NO_PLUGIN_FOR_EVENT */, (typeof ngDevMode === 'undefined' || ngDevMode) && `No event manager plugin found for event ${eventName}`);\n      }\n      this._eventNameToPlugin.set(eventName, plugin);\n      return plugin;\n    }\n    static {\n      this.ɵfac = function EventManager_Factory(t) {\n        return new (t || EventManager)(i0.ɵɵinject(EVENT_MANAGER_PLUGINS), i0.ɵɵinject(i0.NgZone));\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: EventManager,\n        factory: EventManager.ɵfac\n      });\n    }\n  }\n  return EventManager;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * The plugin definition for the `EventManager` class\n *\n * It can be used as a base class to create custom manager plugins, i.e. you can create your own\n * class that extends the `EventManagerPlugin` one.\n *\n * @publicApi\n */\nclass EventManagerPlugin {\n  // TODO: remove (has some usage in G3)\n  constructor(_doc) {\n    this._doc = _doc;\n  }\n}\n\n/** The style elements attribute name used to set value of `APP_ID` token. */\nconst APP_ID_ATTRIBUTE_NAME = 'ng-app-id';\nlet SharedStylesHost = /*#__PURE__*/(() => {\n  class SharedStylesHost {\n    constructor(doc, appId, nonce, platformId = {}) {\n      this.doc = doc;\n      this.appId = appId;\n      this.nonce = nonce;\n      this.platformId = platformId;\n      // Maps all registered host nodes to a list of style nodes that have been added to the host node.\n      this.styleRef = new Map();\n      this.hostNodes = new Set();\n      this.styleNodesInDOM = this.collectServerRenderedStyles();\n      this.platformIsServer = isPlatformServer(platformId);\n      this.resetHostNodes();\n    }\n    addStyles(styles) {\n      for (const style of styles) {\n        const usageCount = this.changeUsageCount(style, 1);\n        if (usageCount === 1) {\n          this.onStyleAdded(style);\n        }\n      }\n    }\n    removeStyles(styles) {\n      for (const style of styles) {\n        const usageCount = this.changeUsageCount(style, -1);\n        if (usageCount <= 0) {\n          this.onStyleRemoved(style);\n        }\n      }\n    }\n    ngOnDestroy() {\n      const styleNodesInDOM = this.styleNodesInDOM;\n      if (styleNodesInDOM) {\n        styleNodesInDOM.forEach(node => node.remove());\n        styleNodesInDOM.clear();\n      }\n      for (const style of this.getAllStyles()) {\n        this.onStyleRemoved(style);\n      }\n      this.resetHostNodes();\n    }\n    addHost(hostNode) {\n      this.hostNodes.add(hostNode);\n      for (const style of this.getAllStyles()) {\n        this.addStyleToHost(hostNode, style);\n      }\n    }\n    removeHost(hostNode) {\n      this.hostNodes.delete(hostNode);\n    }\n    getAllStyles() {\n      return this.styleRef.keys();\n    }\n    onStyleAdded(style) {\n      for (const host of this.hostNodes) {\n        this.addStyleToHost(host, style);\n      }\n    }\n    onStyleRemoved(style) {\n      const styleRef = this.styleRef;\n      styleRef.get(style)?.elements?.forEach(node => node.remove());\n      styleRef.delete(style);\n    }\n    collectServerRenderedStyles() {\n      const styles = this.doc.head?.querySelectorAll(`style[${APP_ID_ATTRIBUTE_NAME}=\"${this.appId}\"]`);\n      if (styles?.length) {\n        const styleMap = new Map();\n        styles.forEach(style => {\n          if (style.textContent != null) {\n            styleMap.set(style.textContent, style);\n          }\n        });\n        return styleMap;\n      }\n      return null;\n    }\n    changeUsageCount(style, delta) {\n      const map = this.styleRef;\n      if (map.has(style)) {\n        const styleRefValue = map.get(style);\n        styleRefValue.usage += delta;\n        return styleRefValue.usage;\n      }\n      map.set(style, {\n        usage: delta,\n        elements: []\n      });\n      return delta;\n    }\n    getStyleElement(host, style) {\n      const styleNodesInDOM = this.styleNodesInDOM;\n      const styleEl = styleNodesInDOM?.get(style);\n      if (styleEl?.parentNode === host) {\n        // `styleNodesInDOM` cannot be undefined due to the above `styleNodesInDOM?.get`.\n        styleNodesInDOM.delete(style);\n        styleEl.removeAttribute(APP_ID_ATTRIBUTE_NAME);\n        if (typeof ngDevMode === 'undefined' || ngDevMode) {\n          // This attribute is solely used for debugging purposes.\n          styleEl.setAttribute('ng-style-reused', '');\n        }\n        return styleEl;\n      } else {\n        const styleEl = this.doc.createElement('style');\n        if (this.nonce) {\n          styleEl.setAttribute('nonce', this.nonce);\n        }\n        styleEl.textContent = style;\n        if (this.platformIsServer) {\n          styleEl.setAttribute(APP_ID_ATTRIBUTE_NAME, this.appId);\n        }\n        host.appendChild(styleEl);\n        return styleEl;\n      }\n    }\n    addStyleToHost(host, style) {\n      const styleEl = this.getStyleElement(host, style);\n      const styleRef = this.styleRef;\n      const styleElRef = styleRef.get(style)?.elements;\n      if (styleElRef) {\n        styleElRef.push(styleEl);\n      } else {\n        styleRef.set(style, {\n          elements: [styleEl],\n          usage: 1\n        });\n      }\n    }\n    resetHostNodes() {\n      const hostNodes = this.hostNodes;\n      hostNodes.clear();\n      // Re-add the head element back since this is the default host.\n      hostNodes.add(this.doc.head);\n    }\n    static {\n      this.ɵfac = function SharedStylesHost_Factory(t) {\n        return new (t || SharedStylesHost)(i0.ɵɵinject(DOCUMENT), i0.ɵɵinject(APP_ID), i0.ɵɵinject(CSP_NONCE, 8), i0.ɵɵinject(PLATFORM_ID));\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: SharedStylesHost,\n        factory: SharedStylesHost.ɵfac\n      });\n    }\n  }\n  return SharedStylesHost;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst NAMESPACE_URIS = {\n  'svg': 'http://www.w3.org/2000/svg',\n  'xhtml': 'http://www.w3.org/1999/xhtml',\n  'xlink': 'http://www.w3.org/1999/xlink',\n  'xml': 'http://www.w3.org/XML/1998/namespace',\n  'xmlns': 'http://www.w3.org/2000/xmlns/',\n  'math': 'http://www.w3.org/1998/MathML/'\n};\nconst COMPONENT_REGEX = /%COMP%/g;\nconst COMPONENT_VARIABLE = '%COMP%';\nconst HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;\nconst CONTENT_ATTR = `_ngcontent-${COMPONENT_VARIABLE}`;\n/**\n * The default value for the `REMOVE_STYLES_ON_COMPONENT_DESTROY` DI token.\n */\nconst REMOVE_STYLES_ON_COMPONENT_DESTROY_DEFAULT = true;\n/**\n * A [DI token](guide/glossary#di-token \"DI token definition\") that indicates whether styles\n * of destroyed components should be removed from DOM.\n *\n * By default, the value is set to `true`.\n * @publicApi\n */\nconst REMOVE_STYLES_ON_COMPONENT_DESTROY = /*#__PURE__*/new InjectionToken(ngDevMode ? 'RemoveStylesOnCompDestroy' : '', {\n  providedIn: 'root',\n  factory: () => REMOVE_STYLES_ON_COMPONENT_DESTROY_DEFAULT\n});\nfunction shimContentAttribute(componentShortId) {\n  return CONTENT_ATTR.replace(COMPONENT_REGEX, componentShortId);\n}\nfunction shimHostAttribute(componentShortId) {\n  return HOST_ATTR.replace(COMPONENT_REGEX, componentShortId);\n}\nfunction shimStylesContent(compId, styles) {\n  return styles.map(s => s.replace(COMPONENT_REGEX, compId));\n}\nlet DomRendererFactory2 = /*#__PURE__*/(() => {\n  class DomRendererFactory2 {\n    constructor(eventManager, sharedStylesHost, appId, removeStylesOnCompDestroy, doc, platformId, ngZone, nonce = null) {\n      this.eventManager = eventManager;\n      this.sharedStylesHost = sharedStylesHost;\n      this.appId = appId;\n      this.removeStylesOnCompDestroy = removeStylesOnCompDestroy;\n      this.doc = doc;\n      this.platformId = platformId;\n      this.ngZone = ngZone;\n      this.nonce = nonce;\n      this.rendererByCompId = new Map();\n      this.platformIsServer = isPlatformServer(platformId);\n      this.defaultRenderer = new DefaultDomRenderer2(eventManager, doc, ngZone, this.platformIsServer);\n    }\n    createRenderer(element, type) {\n      if (!element || !type) {\n        return this.defaultRenderer;\n      }\n      if (this.platformIsServer && type.encapsulation === ViewEncapsulation.ShadowDom) {\n        // Domino does not support shadow DOM.\n        type = {\n          ...type,\n          encapsulation: ViewEncapsulation.Emulated\n        };\n      }\n      const renderer = this.getOrCreateRenderer(element, type);\n      // Renderers have different logic due to different encapsulation behaviours.\n      // Ex: for emulated, an attribute is added to the element.\n      if (renderer instanceof EmulatedEncapsulationDomRenderer2) {\n        renderer.applyToHost(element);\n      } else if (renderer instanceof NoneEncapsulationDomRenderer) {\n        renderer.applyStyles();\n      }\n      return renderer;\n    }\n    getOrCreateRenderer(element, type) {\n      const rendererByCompId = this.rendererByCompId;\n      let renderer = rendererByCompId.get(type.id);\n      if (!renderer) {\n        const doc = this.doc;\n        const ngZone = this.ngZone;\n        const eventManager = this.eventManager;\n        const sharedStylesHost = this.sharedStylesHost;\n        const removeStylesOnCompDestroy = this.removeStylesOnCompDestroy;\n        const platformIsServer = this.platformIsServer;\n        switch (type.encapsulation) {\n          case ViewEncapsulation.Emulated:\n            renderer = new EmulatedEncapsulationDomRenderer2(eventManager, sharedStylesHost, type, this.appId, removeStylesOnCompDestroy, doc, ngZone, platformIsServer);\n            break;\n          case ViewEncapsulation.ShadowDom:\n            return new ShadowDomRenderer(eventManager, sharedStylesHost, element, type, doc, ngZone, this.nonce, platformIsServer);\n          default:\n            renderer = new NoneEncapsulationDomRenderer(eventManager, sharedStylesHost, type, removeStylesOnCompDestroy, doc, ngZone, platformIsServer);\n            break;\n        }\n        rendererByCompId.set(type.id, renderer);\n      }\n      return renderer;\n    }\n    ngOnDestroy() {\n      this.rendererByCompId.clear();\n    }\n    static {\n      this.ɵfac = function DomRendererFactory2_Factory(t) {\n        return new (t || DomRendererFactory2)(i0.ɵɵinject(EventManager), i0.ɵɵinject(SharedStylesHost), i0.ɵɵinject(APP_ID), i0.ɵɵinject(REMOVE_STYLES_ON_COMPONENT_DESTROY), i0.ɵɵinject(DOCUMENT), i0.ɵɵinject(PLATFORM_ID), i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(CSP_NONCE));\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: DomRendererFactory2,\n        factory: DomRendererFactory2.ɵfac\n      });\n    }\n  }\n  return DomRendererFactory2;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nclass DefaultDomRenderer2 {\n  constructor(eventManager, doc, ngZone, platformIsServer) {\n    this.eventManager = eventManager;\n    this.doc = doc;\n    this.ngZone = ngZone;\n    this.platformIsServer = platformIsServer;\n    this.data = Object.create(null);\n    /**\n     * By default this renderer throws when encountering synthetic properties\n     * This can be disabled for example by the AsyncAnimationRendererFactory\n     */\n    this.throwOnSyntheticProps = true;\n    this.destroyNode = null;\n  }\n  destroy() {}\n  createElement(name, namespace) {\n    if (namespace) {\n      // TODO: `|| namespace` was added in\n      // https://github.com/angular/angular/commit/2b9cc8503d48173492c29f5a271b61126104fbdb to\n      // support how Ivy passed around the namespace URI rather than short name at the time. It did\n      // not, however extend the support to other parts of the system (setAttribute, setAttribute,\n      // and the ServerRenderer). We should decide what exactly the semantics for dealing with\n      // namespaces should be and make it consistent.\n      // Related issues:\n      // https://github.com/angular/angular/issues/44028\n      // https://github.com/angular/angular/issues/44883\n      return this.doc.createElementNS(NAMESPACE_URIS[namespace] || namespace, name);\n    }\n    return this.doc.createElement(name);\n  }\n  createComment(value) {\n    return this.doc.createComment(value);\n  }\n  createText(value) {\n    return this.doc.createTextNode(value);\n  }\n  appendChild(parent, newChild) {\n    const targetParent = isTemplateNode(parent) ? parent.content : parent;\n    targetParent.appendChild(newChild);\n  }\n  insertBefore(parent, newChild, refChild) {\n    if (parent) {\n      const targetParent = isTemplateNode(parent) ? parent.content : parent;\n      targetParent.insertBefore(newChild, refChild);\n    }\n  }\n  removeChild(parent, oldChild) {\n    if (parent) {\n      parent.removeChild(oldChild);\n    }\n  }\n  selectRootElement(selectorOrNode, preserveContent) {\n    let el = typeof selectorOrNode === 'string' ? this.doc.querySelector(selectorOrNode) : selectorOrNode;\n    if (!el) {\n      throw new ɵRuntimeError(-5104 /* RuntimeErrorCode.ROOT_NODE_NOT_FOUND */, (typeof ngDevMode === 'undefined' || ngDevMode) && `The selector \"${selectorOrNode}\" did not match any elements`);\n    }\n    if (!preserveContent) {\n      el.textContent = '';\n    }\n    return el;\n  }\n  parentNode(node) {\n    return node.parentNode;\n  }\n  nextSibling(node) {\n    return node.nextSibling;\n  }\n  setAttribute(el, name, value, namespace) {\n    if (namespace) {\n      name = namespace + ':' + name;\n      const namespaceUri = NAMESPACE_URIS[namespace];\n      if (namespaceUri) {\n        el.setAttributeNS(namespaceUri, name, value);\n      } else {\n        el.setAttribute(name, value);\n      }\n    } else {\n      el.setAttribute(name, value);\n    }\n  }\n  removeAttribute(el, name, namespace) {\n    if (namespace) {\n      const namespaceUri = NAMESPACE_URIS[namespace];\n      if (namespaceUri) {\n        el.removeAttributeNS(namespaceUri, name);\n      } else {\n        el.removeAttribute(`${namespace}:${name}`);\n      }\n    } else {\n      el.removeAttribute(name);\n    }\n  }\n  addClass(el, name) {\n    el.classList.add(name);\n  }\n  removeClass(el, name) {\n    el.classList.remove(name);\n  }\n  setStyle(el, style, value, flags) {\n    if (flags & (RendererStyleFlags2.DashCase | RendererStyleFlags2.Important)) {\n      el.style.setProperty(style, value, flags & RendererStyleFlags2.Important ? 'important' : '');\n    } else {\n      el.style[style] = value;\n    }\n  }\n  removeStyle(el, style, flags) {\n    if (flags & RendererStyleFlags2.DashCase) {\n      // removeProperty has no effect when used on camelCased properties.\n      el.style.removeProperty(style);\n    } else {\n      el.style[style] = '';\n    }\n  }\n  setProperty(el, name, value) {\n    if (el == null) {\n      return;\n    }\n    (typeof ngDevMode === 'undefined' || ngDevMode) && this.throwOnSyntheticProps && checkNoSyntheticProp(name, 'property');\n    el[name] = value;\n  }\n  setValue(node, value) {\n    node.nodeValue = value;\n  }\n  listen(target, event, callback) {\n    (typeof ngDevMode === 'undefined' || ngDevMode) && this.throwOnSyntheticProps && checkNoSyntheticProp(event, 'listener');\n    if (typeof target === 'string') {\n      target = ɵgetDOM().getGlobalEventTarget(this.doc, target);\n      if (!target) {\n        throw new Error(`Unsupported event target ${target} for event ${event}`);\n      }\n    }\n    return this.eventManager.addEventListener(target, event, this.decoratePreventDefault(callback));\n  }\n  decoratePreventDefault(eventHandler) {\n    // `DebugNode.triggerEventHandler` needs to know if the listener was created with\n    // decoratePreventDefault or is a listener added outside the Angular context so it can handle\n    // the two differently. In the first case, the special '__ngUnwrap__' token is passed to the\n    // unwrap the listener (see below).\n    return event => {\n      // Ivy uses '__ngUnwrap__' as a special token that allows us to unwrap the function\n      // so that it can be invoked programmatically by `DebugNode.triggerEventHandler`. The\n      // debug_node can inspect the listener toString contents for the existence of this special\n      // token. Because the token is a string literal, it is ensured to not be modified by compiled\n      // code.\n      if (event === '__ngUnwrap__') {\n        return eventHandler;\n      }\n      // Run the event handler inside the ngZone because event handlers are not patched\n      // by Zone on the server. This is required only for tests.\n      const allowDefaultBehavior = this.platformIsServer ? this.ngZone.runGuarded(() => eventHandler(event)) : eventHandler(event);\n      if (allowDefaultBehavior === false) {\n        event.preventDefault();\n      }\n      return undefined;\n    };\n  }\n}\nconst AT_CHARCODE = /*#__PURE__*/(() => '@'.charCodeAt(0))();\nfunction checkNoSyntheticProp(name, nameKind) {\n  if (name.charCodeAt(0) === AT_CHARCODE) {\n    throw new ɵRuntimeError(5105 /* RuntimeErrorCode.UNEXPECTED_SYNTHETIC_PROPERTY */, `Unexpected synthetic ${nameKind} ${name} found. Please make sure that:\n  - Either \\`BrowserAnimationsModule\\` or \\`NoopAnimationsModule\\` are imported in your application.\n  - There is corresponding configuration for the animation named \\`${name}\\` defined in the \\`animations\\` field of the \\`@Component\\` decorator (see https://angular.io/api/core/Component#animations).`);\n  }\n}\nfunction isTemplateNode(node) {\n  return node.tagName === 'TEMPLATE' && node.content !== undefined;\n}\nclass ShadowDomRenderer extends DefaultDomRenderer2 {\n  constructor(eventManager, sharedStylesHost, hostEl, component, doc, ngZone, nonce, platformIsServer) {\n    super(eventManager, doc, ngZone, platformIsServer);\n    this.sharedStylesHost = sharedStylesHost;\n    this.hostEl = hostEl;\n    this.shadowRoot = hostEl.attachShadow({\n      mode: 'open'\n    });\n    this.sharedStylesHost.addHost(this.shadowRoot);\n    const styles = shimStylesContent(component.id, component.styles);\n    for (const style of styles) {\n      const styleEl = document.createElement('style');\n      if (nonce) {\n        styleEl.setAttribute('nonce', nonce);\n      }\n      styleEl.textContent = style;\n      this.shadowRoot.appendChild(styleEl);\n    }\n  }\n  nodeOrShadowRoot(node) {\n    return node === this.hostEl ? this.shadowRoot : node;\n  }\n  appendChild(parent, newChild) {\n    return super.appendChild(this.nodeOrShadowRoot(parent), newChild);\n  }\n  insertBefore(parent, newChild, refChild) {\n    return super.insertBefore(this.nodeOrShadowRoot(parent), newChild, refChild);\n  }\n  removeChild(parent, oldChild) {\n    return super.removeChild(this.nodeOrShadowRoot(parent), oldChild);\n  }\n  parentNode(node) {\n    return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(node)));\n  }\n  destroy() {\n    this.sharedStylesHost.removeHost(this.shadowRoot);\n  }\n}\nclass NoneEncapsulationDomRenderer extends DefaultDomRenderer2 {\n  constructor(eventManager, sharedStylesHost, component, removeStylesOnCompDestroy, doc, ngZone, platformIsServer, compId) {\n    super(eventManager, doc, ngZone, platformIsServer);\n    this.sharedStylesHost = sharedStylesHost;\n    this.removeStylesOnCompDestroy = removeStylesOnCompDestroy;\n    this.styles = compId ? shimStylesContent(compId, component.styles) : component.styles;\n  }\n  applyStyles() {\n    this.sharedStylesHost.addStyles(this.styles);\n  }\n  destroy() {\n    if (!this.removeStylesOnCompDestroy) {\n      return;\n    }\n    this.sharedStylesHost.removeStyles(this.styles);\n  }\n}\nclass EmulatedEncapsulationDomRenderer2 extends NoneEncapsulationDomRenderer {\n  constructor(eventManager, sharedStylesHost, component, appId, removeStylesOnCompDestroy, doc, ngZone, platformIsServer) {\n    const compId = appId + '-' + component.id;\n    super(eventManager, sharedStylesHost, component, removeStylesOnCompDestroy, doc, ngZone, platformIsServer, compId);\n    this.contentAttr = shimContentAttribute(compId);\n    this.hostAttr = shimHostAttribute(compId);\n  }\n  applyToHost(element) {\n    this.applyStyles();\n    this.setAttribute(element, this.hostAttr, '');\n  }\n  createElement(parent, name) {\n    const el = super.createElement(parent, name);\n    super.setAttribute(el, this.contentAttr, '');\n    return el;\n  }\n}\nlet DomEventsPlugin = /*#__PURE__*/(() => {\n  class DomEventsPlugin extends EventManagerPlugin {\n    constructor(doc) {\n      super(doc);\n    }\n    // This plugin should come last in the list of plugins, because it accepts all\n    // events.\n    supports(eventName) {\n      return true;\n    }\n    addEventListener(element, eventName, handler) {\n      element.addEventListener(eventName, handler, false);\n      return () => this.removeEventListener(element, eventName, handler);\n    }\n    removeEventListener(target, eventName, callback) {\n      return target.removeEventListener(eventName, callback);\n    }\n    static {\n      this.ɵfac = function DomEventsPlugin_Factory(t) {\n        return new (t || DomEventsPlugin)(i0.ɵɵinject(DOCUMENT));\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: DomEventsPlugin,\n        factory: DomEventsPlugin.ɵfac\n      });\n    }\n  }\n  return DomEventsPlugin;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Defines supported modifiers for key events.\n */\nconst MODIFIER_KEYS = ['alt', 'control', 'meta', 'shift'];\n// The following values are here for cross-browser compatibility and to match the W3C standard\n// cf https://www.w3.org/TR/DOM-Level-3-Events-key/\nconst _keyMap = {\n  '\\b': 'Backspace',\n  '\\t': 'Tab',\n  '\\x7F': 'Delete',\n  '\\x1B': 'Escape',\n  'Del': 'Delete',\n  'Esc': 'Escape',\n  'Left': 'ArrowLeft',\n  'Right': 'ArrowRight',\n  'Up': 'ArrowUp',\n  'Down': 'ArrowDown',\n  'Menu': 'ContextMenu',\n  'Scroll': 'ScrollLock',\n  'Win': 'OS'\n};\n/**\n * Retrieves modifiers from key-event objects.\n */\nconst MODIFIER_KEY_GETTERS = {\n  'alt': event => event.altKey,\n  'control': event => event.ctrlKey,\n  'meta': event => event.metaKey,\n  'shift': event => event.shiftKey\n};\n/**\n * A browser plug-in that provides support for handling of key events in Angular.\n */\nlet KeyEventsPlugin = /*#__PURE__*/(() => {\n  class KeyEventsPlugin extends EventManagerPlugin {\n    /**\n     * Initializes an instance of the browser plug-in.\n     * @param doc The document in which key events will be detected.\n     */\n    constructor(doc) {\n      super(doc);\n    }\n    /**\n     * Reports whether a named key event is supported.\n     * @param eventName The event name to query.\n     * @return True if the named key event is supported.\n     */\n    supports(eventName) {\n      return KeyEventsPlugin.parseEventName(eventName) != null;\n    }\n    /**\n     * Registers a handler for a specific element and key event.\n     * @param element The HTML element to receive event notifications.\n     * @param eventName The name of the key event to listen for.\n     * @param handler A function to call when the notification occurs. Receives the\n     * event object as an argument.\n     * @returns The key event that was registered.\n     */\n    addEventListener(element, eventName, handler) {\n      const parsedEvent = KeyEventsPlugin.parseEventName(eventName);\n      const outsideHandler = KeyEventsPlugin.eventCallback(parsedEvent['fullKey'], handler, this.manager.getZone());\n      return this.manager.getZone().runOutsideAngular(() => {\n        return ɵgetDOM().onAndCancel(element, parsedEvent['domEventName'], outsideHandler);\n      });\n    }\n    /**\n     * Parses the user provided full keyboard event definition and normalizes it for\n     * later internal use. It ensures the string is all lowercase, converts special\n     * characters to a standard spelling, and orders all the values consistently.\n     *\n     * @param eventName The name of the key event to listen for.\n     * @returns an object with the full, normalized string, and the dom event name\n     * or null in the case when the event doesn't match a keyboard event.\n     */\n    static parseEventName(eventName) {\n      const parts = eventName.toLowerCase().split('.');\n      const domEventName = parts.shift();\n      if (parts.length === 0 || !(domEventName === 'keydown' || domEventName === 'keyup')) {\n        return null;\n      }\n      const key = KeyEventsPlugin._normalizeKey(parts.pop());\n      let fullKey = '';\n      let codeIX = parts.indexOf('code');\n      if (codeIX > -1) {\n        parts.splice(codeIX, 1);\n        fullKey = 'code.';\n      }\n      MODIFIER_KEYS.forEach(modifierName => {\n        const index = parts.indexOf(modifierName);\n        if (index > -1) {\n          parts.splice(index, 1);\n          fullKey += modifierName + '.';\n        }\n      });\n      fullKey += key;\n      if (parts.length != 0 || key.length === 0) {\n        // returning null instead of throwing to let another plugin process the event\n        return null;\n      }\n      // NOTE: Please don't rewrite this as so, as it will break JSCompiler property renaming.\n      //       The code must remain in the `result['domEventName']` form.\n      // return {domEventName, fullKey};\n      const result = {};\n      result['domEventName'] = domEventName;\n      result['fullKey'] = fullKey;\n      return result;\n    }\n    /**\n     * Determines whether the actual keys pressed match the configured key code string.\n     * The `fullKeyCode` event is normalized in the `parseEventName` method when the\n     * event is attached to the DOM during the `addEventListener` call. This is unseen\n     * by the end user and is normalized for internal consistency and parsing.\n     *\n     * @param event The keyboard event.\n     * @param fullKeyCode The normalized user defined expected key event string\n     * @returns boolean.\n     */\n    static matchEventFullKeyCode(event, fullKeyCode) {\n      let keycode = _keyMap[event.key] || event.key;\n      let key = '';\n      if (fullKeyCode.indexOf('code.') > -1) {\n        keycode = event.code;\n        key = 'code.';\n      }\n      // the keycode could be unidentified so we have to check here\n      if (keycode == null || !keycode) return false;\n      keycode = keycode.toLowerCase();\n      if (keycode === ' ') {\n        keycode = 'space'; // for readability\n      } else if (keycode === '.') {\n        keycode = 'dot'; // because '.' is used as a separator in event names\n      }\n      MODIFIER_KEYS.forEach(modifierName => {\n        if (modifierName !== keycode) {\n          const modifierGetter = MODIFIER_KEY_GETTERS[modifierName];\n          if (modifierGetter(event)) {\n            key += modifierName + '.';\n          }\n        }\n      });\n      key += keycode;\n      return key === fullKeyCode;\n    }\n    /**\n     * Configures a handler callback for a key event.\n     * @param fullKey The event name that combines all simultaneous keystrokes.\n     * @param handler The function that responds to the key event.\n     * @param zone The zone in which the event occurred.\n     * @returns A callback function.\n     */\n    static eventCallback(fullKey, handler, zone) {\n      return event => {\n        if (KeyEventsPlugin.matchEventFullKeyCode(event, fullKey)) {\n          zone.runGuarded(() => handler(event));\n        }\n      };\n    }\n    /** @internal */\n    static _normalizeKey(keyName) {\n      return keyName === 'esc' ? 'escape' : keyName;\n    }\n    static {\n      this.ɵfac = function KeyEventsPlugin_Factory(t) {\n        return new (t || KeyEventsPlugin)(i0.ɵɵinject(DOCUMENT));\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: KeyEventsPlugin,\n        factory: KeyEventsPlugin.ɵfac\n      });\n    }\n  }\n  return KeyEventsPlugin;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Bootstraps an instance of an Angular application and renders a standalone component as the\n * application's root component. More information about standalone components can be found in [this\n * guide](guide/standalone-components).\n *\n * @usageNotes\n * The root component passed into this function *must* be a standalone one (should have the\n * `standalone: true` flag in the `@Component` decorator config).\n *\n * ```typescript\n * @Component({\n *   standalone: true,\n *   template: 'Hello world!'\n * })\n * class RootComponent {}\n *\n * const appRef: ApplicationRef = await bootstrapApplication(RootComponent);\n * ```\n *\n * You can add the list of providers that should be available in the application injector by\n * specifying the `providers` field in an object passed as the second argument:\n *\n * ```typescript\n * await bootstrapApplication(RootComponent, {\n *   providers: [\n *     {provide: BACKEND_URL, useValue: 'https://yourdomain.com/api'}\n *   ]\n * });\n * ```\n *\n * The `importProvidersFrom` helper method can be used to collect all providers from any\n * existing NgModule (and transitively from all NgModules that it imports):\n *\n * ```typescript\n * await bootstrapApplication(RootComponent, {\n *   providers: [\n *     importProvidersFrom(SomeNgModule)\n *   ]\n * });\n * ```\n *\n * Note: the `bootstrapApplication` method doesn't include [Testability](api/core/Testability) by\n * default. You can add [Testability](api/core/Testability) by getting the list of necessary\n * providers using `provideProtractorTestingSupport()` function and adding them into the `providers`\n * array, for example:\n *\n * ```typescript\n * import {provideProtractorTestingSupport} from '@angular/platform-browser';\n *\n * await bootstrapApplication(RootComponent, {providers: [provideProtractorTestingSupport()]});\n * ```\n *\n * @param rootComponent A reference to a standalone component that should be rendered.\n * @param options Extra configuration for the bootstrap operation, see `ApplicationConfig` for\n *     additional info.\n * @returns A promise that returns an `ApplicationRef` instance once resolved.\n *\n * @publicApi\n */\nfunction bootstrapApplication(rootComponent, options) {\n  return ɵinternalCreateApplication({\n    rootComponent,\n    ...createProvidersConfig(options)\n  });\n}\n/**\n * Create an instance of an Angular application without bootstrapping any components. This is useful\n * for the situation where one wants to decouple application environment creation (a platform and\n * associated injectors) from rendering components on a screen. Components can be subsequently\n * bootstrapped on the returned `ApplicationRef`.\n *\n * @param options Extra configuration for the application environment, see `ApplicationConfig` for\n *     additional info.\n * @returns A promise that returns an `ApplicationRef` instance once resolved.\n *\n * @publicApi\n */\nfunction createApplication(options) {\n  return ɵinternalCreateApplication(createProvidersConfig(options));\n}\nfunction createProvidersConfig(options) {\n  return {\n    appProviders: [...BROWSER_MODULE_PROVIDERS, ...(options?.providers ?? [])],\n    platformProviders: INTERNAL_BROWSER_PLATFORM_PROVIDERS\n  };\n}\n/**\n * Returns a set of providers required to setup [Testability](api/core/Testability) for an\n * application bootstrapped using the `bootstrapApplication` function. The set of providers is\n * needed to support testing an application with Protractor (which relies on the Testability APIs\n * to be present).\n *\n * @returns An array of providers required to setup Testability for an application and make it\n *     available for testing using Protractor.\n *\n * @publicApi\n */\nfunction provideProtractorTestingSupport() {\n  // Return a copy to prevent changes to the original array in case any in-place\n  // alterations are performed to the `provideProtractorTestingSupport` call results in app\n  // code.\n  return [...TESTABILITY_PROVIDERS];\n}\nfunction initDomAdapter() {\n  BrowserDomAdapter.makeCurrent();\n}\nfunction errorHandler() {\n  return new ErrorHandler();\n}\nfunction _document() {\n  // Tell ivy about the global document\n  ɵsetDocument(document);\n  return document;\n}\nconst INTERNAL_BROWSER_PLATFORM_PROVIDERS = [{\n  provide: PLATFORM_ID,\n  useValue: ɵPLATFORM_BROWSER_ID\n}, {\n  provide: PLATFORM_INITIALIZER,\n  useValue: initDomAdapter,\n  multi: true\n}, {\n  provide: DOCUMENT,\n  useFactory: _document,\n  deps: []\n}];\n/**\n * A factory function that returns a `PlatformRef` instance associated with browser service\n * providers.\n *\n * @publicApi\n */\nconst platformBrowser = /*#__PURE__*/createPlatformFactory(platformCore, 'browser', INTERNAL_BROWSER_PLATFORM_PROVIDERS);\n/**\n * Internal marker to signal whether providers from the `BrowserModule` are already present in DI.\n * This is needed to avoid loading `BrowserModule` providers twice. We can't rely on the\n * `BrowserModule` presence itself, since the standalone-based bootstrap just imports\n * `BrowserModule` providers without referencing the module itself.\n */\nconst BROWSER_MODULE_PROVIDERS_MARKER = /*#__PURE__*/new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'BrowserModule Providers Marker' : '');\nconst TESTABILITY_PROVIDERS = [{\n  provide: ɵTESTABILITY_GETTER,\n  useClass: BrowserGetTestability,\n  deps: []\n}, {\n  provide: ɵTESTABILITY,\n  useClass: Testability,\n  deps: [NgZone, TestabilityRegistry, ɵTESTABILITY_GETTER]\n}, {\n  provide: Testability,\n  // Also provide as `Testability` for backwards-compatibility.\n  useClass: Testability,\n  deps: [NgZone, TestabilityRegistry, ɵTESTABILITY_GETTER]\n}];\nconst BROWSER_MODULE_PROVIDERS = [{\n  provide: ɵINJECTOR_SCOPE,\n  useValue: 'root'\n}, {\n  provide: ErrorHandler,\n  useFactory: errorHandler,\n  deps: []\n}, {\n  provide: EVENT_MANAGER_PLUGINS,\n  useClass: DomEventsPlugin,\n  multi: true,\n  deps: [DOCUMENT, NgZone, PLATFORM_ID]\n}, {\n  provide: EVENT_MANAGER_PLUGINS,\n  useClass: KeyEventsPlugin,\n  multi: true,\n  deps: [DOCUMENT]\n}, DomRendererFactory2, SharedStylesHost, EventManager, {\n  provide: RendererFactory2,\n  useExisting: DomRendererFactory2\n}, {\n  provide: XhrFactory,\n  useClass: BrowserXhr,\n  deps: []\n}, typeof ngDevMode === 'undefined' || ngDevMode ? {\n  provide: BROWSER_MODULE_PROVIDERS_MARKER,\n  useValue: true\n} : []];\n/**\n * Exports required infrastructure for all Angular apps.\n * Included by default in all Angular apps created with the CLI\n * `new` command.\n * Re-exports `CommonModule` and `ApplicationModule`, making their\n * exports and providers available to all apps.\n *\n * @publicApi\n */\nlet BrowserModule = /*#__PURE__*/(() => {\n  class BrowserModule {\n    constructor(providersAlreadyPresent) {\n      if ((typeof ngDevMode === 'undefined' || ngDevMode) && providersAlreadyPresent) {\n        throw new ɵRuntimeError(5100 /* RuntimeErrorCode.BROWSER_MODULE_ALREADY_LOADED */, `Providers from the \\`BrowserModule\\` have already been loaded. If you need access ` + `to common directives such as NgIf and NgFor, import the \\`CommonModule\\` instead.`);\n      }\n    }\n    /**\n     * Configures a browser-based app to transition from a server-rendered app, if\n     * one is present on the page.\n     *\n     * @param params An object containing an identifier for the app to transition.\n     * The ID must match between the client and server versions of the app.\n     * @returns The reconfigured `BrowserModule` to import into the app's root `AppModule`.\n     *\n     * @deprecated Use {@link APP_ID} instead to set the application ID.\n     */\n    static withServerTransition(params) {\n      return {\n        ngModule: BrowserModule,\n        providers: [{\n          provide: APP_ID,\n          useValue: params.appId\n        }]\n      };\n    }\n    static {\n      this.ɵfac = function BrowserModule_Factory(t) {\n        return new (t || BrowserModule)(i0.ɵɵinject(BROWSER_MODULE_PROVIDERS_MARKER, 12));\n      };\n    }\n    static {\n      this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n        type: BrowserModule\n      });\n    }\n    static {\n      this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n        providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS],\n        imports: [CommonModule, ApplicationModule]\n      });\n    }\n  }\n  return BrowserModule;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * A service for managing HTML `<meta>` tags.\n *\n * Properties of the `MetaDefinition` object match the attributes of the\n * HTML `<meta>` tag. These tags define document metadata that is important for\n * things like configuring a Content Security Policy, defining browser compatibility\n * and security settings, setting HTTP Headers, defining rich content for social sharing,\n * and Search Engine Optimization (SEO).\n *\n * To identify specific `<meta>` tags in a document, use an attribute selection\n * string in the format `\"tag_attribute='value string'\"`.\n * For example, an `attrSelector` value of `\"name='description'\"` matches a tag\n * whose `name` attribute has the value `\"description\"`.\n * Selectors are used with the `querySelector()` Document method,\n * in the format `meta[{attrSelector}]`.\n *\n * @see [HTML meta tag](https://developer.mozilla.org/docs/Web/HTML/Element/meta)\n * @see [Document.querySelector()](https://developer.mozilla.org/docs/Web/API/Document/querySelector)\n *\n *\n * @publicApi\n */\nlet Meta = /*#__PURE__*/(() => {\n  class Meta {\n    constructor(_doc) {\n      this._doc = _doc;\n      this._dom = ɵgetDOM();\n    }\n    /**\n     * Retrieves or creates a specific `<meta>` tag element in the current HTML document.\n     * In searching for an existing tag, Angular attempts to match the `name` or `property` attribute\n     * values in the provided tag definition, and verifies that all other attribute values are equal.\n     * If an existing element is found, it is returned and is not modified in any way.\n     * @param tag The definition of a `<meta>` element to match or create.\n     * @param forceCreation True to create a new element without checking whether one already exists.\n     * @returns The existing element with the same attributes and values if found,\n     * the new element if no match is found, or `null` if the tag parameter is not defined.\n     */\n    addTag(tag, forceCreation = false) {\n      if (!tag) return null;\n      return this._getOrCreateElement(tag, forceCreation);\n    }\n    /**\n     * Retrieves or creates a set of `<meta>` tag elements in the current HTML document.\n     * In searching for an existing tag, Angular attempts to match the `name` or `property` attribute\n     * values in the provided tag definition, and verifies that all other attribute values are equal.\n     * @param tags An array of tag definitions to match or create.\n     * @param forceCreation True to create new elements without checking whether they already exist.\n     * @returns The matching elements if found, or the new elements.\n     */\n    addTags(tags, forceCreation = false) {\n      if (!tags) return [];\n      return tags.reduce((result, tag) => {\n        if (tag) {\n          result.push(this._getOrCreateElement(tag, forceCreation));\n        }\n        return result;\n      }, []);\n    }\n    /**\n     * Retrieves a `<meta>` tag element in the current HTML document.\n     * @param attrSelector The tag attribute and value to match against, in the format\n     * `\"tag_attribute='value string'\"`.\n     * @returns The matching element, if any.\n     */\n    getTag(attrSelector) {\n      if (!attrSelector) return null;\n      return this._doc.querySelector(`meta[${attrSelector}]`) || null;\n    }\n    /**\n     * Retrieves a set of `<meta>` tag elements in the current HTML document.\n     * @param attrSelector The tag attribute and value to match against, in the format\n     * `\"tag_attribute='value string'\"`.\n     * @returns The matching elements, if any.\n     */\n    getTags(attrSelector) {\n      if (!attrSelector) return [];\n      const list /*NodeList*/ = this._doc.querySelectorAll(`meta[${attrSelector}]`);\n      return list ? [].slice.call(list) : [];\n    }\n    /**\n     * Modifies an existing `<meta>` tag element in the current HTML document.\n     * @param tag The tag description with which to replace the existing tag content.\n     * @param selector A tag attribute and value to match against, to identify\n     * an existing tag. A string in the format `\"tag_attribute=`value string`\"`.\n     * If not supplied, matches a tag with the same `name` or `property` attribute value as the\n     * replacement tag.\n     * @return The modified element.\n     */\n    updateTag(tag, selector) {\n      if (!tag) return null;\n      selector = selector || this._parseSelector(tag);\n      const meta = this.getTag(selector);\n      if (meta) {\n        return this._setMetaElementAttributes(tag, meta);\n      }\n      return this._getOrCreateElement(tag, true);\n    }\n    /**\n     * Removes an existing `<meta>` tag element from the current HTML document.\n     * @param attrSelector A tag attribute and value to match against, to identify\n     * an existing tag. A string in the format `\"tag_attribute=`value string`\"`.\n     */\n    removeTag(attrSelector) {\n      this.removeTagElement(this.getTag(attrSelector));\n    }\n    /**\n     * Removes an existing `<meta>` tag element from the current HTML document.\n     * @param meta The tag definition to match against to identify an existing tag.\n     */\n    removeTagElement(meta) {\n      if (meta) {\n        this._dom.remove(meta);\n      }\n    }\n    _getOrCreateElement(meta, forceCreation = false) {\n      if (!forceCreation) {\n        const selector = this._parseSelector(meta);\n        // It's allowed to have multiple elements with the same name so it's not enough to\n        // just check that element with the same name already present on the page. We also need to\n        // check if element has tag attributes\n        const elem = this.getTags(selector).filter(elem => this._containsAttributes(meta, elem))[0];\n        if (elem !== undefined) return elem;\n      }\n      const element = this._dom.createElement('meta');\n      this._setMetaElementAttributes(meta, element);\n      const head = this._doc.getElementsByTagName('head')[0];\n      head.appendChild(element);\n      return element;\n    }\n    _setMetaElementAttributes(tag, el) {\n      Object.keys(tag).forEach(prop => el.setAttribute(this._getMetaKeyMap(prop), tag[prop]));\n      return el;\n    }\n    _parseSelector(tag) {\n      const attr = tag.name ? 'name' : 'property';\n      return `${attr}=\"${tag[attr]}\"`;\n    }\n    _containsAttributes(tag, elem) {\n      return Object.keys(tag).every(key => elem.getAttribute(this._getMetaKeyMap(key)) === tag[key]);\n    }\n    _getMetaKeyMap(prop) {\n      return META_KEYS_MAP[prop] || prop;\n    }\n    static {\n      this.ɵfac = function Meta_Factory(t) {\n        return new (t || Meta)(i0.ɵɵinject(DOCUMENT));\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: Meta,\n        factory: Meta.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return Meta;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Mapping for MetaDefinition properties with their correct meta attribute names\n */\nconst META_KEYS_MAP = {\n  httpEquiv: 'http-equiv'\n};\n\n/**\n * A service that can be used to get and set the title of a current HTML document.\n *\n * Since an Angular application can't be bootstrapped on the entire HTML document (`<html>` tag)\n * it is not possible to bind to the `text` property of the `HTMLTitleElement` elements\n * (representing the `<title>` tag). Instead, this service can be used to set and get the current\n * title value.\n *\n * @publicApi\n */\nlet Title = /*#__PURE__*/(() => {\n  class Title {\n    constructor(_doc) {\n      this._doc = _doc;\n    }\n    /**\n     * Get the title of the current HTML document.\n     */\n    getTitle() {\n      return this._doc.title;\n    }\n    /**\n     * Set the title of the current HTML document.\n     * @param newTitle\n     */\n    setTitle(newTitle) {\n      this._doc.title = newTitle || '';\n    }\n    static {\n      this.ɵfac = function Title_Factory(t) {\n        return new (t || Title)(i0.ɵɵinject(DOCUMENT));\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: Title,\n        factory: Title.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return Title;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Exports the value under a given `name` in the global property `ng`. For example `ng.probe` if\n * `name` is `'probe'`.\n * @param name Name under which it will be exported. Keep in mind this will be a property of the\n * global `ng` object.\n * @param value The value to export.\n */\nfunction exportNgVar(name, value) {\n  if (typeof COMPILED === 'undefined' || !COMPILED) {\n    // Note: we can't export `ng` when using closure enhanced optimization as:\n    // - closure declares globals itself for minified names, which sometimes clobber our `ng` global\n    // - we can't declare a closure extern as the namespace `ng` is already used within Google\n    //   for typings for angularJS (via `goog.provide('ng....')`).\n    const ng = ɵglobal['ng'] = ɵglobal['ng'] || {};\n    ng[name] = value;\n  }\n}\nclass ChangeDetectionPerfRecord {\n  constructor(msPerTick, numTicks) {\n    this.msPerTick = msPerTick;\n    this.numTicks = numTicks;\n  }\n}\n/**\n * Entry point for all Angular profiling-related debug tools. This object\n * corresponds to the `ng.profiler` in the dev console.\n */\nclass AngularProfiler {\n  constructor(ref) {\n    this.appRef = ref.injector.get(ApplicationRef);\n  }\n  // tslint:disable:no-console\n  /**\n   * Exercises change detection in a loop and then prints the average amount of\n   * time in milliseconds how long a single round of change detection takes for\n   * the current state of the UI. It runs a minimum of 5 rounds for a minimum\n   * of 500 milliseconds.\n   *\n   * Optionally, a user may pass a `config` parameter containing a map of\n   * options. Supported options are:\n   *\n   * `record` (boolean) - causes the profiler to record a CPU profile while\n   * it exercises the change detector. Example:\n   *\n   * ```\n   * ng.profiler.timeChangeDetection({record: true})\n   * ```\n   */\n  timeChangeDetection(config) {\n    const record = config && config['record'];\n    const profileName = 'Change Detection';\n    // Profiler is not available in Android browsers without dev tools opened\n    if (record && 'profile' in console && typeof console.profile === 'function') {\n      console.profile(profileName);\n    }\n    const start = performance.now();\n    let numTicks = 0;\n    while (numTicks < 5 || performance.now() - start < 500) {\n      this.appRef.tick();\n      numTicks++;\n    }\n    const end = performance.now();\n    if (record && 'profileEnd' in console && typeof console.profileEnd === 'function') {\n      console.profileEnd(profileName);\n    }\n    const msPerTick = (end - start) / numTicks;\n    console.log(`ran ${numTicks} change detection cycles`);\n    console.log(`${msPerTick.toFixed(2)} ms per check`);\n    return new ChangeDetectionPerfRecord(msPerTick, numTicks);\n  }\n}\nconst PROFILER_GLOBAL_NAME = 'profiler';\n/**\n * Enabled Angular debug tools that are accessible via your browser's\n * developer console.\n *\n * Usage:\n *\n * 1. Open developer console (e.g. in Chrome Ctrl + Shift + j)\n * 1. Type `ng.` (usually the console will show auto-complete suggestion)\n * 1. Try the change detection profiler `ng.profiler.timeChangeDetection()`\n *    then hit Enter.\n *\n * @publicApi\n */\nfunction enableDebugTools(ref) {\n  exportNgVar(PROFILER_GLOBAL_NAME, new AngularProfiler(ref));\n  return ref;\n}\n/**\n * Disables Angular tools.\n *\n * @publicApi\n */\nfunction disableDebugTools() {\n  exportNgVar(PROFILER_GLOBAL_NAME, null);\n}\n\n/**\n * Predicates for use with {@link DebugElement}'s query functions.\n *\n * @publicApi\n */\nclass By {\n  /**\n   * Match all nodes.\n   *\n   * @usageNotes\n   * ### Example\n   *\n   * {@example platform-browser/dom/debug/ts/by/by.ts region='by_all'}\n   */\n  static all() {\n    return () => true;\n  }\n  /**\n   * Match elements by the given CSS selector.\n   *\n   * @usageNotes\n   * ### Example\n   *\n   * {@example platform-browser/dom/debug/ts/by/by.ts region='by_css'}\n   */\n  static css(selector) {\n    return debugElement => {\n      return debugElement.nativeElement != null ? elementMatches(debugElement.nativeElement, selector) : false;\n    };\n  }\n  /**\n   * Match nodes that have the given directive present.\n   *\n   * @usageNotes\n   * ### Example\n   *\n   * {@example platform-browser/dom/debug/ts/by/by.ts region='by_directive'}\n   */\n  static directive(type) {\n    return debugNode => debugNode.providerTokens.indexOf(type) !== -1;\n  }\n}\nfunction elementMatches(n, selector) {\n  if (ɵgetDOM().isElementNode(n)) {\n    return n.matches && n.matches(selector) || n.msMatchesSelector && n.msMatchesSelector(selector) || n.webkitMatchesSelector && n.webkitMatchesSelector(selector);\n  }\n  return false;\n}\n\n/**\n * Supported HammerJS recognizer event names.\n */\nconst EVENT_NAMES = {\n  // pan\n  'pan': true,\n  'panstart': true,\n  'panmove': true,\n  'panend': true,\n  'pancancel': true,\n  'panleft': true,\n  'panright': true,\n  'panup': true,\n  'pandown': true,\n  // pinch\n  'pinch': true,\n  'pinchstart': true,\n  'pinchmove': true,\n  'pinchend': true,\n  'pinchcancel': true,\n  'pinchin': true,\n  'pinchout': true,\n  // press\n  'press': true,\n  'pressup': true,\n  // rotate\n  'rotate': true,\n  'rotatestart': true,\n  'rotatemove': true,\n  'rotateend': true,\n  'rotatecancel': true,\n  // swipe\n  'swipe': true,\n  'swipeleft': true,\n  'swiperight': true,\n  'swipeup': true,\n  'swipedown': true,\n  // tap\n  'tap': true,\n  'doubletap': true\n};\n/**\n * DI token for providing [HammerJS](https://hammerjs.github.io/) support to Angular.\n * @see {@link HammerGestureConfig}\n *\n * @ngModule HammerModule\n * @publicApi\n */\nconst HAMMER_GESTURE_CONFIG = /*#__PURE__*/new InjectionToken('HammerGestureConfig');\n/**\n * Injection token used to provide a {@link HammerLoader} to Angular.\n *\n * @publicApi\n */\nconst HAMMER_LOADER = /*#__PURE__*/new InjectionToken('HammerLoader');\n/**\n * An injectable [HammerJS Manager](https://hammerjs.github.io/api/#hammermanager)\n * for gesture recognition. Configures specific event recognition.\n * @publicApi\n */\nlet HammerGestureConfig = /*#__PURE__*/(() => {\n  class HammerGestureConfig {\n    constructor() {\n      /**\n       * A set of supported event names for gestures to be used in Angular.\n       * Angular supports all built-in recognizers, as listed in\n       * [HammerJS documentation](https://hammerjs.github.io/).\n       */\n      this.events = [];\n      /**\n       * Maps gesture event names to a set of configuration options\n       * that specify overrides to the default values for specific properties.\n       *\n       * The key is a supported event name to be configured,\n       * and the options object contains a set of properties, with override values\n       * to be applied to the named recognizer event.\n       * For example, to disable recognition of the rotate event, specify\n       *  `{\"rotate\": {\"enable\": false}}`.\n       *\n       * Properties that are not present take the HammerJS default values.\n       * For information about which properties are supported for which events,\n       * and their allowed and default values, see\n       * [HammerJS documentation](https://hammerjs.github.io/).\n       *\n       */\n      this.overrides = {};\n    }\n    /**\n     * Creates a [HammerJS Manager](https://hammerjs.github.io/api/#hammermanager)\n     * and attaches it to a given HTML element.\n     * @param element The element that will recognize gestures.\n     * @returns A HammerJS event-manager object.\n     */\n    buildHammer(element) {\n      const mc = new Hammer(element, this.options);\n      mc.get('pinch').set({\n        enable: true\n      });\n      mc.get('rotate').set({\n        enable: true\n      });\n      for (const eventName in this.overrides) {\n        mc.get(eventName).set(this.overrides[eventName]);\n      }\n      return mc;\n    }\n    static {\n      this.ɵfac = function HammerGestureConfig_Factory(t) {\n        return new (t || HammerGestureConfig)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: HammerGestureConfig,\n        factory: HammerGestureConfig.ɵfac\n      });\n    }\n  }\n  return HammerGestureConfig;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Event plugin that adds Hammer support to an application.\n *\n * @ngModule HammerModule\n */\nlet HammerGesturesPlugin = /*#__PURE__*/(() => {\n  class HammerGesturesPlugin extends EventManagerPlugin {\n    constructor(doc, _config, console, loader) {\n      super(doc);\n      this._config = _config;\n      this.console = console;\n      this.loader = loader;\n      this._loaderPromise = null;\n    }\n    supports(eventName) {\n      if (!EVENT_NAMES.hasOwnProperty(eventName.toLowerCase()) && !this.isCustomEvent(eventName)) {\n        return false;\n      }\n      if (!window.Hammer && !this.loader) {\n        if (typeof ngDevMode === 'undefined' || ngDevMode) {\n          this.console.warn(`The \"${eventName}\" event cannot be bound because Hammer.JS is not ` + `loaded and no custom loader has been specified.`);\n        }\n        return false;\n      }\n      return true;\n    }\n    addEventListener(element, eventName, handler) {\n      const zone = this.manager.getZone();\n      eventName = eventName.toLowerCase();\n      // If Hammer is not present but a loader is specified, we defer adding the event listener\n      // until Hammer is loaded.\n      if (!window.Hammer && this.loader) {\n        this._loaderPromise = this._loaderPromise || zone.runOutsideAngular(() => this.loader());\n        // This `addEventListener` method returns a function to remove the added listener.\n        // Until Hammer is loaded, the returned function needs to *cancel* the registration rather\n        // than remove anything.\n        let cancelRegistration = false;\n        let deregister = () => {\n          cancelRegistration = true;\n        };\n        zone.runOutsideAngular(() => this._loaderPromise.then(() => {\n          // If Hammer isn't actually loaded when the custom loader resolves, give up.\n          if (!window.Hammer) {\n            if (typeof ngDevMode === 'undefined' || ngDevMode) {\n              this.console.warn(`The custom HAMMER_LOADER completed, but Hammer.JS is not present.`);\n            }\n            deregister = () => {};\n            return;\n          }\n          if (!cancelRegistration) {\n            // Now that Hammer is loaded and the listener is being loaded for real,\n            // the deregistration function changes from canceling registration to\n            // removal.\n            deregister = this.addEventListener(element, eventName, handler);\n          }\n        }).catch(() => {\n          if (typeof ngDevMode === 'undefined' || ngDevMode) {\n            this.console.warn(`The \"${eventName}\" event cannot be bound because the custom ` + `Hammer.JS loader failed.`);\n          }\n          deregister = () => {};\n        }));\n        // Return a function that *executes* `deregister` (and not `deregister` itself) so that we\n        // can change the behavior of `deregister` once the listener is added. Using a closure in\n        // this way allows us to avoid any additional data structures to track listener removal.\n        return () => {\n          deregister();\n        };\n      }\n      return zone.runOutsideAngular(() => {\n        // Creating the manager bind events, must be done outside of angular\n        const mc = this._config.buildHammer(element);\n        const callback = function (eventObj) {\n          zone.runGuarded(function () {\n            handler(eventObj);\n          });\n        };\n        mc.on(eventName, callback);\n        return () => {\n          mc.off(eventName, callback);\n          // destroy mc to prevent memory leak\n          if (typeof mc.destroy === 'function') {\n            mc.destroy();\n          }\n        };\n      });\n    }\n    isCustomEvent(eventName) {\n      return this._config.events.indexOf(eventName) > -1;\n    }\n    static {\n      this.ɵfac = function HammerGesturesPlugin_Factory(t) {\n        return new (t || HammerGesturesPlugin)(i0.ɵɵinject(DOCUMENT), i0.ɵɵinject(HAMMER_GESTURE_CONFIG), i0.ɵɵinject(i0.ɵConsole), i0.ɵɵinject(HAMMER_LOADER, 8));\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: HammerGesturesPlugin,\n        factory: HammerGesturesPlugin.ɵfac\n      });\n    }\n  }\n  return HammerGesturesPlugin;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Adds support for HammerJS.\n *\n * Import this module at the root of your application so that Angular can work with\n * HammerJS to detect gesture events.\n *\n * Note that applications still need to include the HammerJS script itself. This module\n * simply sets up the coordination layer between HammerJS and Angular's `EventManager`.\n *\n * @publicApi\n */\nlet HammerModule = /*#__PURE__*/(() => {\n  class HammerModule {\n    static {\n      this.ɵfac = function HammerModule_Factory(t) {\n        return new (t || HammerModule)();\n      };\n    }\n    static {\n      this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n        type: HammerModule\n      });\n    }\n    static {\n      this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n        providers: [{\n          provide: EVENT_MANAGER_PLUGINS,\n          useClass: HammerGesturesPlugin,\n          multi: true,\n          deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, ɵConsole, [new Optional(), HAMMER_LOADER]]\n        }, {\n          provide: HAMMER_GESTURE_CONFIG,\n          useClass: HammerGestureConfig,\n          deps: []\n        }]\n      });\n    }\n  }\n  return HammerModule;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * DomSanitizer helps preventing Cross Site Scripting Security bugs (XSS) by sanitizing\n * values to be safe to use in the different DOM contexts.\n *\n * For example, when binding a URL in an `<a [href]=\"someValue\">` hyperlink, `someValue` will be\n * sanitized so that an attacker cannot inject e.g. a `javascript:` URL that would execute code on\n * the website.\n *\n * In specific situations, it might be necessary to disable sanitization, for example if the\n * application genuinely needs to produce a `javascript:` style link with a dynamic value in it.\n * Users can bypass security by constructing a value with one of the `bypassSecurityTrust...`\n * methods, and then binding to that value from the template.\n *\n * These situations should be very rare, and extraordinary care must be taken to avoid creating a\n * Cross Site Scripting (XSS) security bug!\n *\n * When using `bypassSecurityTrust...`, make sure to call the method as early as possible and as\n * close as possible to the source of the value, to make it easy to verify no security bug is\n * created by its use.\n *\n * It is not required (and not recommended) to bypass security if the value is safe, e.g. a URL that\n * does not start with a suspicious protocol, or an HTML snippet that does not contain dangerous\n * code. The sanitizer leaves safe values intact.\n *\n * @security Calling any of the `bypassSecurityTrust...` APIs disables Angular's built-in\n * sanitization for the value passed in. Carefully check and audit all values and code paths going\n * into this call. Make sure any user data is appropriately escaped for this security context.\n * For more detail, see the [Security Guide](https://g.co/ng/security).\n *\n * @publicApi\n */\nlet DomSanitizer = /*#__PURE__*/(() => {\n  class DomSanitizer {\n    static {\n      this.ɵfac = function DomSanitizer_Factory(t) {\n        return new (t || DomSanitizer)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: DomSanitizer,\n        factory: function DomSanitizer_Factory(t) {\n          let r = null;\n          if (t) {\n            r = new (t || DomSanitizer)();\n          } else {\n            r = i0.ɵɵinject(DomSanitizerImpl);\n          }\n          return r;\n        },\n        providedIn: 'root'\n      });\n    }\n  }\n  return DomSanitizer;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet DomSanitizerImpl = /*#__PURE__*/(() => {\n  class DomSanitizerImpl extends DomSanitizer {\n    constructor(_doc) {\n      super();\n      this._doc = _doc;\n    }\n    sanitize(ctx, value) {\n      if (value == null) return null;\n      switch (ctx) {\n        case SecurityContext.NONE:\n          return value;\n        case SecurityContext.HTML:\n          if (ɵallowSanitizationBypassAndThrow(value, \"HTML\" /* BypassType.Html */)) {\n            return ɵunwrapSafeValue(value);\n          }\n          return ɵ_sanitizeHtml(this._doc, String(value)).toString();\n        case SecurityContext.STYLE:\n          if (ɵallowSanitizationBypassAndThrow(value, \"Style\" /* BypassType.Style */)) {\n            return ɵunwrapSafeValue(value);\n          }\n          return value;\n        case SecurityContext.SCRIPT:\n          if (ɵallowSanitizationBypassAndThrow(value, \"Script\" /* BypassType.Script */)) {\n            return ɵunwrapSafeValue(value);\n          }\n          throw new ɵRuntimeError(5200 /* RuntimeErrorCode.SANITIZATION_UNSAFE_SCRIPT */, (typeof ngDevMode === 'undefined' || ngDevMode) && 'unsafe value used in a script context');\n        case SecurityContext.URL:\n          if (ɵallowSanitizationBypassAndThrow(value, \"URL\" /* BypassType.Url */)) {\n            return ɵunwrapSafeValue(value);\n          }\n          return ɵ_sanitizeUrl(String(value));\n        case SecurityContext.RESOURCE_URL:\n          if (ɵallowSanitizationBypassAndThrow(value, \"ResourceURL\" /* BypassType.ResourceUrl */)) {\n            return ɵunwrapSafeValue(value);\n          }\n          throw new ɵRuntimeError(5201 /* RuntimeErrorCode.SANITIZATION_UNSAFE_RESOURCE_URL */, (typeof ngDevMode === 'undefined' || ngDevMode) && `unsafe value used in a resource URL context (see ${ɵXSS_SECURITY_URL})`);\n        default:\n          throw new ɵRuntimeError(5202 /* RuntimeErrorCode.SANITIZATION_UNEXPECTED_CTX */, (typeof ngDevMode === 'undefined' || ngDevMode) && `Unexpected SecurityContext ${ctx} (see ${ɵXSS_SECURITY_URL})`);\n      }\n    }\n    bypassSecurityTrustHtml(value) {\n      return ɵbypassSanitizationTrustHtml(value);\n    }\n    bypassSecurityTrustStyle(value) {\n      return ɵbypassSanitizationTrustStyle(value);\n    }\n    bypassSecurityTrustScript(value) {\n      return ɵbypassSanitizationTrustScript(value);\n    }\n    bypassSecurityTrustUrl(value) {\n      return ɵbypassSanitizationTrustUrl(value);\n    }\n    bypassSecurityTrustResourceUrl(value) {\n      return ɵbypassSanitizationTrustResourceUrl(value);\n    }\n    static {\n      this.ɵfac = function DomSanitizerImpl_Factory(t) {\n        return new (t || DomSanitizerImpl)(i0.ɵɵinject(DOCUMENT));\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: DomSanitizerImpl,\n        factory: DomSanitizerImpl.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return DomSanitizerImpl;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * The list of features as an enum to uniquely type each `HydrationFeature`.\n * @see {@link HydrationFeature}\n *\n * @publicApi\n */\nvar HydrationFeatureKind = /*#__PURE__*/function (HydrationFeatureKind) {\n  HydrationFeatureKind[HydrationFeatureKind[\"NoHttpTransferCache\"] = 0] = \"NoHttpTransferCache\";\n  HydrationFeatureKind[HydrationFeatureKind[\"HttpTransferCacheOptions\"] = 1] = \"HttpTransferCacheOptions\";\n  return HydrationFeatureKind;\n}(HydrationFeatureKind || {});\n/**\n * Helper function to create an object that represents a Hydration feature.\n */\nfunction hydrationFeature(ɵkind, ɵproviders = [], ɵoptions = {}) {\n  return {\n    ɵkind,\n    ɵproviders\n  };\n}\n/**\n * Disables HTTP transfer cache. Effectively causes HTTP requests to be performed twice: once on the\n * server and other one on the browser.\n *\n * @publicApi\n */\nfunction withNoHttpTransferCache() {\n  // This feature has no providers and acts as a flag that turns off\n  // HTTP transfer cache (which otherwise is turned on by default).\n  return hydrationFeature(HydrationFeatureKind.NoHttpTransferCache);\n}\n/**\n * The function accepts a an object, which allows to configure cache parameters,\n * such as which headers should be included (no headers are included by default),\n * wether POST requests should be cached or a callback function to determine if a\n * particular request should be cached.\n *\n * @publicApi\n */\nfunction withHttpTransferCacheOptions(options) {\n  // This feature has no providers and acts as a flag to pass options to the HTTP transfer cache.\n  return hydrationFeature(HydrationFeatureKind.HttpTransferCacheOptions, ɵwithHttpTransferCache(options));\n}\n/**\n * Returns an `ENVIRONMENT_INITIALIZER` token setup with a function\n * that verifies whether compatible ZoneJS was used in an application\n * and logs a warning in a console if it's not the case.\n */\nfunction provideZoneJsCompatibilityDetector() {\n  return [{\n    provide: ENVIRONMENT_INITIALIZER,\n    useValue: () => {\n      const ngZone = inject(NgZone);\n      // Checking `ngZone instanceof NgZone` would be insufficient here,\n      // because custom implementations might use NgZone as a base class.\n      if (ngZone.constructor !== NgZone) {\n        const console = inject(ɵConsole);\n        const message = ɵformatRuntimeError(-5000 /* RuntimeErrorCode.UNSUPPORTED_ZONEJS_INSTANCE */, 'Angular detected that hydration was enabled for an application ' + 'that uses a custom or a noop Zone.js implementation. ' + 'This is not yet a fully supported configuration.');\n        // tslint:disable-next-line:no-console\n        console.warn(message);\n      }\n    },\n    multi: true\n  }];\n}\n/**\n * Sets up providers necessary to enable hydration functionality for the application.\n *\n * By default, the function enables the recommended set of features for the optimal\n * performance for most of the applications. It includes the following features:\n *\n * * Reconciling DOM hydration. Learn more about it [here](guide/hydration).\n * * [`HttpClient`](api/common/http/HttpClient) response caching while running on the server and\n * transferring this cache to the client to avoid extra HTTP requests. Learn more about data caching\n * [here](/guide/ssr#caching-data-when-using-httpclient).\n *\n * These functions allow you to disable some of the default features or configure features\n * * {@link withNoHttpTransferCache} to disable HTTP transfer cache\n * * {@link withHttpTransferCacheOptions} to configure some HTTP transfer cache options\n *\n * @usageNotes\n *\n * Basic example of how you can enable hydration in your application when\n * `bootstrapApplication` function is used:\n * ```\n * bootstrapApplication(AppComponent, {\n *   providers: [provideClientHydration()]\n * });\n * ```\n *\n * Alternatively if you are using NgModules, you would add `provideClientHydration`\n * to your root app module's provider list.\n * ```\n * @NgModule({\n *   declarations: [RootCmp],\n *   bootstrap: [RootCmp],\n *   providers: [provideClientHydration()],\n * })\n * export class AppModule {}\n * ```\n *\n * @see {@link withNoHttpTransferCache}\n * @see {@link withHttpTransferCacheOptions}\n *\n * @param features Optional features to configure additional router behaviors.\n * @returns A set of providers to enable hydration.\n *\n * @publicApi\n */\nfunction provideClientHydration(...features) {\n  const providers = [];\n  const featuresKind = new Set();\n  const hasHttpTransferCacheOptions = featuresKind.has(HydrationFeatureKind.HttpTransferCacheOptions);\n  for (const {\n    ɵproviders,\n    ɵkind\n  } of features) {\n    featuresKind.add(ɵkind);\n    if (ɵproviders.length) {\n      providers.push(ɵproviders);\n    }\n  }\n  if (typeof ngDevMode !== 'undefined' && ngDevMode && featuresKind.has(HydrationFeatureKind.NoHttpTransferCache) && hasHttpTransferCacheOptions) {\n    // TODO: Make this a runtime error\n    throw new Error('Configuration error: found both withHttpTransferCacheOptions() and withNoHttpTransferCache() in the same call to provideClientHydration(), which is a contradiction.');\n  }\n  return makeEnvironmentProviders([typeof ngDevMode !== 'undefined' && ngDevMode ? provideZoneJsCompatibilityDetector() : [], ɵwithDomHydration(), featuresKind.has(HydrationFeatureKind.NoHttpTransferCache) || hasHttpTransferCacheOptions ? [] : ɵwithHttpTransferCache({}), providers]);\n}\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the platform-browser package.\n */\n/**\n * @publicApi\n */\nconst VERSION = /*#__PURE__*/new Version('17.3.11');\n\n// Re-export TransferState to the public API of the `platform-browser` for backwards-compatibility.\n/**\n * Create a `StateKey<T>` that can be used to store value of type T with `TransferState`.\n *\n * Example:\n *\n * ```\n * const COUNTER_KEY = makeStateKey<number>('counter');\n * let value = 10;\n *\n * transferState.set(COUNTER_KEY, value);\n * ```\n *\n * @publicApi\n * @deprecated `makeStateKey` has moved, please import `makeStateKey` from `@angular/core` instead.\n */\n// The below is a workaround to add a deprecated message.\nconst makeStateKey = makeStateKey$1;\n// The below type is needed for G3 due to JSC_CONFORMANCE_VIOLATION.\nconst TransferState = TransferState$1;\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n// This file only reexports content of the `src` folder. Keep it that way.\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BrowserModule, By, DomSanitizer, EVENT_MANAGER_PLUGINS, EventManager, EventManagerPlugin, HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerModule, HydrationFeatureKind, Meta, REMOVE_STYLES_ON_COMPONENT_DESTROY, Title, TransferState, VERSION, bootstrapApplication, createApplication, disableDebugTools, enableDebugTools, makeStateKey, platformBrowser, provideClientHydration, provideProtractorTestingSupport, withHttpTransferCacheOptions, withNoHttpTransferCache, BrowserDomAdapter as ɵBrowserDomAdapter, BrowserGetTestability as ɵBrowserGetTestability, DomEventsPlugin as ɵDomEventsPlugin, DomRendererFactory2 as ɵDomRendererFactory2, DomSanitizerImpl as ɵDomSanitizerImpl, HammerGesturesPlugin as ɵHammerGesturesPlugin, INTERNAL_BROWSER_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS, KeyEventsPlugin as ɵKeyEventsPlugin, SharedStylesHost as ɵSharedStylesHost, initDomAdapter as ɵinitDomAdapter };\n","/**\n * @license Angular v17.3.11\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { ɵisPromise, ɵRuntimeError, Injectable, EventEmitter, inject, ViewContainerRef, ChangeDetectorRef, EnvironmentInjector, Directive, Input, Output, InjectionToken, reflectComponentType, Component, createEnvironmentInjector, ɵisNgModule, isStandalone, ɵisInjectable, runInInjectionContext, Compiler, NgModuleFactory, NgZone, afterNextRender, ɵConsole, ɵPendingTasks, ɵɵsanitizeUrlOrResourceUrl, booleanAttribute, Attribute, HostBinding, HostListener, Optional, ContentChildren, makeEnvironmentProviders, APP_BOOTSTRAP_LISTENER, ENVIRONMENT_INITIALIZER, Injector, ApplicationRef, InjectFlags, APP_INITIALIZER, SkipSelf, NgModule, Inject, Version } from '@angular/core';\nimport { isObservable, from, of, BehaviorSubject, combineLatest, EmptyError, concat, defer, pipe, throwError, EMPTY, ConnectableObservable, Subject, Subscription } from 'rxjs';\nimport * as i3 from '@angular/common';\nimport { DOCUMENT, Location, ViewportScroller, LOCATION_INITIALIZED, LocationStrategy, HashLocationStrategy, PathLocationStrategy } from '@angular/common';\nimport { map, switchMap, take, startWith, filter, mergeMap, first, concatMap, tap, catchError, scan, defaultIfEmpty, last as last$1, takeLast, mapTo, finalize, refCount, takeUntil, mergeAll } from 'rxjs/operators';\nimport * as i1 from '@angular/platform-browser';\n\n/**\n * The primary routing outlet.\n *\n * @publicApi\n */\nconst PRIMARY_OUTLET = 'primary';\n/**\n * A private symbol used to store the value of `Route.title` inside the `Route.data` if it is a\n * static string or `Route.resolve` if anything else. This allows us to reuse the existing route\n * data/resolvers to support the title feature without new instrumentation in the `Router` pipeline.\n */\nconst RouteTitleKey = /* @__PURE__ */Symbol('RouteTitle');\nclass ParamsAsMap {\n  constructor(params) {\n    this.params = params || {};\n  }\n  has(name) {\n    return Object.prototype.hasOwnProperty.call(this.params, name);\n  }\n  get(name) {\n    if (this.has(name)) {\n      const v = this.params[name];\n      return Array.isArray(v) ? v[0] : v;\n    }\n    return null;\n  }\n  getAll(name) {\n    if (this.has(name)) {\n      const v = this.params[name];\n      return Array.isArray(v) ? v : [v];\n    }\n    return [];\n  }\n  get keys() {\n    return Object.keys(this.params);\n  }\n}\n/**\n * Converts a `Params` instance to a `ParamMap`.\n * @param params The instance to convert.\n * @returns The new map instance.\n *\n * @publicApi\n */\nfunction convertToParamMap(params) {\n  return new ParamsAsMap(params);\n}\n/**\n * Matches the route configuration (`route`) against the actual URL (`segments`).\n *\n * When no matcher is defined on a `Route`, this is the matcher used by the Router by default.\n *\n * @param segments The remaining unmatched segments in the current navigation\n * @param segmentGroup The current segment group being matched\n * @param route The `Route` to match against.\n *\n * @see {@link UrlMatchResult}\n * @see {@link Route}\n *\n * @returns The resulting match information or `null` if the `route` should not match.\n * @publicApi\n */\nfunction defaultUrlMatcher(segments, segmentGroup, route) {\n  const parts = route.path.split('/');\n  if (parts.length > segments.length) {\n    // The actual URL is shorter than the config, no match\n    return null;\n  }\n  if (route.pathMatch === 'full' && (segmentGroup.hasChildren() || parts.length < segments.length)) {\n    // The config is longer than the actual URL but we are looking for a full match, return null\n    return null;\n  }\n  const posParams = {};\n  // Check each config part against the actual URL\n  for (let index = 0; index < parts.length; index++) {\n    const part = parts[index];\n    const segment = segments[index];\n    const isParameter = part.startsWith(':');\n    if (isParameter) {\n      posParams[part.substring(1)] = segment;\n    } else if (part !== segment.path) {\n      // The actual URL part does not match the config, no match\n      return null;\n    }\n  }\n  return {\n    consumed: segments.slice(0, parts.length),\n    posParams\n  };\n}\nfunction shallowEqualArrays(a, b) {\n  if (a.length !== b.length) return false;\n  for (let i = 0; i < a.length; ++i) {\n    if (!shallowEqual(a[i], b[i])) return false;\n  }\n  return true;\n}\nfunction shallowEqual(a, b) {\n  // While `undefined` should never be possible, it would sometimes be the case in IE 11\n  // and pre-chromium Edge. The check below accounts for this edge case.\n  const k1 = a ? getDataKeys(a) : undefined;\n  const k2 = b ? getDataKeys(b) : undefined;\n  if (!k1 || !k2 || k1.length != k2.length) {\n    return false;\n  }\n  let key;\n  for (let i = 0; i < k1.length; i++) {\n    key = k1[i];\n    if (!equalArraysOrString(a[key], b[key])) {\n      return false;\n    }\n  }\n  return true;\n}\n/**\n * Gets the keys of an object, including `symbol` keys.\n */\nfunction getDataKeys(obj) {\n  return [...Object.keys(obj), ...Object.getOwnPropertySymbols(obj)];\n}\n/**\n * Test equality for arrays of strings or a string.\n */\nfunction equalArraysOrString(a, b) {\n  if (Array.isArray(a) && Array.isArray(b)) {\n    if (a.length !== b.length) return false;\n    const aSorted = [...a].sort();\n    const bSorted = [...b].sort();\n    return aSorted.every((val, index) => bSorted[index] === val);\n  } else {\n    return a === b;\n  }\n}\n/**\n * Return the last element of an array.\n */\nfunction last(a) {\n  return a.length > 0 ? a[a.length - 1] : null;\n}\nfunction wrapIntoObservable(value) {\n  if (isObservable(value)) {\n    return value;\n  }\n  if (ɵisPromise(value)) {\n    // Use `Promise.resolve()` to wrap promise-like instances.\n    // Required ie when a Resolver returns a AngularJS `$q` promise to correctly trigger the\n    // change detection.\n    return from(Promise.resolve(value));\n  }\n  return of(value);\n}\nconst pathCompareMap = {\n  'exact': equalSegmentGroups,\n  'subset': containsSegmentGroup\n};\nconst paramCompareMap = {\n  'exact': equalParams,\n  'subset': containsParams,\n  'ignored': () => true\n};\nfunction containsTree(container, containee, options) {\n  return pathCompareMap[options.paths](container.root, containee.root, options.matrixParams) && paramCompareMap[options.queryParams](container.queryParams, containee.queryParams) && !(options.fragment === 'exact' && container.fragment !== containee.fragment);\n}\nfunction equalParams(container, containee) {\n  // TODO: This does not handle array params correctly.\n  return shallowEqual(container, containee);\n}\nfunction equalSegmentGroups(container, containee, matrixParams) {\n  if (!equalPath(container.segments, containee.segments)) return false;\n  if (!matrixParamsMatch(container.segments, containee.segments, matrixParams)) {\n    return false;\n  }\n  if (container.numberOfChildren !== containee.numberOfChildren) return false;\n  for (const c in containee.children) {\n    if (!container.children[c]) return false;\n    if (!equalSegmentGroups(container.children[c], containee.children[c], matrixParams)) return false;\n  }\n  return true;\n}\nfunction containsParams(container, containee) {\n  return Object.keys(containee).length <= Object.keys(container).length && Object.keys(containee).every(key => equalArraysOrString(container[key], containee[key]));\n}\nfunction containsSegmentGroup(container, containee, matrixParams) {\n  return containsSegmentGroupHelper(container, containee, containee.segments, matrixParams);\n}\nfunction containsSegmentGroupHelper(container, containee, containeePaths, matrixParams) {\n  if (container.segments.length > containeePaths.length) {\n    const current = container.segments.slice(0, containeePaths.length);\n    if (!equalPath(current, containeePaths)) return false;\n    if (containee.hasChildren()) return false;\n    if (!matrixParamsMatch(current, containeePaths, matrixParams)) return false;\n    return true;\n  } else if (container.segments.length === containeePaths.length) {\n    if (!equalPath(container.segments, containeePaths)) return false;\n    if (!matrixParamsMatch(container.segments, containeePaths, matrixParams)) return false;\n    for (const c in containee.children) {\n      if (!container.children[c]) return false;\n      if (!containsSegmentGroup(container.children[c], containee.children[c], matrixParams)) {\n        return false;\n      }\n    }\n    return true;\n  } else {\n    const current = containeePaths.slice(0, container.segments.length);\n    const next = containeePaths.slice(container.segments.length);\n    if (!equalPath(container.segments, current)) return false;\n    if (!matrixParamsMatch(container.segments, current, matrixParams)) return false;\n    if (!container.children[PRIMARY_OUTLET]) return false;\n    return containsSegmentGroupHelper(container.children[PRIMARY_OUTLET], containee, next, matrixParams);\n  }\n}\nfunction matrixParamsMatch(containerPaths, containeePaths, options) {\n  return containeePaths.every((containeeSegment, i) => {\n    return paramCompareMap[options](containerPaths[i].parameters, containeeSegment.parameters);\n  });\n}\n/**\n * @description\n *\n * Represents the parsed URL.\n *\n * Since a router state is a tree, and the URL is nothing but a serialized state, the URL is a\n * serialized tree.\n * UrlTree is a data structure that provides a lot of affordances in dealing with URLs\n *\n * @usageNotes\n * ### Example\n *\n * ```\n * @Component({templateUrl:'template.html'})\n * class MyComponent {\n *   constructor(router: Router) {\n *     const tree: UrlTree =\n *       router.parseUrl('/team/33/(user/victor//support:help)?debug=true#fragment');\n *     const f = tree.fragment; // return 'fragment'\n *     const q = tree.queryParams; // returns {debug: 'true'}\n *     const g: UrlSegmentGroup = tree.root.children[PRIMARY_OUTLET];\n *     const s: UrlSegment[] = g.segments; // returns 2 segments 'team' and '33'\n *     g.children[PRIMARY_OUTLET].segments; // returns 2 segments 'user' and 'victor'\n *     g.children['support'].segments; // return 1 segment 'help'\n *   }\n * }\n * ```\n *\n * @publicApi\n */\nclass UrlTree {\n  constructor( /** The root segment group of the URL tree */\n  root = new UrlSegmentGroup([], {}), /** The query params of the URL */\n  queryParams = {}, /** The fragment of the URL */\n  fragment = null) {\n    this.root = root;\n    this.queryParams = queryParams;\n    this.fragment = fragment;\n    if (typeof ngDevMode === 'undefined' || ngDevMode) {\n      if (root.segments.length > 0) {\n        throw new ɵRuntimeError(4015 /* RuntimeErrorCode.INVALID_ROOT_URL_SEGMENT */, 'The root `UrlSegmentGroup` should not contain `segments`. ' + 'Instead, these segments belong in the `children` so they can be associated with a named outlet.');\n      }\n    }\n  }\n  get queryParamMap() {\n    this._queryParamMap ??= convertToParamMap(this.queryParams);\n    return this._queryParamMap;\n  }\n  /** @docsNotRequired */\n  toString() {\n    return DEFAULT_SERIALIZER.serialize(this);\n  }\n}\n/**\n * @description\n *\n * Represents the parsed URL segment group.\n *\n * See `UrlTree` for more information.\n *\n * @publicApi\n */\nclass UrlSegmentGroup {\n  constructor( /** The URL segments of this group. See `UrlSegment` for more information */\n  segments, /** The list of children of this group */\n  children) {\n    this.segments = segments;\n    this.children = children;\n    /** The parent node in the url tree */\n    this.parent = null;\n    Object.values(children).forEach(v => v.parent = this);\n  }\n  /** Whether the segment has child segments */\n  hasChildren() {\n    return this.numberOfChildren > 0;\n  }\n  /** Number of child segments */\n  get numberOfChildren() {\n    return Object.keys(this.children).length;\n  }\n  /** @docsNotRequired */\n  toString() {\n    return serializePaths(this);\n  }\n}\n/**\n * @description\n *\n * Represents a single URL segment.\n *\n * A UrlSegment is a part of a URL between the two slashes. It contains a path and the matrix\n * parameters associated with the segment.\n *\n * @usageNotes\n * ### Example\n *\n * ```\n * @Component({templateUrl:'template.html'})\n * class MyComponent {\n *   constructor(router: Router) {\n *     const tree: UrlTree = router.parseUrl('/team;id=33');\n *     const g: UrlSegmentGroup = tree.root.children[PRIMARY_OUTLET];\n *     const s: UrlSegment[] = g.segments;\n *     s[0].path; // returns 'team'\n *     s[0].parameters; // returns {id: 33}\n *   }\n * }\n * ```\n *\n * @publicApi\n */\nclass UrlSegment {\n  constructor( /** The path part of a URL segment */\n  path, /** The matrix parameters associated with a segment */\n  parameters) {\n    this.path = path;\n    this.parameters = parameters;\n  }\n  get parameterMap() {\n    this._parameterMap ??= convertToParamMap(this.parameters);\n    return this._parameterMap;\n  }\n  /** @docsNotRequired */\n  toString() {\n    return serializePath(this);\n  }\n}\nfunction equalSegments(as, bs) {\n  return equalPath(as, bs) && as.every((a, i) => shallowEqual(a.parameters, bs[i].parameters));\n}\nfunction equalPath(as, bs) {\n  if (as.length !== bs.length) return false;\n  return as.every((a, i) => a.path === bs[i].path);\n}\nfunction mapChildrenIntoArray(segment, fn) {\n  let res = [];\n  Object.entries(segment.children).forEach(([childOutlet, child]) => {\n    if (childOutlet === PRIMARY_OUTLET) {\n      res = res.concat(fn(child, childOutlet));\n    }\n  });\n  Object.entries(segment.children).forEach(([childOutlet, child]) => {\n    if (childOutlet !== PRIMARY_OUTLET) {\n      res = res.concat(fn(child, childOutlet));\n    }\n  });\n  return res;\n}\n/**\n * @description\n *\n * Serializes and deserializes a URL string into a URL tree.\n *\n * The url serialization strategy is customizable. You can\n * make all URLs case insensitive by providing a custom UrlSerializer.\n *\n * See `DefaultUrlSerializer` for an example of a URL serializer.\n *\n * @publicApi\n */\nlet UrlSerializer = /*#__PURE__*/(() => {\n  class UrlSerializer {\n    static {\n      this.ɵfac = function UrlSerializer_Factory(t) {\n        return new (t || UrlSerializer)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: UrlSerializer,\n        factory: () => (() => new DefaultUrlSerializer())(),\n        providedIn: 'root'\n      });\n    }\n  }\n  return UrlSerializer;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n *\n * A default implementation of the `UrlSerializer`.\n *\n * Example URLs:\n *\n * ```\n * /inbox/33(popup:compose)\n * /inbox/33;open=true/messages/44\n * ```\n *\n * DefaultUrlSerializer uses parentheses to serialize secondary segments (e.g., popup:compose), the\n * colon syntax to specify the outlet, and the ';parameter=value' syntax (e.g., open=true) to\n * specify route specific parameters.\n *\n * @publicApi\n */\nclass DefaultUrlSerializer {\n  /** Parses a url into a `UrlTree` */\n  parse(url) {\n    const p = new UrlParser(url);\n    return new UrlTree(p.parseRootSegment(), p.parseQueryParams(), p.parseFragment());\n  }\n  /** Converts a `UrlTree` into a url */\n  serialize(tree) {\n    const segment = `/${serializeSegment(tree.root, true)}`;\n    const query = serializeQueryParams(tree.queryParams);\n    const fragment = typeof tree.fragment === `string` ? `#${encodeUriFragment(tree.fragment)}` : '';\n    return `${segment}${query}${fragment}`;\n  }\n}\nconst DEFAULT_SERIALIZER = /*#__PURE__*/new DefaultUrlSerializer();\nfunction serializePaths(segment) {\n  return segment.segments.map(p => serializePath(p)).join('/');\n}\nfunction serializeSegment(segment, root) {\n  if (!segment.hasChildren()) {\n    return serializePaths(segment);\n  }\n  if (root) {\n    const primary = segment.children[PRIMARY_OUTLET] ? serializeSegment(segment.children[PRIMARY_OUTLET], false) : '';\n    const children = [];\n    Object.entries(segment.children).forEach(([k, v]) => {\n      if (k !== PRIMARY_OUTLET) {\n        children.push(`${k}:${serializeSegment(v, false)}`);\n      }\n    });\n    return children.length > 0 ? `${primary}(${children.join('//')})` : primary;\n  } else {\n    const children = mapChildrenIntoArray(segment, (v, k) => {\n      if (k === PRIMARY_OUTLET) {\n        return [serializeSegment(segment.children[PRIMARY_OUTLET], false)];\n      }\n      return [`${k}:${serializeSegment(v, false)}`];\n    });\n    // use no parenthesis if the only child is a primary outlet route\n    if (Object.keys(segment.children).length === 1 && segment.children[PRIMARY_OUTLET] != null) {\n      return `${serializePaths(segment)}/${children[0]}`;\n    }\n    return `${serializePaths(segment)}/(${children.join('//')})`;\n  }\n}\n/**\n * Encodes a URI string with the default encoding. This function will only ever be called from\n * `encodeUriQuery` or `encodeUriSegment` as it's the base set of encodings to be used. We need\n * a custom encoding because encodeURIComponent is too aggressive and encodes stuff that doesn't\n * have to be encoded per https://url.spec.whatwg.org.\n */\nfunction encodeUriString(s) {\n  return encodeURIComponent(s).replace(/%40/g, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',');\n}\n/**\n * This function should be used to encode both keys and values in a query string key/value. In\n * the following URL, you need to call encodeUriQuery on \"k\" and \"v\":\n *\n * http://www.site.org/html;mk=mv?k=v#f\n */\nfunction encodeUriQuery(s) {\n  return encodeUriString(s).replace(/%3B/gi, ';');\n}\n/**\n * This function should be used to encode a URL fragment. In the following URL, you need to call\n * encodeUriFragment on \"f\":\n *\n * http://www.site.org/html;mk=mv?k=v#f\n */\nfunction encodeUriFragment(s) {\n  return encodeURI(s);\n}\n/**\n * This function should be run on any URI segment as well as the key and value in a key/value\n * pair for matrix params. In the following URL, you need to call encodeUriSegment on \"html\",\n * \"mk\", and \"mv\":\n *\n * http://www.site.org/html;mk=mv?k=v#f\n */\nfunction encodeUriSegment(s) {\n  return encodeUriString(s).replace(/\\(/g, '%28').replace(/\\)/g, '%29').replace(/%26/gi, '&');\n}\nfunction decode(s) {\n  return decodeURIComponent(s);\n}\n// Query keys/values should have the \"+\" replaced first, as \"+\" in a query string is \" \".\n// decodeURIComponent function will not decode \"+\" as a space.\nfunction decodeQuery(s) {\n  return decode(s.replace(/\\+/g, '%20'));\n}\nfunction serializePath(path) {\n  return `${encodeUriSegment(path.path)}${serializeMatrixParams(path.parameters)}`;\n}\nfunction serializeMatrixParams(params) {\n  return Object.entries(params).map(([key, value]) => `;${encodeUriSegment(key)}=${encodeUriSegment(value)}`).join('');\n}\nfunction serializeQueryParams(params) {\n  const strParams = Object.entries(params).map(([name, value]) => {\n    return Array.isArray(value) ? value.map(v => `${encodeUriQuery(name)}=${encodeUriQuery(v)}`).join('&') : `${encodeUriQuery(name)}=${encodeUriQuery(value)}`;\n  }).filter(s => s);\n  return strParams.length ? `?${strParams.join('&')}` : '';\n}\nconst SEGMENT_RE = /^[^\\/()?;#]+/;\nfunction matchSegments(str) {\n  const match = str.match(SEGMENT_RE);\n  return match ? match[0] : '';\n}\nconst MATRIX_PARAM_SEGMENT_RE = /^[^\\/()?;=#]+/;\nfunction matchMatrixKeySegments(str) {\n  const match = str.match(MATRIX_PARAM_SEGMENT_RE);\n  return match ? match[0] : '';\n}\nconst QUERY_PARAM_RE = /^[^=?&#]+/;\n// Return the name of the query param at the start of the string or an empty string\nfunction matchQueryParams(str) {\n  const match = str.match(QUERY_PARAM_RE);\n  return match ? match[0] : '';\n}\nconst QUERY_PARAM_VALUE_RE = /^[^&#]+/;\n// Return the value of the query param at the start of the string or an empty string\nfunction matchUrlQueryParamValue(str) {\n  const match = str.match(QUERY_PARAM_VALUE_RE);\n  return match ? match[0] : '';\n}\nclass UrlParser {\n  constructor(url) {\n    this.url = url;\n    this.remaining = url;\n  }\n  parseRootSegment() {\n    this.consumeOptional('/');\n    if (this.remaining === '' || this.peekStartsWith('?') || this.peekStartsWith('#')) {\n      return new UrlSegmentGroup([], {});\n    }\n    // The root segment group never has segments\n    return new UrlSegmentGroup([], this.parseChildren());\n  }\n  parseQueryParams() {\n    const params = {};\n    if (this.consumeOptional('?')) {\n      do {\n        this.parseQueryParam(params);\n      } while (this.consumeOptional('&'));\n    }\n    return params;\n  }\n  parseFragment() {\n    return this.consumeOptional('#') ? decodeURIComponent(this.remaining) : null;\n  }\n  parseChildren() {\n    if (this.remaining === '') {\n      return {};\n    }\n    this.consumeOptional('/');\n    const segments = [];\n    if (!this.peekStartsWith('(')) {\n      segments.push(this.parseSegment());\n    }\n    while (this.peekStartsWith('/') && !this.peekStartsWith('//') && !this.peekStartsWith('/(')) {\n      this.capture('/');\n      segments.push(this.parseSegment());\n    }\n    let children = {};\n    if (this.peekStartsWith('/(')) {\n      this.capture('/');\n      children = this.parseParens(true);\n    }\n    let res = {};\n    if (this.peekStartsWith('(')) {\n      res = this.parseParens(false);\n    }\n    if (segments.length > 0 || Object.keys(children).length > 0) {\n      res[PRIMARY_OUTLET] = new UrlSegmentGroup(segments, children);\n    }\n    return res;\n  }\n  // parse a segment with its matrix parameters\n  // ie `name;k1=v1;k2`\n  parseSegment() {\n    const path = matchSegments(this.remaining);\n    if (path === '' && this.peekStartsWith(';')) {\n      throw new ɵRuntimeError(4009 /* RuntimeErrorCode.EMPTY_PATH_WITH_PARAMS */, (typeof ngDevMode === 'undefined' || ngDevMode) && `Empty path url segment cannot have parameters: '${this.remaining}'.`);\n    }\n    this.capture(path);\n    return new UrlSegment(decode(path), this.parseMatrixParams());\n  }\n  parseMatrixParams() {\n    const params = {};\n    while (this.consumeOptional(';')) {\n      this.parseParam(params);\n    }\n    return params;\n  }\n  parseParam(params) {\n    const key = matchMatrixKeySegments(this.remaining);\n    if (!key) {\n      return;\n    }\n    this.capture(key);\n    let value = '';\n    if (this.consumeOptional('=')) {\n      const valueMatch = matchSegments(this.remaining);\n      if (valueMatch) {\n        value = valueMatch;\n        this.capture(value);\n      }\n    }\n    params[decode(key)] = decode(value);\n  }\n  // Parse a single query parameter `name[=value]`\n  parseQueryParam(params) {\n    const key = matchQueryParams(this.remaining);\n    if (!key) {\n      return;\n    }\n    this.capture(key);\n    let value = '';\n    if (this.consumeOptional('=')) {\n      const valueMatch = matchUrlQueryParamValue(this.remaining);\n      if (valueMatch) {\n        value = valueMatch;\n        this.capture(value);\n      }\n    }\n    const decodedKey = decodeQuery(key);\n    const decodedVal = decodeQuery(value);\n    if (params.hasOwnProperty(decodedKey)) {\n      // Append to existing values\n      let currentVal = params[decodedKey];\n      if (!Array.isArray(currentVal)) {\n        currentVal = [currentVal];\n        params[decodedKey] = currentVal;\n      }\n      currentVal.push(decodedVal);\n    } else {\n      // Create a new value\n      params[decodedKey] = decodedVal;\n    }\n  }\n  // parse `(a/b//outlet_name:c/d)`\n  parseParens(allowPrimary) {\n    const segments = {};\n    this.capture('(');\n    while (!this.consumeOptional(')') && this.remaining.length > 0) {\n      const path = matchSegments(this.remaining);\n      const next = this.remaining[path.length];\n      // if is is not one of these characters, then the segment was unescaped\n      // or the group was not closed\n      if (next !== '/' && next !== ')' && next !== ';') {\n        throw new ɵRuntimeError(4010 /* RuntimeErrorCode.UNPARSABLE_URL */, (typeof ngDevMode === 'undefined' || ngDevMode) && `Cannot parse url '${this.url}'`);\n      }\n      let outletName = undefined;\n      if (path.indexOf(':') > -1) {\n        outletName = path.slice(0, path.indexOf(':'));\n        this.capture(outletName);\n        this.capture(':');\n      } else if (allowPrimary) {\n        outletName = PRIMARY_OUTLET;\n      }\n      const children = this.parseChildren();\n      segments[outletName] = Object.keys(children).length === 1 ? children[PRIMARY_OUTLET] : new UrlSegmentGroup([], children);\n      this.consumeOptional('//');\n    }\n    return segments;\n  }\n  peekStartsWith(str) {\n    return this.remaining.startsWith(str);\n  }\n  // Consumes the prefix when it is present and returns whether it has been consumed\n  consumeOptional(str) {\n    if (this.peekStartsWith(str)) {\n      this.remaining = this.remaining.substring(str.length);\n      return true;\n    }\n    return false;\n  }\n  capture(str) {\n    if (!this.consumeOptional(str)) {\n      throw new ɵRuntimeError(4011 /* RuntimeErrorCode.UNEXPECTED_VALUE_IN_URL */, (typeof ngDevMode === 'undefined' || ngDevMode) && `Expected \"${str}\".`);\n    }\n  }\n}\nfunction createRoot(rootCandidate) {\n  return rootCandidate.segments.length > 0 ? new UrlSegmentGroup([], {\n    [PRIMARY_OUTLET]: rootCandidate\n  }) : rootCandidate;\n}\n/**\n * Recursively\n * - merges primary segment children into their parents\n * - drops empty children (those which have no segments and no children themselves). This latter\n * prevents serializing a group into something like `/a(aux:)`, where `aux` is an empty child\n * segment.\n * - merges named outlets without a primary segment sibling into the children. This prevents\n * serializing a URL like `//(a:a)(b:b) instead of `/(a:a//b:b)` when the aux b route lives on the\n * root but the `a` route lives under an empty path primary route.\n */\nfunction squashSegmentGroup(segmentGroup) {\n  const newChildren = {};\n  for (const [childOutlet, child] of Object.entries(segmentGroup.children)) {\n    const childCandidate = squashSegmentGroup(child);\n    // moves named children in an empty path primary child into this group\n    if (childOutlet === PRIMARY_OUTLET && childCandidate.segments.length === 0 && childCandidate.hasChildren()) {\n      for (const [grandChildOutlet, grandChild] of Object.entries(childCandidate.children)) {\n        newChildren[grandChildOutlet] = grandChild;\n      }\n    } // don't add empty children\n    else if (childCandidate.segments.length > 0 || childCandidate.hasChildren()) {\n      newChildren[childOutlet] = childCandidate;\n    }\n  }\n  const s = new UrlSegmentGroup(segmentGroup.segments, newChildren);\n  return mergeTrivialChildren(s);\n}\n/**\n * When possible, merges the primary outlet child into the parent `UrlSegmentGroup`.\n *\n * When a segment group has only one child which is a primary outlet, merges that child into the\n * parent. That is, the child segment group's segments are merged into the `s` and the child's\n * children become the children of `s`. Think of this like a 'squash', merging the child segment\n * group into the parent.\n */\nfunction mergeTrivialChildren(s) {\n  if (s.numberOfChildren === 1 && s.children[PRIMARY_OUTLET]) {\n    const c = s.children[PRIMARY_OUTLET];\n    return new UrlSegmentGroup(s.segments.concat(c.segments), c.children);\n  }\n  return s;\n}\nfunction isUrlTree(v) {\n  return v instanceof UrlTree;\n}\n\n/**\n * Creates a `UrlTree` relative to an `ActivatedRouteSnapshot`.\n *\n * @publicApi\n *\n *\n * @param relativeTo The `ActivatedRouteSnapshot` to apply the commands to\n * @param commands An array of URL fragments with which to construct the new URL tree.\n * If the path is static, can be the literal URL string. For a dynamic path, pass an array of path\n * segments, followed by the parameters for each segment.\n * The fragments are applied to the one provided in the `relativeTo` parameter.\n * @param queryParams The query parameters for the `UrlTree`. `null` if the `UrlTree` does not have\n *     any query parameters.\n * @param fragment The fragment for the `UrlTree`. `null` if the `UrlTree` does not have a fragment.\n *\n * @usageNotes\n *\n * ```\n * // create /team/33/user/11\n * createUrlTreeFromSnapshot(snapshot, ['/team', 33, 'user', 11]);\n *\n * // create /team/33;expand=true/user/11\n * createUrlTreeFromSnapshot(snapshot, ['/team', 33, {expand: true}, 'user', 11]);\n *\n * // you can collapse static segments like this (this works only with the first passed-in value):\n * createUrlTreeFromSnapshot(snapshot, ['/team/33/user', userId]);\n *\n * // If the first segment can contain slashes, and you do not want the router to split it,\n * // you can do the following:\n * createUrlTreeFromSnapshot(snapshot, [{segmentPath: '/one/two'}]);\n *\n * // create /team/33/(user/11//right:chat)\n * createUrlTreeFromSnapshot(snapshot, ['/team', 33, {outlets: {primary: 'user/11', right:\n * 'chat'}}], null, null);\n *\n * // remove the right secondary node\n * createUrlTreeFromSnapshot(snapshot, ['/team', 33, {outlets: {primary: 'user/11', right: null}}]);\n *\n * // For the examples below, assume the current URL is for the `/team/33/user/11` and the\n * `ActivatedRouteSnapshot` points to `user/11`:\n *\n * // navigate to /team/33/user/11/details\n * createUrlTreeFromSnapshot(snapshot, ['details']);\n *\n * // navigate to /team/33/user/22\n * createUrlTreeFromSnapshot(snapshot, ['../22']);\n *\n * // navigate to /team/44/user/22\n * createUrlTreeFromSnapshot(snapshot, ['../../team/44/user/22']);\n * ```\n */\nfunction createUrlTreeFromSnapshot(relativeTo, commands, queryParams = null, fragment = null) {\n  const relativeToUrlSegmentGroup = createSegmentGroupFromRoute(relativeTo);\n  return createUrlTreeFromSegmentGroup(relativeToUrlSegmentGroup, commands, queryParams, fragment);\n}\nfunction createSegmentGroupFromRoute(route) {\n  let targetGroup;\n  function createSegmentGroupFromRouteRecursive(currentRoute) {\n    const childOutlets = {};\n    for (const childSnapshot of currentRoute.children) {\n      const root = createSegmentGroupFromRouteRecursive(childSnapshot);\n      childOutlets[childSnapshot.outlet] = root;\n    }\n    const segmentGroup = new UrlSegmentGroup(currentRoute.url, childOutlets);\n    if (currentRoute === route) {\n      targetGroup = segmentGroup;\n    }\n    return segmentGroup;\n  }\n  const rootCandidate = createSegmentGroupFromRouteRecursive(route.root);\n  const rootSegmentGroup = createRoot(rootCandidate);\n  return targetGroup ?? rootSegmentGroup;\n}\nfunction createUrlTreeFromSegmentGroup(relativeTo, commands, queryParams, fragment) {\n  let root = relativeTo;\n  while (root.parent) {\n    root = root.parent;\n  }\n  // There are no commands so the `UrlTree` goes to the same path as the one created from the\n  // `UrlSegmentGroup`. All we need to do is update the `queryParams` and `fragment` without\n  // applying any other logic.\n  if (commands.length === 0) {\n    return tree(root, root, root, queryParams, fragment);\n  }\n  const nav = computeNavigation(commands);\n  if (nav.toRoot()) {\n    return tree(root, root, new UrlSegmentGroup([], {}), queryParams, fragment);\n  }\n  const position = findStartingPositionForTargetGroup(nav, root, relativeTo);\n  const newSegmentGroup = position.processChildren ? updateSegmentGroupChildren(position.segmentGroup, position.index, nav.commands) : updateSegmentGroup(position.segmentGroup, position.index, nav.commands);\n  return tree(root, position.segmentGroup, newSegmentGroup, queryParams, fragment);\n}\nfunction isMatrixParams(command) {\n  return typeof command === 'object' && command != null && !command.outlets && !command.segmentPath;\n}\n/**\n * Determines if a given command has an `outlets` map. When we encounter a command\n * with an outlets k/v map, we need to apply each outlet individually to the existing segment.\n */\nfunction isCommandWithOutlets(command) {\n  return typeof command === 'object' && command != null && command.outlets;\n}\nfunction tree(oldRoot, oldSegmentGroup, newSegmentGroup, queryParams, fragment) {\n  let qp = {};\n  if (queryParams) {\n    Object.entries(queryParams).forEach(([name, value]) => {\n      qp[name] = Array.isArray(value) ? value.map(v => `${v}`) : `${value}`;\n    });\n  }\n  let rootCandidate;\n  if (oldRoot === oldSegmentGroup) {\n    rootCandidate = newSegmentGroup;\n  } else {\n    rootCandidate = replaceSegment(oldRoot, oldSegmentGroup, newSegmentGroup);\n  }\n  const newRoot = createRoot(squashSegmentGroup(rootCandidate));\n  return new UrlTree(newRoot, qp, fragment);\n}\n/**\n * Replaces the `oldSegment` which is located in some child of the `current` with the `newSegment`.\n * This also has the effect of creating new `UrlSegmentGroup` copies to update references. This\n * shouldn't be necessary but the fallback logic for an invalid ActivatedRoute in the creation uses\n * the Router's current url tree. If we don't create new segment groups, we end up modifying that\n * value.\n */\nfunction replaceSegment(current, oldSegment, newSegment) {\n  const children = {};\n  Object.entries(current.children).forEach(([outletName, c]) => {\n    if (c === oldSegment) {\n      children[outletName] = newSegment;\n    } else {\n      children[outletName] = replaceSegment(c, oldSegment, newSegment);\n    }\n  });\n  return new UrlSegmentGroup(current.segments, children);\n}\nclass Navigation {\n  constructor(isAbsolute, numberOfDoubleDots, commands) {\n    this.isAbsolute = isAbsolute;\n    this.numberOfDoubleDots = numberOfDoubleDots;\n    this.commands = commands;\n    if (isAbsolute && commands.length > 0 && isMatrixParams(commands[0])) {\n      throw new ɵRuntimeError(4003 /* RuntimeErrorCode.ROOT_SEGMENT_MATRIX_PARAMS */, (typeof ngDevMode === 'undefined' || ngDevMode) && 'Root segment cannot have matrix parameters');\n    }\n    const cmdWithOutlet = commands.find(isCommandWithOutlets);\n    if (cmdWithOutlet && cmdWithOutlet !== last(commands)) {\n      throw new ɵRuntimeError(4004 /* RuntimeErrorCode.MISPLACED_OUTLETS_COMMAND */, (typeof ngDevMode === 'undefined' || ngDevMode) && '{outlets:{}} has to be the last command');\n    }\n  }\n  toRoot() {\n    return this.isAbsolute && this.commands.length === 1 && this.commands[0] == '/';\n  }\n}\n/** Transforms commands to a normalized `Navigation` */\nfunction computeNavigation(commands) {\n  if (typeof commands[0] === 'string' && commands.length === 1 && commands[0] === '/') {\n    return new Navigation(true, 0, commands);\n  }\n  let numberOfDoubleDots = 0;\n  let isAbsolute = false;\n  const res = commands.reduce((res, cmd, cmdIdx) => {\n    if (typeof cmd === 'object' && cmd != null) {\n      if (cmd.outlets) {\n        const outlets = {};\n        Object.entries(cmd.outlets).forEach(([name, commands]) => {\n          outlets[name] = typeof commands === 'string' ? commands.split('/') : commands;\n        });\n        return [...res, {\n          outlets\n        }];\n      }\n      if (cmd.segmentPath) {\n        return [...res, cmd.segmentPath];\n      }\n    }\n    if (!(typeof cmd === 'string')) {\n      return [...res, cmd];\n    }\n    if (cmdIdx === 0) {\n      cmd.split('/').forEach((urlPart, partIndex) => {\n        if (partIndex == 0 && urlPart === '.') {\n          // skip './a'\n        } else if (partIndex == 0 && urlPart === '') {\n          //  '/a'\n          isAbsolute = true;\n        } else if (urlPart === '..') {\n          //  '../a'\n          numberOfDoubleDots++;\n        } else if (urlPart != '') {\n          res.push(urlPart);\n        }\n      });\n      return res;\n    }\n    return [...res, cmd];\n  }, []);\n  return new Navigation(isAbsolute, numberOfDoubleDots, res);\n}\nclass Position {\n  constructor(segmentGroup, processChildren, index) {\n    this.segmentGroup = segmentGroup;\n    this.processChildren = processChildren;\n    this.index = index;\n  }\n}\nfunction findStartingPositionForTargetGroup(nav, root, target) {\n  if (nav.isAbsolute) {\n    return new Position(root, true, 0);\n  }\n  if (!target) {\n    // `NaN` is used only to maintain backwards compatibility with incorrectly mocked\n    // `ActivatedRouteSnapshot` in tests. In prior versions of this code, the position here was\n    // determined based on an internal property that was rarely mocked, resulting in `NaN`. In\n    // reality, this code path should _never_ be touched since `target` is not allowed to be falsey.\n    return new Position(root, false, NaN);\n  }\n  if (target.parent === null) {\n    return new Position(target, true, 0);\n  }\n  const modifier = isMatrixParams(nav.commands[0]) ? 0 : 1;\n  const index = target.segments.length - 1 + modifier;\n  return createPositionApplyingDoubleDots(target, index, nav.numberOfDoubleDots);\n}\nfunction createPositionApplyingDoubleDots(group, index, numberOfDoubleDots) {\n  let g = group;\n  let ci = index;\n  let dd = numberOfDoubleDots;\n  while (dd > ci) {\n    dd -= ci;\n    g = g.parent;\n    if (!g) {\n      throw new ɵRuntimeError(4005 /* RuntimeErrorCode.INVALID_DOUBLE_DOTS */, (typeof ngDevMode === 'undefined' || ngDevMode) && \"Invalid number of '../'\");\n    }\n    ci = g.segments.length;\n  }\n  return new Position(g, false, ci - dd);\n}\nfunction getOutlets(commands) {\n  if (isCommandWithOutlets(commands[0])) {\n    return commands[0].outlets;\n  }\n  return {\n    [PRIMARY_OUTLET]: commands\n  };\n}\nfunction updateSegmentGroup(segmentGroup, startIndex, commands) {\n  segmentGroup ??= new UrlSegmentGroup([], {});\n  if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {\n    return updateSegmentGroupChildren(segmentGroup, startIndex, commands);\n  }\n  const m = prefixedWith(segmentGroup, startIndex, commands);\n  const slicedCommands = commands.slice(m.commandIndex);\n  if (m.match && m.pathIndex < segmentGroup.segments.length) {\n    const g = new UrlSegmentGroup(segmentGroup.segments.slice(0, m.pathIndex), {});\n    g.children[PRIMARY_OUTLET] = new UrlSegmentGroup(segmentGroup.segments.slice(m.pathIndex), segmentGroup.children);\n    return updateSegmentGroupChildren(g, 0, slicedCommands);\n  } else if (m.match && slicedCommands.length === 0) {\n    return new UrlSegmentGroup(segmentGroup.segments, {});\n  } else if (m.match && !segmentGroup.hasChildren()) {\n    return createNewSegmentGroup(segmentGroup, startIndex, commands);\n  } else if (m.match) {\n    return updateSegmentGroupChildren(segmentGroup, 0, slicedCommands);\n  } else {\n    return createNewSegmentGroup(segmentGroup, startIndex, commands);\n  }\n}\nfunction updateSegmentGroupChildren(segmentGroup, startIndex, commands) {\n  if (commands.length === 0) {\n    return new UrlSegmentGroup(segmentGroup.segments, {});\n  } else {\n    const outlets = getOutlets(commands);\n    const children = {};\n    // If the set of commands applies to anything other than the primary outlet and the child\n    // segment is an empty path primary segment on its own, we want to apply the commands to the\n    // empty child path rather than here. The outcome is that the empty primary child is effectively\n    // removed from the final output UrlTree. Imagine the following config:\n    //\n    // {path: '', children: [{path: '**', outlet: 'popup'}]}.\n    //\n    // Navigation to /(popup:a) will activate the child outlet correctly Given a follow-up\n    // navigation with commands\n    // ['/', {outlets: {'popup': 'b'}}], we _would not_ want to apply the outlet commands to the\n    // root segment because that would result in\n    // //(popup:a)(popup:b) since the outlet command got applied one level above where it appears in\n    // the `ActivatedRoute` rather than updating the existing one.\n    //\n    // Because empty paths do not appear in the URL segments and the fact that the segments used in\n    // the output `UrlTree` are squashed to eliminate these empty paths where possible\n    // https://github.com/angular/angular/blob/13f10de40e25c6900ca55bd83b36bd533dacfa9e/packages/router/src/url_tree.ts#L755\n    // it can be hard to determine what is the right thing to do when applying commands to a\n    // `UrlSegmentGroup` that is created from an \"unsquashed\"/expanded `ActivatedRoute` tree.\n    // This code effectively \"squashes\" empty path primary routes when they have no siblings on\n    // the same level of the tree.\n    if (Object.keys(outlets).some(o => o !== PRIMARY_OUTLET) && segmentGroup.children[PRIMARY_OUTLET] && segmentGroup.numberOfChildren === 1 && segmentGroup.children[PRIMARY_OUTLET].segments.length === 0) {\n      const childrenOfEmptyChild = updateSegmentGroupChildren(segmentGroup.children[PRIMARY_OUTLET], startIndex, commands);\n      return new UrlSegmentGroup(segmentGroup.segments, childrenOfEmptyChild.children);\n    }\n    Object.entries(outlets).forEach(([outlet, commands]) => {\n      if (typeof commands === 'string') {\n        commands = [commands];\n      }\n      if (commands !== null) {\n        children[outlet] = updateSegmentGroup(segmentGroup.children[outlet], startIndex, commands);\n      }\n    });\n    Object.entries(segmentGroup.children).forEach(([childOutlet, child]) => {\n      if (outlets[childOutlet] === undefined) {\n        children[childOutlet] = child;\n      }\n    });\n    return new UrlSegmentGroup(segmentGroup.segments, children);\n  }\n}\nfunction prefixedWith(segmentGroup, startIndex, commands) {\n  let currentCommandIndex = 0;\n  let currentPathIndex = startIndex;\n  const noMatch = {\n    match: false,\n    pathIndex: 0,\n    commandIndex: 0\n  };\n  while (currentPathIndex < segmentGroup.segments.length) {\n    if (currentCommandIndex >= commands.length) return noMatch;\n    const path = segmentGroup.segments[currentPathIndex];\n    const command = commands[currentCommandIndex];\n    // Do not try to consume command as part of the prefixing if it has outlets because it can\n    // contain outlets other than the one being processed. Consuming the outlets command would\n    // result in other outlets being ignored.\n    if (isCommandWithOutlets(command)) {\n      break;\n    }\n    const curr = `${command}`;\n    const next = currentCommandIndex < commands.length - 1 ? commands[currentCommandIndex + 1] : null;\n    if (currentPathIndex > 0 && curr === undefined) break;\n    if (curr && next && typeof next === 'object' && next.outlets === undefined) {\n      if (!compare(curr, next, path)) return noMatch;\n      currentCommandIndex += 2;\n    } else {\n      if (!compare(curr, {}, path)) return noMatch;\n      currentCommandIndex++;\n    }\n    currentPathIndex++;\n  }\n  return {\n    match: true,\n    pathIndex: currentPathIndex,\n    commandIndex: currentCommandIndex\n  };\n}\nfunction createNewSegmentGroup(segmentGroup, startIndex, commands) {\n  const paths = segmentGroup.segments.slice(0, startIndex);\n  let i = 0;\n  while (i < commands.length) {\n    const command = commands[i];\n    if (isCommandWithOutlets(command)) {\n      const children = createNewSegmentChildren(command.outlets);\n      return new UrlSegmentGroup(paths, children);\n    }\n    // if we start with an object literal, we need to reuse the path part from the segment\n    if (i === 0 && isMatrixParams(commands[0])) {\n      const p = segmentGroup.segments[startIndex];\n      paths.push(new UrlSegment(p.path, stringify(commands[0])));\n      i++;\n      continue;\n    }\n    const curr = isCommandWithOutlets(command) ? command.outlets[PRIMARY_OUTLET] : `${command}`;\n    const next = i < commands.length - 1 ? commands[i + 1] : null;\n    if (curr && next && isMatrixParams(next)) {\n      paths.push(new UrlSegment(curr, stringify(next)));\n      i += 2;\n    } else {\n      paths.push(new UrlSegment(curr, {}));\n      i++;\n    }\n  }\n  return new UrlSegmentGroup(paths, {});\n}\nfunction createNewSegmentChildren(outlets) {\n  const children = {};\n  Object.entries(outlets).forEach(([outlet, commands]) => {\n    if (typeof commands === 'string') {\n      commands = [commands];\n    }\n    if (commands !== null) {\n      children[outlet] = createNewSegmentGroup(new UrlSegmentGroup([], {}), 0, commands);\n    }\n  });\n  return children;\n}\nfunction stringify(params) {\n  const res = {};\n  Object.entries(params).forEach(([k, v]) => res[k] = `${v}`);\n  return res;\n}\nfunction compare(path, params, segment) {\n  return path == segment.path && shallowEqual(params, segment.parameters);\n}\nconst IMPERATIVE_NAVIGATION = 'imperative';\n/**\n * Identifies the type of a router event.\n *\n * @publicApi\n */\nvar EventType = /*#__PURE__*/function (EventType) {\n  EventType[EventType[\"NavigationStart\"] = 0] = \"NavigationStart\";\n  EventType[EventType[\"NavigationEnd\"] = 1] = \"NavigationEnd\";\n  EventType[EventType[\"NavigationCancel\"] = 2] = \"NavigationCancel\";\n  EventType[EventType[\"NavigationError\"] = 3] = \"NavigationError\";\n  EventType[EventType[\"RoutesRecognized\"] = 4] = \"RoutesRecognized\";\n  EventType[EventType[\"ResolveStart\"] = 5] = \"ResolveStart\";\n  EventType[EventType[\"ResolveEnd\"] = 6] = \"ResolveEnd\";\n  EventType[EventType[\"GuardsCheckStart\"] = 7] = \"GuardsCheckStart\";\n  EventType[EventType[\"GuardsCheckEnd\"] = 8] = \"GuardsCheckEnd\";\n  EventType[EventType[\"RouteConfigLoadStart\"] = 9] = \"RouteConfigLoadStart\";\n  EventType[EventType[\"RouteConfigLoadEnd\"] = 10] = \"RouteConfigLoadEnd\";\n  EventType[EventType[\"ChildActivationStart\"] = 11] = \"ChildActivationStart\";\n  EventType[EventType[\"ChildActivationEnd\"] = 12] = \"ChildActivationEnd\";\n  EventType[EventType[\"ActivationStart\"] = 13] = \"ActivationStart\";\n  EventType[EventType[\"ActivationEnd\"] = 14] = \"ActivationEnd\";\n  EventType[EventType[\"Scroll\"] = 15] = \"Scroll\";\n  EventType[EventType[\"NavigationSkipped\"] = 16] = \"NavigationSkipped\";\n  return EventType;\n}(EventType || {});\n/**\n * Base for events the router goes through, as opposed to events tied to a specific\n * route. Fired one time for any given navigation.\n *\n * The following code shows how a class subscribes to router events.\n *\n * ```ts\n * import {Event, RouterEvent, Router} from '@angular/router';\n *\n * class MyService {\n *   constructor(public router: Router) {\n *     router.events.pipe(\n *        filter((e: Event | RouterEvent): e is RouterEvent => e instanceof RouterEvent)\n *     ).subscribe((e: RouterEvent) => {\n *       // Do something\n *     });\n *   }\n * }\n * ```\n *\n * @see {@link Event}\n * @see [Router events summary](guide/router-reference#router-events)\n * @publicApi\n */\nclass RouterEvent {\n  constructor( /** A unique ID that the router assigns to every router navigation. */\n  id, /** The URL that is the destination for this navigation. */\n  url) {\n    this.id = id;\n    this.url = url;\n  }\n}\n/**\n * An event triggered when a navigation starts.\n *\n * @publicApi\n */\nclass NavigationStart extends RouterEvent {\n  constructor( /** @docsNotRequired */\n  id, /** @docsNotRequired */\n  url, /** @docsNotRequired */\n  navigationTrigger = 'imperative', /** @docsNotRequired */\n  restoredState = null) {\n    super(id, url);\n    this.type = EventType.NavigationStart;\n    this.navigationTrigger = navigationTrigger;\n    this.restoredState = restoredState;\n  }\n  /** @docsNotRequired */\n  toString() {\n    return `NavigationStart(id: ${this.id}, url: '${this.url}')`;\n  }\n}\n/**\n * An event triggered when a navigation ends successfully.\n *\n * @see {@link NavigationStart}\n * @see {@link NavigationCancel}\n * @see {@link NavigationError}\n *\n * @publicApi\n */\nclass NavigationEnd extends RouterEvent {\n  constructor( /** @docsNotRequired */\n  id, /** @docsNotRequired */\n  url, /** @docsNotRequired */\n  urlAfterRedirects) {\n    super(id, url);\n    this.urlAfterRedirects = urlAfterRedirects;\n    this.type = EventType.NavigationEnd;\n  }\n  /** @docsNotRequired */\n  toString() {\n    return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`;\n  }\n}\n/**\n * A code for the `NavigationCancel` event of the `Router` to indicate the\n * reason a navigation failed.\n *\n * @publicApi\n */\nvar NavigationCancellationCode = /*#__PURE__*/function (NavigationCancellationCode) {\n  /**\n   * A navigation failed because a guard returned a `UrlTree` to redirect.\n   */\n  NavigationCancellationCode[NavigationCancellationCode[\"Redirect\"] = 0] = \"Redirect\";\n  /**\n   * A navigation failed because a more recent navigation started.\n   */\n  NavigationCancellationCode[NavigationCancellationCode[\"SupersededByNewNavigation\"] = 1] = \"SupersededByNewNavigation\";\n  /**\n   * A navigation failed because one of the resolvers completed without emitting a value.\n   */\n  NavigationCancellationCode[NavigationCancellationCode[\"NoDataFromResolver\"] = 2] = \"NoDataFromResolver\";\n  /**\n   * A navigation failed because a guard returned `false`.\n   */\n  NavigationCancellationCode[NavigationCancellationCode[\"GuardRejected\"] = 3] = \"GuardRejected\";\n  return NavigationCancellationCode;\n}(NavigationCancellationCode || {});\n/**\n * A code for the `NavigationSkipped` event of the `Router` to indicate the\n * reason a navigation was skipped.\n *\n * @publicApi\n */\nvar NavigationSkippedCode = /*#__PURE__*/function (NavigationSkippedCode) {\n  /**\n   * A navigation was skipped because the navigation URL was the same as the current Router URL.\n   */\n  NavigationSkippedCode[NavigationSkippedCode[\"IgnoredSameUrlNavigation\"] = 0] = \"IgnoredSameUrlNavigation\";\n  /**\n   * A navigation was skipped because the configured `UrlHandlingStrategy` return `false` for both\n   * the current Router URL and the target of the navigation.\n   *\n   * @see {@link UrlHandlingStrategy}\n   */\n  NavigationSkippedCode[NavigationSkippedCode[\"IgnoredByUrlHandlingStrategy\"] = 1] = \"IgnoredByUrlHandlingStrategy\";\n  return NavigationSkippedCode;\n}(NavigationSkippedCode || {});\n/**\n * An event triggered when a navigation is canceled, directly or indirectly.\n * This can happen for several reasons including when a route guard\n * returns `false` or initiates a redirect by returning a `UrlTree`.\n *\n * @see {@link NavigationStart}\n * @see {@link NavigationEnd}\n * @see {@link NavigationError}\n *\n * @publicApi\n */\nclass NavigationCancel extends RouterEvent {\n  constructor( /** @docsNotRequired */\n  id, /** @docsNotRequired */\n  url,\n  /**\n   * A description of why the navigation was cancelled. For debug purposes only. Use `code`\n   * instead for a stable cancellation reason that can be used in production.\n   */\n  reason,\n  /**\n   * A code to indicate why the navigation was canceled. This cancellation code is stable for\n   * the reason and can be relied on whereas the `reason` string could change and should not be\n   * used in production.\n   */\n  code) {\n    super(id, url);\n    this.reason = reason;\n    this.code = code;\n    this.type = EventType.NavigationCancel;\n  }\n  /** @docsNotRequired */\n  toString() {\n    return `NavigationCancel(id: ${this.id}, url: '${this.url}')`;\n  }\n}\n/**\n * An event triggered when a navigation is skipped.\n * This can happen for a couple reasons including onSameUrlHandling\n * is set to `ignore` and the navigation URL is not different than the\n * current state.\n *\n * @publicApi\n */\nclass NavigationSkipped extends RouterEvent {\n  constructor( /** @docsNotRequired */\n  id, /** @docsNotRequired */\n  url,\n  /**\n   * A description of why the navigation was skipped. For debug purposes only. Use `code`\n   * instead for a stable skipped reason that can be used in production.\n   */\n  reason,\n  /**\n   * A code to indicate why the navigation was skipped. This code is stable for\n   * the reason and can be relied on whereas the `reason` string could change and should not be\n   * used in production.\n   */\n  code) {\n    super(id, url);\n    this.reason = reason;\n    this.code = code;\n    this.type = EventType.NavigationSkipped;\n  }\n}\n/**\n * An event triggered when a navigation fails due to an unexpected error.\n *\n * @see {@link NavigationStart}\n * @see {@link NavigationEnd}\n * @see {@link NavigationCancel}\n *\n * @publicApi\n */\nclass NavigationError extends RouterEvent {\n  constructor( /** @docsNotRequired */\n  id, /** @docsNotRequired */\n  url, /** @docsNotRequired */\n  error,\n  /**\n   * The target of the navigation when the error occurred.\n   *\n   * Note that this can be `undefined` because an error could have occurred before the\n   * `RouterStateSnapshot` was created for the navigation.\n   */\n  target) {\n    super(id, url);\n    this.error = error;\n    this.target = target;\n    this.type = EventType.NavigationError;\n  }\n  /** @docsNotRequired */\n  toString() {\n    return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`;\n  }\n}\n/**\n * An event triggered when routes are recognized.\n *\n * @publicApi\n */\nclass RoutesRecognized extends RouterEvent {\n  constructor( /** @docsNotRequired */\n  id, /** @docsNotRequired */\n  url, /** @docsNotRequired */\n  urlAfterRedirects, /** @docsNotRequired */\n  state) {\n    super(id, url);\n    this.urlAfterRedirects = urlAfterRedirects;\n    this.state = state;\n    this.type = EventType.RoutesRecognized;\n  }\n  /** @docsNotRequired */\n  toString() {\n    return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;\n  }\n}\n/**\n * An event triggered at the start of the Guard phase of routing.\n *\n * @see {@link GuardsCheckEnd}\n *\n * @publicApi\n */\nclass GuardsCheckStart extends RouterEvent {\n  constructor( /** @docsNotRequired */\n  id, /** @docsNotRequired */\n  url, /** @docsNotRequired */\n  urlAfterRedirects, /** @docsNotRequired */\n  state) {\n    super(id, url);\n    this.urlAfterRedirects = urlAfterRedirects;\n    this.state = state;\n    this.type = EventType.GuardsCheckStart;\n  }\n  toString() {\n    return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;\n  }\n}\n/**\n * An event triggered at the end of the Guard phase of routing.\n *\n * @see {@link GuardsCheckStart}\n *\n * @publicApi\n */\nclass GuardsCheckEnd extends RouterEvent {\n  constructor( /** @docsNotRequired */\n  id, /** @docsNotRequired */\n  url, /** @docsNotRequired */\n  urlAfterRedirects, /** @docsNotRequired */\n  state, /** @docsNotRequired */\n  shouldActivate) {\n    super(id, url);\n    this.urlAfterRedirects = urlAfterRedirects;\n    this.state = state;\n    this.shouldActivate = shouldActivate;\n    this.type = EventType.GuardsCheckEnd;\n  }\n  toString() {\n    return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`;\n  }\n}\n/**\n * An event triggered at the start of the Resolve phase of routing.\n *\n * Runs in the \"resolve\" phase whether or not there is anything to resolve.\n * In future, may change to only run when there are things to be resolved.\n *\n * @see {@link ResolveEnd}\n *\n * @publicApi\n */\nclass ResolveStart extends RouterEvent {\n  constructor( /** @docsNotRequired */\n  id, /** @docsNotRequired */\n  url, /** @docsNotRequired */\n  urlAfterRedirects, /** @docsNotRequired */\n  state) {\n    super(id, url);\n    this.urlAfterRedirects = urlAfterRedirects;\n    this.state = state;\n    this.type = EventType.ResolveStart;\n  }\n  toString() {\n    return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;\n  }\n}\n/**\n * An event triggered at the end of the Resolve phase of routing.\n * @see {@link ResolveStart}\n *\n * @publicApi\n */\nclass ResolveEnd extends RouterEvent {\n  constructor( /** @docsNotRequired */\n  id, /** @docsNotRequired */\n  url, /** @docsNotRequired */\n  urlAfterRedirects, /** @docsNotRequired */\n  state) {\n    super(id, url);\n    this.urlAfterRedirects = urlAfterRedirects;\n    this.state = state;\n    this.type = EventType.ResolveEnd;\n  }\n  toString() {\n    return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;\n  }\n}\n/**\n * An event triggered before lazy loading a route configuration.\n *\n * @see {@link RouteConfigLoadEnd}\n *\n * @publicApi\n */\nclass RouteConfigLoadStart {\n  constructor( /** @docsNotRequired */\n  route) {\n    this.route = route;\n    this.type = EventType.RouteConfigLoadStart;\n  }\n  toString() {\n    return `RouteConfigLoadStart(path: ${this.route.path})`;\n  }\n}\n/**\n * An event triggered when a route has been lazy loaded.\n *\n * @see {@link RouteConfigLoadStart}\n *\n * @publicApi\n */\nclass RouteConfigLoadEnd {\n  constructor( /** @docsNotRequired */\n  route) {\n    this.route = route;\n    this.type = EventType.RouteConfigLoadEnd;\n  }\n  toString() {\n    return `RouteConfigLoadEnd(path: ${this.route.path})`;\n  }\n}\n/**\n * An event triggered at the start of the child-activation\n * part of the Resolve phase of routing.\n * @see {@link ChildActivationEnd}\n * @see {@link ResolveStart}\n *\n * @publicApi\n */\nclass ChildActivationStart {\n  constructor( /** @docsNotRequired */\n  snapshot) {\n    this.snapshot = snapshot;\n    this.type = EventType.ChildActivationStart;\n  }\n  toString() {\n    const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';\n    return `ChildActivationStart(path: '${path}')`;\n  }\n}\n/**\n * An event triggered at the end of the child-activation part\n * of the Resolve phase of routing.\n * @see {@link ChildActivationStart}\n * @see {@link ResolveStart}\n * @publicApi\n */\nclass ChildActivationEnd {\n  constructor( /** @docsNotRequired */\n  snapshot) {\n    this.snapshot = snapshot;\n    this.type = EventType.ChildActivationEnd;\n  }\n  toString() {\n    const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';\n    return `ChildActivationEnd(path: '${path}')`;\n  }\n}\n/**\n * An event triggered at the start of the activation part\n * of the Resolve phase of routing.\n * @see {@link ActivationEnd}\n * @see {@link ResolveStart}\n *\n * @publicApi\n */\nclass ActivationStart {\n  constructor( /** @docsNotRequired */\n  snapshot) {\n    this.snapshot = snapshot;\n    this.type = EventType.ActivationStart;\n  }\n  toString() {\n    const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';\n    return `ActivationStart(path: '${path}')`;\n  }\n}\n/**\n * An event triggered at the end of the activation part\n * of the Resolve phase of routing.\n * @see {@link ActivationStart}\n * @see {@link ResolveStart}\n *\n * @publicApi\n */\nclass ActivationEnd {\n  constructor( /** @docsNotRequired */\n  snapshot) {\n    this.snapshot = snapshot;\n    this.type = EventType.ActivationEnd;\n  }\n  toString() {\n    const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';\n    return `ActivationEnd(path: '${path}')`;\n  }\n}\n/**\n * An event triggered by scrolling.\n *\n * @publicApi\n */\nclass Scroll {\n  constructor( /** @docsNotRequired */\n  routerEvent, /** @docsNotRequired */\n  position, /** @docsNotRequired */\n  anchor) {\n    this.routerEvent = routerEvent;\n    this.position = position;\n    this.anchor = anchor;\n    this.type = EventType.Scroll;\n  }\n  toString() {\n    const pos = this.position ? `${this.position[0]}, ${this.position[1]}` : null;\n    return `Scroll(anchor: '${this.anchor}', position: '${pos}')`;\n  }\n}\nclass BeforeActivateRoutes {}\nclass RedirectRequest {\n  constructor(url) {\n    this.url = url;\n  }\n}\nfunction stringifyEvent(routerEvent) {\n  switch (routerEvent.type) {\n    case EventType.ActivationEnd:\n      return `ActivationEnd(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;\n    case EventType.ActivationStart:\n      return `ActivationStart(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;\n    case EventType.ChildActivationEnd:\n      return `ChildActivationEnd(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;\n    case EventType.ChildActivationStart:\n      return `ChildActivationStart(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;\n    case EventType.GuardsCheckEnd:\n      return `GuardsCheckEnd(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${routerEvent.state}, shouldActivate: ${routerEvent.shouldActivate})`;\n    case EventType.GuardsCheckStart:\n      return `GuardsCheckStart(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${routerEvent.state})`;\n    case EventType.NavigationCancel:\n      return `NavigationCancel(id: ${routerEvent.id}, url: '${routerEvent.url}')`;\n    case EventType.NavigationSkipped:\n      return `NavigationSkipped(id: ${routerEvent.id}, url: '${routerEvent.url}')`;\n    case EventType.NavigationEnd:\n      return `NavigationEnd(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}')`;\n    case EventType.NavigationError:\n      return `NavigationError(id: ${routerEvent.id}, url: '${routerEvent.url}', error: ${routerEvent.error})`;\n    case EventType.NavigationStart:\n      return `NavigationStart(id: ${routerEvent.id}, url: '${routerEvent.url}')`;\n    case EventType.ResolveEnd:\n      return `ResolveEnd(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${routerEvent.state})`;\n    case EventType.ResolveStart:\n      return `ResolveStart(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${routerEvent.state})`;\n    case EventType.RouteConfigLoadEnd:\n      return `RouteConfigLoadEnd(path: ${routerEvent.route.path})`;\n    case EventType.RouteConfigLoadStart:\n      return `RouteConfigLoadStart(path: ${routerEvent.route.path})`;\n    case EventType.RoutesRecognized:\n      return `RoutesRecognized(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${routerEvent.state})`;\n    case EventType.Scroll:\n      const pos = routerEvent.position ? `${routerEvent.position[0]}, ${routerEvent.position[1]}` : null;\n      return `Scroll(anchor: '${routerEvent.anchor}', position: '${pos}')`;\n  }\n}\n\n/**\n * Store contextual information about a `RouterOutlet`\n *\n * @publicApi\n */\nclass OutletContext {\n  constructor() {\n    this.outlet = null;\n    this.route = null;\n    this.injector = null;\n    this.children = new ChildrenOutletContexts();\n    this.attachRef = null;\n  }\n}\n/**\n * Store contextual information about the children (= nested) `RouterOutlet`\n *\n * @publicApi\n */\nlet ChildrenOutletContexts = /*#__PURE__*/(() => {\n  class ChildrenOutletContexts {\n    constructor() {\n      // contexts for child outlets, by name.\n      this.contexts = new Map();\n    }\n    /** Called when a `RouterOutlet` directive is instantiated */\n    onChildOutletCreated(childName, outlet) {\n      const context = this.getOrCreateContext(childName);\n      context.outlet = outlet;\n      this.contexts.set(childName, context);\n    }\n    /**\n     * Called when a `RouterOutlet` directive is destroyed.\n     * We need to keep the context as the outlet could be destroyed inside a NgIf and might be\n     * re-created later.\n     */\n    onChildOutletDestroyed(childName) {\n      const context = this.getContext(childName);\n      if (context) {\n        context.outlet = null;\n        context.attachRef = null;\n      }\n    }\n    /**\n     * Called when the corresponding route is deactivated during navigation.\n     * Because the component get destroyed, all children outlet are destroyed.\n     */\n    onOutletDeactivated() {\n      const contexts = this.contexts;\n      this.contexts = new Map();\n      return contexts;\n    }\n    onOutletReAttached(contexts) {\n      this.contexts = contexts;\n    }\n    getOrCreateContext(childName) {\n      let context = this.getContext(childName);\n      if (!context) {\n        context = new OutletContext();\n        this.contexts.set(childName, context);\n      }\n      return context;\n    }\n    getContext(childName) {\n      return this.contexts.get(childName) || null;\n    }\n    static {\n      this.ɵfac = function ChildrenOutletContexts_Factory(t) {\n        return new (t || ChildrenOutletContexts)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: ChildrenOutletContexts,\n        factory: ChildrenOutletContexts.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return ChildrenOutletContexts;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nclass Tree {\n  constructor(root) {\n    this._root = root;\n  }\n  get root() {\n    return this._root.value;\n  }\n  /**\n   * @internal\n   */\n  parent(t) {\n    const p = this.pathFromRoot(t);\n    return p.length > 1 ? p[p.length - 2] : null;\n  }\n  /**\n   * @internal\n   */\n  children(t) {\n    const n = findNode(t, this._root);\n    return n ? n.children.map(t => t.value) : [];\n  }\n  /**\n   * @internal\n   */\n  firstChild(t) {\n    const n = findNode(t, this._root);\n    return n && n.children.length > 0 ? n.children[0].value : null;\n  }\n  /**\n   * @internal\n   */\n  siblings(t) {\n    const p = findPath(t, this._root);\n    if (p.length < 2) return [];\n    const c = p[p.length - 2].children.map(c => c.value);\n    return c.filter(cc => cc !== t);\n  }\n  /**\n   * @internal\n   */\n  pathFromRoot(t) {\n    return findPath(t, this._root).map(s => s.value);\n  }\n}\n// DFS for the node matching the value\nfunction findNode(value, node) {\n  if (value === node.value) return node;\n  for (const child of node.children) {\n    const node = findNode(value, child);\n    if (node) return node;\n  }\n  return null;\n}\n// Return the path to the node with the given value using DFS\nfunction findPath(value, node) {\n  if (value === node.value) return [node];\n  for (const child of node.children) {\n    const path = findPath(value, child);\n    if (path.length) {\n      path.unshift(node);\n      return path;\n    }\n  }\n  return [];\n}\nclass TreeNode {\n  constructor(value, children) {\n    this.value = value;\n    this.children = children;\n  }\n  toString() {\n    return `TreeNode(${this.value})`;\n  }\n}\n// Return the list of T indexed by outlet name\nfunction nodeChildrenAsMap(node) {\n  const map = {};\n  if (node) {\n    node.children.forEach(child => map[child.value.outlet] = child);\n  }\n  return map;\n}\n\n/**\n * Represents the state of the router as a tree of activated routes.\n *\n * @usageNotes\n *\n * Every node in the route tree is an `ActivatedRoute` instance\n * that knows about the \"consumed\" URL segments, the extracted parameters,\n * and the resolved data.\n * Use the `ActivatedRoute` properties to traverse the tree from any node.\n *\n * The following fragment shows how a component gets the root node\n * of the current state to establish its own route tree:\n *\n * ```\n * @Component({templateUrl:'template.html'})\n * class MyComponent {\n *   constructor(router: Router) {\n *     const state: RouterState = router.routerState;\n *     const root: ActivatedRoute = state.root;\n *     const child = root.firstChild;\n *     const id: Observable<string> = child.params.map(p => p.id);\n *     //...\n *   }\n * }\n * ```\n *\n * @see {@link ActivatedRoute}\n * @see [Getting route information](guide/router#getting-route-information)\n *\n * @publicApi\n */\nclass RouterState extends Tree {\n  /** @internal */\n  constructor(root, /** The current snapshot of the router state */\n  snapshot) {\n    super(root);\n    this.snapshot = snapshot;\n    setRouterState(this, root);\n  }\n  toString() {\n    return this.snapshot.toString();\n  }\n}\nfunction createEmptyState(rootComponent) {\n  const snapshot = createEmptyStateSnapshot(rootComponent);\n  const emptyUrl = new BehaviorSubject([new UrlSegment('', {})]);\n  const emptyParams = new BehaviorSubject({});\n  const emptyData = new BehaviorSubject({});\n  const emptyQueryParams = new BehaviorSubject({});\n  const fragment = new BehaviorSubject('');\n  const activated = new ActivatedRoute(emptyUrl, emptyParams, emptyQueryParams, fragment, emptyData, PRIMARY_OUTLET, rootComponent, snapshot.root);\n  activated.snapshot = snapshot.root;\n  return new RouterState(new TreeNode(activated, []), snapshot);\n}\nfunction createEmptyStateSnapshot(rootComponent) {\n  const emptyParams = {};\n  const emptyData = {};\n  const emptyQueryParams = {};\n  const fragment = '';\n  const activated = new ActivatedRouteSnapshot([], emptyParams, emptyQueryParams, fragment, emptyData, PRIMARY_OUTLET, rootComponent, null, {});\n  return new RouterStateSnapshot('', new TreeNode(activated, []));\n}\n/**\n * Provides access to information about a route associated with a component\n * that is loaded in an outlet.\n * Use to traverse the `RouterState` tree and extract information from nodes.\n *\n * The following example shows how to construct a component using information from a\n * currently activated route.\n *\n * Note: the observables in this class only emit when the current and previous values differ based\n * on shallow equality. For example, changing deeply nested properties in resolved `data` will not\n * cause the `ActivatedRoute.data` `Observable` to emit a new value.\n *\n * {@example router/activated-route/module.ts region=\"activated-route\"\n *     header=\"activated-route.component.ts\"}\n *\n * @see [Getting route information](guide/router#getting-route-information)\n *\n * @publicApi\n */\nclass ActivatedRoute {\n  /** @internal */\n  constructor( /** @internal */\n  urlSubject, /** @internal */\n  paramsSubject, /** @internal */\n  queryParamsSubject, /** @internal */\n  fragmentSubject, /** @internal */\n  dataSubject, /** The outlet name of the route, a constant. */\n  outlet, /** The component of the route, a constant. */\n  component, futureSnapshot) {\n    this.urlSubject = urlSubject;\n    this.paramsSubject = paramsSubject;\n    this.queryParamsSubject = queryParamsSubject;\n    this.fragmentSubject = fragmentSubject;\n    this.dataSubject = dataSubject;\n    this.outlet = outlet;\n    this.component = component;\n    this._futureSnapshot = futureSnapshot;\n    this.title = this.dataSubject?.pipe(map(d => d[RouteTitleKey])) ?? of(undefined);\n    // TODO(atscott): Verify that these can be changed to `.asObservable()` with TGP.\n    this.url = urlSubject;\n    this.params = paramsSubject;\n    this.queryParams = queryParamsSubject;\n    this.fragment = fragmentSubject;\n    this.data = dataSubject;\n  }\n  /** The configuration used to match this route. */\n  get routeConfig() {\n    return this._futureSnapshot.routeConfig;\n  }\n  /** The root of the router state. */\n  get root() {\n    return this._routerState.root;\n  }\n  /** The parent of this route in the router state tree. */\n  get parent() {\n    return this._routerState.parent(this);\n  }\n  /** The first child of this route in the router state tree. */\n  get firstChild() {\n    return this._routerState.firstChild(this);\n  }\n  /** The children of this route in the router state tree. */\n  get children() {\n    return this._routerState.children(this);\n  }\n  /** The path from the root of the router state tree to this route. */\n  get pathFromRoot() {\n    return this._routerState.pathFromRoot(this);\n  }\n  /**\n   * An Observable that contains a map of the required and optional parameters\n   * specific to the route.\n   * The map supports retrieving single and multiple values from the same parameter.\n   */\n  get paramMap() {\n    this._paramMap ??= this.params.pipe(map(p => convertToParamMap(p)));\n    return this._paramMap;\n  }\n  /**\n   * An Observable that contains a map of the query parameters available to all routes.\n   * The map supports retrieving single and multiple values from the query parameter.\n   */\n  get queryParamMap() {\n    this._queryParamMap ??= this.queryParams.pipe(map(p => convertToParamMap(p)));\n    return this._queryParamMap;\n  }\n  toString() {\n    return this.snapshot ? this.snapshot.toString() : `Future(${this._futureSnapshot})`;\n  }\n}\n/**\n * Returns the inherited params, data, and resolve for a given route.\n *\n * By default, we do not inherit parent data unless the current route is path-less or the parent\n * route is component-less.\n */\nfunction getInherited(route, parent, paramsInheritanceStrategy = 'emptyOnly') {\n  let inherited;\n  const {\n    routeConfig\n  } = route;\n  if (parent !== null && (paramsInheritanceStrategy === 'always' ||\n  // inherit parent data if route is empty path\n  routeConfig?.path === '' ||\n  // inherit parent data if parent was componentless\n  !parent.component && !parent.routeConfig?.loadComponent)) {\n    inherited = {\n      params: {\n        ...parent.params,\n        ...route.params\n      },\n      data: {\n        ...parent.data,\n        ...route.data\n      },\n      resolve: {\n        // Snapshots are created with data inherited from parent and guards (i.e. canActivate) can\n        // change data because it's not frozen...\n        // This first line could be deleted chose to break/disallow mutating the `data` object in\n        // guards.\n        // Note that data from parents still override this mutated data so anyone relying on this\n        // might be surprised that it doesn't work if parent data is inherited but otherwise does.\n        ...route.data,\n        // Ensure inherited resolved data overrides inherited static data\n        ...parent.data,\n        // static data from the current route overrides any inherited data\n        ...routeConfig?.data,\n        // resolved data from current route overrides everything\n        ...route._resolvedData\n      }\n    };\n  } else {\n    inherited = {\n      params: {\n        ...route.params\n      },\n      data: {\n        ...route.data\n      },\n      resolve: {\n        ...route.data,\n        ...(route._resolvedData ?? {})\n      }\n    };\n  }\n  if (routeConfig && hasStaticTitle(routeConfig)) {\n    inherited.resolve[RouteTitleKey] = routeConfig.title;\n  }\n  return inherited;\n}\n/**\n * @description\n *\n * Contains the information about a route associated with a component loaded in an\n * outlet at a particular moment in time. ActivatedRouteSnapshot can also be used to\n * traverse the router state tree.\n *\n * The following example initializes a component with route information extracted\n * from the snapshot of the root node at the time of creation.\n *\n * ```\n * @Component({templateUrl:'./my-component.html'})\n * class MyComponent {\n *   constructor(route: ActivatedRoute) {\n *     const id: string = route.snapshot.params.id;\n *     const url: string = route.snapshot.url.join('');\n *     const user = route.snapshot.data.user;\n *   }\n * }\n * ```\n *\n * @publicApi\n */\nclass ActivatedRouteSnapshot {\n  /** The resolved route title */\n  get title() {\n    // Note: This _must_ be a getter because the data is mutated in the resolvers. Title will not be\n    // available at the time of class instantiation.\n    return this.data?.[RouteTitleKey];\n  }\n  /** @internal */\n  constructor( /** The URL segments matched by this route */\n  url,\n  /**\n   *  The matrix parameters scoped to this route.\n   *\n   *  You can compute all params (or data) in the router state or to get params outside\n   *  of an activated component by traversing the `RouterState` tree as in the following\n   *  example:\n   *  ```\n   *  collectRouteParams(router: Router) {\n   *    let params = {};\n   *    let stack: ActivatedRouteSnapshot[] = [router.routerState.snapshot.root];\n   *    while (stack.length > 0) {\n   *      const route = stack.pop()!;\n   *      params = {...params, ...route.params};\n   *      stack.push(...route.children);\n   *    }\n   *    return params;\n   *  }\n   *  ```\n   */\n  params, /** The query parameters shared by all the routes */\n  queryParams, /** The URL fragment shared by all the routes */\n  fragment, /** The static and resolved data of this route */\n  data, /** The outlet name of the route */\n  outlet, /** The component of the route */\n  component, routeConfig, resolve) {\n    this.url = url;\n    this.params = params;\n    this.queryParams = queryParams;\n    this.fragment = fragment;\n    this.data = data;\n    this.outlet = outlet;\n    this.component = component;\n    this.routeConfig = routeConfig;\n    this._resolve = resolve;\n  }\n  /** The root of the router state */\n  get root() {\n    return this._routerState.root;\n  }\n  /** The parent of this route in the router state tree */\n  get parent() {\n    return this._routerState.parent(this);\n  }\n  /** The first child of this route in the router state tree */\n  get firstChild() {\n    return this._routerState.firstChild(this);\n  }\n  /** The children of this route in the router state tree */\n  get children() {\n    return this._routerState.children(this);\n  }\n  /** The path from the root of the router state tree to this route */\n  get pathFromRoot() {\n    return this._routerState.pathFromRoot(this);\n  }\n  get paramMap() {\n    this._paramMap ??= convertToParamMap(this.params);\n    return this._paramMap;\n  }\n  get queryParamMap() {\n    this._queryParamMap ??= convertToParamMap(this.queryParams);\n    return this._queryParamMap;\n  }\n  toString() {\n    const url = this.url.map(segment => segment.toString()).join('/');\n    const matched = this.routeConfig ? this.routeConfig.path : '';\n    return `Route(url:'${url}', path:'${matched}')`;\n  }\n}\n/**\n * @description\n *\n * Represents the state of the router at a moment in time.\n *\n * This is a tree of activated route snapshots. Every node in this tree knows about\n * the \"consumed\" URL segments, the extracted parameters, and the resolved data.\n *\n * The following example shows how a component is initialized with information\n * from the snapshot of the root node's state at the time of creation.\n *\n * ```\n * @Component({templateUrl:'template.html'})\n * class MyComponent {\n *   constructor(router: Router) {\n *     const state: RouterState = router.routerState;\n *     const snapshot: RouterStateSnapshot = state.snapshot;\n *     const root: ActivatedRouteSnapshot = snapshot.root;\n *     const child = root.firstChild;\n *     const id: Observable<string> = child.params.map(p => p.id);\n *     //...\n *   }\n * }\n * ```\n *\n * @publicApi\n */\nclass RouterStateSnapshot extends Tree {\n  /** @internal */\n  constructor( /** The url from which this snapshot was created */\n  url, root) {\n    super(root);\n    this.url = url;\n    setRouterState(this, root);\n  }\n  toString() {\n    return serializeNode(this._root);\n  }\n}\nfunction setRouterState(state, node) {\n  node.value._routerState = state;\n  node.children.forEach(c => setRouterState(state, c));\n}\nfunction serializeNode(node) {\n  const c = node.children.length > 0 ? ` { ${node.children.map(serializeNode).join(', ')} } ` : '';\n  return `${node.value}${c}`;\n}\n/**\n * The expectation is that the activate route is created with the right set of parameters.\n * So we push new values into the observables only when they are not the initial values.\n * And we detect that by checking if the snapshot field is set.\n */\nfunction advanceActivatedRoute(route) {\n  if (route.snapshot) {\n    const currentSnapshot = route.snapshot;\n    const nextSnapshot = route._futureSnapshot;\n    route.snapshot = nextSnapshot;\n    if (!shallowEqual(currentSnapshot.queryParams, nextSnapshot.queryParams)) {\n      route.queryParamsSubject.next(nextSnapshot.queryParams);\n    }\n    if (currentSnapshot.fragment !== nextSnapshot.fragment) {\n      route.fragmentSubject.next(nextSnapshot.fragment);\n    }\n    if (!shallowEqual(currentSnapshot.params, nextSnapshot.params)) {\n      route.paramsSubject.next(nextSnapshot.params);\n    }\n    if (!shallowEqualArrays(currentSnapshot.url, nextSnapshot.url)) {\n      route.urlSubject.next(nextSnapshot.url);\n    }\n    if (!shallowEqual(currentSnapshot.data, nextSnapshot.data)) {\n      route.dataSubject.next(nextSnapshot.data);\n    }\n  } else {\n    route.snapshot = route._futureSnapshot;\n    // this is for resolved data\n    route.dataSubject.next(route._futureSnapshot.data);\n  }\n}\nfunction equalParamsAndUrlSegments(a, b) {\n  const equalUrlParams = shallowEqual(a.params, b.params) && equalSegments(a.url, b.url);\n  const parentsMismatch = !a.parent !== !b.parent;\n  return equalUrlParams && !parentsMismatch && (!a.parent || equalParamsAndUrlSegments(a.parent, b.parent));\n}\nfunction hasStaticTitle(config) {\n  return typeof config.title === 'string' || config.title === null;\n}\n\n/**\n * @description\n *\n * Acts as a placeholder that Angular dynamically fills based on the current router state.\n *\n * Each outlet can have a unique name, determined by the optional `name` attribute.\n * The name cannot be set or changed dynamically. If not set, default value is \"primary\".\n *\n * ```\n * <router-outlet></router-outlet>\n * <router-outlet name='left'></router-outlet>\n * <router-outlet name='right'></router-outlet>\n * ```\n *\n * Named outlets can be the targets of secondary routes.\n * The `Route` object for a secondary route has an `outlet` property to identify the target outlet:\n *\n * `{path: <base-path>, component: <component>, outlet: <target_outlet_name>}`\n *\n * Using named outlets and secondary routes, you can target multiple outlets in\n * the same `RouterLink` directive.\n *\n * The router keeps track of separate branches in a navigation tree for each named outlet and\n * generates a representation of that tree in the URL.\n * The URL for a secondary route uses the following syntax to specify both the primary and secondary\n * routes at the same time:\n *\n * `http://base-path/primary-route-path(outlet-name:route-path)`\n *\n * A router outlet emits an activate event when a new component is instantiated,\n * deactivate event when a component is destroyed.\n * An attached event emits when the `RouteReuseStrategy` instructs the outlet to reattach the\n * subtree, and the detached event emits when the `RouteReuseStrategy` instructs the outlet to\n * detach the subtree.\n *\n * ```\n * <router-outlet\n *   (activate)='onActivate($event)'\n *   (deactivate)='onDeactivate($event)'\n *   (attach)='onAttach($event)'\n *   (detach)='onDetach($event)'></router-outlet>\n * ```\n *\n * @see [Routing tutorial](guide/router-tutorial-toh#named-outlets \"Example of a named\n * outlet and secondary route configuration\").\n * @see {@link RouterLink}\n * @see {@link Route}\n * @ngModule RouterModule\n *\n * @publicApi\n */\nlet RouterOutlet = /*#__PURE__*/(() => {\n  class RouterOutlet {\n    constructor() {\n      this.activated = null;\n      this._activatedRoute = null;\n      /**\n       * The name of the outlet\n       *\n       * @see [named outlets](guide/router-tutorial-toh#displaying-multiple-routes-in-named-outlets)\n       */\n      this.name = PRIMARY_OUTLET;\n      this.activateEvents = new EventEmitter();\n      this.deactivateEvents = new EventEmitter();\n      /**\n       * Emits an attached component instance when the `RouteReuseStrategy` instructs to re-attach a\n       * previously detached subtree.\n       **/\n      this.attachEvents = new EventEmitter();\n      /**\n       * Emits a detached component instance when the `RouteReuseStrategy` instructs to detach the\n       * subtree.\n       */\n      this.detachEvents = new EventEmitter();\n      this.parentContexts = inject(ChildrenOutletContexts);\n      this.location = inject(ViewContainerRef);\n      this.changeDetector = inject(ChangeDetectorRef);\n      this.environmentInjector = inject(EnvironmentInjector);\n      this.inputBinder = inject(INPUT_BINDER, {\n        optional: true\n      });\n      /** @nodoc */\n      this.supportsBindingToComponentInputs = true;\n    }\n    /** @internal */\n    get activatedComponentRef() {\n      return this.activated;\n    }\n    /** @nodoc */\n    ngOnChanges(changes) {\n      if (changes['name']) {\n        const {\n          firstChange,\n          previousValue\n        } = changes['name'];\n        if (firstChange) {\n          // The first change is handled by ngOnInit. Because ngOnChanges doesn't get called when no\n          // input is set at all, we need to centrally handle the first change there.\n          return;\n        }\n        // unregister with the old name\n        if (this.isTrackedInParentContexts(previousValue)) {\n          this.deactivate();\n          this.parentContexts.onChildOutletDestroyed(previousValue);\n        }\n        // register the new name\n        this.initializeOutletWithName();\n      }\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n      // Ensure that the registered outlet is this one before removing it on the context.\n      if (this.isTrackedInParentContexts(this.name)) {\n        this.parentContexts.onChildOutletDestroyed(this.name);\n      }\n      this.inputBinder?.unsubscribeFromRouteData(this);\n    }\n    isTrackedInParentContexts(outletName) {\n      return this.parentContexts.getContext(outletName)?.outlet === this;\n    }\n    /** @nodoc */\n    ngOnInit() {\n      this.initializeOutletWithName();\n    }\n    initializeOutletWithName() {\n      this.parentContexts.onChildOutletCreated(this.name, this);\n      if (this.activated) {\n        return;\n      }\n      // If the outlet was not instantiated at the time the route got activated we need to populate\n      // the outlet when it is initialized (ie inside a NgIf)\n      const context = this.parentContexts.getContext(this.name);\n      if (context?.route) {\n        if (context.attachRef) {\n          // `attachRef` is populated when there is an existing component to mount\n          this.attach(context.attachRef, context.route);\n        } else {\n          // otherwise the component defined in the configuration is created\n          this.activateWith(context.route, context.injector);\n        }\n      }\n    }\n    get isActivated() {\n      return !!this.activated;\n    }\n    /**\n     * @returns The currently activated component instance.\n     * @throws An error if the outlet is not activated.\n     */\n    get component() {\n      if (!this.activated) throw new ɵRuntimeError(4012 /* RuntimeErrorCode.OUTLET_NOT_ACTIVATED */, (typeof ngDevMode === 'undefined' || ngDevMode) && 'Outlet is not activated');\n      return this.activated.instance;\n    }\n    get activatedRoute() {\n      if (!this.activated) throw new ɵRuntimeError(4012 /* RuntimeErrorCode.OUTLET_NOT_ACTIVATED */, (typeof ngDevMode === 'undefined' || ngDevMode) && 'Outlet is not activated');\n      return this._activatedRoute;\n    }\n    get activatedRouteData() {\n      if (this._activatedRoute) {\n        return this._activatedRoute.snapshot.data;\n      }\n      return {};\n    }\n    /**\n     * Called when the `RouteReuseStrategy` instructs to detach the subtree\n     */\n    detach() {\n      if (!this.activated) throw new ɵRuntimeError(4012 /* RuntimeErrorCode.OUTLET_NOT_ACTIVATED */, (typeof ngDevMode === 'undefined' || ngDevMode) && 'Outlet is not activated');\n      this.location.detach();\n      const cmp = this.activated;\n      this.activated = null;\n      this._activatedRoute = null;\n      this.detachEvents.emit(cmp.instance);\n      return cmp;\n    }\n    /**\n     * Called when the `RouteReuseStrategy` instructs to re-attach a previously detached subtree\n     */\n    attach(ref, activatedRoute) {\n      this.activated = ref;\n      this._activatedRoute = activatedRoute;\n      this.location.insert(ref.hostView);\n      this.inputBinder?.bindActivatedRouteToOutletComponent(this);\n      this.attachEvents.emit(ref.instance);\n    }\n    deactivate() {\n      if (this.activated) {\n        const c = this.component;\n        this.activated.destroy();\n        this.activated = null;\n        this._activatedRoute = null;\n        this.deactivateEvents.emit(c);\n      }\n    }\n    activateWith(activatedRoute, environmentInjector) {\n      if (this.isActivated) {\n        throw new ɵRuntimeError(4013 /* RuntimeErrorCode.OUTLET_ALREADY_ACTIVATED */, (typeof ngDevMode === 'undefined' || ngDevMode) && 'Cannot activate an already activated outlet');\n      }\n      this._activatedRoute = activatedRoute;\n      const location = this.location;\n      const snapshot = activatedRoute.snapshot;\n      const component = snapshot.component;\n      const childContexts = this.parentContexts.getOrCreateContext(this.name).children;\n      const injector = new OutletInjector(activatedRoute, childContexts, location.injector);\n      this.activated = location.createComponent(component, {\n        index: location.length,\n        injector,\n        environmentInjector: environmentInjector ?? this.environmentInjector\n      });\n      // Calling `markForCheck` to make sure we will run the change detection when the\n      // `RouterOutlet` is inside a `ChangeDetectionStrategy.OnPush` component.\n      this.changeDetector.markForCheck();\n      this.inputBinder?.bindActivatedRouteToOutletComponent(this);\n      this.activateEvents.emit(this.activated.instance);\n    }\n    static {\n      this.ɵfac = function RouterOutlet_Factory(t) {\n        return new (t || RouterOutlet)();\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: RouterOutlet,\n        selectors: [[\"router-outlet\"]],\n        inputs: {\n          name: \"name\"\n        },\n        outputs: {\n          activateEvents: \"activate\",\n          deactivateEvents: \"deactivate\",\n          attachEvents: \"attach\",\n          detachEvents: \"detach\"\n        },\n        exportAs: [\"outlet\"],\n        standalone: true,\n        features: [i0.ɵɵNgOnChangesFeature]\n      });\n    }\n  }\n  return RouterOutlet;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nclass OutletInjector {\n  /**\n   * This injector has a special handing for the `ActivatedRoute` and\n   * `ChildrenOutletContexts` tokens: it returns corresponding values for those\n   * tokens dynamically. This behavior is different from the regular injector logic,\n   * when we initialize and store a value, which is later returned for all inject\n   * requests.\n   *\n   * In some cases (e.g. when using `@defer`), this dynamic behavior requires special\n   * handling. This function allows to identify an instance of the `OutletInjector` and\n   * create an instance of it without referring to the class itself (so this logic can\n   * be invoked from the `core` package). This helps to retain dynamic behavior for the\n   * mentioned tokens.\n   *\n   * Note: it's a temporary solution and we should explore how to support this case better.\n   */\n  __ngOutletInjector(parentInjector) {\n    return new OutletInjector(this.route, this.childContexts, parentInjector);\n  }\n  constructor(route, childContexts, parent) {\n    this.route = route;\n    this.childContexts = childContexts;\n    this.parent = parent;\n  }\n  get(token, notFoundValue) {\n    if (token === ActivatedRoute) {\n      return this.route;\n    }\n    if (token === ChildrenOutletContexts) {\n      return this.childContexts;\n    }\n    return this.parent.get(token, notFoundValue);\n  }\n}\nconst INPUT_BINDER = /*#__PURE__*/new InjectionToken('');\n/**\n * Injectable used as a tree-shakable provider for opting in to binding router data to component\n * inputs.\n *\n * The RouterOutlet registers itself with this service when an `ActivatedRoute` is attached or\n * activated. When this happens, the service subscribes to the `ActivatedRoute` observables (params,\n * queryParams, data) and sets the inputs of the component using `ComponentRef.setInput`.\n * Importantly, when an input does not have an item in the route data with a matching key, this\n * input is set to `undefined`. If it were not done this way, the previous information would be\n * retained if the data got removed from the route (i.e. if a query parameter is removed).\n *\n * The `RouterOutlet` should unregister itself when destroyed via `unsubscribeFromRouteData` so that\n * the subscriptions are cleaned up.\n */\nlet RoutedComponentInputBinder = /*#__PURE__*/(() => {\n  class RoutedComponentInputBinder {\n    constructor() {\n      this.outletDataSubscriptions = new Map();\n    }\n    bindActivatedRouteToOutletComponent(outlet) {\n      this.unsubscribeFromRouteData(outlet);\n      this.subscribeToRouteData(outlet);\n    }\n    unsubscribeFromRouteData(outlet) {\n      this.outletDataSubscriptions.get(outlet)?.unsubscribe();\n      this.outletDataSubscriptions.delete(outlet);\n    }\n    subscribeToRouteData(outlet) {\n      const {\n        activatedRoute\n      } = outlet;\n      const dataSubscription = combineLatest([activatedRoute.queryParams, activatedRoute.params, activatedRoute.data]).pipe(switchMap(([queryParams, params, data], index) => {\n        data = {\n          ...queryParams,\n          ...params,\n          ...data\n        };\n        // Get the first result from the data subscription synchronously so it's available to\n        // the component as soon as possible (and doesn't require a second change detection).\n        if (index === 0) {\n          return of(data);\n        }\n        // Promise.resolve is used to avoid synchronously writing the wrong data when\n        // two of the Observables in the `combineLatest` stream emit one after\n        // another.\n        return Promise.resolve(data);\n      })).subscribe(data => {\n        // Outlet may have been deactivated or changed names to be associated with a different\n        // route\n        if (!outlet.isActivated || !outlet.activatedComponentRef || outlet.activatedRoute !== activatedRoute || activatedRoute.component === null) {\n          this.unsubscribeFromRouteData(outlet);\n          return;\n        }\n        const mirror = reflectComponentType(activatedRoute.component);\n        if (!mirror) {\n          this.unsubscribeFromRouteData(outlet);\n          return;\n        }\n        for (const {\n          templateName\n        } of mirror.inputs) {\n          outlet.activatedComponentRef.setInput(templateName, data[templateName]);\n        }\n      });\n      this.outletDataSubscriptions.set(outlet, dataSubscription);\n    }\n    static {\n      this.ɵfac = function RoutedComponentInputBinder_Factory(t) {\n        return new (t || RoutedComponentInputBinder)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: RoutedComponentInputBinder,\n        factory: RoutedComponentInputBinder.ɵfac\n      });\n    }\n  }\n  return RoutedComponentInputBinder;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction createRouterState(routeReuseStrategy, curr, prevState) {\n  const root = createNode(routeReuseStrategy, curr._root, prevState ? prevState._root : undefined);\n  return new RouterState(root, curr);\n}\nfunction createNode(routeReuseStrategy, curr, prevState) {\n  // reuse an activated route that is currently displayed on the screen\n  if (prevState && routeReuseStrategy.shouldReuseRoute(curr.value, prevState.value.snapshot)) {\n    const value = prevState.value;\n    value._futureSnapshot = curr.value;\n    const children = createOrReuseChildren(routeReuseStrategy, curr, prevState);\n    return new TreeNode(value, children);\n  } else {\n    if (routeReuseStrategy.shouldAttach(curr.value)) {\n      // retrieve an activated route that is used to be displayed, but is not currently displayed\n      const detachedRouteHandle = routeReuseStrategy.retrieve(curr.value);\n      if (detachedRouteHandle !== null) {\n        const tree = detachedRouteHandle.route;\n        tree.value._futureSnapshot = curr.value;\n        tree.children = curr.children.map(c => createNode(routeReuseStrategy, c));\n        return tree;\n      }\n    }\n    const value = createActivatedRoute(curr.value);\n    const children = curr.children.map(c => createNode(routeReuseStrategy, c));\n    return new TreeNode(value, children);\n  }\n}\nfunction createOrReuseChildren(routeReuseStrategy, curr, prevState) {\n  return curr.children.map(child => {\n    for (const p of prevState.children) {\n      if (routeReuseStrategy.shouldReuseRoute(child.value, p.value.snapshot)) {\n        return createNode(routeReuseStrategy, child, p);\n      }\n    }\n    return createNode(routeReuseStrategy, child);\n  });\n}\nfunction createActivatedRoute(c) {\n  return new ActivatedRoute(new BehaviorSubject(c.url), new BehaviorSubject(c.params), new BehaviorSubject(c.queryParams), new BehaviorSubject(c.fragment), new BehaviorSubject(c.data), c.outlet, c.component, c);\n}\nconst NAVIGATION_CANCELING_ERROR = 'ngNavigationCancelingError';\nfunction redirectingNavigationError(urlSerializer, redirect) {\n  const {\n    redirectTo,\n    navigationBehaviorOptions\n  } = isUrlTree(redirect) ? {\n    redirectTo: redirect,\n    navigationBehaviorOptions: undefined\n  } : redirect;\n  const error = navigationCancelingError(ngDevMode && `Redirecting to \"${urlSerializer.serialize(redirectTo)}\"`, NavigationCancellationCode.Redirect);\n  error.url = redirectTo;\n  error.navigationBehaviorOptions = navigationBehaviorOptions;\n  return error;\n}\nfunction navigationCancelingError(message, code) {\n  const error = new Error(`NavigationCancelingError: ${message || ''}`);\n  error[NAVIGATION_CANCELING_ERROR] = true;\n  error.cancellationCode = code;\n  return error;\n}\nfunction isRedirectingNavigationCancelingError(error) {\n  return isNavigationCancelingError(error) && isUrlTree(error.url);\n}\nfunction isNavigationCancelingError(error) {\n  return !!error && error[NAVIGATION_CANCELING_ERROR];\n}\n\n/**\n * This component is used internally within the router to be a placeholder when an empty\n * router-outlet is needed. For example, with a config such as:\n *\n * `{path: 'parent', outlet: 'nav', children: [...]}`\n *\n * In order to render, there needs to be a component on this config, which will default\n * to this `EmptyOutletComponent`.\n */\nlet ɵEmptyOutletComponent = /*#__PURE__*/(() => {\n  class ɵEmptyOutletComponent {\n    static {\n      this.ɵfac = function ɵEmptyOutletComponent_Factory(t) {\n        return new (t || ɵEmptyOutletComponent)();\n      };\n    }\n    static {\n      this.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n        type: ɵEmptyOutletComponent,\n        selectors: [[\"ng-component\"]],\n        standalone: true,\n        features: [i0.ɵɵStandaloneFeature],\n        decls: 1,\n        vars: 0,\n        template: function _EmptyOutletComponent_Template(rf, ctx) {\n          if (rf & 1) {\n            i0.ɵɵelement(0, \"router-outlet\");\n          }\n        },\n        dependencies: [RouterOutlet],\n        encapsulation: 2\n      });\n    }\n  }\n  return ɵEmptyOutletComponent;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Creates an `EnvironmentInjector` if the `Route` has providers and one does not already exist\n * and returns the injector. Otherwise, if the `Route` does not have `providers`, returns the\n * `currentInjector`.\n *\n * @param route The route that might have providers\n * @param currentInjector The parent injector of the `Route`\n */\nfunction getOrCreateRouteInjectorIfNeeded(route, currentInjector) {\n  if (route.providers && !route._injector) {\n    route._injector = createEnvironmentInjector(route.providers, currentInjector, `Route: ${route.path}`);\n  }\n  return route._injector ?? currentInjector;\n}\nfunction getLoadedRoutes(route) {\n  return route._loadedRoutes;\n}\nfunction getLoadedInjector(route) {\n  return route._loadedInjector;\n}\nfunction getLoadedComponent(route) {\n  return route._loadedComponent;\n}\nfunction getProvidersInjector(route) {\n  return route._injector;\n}\nfunction validateConfig(config, parentPath = '', requireStandaloneComponents = false) {\n  // forEach doesn't iterate undefined values\n  for (let i = 0; i < config.length; i++) {\n    const route = config[i];\n    const fullPath = getFullPath(parentPath, route);\n    validateNode(route, fullPath, requireStandaloneComponents);\n  }\n}\nfunction assertStandalone(fullPath, component) {\n  if (component && ɵisNgModule(component)) {\n    throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}'. You are using 'loadComponent' with a module, ` + `but it must be used with standalone components. Use 'loadChildren' instead.`);\n  } else if (component && !isStandalone(component)) {\n    throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}'. The component must be standalone.`);\n  }\n}\nfunction validateNode(route, fullPath, requireStandaloneComponents) {\n  if (typeof ngDevMode === 'undefined' || ngDevMode) {\n    if (!route) {\n      throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `\n      Invalid configuration of route '${fullPath}': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    `);\n    }\n    if (Array.isArray(route)) {\n      throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': Array cannot be specified`);\n    }\n    if (!route.redirectTo && !route.component && !route.loadComponent && !route.children && !route.loadChildren && route.outlet && route.outlet !== PRIMARY_OUTLET) {\n      throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': a componentless route without children or loadChildren cannot have a named outlet set`);\n    }\n    if (route.redirectTo && route.children) {\n      throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': redirectTo and children cannot be used together`);\n    }\n    if (route.redirectTo && route.loadChildren) {\n      throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': redirectTo and loadChildren cannot be used together`);\n    }\n    if (route.children && route.loadChildren) {\n      throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': children and loadChildren cannot be used together`);\n    }\n    if (route.redirectTo && (route.component || route.loadComponent)) {\n      throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': redirectTo and component/loadComponent cannot be used together`);\n    }\n    if (route.component && route.loadComponent) {\n      throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': component and loadComponent cannot be used together`);\n    }\n    if (route.redirectTo && route.canActivate) {\n      throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': redirectTo and canActivate cannot be used together. Redirects happen before activation ` + `so canActivate will never be executed.`);\n    }\n    if (route.path && route.matcher) {\n      throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': path and matcher cannot be used together`);\n    }\n    if (route.redirectTo === void 0 && !route.component && !route.loadComponent && !route.children && !route.loadChildren) {\n      throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}'. One of the following must be provided: component, loadComponent, redirectTo, children or loadChildren`);\n    }\n    if (route.path === void 0 && route.matcher === void 0) {\n      throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': routes must have either a path or a matcher specified`);\n    }\n    if (typeof route.path === 'string' && route.path.charAt(0) === '/') {\n      throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': path cannot start with a slash`);\n    }\n    if (route.path === '' && route.redirectTo !== void 0 && route.pathMatch === void 0) {\n      const exp = `The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`;\n      throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '{path: \"${fullPath}\", redirectTo: \"${route.redirectTo}\"}': please provide 'pathMatch'. ${exp}`);\n    }\n    if (requireStandaloneComponents) {\n      assertStandalone(fullPath, route.component);\n    }\n  }\n  if (route.children) {\n    validateConfig(route.children, fullPath, requireStandaloneComponents);\n  }\n}\nfunction getFullPath(parentPath, currentRoute) {\n  if (!currentRoute) {\n    return parentPath;\n  }\n  if (!parentPath && !currentRoute.path) {\n    return '';\n  } else if (parentPath && !currentRoute.path) {\n    return `${parentPath}/`;\n  } else if (!parentPath && currentRoute.path) {\n    return currentRoute.path;\n  } else {\n    return `${parentPath}/${currentRoute.path}`;\n  }\n}\n/**\n * Makes a copy of the config and adds any default required properties.\n */\nfunction standardizeConfig(r) {\n  const children = r.children && r.children.map(standardizeConfig);\n  const c = children ? {\n    ...r,\n    children\n  } : {\n    ...r\n  };\n  if (!c.component && !c.loadComponent && (children || c.loadChildren) && c.outlet && c.outlet !== PRIMARY_OUTLET) {\n    c.component = ɵEmptyOutletComponent;\n  }\n  return c;\n}\n/** Returns the `route.outlet` or PRIMARY_OUTLET if none exists. */\nfunction getOutlet(route) {\n  return route.outlet || PRIMARY_OUTLET;\n}\n/**\n * Sorts the `routes` such that the ones with an outlet matching `outletName` come first.\n * The order of the configs is otherwise preserved.\n */\nfunction sortByMatchingOutlets(routes, outletName) {\n  const sortedConfig = routes.filter(r => getOutlet(r) === outletName);\n  sortedConfig.push(...routes.filter(r => getOutlet(r) !== outletName));\n  return sortedConfig;\n}\n/**\n * Gets the first injector in the snapshot's parent tree.\n *\n * If the `Route` has a static list of providers, the returned injector will be the one created from\n * those. If it does not exist, the returned injector may come from the parents, which may be from a\n * loaded config or their static providers.\n *\n * Returns `null` if there is neither this nor any parents have a stored injector.\n *\n * Generally used for retrieving the injector to use for getting tokens for guards/resolvers and\n * also used for getting the correct injector to use for creating components.\n */\nfunction getClosestRouteInjector(snapshot) {\n  if (!snapshot) return null;\n  // If the current route has its own injector, which is created from the static providers on the\n  // route itself, we should use that. Otherwise, we start at the parent since we do not want to\n  // include the lazy loaded injector from this route.\n  if (snapshot.routeConfig?._injector) {\n    return snapshot.routeConfig._injector;\n  }\n  for (let s = snapshot.parent; s; s = s.parent) {\n    const route = s.routeConfig;\n    // Note that the order here is important. `_loadedInjector` stored on the route with\n    // `loadChildren: () => NgModule` so it applies to child routes with priority. The `_injector`\n    // is created from the static providers on that parent route, so it applies to the children as\n    // well, but only if there is no lazy loaded NgModuleRef injector.\n    if (route?._loadedInjector) return route._loadedInjector;\n    if (route?._injector) return route._injector;\n  }\n  return null;\n}\nlet warnedAboutUnsupportedInputBinding = false;\nconst activateRoutes = (rootContexts, routeReuseStrategy, forwardEvent, inputBindingEnabled) => map(t => {\n  new ActivateRoutes(routeReuseStrategy, t.targetRouterState, t.currentRouterState, forwardEvent, inputBindingEnabled).activate(rootContexts);\n  return t;\n});\nclass ActivateRoutes {\n  constructor(routeReuseStrategy, futureState, currState, forwardEvent, inputBindingEnabled) {\n    this.routeReuseStrategy = routeReuseStrategy;\n    this.futureState = futureState;\n    this.currState = currState;\n    this.forwardEvent = forwardEvent;\n    this.inputBindingEnabled = inputBindingEnabled;\n  }\n  activate(parentContexts) {\n    const futureRoot = this.futureState._root;\n    const currRoot = this.currState ? this.currState._root : null;\n    this.deactivateChildRoutes(futureRoot, currRoot, parentContexts);\n    advanceActivatedRoute(this.futureState.root);\n    this.activateChildRoutes(futureRoot, currRoot, parentContexts);\n  }\n  // De-activate the child route that are not re-used for the future state\n  deactivateChildRoutes(futureNode, currNode, contexts) {\n    const children = nodeChildrenAsMap(currNode);\n    // Recurse on the routes active in the future state to de-activate deeper children\n    futureNode.children.forEach(futureChild => {\n      const childOutletName = futureChild.value.outlet;\n      this.deactivateRoutes(futureChild, children[childOutletName], contexts);\n      delete children[childOutletName];\n    });\n    // De-activate the routes that will not be re-used\n    Object.values(children).forEach(v => {\n      this.deactivateRouteAndItsChildren(v, contexts);\n    });\n  }\n  deactivateRoutes(futureNode, currNode, parentContext) {\n    const future = futureNode.value;\n    const curr = currNode ? currNode.value : null;\n    if (future === curr) {\n      // Reusing the node, check to see if the children need to be de-activated\n      if (future.component) {\n        // If we have a normal route, we need to go through an outlet.\n        const context = parentContext.getContext(future.outlet);\n        if (context) {\n          this.deactivateChildRoutes(futureNode, currNode, context.children);\n        }\n      } else {\n        // if we have a componentless route, we recurse but keep the same outlet map.\n        this.deactivateChildRoutes(futureNode, currNode, parentContext);\n      }\n    } else {\n      if (curr) {\n        // Deactivate the current route which will not be re-used\n        this.deactivateRouteAndItsChildren(currNode, parentContext);\n      }\n    }\n  }\n  deactivateRouteAndItsChildren(route, parentContexts) {\n    // If there is no component, the Route is never attached to an outlet (because there is no\n    // component to attach).\n    if (route.value.component && this.routeReuseStrategy.shouldDetach(route.value.snapshot)) {\n      this.detachAndStoreRouteSubtree(route, parentContexts);\n    } else {\n      this.deactivateRouteAndOutlet(route, parentContexts);\n    }\n  }\n  detachAndStoreRouteSubtree(route, parentContexts) {\n    const context = parentContexts.getContext(route.value.outlet);\n    const contexts = context && route.value.component ? context.children : parentContexts;\n    const children = nodeChildrenAsMap(route);\n    for (const treeNode of Object.values(children)) {\n      this.deactivateRouteAndItsChildren(treeNode, contexts);\n    }\n    if (context && context.outlet) {\n      const componentRef = context.outlet.detach();\n      const contexts = context.children.onOutletDeactivated();\n      this.routeReuseStrategy.store(route.value.snapshot, {\n        componentRef,\n        route,\n        contexts\n      });\n    }\n  }\n  deactivateRouteAndOutlet(route, parentContexts) {\n    const context = parentContexts.getContext(route.value.outlet);\n    // The context could be `null` if we are on a componentless route but there may still be\n    // children that need deactivating.\n    const contexts = context && route.value.component ? context.children : parentContexts;\n    const children = nodeChildrenAsMap(route);\n    for (const treeNode of Object.values(children)) {\n      this.deactivateRouteAndItsChildren(treeNode, contexts);\n    }\n    if (context) {\n      if (context.outlet) {\n        // Destroy the component\n        context.outlet.deactivate();\n        // Destroy the contexts for all the outlets that were in the component\n        context.children.onOutletDeactivated();\n      }\n      // Clear the information about the attached component on the context but keep the reference to\n      // the outlet. Clear even if outlet was not yet activated to avoid activating later with old\n      // info\n      context.attachRef = null;\n      context.route = null;\n    }\n  }\n  activateChildRoutes(futureNode, currNode, contexts) {\n    const children = nodeChildrenAsMap(currNode);\n    futureNode.children.forEach(c => {\n      this.activateRoutes(c, children[c.value.outlet], contexts);\n      this.forwardEvent(new ActivationEnd(c.value.snapshot));\n    });\n    if (futureNode.children.length) {\n      this.forwardEvent(new ChildActivationEnd(futureNode.value.snapshot));\n    }\n  }\n  activateRoutes(futureNode, currNode, parentContexts) {\n    const future = futureNode.value;\n    const curr = currNode ? currNode.value : null;\n    advanceActivatedRoute(future);\n    // reusing the node\n    if (future === curr) {\n      if (future.component) {\n        // If we have a normal route, we need to go through an outlet.\n        const context = parentContexts.getOrCreateContext(future.outlet);\n        this.activateChildRoutes(futureNode, currNode, context.children);\n      } else {\n        // if we have a componentless route, we recurse but keep the same outlet map.\n        this.activateChildRoutes(futureNode, currNode, parentContexts);\n      }\n    } else {\n      if (future.component) {\n        // if we have a normal route, we need to place the component into the outlet and recurse.\n        const context = parentContexts.getOrCreateContext(future.outlet);\n        if (this.routeReuseStrategy.shouldAttach(future.snapshot)) {\n          const stored = this.routeReuseStrategy.retrieve(future.snapshot);\n          this.routeReuseStrategy.store(future.snapshot, null);\n          context.children.onOutletReAttached(stored.contexts);\n          context.attachRef = stored.componentRef;\n          context.route = stored.route.value;\n          if (context.outlet) {\n            // Attach right away when the outlet has already been instantiated\n            // Otherwise attach from `RouterOutlet.ngOnInit` when it is instantiated\n            context.outlet.attach(stored.componentRef, stored.route.value);\n          }\n          advanceActivatedRoute(stored.route.value);\n          this.activateChildRoutes(futureNode, null, context.children);\n        } else {\n          const injector = getClosestRouteInjector(future.snapshot);\n          context.attachRef = null;\n          context.route = future;\n          context.injector = injector;\n          if (context.outlet) {\n            // Activate the outlet when it has already been instantiated\n            // Otherwise it will get activated from its `ngOnInit` when instantiated\n            context.outlet.activateWith(future, context.injector);\n          }\n          this.activateChildRoutes(futureNode, null, context.children);\n        }\n      } else {\n        // if we have a componentless route, we recurse but keep the same outlet map.\n        this.activateChildRoutes(futureNode, null, parentContexts);\n      }\n    }\n    if (typeof ngDevMode === 'undefined' || ngDevMode) {\n      const context = parentContexts.getOrCreateContext(future.outlet);\n      const outlet = context.outlet;\n      if (outlet && this.inputBindingEnabled && !outlet.supportsBindingToComponentInputs && !warnedAboutUnsupportedInputBinding) {\n        console.warn(`'withComponentInputBinding' feature is enabled but ` + `this application is using an outlet that may not support binding to component inputs.`);\n        warnedAboutUnsupportedInputBinding = true;\n      }\n    }\n  }\n}\nclass CanActivate {\n  constructor(path) {\n    this.path = path;\n    this.route = this.path[this.path.length - 1];\n  }\n}\nclass CanDeactivate {\n  constructor(component, route) {\n    this.component = component;\n    this.route = route;\n  }\n}\nfunction getAllRouteGuards(future, curr, parentContexts) {\n  const futureRoot = future._root;\n  const currRoot = curr ? curr._root : null;\n  return getChildRouteGuards(futureRoot, currRoot, parentContexts, [futureRoot.value]);\n}\nfunction getCanActivateChild(p) {\n  const canActivateChild = p.routeConfig ? p.routeConfig.canActivateChild : null;\n  if (!canActivateChild || canActivateChild.length === 0) return null;\n  return {\n    node: p,\n    guards: canActivateChild\n  };\n}\nfunction getTokenOrFunctionIdentity(tokenOrFunction, injector) {\n  const NOT_FOUND = Symbol();\n  const result = injector.get(tokenOrFunction, NOT_FOUND);\n  if (result === NOT_FOUND) {\n    if (typeof tokenOrFunction === 'function' && !ɵisInjectable(tokenOrFunction)) {\n      // We think the token is just a function so return it as-is\n      return tokenOrFunction;\n    } else {\n      // This will throw the not found error\n      return injector.get(tokenOrFunction);\n    }\n  }\n  return result;\n}\nfunction getChildRouteGuards(futureNode, currNode, contexts, futurePath, checks = {\n  canDeactivateChecks: [],\n  canActivateChecks: []\n}) {\n  const prevChildren = nodeChildrenAsMap(currNode);\n  // Process the children of the future route\n  futureNode.children.forEach(c => {\n    getRouteGuards(c, prevChildren[c.value.outlet], contexts, futurePath.concat([c.value]), checks);\n    delete prevChildren[c.value.outlet];\n  });\n  // Process any children left from the current route (not active for the future route)\n  Object.entries(prevChildren).forEach(([k, v]) => deactivateRouteAndItsChildren(v, contexts.getContext(k), checks));\n  return checks;\n}\nfunction getRouteGuards(futureNode, currNode, parentContexts, futurePath, checks = {\n  canDeactivateChecks: [],\n  canActivateChecks: []\n}) {\n  const future = futureNode.value;\n  const curr = currNode ? currNode.value : null;\n  const context = parentContexts ? parentContexts.getContext(futureNode.value.outlet) : null;\n  // reusing the node\n  if (curr && future.routeConfig === curr.routeConfig) {\n    const shouldRun = shouldRunGuardsAndResolvers(curr, future, future.routeConfig.runGuardsAndResolvers);\n    if (shouldRun) {\n      checks.canActivateChecks.push(new CanActivate(futurePath));\n    } else {\n      // we need to set the data\n      future.data = curr.data;\n      future._resolvedData = curr._resolvedData;\n    }\n    // If we have a component, we need to go through an outlet.\n    if (future.component) {\n      getChildRouteGuards(futureNode, currNode, context ? context.children : null, futurePath, checks);\n      // if we have a componentless route, we recurse but keep the same outlet map.\n    } else {\n      getChildRouteGuards(futureNode, currNode, parentContexts, futurePath, checks);\n    }\n    if (shouldRun && context && context.outlet && context.outlet.isActivated) {\n      checks.canDeactivateChecks.push(new CanDeactivate(context.outlet.component, curr));\n    }\n  } else {\n    if (curr) {\n      deactivateRouteAndItsChildren(currNode, context, checks);\n    }\n    checks.canActivateChecks.push(new CanActivate(futurePath));\n    // If we have a component, we need to go through an outlet.\n    if (future.component) {\n      getChildRouteGuards(futureNode, null, context ? context.children : null, futurePath, checks);\n      // if we have a componentless route, we recurse but keep the same outlet map.\n    } else {\n      getChildRouteGuards(futureNode, null, parentContexts, futurePath, checks);\n    }\n  }\n  return checks;\n}\nfunction shouldRunGuardsAndResolvers(curr, future, mode) {\n  if (typeof mode === 'function') {\n    return mode(curr, future);\n  }\n  switch (mode) {\n    case 'pathParamsChange':\n      return !equalPath(curr.url, future.url);\n    case 'pathParamsOrQueryParamsChange':\n      return !equalPath(curr.url, future.url) || !shallowEqual(curr.queryParams, future.queryParams);\n    case 'always':\n      return true;\n    case 'paramsOrQueryParamsChange':\n      return !equalParamsAndUrlSegments(curr, future) || !shallowEqual(curr.queryParams, future.queryParams);\n    case 'paramsChange':\n    default:\n      return !equalParamsAndUrlSegments(curr, future);\n  }\n}\nfunction deactivateRouteAndItsChildren(route, context, checks) {\n  const children = nodeChildrenAsMap(route);\n  const r = route.value;\n  Object.entries(children).forEach(([childName, node]) => {\n    if (!r.component) {\n      deactivateRouteAndItsChildren(node, context, checks);\n    } else if (context) {\n      deactivateRouteAndItsChildren(node, context.children.getContext(childName), checks);\n    } else {\n      deactivateRouteAndItsChildren(node, null, checks);\n    }\n  });\n  if (!r.component) {\n    checks.canDeactivateChecks.push(new CanDeactivate(null, r));\n  } else if (context && context.outlet && context.outlet.isActivated) {\n    checks.canDeactivateChecks.push(new CanDeactivate(context.outlet.component, r));\n  } else {\n    checks.canDeactivateChecks.push(new CanDeactivate(null, r));\n  }\n}\n\n/**\n * Simple function check, but generic so type inference will flow. Example:\n *\n * function product(a: number, b: number) {\n *   return a * b;\n * }\n *\n * if (isFunction<product>(fn)) {\n *   return fn(1, 2);\n * } else {\n *   throw \"Must provide the `product` function\";\n * }\n */\nfunction isFunction(v) {\n  return typeof v === 'function';\n}\nfunction isBoolean(v) {\n  return typeof v === 'boolean';\n}\nfunction isCanLoad(guard) {\n  return guard && isFunction(guard.canLoad);\n}\nfunction isCanActivate(guard) {\n  return guard && isFunction(guard.canActivate);\n}\nfunction isCanActivateChild(guard) {\n  return guard && isFunction(guard.canActivateChild);\n}\nfunction isCanDeactivate(guard) {\n  return guard && isFunction(guard.canDeactivate);\n}\nfunction isCanMatch(guard) {\n  return guard && isFunction(guard.canMatch);\n}\nfunction isEmptyError(e) {\n  return e instanceof EmptyError || e?.name === 'EmptyError';\n}\nconst INITIAL_VALUE = /* @__PURE__ */Symbol('INITIAL_VALUE');\nfunction prioritizedGuardValue() {\n  return switchMap(obs => {\n    return combineLatest(obs.map(o => o.pipe(take(1), startWith(INITIAL_VALUE)))).pipe(map(results => {\n      for (const result of results) {\n        if (result === true) {\n          // If result is true, check the next one\n          continue;\n        } else if (result === INITIAL_VALUE) {\n          // If guard has not finished, we need to stop processing.\n          return INITIAL_VALUE;\n        } else if (result === false || result instanceof UrlTree) {\n          // Result finished and was not true. Return the result.\n          // Note that we only allow false/UrlTree. Other values are considered invalid and\n          // ignored.\n          return result;\n        }\n      }\n      // Everything resolved to true. Return true.\n      return true;\n    }), filter(item => item !== INITIAL_VALUE), take(1));\n  });\n}\nfunction checkGuards(injector, forwardEvent) {\n  return mergeMap(t => {\n    const {\n      targetSnapshot,\n      currentSnapshot,\n      guards: {\n        canActivateChecks,\n        canDeactivateChecks\n      }\n    } = t;\n    if (canDeactivateChecks.length === 0 && canActivateChecks.length === 0) {\n      return of({\n        ...t,\n        guardsResult: true\n      });\n    }\n    return runCanDeactivateChecks(canDeactivateChecks, targetSnapshot, currentSnapshot, injector).pipe(mergeMap(canDeactivate => {\n      return canDeactivate && isBoolean(canDeactivate) ? runCanActivateChecks(targetSnapshot, canActivateChecks, injector, forwardEvent) : of(canDeactivate);\n    }), map(guardsResult => ({\n      ...t,\n      guardsResult\n    })));\n  });\n}\nfunction runCanDeactivateChecks(checks, futureRSS, currRSS, injector) {\n  return from(checks).pipe(mergeMap(check => runCanDeactivate(check.component, check.route, currRSS, futureRSS, injector)), first(result => {\n    return result !== true;\n  }, true));\n}\nfunction runCanActivateChecks(futureSnapshot, checks, injector, forwardEvent) {\n  return from(checks).pipe(concatMap(check => {\n    return concat(fireChildActivationStart(check.route.parent, forwardEvent), fireActivationStart(check.route, forwardEvent), runCanActivateChild(futureSnapshot, check.path, injector), runCanActivate(futureSnapshot, check.route, injector));\n  }), first(result => {\n    return result !== true;\n  }, true));\n}\n/**\n * This should fire off `ActivationStart` events for each route being activated at this\n * level.\n * In other words, if you're activating `a` and `b` below, `path` will contain the\n * `ActivatedRouteSnapshot`s for both and we will fire `ActivationStart` for both. Always\n * return\n * `true` so checks continue to run.\n */\nfunction fireActivationStart(snapshot, forwardEvent) {\n  if (snapshot !== null && forwardEvent) {\n    forwardEvent(new ActivationStart(snapshot));\n  }\n  return of(true);\n}\n/**\n * This should fire off `ChildActivationStart` events for each route being activated at this\n * level.\n * In other words, if you're activating `a` and `b` below, `path` will contain the\n * `ActivatedRouteSnapshot`s for both and we will fire `ChildActivationStart` for both. Always\n * return\n * `true` so checks continue to run.\n */\nfunction fireChildActivationStart(snapshot, forwardEvent) {\n  if (snapshot !== null && forwardEvent) {\n    forwardEvent(new ChildActivationStart(snapshot));\n  }\n  return of(true);\n}\nfunction runCanActivate(futureRSS, futureARS, injector) {\n  const canActivate = futureARS.routeConfig ? futureARS.routeConfig.canActivate : null;\n  if (!canActivate || canActivate.length === 0) return of(true);\n  const canActivateObservables = canActivate.map(canActivate => {\n    return defer(() => {\n      const closestInjector = getClosestRouteInjector(futureARS) ?? injector;\n      const guard = getTokenOrFunctionIdentity(canActivate, closestInjector);\n      const guardVal = isCanActivate(guard) ? guard.canActivate(futureARS, futureRSS) : runInInjectionContext(closestInjector, () => guard(futureARS, futureRSS));\n      return wrapIntoObservable(guardVal).pipe(first());\n    });\n  });\n  return of(canActivateObservables).pipe(prioritizedGuardValue());\n}\nfunction runCanActivateChild(futureRSS, path, injector) {\n  const futureARS = path[path.length - 1];\n  const canActivateChildGuards = path.slice(0, path.length - 1).reverse().map(p => getCanActivateChild(p)).filter(_ => _ !== null);\n  const canActivateChildGuardsMapped = canActivateChildGuards.map(d => {\n    return defer(() => {\n      const guardsMapped = d.guards.map(canActivateChild => {\n        const closestInjector = getClosestRouteInjector(d.node) ?? injector;\n        const guard = getTokenOrFunctionIdentity(canActivateChild, closestInjector);\n        const guardVal = isCanActivateChild(guard) ? guard.canActivateChild(futureARS, futureRSS) : runInInjectionContext(closestInjector, () => guard(futureARS, futureRSS));\n        return wrapIntoObservable(guardVal).pipe(first());\n      });\n      return of(guardsMapped).pipe(prioritizedGuardValue());\n    });\n  });\n  return of(canActivateChildGuardsMapped).pipe(prioritizedGuardValue());\n}\nfunction runCanDeactivate(component, currARS, currRSS, futureRSS, injector) {\n  const canDeactivate = currARS && currARS.routeConfig ? currARS.routeConfig.canDeactivate : null;\n  if (!canDeactivate || canDeactivate.length === 0) return of(true);\n  const canDeactivateObservables = canDeactivate.map(c => {\n    const closestInjector = getClosestRouteInjector(currARS) ?? injector;\n    const guard = getTokenOrFunctionIdentity(c, closestInjector);\n    const guardVal = isCanDeactivate(guard) ? guard.canDeactivate(component, currARS, currRSS, futureRSS) : runInInjectionContext(closestInjector, () => guard(component, currARS, currRSS, futureRSS));\n    return wrapIntoObservable(guardVal).pipe(first());\n  });\n  return of(canDeactivateObservables).pipe(prioritizedGuardValue());\n}\nfunction runCanLoadGuards(injector, route, segments, urlSerializer) {\n  const canLoad = route.canLoad;\n  if (canLoad === undefined || canLoad.length === 0) {\n    return of(true);\n  }\n  const canLoadObservables = canLoad.map(injectionToken => {\n    const guard = getTokenOrFunctionIdentity(injectionToken, injector);\n    const guardVal = isCanLoad(guard) ? guard.canLoad(route, segments) : runInInjectionContext(injector, () => guard(route, segments));\n    return wrapIntoObservable(guardVal);\n  });\n  return of(canLoadObservables).pipe(prioritizedGuardValue(), redirectIfUrlTree(urlSerializer));\n}\nfunction redirectIfUrlTree(urlSerializer) {\n  return pipe(tap(result => {\n    if (!isUrlTree(result)) return;\n    throw redirectingNavigationError(urlSerializer, result);\n  }), map(result => result === true));\n}\nfunction runCanMatchGuards(injector, route, segments, urlSerializer) {\n  const canMatch = route.canMatch;\n  if (!canMatch || canMatch.length === 0) return of(true);\n  const canMatchObservables = canMatch.map(injectionToken => {\n    const guard = getTokenOrFunctionIdentity(injectionToken, injector);\n    const guardVal = isCanMatch(guard) ? guard.canMatch(route, segments) : runInInjectionContext(injector, () => guard(route, segments));\n    return wrapIntoObservable(guardVal);\n  });\n  return of(canMatchObservables).pipe(prioritizedGuardValue(), redirectIfUrlTree(urlSerializer));\n}\nclass NoMatch {\n  constructor(segmentGroup) {\n    this.segmentGroup = segmentGroup || null;\n  }\n}\nclass AbsoluteRedirect extends Error {\n  constructor(urlTree) {\n    super();\n    this.urlTree = urlTree;\n  }\n}\nfunction noMatch$1(segmentGroup) {\n  return throwError(new NoMatch(segmentGroup));\n}\nfunction absoluteRedirect(newTree) {\n  return throwError(new AbsoluteRedirect(newTree));\n}\nfunction namedOutletsRedirect(redirectTo) {\n  return throwError(new ɵRuntimeError(4000 /* RuntimeErrorCode.NAMED_OUTLET_REDIRECT */, (typeof ngDevMode === 'undefined' || ngDevMode) && `Only absolute redirects can have named outlets. redirectTo: '${redirectTo}'`));\n}\nfunction canLoadFails(route) {\n  return throwError(navigationCancelingError((typeof ngDevMode === 'undefined' || ngDevMode) && `Cannot load children because the guard of the route \"path: '${route.path}'\" returned false`, NavigationCancellationCode.GuardRejected));\n}\nclass ApplyRedirects {\n  constructor(urlSerializer, urlTree) {\n    this.urlSerializer = urlSerializer;\n    this.urlTree = urlTree;\n  }\n  lineralizeSegments(route, urlTree) {\n    let res = [];\n    let c = urlTree.root;\n    while (true) {\n      res = res.concat(c.segments);\n      if (c.numberOfChildren === 0) {\n        return of(res);\n      }\n      if (c.numberOfChildren > 1 || !c.children[PRIMARY_OUTLET]) {\n        return namedOutletsRedirect(route.redirectTo);\n      }\n      c = c.children[PRIMARY_OUTLET];\n    }\n  }\n  applyRedirectCommands(segments, redirectTo, posParams) {\n    const newTree = this.applyRedirectCreateUrlTree(redirectTo, this.urlSerializer.parse(redirectTo), segments, posParams);\n    if (redirectTo.startsWith('/')) {\n      throw new AbsoluteRedirect(newTree);\n    }\n    return newTree;\n  }\n  applyRedirectCreateUrlTree(redirectTo, urlTree, segments, posParams) {\n    const newRoot = this.createSegmentGroup(redirectTo, urlTree.root, segments, posParams);\n    return new UrlTree(newRoot, this.createQueryParams(urlTree.queryParams, this.urlTree.queryParams), urlTree.fragment);\n  }\n  createQueryParams(redirectToParams, actualParams) {\n    const res = {};\n    Object.entries(redirectToParams).forEach(([k, v]) => {\n      const copySourceValue = typeof v === 'string' && v.startsWith(':');\n      if (copySourceValue) {\n        const sourceName = v.substring(1);\n        res[k] = actualParams[sourceName];\n      } else {\n        res[k] = v;\n      }\n    });\n    return res;\n  }\n  createSegmentGroup(redirectTo, group, segments, posParams) {\n    const updatedSegments = this.createSegments(redirectTo, group.segments, segments, posParams);\n    let children = {};\n    Object.entries(group.children).forEach(([name, child]) => {\n      children[name] = this.createSegmentGroup(redirectTo, child, segments, posParams);\n    });\n    return new UrlSegmentGroup(updatedSegments, children);\n  }\n  createSegments(redirectTo, redirectToSegments, actualSegments, posParams) {\n    return redirectToSegments.map(s => s.path.startsWith(':') ? this.findPosParam(redirectTo, s, posParams) : this.findOrReturn(s, actualSegments));\n  }\n  findPosParam(redirectTo, redirectToUrlSegment, posParams) {\n    const pos = posParams[redirectToUrlSegment.path.substring(1)];\n    if (!pos) throw new ɵRuntimeError(4001 /* RuntimeErrorCode.MISSING_REDIRECT */, (typeof ngDevMode === 'undefined' || ngDevMode) && `Cannot redirect to '${redirectTo}'. Cannot find '${redirectToUrlSegment.path}'.`);\n    return pos;\n  }\n  findOrReturn(redirectToUrlSegment, actualSegments) {\n    let idx = 0;\n    for (const s of actualSegments) {\n      if (s.path === redirectToUrlSegment.path) {\n        actualSegments.splice(idx);\n        return s;\n      }\n      idx++;\n    }\n    return redirectToUrlSegment;\n  }\n}\nconst noMatch = {\n  matched: false,\n  consumedSegments: [],\n  remainingSegments: [],\n  parameters: {},\n  positionalParamSegments: {}\n};\nfunction matchWithChecks(segmentGroup, route, segments, injector, urlSerializer) {\n  const result = match(segmentGroup, route, segments);\n  if (!result.matched) {\n    return of(result);\n  }\n  // Only create the Route's `EnvironmentInjector` if it matches the attempted\n  // navigation\n  injector = getOrCreateRouteInjectorIfNeeded(route, injector);\n  return runCanMatchGuards(injector, route, segments, urlSerializer).pipe(map(v => v === true ? result : {\n    ...noMatch\n  }));\n}\nfunction match(segmentGroup, route, segments) {\n  if (route.path === '**') {\n    return createWildcardMatchResult(segments);\n  }\n  if (route.path === '') {\n    if (route.pathMatch === 'full' && (segmentGroup.hasChildren() || segments.length > 0)) {\n      return {\n        ...noMatch\n      };\n    }\n    return {\n      matched: true,\n      consumedSegments: [],\n      remainingSegments: segments,\n      parameters: {},\n      positionalParamSegments: {}\n    };\n  }\n  const matcher = route.matcher || defaultUrlMatcher;\n  const res = matcher(segments, segmentGroup, route);\n  if (!res) return {\n    ...noMatch\n  };\n  const posParams = {};\n  Object.entries(res.posParams ?? {}).forEach(([k, v]) => {\n    posParams[k] = v.path;\n  });\n  const parameters = res.consumed.length > 0 ? {\n    ...posParams,\n    ...res.consumed[res.consumed.length - 1].parameters\n  } : posParams;\n  return {\n    matched: true,\n    consumedSegments: res.consumed,\n    remainingSegments: segments.slice(res.consumed.length),\n    // TODO(atscott): investigate combining parameters and positionalParamSegments\n    parameters,\n    positionalParamSegments: res.posParams ?? {}\n  };\n}\nfunction createWildcardMatchResult(segments) {\n  return {\n    matched: true,\n    parameters: segments.length > 0 ? last(segments).parameters : {},\n    consumedSegments: segments,\n    remainingSegments: [],\n    positionalParamSegments: {}\n  };\n}\nfunction split(segmentGroup, consumedSegments, slicedSegments, config) {\n  if (slicedSegments.length > 0 && containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, config)) {\n    const s = new UrlSegmentGroup(consumedSegments, createChildrenForEmptyPaths(config, new UrlSegmentGroup(slicedSegments, segmentGroup.children)));\n    return {\n      segmentGroup: s,\n      slicedSegments: []\n    };\n  }\n  if (slicedSegments.length === 0 && containsEmptyPathMatches(segmentGroup, slicedSegments, config)) {\n    const s = new UrlSegmentGroup(segmentGroup.segments, addEmptyPathsToChildrenIfNeeded(segmentGroup, slicedSegments, config, segmentGroup.children));\n    return {\n      segmentGroup: s,\n      slicedSegments\n    };\n  }\n  const s = new UrlSegmentGroup(segmentGroup.segments, segmentGroup.children);\n  return {\n    segmentGroup: s,\n    slicedSegments\n  };\n}\nfunction addEmptyPathsToChildrenIfNeeded(segmentGroup, slicedSegments, routes, children) {\n  const res = {};\n  for (const r of routes) {\n    if (emptyPathMatch(segmentGroup, slicedSegments, r) && !children[getOutlet(r)]) {\n      const s = new UrlSegmentGroup([], {});\n      res[getOutlet(r)] = s;\n    }\n  }\n  return {\n    ...children,\n    ...res\n  };\n}\nfunction createChildrenForEmptyPaths(routes, primarySegment) {\n  const res = {};\n  res[PRIMARY_OUTLET] = primarySegment;\n  for (const r of routes) {\n    if (r.path === '' && getOutlet(r) !== PRIMARY_OUTLET) {\n      const s = new UrlSegmentGroup([], {});\n      res[getOutlet(r)] = s;\n    }\n  }\n  return res;\n}\nfunction containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, routes) {\n  return routes.some(r => emptyPathMatch(segmentGroup, slicedSegments, r) && getOutlet(r) !== PRIMARY_OUTLET);\n}\nfunction containsEmptyPathMatches(segmentGroup, slicedSegments, routes) {\n  return routes.some(r => emptyPathMatch(segmentGroup, slicedSegments, r));\n}\nfunction emptyPathMatch(segmentGroup, slicedSegments, r) {\n  if ((segmentGroup.hasChildren() || slicedSegments.length > 0) && r.pathMatch === 'full') {\n    return false;\n  }\n  return r.path === '';\n}\n/**\n * Determines if `route` is a path match for the `rawSegment`, `segments`, and `outlet` without\n * verifying that its children are a full match for the remainder of the `rawSegment` children as\n * well.\n */\nfunction isImmediateMatch(route, rawSegment, segments, outlet) {\n  // We allow matches to empty paths when the outlets differ so we can match a url like `/(b:b)` to\n  // a config like\n  // * `{path: '', children: [{path: 'b', outlet: 'b'}]}`\n  // or even\n  // * `{path: '', outlet: 'a', children: [{path: 'b', outlet: 'b'}]`\n  //\n  // The exception here is when the segment outlet is for the primary outlet. This would\n  // result in a match inside the named outlet because all children there are written as primary\n  // outlets. So we need to prevent child named outlet matches in a url like `/b` in a config like\n  // * `{path: '', outlet: 'x' children: [{path: 'b'}]}`\n  // This should only match if the url is `/(x:b)`.\n  if (getOutlet(route) !== outlet && (outlet === PRIMARY_OUTLET || !emptyPathMatch(rawSegment, segments, route))) {\n    return false;\n  }\n  return match(rawSegment, route, segments).matched;\n}\nfunction noLeftoversInUrl(segmentGroup, segments, outlet) {\n  return segments.length === 0 && !segmentGroup.children[outlet];\n}\n\n/**\n * Class used to indicate there were no additional route config matches but that all segments of\n * the URL were consumed during matching so the route was URL matched. When this happens, we still\n * try to match child configs in case there are empty path children.\n */\nclass NoLeftoversInUrl {}\nfunction recognize$1(injector, configLoader, rootComponentType, config, urlTree, urlSerializer, paramsInheritanceStrategy = 'emptyOnly') {\n  return new Recognizer(injector, configLoader, rootComponentType, config, urlTree, paramsInheritanceStrategy, urlSerializer).recognize();\n}\nconst MAX_ALLOWED_REDIRECTS = 31;\nclass Recognizer {\n  constructor(injector, configLoader, rootComponentType, config, urlTree, paramsInheritanceStrategy, urlSerializer) {\n    this.injector = injector;\n    this.configLoader = configLoader;\n    this.rootComponentType = rootComponentType;\n    this.config = config;\n    this.urlTree = urlTree;\n    this.paramsInheritanceStrategy = paramsInheritanceStrategy;\n    this.urlSerializer = urlSerializer;\n    this.applyRedirects = new ApplyRedirects(this.urlSerializer, this.urlTree);\n    this.absoluteRedirectCount = 0;\n    this.allowRedirects = true;\n  }\n  noMatchError(e) {\n    return new ɵRuntimeError(4002 /* RuntimeErrorCode.NO_MATCH */, typeof ngDevMode === 'undefined' || ngDevMode ? `Cannot match any routes. URL Segment: '${e.segmentGroup}'` : `'${e.segmentGroup}'`);\n  }\n  recognize() {\n    const rootSegmentGroup = split(this.urlTree.root, [], [], this.config).segmentGroup;\n    return this.match(rootSegmentGroup).pipe(map(children => {\n      // Use Object.freeze to prevent readers of the Router state from modifying it outside\n      // of a navigation, resulting in the router being out of sync with the browser.\n      const root = new ActivatedRouteSnapshot([], Object.freeze({}), Object.freeze({\n        ...this.urlTree.queryParams\n      }), this.urlTree.fragment, {}, PRIMARY_OUTLET, this.rootComponentType, null, {});\n      const rootNode = new TreeNode(root, children);\n      const routeState = new RouterStateSnapshot('', rootNode);\n      const tree = createUrlTreeFromSnapshot(root, [], this.urlTree.queryParams, this.urlTree.fragment);\n      // https://github.com/angular/angular/issues/47307\n      // Creating the tree stringifies the query params\n      // We don't want to do this here so reassign them to the original.\n      tree.queryParams = this.urlTree.queryParams;\n      routeState.url = this.urlSerializer.serialize(tree);\n      this.inheritParamsAndData(routeState._root, null);\n      return {\n        state: routeState,\n        tree\n      };\n    }));\n  }\n  match(rootSegmentGroup) {\n    const expanded$ = this.processSegmentGroup(this.injector, this.config, rootSegmentGroup, PRIMARY_OUTLET);\n    return expanded$.pipe(catchError(e => {\n      if (e instanceof AbsoluteRedirect) {\n        this.urlTree = e.urlTree;\n        return this.match(e.urlTree.root);\n      }\n      if (e instanceof NoMatch) {\n        throw this.noMatchError(e);\n      }\n      throw e;\n    }));\n  }\n  inheritParamsAndData(routeNode, parent) {\n    const route = routeNode.value;\n    const i = getInherited(route, parent, this.paramsInheritanceStrategy);\n    route.params = Object.freeze(i.params);\n    route.data = Object.freeze(i.data);\n    routeNode.children.forEach(n => this.inheritParamsAndData(n, route));\n  }\n  processSegmentGroup(injector, config, segmentGroup, outlet) {\n    if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {\n      return this.processChildren(injector, config, segmentGroup);\n    }\n    return this.processSegment(injector, config, segmentGroup, segmentGroup.segments, outlet, true).pipe(map(child => child instanceof TreeNode ? [child] : []));\n  }\n  /**\n   * Matches every child outlet in the `segmentGroup` to a `Route` in the config. Returns `null` if\n   * we cannot find a match for _any_ of the children.\n   *\n   * @param config - The `Routes` to match against\n   * @param segmentGroup - The `UrlSegmentGroup` whose children need to be matched against the\n   *     config.\n   */\n  processChildren(injector, config, segmentGroup) {\n    // Expand outlets one at a time, starting with the primary outlet. We need to do it this way\n    // because an absolute redirect from the primary outlet takes precedence.\n    const childOutlets = [];\n    for (const child of Object.keys(segmentGroup.children)) {\n      if (child === 'primary') {\n        childOutlets.unshift(child);\n      } else {\n        childOutlets.push(child);\n      }\n    }\n    return from(childOutlets).pipe(concatMap(childOutlet => {\n      const child = segmentGroup.children[childOutlet];\n      // Sort the config so that routes with outlets that match the one being activated\n      // appear first, followed by routes for other outlets, which might match if they have\n      // an empty path.\n      const sortedConfig = sortByMatchingOutlets(config, childOutlet);\n      return this.processSegmentGroup(injector, sortedConfig, child, childOutlet);\n    }), scan((children, outletChildren) => {\n      children.push(...outletChildren);\n      return children;\n    }), defaultIfEmpty(null), last$1(), mergeMap(children => {\n      if (children === null) return noMatch$1(segmentGroup);\n      // Because we may have matched two outlets to the same empty path segment, we can have\n      // multiple activated results for the same outlet. We should merge the children of\n      // these results so the final return value is only one `TreeNode` per outlet.\n      const mergedChildren = mergeEmptyPathMatches(children);\n      if (typeof ngDevMode === 'undefined' || ngDevMode) {\n        // This should really never happen - we are only taking the first match for each\n        // outlet and merge the empty path matches.\n        checkOutletNameUniqueness(mergedChildren);\n      }\n      sortActivatedRouteSnapshots(mergedChildren);\n      return of(mergedChildren);\n    }));\n  }\n  processSegment(injector, routes, segmentGroup, segments, outlet, allowRedirects) {\n    return from(routes).pipe(concatMap(r => {\n      return this.processSegmentAgainstRoute(r._injector ?? injector, routes, r, segmentGroup, segments, outlet, allowRedirects).pipe(catchError(e => {\n        if (e instanceof NoMatch) {\n          return of(null);\n        }\n        throw e;\n      }));\n    }), first(x => !!x), catchError(e => {\n      if (isEmptyError(e)) {\n        if (noLeftoversInUrl(segmentGroup, segments, outlet)) {\n          return of(new NoLeftoversInUrl());\n        }\n        return noMatch$1(segmentGroup);\n      }\n      throw e;\n    }));\n  }\n  processSegmentAgainstRoute(injector, routes, route, rawSegment, segments, outlet, allowRedirects) {\n    if (!isImmediateMatch(route, rawSegment, segments, outlet)) return noMatch$1(rawSegment);\n    if (route.redirectTo === undefined) {\n      return this.matchSegmentAgainstRoute(injector, rawSegment, route, segments, outlet);\n    }\n    if (this.allowRedirects && allowRedirects) {\n      return this.expandSegmentAgainstRouteUsingRedirect(injector, rawSegment, routes, route, segments, outlet);\n    }\n    return noMatch$1(rawSegment);\n  }\n  expandSegmentAgainstRouteUsingRedirect(injector, segmentGroup, routes, route, segments, outlet) {\n    const {\n      matched,\n      consumedSegments,\n      positionalParamSegments,\n      remainingSegments\n    } = match(segmentGroup, route, segments);\n    if (!matched) return noMatch$1(segmentGroup);\n    // TODO(atscott): Move all of this under an if(ngDevMode) as a breaking change and allow stack\n    // size exceeded in production\n    if (route.redirectTo.startsWith('/')) {\n      this.absoluteRedirectCount++;\n      if (this.absoluteRedirectCount > MAX_ALLOWED_REDIRECTS) {\n        if (ngDevMode) {\n          throw new ɵRuntimeError(4016 /* RuntimeErrorCode.INFINITE_REDIRECT */, `Detected possible infinite redirect when redirecting from '${this.urlTree}' to '${route.redirectTo}'.\\n` + `This is currently a dev mode only error but will become a` + ` call stack size exceeded error in production in a future major version.`);\n        }\n        this.allowRedirects = false;\n      }\n    }\n    const newTree = this.applyRedirects.applyRedirectCommands(consumedSegments, route.redirectTo, positionalParamSegments);\n    return this.applyRedirects.lineralizeSegments(route, newTree).pipe(mergeMap(newSegments => {\n      return this.processSegment(injector, routes, segmentGroup, newSegments.concat(remainingSegments), outlet, false);\n    }));\n  }\n  matchSegmentAgainstRoute(injector, rawSegment, route, segments, outlet) {\n    const matchResult = matchWithChecks(rawSegment, route, segments, injector, this.urlSerializer);\n    if (route.path === '**') {\n      // Prior versions of the route matching algorithm would stop matching at the wildcard route.\n      // We should investigate a better strategy for any existing children. Otherwise, these\n      // child segments are silently dropped from the navigation.\n      // https://github.com/angular/angular/issues/40089\n      rawSegment.children = {};\n    }\n    return matchResult.pipe(switchMap(result => {\n      if (!result.matched) {\n        return noMatch$1(rawSegment);\n      }\n      // If the route has an injector created from providers, we should start using that.\n      injector = route._injector ?? injector;\n      return this.getChildConfig(injector, route, segments).pipe(switchMap(({\n        routes: childConfig\n      }) => {\n        const childInjector = route._loadedInjector ?? injector;\n        const {\n          consumedSegments,\n          remainingSegments,\n          parameters\n        } = result;\n        const snapshot = new ActivatedRouteSnapshot(consumedSegments, parameters, Object.freeze({\n          ...this.urlTree.queryParams\n        }), this.urlTree.fragment, getData(route), getOutlet(route), route.component ?? route._loadedComponent ?? null, route, getResolve(route));\n        const {\n          segmentGroup,\n          slicedSegments\n        } = split(rawSegment, consumedSegments, remainingSegments, childConfig);\n        if (slicedSegments.length === 0 && segmentGroup.hasChildren()) {\n          return this.processChildren(childInjector, childConfig, segmentGroup).pipe(map(children => {\n            if (children === null) {\n              return null;\n            }\n            return new TreeNode(snapshot, children);\n          }));\n        }\n        if (childConfig.length === 0 && slicedSegments.length === 0) {\n          return of(new TreeNode(snapshot, []));\n        }\n        const matchedOnOutlet = getOutlet(route) === outlet;\n        // If we matched a config due to empty path match on a different outlet, we need to\n        // continue passing the current outlet for the segment rather than switch to PRIMARY.\n        // Note that we switch to primary when we have a match because outlet configs look like\n        // this: {path: 'a', outlet: 'a', children: [\n        //  {path: 'b', component: B},\n        //  {path: 'c', component: C},\n        // ]}\n        // Notice that the children of the named outlet are configured with the primary outlet\n        return this.processSegment(childInjector, childConfig, segmentGroup, slicedSegments, matchedOnOutlet ? PRIMARY_OUTLET : outlet, true).pipe(map(child => {\n          return new TreeNode(snapshot, child instanceof TreeNode ? [child] : []);\n        }));\n      }));\n    }));\n  }\n  getChildConfig(injector, route, segments) {\n    if (route.children) {\n      // The children belong to the same module\n      return of({\n        routes: route.children,\n        injector\n      });\n    }\n    if (route.loadChildren) {\n      // lazy children belong to the loaded module\n      if (route._loadedRoutes !== undefined) {\n        return of({\n          routes: route._loadedRoutes,\n          injector: route._loadedInjector\n        });\n      }\n      return runCanLoadGuards(injector, route, segments, this.urlSerializer).pipe(mergeMap(shouldLoadResult => {\n        if (shouldLoadResult) {\n          return this.configLoader.loadChildren(injector, route).pipe(tap(cfg => {\n            route._loadedRoutes = cfg.routes;\n            route._loadedInjector = cfg.injector;\n          }));\n        }\n        return canLoadFails(route);\n      }));\n    }\n    return of({\n      routes: [],\n      injector\n    });\n  }\n}\nfunction sortActivatedRouteSnapshots(nodes) {\n  nodes.sort((a, b) => {\n    if (a.value.outlet === PRIMARY_OUTLET) return -1;\n    if (b.value.outlet === PRIMARY_OUTLET) return 1;\n    return a.value.outlet.localeCompare(b.value.outlet);\n  });\n}\nfunction hasEmptyPathConfig(node) {\n  const config = node.value.routeConfig;\n  return config && config.path === '';\n}\n/**\n * Finds `TreeNode`s with matching empty path route configs and merges them into `TreeNode` with\n * the children from each duplicate. This is necessary because different outlets can match a\n * single empty path route config and the results need to then be merged.\n */\nfunction mergeEmptyPathMatches(nodes) {\n  const result = [];\n  // The set of nodes which contain children that were merged from two duplicate empty path nodes.\n  const mergedNodes = new Set();\n  for (const node of nodes) {\n    if (!hasEmptyPathConfig(node)) {\n      result.push(node);\n      continue;\n    }\n    const duplicateEmptyPathNode = result.find(resultNode => node.value.routeConfig === resultNode.value.routeConfig);\n    if (duplicateEmptyPathNode !== undefined) {\n      duplicateEmptyPathNode.children.push(...node.children);\n      mergedNodes.add(duplicateEmptyPathNode);\n    } else {\n      result.push(node);\n    }\n  }\n  // For each node which has children from multiple sources, we need to recompute a new `TreeNode`\n  // by also merging those children. This is necessary when there are multiple empty path configs\n  // in a row. Put another way: whenever we combine children of two nodes, we need to also check\n  // if any of those children can be combined into a single node as well.\n  for (const mergedNode of mergedNodes) {\n    const mergedChildren = mergeEmptyPathMatches(mergedNode.children);\n    result.push(new TreeNode(mergedNode.value, mergedChildren));\n  }\n  return result.filter(n => !mergedNodes.has(n));\n}\nfunction checkOutletNameUniqueness(nodes) {\n  const names = {};\n  nodes.forEach(n => {\n    const routeWithSameOutletName = names[n.value.outlet];\n    if (routeWithSameOutletName) {\n      const p = routeWithSameOutletName.url.map(s => s.toString()).join('/');\n      const c = n.value.url.map(s => s.toString()).join('/');\n      throw new ɵRuntimeError(4006 /* RuntimeErrorCode.TWO_SEGMENTS_WITH_SAME_OUTLET */, (typeof ngDevMode === 'undefined' || ngDevMode) && `Two segments cannot have the same outlet name: '${p}' and '${c}'.`);\n    }\n    names[n.value.outlet] = n.value;\n  });\n}\nfunction getData(route) {\n  return route.data || {};\n}\nfunction getResolve(route) {\n  return route.resolve || {};\n}\nfunction recognize(injector, configLoader, rootComponentType, config, serializer, paramsInheritanceStrategy) {\n  return mergeMap(t => recognize$1(injector, configLoader, rootComponentType, config, t.extractedUrl, serializer, paramsInheritanceStrategy).pipe(map(({\n    state: targetSnapshot,\n    tree: urlAfterRedirects\n  }) => {\n    return {\n      ...t,\n      targetSnapshot,\n      urlAfterRedirects\n    };\n  })));\n}\nfunction resolveData(paramsInheritanceStrategy, injector) {\n  return mergeMap(t => {\n    const {\n      targetSnapshot,\n      guards: {\n        canActivateChecks\n      }\n    } = t;\n    if (!canActivateChecks.length) {\n      return of(t);\n    }\n    // Iterating a Set in javascript  happens in insertion order so it is safe to use a `Set` to\n    // preserve the correct order that the resolvers should run in.\n    // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set#description\n    const routesWithResolversToRun = new Set(canActivateChecks.map(check => check.route));\n    const routesNeedingDataUpdates = new Set();\n    for (const route of routesWithResolversToRun) {\n      if (routesNeedingDataUpdates.has(route)) {\n        continue;\n      }\n      // All children under the route with a resolver to run need to recompute inherited data.\n      for (const newRoute of flattenRouteTree(route)) {\n        routesNeedingDataUpdates.add(newRoute);\n      }\n    }\n    let routesProcessed = 0;\n    return from(routesNeedingDataUpdates).pipe(concatMap(route => {\n      if (routesWithResolversToRun.has(route)) {\n        return runResolve(route, targetSnapshot, paramsInheritanceStrategy, injector);\n      } else {\n        route.data = getInherited(route, route.parent, paramsInheritanceStrategy).resolve;\n        return of(void 0);\n      }\n    }), tap(() => routesProcessed++), takeLast(1), mergeMap(_ => routesProcessed === routesNeedingDataUpdates.size ? of(t) : EMPTY));\n  });\n}\n/**\n *  Returns the `ActivatedRouteSnapshot` tree as an array, using DFS to traverse the route tree.\n */\nfunction flattenRouteTree(route) {\n  const descendants = route.children.map(child => flattenRouteTree(child)).flat();\n  return [route, ...descendants];\n}\nfunction runResolve(futureARS, futureRSS, paramsInheritanceStrategy, injector) {\n  const config = futureARS.routeConfig;\n  const resolve = futureARS._resolve;\n  if (config?.title !== undefined && !hasStaticTitle(config)) {\n    resolve[RouteTitleKey] = config.title;\n  }\n  return resolveNode(resolve, futureARS, futureRSS, injector).pipe(map(resolvedData => {\n    futureARS._resolvedData = resolvedData;\n    futureARS.data = getInherited(futureARS, futureARS.parent, paramsInheritanceStrategy).resolve;\n    return null;\n  }));\n}\nfunction resolveNode(resolve, futureARS, futureRSS, injector) {\n  const keys = getDataKeys(resolve);\n  if (keys.length === 0) {\n    return of({});\n  }\n  const data = {};\n  return from(keys).pipe(mergeMap(key => getResolver(resolve[key], futureARS, futureRSS, injector).pipe(first(), tap(value => {\n    data[key] = value;\n  }))), takeLast(1), mapTo(data), catchError(e => isEmptyError(e) ? EMPTY : throwError(e)));\n}\nfunction getResolver(injectionToken, futureARS, futureRSS, injector) {\n  const closestInjector = getClosestRouteInjector(futureARS) ?? injector;\n  const resolver = getTokenOrFunctionIdentity(injectionToken, closestInjector);\n  const resolverValue = resolver.resolve ? resolver.resolve(futureARS, futureRSS) : runInInjectionContext(closestInjector, () => resolver(futureARS, futureRSS));\n  return wrapIntoObservable(resolverValue);\n}\n\n/**\n * Perform a side effect through a switchMap for every emission on the source Observable,\n * but return an Observable that is identical to the source. It's essentially the same as\n * the `tap` operator, but if the side effectful `next` function returns an ObservableInput,\n * it will wait before continuing with the original value.\n */\nfunction switchTap(next) {\n  return switchMap(v => {\n    const nextResult = next(v);\n    if (nextResult) {\n      return from(nextResult).pipe(map(() => v));\n    }\n    return of(v);\n  });\n}\n\n/**\n * Provides a strategy for setting the page title after a router navigation.\n *\n * The built-in implementation traverses the router state snapshot and finds the deepest primary\n * outlet with `title` property. Given the `Routes` below, navigating to\n * `/base/child(popup:aux)` would result in the document title being set to \"child\".\n * ```\n * [\n *   {path: 'base', title: 'base', children: [\n *     {path: 'child', title: 'child'},\n *   ],\n *   {path: 'aux', outlet: 'popup', title: 'popupTitle'}\n * ]\n * ```\n *\n * This class can be used as a base class for custom title strategies. That is, you can create your\n * own class that extends the `TitleStrategy`. Note that in the above example, the `title`\n * from the named outlet is never used. However, a custom strategy might be implemented to\n * incorporate titles in named outlets.\n *\n * @publicApi\n * @see [Page title guide](guide/router#setting-the-page-title)\n */\nlet TitleStrategy = /*#__PURE__*/(() => {\n  class TitleStrategy {\n    /**\n     * @returns The `title` of the deepest primary route.\n     */\n    buildTitle(snapshot) {\n      let pageTitle;\n      let route = snapshot.root;\n      while (route !== undefined) {\n        pageTitle = this.getResolvedTitleForRoute(route) ?? pageTitle;\n        route = route.children.find(child => child.outlet === PRIMARY_OUTLET);\n      }\n      return pageTitle;\n    }\n    /**\n     * Given an `ActivatedRouteSnapshot`, returns the final value of the\n     * `Route.title` property, which can either be a static string or a resolved value.\n     */\n    getResolvedTitleForRoute(snapshot) {\n      return snapshot.data[RouteTitleKey];\n    }\n    static {\n      this.ɵfac = function TitleStrategy_Factory(t) {\n        return new (t || TitleStrategy)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: TitleStrategy,\n        factory: () => (() => inject(DefaultTitleStrategy))(),\n        providedIn: 'root'\n      });\n    }\n  }\n  return TitleStrategy;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * The default `TitleStrategy` used by the router that updates the title using the `Title` service.\n */\nlet DefaultTitleStrategy = /*#__PURE__*/(() => {\n  class DefaultTitleStrategy extends TitleStrategy {\n    constructor(title) {\n      super();\n      this.title = title;\n    }\n    /**\n     * Sets the title of the browser to the given value.\n     *\n     * @param title The `pageTitle` from the deepest primary route.\n     */\n    updateTitle(snapshot) {\n      const title = this.buildTitle(snapshot);\n      if (title !== undefined) {\n        this.title.setTitle(title);\n      }\n    }\n    static {\n      this.ɵfac = function DefaultTitleStrategy_Factory(t) {\n        return new (t || DefaultTitleStrategy)(i0.ɵɵinject(i1.Title));\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: DefaultTitleStrategy,\n        factory: DefaultTitleStrategy.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return DefaultTitleStrategy;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * A [DI token](guide/glossary/#di-token) for the router service.\n *\n * @publicApi\n */\nconst ROUTER_CONFIGURATION = /*#__PURE__*/new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'router config' : '', {\n  providedIn: 'root',\n  factory: () => ({})\n});\n\n/**\n * The [DI token](guide/glossary/#di-token) for a router configuration.\n *\n * `ROUTES` is a low level API for router configuration via dependency injection.\n *\n * We recommend that in almost all cases to use higher level APIs such as `RouterModule.forRoot()`,\n * `provideRouter`, or `Router.resetConfig()`.\n *\n * @publicApi\n */\nconst ROUTES = /*#__PURE__*/new InjectionToken(ngDevMode ? 'ROUTES' : '');\nlet RouterConfigLoader = /*#__PURE__*/(() => {\n  class RouterConfigLoader {\n    constructor() {\n      this.componentLoaders = new WeakMap();\n      this.childrenLoaders = new WeakMap();\n      this.compiler = inject(Compiler);\n    }\n    loadComponent(route) {\n      if (this.componentLoaders.get(route)) {\n        return this.componentLoaders.get(route);\n      } else if (route._loadedComponent) {\n        return of(route._loadedComponent);\n      }\n      if (this.onLoadStartListener) {\n        this.onLoadStartListener(route);\n      }\n      const loadRunner = wrapIntoObservable(route.loadComponent()).pipe(map(maybeUnwrapDefaultExport), tap(component => {\n        if (this.onLoadEndListener) {\n          this.onLoadEndListener(route);\n        }\n        (typeof ngDevMode === 'undefined' || ngDevMode) && assertStandalone(route.path ?? '', component);\n        route._loadedComponent = component;\n      }), finalize(() => {\n        this.componentLoaders.delete(route);\n      }));\n      // Use custom ConnectableObservable as share in runners pipe increasing the bundle size too much\n      const loader = new ConnectableObservable(loadRunner, () => new Subject()).pipe(refCount());\n      this.componentLoaders.set(route, loader);\n      return loader;\n    }\n    loadChildren(parentInjector, route) {\n      if (this.childrenLoaders.get(route)) {\n        return this.childrenLoaders.get(route);\n      } else if (route._loadedRoutes) {\n        return of({\n          routes: route._loadedRoutes,\n          injector: route._loadedInjector\n        });\n      }\n      if (this.onLoadStartListener) {\n        this.onLoadStartListener(route);\n      }\n      const moduleFactoryOrRoutes$ = loadChildren(route, this.compiler, parentInjector, this.onLoadEndListener);\n      const loadRunner = moduleFactoryOrRoutes$.pipe(finalize(() => {\n        this.childrenLoaders.delete(route);\n      }));\n      // Use custom ConnectableObservable as share in runners pipe increasing the bundle size too much\n      const loader = new ConnectableObservable(loadRunner, () => new Subject()).pipe(refCount());\n      this.childrenLoaders.set(route, loader);\n      return loader;\n    }\n    static {\n      this.ɵfac = function RouterConfigLoader_Factory(t) {\n        return new (t || RouterConfigLoader)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: RouterConfigLoader,\n        factory: RouterConfigLoader.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return RouterConfigLoader;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Executes a `route.loadChildren` callback and converts the result to an array of child routes and\n * an injector if that callback returned a module.\n *\n * This function is used for the route discovery during prerendering\n * in @angular-devkit/build-angular. If there are any updates to the contract here, it will require\n * an update to the extractor.\n */\nfunction loadChildren(route, compiler, parentInjector, onLoadEndListener) {\n  return wrapIntoObservable(route.loadChildren()).pipe(map(maybeUnwrapDefaultExport), mergeMap(t => {\n    if (t instanceof NgModuleFactory || Array.isArray(t)) {\n      return of(t);\n    } else {\n      return from(compiler.compileModuleAsync(t));\n    }\n  }), map(factoryOrRoutes => {\n    if (onLoadEndListener) {\n      onLoadEndListener(route);\n    }\n    // This injector comes from the `NgModuleRef` when lazy loading an `NgModule`. There is\n    // no injector associated with lazy loading a `Route` array.\n    let injector;\n    let rawRoutes;\n    let requireStandaloneComponents = false;\n    if (Array.isArray(factoryOrRoutes)) {\n      rawRoutes = factoryOrRoutes;\n      requireStandaloneComponents = true;\n    } else {\n      injector = factoryOrRoutes.create(parentInjector).injector;\n      // When loading a module that doesn't provide `RouterModule.forChild()` preloader\n      // will get stuck in an infinite loop. The child module's Injector will look to\n      // its parent `Injector` when it doesn't find any ROUTES so it will return routes\n      // for it's parent module instead.\n      rawRoutes = injector.get(ROUTES, [], {\n        optional: true,\n        self: true\n      }).flat();\n    }\n    const routes = rawRoutes.map(standardizeConfig);\n    (typeof ngDevMode === 'undefined' || ngDevMode) && validateConfig(routes, route.path, requireStandaloneComponents);\n    return {\n      routes,\n      injector\n    };\n  }));\n}\nfunction isWrappedDefaultExport(value) {\n  // We use `in` here with a string key `'default'`, because we expect `DefaultExport` objects to be\n  // dynamically imported ES modules with a spec-mandated `default` key. Thus we don't expect that\n  // `default` will be a renamed property.\n  return value && typeof value === 'object' && 'default' in value;\n}\nfunction maybeUnwrapDefaultExport(input) {\n  // As per `isWrappedDefaultExport`, the `default` key here is generated by the browser and not\n  // subject to property renaming, so we reference it with bracket access.\n  return isWrappedDefaultExport(input) ? input['default'] : input;\n}\n\n/**\n * @description\n *\n * Provides a way to migrate AngularJS applications to Angular.\n *\n * @publicApi\n */\nlet UrlHandlingStrategy = /*#__PURE__*/(() => {\n  class UrlHandlingStrategy {\n    static {\n      this.ɵfac = function UrlHandlingStrategy_Factory(t) {\n        return new (t || UrlHandlingStrategy)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: UrlHandlingStrategy,\n        factory: () => (() => inject(DefaultUrlHandlingStrategy))(),\n        providedIn: 'root'\n      });\n    }\n  }\n  return UrlHandlingStrategy;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @publicApi\n */\nlet DefaultUrlHandlingStrategy = /*#__PURE__*/(() => {\n  class DefaultUrlHandlingStrategy {\n    shouldProcessUrl(url) {\n      return true;\n    }\n    extract(url) {\n      return url;\n    }\n    merge(newUrlPart, wholeUrl) {\n      return newUrlPart;\n    }\n    static {\n      this.ɵfac = function DefaultUrlHandlingStrategy_Factory(t) {\n        return new (t || DefaultUrlHandlingStrategy)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: DefaultUrlHandlingStrategy,\n        factory: DefaultUrlHandlingStrategy.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return DefaultUrlHandlingStrategy;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/// <reference types=\"dom-view-transitions\" />\nconst CREATE_VIEW_TRANSITION = /*#__PURE__*/new InjectionToken(ngDevMode ? 'view transition helper' : '');\nconst VIEW_TRANSITION_OPTIONS = /*#__PURE__*/new InjectionToken(ngDevMode ? 'view transition options' : '');\n/**\n * A helper function for using browser view transitions. This function skips the call to\n * `startViewTransition` if the browser does not support it.\n *\n * @returns A Promise that resolves when the view transition callback begins.\n */\nfunction createViewTransition(injector, from, to) {\n  const transitionOptions = injector.get(VIEW_TRANSITION_OPTIONS);\n  const document = injector.get(DOCUMENT);\n  // Create promises outside the Angular zone to avoid causing extra change detections\n  return injector.get(NgZone).runOutsideAngular(() => {\n    if (!document.startViewTransition || transitionOptions.skipNextTransition) {\n      transitionOptions.skipNextTransition = false;\n      // The timing of `startViewTransition` is closer to a macrotask. It won't be called\n      // until the current event loop exits so we use a promise resolved in a timeout instead\n      // of Promise.resolve().\n      return new Promise(resolve => setTimeout(resolve));\n    }\n    let resolveViewTransitionStarted;\n    const viewTransitionStarted = new Promise(resolve => {\n      resolveViewTransitionStarted = resolve;\n    });\n    const transition = document.startViewTransition(() => {\n      resolveViewTransitionStarted();\n      // We don't actually update dom within the transition callback. The resolving of the above\n      // promise unblocks the Router navigation, which synchronously activates and deactivates\n      // routes (the DOM update). This view transition waits for the next change detection to\n      // complete (below), which includes the update phase of the routed components.\n      return createRenderPromise(injector);\n    });\n    const {\n      onViewTransitionCreated\n    } = transitionOptions;\n    if (onViewTransitionCreated) {\n      runInInjectionContext(injector, () => onViewTransitionCreated({\n        transition,\n        from,\n        to\n      }));\n    }\n    return viewTransitionStarted;\n  });\n}\n/**\n * Creates a promise that resolves after next render.\n */\nfunction createRenderPromise(injector) {\n  return new Promise(resolve => {\n    afterNextRender(resolve, {\n      injector\n    });\n  });\n}\nlet NavigationTransitions = /*#__PURE__*/(() => {\n  class NavigationTransitions {\n    get hasRequestedNavigation() {\n      return this.navigationId !== 0;\n    }\n    constructor() {\n      this.currentNavigation = null;\n      this.currentTransition = null;\n      this.lastSuccessfulNavigation = null;\n      /**\n       * These events are used to communicate back to the Router about the state of the transition. The\n       * Router wants to respond to these events in various ways. Because the `NavigationTransition`\n       * class is not public, this event subject is not publicly exposed.\n       */\n      this.events = new Subject();\n      /**\n       * Used to abort the current transition with an error.\n       */\n      this.transitionAbortSubject = new Subject();\n      this.configLoader = inject(RouterConfigLoader);\n      this.environmentInjector = inject(EnvironmentInjector);\n      this.urlSerializer = inject(UrlSerializer);\n      this.rootContexts = inject(ChildrenOutletContexts);\n      this.location = inject(Location);\n      this.inputBindingEnabled = inject(INPUT_BINDER, {\n        optional: true\n      }) !== null;\n      this.titleStrategy = inject(TitleStrategy);\n      this.options = inject(ROUTER_CONFIGURATION, {\n        optional: true\n      }) || {};\n      this.paramsInheritanceStrategy = this.options.paramsInheritanceStrategy || 'emptyOnly';\n      this.urlHandlingStrategy = inject(UrlHandlingStrategy);\n      this.createViewTransition = inject(CREATE_VIEW_TRANSITION, {\n        optional: true\n      });\n      this.navigationId = 0;\n      /**\n       * Hook that enables you to pause navigation after the preactivation phase.\n       * Used by `RouterModule`.\n       *\n       * @internal\n       */\n      this.afterPreactivation = () => of(void 0);\n      /** @internal */\n      this.rootComponentType = null;\n      const onLoadStart = r => this.events.next(new RouteConfigLoadStart(r));\n      const onLoadEnd = r => this.events.next(new RouteConfigLoadEnd(r));\n      this.configLoader.onLoadEndListener = onLoadEnd;\n      this.configLoader.onLoadStartListener = onLoadStart;\n    }\n    complete() {\n      this.transitions?.complete();\n    }\n    handleNavigationRequest(request) {\n      const id = ++this.navigationId;\n      this.transitions?.next({\n        ...this.transitions.value,\n        ...request,\n        id\n      });\n    }\n    setupNavigations(router, initialUrlTree, initialRouterState) {\n      this.transitions = new BehaviorSubject({\n        id: 0,\n        currentUrlTree: initialUrlTree,\n        currentRawUrl: initialUrlTree,\n        extractedUrl: this.urlHandlingStrategy.extract(initialUrlTree),\n        urlAfterRedirects: this.urlHandlingStrategy.extract(initialUrlTree),\n        rawUrl: initialUrlTree,\n        extras: {},\n        resolve: null,\n        reject: null,\n        promise: Promise.resolve(true),\n        source: IMPERATIVE_NAVIGATION,\n        restoredState: null,\n        currentSnapshot: initialRouterState.snapshot,\n        targetSnapshot: null,\n        currentRouterState: initialRouterState,\n        targetRouterState: null,\n        guards: {\n          canActivateChecks: [],\n          canDeactivateChecks: []\n        },\n        guardsResult: null\n      });\n      return this.transitions.pipe(filter(t => t.id !== 0),\n      // Extract URL\n      map(t => ({\n        ...t,\n        extractedUrl: this.urlHandlingStrategy.extract(t.rawUrl)\n      })),\n      // Using switchMap so we cancel executing navigations when a new one comes in\n      switchMap(overallTransitionState => {\n        let completed = false;\n        let errored = false;\n        return of(overallTransitionState).pipe(switchMap(t => {\n          // It is possible that `switchMap` fails to cancel previous navigations if a new one happens synchronously while the operator\n          // is processing the `next` notification of that previous navigation. This can happen when a new navigation (say 2) cancels a\n          // previous one (1) and yet another navigation (3) happens synchronously in response to the `NavigationCancel` event for (1).\n          // https://github.com/ReactiveX/rxjs/issues/7455\n          if (this.navigationId > overallTransitionState.id) {\n            const cancellationReason = typeof ngDevMode === 'undefined' || ngDevMode ? `Navigation ID ${overallTransitionState.id} is not equal to the current navigation id ${this.navigationId}` : '';\n            this.cancelNavigationTransition(overallTransitionState, cancellationReason, NavigationCancellationCode.SupersededByNewNavigation);\n            return EMPTY;\n          }\n          this.currentTransition = overallTransitionState;\n          // Store the Navigation object\n          this.currentNavigation = {\n            id: t.id,\n            initialUrl: t.rawUrl,\n            extractedUrl: t.extractedUrl,\n            trigger: t.source,\n            extras: t.extras,\n            previousNavigation: !this.lastSuccessfulNavigation ? null : {\n              ...this.lastSuccessfulNavigation,\n              previousNavigation: null\n            }\n          };\n          const urlTransition = !router.navigated || this.isUpdatingInternalState() || this.isUpdatedBrowserUrl();\n          const onSameUrlNavigation = t.extras.onSameUrlNavigation ?? router.onSameUrlNavigation;\n          if (!urlTransition && onSameUrlNavigation !== 'reload') {\n            const reason = typeof ngDevMode === 'undefined' || ngDevMode ? `Navigation to ${t.rawUrl} was ignored because it is the same as the current Router URL.` : '';\n            this.events.next(new NavigationSkipped(t.id, this.urlSerializer.serialize(t.rawUrl), reason, NavigationSkippedCode.IgnoredSameUrlNavigation));\n            t.resolve(null);\n            return EMPTY;\n          }\n          if (this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl)) {\n            return of(t).pipe(\n            // Fire NavigationStart event\n            switchMap(t => {\n              const transition = this.transitions?.getValue();\n              this.events.next(new NavigationStart(t.id, this.urlSerializer.serialize(t.extractedUrl), t.source, t.restoredState));\n              if (transition !== this.transitions?.getValue()) {\n                return EMPTY;\n              }\n              // This delay is required to match old behavior that forced\n              // navigation to always be async\n              return Promise.resolve(t);\n            }),\n            // Recognize\n            recognize(this.environmentInjector, this.configLoader, this.rootComponentType, router.config, this.urlSerializer, this.paramsInheritanceStrategy),\n            // Update URL if in `eager` update mode\n            tap(t => {\n              overallTransitionState.targetSnapshot = t.targetSnapshot;\n              overallTransitionState.urlAfterRedirects = t.urlAfterRedirects;\n              this.currentNavigation = {\n                ...this.currentNavigation,\n                finalUrl: t.urlAfterRedirects\n              };\n              // Fire RoutesRecognized\n              const routesRecognized = new RoutesRecognized(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects), t.targetSnapshot);\n              this.events.next(routesRecognized);\n            }));\n          } else if (urlTransition && this.urlHandlingStrategy.shouldProcessUrl(t.currentRawUrl)) {\n            /* When the current URL shouldn't be processed, but the previous one\n             * was, we handle this \"error condition\" by navigating to the\n             * previously successful URL, but leaving the URL intact.*/\n            const {\n              id,\n              extractedUrl,\n              source,\n              restoredState,\n              extras\n            } = t;\n            const navStart = new NavigationStart(id, this.urlSerializer.serialize(extractedUrl), source, restoredState);\n            this.events.next(navStart);\n            const targetSnapshot = createEmptyState(this.rootComponentType).snapshot;\n            this.currentTransition = overallTransitionState = {\n              ...t,\n              targetSnapshot,\n              urlAfterRedirects: extractedUrl,\n              extras: {\n                ...extras,\n                skipLocationChange: false,\n                replaceUrl: false\n              }\n            };\n            this.currentNavigation.finalUrl = extractedUrl;\n            return of(overallTransitionState);\n          } else {\n            /* When neither the current or previous URL can be processed, do\n             * nothing other than update router's internal reference to the\n             * current \"settled\" URL. This way the next navigation will be coming\n             * from the current URL in the browser.\n             */\n            const reason = typeof ngDevMode === 'undefined' || ngDevMode ? `Navigation was ignored because the UrlHandlingStrategy` + ` indicated neither the current URL ${t.currentRawUrl} nor target URL ${t.rawUrl} should be processed.` : '';\n            this.events.next(new NavigationSkipped(t.id, this.urlSerializer.serialize(t.extractedUrl), reason, NavigationSkippedCode.IgnoredByUrlHandlingStrategy));\n            t.resolve(null);\n            return EMPTY;\n          }\n        }),\n        // --- GUARDS ---\n        tap(t => {\n          const guardsStart = new GuardsCheckStart(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects), t.targetSnapshot);\n          this.events.next(guardsStart);\n        }), map(t => {\n          this.currentTransition = overallTransitionState = {\n            ...t,\n            guards: getAllRouteGuards(t.targetSnapshot, t.currentSnapshot, this.rootContexts)\n          };\n          return overallTransitionState;\n        }), checkGuards(this.environmentInjector, evt => this.events.next(evt)), tap(t => {\n          overallTransitionState.guardsResult = t.guardsResult;\n          if (isUrlTree(t.guardsResult)) {\n            throw redirectingNavigationError(this.urlSerializer, t.guardsResult);\n          }\n          const guardsEnd = new GuardsCheckEnd(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects), t.targetSnapshot, !!t.guardsResult);\n          this.events.next(guardsEnd);\n        }), filter(t => {\n          if (!t.guardsResult) {\n            this.cancelNavigationTransition(t, '', NavigationCancellationCode.GuardRejected);\n            return false;\n          }\n          return true;\n        }),\n        // --- RESOLVE ---\n        switchTap(t => {\n          if (t.guards.canActivateChecks.length) {\n            return of(t).pipe(tap(t => {\n              const resolveStart = new ResolveStart(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects), t.targetSnapshot);\n              this.events.next(resolveStart);\n            }), switchMap(t => {\n              let dataResolved = false;\n              return of(t).pipe(resolveData(this.paramsInheritanceStrategy, this.environmentInjector), tap({\n                next: () => dataResolved = true,\n                complete: () => {\n                  if (!dataResolved) {\n                    this.cancelNavigationTransition(t, typeof ngDevMode === 'undefined' || ngDevMode ? `At least one route resolver didn't emit any value.` : '', NavigationCancellationCode.NoDataFromResolver);\n                  }\n                }\n              }));\n            }), tap(t => {\n              const resolveEnd = new ResolveEnd(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects), t.targetSnapshot);\n              this.events.next(resolveEnd);\n            }));\n          }\n          return undefined;\n        }),\n        // --- LOAD COMPONENTS ---\n        switchTap(t => {\n          const loadComponents = route => {\n            const loaders = [];\n            if (route.routeConfig?.loadComponent && !route.routeConfig._loadedComponent) {\n              loaders.push(this.configLoader.loadComponent(route.routeConfig).pipe(tap(loadedComponent => {\n                route.component = loadedComponent;\n              }), map(() => void 0)));\n            }\n            for (const child of route.children) {\n              loaders.push(...loadComponents(child));\n            }\n            return loaders;\n          };\n          return combineLatest(loadComponents(t.targetSnapshot.root)).pipe(defaultIfEmpty(null), take(1));\n        }), switchTap(() => this.afterPreactivation()), switchMap(() => {\n          const {\n            currentSnapshot,\n            targetSnapshot\n          } = overallTransitionState;\n          const viewTransitionStarted = this.createViewTransition?.(this.environmentInjector, currentSnapshot.root, targetSnapshot.root);\n          // If view transitions are enabled, block the navigation until the view\n          // transition callback starts. Otherwise, continue immediately.\n          return viewTransitionStarted ? from(viewTransitionStarted).pipe(map(() => overallTransitionState)) : of(overallTransitionState);\n        }), map(t => {\n          const targetRouterState = createRouterState(router.routeReuseStrategy, t.targetSnapshot, t.currentRouterState);\n          this.currentTransition = overallTransitionState = {\n            ...t,\n            targetRouterState\n          };\n          this.currentNavigation.targetRouterState = targetRouterState;\n          return overallTransitionState;\n        }), tap(() => {\n          this.events.next(new BeforeActivateRoutes());\n        }), activateRoutes(this.rootContexts, router.routeReuseStrategy, evt => this.events.next(evt), this.inputBindingEnabled),\n        // Ensure that if some observable used to drive the transition doesn't\n        // complete, the navigation still finalizes This should never happen, but\n        // this is done as a safety measure to avoid surfacing this error (#49567).\n        take(1), tap({\n          next: t => {\n            completed = true;\n            this.lastSuccessfulNavigation = this.currentNavigation;\n            this.events.next(new NavigationEnd(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects)));\n            this.titleStrategy?.updateTitle(t.targetRouterState.snapshot);\n            t.resolve(true);\n          },\n          complete: () => {\n            completed = true;\n          }\n        }),\n        // There used to be a lot more logic happening directly within the\n        // transition Observable. Some of this logic has been refactored out to\n        // other places but there may still be errors that happen there. This gives\n        // us a way to cancel the transition from the outside. This may also be\n        // required in the future to support something like the abort signal of the\n        // Navigation API where the navigation gets aborted from outside the\n        // transition.\n        takeUntil(this.transitionAbortSubject.pipe(tap(err => {\n          throw err;\n        }))), finalize(() => {\n          /* When the navigation stream finishes either through error or success,\n           * we set the `completed` or `errored` flag. However, there are some\n           * situations where we could get here without either of those being set.\n           * For instance, a redirect during NavigationStart. Therefore, this is a\n           * catch-all to make sure the NavigationCancel event is fired when a\n           * navigation gets cancelled but not caught by other means. */\n          if (!completed && !errored) {\n            const cancelationReason = typeof ngDevMode === 'undefined' || ngDevMode ? `Navigation ID ${overallTransitionState.id} is not equal to the current navigation id ${this.navigationId}` : '';\n            this.cancelNavigationTransition(overallTransitionState, cancelationReason, NavigationCancellationCode.SupersededByNewNavigation);\n          }\n          // Only clear current navigation if it is still set to the one that\n          // finalized.\n          if (this.currentTransition?.id === overallTransitionState.id) {\n            this.currentNavigation = null;\n            this.currentTransition = null;\n          }\n        }), catchError(e => {\n          errored = true;\n          /* This error type is issued during Redirect, and is handled as a\n           * cancellation rather than an error. */\n          if (isNavigationCancelingError(e)) {\n            this.events.next(new NavigationCancel(overallTransitionState.id, this.urlSerializer.serialize(overallTransitionState.extractedUrl), e.message, e.cancellationCode));\n            // When redirecting, we need to delay resolving the navigation\n            // promise and push it to the redirect navigation\n            if (!isRedirectingNavigationCancelingError(e)) {\n              overallTransitionState.resolve(false);\n            } else {\n              this.events.next(new RedirectRequest(e.url));\n            }\n            /* All other errors should reset to the router's internal URL reference\n             * to the pre-error state. */\n          } else {\n            this.events.next(new NavigationError(overallTransitionState.id, this.urlSerializer.serialize(overallTransitionState.extractedUrl), e, overallTransitionState.targetSnapshot ?? undefined));\n            try {\n              overallTransitionState.resolve(router.errorHandler(e));\n            } catch (ee) {\n              // TODO(atscott): consider flipping the default behavior of\n              // resolveNavigationPromiseOnError to be `resolve(false)` when\n              // undefined. This is the most sane thing to do given that\n              // applications very rarely handle the promise rejection and, as a\n              // result, would get \"unhandled promise rejection\" console logs.\n              // The vast majority of applications would not be affected by this\n              // change so omitting a migration seems reasonable. Instead,\n              // applications that rely on rejection can specifically opt-in to the\n              // old behavior.\n              if (this.options.resolveNavigationPromiseOnError) {\n                overallTransitionState.resolve(false);\n              } else {\n                overallTransitionState.reject(ee);\n              }\n            }\n          }\n          return EMPTY;\n        }));\n        // casting because `pipe` returns observable({}) when called with 8+ arguments\n      }));\n    }\n    cancelNavigationTransition(t, reason, code) {\n      const navCancel = new NavigationCancel(t.id, this.urlSerializer.serialize(t.extractedUrl), reason, code);\n      this.events.next(navCancel);\n      t.resolve(false);\n    }\n    /**\n     * @returns Whether we're navigating to somewhere that is not what the Router is\n     * currently set to.\n     */\n    isUpdatingInternalState() {\n      // TODO(atscott): The serializer should likely be used instead of\n      // `UrlTree.toString()`. Custom serializers are often written to handle\n      // things better than the default one (objects, for example will be\n      // [Object object] with the custom serializer and be \"the same\" when they\n      // aren't).\n      // (Same for isUpdatedBrowserUrl)\n      return this.currentTransition?.extractedUrl.toString() !== this.currentTransition?.currentUrlTree.toString();\n    }\n    /**\n     * @returns Whether we're updating the browser URL to something new (navigation is going\n     * to somewhere not displayed in the URL bar and we will update the URL\n     * bar if navigation succeeds).\n     */\n    isUpdatedBrowserUrl() {\n      // The extracted URL is the part of the URL that this application cares about. `extract` may\n      // return only part of the browser URL and that part may have not changed even if some other\n      // portion of the URL did.\n      const extractedBrowserUrl = this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(true)));\n      return extractedBrowserUrl.toString() !== this.currentTransition?.extractedUrl.toString() && !this.currentTransition?.extras.skipLocationChange;\n    }\n    static {\n      this.ɵfac = function NavigationTransitions_Factory(t) {\n        return new (t || NavigationTransitions)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: NavigationTransitions,\n        factory: NavigationTransitions.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return NavigationTransitions;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction isBrowserTriggeredNavigation(source) {\n  return source !== IMPERATIVE_NAVIGATION;\n}\n\n/**\n * @description\n *\n * Provides a way to customize when activated routes get reused.\n *\n * @publicApi\n */\nlet RouteReuseStrategy = /*#__PURE__*/(() => {\n  class RouteReuseStrategy {\n    static {\n      this.ɵfac = function RouteReuseStrategy_Factory(t) {\n        return new (t || RouteReuseStrategy)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: RouteReuseStrategy,\n        factory: () => (() => inject(DefaultRouteReuseStrategy))(),\n        providedIn: 'root'\n      });\n    }\n  }\n  return RouteReuseStrategy;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n *\n * This base route reuse strategy only reuses routes when the matched router configs are\n * identical. This prevents components from being destroyed and recreated\n * when just the route parameters, query parameters or fragment change\n * (that is, the existing component is _reused_).\n *\n * This strategy does not store any routes for later reuse.\n *\n * Angular uses this strategy by default.\n *\n *\n * It can be used as a base class for custom route reuse strategies, i.e. you can create your own\n * class that extends the `BaseRouteReuseStrategy` one.\n * @publicApi\n */\nclass BaseRouteReuseStrategy {\n  /**\n   * Whether the given route should detach for later reuse.\n   * Always returns false for `BaseRouteReuseStrategy`.\n   * */\n  shouldDetach(route) {\n    return false;\n  }\n  /**\n   * A no-op; the route is never stored since this strategy never detaches routes for later re-use.\n   */\n  store(route, detachedTree) {}\n  /** Returns `false`, meaning the route (and its subtree) is never reattached */\n  shouldAttach(route) {\n    return false;\n  }\n  /** Returns `null` because this strategy does not store routes for later re-use. */\n  retrieve(route) {\n    return null;\n  }\n  /**\n   * Determines if a route should be reused.\n   * This strategy returns `true` when the future route config and current route config are\n   * identical.\n   */\n  shouldReuseRoute(future, curr) {\n    return future.routeConfig === curr.routeConfig;\n  }\n}\nlet DefaultRouteReuseStrategy = /*#__PURE__*/(() => {\n  class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵDefaultRouteReuseStrategy_BaseFactory;\n        return function DefaultRouteReuseStrategy_Factory(t) {\n          return (ɵDefaultRouteReuseStrategy_BaseFactory || (ɵDefaultRouteReuseStrategy_BaseFactory = i0.ɵɵgetInheritedFactory(DefaultRouteReuseStrategy)))(t || DefaultRouteReuseStrategy);\n        };\n      })();\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: DefaultRouteReuseStrategy,\n        factory: DefaultRouteReuseStrategy.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return DefaultRouteReuseStrategy;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet StateManager = /*#__PURE__*/(() => {\n  class StateManager {\n    static {\n      this.ɵfac = function StateManager_Factory(t) {\n        return new (t || StateManager)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: StateManager,\n        factory: () => (() => inject(HistoryStateManager))(),\n        providedIn: 'root'\n      });\n    }\n  }\n  return StateManager;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet HistoryStateManager = /*#__PURE__*/(() => {\n  class HistoryStateManager extends StateManager {\n    constructor() {\n      super(...arguments);\n      this.location = inject(Location);\n      this.urlSerializer = inject(UrlSerializer);\n      this.options = inject(ROUTER_CONFIGURATION, {\n        optional: true\n      }) || {};\n      this.canceledNavigationResolution = this.options.canceledNavigationResolution || 'replace';\n      this.urlHandlingStrategy = inject(UrlHandlingStrategy);\n      this.urlUpdateStrategy = this.options.urlUpdateStrategy || 'deferred';\n      this.currentUrlTree = new UrlTree();\n      this.rawUrlTree = this.currentUrlTree;\n      /**\n       * The id of the currently active page in the router.\n       * Updated to the transition's target id on a successful navigation.\n       *\n       * This is used to track what page the router last activated. When an attempted navigation fails,\n       * the router can then use this to compute how to restore the state back to the previously active\n       * page.\n       */\n      this.currentPageId = 0;\n      this.lastSuccessfulId = -1;\n      this.routerState = createEmptyState(null);\n      this.stateMemento = this.createStateMemento();\n    }\n    getCurrentUrlTree() {\n      return this.currentUrlTree;\n    }\n    getRawUrlTree() {\n      return this.rawUrlTree;\n    }\n    restoredState() {\n      return this.location.getState();\n    }\n    /**\n     * The ɵrouterPageId of whatever page is currently active in the browser history. This is\n     * important for computing the target page id for new navigations because we need to ensure each\n     * page id in the browser history is 1 more than the previous entry.\n     */\n    get browserPageId() {\n      if (this.canceledNavigationResolution !== 'computed') {\n        return this.currentPageId;\n      }\n      return this.restoredState()?.ɵrouterPageId ?? this.currentPageId;\n    }\n    getRouterState() {\n      return this.routerState;\n    }\n    createStateMemento() {\n      return {\n        rawUrlTree: this.rawUrlTree,\n        currentUrlTree: this.currentUrlTree,\n        routerState: this.routerState\n      };\n    }\n    registerNonRouterCurrentEntryChangeListener(listener) {\n      return this.location.subscribe(event => {\n        if (event['type'] === 'popstate') {\n          listener(event['url'], event.state);\n        }\n      });\n    }\n    handleRouterEvent(e, currentTransition) {\n      if (e instanceof NavigationStart) {\n        this.stateMemento = this.createStateMemento();\n      } else if (e instanceof NavigationSkipped) {\n        this.rawUrlTree = currentTransition.initialUrl;\n      } else if (e instanceof RoutesRecognized) {\n        if (this.urlUpdateStrategy === 'eager') {\n          if (!currentTransition.extras.skipLocationChange) {\n            const rawUrl = this.urlHandlingStrategy.merge(currentTransition.finalUrl, currentTransition.initialUrl);\n            this.setBrowserUrl(rawUrl, currentTransition);\n          }\n        }\n      } else if (e instanceof BeforeActivateRoutes) {\n        this.currentUrlTree = currentTransition.finalUrl;\n        this.rawUrlTree = this.urlHandlingStrategy.merge(currentTransition.finalUrl, currentTransition.initialUrl);\n        this.routerState = currentTransition.targetRouterState;\n        if (this.urlUpdateStrategy === 'deferred') {\n          if (!currentTransition.extras.skipLocationChange) {\n            this.setBrowserUrl(this.rawUrlTree, currentTransition);\n          }\n        }\n      } else if (e instanceof NavigationCancel && (e.code === NavigationCancellationCode.GuardRejected || e.code === NavigationCancellationCode.NoDataFromResolver)) {\n        this.restoreHistory(currentTransition);\n      } else if (e instanceof NavigationError) {\n        this.restoreHistory(currentTransition, true);\n      } else if (e instanceof NavigationEnd) {\n        this.lastSuccessfulId = e.id;\n        this.currentPageId = this.browserPageId;\n      }\n    }\n    setBrowserUrl(url, transition) {\n      const path = this.urlSerializer.serialize(url);\n      if (this.location.isCurrentPathEqualTo(path) || !!transition.extras.replaceUrl) {\n        // replacements do not update the target page\n        const currentBrowserPageId = this.browserPageId;\n        const state = {\n          ...transition.extras.state,\n          ...this.generateNgRouterState(transition.id, currentBrowserPageId)\n        };\n        this.location.replaceState(path, '', state);\n      } else {\n        const state = {\n          ...transition.extras.state,\n          ...this.generateNgRouterState(transition.id, this.browserPageId + 1)\n        };\n        this.location.go(path, '', state);\n      }\n    }\n    /**\n     * Performs the necessary rollback action to restore the browser URL to the\n     * state before the transition.\n     */\n    restoreHistory(navigation, restoringFromCaughtError = false) {\n      if (this.canceledNavigationResolution === 'computed') {\n        const currentBrowserPageId = this.browserPageId;\n        const targetPagePosition = this.currentPageId - currentBrowserPageId;\n        if (targetPagePosition !== 0) {\n          this.location.historyGo(targetPagePosition);\n        } else if (this.currentUrlTree === navigation.finalUrl && targetPagePosition === 0) {\n          // We got to the activation stage (where currentUrlTree is set to the navigation's\n          // finalUrl), but we weren't moving anywhere in history (skipLocationChange or replaceUrl).\n          // We still need to reset the router state back to what it was when the navigation started.\n          this.resetState(navigation);\n          this.resetUrlToCurrentUrlTree();\n        } else {\n          // The browser URL and router state was not updated before the navigation cancelled so\n          // there's no restoration needed.\n        }\n      } else if (this.canceledNavigationResolution === 'replace') {\n        // TODO(atscott): It seems like we should _always_ reset the state here. It would be a no-op\n        // for `deferred` navigations that haven't change the internal state yet because guards\n        // reject. For 'eager' navigations, it seems like we also really should reset the state\n        // because the navigation was cancelled. Investigate if this can be done by running TGP.\n        if (restoringFromCaughtError) {\n          this.resetState(navigation);\n        }\n        this.resetUrlToCurrentUrlTree();\n      }\n    }\n    resetState(navigation) {\n      this.routerState = this.stateMemento.routerState;\n      this.currentUrlTree = this.stateMemento.currentUrlTree;\n      // Note here that we use the urlHandlingStrategy to get the reset `rawUrlTree` because it may be\n      // configured to handle only part of the navigation URL. This means we would only want to reset\n      // the part of the navigation handled by the Angular router rather than the whole URL. In\n      // addition, the URLHandlingStrategy may be configured to specifically preserve parts of the URL\n      // when merging, such as the query params so they are not lost on a refresh.\n      this.rawUrlTree = this.urlHandlingStrategy.merge(this.currentUrlTree, navigation.finalUrl ?? this.rawUrlTree);\n    }\n    resetUrlToCurrentUrlTree() {\n      this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree), '', this.generateNgRouterState(this.lastSuccessfulId, this.currentPageId));\n    }\n    generateNgRouterState(navigationId, routerPageId) {\n      if (this.canceledNavigationResolution === 'computed') {\n        return {\n          navigationId,\n          ɵrouterPageId: routerPageId\n        };\n      }\n      return {\n        navigationId\n      };\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵHistoryStateManager_BaseFactory;\n        return function HistoryStateManager_Factory(t) {\n          return (ɵHistoryStateManager_BaseFactory || (ɵHistoryStateManager_BaseFactory = i0.ɵɵgetInheritedFactory(HistoryStateManager)))(t || HistoryStateManager);\n        };\n      })();\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: HistoryStateManager,\n        factory: HistoryStateManager.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return HistoryStateManager;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nvar NavigationResult = /*#__PURE__*/function (NavigationResult) {\n  NavigationResult[NavigationResult[\"COMPLETE\"] = 0] = \"COMPLETE\";\n  NavigationResult[NavigationResult[\"FAILED\"] = 1] = \"FAILED\";\n  NavigationResult[NavigationResult[\"REDIRECTING\"] = 2] = \"REDIRECTING\";\n  return NavigationResult;\n}(NavigationResult || {});\n/**\n * Performs the given action once the router finishes its next/current navigation.\n *\n * The navigation is considered complete under the following conditions:\n * - `NavigationCancel` event emits and the code is not `NavigationCancellationCode.Redirect` or\n * `NavigationCancellationCode.SupersededByNewNavigation`. In these cases, the\n * redirecting/superseding navigation must finish.\n * - `NavigationError`, `NavigationEnd`, or `NavigationSkipped` event emits\n */\nfunction afterNextNavigation(router, action) {\n  router.events.pipe(filter(e => e instanceof NavigationEnd || e instanceof NavigationCancel || e instanceof NavigationError || e instanceof NavigationSkipped), map(e => {\n    if (e instanceof NavigationEnd || e instanceof NavigationSkipped) {\n      return NavigationResult.COMPLETE;\n    }\n    const redirecting = e instanceof NavigationCancel ? e.code === NavigationCancellationCode.Redirect || e.code === NavigationCancellationCode.SupersededByNewNavigation : false;\n    return redirecting ? NavigationResult.REDIRECTING : NavigationResult.FAILED;\n  }), filter(result => result !== NavigationResult.REDIRECTING), take(1)).subscribe(() => {\n    action();\n  });\n}\nfunction defaultErrorHandler(error) {\n  throw error;\n}\n/**\n * The equivalent `IsActiveMatchOptions` options for `Router.isActive` is called with `true`\n * (exact = true).\n */\nconst exactMatchOptions = {\n  paths: 'exact',\n  fragment: 'ignored',\n  matrixParams: 'ignored',\n  queryParams: 'exact'\n};\n/**\n * The equivalent `IsActiveMatchOptions` options for `Router.isActive` is called with `false`\n * (exact = false).\n */\nconst subsetMatchOptions = {\n  paths: 'subset',\n  fragment: 'ignored',\n  matrixParams: 'ignored',\n  queryParams: 'subset'\n};\n/**\n * @description\n *\n * A service that provides navigation among views and URL manipulation capabilities.\n *\n * @see {@link Route}\n * @see [Routing and Navigation Guide](guide/router).\n *\n * @ngModule RouterModule\n *\n * @publicApi\n */\nlet Router = /*#__PURE__*/(() => {\n  class Router {\n    get currentUrlTree() {\n      return this.stateManager.getCurrentUrlTree();\n    }\n    get rawUrlTree() {\n      return this.stateManager.getRawUrlTree();\n    }\n    /**\n     * An event stream for routing events.\n     */\n    get events() {\n      // TODO(atscott): This _should_ be events.asObservable(). However, this change requires internal\n      // cleanup: tests are doing `(route.events as Subject<Event>).next(...)`. This isn't\n      // allowed/supported but we still have to fix these or file bugs against the teams before making\n      // the change.\n      return this._events;\n    }\n    /**\n     * The current state of routing in this NgModule.\n     */\n    get routerState() {\n      return this.stateManager.getRouterState();\n    }\n    constructor() {\n      this.disposed = false;\n      this.isNgZoneEnabled = false;\n      this.console = inject(ɵConsole);\n      this.stateManager = inject(StateManager);\n      this.options = inject(ROUTER_CONFIGURATION, {\n        optional: true\n      }) || {};\n      this.pendingTasks = inject(ɵPendingTasks);\n      this.urlUpdateStrategy = this.options.urlUpdateStrategy || 'deferred';\n      this.navigationTransitions = inject(NavigationTransitions);\n      this.urlSerializer = inject(UrlSerializer);\n      this.location = inject(Location);\n      this.urlHandlingStrategy = inject(UrlHandlingStrategy);\n      /**\n       * The private `Subject` type for the public events exposed in the getter. This is used internally\n       * to push events to. The separate field allows us to expose separate types in the public API\n       * (i.e., an Observable rather than the Subject).\n       */\n      this._events = new Subject();\n      /**\n       * A handler for navigation errors in this NgModule.\n       *\n       * @deprecated Subscribe to the `Router` events and watch for `NavigationError` instead.\n       *   `provideRouter` has the `withNavigationErrorHandler` feature to make this easier.\n       * @see {@link withNavigationErrorHandler}\n       */\n      this.errorHandler = this.options.errorHandler || defaultErrorHandler;\n      /**\n       * True if at least one navigation event has occurred,\n       * false otherwise.\n       */\n      this.navigated = false;\n      /**\n       * A strategy for re-using routes.\n       *\n       * @deprecated Configure using `providers` instead:\n       *   `{provide: RouteReuseStrategy, useClass: MyStrategy}`.\n       */\n      this.routeReuseStrategy = inject(RouteReuseStrategy);\n      /**\n       * How to handle a navigation request to the current URL.\n       *\n       *\n       * @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.\n       * @see {@link withRouterConfig}\n       * @see {@link provideRouter}\n       * @see {@link RouterModule}\n       */\n      this.onSameUrlNavigation = this.options.onSameUrlNavigation || 'ignore';\n      this.config = inject(ROUTES, {\n        optional: true\n      })?.flat() ?? [];\n      /**\n       * Indicates whether the application has opted in to binding Router data to component inputs.\n       *\n       * This option is enabled by the `withComponentInputBinding` feature of `provideRouter` or\n       * `bindToComponentInputs` in the `ExtraOptions` of `RouterModule.forRoot`.\n       */\n      this.componentInputBindingEnabled = !!inject(INPUT_BINDER, {\n        optional: true\n      });\n      this.eventsSubscription = new Subscription();\n      this.isNgZoneEnabled = inject(NgZone) instanceof NgZone && NgZone.isInAngularZone();\n      this.resetConfig(this.config);\n      this.navigationTransitions.setupNavigations(this, this.currentUrlTree, this.routerState).subscribe({\n        error: e => {\n          this.console.warn(ngDevMode ? `Unhandled Navigation Error: ${e}` : e);\n        }\n      });\n      this.subscribeToNavigationEvents();\n    }\n    subscribeToNavigationEvents() {\n      const subscription = this.navigationTransitions.events.subscribe(e => {\n        try {\n          const currentTransition = this.navigationTransitions.currentTransition;\n          const currentNavigation = this.navigationTransitions.currentNavigation;\n          if (currentTransition !== null && currentNavigation !== null) {\n            this.stateManager.handleRouterEvent(e, currentNavigation);\n            if (e instanceof NavigationCancel && e.code !== NavigationCancellationCode.Redirect && e.code !== NavigationCancellationCode.SupersededByNewNavigation) {\n              // It seems weird that `navigated` is set to `true` when the navigation is rejected,\n              // however it's how things were written initially. Investigation would need to be done\n              // to determine if this can be removed.\n              this.navigated = true;\n            } else if (e instanceof NavigationEnd) {\n              this.navigated = true;\n            } else if (e instanceof RedirectRequest) {\n              const mergedTree = this.urlHandlingStrategy.merge(e.url, currentTransition.currentRawUrl);\n              const extras = {\n                // Persist transient navigation info from the original navigation request.\n                info: currentTransition.extras.info,\n                skipLocationChange: currentTransition.extras.skipLocationChange,\n                // The URL is already updated at this point if we have 'eager' URL\n                // updates or if the navigation was triggered by the browser (back\n                // button, URL bar, etc). We want to replace that item in history\n                // if the navigation is rejected.\n                replaceUrl: this.urlUpdateStrategy === 'eager' || isBrowserTriggeredNavigation(currentTransition.source)\n              };\n              this.scheduleNavigation(mergedTree, IMPERATIVE_NAVIGATION, null, extras, {\n                resolve: currentTransition.resolve,\n                reject: currentTransition.reject,\n                promise: currentTransition.promise\n              });\n            }\n          }\n          // Note that it's important to have the Router process the events _before_ the event is\n          // pushed through the public observable. This ensures the correct router state is in place\n          // before applications observe the events.\n          if (isPublicRouterEvent(e)) {\n            this._events.next(e);\n          }\n        } catch (e) {\n          this.navigationTransitions.transitionAbortSubject.next(e);\n        }\n      });\n      this.eventsSubscription.add(subscription);\n    }\n    /** @internal */\n    resetRootComponentType(rootComponentType) {\n      // TODO: vsavkin router 4.0 should make the root component set to null\n      // this will simplify the lifecycle of the router.\n      this.routerState.root.component = rootComponentType;\n      this.navigationTransitions.rootComponentType = rootComponentType;\n    }\n    /**\n     * Sets up the location change listener and performs the initial navigation.\n     */\n    initialNavigation() {\n      this.setUpLocationChangeListener();\n      if (!this.navigationTransitions.hasRequestedNavigation) {\n        this.navigateToSyncWithBrowser(this.location.path(true), IMPERATIVE_NAVIGATION, this.stateManager.restoredState());\n      }\n    }\n    /**\n     * Sets up the location change listener. This listener detects navigations triggered from outside\n     * the Router (the browser back/forward buttons, for example) and schedules a corresponding Router\n     * navigation so that the correct events, guards, etc. are triggered.\n     */\n    setUpLocationChangeListener() {\n      // Don't need to use Zone.wrap any more, because zone.js\n      // already patch onPopState, so location change callback will\n      // run into ngZone\n      this.nonRouterCurrentEntryChangeSubscription ??= this.stateManager.registerNonRouterCurrentEntryChangeListener((url, state) => {\n        // The `setTimeout` was added in #12160 and is likely to support Angular/AngularJS\n        // hybrid apps.\n        setTimeout(() => {\n          this.navigateToSyncWithBrowser(url, 'popstate', state);\n        }, 0);\n      });\n    }\n    /**\n     * Schedules a router navigation to synchronize Router state with the browser state.\n     *\n     * This is done as a response to a popstate event and the initial navigation. These\n     * two scenarios represent times when the browser URL/state has been updated and\n     * the Router needs to respond to ensure its internal state matches.\n     */\n    navigateToSyncWithBrowser(url, source, state) {\n      const extras = {\n        replaceUrl: true\n      };\n      // TODO: restoredState should always include the entire state, regardless\n      // of navigationId. This requires a breaking change to update the type on\n      // NavigationStart’s restoredState, which currently requires navigationId\n      // to always be present. The Router used to only restore history state if\n      // a navigationId was present.\n      // The stored navigationId is used by the RouterScroller to retrieve the scroll\n      // position for the page.\n      const restoredState = state?.navigationId ? state : null;\n      // Separate to NavigationStart.restoredState, we must also restore the state to\n      // history.state and generate a new navigationId, since it will be overwritten\n      if (state) {\n        const stateCopy = {\n          ...state\n        };\n        delete stateCopy.navigationId;\n        delete stateCopy.ɵrouterPageId;\n        if (Object.keys(stateCopy).length !== 0) {\n          extras.state = stateCopy;\n        }\n      }\n      const urlTree = this.parseUrl(url);\n      this.scheduleNavigation(urlTree, source, restoredState, extras);\n    }\n    /** The current URL. */\n    get url() {\n      return this.serializeUrl(this.currentUrlTree);\n    }\n    /**\n     * Returns the current `Navigation` object when the router is navigating,\n     * and `null` when idle.\n     */\n    getCurrentNavigation() {\n      return this.navigationTransitions.currentNavigation;\n    }\n    /**\n     * The `Navigation` object of the most recent navigation to succeed and `null` if there\n     *     has not been a successful navigation yet.\n     */\n    get lastSuccessfulNavigation() {\n      return this.navigationTransitions.lastSuccessfulNavigation;\n    }\n    /**\n     * Resets the route configuration used for navigation and generating links.\n     *\n     * @param config The route array for the new configuration.\n     *\n     * @usageNotes\n     *\n     * ```\n     * router.resetConfig([\n     *  { path: 'team/:id', component: TeamCmp, children: [\n     *    { path: 'simple', component: SimpleCmp },\n     *    { path: 'user/:name', component: UserCmp }\n     *  ]}\n     * ]);\n     * ```\n     */\n    resetConfig(config) {\n      (typeof ngDevMode === 'undefined' || ngDevMode) && validateConfig(config);\n      this.config = config.map(standardizeConfig);\n      this.navigated = false;\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n      this.dispose();\n    }\n    /** Disposes of the router. */\n    dispose() {\n      this.navigationTransitions.complete();\n      if (this.nonRouterCurrentEntryChangeSubscription) {\n        this.nonRouterCurrentEntryChangeSubscription.unsubscribe();\n        this.nonRouterCurrentEntryChangeSubscription = undefined;\n      }\n      this.disposed = true;\n      this.eventsSubscription.unsubscribe();\n    }\n    /**\n     * Appends URL segments to the current URL tree to create a new URL tree.\n     *\n     * @param commands An array of URL fragments with which to construct the new URL tree.\n     * If the path is static, can be the literal URL string. For a dynamic path, pass an array of path\n     * segments, followed by the parameters for each segment.\n     * The fragments are applied to the current URL tree or the one provided  in the `relativeTo`\n     * property of the options object, if supplied.\n     * @param navigationExtras Options that control the navigation strategy.\n     * @returns The new URL tree.\n     *\n     * @usageNotes\n     *\n     * ```\n     * // create /team/33/user/11\n     * router.createUrlTree(['/team', 33, 'user', 11]);\n     *\n     * // create /team/33;expand=true/user/11\n     * router.createUrlTree(['/team', 33, {expand: true}, 'user', 11]);\n     *\n     * // you can collapse static segments like this (this works only with the first passed-in value):\n     * router.createUrlTree(['/team/33/user', userId]);\n     *\n     * // If the first segment can contain slashes, and you do not want the router to split it,\n     * // you can do the following:\n     * router.createUrlTree([{segmentPath: '/one/two'}]);\n     *\n     * // create /team/33/(user/11//right:chat)\n     * router.createUrlTree(['/team', 33, {outlets: {primary: 'user/11', right: 'chat'}}]);\n     *\n     * // remove the right secondary node\n     * router.createUrlTree(['/team', 33, {outlets: {primary: 'user/11', right: null}}]);\n     *\n     * // assuming the current url is `/team/33/user/11` and the route points to `user/11`\n     *\n     * // navigate to /team/33/user/11/details\n     * router.createUrlTree(['details'], {relativeTo: route});\n     *\n     * // navigate to /team/33/user/22\n     * router.createUrlTree(['../22'], {relativeTo: route});\n     *\n     * // navigate to /team/44/user/22\n     * router.createUrlTree(['../../team/44/user/22'], {relativeTo: route});\n     *\n     * Note that a value of `null` or `undefined` for `relativeTo` indicates that the\n     * tree should be created relative to the root.\n     * ```\n     */\n    createUrlTree(commands, navigationExtras = {}) {\n      const {\n        relativeTo,\n        queryParams,\n        fragment,\n        queryParamsHandling,\n        preserveFragment\n      } = navigationExtras;\n      const f = preserveFragment ? this.currentUrlTree.fragment : fragment;\n      let q = null;\n      switch (queryParamsHandling) {\n        case 'merge':\n          q = {\n            ...this.currentUrlTree.queryParams,\n            ...queryParams\n          };\n          break;\n        case 'preserve':\n          q = this.currentUrlTree.queryParams;\n          break;\n        default:\n          q = queryParams || null;\n      }\n      if (q !== null) {\n        q = this.removeEmptyProps(q);\n      }\n      let relativeToUrlSegmentGroup;\n      try {\n        const relativeToSnapshot = relativeTo ? relativeTo.snapshot : this.routerState.snapshot.root;\n        relativeToUrlSegmentGroup = createSegmentGroupFromRoute(relativeToSnapshot);\n      } catch (e) {\n        // This is strictly for backwards compatibility with tests that create\n        // invalid `ActivatedRoute` mocks.\n        // Note: the difference between having this fallback for invalid `ActivatedRoute` setups and\n        // just throwing is ~500 test failures. Fixing all of those tests by hand is not feasible at\n        // the moment.\n        if (typeof commands[0] !== 'string' || !commands[0].startsWith('/')) {\n          // Navigations that were absolute in the old way of creating UrlTrees\n          // would still work because they wouldn't attempt to match the\n          // segments in the `ActivatedRoute` to the `currentUrlTree` but\n          // instead just replace the root segment with the navigation result.\n          // Non-absolute navigations would fail to apply the commands because\n          // the logic could not find the segment to replace (so they'd act like there were no\n          // commands).\n          commands = [];\n        }\n        relativeToUrlSegmentGroup = this.currentUrlTree.root;\n      }\n      return createUrlTreeFromSegmentGroup(relativeToUrlSegmentGroup, commands, q, f ?? null);\n    }\n    /**\n     * Navigates to a view using an absolute route path.\n     *\n     * @param url An absolute path for a defined route. The function does not apply any delta to the\n     *     current URL.\n     * @param extras An object containing properties that modify the navigation strategy.\n     *\n     * @returns A Promise that resolves to 'true' when navigation succeeds,\n     * to 'false' when navigation fails, or is rejected on error.\n     *\n     * @usageNotes\n     *\n     * The following calls request navigation to an absolute path.\n     *\n     * ```\n     * router.navigateByUrl(\"/team/33/user/11\");\n     *\n     * // Navigate without updating the URL\n     * router.navigateByUrl(\"/team/33/user/11\", { skipLocationChange: true });\n     * ```\n     *\n     * @see [Routing and Navigation guide](guide/router)\n     *\n     */\n    navigateByUrl(url, extras = {\n      skipLocationChange: false\n    }) {\n      if (typeof ngDevMode === 'undefined' || ngDevMode) {\n        if (this.isNgZoneEnabled && !NgZone.isInAngularZone()) {\n          this.console.warn(`Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?`);\n        }\n      }\n      const urlTree = isUrlTree(url) ? url : this.parseUrl(url);\n      const mergedTree = this.urlHandlingStrategy.merge(urlTree, this.rawUrlTree);\n      return this.scheduleNavigation(mergedTree, IMPERATIVE_NAVIGATION, null, extras);\n    }\n    /**\n     * Navigate based on the provided array of commands and a starting point.\n     * If no starting route is provided, the navigation is absolute.\n     *\n     * @param commands An array of URL fragments with which to construct the target URL.\n     * If the path is static, can be the literal URL string. For a dynamic path, pass an array of path\n     * segments, followed by the parameters for each segment.\n     * The fragments are applied to the current URL or the one provided  in the `relativeTo` property\n     * of the options object, if supplied.\n     * @param extras An options object that determines how the URL should be constructed or\n     *     interpreted.\n     *\n     * @returns A Promise that resolves to `true` when navigation succeeds, or `false` when navigation\n     *     fails. The Promise is rejected when an error occurs if `resolveNavigationPromiseOnError` is\n     * not `true`.\n     *\n     * @usageNotes\n     *\n     * The following calls request navigation to a dynamic route path relative to the current URL.\n     *\n     * ```\n     * router.navigate(['team', 33, 'user', 11], {relativeTo: route});\n     *\n     * // Navigate without updating the URL, overriding the default behavior\n     * router.navigate(['team', 33, 'user', 11], {relativeTo: route, skipLocationChange: true});\n     * ```\n     *\n     * @see [Routing and Navigation guide](guide/router)\n     *\n     */\n    navigate(commands, extras = {\n      skipLocationChange: false\n    }) {\n      validateCommands(commands);\n      return this.navigateByUrl(this.createUrlTree(commands, extras), extras);\n    }\n    /** Serializes a `UrlTree` into a string */\n    serializeUrl(url) {\n      return this.urlSerializer.serialize(url);\n    }\n    /** Parses a string into a `UrlTree` */\n    parseUrl(url) {\n      try {\n        return this.urlSerializer.parse(url);\n      } catch {\n        return this.urlSerializer.parse('/');\n      }\n    }\n    isActive(url, matchOptions) {\n      let options;\n      if (matchOptions === true) {\n        options = {\n          ...exactMatchOptions\n        };\n      } else if (matchOptions === false) {\n        options = {\n          ...subsetMatchOptions\n        };\n      } else {\n        options = matchOptions;\n      }\n      if (isUrlTree(url)) {\n        return containsTree(this.currentUrlTree, url, options);\n      }\n      const urlTree = this.parseUrl(url);\n      return containsTree(this.currentUrlTree, urlTree, options);\n    }\n    removeEmptyProps(params) {\n      return Object.entries(params).reduce((result, [key, value]) => {\n        if (value !== null && value !== undefined) {\n          result[key] = value;\n        }\n        return result;\n      }, {});\n    }\n    scheduleNavigation(rawUrl, source, restoredState, extras, priorPromise) {\n      if (this.disposed) {\n        return Promise.resolve(false);\n      }\n      let resolve;\n      let reject;\n      let promise;\n      if (priorPromise) {\n        resolve = priorPromise.resolve;\n        reject = priorPromise.reject;\n        promise = priorPromise.promise;\n      } else {\n        promise = new Promise((res, rej) => {\n          resolve = res;\n          reject = rej;\n        });\n      }\n      // Indicate that the navigation is happening.\n      const taskId = this.pendingTasks.add();\n      afterNextNavigation(this, () => {\n        // Remove pending task in a microtask to allow for cancelled\n        // initial navigations and redirects within the same task.\n        queueMicrotask(() => this.pendingTasks.remove(taskId));\n      });\n      this.navigationTransitions.handleNavigationRequest({\n        source,\n        restoredState,\n        currentUrlTree: this.currentUrlTree,\n        currentRawUrl: this.currentUrlTree,\n        rawUrl,\n        extras,\n        resolve,\n        reject,\n        promise,\n        currentSnapshot: this.routerState.snapshot,\n        currentRouterState: this.routerState\n      });\n      // Make sure that the error is propagated even though `processNavigations` catch\n      // handler does not rethrow\n      return promise.catch(e => {\n        return Promise.reject(e);\n      });\n    }\n    static {\n      this.ɵfac = function Router_Factory(t) {\n        return new (t || Router)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: Router,\n        factory: Router.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return Router;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction validateCommands(commands) {\n  for (let i = 0; i < commands.length; i++) {\n    const cmd = commands[i];\n    if (cmd == null) {\n      throw new ɵRuntimeError(4008 /* RuntimeErrorCode.NULLISH_COMMAND */, (typeof ngDevMode === 'undefined' || ngDevMode) && `The requested path contains ${cmd} segment at index ${i}`);\n    }\n  }\n}\nfunction isPublicRouterEvent(e) {\n  return !(e instanceof BeforeActivateRoutes) && !(e instanceof RedirectRequest);\n}\n\n/**\n * @description\n *\n * When applied to an element in a template, makes that element a link\n * that initiates navigation to a route. Navigation opens one or more routed components\n * in one or more `<router-outlet>` locations on the page.\n *\n * Given a route configuration `[{ path: 'user/:name', component: UserCmp }]`,\n * the following creates a static link to the route:\n * `<a routerLink=\"/user/bob\">link to user component</a>`\n *\n * You can use dynamic values to generate the link.\n * For a dynamic link, pass an array of path segments,\n * followed by the params for each segment.\n * For example, `['/team', teamId, 'user', userName, {details: true}]`\n * generates a link to `/team/11/user/bob;details=true`.\n *\n * Multiple static segments can be merged into one term and combined with dynamic segments.\n * For example, `['/team/11/user', userName, {details: true}]`\n *\n * The input that you provide to the link is treated as a delta to the current URL.\n * For instance, suppose the current URL is `/user/(box//aux:team)`.\n * The link `<a [routerLink]=\"['/user/jim']\">Jim</a>` creates the URL\n * `/user/(jim//aux:team)`.\n * See {@link Router#createUrlTree} for more information.\n *\n * @usageNotes\n *\n * You can use absolute or relative paths in a link, set query parameters,\n * control how parameters are handled, and keep a history of navigation states.\n *\n * ### Relative link paths\n *\n * The first segment name can be prepended with `/`, `./`, or `../`.\n * * If the first segment begins with `/`, the router looks up the route from the root of the\n *   app.\n * * If the first segment begins with `./`, or doesn't begin with a slash, the router\n *   looks in the children of the current activated route.\n * * If the first segment begins with `../`, the router goes up one level in the route tree.\n *\n * ### Setting and handling query params and fragments\n *\n * The following link adds a query parameter and a fragment to the generated URL:\n *\n * ```\n * <a [routerLink]=\"['/user/bob']\" [queryParams]=\"{debug: true}\" fragment=\"education\">\n *   link to user component\n * </a>\n * ```\n * By default, the directive constructs the new URL using the given query parameters.\n * The example generates the link: `/user/bob?debug=true#education`.\n *\n * You can instruct the directive to handle query parameters differently\n * by specifying the `queryParamsHandling` option in the link.\n * Allowed values are:\n *\n *  - `'merge'`: Merge the given `queryParams` into the current query params.\n *  - `'preserve'`: Preserve the current query params.\n *\n * For example:\n *\n * ```\n * <a [routerLink]=\"['/user/bob']\" [queryParams]=\"{debug: true}\" queryParamsHandling=\"merge\">\n *   link to user component\n * </a>\n * ```\n *\n * See {@link UrlCreationOptions#queryParamsHandling}.\n *\n * ### Preserving navigation history\n *\n * You can provide a `state` value to be persisted to the browser's\n * [`History.state` property](https://developer.mozilla.org/en-US/docs/Web/API/History#Properties).\n * For example:\n *\n * ```\n * <a [routerLink]=\"['/user/bob']\" [state]=\"{tracingId: 123}\">\n *   link to user component\n * </a>\n * ```\n *\n * Use {@link Router#getCurrentNavigation} to retrieve a saved\n * navigation-state value. For example, to capture the `tracingId` during the `NavigationStart`\n * event:\n *\n * ```\n * // Get NavigationStart events\n * router.events.pipe(filter(e => e instanceof NavigationStart)).subscribe(e => {\n *   const navigation = router.getCurrentNavigation();\n *   tracingService.trace({id: navigation.extras.state.tracingId});\n * });\n * ```\n *\n * @ngModule RouterModule\n *\n * @publicApi\n */\nlet RouterLink = /*#__PURE__*/(() => {\n  class RouterLink {\n    constructor(router, route, tabIndexAttribute, renderer, el, locationStrategy) {\n      this.router = router;\n      this.route = route;\n      this.tabIndexAttribute = tabIndexAttribute;\n      this.renderer = renderer;\n      this.el = el;\n      this.locationStrategy = locationStrategy;\n      /**\n       * Represents an `href` attribute value applied to a host element,\n       * when a host element is `<a>`. For other tags, the value is `null`.\n       */\n      this.href = null;\n      this.commands = null;\n      /** @internal */\n      this.onChanges = new Subject();\n      /**\n       * Passed to {@link Router#createUrlTree} as part of the\n       * `UrlCreationOptions`.\n       * @see {@link UrlCreationOptions#preserveFragment}\n       * @see {@link Router#createUrlTree}\n       */\n      this.preserveFragment = false;\n      /**\n       * Passed to {@link Router#navigateByUrl} as part of the\n       * `NavigationBehaviorOptions`.\n       * @see {@link NavigationBehaviorOptions#skipLocationChange}\n       * @see {@link Router#navigateByUrl}\n       */\n      this.skipLocationChange = false;\n      /**\n       * Passed to {@link Router#navigateByUrl} as part of the\n       * `NavigationBehaviorOptions`.\n       * @see {@link NavigationBehaviorOptions#replaceUrl}\n       * @see {@link Router#navigateByUrl}\n       */\n      this.replaceUrl = false;\n      const tagName = el.nativeElement.tagName?.toLowerCase();\n      this.isAnchorElement = tagName === 'a' || tagName === 'area';\n      if (this.isAnchorElement) {\n        this.subscription = router.events.subscribe(s => {\n          if (s instanceof NavigationEnd) {\n            this.updateHref();\n          }\n        });\n      } else {\n        this.setTabIndexIfNotOnNativeEl('0');\n      }\n    }\n    /**\n     * Modifies the tab index if there was not a tabindex attribute on the element during\n     * instantiation.\n     */\n    setTabIndexIfNotOnNativeEl(newTabIndex) {\n      if (this.tabIndexAttribute != null /* both `null` and `undefined` */ || this.isAnchorElement) {\n        return;\n      }\n      this.applyAttributeValue('tabindex', newTabIndex);\n    }\n    /** @nodoc */\n    ngOnChanges(changes) {\n      if (this.isAnchorElement) {\n        this.updateHref();\n      }\n      // This is subscribed to by `RouterLinkActive` so that it knows to update when there are changes\n      // to the RouterLinks it's tracking.\n      this.onChanges.next(this);\n    }\n    /**\n     * Commands to pass to {@link Router#createUrlTree}.\n     *   - **array**: commands to pass to {@link Router#createUrlTree}.\n     *   - **string**: shorthand for array of commands with just the string, i.e. `['/route']`\n     *   - **null|undefined**: effectively disables the `routerLink`\n     * @see {@link Router#createUrlTree}\n     */\n    set routerLink(commands) {\n      if (commands != null) {\n        this.commands = Array.isArray(commands) ? commands : [commands];\n        this.setTabIndexIfNotOnNativeEl('0');\n      } else {\n        this.commands = null;\n        this.setTabIndexIfNotOnNativeEl(null);\n      }\n    }\n    /** @nodoc */\n    onClick(button, ctrlKey, shiftKey, altKey, metaKey) {\n      const urlTree = this.urlTree;\n      if (urlTree === null) {\n        return true;\n      }\n      if (this.isAnchorElement) {\n        if (button !== 0 || ctrlKey || shiftKey || altKey || metaKey) {\n          return true;\n        }\n        if (typeof this.target === 'string' && this.target != '_self') {\n          return true;\n        }\n      }\n      const extras = {\n        skipLocationChange: this.skipLocationChange,\n        replaceUrl: this.replaceUrl,\n        state: this.state,\n        info: this.info\n      };\n      this.router.navigateByUrl(urlTree, extras);\n      // Return `false` for `<a>` elements to prevent default action\n      // and cancel the native behavior, since the navigation is handled\n      // by the Router.\n      return !this.isAnchorElement;\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n      this.subscription?.unsubscribe();\n    }\n    updateHref() {\n      const urlTree = this.urlTree;\n      this.href = urlTree !== null && this.locationStrategy ? this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(urlTree)) : null;\n      const sanitizedValue = this.href === null ? null :\n      // This class represents a directive that can be added to both `<a>` elements,\n      // as well as other elements. As a result, we can't define security context at\n      // compile time. So the security context is deferred to runtime.\n      // The `ɵɵsanitizeUrlOrResourceUrl` selects the necessary sanitizer function\n      // based on the tag and property names. The logic mimics the one from\n      // `packages/compiler/src/schema/dom_security_schema.ts`, which is used at compile time.\n      //\n      // Note: we should investigate whether we can switch to using `@HostBinding('attr.href')`\n      // instead of applying a value via a renderer, after a final merge of the\n      // `RouterLinkWithHref` directive.\n      ɵɵsanitizeUrlOrResourceUrl(this.href, this.el.nativeElement.tagName.toLowerCase(), 'href');\n      this.applyAttributeValue('href', sanitizedValue);\n    }\n    applyAttributeValue(attrName, attrValue) {\n      const renderer = this.renderer;\n      const nativeElement = this.el.nativeElement;\n      if (attrValue !== null) {\n        renderer.setAttribute(nativeElement, attrName, attrValue);\n      } else {\n        renderer.removeAttribute(nativeElement, attrName);\n      }\n    }\n    get urlTree() {\n      if (this.commands === null) {\n        return null;\n      }\n      return this.router.createUrlTree(this.commands, {\n        // If the `relativeTo` input is not defined, we want to use `this.route` by default.\n        // Otherwise, we should use the value provided by the user in the input.\n        relativeTo: this.relativeTo !== undefined ? this.relativeTo : this.route,\n        queryParams: this.queryParams,\n        fragment: this.fragment,\n        queryParamsHandling: this.queryParamsHandling,\n        preserveFragment: this.preserveFragment\n      });\n    }\n    static {\n      this.ɵfac = function RouterLink_Factory(t) {\n        return new (t || RouterLink)(i0.ɵɵdirectiveInject(Router), i0.ɵɵdirectiveInject(ActivatedRoute), i0.ɵɵinjectAttribute('tabindex'), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i3.LocationStrategy));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: RouterLink,\n        selectors: [[\"\", \"routerLink\", \"\"]],\n        hostVars: 1,\n        hostBindings: function RouterLink_HostBindings(rf, ctx) {\n          if (rf & 1) {\n            i0.ɵɵlistener(\"click\", function RouterLink_click_HostBindingHandler($event) {\n              return ctx.onClick($event.button, $event.ctrlKey, $event.shiftKey, $event.altKey, $event.metaKey);\n            });\n          }\n          if (rf & 2) {\n            i0.ɵɵattribute(\"target\", ctx.target);\n          }\n        },\n        inputs: {\n          target: \"target\",\n          queryParams: \"queryParams\",\n          fragment: \"fragment\",\n          queryParamsHandling: \"queryParamsHandling\",\n          state: \"state\",\n          info: \"info\",\n          relativeTo: \"relativeTo\",\n          preserveFragment: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"preserveFragment\", \"preserveFragment\", booleanAttribute],\n          skipLocationChange: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"skipLocationChange\", \"skipLocationChange\", booleanAttribute],\n          replaceUrl: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"replaceUrl\", \"replaceUrl\", booleanAttribute],\n          routerLink: \"routerLink\"\n        },\n        standalone: true,\n        features: [i0.ɵɵInputTransformsFeature, i0.ɵɵNgOnChangesFeature]\n      });\n    }\n  }\n  return RouterLink;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n *\n * @description\n *\n * Tracks whether the linked route of an element is currently active, and allows you\n * to specify one or more CSS classes to add to the element when the linked route\n * is active.\n *\n * Use this directive to create a visual distinction for elements associated with an active route.\n * For example, the following code highlights the word \"Bob\" when the router\n * activates the associated route:\n *\n * ```\n * <a routerLink=\"/user/bob\" routerLinkActive=\"active-link\">Bob</a>\n * ```\n *\n * Whenever the URL is either '/user' or '/user/bob', the \"active-link\" class is\n * added to the anchor tag. If the URL changes, the class is removed.\n *\n * You can set more than one class using a space-separated string or an array.\n * For example:\n *\n * ```\n * <a routerLink=\"/user/bob\" routerLinkActive=\"class1 class2\">Bob</a>\n * <a routerLink=\"/user/bob\" [routerLinkActive]=\"['class1', 'class2']\">Bob</a>\n * ```\n *\n * To add the classes only when the URL matches the link exactly, add the option `exact: true`:\n *\n * ```\n * <a routerLink=\"/user/bob\" routerLinkActive=\"active-link\" [routerLinkActiveOptions]=\"{exact:\n * true}\">Bob</a>\n * ```\n *\n * To directly check the `isActive` status of the link, assign the `RouterLinkActive`\n * instance to a template variable.\n * For example, the following checks the status without assigning any CSS classes:\n *\n * ```\n * <a routerLink=\"/user/bob\" routerLinkActive #rla=\"routerLinkActive\">\n *   Bob {{ rla.isActive ? '(already open)' : ''}}\n * </a>\n * ```\n *\n * You can apply the `RouterLinkActive` directive to an ancestor of linked elements.\n * For example, the following sets the active-link class on the `<div>`  parent tag\n * when the URL is either '/user/jim' or '/user/bob'.\n *\n * ```\n * <div routerLinkActive=\"active-link\" [routerLinkActiveOptions]=\"{exact: true}\">\n *   <a routerLink=\"/user/jim\">Jim</a>\n *   <a routerLink=\"/user/bob\">Bob</a>\n * </div>\n * ```\n *\n * The `RouterLinkActive` directive can also be used to set the aria-current attribute\n * to provide an alternative distinction for active elements to visually impaired users.\n *\n * For example, the following code adds the 'active' class to the Home Page link when it is\n * indeed active and in such case also sets its aria-current attribute to 'page':\n *\n * ```\n * <a routerLink=\"/\" routerLinkActive=\"active\" ariaCurrentWhenActive=\"page\">Home Page</a>\n * ```\n *\n * @ngModule RouterModule\n *\n * @publicApi\n */\nlet RouterLinkActive = /*#__PURE__*/(() => {\n  class RouterLinkActive {\n    get isActive() {\n      return this._isActive;\n    }\n    constructor(router, element, renderer, cdr, link) {\n      this.router = router;\n      this.element = element;\n      this.renderer = renderer;\n      this.cdr = cdr;\n      this.link = link;\n      this.classes = [];\n      this._isActive = false;\n      /**\n       * Options to configure how to determine if the router link is active.\n       *\n       * These options are passed to the `Router.isActive()` function.\n       *\n       * @see {@link Router#isActive}\n       */\n      this.routerLinkActiveOptions = {\n        exact: false\n      };\n      /**\n       *\n       * You can use the output `isActiveChange` to get notified each time the link becomes\n       * active or inactive.\n       *\n       * Emits:\n       * true  -> Route is active\n       * false -> Route is inactive\n       *\n       * ```\n       * <a\n       *  routerLink=\"/user/bob\"\n       *  routerLinkActive=\"active-link\"\n       *  (isActiveChange)=\"this.onRouterLinkActive($event)\">Bob</a>\n       * ```\n       */\n      this.isActiveChange = new EventEmitter();\n      this.routerEventsSubscription = router.events.subscribe(s => {\n        if (s instanceof NavigationEnd) {\n          this.update();\n        }\n      });\n    }\n    /** @nodoc */\n    ngAfterContentInit() {\n      // `of(null)` is used to force subscribe body to execute once immediately (like `startWith`).\n      of(this.links.changes, of(null)).pipe(mergeAll()).subscribe(_ => {\n        this.update();\n        this.subscribeToEachLinkOnChanges();\n      });\n    }\n    subscribeToEachLinkOnChanges() {\n      this.linkInputChangesSubscription?.unsubscribe();\n      const allLinkChanges = [...this.links.toArray(), this.link].filter(link => !!link).map(link => link.onChanges);\n      this.linkInputChangesSubscription = from(allLinkChanges).pipe(mergeAll()).subscribe(link => {\n        if (this._isActive !== this.isLinkActive(this.router)(link)) {\n          this.update();\n        }\n      });\n    }\n    set routerLinkActive(data) {\n      const classes = Array.isArray(data) ? data : data.split(' ');\n      this.classes = classes.filter(c => !!c);\n    }\n    /** @nodoc */\n    ngOnChanges(changes) {\n      this.update();\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n      this.routerEventsSubscription.unsubscribe();\n      this.linkInputChangesSubscription?.unsubscribe();\n    }\n    update() {\n      if (!this.links || !this.router.navigated) return;\n      queueMicrotask(() => {\n        const hasActiveLinks = this.hasActiveLinks();\n        this.classes.forEach(c => {\n          if (hasActiveLinks) {\n            this.renderer.addClass(this.element.nativeElement, c);\n          } else {\n            this.renderer.removeClass(this.element.nativeElement, c);\n          }\n        });\n        if (hasActiveLinks && this.ariaCurrentWhenActive !== undefined) {\n          this.renderer.setAttribute(this.element.nativeElement, 'aria-current', this.ariaCurrentWhenActive.toString());\n        } else {\n          this.renderer.removeAttribute(this.element.nativeElement, 'aria-current');\n        }\n        // Only emit change if the active state changed.\n        if (this._isActive !== hasActiveLinks) {\n          this._isActive = hasActiveLinks;\n          this.cdr.markForCheck();\n          // Emit on isActiveChange after classes are updated\n          this.isActiveChange.emit(hasActiveLinks);\n        }\n      });\n    }\n    isLinkActive(router) {\n      const options = isActiveMatchOptions(this.routerLinkActiveOptions) ? this.routerLinkActiveOptions :\n      // While the types should disallow `undefined` here, it's possible without strict inputs\n      this.routerLinkActiveOptions.exact || false;\n      return link => {\n        const urlTree = link.urlTree;\n        return urlTree ? router.isActive(urlTree, options) : false;\n      };\n    }\n    hasActiveLinks() {\n      const isActiveCheckFn = this.isLinkActive(this.router);\n      return this.link && isActiveCheckFn(this.link) || this.links.some(isActiveCheckFn);\n    }\n    static {\n      this.ɵfac = function RouterLinkActive_Factory(t) {\n        return new (t || RouterLinkActive)(i0.ɵɵdirectiveInject(Router), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(RouterLink, 8));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: RouterLinkActive,\n        selectors: [[\"\", \"routerLinkActive\", \"\"]],\n        contentQueries: function RouterLinkActive_ContentQueries(rf, ctx, dirIndex) {\n          if (rf & 1) {\n            i0.ɵɵcontentQuery(dirIndex, RouterLink, 5);\n          }\n          if (rf & 2) {\n            let _t;\n            i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.links = _t);\n          }\n        },\n        inputs: {\n          routerLinkActiveOptions: \"routerLinkActiveOptions\",\n          ariaCurrentWhenActive: \"ariaCurrentWhenActive\",\n          routerLinkActive: \"routerLinkActive\"\n        },\n        outputs: {\n          isActiveChange: \"isActiveChange\"\n        },\n        exportAs: [\"routerLinkActive\"],\n        standalone: true,\n        features: [i0.ɵɵNgOnChangesFeature]\n      });\n    }\n  }\n  return RouterLinkActive;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Use instead of `'paths' in options` to be compatible with property renaming\n */\nfunction isActiveMatchOptions(options) {\n  return !!options.paths;\n}\n\n/**\n * @description\n *\n * Provides a preloading strategy.\n *\n * @publicApi\n */\nclass PreloadingStrategy {}\n/**\n * @description\n *\n * Provides a preloading strategy that preloads all modules as quickly as possible.\n *\n * ```\n * RouterModule.forRoot(ROUTES, {preloadingStrategy: PreloadAllModules})\n * ```\n *\n * @publicApi\n */\nlet PreloadAllModules = /*#__PURE__*/(() => {\n  class PreloadAllModules {\n    preload(route, fn) {\n      return fn().pipe(catchError(() => of(null)));\n    }\n    static {\n      this.ɵfac = function PreloadAllModules_Factory(t) {\n        return new (t || PreloadAllModules)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: PreloadAllModules,\n        factory: PreloadAllModules.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return PreloadAllModules;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n *\n * Provides a preloading strategy that does not preload any modules.\n *\n * This strategy is enabled by default.\n *\n * @publicApi\n */\nlet NoPreloading = /*#__PURE__*/(() => {\n  class NoPreloading {\n    preload(route, fn) {\n      return of(null);\n    }\n    static {\n      this.ɵfac = function NoPreloading_Factory(t) {\n        return new (t || NoPreloading)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: NoPreloading,\n        factory: NoPreloading.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return NoPreloading;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * The preloader optimistically loads all router configurations to\n * make navigations into lazily-loaded sections of the application faster.\n *\n * The preloader runs in the background. When the router bootstraps, the preloader\n * starts listening to all navigation events. After every such event, the preloader\n * will check if any configurations can be loaded lazily.\n *\n * If a route is protected by `canLoad` guards, the preloaded will not load it.\n *\n * @publicApi\n */\nlet RouterPreloader = /*#__PURE__*/(() => {\n  class RouterPreloader {\n    constructor(router, compiler, injector, preloadingStrategy, loader) {\n      this.router = router;\n      this.injector = injector;\n      this.preloadingStrategy = preloadingStrategy;\n      this.loader = loader;\n    }\n    setUpPreloading() {\n      this.subscription = this.router.events.pipe(filter(e => e instanceof NavigationEnd), concatMap(() => this.preload())).subscribe(() => {});\n    }\n    preload() {\n      return this.processRoutes(this.injector, this.router.config);\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n      if (this.subscription) {\n        this.subscription.unsubscribe();\n      }\n    }\n    processRoutes(injector, routes) {\n      const res = [];\n      for (const route of routes) {\n        if (route.providers && !route._injector) {\n          route._injector = createEnvironmentInjector(route.providers, injector, `Route: ${route.path}`);\n        }\n        const injectorForCurrentRoute = route._injector ?? injector;\n        const injectorForChildren = route._loadedInjector ?? injectorForCurrentRoute;\n        // Note that `canLoad` is only checked as a condition that prevents `loadChildren` and not\n        // `loadComponent`. `canLoad` guards only block loading of child routes by design. This\n        // happens as a consequence of needing to descend into children for route matching immediately\n        // while component loading is deferred until route activation. Because `canLoad` guards can\n        // have side effects, we cannot execute them here so we instead skip preloading altogether\n        // when present. Lastly, it remains to be decided whether `canLoad` should behave this way\n        // at all. Code splitting and lazy loading is separate from client-side authorization checks\n        // and should not be used as a security measure to prevent loading of code.\n        if (route.loadChildren && !route._loadedRoutes && route.canLoad === undefined || route.loadComponent && !route._loadedComponent) {\n          res.push(this.preloadConfig(injectorForCurrentRoute, route));\n        }\n        if (route.children || route._loadedRoutes) {\n          res.push(this.processRoutes(injectorForChildren, route.children ?? route._loadedRoutes));\n        }\n      }\n      return from(res).pipe(mergeAll());\n    }\n    preloadConfig(injector, route) {\n      return this.preloadingStrategy.preload(route, () => {\n        let loadedChildren$;\n        if (route.loadChildren && route.canLoad === undefined) {\n          loadedChildren$ = this.loader.loadChildren(injector, route);\n        } else {\n          loadedChildren$ = of(null);\n        }\n        const recursiveLoadChildren$ = loadedChildren$.pipe(mergeMap(config => {\n          if (config === null) {\n            return of(void 0);\n          }\n          route._loadedRoutes = config.routes;\n          route._loadedInjector = config.injector;\n          // If the loaded config was a module, use that as the module/module injector going\n          // forward. Otherwise, continue using the current module/module injector.\n          return this.processRoutes(config.injector ?? injector, config.routes);\n        }));\n        if (route.loadComponent && !route._loadedComponent) {\n          const loadComponent$ = this.loader.loadComponent(route);\n          return from([recursiveLoadChildren$, loadComponent$]).pipe(mergeAll());\n        } else {\n          return recursiveLoadChildren$;\n        }\n      });\n    }\n    static {\n      this.ɵfac = function RouterPreloader_Factory(t) {\n        return new (t || RouterPreloader)(i0.ɵɵinject(Router), i0.ɵɵinject(i0.Compiler), i0.ɵɵinject(i0.EnvironmentInjector), i0.ɵɵinject(PreloadingStrategy), i0.ɵɵinject(RouterConfigLoader));\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: RouterPreloader,\n        factory: RouterPreloader.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return RouterPreloader;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst ROUTER_SCROLLER = /*#__PURE__*/new InjectionToken('');\nlet RouterScroller = /*#__PURE__*/(() => {\n  class RouterScroller {\n    /** @nodoc */\n    constructor(urlSerializer, transitions, viewportScroller, zone, options = {}) {\n      this.urlSerializer = urlSerializer;\n      this.transitions = transitions;\n      this.viewportScroller = viewportScroller;\n      this.zone = zone;\n      this.options = options;\n      this.lastId = 0;\n      this.lastSource = 'imperative';\n      this.restoredId = 0;\n      this.store = {};\n      this.environmentInjector = inject(EnvironmentInjector);\n      // Default both options to 'disabled'\n      options.scrollPositionRestoration ||= 'disabled';\n      options.anchorScrolling ||= 'disabled';\n    }\n    init() {\n      // we want to disable the automatic scrolling because having two places\n      // responsible for scrolling results race conditions, especially given\n      // that browser don't implement this behavior consistently\n      if (this.options.scrollPositionRestoration !== 'disabled') {\n        this.viewportScroller.setHistoryScrollRestoration('manual');\n      }\n      this.routerEventsSubscription = this.createScrollEvents();\n      this.scrollEventsSubscription = this.consumeScrollEvents();\n    }\n    createScrollEvents() {\n      return this.transitions.events.subscribe(e => {\n        if (e instanceof NavigationStart) {\n          // store the scroll position of the current stable navigations.\n          this.store[this.lastId] = this.viewportScroller.getScrollPosition();\n          this.lastSource = e.navigationTrigger;\n          this.restoredId = e.restoredState ? e.restoredState.navigationId : 0;\n        } else if (e instanceof NavigationEnd) {\n          this.lastId = e.id;\n          this.scheduleScrollEvent(e, this.urlSerializer.parse(e.urlAfterRedirects).fragment);\n        } else if (e instanceof NavigationSkipped && e.code === NavigationSkippedCode.IgnoredSameUrlNavigation) {\n          this.lastSource = undefined;\n          this.restoredId = 0;\n          this.scheduleScrollEvent(e, this.urlSerializer.parse(e.url).fragment);\n        }\n      });\n    }\n    consumeScrollEvents() {\n      return this.transitions.events.subscribe(e => {\n        if (!(e instanceof Scroll)) return;\n        // a popstate event. The pop state event will always ignore anchor scrolling.\n        if (e.position) {\n          if (this.options.scrollPositionRestoration === 'top') {\n            this.viewportScroller.scrollToPosition([0, 0]);\n          } else if (this.options.scrollPositionRestoration === 'enabled') {\n            this.viewportScroller.scrollToPosition(e.position);\n          }\n          // imperative navigation \"forward\"\n        } else {\n          if (e.anchor && this.options.anchorScrolling === 'enabled') {\n            this.viewportScroller.scrollToAnchor(e.anchor);\n          } else if (this.options.scrollPositionRestoration !== 'disabled') {\n            this.viewportScroller.scrollToPosition([0, 0]);\n          }\n        }\n      });\n    }\n    scheduleScrollEvent(routerEvent, anchor) {\n      this.zone.runOutsideAngular(async () => {\n        // The scroll event needs to be delayed until after change detection. Otherwise we may\n        // attempt to restore the scroll position before the router outlet has fully rendered the\n        // component by executing its update block of the template function.\n        await new Promise(resolve => {\n          // TODO(atscott): Attempt to remove the setTimeout in a future PR.\n          setTimeout(() => {\n            resolve();\n          });\n          afterNextRender(() => {\n            resolve();\n          }, {\n            injector: this.environmentInjector\n          });\n        });\n        this.zone.run(() => {\n          this.transitions.events.next(new Scroll(routerEvent, this.lastSource === 'popstate' ? this.store[this.restoredId] : null, anchor));\n        });\n      });\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n      this.routerEventsSubscription?.unsubscribe();\n      this.scrollEventsSubscription?.unsubscribe();\n    }\n    static {\n      this.ɵfac = function RouterScroller_Factory(t) {\n        i0.ɵɵinvalidFactory();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: RouterScroller,\n        factory: RouterScroller.ɵfac\n      });\n    }\n  }\n  return RouterScroller;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Sets up providers necessary to enable `Router` functionality for the application.\n * Allows to configure a set of routes as well as extra features that should be enabled.\n *\n * @usageNotes\n *\n * Basic example of how you can add a Router to your application:\n * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent, {\n *   providers: [provideRouter(appRoutes)]\n * });\n * ```\n *\n * You can also enable optional features in the Router by adding functions from the `RouterFeatures`\n * type:\n * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n *   {\n *     providers: [\n *       provideRouter(appRoutes,\n *         withDebugTracing(),\n *         withRouterConfig({paramsInheritanceStrategy: 'always'}))\n *     ]\n *   }\n * );\n * ```\n *\n * @see {@link RouterFeatures}\n *\n * @publicApi\n * @param routes A set of `Route`s to use for the application routing table.\n * @param features Optional features to configure additional router behaviors.\n * @returns A set of providers to setup a Router.\n */\nfunction provideRouter(routes, ...features) {\n  return makeEnvironmentProviders([{\n    provide: ROUTES,\n    multi: true,\n    useValue: routes\n  }, typeof ngDevMode === 'undefined' || ngDevMode ? {\n    provide: ROUTER_IS_PROVIDED,\n    useValue: true\n  } : [], {\n    provide: ActivatedRoute,\n    useFactory: rootRoute,\n    deps: [Router]\n  }, {\n    provide: APP_BOOTSTRAP_LISTENER,\n    multi: true,\n    useFactory: getBootstrapListener\n  }, features.map(feature => feature.ɵproviders)]);\n}\nfunction rootRoute(router) {\n  return router.routerState.root;\n}\n/**\n * Helper function to create an object that represents a Router feature.\n */\nfunction routerFeature(kind, providers) {\n  return {\n    ɵkind: kind,\n    ɵproviders: providers\n  };\n}\n/**\n * An Injection token used to indicate whether `provideRouter` or `RouterModule.forRoot` was ever\n * called.\n */\nconst ROUTER_IS_PROVIDED = /*#__PURE__*/new InjectionToken('', {\n  providedIn: 'root',\n  factory: () => false\n});\nconst routerIsProvidedDevModeCheck = {\n  provide: ENVIRONMENT_INITIALIZER,\n  multi: true,\n  useFactory() {\n    return () => {\n      if (!inject(ROUTER_IS_PROVIDED)) {\n        console.warn('`provideRoutes` was called without `provideRouter` or `RouterModule.forRoot`. ' + 'This is likely a mistake.');\n      }\n    };\n  }\n};\n/**\n * Registers a [DI provider](guide/glossary#provider) for a set of routes.\n * @param routes The route configuration to provide.\n *\n * @usageNotes\n *\n * ```\n * @NgModule({\n *   providers: [provideRoutes(ROUTES)]\n * })\n * class LazyLoadedChildModule {}\n * ```\n *\n * @deprecated If necessary, provide routes using the `ROUTES` `InjectionToken`.\n * @see {@link ROUTES}\n * @publicApi\n */\nfunction provideRoutes(routes) {\n  return [{\n    provide: ROUTES,\n    multi: true,\n    useValue: routes\n  }, typeof ngDevMode === 'undefined' || ngDevMode ? routerIsProvidedDevModeCheck : []];\n}\n/**\n * Enables customizable scrolling behavior for router navigations.\n *\n * @usageNotes\n *\n * Basic example of how you can enable scrolling feature:\n * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n *   {\n *     providers: [\n *       provideRouter(appRoutes, withInMemoryScrolling())\n *     ]\n *   }\n * );\n * ```\n *\n * @see {@link provideRouter}\n * @see {@link ViewportScroller}\n *\n * @publicApi\n * @param options Set of configuration parameters to customize scrolling behavior, see\n *     `InMemoryScrollingOptions` for additional information.\n * @returns A set of providers for use with `provideRouter`.\n */\nfunction withInMemoryScrolling(options = {}) {\n  const providers = [{\n    provide: ROUTER_SCROLLER,\n    useFactory: () => {\n      const viewportScroller = inject(ViewportScroller);\n      const zone = inject(NgZone);\n      const transitions = inject(NavigationTransitions);\n      const urlSerializer = inject(UrlSerializer);\n      return new RouterScroller(urlSerializer, transitions, viewportScroller, zone, options);\n    }\n  }];\n  return routerFeature(4 /* RouterFeatureKind.InMemoryScrollingFeature */, providers);\n}\nfunction getBootstrapListener() {\n  const injector = inject(Injector);\n  return bootstrappedComponentRef => {\n    const ref = injector.get(ApplicationRef);\n    if (bootstrappedComponentRef !== ref.components[0]) {\n      return;\n    }\n    const router = injector.get(Router);\n    const bootstrapDone = injector.get(BOOTSTRAP_DONE);\n    if (injector.get(INITIAL_NAVIGATION) === 1 /* InitialNavigation.EnabledNonBlocking */) {\n      router.initialNavigation();\n    }\n    injector.get(ROUTER_PRELOADER, null, InjectFlags.Optional)?.setUpPreloading();\n    injector.get(ROUTER_SCROLLER, null, InjectFlags.Optional)?.init();\n    router.resetRootComponentType(ref.componentTypes[0]);\n    if (!bootstrapDone.closed) {\n      bootstrapDone.next();\n      bootstrapDone.complete();\n      bootstrapDone.unsubscribe();\n    }\n  };\n}\n/**\n * A subject used to indicate that the bootstrapping phase is done. When initial navigation is\n * `enabledBlocking`, the first navigation waits until bootstrapping is finished before continuing\n * to the activation phase.\n */\nconst BOOTSTRAP_DONE = /*#__PURE__*/new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'bootstrap done indicator' : '', {\n  factory: () => {\n    return new Subject();\n  }\n});\nconst INITIAL_NAVIGATION = /*#__PURE__*/new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'initial navigation' : '', {\n  providedIn: 'root',\n  factory: () => 1 /* InitialNavigation.EnabledNonBlocking */\n});\n/**\n * Configures initial navigation to start before the root component is created.\n *\n * The bootstrap is blocked until the initial navigation is complete. This value is required for\n * [server-side rendering](guide/ssr) to work.\n *\n * @usageNotes\n *\n * Basic example of how you can enable this navigation behavior:\n * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n *   {\n *     providers: [\n *       provideRouter(appRoutes, withEnabledBlockingInitialNavigation())\n *     ]\n *   }\n * );\n * ```\n *\n * @see {@link provideRouter}\n *\n * @publicApi\n * @returns A set of providers for use with `provideRouter`.\n */\nfunction withEnabledBlockingInitialNavigation() {\n  const providers = [{\n    provide: INITIAL_NAVIGATION,\n    useValue: 0 /* InitialNavigation.EnabledBlocking */\n  }, {\n    provide: APP_INITIALIZER,\n    multi: true,\n    deps: [Injector],\n    useFactory: injector => {\n      const locationInitialized = injector.get(LOCATION_INITIALIZED, Promise.resolve());\n      return () => {\n        return locationInitialized.then(() => {\n          return new Promise(resolve => {\n            const router = injector.get(Router);\n            const bootstrapDone = injector.get(BOOTSTRAP_DONE);\n            afterNextNavigation(router, () => {\n              // Unblock APP_INITIALIZER in case the initial navigation was canceled or errored\n              // without a redirect.\n              resolve(true);\n            });\n            injector.get(NavigationTransitions).afterPreactivation = () => {\n              // Unblock APP_INITIALIZER once we get to `afterPreactivation`. At this point, we\n              // assume activation will complete successfully (even though this is not\n              // guaranteed).\n              resolve(true);\n              return bootstrapDone.closed ? of(void 0) : bootstrapDone;\n            };\n            router.initialNavigation();\n          });\n        });\n      };\n    }\n  }];\n  return routerFeature(2 /* RouterFeatureKind.EnabledBlockingInitialNavigationFeature */, providers);\n}\n/**\n * Disables initial navigation.\n *\n * Use if there is a reason to have more control over when the router starts its initial navigation\n * due to some complex initialization logic.\n *\n * @usageNotes\n *\n * Basic example of how you can disable initial navigation:\n * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n *   {\n *     providers: [\n *       provideRouter(appRoutes, withDisabledInitialNavigation())\n *     ]\n *   }\n * );\n * ```\n *\n * @see {@link provideRouter}\n *\n * @returns A set of providers for use with `provideRouter`.\n *\n * @publicApi\n */\nfunction withDisabledInitialNavigation() {\n  const providers = [{\n    provide: APP_INITIALIZER,\n    multi: true,\n    useFactory: () => {\n      const router = inject(Router);\n      return () => {\n        router.setUpLocationChangeListener();\n      };\n    }\n  }, {\n    provide: INITIAL_NAVIGATION,\n    useValue: 2 /* InitialNavigation.Disabled */\n  }];\n  return routerFeature(3 /* RouterFeatureKind.DisabledInitialNavigationFeature */, providers);\n}\n/**\n * Enables logging of all internal navigation events to the console.\n * Extra logging might be useful for debugging purposes to inspect Router event sequence.\n *\n * @usageNotes\n *\n * Basic example of how you can enable debug tracing:\n * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n *   {\n *     providers: [\n *       provideRouter(appRoutes, withDebugTracing())\n *     ]\n *   }\n * );\n * ```\n *\n * @see {@link provideRouter}\n *\n * @returns A set of providers for use with `provideRouter`.\n *\n * @publicApi\n */\nfunction withDebugTracing() {\n  let providers = [];\n  if (typeof ngDevMode === 'undefined' || ngDevMode) {\n    providers = [{\n      provide: ENVIRONMENT_INITIALIZER,\n      multi: true,\n      useFactory: () => {\n        const router = inject(Router);\n        return () => router.events.subscribe(e => {\n          // tslint:disable:no-console\n          console.group?.(`Router Event: ${e.constructor.name}`);\n          console.log(stringifyEvent(e));\n          console.log(e);\n          console.groupEnd?.();\n          // tslint:enable:no-console\n        });\n      }\n    }];\n  } else {\n    providers = [];\n  }\n  return routerFeature(1 /* RouterFeatureKind.DebugTracingFeature */, providers);\n}\nconst ROUTER_PRELOADER = /*#__PURE__*/new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'router preloader' : '');\n/**\n * Allows to configure a preloading strategy to use. The strategy is configured by providing a\n * reference to a class that implements a `PreloadingStrategy`.\n *\n * @usageNotes\n *\n * Basic example of how you can configure preloading:\n * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n *   {\n *     providers: [\n *       provideRouter(appRoutes, withPreloading(PreloadAllModules))\n *     ]\n *   }\n * );\n * ```\n *\n * @see {@link provideRouter}\n *\n * @param preloadingStrategy A reference to a class that implements a `PreloadingStrategy` that\n *     should be used.\n * @returns A set of providers for use with `provideRouter`.\n *\n * @publicApi\n */\nfunction withPreloading(preloadingStrategy) {\n  const providers = [{\n    provide: ROUTER_PRELOADER,\n    useExisting: RouterPreloader\n  }, {\n    provide: PreloadingStrategy,\n    useExisting: preloadingStrategy\n  }];\n  return routerFeature(0 /* RouterFeatureKind.PreloadingFeature */, providers);\n}\n/**\n * Allows to provide extra parameters to configure Router.\n *\n * @usageNotes\n *\n * Basic example of how you can provide extra configuration options:\n * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n *   {\n *     providers: [\n *       provideRouter(appRoutes, withRouterConfig({\n *          onSameUrlNavigation: 'reload'\n *       }))\n *     ]\n *   }\n * );\n * ```\n *\n * @see {@link provideRouter}\n *\n * @param options A set of parameters to configure Router, see `RouterConfigOptions` for\n *     additional information.\n * @returns A set of providers for use with `provideRouter`.\n *\n * @publicApi\n */\nfunction withRouterConfig(options) {\n  const providers = [{\n    provide: ROUTER_CONFIGURATION,\n    useValue: options\n  }];\n  return routerFeature(5 /* RouterFeatureKind.RouterConfigurationFeature */, providers);\n}\n/**\n * Provides the location strategy that uses the URL fragment instead of the history API.\n *\n * @usageNotes\n *\n * Basic example of how you can use the hash location option:\n * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n *   {\n *     providers: [\n *       provideRouter(appRoutes, withHashLocation())\n *     ]\n *   }\n * );\n * ```\n *\n * @see {@link provideRouter}\n * @see {@link HashLocationStrategy}\n *\n * @returns A set of providers for use with `provideRouter`.\n *\n * @publicApi\n */\nfunction withHashLocation() {\n  const providers = [{\n    provide: LocationStrategy,\n    useClass: HashLocationStrategy\n  }];\n  return routerFeature(6 /* RouterFeatureKind.RouterHashLocationFeature */, providers);\n}\n/**\n * Subscribes to the Router's navigation events and calls the given function when a\n * `NavigationError` happens.\n *\n * This function is run inside application's [injection context](guide/dependency-injection-context)\n * so you can use the [`inject`](api/core/inject) function.\n *\n * @usageNotes\n *\n * Basic example of how you can use the error handler option:\n * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n *   {\n *     providers: [\n *       provideRouter(appRoutes, withNavigationErrorHandler((e: NavigationError) =>\n * inject(MyErrorTracker).trackError(e)))\n *     ]\n *   }\n * );\n * ```\n *\n * @see {@link NavigationError}\n * @see {@link core/inject}\n * @see {@link runInInjectionContext}\n *\n * @returns A set of providers for use with `provideRouter`.\n *\n * @publicApi\n */\nfunction withNavigationErrorHandler(fn) {\n  const providers = [{\n    provide: ENVIRONMENT_INITIALIZER,\n    multi: true,\n    useValue: () => {\n      const injector = inject(EnvironmentInjector);\n      inject(Router).events.subscribe(e => {\n        if (e instanceof NavigationError) {\n          runInInjectionContext(injector, () => fn(e));\n        }\n      });\n    }\n  }];\n  return routerFeature(7 /* RouterFeatureKind.NavigationErrorHandlerFeature */, providers);\n}\n/**\n * Enables binding information from the `Router` state directly to the inputs of the component in\n * `Route` configurations.\n *\n * @usageNotes\n *\n * Basic example of how you can enable the feature:\n * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n *   {\n *     providers: [\n *       provideRouter(appRoutes, withComponentInputBinding())\n *     ]\n *   }\n * );\n * ```\n *\n * @returns A set of providers for use with `provideRouter`.\n */\nfunction withComponentInputBinding() {\n  const providers = [RoutedComponentInputBinder, {\n    provide: INPUT_BINDER,\n    useExisting: RoutedComponentInputBinder\n  }];\n  return routerFeature(8 /* RouterFeatureKind.ComponentInputBindingFeature */, providers);\n}\n/**\n * Enables view transitions in the Router by running the route activation and deactivation inside of\n * `document.startViewTransition`.\n *\n * Note: The View Transitions API is not available in all browsers. If the browser does not support\n * view transitions, the Router will not attempt to start a view transition and continue processing\n * the navigation as usual.\n *\n * @usageNotes\n *\n * Basic example of how you can enable the feature:\n * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n *   {\n *     providers: [\n *       provideRouter(appRoutes, withViewTransitions())\n *     ]\n *   }\n * );\n * ```\n *\n * @returns A set of providers for use with `provideRouter`.\n * @see https://developer.chrome.com/docs/web-platform/view-transitions/\n * @see https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API\n * @experimental\n */\nfunction withViewTransitions(options) {\n  const providers = [{\n    provide: CREATE_VIEW_TRANSITION,\n    useValue: createViewTransition\n  }, {\n    provide: VIEW_TRANSITION_OPTIONS,\n    useValue: {\n      skipNextTransition: !!options?.skipInitialTransition,\n      ...options\n    }\n  }];\n  return routerFeature(9 /* RouterFeatureKind.ViewTransitionsFeature */, providers);\n}\n\n/**\n * The directives defined in the `RouterModule`.\n */\nconst ROUTER_DIRECTIVES = [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent];\n/**\n * @docsNotRequired\n */\nconst ROUTER_FORROOT_GUARD = /*#__PURE__*/new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'router duplicate forRoot guard' : 'ROUTER_FORROOT_GUARD');\n// TODO(atscott): All of these except `ActivatedRoute` are `providedIn: 'root'`. They are only kept\n// here to avoid a breaking change whereby the provider order matters based on where the\n// `RouterModule`/`RouterTestingModule` is imported. These can/should be removed as a \"breaking\"\n// change in a major version.\nconst ROUTER_PROVIDERS = [Location, {\n  provide: UrlSerializer,\n  useClass: DefaultUrlSerializer\n}, Router, ChildrenOutletContexts, {\n  provide: ActivatedRoute,\n  useFactory: rootRoute,\n  deps: [Router]\n}, RouterConfigLoader,\n// Only used to warn when `provideRoutes` is used without `RouterModule` or `provideRouter`. Can\n// be removed when `provideRoutes` is removed.\ntypeof ngDevMode === 'undefined' || ngDevMode ? {\n  provide: ROUTER_IS_PROVIDED,\n  useValue: true\n} : []];\n/**\n * @description\n *\n * Adds directives and providers for in-app navigation among views defined in an application.\n * Use the Angular `Router` service to declaratively specify application states and manage state\n * transitions.\n *\n * You can import this NgModule multiple times, once for each lazy-loaded bundle.\n * However, only one `Router` service can be active.\n * To ensure this, there are two ways to register routes when importing this module:\n *\n * * The `forRoot()` method creates an `NgModule` that contains all the directives, the given\n * routes, and the `Router` service itself.\n * * The `forChild()` method creates an `NgModule` that contains all the directives and the given\n * routes, but does not include the `Router` service.\n *\n * @see [Routing and Navigation guide](guide/router) for an\n * overview of how the `Router` service should be used.\n *\n * @publicApi\n */\nlet RouterModule = /*#__PURE__*/(() => {\n  class RouterModule {\n    constructor(guard) {}\n    /**\n     * Creates and configures a module with all the router providers and directives.\n     * Optionally sets up an application listener to perform an initial navigation.\n     *\n     * When registering the NgModule at the root, import as follows:\n     *\n     * ```\n     * @NgModule({\n     *   imports: [RouterModule.forRoot(ROUTES)]\n     * })\n     * class MyNgModule {}\n     * ```\n     *\n     * @param routes An array of `Route` objects that define the navigation paths for the application.\n     * @param config An `ExtraOptions` configuration object that controls how navigation is performed.\n     * @return The new `NgModule`.\n     *\n     */\n    static forRoot(routes, config) {\n      return {\n        ngModule: RouterModule,\n        providers: [ROUTER_PROVIDERS, typeof ngDevMode === 'undefined' || ngDevMode ? config?.enableTracing ? withDebugTracing().ɵproviders : [] : [], {\n          provide: ROUTES,\n          multi: true,\n          useValue: routes\n        }, {\n          provide: ROUTER_FORROOT_GUARD,\n          useFactory: provideForRootGuard,\n          deps: [[Router, new Optional(), new SkipSelf()]]\n        }, {\n          provide: ROUTER_CONFIGURATION,\n          useValue: config ? config : {}\n        }, config?.useHash ? provideHashLocationStrategy() : providePathLocationStrategy(), provideRouterScroller(), config?.preloadingStrategy ? withPreloading(config.preloadingStrategy).ɵproviders : [], config?.initialNavigation ? provideInitialNavigation(config) : [], config?.bindToComponentInputs ? withComponentInputBinding().ɵproviders : [], config?.enableViewTransitions ? withViewTransitions().ɵproviders : [], provideRouterInitializer()]\n      };\n    }\n    /**\n     * Creates a module with all the router directives and a provider registering routes,\n     * without creating a new Router service.\n     * When registering for submodules and lazy-loaded submodules, create the NgModule as follows:\n     *\n     * ```\n     * @NgModule({\n     *   imports: [RouterModule.forChild(ROUTES)]\n     * })\n     * class MyNgModule {}\n     * ```\n     *\n     * @param routes An array of `Route` objects that define the navigation paths for the submodule.\n     * @return The new NgModule.\n     *\n     */\n    static forChild(routes) {\n      return {\n        ngModule: RouterModule,\n        providers: [{\n          provide: ROUTES,\n          multi: true,\n          useValue: routes\n        }]\n      };\n    }\n    static {\n      this.ɵfac = function RouterModule_Factory(t) {\n        return new (t || RouterModule)(i0.ɵɵinject(ROUTER_FORROOT_GUARD, 8));\n      };\n    }\n    static {\n      this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n        type: RouterModule\n      });\n    }\n    static {\n      this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({});\n    }\n  }\n  return RouterModule;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * For internal use by `RouterModule` only. Note that this differs from `withInMemoryRouterScroller`\n * because it reads from the `ExtraOptions` which should not be used in the standalone world.\n */\nfunction provideRouterScroller() {\n  return {\n    provide: ROUTER_SCROLLER,\n    useFactory: () => {\n      const viewportScroller = inject(ViewportScroller);\n      const zone = inject(NgZone);\n      const config = inject(ROUTER_CONFIGURATION);\n      const transitions = inject(NavigationTransitions);\n      const urlSerializer = inject(UrlSerializer);\n      if (config.scrollOffset) {\n        viewportScroller.setOffset(config.scrollOffset);\n      }\n      return new RouterScroller(urlSerializer, transitions, viewportScroller, zone, config);\n    }\n  };\n}\n// Note: For internal use only with `RouterModule`. Standalone setup via `provideRouter` should\n// provide hash location directly via `{provide: LocationStrategy, useClass: HashLocationStrategy}`.\nfunction provideHashLocationStrategy() {\n  return {\n    provide: LocationStrategy,\n    useClass: HashLocationStrategy\n  };\n}\n// Note: For internal use only with `RouterModule`. Standalone setup via `provideRouter` does not\n// need this at all because `PathLocationStrategy` is the default factory for `LocationStrategy`.\nfunction providePathLocationStrategy() {\n  return {\n    provide: LocationStrategy,\n    useClass: PathLocationStrategy\n  };\n}\nfunction provideForRootGuard(router) {\n  if ((typeof ngDevMode === 'undefined' || ngDevMode) && router) {\n    throw new ɵRuntimeError(4007 /* RuntimeErrorCode.FOR_ROOT_CALLED_TWICE */, `The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector.` + ` Lazy loaded modules should use RouterModule.forChild() instead.`);\n  }\n  return 'guarded';\n}\n// Note: For internal use only with `RouterModule`. Standalone router setup with `provideRouter`\n// users call `withXInitialNavigation` directly.\nfunction provideInitialNavigation(config) {\n  return [config.initialNavigation === 'disabled' ? withDisabledInitialNavigation().ɵproviders : [], config.initialNavigation === 'enabledBlocking' ? withEnabledBlockingInitialNavigation().ɵproviders : []];\n}\n// TODO(atscott): This should not be in the public API\n/**\n * A [DI token](guide/glossary/#di-token) for the router initializer that\n * is called after the app is bootstrapped.\n *\n * @publicApi\n */\nconst ROUTER_INITIALIZER = /*#__PURE__*/new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'Router Initializer' : '');\nfunction provideRouterInitializer() {\n  return [\n  // ROUTER_INITIALIZER token should be removed. It's public API but shouldn't be. We can just\n  // have `getBootstrapListener` directly attached to APP_BOOTSTRAP_LISTENER.\n  {\n    provide: ROUTER_INITIALIZER,\n    useFactory: getBootstrapListener\n  }, {\n    provide: APP_BOOTSTRAP_LISTENER,\n    multi: true,\n    useExisting: ROUTER_INITIALIZER\n  }];\n}\n\n/**\n * Maps an array of injectable classes with canMatch functions to an array of equivalent\n * `CanMatchFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nfunction mapToCanMatch(providers) {\n  return providers.map(provider => (...params) => inject(provider).canMatch(...params));\n}\n/**\n * Maps an array of injectable classes with canActivate functions to an array of equivalent\n * `CanActivateFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nfunction mapToCanActivate(providers) {\n  return providers.map(provider => (...params) => inject(provider).canActivate(...params));\n}\n/**\n * Maps an array of injectable classes with canActivateChild functions to an array of equivalent\n * `CanActivateChildFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nfunction mapToCanActivateChild(providers) {\n  return providers.map(provider => (...params) => inject(provider).canActivateChild(...params));\n}\n/**\n * Maps an array of injectable classes with canDeactivate functions to an array of equivalent\n * `CanDeactivateFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nfunction mapToCanDeactivate(providers) {\n  return providers.map(provider => (...params) => inject(provider).canDeactivate(...params));\n}\n/**\n * Maps an injectable class with a resolve function to an equivalent `ResolveFn`\n * for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='Resolve'}\n *\n * @publicApi\n * @see {@link Route}\n */\nfunction mapToResolve(provider) {\n  return (...params) => inject(provider).resolve(...params);\n}\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the router package.\n */\n/**\n * @publicApi\n */\nconst VERSION = /*#__PURE__*/new Version('17.3.11');\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n// This file only reexports content of the `src` folder. Keep it that way.\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ActivatedRoute, ActivatedRouteSnapshot, ActivationEnd, ActivationStart, BaseRouteReuseStrategy, ChildActivationEnd, ChildActivationStart, ChildrenOutletContexts, DefaultTitleStrategy, DefaultUrlSerializer, EventType, GuardsCheckEnd, GuardsCheckStart, NavigationCancel, NavigationCancellationCode, NavigationEnd, NavigationError, NavigationSkipped, NavigationSkippedCode, NavigationStart, NoPreloading, OutletContext, PRIMARY_OUTLET, PreloadAllModules, PreloadingStrategy, ROUTER_CONFIGURATION, ROUTER_INITIALIZER, ROUTES, ResolveEnd, ResolveStart, RouteConfigLoadEnd, RouteConfigLoadStart, RouteReuseStrategy, Router, RouterEvent, RouterLink, RouterLinkActive, RouterLink as RouterLinkWithHref, RouterModule, RouterOutlet, RouterPreloader, RouterState, RouterStateSnapshot, RoutesRecognized, Scroll, TitleStrategy, UrlHandlingStrategy, UrlSegment, UrlSegmentGroup, UrlSerializer, UrlTree, VERSION, convertToParamMap, createUrlTreeFromSnapshot, defaultUrlMatcher, mapToCanActivate, mapToCanActivateChild, mapToCanDeactivate, mapToCanMatch, mapToResolve, provideRouter, provideRoutes, withComponentInputBinding, withDebugTracing, withDisabledInitialNavigation, withEnabledBlockingInitialNavigation, withHashLocation, withInMemoryScrolling, withNavigationErrorHandler, withPreloading, withRouterConfig, withViewTransitions, ɵEmptyOutletComponent, ROUTER_PROVIDERS as ɵROUTER_PROVIDERS, afterNextNavigation as ɵafterNextNavigation, loadChildren as ɵloadChildren };\n","/**\n * @license Angular v17.3.11\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { Directive, InjectionToken, forwardRef, Optional, Inject, ɵisPromise, ɵisSubscribable, ɵRuntimeError, Self, EventEmitter, Input, Host, SkipSelf, booleanAttribute, ChangeDetectorRef, Output, Injectable, inject, NgModule, Version } from '@angular/core';\nimport { ɵgetDOM } from '@angular/common';\nimport { from, forkJoin } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\n/**\n * Base class for all ControlValueAccessor classes defined in Forms package.\n * Contains common logic and utility functions.\n *\n * Note: this is an *internal-only* class and should not be extended or used directly in\n * applications code.\n */\nlet BaseControlValueAccessor = /*#__PURE__*/(() => {\n  class BaseControlValueAccessor {\n    constructor(_renderer, _elementRef) {\n      this._renderer = _renderer;\n      this._elementRef = _elementRef;\n      /**\n       * The registered callback function called when a change or input event occurs on the input\n       * element.\n       * @nodoc\n       */\n      this.onChange = _ => {};\n      /**\n       * The registered callback function called when a blur event occurs on the input element.\n       * @nodoc\n       */\n      this.onTouched = () => {};\n    }\n    /**\n     * Helper method that sets a property on a target element using the current Renderer\n     * implementation.\n     * @nodoc\n     */\n    setProperty(key, value) {\n      this._renderer.setProperty(this._elementRef.nativeElement, key, value);\n    }\n    /**\n     * Registers a function called when the control is touched.\n     * @nodoc\n     */\n    registerOnTouched(fn) {\n      this.onTouched = fn;\n    }\n    /**\n     * Registers a function called when the control value changes.\n     * @nodoc\n     */\n    registerOnChange(fn) {\n      this.onChange = fn;\n    }\n    /**\n     * Sets the \"disabled\" property on the range input element.\n     * @nodoc\n     */\n    setDisabledState(isDisabled) {\n      this.setProperty('disabled', isDisabled);\n    }\n    static {\n      this.ɵfac = function BaseControlValueAccessor_Factory(t) {\n        return new (t || BaseControlValueAccessor)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: BaseControlValueAccessor\n      });\n    }\n  }\n  return BaseControlValueAccessor;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Base class for all built-in ControlValueAccessor classes (except DefaultValueAccessor, which is\n * used in case no other CVAs can be found). We use this class to distinguish between default CVA,\n * built-in CVAs and custom CVAs, so that Forms logic can recognize built-in CVAs and treat custom\n * ones with higher priority (when both built-in and custom CVAs are present).\n *\n * Note: this is an *internal-only* class and should not be extended or used directly in\n * applications code.\n */\nlet BuiltInControlValueAccessor = /*#__PURE__*/(() => {\n  class BuiltInControlValueAccessor extends BaseControlValueAccessor {\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵBuiltInControlValueAccessor_BaseFactory;\n        return function BuiltInControlValueAccessor_Factory(t) {\n          return (ɵBuiltInControlValueAccessor_BaseFactory || (ɵBuiltInControlValueAccessor_BaseFactory = i0.ɵɵgetInheritedFactory(BuiltInControlValueAccessor)))(t || BuiltInControlValueAccessor);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: BuiltInControlValueAccessor,\n        features: [i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return BuiltInControlValueAccessor;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Used to provide a `ControlValueAccessor` for form controls.\n *\n * See `DefaultValueAccessor` for how to implement one.\n *\n * @publicApi\n */\nconst NG_VALUE_ACCESSOR = /*#__PURE__*/new InjectionToken(ngDevMode ? 'NgValueAccessor' : '');\nconst CHECKBOX_VALUE_ACCESSOR = {\n  provide: NG_VALUE_ACCESSOR,\n  useExisting: /*#__PURE__*/forwardRef(() => CheckboxControlValueAccessor),\n  multi: true\n};\n/**\n * @description\n * A `ControlValueAccessor` for writing a value and listening to changes on a checkbox input\n * element.\n *\n * @usageNotes\n *\n * ### Using a checkbox with a reactive form.\n *\n * The following example shows how to use a checkbox with a reactive form.\n *\n * ```ts\n * const rememberLoginControl = new FormControl();\n * ```\n *\n * ```\n * <input type=\"checkbox\" [formControl]=\"rememberLoginControl\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet CheckboxControlValueAccessor = /*#__PURE__*/(() => {\n  class CheckboxControlValueAccessor extends BuiltInControlValueAccessor {\n    /**\n     * Sets the \"checked\" property on the input element.\n     * @nodoc\n     */\n    writeValue(value) {\n      this.setProperty('checked', value);\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵCheckboxControlValueAccessor_BaseFactory;\n        return function CheckboxControlValueAccessor_Factory(t) {\n          return (ɵCheckboxControlValueAccessor_BaseFactory || (ɵCheckboxControlValueAccessor_BaseFactory = i0.ɵɵgetInheritedFactory(CheckboxControlValueAccessor)))(t || CheckboxControlValueAccessor);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: CheckboxControlValueAccessor,\n        selectors: [[\"input\", \"type\", \"checkbox\", \"formControlName\", \"\"], [\"input\", \"type\", \"checkbox\", \"formControl\", \"\"], [\"input\", \"type\", \"checkbox\", \"ngModel\", \"\"]],\n        hostBindings: function CheckboxControlValueAccessor_HostBindings(rf, ctx) {\n          if (rf & 1) {\n            i0.ɵɵlistener(\"change\", function CheckboxControlValueAccessor_change_HostBindingHandler($event) {\n              return ctx.onChange($event.target.checked);\n            })(\"blur\", function CheckboxControlValueAccessor_blur_HostBindingHandler() {\n              return ctx.onTouched();\n            });\n          }\n        },\n        features: [i0.ɵɵProvidersFeature([CHECKBOX_VALUE_ACCESSOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return CheckboxControlValueAccessor;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst DEFAULT_VALUE_ACCESSOR = {\n  provide: NG_VALUE_ACCESSOR,\n  useExisting: /*#__PURE__*/forwardRef(() => DefaultValueAccessor),\n  multi: true\n};\n/**\n * We must check whether the agent is Android because composition events\n * behave differently between iOS and Android.\n */\nfunction _isAndroid() {\n  const userAgent = ɵgetDOM() ? ɵgetDOM().getUserAgent() : '';\n  return /android (\\d+)/.test(userAgent.toLowerCase());\n}\n/**\n * @description\n * Provide this token to control if form directives buffer IME input until\n * the \"compositionend\" event occurs.\n * @publicApi\n */\nconst COMPOSITION_BUFFER_MODE = /*#__PURE__*/new InjectionToken(ngDevMode ? 'CompositionEventMode' : '');\n/**\n * The default `ControlValueAccessor` for writing a value and listening to changes on input\n * elements. The accessor is used by the `FormControlDirective`, `FormControlName`, and\n * `NgModel` directives.\n *\n * {@searchKeywords ngDefaultControl}\n *\n * @usageNotes\n *\n * ### Using the default value accessor\n *\n * The following example shows how to use an input element that activates the default value accessor\n * (in this case, a text field).\n *\n * ```ts\n * const firstNameControl = new FormControl();\n * ```\n *\n * ```\n * <input type=\"text\" [formControl]=\"firstNameControl\">\n * ```\n *\n * This value accessor is used by default for `<input type=\"text\">` and `<textarea>` elements, but\n * you could also use it for custom components that have similar behavior and do not require special\n * processing. In order to attach the default value accessor to a custom element, add the\n * `ngDefaultControl` attribute as shown below.\n *\n * ```\n * <custom-input-component ngDefaultControl [(ngModel)]=\"value\"></custom-input-component>\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet DefaultValueAccessor = /*#__PURE__*/(() => {\n  class DefaultValueAccessor extends BaseControlValueAccessor {\n    constructor(renderer, elementRef, _compositionMode) {\n      super(renderer, elementRef);\n      this._compositionMode = _compositionMode;\n      /** Whether the user is creating a composition string (IME events). */\n      this._composing = false;\n      if (this._compositionMode == null) {\n        this._compositionMode = !_isAndroid();\n      }\n    }\n    /**\n     * Sets the \"value\" property on the input element.\n     * @nodoc\n     */\n    writeValue(value) {\n      const normalizedValue = value == null ? '' : value;\n      this.setProperty('value', normalizedValue);\n    }\n    /** @internal */\n    _handleInput(value) {\n      if (!this._compositionMode || this._compositionMode && !this._composing) {\n        this.onChange(value);\n      }\n    }\n    /** @internal */\n    _compositionStart() {\n      this._composing = true;\n    }\n    /** @internal */\n    _compositionEnd(value) {\n      this._composing = false;\n      this._compositionMode && this.onChange(value);\n    }\n    static {\n      this.ɵfac = function DefaultValueAccessor_Factory(t) {\n        return new (t || DefaultValueAccessor)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(COMPOSITION_BUFFER_MODE, 8));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: DefaultValueAccessor,\n        selectors: [[\"input\", \"formControlName\", \"\", 3, \"type\", \"checkbox\"], [\"textarea\", \"formControlName\", \"\"], [\"input\", \"formControl\", \"\", 3, \"type\", \"checkbox\"], [\"textarea\", \"formControl\", \"\"], [\"input\", \"ngModel\", \"\", 3, \"type\", \"checkbox\"], [\"textarea\", \"ngModel\", \"\"], [\"\", \"ngDefaultControl\", \"\"]],\n        hostBindings: function DefaultValueAccessor_HostBindings(rf, ctx) {\n          if (rf & 1) {\n            i0.ɵɵlistener(\"input\", function DefaultValueAccessor_input_HostBindingHandler($event) {\n              return ctx._handleInput($event.target.value);\n            })(\"blur\", function DefaultValueAccessor_blur_HostBindingHandler() {\n              return ctx.onTouched();\n            })(\"compositionstart\", function DefaultValueAccessor_compositionstart_HostBindingHandler() {\n              return ctx._compositionStart();\n            })(\"compositionend\", function DefaultValueAccessor_compositionend_HostBindingHandler($event) {\n              return ctx._compositionEnd($event.target.value);\n            });\n          }\n        },\n        features: [i0.ɵɵProvidersFeature([DEFAULT_VALUE_ACCESSOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return DefaultValueAccessor;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction isEmptyInputValue(value) {\n  /**\n   * Check if the object is a string or array before evaluating the length attribute.\n   * This avoids falsely rejecting objects that contain a custom length attribute.\n   * For example, the object {id: 1, length: 0, width: 0} should not be returned as empty.\n   */\n  return value == null || (typeof value === 'string' || Array.isArray(value)) && value.length === 0;\n}\nfunction hasValidLength(value) {\n  // non-strict comparison is intentional, to check for both `null` and `undefined` values\n  return value != null && typeof value.length === 'number';\n}\n/**\n * @description\n * An `InjectionToken` for registering additional synchronous validators used with\n * `AbstractControl`s.\n *\n * @see {@link NG_ASYNC_VALIDATORS}\n *\n * @usageNotes\n *\n * ### Providing a custom validator\n *\n * The following example registers a custom validator directive. Adding the validator to the\n * existing collection of validators requires the `multi: true` option.\n *\n * ```typescript\n * @Directive({\n *   selector: '[customValidator]',\n *   providers: [{provide: NG_VALIDATORS, useExisting: CustomValidatorDirective, multi: true}]\n * })\n * class CustomValidatorDirective implements Validator {\n *   validate(control: AbstractControl): ValidationErrors | null {\n *     return { 'custom': true };\n *   }\n * }\n * ```\n *\n * @publicApi\n */\nconst NG_VALIDATORS = /*#__PURE__*/new InjectionToken(ngDevMode ? 'NgValidators' : '');\n/**\n * @description\n * An `InjectionToken` for registering additional asynchronous validators used with\n * `AbstractControl`s.\n *\n * @see {@link NG_VALIDATORS}\n *\n * @usageNotes\n *\n * ### Provide a custom async validator directive\n *\n * The following example implements the `AsyncValidator` interface to create an\n * async validator directive with a custom error key.\n *\n * ```typescript\n * @Directive({\n *   selector: '[customAsyncValidator]',\n *   providers: [{provide: NG_ASYNC_VALIDATORS, useExisting: CustomAsyncValidatorDirective, multi:\n * true}]\n * })\n * class CustomAsyncValidatorDirective implements AsyncValidator {\n *   validate(control: AbstractControl): Promise<ValidationErrors|null> {\n *     return Promise.resolve({'custom': true});\n *   }\n * }\n * ```\n *\n * @publicApi\n */\nconst NG_ASYNC_VALIDATORS = /*#__PURE__*/new InjectionToken(ngDevMode ? 'NgAsyncValidators' : '');\n/**\n * A regular expression that matches valid e-mail addresses.\n *\n * At a high level, this regexp matches e-mail addresses of the format `local-part@tld`, where:\n * - `local-part` consists of one or more of the allowed characters (alphanumeric and some\n *   punctuation symbols).\n * - `local-part` cannot begin or end with a period (`.`).\n * - `local-part` cannot be longer than 64 characters.\n * - `tld` consists of one or more `labels` separated by periods (`.`). For example `localhost` or\n *   `foo.com`.\n * - A `label` consists of one or more of the allowed characters (alphanumeric, dashes (`-`) and\n *   periods (`.`)).\n * - A `label` cannot begin or end with a dash (`-`) or a period (`.`).\n * - A `label` cannot be longer than 63 characters.\n * - The whole address cannot be longer than 254 characters.\n *\n * ## Implementation background\n *\n * This regexp was ported over from AngularJS (see there for git history):\n * https://github.com/angular/angular.js/blob/c133ef836/src/ng/directive/input.js#L27\n * It is based on the\n * [WHATWG version](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address) with\n * some enhancements to incorporate more RFC rules (such as rules related to domain names and the\n * lengths of different parts of the address). The main differences from the WHATWG version are:\n *   - Disallow `local-part` to begin or end with a period (`.`).\n *   - Disallow `local-part` length to exceed 64 characters.\n *   - Disallow total address length to exceed 254 characters.\n *\n * See [this commit](https://github.com/angular/angular.js/commit/f3f5cf72e) for more details.\n */\nconst EMAIL_REGEXP = /^(?=.{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])?)*$/;\n/**\n * @description\n * Provides a set of built-in validators that can be used by form controls.\n *\n * A validator is a function that processes a `FormControl` or collection of\n * controls and returns an error map or null. A null map means that validation has passed.\n *\n * @see [Form Validation](/guide/form-validation)\n *\n * @publicApi\n */\nclass Validators {\n  /**\n   * @description\n   * Validator that requires the control's value to be greater than or equal to the provided number.\n   *\n   * @usageNotes\n   *\n   * ### Validate against a minimum of 3\n   *\n   * ```typescript\n   * const control = new FormControl(2, Validators.min(3));\n   *\n   * console.log(control.errors); // {min: {min: 3, actual: 2}}\n   * ```\n   *\n   * @returns A validator function that returns an error map with the\n   * `min` property if the validation check fails, otherwise `null`.\n   *\n   * @see {@link updateValueAndValidity()}\n   *\n   */\n  static min(min) {\n    return minValidator(min);\n  }\n  /**\n   * @description\n   * Validator that requires the control's value to be less than or equal to the provided number.\n   *\n   * @usageNotes\n   *\n   * ### Validate against a maximum of 15\n   *\n   * ```typescript\n   * const control = new FormControl(16, Validators.max(15));\n   *\n   * console.log(control.errors); // {max: {max: 15, actual: 16}}\n   * ```\n   *\n   * @returns A validator function that returns an error map with the\n   * `max` property if the validation check fails, otherwise `null`.\n   *\n   * @see {@link updateValueAndValidity()}\n   *\n   */\n  static max(max) {\n    return maxValidator(max);\n  }\n  /**\n   * @description\n   * Validator that requires the control have a non-empty value.\n   *\n   * @usageNotes\n   *\n   * ### Validate that the field is non-empty\n   *\n   * ```typescript\n   * const control = new FormControl('', Validators.required);\n   *\n   * console.log(control.errors); // {required: true}\n   * ```\n   *\n   * @returns An error map with the `required` property\n   * if the validation check fails, otherwise `null`.\n   *\n   * @see {@link updateValueAndValidity()}\n   *\n   */\n  static required(control) {\n    return requiredValidator(control);\n  }\n  /**\n   * @description\n   * Validator that requires the control's value be true. This validator is commonly\n   * used for required checkboxes.\n   *\n   * @usageNotes\n   *\n   * ### Validate that the field value is true\n   *\n   * ```typescript\n   * const control = new FormControl('some value', Validators.requiredTrue);\n   *\n   * console.log(control.errors); // {required: true}\n   * ```\n   *\n   * @returns An error map that contains the `required` property\n   * set to `true` if the validation check fails, otherwise `null`.\n   *\n   * @see {@link updateValueAndValidity()}\n   *\n   */\n  static requiredTrue(control) {\n    return requiredTrueValidator(control);\n  }\n  /**\n   * @description\n   * Validator that requires the control's value pass an email validation test.\n   *\n   * Tests the value using a [regular\n   * expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions)\n   * pattern suitable for common use cases. The pattern is based on the definition of a valid email\n   * address in the [WHATWG HTML\n   * specification](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address) with\n   * some enhancements to incorporate more RFC rules (such as rules related to domain names and the\n   * lengths of different parts of the address).\n   *\n   * The differences from the WHATWG version include:\n   * - Disallow `local-part` (the part before the `@` symbol) to begin or end with a period (`.`).\n   * - Disallow `local-part` to be longer than 64 characters.\n   * - Disallow the whole address to be longer than 254 characters.\n   *\n   * If this pattern does not satisfy your business needs, you can use `Validators.pattern()` to\n   * validate the value against a different pattern.\n   *\n   * @usageNotes\n   *\n   * ### Validate that the field matches a valid email pattern\n   *\n   * ```typescript\n   * const control = new FormControl('bad@', Validators.email);\n   *\n   * console.log(control.errors); // {email: true}\n   * ```\n   *\n   * @returns An error map with the `email` property\n   * if the validation check fails, otherwise `null`.\n   *\n   * @see {@link updateValueAndValidity()}\n   *\n   */\n  static email(control) {\n    return emailValidator(control);\n  }\n  /**\n   * @description\n   * Validator that requires the length of the control's value to be greater than or equal\n   * to the provided minimum length. This validator is also provided by default if you use the\n   * the HTML5 `minlength` attribute. Note that the `minLength` validator is intended to be used\n   * only for types that have a numeric `length` property, such as strings or arrays. The\n   * `minLength` validator logic is also not invoked for values when their `length` property is 0\n   * (for example in case of an empty string or an empty array), to support optional controls. You\n   * can use the standard `required` validator if empty values should not be considered valid.\n   *\n   * @usageNotes\n   *\n   * ### Validate that the field has a minimum of 3 characters\n   *\n   * ```typescript\n   * const control = new FormControl('ng', Validators.minLength(3));\n   *\n   * console.log(control.errors); // {minlength: {requiredLength: 3, actualLength: 2}}\n   * ```\n   *\n   * ```html\n   * <input minlength=\"5\">\n   * ```\n   *\n   * @returns A validator function that returns an error map with the\n   * `minlength` property if the validation check fails, otherwise `null`.\n   *\n   * @see {@link updateValueAndValidity()}\n   *\n   */\n  static minLength(minLength) {\n    return minLengthValidator(minLength);\n  }\n  /**\n   * @description\n   * Validator that requires the length of the control's value to be less than or equal\n   * to the provided maximum length. This validator is also provided by default if you use the\n   * the HTML5 `maxlength` attribute. Note that the `maxLength` validator is intended to be used\n   * only for types that have a numeric `length` property, such as strings or arrays.\n   *\n   * @usageNotes\n   *\n   * ### Validate that the field has maximum of 5 characters\n   *\n   * ```typescript\n   * const control = new FormControl('Angular', Validators.maxLength(5));\n   *\n   * console.log(control.errors); // {maxlength: {requiredLength: 5, actualLength: 7}}\n   * ```\n   *\n   * ```html\n   * <input maxlength=\"5\">\n   * ```\n   *\n   * @returns A validator function that returns an error map with the\n   * `maxlength` property if the validation check fails, otherwise `null`.\n   *\n   * @see {@link updateValueAndValidity()}\n   *\n   */\n  static maxLength(maxLength) {\n    return maxLengthValidator(maxLength);\n  }\n  /**\n   * @description\n   * Validator that requires the control's value to match a regex pattern. This validator is also\n   * provided by default if you use the HTML5 `pattern` attribute.\n   *\n   * @usageNotes\n   *\n   * ### Validate that the field only contains letters or spaces\n   *\n   * ```typescript\n   * const control = new FormControl('1', Validators.pattern('[a-zA-Z ]*'));\n   *\n   * console.log(control.errors); // {pattern: {requiredPattern: '^[a-zA-Z ]*$', actualValue: '1'}}\n   * ```\n   *\n   * ```html\n   * <input pattern=\"[a-zA-Z ]*\">\n   * ```\n   *\n   * ### Pattern matching with the global or sticky flag\n   *\n   * `RegExp` objects created with the `g` or `y` flags that are passed into `Validators.pattern`\n   * can produce different results on the same input when validations are run consecutively. This is\n   * due to how the behavior of `RegExp.prototype.test` is\n   * specified in [ECMA-262](https://tc39.es/ecma262/#sec-regexpbuiltinexec)\n   * (`RegExp` preserves the index of the last match when the global or sticky flag is used).\n   * Due to this behavior, it is recommended that when using\n   * `Validators.pattern` you **do not** pass in a `RegExp` object with either the global or sticky\n   * flag enabled.\n   *\n   * ```typescript\n   * // Not recommended (since the `g` flag is used)\n   * const controlOne = new FormControl('1', Validators.pattern(/foo/g));\n   *\n   * // Good\n   * const controlTwo = new FormControl('1', Validators.pattern(/foo/));\n   * ```\n   *\n   * @param pattern A regular expression to be used as is to test the values, or a string.\n   * If a string is passed, the `^` character is prepended and the `$` character is\n   * appended to the provided string (if not already present), and the resulting regular\n   * expression is used to test the values.\n   *\n   * @returns A validator function that returns an error map with the\n   * `pattern` property if the validation check fails, otherwise `null`.\n   *\n   * @see {@link updateValueAndValidity()}\n   *\n   */\n  static pattern(pattern) {\n    return patternValidator(pattern);\n  }\n  /**\n   * @description\n   * Validator that performs no operation.\n   *\n   * @see {@link updateValueAndValidity()}\n   *\n   */\n  static nullValidator(control) {\n    return nullValidator(control);\n  }\n  static compose(validators) {\n    return compose(validators);\n  }\n  /**\n   * @description\n   * Compose multiple async validators into a single function that returns the union\n   * of the individual error objects for the provided control.\n   *\n   * @returns A validator function that returns an error map with the\n   * merged error objects of the async validators if the validation check fails, otherwise `null`.\n   *\n   * @see {@link updateValueAndValidity()}\n   *\n   */\n  static composeAsync(validators) {\n    return composeAsync(validators);\n  }\n}\n/**\n * Validator that requires the control's value to be greater than or equal to the provided number.\n * See `Validators.min` for additional information.\n */\nfunction minValidator(min) {\n  return control => {\n    if (isEmptyInputValue(control.value) || isEmptyInputValue(min)) {\n      return null; // don't validate empty values to allow optional controls\n    }\n    const value = parseFloat(control.value);\n    // Controls with NaN values after parsing should be treated as not having a\n    // minimum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-min\n    return !isNaN(value) && value < min ? {\n      'min': {\n        'min': min,\n        'actual': control.value\n      }\n    } : null;\n  };\n}\n/**\n * Validator that requires the control's value to be less than or equal to the provided number.\n * See `Validators.max` for additional information.\n */\nfunction maxValidator(max) {\n  return control => {\n    if (isEmptyInputValue(control.value) || isEmptyInputValue(max)) {\n      return null; // don't validate empty values to allow optional controls\n    }\n    const value = parseFloat(control.value);\n    // Controls with NaN values after parsing should be treated as not having a\n    // maximum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-max\n    return !isNaN(value) && value > max ? {\n      'max': {\n        'max': max,\n        'actual': control.value\n      }\n    } : null;\n  };\n}\n/**\n * Validator that requires the control have a non-empty value.\n * See `Validators.required` for additional information.\n */\nfunction requiredValidator(control) {\n  return isEmptyInputValue(control.value) ? {\n    'required': true\n  } : null;\n}\n/**\n * Validator that requires the control's value be true. This validator is commonly\n * used for required checkboxes.\n * See `Validators.requiredTrue` for additional information.\n */\nfunction requiredTrueValidator(control) {\n  return control.value === true ? null : {\n    'required': true\n  };\n}\n/**\n * Validator that requires the control's value pass an email validation test.\n * See `Validators.email` for additional information.\n */\nfunction emailValidator(control) {\n  if (isEmptyInputValue(control.value)) {\n    return null; // don't validate empty values to allow optional controls\n  }\n  return EMAIL_REGEXP.test(control.value) ? null : {\n    'email': true\n  };\n}\n/**\n * Validator that requires the length of the control's value to be greater than or equal\n * to the provided minimum length. See `Validators.minLength` for additional information.\n */\nfunction minLengthValidator(minLength) {\n  return control => {\n    if (isEmptyInputValue(control.value) || !hasValidLength(control.value)) {\n      // don't validate empty values to allow optional controls\n      // don't validate values without `length` property\n      return null;\n    }\n    return control.value.length < minLength ? {\n      'minlength': {\n        'requiredLength': minLength,\n        'actualLength': control.value.length\n      }\n    } : null;\n  };\n}\n/**\n * Validator that requires the length of the control's value to be less than or equal\n * to the provided maximum length. See `Validators.maxLength` for additional information.\n */\nfunction maxLengthValidator(maxLength) {\n  return control => {\n    return hasValidLength(control.value) && control.value.length > maxLength ? {\n      'maxlength': {\n        'requiredLength': maxLength,\n        'actualLength': control.value.length\n      }\n    } : null;\n  };\n}\n/**\n * Validator that requires the control's value to match a regex pattern.\n * See `Validators.pattern` for additional information.\n */\nfunction patternValidator(pattern) {\n  if (!pattern) return nullValidator;\n  let regex;\n  let regexStr;\n  if (typeof pattern === 'string') {\n    regexStr = '';\n    if (pattern.charAt(0) !== '^') regexStr += '^';\n    regexStr += pattern;\n    if (pattern.charAt(pattern.length - 1) !== '$') regexStr += '$';\n    regex = new RegExp(regexStr);\n  } else {\n    regexStr = pattern.toString();\n    regex = pattern;\n  }\n  return control => {\n    if (isEmptyInputValue(control.value)) {\n      return null; // don't validate empty values to allow optional controls\n    }\n    const value = control.value;\n    return regex.test(value) ? null : {\n      'pattern': {\n        'requiredPattern': regexStr,\n        'actualValue': value\n      }\n    };\n  };\n}\n/**\n * Function that has `ValidatorFn` shape, but performs no operation.\n */\nfunction nullValidator(control) {\n  return null;\n}\nfunction isPresent(o) {\n  return o != null;\n}\nfunction toObservable(value) {\n  const obs = ɵisPromise(value) ? from(value) : value;\n  if ((typeof ngDevMode === 'undefined' || ngDevMode) && !ɵisSubscribable(obs)) {\n    let errorMessage = `Expected async validator to return Promise or Observable.`;\n    // A synchronous validator will return object or null.\n    if (typeof value === 'object') {\n      errorMessage += ' Are you using a synchronous validator where an async validator is expected?';\n    }\n    throw new ɵRuntimeError(-1101 /* RuntimeErrorCode.WRONG_VALIDATOR_RETURN_TYPE */, errorMessage);\n  }\n  return obs;\n}\nfunction mergeErrors(arrayOfErrors) {\n  let res = {};\n  arrayOfErrors.forEach(errors => {\n    res = errors != null ? {\n      ...res,\n      ...errors\n    } : res;\n  });\n  return Object.keys(res).length === 0 ? null : res;\n}\nfunction executeValidators(control, validators) {\n  return validators.map(validator => validator(control));\n}\nfunction isValidatorFn(validator) {\n  return !validator.validate;\n}\n/**\n * Given the list of validators that may contain both functions as well as classes, return the list\n * of validator functions (convert validator classes into validator functions). This is needed to\n * have consistent structure in validators list before composing them.\n *\n * @param validators The set of validators that may contain validators both in plain function form\n *     as well as represented as a validator class.\n */\nfunction normalizeValidators(validators) {\n  return validators.map(validator => {\n    return isValidatorFn(validator) ? validator : c => validator.validate(c);\n  });\n}\n/**\n * Merges synchronous validators into a single validator function.\n * See `Validators.compose` for additional information.\n */\nfunction compose(validators) {\n  if (!validators) return null;\n  const presentValidators = validators.filter(isPresent);\n  if (presentValidators.length == 0) return null;\n  return function (control) {\n    return mergeErrors(executeValidators(control, presentValidators));\n  };\n}\n/**\n * Accepts a list of validators of different possible shapes (`Validator` and `ValidatorFn`),\n * normalizes the list (converts everything to `ValidatorFn`) and merges them into a single\n * validator function.\n */\nfunction composeValidators(validators) {\n  return validators != null ? compose(normalizeValidators(validators)) : null;\n}\n/**\n * Merges asynchronous validators into a single validator function.\n * See `Validators.composeAsync` for additional information.\n */\nfunction composeAsync(validators) {\n  if (!validators) return null;\n  const presentValidators = validators.filter(isPresent);\n  if (presentValidators.length == 0) return null;\n  return function (control) {\n    const observables = executeValidators(control, presentValidators).map(toObservable);\n    return forkJoin(observables).pipe(map(mergeErrors));\n  };\n}\n/**\n * Accepts a list of async validators of different possible shapes (`AsyncValidator` and\n * `AsyncValidatorFn`), normalizes the list (converts everything to `AsyncValidatorFn`) and merges\n * them into a single validator function.\n */\nfunction composeAsyncValidators(validators) {\n  return validators != null ? composeAsync(normalizeValidators(validators)) : null;\n}\n/**\n * Merges raw control validators with a given directive validator and returns the combined list of\n * validators as an array.\n */\nfunction mergeValidators(controlValidators, dirValidator) {\n  if (controlValidators === null) return [dirValidator];\n  return Array.isArray(controlValidators) ? [...controlValidators, dirValidator] : [controlValidators, dirValidator];\n}\n/**\n * Retrieves the list of raw synchronous validators attached to a given control.\n */\nfunction getControlValidators(control) {\n  return control._rawValidators;\n}\n/**\n * Retrieves the list of raw asynchronous validators attached to a given control.\n */\nfunction getControlAsyncValidators(control) {\n  return control._rawAsyncValidators;\n}\n/**\n * Accepts a singleton validator, an array, or null, and returns an array type with the provided\n * validators.\n *\n * @param validators A validator, validators, or null.\n * @returns A validators array.\n */\nfunction makeValidatorsArray(validators) {\n  if (!validators) return [];\n  return Array.isArray(validators) ? validators : [validators];\n}\n/**\n * Determines whether a validator or validators array has a given validator.\n *\n * @param validators The validator or validators to compare against.\n * @param validator The validator to check.\n * @returns Whether the validator is present.\n */\nfunction hasValidator(validators, validator) {\n  return Array.isArray(validators) ? validators.includes(validator) : validators === validator;\n}\n/**\n * Combines two arrays of validators into one. If duplicates are provided, only one will be added.\n *\n * @param validators The new validators.\n * @param currentValidators The base array of current validators.\n * @returns An array of validators.\n */\nfunction addValidators(validators, currentValidators) {\n  const current = makeValidatorsArray(currentValidators);\n  const validatorsToAdd = makeValidatorsArray(validators);\n  validatorsToAdd.forEach(v => {\n    // Note: if there are duplicate entries in the new validators array,\n    // only the first one would be added to the current list of validators.\n    // Duplicate ones would be ignored since `hasValidator` would detect\n    // the presence of a validator function and we update the current list in place.\n    if (!hasValidator(current, v)) {\n      current.push(v);\n    }\n  });\n  return current;\n}\nfunction removeValidators(validators, currentValidators) {\n  return makeValidatorsArray(currentValidators).filter(v => !hasValidator(validators, v));\n}\n\n/**\n * @description\n * Base class for control directives.\n *\n * This class is only used internally in the `ReactiveFormsModule` and the `FormsModule`.\n *\n * @publicApi\n */\nclass AbstractControlDirective {\n  constructor() {\n    /**\n     * Set of synchronous validators as they were provided while calling `setValidators` function.\n     * @internal\n     */\n    this._rawValidators = [];\n    /**\n     * Set of asynchronous validators as they were provided while calling `setAsyncValidators`\n     * function.\n     * @internal\n     */\n    this._rawAsyncValidators = [];\n    /*\n     * The set of callbacks to be invoked when directive instance is being destroyed.\n     */\n    this._onDestroyCallbacks = [];\n  }\n  /**\n   * @description\n   * Reports the value of the control if it is present, otherwise null.\n   */\n  get value() {\n    return this.control ? this.control.value : null;\n  }\n  /**\n   * @description\n   * Reports whether the control is valid. A control is considered valid if no\n   * validation errors exist with the current value.\n   * If the control is not present, null is returned.\n   */\n  get valid() {\n    return this.control ? this.control.valid : null;\n  }\n  /**\n   * @description\n   * Reports whether the control is invalid, meaning that an error exists in the input value.\n   * If the control is not present, null is returned.\n   */\n  get invalid() {\n    return this.control ? this.control.invalid : null;\n  }\n  /**\n   * @description\n   * Reports whether a control is pending, meaning that async validation is occurring and\n   * errors are not yet available for the input value. If the control is not present, null is\n   * returned.\n   */\n  get pending() {\n    return this.control ? this.control.pending : null;\n  }\n  /**\n   * @description\n   * Reports whether the control is disabled, meaning that the control is disabled\n   * in the UI and is exempt from validation checks and excluded from aggregate\n   * values of ancestor controls. If the control is not present, null is returned.\n   */\n  get disabled() {\n    return this.control ? this.control.disabled : null;\n  }\n  /**\n   * @description\n   * Reports whether the control is enabled, meaning that the control is included in ancestor\n   * calculations of validity or value. If the control is not present, null is returned.\n   */\n  get enabled() {\n    return this.control ? this.control.enabled : null;\n  }\n  /**\n   * @description\n   * Reports the control's validation errors. If the control is not present, null is returned.\n   */\n  get errors() {\n    return this.control ? this.control.errors : null;\n  }\n  /**\n   * @description\n   * Reports whether the control is pristine, meaning that the user has not yet changed\n   * the value in the UI. If the control is not present, null is returned.\n   */\n  get pristine() {\n    return this.control ? this.control.pristine : null;\n  }\n  /**\n   * @description\n   * Reports whether the control is dirty, meaning that the user has changed\n   * the value in the UI. If the control is not present, null is returned.\n   */\n  get dirty() {\n    return this.control ? this.control.dirty : null;\n  }\n  /**\n   * @description\n   * Reports whether the control is touched, meaning that the user has triggered\n   * a `blur` event on it. If the control is not present, null is returned.\n   */\n  get touched() {\n    return this.control ? this.control.touched : null;\n  }\n  /**\n   * @description\n   * Reports the validation status of the control. Possible values include:\n   * 'VALID', 'INVALID', 'DISABLED', and 'PENDING'.\n   * If the control is not present, null is returned.\n   */\n  get status() {\n    return this.control ? this.control.status : null;\n  }\n  /**\n   * @description\n   * Reports whether the control is untouched, meaning that the user has not yet triggered\n   * a `blur` event on it. If the control is not present, null is returned.\n   */\n  get untouched() {\n    return this.control ? this.control.untouched : null;\n  }\n  /**\n   * @description\n   * Returns a multicasting observable that emits a validation status whenever it is\n   * calculated for the control. If the control is not present, null is returned.\n   */\n  get statusChanges() {\n    return this.control ? this.control.statusChanges : null;\n  }\n  /**\n   * @description\n   * Returns a multicasting observable of value changes for the control that emits every time the\n   * value of the control changes in the UI or programmatically.\n   * If the control is not present, null is returned.\n   */\n  get valueChanges() {\n    return this.control ? this.control.valueChanges : null;\n  }\n  /**\n   * @description\n   * Returns an array that represents the path from the top-level form to this control.\n   * Each index is the string name of the control on that level.\n   */\n  get path() {\n    return null;\n  }\n  /**\n   * Sets synchronous validators for this directive.\n   * @internal\n   */\n  _setValidators(validators) {\n    this._rawValidators = validators || [];\n    this._composedValidatorFn = composeValidators(this._rawValidators);\n  }\n  /**\n   * Sets asynchronous validators for this directive.\n   * @internal\n   */\n  _setAsyncValidators(validators) {\n    this._rawAsyncValidators = validators || [];\n    this._composedAsyncValidatorFn = composeAsyncValidators(this._rawAsyncValidators);\n  }\n  /**\n   * @description\n   * Synchronous validator function composed of all the synchronous validators registered with this\n   * directive.\n   */\n  get validator() {\n    return this._composedValidatorFn || null;\n  }\n  /**\n   * @description\n   * Asynchronous validator function composed of all the asynchronous validators registered with\n   * this directive.\n   */\n  get asyncValidator() {\n    return this._composedAsyncValidatorFn || null;\n  }\n  /**\n   * Internal function to register callbacks that should be invoked\n   * when directive instance is being destroyed.\n   * @internal\n   */\n  _registerOnDestroy(fn) {\n    this._onDestroyCallbacks.push(fn);\n  }\n  /**\n   * Internal function to invoke all registered \"on destroy\" callbacks.\n   * Note: calling this function also clears the list of callbacks.\n   * @internal\n   */\n  _invokeOnDestroyCallbacks() {\n    this._onDestroyCallbacks.forEach(fn => fn());\n    this._onDestroyCallbacks = [];\n  }\n  /**\n   * @description\n   * Resets the control with the provided value if the control is present.\n   */\n  reset(value = undefined) {\n    if (this.control) this.control.reset(value);\n  }\n  /**\n   * @description\n   * Reports whether the control with the given path has the error specified.\n   *\n   * @param errorCode The code of the error to check\n   * @param path A list of control names that designates how to move from the current control\n   * to the control that should be queried for errors.\n   *\n   * @usageNotes\n   * For example, for the following `FormGroup`:\n   *\n   * ```\n   * form = new FormGroup({\n   *   address: new FormGroup({ street: new FormControl() })\n   * });\n   * ```\n   *\n   * The path to the 'street' control from the root form would be 'address' -> 'street'.\n   *\n   * It can be provided to this method in one of two formats:\n   *\n   * 1. An array of string control names, e.g. `['address', 'street']`\n   * 1. A period-delimited list of control names in one string, e.g. `'address.street'`\n   *\n   * If no path is given, this method checks for the error on the current control.\n   *\n   * @returns whether the given error is present in the control at the given path.\n   *\n   * If the control is not present, false is returned.\n   */\n  hasError(errorCode, path) {\n    return this.control ? this.control.hasError(errorCode, path) : false;\n  }\n  /**\n   * @description\n   * Reports error data for the control with the given path.\n   *\n   * @param errorCode The code of the error to check\n   * @param path A list of control names that designates how to move from the current control\n   * to the control that should be queried for errors.\n   *\n   * @usageNotes\n   * For example, for the following `FormGroup`:\n   *\n   * ```\n   * form = new FormGroup({\n   *   address: new FormGroup({ street: new FormControl() })\n   * });\n   * ```\n   *\n   * The path to the 'street' control from the root form would be 'address' -> 'street'.\n   *\n   * It can be provided to this method in one of two formats:\n   *\n   * 1. An array of string control names, e.g. `['address', 'street']`\n   * 1. A period-delimited list of control names in one string, e.g. `'address.street'`\n   *\n   * @returns error data for that particular error. If the control or error is not present,\n   * null is returned.\n   */\n  getError(errorCode, path) {\n    return this.control ? this.control.getError(errorCode, path) : null;\n  }\n}\n\n/**\n * @description\n * A base class for directives that contain multiple registered instances of `NgControl`.\n * Only used by the forms module.\n *\n * @publicApi\n */\nclass ControlContainer extends AbstractControlDirective {\n  /**\n   * @description\n   * The top-level form directive for the control.\n   */\n  get formDirective() {\n    return null;\n  }\n  /**\n   * @description\n   * The path to this group.\n   */\n  get path() {\n    return null;\n  }\n}\n\n/**\n * @description\n * A base class that all `FormControl`-based directives extend. It binds a `FormControl`\n * object to a DOM element.\n *\n * @publicApi\n */\nclass NgControl extends AbstractControlDirective {\n  constructor() {\n    super(...arguments);\n    /**\n     * @description\n     * The parent form for the control.\n     *\n     * @internal\n     */\n    this._parent = null;\n    /**\n     * @description\n     * The name for the control\n     */\n    this.name = null;\n    /**\n     * @description\n     * The value accessor for the control\n     */\n    this.valueAccessor = null;\n  }\n}\n\n// DO NOT REFACTOR!\n// Each status is represented by a separate function to make sure that\n// advanced Closure Compiler optimizations related to property renaming\n// can work correctly.\nclass AbstractControlStatus {\n  constructor(cd) {\n    this._cd = cd;\n  }\n  get isTouched() {\n    return !!this._cd?.control?.touched;\n  }\n  get isUntouched() {\n    return !!this._cd?.control?.untouched;\n  }\n  get isPristine() {\n    return !!this._cd?.control?.pristine;\n  }\n  get isDirty() {\n    return !!this._cd?.control?.dirty;\n  }\n  get isValid() {\n    return !!this._cd?.control?.valid;\n  }\n  get isInvalid() {\n    return !!this._cd?.control?.invalid;\n  }\n  get isPending() {\n    return !!this._cd?.control?.pending;\n  }\n  get isSubmitted() {\n    // We check for the `submitted` field from `NgForm` and `FormGroupDirective` classes, but\n    // we avoid instanceof checks to prevent non-tree-shakable references to those types.\n    return !!this._cd?.submitted;\n  }\n}\nconst ngControlStatusHost = {\n  '[class.ng-untouched]': 'isUntouched',\n  '[class.ng-touched]': 'isTouched',\n  '[class.ng-pristine]': 'isPristine',\n  '[class.ng-dirty]': 'isDirty',\n  '[class.ng-valid]': 'isValid',\n  '[class.ng-invalid]': 'isInvalid',\n  '[class.ng-pending]': 'isPending'\n};\nconst ngGroupStatusHost = {\n  ...ngControlStatusHost,\n  '[class.ng-submitted]': 'isSubmitted'\n};\n/**\n * @description\n * Directive automatically applied to Angular form controls that sets CSS classes\n * based on control status.\n *\n * @usageNotes\n *\n * ### CSS classes applied\n *\n * The following classes are applied as the properties become true:\n *\n * * ng-valid\n * * ng-invalid\n * * ng-pending\n * * ng-pristine\n * * ng-dirty\n * * ng-untouched\n * * ng-touched\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet NgControlStatus = /*#__PURE__*/(() => {\n  class NgControlStatus extends AbstractControlStatus {\n    constructor(cd) {\n      super(cd);\n    }\n    static {\n      this.ɵfac = function NgControlStatus_Factory(t) {\n        return new (t || NgControlStatus)(i0.ɵɵdirectiveInject(NgControl, 2));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: NgControlStatus,\n        selectors: [[\"\", \"formControlName\", \"\"], [\"\", \"ngModel\", \"\"], [\"\", \"formControl\", \"\"]],\n        hostVars: 14,\n        hostBindings: function NgControlStatus_HostBindings(rf, ctx) {\n          if (rf & 2) {\n            i0.ɵɵclassProp(\"ng-untouched\", ctx.isUntouched)(\"ng-touched\", ctx.isTouched)(\"ng-pristine\", ctx.isPristine)(\"ng-dirty\", ctx.isDirty)(\"ng-valid\", ctx.isValid)(\"ng-invalid\", ctx.isInvalid)(\"ng-pending\", ctx.isPending);\n          }\n        },\n        features: [i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return NgControlStatus;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n * Directive automatically applied to Angular form groups that sets CSS classes\n * based on control status (valid/invalid/dirty/etc). On groups, this includes the additional\n * class ng-submitted.\n *\n * @see {@link NgControlStatus}\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet NgControlStatusGroup = /*#__PURE__*/(() => {\n  class NgControlStatusGroup extends AbstractControlStatus {\n    constructor(cd) {\n      super(cd);\n    }\n    static {\n      this.ɵfac = function NgControlStatusGroup_Factory(t) {\n        return new (t || NgControlStatusGroup)(i0.ɵɵdirectiveInject(ControlContainer, 10));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: NgControlStatusGroup,\n        selectors: [[\"\", \"formGroupName\", \"\"], [\"\", \"formArrayName\", \"\"], [\"\", \"ngModelGroup\", \"\"], [\"\", \"formGroup\", \"\"], [\"form\", 3, \"ngNoForm\", \"\"], [\"\", \"ngForm\", \"\"]],\n        hostVars: 16,\n        hostBindings: function NgControlStatusGroup_HostBindings(rf, ctx) {\n          if (rf & 2) {\n            i0.ɵɵclassProp(\"ng-untouched\", ctx.isUntouched)(\"ng-touched\", ctx.isTouched)(\"ng-pristine\", ctx.isPristine)(\"ng-dirty\", ctx.isDirty)(\"ng-valid\", ctx.isValid)(\"ng-invalid\", ctx.isInvalid)(\"ng-pending\", ctx.isPending)(\"ng-submitted\", ctx.isSubmitted);\n          }\n        },\n        features: [i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return NgControlStatusGroup;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst formControlNameExample = `\n  <div [formGroup]=\"myGroup\">\n    <input formControlName=\"firstName\">\n  </div>\n\n  In your class:\n\n  this.myGroup = new FormGroup({\n      firstName: new FormControl()\n  });`;\nconst formGroupNameExample = `\n  <div [formGroup]=\"myGroup\">\n      <div formGroupName=\"person\">\n        <input formControlName=\"firstName\">\n      </div>\n  </div>\n\n  In your class:\n\n  this.myGroup = new FormGroup({\n      person: new FormGroup({ firstName: new FormControl() })\n  });`;\nconst formArrayNameExample = `\n  <div [formGroup]=\"myGroup\">\n    <div formArrayName=\"cities\">\n      <div *ngFor=\"let city of cityArray.controls; index as i\">\n        <input [formControlName]=\"i\">\n      </div>\n    </div>\n  </div>\n\n  In your class:\n\n  this.cityArray = new FormArray([new FormControl('SF')]);\n  this.myGroup = new FormGroup({\n    cities: this.cityArray\n  });`;\nconst ngModelGroupExample = `\n  <form>\n      <div ngModelGroup=\"person\">\n        <input [(ngModel)]=\"person.name\" name=\"firstName\">\n      </div>\n  </form>`;\nconst ngModelWithFormGroupExample = `\n  <div [formGroup]=\"myGroup\">\n      <input formControlName=\"firstName\">\n      <input [(ngModel)]=\"showMoreControls\" [ngModelOptions]=\"{standalone: true}\">\n  </div>\n`;\nfunction controlParentException() {\n  return new ɵRuntimeError(1050 /* RuntimeErrorCode.FORM_CONTROL_NAME_MISSING_PARENT */, `formControlName must be used with a parent formGroup directive.  You'll want to add a formGroup\n      directive and pass it an existing FormGroup instance (you can create one in your class).\n\n    Example:\n\n    ${formControlNameExample}`);\n}\nfunction ngModelGroupException() {\n  return new ɵRuntimeError(1051 /* RuntimeErrorCode.FORM_CONTROL_NAME_INSIDE_MODEL_GROUP */, `formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n      that also have a \"form\" prefix: formGroupName, formArrayName, or formGroup.\n\n      Option 1:  Update the parent to be formGroupName (reactive form strategy)\n\n      ${formGroupNameExample}\n\n      Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n      ${ngModelGroupExample}`);\n}\nfunction missingFormException() {\n  return new ɵRuntimeError(1052 /* RuntimeErrorCode.FORM_GROUP_MISSING_INSTANCE */, `formGroup expects a FormGroup instance. Please pass one in.\n\n      Example:\n\n      ${formControlNameExample}`);\n}\nfunction groupParentException() {\n  return new ɵRuntimeError(1053 /* RuntimeErrorCode.FORM_GROUP_NAME_MISSING_PARENT */, `formGroupName must be used with a parent formGroup directive.  You'll want to add a formGroup\n    directive and pass it an existing FormGroup instance (you can create one in your class).\n\n    Example:\n\n    ${formGroupNameExample}`);\n}\nfunction arrayParentException() {\n  return new ɵRuntimeError(1054 /* RuntimeErrorCode.FORM_ARRAY_NAME_MISSING_PARENT */, `formArrayName must be used with a parent formGroup directive.  You'll want to add a formGroup\n      directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      ${formArrayNameExample}`);\n}\nconst disabledAttrWarning = `\n  It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n  when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n  you. We recommend using this approach to avoid 'changed after checked' errors.\n\n  Example:\n  // Specify the \\`disabled\\` property at control creation time:\n  form = new FormGroup({\n    first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n    last: new FormControl('Drew', Validators.required)\n  });\n\n  // Controls can also be enabled/disabled after creation:\n  form.get('first')?.enable();\n  form.get('last')?.disable();\n`;\nconst asyncValidatorsDroppedWithOptsWarning = `\n  It looks like you're constructing using a FormControl with both an options argument and an\n  async validators argument. Mixing these arguments will cause your async validators to be dropped.\n  You should either put all your validators in the options object, or in separate validators\n  arguments. For example:\n\n  // Using validators arguments\n  fc = new FormControl(42, Validators.required, myAsyncValidator);\n\n  // Using AbstractControlOptions\n  fc = new FormControl(42, {validators: Validators.required, asyncValidators: myAV});\n\n  // Do NOT mix them: async validators will be dropped!\n  fc = new FormControl(42, {validators: Validators.required}, /* Oops! */ myAsyncValidator);\n`;\nfunction ngModelWarning(directiveName) {\n  return `\n  It looks like you're using ngModel on the same form field as ${directiveName}.\n  Support for using the ngModel input property and ngModelChange event with\n  reactive form directives has been deprecated in Angular v6 and will be removed\n  in a future version of Angular.\n\n  For more information on this, see our API docs here:\n  https://angular.io/api/forms/${directiveName === 'formControl' ? 'FormControlDirective' : 'FormControlName'}#use-with-ngmodel\n  `;\n}\nfunction describeKey(isFormGroup, key) {\n  return isFormGroup ? `with name: '${key}'` : `at index: ${key}`;\n}\nfunction noControlsError(isFormGroup) {\n  return `\n    There are no form controls registered with this ${isFormGroup ? 'group' : 'array'} yet. If you're using ngModel,\n    you may want to check next tick (e.g. use setTimeout).\n  `;\n}\nfunction missingControlError(isFormGroup, key) {\n  return `Cannot find form control ${describeKey(isFormGroup, key)}`;\n}\nfunction missingControlValueError(isFormGroup, key) {\n  return `Must supply a value for form control ${describeKey(isFormGroup, key)}`;\n}\n\n/**\n * Reports that a control is valid, meaning that no errors exist in the input value.\n *\n * @see {@link status}\n */\nconst VALID = 'VALID';\n/**\n * Reports that a control is invalid, meaning that an error exists in the input value.\n *\n * @see {@link status}\n */\nconst INVALID = 'INVALID';\n/**\n * Reports that a control is pending, meaning that async validation is occurring and\n * errors are not yet available for the input value.\n *\n * @see {@link markAsPending}\n * @see {@link status}\n */\nconst PENDING = 'PENDING';\n/**\n * Reports that a control is disabled, meaning that the control is exempt from ancestor\n * calculations of validity or value.\n *\n * @see {@link markAsDisabled}\n * @see {@link status}\n */\nconst DISABLED = 'DISABLED';\n/**\n * Gets validators from either an options object or given validators.\n */\nfunction pickValidators(validatorOrOpts) {\n  return (isOptionsObj(validatorOrOpts) ? validatorOrOpts.validators : validatorOrOpts) || null;\n}\n/**\n * Creates validator function by combining provided validators.\n */\nfunction coerceToValidator(validator) {\n  return Array.isArray(validator) ? composeValidators(validator) : validator || null;\n}\n/**\n * Gets async validators from either an options object or given validators.\n */\nfunction pickAsyncValidators(asyncValidator, validatorOrOpts) {\n  if (typeof ngDevMode === 'undefined' || ngDevMode) {\n    if (isOptionsObj(validatorOrOpts) && asyncValidator) {\n      console.warn(asyncValidatorsDroppedWithOptsWarning);\n    }\n  }\n  return (isOptionsObj(validatorOrOpts) ? validatorOrOpts.asyncValidators : asyncValidator) || null;\n}\n/**\n * Creates async validator function by combining provided async validators.\n */\nfunction coerceToAsyncValidator(asyncValidator) {\n  return Array.isArray(asyncValidator) ? composeAsyncValidators(asyncValidator) : asyncValidator || null;\n}\nfunction isOptionsObj(validatorOrOpts) {\n  return validatorOrOpts != null && !Array.isArray(validatorOrOpts) && typeof validatorOrOpts === 'object';\n}\nfunction assertControlPresent(parent, isGroup, key) {\n  const controls = parent.controls;\n  const collection = isGroup ? Object.keys(controls) : controls;\n  if (!collection.length) {\n    throw new ɵRuntimeError(1000 /* RuntimeErrorCode.NO_CONTROLS */, typeof ngDevMode === 'undefined' || ngDevMode ? noControlsError(isGroup) : '');\n  }\n  if (!controls[key]) {\n    throw new ɵRuntimeError(1001 /* RuntimeErrorCode.MISSING_CONTROL */, typeof ngDevMode === 'undefined' || ngDevMode ? missingControlError(isGroup, key) : '');\n  }\n}\nfunction assertAllValuesPresent(control, isGroup, value) {\n  control._forEachChild((_, key) => {\n    if (value[key] === undefined) {\n      throw new ɵRuntimeError(1002 /* RuntimeErrorCode.MISSING_CONTROL_VALUE */, typeof ngDevMode === 'undefined' || ngDevMode ? missingControlValueError(isGroup, key) : '');\n    }\n  });\n}\n// clang-format on\n/**\n * This is the base class for `FormControl`, `FormGroup`, and `FormArray`.\n *\n * It provides some of the shared behavior that all controls and groups of controls have, like\n * running validators, calculating status, and resetting state. It also defines the properties\n * that are shared between all sub-classes, like `value`, `valid`, and `dirty`. It shouldn't be\n * instantiated directly.\n *\n * The first type parameter TValue represents the value type of the control (`control.value`).\n * The optional type parameter TRawValue  represents the raw value type (`control.getRawValue()`).\n *\n * @see [Forms Guide](/guide/forms)\n * @see [Reactive Forms Guide](/guide/reactive-forms)\n * @see [Dynamic Forms Guide](/guide/dynamic-form)\n *\n * @publicApi\n */\nclass AbstractControl {\n  /**\n   * Initialize the AbstractControl instance.\n   *\n   * @param validators The function or array of functions that is used to determine the validity of\n   *     this control synchronously.\n   * @param asyncValidators The function or array of functions that is used to determine validity of\n   *     this control asynchronously.\n   */\n  constructor(validators, asyncValidators) {\n    /** @internal */\n    this._pendingDirty = false;\n    /**\n     * Indicates that a control has its own pending asynchronous validation in progress.\n     *\n     * @internal\n     */\n    this._hasOwnPendingAsyncValidator = false;\n    /** @internal */\n    this._pendingTouched = false;\n    /** @internal */\n    this._onCollectionChange = () => {};\n    this._parent = null;\n    /**\n     * A control is `pristine` if the user has not yet changed\n     * the value in the UI.\n     *\n     * @returns True if the user has not yet changed the value in the UI; compare `dirty`.\n     * Programmatic changes to a control's value do not mark it dirty.\n     */\n    this.pristine = true;\n    /**\n     * True if the control is marked as `touched`.\n     *\n     * A control is marked `touched` once the user has triggered\n     * a `blur` event on it.\n     */\n    this.touched = false;\n    /** @internal */\n    this._onDisabledChange = [];\n    this._assignValidators(validators);\n    this._assignAsyncValidators(asyncValidators);\n  }\n  /**\n   * Returns the function that is used to determine the validity of this control synchronously.\n   * If multiple validators have been added, this will be a single composed function.\n   * See `Validators.compose()` for additional information.\n   */\n  get validator() {\n    return this._composedValidatorFn;\n  }\n  set validator(validatorFn) {\n    this._rawValidators = this._composedValidatorFn = validatorFn;\n  }\n  /**\n   * Returns the function that is used to determine the validity of this control asynchronously.\n   * If multiple validators have been added, this will be a single composed function.\n   * See `Validators.compose()` for additional information.\n   */\n  get asyncValidator() {\n    return this._composedAsyncValidatorFn;\n  }\n  set asyncValidator(asyncValidatorFn) {\n    this._rawAsyncValidators = this._composedAsyncValidatorFn = asyncValidatorFn;\n  }\n  /**\n   * The parent control.\n   */\n  get parent() {\n    return this._parent;\n  }\n  /**\n   * A control is `valid` when its `status` is `VALID`.\n   *\n   * @see {@link AbstractControl.status}\n   *\n   * @returns True if the control has passed all of its validation tests,\n   * false otherwise.\n   */\n  get valid() {\n    return this.status === VALID;\n  }\n  /**\n   * A control is `invalid` when its `status` is `INVALID`.\n   *\n   * @see {@link AbstractControl.status}\n   *\n   * @returns True if this control has failed one or more of its validation checks,\n   * false otherwise.\n   */\n  get invalid() {\n    return this.status === INVALID;\n  }\n  /**\n   * A control is `pending` when its `status` is `PENDING`.\n   *\n   * @see {@link AbstractControl.status}\n   *\n   * @returns True if this control is in the process of conducting a validation check,\n   * false otherwise.\n   */\n  get pending() {\n    return this.status == PENDING;\n  }\n  /**\n   * A control is `disabled` when its `status` is `DISABLED`.\n   *\n   * Disabled controls are exempt from validation checks and\n   * are not included in the aggregate value of their ancestor\n   * controls.\n   *\n   * @see {@link AbstractControl.status}\n   *\n   * @returns True if the control is disabled, false otherwise.\n   */\n  get disabled() {\n    return this.status === DISABLED;\n  }\n  /**\n   * A control is `enabled` as long as its `status` is not `DISABLED`.\n   *\n   * @returns True if the control has any status other than 'DISABLED',\n   * false if the status is 'DISABLED'.\n   *\n   * @see {@link AbstractControl.status}\n   *\n   */\n  get enabled() {\n    return this.status !== DISABLED;\n  }\n  /**\n   * A control is `dirty` if the user has changed the value\n   * in the UI.\n   *\n   * @returns True if the user has changed the value of this control in the UI; compare `pristine`.\n   * Programmatic changes to a control's value do not mark it dirty.\n   */\n  get dirty() {\n    return !this.pristine;\n  }\n  /**\n   * True if the control has not been marked as touched\n   *\n   * A control is `untouched` if the user has not yet triggered\n   * a `blur` event on it.\n   */\n  get untouched() {\n    return !this.touched;\n  }\n  /**\n   * Reports the update strategy of the `AbstractControl` (meaning\n   * the event on which the control updates itself).\n   * Possible values: `'change'` | `'blur'` | `'submit'`\n   * Default value: `'change'`\n   */\n  get updateOn() {\n    return this._updateOn ? this._updateOn : this.parent ? this.parent.updateOn : 'change';\n  }\n  /**\n   * Sets the synchronous validators that are active on this control.  Calling\n   * this overwrites any existing synchronous validators.\n   *\n   * When you add or remove a validator at run time, you must call\n   * `updateValueAndValidity()` for the new validation to take effect.\n   *\n   * If you want to add a new validator without affecting existing ones, consider\n   * using `addValidators()` method instead.\n   */\n  setValidators(validators) {\n    this._assignValidators(validators);\n  }\n  /**\n   * Sets the asynchronous validators that are active on this control. Calling this\n   * overwrites any existing asynchronous validators.\n   *\n   * When you add or remove a validator at run time, you must call\n   * `updateValueAndValidity()` for the new validation to take effect.\n   *\n   * If you want to add a new validator without affecting existing ones, consider\n   * using `addAsyncValidators()` method instead.\n   */\n  setAsyncValidators(validators) {\n    this._assignAsyncValidators(validators);\n  }\n  /**\n   * Add a synchronous validator or validators to this control, without affecting other validators.\n   *\n   * When you add or remove a validator at run time, you must call\n   * `updateValueAndValidity()` for the new validation to take effect.\n   *\n   * Adding a validator that already exists will have no effect. If duplicate validator functions\n   * are present in the `validators` array, only the first instance would be added to a form\n   * control.\n   *\n   * @param validators The new validator function or functions to add to this control.\n   */\n  addValidators(validators) {\n    this.setValidators(addValidators(validators, this._rawValidators));\n  }\n  /**\n   * Add an asynchronous validator or validators to this control, without affecting other\n   * validators.\n   *\n   * When you add or remove a validator at run time, you must call\n   * `updateValueAndValidity()` for the new validation to take effect.\n   *\n   * Adding a validator that already exists will have no effect.\n   *\n   * @param validators The new asynchronous validator function or functions to add to this control.\n   */\n  addAsyncValidators(validators) {\n    this.setAsyncValidators(addValidators(validators, this._rawAsyncValidators));\n  }\n  /**\n   * Remove a synchronous validator from this control, without affecting other validators.\n   * Validators are compared by function reference; you must pass a reference to the exact same\n   * validator function as the one that was originally set. If a provided validator is not found,\n   * it is ignored.\n   *\n   * @usageNotes\n   *\n   * ### Reference to a ValidatorFn\n   *\n   * ```\n   * // Reference to the RequiredValidator\n   * const ctrl = new FormControl<string | null>('', Validators.required);\n   * ctrl.removeValidators(Validators.required);\n   *\n   * // Reference to anonymous function inside MinValidator\n   * const minValidator = Validators.min(3);\n   * const ctrl = new FormControl<string | null>('', minValidator);\n   * expect(ctrl.hasValidator(minValidator)).toEqual(true)\n   * expect(ctrl.hasValidator(Validators.min(3))).toEqual(false)\n   *\n   * ctrl.removeValidators(minValidator);\n   * ```\n   *\n   * When you add or remove a validator at run time, you must call\n   * `updateValueAndValidity()` for the new validation to take effect.\n   *\n   * @param validators The validator or validators to remove.\n   */\n  removeValidators(validators) {\n    this.setValidators(removeValidators(validators, this._rawValidators));\n  }\n  /**\n   * Remove an asynchronous validator from this control, without affecting other validators.\n   * Validators are compared by function reference; you must pass a reference to the exact same\n   * validator function as the one that was originally set. If a provided validator is not found, it\n   * is ignored.\n   *\n   * When you add or remove a validator at run time, you must call\n   * `updateValueAndValidity()` for the new validation to take effect.\n   *\n   * @param validators The asynchronous validator or validators to remove.\n   */\n  removeAsyncValidators(validators) {\n    this.setAsyncValidators(removeValidators(validators, this._rawAsyncValidators));\n  }\n  /**\n   * Check whether a synchronous validator function is present on this control. The provided\n   * validator must be a reference to the exact same function that was provided.\n   *\n   * @usageNotes\n   *\n   * ### Reference to a ValidatorFn\n   *\n   * ```\n   * // Reference to the RequiredValidator\n   * const ctrl = new FormControl<number | null>(0, Validators.required);\n   * expect(ctrl.hasValidator(Validators.required)).toEqual(true)\n   *\n   * // Reference to anonymous function inside MinValidator\n   * const minValidator = Validators.min(3);\n   * const ctrl = new FormControl<number | null>(0, minValidator);\n   * expect(ctrl.hasValidator(minValidator)).toEqual(true)\n   * expect(ctrl.hasValidator(Validators.min(3))).toEqual(false)\n   * ```\n   *\n   * @param validator The validator to check for presence. Compared by function reference.\n   * @returns Whether the provided validator was found on this control.\n   */\n  hasValidator(validator) {\n    return hasValidator(this._rawValidators, validator);\n  }\n  /**\n   * Check whether an asynchronous validator function is present on this control. The provided\n   * validator must be a reference to the exact same function that was provided.\n   *\n   * @param validator The asynchronous validator to check for presence. Compared by function\n   *     reference.\n   * @returns Whether the provided asynchronous validator was found on this control.\n   */\n  hasAsyncValidator(validator) {\n    return hasValidator(this._rawAsyncValidators, validator);\n  }\n  /**\n   * Empties out the synchronous validator list.\n   *\n   * When you add or remove a validator at run time, you must call\n   * `updateValueAndValidity()` for the new validation to take effect.\n   *\n   */\n  clearValidators() {\n    this.validator = null;\n  }\n  /**\n   * Empties out the async validator list.\n   *\n   * When you add or remove a validator at run time, you must call\n   * `updateValueAndValidity()` for the new validation to take effect.\n   *\n   */\n  clearAsyncValidators() {\n    this.asyncValidator = null;\n  }\n  /**\n   * Marks the control as `touched`. A control is touched by focus and\n   * blur events that do not change the value.\n   *\n   * @see {@link markAsUntouched()}\n   * @see {@link markAsDirty()}\n   * @see {@link markAsPristine()}\n   *\n   * @param opts Configuration options that determine how the control propagates changes\n   * and emits events after marking is applied.\n   * * `onlySelf`: When true, mark only this control. When false or not supplied,\n   * marks all direct ancestors. Default is false.\n   */\n  markAsTouched(opts = {}) {\n    this.touched = true;\n    if (this._parent && !opts.onlySelf) {\n      this._parent.markAsTouched(opts);\n    }\n  }\n  /**\n   * Marks the control and all its descendant controls as `touched`.\n   * @see {@link markAsTouched()}\n   */\n  markAllAsTouched() {\n    this.markAsTouched({\n      onlySelf: true\n    });\n    this._forEachChild(control => control.markAllAsTouched());\n  }\n  /**\n   * Marks the control as `untouched`.\n   *\n   * If the control has any children, also marks all children as `untouched`\n   * and recalculates the `touched` status of all parent controls.\n   *\n   * @see {@link markAsTouched()}\n   * @see {@link markAsDirty()}\n   * @see {@link markAsPristine()}\n   *\n   * @param opts Configuration options that determine how the control propagates changes\n   * and emits events after the marking is applied.\n   * * `onlySelf`: When true, mark only this control. When false or not supplied,\n   * marks all direct ancestors. Default is false.\n   */\n  markAsUntouched(opts = {}) {\n    this.touched = false;\n    this._pendingTouched = false;\n    this._forEachChild(control => {\n      control.markAsUntouched({\n        onlySelf: true\n      });\n    });\n    if (this._parent && !opts.onlySelf) {\n      this._parent._updateTouched(opts);\n    }\n  }\n  /**\n   * Marks the control as `dirty`. A control becomes dirty when\n   * the control's value is changed through the UI; compare `markAsTouched`.\n   *\n   * @see {@link markAsTouched()}\n   * @see {@link markAsUntouched()}\n   * @see {@link markAsPristine()}\n   *\n   * @param opts Configuration options that determine how the control propagates changes\n   * and emits events after marking is applied.\n   * * `onlySelf`: When true, mark only this control. When false or not supplied,\n   * marks all direct ancestors. Default is false.\n   */\n  markAsDirty(opts = {}) {\n    this.pristine = false;\n    if (this._parent && !opts.onlySelf) {\n      this._parent.markAsDirty(opts);\n    }\n  }\n  /**\n   * Marks the control as `pristine`.\n   *\n   * If the control has any children, marks all children as `pristine`,\n   * and recalculates the `pristine` status of all parent\n   * controls.\n   *\n   * @see {@link markAsTouched()}\n   * @see {@link markAsUntouched()}\n   * @see {@link markAsDirty()}\n   *\n   * @param opts Configuration options that determine how the control emits events after\n   * marking is applied.\n   * * `onlySelf`: When true, mark only this control. When false or not supplied,\n   * marks all direct ancestors. Default is false.\n   */\n  markAsPristine(opts = {}) {\n    this.pristine = true;\n    this._pendingDirty = false;\n    this._forEachChild(control => {\n      control.markAsPristine({\n        onlySelf: true\n      });\n    });\n    if (this._parent && !opts.onlySelf) {\n      this._parent._updatePristine(opts);\n    }\n  }\n  /**\n   * Marks the control as `pending`.\n   *\n   * A control is pending while the control performs async validation.\n   *\n   * @see {@link AbstractControl.status}\n   *\n   * @param opts Configuration options that determine how the control propagates changes and\n   * emits events after marking is applied.\n   * * `onlySelf`: When true, mark only this control. When false or not supplied,\n   * marks all direct ancestors. Default is false.\n   * * `emitEvent`: When true or not supplied (the default), the `statusChanges`\n   * observable emits an event with the latest status the control is marked pending.\n   * When false, no events are emitted.\n   *\n   */\n  markAsPending(opts = {}) {\n    this.status = PENDING;\n    if (opts.emitEvent !== false) {\n      this.statusChanges.emit(this.status);\n    }\n    if (this._parent && !opts.onlySelf) {\n      this._parent.markAsPending(opts);\n    }\n  }\n  /**\n   * Disables the control. This means the control is exempt from validation checks and\n   * excluded from the aggregate value of any parent. Its status is `DISABLED`.\n   *\n   * If the control has children, all children are also disabled.\n   *\n   * @see {@link AbstractControl.status}\n   *\n   * @param opts Configuration options that determine how the control propagates\n   * changes and emits events after the control is disabled.\n   * * `onlySelf`: When true, mark only this control. When false or not supplied,\n   * marks all direct ancestors. Default is false.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges`\n   * observables emit events with the latest status and value when the control is disabled.\n   * When false, no events are emitted.\n   */\n  disable(opts = {}) {\n    // If parent has been marked artificially dirty we don't want to re-calculate the\n    // parent's dirtiness based on the children.\n    const skipPristineCheck = this._parentMarkedDirty(opts.onlySelf);\n    this.status = DISABLED;\n    this.errors = null;\n    this._forEachChild(control => {\n      control.disable({\n        ...opts,\n        onlySelf: true\n      });\n    });\n    this._updateValue();\n    if (opts.emitEvent !== false) {\n      this.valueChanges.emit(this.value);\n      this.statusChanges.emit(this.status);\n    }\n    this._updateAncestors({\n      ...opts,\n      skipPristineCheck\n    });\n    this._onDisabledChange.forEach(changeFn => changeFn(true));\n  }\n  /**\n   * Enables the control. This means the control is included in validation checks and\n   * the aggregate value of its parent. Its status recalculates based on its value and\n   * its validators.\n   *\n   * By default, if the control has children, all children are enabled.\n   *\n   * @see {@link AbstractControl.status}\n   *\n   * @param opts Configure options that control how the control propagates changes and\n   * emits events when marked as untouched\n   * * `onlySelf`: When true, mark only this control. When false or not supplied,\n   * marks all direct ancestors. Default is false.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges`\n   * observables emit events with the latest status and value when the control is enabled.\n   * When false, no events are emitted.\n   */\n  enable(opts = {}) {\n    // If parent has been marked artificially dirty we don't want to re-calculate the\n    // parent's dirtiness based on the children.\n    const skipPristineCheck = this._parentMarkedDirty(opts.onlySelf);\n    this.status = VALID;\n    this._forEachChild(control => {\n      control.enable({\n        ...opts,\n        onlySelf: true\n      });\n    });\n    this.updateValueAndValidity({\n      onlySelf: true,\n      emitEvent: opts.emitEvent\n    });\n    this._updateAncestors({\n      ...opts,\n      skipPristineCheck\n    });\n    this._onDisabledChange.forEach(changeFn => changeFn(false));\n  }\n  _updateAncestors(opts) {\n    if (this._parent && !opts.onlySelf) {\n      this._parent.updateValueAndValidity(opts);\n      if (!opts.skipPristineCheck) {\n        this._parent._updatePristine();\n      }\n      this._parent._updateTouched();\n    }\n  }\n  /**\n   * Sets the parent of the control\n   *\n   * @param parent The new parent.\n   */\n  setParent(parent) {\n    this._parent = parent;\n  }\n  /**\n   * The raw value of this control. For most control implementations, the raw value will include\n   * disabled children.\n   */\n  getRawValue() {\n    return this.value;\n  }\n  /**\n   * Recalculates the value and validation status of the control.\n   *\n   * By default, it also updates the value and validity of its ancestors.\n   *\n   * @param opts Configuration options determine how the control propagates changes and emits events\n   * after updates and validity checks are applied.\n   * * `onlySelf`: When true, only update this control. When false or not supplied,\n   * update all direct ancestors. Default is false.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges`\n   * observables emit events with the latest status and value when the control is updated.\n   * When false, no events are emitted.\n   */\n  updateValueAndValidity(opts = {}) {\n    this._setInitialStatus();\n    this._updateValue();\n    if (this.enabled) {\n      this._cancelExistingSubscription();\n      this.errors = this._runValidator();\n      this.status = this._calculateStatus();\n      if (this.status === VALID || this.status === PENDING) {\n        this._runAsyncValidator(opts.emitEvent);\n      }\n    }\n    if (opts.emitEvent !== false) {\n      this.valueChanges.emit(this.value);\n      this.statusChanges.emit(this.status);\n    }\n    if (this._parent && !opts.onlySelf) {\n      this._parent.updateValueAndValidity(opts);\n    }\n  }\n  /** @internal */\n  _updateTreeValidity(opts = {\n    emitEvent: true\n  }) {\n    this._forEachChild(ctrl => ctrl._updateTreeValidity(opts));\n    this.updateValueAndValidity({\n      onlySelf: true,\n      emitEvent: opts.emitEvent\n    });\n  }\n  _setInitialStatus() {\n    this.status = this._allControlsDisabled() ? DISABLED : VALID;\n  }\n  _runValidator() {\n    return this.validator ? this.validator(this) : null;\n  }\n  _runAsyncValidator(emitEvent) {\n    if (this.asyncValidator) {\n      this.status = PENDING;\n      this._hasOwnPendingAsyncValidator = true;\n      const obs = toObservable(this.asyncValidator(this));\n      this._asyncValidationSubscription = obs.subscribe(errors => {\n        this._hasOwnPendingAsyncValidator = false;\n        // This will trigger the recalculation of the validation status, which depends on\n        // the state of the asynchronous validation (whether it is in progress or not). So, it is\n        // necessary that we have updated the `_hasOwnPendingAsyncValidator` boolean flag first.\n        this.setErrors(errors, {\n          emitEvent\n        });\n      });\n    }\n  }\n  _cancelExistingSubscription() {\n    if (this._asyncValidationSubscription) {\n      this._asyncValidationSubscription.unsubscribe();\n      this._hasOwnPendingAsyncValidator = false;\n    }\n  }\n  /**\n   * Sets errors on a form control when running validations manually, rather than automatically.\n   *\n   * Calling `setErrors` also updates the validity of the parent control.\n   *\n   * @param opts Configuration options that determine how the control propagates\n   * changes and emits events after the control errors are set.\n   * * `emitEvent`: When true or not supplied (the default), the `statusChanges`\n   * observable emits an event after the errors are set.\n   *\n   * @usageNotes\n   *\n   * ### Manually set the errors for a control\n   *\n   * ```\n   * const login = new FormControl('someLogin');\n   * login.setErrors({\n   *   notUnique: true\n   * });\n   *\n   * expect(login.valid).toEqual(false);\n   * expect(login.errors).toEqual({ notUnique: true });\n   *\n   * login.setValue('someOtherLogin');\n   *\n   * expect(login.valid).toEqual(true);\n   * ```\n   */\n  setErrors(errors, opts = {}) {\n    this.errors = errors;\n    this._updateControlsErrors(opts.emitEvent !== false);\n  }\n  /**\n   * Retrieves a child control given the control's name or path.\n   *\n   * @param path A dot-delimited string or array of string/number values that define the path to the\n   * control. If a string is provided, passing it as a string literal will result in improved type\n   * information. Likewise, if an array is provided, passing it `as const` will cause improved type\n   * information to be available.\n   *\n   * @usageNotes\n   * ### Retrieve a nested control\n   *\n   * For example, to get a `name` control nested within a `person` sub-group:\n   *\n   * * `this.form.get('person.name');`\n   *\n   * -OR-\n   *\n   * * `this.form.get(['person', 'name'] as const);` // `as const` gives improved typings\n   *\n   * ### Retrieve a control in a FormArray\n   *\n   * When accessing an element inside a FormArray, you can use an element index.\n   * For example, to get a `price` control from the first element in an `items` array you can use:\n   *\n   * * `this.form.get('items.0.price');`\n   *\n   * -OR-\n   *\n   * * `this.form.get(['items', 0, 'price']);`\n   */\n  get(path) {\n    let currPath = path;\n    if (currPath == null) return null;\n    if (!Array.isArray(currPath)) currPath = currPath.split('.');\n    if (currPath.length === 0) return null;\n    return currPath.reduce((control, name) => control && control._find(name), this);\n  }\n  /**\n   * @description\n   * Reports error data for the control with the given path.\n   *\n   * @param errorCode The code of the error to check\n   * @param path A list of control names that designates how to move from the current control\n   * to the control that should be queried for errors.\n   *\n   * @usageNotes\n   * For example, for the following `FormGroup`:\n   *\n   * ```\n   * form = new FormGroup({\n   *   address: new FormGroup({ street: new FormControl() })\n   * });\n   * ```\n   *\n   * The path to the 'street' control from the root form would be 'address' -> 'street'.\n   *\n   * It can be provided to this method in one of two formats:\n   *\n   * 1. An array of string control names, e.g. `['address', 'street']`\n   * 1. A period-delimited list of control names in one string, e.g. `'address.street'`\n   *\n   * @returns error data for that particular error. If the control or error is not present,\n   * null is returned.\n   */\n  getError(errorCode, path) {\n    const control = path ? this.get(path) : this;\n    return control && control.errors ? control.errors[errorCode] : null;\n  }\n  /**\n   * @description\n   * Reports whether the control with the given path has the error specified.\n   *\n   * @param errorCode The code of the error to check\n   * @param path A list of control names that designates how to move from the current control\n   * to the control that should be queried for errors.\n   *\n   * @usageNotes\n   * For example, for the following `FormGroup`:\n   *\n   * ```\n   * form = new FormGroup({\n   *   address: new FormGroup({ street: new FormControl() })\n   * });\n   * ```\n   *\n   * The path to the 'street' control from the root form would be 'address' -> 'street'.\n   *\n   * It can be provided to this method in one of two formats:\n   *\n   * 1. An array of string control names, e.g. `['address', 'street']`\n   * 1. A period-delimited list of control names in one string, e.g. `'address.street'`\n   *\n   * If no path is given, this method checks for the error on the current control.\n   *\n   * @returns whether the given error is present in the control at the given path.\n   *\n   * If the control is not present, false is returned.\n   */\n  hasError(errorCode, path) {\n    return !!this.getError(errorCode, path);\n  }\n  /**\n   * Retrieves the top-level ancestor of this control.\n   */\n  get root() {\n    let x = this;\n    while (x._parent) {\n      x = x._parent;\n    }\n    return x;\n  }\n  /** @internal */\n  _updateControlsErrors(emitEvent) {\n    this.status = this._calculateStatus();\n    if (emitEvent) {\n      this.statusChanges.emit(this.status);\n    }\n    if (this._parent) {\n      this._parent._updateControlsErrors(emitEvent);\n    }\n  }\n  /** @internal */\n  _initObservables() {\n    this.valueChanges = new EventEmitter();\n    this.statusChanges = new EventEmitter();\n  }\n  _calculateStatus() {\n    if (this._allControlsDisabled()) return DISABLED;\n    if (this.errors) return INVALID;\n    if (this._hasOwnPendingAsyncValidator || this._anyControlsHaveStatus(PENDING)) return PENDING;\n    if (this._anyControlsHaveStatus(INVALID)) return INVALID;\n    return VALID;\n  }\n  /** @internal */\n  _anyControlsHaveStatus(status) {\n    return this._anyControls(control => control.status === status);\n  }\n  /** @internal */\n  _anyControlsDirty() {\n    return this._anyControls(control => control.dirty);\n  }\n  /** @internal */\n  _anyControlsTouched() {\n    return this._anyControls(control => control.touched);\n  }\n  /** @internal */\n  _updatePristine(opts = {}) {\n    this.pristine = !this._anyControlsDirty();\n    if (this._parent && !opts.onlySelf) {\n      this._parent._updatePristine(opts);\n    }\n  }\n  /** @internal */\n  _updateTouched(opts = {}) {\n    this.touched = this._anyControlsTouched();\n    if (this._parent && !opts.onlySelf) {\n      this._parent._updateTouched(opts);\n    }\n  }\n  /** @internal */\n  _registerOnCollectionChange(fn) {\n    this._onCollectionChange = fn;\n  }\n  /** @internal */\n  _setUpdateStrategy(opts) {\n    if (isOptionsObj(opts) && opts.updateOn != null) {\n      this._updateOn = opts.updateOn;\n    }\n  }\n  /**\n   * Check to see if parent has been marked artificially dirty.\n   *\n   * @internal\n   */\n  _parentMarkedDirty(onlySelf) {\n    const parentDirty = this._parent && this._parent.dirty;\n    return !onlySelf && !!parentDirty && !this._parent._anyControlsDirty();\n  }\n  /** @internal */\n  _find(name) {\n    return null;\n  }\n  /**\n   * Internal implementation of the `setValidators` method. Needs to be separated out into a\n   * different method, because it is called in the constructor and it can break cases where\n   * a control is extended.\n   */\n  _assignValidators(validators) {\n    this._rawValidators = Array.isArray(validators) ? validators.slice() : validators;\n    this._composedValidatorFn = coerceToValidator(this._rawValidators);\n  }\n  /**\n   * Internal implementation of the `setAsyncValidators` method. Needs to be separated out into a\n   * different method, because it is called in the constructor and it can break cases where\n   * a control is extended.\n   */\n  _assignAsyncValidators(validators) {\n    this._rawAsyncValidators = Array.isArray(validators) ? validators.slice() : validators;\n    this._composedAsyncValidatorFn = coerceToAsyncValidator(this._rawAsyncValidators);\n  }\n}\n\n/**\n * Tracks the value and validity state of a group of `FormControl` instances.\n *\n * A `FormGroup` aggregates the values of each child `FormControl` into one object,\n * with each control name as the key.  It calculates its status by reducing the status values\n * of its children. For example, if one of the controls in a group is invalid, the entire\n * group becomes invalid.\n *\n * `FormGroup` is one of the four fundamental building blocks used to define forms in Angular,\n * along with `FormControl`, `FormArray`, and `FormRecord`.\n *\n * When instantiating a `FormGroup`, pass in a collection of child controls as the first\n * argument. The key for each child registers the name for the control.\n *\n * `FormGroup` is intended for use cases where the keys are known ahead of time.\n * If you need to dynamically add and remove controls, use {@link FormRecord} instead.\n *\n * `FormGroup` accepts an optional type parameter `TControl`, which is an object type with inner\n * control types as values.\n *\n * @usageNotes\n *\n * ### Create a form group with 2 controls\n *\n * ```\n * const form = new FormGroup({\n *   first: new FormControl('Nancy', Validators.minLength(2)),\n *   last: new FormControl('Drew'),\n * });\n *\n * console.log(form.value);   // {first: 'Nancy', last; 'Drew'}\n * console.log(form.status);  // 'VALID'\n * ```\n *\n * ### The type argument, and optional controls\n *\n * `FormGroup` accepts one generic argument, which is an object containing its inner controls.\n * This type will usually be inferred automatically, but you can always specify it explicitly if you\n * wish.\n *\n * If you have controls that are optional (i.e. they can be removed, you can use the `?` in the\n * type):\n *\n * ```\n * const form = new FormGroup<{\n *   first: FormControl<string|null>,\n *   middle?: FormControl<string|null>, // Middle name is optional.\n *   last: FormControl<string|null>,\n * }>({\n *   first: new FormControl('Nancy'),\n *   last: new FormControl('Drew'),\n * });\n * ```\n *\n * ### Create a form group with a group-level validator\n *\n * You include group-level validators as the second arg, or group-level async\n * validators as the third arg. These come in handy when you want to perform validation\n * that considers the value of more than one child control.\n *\n * ```\n * const form = new FormGroup({\n *   password: new FormControl('', Validators.minLength(2)),\n *   passwordConfirm: new FormControl('', Validators.minLength(2)),\n * }, passwordMatchValidator);\n *\n *\n * function passwordMatchValidator(g: FormGroup) {\n *    return g.get('password').value === g.get('passwordConfirm').value\n *       ? null : {'mismatch': true};\n * }\n * ```\n *\n * Like `FormControl` instances, you choose to pass in\n * validators and async validators as part of an options object.\n *\n * ```\n * const form = new FormGroup({\n *   password: new FormControl('')\n *   passwordConfirm: new FormControl('')\n * }, { validators: passwordMatchValidator, asyncValidators: otherValidator });\n * ```\n *\n * ### Set the updateOn property for all controls in a form group\n *\n * The options object is used to set a default value for each child\n * control's `updateOn` property. If you set `updateOn` to `'blur'` at the\n * group level, all child controls default to 'blur', unless the child\n * has explicitly specified a different `updateOn` value.\n *\n * ```ts\n * const c = new FormGroup({\n *   one: new FormControl()\n * }, { updateOn: 'blur' });\n * ```\n *\n * ### Using a FormGroup with optional controls\n *\n * It is possible to have optional controls in a FormGroup. An optional control can be removed later\n * using `removeControl`, and can be omitted when calling `reset`. Optional controls must be\n * declared optional in the group's type.\n *\n * ```ts\n * const c = new FormGroup<{one?: FormControl<string>}>({\n *   one: new FormControl('')\n * });\n * ```\n *\n * Notice that `c.value.one` has type `string|null|undefined`. This is because calling `c.reset({})`\n * without providing the optional key `one` will cause it to become `null`.\n *\n * @publicApi\n */\nclass FormGroup extends AbstractControl {\n  /**\n   * Creates a new `FormGroup` instance.\n   *\n   * @param controls A collection of child controls. The key for each child is the name\n   * under which it is registered.\n   *\n   * @param validatorOrOpts A synchronous validator function, or an array of\n   * such functions, or an `AbstractControlOptions` object that contains validation functions\n   * and a validation trigger.\n   *\n   * @param asyncValidator A single async validator or array of async validator functions\n   *\n   */\n  constructor(controls, validatorOrOpts, asyncValidator) {\n    super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));\n    (typeof ngDevMode === 'undefined' || ngDevMode) && validateFormGroupControls(controls);\n    this.controls = controls;\n    this._initObservables();\n    this._setUpdateStrategy(validatorOrOpts);\n    this._setUpControls();\n    this.updateValueAndValidity({\n      onlySelf: true,\n      // If `asyncValidator` is present, it will trigger control status change from `PENDING` to\n      // `VALID` or `INVALID`. The status should be broadcasted via the `statusChanges` observable,\n      // so we set `emitEvent` to `true` to allow that during the control creation process.\n      emitEvent: !!this.asyncValidator\n    });\n  }\n  registerControl(name, control) {\n    if (this.controls[name]) return this.controls[name];\n    this.controls[name] = control;\n    control.setParent(this);\n    control._registerOnCollectionChange(this._onCollectionChange);\n    return control;\n  }\n  addControl(name, control, options = {}) {\n    this.registerControl(name, control);\n    this.updateValueAndValidity({\n      emitEvent: options.emitEvent\n    });\n    this._onCollectionChange();\n  }\n  /**\n   * Remove a control from this group. In a strongly-typed group, required controls cannot be\n   * removed.\n   *\n   * This method also updates the value and validity of the control.\n   *\n   * @param name The control name to remove from the collection\n   * @param options Specifies whether this FormGroup instance should emit events after a\n   *     control is removed.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges` observables emit events with the latest status and value when the control is\n   * removed. When false, no events are emitted.\n   */\n  removeControl(name, options = {}) {\n    if (this.controls[name]) this.controls[name]._registerOnCollectionChange(() => {});\n    delete this.controls[name];\n    this.updateValueAndValidity({\n      emitEvent: options.emitEvent\n    });\n    this._onCollectionChange();\n  }\n  setControl(name, control, options = {}) {\n    if (this.controls[name]) this.controls[name]._registerOnCollectionChange(() => {});\n    delete this.controls[name];\n    if (control) this.registerControl(name, control);\n    this.updateValueAndValidity({\n      emitEvent: options.emitEvent\n    });\n    this._onCollectionChange();\n  }\n  contains(controlName) {\n    return this.controls.hasOwnProperty(controlName) && this.controls[controlName].enabled;\n  }\n  /**\n   * Sets the value of the `FormGroup`. It accepts an object that matches\n   * the structure of the group, with control names as keys.\n   *\n   * @usageNotes\n   * ### Set the complete value for the form group\n   *\n   * ```\n   * const form = new FormGroup({\n   *   first: new FormControl(),\n   *   last: new FormControl()\n   * });\n   *\n   * console.log(form.value);   // {first: null, last: null}\n   *\n   * form.setValue({first: 'Nancy', last: 'Drew'});\n   * console.log(form.value);   // {first: 'Nancy', last: 'Drew'}\n   * ```\n   *\n   * @throws When strict checks fail, such as setting the value of a control\n   * that doesn't exist or if you exclude a value of a control that does exist.\n   *\n   * @param value The new value for the control that matches the structure of the group.\n   * @param options Configuration options that determine how the control propagates changes\n   * and emits events after the value changes.\n   * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity\n   * updateValueAndValidity} method.\n   *\n   * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is\n   * false.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges`\n   * observables emit events with the latest status and value when the control value is updated.\n   * When false, no events are emitted.\n   */\n  setValue(value, options = {}) {\n    assertAllValuesPresent(this, true, value);\n    Object.keys(value).forEach(name => {\n      assertControlPresent(this, true, name);\n      this.controls[name].setValue(value[name], {\n        onlySelf: true,\n        emitEvent: options.emitEvent\n      });\n    });\n    this.updateValueAndValidity(options);\n  }\n  /**\n   * Patches the value of the `FormGroup`. It accepts an object with control\n   * names as keys, and does its best to match the values to the correct controls\n   * in the group.\n   *\n   * It accepts both super-sets and sub-sets of the group without throwing an error.\n   *\n   * @usageNotes\n   * ### Patch the value for a form group\n   *\n   * ```\n   * const form = new FormGroup({\n   *    first: new FormControl(),\n   *    last: new FormControl()\n   * });\n   * console.log(form.value);   // {first: null, last: null}\n   *\n   * form.patchValue({first: 'Nancy'});\n   * console.log(form.value);   // {first: 'Nancy', last: null}\n   * ```\n   *\n   * @param value The object that matches the structure of the group.\n   * @param options Configuration options that determine how the control propagates changes and\n   * emits events after the value is patched.\n   * * `onlySelf`: When true, each change only affects this control and not its parent. Default is\n   * true.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges` observables emit events with the latest status and value when the control value\n   * is updated. When false, no events are emitted. The configuration options are passed to\n   * the {@link AbstractControl#updateValueAndValidity updateValueAndValidity} method.\n   */\n  patchValue(value, options = {}) {\n    // Even though the `value` argument type doesn't allow `null` and `undefined` values, the\n    // `patchValue` can be called recursively and inner data structures might have these values, so\n    // we just ignore such cases when a field containing FormGroup instance receives `null` or\n    // `undefined` as a value.\n    if (value == null /* both `null` and `undefined` */) return;\n    Object.keys(value).forEach(name => {\n      // The compiler cannot see through the uninstantiated conditional type of `this.controls`, so\n      // `as any` is required.\n      const control = this.controls[name];\n      if (control) {\n        control.patchValue( /* Guaranteed to be present, due to the outer forEach. */value[name], {\n          onlySelf: true,\n          emitEvent: options.emitEvent\n        });\n      }\n    });\n    this.updateValueAndValidity(options);\n  }\n  /**\n   * Resets the `FormGroup`, marks all descendants `pristine` and `untouched` and sets\n   * the value of all descendants to their default values, or null if no defaults were provided.\n   *\n   * You reset to a specific form state by passing in a map of states\n   * that matches the structure of your form, with control names as keys. The state\n   * is a standalone value or a form state object with both a value and a disabled\n   * status.\n   *\n   * @param value Resets the control with an initial value,\n   * or an object that defines the initial value and disabled state.\n   *\n   * @param options Configuration options that determine how the control propagates changes\n   * and emits events when the group is reset.\n   * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is\n   * false.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges`\n   * observables emit events with the latest status and value when the control is reset.\n   * When false, no events are emitted.\n   * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity\n   * updateValueAndValidity} method.\n   *\n   * @usageNotes\n   *\n   * ### Reset the form group values\n   *\n   * ```ts\n   * const form = new FormGroup({\n   *   first: new FormControl('first name'),\n   *   last: new FormControl('last name')\n   * });\n   *\n   * console.log(form.value);  // {first: 'first name', last: 'last name'}\n   *\n   * form.reset({ first: 'name', last: 'last name' });\n   *\n   * console.log(form.value);  // {first: 'name', last: 'last name'}\n   * ```\n   *\n   * ### Reset the form group values and disabled status\n   *\n   * ```\n   * const form = new FormGroup({\n   *   first: new FormControl('first name'),\n   *   last: new FormControl('last name')\n   * });\n   *\n   * form.reset({\n   *   first: {value: 'name', disabled: true},\n   *   last: 'last'\n   * });\n   *\n   * console.log(form.value);  // {last: 'last'}\n   * console.log(form.get('first').status);  // 'DISABLED'\n   * ```\n   */\n  reset(value = {}, options = {}) {\n    this._forEachChild((control, name) => {\n      control.reset(value ? value[name] : null, {\n        onlySelf: true,\n        emitEvent: options.emitEvent\n      });\n    });\n    this._updatePristine(options);\n    this._updateTouched(options);\n    this.updateValueAndValidity(options);\n  }\n  /**\n   * The aggregate value of the `FormGroup`, including any disabled controls.\n   *\n   * Retrieves all values regardless of disabled status.\n   */\n  getRawValue() {\n    return this._reduceChildren({}, (acc, control, name) => {\n      acc[name] = control.getRawValue();\n      return acc;\n    });\n  }\n  /** @internal */\n  _syncPendingControls() {\n    let subtreeUpdated = this._reduceChildren(false, (updated, child) => {\n      return child._syncPendingControls() ? true : updated;\n    });\n    if (subtreeUpdated) this.updateValueAndValidity({\n      onlySelf: true\n    });\n    return subtreeUpdated;\n  }\n  /** @internal */\n  _forEachChild(cb) {\n    Object.keys(this.controls).forEach(key => {\n      // The list of controls can change (for ex. controls might be removed) while the loop\n      // is running (as a result of invoking Forms API in `valueChanges` subscription), so we\n      // have to null check before invoking the callback.\n      const control = this.controls[key];\n      control && cb(control, key);\n    });\n  }\n  /** @internal */\n  _setUpControls() {\n    this._forEachChild(control => {\n      control.setParent(this);\n      control._registerOnCollectionChange(this._onCollectionChange);\n    });\n  }\n  /** @internal */\n  _updateValue() {\n    this.value = this._reduceValue();\n  }\n  /** @internal */\n  _anyControls(condition) {\n    for (const [controlName, control] of Object.entries(this.controls)) {\n      if (this.contains(controlName) && condition(control)) {\n        return true;\n      }\n    }\n    return false;\n  }\n  /** @internal */\n  _reduceValue() {\n    let acc = {};\n    return this._reduceChildren(acc, (acc, control, name) => {\n      if (control.enabled || this.disabled) {\n        acc[name] = control.value;\n      }\n      return acc;\n    });\n  }\n  /** @internal */\n  _reduceChildren(initValue, fn) {\n    let res = initValue;\n    this._forEachChild((control, name) => {\n      res = fn(res, control, name);\n    });\n    return res;\n  }\n  /** @internal */\n  _allControlsDisabled() {\n    for (const controlName of Object.keys(this.controls)) {\n      if (this.controls[controlName].enabled) {\n        return false;\n      }\n    }\n    return Object.keys(this.controls).length > 0 || this.disabled;\n  }\n  /** @internal */\n  _find(name) {\n    return this.controls.hasOwnProperty(name) ? this.controls[name] : null;\n  }\n}\n/**\n * Will validate that none of the controls has a key with a dot\n * Throws other wise\n */\nfunction validateFormGroupControls(controls) {\n  const invalidKeys = Object.keys(controls).filter(key => key.includes('.'));\n  if (invalidKeys.length > 0) {\n    // TODO: make this an error once there are no more uses in G3\n    console.warn(`FormGroup keys cannot include \\`.\\`, please replace the keys for: ${invalidKeys.join(',')}.`);\n  }\n}\nconst UntypedFormGroup = FormGroup;\n/**\n * @description\n * Asserts that the given control is an instance of `FormGroup`\n *\n * @publicApi\n */\nconst isFormGroup = control => control instanceof FormGroup;\n/**\n * Tracks the value and validity state of a collection of `FormControl` instances, each of which has\n * the same value type.\n *\n * `FormRecord` is very similar to {@link FormGroup}, except it can be used with a dynamic keys,\n * with controls added and removed as needed.\n *\n * `FormRecord` accepts one generic argument, which describes the type of the controls it contains.\n *\n * @usageNotes\n *\n * ```\n * let numbers = new FormRecord({bill: new FormControl('415-123-456')});\n * numbers.addControl('bob', new FormControl('415-234-567'));\n * numbers.removeControl('bill');\n * ```\n *\n * @publicApi\n */\nclass FormRecord extends FormGroup {}\n/**\n * @description\n * Asserts that the given control is an instance of `FormRecord`\n *\n * @publicApi\n */\nconst isFormRecord = control => control instanceof FormRecord;\n\n/**\n * Token to provide to allow SetDisabledState to always be called when a CVA is added, regardless of\n * whether the control is disabled or enabled.\n *\n * @see {@link FormsModule#withconfig}\n */\nconst CALL_SET_DISABLED_STATE = /*#__PURE__*/new InjectionToken('CallSetDisabledState', {\n  providedIn: 'root',\n  factory: () => setDisabledStateDefault\n});\n/**\n * Whether to use the fixed setDisabledState behavior by default.\n */\nconst setDisabledStateDefault = 'always';\nfunction controlPath(name, parent) {\n  return [...parent.path, name];\n}\n/**\n * Links a Form control and a Form directive by setting up callbacks (such as `onChange`) on both\n * instances. This function is typically invoked when form directive is being initialized.\n *\n * @param control Form control instance that should be linked.\n * @param dir Directive that should be linked with a given control.\n */\nfunction setUpControl(control, dir, callSetDisabledState = setDisabledStateDefault) {\n  if (typeof ngDevMode === 'undefined' || ngDevMode) {\n    if (!control) _throwError(dir, 'Cannot find control with');\n    if (!dir.valueAccessor) _throwMissingValueAccessorError(dir);\n  }\n  setUpValidators(control, dir);\n  dir.valueAccessor.writeValue(control.value);\n  // The legacy behavior only calls the CVA's `setDisabledState` if the control is disabled.\n  // If the `callSetDisabledState` option is set to `always`, then this bug is fixed and\n  // the method is always called.\n  if (control.disabled || callSetDisabledState === 'always') {\n    dir.valueAccessor.setDisabledState?.(control.disabled);\n  }\n  setUpViewChangePipeline(control, dir);\n  setUpModelChangePipeline(control, dir);\n  setUpBlurPipeline(control, dir);\n  setUpDisabledChangeHandler(control, dir);\n}\n/**\n * Reverts configuration performed by the `setUpControl` control function.\n * Effectively disconnects form control with a given form directive.\n * This function is typically invoked when corresponding form directive is being destroyed.\n *\n * @param control Form control which should be cleaned up.\n * @param dir Directive that should be disconnected from a given control.\n * @param validateControlPresenceOnChange Flag that indicates whether onChange handler should\n *     contain asserts to verify that it's not called once directive is destroyed. We need this flag\n *     to avoid potentially breaking changes caused by better control cleanup introduced in #39235.\n */\nfunction cleanUpControl(control, dir, validateControlPresenceOnChange = true) {\n  const noop = () => {\n    if (validateControlPresenceOnChange && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n      _noControlError(dir);\n    }\n  };\n  // The `valueAccessor` field is typically defined on FromControl and FormControlName directive\n  // instances and there is a logic in `selectValueAccessor` function that throws if it's not the\n  // case. We still check the presence of `valueAccessor` before invoking its methods to make sure\n  // that cleanup works correctly if app code or tests are setup to ignore the error thrown from\n  // `selectValueAccessor`. See https://github.com/angular/angular/issues/40521.\n  if (dir.valueAccessor) {\n    dir.valueAccessor.registerOnChange(noop);\n    dir.valueAccessor.registerOnTouched(noop);\n  }\n  cleanUpValidators(control, dir);\n  if (control) {\n    dir._invokeOnDestroyCallbacks();\n    control._registerOnCollectionChange(() => {});\n  }\n}\nfunction registerOnValidatorChange(validators, onChange) {\n  validators.forEach(validator => {\n    if (validator.registerOnValidatorChange) validator.registerOnValidatorChange(onChange);\n  });\n}\n/**\n * Sets up disabled change handler function on a given form control if ControlValueAccessor\n * associated with a given directive instance supports the `setDisabledState` call.\n *\n * @param control Form control where disabled change handler should be setup.\n * @param dir Corresponding directive instance associated with this control.\n */\nfunction setUpDisabledChangeHandler(control, dir) {\n  if (dir.valueAccessor.setDisabledState) {\n    const onDisabledChange = isDisabled => {\n      dir.valueAccessor.setDisabledState(isDisabled);\n    };\n    control.registerOnDisabledChange(onDisabledChange);\n    // Register a callback function to cleanup disabled change handler\n    // from a control instance when a directive is destroyed.\n    dir._registerOnDestroy(() => {\n      control._unregisterOnDisabledChange(onDisabledChange);\n    });\n  }\n}\n/**\n * Sets up sync and async directive validators on provided form control.\n * This function merges validators from the directive into the validators of the control.\n *\n * @param control Form control where directive validators should be setup.\n * @param dir Directive instance that contains validators to be setup.\n */\nfunction setUpValidators(control, dir) {\n  const validators = getControlValidators(control);\n  if (dir.validator !== null) {\n    control.setValidators(mergeValidators(validators, dir.validator));\n  } else if (typeof validators === 'function') {\n    // If sync validators are represented by a single validator function, we force the\n    // `Validators.compose` call to happen by executing the `setValidators` function with\n    // an array that contains that function. We need this to avoid possible discrepancies in\n    // validators behavior, so sync validators are always processed by the `Validators.compose`.\n    // Note: we should consider moving this logic inside the `setValidators` function itself, so we\n    // have consistent behavior on AbstractControl API level. The same applies to the async\n    // validators logic below.\n    control.setValidators([validators]);\n  }\n  const asyncValidators = getControlAsyncValidators(control);\n  if (dir.asyncValidator !== null) {\n    control.setAsyncValidators(mergeValidators(asyncValidators, dir.asyncValidator));\n  } else if (typeof asyncValidators === 'function') {\n    control.setAsyncValidators([asyncValidators]);\n  }\n  // Re-run validation when validator binding changes, e.g. minlength=3 -> minlength=4\n  const onValidatorChange = () => control.updateValueAndValidity();\n  registerOnValidatorChange(dir._rawValidators, onValidatorChange);\n  registerOnValidatorChange(dir._rawAsyncValidators, onValidatorChange);\n}\n/**\n * Cleans up sync and async directive validators on provided form control.\n * This function reverts the setup performed by the `setUpValidators` function, i.e.\n * removes directive-specific validators from a given control instance.\n *\n * @param control Form control from where directive validators should be removed.\n * @param dir Directive instance that contains validators to be removed.\n * @returns true if a control was updated as a result of this action.\n */\nfunction cleanUpValidators(control, dir) {\n  let isControlUpdated = false;\n  if (control !== null) {\n    if (dir.validator !== null) {\n      const validators = getControlValidators(control);\n      if (Array.isArray(validators) && validators.length > 0) {\n        // Filter out directive validator function.\n        const updatedValidators = validators.filter(validator => validator !== dir.validator);\n        if (updatedValidators.length !== validators.length) {\n          isControlUpdated = true;\n          control.setValidators(updatedValidators);\n        }\n      }\n    }\n    if (dir.asyncValidator !== null) {\n      const asyncValidators = getControlAsyncValidators(control);\n      if (Array.isArray(asyncValidators) && asyncValidators.length > 0) {\n        // Filter out directive async validator function.\n        const updatedAsyncValidators = asyncValidators.filter(asyncValidator => asyncValidator !== dir.asyncValidator);\n        if (updatedAsyncValidators.length !== asyncValidators.length) {\n          isControlUpdated = true;\n          control.setAsyncValidators(updatedAsyncValidators);\n        }\n      }\n    }\n  }\n  // Clear onValidatorChange callbacks by providing a noop function.\n  const noop = () => {};\n  registerOnValidatorChange(dir._rawValidators, noop);\n  registerOnValidatorChange(dir._rawAsyncValidators, noop);\n  return isControlUpdated;\n}\nfunction setUpViewChangePipeline(control, dir) {\n  dir.valueAccessor.registerOnChange(newValue => {\n    control._pendingValue = newValue;\n    control._pendingChange = true;\n    control._pendingDirty = true;\n    if (control.updateOn === 'change') updateControl(control, dir);\n  });\n}\nfunction setUpBlurPipeline(control, dir) {\n  dir.valueAccessor.registerOnTouched(() => {\n    control._pendingTouched = true;\n    if (control.updateOn === 'blur' && control._pendingChange) updateControl(control, dir);\n    if (control.updateOn !== 'submit') control.markAsTouched();\n  });\n}\nfunction updateControl(control, dir) {\n  if (control._pendingDirty) control.markAsDirty();\n  control.setValue(control._pendingValue, {\n    emitModelToViewChange: false\n  });\n  dir.viewToModelUpdate(control._pendingValue);\n  control._pendingChange = false;\n}\nfunction setUpModelChangePipeline(control, dir) {\n  const onChange = (newValue, emitModelEvent) => {\n    // control -> view\n    dir.valueAccessor.writeValue(newValue);\n    // control -> ngModel\n    if (emitModelEvent) dir.viewToModelUpdate(newValue);\n  };\n  control.registerOnChange(onChange);\n  // Register a callback function to cleanup onChange handler\n  // from a control instance when a directive is destroyed.\n  dir._registerOnDestroy(() => {\n    control._unregisterOnChange(onChange);\n  });\n}\n/**\n * Links a FormGroup or FormArray instance and corresponding Form directive by setting up validators\n * present in the view.\n *\n * @param control FormGroup or FormArray instance that should be linked.\n * @param dir Directive that provides view validators.\n */\nfunction setUpFormContainer(control, dir) {\n  if (control == null && (typeof ngDevMode === 'undefined' || ngDevMode)) _throwError(dir, 'Cannot find control with');\n  setUpValidators(control, dir);\n}\n/**\n * Reverts the setup performed by the `setUpFormContainer` function.\n *\n * @param control FormGroup or FormArray instance that should be cleaned up.\n * @param dir Directive that provided view validators.\n * @returns true if a control was updated as a result of this action.\n */\nfunction cleanUpFormContainer(control, dir) {\n  return cleanUpValidators(control, dir);\n}\nfunction _noControlError(dir) {\n  return _throwError(dir, 'There is no FormControl instance attached to form control element with');\n}\nfunction _throwError(dir, message) {\n  const messageEnd = _describeControlLocation(dir);\n  throw new Error(`${message} ${messageEnd}`);\n}\nfunction _describeControlLocation(dir) {\n  const path = dir.path;\n  if (path && path.length > 1) return `path: '${path.join(' -> ')}'`;\n  if (path?.[0]) return `name: '${path}'`;\n  return 'unspecified name attribute';\n}\nfunction _throwMissingValueAccessorError(dir) {\n  const loc = _describeControlLocation(dir);\n  throw new ɵRuntimeError(-1203 /* RuntimeErrorCode.NG_MISSING_VALUE_ACCESSOR */, `No value accessor for form control ${loc}.`);\n}\nfunction _throwInvalidValueAccessorError(dir) {\n  const loc = _describeControlLocation(dir);\n  throw new ɵRuntimeError(1200 /* RuntimeErrorCode.NG_VALUE_ACCESSOR_NOT_PROVIDED */, `Value accessor was not provided as an array for form control with ${loc}. ` + `Check that the \\`NG_VALUE_ACCESSOR\\` token is configured as a \\`multi: true\\` provider.`);\n}\nfunction isPropertyUpdated(changes, viewModel) {\n  if (!changes.hasOwnProperty('model')) return false;\n  const change = changes['model'];\n  if (change.isFirstChange()) return true;\n  return !Object.is(viewModel, change.currentValue);\n}\nfunction isBuiltInAccessor(valueAccessor) {\n  // Check if a given value accessor is an instance of a class that directly extends\n  // `BuiltInControlValueAccessor` one.\n  return Object.getPrototypeOf(valueAccessor.constructor) === BuiltInControlValueAccessor;\n}\nfunction syncPendingControls(form, directives) {\n  form._syncPendingControls();\n  directives.forEach(dir => {\n    const control = dir.control;\n    if (control.updateOn === 'submit' && control._pendingChange) {\n      dir.viewToModelUpdate(control._pendingValue);\n      control._pendingChange = false;\n    }\n  });\n}\n// TODO: vsavkin remove it once https://github.com/angular/angular/issues/3011 is implemented\nfunction selectValueAccessor(dir, valueAccessors) {\n  if (!valueAccessors) return null;\n  if (!Array.isArray(valueAccessors) && (typeof ngDevMode === 'undefined' || ngDevMode)) _throwInvalidValueAccessorError(dir);\n  let defaultAccessor = undefined;\n  let builtinAccessor = undefined;\n  let customAccessor = undefined;\n  valueAccessors.forEach(v => {\n    if (v.constructor === DefaultValueAccessor) {\n      defaultAccessor = v;\n    } else if (isBuiltInAccessor(v)) {\n      if (builtinAccessor && (typeof ngDevMode === 'undefined' || ngDevMode)) _throwError(dir, 'More than one built-in value accessor matches form control with');\n      builtinAccessor = v;\n    } else {\n      if (customAccessor && (typeof ngDevMode === 'undefined' || ngDevMode)) _throwError(dir, 'More than one custom value accessor matches form control with');\n      customAccessor = v;\n    }\n  });\n  if (customAccessor) return customAccessor;\n  if (builtinAccessor) return builtinAccessor;\n  if (defaultAccessor) return defaultAccessor;\n  if (typeof ngDevMode === 'undefined' || ngDevMode) {\n    _throwError(dir, 'No valid value accessor for form control with');\n  }\n  return null;\n}\nfunction removeListItem$1(list, el) {\n  const index = list.indexOf(el);\n  if (index > -1) list.splice(index, 1);\n}\n// TODO(kara): remove after deprecation period\nfunction _ngModelWarning(name, type, instance, warningConfig) {\n  if (warningConfig === 'never') return;\n  if ((warningConfig === null || warningConfig === 'once') && !type._ngModelWarningSentOnce || warningConfig === 'always' && !instance._ngModelWarningSent) {\n    console.warn(ngModelWarning(name));\n    type._ngModelWarningSentOnce = true;\n    instance._ngModelWarningSent = true;\n  }\n}\nconst formDirectiveProvider$1 = {\n  provide: ControlContainer,\n  useExisting: /*#__PURE__*/forwardRef(() => NgForm)\n};\nconst resolvedPromise$1 = /*#__PURE__*/(() => Promise.resolve())();\n/**\n * @description\n * Creates a top-level `FormGroup` instance and binds it to a form\n * to track aggregate form value and validation status.\n *\n * As soon as you import the `FormsModule`, this directive becomes active by default on\n * all `<form>` tags.  You don't need to add a special selector.\n *\n * You optionally export the directive into a local template variable using `ngForm` as the key\n * (ex: `#myForm=\"ngForm\"`). This is optional, but useful.  Many properties from the underlying\n * `FormGroup` instance are duplicated on the directive itself, so a reference to it\n * gives you access to the aggregate value and validity status of the form, as well as\n * user interaction properties like `dirty` and `touched`.\n *\n * To register child controls with the form, use `NgModel` with a `name`\n * attribute. You may use `NgModelGroup` to create sub-groups within the form.\n *\n * If necessary, listen to the directive's `ngSubmit` event to be notified when the user has\n * triggered a form submission. The `ngSubmit` event emits the original form\n * submission event.\n *\n * In template driven forms, all `<form>` tags are automatically tagged as `NgForm`.\n * To import the `FormsModule` but skip its usage in some forms,\n * for example, to use native HTML5 validation, add the `ngNoForm` and the `<form>`\n * tags won't create an `NgForm` directive. In reactive forms, using `ngNoForm` is\n * unnecessary because the `<form>` tags are inert. In that case, you would\n * refrain from using the `formGroup` directive.\n *\n * @usageNotes\n *\n * ### Listening for form submission\n *\n * The following example shows how to capture the form values from the \"ngSubmit\" event.\n *\n * {@example forms/ts/simpleForm/simple_form_example.ts region='Component'}\n *\n * ### Setting the update options\n *\n * The following example shows you how to change the \"updateOn\" option from its default using\n * ngFormOptions.\n *\n * ```html\n * <form [ngFormOptions]=\"{updateOn: 'blur'}\">\n *    <input name=\"one\" ngModel>  <!-- this ngModel will update on blur -->\n * </form>\n * ```\n *\n * ### Native DOM validation UI\n *\n * In order to prevent the native DOM form validation UI from interfering with Angular's form\n * validation, Angular automatically adds the `novalidate` attribute on any `<form>` whenever\n * `FormModule` or `ReactiveFormModule` are imported into the application.\n * If you want to explicitly enable native DOM validation UI with Angular forms, you can add the\n * `ngNativeValidate` attribute to the `<form>` element:\n *\n * ```html\n * <form ngNativeValidate>\n *   ...\n * </form>\n * ```\n *\n * @ngModule FormsModule\n * @publicApi\n */\nlet NgForm = /*#__PURE__*/(() => {\n  class NgForm extends ControlContainer {\n    constructor(validators, asyncValidators, callSetDisabledState) {\n      super();\n      this.callSetDisabledState = callSetDisabledState;\n      /**\n       * @description\n       * Returns whether the form submission has been triggered.\n       */\n      this.submitted = false;\n      this._directives = new Set();\n      /**\n       * @description\n       * Event emitter for the \"ngSubmit\" event\n       */\n      this.ngSubmit = new EventEmitter();\n      this.form = new FormGroup({}, composeValidators(validators), composeAsyncValidators(asyncValidators));\n    }\n    /** @nodoc */\n    ngAfterViewInit() {\n      this._setUpdateStrategy();\n    }\n    /**\n     * @description\n     * The directive instance.\n     */\n    get formDirective() {\n      return this;\n    }\n    /**\n     * @description\n     * The internal `FormGroup` instance.\n     */\n    get control() {\n      return this.form;\n    }\n    /**\n     * @description\n     * Returns an array representing the path to this group. Because this directive\n     * always lives at the top level of a form, it is always an empty array.\n     */\n    get path() {\n      return [];\n    }\n    /**\n     * @description\n     * Returns a map of the controls in this group.\n     */\n    get controls() {\n      return this.form.controls;\n    }\n    /**\n     * @description\n     * Method that sets up the control directive in this group, re-calculates its value\n     * and validity, and adds the instance to the internal list of directives.\n     *\n     * @param dir The `NgModel` directive instance.\n     */\n    addControl(dir) {\n      resolvedPromise$1.then(() => {\n        const container = this._findContainer(dir.path);\n        dir.control = container.registerControl(dir.name, dir.control);\n        setUpControl(dir.control, dir, this.callSetDisabledState);\n        dir.control.updateValueAndValidity({\n          emitEvent: false\n        });\n        this._directives.add(dir);\n      });\n    }\n    /**\n     * @description\n     * Retrieves the `FormControl` instance from the provided `NgModel` directive.\n     *\n     * @param dir The `NgModel` directive instance.\n     */\n    getControl(dir) {\n      return this.form.get(dir.path);\n    }\n    /**\n     * @description\n     * Removes the `NgModel` instance from the internal list of directives\n     *\n     * @param dir The `NgModel` directive instance.\n     */\n    removeControl(dir) {\n      resolvedPromise$1.then(() => {\n        const container = this._findContainer(dir.path);\n        if (container) {\n          container.removeControl(dir.name);\n        }\n        this._directives.delete(dir);\n      });\n    }\n    /**\n     * @description\n     * Adds a new `NgModelGroup` directive instance to the form.\n     *\n     * @param dir The `NgModelGroup` directive instance.\n     */\n    addFormGroup(dir) {\n      resolvedPromise$1.then(() => {\n        const container = this._findContainer(dir.path);\n        const group = new FormGroup({});\n        setUpFormContainer(group, dir);\n        container.registerControl(dir.name, group);\n        group.updateValueAndValidity({\n          emitEvent: false\n        });\n      });\n    }\n    /**\n     * @description\n     * Removes the `NgModelGroup` directive instance from the form.\n     *\n     * @param dir The `NgModelGroup` directive instance.\n     */\n    removeFormGroup(dir) {\n      resolvedPromise$1.then(() => {\n        const container = this._findContainer(dir.path);\n        if (container) {\n          container.removeControl(dir.name);\n        }\n      });\n    }\n    /**\n     * @description\n     * Retrieves the `FormGroup` for a provided `NgModelGroup` directive instance\n     *\n     * @param dir The `NgModelGroup` directive instance.\n     */\n    getFormGroup(dir) {\n      return this.form.get(dir.path);\n    }\n    /**\n     * Sets the new value for the provided `NgControl` directive.\n     *\n     * @param dir The `NgControl` directive instance.\n     * @param value The new value for the directive's control.\n     */\n    updateModel(dir, value) {\n      resolvedPromise$1.then(() => {\n        const ctrl = this.form.get(dir.path);\n        ctrl.setValue(value);\n      });\n    }\n    /**\n     * @description\n     * Sets the value for this `FormGroup`.\n     *\n     * @param value The new value\n     */\n    setValue(value) {\n      this.control.setValue(value);\n    }\n    /**\n     * @description\n     * Method called when the \"submit\" event is triggered on the form.\n     * Triggers the `ngSubmit` emitter to emit the \"submit\" event as its payload.\n     *\n     * @param $event The \"submit\" event object\n     */\n    onSubmit($event) {\n      this.submitted = true;\n      syncPendingControls(this.form, this._directives);\n      this.ngSubmit.emit($event);\n      // Forms with `method=\"dialog\"` have some special behavior\n      // that won't reload the page and that shouldn't be prevented.\n      return $event?.target?.method === 'dialog';\n    }\n    /**\n     * @description\n     * Method called when the \"reset\" event is triggered on the form.\n     */\n    onReset() {\n      this.resetForm();\n    }\n    /**\n     * @description\n     * Resets the form to an initial value and resets its submitted status.\n     *\n     * @param value The new value for the form.\n     */\n    resetForm(value = undefined) {\n      this.form.reset(value);\n      this.submitted = false;\n    }\n    _setUpdateStrategy() {\n      if (this.options && this.options.updateOn != null) {\n        this.form._updateOn = this.options.updateOn;\n      }\n    }\n    _findContainer(path) {\n      path.pop();\n      return path.length ? this.form.get(path) : this.form;\n    }\n    static {\n      this.ɵfac = function NgForm_Factory(t) {\n        return new (t || NgForm)(i0.ɵɵdirectiveInject(NG_VALIDATORS, 10), i0.ɵɵdirectiveInject(NG_ASYNC_VALIDATORS, 10), i0.ɵɵdirectiveInject(CALL_SET_DISABLED_STATE, 8));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: NgForm,\n        selectors: [[\"form\", 3, \"ngNoForm\", \"\", 3, \"formGroup\", \"\"], [\"ng-form\"], [\"\", \"ngForm\", \"\"]],\n        hostBindings: function NgForm_HostBindings(rf, ctx) {\n          if (rf & 1) {\n            i0.ɵɵlistener(\"submit\", function NgForm_submit_HostBindingHandler($event) {\n              return ctx.onSubmit($event);\n            })(\"reset\", function NgForm_reset_HostBindingHandler() {\n              return ctx.onReset();\n            });\n          }\n        },\n        inputs: {\n          options: [i0.ɵɵInputFlags.None, \"ngFormOptions\", \"options\"]\n        },\n        outputs: {\n          ngSubmit: \"ngSubmit\"\n        },\n        exportAs: [\"ngForm\"],\n        features: [i0.ɵɵProvidersFeature([formDirectiveProvider$1]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return NgForm;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction removeListItem(list, el) {\n  const index = list.indexOf(el);\n  if (index > -1) list.splice(index, 1);\n}\nfunction isFormControlState(formState) {\n  return typeof formState === 'object' && formState !== null && Object.keys(formState).length === 2 && 'value' in formState && 'disabled' in formState;\n}\nconst FormControl = class FormControl extends AbstractControl {\n  constructor(\n  // formState and defaultValue will only be null if T is nullable\n  formState = null, validatorOrOpts, asyncValidator) {\n    super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));\n    /** @publicApi */\n    this.defaultValue = null;\n    /** @internal */\n    this._onChange = [];\n    /** @internal */\n    this._pendingChange = false;\n    this._applyFormState(formState);\n    this._setUpdateStrategy(validatorOrOpts);\n    this._initObservables();\n    this.updateValueAndValidity({\n      onlySelf: true,\n      // If `asyncValidator` is present, it will trigger control status change from `PENDING` to\n      // `VALID` or `INVALID`.\n      // The status should be broadcasted via the `statusChanges` observable, so we set\n      // `emitEvent` to `true` to allow that during the control creation process.\n      emitEvent: !!this.asyncValidator\n    });\n    if (isOptionsObj(validatorOrOpts) && (validatorOrOpts.nonNullable || validatorOrOpts.initialValueIsDefault)) {\n      if (isFormControlState(formState)) {\n        this.defaultValue = formState.value;\n      } else {\n        this.defaultValue = formState;\n      }\n    }\n  }\n  setValue(value, options = {}) {\n    this.value = this._pendingValue = value;\n    if (this._onChange.length && options.emitModelToViewChange !== false) {\n      this._onChange.forEach(changeFn => changeFn(this.value, options.emitViewToModelChange !== false));\n    }\n    this.updateValueAndValidity(options);\n  }\n  patchValue(value, options = {}) {\n    this.setValue(value, options);\n  }\n  reset(formState = this.defaultValue, options = {}) {\n    this._applyFormState(formState);\n    this.markAsPristine(options);\n    this.markAsUntouched(options);\n    this.setValue(this.value, options);\n    this._pendingChange = false;\n  }\n  /**  @internal */\n  _updateValue() {}\n  /**  @internal */\n  _anyControls(condition) {\n    return false;\n  }\n  /**  @internal */\n  _allControlsDisabled() {\n    return this.disabled;\n  }\n  registerOnChange(fn) {\n    this._onChange.push(fn);\n  }\n  /** @internal */\n  _unregisterOnChange(fn) {\n    removeListItem(this._onChange, fn);\n  }\n  registerOnDisabledChange(fn) {\n    this._onDisabledChange.push(fn);\n  }\n  /** @internal */\n  _unregisterOnDisabledChange(fn) {\n    removeListItem(this._onDisabledChange, fn);\n  }\n  /** @internal */\n  _forEachChild(cb) {}\n  /** @internal */\n  _syncPendingControls() {\n    if (this.updateOn === 'submit') {\n      if (this._pendingDirty) this.markAsDirty();\n      if (this._pendingTouched) this.markAsTouched();\n      if (this._pendingChange) {\n        this.setValue(this._pendingValue, {\n          onlySelf: true,\n          emitModelToViewChange: false\n        });\n        return true;\n      }\n    }\n    return false;\n  }\n  _applyFormState(formState) {\n    if (isFormControlState(formState)) {\n      this.value = this._pendingValue = formState.value;\n      formState.disabled ? this.disable({\n        onlySelf: true,\n        emitEvent: false\n      }) : this.enable({\n        onlySelf: true,\n        emitEvent: false\n      });\n    } else {\n      this.value = this._pendingValue = formState;\n    }\n  }\n};\nconst UntypedFormControl = FormControl;\n/**\n * @description\n * Asserts that the given control is an instance of `FormControl`\n *\n * @publicApi\n */\nconst isFormControl = control => control instanceof FormControl;\n\n/**\n * @description\n * A base class for code shared between the `NgModelGroup` and `FormGroupName` directives.\n *\n * @publicApi\n */\nlet AbstractFormGroupDirective = /*#__PURE__*/(() => {\n  class AbstractFormGroupDirective extends ControlContainer {\n    /** @nodoc */\n    ngOnInit() {\n      this._checkParentType();\n      // Register the group with its parent group.\n      this.formDirective.addFormGroup(this);\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n      if (this.formDirective) {\n        // Remove the group from its parent group.\n        this.formDirective.removeFormGroup(this);\n      }\n    }\n    /**\n     * @description\n     * The `FormGroup` bound to this directive.\n     */\n    get control() {\n      return this.formDirective.getFormGroup(this);\n    }\n    /**\n     * @description\n     * The path to this group from the top-level directive.\n     */\n    get path() {\n      return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);\n    }\n    /**\n     * @description\n     * The top-level directive for this group if present, otherwise null.\n     */\n    get formDirective() {\n      return this._parent ? this._parent.formDirective : null;\n    }\n    /** @internal */\n    _checkParentType() {}\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵAbstractFormGroupDirective_BaseFactory;\n        return function AbstractFormGroupDirective_Factory(t) {\n          return (ɵAbstractFormGroupDirective_BaseFactory || (ɵAbstractFormGroupDirective_BaseFactory = i0.ɵɵgetInheritedFactory(AbstractFormGroupDirective)))(t || AbstractFormGroupDirective);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: AbstractFormGroupDirective,\n        features: [i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return AbstractFormGroupDirective;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction modelParentException() {\n  return new ɵRuntimeError(1350 /* RuntimeErrorCode.NGMODEL_IN_FORM_GROUP */, `\n    ngModel cannot be used to register form controls with a parent formGroup directive.  Try using\n    formGroup's partner directive \"formControlName\" instead.  Example:\n\n    ${formControlNameExample}\n\n    Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n    Example:\n\n    ${ngModelWithFormGroupExample}`);\n}\nfunction formGroupNameException() {\n  return new ɵRuntimeError(1351 /* RuntimeErrorCode.NGMODEL_IN_FORM_GROUP_NAME */, `\n    ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n    Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n    ${formGroupNameExample}\n\n    Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n    ${ngModelGroupExample}`);\n}\nfunction missingNameException() {\n  return new ɵRuntimeError(1352 /* RuntimeErrorCode.NGMODEL_WITHOUT_NAME */, `If ngModel is used within a form tag, either the name attribute must be set or the form\n    control must be defined as 'standalone' in ngModelOptions.\n\n    Example 1: <input [(ngModel)]=\"person.firstName\" name=\"first\">\n    Example 2: <input [(ngModel)]=\"person.firstName\" [ngModelOptions]=\"{standalone: true}\">`);\n}\nfunction modelGroupParentException() {\n  return new ɵRuntimeError(1353 /* RuntimeErrorCode.NGMODELGROUP_IN_FORM_GROUP */, `\n    ngModelGroup cannot be used with a parent formGroup directive.\n\n    Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n    ${formGroupNameExample}\n\n    Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n    ${ngModelGroupExample}`);\n}\nconst modelGroupProvider = {\n  provide: ControlContainer,\n  useExisting: /*#__PURE__*/forwardRef(() => NgModelGroup)\n};\n/**\n * @description\n * Creates and binds a `FormGroup` instance to a DOM element.\n *\n * This directive can only be used as a child of `NgForm` (within `<form>` tags).\n *\n * Use this directive to validate a sub-group of your form separately from the\n * rest of your form, or if some values in your domain model make more sense\n * to consume together in a nested object.\n *\n * Provide a name for the sub-group and it will become the key\n * for the sub-group in the form's full value. If you need direct access, export the directive into\n * a local template variable using `ngModelGroup` (ex: `#myGroup=\"ngModelGroup\"`).\n *\n * @usageNotes\n *\n * ### Consuming controls in a grouping\n *\n * The following example shows you how to combine controls together in a sub-group\n * of the form.\n *\n * {@example forms/ts/ngModelGroup/ng_model_group_example.ts region='Component'}\n *\n * @ngModule FormsModule\n * @publicApi\n */\nlet NgModelGroup = /*#__PURE__*/(() => {\n  class NgModelGroup extends AbstractFormGroupDirective {\n    constructor(parent, validators, asyncValidators) {\n      super();\n      /**\n       * @description\n       * Tracks the name of the `NgModelGroup` bound to the directive. The name corresponds\n       * to a key in the parent `NgForm`.\n       */\n      this.name = '';\n      this._parent = parent;\n      this._setValidators(validators);\n      this._setAsyncValidators(asyncValidators);\n    }\n    /** @internal */\n    _checkParentType() {\n      if (!(this._parent instanceof NgModelGroup) && !(this._parent instanceof NgForm) && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n        throw modelGroupParentException();\n      }\n    }\n    static {\n      this.ɵfac = function NgModelGroup_Factory(t) {\n        return new (t || NgModelGroup)(i0.ɵɵdirectiveInject(ControlContainer, 5), i0.ɵɵdirectiveInject(NG_VALIDATORS, 10), i0.ɵɵdirectiveInject(NG_ASYNC_VALIDATORS, 10));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: NgModelGroup,\n        selectors: [[\"\", \"ngModelGroup\", \"\"]],\n        inputs: {\n          name: [i0.ɵɵInputFlags.None, \"ngModelGroup\", \"name\"]\n        },\n        exportAs: [\"ngModelGroup\"],\n        features: [i0.ɵɵProvidersFeature([modelGroupProvider]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return NgModelGroup;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst formControlBinding$1 = {\n  provide: NgControl,\n  useExisting: /*#__PURE__*/forwardRef(() => NgModel)\n};\n/**\n * `ngModel` forces an additional change detection run when its inputs change:\n * E.g.:\n * ```\n * <div>{{myModel.valid}}</div>\n * <input [(ngModel)]=\"myValue\" #myModel=\"ngModel\">\n * ```\n * I.e. `ngModel` can export itself on the element and then be used in the template.\n * Normally, this would result in expressions before the `input` that use the exported directive\n * to have an old value as they have been\n * dirty checked before. As this is a very common case for `ngModel`, we added this second change\n * detection run.\n *\n * Notes:\n * - this is just one extra run no matter how many `ngModel`s have been changed.\n * - this is a general problem when using `exportAs` for directives!\n */\nconst resolvedPromise = /*#__PURE__*/(() => Promise.resolve())();\n/**\n * @description\n * Creates a `FormControl` instance from a [domain\n * model](https://en.wikipedia.org/wiki/Domain_model) and binds it to a form control element.\n *\n * The `FormControl` instance tracks the value, user interaction, and\n * validation status of the control and keeps the view synced with the model. If used\n * within a parent form, the directive also registers itself with the form as a child\n * control.\n *\n * This directive is used by itself or as part of a larger form. Use the\n * `ngModel` selector to activate it.\n *\n * It accepts a domain model as an optional `Input`. If you have a one-way binding\n * to `ngModel` with `[]` syntax, changing the domain model's value in the component\n * class sets the value in the view. If you have a two-way binding with `[()]` syntax\n * (also known as 'banana-in-a-box syntax'), the value in the UI always syncs back to\n * the domain model in your class.\n *\n * To inspect the properties of the associated `FormControl` (like the validity state),\n * export the directive into a local template variable using `ngModel` as the key (ex:\n * `#myVar=\"ngModel\"`). You can then access the control using the directive's `control` property.\n * However, the most commonly used properties (like `valid` and `dirty`) also exist on the control\n * for direct access. See a full list of properties directly available in\n * `AbstractControlDirective`.\n *\n * @see {@link RadioControlValueAccessor}\n * @see {@link SelectControlValueAccessor}\n *\n * @usageNotes\n *\n * ### Using ngModel on a standalone control\n *\n * The following examples show a simple standalone control using `ngModel`:\n *\n * {@example forms/ts/simpleNgModel/simple_ng_model_example.ts region='Component'}\n *\n * When using the `ngModel` within `<form>` tags, you'll also need to supply a `name` attribute\n * so that the control can be registered with the parent form under that name.\n *\n * In the context of a parent form, it's often unnecessary to include one-way or two-way binding,\n * as the parent form syncs the value for you. You access its properties by exporting it into a\n * local template variable using `ngForm` such as (`#f=\"ngForm\"`). Use the variable where\n * needed on form submission.\n *\n * If you do need to populate initial values into your form, using a one-way binding for\n * `ngModel` tends to be sufficient as long as you use the exported form's value rather\n * than the domain model's value on submit.\n *\n * ### Using ngModel within a form\n *\n * The following example shows controls using `ngModel` within a form:\n *\n * {@example forms/ts/simpleForm/simple_form_example.ts region='Component'}\n *\n * ### Using a standalone ngModel within a group\n *\n * The following example shows you how to use a standalone ngModel control\n * within a form. This controls the display of the form, but doesn't contain form data.\n *\n * ```html\n * <form>\n *   <input name=\"login\" ngModel placeholder=\"Login\">\n *   <input type=\"checkbox\" ngModel [ngModelOptions]=\"{standalone: true}\"> Show more options?\n * </form>\n * <!-- form value: {login: ''} -->\n * ```\n *\n * ### Setting the ngModel `name` attribute through options\n *\n * The following example shows you an alternate way to set the name attribute. Here,\n * an attribute identified as name is used within a custom form control component. To still be able\n * to specify the NgModel's name, you must specify it using the `ngModelOptions` input instead.\n *\n * ```html\n * <form>\n *   <my-custom-form-control name=\"Nancy\" ngModel [ngModelOptions]=\"{name: 'user'}\">\n *   </my-custom-form-control>\n * </form>\n * <!-- form value: {user: ''} -->\n * ```\n *\n * @ngModule FormsModule\n * @publicApi\n */\nlet NgModel = /*#__PURE__*/(() => {\n  class NgModel extends NgControl {\n    constructor(parent, validators, asyncValidators, valueAccessors, _changeDetectorRef, callSetDisabledState) {\n      super();\n      this._changeDetectorRef = _changeDetectorRef;\n      this.callSetDisabledState = callSetDisabledState;\n      this.control = new FormControl();\n      /** @internal */\n      this._registered = false;\n      /**\n       * @description\n       * Tracks the name bound to the directive. If a parent form exists, it\n       * uses this name as a key to retrieve this control's value.\n       */\n      this.name = '';\n      /**\n       * @description\n       * Event emitter for producing the `ngModelChange` event after\n       * the view model updates.\n       */\n      this.update = new EventEmitter();\n      this._parent = parent;\n      this._setValidators(validators);\n      this._setAsyncValidators(asyncValidators);\n      this.valueAccessor = selectValueAccessor(this, valueAccessors);\n    }\n    /** @nodoc */\n    ngOnChanges(changes) {\n      this._checkForErrors();\n      if (!this._registered || 'name' in changes) {\n        if (this._registered) {\n          this._checkName();\n          if (this.formDirective) {\n            // We can't call `formDirective.removeControl(this)`, because the `name` has already been\n            // changed. We also can't reset the name temporarily since the logic in `removeControl`\n            // is inside a promise and it won't run immediately. We work around it by giving it an\n            // object with the same shape instead.\n            const oldName = changes['name'].previousValue;\n            this.formDirective.removeControl({\n              name: oldName,\n              path: this._getPath(oldName)\n            });\n          }\n        }\n        this._setUpControl();\n      }\n      if ('isDisabled' in changes) {\n        this._updateDisabled(changes);\n      }\n      if (isPropertyUpdated(changes, this.viewModel)) {\n        this._updateValue(this.model);\n        this.viewModel = this.model;\n      }\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n      this.formDirective && this.formDirective.removeControl(this);\n    }\n    /**\n     * @description\n     * Returns an array that represents the path from the top-level form to this control.\n     * Each index is the string name of the control on that level.\n     */\n    get path() {\n      return this._getPath(this.name);\n    }\n    /**\n     * @description\n     * The top-level directive for this control if present, otherwise null.\n     */\n    get formDirective() {\n      return this._parent ? this._parent.formDirective : null;\n    }\n    /**\n     * @description\n     * Sets the new value for the view model and emits an `ngModelChange` event.\n     *\n     * @param newValue The new value emitted by `ngModelChange`.\n     */\n    viewToModelUpdate(newValue) {\n      this.viewModel = newValue;\n      this.update.emit(newValue);\n    }\n    _setUpControl() {\n      this._setUpdateStrategy();\n      this._isStandalone() ? this._setUpStandalone() : this.formDirective.addControl(this);\n      this._registered = true;\n    }\n    _setUpdateStrategy() {\n      if (this.options && this.options.updateOn != null) {\n        this.control._updateOn = this.options.updateOn;\n      }\n    }\n    _isStandalone() {\n      return !this._parent || !!(this.options && this.options.standalone);\n    }\n    _setUpStandalone() {\n      setUpControl(this.control, this, this.callSetDisabledState);\n      this.control.updateValueAndValidity({\n        emitEvent: false\n      });\n    }\n    _checkForErrors() {\n      if (!this._isStandalone()) {\n        this._checkParentType();\n      }\n      this._checkName();\n    }\n    _checkParentType() {\n      if (typeof ngDevMode === 'undefined' || ngDevMode) {\n        if (!(this._parent instanceof NgModelGroup) && this._parent instanceof AbstractFormGroupDirective) {\n          throw formGroupNameException();\n        } else if (!(this._parent instanceof NgModelGroup) && !(this._parent instanceof NgForm)) {\n          throw modelParentException();\n        }\n      }\n    }\n    _checkName() {\n      if (this.options && this.options.name) this.name = this.options.name;\n      if (!this._isStandalone() && !this.name && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n        throw missingNameException();\n      }\n    }\n    _updateValue(value) {\n      resolvedPromise.then(() => {\n        this.control.setValue(value, {\n          emitViewToModelChange: false\n        });\n        this._changeDetectorRef?.markForCheck();\n      });\n    }\n    _updateDisabled(changes) {\n      const disabledValue = changes['isDisabled'].currentValue;\n      // checking for 0 to avoid breaking change\n      const isDisabled = disabledValue !== 0 && booleanAttribute(disabledValue);\n      resolvedPromise.then(() => {\n        if (isDisabled && !this.control.disabled) {\n          this.control.disable();\n        } else if (!isDisabled && this.control.disabled) {\n          this.control.enable();\n        }\n        this._changeDetectorRef?.markForCheck();\n      });\n    }\n    _getPath(controlName) {\n      return this._parent ? controlPath(controlName, this._parent) : [controlName];\n    }\n    static {\n      this.ɵfac = function NgModel_Factory(t) {\n        return new (t || NgModel)(i0.ɵɵdirectiveInject(ControlContainer, 9), i0.ɵɵdirectiveInject(NG_VALIDATORS, 10), i0.ɵɵdirectiveInject(NG_ASYNC_VALIDATORS, 10), i0.ɵɵdirectiveInject(NG_VALUE_ACCESSOR, 10), i0.ɵɵdirectiveInject(ChangeDetectorRef, 8), i0.ɵɵdirectiveInject(CALL_SET_DISABLED_STATE, 8));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: NgModel,\n        selectors: [[\"\", \"ngModel\", \"\", 3, \"formControlName\", \"\", 3, \"formControl\", \"\"]],\n        inputs: {\n          name: \"name\",\n          isDisabled: [i0.ɵɵInputFlags.None, \"disabled\", \"isDisabled\"],\n          model: [i0.ɵɵInputFlags.None, \"ngModel\", \"model\"],\n          options: [i0.ɵɵInputFlags.None, \"ngModelOptions\", \"options\"]\n        },\n        outputs: {\n          update: \"ngModelChange\"\n        },\n        exportAs: [\"ngModel\"],\n        features: [i0.ɵɵProvidersFeature([formControlBinding$1]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature]\n      });\n    }\n  }\n  return NgModel;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * @description\n *\n * Adds `novalidate` attribute to all forms by default.\n *\n * `novalidate` is used to disable browser's native form validation.\n *\n * If you want to use native validation with Angular forms, just add `ngNativeValidate` attribute:\n *\n * ```\n * <form ngNativeValidate></form>\n * ```\n *\n * @publicApi\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n */\nlet ɵNgNoValidate = /*#__PURE__*/(() => {\n  class ɵNgNoValidate {\n    static {\n      this.ɵfac = function ɵNgNoValidate_Factory(t) {\n        return new (t || ɵNgNoValidate)();\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: ɵNgNoValidate,\n        selectors: [[\"form\", 3, \"ngNoForm\", \"\", 3, \"ngNativeValidate\", \"\"]],\n        hostAttrs: [\"novalidate\", \"\"]\n      });\n    }\n  }\n  return ɵNgNoValidate;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst NUMBER_VALUE_ACCESSOR = {\n  provide: NG_VALUE_ACCESSOR,\n  useExisting: /*#__PURE__*/forwardRef(() => NumberValueAccessor),\n  multi: true\n};\n/**\n * @description\n * The `ControlValueAccessor` for writing a number value and listening to number input changes.\n * The value accessor is used by the `FormControlDirective`, `FormControlName`, and `NgModel`\n * directives.\n *\n * @usageNotes\n *\n * ### Using a number input with a reactive form.\n *\n * The following example shows how to use a number input with a reactive form.\n *\n * ```ts\n * const totalCountControl = new FormControl();\n * ```\n *\n * ```\n * <input type=\"number\" [formControl]=\"totalCountControl\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet NumberValueAccessor = /*#__PURE__*/(() => {\n  class NumberValueAccessor extends BuiltInControlValueAccessor {\n    /**\n     * Sets the \"value\" property on the input element.\n     * @nodoc\n     */\n    writeValue(value) {\n      // The value needs to be normalized for IE9, otherwise it is set to 'null' when null\n      const normalizedValue = value == null ? '' : value;\n      this.setProperty('value', normalizedValue);\n    }\n    /**\n     * Registers a function called when the control value changes.\n     * @nodoc\n     */\n    registerOnChange(fn) {\n      this.onChange = value => {\n        fn(value == '' ? null : parseFloat(value));\n      };\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵNumberValueAccessor_BaseFactory;\n        return function NumberValueAccessor_Factory(t) {\n          return (ɵNumberValueAccessor_BaseFactory || (ɵNumberValueAccessor_BaseFactory = i0.ɵɵgetInheritedFactory(NumberValueAccessor)))(t || NumberValueAccessor);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: NumberValueAccessor,\n        selectors: [[\"input\", \"type\", \"number\", \"formControlName\", \"\"], [\"input\", \"type\", \"number\", \"formControl\", \"\"], [\"input\", \"type\", \"number\", \"ngModel\", \"\"]],\n        hostBindings: function NumberValueAccessor_HostBindings(rf, ctx) {\n          if (rf & 1) {\n            i0.ɵɵlistener(\"input\", function NumberValueAccessor_input_HostBindingHandler($event) {\n              return ctx.onChange($event.target.value);\n            })(\"blur\", function NumberValueAccessor_blur_HostBindingHandler() {\n              return ctx.onTouched();\n            });\n          }\n        },\n        features: [i0.ɵɵProvidersFeature([NUMBER_VALUE_ACCESSOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return NumberValueAccessor;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst RADIO_VALUE_ACCESSOR = {\n  provide: NG_VALUE_ACCESSOR,\n  useExisting: /*#__PURE__*/forwardRef(() => RadioControlValueAccessor),\n  multi: true\n};\nfunction throwNameError() {\n  throw new ɵRuntimeError(1202 /* RuntimeErrorCode.NAME_AND_FORM_CONTROL_NAME_MUST_MATCH */, `\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: <input type=\"radio\" formControlName=\"food\" name=\"food\">\n    `);\n}\n/**\n * @description\n * Class used by Angular to track radio buttons. For internal use only.\n */\nlet RadioControlRegistry = /*#__PURE__*/(() => {\n  class RadioControlRegistry {\n    constructor() {\n      this._accessors = [];\n    }\n    /**\n     * @description\n     * Adds a control to the internal registry. For internal use only.\n     */\n    add(control, accessor) {\n      this._accessors.push([control, accessor]);\n    }\n    /**\n     * @description\n     * Removes a control from the internal registry. For internal use only.\n     */\n    remove(accessor) {\n      for (let i = this._accessors.length - 1; i >= 0; --i) {\n        if (this._accessors[i][1] === accessor) {\n          this._accessors.splice(i, 1);\n          return;\n        }\n      }\n    }\n    /**\n     * @description\n     * Selects a radio button. For internal use only.\n     */\n    select(accessor) {\n      this._accessors.forEach(c => {\n        if (this._isSameGroup(c, accessor) && c[1] !== accessor) {\n          c[1].fireUncheck(accessor.value);\n        }\n      });\n    }\n    _isSameGroup(controlPair, accessor) {\n      if (!controlPair[0].control) return false;\n      return controlPair[0]._parent === accessor._control._parent && controlPair[1].name === accessor.name;\n    }\n    static {\n      this.ɵfac = function RadioControlRegistry_Factory(t) {\n        return new (t || RadioControlRegistry)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: RadioControlRegistry,\n        factory: RadioControlRegistry.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return RadioControlRegistry;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n * The `ControlValueAccessor` for writing radio control values and listening to radio control\n * changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and\n * `NgModel` directives.\n *\n * @usageNotes\n *\n * ### Using radio buttons with reactive form directives\n *\n * The follow example shows how to use radio buttons in a reactive form. When using radio buttons in\n * a reactive form, radio buttons in the same group should have the same `formControlName`.\n * Providing a `name` attribute is optional.\n *\n * {@example forms/ts/reactiveRadioButtons/reactive_radio_button_example.ts region='Reactive'}\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet RadioControlValueAccessor = /*#__PURE__*/(() => {\n  class RadioControlValueAccessor extends BuiltInControlValueAccessor {\n    constructor(renderer, elementRef, _registry, _injector) {\n      super(renderer, elementRef);\n      this._registry = _registry;\n      this._injector = _injector;\n      this.setDisabledStateFired = false;\n      /**\n       * The registered callback function called when a change event occurs on the input element.\n       * Note: we declare `onChange` here (also used as host listener) as a function with no arguments\n       * to override the `onChange` function (which expects 1 argument) in the parent\n       * `BaseControlValueAccessor` class.\n       * @nodoc\n       */\n      this.onChange = () => {};\n      this.callSetDisabledState = inject(CALL_SET_DISABLED_STATE, {\n        optional: true\n      }) ?? setDisabledStateDefault;\n    }\n    /** @nodoc */\n    ngOnInit() {\n      this._control = this._injector.get(NgControl);\n      this._checkName();\n      this._registry.add(this._control, this);\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n      this._registry.remove(this);\n    }\n    /**\n     * Sets the \"checked\" property value on the radio input element.\n     * @nodoc\n     */\n    writeValue(value) {\n      this._state = value === this.value;\n      this.setProperty('checked', this._state);\n    }\n    /**\n     * Registers a function called when the control value changes.\n     * @nodoc\n     */\n    registerOnChange(fn) {\n      this._fn = fn;\n      this.onChange = () => {\n        fn(this.value);\n        this._registry.select(this);\n      };\n    }\n    /** @nodoc */\n    setDisabledState(isDisabled) {\n      /**\n       * `setDisabledState` is supposed to be called whenever the disabled state of a control changes,\n       * including upon control creation. However, a longstanding bug caused the method to not fire\n       * when an *enabled* control was attached. This bug was fixed in v15 in #47576.\n       *\n       * This had a side effect: previously, it was possible to instantiate a reactive form control\n       * with `[attr.disabled]=true`, even though the corresponding control was enabled in the\n       * model. This resulted in a mismatch between the model and the DOM. Now, because\n       * `setDisabledState` is always called, the value in the DOM will be immediately overwritten\n       * with the \"correct\" enabled value.\n       *\n       * However, the fix also created an exceptional case: radio buttons. Because Reactive Forms\n       * models the entire group of radio buttons as a single `FormControl`, there is no way to\n       * control the disabled state for individual radios, so they can no longer be configured as\n       * disabled. Thus, we keep the old behavior for radio buttons, so that `[attr.disabled]`\n       * continues to work. Specifically, we drop the first call to `setDisabledState` if `disabled`\n       * is `false`, and we are not in legacy mode.\n       */\n      if (this.setDisabledStateFired || isDisabled || this.callSetDisabledState === 'whenDisabledForLegacyCode') {\n        this.setProperty('disabled', isDisabled);\n      }\n      this.setDisabledStateFired = true;\n    }\n    /**\n     * Sets the \"value\" on the radio input element and unchecks it.\n     *\n     * @param value\n     */\n    fireUncheck(value) {\n      this.writeValue(value);\n    }\n    _checkName() {\n      if (this.name && this.formControlName && this.name !== this.formControlName && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n        throwNameError();\n      }\n      if (!this.name && this.formControlName) this.name = this.formControlName;\n    }\n    static {\n      this.ɵfac = function RadioControlValueAccessor_Factory(t) {\n        return new (t || RadioControlValueAccessor)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(RadioControlRegistry), i0.ɵɵdirectiveInject(i0.Injector));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: RadioControlValueAccessor,\n        selectors: [[\"input\", \"type\", \"radio\", \"formControlName\", \"\"], [\"input\", \"type\", \"radio\", \"formControl\", \"\"], [\"input\", \"type\", \"radio\", \"ngModel\", \"\"]],\n        hostBindings: function RadioControlValueAccessor_HostBindings(rf, ctx) {\n          if (rf & 1) {\n            i0.ɵɵlistener(\"change\", function RadioControlValueAccessor_change_HostBindingHandler() {\n              return ctx.onChange();\n            })(\"blur\", function RadioControlValueAccessor_blur_HostBindingHandler() {\n              return ctx.onTouched();\n            });\n          }\n        },\n        inputs: {\n          name: \"name\",\n          formControlName: \"formControlName\",\n          value: \"value\"\n        },\n        features: [i0.ɵɵProvidersFeature([RADIO_VALUE_ACCESSOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return RadioControlValueAccessor;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst RANGE_VALUE_ACCESSOR = {\n  provide: NG_VALUE_ACCESSOR,\n  useExisting: /*#__PURE__*/forwardRef(() => RangeValueAccessor),\n  multi: true\n};\n/**\n * @description\n * The `ControlValueAccessor` for writing a range value and listening to range input changes.\n * The value accessor is used by the `FormControlDirective`, `FormControlName`, and  `NgModel`\n * directives.\n *\n * @usageNotes\n *\n * ### Using a range input with a reactive form\n *\n * The following example shows how to use a range input with a reactive form.\n *\n * ```ts\n * const ageControl = new FormControl();\n * ```\n *\n * ```\n * <input type=\"range\" [formControl]=\"ageControl\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet RangeValueAccessor = /*#__PURE__*/(() => {\n  class RangeValueAccessor extends BuiltInControlValueAccessor {\n    /**\n     * Sets the \"value\" property on the input element.\n     * @nodoc\n     */\n    writeValue(value) {\n      this.setProperty('value', parseFloat(value));\n    }\n    /**\n     * Registers a function called when the control value changes.\n     * @nodoc\n     */\n    registerOnChange(fn) {\n      this.onChange = value => {\n        fn(value == '' ? null : parseFloat(value));\n      };\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵRangeValueAccessor_BaseFactory;\n        return function RangeValueAccessor_Factory(t) {\n          return (ɵRangeValueAccessor_BaseFactory || (ɵRangeValueAccessor_BaseFactory = i0.ɵɵgetInheritedFactory(RangeValueAccessor)))(t || RangeValueAccessor);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: RangeValueAccessor,\n        selectors: [[\"input\", \"type\", \"range\", \"formControlName\", \"\"], [\"input\", \"type\", \"range\", \"formControl\", \"\"], [\"input\", \"type\", \"range\", \"ngModel\", \"\"]],\n        hostBindings: function RangeValueAccessor_HostBindings(rf, ctx) {\n          if (rf & 1) {\n            i0.ɵɵlistener(\"change\", function RangeValueAccessor_change_HostBindingHandler($event) {\n              return ctx.onChange($event.target.value);\n            })(\"input\", function RangeValueAccessor_input_HostBindingHandler($event) {\n              return ctx.onChange($event.target.value);\n            })(\"blur\", function RangeValueAccessor_blur_HostBindingHandler() {\n              return ctx.onTouched();\n            });\n          }\n        },\n        features: [i0.ɵɵProvidersFeature([RANGE_VALUE_ACCESSOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return RangeValueAccessor;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Token to provide to turn off the ngModel warning on formControl and formControlName.\n */\nconst NG_MODEL_WITH_FORM_CONTROL_WARNING = /*#__PURE__*/new InjectionToken(ngDevMode ? 'NgModelWithFormControlWarning' : '');\nconst formControlBinding = {\n  provide: NgControl,\n  useExisting: /*#__PURE__*/forwardRef(() => FormControlDirective)\n};\n/**\n * @description\n * Synchronizes a standalone `FormControl` instance to a form control element.\n *\n * Note that support for using the `ngModel` input property and `ngModelChange` event with reactive\n * form directives was deprecated in Angular v6 and is scheduled for removal in\n * a future version of Angular.\n * For details, see [Deprecated features](guide/deprecations#ngmodel-with-reactive-forms).\n *\n * @see [Reactive Forms Guide](guide/reactive-forms)\n * @see {@link FormControl}\n * @see {@link AbstractControl}\n *\n * @usageNotes\n *\n * The following example shows how to register a standalone control and set its value.\n *\n * {@example forms/ts/simpleFormControl/simple_form_control_example.ts region='Component'}\n *\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nlet FormControlDirective = /*#__PURE__*/(() => {\n  class FormControlDirective extends NgControl {\n    /**\n     * @description\n     * Triggers a warning in dev mode that this input should not be used with reactive forms.\n     */\n    set isDisabled(isDisabled) {\n      if (typeof ngDevMode === 'undefined' || ngDevMode) {\n        console.warn(disabledAttrWarning);\n      }\n    }\n    /**\n     * @description\n     * Static property used to track whether any ngModel warnings have been sent across\n     * all instances of FormControlDirective. Used to support warning config of \"once\".\n     *\n     * @internal\n     */\n    static {\n      this._ngModelWarningSentOnce = false;\n    }\n    constructor(validators, asyncValidators, valueAccessors, _ngModelWarningConfig, callSetDisabledState) {\n      super();\n      this._ngModelWarningConfig = _ngModelWarningConfig;\n      this.callSetDisabledState = callSetDisabledState;\n      /** @deprecated as of v6 */\n      this.update = new EventEmitter();\n      /**\n       * @description\n       * Instance property used to track whether an ngModel warning has been sent out for this\n       * particular `FormControlDirective` instance. Used to support warning config of \"always\".\n       *\n       * @internal\n       */\n      this._ngModelWarningSent = false;\n      this._setValidators(validators);\n      this._setAsyncValidators(asyncValidators);\n      this.valueAccessor = selectValueAccessor(this, valueAccessors);\n    }\n    /** @nodoc */\n    ngOnChanges(changes) {\n      if (this._isControlChanged(changes)) {\n        const previousForm = changes['form'].previousValue;\n        if (previousForm) {\n          cleanUpControl(previousForm, this, /* validateControlPresenceOnChange */false);\n        }\n        setUpControl(this.form, this, this.callSetDisabledState);\n        this.form.updateValueAndValidity({\n          emitEvent: false\n        });\n      }\n      if (isPropertyUpdated(changes, this.viewModel)) {\n        if (typeof ngDevMode === 'undefined' || ngDevMode) {\n          _ngModelWarning('formControl', FormControlDirective, this, this._ngModelWarningConfig);\n        }\n        this.form.setValue(this.model);\n        this.viewModel = this.model;\n      }\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n      if (this.form) {\n        cleanUpControl(this.form, this, /* validateControlPresenceOnChange */false);\n      }\n    }\n    /**\n     * @description\n     * Returns an array that represents the path from the top-level form to this control.\n     * Each index is the string name of the control on that level.\n     */\n    get path() {\n      return [];\n    }\n    /**\n     * @description\n     * The `FormControl` bound to this directive.\n     */\n    get control() {\n      return this.form;\n    }\n    /**\n     * @description\n     * Sets the new value for the view model and emits an `ngModelChange` event.\n     *\n     * @param newValue The new value for the view model.\n     */\n    viewToModelUpdate(newValue) {\n      this.viewModel = newValue;\n      this.update.emit(newValue);\n    }\n    _isControlChanged(changes) {\n      return changes.hasOwnProperty('form');\n    }\n    static {\n      this.ɵfac = function FormControlDirective_Factory(t) {\n        return new (t || FormControlDirective)(i0.ɵɵdirectiveInject(NG_VALIDATORS, 10), i0.ɵɵdirectiveInject(NG_ASYNC_VALIDATORS, 10), i0.ɵɵdirectiveInject(NG_VALUE_ACCESSOR, 10), i0.ɵɵdirectiveInject(NG_MODEL_WITH_FORM_CONTROL_WARNING, 8), i0.ɵɵdirectiveInject(CALL_SET_DISABLED_STATE, 8));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: FormControlDirective,\n        selectors: [[\"\", \"formControl\", \"\"]],\n        inputs: {\n          form: [i0.ɵɵInputFlags.None, \"formControl\", \"form\"],\n          isDisabled: [i0.ɵɵInputFlags.None, \"disabled\", \"isDisabled\"],\n          model: [i0.ɵɵInputFlags.None, \"ngModel\", \"model\"]\n        },\n        outputs: {\n          update: \"ngModelChange\"\n        },\n        exportAs: [\"ngForm\"],\n        features: [i0.ɵɵProvidersFeature([formControlBinding]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature]\n      });\n    }\n  }\n  return FormControlDirective;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst formDirectiveProvider = {\n  provide: ControlContainer,\n  useExisting: /*#__PURE__*/forwardRef(() => FormGroupDirective)\n};\n/**\n * @description\n *\n * Binds an existing `FormGroup` or `FormRecord` to a DOM element.\n *\n * This directive accepts an existing `FormGroup` instance. It will then use this\n * `FormGroup` instance to match any child `FormControl`, `FormGroup`/`FormRecord`,\n * and `FormArray` instances to child `FormControlName`, `FormGroupName`,\n * and `FormArrayName` directives.\n *\n * @see [Reactive Forms Guide](guide/reactive-forms)\n * @see {@link AbstractControl}\n *\n * @usageNotes\n * ### Register Form Group\n *\n * The following example registers a `FormGroup` with first name and last name controls,\n * and listens for the *ngSubmit* event when the button is clicked.\n *\n * {@example forms/ts/simpleFormGroup/simple_form_group_example.ts region='Component'}\n *\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nlet FormGroupDirective = /*#__PURE__*/(() => {\n  class FormGroupDirective extends ControlContainer {\n    constructor(validators, asyncValidators, callSetDisabledState) {\n      super();\n      this.callSetDisabledState = callSetDisabledState;\n      /**\n       * @description\n       * Reports whether the form submission has been triggered.\n       */\n      this.submitted = false;\n      /**\n       * Callback that should be invoked when controls in FormGroup or FormArray collection change\n       * (added or removed). This callback triggers corresponding DOM updates.\n       */\n      this._onCollectionChange = () => this._updateDomValue();\n      /**\n       * @description\n       * Tracks the list of added `FormControlName` instances\n       */\n      this.directives = [];\n      /**\n       * @description\n       * Tracks the `FormGroup` bound to this directive.\n       */\n      this.form = null;\n      /**\n       * @description\n       * Emits an event when the form submission has been triggered.\n       */\n      this.ngSubmit = new EventEmitter();\n      this._setValidators(validators);\n      this._setAsyncValidators(asyncValidators);\n    }\n    /** @nodoc */\n    ngOnChanges(changes) {\n      this._checkFormPresent();\n      if (changes.hasOwnProperty('form')) {\n        this._updateValidators();\n        this._updateDomValue();\n        this._updateRegistrations();\n        this._oldForm = this.form;\n      }\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n      if (this.form) {\n        cleanUpValidators(this.form, this);\n        // Currently the `onCollectionChange` callback is rewritten each time the\n        // `_registerOnCollectionChange` function is invoked. The implication is that cleanup should\n        // happen *only* when the `onCollectionChange` callback was set by this directive instance.\n        // Otherwise it might cause overriding a callback of some other directive instances. We should\n        // consider updating this logic later to make it similar to how `onChange` callbacks are\n        // handled, see https://github.com/angular/angular/issues/39732 for additional info.\n        if (this.form._onCollectionChange === this._onCollectionChange) {\n          this.form._registerOnCollectionChange(() => {});\n        }\n      }\n    }\n    /**\n     * @description\n     * Returns this directive's instance.\n     */\n    get formDirective() {\n      return this;\n    }\n    /**\n     * @description\n     * Returns the `FormGroup` bound to this directive.\n     */\n    get control() {\n      return this.form;\n    }\n    /**\n     * @description\n     * Returns an array representing the path to this group. Because this directive\n     * always lives at the top level of a form, it always an empty array.\n     */\n    get path() {\n      return [];\n    }\n    /**\n     * @description\n     * Method that sets up the control directive in this group, re-calculates its value\n     * and validity, and adds the instance to the internal list of directives.\n     *\n     * @param dir The `FormControlName` directive instance.\n     */\n    addControl(dir) {\n      const ctrl = this.form.get(dir.path);\n      setUpControl(ctrl, dir, this.callSetDisabledState);\n      ctrl.updateValueAndValidity({\n        emitEvent: false\n      });\n      this.directives.push(dir);\n      return ctrl;\n    }\n    /**\n     * @description\n     * Retrieves the `FormControl` instance from the provided `FormControlName` directive\n     *\n     * @param dir The `FormControlName` directive instance.\n     */\n    getControl(dir) {\n      return this.form.get(dir.path);\n    }\n    /**\n     * @description\n     * Removes the `FormControlName` instance from the internal list of directives\n     *\n     * @param dir The `FormControlName` directive instance.\n     */\n    removeControl(dir) {\n      cleanUpControl(dir.control || null, dir, /* validateControlPresenceOnChange */false);\n      removeListItem$1(this.directives, dir);\n    }\n    /**\n     * Adds a new `FormGroupName` directive instance to the form.\n     *\n     * @param dir The `FormGroupName` directive instance.\n     */\n    addFormGroup(dir) {\n      this._setUpFormContainer(dir);\n    }\n    /**\n     * Performs the necessary cleanup when a `FormGroupName` directive instance is removed from the\n     * view.\n     *\n     * @param dir The `FormGroupName` directive instance.\n     */\n    removeFormGroup(dir) {\n      this._cleanUpFormContainer(dir);\n    }\n    /**\n     * @description\n     * Retrieves the `FormGroup` for a provided `FormGroupName` directive instance\n     *\n     * @param dir The `FormGroupName` directive instance.\n     */\n    getFormGroup(dir) {\n      return this.form.get(dir.path);\n    }\n    /**\n     * Performs the necessary setup when a `FormArrayName` directive instance is added to the view.\n     *\n     * @param dir The `FormArrayName` directive instance.\n     */\n    addFormArray(dir) {\n      this._setUpFormContainer(dir);\n    }\n    /**\n     * Performs the necessary cleanup when a `FormArrayName` directive instance is removed from the\n     * view.\n     *\n     * @param dir The `FormArrayName` directive instance.\n     */\n    removeFormArray(dir) {\n      this._cleanUpFormContainer(dir);\n    }\n    /**\n     * @description\n     * Retrieves the `FormArray` for a provided `FormArrayName` directive instance.\n     *\n     * @param dir The `FormArrayName` directive instance.\n     */\n    getFormArray(dir) {\n      return this.form.get(dir.path);\n    }\n    /**\n     * Sets the new value for the provided `FormControlName` directive.\n     *\n     * @param dir The `FormControlName` directive instance.\n     * @param value The new value for the directive's control.\n     */\n    updateModel(dir, value) {\n      const ctrl = this.form.get(dir.path);\n      ctrl.setValue(value);\n    }\n    /**\n     * @description\n     * Method called with the \"submit\" event is triggered on the form.\n     * Triggers the `ngSubmit` emitter to emit the \"submit\" event as its payload.\n     *\n     * @param $event The \"submit\" event object\n     */\n    onSubmit($event) {\n      this.submitted = true;\n      syncPendingControls(this.form, this.directives);\n      this.ngSubmit.emit($event);\n      // Forms with `method=\"dialog\"` have some special behavior that won't reload the page and that\n      // shouldn't be prevented. Note that we need to null check the `event` and the `target`, because\n      // some internal apps call this method directly with the wrong arguments.\n      return $event?.target?.method === 'dialog';\n    }\n    /**\n     * @description\n     * Method called when the \"reset\" event is triggered on the form.\n     */\n    onReset() {\n      this.resetForm();\n    }\n    /**\n     * @description\n     * Resets the form to an initial value and resets its submitted status.\n     *\n     * @param value The new value for the form.\n     */\n    resetForm(value = undefined) {\n      this.form.reset(value);\n      this.submitted = false;\n    }\n    /** @internal */\n    _updateDomValue() {\n      this.directives.forEach(dir => {\n        const oldCtrl = dir.control;\n        const newCtrl = this.form.get(dir.path);\n        if (oldCtrl !== newCtrl) {\n          // Note: the value of the `dir.control` may not be defined, for example when it's a first\n          // `FormControl` that is added to a `FormGroup` instance (via `addControl` call).\n          cleanUpControl(oldCtrl || null, dir);\n          // Check whether new control at the same location inside the corresponding `FormGroup` is an\n          // instance of `FormControl` and perform control setup only if that's the case.\n          // Note: we don't need to clear the list of directives (`this.directives`) here, it would be\n          // taken care of in the `removeControl` method invoked when corresponding `formControlName`\n          // directive instance is being removed (invoked from `FormControlName.ngOnDestroy`).\n          if (isFormControl(newCtrl)) {\n            setUpControl(newCtrl, dir, this.callSetDisabledState);\n            dir.control = newCtrl;\n          }\n        }\n      });\n      this.form._updateTreeValidity({\n        emitEvent: false\n      });\n    }\n    _setUpFormContainer(dir) {\n      const ctrl = this.form.get(dir.path);\n      setUpFormContainer(ctrl, dir);\n      // NOTE: this operation looks unnecessary in case no new validators were added in\n      // `setUpFormContainer` call. Consider updating this code to match the logic in\n      // `_cleanUpFormContainer` function.\n      ctrl.updateValueAndValidity({\n        emitEvent: false\n      });\n    }\n    _cleanUpFormContainer(dir) {\n      if (this.form) {\n        const ctrl = this.form.get(dir.path);\n        if (ctrl) {\n          const isControlUpdated = cleanUpFormContainer(ctrl, dir);\n          if (isControlUpdated) {\n            // Run validity check only in case a control was updated (i.e. view validators were\n            // removed) as removing view validators might cause validity to change.\n            ctrl.updateValueAndValidity({\n              emitEvent: false\n            });\n          }\n        }\n      }\n    }\n    _updateRegistrations() {\n      this.form._registerOnCollectionChange(this._onCollectionChange);\n      if (this._oldForm) {\n        this._oldForm._registerOnCollectionChange(() => {});\n      }\n    }\n    _updateValidators() {\n      setUpValidators(this.form, this);\n      if (this._oldForm) {\n        cleanUpValidators(this._oldForm, this);\n      }\n    }\n    _checkFormPresent() {\n      if (!this.form && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n        throw missingFormException();\n      }\n    }\n    static {\n      this.ɵfac = function FormGroupDirective_Factory(t) {\n        return new (t || FormGroupDirective)(i0.ɵɵdirectiveInject(NG_VALIDATORS, 10), i0.ɵɵdirectiveInject(NG_ASYNC_VALIDATORS, 10), i0.ɵɵdirectiveInject(CALL_SET_DISABLED_STATE, 8));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: FormGroupDirective,\n        selectors: [[\"\", \"formGroup\", \"\"]],\n        hostBindings: function FormGroupDirective_HostBindings(rf, ctx) {\n          if (rf & 1) {\n            i0.ɵɵlistener(\"submit\", function FormGroupDirective_submit_HostBindingHandler($event) {\n              return ctx.onSubmit($event);\n            })(\"reset\", function FormGroupDirective_reset_HostBindingHandler() {\n              return ctx.onReset();\n            });\n          }\n        },\n        inputs: {\n          form: [i0.ɵɵInputFlags.None, \"formGroup\", \"form\"]\n        },\n        outputs: {\n          ngSubmit: \"ngSubmit\"\n        },\n        exportAs: [\"ngForm\"],\n        features: [i0.ɵɵProvidersFeature([formDirectiveProvider]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature]\n      });\n    }\n  }\n  return FormGroupDirective;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst formGroupNameProvider = {\n  provide: ControlContainer,\n  useExisting: /*#__PURE__*/forwardRef(() => FormGroupName)\n};\n/**\n * @description\n *\n * Syncs a nested `FormGroup` or `FormRecord` to a DOM element.\n *\n * This directive can only be used with a parent `FormGroupDirective`.\n *\n * It accepts the string name of the nested `FormGroup` or `FormRecord` to link, and\n * looks for a `FormGroup` or `FormRecord` registered with that name in the parent\n * `FormGroup` instance you passed into `FormGroupDirective`.\n *\n * Use nested form groups to validate a sub-group of a\n * form separately from the rest or to group the values of certain\n * controls into their own nested object.\n *\n * @see [Reactive Forms Guide](guide/reactive-forms)\n *\n * @usageNotes\n *\n * ### Access the group by name\n *\n * The following example uses the `AbstractControl.get` method to access the\n * associated `FormGroup`\n *\n * ```ts\n *   this.form.get('name');\n * ```\n *\n * ### Access individual controls in the group\n *\n * The following example uses the `AbstractControl.get` method to access\n * individual controls within the group using dot syntax.\n *\n * ```ts\n *   this.form.get('name.first');\n * ```\n *\n * ### Register a nested `FormGroup`.\n *\n * The following example registers a nested *name* `FormGroup` within an existing `FormGroup`,\n * and provides methods to retrieve the nested `FormGroup` and individual controls.\n *\n * {@example forms/ts/nestedFormGroup/nested_form_group_example.ts region='Component'}\n *\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nlet FormGroupName = /*#__PURE__*/(() => {\n  class FormGroupName extends AbstractFormGroupDirective {\n    constructor(parent, validators, asyncValidators) {\n      super();\n      /**\n       * @description\n       * Tracks the name of the `FormGroup` bound to the directive. The name corresponds\n       * to a key in the parent `FormGroup` or `FormArray`.\n       * Accepts a name as a string or a number.\n       * The name in the form of a string is useful for individual forms,\n       * while the numerical form allows for form groups to be bound\n       * to indices when iterating over groups in a `FormArray`.\n       */\n      this.name = null;\n      this._parent = parent;\n      this._setValidators(validators);\n      this._setAsyncValidators(asyncValidators);\n    }\n    /** @internal */\n    _checkParentType() {\n      if (_hasInvalidParent(this._parent) && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n        throw groupParentException();\n      }\n    }\n    static {\n      this.ɵfac = function FormGroupName_Factory(t) {\n        return new (t || FormGroupName)(i0.ɵɵdirectiveInject(ControlContainer, 13), i0.ɵɵdirectiveInject(NG_VALIDATORS, 10), i0.ɵɵdirectiveInject(NG_ASYNC_VALIDATORS, 10));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: FormGroupName,\n        selectors: [[\"\", \"formGroupName\", \"\"]],\n        inputs: {\n          name: [i0.ɵɵInputFlags.None, \"formGroupName\", \"name\"]\n        },\n        features: [i0.ɵɵProvidersFeature([formGroupNameProvider]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return FormGroupName;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst formArrayNameProvider = {\n  provide: ControlContainer,\n  useExisting: /*#__PURE__*/forwardRef(() => FormArrayName)\n};\n/**\n * @description\n *\n * Syncs a nested `FormArray` to a DOM element.\n *\n * This directive is designed to be used with a parent `FormGroupDirective` (selector:\n * `[formGroup]`).\n *\n * It accepts the string name of the nested `FormArray` you want to link, and\n * will look for a `FormArray` registered with that name in the parent\n * `FormGroup` instance you passed into `FormGroupDirective`.\n *\n * @see [Reactive Forms Guide](guide/reactive-forms)\n * @see {@link AbstractControl}\n *\n * @usageNotes\n *\n * ### Example\n *\n * {@example forms/ts/nestedFormArray/nested_form_array_example.ts region='Component'}\n *\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nlet FormArrayName = /*#__PURE__*/(() => {\n  class FormArrayName extends ControlContainer {\n    constructor(parent, validators, asyncValidators) {\n      super();\n      /**\n       * @description\n       * Tracks the name of the `FormArray` bound to the directive. The name corresponds\n       * to a key in the parent `FormGroup` or `FormArray`.\n       * Accepts a name as a string or a number.\n       * The name in the form of a string is useful for individual forms,\n       * while the numerical form allows for form arrays to be bound\n       * to indices when iterating over arrays in a `FormArray`.\n       */\n      this.name = null;\n      this._parent = parent;\n      this._setValidators(validators);\n      this._setAsyncValidators(asyncValidators);\n    }\n    /**\n     * A lifecycle method called when the directive's inputs are initialized. For internal use only.\n     * @throws If the directive does not have a valid parent.\n     * @nodoc\n     */\n    ngOnInit() {\n      this._checkParentType();\n      this.formDirective.addFormArray(this);\n    }\n    /**\n     * A lifecycle method called before the directive's instance is destroyed. For internal use only.\n     * @nodoc\n     */\n    ngOnDestroy() {\n      if (this.formDirective) {\n        this.formDirective.removeFormArray(this);\n      }\n    }\n    /**\n     * @description\n     * The `FormArray` bound to this directive.\n     */\n    get control() {\n      return this.formDirective.getFormArray(this);\n    }\n    /**\n     * @description\n     * The top-level directive for this group if present, otherwise null.\n     */\n    get formDirective() {\n      return this._parent ? this._parent.formDirective : null;\n    }\n    /**\n     * @description\n     * Returns an array that represents the path from the top-level form to this control.\n     * Each index is the string name of the control on that level.\n     */\n    get path() {\n      return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);\n    }\n    _checkParentType() {\n      if (_hasInvalidParent(this._parent) && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n        throw arrayParentException();\n      }\n    }\n    static {\n      this.ɵfac = function FormArrayName_Factory(t) {\n        return new (t || FormArrayName)(i0.ɵɵdirectiveInject(ControlContainer, 13), i0.ɵɵdirectiveInject(NG_VALIDATORS, 10), i0.ɵɵdirectiveInject(NG_ASYNC_VALIDATORS, 10));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: FormArrayName,\n        selectors: [[\"\", \"formArrayName\", \"\"]],\n        inputs: {\n          name: [i0.ɵɵInputFlags.None, \"formArrayName\", \"name\"]\n        },\n        features: [i0.ɵɵProvidersFeature([formArrayNameProvider]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return FormArrayName;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction _hasInvalidParent(parent) {\n  return !(parent instanceof FormGroupName) && !(parent instanceof FormGroupDirective) && !(parent instanceof FormArrayName);\n}\nconst controlNameBinding = {\n  provide: NgControl,\n  useExisting: /*#__PURE__*/forwardRef(() => FormControlName)\n};\n/**\n * @description\n * Syncs a `FormControl` in an existing `FormGroup` to a form control\n * element by name.\n *\n * @see [Reactive Forms Guide](guide/reactive-forms)\n * @see {@link FormControl}\n * @see {@link AbstractControl}\n *\n * @usageNotes\n *\n * ### Register `FormControl` within a group\n *\n * The following example shows how to register multiple form controls within a form group\n * and set their value.\n *\n * {@example forms/ts/simpleFormGroup/simple_form_group_example.ts region='Component'}\n *\n * To see `formControlName` examples with different form control types, see:\n *\n * * Radio buttons: `RadioControlValueAccessor`\n * * Selects: `SelectControlValueAccessor`\n *\n * ### Use with ngModel is deprecated\n *\n * Support for using the `ngModel` input property and `ngModelChange` event with reactive\n * form directives has been deprecated in Angular v6 and is scheduled for removal in\n * a future version of Angular.\n *\n * For details, see [Deprecated features](guide/deprecations#ngmodel-with-reactive-forms).\n *\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nlet FormControlName = /*#__PURE__*/(() => {\n  class FormControlName extends NgControl {\n    /**\n     * @description\n     * Triggers a warning in dev mode that this input should not be used with reactive forms.\n     */\n    set isDisabled(isDisabled) {\n      if (typeof ngDevMode === 'undefined' || ngDevMode) {\n        console.warn(disabledAttrWarning);\n      }\n    }\n    /**\n     * @description\n     * Static property used to track whether any ngModel warnings have been sent across\n     * all instances of FormControlName. Used to support warning config of \"once\".\n     *\n     * @internal\n     */\n    static {\n      this._ngModelWarningSentOnce = false;\n    }\n    constructor(parent, validators, asyncValidators, valueAccessors, _ngModelWarningConfig) {\n      super();\n      this._ngModelWarningConfig = _ngModelWarningConfig;\n      this._added = false;\n      /**\n       * @description\n       * Tracks the name of the `FormControl` bound to the directive. The name corresponds\n       * to a key in the parent `FormGroup` or `FormArray`.\n       * Accepts a name as a string or a number.\n       * The name in the form of a string is useful for individual forms,\n       * while the numerical form allows for form controls to be bound\n       * to indices when iterating over controls in a `FormArray`.\n       */\n      this.name = null;\n      /** @deprecated as of v6 */\n      this.update = new EventEmitter();\n      /**\n       * @description\n       * Instance property used to track whether an ngModel warning has been sent out for this\n       * particular FormControlName instance. Used to support warning config of \"always\".\n       *\n       * @internal\n       */\n      this._ngModelWarningSent = false;\n      this._parent = parent;\n      this._setValidators(validators);\n      this._setAsyncValidators(asyncValidators);\n      this.valueAccessor = selectValueAccessor(this, valueAccessors);\n    }\n    /** @nodoc */\n    ngOnChanges(changes) {\n      if (!this._added) this._setUpControl();\n      if (isPropertyUpdated(changes, this.viewModel)) {\n        if (typeof ngDevMode === 'undefined' || ngDevMode) {\n          _ngModelWarning('formControlName', FormControlName, this, this._ngModelWarningConfig);\n        }\n        this.viewModel = this.model;\n        this.formDirective.updateModel(this, this.model);\n      }\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n      if (this.formDirective) {\n        this.formDirective.removeControl(this);\n      }\n    }\n    /**\n     * @description\n     * Sets the new value for the view model and emits an `ngModelChange` event.\n     *\n     * @param newValue The new value for the view model.\n     */\n    viewToModelUpdate(newValue) {\n      this.viewModel = newValue;\n      this.update.emit(newValue);\n    }\n    /**\n     * @description\n     * Returns an array that represents the path from the top-level form to this control.\n     * Each index is the string name of the control on that level.\n     */\n    get path() {\n      return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);\n    }\n    /**\n     * @description\n     * The top-level directive for this group if present, otherwise null.\n     */\n    get formDirective() {\n      return this._parent ? this._parent.formDirective : null;\n    }\n    _checkParentType() {\n      if (typeof ngDevMode === 'undefined' || ngDevMode) {\n        if (!(this._parent instanceof FormGroupName) && this._parent instanceof AbstractFormGroupDirective) {\n          throw ngModelGroupException();\n        } else if (!(this._parent instanceof FormGroupName) && !(this._parent instanceof FormGroupDirective) && !(this._parent instanceof FormArrayName)) {\n          throw controlParentException();\n        }\n      }\n    }\n    _setUpControl() {\n      this._checkParentType();\n      this.control = this.formDirective.addControl(this);\n      this._added = true;\n    }\n    static {\n      this.ɵfac = function FormControlName_Factory(t) {\n        return new (t || FormControlName)(i0.ɵɵdirectiveInject(ControlContainer, 13), i0.ɵɵdirectiveInject(NG_VALIDATORS, 10), i0.ɵɵdirectiveInject(NG_ASYNC_VALIDATORS, 10), i0.ɵɵdirectiveInject(NG_VALUE_ACCESSOR, 10), i0.ɵɵdirectiveInject(NG_MODEL_WITH_FORM_CONTROL_WARNING, 8));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: FormControlName,\n        selectors: [[\"\", \"formControlName\", \"\"]],\n        inputs: {\n          name: [i0.ɵɵInputFlags.None, \"formControlName\", \"name\"],\n          isDisabled: [i0.ɵɵInputFlags.None, \"disabled\", \"isDisabled\"],\n          model: [i0.ɵɵInputFlags.None, \"ngModel\", \"model\"]\n        },\n        outputs: {\n          update: \"ngModelChange\"\n        },\n        features: [i0.ɵɵProvidersFeature([controlNameBinding]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature]\n      });\n    }\n  }\n  return FormControlName;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst SELECT_VALUE_ACCESSOR = {\n  provide: NG_VALUE_ACCESSOR,\n  useExisting: /*#__PURE__*/forwardRef(() => SelectControlValueAccessor),\n  multi: true\n};\nfunction _buildValueString$1(id, value) {\n  if (id == null) return `${value}`;\n  if (value && typeof value === 'object') value = 'Object';\n  return `${id}: ${value}`.slice(0, 50);\n}\nfunction _extractId$1(valueString) {\n  return valueString.split(':')[0];\n}\n/**\n * @description\n * The `ControlValueAccessor` for writing select control values and listening to select control\n * changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and\n * `NgModel` directives.\n *\n * @usageNotes\n *\n * ### Using select controls in a reactive form\n *\n * The following examples show how to use a select control in a reactive form.\n *\n * {@example forms/ts/reactiveSelectControl/reactive_select_control_example.ts region='Component'}\n *\n * ### Using select controls in a template-driven form\n *\n * To use a select in a template-driven form, simply add an `ngModel` and a `name`\n * attribute to the main `<select>` tag.\n *\n * {@example forms/ts/selectControl/select_control_example.ts region='Component'}\n *\n * ### Customizing option selection\n *\n * Angular uses object identity to select option. It's possible for the identities of items\n * to change while the data does not. This can happen, for example, if the items are produced\n * from an RPC to the server, and that RPC is re-run. Even if the data hasn't changed, the\n * second response will produce objects with different identities.\n *\n * To customize the default option comparison algorithm, `<select>` supports `compareWith` input.\n * `compareWith` takes a **function** which has two arguments: `option1` and `option2`.\n * If `compareWith` is given, Angular selects option by the return value of the function.\n *\n * ```ts\n * const selectedCountriesControl = new FormControl();\n * ```\n *\n * ```\n * <select [compareWith]=\"compareFn\"  [formControl]=\"selectedCountriesControl\">\n *     <option *ngFor=\"let country of countries\" [ngValue]=\"country\">\n *         {{country.name}}\n *     </option>\n * </select>\n *\n * compareFn(c1: Country, c2: Country): boolean {\n *     return c1 && c2 ? c1.id === c2.id : c1 === c2;\n * }\n * ```\n *\n * **Note:** We listen to the 'change' event because 'input' events aren't fired\n * for selects in IE, see:\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event#browser_compatibility\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet SelectControlValueAccessor = /*#__PURE__*/(() => {\n  class SelectControlValueAccessor extends BuiltInControlValueAccessor {\n    constructor() {\n      super(...arguments);\n      /** @internal */\n      this._optionMap = new Map();\n      /** @internal */\n      this._idCounter = 0;\n      this._compareWith = Object.is;\n    }\n    /**\n     * @description\n     * Tracks the option comparison algorithm for tracking identities when\n     * checking for changes.\n     */\n    set compareWith(fn) {\n      if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n        throw new ɵRuntimeError(1201 /* RuntimeErrorCode.COMPAREWITH_NOT_A_FN */, `compareWith must be a function, but received ${JSON.stringify(fn)}`);\n      }\n      this._compareWith = fn;\n    }\n    /**\n     * Sets the \"value\" property on the select element.\n     * @nodoc\n     */\n    writeValue(value) {\n      this.value = value;\n      const id = this._getOptionId(value);\n      const valueString = _buildValueString$1(id, value);\n      this.setProperty('value', valueString);\n    }\n    /**\n     * Registers a function called when the control value changes.\n     * @nodoc\n     */\n    registerOnChange(fn) {\n      this.onChange = valueString => {\n        this.value = this._getOptionValue(valueString);\n        fn(this.value);\n      };\n    }\n    /** @internal */\n    _registerOption() {\n      return (this._idCounter++).toString();\n    }\n    /** @internal */\n    _getOptionId(value) {\n      for (const id of this._optionMap.keys()) {\n        if (this._compareWith(this._optionMap.get(id), value)) return id;\n      }\n      return null;\n    }\n    /** @internal */\n    _getOptionValue(valueString) {\n      const id = _extractId$1(valueString);\n      return this._optionMap.has(id) ? this._optionMap.get(id) : valueString;\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵSelectControlValueAccessor_BaseFactory;\n        return function SelectControlValueAccessor_Factory(t) {\n          return (ɵSelectControlValueAccessor_BaseFactory || (ɵSelectControlValueAccessor_BaseFactory = i0.ɵɵgetInheritedFactory(SelectControlValueAccessor)))(t || SelectControlValueAccessor);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: SelectControlValueAccessor,\n        selectors: [[\"select\", \"formControlName\", \"\", 3, \"multiple\", \"\"], [\"select\", \"formControl\", \"\", 3, \"multiple\", \"\"], [\"select\", \"ngModel\", \"\", 3, \"multiple\", \"\"]],\n        hostBindings: function SelectControlValueAccessor_HostBindings(rf, ctx) {\n          if (rf & 1) {\n            i0.ɵɵlistener(\"change\", function SelectControlValueAccessor_change_HostBindingHandler($event) {\n              return ctx.onChange($event.target.value);\n            })(\"blur\", function SelectControlValueAccessor_blur_HostBindingHandler() {\n              return ctx.onTouched();\n            });\n          }\n        },\n        inputs: {\n          compareWith: \"compareWith\"\n        },\n        features: [i0.ɵɵProvidersFeature([SELECT_VALUE_ACCESSOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return SelectControlValueAccessor;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n * Marks `<option>` as dynamic, so Angular can be notified when options change.\n *\n * @see {@link SelectControlValueAccessor}\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet NgSelectOption = /*#__PURE__*/(() => {\n  class NgSelectOption {\n    constructor(_element, _renderer, _select) {\n      this._element = _element;\n      this._renderer = _renderer;\n      this._select = _select;\n      if (this._select) this.id = this._select._registerOption();\n    }\n    /**\n     * @description\n     * Tracks the value bound to the option element. Unlike the value binding,\n     * ngValue supports binding to objects.\n     */\n    set ngValue(value) {\n      if (this._select == null) return;\n      this._select._optionMap.set(this.id, value);\n      this._setElementValue(_buildValueString$1(this.id, value));\n      this._select.writeValue(this._select.value);\n    }\n    /**\n     * @description\n     * Tracks simple string values bound to the option element.\n     * For objects, use the `ngValue` input binding.\n     */\n    set value(value) {\n      this._setElementValue(value);\n      if (this._select) this._select.writeValue(this._select.value);\n    }\n    /** @internal */\n    _setElementValue(value) {\n      this._renderer.setProperty(this._element.nativeElement, 'value', value);\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n      if (this._select) {\n        this._select._optionMap.delete(this.id);\n        this._select.writeValue(this._select.value);\n      }\n    }\n    static {\n      this.ɵfac = function NgSelectOption_Factory(t) {\n        return new (t || NgSelectOption)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(SelectControlValueAccessor, 9));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: NgSelectOption,\n        selectors: [[\"option\"]],\n        inputs: {\n          ngValue: \"ngValue\",\n          value: \"value\"\n        }\n      });\n    }\n  }\n  return NgSelectOption;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst SELECT_MULTIPLE_VALUE_ACCESSOR = {\n  provide: NG_VALUE_ACCESSOR,\n  useExisting: /*#__PURE__*/forwardRef(() => SelectMultipleControlValueAccessor),\n  multi: true\n};\nfunction _buildValueString(id, value) {\n  if (id == null) return `${value}`;\n  if (typeof value === 'string') value = `'${value}'`;\n  if (value && typeof value === 'object') value = 'Object';\n  return `${id}: ${value}`.slice(0, 50);\n}\nfunction _extractId(valueString) {\n  return valueString.split(':')[0];\n}\n/** Mock interface for HTMLCollection */\nclass HTMLCollection {}\n/**\n * @description\n * The `ControlValueAccessor` for writing multi-select control values and listening to multi-select\n * control changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and\n * `NgModel` directives.\n *\n * @see {@link SelectControlValueAccessor}\n *\n * @usageNotes\n *\n * ### Using a multi-select control\n *\n * The follow example shows you how to use a multi-select control with a reactive form.\n *\n * ```ts\n * const countryControl = new FormControl();\n * ```\n *\n * ```\n * <select multiple name=\"countries\" [formControl]=\"countryControl\">\n *   <option *ngFor=\"let country of countries\" [ngValue]=\"country\">\n *     {{ country.name }}\n *   </option>\n * </select>\n * ```\n *\n * ### Customizing option selection\n *\n * To customize the default option comparison algorithm, `<select>` supports `compareWith` input.\n * See the `SelectControlValueAccessor` for usage.\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet SelectMultipleControlValueAccessor = /*#__PURE__*/(() => {\n  class SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor {\n    constructor() {\n      super(...arguments);\n      /** @internal */\n      this._optionMap = new Map();\n      /** @internal */\n      this._idCounter = 0;\n      this._compareWith = Object.is;\n    }\n    /**\n     * @description\n     * Tracks the option comparison algorithm for tracking identities when\n     * checking for changes.\n     */\n    set compareWith(fn) {\n      if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n        throw new ɵRuntimeError(1201 /* RuntimeErrorCode.COMPAREWITH_NOT_A_FN */, `compareWith must be a function, but received ${JSON.stringify(fn)}`);\n      }\n      this._compareWith = fn;\n    }\n    /**\n     * Sets the \"value\" property on one or of more of the select's options.\n     * @nodoc\n     */\n    writeValue(value) {\n      this.value = value;\n      let optionSelectedStateSetter;\n      if (Array.isArray(value)) {\n        // convert values to ids\n        const ids = value.map(v => this._getOptionId(v));\n        optionSelectedStateSetter = (opt, o) => {\n          opt._setSelected(ids.indexOf(o.toString()) > -1);\n        };\n      } else {\n        optionSelectedStateSetter = (opt, o) => {\n          opt._setSelected(false);\n        };\n      }\n      this._optionMap.forEach(optionSelectedStateSetter);\n    }\n    /**\n     * Registers a function called when the control value changes\n     * and writes an array of the selected options.\n     * @nodoc\n     */\n    registerOnChange(fn) {\n      this.onChange = element => {\n        const selected = [];\n        const selectedOptions = element.selectedOptions;\n        if (selectedOptions !== undefined) {\n          const options = selectedOptions;\n          for (let i = 0; i < options.length; i++) {\n            const opt = options[i];\n            const val = this._getOptionValue(opt.value);\n            selected.push(val);\n          }\n        }\n        // Degrade to use `options` when `selectedOptions` property is not available.\n        // Note: the `selectedOptions` is available in all supported browsers, but the Domino lib\n        // doesn't have it currently, see https://github.com/fgnass/domino/issues/177.\n        else {\n          const options = element.options;\n          for (let i = 0; i < options.length; i++) {\n            const opt = options[i];\n            if (opt.selected) {\n              const val = this._getOptionValue(opt.value);\n              selected.push(val);\n            }\n          }\n        }\n        this.value = selected;\n        fn(selected);\n      };\n    }\n    /** @internal */\n    _registerOption(value) {\n      const id = (this._idCounter++).toString();\n      this._optionMap.set(id, value);\n      return id;\n    }\n    /** @internal */\n    _getOptionId(value) {\n      for (const id of this._optionMap.keys()) {\n        if (this._compareWith(this._optionMap.get(id)._value, value)) return id;\n      }\n      return null;\n    }\n    /** @internal */\n    _getOptionValue(valueString) {\n      const id = _extractId(valueString);\n      return this._optionMap.has(id) ? this._optionMap.get(id)._value : valueString;\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵSelectMultipleControlValueAccessor_BaseFactory;\n        return function SelectMultipleControlValueAccessor_Factory(t) {\n          return (ɵSelectMultipleControlValueAccessor_BaseFactory || (ɵSelectMultipleControlValueAccessor_BaseFactory = i0.ɵɵgetInheritedFactory(SelectMultipleControlValueAccessor)))(t || SelectMultipleControlValueAccessor);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: SelectMultipleControlValueAccessor,\n        selectors: [[\"select\", \"multiple\", \"\", \"formControlName\", \"\"], [\"select\", \"multiple\", \"\", \"formControl\", \"\"], [\"select\", \"multiple\", \"\", \"ngModel\", \"\"]],\n        hostBindings: function SelectMultipleControlValueAccessor_HostBindings(rf, ctx) {\n          if (rf & 1) {\n            i0.ɵɵlistener(\"change\", function SelectMultipleControlValueAccessor_change_HostBindingHandler($event) {\n              return ctx.onChange($event.target);\n            })(\"blur\", function SelectMultipleControlValueAccessor_blur_HostBindingHandler() {\n              return ctx.onTouched();\n            });\n          }\n        },\n        inputs: {\n          compareWith: \"compareWith\"\n        },\n        features: [i0.ɵɵProvidersFeature([SELECT_MULTIPLE_VALUE_ACCESSOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return SelectMultipleControlValueAccessor;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n * Marks `<option>` as dynamic, so Angular can be notified when options change.\n *\n * @see {@link SelectMultipleControlValueAccessor}\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet ɵNgSelectMultipleOption = /*#__PURE__*/(() => {\n  class ɵNgSelectMultipleOption {\n    constructor(_element, _renderer, _select) {\n      this._element = _element;\n      this._renderer = _renderer;\n      this._select = _select;\n      if (this._select) {\n        this.id = this._select._registerOption(this);\n      }\n    }\n    /**\n     * @description\n     * Tracks the value bound to the option element. Unlike the value binding,\n     * ngValue supports binding to objects.\n     */\n    set ngValue(value) {\n      if (this._select == null) return;\n      this._value = value;\n      this._setElementValue(_buildValueString(this.id, value));\n      this._select.writeValue(this._select.value);\n    }\n    /**\n     * @description\n     * Tracks simple string values bound to the option element.\n     * For objects, use the `ngValue` input binding.\n     */\n    set value(value) {\n      if (this._select) {\n        this._value = value;\n        this._setElementValue(_buildValueString(this.id, value));\n        this._select.writeValue(this._select.value);\n      } else {\n        this._setElementValue(value);\n      }\n    }\n    /** @internal */\n    _setElementValue(value) {\n      this._renderer.setProperty(this._element.nativeElement, 'value', value);\n    }\n    /** @internal */\n    _setSelected(selected) {\n      this._renderer.setProperty(this._element.nativeElement, 'selected', selected);\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n      if (this._select) {\n        this._select._optionMap.delete(this.id);\n        this._select.writeValue(this._select.value);\n      }\n    }\n    static {\n      this.ɵfac = function ɵNgSelectMultipleOption_Factory(t) {\n        return new (t || ɵNgSelectMultipleOption)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(SelectMultipleControlValueAccessor, 9));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: ɵNgSelectMultipleOption,\n        selectors: [[\"option\"]],\n        inputs: {\n          ngValue: \"ngValue\",\n          value: \"value\"\n        }\n      });\n    }\n  }\n  return ɵNgSelectMultipleOption;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Method that updates string to integer if not already a number\n *\n * @param value The value to convert to integer.\n * @returns value of parameter converted to number or integer.\n */\nfunction toInteger(value) {\n  return typeof value === 'number' ? value : parseInt(value, 10);\n}\n/**\n * Method that ensures that provided value is a float (and converts it to float if needed).\n *\n * @param value The value to convert to float.\n * @returns value of parameter converted to number or float.\n */\nfunction toFloat(value) {\n  return typeof value === 'number' ? value : parseFloat(value);\n}\n/**\n * A base class for Validator-based Directives. The class contains common logic shared across such\n * Directives.\n *\n * For internal use only, this class is not intended for use outside of the Forms package.\n */\nlet AbstractValidatorDirective = /*#__PURE__*/(() => {\n  class AbstractValidatorDirective {\n    constructor() {\n      this._validator = nullValidator;\n    }\n    /** @nodoc */\n    ngOnChanges(changes) {\n      if (this.inputName in changes) {\n        const input = this.normalizeInput(changes[this.inputName].currentValue);\n        this._enabled = this.enabled(input);\n        this._validator = this._enabled ? this.createValidator(input) : nullValidator;\n        if (this._onChange) {\n          this._onChange();\n        }\n      }\n    }\n    /** @nodoc */\n    validate(control) {\n      return this._validator(control);\n    }\n    /** @nodoc */\n    registerOnValidatorChange(fn) {\n      this._onChange = fn;\n    }\n    /**\n     * @description\n     * Determines whether this validator should be active or not based on an input.\n     * Base class implementation checks whether an input is defined (if the value is different from\n     * `null` and `undefined`). Validator classes that extend this base class can override this\n     * function with the logic specific to a particular validator directive.\n     */\n    enabled(input) {\n      return input != null /* both `null` and `undefined` */;\n    }\n    static {\n      this.ɵfac = function AbstractValidatorDirective_Factory(t) {\n        return new (t || AbstractValidatorDirective)();\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: AbstractValidatorDirective,\n        features: [i0.ɵɵNgOnChangesFeature]\n      });\n    }\n  }\n  return AbstractValidatorDirective;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n * Provider which adds `MaxValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst MAX_VALIDATOR = {\n  provide: NG_VALIDATORS,\n  useExisting: /*#__PURE__*/forwardRef(() => MaxValidator),\n  multi: true\n};\n/**\n * A directive which installs the {@link MaxValidator} for any `formControlName`,\n * `formControl`, or control with `ngModel` that also has a `max` attribute.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a max validator\n *\n * The following example shows how to add a max validator to an input attached to an\n * ngModel binding.\n *\n * ```html\n * <input type=\"number\" ngModel max=\"4\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet MaxValidator = /*#__PURE__*/(() => {\n  class MaxValidator extends AbstractValidatorDirective {\n    constructor() {\n      super(...arguments);\n      /** @internal */\n      this.inputName = 'max';\n      /** @internal */\n      this.normalizeInput = input => toFloat(input);\n      /** @internal */\n      this.createValidator = max => maxValidator(max);\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵMaxValidator_BaseFactory;\n        return function MaxValidator_Factory(t) {\n          return (ɵMaxValidator_BaseFactory || (ɵMaxValidator_BaseFactory = i0.ɵɵgetInheritedFactory(MaxValidator)))(t || MaxValidator);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: MaxValidator,\n        selectors: [[\"input\", \"type\", \"number\", \"max\", \"\", \"formControlName\", \"\"], [\"input\", \"type\", \"number\", \"max\", \"\", \"formControl\", \"\"], [\"input\", \"type\", \"number\", \"max\", \"\", \"ngModel\", \"\"]],\n        hostVars: 1,\n        hostBindings: function MaxValidator_HostBindings(rf, ctx) {\n          if (rf & 2) {\n            i0.ɵɵattribute(\"max\", ctx._enabled ? ctx.max : null);\n          }\n        },\n        inputs: {\n          max: \"max\"\n        },\n        features: [i0.ɵɵProvidersFeature([MAX_VALIDATOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return MaxValidator;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n * Provider which adds `MinValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst MIN_VALIDATOR = {\n  provide: NG_VALIDATORS,\n  useExisting: /*#__PURE__*/forwardRef(() => MinValidator),\n  multi: true\n};\n/**\n * A directive which installs the {@link MinValidator} for any `formControlName`,\n * `formControl`, or control with `ngModel` that also has a `min` attribute.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a min validator\n *\n * The following example shows how to add a min validator to an input attached to an\n * ngModel binding.\n *\n * ```html\n * <input type=\"number\" ngModel min=\"4\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet MinValidator = /*#__PURE__*/(() => {\n  class MinValidator extends AbstractValidatorDirective {\n    constructor() {\n      super(...arguments);\n      /** @internal */\n      this.inputName = 'min';\n      /** @internal */\n      this.normalizeInput = input => toFloat(input);\n      /** @internal */\n      this.createValidator = min => minValidator(min);\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵMinValidator_BaseFactory;\n        return function MinValidator_Factory(t) {\n          return (ɵMinValidator_BaseFactory || (ɵMinValidator_BaseFactory = i0.ɵɵgetInheritedFactory(MinValidator)))(t || MinValidator);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: MinValidator,\n        selectors: [[\"input\", \"type\", \"number\", \"min\", \"\", \"formControlName\", \"\"], [\"input\", \"type\", \"number\", \"min\", \"\", \"formControl\", \"\"], [\"input\", \"type\", \"number\", \"min\", \"\", \"ngModel\", \"\"]],\n        hostVars: 1,\n        hostBindings: function MinValidator_HostBindings(rf, ctx) {\n          if (rf & 2) {\n            i0.ɵɵattribute(\"min\", ctx._enabled ? ctx.min : null);\n          }\n        },\n        inputs: {\n          min: \"min\"\n        },\n        features: [i0.ɵɵProvidersFeature([MIN_VALIDATOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return MinValidator;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n * Provider which adds `RequiredValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst REQUIRED_VALIDATOR = {\n  provide: NG_VALIDATORS,\n  useExisting: /*#__PURE__*/forwardRef(() => RequiredValidator),\n  multi: true\n};\n/**\n * @description\n * Provider which adds `CheckboxRequiredValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst CHECKBOX_REQUIRED_VALIDATOR = {\n  provide: NG_VALIDATORS,\n  useExisting: /*#__PURE__*/forwardRef(() => CheckboxRequiredValidator),\n  multi: true\n};\n/**\n * @description\n * A directive that adds the `required` validator to any controls marked with the\n * `required` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a required validator using template-driven forms\n *\n * ```\n * <input name=\"fullName\" ngModel required>\n * ```\n *\n * @ngModule FormsModule\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nlet RequiredValidator = /*#__PURE__*/(() => {\n  class RequiredValidator extends AbstractValidatorDirective {\n    constructor() {\n      super(...arguments);\n      /** @internal */\n      this.inputName = 'required';\n      /** @internal */\n      this.normalizeInput = booleanAttribute;\n      /** @internal */\n      this.createValidator = input => requiredValidator;\n    }\n    /** @nodoc */\n    enabled(input) {\n      return input;\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵRequiredValidator_BaseFactory;\n        return function RequiredValidator_Factory(t) {\n          return (ɵRequiredValidator_BaseFactory || (ɵRequiredValidator_BaseFactory = i0.ɵɵgetInheritedFactory(RequiredValidator)))(t || RequiredValidator);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: RequiredValidator,\n        selectors: [[\"\", \"required\", \"\", \"formControlName\", \"\", 3, \"type\", \"checkbox\"], [\"\", \"required\", \"\", \"formControl\", \"\", 3, \"type\", \"checkbox\"], [\"\", \"required\", \"\", \"ngModel\", \"\", 3, \"type\", \"checkbox\"]],\n        hostVars: 1,\n        hostBindings: function RequiredValidator_HostBindings(rf, ctx) {\n          if (rf & 2) {\n            i0.ɵɵattribute(\"required\", ctx._enabled ? \"\" : null);\n          }\n        },\n        inputs: {\n          required: \"required\"\n        },\n        features: [i0.ɵɵProvidersFeature([REQUIRED_VALIDATOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return RequiredValidator;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * A Directive that adds the `required` validator to checkbox controls marked with the\n * `required` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a required checkbox validator using template-driven forms\n *\n * The following example shows how to add a checkbox required validator to an input attached to an\n * ngModel binding.\n *\n * ```\n * <input type=\"checkbox\" name=\"active\" ngModel required>\n * ```\n *\n * @publicApi\n * @ngModule FormsModule\n * @ngModule ReactiveFormsModule\n */\nlet CheckboxRequiredValidator = /*#__PURE__*/(() => {\n  class CheckboxRequiredValidator extends RequiredValidator {\n    constructor() {\n      super(...arguments);\n      /** @internal */\n      this.createValidator = input => requiredTrueValidator;\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵCheckboxRequiredValidator_BaseFactory;\n        return function CheckboxRequiredValidator_Factory(t) {\n          return (ɵCheckboxRequiredValidator_BaseFactory || (ɵCheckboxRequiredValidator_BaseFactory = i0.ɵɵgetInheritedFactory(CheckboxRequiredValidator)))(t || CheckboxRequiredValidator);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: CheckboxRequiredValidator,\n        selectors: [[\"input\", \"type\", \"checkbox\", \"required\", \"\", \"formControlName\", \"\"], [\"input\", \"type\", \"checkbox\", \"required\", \"\", \"formControl\", \"\"], [\"input\", \"type\", \"checkbox\", \"required\", \"\", \"ngModel\", \"\"]],\n        hostVars: 1,\n        hostBindings: function CheckboxRequiredValidator_HostBindings(rf, ctx) {\n          if (rf & 2) {\n            i0.ɵɵattribute(\"required\", ctx._enabled ? \"\" : null);\n          }\n        },\n        features: [i0.ɵɵProvidersFeature([CHECKBOX_REQUIRED_VALIDATOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return CheckboxRequiredValidator;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n * Provider which adds `EmailValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst EMAIL_VALIDATOR = {\n  provide: NG_VALIDATORS,\n  useExisting: /*#__PURE__*/forwardRef(() => EmailValidator),\n  multi: true\n};\n/**\n * A directive that adds the `email` validator to controls marked with the\n * `email` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * The email validation is based on the WHATWG HTML specification with some enhancements to\n * incorporate more RFC rules. More information can be found on the [Validators.email\n * page](api/forms/Validators#email).\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding an email validator\n *\n * The following example shows how to add an email validator to an input attached to an ngModel\n * binding.\n *\n * ```\n * <input type=\"email\" name=\"email\" ngModel email>\n * <input type=\"email\" name=\"email\" ngModel email=\"true\">\n * <input type=\"email\" name=\"email\" ngModel [email]=\"true\">\n * ```\n *\n * @publicApi\n * @ngModule FormsModule\n * @ngModule ReactiveFormsModule\n */\nlet EmailValidator = /*#__PURE__*/(() => {\n  class EmailValidator extends AbstractValidatorDirective {\n    constructor() {\n      super(...arguments);\n      /** @internal */\n      this.inputName = 'email';\n      /** @internal */\n      this.normalizeInput = booleanAttribute;\n      /** @internal */\n      this.createValidator = input => emailValidator;\n    }\n    /** @nodoc */\n    enabled(input) {\n      return input;\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵEmailValidator_BaseFactory;\n        return function EmailValidator_Factory(t) {\n          return (ɵEmailValidator_BaseFactory || (ɵEmailValidator_BaseFactory = i0.ɵɵgetInheritedFactory(EmailValidator)))(t || EmailValidator);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: EmailValidator,\n        selectors: [[\"\", \"email\", \"\", \"formControlName\", \"\"], [\"\", \"email\", \"\", \"formControl\", \"\"], [\"\", \"email\", \"\", \"ngModel\", \"\"]],\n        inputs: {\n          email: \"email\"\n        },\n        features: [i0.ɵɵProvidersFeature([EMAIL_VALIDATOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return EmailValidator;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n * Provider which adds `MinLengthValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst MIN_LENGTH_VALIDATOR = {\n  provide: NG_VALIDATORS,\n  useExisting: /*#__PURE__*/forwardRef(() => MinLengthValidator),\n  multi: true\n};\n/**\n * A directive that adds minimum length validation to controls marked with the\n * `minlength` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a minimum length validator\n *\n * The following example shows how to add a minimum length validator to an input attached to an\n * ngModel binding.\n *\n * ```html\n * <input name=\"firstName\" ngModel minlength=\"4\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet MinLengthValidator = /*#__PURE__*/(() => {\n  class MinLengthValidator extends AbstractValidatorDirective {\n    constructor() {\n      super(...arguments);\n      /** @internal */\n      this.inputName = 'minlength';\n      /** @internal */\n      this.normalizeInput = input => toInteger(input);\n      /** @internal */\n      this.createValidator = minlength => minLengthValidator(minlength);\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵMinLengthValidator_BaseFactory;\n        return function MinLengthValidator_Factory(t) {\n          return (ɵMinLengthValidator_BaseFactory || (ɵMinLengthValidator_BaseFactory = i0.ɵɵgetInheritedFactory(MinLengthValidator)))(t || MinLengthValidator);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: MinLengthValidator,\n        selectors: [[\"\", \"minlength\", \"\", \"formControlName\", \"\"], [\"\", \"minlength\", \"\", \"formControl\", \"\"], [\"\", \"minlength\", \"\", \"ngModel\", \"\"]],\n        hostVars: 1,\n        hostBindings: function MinLengthValidator_HostBindings(rf, ctx) {\n          if (rf & 2) {\n            i0.ɵɵattribute(\"minlength\", ctx._enabled ? ctx.minlength : null);\n          }\n        },\n        inputs: {\n          minlength: \"minlength\"\n        },\n        features: [i0.ɵɵProvidersFeature([MIN_LENGTH_VALIDATOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return MinLengthValidator;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n * Provider which adds `MaxLengthValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst MAX_LENGTH_VALIDATOR = {\n  provide: NG_VALIDATORS,\n  useExisting: /*#__PURE__*/forwardRef(() => MaxLengthValidator),\n  multi: true\n};\n/**\n * A directive that adds maximum length validation to controls marked with the\n * `maxlength` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a maximum length validator\n *\n * The following example shows how to add a maximum length validator to an input attached to an\n * ngModel binding.\n *\n * ```html\n * <input name=\"firstName\" ngModel maxlength=\"25\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet MaxLengthValidator = /*#__PURE__*/(() => {\n  class MaxLengthValidator extends AbstractValidatorDirective {\n    constructor() {\n      super(...arguments);\n      /** @internal */\n      this.inputName = 'maxlength';\n      /** @internal */\n      this.normalizeInput = input => toInteger(input);\n      /** @internal */\n      this.createValidator = maxlength => maxLengthValidator(maxlength);\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵMaxLengthValidator_BaseFactory;\n        return function MaxLengthValidator_Factory(t) {\n          return (ɵMaxLengthValidator_BaseFactory || (ɵMaxLengthValidator_BaseFactory = i0.ɵɵgetInheritedFactory(MaxLengthValidator)))(t || MaxLengthValidator);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: MaxLengthValidator,\n        selectors: [[\"\", \"maxlength\", \"\", \"formControlName\", \"\"], [\"\", \"maxlength\", \"\", \"formControl\", \"\"], [\"\", \"maxlength\", \"\", \"ngModel\", \"\"]],\n        hostVars: 1,\n        hostBindings: function MaxLengthValidator_HostBindings(rf, ctx) {\n          if (rf & 2) {\n            i0.ɵɵattribute(\"maxlength\", ctx._enabled ? ctx.maxlength : null);\n          }\n        },\n        inputs: {\n          maxlength: \"maxlength\"\n        },\n        features: [i0.ɵɵProvidersFeature([MAX_LENGTH_VALIDATOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return MaxLengthValidator;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n * Provider which adds `PatternValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst PATTERN_VALIDATOR = {\n  provide: NG_VALIDATORS,\n  useExisting: /*#__PURE__*/forwardRef(() => PatternValidator),\n  multi: true\n};\n/**\n * @description\n * A directive that adds regex pattern validation to controls marked with the\n * `pattern` attribute. The regex must match the entire control value.\n * The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a pattern validator\n *\n * The following example shows how to add a pattern validator to an input attached to an\n * ngModel binding.\n *\n * ```html\n * <input name=\"firstName\" ngModel pattern=\"[a-zA-Z ]*\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet PatternValidator = /*#__PURE__*/(() => {\n  class PatternValidator extends AbstractValidatorDirective {\n    constructor() {\n      super(...arguments);\n      /** @internal */\n      this.inputName = 'pattern';\n      /** @internal */\n      this.normalizeInput = input => input;\n      /** @internal */\n      this.createValidator = input => patternValidator(input);\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵPatternValidator_BaseFactory;\n        return function PatternValidator_Factory(t) {\n          return (ɵPatternValidator_BaseFactory || (ɵPatternValidator_BaseFactory = i0.ɵɵgetInheritedFactory(PatternValidator)))(t || PatternValidator);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: PatternValidator,\n        selectors: [[\"\", \"pattern\", \"\", \"formControlName\", \"\"], [\"\", \"pattern\", \"\", \"formControl\", \"\"], [\"\", \"pattern\", \"\", \"ngModel\", \"\"]],\n        hostVars: 1,\n        hostBindings: function PatternValidator_HostBindings(rf, ctx) {\n          if (rf & 2) {\n            i0.ɵɵattribute(\"pattern\", ctx._enabled ? ctx.pattern : null);\n          }\n        },\n        inputs: {\n          pattern: \"pattern\"\n        },\n        features: [i0.ɵɵProvidersFeature([PATTERN_VALIDATOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return PatternValidator;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst SHARED_FORM_DIRECTIVES = [ɵNgNoValidate, NgSelectOption, ɵNgSelectMultipleOption, DefaultValueAccessor, NumberValueAccessor, RangeValueAccessor, CheckboxControlValueAccessor, SelectControlValueAccessor, SelectMultipleControlValueAccessor, RadioControlValueAccessor, NgControlStatus, NgControlStatusGroup, RequiredValidator, MinLengthValidator, MaxLengthValidator, PatternValidator, CheckboxRequiredValidator, EmailValidator, MinValidator, MaxValidator];\nconst TEMPLATE_DRIVEN_DIRECTIVES = [NgModel, NgModelGroup, NgForm];\nconst REACTIVE_DRIVEN_DIRECTIVES = [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName];\n/**\n * Internal module used for sharing directives between FormsModule and ReactiveFormsModule\n */\nlet ɵInternalFormsSharedModule = /*#__PURE__*/(() => {\n  class ɵInternalFormsSharedModule {\n    static {\n      this.ɵfac = function ɵInternalFormsSharedModule_Factory(t) {\n        return new (t || ɵInternalFormsSharedModule)();\n      };\n    }\n    static {\n      this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n        type: ɵInternalFormsSharedModule\n      });\n    }\n    static {\n      this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({});\n    }\n  }\n  return ɵInternalFormsSharedModule;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Tracks the value and validity state of an array of `FormControl`,\n * `FormGroup` or `FormArray` instances.\n *\n * A `FormArray` aggregates the values of each child `FormControl` into an array.\n * It calculates its status by reducing the status values of its children. For example, if one of\n * the controls in a `FormArray` is invalid, the entire array becomes invalid.\n *\n * `FormArray` accepts one generic argument, which is the type of the controls inside.\n * If you need a heterogenous array, use {@link UntypedFormArray}.\n *\n * `FormArray` is one of the four fundamental building blocks used to define forms in Angular,\n * along with `FormControl`, `FormGroup`, and `FormRecord`.\n *\n * @usageNotes\n *\n * ### Create an array of form controls\n *\n * ```\n * const arr = new FormArray([\n *   new FormControl('Nancy', Validators.minLength(2)),\n *   new FormControl('Drew'),\n * ]);\n *\n * console.log(arr.value);   // ['Nancy', 'Drew']\n * console.log(arr.status);  // 'VALID'\n * ```\n *\n * ### Create a form array with array-level validators\n *\n * You include array-level validators and async validators. These come in handy\n * when you want to perform validation that considers the value of more than one child\n * control.\n *\n * The two types of validators are passed in separately as the second and third arg\n * respectively, or together as part of an options object.\n *\n * ```\n * const arr = new FormArray([\n *   new FormControl('Nancy'),\n *   new FormControl('Drew')\n * ], {validators: myValidator, asyncValidators: myAsyncValidator});\n * ```\n *\n * ### Set the updateOn property for all controls in a form array\n *\n * The options object is used to set a default value for each child\n * control's `updateOn` property. If you set `updateOn` to `'blur'` at the\n * array level, all child controls default to 'blur', unless the child\n * has explicitly specified a different `updateOn` value.\n *\n * ```ts\n * const arr = new FormArray([\n *    new FormControl()\n * ], {updateOn: 'blur'});\n * ```\n *\n * ### Adding or removing controls from a form array\n *\n * To change the controls in the array, use the `push`, `insert`, `removeAt` or `clear` methods\n * in `FormArray` itself. These methods ensure the controls are properly tracked in the\n * form's hierarchy. Do not modify the array of `AbstractControl`s used to instantiate\n * the `FormArray` directly, as that result in strange and unexpected behavior such\n * as broken change detection.\n *\n * @publicApi\n */\nclass FormArray extends AbstractControl {\n  /**\n   * Creates a new `FormArray` instance.\n   *\n   * @param controls An array of child controls. Each child control is given an index\n   * where it is registered.\n   *\n   * @param validatorOrOpts A synchronous validator function, or an array of\n   * such functions, or an `AbstractControlOptions` object that contains validation functions\n   * and a validation trigger.\n   *\n   * @param asyncValidator A single async validator or array of async validator functions\n   *\n   */\n  constructor(controls, validatorOrOpts, asyncValidator) {\n    super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));\n    this.controls = controls;\n    this._initObservables();\n    this._setUpdateStrategy(validatorOrOpts);\n    this._setUpControls();\n    this.updateValueAndValidity({\n      onlySelf: true,\n      // If `asyncValidator` is present, it will trigger control status change from `PENDING` to\n      // `VALID` or `INVALID`.\n      // The status should be broadcasted via the `statusChanges` observable, so we set `emitEvent`\n      // to `true` to allow that during the control creation process.\n      emitEvent: !!this.asyncValidator\n    });\n  }\n  /**\n   * Get the `AbstractControl` at the given `index` in the array.\n   *\n   * @param index Index in the array to retrieve the control. If `index` is negative, it will wrap\n   *     around from the back, and if index is greatly negative (less than `-length`), the result is\n   * undefined. This behavior is the same as `Array.at(index)`.\n   */\n  at(index) {\n    return this.controls[this._adjustIndex(index)];\n  }\n  /**\n   * Insert a new `AbstractControl` at the end of the array.\n   *\n   * @param control Form control to be inserted\n   * @param options Specifies whether this FormArray instance should emit events after a new\n   *     control is added.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges` observables emit events with the latest status and value when the control is\n   * inserted. When false, no events are emitted.\n   */\n  push(control, options = {}) {\n    this.controls.push(control);\n    this._registerControl(control);\n    this.updateValueAndValidity({\n      emitEvent: options.emitEvent\n    });\n    this._onCollectionChange();\n  }\n  /**\n   * Insert a new `AbstractControl` at the given `index` in the array.\n   *\n   * @param index Index in the array to insert the control. If `index` is negative, wraps around\n   *     from the back. If `index` is greatly negative (less than `-length`), prepends to the array.\n   * This behavior is the same as `Array.splice(index, 0, control)`.\n   * @param control Form control to be inserted\n   * @param options Specifies whether this FormArray instance should emit events after a new\n   *     control is inserted.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges` observables emit events with the latest status and value when the control is\n   * inserted. When false, no events are emitted.\n   */\n  insert(index, control, options = {}) {\n    this.controls.splice(index, 0, control);\n    this._registerControl(control);\n    this.updateValueAndValidity({\n      emitEvent: options.emitEvent\n    });\n  }\n  /**\n   * Remove the control at the given `index` in the array.\n   *\n   * @param index Index in the array to remove the control.  If `index` is negative, wraps around\n   *     from the back. If `index` is greatly negative (less than `-length`), removes the first\n   *     element. This behavior is the same as `Array.splice(index, 1)`.\n   * @param options Specifies whether this FormArray instance should emit events after a\n   *     control is removed.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges` observables emit events with the latest status and value when the control is\n   * removed. When false, no events are emitted.\n   */\n  removeAt(index, options = {}) {\n    // Adjust the index, then clamp it at no less than 0 to prevent undesired underflows.\n    let adjustedIndex = this._adjustIndex(index);\n    if (adjustedIndex < 0) adjustedIndex = 0;\n    if (this.controls[adjustedIndex]) this.controls[adjustedIndex]._registerOnCollectionChange(() => {});\n    this.controls.splice(adjustedIndex, 1);\n    this.updateValueAndValidity({\n      emitEvent: options.emitEvent\n    });\n  }\n  /**\n   * Replace an existing control.\n   *\n   * @param index Index in the array to replace the control. If `index` is negative, wraps around\n   *     from the back. If `index` is greatly negative (less than `-length`), replaces the first\n   *     element. This behavior is the same as `Array.splice(index, 1, control)`.\n   * @param control The `AbstractControl` control to replace the existing control\n   * @param options Specifies whether this FormArray instance should emit events after an\n   *     existing control is replaced with a new one.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges` observables emit events with the latest status and value when the control is\n   * replaced with a new one. When false, no events are emitted.\n   */\n  setControl(index, control, options = {}) {\n    // Adjust the index, then clamp it at no less than 0 to prevent undesired underflows.\n    let adjustedIndex = this._adjustIndex(index);\n    if (adjustedIndex < 0) adjustedIndex = 0;\n    if (this.controls[adjustedIndex]) this.controls[adjustedIndex]._registerOnCollectionChange(() => {});\n    this.controls.splice(adjustedIndex, 1);\n    if (control) {\n      this.controls.splice(adjustedIndex, 0, control);\n      this._registerControl(control);\n    }\n    this.updateValueAndValidity({\n      emitEvent: options.emitEvent\n    });\n    this._onCollectionChange();\n  }\n  /**\n   * Length of the control array.\n   */\n  get length() {\n    return this.controls.length;\n  }\n  /**\n   * Sets the value of the `FormArray`. It accepts an array that matches\n   * the structure of the control.\n   *\n   * This method performs strict checks, and throws an error if you try\n   * to set the value of a control that doesn't exist or if you exclude the\n   * value of a control.\n   *\n   * @usageNotes\n   * ### Set the values for the controls in the form array\n   *\n   * ```\n   * const arr = new FormArray([\n   *   new FormControl(),\n   *   new FormControl()\n   * ]);\n   * console.log(arr.value);   // [null, null]\n   *\n   * arr.setValue(['Nancy', 'Drew']);\n   * console.log(arr.value);   // ['Nancy', 'Drew']\n   * ```\n   *\n   * @param value Array of values for the controls\n   * @param options Configure options that determine how the control propagates changes and\n   * emits events after the value changes\n   *\n   * * `onlySelf`: When true, each change only affects this control, and not its parent. Default\n   * is false.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges`\n   * observables emit events with the latest status and value when the control value is updated.\n   * When false, no events are emitted.\n   * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity\n   * updateValueAndValidity} method.\n   */\n  setValue(value, options = {}) {\n    assertAllValuesPresent(this, false, value);\n    value.forEach((newValue, index) => {\n      assertControlPresent(this, false, index);\n      this.at(index).setValue(newValue, {\n        onlySelf: true,\n        emitEvent: options.emitEvent\n      });\n    });\n    this.updateValueAndValidity(options);\n  }\n  /**\n   * Patches the value of the `FormArray`. It accepts an array that matches the\n   * structure of the control, and does its best to match the values to the correct\n   * controls in the group.\n   *\n   * It accepts both super-sets and sub-sets of the array without throwing an error.\n   *\n   * @usageNotes\n   * ### Patch the values for controls in a form array\n   *\n   * ```\n   * const arr = new FormArray([\n   *    new FormControl(),\n   *    new FormControl()\n   * ]);\n   * console.log(arr.value);   // [null, null]\n   *\n   * arr.patchValue(['Nancy']);\n   * console.log(arr.value);   // ['Nancy', null]\n   * ```\n   *\n   * @param value Array of latest values for the controls\n   * @param options Configure options that determine how the control propagates changes and\n   * emits events after the value changes\n   *\n   * * `onlySelf`: When true, each change only affects this control, and not its parent. Default\n   * is false.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges` observables emit events with the latest status and value when the control\n   * value is updated. When false, no events are emitted. The configuration options are passed to\n   * the {@link AbstractControl#updateValueAndValidity updateValueAndValidity} method.\n   */\n  patchValue(value, options = {}) {\n    // Even though the `value` argument type doesn't allow `null` and `undefined` values, the\n    // `patchValue` can be called recursively and inner data structures might have these values,\n    // so we just ignore such cases when a field containing FormArray instance receives `null` or\n    // `undefined` as a value.\n    if (value == null /* both `null` and `undefined` */) return;\n    value.forEach((newValue, index) => {\n      if (this.at(index)) {\n        this.at(index).patchValue(newValue, {\n          onlySelf: true,\n          emitEvent: options.emitEvent\n        });\n      }\n    });\n    this.updateValueAndValidity(options);\n  }\n  /**\n   * Resets the `FormArray` and all descendants are marked `pristine` and `untouched`, and the\n   * value of all descendants to null or null maps.\n   *\n   * You reset to a specific form state by passing in an array of states\n   * that matches the structure of the control. The state is a standalone value\n   * or a form state object with both a value and a disabled status.\n   *\n   * @usageNotes\n   * ### Reset the values in a form array\n   *\n   * ```ts\n   * const arr = new FormArray([\n   *    new FormControl(),\n   *    new FormControl()\n   * ]);\n   * arr.reset(['name', 'last name']);\n   *\n   * console.log(arr.value);  // ['name', 'last name']\n   * ```\n   *\n   * ### Reset the values in a form array and the disabled status for the first control\n   *\n   * ```\n   * arr.reset([\n   *   {value: 'name', disabled: true},\n   *   'last'\n   * ]);\n   *\n   * console.log(arr.value);  // ['last']\n   * console.log(arr.at(0).status);  // 'DISABLED'\n   * ```\n   *\n   * @param value Array of values for the controls\n   * @param options Configure options that determine how the control propagates changes and\n   * emits events after the value changes\n   *\n   * * `onlySelf`: When true, each change only affects this control, and not its parent. Default\n   * is false.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges`\n   * observables emit events with the latest status and value when the control is reset.\n   * When false, no events are emitted.\n   * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity\n   * updateValueAndValidity} method.\n   */\n  reset(value = [], options = {}) {\n    this._forEachChild((control, index) => {\n      control.reset(value[index], {\n        onlySelf: true,\n        emitEvent: options.emitEvent\n      });\n    });\n    this._updatePristine(options);\n    this._updateTouched(options);\n    this.updateValueAndValidity(options);\n  }\n  /**\n   * The aggregate value of the array, including any disabled controls.\n   *\n   * Reports all values regardless of disabled status.\n   */\n  getRawValue() {\n    return this.controls.map(control => control.getRawValue());\n  }\n  /**\n   * Remove all controls in the `FormArray`.\n   *\n   * @param options Specifies whether this FormArray instance should emit events after all\n   *     controls are removed.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges` observables emit events with the latest status and value when all controls\n   * in this FormArray instance are removed. When false, no events are emitted.\n   *\n   * @usageNotes\n   * ### Remove all elements from a FormArray\n   *\n   * ```ts\n   * const arr = new FormArray([\n   *    new FormControl(),\n   *    new FormControl()\n   * ]);\n   * console.log(arr.length);  // 2\n   *\n   * arr.clear();\n   * console.log(arr.length);  // 0\n   * ```\n   *\n   * It's a simpler and more efficient alternative to removing all elements one by one:\n   *\n   * ```ts\n   * const arr = new FormArray([\n   *    new FormControl(),\n   *    new FormControl()\n   * ]);\n   *\n   * while (arr.length) {\n   *    arr.removeAt(0);\n   * }\n   * ```\n   */\n  clear(options = {}) {\n    if (this.controls.length < 1) return;\n    this._forEachChild(control => control._registerOnCollectionChange(() => {}));\n    this.controls.splice(0);\n    this.updateValueAndValidity({\n      emitEvent: options.emitEvent\n    });\n  }\n  /**\n   * Adjusts a negative index by summing it with the length of the array. For very negative\n   * indices, the result may remain negative.\n   * @internal\n   */\n  _adjustIndex(index) {\n    return index < 0 ? index + this.length : index;\n  }\n  /** @internal */\n  _syncPendingControls() {\n    let subtreeUpdated = this.controls.reduce((updated, child) => {\n      return child._syncPendingControls() ? true : updated;\n    }, false);\n    if (subtreeUpdated) this.updateValueAndValidity({\n      onlySelf: true\n    });\n    return subtreeUpdated;\n  }\n  /** @internal */\n  _forEachChild(cb) {\n    this.controls.forEach((control, index) => {\n      cb(control, index);\n    });\n  }\n  /** @internal */\n  _updateValue() {\n    this.value = this.controls.filter(control => control.enabled || this.disabled).map(control => control.value);\n  }\n  /** @internal */\n  _anyControls(condition) {\n    return this.controls.some(control => control.enabled && condition(control));\n  }\n  /** @internal */\n  _setUpControls() {\n    this._forEachChild(control => this._registerControl(control));\n  }\n  /** @internal */\n  _allControlsDisabled() {\n    for (const control of this.controls) {\n      if (control.enabled) return false;\n    }\n    return this.controls.length > 0 || this.disabled;\n  }\n  _registerControl(control) {\n    control.setParent(this);\n    control._registerOnCollectionChange(this._onCollectionChange);\n  }\n  /** @internal */\n  _find(name) {\n    return this.at(name) ?? null;\n  }\n}\nconst UntypedFormArray = FormArray;\n/**\n * @description\n * Asserts that the given control is an instance of `FormArray`\n *\n * @publicApi\n */\nconst isFormArray = control => control instanceof FormArray;\nfunction isAbstractControlOptions(options) {\n  return !!options && (options.asyncValidators !== undefined || options.validators !== undefined || options.updateOn !== undefined);\n}\n// clang-format on\n/**\n * @description\n * Creates an `AbstractControl` from a user-specified configuration.\n *\n * The `FormBuilder` provides syntactic sugar that shortens creating instances of a\n * `FormControl`, `FormGroup`, or `FormArray`. It reduces the amount of boilerplate needed to\n * build complex forms.\n *\n * @see [Reactive Forms Guide](guide/reactive-forms)\n *\n * @publicApi\n */\nlet FormBuilder = /*#__PURE__*/(() => {\n  class FormBuilder {\n    constructor() {\n      this.useNonNullable = false;\n    }\n    /**\n     * @description\n     * Returns a FormBuilder in which automatically constructed `FormControl` elements\n     * have `{nonNullable: true}` and are non-nullable.\n     *\n     * **Constructing non-nullable controls**\n     *\n     * When constructing a control, it will be non-nullable, and will reset to its initial value.\n     *\n     * ```ts\n     * let nnfb = new FormBuilder().nonNullable;\n     * let name = nnfb.control('Alex'); // FormControl<string>\n     * name.reset();\n     * console.log(name); // 'Alex'\n     * ```\n     *\n     * **Constructing non-nullable groups or arrays**\n     *\n     * When constructing a group or array, all automatically created inner controls will be\n     * non-nullable, and will reset to their initial values.\n     *\n     * ```ts\n     * let nnfb = new FormBuilder().nonNullable;\n     * let name = nnfb.group({who: 'Alex'}); // FormGroup<{who: FormControl<string>}>\n     * name.reset();\n     * console.log(name); // {who: 'Alex'}\n     * ```\n     * **Constructing *nullable* fields on groups or arrays**\n     *\n     * It is still possible to have a nullable field. In particular, any `FormControl` which is\n     * *already* constructed will not be altered. For example:\n     *\n     * ```ts\n     * let nnfb = new FormBuilder().nonNullable;\n     * // FormGroup<{who: FormControl<string|null>}>\n     * let name = nnfb.group({who: new FormControl('Alex')});\n     * name.reset(); console.log(name); // {who: null}\n     * ```\n     *\n     * Because the inner control is constructed explicitly by the caller, the builder has\n     * no control over how it is created, and cannot exclude the `null`.\n     */\n    get nonNullable() {\n      const nnfb = new FormBuilder();\n      nnfb.useNonNullable = true;\n      return nnfb;\n    }\n    group(controls, options = null) {\n      const reducedControls = this._reduceControls(controls);\n      let newOptions = {};\n      if (isAbstractControlOptions(options)) {\n        // `options` are `AbstractControlOptions`\n        newOptions = options;\n      } else if (options !== null) {\n        // `options` are legacy form group options\n        newOptions.validators = options.validator;\n        newOptions.asyncValidators = options.asyncValidator;\n      }\n      return new FormGroup(reducedControls, newOptions);\n    }\n    /**\n     * @description\n     * Constructs a new `FormRecord` instance. Accepts a single generic argument, which is an object\n     * containing all the keys and corresponding inner control types.\n     *\n     * @param controls A collection of child controls. The key for each child is the name\n     * under which it is registered.\n     *\n     * @param options Configuration options object for the `FormRecord`. The object should have the\n     * `AbstractControlOptions` type and might contain the following fields:\n     * * `validators`: A synchronous validator function, or an array of validator functions.\n     * * `asyncValidators`: A single async validator or array of async validator functions.\n     * * `updateOn`: The event upon which the control should be updated (options: 'change' | 'blur'\n     * | submit').\n     */\n    record(controls, options = null) {\n      const reducedControls = this._reduceControls(controls);\n      // Cast to `any` because the inferred types are not as specific as Element.\n      return new FormRecord(reducedControls, options);\n    }\n    /**\n     * @description\n     * Constructs a new `FormControl` with the given state, validators and options. Sets\n     * `{nonNullable: true}` in the options to get a non-nullable control. Otherwise, the\n     * control will be nullable. Accepts a single generic argument, which is the type  of the\n     * control's value.\n     *\n     * @param formState Initializes the control with an initial state value, or\n     * with an object that contains both a value and a disabled status.\n     *\n     * @param validatorOrOpts A synchronous validator function, or an array of\n     * such functions, or a `FormControlOptions` object that contains\n     * validation functions and a validation trigger.\n     *\n     * @param asyncValidator A single async validator or array of async validator\n     * functions.\n     *\n     * @usageNotes\n     *\n     * ### Initialize a control as disabled\n     *\n     * The following example returns a control with an initial value in a disabled state.\n     *\n     * <code-example path=\"forms/ts/formBuilder/form_builder_example.ts\" region=\"disabled-control\">\n     * </code-example>\n     */\n    control(formState, validatorOrOpts, asyncValidator) {\n      let newOptions = {};\n      if (!this.useNonNullable) {\n        return new FormControl(formState, validatorOrOpts, asyncValidator);\n      }\n      if (isAbstractControlOptions(validatorOrOpts)) {\n        // If the second argument is options, then they are copied.\n        newOptions = validatorOrOpts;\n      } else {\n        // If the other arguments are validators, they are copied into an options object.\n        newOptions.validators = validatorOrOpts;\n        newOptions.asyncValidators = asyncValidator;\n      }\n      return new FormControl(formState, {\n        ...newOptions,\n        nonNullable: true\n      });\n    }\n    /**\n     * Constructs a new `FormArray` from the given array of configurations,\n     * validators and options. Accepts a single generic argument, which is the type of each control\n     * inside the array.\n     *\n     * @param controls An array of child controls or control configs. Each child control is given an\n     *     index when it is registered.\n     *\n     * @param validatorOrOpts A synchronous validator function, or an array of such functions, or an\n     *     `AbstractControlOptions` object that contains\n     * validation functions and a validation trigger.\n     *\n     * @param asyncValidator A single async validator or array of async validator functions.\n     */\n    array(controls, validatorOrOpts, asyncValidator) {\n      const createdControls = controls.map(c => this._createControl(c));\n      // Cast to `any` because the inferred types are not as specific as Element.\n      return new FormArray(createdControls, validatorOrOpts, asyncValidator);\n    }\n    /** @internal */\n    _reduceControls(controls) {\n      const createdControls = {};\n      Object.keys(controls).forEach(controlName => {\n        createdControls[controlName] = this._createControl(controls[controlName]);\n      });\n      return createdControls;\n    }\n    /** @internal */\n    _createControl(controls) {\n      if (controls instanceof FormControl) {\n        return controls;\n      } else if (controls instanceof AbstractControl) {\n        // A control; just return it\n        return controls;\n      } else if (Array.isArray(controls)) {\n        // ControlConfig Tuple\n        const value = controls[0];\n        const validator = controls.length > 1 ? controls[1] : null;\n        const asyncValidator = controls.length > 2 ? controls[2] : null;\n        return this.control(value, validator, asyncValidator);\n      } else {\n        // T or FormControlState<T>\n        return this.control(controls);\n      }\n    }\n    static {\n      this.ɵfac = function FormBuilder_Factory(t) {\n        return new (t || FormBuilder)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: FormBuilder,\n        factory: FormBuilder.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return FormBuilder;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n * `NonNullableFormBuilder` is similar to {@link FormBuilder}, but automatically constructed\n * {@link FormControl} elements have `{nonNullable: true}` and are non-nullable.\n *\n * @publicApi\n */\nlet NonNullableFormBuilder = /*#__PURE__*/(() => {\n  class NonNullableFormBuilder {\n    static {\n      this.ɵfac = function NonNullableFormBuilder_Factory(t) {\n        return new (t || NonNullableFormBuilder)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: NonNullableFormBuilder,\n        factory: () => (() => inject(FormBuilder).nonNullable)(),\n        providedIn: 'root'\n      });\n    }\n  }\n  return NonNullableFormBuilder;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * UntypedFormBuilder is the same as `FormBuilder`, but it provides untyped controls.\n */\nlet UntypedFormBuilder = /*#__PURE__*/(() => {\n  class UntypedFormBuilder extends FormBuilder {\n    group(controlsConfig, options = null) {\n      return super.group(controlsConfig, options);\n    }\n    /**\n     * Like `FormBuilder#control`, except the resulting control is untyped.\n     */\n    control(formState, validatorOrOpts, asyncValidator) {\n      return super.control(formState, validatorOrOpts, asyncValidator);\n    }\n    /**\n     * Like `FormBuilder#array`, except the resulting array is untyped.\n     */\n    array(controlsConfig, validatorOrOpts, asyncValidator) {\n      return super.array(controlsConfig, validatorOrOpts, asyncValidator);\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵUntypedFormBuilder_BaseFactory;\n        return function UntypedFormBuilder_Factory(t) {\n          return (ɵUntypedFormBuilder_BaseFactory || (ɵUntypedFormBuilder_BaseFactory = i0.ɵɵgetInheritedFactory(UntypedFormBuilder)))(t || UntypedFormBuilder);\n        };\n      })();\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: UntypedFormBuilder,\n        factory: UntypedFormBuilder.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return UntypedFormBuilder;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the forms package.\n */\n/**\n * @publicApi\n */\nconst VERSION = /*#__PURE__*/new Version('17.3.11');\n\n/**\n * Exports the required providers and directives for template-driven forms,\n * making them available for import by NgModules that import this module.\n *\n * @see [Forms Overview](/guide/forms-overview)\n * @see [Template-driven Forms Guide](/guide/forms)\n *\n * @publicApi\n */\nlet FormsModule = /*#__PURE__*/(() => {\n  class FormsModule {\n    /**\n     * @description\n     * Provides options for configuring the forms module.\n     *\n     * @param opts An object of configuration options\n     * * `callSetDisabledState` Configures whether to `always` call `setDisabledState`, which is more\n     * correct, or to only call it `whenDisabled`, which is the legacy behavior.\n     */\n    static withConfig(opts) {\n      return {\n        ngModule: FormsModule,\n        providers: [{\n          provide: CALL_SET_DISABLED_STATE,\n          useValue: opts.callSetDisabledState ?? setDisabledStateDefault\n        }]\n      };\n    }\n    static {\n      this.ɵfac = function FormsModule_Factory(t) {\n        return new (t || FormsModule)();\n      };\n    }\n    static {\n      this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n        type: FormsModule\n      });\n    }\n    static {\n      this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n        imports: [ɵInternalFormsSharedModule]\n      });\n    }\n  }\n  return FormsModule;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Exports the required infrastructure and directives for reactive forms,\n * making them available for import by NgModules that import this module.\n *\n * @see [Forms Overview](guide/forms-overview)\n * @see [Reactive Forms Guide](guide/reactive-forms)\n *\n * @publicApi\n */\nlet ReactiveFormsModule = /*#__PURE__*/(() => {\n  class ReactiveFormsModule {\n    /**\n     * @description\n     * Provides options for configuring the reactive forms module.\n     *\n     * @param opts An object of configuration options\n     * * `warnOnNgModelWithFormControl` Configures when to emit a warning when an `ngModel`\n     * binding is used with reactive form directives.\n     * * `callSetDisabledState` Configures whether to `always` call `setDisabledState`, which is more\n     * correct, or to only call it `whenDisabled`, which is the legacy behavior.\n     */\n    static withConfig(opts) {\n      return {\n        ngModule: ReactiveFormsModule,\n        providers: [{\n          provide: NG_MODEL_WITH_FORM_CONTROL_WARNING,\n          useValue: opts.warnOnNgModelWithFormControl ?? 'always'\n        }, {\n          provide: CALL_SET_DISABLED_STATE,\n          useValue: opts.callSetDisabledState ?? setDisabledStateDefault\n        }]\n      };\n    }\n    static {\n      this.ɵfac = function ReactiveFormsModule_Factory(t) {\n        return new (t || ReactiveFormsModule)();\n      };\n    }\n    static {\n      this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n        type: ReactiveFormsModule\n      });\n    }\n    static {\n      this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n        imports: [ɵInternalFormsSharedModule]\n      });\n    }\n  }\n  return ReactiveFormsModule;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * @module\n * @description\n * This module is used for handling user input, by defining and building a `FormGroup` that\n * consists of `FormControl` objects, and mapping them onto the DOM. `FormControl`\n * objects can then be used to read information from the form DOM elements.\n *\n * Forms providers are not included in default providers; you must import these providers\n * explicitly.\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n// This file only reexports content of the `src` folder. Keep it that way.\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AbstractControl, AbstractControlDirective, AbstractFormGroupDirective, COMPOSITION_BUFFER_MODE, CheckboxControlValueAccessor, CheckboxRequiredValidator, ControlContainer, DefaultValueAccessor, EmailValidator, FormArray, FormArrayName, FormBuilder, FormControl, FormControlDirective, FormControlName, FormGroup, FormGroupDirective, FormGroupName, FormRecord, FormsModule, MaxLengthValidator, MaxValidator, MinLengthValidator, MinValidator, NG_ASYNC_VALIDATORS, NG_VALIDATORS, NG_VALUE_ACCESSOR, NgControl, NgControlStatus, NgControlStatusGroup, NgForm, NgModel, NgModelGroup, NgSelectOption, NonNullableFormBuilder, NumberValueAccessor, PatternValidator, RadioControlValueAccessor, RangeValueAccessor, ReactiveFormsModule, RequiredValidator, SelectControlValueAccessor, SelectMultipleControlValueAccessor, UntypedFormArray, UntypedFormBuilder, UntypedFormControl, UntypedFormGroup, VERSION, Validators, isFormArray, isFormControl, isFormGroup, isFormRecord, ɵInternalFormsSharedModule, ɵNgNoValidate, ɵNgSelectMultipleOption };\n","export const environment = {\r\n    production: false,\r\n    apiUrl: 'https://grupo2.java2024.linti.unlp.edu.ar', \r\n    globalVar: 'valorGlobal'\r\n  };\r\n  ","import { Injectable } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { Observable, of, map, catchError } from 'rxjs';\r\nimport { environment } from '../../../../evironments/environment';\r\n\r\n@Injectable({\r\n  providedIn: 'root',\r\n})\r\nexport class AuthService {\r\n  private apiUrl = environment.apiUrl + '/api/login';\r\n\r\n  constructor(private http: HttpClient) {}\r\n\r\n    logIn(email: string, password: string, rememberMe: boolean): Observable<{ success: boolean, message?: string }> {\r\n      return this.http.post<{ JWT: { string: string } }>(`${this.apiUrl}`, { email, password })\r\n      .pipe(\r\n        map(response => {\r\n          const token = response.JWT.string;\r\n          \r\n          // Decodifica el JWT (por ejemplo, utilizando jwt-decode) para extraer role y userId\r\n          const payload = this.decodeToken(token);\r\n          const role = payload.role;\r\n          const userId = payload.id;\r\n          console.log('role, userId',role, userId);\r\n          //console.log('token',token);\r\n          //console.log('rememberMe',rememberMe);\r\n          if (rememberMe) {\r\n            this.clearStorageItems();\r\n            this.setStorageItems(token, role, userId);\r\n          } else {\r\n            this.clearSessionItems();\r\n            this.setSessionItems(token, role, userId);\r\n          }\r\n          \r\n          return { success: true };\r\n        }),\r\n        catchError(error => {\r\n          let errorMsg = 'Login failed';\r\n          if (error.status === 401) {\r\n            errorMsg = 'Invalid email or password';\r\n          } else if (error.status === 404) {\r\n            errorMsg = 'Email not found';\r\n          }\r\n          return of({ success: false, message: errorMsg });\r\n        })\r\n      );\r\n    }\r\n\r\n  logOut(): void {\r\n    this.clearStorageItems();\r\n    this.clearSessionItems();\r\n  }\r\n\r\n  isLoggedIn(): boolean {\r\n    return (\r\n      !!this.getStorageItem('authToken') || !!this.getSessionItem('authToken')\r\n    );\r\n  }\r\n\r\n  getUserRole(): string | null {\r\n    return this.getStorageItem('role') || this.getSessionItem('role') || null;\r\n  }\r\n\r\n  getUserId(): string | null {\r\n    return (\r\n      this.getStorageItem('userId') || this.getSessionItem('userId') || null\r\n    );\r\n  }\r\n\r\n  getToken(): string | null {\r\n    return this.getStorageItem('authToken') || this.getSessionItem('authToken') ||\r\n      null;\r\n  }\r\n\r\n  private setStorageItems(token: string, role: string, userId: string): void {\r\n    try {\r\n      localStorage.setItem('authToken', token);\r\n      localStorage.setItem('role', role);\r\n      localStorage.setItem('userId', userId);\r\n      //console.log('Saved in localStorage');\r\n    } catch (e) {\r\n      console.error('Error setting items in localStorage:', e);\r\n    }\r\n  }\r\n\r\n  private setSessionItems(token: string, role: string, userId: string): void {\r\n    try {\r\n      sessionStorage.setItem('authToken', token);\r\n      sessionStorage.setItem('role', role);\r\n      sessionStorage.setItem('userId', userId);\r\n      //console.log('Saved in sessionStorage');\r\n    } catch (e) {\r\n      console.error('Error setting items in sessionStorage:', e);\r\n    }\r\n  }\r\n\r\n  private clearStorageItems(): void {\r\n    try {\r\n      localStorage.removeItem('authToken');\r\n      localStorage.removeItem('role');\r\n      localStorage.removeItem('userId');\r\n    } catch (e) {\r\n      console.error('Error clearing items from localStorage:', e);\r\n    }\r\n  }\r\n\r\n  private clearSessionItems(): void {\r\n    try {\r\n      sessionStorage.removeItem('authToken');\r\n      sessionStorage.removeItem('role');\r\n      sessionStorage.removeItem('userId');\r\n    } catch (e) {\r\n      console.error('Error clearing items from sessionStorage:', e);\r\n    }\r\n  }\r\n\r\n  private getStorageItem(key: string): string | null {\r\n    try {\r\n      return localStorage.getItem(key);\r\n    } catch (e) {\r\n      //console.error('Error getting item from localStorage:', e);\r\n      return null;\r\n    }\r\n  }\r\n\r\n  private getSessionItem(key: string): string | null {\r\n    try {\r\n      return sessionStorage.getItem(key);\r\n    } catch (e) {\r\n      //console.error('Error getting item from sessionStorage:', e);\r\n      return null;\r\n    }\r\n  }\r\n\r\n  private decodeToken(token: string): any {\r\n    // Usa una librería como jwt-decode o implementa tu propio decodificador si es necesario.\r\n    const payload = JSON.parse(atob(token.split('.')[1]));\r\n    return payload;\r\n  }\r\n}\r\n","import { Component } from '@angular/core';\r\nimport {ReactiveFormsModule, FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { AuthService } from '../../core/services/auth/auth.service';\r\nimport { Router } from '@angular/router';\r\nimport { CommonModule } from '@angular/common';\r\n\r\n@Component({\r\n  selector: 'app-login',\r\n  standalone: true,\r\n  imports: [ReactiveFormsModule, CommonModule],\r\n  templateUrl: './login.component.html',\r\n  styleUrl: './login.component.scss',\r\n})\r\nexport class LoginComponent {\r\n  loginForm: FormGroup;\r\n  error: string = '';\r\n\r\n  constructor(private authService: AuthService, private router: Router, private formBuilder: FormBuilder) {\r\n    this.loginForm = this.formBuilder.group({\r\n      email: ['', [Validators.required, Validators.email]],\r\n      password: ['', Validators.required],\r\n      rememberMe: [false],\r\n    });\r\n   }\r\n\r\n  onLogin() {\r\n    if (this.loginForm.valid) {\r\n      const { email, password, rememberMe } = this.loginForm.value;\r\n      \r\n      this.authService.logIn(email, password, rememberMe).subscribe(result => {\r\n        if (result.success) {\r\n          this.router.navigate(['/home']);\r\n        } else {\r\n          this.error = result.message || 'Error de inicio de sesión';\r\n        }\r\n      });\r\n    } else {\r\n      this.error = 'Email y Contraseña invalidos';\r\n    }\r\n  }\r\n}\r\n","<div\r\n  class=\"container-fluid vh-100 d-flex flex-column justify-content-center align-items-center login-background\"\r\n  style=\"overflow: hidden\"\r\n>\r\n  <div class=\"logo-container mb-5\">\r\n    <img\r\n      src=\"assets/logo_salacomunitaria.svg\"\r\n      alt=\"Logo principal\"\r\n      class=\"img-fluid logo-principal\"\r\n    />\r\n  </div>\r\n\r\n  <div class=\"login-container col-12 col-md-8 col-lg-8 col-xl-4\">\r\n    <form\r\n      #aux=\"ngForm\"\r\n      [formGroup]=\"loginForm\"\r\n      (ngSubmit)=\"onLogin()\"\r\n      class=\"login-form p-4 shadow\"\r\n    >\r\n      <div class=\"input-group mb-3\">\r\n        <span\r\n          class=\"input-group-text text-white align-items-center justify-content-center\"\r\n          [ngClass]=\"{\r\n            'is-invalid':\r\n              (loginForm.get('email')?.dirty ||\r\n                loginForm.get('email')?.touched ||\r\n                aux.submitted) &&\r\n              loginForm.get('email')?.invalid\r\n          }\"\r\n        >\r\n          <i class=\"bi bi-envelope\"></i>\r\n        </span>\r\n        <input\r\n          type=\"email\"\r\n          id=\"email\"\r\n          formControlName=\"email\"\r\n          class=\"form-control login-input text-white\"\r\n          placeholder=\"Ingrese su email\"\r\n          aria-label=\"Email\"\r\n          [ngClass]=\"{\r\n            'is-invalid':\r\n              (loginForm.get('email')?.dirty ||\r\n                loginForm.get('email')?.touched ||\r\n                aux.submitted) &&\r\n              loginForm.get('email')?.invalid\r\n          }\"\r\n        />\r\n      </div>\r\n      <div class=\"input-group mb-3\">\r\n        <span\r\n          class=\"input-group-text text-white align-items-center justify-content-center\"\r\n          [ngClass]=\"{\r\n            'is-invalid':\r\n              (loginForm.get('password')?.dirty ||\r\n                loginForm.get('password')?.touched ||\r\n                aux.submitted) &&\r\n              loginForm.get('password')?.invalid\r\n          }\"\r\n          >\r\n          <i class=\"bi bi-lock\"></i>\r\n        </span>\r\n        <input\r\n          type=\"password\"\r\n          id=\"password\"\r\n          formControlName=\"password\"\r\n          class=\"form-control login-input text-white\"\r\n          placeholder=\"Ingrese su contraseña\"\r\n          aria-label=\"Contraseña\"\r\n          [ngClass]=\"{\r\n            'is-invalid':\r\n              (loginForm.get('password')?.dirty ||\r\n                loginForm.get('password')?.touched ||\r\n                aux.submitted) &&\r\n              loginForm.get('password')?.invalid\r\n          }\"\r\n        />\r\n      </div>\r\n      <button type=\"submit\" class=\"btn login-btn w-100 text-white\">\r\n        LOGIN\r\n      </button>\r\n      <div class=\"error-container\">\r\n        <span class=\"error-message\">{{ error }}</span>\r\n      </div>\r\n      <div class=\"form-check\">\r\n        <input\r\n          class=\"form-check-input\"\r\n          type=\"checkbox\"\r\n          id=\"rememberMe\"\r\n          formControlName=\"rememberMe\"\r\n        />\r\n        <label class=\"form-check-label\" for=\"rememberMe\">Recordarme</label>\r\n      </div>\r\n    </form>\r\n  </div>\r\n\r\n  <footer class=\"footer mt-auto py-3 w-100\">\r\n    <div\r\n      class=\"container d-flex justify-content-center align-items-center footer-container\"\r\n    >\r\n      <img\r\n        src=\"assets/logo_informatica.png\"\r\n        alt=\"Logo facultad Informatica\"\r\n        class=\"logo-footer mx-2\"\r\n      />\r\n      <div class=\"vr\"></div>\r\n      <img\r\n        src=\"assets/logo_unlp.png\"\r\n        alt=\"Logo UNLP\"\r\n        class=\"logo-footer mx-2\"\r\n      />\r\n      <div class=\"vr\"></div>\r\n      <img\r\n        src=\"assets/logo_veterinaria.png\"\r\n        alt=\"Logo facultad Veterinaria\"\r\n        class=\"logo-footer mx-2\"\r\n      />\r\n    </div>\r\n  </footer>\r\n</div>\r\n","import { Component, OnInit} from '@angular/core';\r\nimport { AuthService } from '../../../core/services/auth/auth.service';\r\nimport { CommonModule } from '@angular/common';\r\nimport { RouterModule } from '@angular/router';\r\nimport { Router } from '@angular/router';\r\n@Component({\r\n  selector: 'app-navbar',\r\n  standalone: true,\r\n  imports: [CommonModule, RouterModule],\r\n  templateUrl: './navbar.component.html',\r\n  styleUrl: './navbar.component.scss'\r\n})\r\nexport class NavbarComponent implements OnInit{\r\n  isAdmin: boolean = false;\r\n  constructor(private authService: AuthService, private router: Router) {}\r\n\r\n  ngOnInit() {\r\n    this.isAdmin = this.authService.getUserRole() === 'Admin';\r\n  }\r\n\r\n  logout() {\r\n    this.authService.logOut();\r\n    this.router.navigate(['/']);\r\n  }\r\n}\r\n","<nav class=\"navbar navbar-container\">\r\n  <div class=\"container-fluid text-center\">\r\n    <div class=\"row tex-white\">\r\n      <div class=\"col col-md-3 col-lg col-xl-2\">\r\n        <a routerLink=\"/home\" class=\"hidden-link\"></a>\r\n      </div>\r\n      <div class=\"col d-flex\">\r\n        <div class=\"row\">\r\n          <div class=\"col justify-content-center\">\r\n            <a  routerLink=\"/inventory\" class=\"nav-link\" routerLinkActive=\"active-link\">INVENTARIO</a>\r\n          </div>\r\n          <div class=\"col justify-content-center\">\r\n            <a routerLink=\"/production\" class=\"nav-link\" routerLinkActive=\"active-link\">PRODUCCION</a>\r\n          </div>\r\n          <div class=\"col justify-content-center\">\r\n            <a routerLink=\"/recipes\" class=\"nav-link\" routerLinkActive=\"active-link\">RECETAS</a>\r\n          </div>\r\n        </div>\r\n      </div>\r\n      <div class=\"col d-flex col-lg-1\"></div>\r\n      <div class=\"col d-flex justify-content-end\">\r\n        <div class=\"row\">\r\n          <div class=\"col justify-content-center\">\r\n            <a routerLink=\"/history\" class=\"nav-link\" routerLinkActive=\"active-link\">HISTORIAL</a>\r\n          </div>\r\n          <div class=\"col justify-content-center\" *ngIf=\"isAdmin\">\r\n            <a routerLink=\"/users\" class=\"nav-link\" routerLinkActive=\"active-link\">USUARIOS</a>\r\n          </div>\r\n          <div class=\"col justify-content-end\">\r\n            <div class=\"dropdown\">\r\n              <button class=\"btn btn-light\" type=\"button\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">\r\n                <i class=\"bi bi-list\"></i>\r\n              </button>\r\n              <ul class=\"dropdown-menu dropdown-menu-end custom-dropdown-menu\">\r\n                <!--li><button routerLink=\"#\" class=\"dropdown-item\" type=\"button\">| VER CALENDARIO</button></li-->\r\n                <li><button routerLink=\"/providers\" class=\"dropdown-item\" type=\"button\">| PROVEEDORES</button></li>\r\n                <li><button routerLink=\"/clients\" class=\"dropdown-item\" type=\"button\">| CLIENTES</button></li>\r\n                <li><button routerLink=\"/profile\" class=\"dropdown-item\" type=\"button\">| MI PERFIL</button></li>\r\n                <li><button class=\"dropdown-item\" type=\"button\" (click)=\"logout()\">| CERRAR SESIÓN</button></li>\r\n              </ul>\r\n            </div>\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</nav>\r\n","import { HttpErrorResponse } from '@angular/common/http';\r\nimport { Observable, throwError } from 'rxjs';\r\n\r\nexport function handleError(error: HttpErrorResponse): Observable<never> {\r\n  let errorMessage = '';\r\n\r\n  /*if (error.error instanceof ErrorEvent) {\r\n    console.error('Client-side error:', error.error.message);\r\n    errorMessage = `Client-side error: ${error.error.message}`;\r\n  } else {\r\n    console.error(`Server-side error: ${error.status} - ${error.message}`);\r\n    errorMessage = `Server-side error: ${error.status}\\nMessage: ${error.message}`;\r\n  }*/\r\n\r\n  return throwError(() => new Error(errorMessage));\r\n}\r\n","import { TableData } from '../interfaces/table-data';\r\nimport { User } from '../interfaces/entities/user';\r\n\r\nexport function mapToTableData(data: any[]): TableData[] {\r\n    return data.map(item => {\r\n      let tableDataItem: TableData = {};\r\n      for (let key in item) {\r\n        tableDataItem[key] = item[key];\r\n      }\r\n      return tableDataItem;\r\n    });\r\n  }\r\n\r\nexport function mapToUser(data: any): User {\r\n    let user: User = {\r\n      id: data.id,\r\n      name: data.name,\r\n      surname: data.surname,\r\n      email: data.email,\r\n      phone: data.phone,\r\n      password: data.password,\r\n      role: data.role\r\n    };\r\n    return user;\r\n  }\r\n\r\n/**\r\n * Formatea una fecha para un input de tipo datetime-local.\r\n * @param date - Fecha en milisegundos o cadena de texto que puede ser convertida a un objeto Date.\r\n * @returns La fecha formateada en el formato YYYY-MM-DDTHH:MM.\r\n */\r\nexport const formatDate = (date: any): string => {\r\n  // Verifica si el parámetro es una fecha válida\r\n  if (!date) return '';\r\n\r\n  // Convierte el parámetro a un objeto Date\r\n  const dateObj = new Date(date);\r\n\r\n  // Obtiene los componentes de la fecha\r\n  const year = dateObj.getFullYear();\r\n  const month = String(dateObj.getMonth() + 1).padStart(2, '0'); // Meses desde 0 (enero) hasta 11 (diciembre)\r\n  const day = String(dateObj.getDate()).padStart(2, '0');\r\n  const hours = String(dateObj.getHours()).padStart(2, '0');\r\n  const minutes = String(dateObj.getMinutes()).padStart(2, '0');\r\n\r\n  // Retorna la fecha formateada en el formato YYYY-MM-DDTHH:MM\r\n  return `${year}-${month}-${day}T${hours}:${minutes}`;\r\n};\r\n\r\nexport function formatDateString(input: string): string {\r\n  // Separar la fecha y la hora\r\n  const [datePart, timePart] = input.split(' ');\r\n\r\n  // Separar día, mes y año\r\n  const [day, month, year] = datePart.split('/').map(Number);\r\n\r\n  // Separar horas y minutos\r\n  const [hours, minutes] = timePart.split(':').map(Number);\r\n\r\n  // Crear un objeto Date con el año ajustado\r\n  const fullYear = year + 2000; // Asumimos que el año es del siglo XXI (20xx)\r\n  const formattedDate = new Date(fullYear, month - 1, day, hours, minutes);\r\n\r\n  // Convertir la fecha a un formato ISO (yyyy-MM-dd'T'HH:mm:ss)\r\n  return formattedDate.toISOString().slice(0, 19);\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { Observable, catchError, map} from 'rxjs';\r\nimport { handleError } from '../../utils/api-error-handler.utils';\r\nimport { TableData } from '../../interfaces/table-data';\r\nimport { mapToTableData, mapToUser } from '../../utils/mapping.utils';\r\nimport { environment } from '../../../../evironments/environment';\r\n@Injectable({\r\n  providedIn: 'root'\r\n})\r\nexport class UsersService {\r\n\r\n  private apiUrl = environment.apiUrl + '/api/user';\r\n\r\n  constructor(private http: HttpClient) {}\r\n\r\n  getUsers(): Observable<TableData[]> {\r\n    return this.http.get<any[]>(this.apiUrl).pipe(map(data => mapToTableData(data)),catchError(handleError));\r\n  }\r\n\r\n  getUsersById(id: any): Observable<any> {\r\n    return this.http.get<any>(`${this.apiUrl}/${id}`).pipe(map(data => mapToUser(data)),catchError(handleError));\r\n  }\r\n  createUser(user: any): Observable<any> {\r\n    return this.http.post<any>(this.apiUrl, user).pipe(catchError(handleError));\r\n  }\r\n\r\n  updateUser(user: any): Observable<any> {\r\n    return this.http.put<any>(this.apiUrl, user).pipe(catchError(handleError));\r\n  }\r\n\r\n  deleteUser(id: any): Observable<any> {\r\n    return this.http.delete<any>(`${this.apiUrl}/${id}`).pipe(catchError(handleError));\r\n  }\r\n\r\n}\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { NavbarComponent } from '../../shared/components/navbar/navbar.component';\r\nimport { UsersService } from '../../core/services/api/users.service';\r\nimport { AuthService } from '../../core/services/auth/auth.service';\r\nimport { TableData } from '../../core/interfaces/table-data';\r\n@Component({\r\n  selector: 'app-home',\r\n  standalone: true,\r\n  imports: [NavbarComponent],\r\n  templateUrl: './home.component.html',\r\n  styleUrl: './home.component.scss'\r\n})\r\nexport class HomeComponent implements OnInit {\r\n\r\n  user: TableData = {};\r\n\r\n  constructor(\r\n    private UsersService: UsersService,\r\n    private AuthService: AuthService\r\n  ) { }\r\n\r\n  ngOnInit() {\r\n    const id = this.AuthService.getUserId();\r\n    this.UsersService.getUsersById(id).subscribe((user: TableData) => {\r\n      this.user = user;\r\n    });\r\n  }\r\n\r\n}\r\n","<app-navbar></app-navbar>\r\n\r\n<div class=\"row\">\r\n    <div class=\"col-md-12\">\r\n      <h1 class=\"welcome\">¡Bienvenido {{user['name']}} {{user['surname']}}!</h1>\r\n  </div>\r\n</div>","import { TableData } from '../interfaces/table-data';\r\n\r\nexport function sortTableData(dataArray: TableData[]): TableData[] {\r\n  return dataArray.map((data) => {\r\n    const orderedData: TableData = {};\r\n    const order = [\r\n      'id',\r\n      'name',\r\n      'surname',\r\n      'email',\r\n      'type',\r\n      'category',\r\n      'quantity',\r\n      'unit',\r\n      'expiration',\r\n      'expirationDate',\r\n    ];\r\n\r\n    // Añadir las claves en el orden especificado\r\n    order.forEach((key) => {\r\n      if (key in data) {\r\n        orderedData[key] = data[key];\r\n      }\r\n    });\r\n\r\n    // Añadir las claves que no están en el orden especificado\r\n    Object.keys(data).forEach((key) => {\r\n      if (!(key in orderedData)) {\r\n        orderedData[key] = data[key];\r\n      }\r\n    });\r\n\r\n    return orderedData;\r\n  });\r\n}\r\n\r\nexport function formatTableData(data: TableData[]): TableData[] {\r\n  return data.map((item) => {\r\n    const formattedItem: TableData = {};\r\n\r\n    // Claves que deben ser formateadas como fechas\r\n    const dateKeys = [\r\n      'expiration',\r\n      'expirationDate',\r\n      'creationDate',\r\n      'lastModificationDate',\r\n      'admissionDate',\r\n      'envenDate',\r\n    ];\r\n\r\n    const options: Intl.DateTimeFormatOptions = {\r\n      day: '2-digit',\r\n      month: '2-digit',\r\n      year: '2-digit',\r\n      hour: '2-digit',\r\n      minute: '2-digit',\r\n      timeZone: 'America/Argentina/Buenos_Aires',\r\n      hour12: false,\r\n    };\r\n\r\n    Object.keys(item).forEach((key) => {\r\n      if (dateKeys.includes(key) && item[key]) {\r\n        // Convertir el valor a una instancia de Date y formatear\r\n        const date = new Date(item[key]);\r\n        formattedItem[key] = new Intl.DateTimeFormat('es-AR', options)\r\n          .format(date)\r\n          .replace(',', '');\r\n      } else {\r\n        // Copiar el valor sin cambios\r\n        formattedItem[key] = item[key];\r\n      }\r\n    });\r\n    return formattedItem;\r\n  });\r\n}\r\n// Ordenar datos de la tabla\r\n\r\nexport function sortTableDataByColumn(\r\n  data: TableData[],\r\n  column: string,\r\n  direction: 'up' | 'down' | ''\r\n): TableData[] {\r\n  if (!column || direction === '') {\r\n    return data; // Sin columna o dirección vacía, no ordenar\r\n  }\r\n\r\n  // Determina el orden de clasificación basado en la dirección\r\n  const isAscending = direction === 'up';\r\n\r\n  return data.slice().sort((a, b) => {\r\n    if (a[column] === undefined || b[column] === undefined) {\r\n      return 0;\r\n    }\r\n\r\n    // Comparar valores, asumiendo que son números o cadenas\r\n    const aValue = a[column];\r\n    const bValue = b[column];\r\n\r\n    if (typeof aValue === 'string' && typeof bValue === 'string') {\r\n      return isAscending\r\n        ? aValue.localeCompare(bValue)\r\n        : bValue.localeCompare(aValue);\r\n    }\r\n\r\n    if (typeof aValue === 'number' && typeof bValue === 'number') {\r\n      return isAscending ? aValue - bValue : bValue - aValue;\r\n    }\r\n\r\n    return 0;\r\n  });\r\n}\r\n\r\nexport function filterTableData(\r\n  data: TableData[],\r\n  excludeColumns: string[],\r\n  filterValue: string\r\n): TableData[] {\r\n  if (!filterValue) {\r\n    return data; // Sin valor de filtro, no filtrar\r\n  }\r\n\r\n  const filter = filterValue.trim().toLowerCase();\r\n\r\n  return data.filter((item) => {\r\n    return Object.keys(item).some((key) => {\r\n      if (excludeColumns.includes(key)) {\r\n        return false;\r\n      }\r\n      const value = item[key];\r\n      if (typeof value === 'string') {\r\n        return value.toLowerCase().includes(filter);\r\n      }\r\n      return false;\r\n    });\r\n  });\r\n}\r\n","import { Component, Input, Output, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { CommonModule } from '@angular/common';\r\nimport { sortTableData, formatTableData, sortTableDataByColumn } from '../../../core/utils/table-data.utils';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { formatDate } from '../../../core/utils/mapping.utils';\r\n\r\n@Component({\r\n  selector: 'app-table',\r\n  standalone: true,\r\n  imports: [CommonModule, ReactiveFormsModule],\r\n  templateUrl: './table.component.html',\r\n  styleUrls: ['./table.component.scss']\r\n})\r\nexport class TableComponent implements OnChanges {\r\n  @Input() data: TableData[] = [];\r\n  @Input() columnsExcluded: string[] = [];\r\n  @Input() isTableReady: boolean = true;  \r\n  @Output() rowClicked: EventEmitter<TableData> = new EventEmitter<TableData>();\r\n\r\n  columnTranslataions: ColumnTranslations = {\r\n    id: 'ID',\r\n    name: 'Nombre',\r\n    surname: 'Apellido',\r\n    email: 'Correo',\r\n    phone: 'Teléfono',\r\n    role: 'Rol',\r\n    address: 'Dirección',\r\n    addres: 'Dirección',\r\n    cuit: 'CUIT',\r\n    description: 'Descripción',\r\n    category: 'Categoría',\r\n    quantity: 'Cantidad',\r\n    expirationDate: 'Fecha de vencimiento',\r\n    creationDate: 'Fecha de creación',\r\n    lastModificationDate: 'Última modificación',\r\n    admissionDate: 'Fecha de admisión',\r\n    unit: 'Unidad',\r\n    price: 'Precio',\r\n    cost: 'Precio',\r\n    expiration: 'Fecha de Vencimiento',\r\n    type: 'Tipo',\r\n    envenDate: 'Fecha',\r\n    title: 'Evento',\r\n  };\r\n\r\n  currentPage: number = 1;\r\n  itemsPerPage: number = 10;\r\n\r\n  noDataMessage: string = 'No hay elementos a mostrar';\r\n\r\n  sortStates: { [key: string]: 'up' | 'down' | '' } = {};\r\n  activeColumn: string | null = null;\r\n\r\n  ngOnInit(){\r\n    this.columnsExcluded.push('state');\r\n  }\r\n\r\n  ngOnChanges(changes: SimpleChanges) {\r\n    if (changes['data']) {\r\n      this.data = formatTableData(this.data);\r\n      this.data = sortTableData(this.data);\r\n    }\r\n  }\r\n\r\n  getColumns(): string[] {\r\n    if (this.data.length === 0) {\r\n      return [];\r\n    }\r\n    return Object.keys(this.data[0]).filter(column => !this.columnsExcluded.includes(column));\r\n  }\r\n\r\n  get paginatedData(): TableData[] {\r\n    const startIndex = (this.currentPage - 1) * this.itemsPerPage;\r\n    const endIndex = startIndex + this.itemsPerPage;\r\n    return this.data.slice(startIndex, endIndex);\r\n  }\r\n\r\n  get totalPages(): number {\r\n    return Math.ceil(this.data.length / this.itemsPerPage);\r\n  }\r\n\r\n  setPage(page: number) {\r\n    if (page >= 1 && page <= this.totalPages) {\r\n      this.currentPage = page;\r\n    }\r\n  }\r\n\r\n  getPageRange(): number[] {\r\n    const nearbyPages = [];\r\n    const maxNearby = 1;\r\n\r\n    let startPage = Math.max(1, this.currentPage - maxNearby);\r\n    let endPage = Math.min(this.totalPages, this.currentPage + maxNearby);\r\n\r\n    if (this.currentPage <= maxNearby + 1) {\r\n      endPage = Math.min(maxNearby * 2 + 1, this.totalPages);\r\n    }\r\n    if (this.currentPage >= this.totalPages - maxNearby) {\r\n      startPage = Math.max(this.totalPages - maxNearby * 2, 1);\r\n    }\r\n\r\n    for (let i = startPage; i <= endPage; i++) {\r\n      nearbyPages.push(i);\r\n    }\r\n    return nearbyPages;\r\n  }\r\n\r\n  onRowClick(item: TableData) {\r\n    this.rowClicked.emit(item);\r\n  }\r\n\r\n  translateColumn(column: string): string {\r\n    return this.columnTranslataions[column] || column;\r\n  }\r\n\r\n  onHeaderClick(column: string): void {\r\n    if (this.activeColumn === column) {\r\n      this.sortStates[column] = this.sortStates[column] === 'up' ? 'down' : 'up';\r\n      this.data = sortTableDataByColumn(this.data, column, this.sortStates[column]);\r\n    } else {\r\n      this.sortStates[this.activeColumn || ''] = '';\r\n      this.sortStates[column] = 'up';\r\n      this.activeColumn = column;\r\n    }\r\n  }\r\n\r\n  getSortIcon(column: string): string {\r\n    if (this.sortStates[column] === 'up') {\r\n      return 'bi bi-caret-up-fill';\r\n    } else if (this.sortStates[column] === 'down') {\r\n      return 'bi bi-caret-down-fill';\r\n    }\r\n    return '';\r\n  }\r\n\r\n  getAgeDifference(expirationDate: string): number {\r\n    const currentYear = new Date().getFullYear();\r\n    console.log(\"Current: \",expirationDate);\r\n    const aux = formatDate(expirationDate);\r\n    console.log(\"Aux: \",aux);\r\n    const expirationYear = new Date(expirationDate).getFullYear();\r\n    console.log(\"Gap: \",currentYear, expirationYear);\r\n    return expirationYear - currentYear;\r\n  }\r\n\r\n}\r\n\r\ninterface ColumnTranslations {\r\n  [key: string]: string;\r\n}\r\n","<!-- table.component.html -->\r\n<div class=\"table-container\">\r\n  <!-- Spinner de carga -->\r\n  <div *ngIf=\"!isTableReady\" class=\"spinner-container text-center\">\r\n    <div class=\"spinner-border\" role=\"status\">\r\n      <span class=\"visually-hidden\">Cargando..</span>\r\n    </div>\r\n  </div>\r\n\r\n  <!-- Mensaje de no hay datos -->\r\n  <div\r\n    *ngIf=\"isTableReady && data.length === 0\"\r\n    class=\"no-data-container text-center\"\r\n  >\r\n    <h4>{{ noDataMessage }}</h4>\r\n  </div>\r\n\r\n  <!-- Tabla y paginador -->\r\n  <div *ngIf=\"isTableReady && data.length > 0\" class=\"table-wrapper\">\r\n    <nav class=\"pagination-container\">\r\n      <ul class=\"pagination justify-content-center custom-pagination\">\r\n        <li class=\"page-item\" [class.disabled]=\"currentPage === 1\">\r\n          <a class=\"page-link\" (click)=\"setPage(currentPage - 1)\">\r\n            <i class=\"bi bi-chevron-left\"></i>\r\n          </a>\r\n        </li>\r\n\r\n        <li class=\"page-item\" *ngIf=\"currentPage > 2\">\r\n          <a class=\"page-link\" (click)=\"setPage(1)\">1</a>\r\n        </li>\r\n        <li class=\"page-item disabled\" *ngIf=\"currentPage > 3\">\r\n          <a class=\"page-link\">...</a>\r\n        </li>\r\n        <li\r\n          class=\"page-item\"\r\n          *ngFor=\"let page of getPageRange()\"\r\n          [class.active]=\"currentPage === page\"\r\n        >\r\n          <a class=\"page-link\" (click)=\"setPage(page)\">{{ page }}</a>\r\n        </li>\r\n        <li\r\n          class=\"page-item disabled\"\r\n          *ngIf=\"currentPage < totalPages - 2 && totalPages > 5\"\r\n        >\r\n          <a class=\"page-link\">...</a>\r\n        </li>\r\n        <li\r\n          class=\"page-item\"\r\n          *ngIf=\"currentPage < totalPages - 1 && totalPages > 3\"\r\n        >\r\n          <a class=\"page-link\" (click)=\"setPage(totalPages)\">{{\r\n            totalPages\r\n          }}</a>\r\n        </li>\r\n\r\n        <li class=\"page-item\" [class.disabled]=\"currentPage === totalPages\">\r\n          <a class=\"page-link\" (click)=\"setPage(currentPage + 1)\">\r\n            <i class=\"bi bi-chevron-right\"></i>\r\n          </a>\r\n        </li>\r\n      </ul>\r\n    </nav>\r\n\r\n    <table class=\"table table-custom\">\r\n      <thead>\r\n        <tr>\r\n          <th\r\n            *ngFor=\"let column of getColumns()\"\r\n            class=\"text-uppercase text-center\"\r\n          >\r\n            <a (click)=\"onHeaderClick(column)\">\r\n              {{ translateColumn(column) }}\r\n              <i\r\n                *ngIf=\"getSortIcon(column)\"\r\n                [ngClass]=\"getSortIcon(column)\"\r\n              ></i>\r\n            </a>\r\n          </th>\r\n        </tr>\r\n      </thead>\r\n      <tbody>\r\n        <tr *ngFor=\"let item of paginatedData\" (click)=\"onRowClick(item)\">\r\n          <td *ngFor=\"let column of getColumns()\" class=\"text-center\">\r\n            <!-- Comprobar si el valor es booleano -->\r\n            <ng-container *ngIf=\"item[column] === true; else falseIcon\">\r\n              <i class=\"bi bi-check-circle text-success\"></i>\r\n            </ng-container>\r\n            <ng-template #falseIcon>\r\n              <ng-container *ngIf=\"item[column] === false\">\r\n                <i class=\"bi bi-x-circle text-danger\"></i>\r\n              </ng-container>\r\n            </ng-template>\r\n\r\n            <!-- Mostrar expiration solo si la diferencia es menor a 60 años -->\r\n            <ng-container *ngIf=\"column === 'expiration'\">\r\n              exp = {{ item[column] }} \r\n              <div\r\n                *ngIf=\"getAgeDifference(item[column]) <= 60; else noExpiration\"\r\n              >\r\n                {{ item[column] | date : \"dd/MM/yyyy\" }}\r\n              </div>\r\n              <ng-template #noExpiration>\r\n                <div>-</div>\r\n              </ng-template>\r\n            </ng-container>\r\n\r\n            <!-- Mostrar valor normal si no es expiration -->\r\n            <ng-container *ngIf=\"column !== 'expiration'\">\r\n              <div *ngIf=\"column === 'cost'\">${{ item[column] }}</div>\r\n              <div *ngIf=\"column !== 'cost'\">\r\n                {{ item[column] }}\r\n              </div>\r\n            </ng-container>\r\n          </td>\r\n        </tr>\r\n        <!-- Filas vacías para completar hasta 10 filas -->\r\n        <tr\r\n          *ngFor=\"let _ of [].constructor(itemsPerPage - paginatedData.length)\"\r\n        >\r\n          <td *ngFor=\"let column of getColumns()\" class=\"text-center\"></td>\r\n        </tr>\r\n      </tbody>\r\n    </table>\r\n  </div>\r\n</div>\r\n","import { Component, Output, EventEmitter } from '@angular/core';\r\nimport { ReactiveFormsModule, FormControl } from '@angular/forms';\r\n\r\n@Component({\r\n  selector: 'app-search-bar',\r\n  standalone: true,\r\n  imports: [ReactiveFormsModule],\r\n  templateUrl: './search-bar.component.html',\r\n  styleUrls: ['./search-bar.component.scss'], // Asegúrate de que el nombre sea correcto\r\n})\r\nexport class SearchBarComponent {\r\n  @Output() search = new EventEmitter<string>();\r\n  searchControl = new FormControl('');\r\n\r\n  onFilter(): void {\r\n    const value = this.searchControl.value?.trim();\r\n    if (value !== undefined) {\r\n      if (this.isValid(value)) {\r\n        this.search.emit(value);\r\n      } else {\r\n        this.search.emit('');\r\n      }\r\n    }\r\n  }\r\n\r\n  // Manejar el evento de teclado\r\n  onKeyDown(event: KeyboardEvent): void {\r\n    if (event.key === 'Enter') {\r\n      this.onFilter();\r\n    }\r\n  }\r\n\r\n  private isValid(value: string): boolean {\r\n    const regex = /^[a-zA-Z0-9@. ]*$/;\r\n    return typeof value === 'string' && value.length > 0 && regex.test(value);\r\n  }\r\n}\r\n","<div class=\"search-container bg-fix\">\r\n    <span id=\"basic-addon1\">\r\n        <i class=\"bi bi-search search-icon text-white\"></i>\r\n    </span>\r\n    <input type=\"text\" class=\"form-control\" aria-label=\"Buscar\" aria-describedby=\"basic-addon1\" [formControl]=\"searchControl\" (keydown.enter)=\"onFilter()\">\r\n    <button class=\"btn btn-custom\" (click)=\"onFilter()\" >\r\n        <span class=\"filter-text\">BUSCAR</span>\r\n    </button>\r\n</div>\r\n","import { Component, EventEmitter, Output } from '@angular/core';\r\n\r\n@Component({\r\n  selector: 'app-decision-modal',\r\n  standalone: true,\r\n  imports: [],\r\n  templateUrl: './decision-modal.component.html',\r\n  styleUrl: './decision-modal.component.scss'\r\n})\r\nexport class DecisionModalComponent {\r\n  @Output() close = new EventEmitter<string>();\r\n\r\n  closeDecisionModal() {\r\n    this.close.emit('');\r\n  }\r\n\r\n  openAddInput() {\r\n    this.close.emit(\"addInput\");\r\n  }\r\n\r\n  openAddRawMaterial() {\r\n    this.close.emit(\"addRawMaterial\");\r\n  }\r\n\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content modal-content-custom\">\r\n      <div class=\"modal-header\">\r\n        <h5 class=\"modal-title\">Agregar Existencia</h5>\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn-close\"\r\n          aria-label=\"Close\"\r\n          (click)=\"closeDecisionModal()\"\r\n        ></button>\r\n      </div>\r\n      <div class=\"modal-body d-flex align-items-center justify-content-center\">\r\n        <div class=\"row w-100\">\r\n          <div class=\"col d-flex justify-content-center\">\r\n            <button class=\"btn btn-custom btn-lg\" (click)=\"openAddInput()\">Agregar Insumo</button>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-center\">\r\n            <button class=\"btn btn-custom btn-lg\" (click)=\"openAddRawMaterial()\">Agregar Materia Prima</button>\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</div>\r\n","export enum Units {\r\n    Kilogramos = 'Kg',\r\n    Gramos = 'g',\r\n    Milimetros = 'ml',\r\n    Litro = 'L',\r\n    Unidades = 'U'\r\n}\r\n  ","import { AbstractControl, ValidationErrors } from '@angular/forms';\r\nimport { FormArray, ValidatorFn } from '@angular/forms';\r\n\r\nexport function validarEmailFormat(email: string): boolean {\r\n  const regex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$/;\r\n  return regex.test(email);\r\n}\r\n\r\nexport function emailValidator(\r\n  control: AbstractControl\r\n): ValidationErrors | null {\r\n  const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$/;\r\n  const valid = emailRegex.test(control.value);\r\n  return valid ? null : { invalidEmail: true };\r\n}\r\n\r\nexport function phoneValidator(\r\n  control: AbstractControl\r\n): ValidationErrors | null {\r\n  const phoneRegex =\r\n    /^\\+?[0-9]{1,4}?[-.\\s]?(\\(?\\d{1,3}?\\)?[-.\\s]?\\d{1,4}[-.\\s]?\\d{1,4}[-.\\s]?\\d{1,9})$/;\r\n  const valid = phoneRegex.test(control.value);\r\n  return valid ? null : { invalidPhone: true };\r\n}\r\n\r\nexport function cuitValidator(): ValidatorFn {\r\n  return (control: AbstractControl): { [key: string]: any } | null => {\r\n    const cuit = control.value;\r\n\r\n    if (!cuit || cuit.length !== 11 || isNaN(cuit)) {\r\n      return { invalidCuit: true };\r\n    }\r\n\r\n    const multipliers = [5, 4, 3, 2, 7, 6, 5, 4, 3, 2];\r\n    let checksum = 0;\r\n\r\n    for (let i = 0; i < 10; i++) {\r\n      checksum += parseInt(cuit[i], 10) * multipliers[i];\r\n    }\r\n\r\n    const mod = checksum % 11;\r\n    const expectedDigit = mod === 0 ? 0 : mod === 1 ? 9 : 11 - mod;\r\n\r\n    if (expectedDigit !== parseInt(cuit[10], 10)) {\r\n      return { invalidCuit: true };\r\n    }\r\n\r\n    return null;\r\n  };\r\n}\r\n\r\nexport function decimalNumberValidator(\r\n  control: AbstractControl\r\n): ValidationErrors | null {\r\n  const value = control.value;\r\n  const valid =\r\n    /^\\d+([.,]\\d+)?$/.test(value) && parseFloat(value.replace(',', '.')) !== 0;\r\n  return valid ? null : { invalidQuantity: true };\r\n}\r\n\r\nexport function atLeastOneCheckedValidator(): ValidatorFn {\r\n  return (control: AbstractControl): { [key: string]: any } | null => {\r\n    const formArray = control as FormArray;\r\n    const hasValidControl = formArray.controls.some((group) => {\r\n      const selected = group.get('selected')?.value;\r\n      const quantity = group.get('quantity')?.value;\r\n      return selected && quantity != null && quantity > 0;\r\n    });\r\n    return hasValidControl ? null : { atLeastOneValidControl: true };\r\n  };\r\n}\r\n\r\n// Validador personalizado para confirmar contraseñas\r\nexport function matchPasswordValidator(): ValidatorFn {\r\n  return (formGroup: AbstractControl): ValidationErrors | null => {\r\n    const password = formGroup.get('password');\r\n    const confirmPassword = formGroup.get('confirmPassword');\r\n\r\n    if (\r\n      password &&\r\n      confirmPassword &&\r\n      password.value !== confirmPassword.value\r\n    ) {\r\n      return { passwordMismatch: true };\r\n    }\r\n    return null;\r\n  };\r\n}\r\n\r\nexport function conditionalRequiredValidator(\r\n  controlName: string,\r\n  dependentControlName: string\r\n): ValidatorFn {\r\n  return (formGroup: AbstractControl): { [key: string]: any } | null => {\r\n    const control = formGroup.get(controlName);\r\n    const dependentControl = formGroup.get(dependentControlName);\r\n\r\n    if (control && dependentControl && dependentControl.value) {\r\n      return control.value ? null : { required: true };\r\n    }\r\n    return null;\r\n  };\r\n}\r\n\r\n\r\nexport function priceValidator(totalCost: number): ValidatorFn {\r\n  return (control: AbstractControl): ValidationErrors | null => {\r\n    const price = control.value;\r\n    if (price <= 0 || price <= totalCost) {\r\n      return { priceInvalid: true };\r\n    }\r\n    return null;\r\n  };\r\n}\r\n\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpErrorResponse } from '@angular/common/http';\r\nimport { Observable, catchError, throwError} from 'rxjs';\r\nimport { handleError } from '../../utils/api-error-handler.utils';\r\nimport { environment } from '../../../../evironments/environment';\r\n@Injectable({\r\n  providedIn: 'root'\r\n})\r\nexport class InputsService {\r\n\r\n  private apiUrl = environment.apiUrl + '/api/Inputs';\r\n\r\n  constructor(private http: HttpClient) {}\r\n\r\n  getInputs(): Observable<any> {\r\n    return this.http.get<any>(this.apiUrl).pipe(catchError(handleError));\r\n  }\r\n\r\n  getInputById(id: number): Observable<any> {\r\n    return this.http.get<any>(`${this.apiUrl}/${id}`).pipe(catchError(handleError));\r\n  }\r\n  createInput(input: any): Observable<any> {\r\n    return this.http.post<any>(this.apiUrl, input).pipe(catchError(handleError));\r\n  }\r\n\r\n  updateInput(input: any): Observable<any> {\r\n    return this.http.put<any>(this.apiUrl, input).pipe(catchError(handleError));\r\n  }\r\n\r\n  deleteInput(id: number): Observable<any> {\r\n    return this.http.delete<any>(`${this.apiUrl}/${id}`).pipe(catchError(handleError));\r\n  }\r\n\r\n\r\n  //CUSTOM METHODS\r\n\r\n  getInputsTypes(): Observable<string[]> {\r\n    return this.http.get<string[]>(`${this.apiUrl}/getTypes`).pipe(catchError(handleError));\r\n  }\r\n\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpErrorResponse } from '@angular/common/http';\r\nimport { Observable, catchError, throwError} from 'rxjs';\r\nimport { handleError } from '../../utils/api-error-handler.utils';\r\nimport { environment } from '../../../../evironments/environment';\r\n\r\n@Injectable({\r\n  providedIn: 'root'\r\n})\r\nexport class RawMaterialsService {\r\n\r\n  private apiUrl = environment.apiUrl + '/api/RawMaterials';\r\n\r\n  constructor(private http: HttpClient) {}\r\n\r\n  getRawMaterials(): Observable<any> {\r\n    return this.http.get<any>(this.apiUrl).pipe(catchError(handleError));\r\n  }\r\n\r\n  getRawMaterialById(id: number): Observable<any> {\r\n    return this.http.get<any>(`${this.apiUrl}/${id}`).pipe(catchError(handleError));\r\n  }\r\n  createRawMaterial(rm: any): Observable<any> {\r\n    return this.http.post<any>(this.apiUrl, rm).pipe(catchError(handleError));\r\n  }\r\n\r\n  updateRawMaterial(rm: any): Observable<any> {\r\n    console.log(JSON.stringify(rm));\r\n    return this.http.put<any>(this.apiUrl, rm).pipe(catchError(handleError));\r\n  }\r\n\r\n  deleteRawMaterial(id: any): Observable<any> {\r\n    return this.http.delete<any>(`${this.apiUrl}/${id}`).pipe(catchError(handleError));\r\n  }\r\n\r\n\r\n  //CUSTOM METHODS\r\n\r\n  getRawMaterialsTypes(): Observable<string[]> {\r\n    return this.http.get<string[]>(`${this.apiUrl}/getTypes`).pipe(catchError(handleError));\r\n  }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { InputsService } from '../api/inputs.service';\r\nimport { RawMaterialsService } from '../api/rawmaterials.service';\r\nimport { forkJoin, Observable, map, catchError, BehaviorSubject, retryWhen, scan, delay, throwError} from 'rxjs';\r\nimport { TableData } from '../../interfaces/table-data';\r\n\r\n@Injectable({\r\n  providedIn: 'root'\r\n})\r\nexport class InventoryService {\r\n\r\n  private inputsTypesSubject: BehaviorSubject<string[]> = new BehaviorSubject<string[]>([]);\r\n  private rawMaterialTypesSubject: BehaviorSubject<string[]> = new BehaviorSubject<string[]>([]);\r\n\r\n  constructor(private InputsService: InputsService, private RawMaterialService: RawMaterialsService) { }\r\n\r\n\r\n\r\n  chargeInputsTypes(): void {\r\n    this.InputsService.getInputsTypes().subscribe(types => this.inputsTypesSubject.next(types));\r\n  }\r\n\r\n  chargeRawMaterialTypes(): void {\r\n    this.RawMaterialService.getRawMaterialsTypes().subscribe(types => this.rawMaterialTypesSubject.next(types));\r\n  }\r\n  \r\n  getInputsTypes(): Observable<string[]> {\r\n    return this.inputsTypesSubject.asObservable();\r\n  }\r\n\r\n  getRawMaterialTypes(): Observable<string[]> {\r\n    return this.rawMaterialTypesSubject.asObservable();\r\n  }\r\n\r\n  addInputsType(type: string): void {\r\n    this.inputsTypesSubject.pipe(\r\n      map(types => {\r\n        if (!types.includes(type)) {\r\n          types.push(type);\r\n          types.sort();\r\n          this.inputsTypesSubject.next(types); // Emit the updated list\r\n        }\r\n      })\r\n    ).subscribe(); // Make sure to subscribe to the observable\r\n  }\r\n\r\n  addRawMaterialType(type: string): void {\r\n    this.rawMaterialTypesSubject.pipe(\r\n      map(types => {\r\n        if (!types.includes(type)) {\r\n          types.push(type);\r\n          types.sort();\r\n          this.rawMaterialTypesSubject.next(types); // Emit the updated list\r\n        }\r\n      })\r\n    ).subscribe(); // Make sure to subscribe to the observable\r\n  }\r\n\r\n  getInventory(): Observable<TableData[]> {\r\n    const maxRetries = 5; // Número máximo de intentos\r\n    const retryDelay = 5000; // Retraso entre intentos (en milisegundos)\r\n  \r\n    return forkJoin({\r\n      inputs: this.InputsService.getInputs(),\r\n      rawMaterials: this.RawMaterialService.getRawMaterials()\r\n    }).pipe(\r\n      map(({ inputs, rawMaterials }) => {\r\n        // Si alguno es null, se convierte en un array vacío\r\n        const safeInputs = inputs || [];\r\n        const safeRawMaterials = rawMaterials || [];\r\n        return safeInputs.concat(safeRawMaterials).sort();\r\n      }),\r\n      retryWhen(errors =>\r\n        errors.pipe(\r\n          scan((retryCount, error) => {\r\n            if (retryCount >= maxRetries) {\r\n              throw error; // Si se excede el número de intentos, lanza el error\r\n            }\r\n            console.warn(`Retrying... (${retryCount + 1}/${maxRetries})`);\r\n            return retryCount + 1;\r\n          }, 0),\r\n          delay(retryDelay) // Espera un tiempo antes de reintentar\r\n        )\r\n      ),\r\n      catchError(err => {\r\n        console.error('Error fetching inventory', err);\r\n        return throwError(() => err); // Propaga el error final\r\n      })\r\n    );\r\n  }\r\n  \r\n}\r\n\r\n\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpErrorResponse } from '@angular/common/http';\r\nimport { Observable, catchError, throwError} from 'rxjs';\r\nimport { handleError } from '../../utils/api-error-handler.utils';\r\nimport { environment } from '../../../../evironments/environment';\r\n\r\n@Injectable({\r\n  providedIn: 'root'\r\n})\r\nexport class ProvidersService {\r\n\r\n  private apiUrl = environment.apiUrl + '/api/Providers';\r\n\r\n  constructor(private http: HttpClient) {}\r\n\r\n  getProviders(): Observable<any> {\r\n    return this.http.get<any>(this.apiUrl).pipe(catchError(handleError));\r\n  }\r\n\r\n  getProviderById(id: any): Observable<any> {\r\n    return this.http.get<any>(`${this.apiUrl}/${id}`).pipe(catchError(handleError));\r\n  }\r\n  createProvider(provider: any): Observable<any> {\r\n    return this.http.post<any>(this.apiUrl, provider).pipe(catchError(handleError));\r\n  }\r\n\r\n  updateProvider(provider: any): Observable<any> {\r\n    return this.http.put<any>(this.apiUrl, provider).pipe(catchError(handleError));\r\n  }\r\n\r\n  deleteProvider(id: any): Observable<any> {\r\n    return this.http.delete<any>(`${this.apiUrl}/${id}`).pipe(catchError(handleError));\r\n  }\r\n\r\n}\r\n","import { Component, EventEmitter, Output, OnInit } from '@angular/core';\r\nimport {\r\n  ReactiveFormsModule,\r\n  FormBuilder,\r\n  FormGroup,\r\n  Validators,\r\n} from '@angular/forms';\r\nimport { CommonModule } from '@angular/common';\r\nimport { Units } from '../../../shared/enums/units.enum';\r\nimport { decimalNumberValidator } from '../../../core/utils/validators';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { InputsService } from '../../../core/services/api/inputs.service';\r\nimport { ProvidersService } from '../../../core/services/api/providers.service';\r\nimport { InventoryService } from '../../../core/services/enums/inventory.service';\r\n\r\n@Component({\r\n  selector: 'app-add-input',\r\n  standalone: true,\r\n  imports: [CommonModule, ReactiveFormsModule],\r\n  templateUrl: './add-input.component.html',\r\n  styleUrl: './add-input.component.scss',\r\n})\r\nexport class AddInputComponent {\r\n  @Output() close = new EventEmitter<void>();\r\n  productForm: FormGroup;\r\n  addTypeForm: FormGroup;\r\n\r\n  providers: TableData[] = [];\r\n  units: string[] = [];\r\n  inventoryTypes: string[] = [];\r\n  addTypeModal: boolean = false;\r\n  isRawMaterial: boolean = false;\r\n  avaibleFreezed: boolean = false;\r\n\r\n  constructor(\r\n    private InputsService: InputsService,\r\n    private formBuilder: FormBuilder,\r\n    private InventoryService: InventoryService,\r\n    private providersService: ProvidersService\r\n  ) {\r\n    this.productForm = this.formBuilder.group({\r\n      name: ['', [Validators.required]],\r\n      type: ['', [Validators.required, Validators.pattern('^[a-zA-Z ]*$')]],\r\n      quantity: ['', [Validators.required, decimalNumberValidator]],\r\n      unit: ['', [Validators.required]],\r\n      cost: ['', [Validators.required, decimalNumberValidator]],\r\n      description: ['', [Validators.pattern(/^[a-zA-Z0-9À-ÿ\\s'_-]+$/)]],\r\n      provider: ['', [Validators.required]],\r\n    });\r\n    this.addTypeForm = this.formBuilder.group({\r\n      newType: ['', [Validators.required, Validators.pattern('^[a-zA-Z ]*$')]],\r\n    });\r\n  }\r\n\r\n  ngOnInit() {\r\n    this.InventoryService.chargeInputsTypes();\r\n    this.getProviders();\r\n    this.loadProductTypes();\r\n    this.units = Object.values(Units);\r\n  }\r\n\r\n  closeModal() {\r\n    this.close.emit();\r\n  }\r\n\r\n  openAddTypeModal() {\r\n    this.addTypeModal = true;\r\n  }\r\n\r\n  closeAddTypeModal() {\r\n    this.addTypeModal = false;\r\n  }\r\n\r\n  addType() {\r\n    if (this.addTypeForm.valid) {\r\n      const newType = this.addTypeForm.value.newType;\r\n      this.InventoryService.addInputsType(newType);\r\n      this.closeAddTypeModal();\r\n    } else {\r\n      console.error('Formulario de tipo inválido.');\r\n    }\r\n  }\r\n\r\n  onSubmit() {\r\n    //console.log('form', this.productForm);\r\n    if (this.productForm.valid) {\r\n      const providerId = this.productForm.get('provider')?.value;\r\n      //const selectedProvider = this.providers.find(provider => provider['id'] === providerId);\r\n      const selectedProvider = this.providers.find((provider) => {\r\n        return Number(provider['id']) === Number(providerId);\r\n      });\r\n      const input: TableData = {\r\n        name: this.productForm.get('name')?.value,\r\n        type: this.productForm.get('type')?.value,\r\n        quantity: this.productForm.get('quantity')?.value,\r\n        unit: this.productForm.get('unit')?.value,\r\n        cost: this.productForm.get('cost')?.value,\r\n        description: this.productForm.get('description')?.value || '',\r\n        provider: selectedProvider || {},\r\n      };\r\n      this.InputsService.createInput(input).subscribe(\r\n        () => {\r\n          //console.log('Insumo creado con éxito');\r\n          this.closeModal();\r\n        },\r\n        (error) => {\r\n          console.error('Error al crear el insumo', error);\r\n        }\r\n      );\r\n    }\r\n  }\r\n\r\n  private getProviders() {\r\n    this.providersService.getProviders().subscribe((res: any[]) => {\r\n      this.providers = res.sort((a, b) => a.name.localeCompare(b.name));\r\n    });\r\n  }\r\n\r\n  private loadProductTypes(): void {\r\n    this.InventoryService.getInputsTypes().subscribe((types) => {\r\n      this.inventoryTypes = types.sort((a, b) => a.localeCompare(b));\r\n    });\r\n  }\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content modal-content-custom\">\r\n      <div class=\"modal-header\">\r\n        <h5 class=\"modal-title\">Agregar Insumo</h5>\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn-close\"\r\n          aria-label=\"Close\"\r\n          (click)=\"closeModal()\"\r\n        ></button>\r\n      </div>\r\n      <form #aux=\"ngForm\" [formGroup]=\"productForm\" (ngSubmit)=\"onSubmit()\">\r\n        <div class=\"modal-body\">\r\n          <div class=\"row\">\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"name\">Nombre</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"name\"\r\n                      name=\"name\"\r\n                      formControlName=\"name\"\r\n                      placeholder=\"Nombre\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (productForm.get('name')?.dirty ||\r\n                            productForm.get('name')?.touched ||\r\n                            aux.submitted) &&\r\n                          productForm.get('name')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (productForm.get('name')?.invalid &&\r\n                          (productForm.get('name')?.dirty ||\r\n                            productForm.get('name')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"productForm.get('name')?.errors?.['required']\"\r\n                      >\r\n                        Nombre es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!productForm.get('name')?.errors?.['required'] && productForm.get('name')?.errors?.['pattern']\"\r\n                      >\r\n                        El nombre no debe contener números ni símbolos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"type\" class=\"mb-0\">Tipo</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <select\r\n                      id=\"type\"\r\n                      formControlName=\"type\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Type Selection\"\r\n                      placeholder=\"Seleccione un tipo\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (productForm.get('type')?.dirty ||\r\n                            productForm.get('type')?.touched ||\r\n                            aux.submitted) &&\r\n                          productForm.get('type')?.invalid\r\n                      }\"\r\n                    >\r\n                      <option value=\"\" disabled selected>\r\n                        Selecciona un tipo\r\n                      </option>\r\n                      <option\r\n                        *ngFor=\"let type of inventoryTypes\"\r\n                        [value]=\"type\"\r\n                      >\r\n                        {{ type }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <button\r\n                      type=\"button\"\r\n                      class=\"btn btn-custom\"\r\n                      (click)=\"openAddTypeModal()\"\r\n                    >\r\n                      Agregar Tipo\r\n                    </button>\r\n                  </div>\r\n                </div>\r\n                <div class=\"error-container\">\r\n                  <div\r\n                    *ngIf=\"aux.submitted && productForm.get('type')?.invalid\"\r\n                    class=\"text-danger mt-1\"\r\n                  >\r\n                    <div *ngIf=\"productForm.get('type')?.errors?.['required']\">\r\n                      Tipo es requerido.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"quantity\">Cantidad</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"quantity\"\r\n                      name=\"quantity\"\r\n                      formControlName=\"quantity\"\r\n                      placeholder=\"0000\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (productForm.get('quantity')?.dirty ||\r\n                            productForm.get('quantity')?.touched ||\r\n                            aux.submitted) &&\r\n                          productForm.get('quantity')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <label for=\"unit\">Unidad</label>\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <select\r\n                      id=\"unit\"\r\n                      formControlName=\"unit\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Unit Selection\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (productForm.get('unit')?.dirty ||\r\n                            productForm.get('unit')?.touched ||\r\n                            aux.submitted) &&\r\n                          productForm.get('unit')?.invalid\r\n                      }\"\r\n                    >\r\n                      <option value=\"\" disabled selected>...</option>\r\n                      <option *ngFor=\"let unit of units\" [value]=\"unit\">\r\n                        {{ unit }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                </div>\r\n                <div class=\"row error-container align-items-center\">\r\n                  <div\r\n                    class=\"col-8 text-danger\"\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (productForm.get('quantity')?.invalid &&\r\n                        (productForm.get('quantity')?.dirty ||\r\n                          productForm.get('quantity')?.touched))\r\n                    \"\r\n                  >\r\n                    <div\r\n                      *ngIf=\"productForm.get('quantity')?.errors?.['required']\"\r\n                    >\r\n                      Es necesario ingresar una cantidad.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"!productForm.get('quantity')?.errors?.['required'] && productForm.get('quantity')?.errors?.['invalidQuantity']\"\r\n                    >\r\n                      La cantidad debe ser un número válido mayor a 0.\r\n                    </div>\r\n                  </div>\r\n                  <div\r\n                    class=\"col text-danger\"\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (productForm.get('unit')?.invalid &&\r\n                        (productForm.get('unit')?.dirty ||\r\n                          productForm.get('unit')?.touched))\r\n                    \"\r\n                  >\r\n                    <div *ngIf=\"productForm.get('unit')?.errors?.['required']\">\r\n                      Ingrese una unidad.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"cost\">Precio Unitario</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <div class=\"input-group mb-3\">\r\n                      <span class=\"input-group-text\">$</span>\r\n                      <input\r\n                        type=\"text\"\r\n                        class=\"form-control\"\r\n                        id=\"cost\"\r\n                        name=\"cost\"\r\n                        formControlName=\"cost\"\r\n                        aria-label=\"Precio\"\r\n                        placeholder=\"00000.00\"\r\n                        [ngClass]=\"{\r\n                          'is-invalid':\r\n                            (productForm.get('cost')?.dirty ||\r\n                              productForm.get('cost')?.touched ||\r\n                              aux.submitted) &&\r\n                            productForm.get('cost')?.invalid\r\n                        }\"\r\n                      />\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (productForm.get('cost')?.invalid &&\r\n                          (productForm.get('cost')?.dirty ||\r\n                            productForm.get('cost')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"productForm.get('cost')?.errors?.['required']\"\r\n                      >\r\n                        Es necesario ingresar un Precio.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!productForm.get('cost')?.errors?.['required'] && productForm.get('cost')?.errors?.['invalidQuantity']\"\r\n                      >\r\n                        El Precio debe ser un número válido y mayor que cero.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"provider\">Proveedor</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <select\r\n                      id=\"provider\"\r\n                      formControlName=\"provider\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Provider Selection\"\r\n                      placeholder=\"Seleccione un proveedor\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (productForm.get('provider')?.dirty ||\r\n                            productForm.get('provider')?.touched ||\r\n                            aux.submitted) &&\r\n                          productForm.get('provider')?.invalid\r\n                      }\"\r\n                    >\r\n                      <option value=\"\" disabled selected>\r\n                        Seleccione un proveedor\r\n                      </option>\r\n                      <option\r\n                        *ngFor=\"let provider of providers\"\r\n                        [value]=\"provider['id']\"\r\n                      >\r\n                        {{ provider[\"name\"] }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        (aux.submitted &&\r\n                          productForm.get('provider')?.invalid) ||\r\n                        (productForm.get('provider')?.invalid &&\r\n                          (productForm.get('provider')?.dirty ||\r\n                            productForm.get('provider')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Se necesita un Provedor.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"form-group\">\r\n              <label for=\"desscription\">Descripcion</label>\r\n              <textarea\r\n                type=\"text\"\r\n                class=\"form-control desc\"\r\n                id=\"descripcion\"\r\n                name=\"description\"\r\n                formControlName=\"description\"\r\n                [ngClass]=\"{\r\n                  'is-invalid':\r\n                    (productForm.get('descripcion')?.dirty ||\r\n                      productForm.get('descripcion')?.touched ||\r\n                      aux.submitted) &&\r\n                    productForm.get('descripcion')?.invalid\r\n                }\"\r\n              >\r\n              </textarea>\r\n              <div class=\"error-container\">\r\n                <div\r\n                  *ngIf=\"\r\n                    productForm.get('description')?.invalid &&\r\n                    productForm.get('description')?.dirty &&\r\n                    productForm.get('description')?.value\r\n                  \"\r\n                  class=\"text-danger\"\r\n                >\r\n                  Descripcion no admite simbolos.\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"modal-footer justify-content-center\">\r\n          <button type=\"submit\" class=\"btn btn-custom\">GUARDAR</button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n<div\r\n  *ngIf=\"addTypeModal\"\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content\">\r\n      \r\n      <div class=\"modal-header\">\r\n        <h1 class=\"modal-title fs-5\" id=\"confirmDeleteModalLabel\">\r\n          Agregar Tipo\r\n        </h1>\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn-close\"\r\n          (click)=\"closeAddTypeModal()\"\r\n        ></button>\r\n      </div>\r\n      \r\n      <form #aux2=\"ngForm\" [formGroup]=\"addTypeForm\" (ngSubmit)=\"addType()\">\r\n        <div class=\"modal-body\">\r\n          <div class=\"form-group\">\r\n            <label for=\"newType\">Nuevo Tipo</label>\r\n            <input\r\n              type=\"text\"\r\n              class=\"form-control\"\r\n              id=\"newType\"\r\n              formControlName=\"newType\"\r\n              placeholder=\"Ingrese el nuevo tipo\"\r\n              [ngClass]=\"{\r\n                'is-invalid':\r\n                  (addTypeForm.get('newType')?.touched || aux2.submitted) &&\r\n                  addTypeForm.get('newType')?.invalid\r\n              }\"\r\n            />\r\n            <div\r\n              *ngIf=\"\r\n                (addTypeForm.get('newType')?.touched || aux2.submitted) &&\r\n                addTypeForm.get('newType')?.invalid\r\n              \"\r\n              class=\"text-danger mt-1\"\r\n            >\r\n              <div *ngIf=\"addTypeForm.get('newType')?.errors?.['required']\">\r\n                El tipo es requerido.\r\n              </div>\r\n              <div *ngIf=\"addTypeForm.get('newType')?.errors?.['pattern']\">\r\n                El tipo no debe contener números ni símbolos.\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        \r\n        <div class=\"modal-footer\">\r\n          <button\r\n            type=\"button\"\r\n            class=\"btn btn-secondary\"\r\n            (click)=\"closeAddTypeModal()\"\r\n          >\r\n            CANCELAR\r\n          </button>\r\n          <button type=\"submit\" class=\"btn btn-success\">\r\n            GUARDAR\r\n          </button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n","import { Component, EventEmitter, Output, OnInit } from '@angular/core';\r\nimport { ReactiveFormsModule,FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { CommonModule } from '@angular/common';\r\nimport { Units } from '../../../shared/enums/units.enum';\r\nimport { decimalNumberValidator } from '../../../core/utils/validators';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { RawMaterialsService } from '../../../core/services/api/rawmaterials.service';\r\nimport { ProvidersService } from '../../../core/services/api/providers.service';\r\nimport { InventoryService } from '../../../core/services/enums/inventory.service';\r\n\r\n@Component({\r\n  selector: 'app-add-raw-material',\r\n  standalone: true,\r\n  imports: [CommonModule, ReactiveFormsModule],\r\n  templateUrl: './add-raw-material.component.html',\r\n  styleUrl: './add-raw-material.component.scss'\r\n})\r\nexport class AddRawMaterialComponent {\r\n \r\n  @Output() close = new EventEmitter<void>();\r\n  productForm: FormGroup;\r\n  addTypeForm: FormGroup;\r\n  \r\n  providers: TableData[] = [];\r\n  units: string[] = [];\r\n  inventoryTypes: string[] = [];\r\n  addTypeModal: boolean = false;\r\n  isRawMaterial: boolean = false;\r\n  avaibleFreezed: boolean = false;\r\n\r\n  constructor(private RawMaterialsServices: RawMaterialsService, \r\n    private formBuilder: FormBuilder , private InventoryService: InventoryService,\r\n    private providersService: ProvidersService) {\r\n    this.productForm = this.formBuilder.group(\r\n      {\r\n        name: ['', [Validators.required]],\r\n        type: ['', [Validators.required, Validators.pattern('^[a-zA-Z ]*$')]],\r\n        quantity: ['', [Validators.required, decimalNumberValidator]],\r\n        unit: ['', [Validators.required]],\r\n        cost: ['', [Validators.required, decimalNumberValidator]],\r\n        description: ['', [Validators.pattern(/^[a-zA-Z0-9\\s]+$/) ]],\r\n        freezed: [false],\r\n        expirationDate: [{value: '', disabled: true}, [Validators.required]],\r\n        provider: ['', [Validators.required]],\r\n      }\r\n    )\r\n    this.addTypeForm = this.formBuilder.group(\r\n      {\r\n        newType: ['', [Validators.required, Validators.pattern('^[a-zA-Z ]*$')]],\r\n      }\r\n    )\r\n\r\n  }\r\n\r\n  ngOnInit() {\r\n    this.InventoryService.chargeRawMaterialTypes();\r\n    this.getProviders();\r\n    this.loadProductTypes();\r\n    this.units = Object.values(Units);\r\n    // Suscribirse a los cambios en el campo 'freezed'\r\n    this.productForm.get('freezed')?.valueChanges.subscribe(isFreezed => {\r\n      this.updateExpirationDateState(isFreezed);\r\n    });\r\n  }\r\n\r\n  closeModal() {\r\n    this.close.emit();\r\n  }\r\n\r\n  openAddTypeModal() {\r\n    this.addTypeModal = true;\r\n  }\r\n\r\n  closeAddTypeModal() {\r\n    this.addTypeModal = false;\r\n  }\r\n\r\n\r\n  addType() {\r\n    if (this.addTypeForm.valid) {\r\n      const newType = this.addTypeForm.value.newType;\r\n      this.InventoryService.addRawMaterialType(newType);\r\n      this.closeAddTypeModal();\r\n    } else {\r\n      console.error('Formulario de tipo inválido.');\r\n    }\r\n  }\r\n\r\n  onSubmit() {\r\n    const providerId = this.productForm.get('provider')?.value;\r\n    //const selectedProvider = this.providers.find(provider => provider['id'] === providerId);\r\n    const selectedProvider = this.providers.find(provider => {\r\n      return Number(provider['id']) === Number(providerId);\r\n    });\r\n    if (this.productForm.valid) {\r\n      const rawMaterial: TableData = {\r\n        name: this.productForm.get('name')?.value,\r\n        type: this.productForm.get('type')?.value,\r\n        quantity: this.productForm.get('quantity')?.value,\r\n        unit: this.productForm.get('unit')?.value,\r\n        cost: this.productForm.get('cost')?.value,\r\n        descripction: this.productForm.get('description')?.value || '',\r\n        freeze: this.productForm.get('freezed')?.value,\r\n        expirationDate: this.productForm.get('expirationDate')?.value || '',\r\n        provider: selectedProvider || {}\r\n      }\r\n      this.RawMaterialsServices.createRawMaterial(rawMaterial).subscribe(\r\n        () => {\r\n          this.closeModal();\r\n        },\r\n        (error) => {\r\n          console.error('Error al crear la materia prima', error);\r\n        });\r\n    }\r\n  }\r\n\r\n  private getProviders() {\r\n    this.providersService.getProviders().subscribe((res: any[]) => {\r\n      this.providers = res.sort((a, b) => a.name.localeCompare(b.name));\r\n    });\r\n  }\r\n\r\n  private loadProductTypes(): void {\r\n    this.InventoryService.getInputsTypes().subscribe((types) => {\r\n      this.inventoryTypes = types.sort((a, b) => a.localeCompare(b));\r\n    });\r\n  }\r\n\r\n  private updateExpirationDateState(isFreezed: boolean): void {\r\n    const expirationDateControl = this.productForm.get('expirationDate');\r\n    if (isFreezed) {\r\n      expirationDateControl?.enable();\r\n    } else {\r\n      expirationDateControl?.disable();\r\n    }\r\n  }\r\n\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content modal-content-custom\">\r\n      <div class=\"modal-header\">\r\n        <h5 class=\"modal-title\">Agregar Materia Prima</h5>\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn-close\"\r\n          aria-label=\"Close\"\r\n          (click)=\"closeModal()\"\r\n        ></button>\r\n      </div>\r\n      <form #aux=\"ngForm\" [formGroup]=\"productForm\" (ngSubmit)=\"onSubmit()\">\r\n        <div class=\"modal-body\">\r\n          <div class=\"row\">\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"name\">Nombre</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"name\"\r\n                      name=\"name\"\r\n                      formControlName=\"name\"\r\n                      placeholder=\"Nombre\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (productForm.get('name')?.dirty ||\r\n                            productForm.get('name')?.touched ||\r\n                            aux.submitted) &&\r\n                          productForm.get('name')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (productForm.get('name')?.invalid &&\r\n                          (productForm.get('name')?.dirty ||\r\n                            productForm.get('name')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"productForm.get('name')?.errors?.['required']\"\r\n                      >\r\n                        Nombre es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!productForm.get('name')?.errors?.['required'] && productForm.get('name')?.errors?.['pattern']\"\r\n                      >\r\n                        El nombre no debe contener números ni símbolos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"type\" class=\"mb-0\">Tipo</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <select\r\n                      id=\"type\"\r\n                      formControlName=\"type\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Type Selection\"\r\n                      placeholder=\"Seleccione un tipo\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (productForm.get('type')?.dirty ||\r\n                            productForm.get('type')?.touched ||\r\n                            aux.submitted) &&\r\n                          productForm.get('type')?.invalid\r\n                      }\"\r\n                    >\r\n                      <option value=\"\" disabled selected>\r\n                        Selecciona un tipo\r\n                      </option>\r\n                      <option\r\n                        *ngFor=\"let type of inventoryTypes\"\r\n                        [value]=\"type\"\r\n                      >\r\n                        {{ type }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <button\r\n                      type=\"button\"\r\n                      class=\"btn btn-custom\"\r\n                      (click)=\"openAddTypeModal()\"\r\n                    >\r\n                      Agregar Tipo\r\n                    </button>\r\n                  </div>\r\n                </div>\r\n                <div class=\"error-container\">\r\n                  <div\r\n                    *ngIf=\"aux.submitted && productForm.get('type')?.invalid\"\r\n                    class=\"text-danger mt-1\"\r\n                  >\r\n                    <div *ngIf=\"productForm.get('type')?.errors?.['required']\">\r\n                      Tipo es requerido.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"quantity\">Cantidad</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"quantity\"\r\n                      name=\"quantity\"\r\n                      formControlName=\"quantity\"\r\n                      placeholder=\"0000\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (productForm.get('quantity')?.dirty ||\r\n                            productForm.get('quantity')?.touched ||\r\n                            aux.submitted) &&\r\n                          productForm.get('quantity')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <label for=\"unit\">Unidad</label>\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <select\r\n                      id=\"unit\"\r\n                      formControlName=\"unit\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Unit Selection\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (productForm.get('unit')?.dirty ||\r\n                            productForm.get('unit')?.touched ||\r\n                            aux.submitted) &&\r\n                          productForm.get('unit')?.invalid\r\n                      }\"\r\n                    >\r\n                      <option value=\"\" disabled selected>...</option>\r\n                      <option *ngFor=\"let unit of units\" [value]=\"unit\">\r\n                        {{ unit }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                </div>\r\n                <div class=\"row error-container align-items-center\">\r\n                  <div\r\n                    class=\"col-8 text-danger\"\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (productForm.get('quantity')?.invalid &&\r\n                        (productForm.get('quantity')?.dirty ||\r\n                          productForm.get('quantity')?.touched))\r\n                    \"\r\n                  >\r\n                    <div\r\n                      *ngIf=\"productForm.get('quantity')?.errors?.['required']\"\r\n                    >\r\n                      Es necesario ingresar una cantidad.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"!productForm.get('quantity')?.errors?.['required'] && productForm.get('quantity')?.errors?.['invalidQuantity']\"\r\n                    >\r\n                      La cantidad debe ser un número válido mayor a 0.\r\n                    </div>\r\n                  </div>\r\n                  <div\r\n                    class=\"col text-danger\"\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (productForm.get('unit')?.invalid &&\r\n                        (productForm.get('unit')?.dirty ||\r\n                          productForm.get('unit')?.touched))\r\n                    \"\r\n                  >\r\n                    <div *ngIf=\"productForm.get('unit')?.errors?.['required']\">\r\n                      Ingrese una unidad.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"cost\">Precio Unitario</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <div class=\"input-group mb-3\">\r\n                      <span class=\"input-group-text\">$</span>\r\n                      <input\r\n                        type=\"text\"\r\n                        class=\"form-control\"\r\n                        id=\"cost\"\r\n                        name=\"cost\"\r\n                        formControlName=\"cost\"\r\n                        aria-label=\"Precio\"\r\n                        placeholder=\"00000.00\"\r\n                        [ngClass]=\"{\r\n                          'is-invalid':\r\n                            (productForm.get('cost')?.dirty ||\r\n                              productForm.get('cost')?.touched ||\r\n                              aux.submitted) &&\r\n                            productForm.get('cost')?.invalid\r\n                        }\"\r\n                      />\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (productForm.get('cost')?.invalid &&\r\n                          (productForm.get('cost')?.dirty ||\r\n                            productForm.get('cost')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"productForm.get('cost')?.errors?.['required']\"\r\n                      >\r\n                        Es necesario ingresar un Precio.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!productForm.get('cost')?.errors?.['required'] && productForm.get('cost')?.errors?.['invalidQuantity']\"\r\n                      >\r\n                        El Precio debe ser un número válido y mayor que cero.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-3\">\r\n                    <div\r\n                      class=\"form-check form-switch d-flex align-items-center\"\r\n                    >\r\n                      <label class=\"form-check-label me-3\" for=\"freezed\"\r\n                        >Freezar</label\r\n                      >\r\n                      <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        data-toggle=\"switchbutton\"\r\n                        id=\"freezed\"\r\n                        name=\"freezed\"\r\n                        formControlName=\"freezed\"\r\n                        checked\r\n                        data-onstyle=\"success\"\r\n                        [ngClass]=\"{\r\n                          'is-invalid':\r\n                            (productForm.get('checkbox')?.dirty ||\r\n                              productForm.get('checkbox')?.touched ||\r\n                              aux.submitted) &&\r\n                            productForm.get('checkbox')?.invalid\r\n                        }\"\r\n                      />\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"col-4\">\r\n                    <label for=\"expirationDate\">Fecha de Vencimiento:</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"datetime-local\"\r\n                      class=\"form-control\"\r\n                      id=\"expirationDate\"\r\n                      formControlName=\"expirationDate\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (productForm.get('expirationDate')?.dirty ||\r\n                            productForm.get('expirationDate')?.touched ||\r\n                            aux.submitted) &&\r\n                          productForm.get('expirationDate')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        productForm.get('expirationDate')?.invalid &&\r\n                        (productForm.get('expirationDate')?.dirty ||\r\n                          productForm.get('expirationDate')?.touched)\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Se necesita una Fecha de Vencimiento.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"provider\">Proveedor</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <select\r\n                      id=\"provider\"\r\n                      formControlName=\"provider\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Provider Selection\"\r\n                      placeholder=\"Seleccione un proveedor\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (productForm.get('provider')?.dirty ||\r\n                            productForm.get('provider')?.touched ||\r\n                            aux.submitted) &&\r\n                          productForm.get('provider')?.invalid\r\n                      }\"\r\n                    >\r\n                      <option value=\"\" disabled selected>\r\n                        Seleccione un proveedor\r\n                      </option>\r\n                      <option\r\n                        *ngFor=\"let provider of providers\"\r\n                        [value]=\"provider['id']\"\r\n                      >\r\n                        {{ provider[\"name\"] }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        (aux.submitted &&\r\n                          productForm.get('provider')?.invalid) ||\r\n                        (productForm.get('provider')?.invalid &&\r\n                          (productForm.get('provider')?.dirty ||\r\n                            productForm.get('provider')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Se necesita un Provedor.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"form-group\">\r\n              <label for=\"desscription\">Descripcion</label>\r\n              <textarea\r\n                type=\"text\"\r\n                class=\"form-control desc\"\r\n                id=\"descripcion\"\r\n                name=\"description\"\r\n                formControlName=\"description\"\r\n                [ngClass]=\"{\r\n                  'is-invalid':\r\n                    (productForm.get('descripcion')?.dirty ||\r\n                      productForm.get('descripcion')?.touched ||\r\n                      aux.submitted) &&\r\n                    productForm.get('descripcion')?.invalid\r\n                }\"\r\n              >\r\n              </textarea>\r\n              <div class=\"error-container\">\r\n                <div\r\n                  *ngIf=\"\r\n                    productForm.get('description')?.invalid &&\r\n                    productForm.get('description')?.dirty &&\r\n                    productForm.get('description')?.value\r\n                  \"\r\n                  class=\"text-danger\"\r\n                >\r\n                  Descripcion no admite simbolos.\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"modal-footer justify-content-center\">\r\n          <button type=\"submit\" class=\"btn btn-custom\">GUARDAR</button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n<div\r\n  *ngIf=\"addTypeModal\"\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content\">\r\n      \r\n      <div class=\"modal-header\">\r\n        <h1 class=\"modal-title fs-5\" id=\"confirmDeleteModalLabel\">\r\n          Agregar Tipo\r\n        </h1>\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn-close\"\r\n          (click)=\"closeAddTypeModal()\"\r\n        ></button>\r\n      </div>\r\n      \r\n      <form #aux2=\"ngForm\" [formGroup]=\"addTypeForm\" (ngSubmit)=\"addType()\">\r\n        <div class=\"modal-body\">\r\n          <div class=\"form-group\">\r\n            <label for=\"newType\">Nuevo Tipo</label>\r\n            <input\r\n              type=\"text\"\r\n              class=\"form-control\"\r\n              id=\"newType\"\r\n              formControlName=\"newType\"\r\n              placeholder=\"Ingrese el nuevo tipo\"\r\n              [ngClass]=\"{\r\n                'is-invalid':\r\n                  (addTypeForm.get('newType')?.touched || aux2.submitted) &&\r\n                  addTypeForm.get('newType')?.invalid\r\n              }\"\r\n            />\r\n            <div\r\n              *ngIf=\"\r\n                (addTypeForm.get('newType')?.touched || aux2.submitted) &&\r\n                addTypeForm.get('newType')?.invalid\r\n              \"\r\n              class=\"text-danger mt-1\"\r\n            >\r\n              <div *ngIf=\"addTypeForm.get('newType')?.errors?.['required']\">\r\n                El tipo es requerido.\r\n              </div>\r\n              <div *ngIf=\"addTypeForm.get('newType')?.errors?.['pattern']\">\r\n                El tipo no debe contener números ni símbolos.\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        \r\n        <div class=\"modal-footer\">\r\n          <button\r\n            type=\"button\"\r\n            class=\"btn btn-secondary\"\r\n            (click)=\"closeAddTypeModal()\"\r\n          >\r\n            CANCELAR\r\n          </button>\r\n          <button type=\"submit\" class=\"btn btn-success\">\r\n            GUARDAR\r\n          </button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n","import { Component, EventEmitter, Input, Output } from '@angular/core';\r\n\r\n\r\n@Component({\r\n  selector: 'app-delete-modal',\r\n  standalone: true,\r\n  imports: [],\r\n  templateUrl: './delete-modal.component.html',\r\n  styleUrl: './delete-modal.component.scss'\r\n})\r\nexport class DeleteModalComponent {\r\n  @Input() confirmDeleteModal: boolean = false;\r\n  @Input() headerMessage: string = '';\r\n  @Input() bodyMessage: string = '';\r\n  @Output() confirm = new EventEmitter<void>();\r\n  @Output() cancel = new EventEmitter<void>();\r\n\r\n  closeDeleteModal() {\r\n    this.cancel.emit();\r\n  }\r\n\r\n  deleteEntity() {\r\n    this.confirm.emit();\r\n  }\r\n\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content\">\r\n      <div class=\"modal-header \">\r\n        <h1 class=\"modal-title fs-5\" id=\"confirmDeleteModalLabel\">\r\n          {{ headerMessage }}\r\n        </h1>\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn-close\"\r\n          (click)=\"closeDeleteModal()\"\r\n        ></button>\r\n      </div>\r\n      <div class=\"modal-body\">\r\n        <p>{{ bodyMessage }}</p>\r\n      </div>\r\n      <div class=\"modal-footer\">\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn btn-secondary\"\r\n          (click)=\"closeDeleteModal()\"\r\n        >\r\n          CANCELAR\r\n        </button>\r\n        <button type=\"button\" class=\"btn btn-danger\" (click)=\"deleteEntity()\">\r\n          CONFIRMAR\r\n        </button>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</div>\r\n","import {\r\n  Component,\r\n  EventEmitter,\r\n  Output,\r\n  Input,\r\n  SimpleChanges,\r\n} from '@angular/core';\r\nimport {\r\n  ReactiveFormsModule,\r\n  FormBuilder,\r\n  FormGroup,\r\n  Validators,\r\n} from '@angular/forms';\r\nimport { CommonModule } from '@angular/common';\r\nimport { Units } from '../../../shared/enums/units.enum';\r\nimport {\r\n  decimalNumberValidator,\r\n  conditionalRequiredValidator,\r\n} from '../../../core/utils/validators';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { RawMaterialsService } from '../../../core/services/api/rawmaterials.service';\r\nimport { InventoryService } from '../../../core/services/enums/inventory.service';\r\nimport { ProvidersService } from '../../../core/services/api/providers.service';\r\nimport { DeleteModalComponent } from '../../../shared/components/delete-modal/delete-modal.component';\r\nimport { formatDate, formatDateString } from '../../../core/utils/mapping.utils';\r\n\r\n@Component({\r\n  selector: 'app-raw-material',\r\n  standalone: true,\r\n  imports: [ReactiveFormsModule, CommonModule, DeleteModalComponent],\r\n  templateUrl: './raw-material.component.html',\r\n  styleUrl: './raw-material.component.scss',\r\n})\r\nexport class RawMaterialComponent {\r\n  @Input() productInput: TableData = {};\r\n  @Output() close = new EventEmitter<void>();\r\n  productForm: FormGroup;\r\n  addTypeForm: FormGroup;\r\n\r\n  inventoryTypes: string[] = [];\r\n  inputsTypes: string[] = [];\r\n  units: string[] = [];\r\n  addTypeModal: boolean = false;\r\n\r\n  providers: TableData[] = [];\r\n\r\n  avaibleFreezed: boolean = false;\r\n  isToggled: boolean = false;\r\n  confirmDeleteModal: boolean = false;\r\n\r\n  constructor(\r\n    private RawMaterialsServices: RawMaterialsService,\r\n    private formBuilder: FormBuilder,\r\n    private InventoryService: InventoryService,\r\n    private ProvidersService: ProvidersService\r\n  ) {\r\n    this.productForm = this.formBuilder.group(\r\n      {\r\n        name: [{ value: '', disabled: !this.isToggled }, [Validators.required]],\r\n        type: [\r\n          { value: '', disabled: !this.isToggled },\r\n          [Validators.required, Validators.pattern('^[a-zA-Z ]*$')],\r\n        ],\r\n        quantity: [\r\n          { value: '', disabled: !this.isToggled },\r\n          [Validators.required],\r\n        ],\r\n        unit: [{ value: '', disabled: !this.isToggled }, [Validators.required]],\r\n        cost: [\r\n          { value: '', disabled: !this.isToggled },\r\n          [Validators.required, decimalNumberValidator],\r\n        ],\r\n        description: [\r\n          { value: '', disabled: !this.isToggled },\r\n          [Validators.pattern(/^[a-zA-Z0-9\\s]+$/)],\r\n        ],\r\n        freezed: [{ value: false, disabled: true }, [Validators.required]],\r\n        expirationDate: [{ value: '', disabled: true }],\r\n        provider: [\r\n          { value: '', disabled: !this.isToggled },\r\n          [Validators.required],\r\n        ],\r\n      },\r\n      {\r\n        validators: conditionalRequiredValidator('expirationDate', 'freezed'),\r\n      }\r\n    );\r\n    this.addTypeForm = this.formBuilder.group({\r\n      newType: ['', [Validators.required, Validators.pattern('^[a-zA-Z ]*$')]],\r\n    });\r\n  }\r\n\r\n  ngOnInit() {\r\n    //console.log('productInput', this.productInput);\r\n    this.InventoryService.chargeRawMaterialTypes();\r\n    this.getProviders();\r\n    this.loadProductTypes();\r\n    this.units = Object.values(Units);\r\n    this.productForm.get('type')?.valueChanges.subscribe(() => {\r\n      this.updateFreezedState();\r\n    });\r\n    this.productForm.get('freezed')?.valueChanges.subscribe((isFreezed) => {\r\n      this.updateExpirationDateState(isFreezed);\r\n    });\r\n  }\r\n\r\n  ngOnChanges(changes: SimpleChanges) {\r\n    if (changes['productInput'] && changes['productInput'].currentValue) {\r\n      //console.log(this.transformProductInput(this.productInput));\r\n      this.productForm.patchValue(this.transformProductInput(this.productInput));\r\n    }\r\n  }\r\n\r\n  toggleEditMode() {\r\n    this.isToggled = !this.isToggled;\r\n    if (this.isToggled) {\r\n      this.productForm.enable(); // Habilita todos los controles del formulario\r\n    } else {\r\n      this.productForm.disable(); // Deshabilita todos los controles del formulario\r\n    }\r\n    this.updateFreezedState();\r\n  }\r\n\r\n  closeModal() {\r\n    this.close.emit();\r\n  }\r\n\r\n  confirmDelete() {\r\n    this.confirmDeleteModal = true;\r\n  }\r\n\r\n  closeDeleteModal() {\r\n    this.confirmDeleteModal = false;\r\n  }\r\n\r\n  deleteProduct() {\r\n    //Call backend\r\n    this.RawMaterialsServices.deleteRawMaterial(\r\n      this.productInput['id']\r\n    ).subscribe(\r\n      () => {\r\n        this.closeModal();\r\n      },\r\n      (error) => {\r\n        console.error('Error al eliminar la materia prima', error);\r\n      }\r\n    );\r\n  }\r\n\r\n  openAddTypeModal() {\r\n    this.addTypeModal = true;\r\n  }\r\n\r\n  closeAddTypeModal() {\r\n    this.addTypeModal = false;\r\n  }\r\n\r\n\r\n  addType() {\r\n    if (this.addTypeForm.valid) {\r\n      const newType = this.addTypeForm.value.newType;\r\n      this.InventoryService.addRawMaterialType(newType);\r\n      this.closeAddTypeModal();\r\n    } else {\r\n      console.error('Formulario de tipo inválido.');\r\n    }\r\n  }\r\n\r\n  onSubmit() {\r\n    if (this.productForm.valid) {\r\n      const providerId = this.productForm.get('provider')?.value;\r\n      const selectedProvider = this.providers.find((provider) => {\r\n        return Number(provider['id']) === Number(providerId);\r\n      });\r\n      const rawMaterial: TableData = {\r\n        id: this.productInput['id'],\r\n        name: this.productForm.get('name')?.value,\r\n        type: this.productForm.get('type')?.value,\r\n        quantity: this.productForm.get('quantity')?.value,\r\n        unit: this.productForm.get('unit')?.value,\r\n        cost: this.productForm.get('cost')?.value,\r\n        descripction: this.productForm.get('description')?.value || '',\r\n        freeze: this.productForm.get('freezed')?.value,\r\n        expirationDate: this.productForm.get('expirationDate')?.value,\r\n        provider: selectedProvider || {},\r\n        admissionDate: formatDateString(this.productInput['admissionDate']),\r\n        lastModificationDate: formatDateString(this.productInput['lastModificationDate'])\r\n      }\r\n      this.RawMaterialsServices.updateRawMaterial(rawMaterial).subscribe(\r\n        () => {\r\n          this.closeModal();\r\n        },\r\n        (error) => {\r\n          console.error('Error al actualizar la materia prima', error);}\r\n      );\r\n    }\r\n  }\r\n\r\n  private transformProductInput(data: TableData): any {\r\n    return {\r\n      name: data['name'] ?? '',\r\n      type: data['type'] ?? '',\r\n      quantity: data['quantity'] ? String(data['quantity']) : '',\r\n      unit: data['unit'] ?? '',\r\n      cost: data['cost'] ? String(data['cost']) : '',\r\n      freezed: data['freeze'] ?? false,\r\n      expirationDate: formatDate(data['expirationDate']),\r\n      provider: data['provider'].id ?? '',\r\n    };\r\n  }\r\n\r\n  private getProviders() {\r\n    this.ProvidersService.getProviders().subscribe((res: any[]) => {\r\n      this.providers = res.sort((a, b) => a.name.localeCompare(b.name));\r\n    });\r\n  }\r\n\r\n  private loadProductTypes(): void {\r\n    this.InventoryService.getInputsTypes().subscribe((types) => {\r\n      this.inventoryTypes = types.sort((a, b) => a.localeCompare(b));\r\n    });\r\n  }\r\n\r\n  private updateExpirationDateState(isFreezed: boolean): void {\r\n    const expirationDateControl = this.productForm.get('expirationDate');\r\n    if (isFreezed) {\r\n      expirationDateControl?.enable();\r\n    } else {\r\n      expirationDateControl?.disable();\r\n    }\r\n  }\r\n  private updateFreezedState(): void {\r\n    const typeControl = this.productForm.get('type');\r\n    const freezedControl = this.productForm.get('freezed');\r\n\r\n    if (typeControl && freezedControl) {\r\n      const typeValue = typeControl.value;\r\n      const isTypeInInputs = this.inputsTypes.includes(typeValue);\r\n\r\n      // Deshabilitar el campo 'freezed' si el tipo está en inputsTypes, habilitar si no está en inputsTypes\r\n      if (isTypeInInputs) {\r\n        freezedControl.disable();\r\n        // También podemos establecer un valor predeterminado para 'freezed' cuando está deshabilitado\r\n        if (freezedControl.value) {\r\n          freezedControl.setValue(false);\r\n        }\r\n      } else {\r\n        freezedControl.enable();\r\n      }\r\n    }\r\n  }\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content modal-content-custom\">\r\n      <div\r\n        class=\"modal-header d-flex justify-content-center align-items-center\"\r\n      >\r\n        <div class=\"row w-100\">\r\n          <div class=\"col\">\r\n            <h5 class=\"modal-title\">Detalles Existencia</h5>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-center\">\r\n            <div class=\"form-check form-switch\">\r\n              <label class=\"form-check-label\" for=\"flexSwitchCheckDefault\"\r\n                >Editar</label\r\n              >\r\n              <input\r\n                class=\"form-check-input custom-switch\"\r\n                type=\"checkbox\"\r\n                id=\"flexSwitchCheckDefault\"\r\n                (change)=\"toggleEditMode()\"\r\n              />\r\n            </div>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-end\">\r\n            <button\r\n              type=\"button\"\r\n              class=\"btn-close\"\r\n              aria-label=\"Close\"\r\n              (click)=\"closeModal()\"\r\n            ></button>\r\n          </div>\r\n        </div>\r\n      </div>\r\n      <form #aux=\"ngForm\" [formGroup]=\"productForm\" (ngSubmit)=\"onSubmit()\">\r\n        <div class=\"modal-body\">\r\n          <div class=\"row\">\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"name\">Nombre</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"name\"\r\n                      name=\"name\"\r\n                      formControlName=\"name\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (productForm.get('name')?.invalid &&\r\n                          (productForm.get('name')?.dirty ||\r\n                            productForm.get('name')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"productForm.get('name')?.errors?.['required']\"\r\n                      >\r\n                        Nombre es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!productForm.get('name')?.errors?.['required'] && productForm.get('name')?.errors?.['pattern']\"\r\n                      >\r\n                        El nombre no debe contener números ni símbolos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"type\" class=\"mb-0\">Tipo</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <select\r\n                      id=\"type\"\r\n                      formControlName=\"type\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Type Selection\"\r\n                      placeholder=\"Seleccione un tipo\"\r\n                    >\r\n                      <option value=\"\" disabled selected>\r\n                        Selecciona un tipo\r\n                      </option>\r\n                      <option\r\n                        *ngFor=\"let type of inventoryTypes\"\r\n                        [value]=\"type\"\r\n                      >\r\n                        {{ type }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <button\r\n                      type=\"button\"\r\n                      class=\"btn btn-custom\"\r\n                      [disabled]=\"!isToggled\"\r\n                      (click)=\"openAddTypeModal()\"\r\n                    >\r\n                      Agregar Tipo\r\n                    </button>\r\n                  </div>\r\n                </div>\r\n                <div class=\"error-container\">\r\n                  <div\r\n                    *ngIf=\"aux.submitted && productForm.get('type')?.invalid\"\r\n                    class=\"text-danger mt-1\"\r\n                  >\r\n                    <div *ngIf=\"productForm.get('type')?.errors?.['required']\">\r\n                      Tipo es requerido.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"quantity\">Cantidad</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"number\"\r\n                      class=\"form-control\"\r\n                      id=\"quantity\"\r\n                      name=\"quantity\"\r\n                      formControlName=\"quantity\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <label for=\"unit\">Unidad</label>\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <select\r\n                      id=\"unit\"\r\n                      formControlName=\"unit\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Unit Selection\"\r\n                    >\r\n                      <option value=\"\" disabled selected>...</option>\r\n                      <option *ngFor=\"let unit of units\" [value]=\"unit\">\r\n                        {{ unit }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                </div>\r\n                <div class=\"row error-container align-items-center\">\r\n                  <div\r\n                    class=\"col-8 text-danger\"\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (productForm.get('quantity')?.invalid &&\r\n                        (productForm.get('quantity')?.dirty ||\r\n                          productForm.get('quantity')?.touched))\r\n                    \"\r\n                  >\r\n                    <div\r\n                      *ngIf=\"productForm.get('quantity')?.errors?.['required']\"\r\n                    >\r\n                      Es necesario ingresar una cantidad.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"!productForm.get('quantity')?.errors?.['required'] && productForm.get('quantity')?.errors?.['invalidQuantity']\"\r\n                    >\r\n                      La cantidad debe ser un número válido mayor a 0.\r\n                    </div>\r\n                  </div>\r\n                  <div\r\n                    class=\"col text-danger\"\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (productForm.get('unit')?.invalid &&\r\n                        (productForm.get('unit')?.dirty ||\r\n                          productForm.get('unit')?.touched))\r\n                    \"\r\n                  >\r\n                    <div *ngIf=\"productForm.get('unit')?.errors?.['required']\">\r\n                      Ingrese una unidad.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"cost\">Precio Unitario</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <div class=\"input-group mb-3\">\r\n                      <span class=\"input-group-text\">$</span>\r\n                      <input\r\n                        type=\"text\"\r\n                        class=\"form-control\"\r\n                        id=\"cost\"\r\n                        name=\"cost\"\r\n                        formControlName=\"cost\"\r\n                        aria-label=\"Costo\"\r\n                      />\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (productForm.get('cost')?.invalid &&\r\n                          (productForm.get('cost')?.dirty ||\r\n                            productForm.get('cost')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"productForm.get('cost')?.errors?.['required']\"\r\n                      >\r\n                        Es necesario ingresar un Precio.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!productForm.get('cost')?.errors?.['required'] && productForm.get('cost')?.errors?.['invalidQuantity']\"\r\n                      >\r\n                        El Precio debe ser un número válido y mayor que cero.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-3\">\r\n                    <div\r\n                      class=\"form-check form-switch d-flex align-items-center\"\r\n                    >\r\n                      <label class=\"form-check-label me-3\" for=\"freezed\"\r\n                        >Freezar</label\r\n                      >\r\n                      <input class=\"form-check-input\" type=\"checkbox\" data-toggle=\"switchbutton\" id=\"freezed\"\r\n                        name=\"freezed\" formControlName=\"freezed\" checked data-onstyle=\"success\" />\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"col-4\">\r\n                    <label for=\"expirationDate\">Fecha de Vencimiento:</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"datetime-local\"\r\n                      class=\"form-control\"\r\n                      id=\"expirationDate\"\r\n                      formControlName=\"expirationDate\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        productForm.get('expirationDate')?.invalid &&\r\n                        (productForm.get('expirationDate')?.dirty ||\r\n                          productForm.get('expirationDate')?.touched)\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Se necesita una Fecha de Vencimiento.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"expirationDate\">Proveedor</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <select\r\n                      id=\"provider\"\r\n                      formControlName=\"provider\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Provider Selection\"\r\n                    >\r\n                      <option value=\"\" disabled selected>...</option>\r\n                      <option *ngFor=\"let provider of providers\" [value]=\"provider['id']\">\r\n                        {{ provider['name']}}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        (aux.submitted && productForm.get('provider')?.invalid) ||\r\n                        (productForm.get('provider')?.invalid &&\r\n                          (productForm.get('provider')?.dirty ||\r\n                            productForm.get('provider')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Se necesita un Provedor.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"form-group\">\r\n              <label for=\"desscription\">Descripcion</label>\r\n              <textarea\r\n                type=\"text\"\r\n                class=\"form-control desc\"\r\n                id=\"descripcion\"\r\n                name=\"description\"\r\n                formControlName=\"description\"\r\n              >\r\n              </textarea>\r\n              <div class=\"error-container\">\r\n                <div\r\n                  *ngIf=\"\r\n                    productForm.get('description')?.invalid &&\r\n                    productForm.get('description')?.dirty &&\r\n                    productForm.get('description')?.value\r\n                  \"\r\n                  class=\"text-danger\"\r\n                >\r\n                  Descripcion no admite simbolos.\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"modal-footer justify-content-center\">\r\n          <button type=\"submit\" class=\"btn btn-custom\" [disabled]=\"!isToggled\">\r\n            GUARDAR\r\n          </button>\r\n          <button\r\n            type=\"button\"\r\n            class=\"btn btn-danger\"\r\n            (click)=\"confirmDelete()\"\r\n          >\r\n            BORRAR\r\n          </button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n<div\r\n  *ngIf=\"addTypeModal\"\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content\">\r\n      \r\n      <div class=\"modal-header\">\r\n        <h1 class=\"modal-title fs-5\" id=\"confirmDeleteModalLabel\">\r\n          Agregar Tipo\r\n        </h1>\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn-close\"\r\n          (click)=\"closeAddTypeModal()\"\r\n        ></button>\r\n      </div>\r\n      \r\n      <form #aux2=\"ngForm\" [formGroup]=\"addTypeForm\" (ngSubmit)=\"addType()\">\r\n        <div class=\"modal-body\">\r\n          <div class=\"form-group\">\r\n            <label for=\"newType\">Nuevo Tipo</label>\r\n            <input\r\n              type=\"text\"\r\n              class=\"form-control\"\r\n              id=\"newType\"\r\n              formControlName=\"newType\"\r\n              placeholder=\"Ingrese el nuevo tipo\"\r\n              [ngClass]=\"{\r\n                'is-invalid':\r\n                  (addTypeForm.get('newType')?.touched || aux2.submitted) &&\r\n                  addTypeForm.get('newType')?.invalid\r\n              }\"\r\n            />\r\n            <div\r\n              *ngIf=\"\r\n                (addTypeForm.get('newType')?.touched || aux2.submitted) &&\r\n                addTypeForm.get('newType')?.invalid\r\n              \"\r\n              class=\"text-danger mt-1\"\r\n            >\r\n              <div *ngIf=\"addTypeForm.get('newType')?.errors?.['required']\">\r\n                El tipo es requerido.\r\n              </div>\r\n              <div *ngIf=\"addTypeForm.get('newType')?.errors?.['pattern']\">\r\n                El tipo no debe contener números ni símbolos.\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        \r\n        <div class=\"modal-footer\">\r\n          <button\r\n            type=\"button\"\r\n            class=\"btn btn-secondary\"\r\n            (click)=\"closeAddTypeModal()\"\r\n          >\r\n            CANCELAR\r\n          </button>\r\n          <button type=\"submit\" class=\"btn btn-success\">\r\n            GUARDAR\r\n          </button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n\r\n<app-delete-modal\r\n  *ngIf=\"confirmDeleteModal\"\r\n  [headerMessage]=\"'Eliminar Proveedor'\"\r\n  [bodyMessage]=\"'¿Estás seguro que deseas borrar este Proveedor?'\"\r\n  (cancel)=\"closeDeleteModal()\"\r\n  (confirm)=\"deleteProduct()\"\r\n>\r\n</app-delete-modal>\r\n","import {\r\n  Component,\r\n  EventEmitter,\r\n  Output,\r\n  Input,\r\n  SimpleChanges,\r\n} from '@angular/core';\r\nimport {\r\n  ReactiveFormsModule,\r\n  FormBuilder,\r\n  FormGroup,\r\n  Validators,\r\n} from '@angular/forms';\r\nimport { CommonModule } from '@angular/common';\r\nimport { Units } from '../../../shared/enums/units.enum';\r\nimport {\r\n  decimalNumberValidator,\r\n  conditionalRequiredValidator,\r\n} from '../../../core/utils/validators';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { InputsService } from '../../../core/services/api/inputs.service';\r\nimport { InventoryService } from '../../../core/services/enums/inventory.service';\r\nimport { ProvidersService } from '../../../core/services/api/providers.service';\r\nimport { DeleteModalComponent } from '../../../shared/components/delete-modal/delete-modal.component';\r\nimport { formatDate, formatDateString } from '../../../core/utils/mapping.utils';\r\n@Component({\r\n  selector: 'app-inputs',\r\n  standalone: true,\r\n  imports: [ReactiveFormsModule, CommonModule, DeleteModalComponent],\r\n  templateUrl: './inputs.component.html',\r\n  styleUrl: './inputs.component.scss',\r\n})\r\nexport class InputsComponent {\r\n  @Input() productInput: TableData = {};\r\n  @Output() close = new EventEmitter<void>();\r\n  productForm: FormGroup;\r\n  addTypeForm: FormGroup;\r\n\r\n  inventoryTypes: string[] = [];\r\n  inputsTypes: string[] = [];\r\n  units: string[] = [];\r\n  addTypeModal: boolean = false;\r\n\r\n  providers: TableData[] = [];\r\n\r\n  avaibleFreezed: boolean = false;\r\n  isToggled: boolean = false;\r\n  confirmDeleteModal: boolean = false;\r\n\r\n  constructor(\r\n    private InputsService: InputsService,\r\n    private formBuilder: FormBuilder,\r\n    private InventoryService: InventoryService,\r\n    private ProvidersService: ProvidersService\r\n  ) {\r\n    this.productForm = this.formBuilder.group(\r\n      {\r\n        name: [{ value: '', disabled: !this.isToggled }, [Validators.required]],\r\n        type: [\r\n          { value: '', disabled: !this.isToggled },\r\n          [Validators.required, Validators.pattern('^[a-zA-Z ]*$')],\r\n        ],\r\n        quantity: [\r\n          { value: '', disabled: !this.isToggled },\r\n          [Validators.required],\r\n        ],\r\n        unit: [{ value: '', disabled: !this.isToggled }, [Validators.required]],\r\n        cost: [\r\n          { value: '', disabled: !this.isToggled },\r\n          [Validators.required, decimalNumberValidator],\r\n        ],\r\n        description: [\r\n          { value: '', disabled: !this.isToggled },\r\n          [Validators.pattern(/^[a-zA-Z0-9\\s]+$/)],\r\n        ],\r\n        provider: [\r\n          { value: '', disabled: !this.isToggled },\r\n          [Validators.required],\r\n        ],\r\n      },\r\n      {\r\n        validators: conditionalRequiredValidator('expirationDate', 'freezed'),\r\n      }\r\n    );\r\n    this.addTypeForm = this.formBuilder.group({\r\n      newType: ['', [Validators.required, Validators.pattern('^[a-zA-Z ]*$')]],\r\n    });\r\n  }\r\n\r\n  ngOnInit() {\r\n    this.InventoryService.chargeInputsTypes();\r\n    this.getProviders();\r\n    this.loadProductTypes();\r\n    this.InputsService.getInputsTypes().subscribe(\r\n      (types) => (this.inputsTypes = types)\r\n    );\r\n    this.units = Object.values(Units);\r\n  }\r\n\r\n  ngOnChanges(changes: SimpleChanges) {\r\n    if (changes['productInput'] && changes['productInput'].currentValue) {\r\n      //console.log(this.transformProductInput(this.productInput));\r\n      this.productForm.patchValue(\r\n        this.transformProductInput(this.productInput)\r\n      );\r\n    }\r\n  }\r\n\r\n  toggleEditMode() {\r\n    this.isToggled = !this.isToggled;\r\n    if (this.isToggled) {\r\n      this.productForm.enable(); // Habilita todos los controles del formulario\r\n    } else {\r\n      this.productForm.disable(); // Deshabilita todos los controles del formulario\r\n    }\r\n  }\r\n\r\n  closeModal() {\r\n    this.close.emit();\r\n  }\r\n\r\n  confirmDelete() {\r\n    this.confirmDeleteModal = true;\r\n  }\r\n\r\n  closeDeleteModal() {\r\n    this.confirmDeleteModal = false;\r\n  }\r\n\r\n  deleteProduct() {\r\n    //Call backend\r\n    /*console.log(\r\n      'Eliminando producto',\r\n      this.productForm.get('freezed')?.enabled,\r\n      !this.inputsTypes.includes(this.productForm.get('type')?.value)\r\n    );*/\r\n    this.InputsService.deleteInput(this.productInput['id']).subscribe(\r\n      () => {\r\n        //console.log('Insumo eliminado con éxito');\r\n        this.closeModal();\r\n      },\r\n      (error) => {\r\n        console.error('Error al eliminar el insumo', error);\r\n      }\r\n    );\r\n  }\r\n\r\n  //Type and Providers\r\n  openAddTypeModal() {\r\n    this.addTypeModal = true;\r\n  }\r\n\r\n  closeAddTypeModal() {\r\n    this.addTypeModal = false;\r\n  }\r\n\r\n  addType() {\r\n    if (this.addTypeForm.valid) {\r\n      const newType = this.addTypeForm.value.newType;\r\n      this.InventoryService.addInputsType(newType);\r\n      this.InventoryService.getInputsTypes().subscribe((types) => {\r\n        this.inventoryTypes = types; // Actualiza la lista en el componente\r\n        this.closeAddTypeModal();\r\n      });\r\n    } else {\r\n      console.log('Formulario de tipo inválido.');\r\n    }\r\n  }\r\n\r\n  onSubmit() {\r\n    if (this.productForm.valid) {\r\n      const providerId = this.productForm.get('provider')?.value;\r\n      const selectedProvider = this.providers.find((provider) => {\r\n        return Number(provider['id']) === Number(providerId);\r\n      });\r\n      //console.log('form', this.productForm);\r\n      const input: TableData = {\r\n        id: this.productInput['id'],\r\n        name: this.productForm.get('name')?.value,\r\n        type: this.productForm.get('type')?.value,\r\n        quantity: this.productForm.get('quantity')?.value,\r\n        unit: this.productForm.get('unit')?.value,\r\n        cost: this.productForm.get('cost')?.value,\r\n        description: this.productForm.get('description')?.value || '',\r\n        provider: selectedProvider || {},\r\n        admissionDate: formatDateString(this.productInput['admissionDate']),\r\n        lastModificationDate: formatDateString(this.productInput['lastModificationDate'])\r\n      }\r\n      this.InputsService.updateInput(input).subscribe(\r\n        () => {\r\n          //console.log('Insumo modificado con éxito');\r\n          this.closeModal();\r\n        },\r\n        (error) => {\r\n          console.error('Error al crear el insumo', error);\r\n        }\r\n      );\r\n    } else {\r\n      console.error('Formulario inválido');\r\n    }\r\n  }\r\n\r\n  private transformProductInput(data: TableData): any {\r\n    return {\r\n      name: data['name'] ?? '',\r\n      type: data['type'] ?? '',\r\n      quantity: data['quantity'] ? String(data['quantity']) : '',\r\n      unit: data['unit'] ?? '',\r\n      cost: data['cost'] ? String(data['cost']) : '',\r\n      freezed: data['freeze'] ?? false,\r\n      expirationDate: formatDate(data['expirationDate']),\r\n      provider: data['provider'].id ?? '',\r\n    };\r\n  }\r\n\r\n  private getProviders() {\r\n    this.ProvidersService.getProviders().subscribe((res: any[]) => {\r\n      this.providers = res.sort((a, b) => a.name.localeCompare(b.name));\r\n    });\r\n  }\r\n\r\n  private loadProductTypes(): void {\r\n    this.InventoryService.getInputsTypes().subscribe((types) => {\r\n      this.inventoryTypes = types.sort((a, b) => a.localeCompare(b));\r\n    });\r\n  }\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content modal-content-custom\">\r\n      <div\r\n        class=\"modal-header d-flex justify-content-center align-items-center\"\r\n      >\r\n        <div class=\"row w-100\">\r\n          <div class=\"col\">\r\n            <h5 class=\"modal-title\">Detalles Existencia</h5>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-center\">\r\n            <div class=\"form-check form-switch\">\r\n              <label class=\"form-check-label\" for=\"flexSwitchCheckDefault\"\r\n                >Editar</label\r\n              >\r\n              <input\r\n                class=\"form-check-input custom-switch\"\r\n                type=\"checkbox\"\r\n                id=\"flexSwitchCheckDefault\"\r\n                (change)=\"toggleEditMode()\"\r\n              />\r\n            </div>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-end\">\r\n            <button\r\n              type=\"button\"\r\n              class=\"btn-close\"\r\n              aria-label=\"Close\"\r\n              (click)=\"closeModal()\"\r\n            ></button>\r\n          </div>\r\n        </div>\r\n      </div>\r\n      <form #aux=\"ngForm\" [formGroup]=\"productForm\" (ngSubmit)=\"onSubmit()\">\r\n        <div class=\"modal-body\">\r\n          <div class=\"row\">\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"name\">Nombre</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"name\"\r\n                      name=\"name\"\r\n                      formControlName=\"name\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (productForm.get('name')?.invalid &&\r\n                          (productForm.get('name')?.dirty ||\r\n                            productForm.get('name')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"productForm.get('name')?.errors?.['required']\"\r\n                      >\r\n                        Nombre es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!productForm.get('name')?.errors?.['required'] && productForm.get('name')?.errors?.['pattern']\"\r\n                      >\r\n                        El nombre no debe contener números ni símbolos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"type\" class=\"mb-0\">Tipo</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <select\r\n                      id=\"type\"\r\n                      formControlName=\"type\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Type Selection\"\r\n                      placeholder=\"Seleccione un tipo\"\r\n                    >\r\n                      <option value=\"\" disabled selected>\r\n                        Selecciona un tipo\r\n                      </option>\r\n                      <option\r\n                        *ngFor=\"let type of inventoryTypes\"\r\n                        [value]=\"type\"\r\n                      >\r\n                        {{ type }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <button\r\n                      type=\"button\"\r\n                      class=\"btn btn-custom\"\r\n                      [disabled]=\"!isToggled\"\r\n                      (click)=\"openAddTypeModal()\"\r\n                    >\r\n                      Agregar Tipo\r\n                    </button>\r\n                  </div>\r\n                </div>\r\n                <div class=\"error-container\">\r\n                  <div\r\n                    *ngIf=\"aux.submitted && productForm.get('type')?.invalid\"\r\n                    class=\"text-danger mt-1\"\r\n                  >\r\n                    <div *ngIf=\"productForm.get('type')?.errors?.['required']\">\r\n                      Tipo es requerido.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"quantity\">Cantidad</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"number\"\r\n                      class=\"form-control\"\r\n                      id=\"quantity\"\r\n                      name=\"quantity\"\r\n                      formControlName=\"quantity\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <label for=\"unit\">Unidad</label>\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <select\r\n                      id=\"unit\"\r\n                      formControlName=\"unit\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Unit Selection\"\r\n                    >\r\n                      <option value=\"\" disabled selected>...</option>\r\n                      <option *ngFor=\"let unit of units\" [value]=\"unit\">\r\n                        {{ unit }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                </div>\r\n                <div class=\"row error-container align-items-center\">\r\n                  <div\r\n                    class=\"col-8 text-danger\"\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (productForm.get('quantity')?.invalid &&\r\n                        (productForm.get('quantity')?.dirty ||\r\n                          productForm.get('quantity')?.touched))\r\n                    \"\r\n                  >\r\n                    <div\r\n                      *ngIf=\"productForm.get('quantity')?.errors?.['required']\"\r\n                    >\r\n                      Es necesario ingresar una cantidad.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"!productForm.get('quantity')?.errors?.['required'] && productForm.get('quantity')?.errors?.['invalidQuantity']\"\r\n                    >\r\n                      La cantidad debe ser un número válido mayor a 0.\r\n                    </div>\r\n                  </div>\r\n                  <div\r\n                    class=\"col text-danger\"\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (productForm.get('unit')?.invalid &&\r\n                        (productForm.get('unit')?.dirty ||\r\n                          productForm.get('unit')?.touched))\r\n                    \"\r\n                  >\r\n                    <div *ngIf=\"productForm.get('unit')?.errors?.['required']\">\r\n                      Ingrese una unidad.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"cost\">Precio Unitario</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <div class=\"input-group mb-3\">\r\n                      <span class=\"input-group-text\">$</span>\r\n                      <input\r\n                        type=\"text\"\r\n                        class=\"form-control\"\r\n                        id=\"cost\"\r\n                        name=\"cost\"\r\n                        formControlName=\"cost\"\r\n                        aria-label=\"Costo\"\r\n                      />\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (productForm.get('cost')?.invalid &&\r\n                          (productForm.get('cost')?.dirty ||\r\n                            productForm.get('cost')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"productForm.get('cost')?.errors?.['required']\"\r\n                      >\r\n                        Es necesario ingresar un Precio.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!productForm.get('cost')?.errors?.['required'] && productForm.get('cost')?.errors?.['invalidQuantity']\"\r\n                      >\r\n                        El Precio debe ser un número válido y mayor que cero.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"expirationDate\">Proveedor</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <select\r\n                      id=\"provider\"\r\n                      formControlName=\"provider\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Provider Selection\"\r\n                    >\r\n                      <option value=\"\" disabled selected>...</option>\r\n                      <option\r\n                        *ngFor=\"let provider of providers\"\r\n                        [value]=\"provider['id']\"\r\n                      >\r\n                        {{ provider[\"name\"] }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        (aux.submitted &&\r\n                          productForm.get('provider')?.invalid) ||\r\n                        (productForm.get('provider')?.invalid &&\r\n                          (productForm.get('provider')?.dirty ||\r\n                            productForm.get('provider')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Se necesita un Provedor.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"form-group\">\r\n              <label for=\"desscription\">Descripcion</label>\r\n              <textarea\r\n                type=\"text\"\r\n                class=\"form-control desc\"\r\n                id=\"descripcion\"\r\n                name=\"description\"\r\n                formControlName=\"description\"\r\n              >\r\n              </textarea>\r\n              <div class=\"error-container\">\r\n                <div\r\n                  *ngIf=\"\r\n                    productForm.get('description')?.invalid &&\r\n                    productForm.get('description')?.dirty &&\r\n                    productForm.get('description')?.value\r\n                  \"\r\n                  class=\"text-danger\"\r\n                >\r\n                  Descripcion no admite simbolos.\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"modal-footer justify-content-center\">\r\n          <button type=\"submit\" class=\"btn btn-custom\" [disabled]=\"!isToggled\">\r\n            GUARDAR\r\n          </button>\r\n          <button\r\n            type=\"button\"\r\n            class=\"btn btn-danger\"\r\n            (click)=\"confirmDelete()\"\r\n          >\r\n            BORRAR\r\n          </button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n<div\r\n  *ngIf=\"addTypeModal\"\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content\">\r\n      \r\n      <div class=\"modal-header\">\r\n        <h1 class=\"modal-title fs-5\" id=\"confirmDeleteModalLabel\">\r\n          Agregar Tipo\r\n        </h1>\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn-close\"\r\n          (click)=\"closeAddTypeModal()\"\r\n        ></button>\r\n      </div>\r\n      \r\n      <form #aux2=\"ngForm\" [formGroup]=\"addTypeForm\" (ngSubmit)=\"addType()\">\r\n        <div class=\"modal-body\">\r\n          <div class=\"form-group\">\r\n            <label for=\"newType\">Nuevo Tipo</label>\r\n            <input\r\n              type=\"text\"\r\n              class=\"form-control\"\r\n              id=\"newType\"\r\n              formControlName=\"newType\"\r\n              placeholder=\"Ingrese el nuevo tipo\"\r\n              [ngClass]=\"{\r\n                'is-invalid':\r\n                  (addTypeForm.get('newType')?.touched || aux2.submitted) &&\r\n                  addTypeForm.get('newType')?.invalid\r\n              }\"\r\n            />\r\n            <div\r\n              *ngIf=\"\r\n                (addTypeForm.get('newType')?.touched || aux2.submitted) &&\r\n                addTypeForm.get('newType')?.invalid\r\n              \"\r\n              class=\"text-danger mt-1\"\r\n            >\r\n              <div *ngIf=\"addTypeForm.get('newType')?.errors?.['required']\">\r\n                El tipo es requerido.\r\n              </div>\r\n              <div *ngIf=\"addTypeForm.get('newType')?.errors?.['pattern']\">\r\n                El tipo no debe contener números ni símbolos.\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        \r\n        <div class=\"modal-footer\">\r\n          <button\r\n            type=\"button\"\r\n            class=\"btn btn-secondary\"\r\n            (click)=\"closeAddTypeModal()\"\r\n          >\r\n            CANCELAR\r\n          </button>\r\n          <button type=\"submit\" class=\"btn btn-success\">\r\n            GUARDAR\r\n          </button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n<app-delete-modal\r\n  *ngIf=\"confirmDeleteModal\"\r\n  [headerMessage]=\"'Eliminar Proveedor'\"\r\n  [bodyMessage]=\"'¿Estás seguro que deseas borrar este Proveedor?'\"\r\n  (cancel)=\"closeDeleteModal()\"\r\n  (confirm)=\"deleteProduct()\"\r\n>\r\n</app-delete-modal>\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { NavbarComponent } from '../../shared/components/navbar/navbar.component';\r\nimport { TableComponent } from '../../shared/components/table/table.component';\r\nimport { SearchBarComponent } from '../../shared/components/search-bar/search-bar.component';\r\nimport { TableData } from '../../core/interfaces/table-data';\r\nimport { CommonModule } from '@angular/common';\r\nimport { InventoryService } from '../../core/services/enums/inventory.service';\r\nimport { filterTableData } from '../../core/utils/table-data.utils';\r\nimport { DecisionModalComponent } from './decision-modal/decision-modal.component';\r\nimport { AddInputComponent } from './add-input/add-input.component';\r\nimport { AddRawMaterialComponent } from './add-raw-material/add-raw-material.component';\r\nimport { RawMaterialComponent } from './raw-material/raw-material.component';\r\nimport { InputsComponent } from './inputs/inputs.component';\r\n@Component({\r\n  selector: 'app-inventory',\r\n  standalone: true,\r\n  imports: [\r\n    NavbarComponent,\r\n    TableComponent,\r\n    SearchBarComponent,\r\n    CommonModule,\r\n    DecisionModalComponent,\r\n    AddInputComponent,\r\n    AddRawMaterialComponent,\r\n    RawMaterialComponent,\r\n    InputsComponent,\r\n  ],\r\n  templateUrl: './inventory.component.html',\r\n  styleUrl: './inventory.component.scss',\r\n})\r\nexport class InventoryComponent implements OnInit {\r\n  inputs: TableData[] = [];\r\n  backUpInputs: TableData[] = [];\r\n  editRawMaterialsModal: boolean = false;\r\n  editInputsModal: boolean = false;\r\n  inputsModal: boolean = false;\r\n  rawMaterialsModal: boolean = false;\r\n  decisionModal: boolean = false;\r\n  isLoading: boolean = false;\r\n  selectedProduct: any;\r\n\r\n  excludeColumns: string[] = [\r\n    'provider',\r\n    'description',\r\n    'batches',\r\n    'descripction',\r\n    'admissionDate',\r\n    'lastModificationDate',\r\n    'expirationDate',\r\n    'freeze',\r\n  ];\r\n\r\n  constructor(private inventoryService: InventoryService) {}\r\n\r\n  ngOnInit(): void {\r\n    this.getInventory();\r\n  }\r\n\r\n  openDecisionModal() {\r\n    this.decisionModal = true;\r\n  }\r\n\r\n  closeDecisionModal(aux: string) {\r\n    if (aux === 'addInput') {\r\n      this.openAddInputModal();\r\n    } else if (aux === 'addRawMaterial') {\r\n      this.openAddRawMaterialModal();\r\n    }\r\n    this.decisionModal = false;\r\n  }\r\n\r\n  openAddInputModal() {\r\n    this.inputsModal = true;\r\n  }\r\n\r\n  closeAddInputModal() {\r\n    this.getInventory();\r\n    this.inputsModal = false;\r\n  }\r\n  openAddRawMaterialModal() {\r\n    this.rawMaterialsModal = true;\r\n  }\r\n\r\n  closeAddRawMaterialModal() {\r\n    this.getInventory();\r\n    this.rawMaterialsModal = false;\r\n  }\r\n\r\n  onRowClicked(prov: TableData) {\r\n    this.selectedProduct = prov;\r\n    if(this.selectedProduct['freeze'] !== undefined) {\r\n      this.editRawMaterialsModal = true;\r\n    } else {\r\n      this.editInputsModal = true;\r\n    }\r\n  }\r\n\r\n  closeProductModal() {\r\n    this.getInventory();\r\n    this.editRawMaterialsModal = false;\r\n    this.editInputsModal = false;\r\n\r\n  }\r\n\r\n  handleSearch(value: string) {\r\n    this.inputs = this.backUpInputs;\r\n    this.inputs = filterTableData(this.inputs, this.excludeColumns, value);\r\n  }\r\n\r\n  private getInventory() {\r\n    this.inventoryService.getInventory().subscribe((res) => {\r\n      this.inputs = res;\r\n      this.backUpInputs = res;\r\n      this.isLoading = true;\r\n    });\r\n  }\r\n}\r\n","<app-navbar></app-navbar>\r\n<div class=\"container-fluid d-flex flex-column justify-content-center align-items-center vh-100\">\r\n    \r\n    <div class=\"col-flex justify-content-center align-items-center\">\r\n        <div class=\"row header-row\">\r\n            <div class=\"col\">\r\n                <h1 class=\"view-title\">Existencias</h1>\r\n            </div>\r\n            <div class=\"col\">\r\n               <app-search-bar (search)=\"handleSearch($event)\"></app-search-bar>\r\n            </div>\r\n            <div class=\"col d-flex justify-content-center\">\r\n                <button class=\"btn btn-custom\" (click)=\"openDecisionModal()\">AGREGAR EXISTENCIA</button>\r\n            </div>\r\n        </div>\r\n\r\n        <app-table [isTableReady]=\"isLoading\" [data]=\"inputs\" [columnsExcluded]=\"excludeColumns\" (rowClicked)=\"onRowClicked($event)\"></app-table>\r\n\r\n    </div>\r\n</div>\r\n\r\n\r\n\r\n<app-decision-modal *ngIf=\"decisionModal\" (close)=\"closeDecisionModal($event)\"></app-decision-modal>\r\n<app-add-input *ngIf=\"inputsModal\" (close)=\"closeAddInputModal()\"></app-add-input>\r\n<app-add-raw-material *ngIf=\"rawMaterialsModal\" (close)=\"closeAddRawMaterialModal()\"></app-add-raw-material>\r\n\r\n<app-raw-material *ngIf=\"editRawMaterialsModal\" [productInput]=\"selectedProduct\" (close)=\"closeProductModal()\"></app-raw-material>\r\n<app-inputs *ngIf=\"editInputsModal\" [productInput]=\"selectedProduct\" (close)=\"closeProductModal()\"></app-inputs>","import { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpErrorResponse } from '@angular/common/http';\r\nimport { Observable, catchError, throwError} from 'rxjs';\r\nimport { handleError } from '../../utils/api-error-handler.utils';\r\nimport { environment } from '../../../../evironments/environment';\r\n@Injectable({\r\n  providedIn: 'root'\r\n})\r\nexport class BatchesService {\r\n\r\n  private apiUrl = environment.apiUrl + '/api/batches';\r\n\r\n  constructor(private http: HttpClient) {}\r\n\r\n  getBatches(): Observable<any> {\r\n    return this.http.get<any>(this.apiUrl).pipe(catchError(handleError));\r\n  }\r\n\r\n  getBatchById(id: any): Observable<any> {\r\n    return this.http.get<any>(`${this.apiUrl}/getBy/${id}`).pipe(catchError(handleError));\r\n  }\r\n  createBatch(batch: any): Observable<any> {\r\n    return this.http.post<any>(this.apiUrl, batch).pipe(catchError(handleError));\r\n  }\r\n\r\n  updateBatch(batch: any): Observable<any> {\r\n    return this.http.put<any>(this.apiUrl, batch).pipe(catchError(handleError));\r\n  }\r\n\r\n  deleteBatch(id: any): Observable<any> {\r\n    return this.http.delete<any>(`${this.apiUrl}/${id}`).pipe(catchError(handleError));\r\n  }\r\n\r\n  getCategories(): Observable<string[]> {\r\n    return this.http.get<string[]>(`${this.apiUrl}/getCategories`).pipe(catchError(handleError));\r\n  }\r\n}\r\n","import { Component, EventEmitter, Output, Input, SimpleChanges, OnInit } from '@angular/core';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { CommonModule } from '@angular/common';\r\nimport { Units } from '../../../shared/enums/units.enum';\r\nimport { BatchesService } from '../../../core/services/api/batches.service';\r\nimport { Router } from '@angular/router';\r\nimport { DeleteModalComponent } from '../../../shared/components/delete-modal/delete-modal.component';\r\n\r\n@Component({\r\n  selector: 'app-view-batch',\r\n  standalone: true,\r\n  imports: [CommonModule, DeleteModalComponent],\r\n  templateUrl: './view-batch.component.html',\r\n  styleUrl: './view-batch.component.scss'\r\n})\r\nexport class ViewBatchComponent implements OnInit {\r\n  @Input() batch: TableData = {};\r\n  @Output() close = new EventEmitter<void>();\r\n\r\n  confirmDeleteModal=false;\r\n  batchIngredientsData: TableData[] = [];\r\n  batchInputsData: TableData[] = [];\r\n  constructor(private batchesService: BatchesService, private router: Router) {}\r\n\r\n  ngOnInit(): void {\r\n    this.getBatchIngredientsData();\r\n    this.getBatchInputsData();\r\n  }\r\n  closeModal(): void {\r\n    this.close.emit();\r\n  }\r\n\r\n  closeDeleteModal() {\r\n    this.confirmDeleteModal = false;\r\n  }\r\n\r\n  openDeleteModal() {\r\n    this.confirmDeleteModal = true;\r\n  }\r\n\r\n  deleteProduct(){\r\n    this.batchesService.deleteBatch(this.batch['id']).subscribe(() => {\r\n      this.closeModal();\r\n    });\r\n  }\r\n\r\n  goTo() {\r\n    this.router.navigate([`/production/${this.batch['id']}/modify`]);\r\n  }\r\n  \r\n  private getBatchIngredientsData(): void {\r\n    if (Array.isArray(this.batch['batchIngredients'])) {\r\n      // Dividir la cadena de batchIngredientsQuantity en un array de cantidades\r\n      /*const quantities = this.batch['batchIngredientsQuantity']\r\n        ? this.batch['batchIngredientsQuantity'].split(';')\r\n        : [];\r\n      */\r\n        const quantities = this.batch['batchIngredientsQuantity']\r\n        ? this.batch['batchIngredientsQuantity'].split(';').reduce((acc: { [key: string]: number }, pair: string) => {\r\n            const [id, quantity] = pair.split(','); // Separa el id del quantity\r\n            acc[id] = Number(quantity); // Asigna el quantity al id como clave\r\n            return acc;\r\n        }, {})\r\n        : {};\r\n    \r\n      // Mapear los ingredientes, asignando la cantidad correspondiente\r\n      this.batchIngredientsData = this.batch['batchIngredients'].map((ingredient: TableData) => {\r\n        const ingredientId = ingredient['id'];\r\n        return {\r\n          name: ingredient['name'],\r\n          // Asignar la cantidad correspondiente si existe, o usar la cantidad original del ingrediente\r\n          quantity: quantities[ingredientId] !== undefined ? quantities[ingredientId] : ingredient['quantity'],\r\n          unit: ingredient['unit'],\r\n          provider: ingredient['provider']?.name || 'N/A',\r\n        };\r\n      });\r\n    } else {\r\n      console.warn('No se encontraron ingredientes en los datos del lote.');\r\n    }\r\n  }\r\n\r\n\r\n  private getBatchInputsData(): void {\r\n    if (Array.isArray(this.batch['batchPackagingElements'])) {\r\n      // Dividir la cadena de batchPackagingElementsQuantity en un array de cantidades\r\n      /*const quantities = this.batch['batchPackagingElementsQuantity']\r\n        ? this.batch['batchPackagingElementsQuantity'].split(',')\r\n        : [];\r\n      */\r\n      const quantities = this.batch['batchPackagingElementsQuantity']\r\n        ? this.batch['batchPackagingElementsQuantity'].split(';').reduce((acc: { [key: string]: number }, pair: string) => {\r\n            const [id, quantity] = pair.split(','); // Separa el id del quantity\r\n            acc[id] = Number(quantity); // Asigna el quantity al id como clave\r\n            return acc;\r\n        }, {})\r\n        : {};\r\n      // Mapear los inputs, asignando la cantidad correspondiente\r\n      this.batchInputsData = this.batch['batchPackagingElements'].map((input: TableData, index: number) => {\r\n        return {\r\n          codInput: input['id'],\r\n          name: input['name'],\r\n          // Asignar la cantidad correspondiente si existe, o usar la cantidad original del input\r\n          quantity: quantities[index] || input['quantity'],\r\n          unit: input['unit'],\r\n          provider: input['provider']?.name || 'N/A',\r\n        };\r\n      });\r\n    } else {\r\n      console.warn('No se encontraron insumos en los datos del lote.');\r\n    }\r\n  }\r\n\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content modal-content-custom\">\r\n      <div\r\n        class=\"modal-header d-flex justify-content-center align-items-center\"\r\n      >\r\n        <div class=\"row w-100\">\r\n          <div class=\"col\">\r\n            <h5 class=\"modal-title\">Detalles Lote</h5>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-center\">\r\n            <button type=\"button\" class=\"btn btn-success me-2\" aria-label=\"edit\" (click)=\"goTo()\">Editar</button>\r\n            <button type=\"button\" class=\"btn btn-danger\" aria-label=\"delete\" (click)=\"openDeleteModal()\">Eliminar</button>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-end\">\r\n            <button\r\n              type=\"button\"\r\n              class=\"btn-close\"\r\n              aria-label=\"Close\"\r\n              (click)=\"closeModal()\"\r\n            ></button>\r\n          </div>\r\n        </div>\r\n      </div>\r\n      <div class=\"modal-body\">\r\n        <div class=\"row\">\r\n          <div class=\"col\">\r\n            <div class=\"row justify-content-between align-items-center mb-2\">\r\n              <label class=\"me-2\">Producto:</label>\r\n              <a>{{ batch[\"name\"] }}</a>\r\n            </div>\r\n            <div class=\"row align-items-center\">\r\n              <label>Categoria:</label>\r\n              <a>{{ batch[\"category\"] }}</a>\r\n            </div>\r\n            <div class=\"row align-items-center\">\r\n              <label>Cantidad:</label>\r\n              <a>{{ batch[\"quantity\"] }} {{ batch[\"unit\"] }}</a>\r\n            </div>\r\n            <div class=\"row align-items-center\">\r\n              <label>Vencimiento:</label>\r\n              <a>{{ batch[\"expiration\"] }}</a>\r\n            </div>\r\n            <div class=\"row align-items-center\">\r\n              <label>Fecha de Elebarocaion:</label>\r\n              <a>{{ batch[\"creationDate\"] }}</a>\r\n            </div>\r\n          </div>\r\n          <div class=\"col\">\r\n            <div class=\"row align-items-center\">\r\n              <label>Ingredientes:</label>\r\n              <div class=\"ingredients-container\">\r\n                <ul>\r\n                  <li *ngFor=\"let ingredient of batchIngredientsData\">\r\n                    {{ ingredient[\"name\"] }} - {{ ingredient[\"quantity\"] }} {{ ingredient[\"unit\"] }} - {{ ingredient[\"provider\"] }}\r\n                  </li>\r\n                </ul>\r\n              </div>\r\n            </div>\r\n          </div>\r\n          <div class=\"col\">\r\n            <div class=\"row align-items-center\">\r\n              <label>Insumos:</label>\r\n              <div class=\"ingredients-container\">\r\n                <ul>\r\n                  <li *ngFor=\"let input of batchInputsData\">\r\n                    {{ input[\"codInput\"] }} - {{ input[\"name\"] }} - {{ input[\"quantity\"] }} {{ input[\"unit\"] }} - {{input[\"provider\"]}}\r\n                  </li>\r\n                </ul>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>  \r\n      </div>\r\n      <div class=\"modal-footer justify-content-center\"></div>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n\r\n\r\n<app-delete-modal\r\n  *ngIf=\"confirmDeleteModal\"\r\n  [headerMessage]=\"'Eliminar Lote'\"\r\n  [bodyMessage]=\"'¿Estás seguro que deseas borrar este Lote?'\"\r\n  (cancel)=\"closeDeleteModal()\"\r\n  (confirm)=\"deleteProduct()\"\r\n>\r\n</app-delete-modal>\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpErrorResponse } from '@angular/common/http';\r\nimport { Observable, catchError, throwError} from 'rxjs';\r\nimport { handleError } from '../../utils/api-error-handler.utils';\r\nimport { environment } from '../../../../evironments/environment';\r\n@Injectable({\r\n  providedIn: 'root'\r\n})\r\nexport class SalesChannelsService {\r\n\r\n  private apiUrl = environment.apiUrl + '/api/SalesChannels';\r\n\r\n  constructor(private http: HttpClient) {}\r\n\r\n  getSalesChannels(): Observable<any> {\r\n    return this.http.get<any>(this.apiUrl).pipe(catchError(handleError));\r\n  }\r\n\r\n  getSaleChannelId(id: any): Observable<any> {\r\n    return this.http.get<any>(`${this.apiUrl}/${id}`).pipe(catchError(handleError));\r\n  }\r\n  createSaleChannel(sc: any): Observable<any> {\r\n    return this.http.post<any>(this.apiUrl, sc).pipe(catchError(handleError));\r\n  }\r\n\r\n  updateSaleChannel(sc: any): Observable<any> {\r\n    return this.http.put<any>(this.apiUrl, sc).pipe(catchError(handleError));\r\n  }\r\n\r\n  deleteSaleChannel(id: any): Observable<any> {\r\n    return this.http.delete<any>(`${this.apiUrl}/${id}`).pipe(catchError(handleError));\r\n  }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { Observable, catchError, map} from 'rxjs';\r\nimport { handleError } from '../../utils/api-error-handler.utils';\r\nimport { mapToTableData } from '../../utils/mapping.utils';\r\nimport { TableData } from '../../interfaces/table-data';\r\nimport { environment } from '../../../../evironments/environment';\r\n@Injectable({\r\n  providedIn: 'root'\r\n})\r\nexport class EventsService {\r\n\r\n  private apiUrl = environment.apiUrl + '/api/events';\r\n\r\n  constructor(private http: HttpClient) {}\r\n\r\n  getEvents(): Observable<TableData[]> {\r\n    return this.http.get<any[]>(this.apiUrl).pipe(map(data => mapToTableData(data)),catchError(handleError));\r\n  }\r\n\r\n  getEventById(id: any): Observable<TableData> {\r\n    return this.http.get<any>(`${this.apiUrl}/${id}`).pipe(map(data => mapToTableData(data)),catchError(handleError));\r\n  }\r\n\r\n  createEvent(event: any): Observable<any> {\r\n    return this.http.post<any>(this.apiUrl,event).pipe(catchError(handleError));\r\n  }\r\n}\r\n","import { Component, EventEmitter, Output, OnInit } from '@angular/core';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { DeleteModalComponent } from '../../../shared/components/delete-modal/delete-modal.component';\r\nimport { CommonModule } from '@angular/common';\r\nimport {\r\n  ReactiveFormsModule,\r\n  FormBuilder,\r\n  FormGroup,\r\n  Validators,\r\n  FormArray,\r\n  FormControl,\r\n} from '@angular/forms';\r\nimport { BatchesService } from '../../../core/services/api/batches.service';\r\nimport { SalesChannelsService } from '../../../core/services/api/saleschannels.service';\r\nimport { formatDate } from '../../../core/utils/mapping.utils';\r\nimport { AuthService } from '../../../core/services/auth/auth.service';\r\nimport { UsersService } from '../../../core/services/api/users.service';\r\nimport { priceValidator } from '../../../core/utils/validators';\r\nimport { EventsService } from '../../../core/services/api/events.service';\r\nimport { AbstractControl, ValidationErrors } from '@angular/forms';\r\n\r\n@Component({\r\n  selector: 'app-sell-batch',\r\n  standalone: true,\r\n  imports: [CommonModule, DeleteModalComponent, ReactiveFormsModule],\r\n  templateUrl: './sell-batch.component.html',\r\n  styleUrls: ['./sell-batch.component.scss'],\r\n})\r\nexport class SellBatchComponent implements OnInit {\r\n  @Output() close = new EventEmitter<void>();\r\n\r\n  confirmDeleteModal = false;\r\n  sellForm: FormGroup;\r\n  avaibleBatches: TableData[] = [];\r\n  customers: TableData[] = [];\r\n  maxQuantities: number[] = [];\r\n  totalCost = 0;\r\n  userId: any;\r\n\r\n  constructor(\r\n    private batchesService: BatchesService,\r\n    private fb: FormBuilder,\r\n    private salesChannelsService: SalesChannelsService,\r\n    private authService: AuthService,\r\n    private userService: UsersService,\r\n    private eventService: EventsService\r\n  ) {\r\n    this.sellForm = this.fb.group({\r\n      customer: ['', Validators.required],\r\n      items: this.fb.array([], { validators: uniqueBatchesValidator }),\r\n      price: [0, [Validators.required, priceValidator(this.totalCost)]],\r\n    });\r\n  }\r\n\r\n  ngOnInit(): void {\r\n    this.getClients();\r\n    this.getAvaibleBatches();\r\n    this.initializeRows(); // Initialize with one row and set max to five\r\n    this.userId = this.authService.getUserId();\r\n  }\r\n\r\n  closeModal(): void {\r\n    this.close.emit();\r\n  }\r\n\r\n  closeDeleteModal() {\r\n    this.confirmDeleteModal = false;\r\n  }\r\n\r\n  onSubmit(): void {\r\n    console.log(this.sellForm);\r\n    if (this.sellForm.valid) {\r\n      const formErrors = this.sellForm.get('items')?.errors;\r\n      if (formErrors?.['duplicateBatches']) {\r\n        console.error('No puedes seleccionar el mismo lote más de una vez.');\r\n        return; // Detiene el proceso de envío\r\n      }\r\n      const batchesId = this.items.controls.map((control) => {\r\n        return control.get('batchId')?.value;\r\n      });\r\n      const batchesQuantities = this.items.controls\r\n        .map((control) => control.get('quantity')?.value.toString())\r\n        .join(',');\r\n      const batches = this.avaibleBatches.filter((b) =>\r\n        batchesId.includes(b['id'])\r\n      );\r\n      const prices = batches.map((b) => b['price']);\r\n      const pricesString = prices.join(',');\r\n      const selectedBatches = batchesId.map((batchId) => {\r\n        return { id: batchId };\r\n      });\r\n      //console.log('Batches:', selectedBatches);\r\n      const descriptionParts = batches.map((batch, index) => {\r\n        const quantity = batchesQuantities[index];\r\n        return `${quantity} unit - ${batch['name']} (${batch['id']})`;\r\n      });\r\n\r\n      console.log('BatchesQuantities:', batchesQuantities);\r\n\r\n      const fullDescription = descriptionParts.join(', ');\r\n      const sellData = {\r\n        type: 'sales',\r\n        title: 'Venta',\r\n        description: fullDescription,\r\n        cost: this.sellForm.get('price')?.value,\r\n        saleChannel: { id: this.sellForm.get('customer')?.value },\r\n        user: { id: this.userId },\r\n        soldBatches: selectedBatches,\r\n        unitsPrice: pricesString,\r\n        quantities: batchesQuantities,\r\n      };\r\n      console.log('Sell data:', sellData);\r\n      console.log('JSON:', JSON.stringify(sellData));\r\n      console.log('Selcted Batches:', selectedBatches);\r\n      console.log('Batches Avaible:', this.avaibleBatches);\r\n      const bq = batchesQuantities.split(',');\r\n      console.log('Batches Quantities:', bq);\r\n      this.eventService.createEvent(sellData).subscribe((res) => {\r\n        const batchesToUpdate = this.avaibleBatches\r\n          .map((batch) => {\r\n            const selected = selectedBatches.find((b) => b.id === batch['id']);\r\n            console.log('Selected:', selected);\r\n            if (selected) {\r\n              console.log('selectedBatches.indexOf(selected)',selectedBatches.indexOf(selected),\r\n              'batchesQuantities[selectedBatches.indexOf(selected)]',batchesQuantities[selectedBatches.indexOf(selected)]);\r\n              batch['quantity'] -= parseInt(\r\n                bq[selectedBatches.indexOf(selected)],\r\n                10\r\n              );\r\n              delete batch['selected'];\r\n              console.log('Batch updated:', batch);\r\n              return this.batchesService.updateBatch(batch).toPromise();\r\n            }\r\n            return null;\r\n          })\r\n          .filter(Boolean);\r\n        Promise.all(batchesToUpdate).then(() => {\r\n          console.log('Batches updated');\r\n        });\r\n        this.closeModal();\r\n      });\r\n    }\r\n  }\r\n\r\n  addRow(): void {\r\n    this.items.push(\r\n      this.fb.group({\r\n        quantity: [0, Validators.required],\r\n        batchId: [null], // Almacena el ID del lote seleccionado\r\n      })\r\n    );\r\n    this.maxQuantities.push(0); // Initialize with default max quantity\r\n    //this.updateCost();\r\n  }\r\n\r\n  removeRow(index: number): void {\r\n    const removedBatchId = this.items.at(index).get('batchId')?.value;\r\n\r\n    // Desmarcar el lote seleccionado\r\n    if (removedBatchId) {\r\n      const removedBatch = this.avaibleBatches.find(\r\n        (b) => b['id'] === removedBatchId\r\n      );\r\n      if (removedBatch) {\r\n        removedBatch['selected'] = false;\r\n      }\r\n    }\r\n\r\n    this.items.removeAt(index);\r\n    this.maxQuantities.splice(index, 1);\r\n  }\r\n\r\n  onBatchChange(event: Event, index: number): void {\r\n    const target = event.target as HTMLSelectElement;\r\n    const batchId = parseInt(target.value, 10);\r\n\r\n    const batch = this.avaibleBatches.find((b) => b['id'] === batchId);\r\n    if (batch) {\r\n      this.maxQuantities[index] = batch['quantity'];\r\n      this.items.at(index).patchValue({ batchId });\r\n\r\n      // Marcar el lote seleccionado\r\n      batch['selected'] = true;\r\n\r\n      // Limpiar la selección del lote anterior si existía\r\n      const previousBatchId = this.items.at(index).get('batchId')?.value;\r\n      if (previousBatchId) {\r\n        const previousBatch = this.avaibleBatches.find(\r\n          (b) => b['id'] === previousBatchId\r\n        );\r\n        if (previousBatch) {\r\n          previousBatch['selected'] = false;\r\n        }\r\n      }\r\n\r\n      const quantityControl = this.items.at(index).get('quantity');\r\n      quantityControl?.setValidators([\r\n        Validators.required,\r\n        Validators.min(1),\r\n        Validators.max(this.maxQuantities[index]),\r\n      ]);\r\n      quantityControl?.updateValueAndValidity();\r\n    }\r\n  }\r\n\r\n  private getAvaibleBatches(): void {\r\n    this.batchesService.getBatches().subscribe((batches: TableData[]) => {\r\n      this.avaibleBatches = batches.sort((a, b) =>\r\n        a['name'].localeCompare(b['name'])\r\n      );\r\n    });\r\n  }\r\n\r\n  private getClients(): void {\r\n    this.salesChannelsService\r\n      .getSalesChannels()\r\n      .subscribe((clients: TableData[]) => {\r\n        this.customers = clients.sort((a, b) =>\r\n          a['name'].localeCompare(b['name'])\r\n        );\r\n      });\r\n  }\r\n\r\n  private initializeRows(): void {\r\n    this.items.clear();\r\n    this.maxQuantities = [];\r\n    this.items.push(\r\n      this.fb.group({\r\n        quantity: [0, Validators.required],\r\n        batchId: [null, Validators.required],\r\n      })\r\n    );\r\n    this.maxQuantities.push(0);\r\n  }\r\n\r\n  get items(): FormArray {\r\n    return this.sellForm.get('items') as FormArray;\r\n  }\r\n\r\n  get itemControls(): FormControl[] {\r\n    return this.items.controls as FormControl[];\r\n  }\r\n\r\n  // Método para obtener el control con verificación de tipo\r\n  getBatchIdControl(index: number): FormControl {\r\n    const control = this.items.at(index).get('batchId') as FormControl;\r\n    if (!control) {\r\n      console.error('Error!');\r\n      throw new Error(`Control 'batchId' not found at index ${index}`);\r\n    }\r\n    return control;\r\n  }\r\n\r\n  getQuantityControl(index: number): FormControl {\r\n    const control = this.items.at(index).get('quantity') as FormControl;\r\n    if (!control) {\r\n      console.error('Error!');\r\n      throw new Error(`Control 'batchId' not found at index ${index}`);\r\n    }\r\n    return control;\r\n  }\r\n\r\n  calculateCost(): void {\r\n    this.totalCost = 0; // Reinicia el costo total\r\n    this.items.controls.forEach((control) => {\r\n      const batchId = control.get('batchId')?.value;\r\n      const quantity = control.get('quantity')?.value;\r\n\r\n      if (batchId !== null && quantity !== null) {\r\n        const batch = this.avaibleBatches.find((b) => b['id'] === batchId);\r\n        if (batch) {\r\n          const batchPrice = batch['price'] || 2;\r\n          const batchQuantity = batch['quantity'] || 1;\r\n          const result = Math.round(batchPrice / batchQuantity);\r\n          this.totalCost += quantity *result;\r\n        }\r\n      }\r\n    });\r\n    this.updatePriceValidator();\r\n  }\r\n\r\n  updatePriceValidator(): void {\r\n    const priceControl = this.sellForm.get('price');\r\n    if (priceControl) {\r\n      // Actualiza los validadores del control con el nuevo valor de totalCost\r\n      priceControl.setValidators([\r\n        Validators.required,\r\n        Validators.min(this.totalCost),\r\n      ]);\r\n\r\n      // Recalcula la validez del control para aplicar los nuevos validadores\r\n      priceControl.updateValueAndValidity();\r\n    }\r\n  }\r\n\r\n  getDate(date: any): string {\r\n    return formatDate(date);\r\n  }\r\n}\r\ninterface BatchItem {\r\n  batchId: number; // o el tipo correcto si no es number\r\n}\r\n\r\nfunction uniqueBatchesValidator(\r\n  control: AbstractControl\r\n): ValidationErrors | null {\r\n  const items = control.value as BatchItem[]; // Define el tipo de 'items'\r\n  const batchIds = items.map((item: BatchItem) => item.batchId); // Especifica el tipo de 'item'\r\n  const hasDuplicates = new Set(batchIds).size !== batchIds.length;\r\n\r\n  return hasDuplicates ? { duplicateBatches: true } : null;\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content modal-content-custom\">\r\n      <div\r\n        class=\"modal-header d-flex justify-content-center align-items-center\"\r\n      >\r\n        <div class=\"row w-100\">\r\n          <div class=\"col\">\r\n            <h5 class=\"modal-title\">Vender Lote</h5>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-end\">\r\n            <button\r\n              type=\"button\"\r\n              class=\"btn-close\"\r\n              aria-label=\"Close\"\r\n              (click)=\"closeModal()\"\r\n            ></button>\r\n          </div>\r\n        </div>\r\n      </div>\r\n      <form\r\n        #aux=\"ngForm\"\r\n        [formGroup]=\"sellForm\"\r\n        class=\"w-100\"\r\n      >\r\n        <div class=\"modal-body\">\r\n          <div class=\"col\">\r\n            <div class=\"row mb-3\">\r\n              <div class=\"form-group d-flex align-items-center\">\r\n                <label>Comprador</label>\r\n                <select\r\n                  id=\"customer\"\r\n                  class=\"form-control ms-2\"\r\n                  formControlName=\"customer\"\r\n                  [ngClass]=\"{\r\n                    'is-invalid':\r\n                      (sellForm.get('customer')?.touched || aux.submitted) &&\r\n                      sellForm.get('customer')?.invalid\r\n                  }\"\r\n                >\r\n                  <option\r\n                    *ngFor=\"let customer of customers\"\r\n                    [value]=\"customer['id']\"\r\n                  >\r\n                    {{ customer[\"name\"] }}\r\n                  </option>\r\n                </select>\r\n              </div>\r\n              <div class=\"error-container\">\r\n                <div\r\n                  class=\"text-danger\"\r\n                  *ngIf=\"\r\n                    (sellForm.get('customer')?.touched || aux.submitted) &&\r\n                    sellForm.get('customer')?.invalid\r\n                  \"\r\n                >\r\n                  Seleccione un comprador\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"row\">\r\n              <div class=\"col d-flex\">\r\n                <div class=\"form-group w-100\">\r\n                  <div class=\"row align-items-center\">\r\n                    <div class=\"col\">\r\n                      <label>Lotes Disponibles</label>\r\n                    </div>\r\n                    <div class=\"col d-flex justify-content-end\">\r\n                      <button\r\n                        type=\"button\"\r\n                        class=\"btn btn-icon text-success\"\r\n                        (click)=\"addRow()\"\r\n                      >\r\n                        <i class=\"bi bi-plus-square-fill\"></i>\r\n                      </button>\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"row d-flex\">\r\n                    <div class=\"table-container\">\r\n                      <table class=\"table\">\r\n                        <thead>\r\n                          <tr>\r\n                            <th class=\"col-8\">Producto</th>\r\n                            <th class=\"col-3\">Cantidad</th>\r\n                            <th></th>\r\n                          </tr>\r\n                        </thead>\r\n                        <tbody class=\"tbody-container\">\r\n                          <tr\r\n                            *ngFor=\"let item of items.controls; let i = index\"\r\n                          >\r\n                            <td>\r\n                              <select\r\n                                class=\"form-control\"\r\n                                placeholder=\"Produccion\"\r\n                                (change)=\"onBatchChange($event, i)\"\r\n                                [formControl]=\"getBatchIdControl(i)\"\r\n                                [ngClass]=\"{\r\n                                  'is-invalid':\r\n                                    itemControls[i].invalid &&\r\n                                    (itemControls[i].touched || aux.submitted)\r\n                                }\"\r\n                              >\r\n                                <option\r\n                                  *ngFor=\"let batch of avaibleBatches\"\r\n                                  [value]=\"batch['id']\"\r\n                                  [disabled]=\"batch['selected']\"\r\n                                >\r\n                                  {{ batch[\"name\"] }} {{ batch[\"quantity\"] }}\r\n                                  {{ batch[\"unit\"] }} - VTO: {{ getDate(batch[\"expiration\"]) }}\r\n                                </option>\r\n                              </select>\r\n                            </td>\r\n                            <td>\r\n                              <input\r\n                                type=\"number\"\r\n                                class=\"form-control\"\r\n                                [formControl]=\"getQuantityControl(i)\"\r\n                                [max]=\"maxQuantities[i]\"\r\n                                [min]=\"1\"\r\n                                placeholder=\"Cantidad\"\r\n                                (change)=\"calculateCost()\"\r\n                                [ngClass]=\"{\r\n                                  'is-invalid':\r\n                                    itemControls[i].invalid &&\r\n                                    (itemControls[i].touched || aux.submitted)\r\n                                }\"\r\n                              />\r\n                              <div\r\n                                *ngIf=\"\r\n                                  itemControls[i].invalid &&\r\n                                  (itemControls[i].touched || aux.submitted)\r\n                                \"\r\n                                class=\"text-danger\"\r\n                              >\r\n                                <div *ngIf=\"itemControls[i].errors?.['min']\">\r\n                                  La cantidad mínima es 1.\r\n                                </div>\r\n                                <div *ngIf=\"itemControls[i].errors?.['max']\">\r\n                                  La cantidad máxima es {{ maxQuantities[i] }}.\r\n                                </div>\r\n                              </div>\r\n                              <div *ngIf=\"sellForm.get('items')?.errors?.['duplicateBatches']\" class=\"text-danger\">\r\n                                No puedes seleccionar el mismo lote más de una vez.\r\n                              </div>                              \r\n                            </td>\r\n                            <td style=\"text-align: center\">\r\n                              <div *ngIf=\"i > 0\">\r\n                                <button\r\n                                  class=\"btn btn-danger\"\r\n                                  (click)=\"removeRow(i)\"\r\n                                >\r\n                                  <i class=\"bi bi-trash\"></i>\r\n                                </button>\r\n                              </div>\r\n                            </td>\r\n                          </tr>\r\n                        </tbody>\r\n                      </table>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"row\">\r\n              <div class=\"col d-flex justify-content-center align-items-center\">\r\n                <label class=\"me-3\">Precio</label>\r\n                <div class=\"form-group\">\r\n                  <input\r\n                    type=\"number\"\r\n                    class=\"form-control\"\r\n                    formControlName=\"price\"\r\n                    placeholder=\"Precio\"\r\n                    [ngClass]=\"{\r\n                      'is-invalid':\r\n                        (sellForm.get('price')?.touched || aux.submitted) &&\r\n                        sellForm.get('price')?.invalid\r\n                    }\"\r\n                  />\r\n                </div>\r\n                <label class=\"ms-3 cost\">Costo: {{ totalCost }}</label>\r\n              </div>\r\n              <div class=\"col-12\">\r\n                <div class=\"error-container mt-2 text-center\">\r\n                  <div\r\n                    *ngIf=\"\r\n                      (sellForm.get('price')?.touched || aux.submitted) &&\r\n                      sellForm.get('price')?.invalid\r\n                    \"\r\n                    class=\"text-danger\"\r\n                  >\r\n                    El precio es requerido.\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            \r\n          </div>\r\n        </div>\r\n        <div class=\"modal-footer justify-content-center\">\r\n          <button\r\n            type=\"button\"\r\n            class=\"btn btn-secondary\"\r\n            (click)=\"closeModal()\"\r\n          >\r\n            Cancelar\r\n          </button>\r\n          <button type=\"submit\" class=\"btn btn-custom\" (click)=\"onSubmit()\">\r\n            Vender\r\n          </button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { NavbarComponent } from '../../shared/components/navbar/navbar.component';\r\nimport { TableComponent } from '../../shared/components/table/table.component';\r\nimport { SearchBarComponent } from '../../shared/components/search-bar/search-bar.component';\r\nimport { TableData } from '../../core/interfaces/table-data';\r\nimport { Router } from '@angular/router';\r\nimport { BatchesService } from '../../core/services/api/batches.service';\r\nimport { ViewBatchComponent } from './view-batch/view-batch.component';\r\nimport { CommonModule } from '@angular/common';\r\nimport { SellBatchComponent } from './sell-batch/sell-batch.component';\r\nimport { filterTableData } from '../../core/utils/table-data.utils';\r\n@Component({\r\n  selector: 'app-production',\r\n  standalone: true,\r\n  imports: [NavbarComponent, TableComponent, SearchBarComponent, \r\n    ViewBatchComponent, CommonModule, SellBatchComponent],\r\n  templateUrl: './production.component.html',\r\n  styleUrl: './production.component.scss'\r\n})\r\nexport class ProductionComponent implements OnInit{\r\n  batches: TableData[] = [];\r\n  backUpBatches: TableData[] = [];\r\n  excludedColumns: string[] = ['batchPackagingElementsQuantity','batchPackagingElements','batchIngredientsQuantity','batchIngredients','description','creationDate','lastModificationDate'];\r\n  selectedBatch: TableData = {};\r\n  openBatchModal: boolean = false;\r\n  openSellModal: boolean = false;\r\n\r\n  constructor(private route: Router, private batchesServices: BatchesService) {}\r\n\r\n  ngOnInit(): void {\r\n    this.getBatches();\r\n  }\r\n\r\n  goTo(){\r\n    this.route.navigate(['/production/add']);\r\n  }\r\n\r\n  onRowClicked(prov: TableData) {\r\n    this.selectedBatch = prov;\r\n    this.openBatchModal = true;\r\n  }\r\n\r\n  closeModal(): void {\r\n    this.getBatches();\r\n    this.openBatchModal = false;\r\n  }\r\n\r\n\r\n  openSellBatch(){\r\n    this.openSellModal = true;\r\n  }\r\n  \r\n  closeSellModal(){\r\n    this.getBatches();\r\n    this.openSellModal = false;\r\n  }\r\n\r\n  handleSearch(value: string) {\r\n    this.batches = this.backUpBatches;\r\n    this.batches = filterTableData(this.batches, this.excludedColumns, value);\r\n  }\r\n\r\n  private getBatches(): void {\r\n    this.batchesServices.getBatches().subscribe((data: any) => {\r\n      this.batches = data;\r\n      this.backUpBatches = data;\r\n    });\r\n    \r\n  }\r\n\r\n}\r\n","<app-navbar></app-navbar>\r\n<div class=\"container-fluid d-flex flex-column justify-content-center align-items-center vh-100\">\r\n    \r\n    <div class=\"col-flex justify-content-center align-items-center\">\r\n        <div class=\"row header-row\">\r\n            <div class=\"col\">\r\n                <h1 class=\"view-title\">Lotes</h1>\r\n            </div>\r\n            <div class=\"col\">\r\n               <app-search-bar (search)=\"handleSearch($event)\"></app-search-bar>\r\n            </div>\r\n            <div class=\"col d-flex justify-content-center\">\r\n                <button class=\"btn btn-custom\" (click)=\"openSellBatch()\">VENDER</button>\r\n            </div>\r\n            <div class=\"col d-flex justify-content-center\">\r\n                <button class=\"btn btn-custom\" (click)=\"goTo()\">AGREGAR LOTE</button>\r\n            </div>\r\n        </div>\r\n\r\n        <app-table [data]=\"batches\" [columnsExcluded]=\"excludedColumns\" (rowClicked)=\"onRowClicked($event)\"></app-table>\r\n\r\n    </div>\r\n</div>\r\n\r\n<app-view-batch [batch]=\"selectedBatch\" *ngIf=\"openBatchModal\" (close)=\"closeModal()\"></app-view-batch>\r\n\r\n<app-sell-batch *ngIf=\"openSellModal\" (close)=\"closeSellModal()\"></app-sell-batch>\r\n","import { Component, Input } from '@angular/core';\r\nimport { RecipeAbstraction } from '../../../core/interfaces/recipe-abstraction';\r\nimport { Router } from '@angular/router';\r\n\r\n@Component({\r\n  selector: 'app-card',\r\n  standalone: true,\r\n  imports: [],\r\n  templateUrl: './card.component.html',\r\n  styleUrl: './card.component.scss'\r\n})\r\nexport class CardComponent {\r\n  @Input() recipe: RecipeAbstraction | undefined;\r\n \r\n  constructor(private router: Router) { }\r\n  goTo(){\r\nthis.router.navigate(['/recipes', this.recipe?.id])  }\r\n}\r\n","<div class=\"card\">\r\n  <div class=\"card-body\">\r\n    <h4 class=\"card-title title-custom\">{{ recipe?.name }}</h4>\r\n    <div class=\"d-flex justify-content-end\">\r\n      <a (click)=\"goTo()\" class=\"btn text-white btn-custom\">VER RECETA</a>\r\n    </div>\r\n  </div>\r\n</div>\r\n","class ObjectUtils {\n  static isArray(value, empty = true) {\n    return Array.isArray(value) && (empty || value.length !== 0);\n  }\n  static isObject(value, empty = true) {\n    return typeof value === 'object' && !Array.isArray(value) && value != null && (empty || Object.keys(value).length !== 0);\n  }\n  static equals(obj1, obj2, field) {\n    if (field) return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.equalsByValue(obj1, obj2);\n  }\n  static equalsByValue(obj1, obj2) {\n    if (obj1 === obj2) return true;\n    if (obj1 && obj2 && typeof obj1 == 'object' && typeof obj2 == 'object') {\n      var arrA = Array.isArray(obj1),\n        arrB = Array.isArray(obj2),\n        i,\n        length,\n        key;\n      if (arrA && arrB) {\n        length = obj1.length;\n        if (length != obj2.length) return false;\n        for (i = length; i-- !== 0;) if (!this.equalsByValue(obj1[i], obj2[i])) return false;\n        return true;\n      }\n      if (arrA != arrB) return false;\n      var dateA = this.isDate(obj1),\n        dateB = this.isDate(obj2);\n      if (dateA != dateB) return false;\n      if (dateA && dateB) return obj1.getTime() == obj2.getTime();\n      var regexpA = obj1 instanceof RegExp,\n        regexpB = obj2 instanceof RegExp;\n      if (regexpA != regexpB) return false;\n      if (regexpA && regexpB) return obj1.toString() == obj2.toString();\n      var keys = Object.keys(obj1);\n      length = keys.length;\n      if (length !== Object.keys(obj2).length) return false;\n      for (i = length; i-- !== 0;) if (!Object.prototype.hasOwnProperty.call(obj2, keys[i])) return false;\n      for (i = length; i-- !== 0;) {\n        key = keys[i];\n        if (!this.equalsByValue(obj1[key], obj2[key])) return false;\n      }\n      return true;\n    }\n    return obj1 !== obj1 && obj2 !== obj2;\n  }\n  static resolveFieldData(data, field) {\n    if (data && field) {\n      if (this.isFunction(field)) {\n        return field(data);\n      } else if (field.indexOf('.') == -1) {\n        return data[field];\n      } else {\n        let fields = field.split('.');\n        let value = data;\n        for (let i = 0, len = fields.length; i < len; ++i) {\n          if (value == null) {\n            return null;\n          }\n          value = value[fields[i]];\n        }\n        return value;\n      }\n    } else {\n      return null;\n    }\n  }\n  static isFunction(obj) {\n    return !!(obj && obj.constructor && obj.call && obj.apply);\n  }\n  static reorderArray(value, from, to) {\n    let target;\n    if (value && from !== to) {\n      if (to >= value.length) {\n        to %= value.length;\n        from %= value.length;\n      }\n      value.splice(to, 0, value.splice(from, 1)[0]);\n    }\n  }\n  static insertIntoOrderedArray(item, index, arr, sourceArr) {\n    if (arr.length > 0) {\n      let injected = false;\n      for (let i = 0; i < arr.length; i++) {\n        let currentItemIndex = this.findIndexInList(arr[i], sourceArr);\n        if (currentItemIndex > index) {\n          arr.splice(i, 0, item);\n          injected = true;\n          break;\n        }\n      }\n      if (!injected) {\n        arr.push(item);\n      }\n    } else {\n      arr.push(item);\n    }\n  }\n  static findIndexInList(item, list) {\n    let index = -1;\n    if (list) {\n      for (let i = 0; i < list.length; i++) {\n        if (list[i] == item) {\n          index = i;\n          break;\n        }\n      }\n    }\n    return index;\n  }\n  static contains(value, list) {\n    if (value != null && list && list.length) {\n      for (let val of list) {\n        if (this.equals(value, val)) return true;\n      }\n    }\n    return false;\n  }\n  static removeAccents(str) {\n    if (str) {\n      str = str.normalize('NFKD').replace(/\\p{Diacritic}/gu, '');\n    }\n    return str;\n  }\n  static isDate(input) {\n    return Object.prototype.toString.call(input) === '[object Date]';\n  }\n  static isEmpty(value) {\n    return value === null || value === undefined || value === '' || Array.isArray(value) && value.length === 0 || !this.isDate(value) && typeof value === 'object' && Object.keys(value).length === 0;\n  }\n  static isNotEmpty(value) {\n    return !this.isEmpty(value);\n  }\n  static compare(value1, value2, locale, order = 1) {\n    let result = -1;\n    const emptyValue1 = this.isEmpty(value1);\n    const emptyValue2 = this.isEmpty(value2);\n    if (emptyValue1 && emptyValue2) result = 0;else if (emptyValue1) result = order;else if (emptyValue2) result = -order;else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2, locale, {\n      numeric: true\n    });else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;\n    return result;\n  }\n  static sort(value1, value2, order = 1, locale, nullSortOrder = 1) {\n    const result = ObjectUtils.compare(value1, value2, locale, order);\n    let finalSortOrder = order;\n    // nullSortOrder == 1 means Excel like sort nulls at bottom\n    if (ObjectUtils.isEmpty(value1) || ObjectUtils.isEmpty(value2)) {\n      finalSortOrder = nullSortOrder === 1 ? order : nullSortOrder;\n    }\n    return finalSortOrder * result;\n  }\n  static merge(obj1, obj2) {\n    if (obj1 == undefined && obj2 == undefined) {\n      return undefined;\n    } else if ((obj1 == undefined || typeof obj1 === 'object') && (obj2 == undefined || typeof obj2 === 'object')) {\n      return {\n        ...(obj1 || {}),\n        ...(obj2 || {})\n      };\n    } else if ((obj1 == undefined || typeof obj1 === 'string') && (obj2 == undefined || typeof obj2 === 'string')) {\n      return [obj1 || '', obj2 || ''].join(' ');\n    }\n    return obj2 || obj1;\n  }\n  static isPrintableCharacter(char = '') {\n    return this.isNotEmpty(char) && char.length === 1 && char.match(/\\S| /);\n  }\n  static getItemValue(obj, ...params) {\n    return this.isFunction(obj) ? obj(...params) : obj;\n  }\n  static findLastIndex(arr, callback) {\n    let index = -1;\n    if (this.isNotEmpty(arr)) {\n      try {\n        index = arr.findLastIndex(callback);\n      } catch {\n        index = arr.lastIndexOf([...arr].reverse().find(callback));\n      }\n    }\n    return index;\n  }\n  static findLast(arr, callback) {\n    let item;\n    if (this.isNotEmpty(arr)) {\n      try {\n        item = arr.findLast(callback);\n      } catch {\n        item = [...arr].reverse().find(callback);\n      }\n    }\n    return item;\n  }\n  static deepEquals(a, b) {\n    if (a === b) return true;\n    if (a && b && typeof a == 'object' && typeof b == 'object') {\n      var arrA = Array.isArray(a),\n        arrB = Array.isArray(b),\n        i,\n        length,\n        key;\n      if (arrA && arrB) {\n        length = a.length;\n        if (length != b.length) return false;\n        for (i = length; i-- !== 0;) if (!this.deepEquals(a[i], b[i])) return false;\n        return true;\n      }\n      if (arrA != arrB) return false;\n      var dateA = a instanceof Date,\n        dateB = b instanceof Date;\n      if (dateA != dateB) return false;\n      if (dateA && dateB) return a.getTime() == b.getTime();\n      var regexpA = a instanceof RegExp,\n        regexpB = b instanceof RegExp;\n      if (regexpA != regexpB) return false;\n      if (regexpA && regexpB) return a.toString() == b.toString();\n      var keys = Object.keys(a);\n      length = keys.length;\n      if (length !== Object.keys(b).length) return false;\n      for (i = length; i-- !== 0;) if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n      for (i = length; i-- !== 0;) {\n        key = keys[i];\n        if (!this.deepEquals(a[key], b[key])) return false;\n      }\n      return true;\n    }\n    return a !== a && b !== b;\n  }\n}\nvar lastId = 0;\nfunction UniqueComponentId(prefix = 'pn_id_') {\n  lastId++;\n  return `${prefix}${lastId}`;\n}\nfunction ZIndexUtils() {\n  let zIndexes = [];\n  const generateZIndex = (key, baseZIndex) => {\n    let lastZIndex = zIndexes.length > 0 ? zIndexes[zIndexes.length - 1] : {\n      key,\n      value: baseZIndex\n    };\n    let newZIndex = lastZIndex.value + (lastZIndex.key === key ? 0 : baseZIndex) + 2;\n    zIndexes.push({\n      key,\n      value: newZIndex\n    });\n    return newZIndex;\n  };\n  const revertZIndex = zIndex => {\n    zIndexes = zIndexes.filter(obj => obj.value !== zIndex);\n  };\n  const getCurrentZIndex = () => {\n    return zIndexes.length > 0 ? zIndexes[zIndexes.length - 1].value : 0;\n  };\n  const getZIndex = el => {\n    return el ? parseInt(el.style.zIndex, 10) || 0 : 0;\n  };\n  return {\n    get: getZIndex,\n    set: (key, el, baseZIndex) => {\n      if (el) {\n        el.style.zIndex = String(generateZIndex(key, baseZIndex));\n      }\n    },\n    clear: el => {\n      if (el) {\n        revertZIndex(getZIndex(el));\n        el.style.zIndex = '';\n      }\n    },\n    getCurrent: () => getCurrentZIndex()\n  };\n}\nvar zindexutils = ZIndexUtils();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ObjectUtils, UniqueComponentId, zindexutils as ZIndexUtils };\n","import * as i0 from '@angular/core';\nimport { Injectable, signal, Component, Directive, Input, NgModule } from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { ObjectUtils } from 'primeng/utils';\n\n/**\n * Type of the confirm event.\n */\nconst _c0 = [\"*\"];\nvar ConfirmEventType = /*#__PURE__*/function (ConfirmEventType) {\n  ConfirmEventType[ConfirmEventType[\"ACCEPT\"] = 0] = \"ACCEPT\";\n  ConfirmEventType[ConfirmEventType[\"REJECT\"] = 1] = \"REJECT\";\n  ConfirmEventType[ConfirmEventType[\"CANCEL\"] = 2] = \"CANCEL\";\n  return ConfirmEventType;\n}(ConfirmEventType || {});\n/**\n * Methods used in confirmation service.\n * @group Service\n */\nlet ConfirmationService = /*#__PURE__*/(() => {\n  class ConfirmationService {\n    requireConfirmationSource = new Subject();\n    acceptConfirmationSource = new Subject();\n    requireConfirmation$ = this.requireConfirmationSource.asObservable();\n    accept = this.acceptConfirmationSource.asObservable();\n    /**\n     * Callback to invoke on confirm.\n     * @param {Confirmation} confirmation - Represents a confirmation dialog configuration.\n     * @group Method\n     */\n    confirm(confirmation) {\n      this.requireConfirmationSource.next(confirmation);\n      return this;\n    }\n    /**\n     * Closes the dialog.\n     * @group Method\n     */\n    close() {\n      this.requireConfirmationSource.next(null);\n      return this;\n    }\n    /**\n     * Accepts the dialog.\n     * @group Method\n     */\n    onAccept() {\n      this.acceptConfirmationSource.next(null);\n    }\n    static ɵfac = function ConfirmationService_Factory(t) {\n      return new (t || ConfirmationService)();\n    };\n    static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n      token: ConfirmationService,\n      factory: ConfirmationService.ɵfac\n    });\n  }\n  return ConfirmationService;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet ContextMenuService = /*#__PURE__*/(() => {\n  class ContextMenuService {\n    activeItemKeyChange = new Subject();\n    activeItemKeyChange$ = this.activeItemKeyChange.asObservable();\n    activeItemKey;\n    changeKey(key) {\n      this.activeItemKey = key;\n      this.activeItemKeyChange.next(this.activeItemKey);\n    }\n    reset() {\n      this.activeItemKey = null;\n      this.activeItemKeyChange.next(this.activeItemKey);\n    }\n    static ɵfac = function ContextMenuService_Factory(t) {\n      return new (t || ContextMenuService)();\n    };\n    static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n      token: ContextMenuService,\n      factory: ContextMenuService.ɵfac\n    });\n  }\n  return ContextMenuService;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet FilterMatchMode = /*#__PURE__*/(() => {\n  class FilterMatchMode {\n    static STARTS_WITH = 'startsWith';\n    static CONTAINS = 'contains';\n    static NOT_CONTAINS = 'notContains';\n    static ENDS_WITH = 'endsWith';\n    static EQUALS = 'equals';\n    static NOT_EQUALS = 'notEquals';\n    static IN = 'in';\n    static LESS_THAN = 'lt';\n    static LESS_THAN_OR_EQUAL_TO = 'lte';\n    static GREATER_THAN = 'gt';\n    static GREATER_THAN_OR_EQUAL_TO = 'gte';\n    static BETWEEN = 'between';\n    static IS = 'is';\n    static IS_NOT = 'isNot';\n    static BEFORE = 'before';\n    static AFTER = 'after';\n    static DATE_IS = 'dateIs';\n    static DATE_IS_NOT = 'dateIsNot';\n    static DATE_BEFORE = 'dateBefore';\n    static DATE_AFTER = 'dateAfter';\n  }\n  return FilterMatchMode;\n})();\nlet FilterOperator = /*#__PURE__*/(() => {\n  class FilterOperator {\n    static AND = 'and';\n    static OR = 'or';\n  }\n  return FilterOperator;\n})();\nlet FilterService = /*#__PURE__*/(() => {\n  class FilterService {\n    filter(value, fields, filterValue, filterMatchMode, filterLocale) {\n      let filteredItems = [];\n      if (value) {\n        for (let item of value) {\n          for (let field of fields) {\n            let fieldValue = ObjectUtils.resolveFieldData(item, field);\n            if (this.filters[filterMatchMode](fieldValue, filterValue, filterLocale)) {\n              filteredItems.push(item);\n              break;\n            }\n          }\n        }\n      }\n      return filteredItems;\n    }\n    filters = {\n      startsWith: (value, filter, filterLocale) => {\n        if (filter === undefined || filter === null || filter.trim() === '') {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        let filterValue = ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);\n        let stringValue = ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale);\n        return stringValue.slice(0, filterValue.length) === filterValue;\n      },\n      contains: (value, filter, filterLocale) => {\n        if (filter === undefined || filter === null || typeof filter === 'string' && filter.trim() === '') {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        let filterValue = ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);\n        let stringValue = ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale);\n        return stringValue.indexOf(filterValue) !== -1;\n      },\n      notContains: (value, filter, filterLocale) => {\n        if (filter === undefined || filter === null || typeof filter === 'string' && filter.trim() === '') {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        let filterValue = ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);\n        let stringValue = ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale);\n        return stringValue.indexOf(filterValue) === -1;\n      },\n      endsWith: (value, filter, filterLocale) => {\n        if (filter === undefined || filter === null || filter.trim() === '') {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        let filterValue = ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);\n        let stringValue = ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale);\n        return stringValue.indexOf(filterValue, stringValue.length - filterValue.length) !== -1;\n      },\n      equals: (value, filter, filterLocale) => {\n        if (filter === undefined || filter === null || typeof filter === 'string' && filter.trim() === '') {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        if (value.getTime && filter.getTime) return value.getTime() === filter.getTime();else if (value == filter) return true;else return ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale) == ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);\n      },\n      notEquals: (value, filter, filterLocale) => {\n        if (filter === undefined || filter === null || typeof filter === 'string' && filter.trim() === '') {\n          return false;\n        }\n        if (value === undefined || value === null) {\n          return true;\n        }\n        if (value.getTime && filter.getTime) return value.getTime() !== filter.getTime();else if (value == filter) return false;else return ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale) != ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);\n      },\n      in: (value, filter) => {\n        if (filter === undefined || filter === null || filter.length === 0) {\n          return true;\n        }\n        for (let i = 0; i < filter.length; i++) {\n          if (ObjectUtils.equals(value, filter[i])) {\n            return true;\n          }\n        }\n        return false;\n      },\n      between: (value, filter) => {\n        if (filter == null || filter[0] == null || filter[1] == null) {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        if (value.getTime) return filter[0].getTime() <= value.getTime() && value.getTime() <= filter[1].getTime();else return filter[0] <= value && value <= filter[1];\n      },\n      lt: (value, filter, filterLocale) => {\n        if (filter === undefined || filter === null) {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        if (value.getTime && filter.getTime) return value.getTime() < filter.getTime();else return value < filter;\n      },\n      lte: (value, filter, filterLocale) => {\n        if (filter === undefined || filter === null) {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        if (value.getTime && filter.getTime) return value.getTime() <= filter.getTime();else return value <= filter;\n      },\n      gt: (value, filter, filterLocale) => {\n        if (filter === undefined || filter === null) {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        if (value.getTime && filter.getTime) return value.getTime() > filter.getTime();else return value > filter;\n      },\n      gte: (value, filter, filterLocale) => {\n        if (filter === undefined || filter === null) {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        if (value.getTime && filter.getTime) return value.getTime() >= filter.getTime();else return value >= filter;\n      },\n      is: (value, filter, filterLocale) => {\n        return this.filters.equals(value, filter, filterLocale);\n      },\n      isNot: (value, filter, filterLocale) => {\n        return this.filters.notEquals(value, filter, filterLocale);\n      },\n      before: (value, filter, filterLocale) => {\n        return this.filters.lt(value, filter, filterLocale);\n      },\n      after: (value, filter, filterLocale) => {\n        return this.filters.gt(value, filter, filterLocale);\n      },\n      dateIs: (value, filter) => {\n        if (filter === undefined || filter === null) {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        return value.toDateString() === filter.toDateString();\n      },\n      dateIsNot: (value, filter) => {\n        if (filter === undefined || filter === null) {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        return value.toDateString() !== filter.toDateString();\n      },\n      dateBefore: (value, filter) => {\n        if (filter === undefined || filter === null) {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        return value.getTime() < filter.getTime();\n      },\n      dateAfter: (value, filter) => {\n        if (filter === undefined || filter === null) {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        const valueCopy = new Date(value);\n        valueCopy.setHours(0, 0, 0, 0);\n        return valueCopy.getTime() > filter.getTime();\n      }\n    };\n    register(rule, fn) {\n      this.filters[rule] = fn;\n    }\n    static ɵfac = function FilterService_Factory(t) {\n      return new (t || FilterService)();\n    };\n    static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n      token: FilterService,\n      factory: FilterService.ɵfac,\n      providedIn: 'root'\n    });\n  }\n  return FilterService;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Message service used in messages and toast components.\n * @group Service\n */\nlet MessageService = /*#__PURE__*/(() => {\n  class MessageService {\n    messageSource = new Subject();\n    clearSource = new Subject();\n    messageObserver = this.messageSource.asObservable();\n    clearObserver = this.clearSource.asObservable();\n    /**\n     * Inserts single message.\n     * @param {Message} message - Message to be added.\n     * @group Method\n     */\n    add(message) {\n      if (message) {\n        this.messageSource.next(message);\n      }\n    }\n    /**\n     * Inserts new messages.\n     * @param {Message[]} messages - Messages to be added.\n     * @group Method\n     */\n    addAll(messages) {\n      if (messages && messages.length) {\n        this.messageSource.next(messages);\n      }\n    }\n    /**\n     * Clears the message with the given key.\n     * @param {string} key - Key of the message to be cleared.\n     * @group Method\n     */\n    clear(key) {\n      this.clearSource.next(key || null);\n    }\n    static ɵfac = function MessageService_Factory(t) {\n      return new (t || MessageService)();\n    };\n    static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n      token: MessageService,\n      factory: MessageService.ɵfac\n    });\n  }\n  return MessageService;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet OverlayService = /*#__PURE__*/(() => {\n  class OverlayService {\n    clickSource = new Subject();\n    clickObservable = this.clickSource.asObservable();\n    add(event) {\n      if (event) {\n        this.clickSource.next(event);\n      }\n    }\n    static ɵfac = function OverlayService_Factory(t) {\n      return new (t || OverlayService)();\n    };\n    static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n      token: OverlayService,\n      factory: OverlayService.ɵfac,\n      providedIn: 'root'\n    });\n  }\n  return OverlayService;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet PrimeIcons = /*#__PURE__*/(() => {\n  class PrimeIcons {\n    static ADDRESS_BOOK = 'pi pi-address-book';\n    static ALIGN_CENTER = 'pi pi-align-center';\n    static ALIGN_JUSTIFY = 'pi pi-align-justify';\n    static ALIGN_LEFT = 'pi pi-align-left';\n    static ALIGN_RIGHT = 'pi pi-align-right';\n    static AMAZON = 'pi pi-amazon';\n    static ANDROID = 'pi pi-android';\n    static ANGLE_DOUBLE_DOWN = 'pi pi-angle-double-down';\n    static ANGLE_DOUBLE_LEFT = 'pi pi-angle-double-left';\n    static ANGLE_DOUBLE_RIGHT = 'pi pi-angle-double-right';\n    static ANGLE_DOUBLE_UP = 'pi pi-angle-double-up';\n    static ANGLE_DOWN = 'pi pi-angle-down';\n    static ANGLE_LEFT = 'pi pi-angle-left';\n    static ANGLE_RIGHT = 'pi pi-angle-right';\n    static ANGLE_UP = 'pi pi-angle-up';\n    static APPLE = 'pi pi-apple';\n    static ARROWS_ALT = 'pi pi-arrows-alt';\n    static ARROW_CIRCLE_DOWN = 'pi pi-arrow-circle-down';\n    static ARROW_CIRCLE_LEFT = 'pi pi-arrow-circle-left';\n    static ARROW_CIRCLE_RIGHT = 'pi pi-arrow-circle-right';\n    static ARROW_CIRCLE_UP = 'pi pi-arrow-circle-up';\n    static ARROW_DOWN = 'pi pi-arrow-down';\n    static ARROW_DOWN_LEFT = 'pi pi-arrow-down-left';\n    static ARROW_DOWN_LEFT_AND_ARROW_UP_RIGHT_TO_CENTER = 'pi pi-arrow-down-left-and-arrow-up-right-to-center';\n    static ARROW_DOWN_RIGHT = 'pi pi-arrow-down-right';\n    static ARROW_LEFT = 'pi pi-arrow-left';\n    static ARROW_RIGHT_ARROW_LEFT = 'pi pi-arrow-right-arrow-left';\n    static ARROW_RIGHT = 'pi pi-arrow-right';\n    static ARROW_UP = 'pi pi-arrow-up';\n    static ARROW_UP_LEFT = 'pi pi-arrow-up-left';\n    static ARROW_UP_RIGHT = 'pi pi-arrow-up-right';\n    static ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER = 'pi pi-arrow-up-right-and-arrow-down-left-from-center';\n    static ARROW_H = 'pi pi-arrows-h';\n    static ARROW_V = 'pi pi-arrows-v';\n    static ASTERIKS = 'pi pi-asteriks';\n    static AT = 'pi pi-at';\n    static BACKWARD = 'pi pi-backward';\n    static BAN = 'pi pi-ban';\n    static BARCODE = 'pi pi-barcode';\n    static BARS = 'pi pi-bars';\n    static BELL = 'pi pi-bell';\n    static BELL_SLASH = 'pi pi-bell-slash';\n    static BITCOIN = 'pi pi-bitcoin';\n    static BOLT = 'pi pi-bolt';\n    static BOOK = 'pi pi-book';\n    static BOOKMARK = 'pi pi-bookmark';\n    static BOOKMARK_FILL = 'pi pi-bookmark-fill';\n    static BOX = 'pi pi-box';\n    static BRIEFCASE = 'pi pi-briefcase';\n    static BUILDING = 'pi pi-building';\n    static BUILDING_COLUMNS = 'pi pi-building-columns';\n    static BULLSEYE = 'pi pi-bullseye';\n    static CALCULATOR = 'pi pi-calculator';\n    static CALENDAR = 'pi pi-calendar';\n    static CALENDAR_CLOCK = 'pi pi-calendar-clock';\n    static CALENDAR_MINUS = 'pi pi-calendar-minus';\n    static CALENDAR_PLUS = 'pi pi-calendar-plus';\n    static CALENDAR_TIMES = 'pi pi-calendar-times';\n    static CAMERA = 'pi pi-camera';\n    static CAR = 'pi pi-car';\n    static CARET_DOWN = 'pi pi-caret-down';\n    static CARET_LEFT = 'pi pi-caret-left';\n    static CARET_RIGHT = 'pi pi-caret-right';\n    static CARET_UP = 'pi pi-caret-up';\n    static CART_ARROW_DOWN = 'pi pi-cart-arrow-down';\n    static CART_MINUS = 'pi pi-cart-minus';\n    static CART_PLUS = 'pi pi-cart-plus';\n    static CHART_BAR = 'pi pi-chart-bar';\n    static CHART_LINE = 'pi pi-chart-line';\n    static CHART_PIE = 'pi pi-chart-pie';\n    static CHART_SCATTER = 'pi pi-chart-scatter';\n    static CHECK = 'pi pi-check';\n    static CHECK_CIRCLE = 'pi pi-check-circle';\n    static CHECK_SQUARE = 'pi pi-check-square';\n    static CHEVRON_CIRCLE_DOWN = 'pi pi-chevron-circle-down';\n    static CHEVRON_CIRCLE_LEFT = 'pi pi-chevron-circle-left';\n    static CHEVRON_CIRCLE_RIGHT = 'pi pi-chevron-circle-right';\n    static CHEVRON_CIRCLE_UP = 'pi pi-chevron-circle-up';\n    static CHEVRON_DOWN = 'pi pi-chevron-down';\n    static CHEVRON_LEFT = 'pi pi-chevron-left';\n    static CHEVRON_RIGHT = 'pi pi-chevron-right';\n    static CHEVRON_UP = 'pi pi-chevron-up';\n    static CIRCLE = 'pi pi-circle';\n    static CIRCLE_FILL = 'pi pi-circle-fill';\n    static CLIPBOARD = 'pi pi-clipboard';\n    static CLOCK = 'pi pi-clock';\n    static CLONE = 'pi pi-clone';\n    static CLOUD = 'pi pi-cloud';\n    static CLOUD_DOWNLOAD = 'pi pi-cloud-download';\n    static CLOUD_UPLOAD = 'pi pi-cloud-upload';\n    static CODE = 'pi pi-code';\n    static COG = 'pi pi-cog';\n    static COMMENT = 'pi pi-comment';\n    static COMMENTS = 'pi pi-comments';\n    static COMPASS = 'pi pi-compass';\n    static COPY = 'pi pi-copy';\n    static CREDIT_CARD = 'pi pi-credit-card';\n    static CROWN = 'pi pi-crown';\n    static DATABASE = 'pi pi-database';\n    static DESKTOP = 'pi pi-desktop';\n    static DELETE_LEFT = 'pi pi-delete-left';\n    static DIRECTIONS = 'pi pi-directions';\n    static DIRECTIONS_ALT = 'pi pi-directions-alt';\n    static DISCORD = 'pi pi-discord';\n    static DOLLAR = 'pi pi-dollar';\n    static DOWNLOAD = 'pi pi-download';\n    static EJECT = 'pi pi-eject';\n    static ELLIPSIS_H = 'pi pi-ellipsis-h';\n    static ELLIPSIS_V = 'pi pi-ellipsis-v';\n    static ENVELOPE = 'pi pi-envelope';\n    static EQUALS = 'pi pi-equals';\n    static ERASER = 'pi pi-eraser';\n    static ETHEREUM = 'pi pi-ethereum';\n    static EURO = 'pi pi-euro';\n    static EXCLAMATION_CIRCLE = 'pi pi-exclamation-circle';\n    static EXCLAMATION_TRIANGLE = 'pi pi-exclamation-triangle';\n    static EXPAND = 'pi pi-expand';\n    static EXTERNAL_LINK = 'pi pi-external-link';\n    static EYE = 'pi pi-eye';\n    static EYE_SLASH = 'pi pi-eye-slash';\n    static FACE_SMILE = 'pi pi-face-smile';\n    static FACEBOOK = 'pi pi-facebook';\n    static FAST_BACKWARD = 'pi pi-fast-backward';\n    static FAST_FORWARD = 'pi pi-fast-forward';\n    static FILE = 'pi pi-file';\n    static FILE_ARROW_UP = 'pi pi-file-arrow-up';\n    static FILE_CHECK = 'pi pi-file-check';\n    static FILE_EDIT = 'pi pi-file-edit';\n    static FILE_IMPORT = 'pi pi-file-import';\n    static FILE_PDF = 'pi pi-file-pdf';\n    static FILE_PLUS = 'pi pi-file-plus';\n    static FILE_EXCEL = 'pi pi-file-excel';\n    static FILE_EXPORT = 'pi pi-file-export';\n    static FILE_WORD = 'pi pi-file-word';\n    static FILTER = 'pi pi-filter';\n    static FILTER_FILL = 'pi pi-filter-fill';\n    static FILTER_SLASH = 'pi pi-filter-slash';\n    static FLAG = 'pi pi-flag';\n    static FLAG_FILL = 'pi pi-flag-fill';\n    static FOLDER = 'pi pi-folder';\n    static FOLDER_OPEN = 'pi pi-folder-open';\n    static FOLDER_PLUS = 'pi pi-folder-plus';\n    static FORWARD = 'pi pi-forward';\n    static GAUGE = 'pi pi-gauge';\n    static GIFT = 'pi pi-gift';\n    static GITHUB = 'pi pi-github';\n    static GLOBE = 'pi pi-globe';\n    static GOOGLE = 'pi pi-google';\n    static GRADUATION_CAP = 'pi pi-graduation-cap';\n    static HAMMER = 'pi pi-hammer';\n    static HASHTAG = 'pi pi-hashtag';\n    static HEADPHONES = 'pi pi-headphones';\n    static HEART = 'pi pi-heart';\n    static HEART_FILL = 'pi pi-heart-fill';\n    static HISTORY = 'pi pi-history';\n    static HOME = 'pi pi-home';\n    static HOURGLASS = 'pi pi-hourglass';\n    static ID_CARD = 'pi pi-id-card';\n    static IMAGE = 'pi pi-image';\n    static IMAGES = 'pi pi-images';\n    static INBOX = 'pi pi-inbox';\n    static INDIAN_RUPEE = 'pi pi-indian-rupee';\n    static INFO = 'pi pi-info';\n    static INFO_CIRCLE = 'pi pi-info-circle';\n    static INSTAGRAM = 'pi pi-instagram';\n    static KEY = 'pi pi-key';\n    static LANGUAGE = 'pi pi-language';\n    static LIGHTBULB = 'pi pi-lightbulb';\n    static LINK = 'pi pi-link';\n    static LINKEDIN = 'pi pi-linkedin';\n    static LIST = 'pi pi-list';\n    static LIST_CHECK = 'pi pi-list-check';\n    static LOCK = 'pi pi-lock';\n    static LOCK_OPEN = 'pi pi-lock-open';\n    static MAP = 'pi pi-map';\n    static MAP_MARKER = 'pi pi-map-marker';\n    static MARS = 'pi pi-mars';\n    static MEGAPHONE = 'pi pi-megaphone';\n    static MICROCHIP = 'pi pi-microchip';\n    static MICROCHIP_AI = 'pi pi-microchip-ai';\n    static MICROPHONE = 'pi pi-microphone';\n    static MICROSOFT = 'pi pi-microsoft';\n    static MINUS = 'pi pi-minus';\n    static MINUS_CIRCLE = 'pi pi-minus-circle';\n    static MOBILE = 'pi pi-mobile';\n    static MONEY_BILL = 'pi pi-money-bill';\n    static MOON = 'pi pi-moon';\n    static OBJECTS_COLUMN = 'pi pi-objects-column';\n    static PALETTE = 'pi pi-palette';\n    static PAPERCLIP = 'pi pi-paperclip';\n    static PAUSE = 'pi pi-pause';\n    static PAUSE_CIRCLE = 'pi pi-pause-circle';\n    static PAYPAL = 'pi pi-paypal';\n    static PEN_TO_SQUARE = 'pi pi-pen-to-square';\n    static PENCIL = 'pi pi-pencil';\n    static PERCENTAGE = 'pi pi-percentage';\n    static PHONE = 'pi pi-phone';\n    static PINTEREST = 'pi pi-pinterest';\n    static PLAY = 'pi pi-play';\n    static PLAY_CIRCLE = 'pi pi-play-circle';\n    static PLUS = 'pi pi-plus';\n    static PLUS_CIRCLE = 'pi pi-plus-circle';\n    static POUND = 'pi pi-pound';\n    static POWER_OFF = 'pi pi-power-off';\n    static PRIME = 'pi pi-prime';\n    static PRINT = 'pi pi-print';\n    static QRCODE = 'pi pi-qrcode';\n    static QUESTION = 'pi pi-question';\n    static QUESTION_CIRCLE = 'pi pi-question-circle';\n    static RECEIPT = 'pi pi-receipt';\n    static REDDIT = 'pi pi-reddit';\n    static REFRESH = 'pi pi-refresh';\n    static REPLAY = 'pi pi-replay';\n    static REPLY = 'pi pi-reply';\n    static SAVE = 'pi pi-save';\n    static SEARCH = 'pi pi-search';\n    static SEARCH_MINUS = 'pi pi-search-minus';\n    static SEARCH_PLUS = 'pi pi-search-plus';\n    static SEND = 'pi pi-send';\n    static SERVER = 'pi pi-server';\n    static SHARE_ALT = 'pi pi-share-alt';\n    static SHIELD = 'pi pi-shield';\n    static SHOP = 'pi pi-shop';\n    static SHOPPING_BAG = 'pi pi-shopping-bag';\n    static SHOPPING_CART = 'pi pi-shopping-cart';\n    static SIGN_IN = 'pi pi-sign-in';\n    static SIGN_OUT = 'pi pi-sign-out';\n    static SITEMAP = 'pi pi-sitemap';\n    static SLACK = 'pi pi-slack';\n    static SLIDERS_H = 'pi pi-sliders-h';\n    static SLIDERS_V = 'pi pi-sliders-v';\n    static SORT = 'pi pi-sort';\n    static SORT_ALPHA_DOWN = 'pi pi-sort-alpha-down';\n    static SORT_ALPHA_DOWN_ALT = 'pi pi-sort-alpha-down-alt';\n    static SORT_ALPHA_UP = 'pi pi-sort-alpha-up';\n    static SORT_ALPHA_UP_ALT = 'pi pi-sort-alpha-up-alt';\n    static SORT_ALT = 'pi pi-sort-alt';\n    static SORT_ALT_SLASH = 'pi pi-sort-alt-slash';\n    static SORT_AMOUNT_DOWN = 'pi pi-sort-amount-down';\n    static SORT_AMOUNT_DOWN_ALT = 'pi pi-sort-amount-down-alt';\n    static SORT_AMOUNT_UP = 'pi pi-sort-amount-up';\n    static SORT_AMOUNT_UP_ALT = 'pi pi-sort-amount-up-alt';\n    static SORT_DOWN = 'pi pi-sort-down';\n    static SORT_DOWN_FILL = 'pi pi-sort-down-fill';\n    static SORT_NUMERIC_DOWN = 'pi pi-sort-numeric-down';\n    static SORT_NUMERIC_DOWN_ALT = 'pi pi-sort-numeric-down-alt';\n    static SORT_NUMERIC_UP = 'pi pi-sort-numeric-up';\n    static SORT_NUMERIC_UP_ALT = 'pi pi-sort-numeric-up-alt';\n    static SORT_UP = 'pi pi-sort-up';\n    static SORT_UP_FILL = 'pi pi-sort-up-fill';\n    static SPARKLES = 'pi pi-sparkles';\n    static SPINNER = 'pi pi-spinner';\n    static SPINNER_DOTTED = 'pi pi-spinner-dotted';\n    static STAR = 'pi pi-star';\n    static STAR_FILL = 'pi pi-star-fill';\n    static STAR_HALF = 'pi pi-star-half';\n    static STAR_HALF_FILL = 'pi pi-star-half-fill';\n    static STEP_BACKWARD = 'pi pi-step-backward';\n    static STEP_BACKWARD_ALT = 'pi pi-step-backward-alt';\n    static STEP_FORWARD = 'pi pi-step-forward';\n    static STEP_FORWARD_ALT = 'pi pi-step-forward-alt';\n    static STOP = 'pi pi-stop';\n    static STOP_CIRCLE = 'pi pi-stop-circle';\n    static STOPWATCH = 'pi pi-stopwatch';\n    static SUN = 'pi pi-sun';\n    static SYNC = 'pi pi-sync';\n    static TABLE = 'pi pi-table';\n    static TABLET = 'pi pi-tablet';\n    static TAG = 'pi pi-tag';\n    static TAGS = 'pi pi-tags';\n    static TELEGRAM = 'pi pi-telegram';\n    static TH_LARGE = 'pi pi-th-large';\n    static THUMBS_DOWN = 'pi pi-thumbs-down';\n    static THUMBS_DOWN_FILL = 'pi pi-thumbs-down-fill';\n    static THUMBS_UP = 'pi pi-thumbs-up';\n    static THUMBS_UP_FILL = 'pi pi-thumbs-up-fill';\n    static THUMBTACK = 'pi pi-thumbtack';\n    static TICKET = 'pi pi-ticket';\n    static TIKTOK = 'pi pi-tiktok';\n    static TIMES = 'pi pi-times';\n    static TIMES_CIRCLE = 'pi pi-times-circle';\n    static TRASH = 'pi pi-trash';\n    static TROPHY = 'pi pi-trophy';\n    static TRUCK = 'pi pi-truck';\n    static TURKISH_LIRA = 'pi pi-turkish-lira';\n    static TWITCH = 'pi pi-twitch';\n    static TWITTER = 'pi pi-twitter';\n    static UNDO = 'pi pi-undo';\n    static UNLOCK = 'pi pi-unlock';\n    static UPLOAD = 'pi pi-upload';\n    static USER = 'pi pi-user';\n    static USER_EDIT = 'pi pi-user-edit';\n    static USER_MINUS = 'pi pi-user-minus';\n    static USER_PLUS = 'pi pi-user-plus';\n    static USERS = 'pi pi-users';\n    static VENUS = 'pi pi-venus';\n    static VERIFIED = 'pi pi-verified';\n    static VIDEO = 'pi pi-video';\n    static VIMEO = 'pi pi-vimeo';\n    static VOLUME_DOWN = 'pi pi-volume-down';\n    static VOLUME_OFF = 'pi pi-volume-off';\n    static VOLUME_UP = 'pi pi-volume-up';\n    static WALLET = 'pi pi-wallet';\n    static WAREHOUSE = 'pi pi-warehouse';\n    static WAVE_PULSE = 'pi pi-wave-pulse';\n    static WHATSAPP = 'pi pi-whatsapp';\n    static WIFI = 'pi pi-wifi';\n    static WINDOW_MAXIMIZE = 'pi pi-window-maximize';\n    static WINDOW_MINIMIZE = 'pi pi-window-minimize';\n    static WRENCH = 'pi pi-wrench';\n    static YOUTUBE = 'pi pi-youtube';\n  }\n  return PrimeIcons;\n})();\nlet PrimeNGConfig = /*#__PURE__*/(() => {\n  class PrimeNGConfig {\n    ripple = false;\n    inputStyle = signal('outlined');\n    overlayOptions = {};\n    csp = signal({\n      nonce: undefined\n    });\n    filterMatchModeOptions = {\n      text: [FilterMatchMode.STARTS_WITH, FilterMatchMode.CONTAINS, FilterMatchMode.NOT_CONTAINS, FilterMatchMode.ENDS_WITH, FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS],\n      numeric: [FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS, FilterMatchMode.LESS_THAN, FilterMatchMode.LESS_THAN_OR_EQUAL_TO, FilterMatchMode.GREATER_THAN, FilterMatchMode.GREATER_THAN_OR_EQUAL_TO],\n      date: [FilterMatchMode.DATE_IS, FilterMatchMode.DATE_IS_NOT, FilterMatchMode.DATE_BEFORE, FilterMatchMode.DATE_AFTER]\n    };\n    translation = {\n      startsWith: 'Starts with',\n      contains: 'Contains',\n      notContains: 'Not contains',\n      endsWith: 'Ends with',\n      equals: 'Equals',\n      notEquals: 'Not equals',\n      noFilter: 'No Filter',\n      lt: 'Less than',\n      lte: 'Less than or equal to',\n      gt: 'Greater than',\n      gte: 'Greater than or equal to',\n      is: 'Is',\n      isNot: 'Is not',\n      before: 'Before',\n      after: 'After',\n      dateIs: 'Date is',\n      dateIsNot: 'Date is not',\n      dateBefore: 'Date is before',\n      dateAfter: 'Date is after',\n      clear: 'Clear',\n      apply: 'Apply',\n      matchAll: 'Match All',\n      matchAny: 'Match Any',\n      addRule: 'Add Rule',\n      removeRule: 'Remove Rule',\n      accept: 'Yes',\n      reject: 'No',\n      choose: 'Choose',\n      upload: 'Upload',\n      cancel: 'Cancel',\n      pending: 'Pending',\n      fileSizeTypes: ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],\n      dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n      dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n      dayNamesMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n      monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],\n      monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n      chooseYear: 'Choose Year',\n      chooseMonth: 'Choose Month',\n      chooseDate: 'Choose Date',\n      prevDecade: 'Previous Decade',\n      nextDecade: 'Next Decade',\n      prevYear: 'Previous Year',\n      nextYear: 'Next Year',\n      prevMonth: 'Previous Month',\n      nextMonth: 'Next Month',\n      prevHour: 'Previous Hour',\n      nextHour: 'Next Hour',\n      prevMinute: 'Previous Minute',\n      nextMinute: 'Next Minute',\n      prevSecond: 'Previous Second',\n      nextSecond: 'Next Second',\n      am: 'am',\n      pm: 'pm',\n      dateFormat: 'mm/dd/yy',\n      firstDayOfWeek: 0,\n      today: 'Today',\n      weekHeader: 'Wk',\n      weak: 'Weak',\n      medium: 'Medium',\n      strong: 'Strong',\n      passwordPrompt: 'Enter a password',\n      emptyMessage: 'No results found',\n      searchMessage: '{0} results are available',\n      selectionMessage: '{0} items selected',\n      emptySelectionMessage: 'No selected item',\n      emptySearchMessage: 'No results found',\n      emptyFilterMessage: 'No results found',\n      aria: {\n        trueLabel: 'True',\n        falseLabel: 'False',\n        nullLabel: 'Not Selected',\n        star: '1 star',\n        stars: '{star} stars',\n        selectAll: 'All items selected',\n        unselectAll: 'All items unselected',\n        close: 'Close',\n        previous: 'Previous',\n        next: 'Next',\n        navigation: 'Navigation',\n        scrollTop: 'Scroll Top',\n        moveTop: 'Move Top',\n        moveUp: 'Move Up',\n        moveDown: 'Move Down',\n        moveBottom: 'Move Bottom',\n        moveToTarget: 'Move to Target',\n        moveToSource: 'Move to Source',\n        moveAllToTarget: 'Move All to Target',\n        moveAllToSource: 'Move All to Source',\n        pageLabel: '{page}',\n        firstPageLabel: 'First Page',\n        lastPageLabel: 'Last Page',\n        nextPageLabel: 'Next Page',\n        prevPageLabel: 'Previous Page',\n        rowsPerPageLabel: 'Rows per page',\n        previousPageLabel: 'Previous Page',\n        jumpToPageDropdownLabel: 'Jump to Page Dropdown',\n        jumpToPageInputLabel: 'Jump to Page Input',\n        selectRow: 'Row Selected',\n        unselectRow: 'Row Unselected',\n        expandRow: 'Row Expanded',\n        collapseRow: 'Row Collapsed',\n        showFilterMenu: 'Show Filter Menu',\n        hideFilterMenu: 'Hide Filter Menu',\n        filterOperator: 'Filter Operator',\n        filterConstraint: 'Filter Constraint',\n        editRow: 'Row Edit',\n        saveEdit: 'Save Edit',\n        cancelEdit: 'Cancel Edit',\n        listView: 'List View',\n        gridView: 'Grid View',\n        slide: 'Slide',\n        slideNumber: '{slideNumber}',\n        zoomImage: 'Zoom Image',\n        zoomIn: 'Zoom In',\n        zoomOut: 'Zoom Out',\n        rotateRight: 'Rotate Right',\n        rotateLeft: 'Rotate Left',\n        listLabel: 'Option List',\n        selectColor: 'Select a color',\n        removeLabel: 'Remove',\n        browseFiles: 'Browse Files',\n        maximizeLabel: 'Maximize'\n      }\n    };\n    zIndex = {\n      modal: 1100,\n      overlay: 1000,\n      menu: 1000,\n      tooltip: 1100\n    };\n    translationSource = new Subject();\n    translationObserver = this.translationSource.asObservable();\n    getTranslation(key) {\n      return this.translation[key];\n    }\n    setTranslation(value) {\n      this.translation = {\n        ...this.translation,\n        ...value\n      };\n      this.translationSource.next(this.translation);\n    }\n    static ɵfac = function PrimeNGConfig_Factory(t) {\n      return new (t || PrimeNGConfig)();\n    };\n    static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n      token: PrimeNGConfig,\n      factory: PrimeNGConfig.ɵfac,\n      providedIn: 'root'\n    });\n  }\n  return PrimeNGConfig;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet Header = /*#__PURE__*/(() => {\n  class Header {\n    static ɵfac = function Header_Factory(t) {\n      return new (t || Header)();\n    };\n    static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n      type: Header,\n      selectors: [[\"p-header\"]],\n      standalone: true,\n      features: [i0.ɵɵStandaloneFeature],\n      ngContentSelectors: _c0,\n      decls: 1,\n      vars: 0,\n      template: function Header_Template(rf, ctx) {\n        if (rf & 1) {\n          i0.ɵɵprojectionDef();\n          i0.ɵɵprojection(0);\n        }\n      },\n      encapsulation: 2\n    });\n  }\n  return Header;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet Footer = /*#__PURE__*/(() => {\n  class Footer {\n    static ɵfac = function Footer_Factory(t) {\n      return new (t || Footer)();\n    };\n    static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n      type: Footer,\n      selectors: [[\"p-footer\"]],\n      standalone: true,\n      features: [i0.ɵɵStandaloneFeature],\n      ngContentSelectors: _c0,\n      decls: 1,\n      vars: 0,\n      template: function Footer_Template(rf, ctx) {\n        if (rf & 1) {\n          i0.ɵɵprojectionDef();\n          i0.ɵɵprojection(0);\n        }\n      },\n      encapsulation: 2\n    });\n  }\n  return Footer;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet PrimeTemplate = /*#__PURE__*/(() => {\n  class PrimeTemplate {\n    template;\n    type;\n    name;\n    constructor(template) {\n      this.template = template;\n    }\n    getType() {\n      return this.name;\n    }\n    static ɵfac = function PrimeTemplate_Factory(t) {\n      return new (t || PrimeTemplate)(i0.ɵɵdirectiveInject(i0.TemplateRef));\n    };\n    static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n      type: PrimeTemplate,\n      selectors: [[\"\", \"pTemplate\", \"\"]],\n      inputs: {\n        type: \"type\",\n        name: [i0.ɵɵInputFlags.None, \"pTemplate\", \"name\"]\n      },\n      standalone: true\n    });\n  }\n  return PrimeTemplate;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet SharedModule = /*#__PURE__*/(() => {\n  class SharedModule {\n    static ɵfac = function SharedModule_Factory(t) {\n      return new (t || SharedModule)();\n    };\n    static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n      type: SharedModule\n    });\n    static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({});\n  }\n  return SharedModule;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TranslationKeys = /*#__PURE__*/(() => {\n  class TranslationKeys {\n    static STARTS_WITH = 'startsWith';\n    static CONTAINS = 'contains';\n    static NOT_CONTAINS = 'notContains';\n    static ENDS_WITH = 'endsWith';\n    static EQUALS = 'equals';\n    static NOT_EQUALS = 'notEquals';\n    static NO_FILTER = 'noFilter';\n    static LT = 'lt';\n    static LTE = 'lte';\n    static GT = 'gt';\n    static GTE = 'gte';\n    static IS = 'is';\n    static IS_NOT = 'isNot';\n    static BEFORE = 'before';\n    static AFTER = 'after';\n    static CLEAR = 'clear';\n    static APPLY = 'apply';\n    static MATCH_ALL = 'matchAll';\n    static MATCH_ANY = 'matchAny';\n    static ADD_RULE = 'addRule';\n    static REMOVE_RULE = 'removeRule';\n    static ACCEPT = 'accept';\n    static REJECT = 'reject';\n    static CHOOSE = 'choose';\n    static UPLOAD = 'upload';\n    static CANCEL = 'cancel';\n    static PENDING = 'pending';\n    static FILE_SIZE_TYPES = 'fileSizeTypes';\n    static DAY_NAMES = 'dayNames';\n    static DAY_NAMES_SHORT = 'dayNamesShort';\n    static DAY_NAMES_MIN = 'dayNamesMin';\n    static MONTH_NAMES = 'monthNames';\n    static MONTH_NAMES_SHORT = 'monthNamesShort';\n    static FIRST_DAY_OF_WEEK = 'firstDayOfWeek';\n    static TODAY = 'today';\n    static WEEK_HEADER = 'weekHeader';\n    static WEAK = 'weak';\n    static MEDIUM = 'medium';\n    static STRONG = 'strong';\n    static PASSWORD_PROMPT = 'passwordPrompt';\n    static EMPTY_MESSAGE = 'emptyMessage';\n    static EMPTY_FILTER_MESSAGE = 'emptyFilterMessage';\n    static SHOW_FILTER_MENU = 'showFilterMenu';\n    static HIDE_FILTER_MENU = 'hideFilterMenu';\n    static SELECTION_MESSAGE = 'selectionMessage';\n    static ARIA = 'aria';\n    static SELECT_COLOR = 'selectColor';\n    static BROWSE_FILES = 'browseFiles';\n  }\n  return TranslationKeys;\n})();\nlet TreeDragDropService = /*#__PURE__*/(() => {\n  class TreeDragDropService {\n    dragStartSource = new Subject();\n    dragStopSource = new Subject();\n    dragStart$ = this.dragStartSource.asObservable();\n    dragStop$ = this.dragStopSource.asObservable();\n    startDrag(event) {\n      this.dragStartSource.next(event);\n    }\n    stopDrag(event) {\n      this.dragStopSource.next(event);\n    }\n    static ɵfac = function TreeDragDropService_Factory(t) {\n      return new (t || TreeDragDropService)();\n    };\n    static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n      token: TreeDragDropService,\n      factory: TreeDragDropService.ɵfac\n    });\n  }\n  return TreeDragDropService;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ConfirmEventType, ConfirmationService, ContextMenuService, FilterMatchMode, FilterOperator, FilterService, Footer, Header, MessageService, OverlayService, PrimeIcons, PrimeNGConfig, PrimeTemplate, SharedModule, TranslationKeys, TreeDragDropService };\n","import * as i0 from '@angular/core';\nimport { booleanAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Input } from '@angular/core';\nimport { ObjectUtils } from 'primeng/utils';\nconst _c0 = [\"*\"];\nlet BaseIcon = /*#__PURE__*/(() => {\n  class BaseIcon {\n    label;\n    spin = false;\n    styleClass;\n    role;\n    ariaLabel;\n    ariaHidden;\n    ngOnInit() {\n      this.getAttributes();\n    }\n    getAttributes() {\n      const isLabelEmpty = ObjectUtils.isEmpty(this.label);\n      this.role = !isLabelEmpty ? 'img' : undefined;\n      this.ariaLabel = !isLabelEmpty ? this.label : undefined;\n      this.ariaHidden = isLabelEmpty;\n    }\n    getClassNames() {\n      return `p-icon ${this.styleClass ? this.styleClass + ' ' : ''}${this.spin ? 'p-icon-spin' : ''}`;\n    }\n    static ɵfac = function BaseIcon_Factory(t) {\n      return new (t || BaseIcon)();\n    };\n    static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n      type: BaseIcon,\n      selectors: [[\"ng-component\"]],\n      hostAttrs: [1, \"p-element\", \"p-icon-wrapper\"],\n      inputs: {\n        label: \"label\",\n        spin: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"spin\", \"spin\", booleanAttribute],\n        styleClass: \"styleClass\"\n      },\n      standalone: true,\n      features: [i0.ɵɵInputTransformsFeature, i0.ɵɵStandaloneFeature],\n      ngContentSelectors: _c0,\n      decls: 1,\n      vars: 0,\n      template: function BaseIcon_Template(rf, ctx) {\n        if (rf & 1) {\n          i0.ɵɵprojectionDef();\n          i0.ɵɵprojection(0);\n        }\n      },\n      encapsulation: 2,\n      changeDetection: 0\n    });\n  }\n  return BaseIcon;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BaseIcon };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nlet ChevronDownIcon = /*#__PURE__*/(() => {\n  class ChevronDownIcon extends BaseIcon {\n    static ɵfac = /* @__PURE__ */(() => {\n      let ɵChevronDownIcon_BaseFactory;\n      return function ChevronDownIcon_Factory(t) {\n        return (ɵChevronDownIcon_BaseFactory || (ɵChevronDownIcon_BaseFactory = i0.ɵɵgetInheritedFactory(ChevronDownIcon)))(t || ChevronDownIcon);\n      };\n    })();\n    static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n      type: ChevronDownIcon,\n      selectors: [[\"ChevronDownIcon\"]],\n      standalone: true,\n      features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n      decls: 2,\n      vars: 5,\n      consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"d\", \"M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z\", \"fill\", \"currentColor\"]],\n      template: function ChevronDownIcon_Template(rf, ctx) {\n        if (rf & 1) {\n          i0.ɵɵnamespaceSVG();\n          i0.ɵɵelementStart(0, \"svg\", 0);\n          i0.ɵɵelement(1, \"path\", 1);\n          i0.ɵɵelementEnd();\n        }\n        if (rf & 2) {\n          i0.ɵɵclassMap(ctx.getClassNames());\n          i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n        }\n      },\n      encapsulation: 2\n    });\n  }\n  return ChevronDownIcon;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ChevronDownIcon };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nlet ChevronLeftIcon = /*#__PURE__*/(() => {\n  class ChevronLeftIcon extends BaseIcon {\n    static ɵfac = /* @__PURE__ */(() => {\n      let ɵChevronLeftIcon_BaseFactory;\n      return function ChevronLeftIcon_Factory(t) {\n        return (ɵChevronLeftIcon_BaseFactory || (ɵChevronLeftIcon_BaseFactory = i0.ɵɵgetInheritedFactory(ChevronLeftIcon)))(t || ChevronLeftIcon);\n      };\n    })();\n    static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n      type: ChevronLeftIcon,\n      selectors: [[\"ChevronLeftIcon\"]],\n      standalone: true,\n      features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n      decls: 2,\n      vars: 5,\n      consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"d\", \"M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z\", \"fill\", \"currentColor\"]],\n      template: function ChevronLeftIcon_Template(rf, ctx) {\n        if (rf & 1) {\n          i0.ɵɵnamespaceSVG();\n          i0.ɵɵelementStart(0, \"svg\", 0);\n          i0.ɵɵelement(1, \"path\", 1);\n          i0.ɵɵelementEnd();\n        }\n        if (rf & 2) {\n          i0.ɵɵclassMap(ctx.getClassNames());\n          i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n        }\n      },\n      encapsulation: 2\n    });\n  }\n  return ChevronLeftIcon;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ChevronLeftIcon };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nlet ChevronRightIcon = /*#__PURE__*/(() => {\n  class ChevronRightIcon extends BaseIcon {\n    static ɵfac = /* @__PURE__ */(() => {\n      let ɵChevronRightIcon_BaseFactory;\n      return function ChevronRightIcon_Factory(t) {\n        return (ɵChevronRightIcon_BaseFactory || (ɵChevronRightIcon_BaseFactory = i0.ɵɵgetInheritedFactory(ChevronRightIcon)))(t || ChevronRightIcon);\n      };\n    })();\n    static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n      type: ChevronRightIcon,\n      selectors: [[\"ChevronRightIcon\"]],\n      standalone: true,\n      features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n      decls: 2,\n      vars: 5,\n      consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"d\", \"M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z\", \"fill\", \"currentColor\"]],\n      template: function ChevronRightIcon_Template(rf, ctx) {\n        if (rf & 1) {\n          i0.ɵɵnamespaceSVG();\n          i0.ɵɵelementStart(0, \"svg\", 0);\n          i0.ɵɵelement(1, \"path\", 1);\n          i0.ɵɵelementEnd();\n        }\n        if (rf & 2) {\n          i0.ɵɵclassMap(ctx.getClassNames());\n          i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n        }\n      },\n      encapsulation: 2\n    });\n  }\n  return ChevronRightIcon;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ChevronRightIcon };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nlet ChevronUpIcon = /*#__PURE__*/(() => {\n  class ChevronUpIcon extends BaseIcon {\n    static ɵfac = /* @__PURE__ */(() => {\n      let ɵChevronUpIcon_BaseFactory;\n      return function ChevronUpIcon_Factory(t) {\n        return (ɵChevronUpIcon_BaseFactory || (ɵChevronUpIcon_BaseFactory = i0.ɵɵgetInheritedFactory(ChevronUpIcon)))(t || ChevronUpIcon);\n      };\n    })();\n    static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n      type: ChevronUpIcon,\n      selectors: [[\"ChevronUpIcon\"]],\n      standalone: true,\n      features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n      decls: 2,\n      vars: 5,\n      consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"d\", \"M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z\", \"fill\", \"currentColor\"]],\n      template: function ChevronUpIcon_Template(rf, ctx) {\n        if (rf & 1) {\n          i0.ɵɵnamespaceSVG();\n          i0.ɵɵelementStart(0, \"svg\", 0);\n          i0.ɵɵelement(1, \"path\", 1);\n          i0.ɵɵelementEnd();\n        }\n        if (rf & 2) {\n          i0.ɵɵclassMap(ctx.getClassNames());\n          i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n        }\n      },\n      encapsulation: 2\n    });\n  }\n  return ChevronUpIcon;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ChevronUpIcon };\n","/**\n * @dynamic is for runtime initializing DomHandler.browser\n *\n * If delete below comment, we can see this error message:\n *  Metadata collected contains an error that will be reported at runtime:\n *  Only initialized variables and constants can be referenced\n *  because the value of this variable is needed by the template compiler.\n */\n// @dynamic\nlet DomHandler = /*#__PURE__*/(() => {\n  class DomHandler {\n    static zindex = 1000;\n    static calculatedScrollbarWidth = null;\n    static calculatedScrollbarHeight = null;\n    static browser;\n    static addClass(element, className) {\n      if (element && className) {\n        if (element.classList) element.classList.add(className);else element.className += ' ' + className;\n      }\n    }\n    static addMultipleClasses(element, className) {\n      if (element && className) {\n        if (element.classList) {\n          let styles = className.trim().split(' ');\n          for (let i = 0; i < styles.length; i++) {\n            element.classList.add(styles[i]);\n          }\n        } else {\n          let styles = className.split(' ');\n          for (let i = 0; i < styles.length; i++) {\n            element.className += ' ' + styles[i];\n          }\n        }\n      }\n    }\n    static removeClass(element, className) {\n      if (element && className) {\n        if (element.classList) element.classList.remove(className);else element.className = element.className.replace(new RegExp('(^|\\\\b)' + className.split(' ').join('|') + '(\\\\b|$)', 'gi'), ' ');\n      }\n    }\n    static removeMultipleClasses(element, classNames) {\n      if (element && classNames) {\n        [classNames].flat().filter(Boolean).forEach(cNames => cNames.split(' ').forEach(className => this.removeClass(element, className)));\n      }\n    }\n    static hasClass(element, className) {\n      if (element && className) {\n        if (element.classList) return element.classList.contains(className);else return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);\n      }\n      return false;\n    }\n    static siblings(element) {\n      return Array.prototype.filter.call(element.parentNode.children, function (child) {\n        return child !== element;\n      });\n    }\n    static find(element, selector) {\n      return Array.from(element.querySelectorAll(selector));\n    }\n    static findSingle(element, selector) {\n      return this.isElement(element) ? element.querySelector(selector) : null;\n    }\n    static index(element) {\n      let children = element.parentNode.childNodes;\n      let num = 0;\n      for (var i = 0; i < children.length; i++) {\n        if (children[i] == element) return num;\n        if (children[i].nodeType == 1) num++;\n      }\n      return -1;\n    }\n    static indexWithinGroup(element, attributeName) {\n      let children = element.parentNode ? element.parentNode.childNodes : [];\n      let num = 0;\n      for (var i = 0; i < children.length; i++) {\n        if (children[i] == element) return num;\n        if (children[i].attributes && children[i].attributes[attributeName] && children[i].nodeType == 1) num++;\n      }\n      return -1;\n    }\n    static appendOverlay(overlay, target, appendTo = 'self') {\n      if (appendTo !== 'self' && overlay && target) {\n        this.appendChild(overlay, target);\n      }\n    }\n    static alignOverlay(overlay, target, appendTo = 'self', calculateMinWidth = true) {\n      if (overlay && target) {\n        if (calculateMinWidth) {\n          overlay.style.minWidth = `${DomHandler.getOuterWidth(target)}px`;\n        }\n        if (appendTo === 'self') {\n          this.relativePosition(overlay, target);\n        } else {\n          this.absolutePosition(overlay, target);\n        }\n      }\n    }\n    static relativePosition(element, target, gutter = true) {\n      const getClosestRelativeElement = el => {\n        if (!el) return;\n        return getComputedStyle(el).getPropertyValue('position') === 'relative' ? el : getClosestRelativeElement(el.parentElement);\n      };\n      const elementDimensions = element.offsetParent ? {\n        width: element.offsetWidth,\n        height: element.offsetHeight\n      } : this.getHiddenElementDimensions(element);\n      const targetHeight = target.offsetHeight ?? target.getBoundingClientRect().height;\n      const targetOffset = target.getBoundingClientRect();\n      const windowScrollTop = this.getWindowScrollTop();\n      const windowScrollLeft = this.getWindowScrollLeft();\n      const viewport = this.getViewport();\n      const relativeElement = getClosestRelativeElement(element);\n      const relativeElementOffset = relativeElement?.getBoundingClientRect() || {\n        top: -1 * windowScrollTop,\n        left: -1 * windowScrollLeft\n      };\n      let top, left;\n      if (targetOffset.top + targetHeight + elementDimensions.height > viewport.height) {\n        top = targetOffset.top - relativeElementOffset.top - elementDimensions.height;\n        element.style.transformOrigin = 'bottom';\n        if (targetOffset.top + top < 0) {\n          top = -1 * targetOffset.top;\n        }\n      } else {\n        top = targetHeight + targetOffset.top - relativeElementOffset.top;\n        element.style.transformOrigin = 'top';\n      }\n      const horizontalOverflow = targetOffset.left + elementDimensions.width - viewport.width;\n      const targetLeftOffsetInSpaceOfRelativeElement = targetOffset.left - relativeElementOffset.left;\n      if (elementDimensions.width > viewport.width) {\n        // element wider then viewport and cannot fit on screen (align at left side of viewport)\n        left = (targetOffset.left - relativeElementOffset.left) * -1;\n      } else if (horizontalOverflow > 0) {\n        // element wider then viewport but can be fit on screen (align at right side of viewport)\n        left = targetLeftOffsetInSpaceOfRelativeElement - horizontalOverflow;\n      } else {\n        // element fits on screen (align with target)\n        left = targetOffset.left - relativeElementOffset.left;\n      }\n      element.style.top = top + 'px';\n      element.style.left = left + 'px';\n      gutter && (element.style.marginTop = origin === 'bottom' ? 'calc(var(--p-anchor-gutter) * -1)' : 'calc(var(--p-anchor-gutter))');\n    }\n    static absolutePosition(element, target, gutter = true) {\n      const elementDimensions = element.offsetParent ? {\n        width: element.offsetWidth,\n        height: element.offsetHeight\n      } : this.getHiddenElementDimensions(element);\n      const elementOuterHeight = elementDimensions.height;\n      const elementOuterWidth = elementDimensions.width;\n      const targetOuterHeight = target.offsetHeight ?? target.getBoundingClientRect().height;\n      const targetOuterWidth = target.offsetWidth ?? target.getBoundingClientRect().width;\n      const targetOffset = target.getBoundingClientRect();\n      const windowScrollTop = this.getWindowScrollTop();\n      const windowScrollLeft = this.getWindowScrollLeft();\n      const viewport = this.getViewport();\n      let top, left;\n      if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {\n        top = targetOffset.top + windowScrollTop - elementOuterHeight;\n        element.style.transformOrigin = 'bottom';\n        if (top < 0) {\n          top = windowScrollTop;\n        }\n      } else {\n        top = targetOuterHeight + targetOffset.top + windowScrollTop;\n        element.style.transformOrigin = 'top';\n      }\n      if (targetOffset.left + elementOuterWidth > viewport.width) left = Math.max(0, targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth);else left = targetOffset.left + windowScrollLeft;\n      element.style.top = top + 'px';\n      element.style.left = left + 'px';\n      gutter && (element.style.marginTop = origin === 'bottom' ? 'calc(var(--p-anchor-gutter) * -1)' : 'calc(var(--p-anchor-gutter))');\n    }\n    static getParents(element, parents = []) {\n      return element['parentNode'] === null ? parents : this.getParents(element.parentNode, parents.concat([element.parentNode]));\n    }\n    static getScrollableParents(element) {\n      let scrollableParents = [];\n      if (element) {\n        let parents = this.getParents(element);\n        const overflowRegex = /(auto|scroll)/;\n        const overflowCheck = node => {\n          let styleDeclaration = window['getComputedStyle'](node, null);\n          return overflowRegex.test(styleDeclaration.getPropertyValue('overflow')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowX')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowY'));\n        };\n        for (let parent of parents) {\n          let scrollSelectors = parent.nodeType === 1 && parent.dataset['scrollselectors'];\n          if (scrollSelectors) {\n            let selectors = scrollSelectors.split(',');\n            for (let selector of selectors) {\n              let el = this.findSingle(parent, selector);\n              if (el && overflowCheck(el)) {\n                scrollableParents.push(el);\n              }\n            }\n          }\n          if (parent.nodeType !== 9 && overflowCheck(parent)) {\n            scrollableParents.push(parent);\n          }\n        }\n      }\n      return scrollableParents;\n    }\n    static getHiddenElementOuterHeight(element) {\n      element.style.visibility = 'hidden';\n      element.style.display = 'block';\n      let elementHeight = element.offsetHeight;\n      element.style.display = 'none';\n      element.style.visibility = 'visible';\n      return elementHeight;\n    }\n    static getHiddenElementOuterWidth(element) {\n      element.style.visibility = 'hidden';\n      element.style.display = 'block';\n      let elementWidth = element.offsetWidth;\n      element.style.display = 'none';\n      element.style.visibility = 'visible';\n      return elementWidth;\n    }\n    static getHiddenElementDimensions(element) {\n      let dimensions = {};\n      element.style.visibility = 'hidden';\n      element.style.display = 'block';\n      dimensions.width = element.offsetWidth;\n      dimensions.height = element.offsetHeight;\n      element.style.display = 'none';\n      element.style.visibility = 'visible';\n      return dimensions;\n    }\n    static scrollInView(container, item) {\n      let borderTopValue = getComputedStyle(container).getPropertyValue('borderTopWidth');\n      let borderTop = borderTopValue ? parseFloat(borderTopValue) : 0;\n      let paddingTopValue = getComputedStyle(container).getPropertyValue('paddingTop');\n      let paddingTop = paddingTopValue ? parseFloat(paddingTopValue) : 0;\n      let containerRect = container.getBoundingClientRect();\n      let itemRect = item.getBoundingClientRect();\n      let offset = itemRect.top + document.body.scrollTop - (containerRect.top + document.body.scrollTop) - borderTop - paddingTop;\n      let scroll = container.scrollTop;\n      let elementHeight = container.clientHeight;\n      let itemHeight = this.getOuterHeight(item);\n      if (offset < 0) {\n        container.scrollTop = scroll + offset;\n      } else if (offset + itemHeight > elementHeight) {\n        container.scrollTop = scroll + offset - elementHeight + itemHeight;\n      }\n    }\n    static fadeIn(element, duration) {\n      element.style.opacity = 0;\n      let last = +new Date();\n      let opacity = 0;\n      let tick = function () {\n        opacity = +element.style.opacity.replace(',', '.') + (new Date().getTime() - last) / duration;\n        element.style.opacity = opacity;\n        last = +new Date();\n        if (+opacity < 1) {\n          window.requestAnimationFrame && requestAnimationFrame(tick) || setTimeout(tick, 16);\n        }\n      };\n      tick();\n    }\n    static fadeOut(element, ms) {\n      var opacity = 1,\n        interval = 50,\n        duration = ms,\n        gap = interval / duration;\n      let fading = setInterval(() => {\n        opacity = opacity - gap;\n        if (opacity <= 0) {\n          opacity = 0;\n          clearInterval(fading);\n        }\n        element.style.opacity = opacity;\n      }, interval);\n    }\n    static getWindowScrollTop() {\n      let doc = document.documentElement;\n      return (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);\n    }\n    static getWindowScrollLeft() {\n      let doc = document.documentElement;\n      return (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0);\n    }\n    static matches(element, selector) {\n      var p = Element.prototype;\n      var f = p['matches'] || p.webkitMatchesSelector || p['mozMatchesSelector'] || p['msMatchesSelector'] || function (s) {\n        return [].indexOf.call(document.querySelectorAll(s), this) !== -1;\n      };\n      return f.call(element, selector);\n    }\n    static getOuterWidth(el, margin) {\n      let width = el.offsetWidth;\n      if (margin) {\n        let style = getComputedStyle(el);\n        width += parseFloat(style.marginLeft) + parseFloat(style.marginRight);\n      }\n      return width;\n    }\n    static getHorizontalPadding(el) {\n      let style = getComputedStyle(el);\n      return parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);\n    }\n    static getHorizontalMargin(el) {\n      let style = getComputedStyle(el);\n      return parseFloat(style.marginLeft) + parseFloat(style.marginRight);\n    }\n    static innerWidth(el) {\n      let width = el.offsetWidth;\n      let style = getComputedStyle(el);\n      width += parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);\n      return width;\n    }\n    static width(el) {\n      let width = el.offsetWidth;\n      let style = getComputedStyle(el);\n      width -= parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);\n      return width;\n    }\n    static getInnerHeight(el) {\n      let height = el.offsetHeight;\n      let style = getComputedStyle(el);\n      height += parseFloat(style.paddingTop) + parseFloat(style.paddingBottom);\n      return height;\n    }\n    static getOuterHeight(el, margin) {\n      let height = el.offsetHeight;\n      if (margin) {\n        let style = getComputedStyle(el);\n        height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);\n      }\n      return height;\n    }\n    static getHeight(el) {\n      let height = el.offsetHeight;\n      let style = getComputedStyle(el);\n      height -= parseFloat(style.paddingTop) + parseFloat(style.paddingBottom) + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);\n      return height;\n    }\n    static getWidth(el) {\n      let width = el.offsetWidth;\n      let style = getComputedStyle(el);\n      width -= parseFloat(style.paddingLeft) + parseFloat(style.paddingRight) + parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth);\n      return width;\n    }\n    static getViewport() {\n      let win = window,\n        d = document,\n        e = d.documentElement,\n        g = d.getElementsByTagName('body')[0],\n        w = win.innerWidth || e.clientWidth || g.clientWidth,\n        h = win.innerHeight || e.clientHeight || g.clientHeight;\n      return {\n        width: w,\n        height: h\n      };\n    }\n    static getOffset(el) {\n      var rect = el.getBoundingClientRect();\n      return {\n        top: rect.top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0),\n        left: rect.left + (window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0)\n      };\n    }\n    static replaceElementWith(element, replacementElement) {\n      let parentNode = element.parentNode;\n      if (!parentNode) throw `Can't replace element`;\n      return parentNode.replaceChild(replacementElement, element);\n    }\n    static getUserAgent() {\n      if (navigator && this.isClient()) {\n        return navigator.userAgent;\n      }\n    }\n    static isIE() {\n      var ua = window.navigator.userAgent;\n      var msie = ua.indexOf('MSIE ');\n      if (msie > 0) {\n        // IE 10 or older => return version number\n        return true;\n      }\n      var trident = ua.indexOf('Trident/');\n      if (trident > 0) {\n        // IE 11 => return version number\n        var rv = ua.indexOf('rv:');\n        return true;\n      }\n      var edge = ua.indexOf('Edge/');\n      if (edge > 0) {\n        // Edge (IE 12+) => return version number\n        return true;\n      }\n      // other browser\n      return false;\n    }\n    static isIOS() {\n      return /iPad|iPhone|iPod/.test(navigator.userAgent) && !window['MSStream'];\n    }\n    static isAndroid() {\n      return /(android)/i.test(navigator.userAgent);\n    }\n    static isTouchDevice() {\n      return 'ontouchstart' in window || navigator.maxTouchPoints > 0;\n    }\n    static appendChild(element, target) {\n      if (this.isElement(target)) target.appendChild(element);else if (target && target.el && target.el.nativeElement) target.el.nativeElement.appendChild(element);else throw 'Cannot append ' + target + ' to ' + element;\n    }\n    static removeChild(element, target) {\n      if (this.isElement(target)) target.removeChild(element);else if (target.el && target.el.nativeElement) target.el.nativeElement.removeChild(element);else throw 'Cannot remove ' + element + ' from ' + target;\n    }\n    static removeElement(element) {\n      if (!('remove' in Element.prototype)) element.parentNode.removeChild(element);else element.remove();\n    }\n    static isElement(obj) {\n      return typeof HTMLElement === 'object' ? obj instanceof HTMLElement : obj && typeof obj === 'object' && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === 'string';\n    }\n    static calculateScrollbarWidth(el) {\n      if (el) {\n        let style = getComputedStyle(el);\n        return el.offsetWidth - el.clientWidth - parseFloat(style.borderLeftWidth) - parseFloat(style.borderRightWidth);\n      } else {\n        if (this.calculatedScrollbarWidth !== null) return this.calculatedScrollbarWidth;\n        let scrollDiv = document.createElement('div');\n        scrollDiv.className = 'p-scrollbar-measure';\n        document.body.appendChild(scrollDiv);\n        let scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n        document.body.removeChild(scrollDiv);\n        this.calculatedScrollbarWidth = scrollbarWidth;\n        return scrollbarWidth;\n      }\n    }\n    static calculateScrollbarHeight() {\n      if (this.calculatedScrollbarHeight !== null) return this.calculatedScrollbarHeight;\n      let scrollDiv = document.createElement('div');\n      scrollDiv.className = 'p-scrollbar-measure';\n      document.body.appendChild(scrollDiv);\n      let scrollbarHeight = scrollDiv.offsetHeight - scrollDiv.clientHeight;\n      document.body.removeChild(scrollDiv);\n      this.calculatedScrollbarWidth = scrollbarHeight;\n      return scrollbarHeight;\n    }\n    static invokeElementMethod(element, methodName, args) {\n      element[methodName].apply(element, args);\n    }\n    static clearSelection() {\n      if (window.getSelection) {\n        if (window.getSelection().empty) {\n          window.getSelection().empty();\n        } else if (window.getSelection().removeAllRanges && window.getSelection().rangeCount > 0 && window.getSelection().getRangeAt(0).getClientRects().length > 0) {\n          window.getSelection().removeAllRanges();\n        }\n      } else if (document['selection'] && document['selection'].empty) {\n        try {\n          document['selection'].empty();\n        } catch (error) {\n          //ignore IE bug\n        }\n      }\n    }\n    static getBrowser() {\n      if (!this.browser) {\n        let matched = this.resolveUserAgent();\n        this.browser = {};\n        if (matched.browser) {\n          this.browser[matched.browser] = true;\n          this.browser['version'] = matched.version;\n        }\n        if (this.browser['chrome']) {\n          this.browser['webkit'] = true;\n        } else if (this.browser['webkit']) {\n          this.browser['safari'] = true;\n        }\n      }\n      return this.browser;\n    }\n    static resolveUserAgent() {\n      let ua = navigator.userAgent.toLowerCase();\n      let match = /(chrome)[ \\/]([\\w.]+)/.exec(ua) || /(webkit)[ \\/]([\\w.]+)/.exec(ua) || /(opera)(?:.*version|)[ \\/]([\\w.]+)/.exec(ua) || /(msie) ([\\w.]+)/.exec(ua) || ua.indexOf('compatible') < 0 && /(mozilla)(?:.*? rv:([\\w.]+)|)/.exec(ua) || [];\n      return {\n        browser: match[1] || '',\n        version: match[2] || '0'\n      };\n    }\n    static isInteger(value) {\n      if (Number.isInteger) {\n        return Number.isInteger(value);\n      } else {\n        return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;\n      }\n    }\n    static isHidden(element) {\n      return !element || element.offsetParent === null;\n    }\n    static isVisible(element) {\n      return element && element.offsetParent != null;\n    }\n    static isExist(element) {\n      return element !== null && typeof element !== 'undefined' && element.nodeName && element.parentNode;\n    }\n    static focus(element, options) {\n      element && document.activeElement !== element && element.focus(options);\n    }\n    static getFocusableSelectorString(selector = '') {\n      return `button:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n        [href][clientHeight][clientWidth]:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n        input:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n        select:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n        textarea:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n        [tabIndex]:not([tabIndex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n        [contenteditable]:not([tabIndex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n        .p-inputtext:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n        .p-button:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector}`;\n    }\n    static getFocusableElements(element, selector = '') {\n      let focusableElements = this.find(element, this.getFocusableSelectorString(selector));\n      let visibleFocusableElements = [];\n      for (let focusableElement of focusableElements) {\n        const computedStyle = getComputedStyle(focusableElement);\n        if (this.isVisible(focusableElement) && computedStyle.display != 'none' && computedStyle.visibility != 'hidden') visibleFocusableElements.push(focusableElement);\n      }\n      return visibleFocusableElements;\n    }\n    static getFocusableElement(element, selector = '') {\n      let focusableElement = this.findSingle(element, this.getFocusableSelectorString(selector));\n      if (focusableElement) {\n        const computedStyle = getComputedStyle(focusableElement);\n        if (this.isVisible(focusableElement) && computedStyle.display != 'none' && computedStyle.visibility != 'hidden') return focusableElement;\n      }\n      return null;\n    }\n    static getFirstFocusableElement(element, selector = '') {\n      const focusableElements = this.getFocusableElements(element, selector);\n      return focusableElements.length > 0 ? focusableElements[0] : null;\n    }\n    static getLastFocusableElement(element, selector) {\n      const focusableElements = this.getFocusableElements(element, selector);\n      return focusableElements.length > 0 ? focusableElements[focusableElements.length - 1] : null;\n    }\n    static getNextFocusableElement(element, reverse = false) {\n      const focusableElements = DomHandler.getFocusableElements(element);\n      let index = 0;\n      if (focusableElements && focusableElements.length > 0) {\n        const focusedIndex = focusableElements.indexOf(focusableElements[0].ownerDocument.activeElement);\n        if (reverse) {\n          if (focusedIndex == -1 || focusedIndex === 0) {\n            index = focusableElements.length - 1;\n          } else {\n            index = focusedIndex - 1;\n          }\n        } else if (focusedIndex != -1 && focusedIndex !== focusableElements.length - 1) {\n          index = focusedIndex + 1;\n        }\n      }\n      return focusableElements[index];\n    }\n    static generateZIndex() {\n      this.zindex = this.zindex || 999;\n      return ++this.zindex;\n    }\n    static getSelection() {\n      if (window.getSelection) return window.getSelection().toString();else if (document.getSelection) return document.getSelection().toString();else if (document['selection']) return document['selection'].createRange().text;\n      return null;\n    }\n    static getTargetElement(target, el) {\n      if (!target) return null;\n      switch (target) {\n        case 'document':\n          return document;\n        case 'window':\n          return window;\n        case '@next':\n          return el?.nextElementSibling;\n        case '@prev':\n          return el?.previousElementSibling;\n        case '@parent':\n          return el?.parentElement;\n        case '@grandparent':\n          return el?.parentElement.parentElement;\n        default:\n          const type = typeof target;\n          if (type === 'string') {\n            return document.querySelector(target);\n          } else if (type === 'object' && target.hasOwnProperty('nativeElement')) {\n            return this.isExist(target.nativeElement) ? target.nativeElement : undefined;\n          }\n          const isFunction = obj => !!(obj && obj.constructor && obj.call && obj.apply);\n          const element = isFunction(target) ? target() : target;\n          return element && element.nodeType === 9 || this.isExist(element) ? element : null;\n      }\n    }\n    static isClient() {\n      return !!(typeof window !== 'undefined' && window.document && window.document.createElement);\n    }\n    static getAttribute(element, name) {\n      if (element) {\n        const value = element.getAttribute(name);\n        if (!isNaN(value)) {\n          return +value;\n        }\n        if (value === 'true' || value === 'false') {\n          return value === 'true';\n        }\n        return value;\n      }\n      return undefined;\n    }\n    static calculateBodyScrollbarWidth() {\n      return window.innerWidth - document.documentElement.offsetWidth;\n    }\n    static blockBodyScroll(className = 'p-overflow-hidden') {\n      document.body.style.setProperty('--scrollbar-width', this.calculateBodyScrollbarWidth() + 'px');\n      this.addClass(document.body, className);\n    }\n    static unblockBodyScroll(className = 'p-overflow-hidden') {\n      document.body.style.removeProperty('--scrollbar-width');\n      this.removeClass(document.body, className);\n    }\n    static createElement(type, attributes = {}, ...children) {\n      if (type) {\n        const element = document.createElement(type);\n        this.setAttributes(element, attributes);\n        element.append(...children);\n        return element;\n      }\n      return undefined;\n    }\n    static setAttribute(element, attribute = '', value) {\n      if (this.isElement(element) && value !== null && value !== undefined) {\n        element.setAttribute(attribute, value);\n      }\n    }\n    static setAttributes(element, attributes = {}) {\n      if (this.isElement(element)) {\n        const computedStyles = (rule, value) => {\n          const styles = element?.$attrs?.[rule] ? [element?.$attrs?.[rule]] : [];\n          return [value].flat().reduce((cv, v) => {\n            if (v !== null && v !== undefined) {\n              const type = typeof v;\n              if (type === 'string' || type === 'number') {\n                cv.push(v);\n              } else if (type === 'object') {\n                const _cv = Array.isArray(v) ? computedStyles(rule, v) : Object.entries(v).map(([_k, _v]) => rule === 'style' && (!!_v || _v === 0) ? `${_k.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase()}:${_v}` : !!_v ? _k : undefined);\n                cv = _cv.length ? cv.concat(_cv.filter(c => !!c)) : cv;\n              }\n            }\n            return cv;\n          }, styles);\n        };\n        Object.entries(attributes).forEach(([key, value]) => {\n          if (value !== undefined && value !== null) {\n            const matchedEvent = key.match(/^on(.+)/);\n            if (matchedEvent) {\n              element.addEventListener(matchedEvent[1].toLowerCase(), value);\n            } else if (key === 'pBind') {\n              this.setAttributes(element, value);\n            } else {\n              value = key === 'class' ? [...new Set(computedStyles('class', value))].join(' ').trim() : key === 'style' ? computedStyles('style', value).join(';').trim() : value;\n              (element.$attrs = element.$attrs || {}) && (element.$attrs[key] = value);\n              element.setAttribute(key, value);\n            }\n          }\n        });\n      }\n    }\n    static isFocusableElement(element, selector = '') {\n      return this.isElement(element) ? element.matches(`button:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n                [href][clientHeight][clientWidth]:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n                input:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n                select:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n                textarea:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n                [tabIndex]:not([tabIndex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n                [contenteditable]:not([tabIndex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector}`) : false;\n    }\n  }\n  return DomHandler;\n})();\nclass ConnectedOverlayScrollHandler {\n  element;\n  listener;\n  scrollableParents;\n  constructor(element, listener = () => {}) {\n    this.element = element;\n    this.listener = listener;\n  }\n  bindScrollListener() {\n    this.scrollableParents = DomHandler.getScrollableParents(this.element);\n    for (let i = 0; i < this.scrollableParents.length; i++) {\n      this.scrollableParents[i].addEventListener('scroll', this.listener);\n    }\n  }\n  unbindScrollListener() {\n    if (this.scrollableParents) {\n      for (let i = 0; i < this.scrollableParents.length; i++) {\n        this.scrollableParents[i].removeEventListener('scroll', this.listener);\n      }\n    }\n  }\n  destroy() {\n    this.unbindScrollListener();\n    this.element = null;\n    this.listener = null;\n    this.scrollableParents = null;\n  }\n}\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ConnectedOverlayScrollHandler, DomHandler };\n","import { isPlatformBrowser, DOCUMENT } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { PLATFORM_ID, Directive, Inject, Optional, NgModule } from '@angular/core';\nimport { DomHandler } from 'primeng/dom';\nimport * as i1 from 'primeng/api';\n\n/**\n * Ripple directive adds ripple effect to the host element.\n * @group Components\n */\nlet Ripple = /*#__PURE__*/(() => {\n  class Ripple {\n    document;\n    platformId;\n    renderer;\n    el;\n    zone;\n    config;\n    constructor(document, platformId, renderer, el, zone, config) {\n      this.document = document;\n      this.platformId = platformId;\n      this.renderer = renderer;\n      this.el = el;\n      this.zone = zone;\n      this.config = config;\n    }\n    animationListener;\n    mouseDownListener;\n    timeout;\n    ngAfterViewInit() {\n      if (isPlatformBrowser(this.platformId)) {\n        if (this.config && this.config.ripple) {\n          this.zone.runOutsideAngular(() => {\n            this.create();\n            this.mouseDownListener = this.renderer.listen(this.el.nativeElement, 'mousedown', this.onMouseDown.bind(this));\n          });\n        }\n      }\n    }\n    onMouseDown(event) {\n      let ink = this.getInk();\n      if (!ink || this.document.defaultView?.getComputedStyle(ink, null).display === 'none') {\n        return;\n      }\n      DomHandler.removeClass(ink, 'p-ink-active');\n      if (!DomHandler.getHeight(ink) && !DomHandler.getWidth(ink)) {\n        let d = Math.max(DomHandler.getOuterWidth(this.el.nativeElement), DomHandler.getOuterHeight(this.el.nativeElement));\n        ink.style.height = d + 'px';\n        ink.style.width = d + 'px';\n      }\n      let offset = DomHandler.getOffset(this.el.nativeElement);\n      let x = event.pageX - offset.left + this.document.body.scrollTop - DomHandler.getWidth(ink) / 2;\n      let y = event.pageY - offset.top + this.document.body.scrollLeft - DomHandler.getHeight(ink) / 2;\n      this.renderer.setStyle(ink, 'top', y + 'px');\n      this.renderer.setStyle(ink, 'left', x + 'px');\n      DomHandler.addClass(ink, 'p-ink-active');\n      this.timeout = setTimeout(() => {\n        let ink = this.getInk();\n        if (ink) {\n          DomHandler.removeClass(ink, 'p-ink-active');\n        }\n      }, 401);\n    }\n    getInk() {\n      const children = this.el.nativeElement.children;\n      for (let i = 0; i < children.length; i++) {\n        if (typeof children[i].className === 'string' && children[i].className.indexOf('p-ink') !== -1) {\n          return children[i];\n        }\n      }\n      return null;\n    }\n    resetInk() {\n      let ink = this.getInk();\n      if (ink) {\n        DomHandler.removeClass(ink, 'p-ink-active');\n      }\n    }\n    onAnimationEnd(event) {\n      if (this.timeout) {\n        clearTimeout(this.timeout);\n      }\n      DomHandler.removeClass(event.currentTarget, 'p-ink-active');\n    }\n    create() {\n      let ink = this.renderer.createElement('span');\n      this.renderer.addClass(ink, 'p-ink');\n      this.renderer.appendChild(this.el.nativeElement, ink);\n      this.renderer.setAttribute(ink, 'aria-hidden', 'true');\n      this.renderer.setAttribute(ink, 'role', 'presentation');\n      if (!this.animationListener) {\n        this.animationListener = this.renderer.listen(ink, 'animationend', this.onAnimationEnd.bind(this));\n      }\n    }\n    remove() {\n      let ink = this.getInk();\n      if (ink) {\n        this.mouseDownListener && this.mouseDownListener();\n        this.animationListener && this.animationListener();\n        this.mouseDownListener = null;\n        this.animationListener = null;\n        DomHandler.removeElement(ink);\n      }\n    }\n    ngOnDestroy() {\n      if (this.config && this.config.ripple) {\n        this.remove();\n      }\n    }\n    static ɵfac = function Ripple_Factory(t) {\n      return new (t || Ripple)(i0.ɵɵdirectiveInject(DOCUMENT), i0.ɵɵdirectiveInject(PLATFORM_ID), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i1.PrimeNGConfig, 8));\n    };\n    static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n      type: Ripple,\n      selectors: [[\"\", \"pRipple\", \"\"]],\n      hostAttrs: [1, \"p-ripple\", \"p-element\"],\n      standalone: true\n    });\n  }\n  return Ripple;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet RippleModule = /*#__PURE__*/(() => {\n  class RippleModule {\n    static ɵfac = function RippleModule_Factory(t) {\n      return new (t || RippleModule)();\n    };\n    static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n      type: RippleModule\n    });\n    static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({});\n  }\n  return RippleModule;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { Ripple, RippleModule };\n","import * as i2 from '@angular/common';\nimport { isPlatformBrowser, DOCUMENT, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { EventEmitter, PLATFORM_ID, booleanAttribute, numberAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Inject, Input, Output, ViewChild, ContentChild, ContentChildren, NgModule } from '@angular/core';\nimport * as i1 from 'primeng/api';\nimport { Header, Footer, PrimeTemplate, SharedModule } from 'primeng/api';\nimport { ChevronDownIcon } from 'primeng/icons/chevrondown';\nimport { ChevronLeftIcon } from 'primeng/icons/chevronleft';\nimport { ChevronRightIcon } from 'primeng/icons/chevronright';\nimport { ChevronUpIcon } from 'primeng/icons/chevronup';\nimport * as i3 from 'primeng/ripple';\nimport { RippleModule } from 'primeng/ripple';\nimport { UniqueComponentId } from 'primeng/utils';\nimport { DomHandler } from 'primeng/dom';\n\n/**\n * Carousel is a content slider featuring various customization options.\n * @group Components\n */\nconst _c0 = [\"itemsContainer\"];\nconst _c1 = [\"indicatorContent\"];\nconst _c2 = [[[\"p-header\"]], [[\"p-footer\"]]];\nconst _c3 = [\"p-header\", \"p-footer\"];\nconst _c4 = (a0, a1) => ({\n  \"p-carousel p-component\": true,\n  \"p-carousel-vertical\": a0,\n  \"p-carousel-horizontal\": a1\n});\nconst _c5 = a0 => ({\n  height: a0\n});\nconst _c6 = a0 => ({\n  \"p-carousel-prev p-link\": true,\n  \"p-disabled\": a0\n});\nconst _c7 = (a0, a1, a2) => ({\n  \"p-carousel-item p-carousel-item-cloned\": true,\n  \"p-carousel-item-active\": a0,\n  \"p-carousel-item-start\": a1,\n  \"p-carousel-item-end\": a2\n});\nconst _c8 = a0 => ({\n  $implicit: a0\n});\nconst _c9 = (a0, a1, a2) => ({\n  \"p-carousel-item\": true,\n  \"p-carousel-item-active\": a0,\n  \"p-carousel-item-start\": a1,\n  \"p-carousel-item-end\": a2\n});\nconst _c10 = a0 => ({\n  \"p-carousel-next p-link\": true,\n  \"p-disabled\": a0\n});\nconst _c11 = a0 => ({\n  \"p-carousel-indicator\": true,\n  \"p-highlight\": a0\n});\nfunction Carousel_div_1_ng_container_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainer(0);\n  }\n}\nfunction Carousel_div_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\", 12);\n    i0.ɵɵprojection(1);\n    i0.ɵɵtemplate(2, Carousel_div_1_ng_container_2_Template, 1, 0, \"ng-container\", 13);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const ctx_r1 = i0.ɵɵnextContext();\n    i0.ɵɵadvance(2);\n    i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.headerTemplate);\n  }\n}\nfunction Carousel_button_4_ng_container_1_ChevronLeftIcon_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"ChevronLeftIcon\", 18);\n  }\n  if (rf & 2) {\n    i0.ɵɵproperty(\"styleClass\", \"carousel-prev-icon\");\n  }\n}\nfunction Carousel_button_4_ng_container_1_ChevronUpIcon_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"ChevronUpIcon\", 18);\n  }\n  if (rf & 2) {\n    i0.ɵɵproperty(\"styleClass\", \"carousel-prev-icon\");\n  }\n}\nfunction Carousel_button_4_ng_container_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainerStart(0);\n    i0.ɵɵtemplate(1, Carousel_button_4_ng_container_1_ChevronLeftIcon_1_Template, 1, 1, \"ChevronLeftIcon\", 17)(2, Carousel_button_4_ng_container_1_ChevronUpIcon_2_Template, 1, 1, \"ChevronUpIcon\", 17);\n    i0.ɵɵelementContainerEnd();\n  }\n  if (rf & 2) {\n    const ctx_r1 = i0.ɵɵnextContext(2);\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngIf\", !ctx_r1.isVertical());\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngIf\", ctx_r1.isVertical());\n  }\n}\nfunction Carousel_button_4_span_2_1_ng_template_0_Template(rf, ctx) {}\nfunction Carousel_button_4_span_2_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵtemplate(0, Carousel_button_4_span_2_1_ng_template_0_Template, 0, 0, \"ng-template\");\n  }\n}\nfunction Carousel_button_4_span_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"span\", 19);\n    i0.ɵɵtemplate(1, Carousel_button_4_span_2_1_Template, 1, 0, null, 13);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const ctx_r1 = i0.ɵɵnextContext(2);\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.previousIconTemplate);\n  }\n}\nfunction Carousel_button_4_Template(rf, ctx) {\n  if (rf & 1) {\n    const _r3 = i0.ɵɵgetCurrentView();\n    i0.ɵɵelementStart(0, \"button\", 14);\n    i0.ɵɵlistener(\"click\", function Carousel_button_4_Template_button_click_0_listener($event) {\n      i0.ɵɵrestoreView(_r3);\n      const ctx_r1 = i0.ɵɵnextContext();\n      return i0.ɵɵresetView(ctx_r1.navBackward($event));\n    });\n    i0.ɵɵtemplate(1, Carousel_button_4_ng_container_1_Template, 3, 2, \"ng-container\", 15)(2, Carousel_button_4_span_2_Template, 2, 1, \"span\", 16);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const ctx_r1 = i0.ɵɵnextContext();\n    i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction1(5, _c6, ctx_r1.isBackwardNavDisabled()))(\"disabled\", ctx_r1.isBackwardNavDisabled());\n    i0.ɵɵattribute(\"aria-label\", ctx_r1.ariaPrevButtonLabel());\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngIf\", !ctx_r1.previousIconTemplate);\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngIf\", ctx_r1.previousIconTemplate);\n  }\n}\nfunction Carousel_div_8_ng_container_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainer(0);\n  }\n}\nfunction Carousel_div_8_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\", 4);\n    i0.ɵɵtemplate(1, Carousel_div_8_ng_container_1_Template, 1, 0, \"ng-container\", 20);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const item_r4 = ctx.$implicit;\n    const index_r5 = ctx.index;\n    const ctx_r1 = i0.ɵɵnextContext();\n    i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction3(6, _c7, ctx_r1.totalShiftedItems * -1 === ctx_r1.value.length, 0 === index_r5, ctx_r1.clonedItemsForStarting.length - 1 === index_r5));\n    i0.ɵɵattribute(\"aria-hidden\", !(ctx_r1.totalShiftedItems * -1 === ctx_r1.value.length))(\"aria-label\", ctx_r1.ariaSlideNumber(index_r5))(\"aria-roledescription\", ctx_r1.ariaSlideLabel());\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.itemTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(10, _c8, item_r4));\n  }\n}\nfunction Carousel_div_9_ng_container_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainer(0);\n  }\n}\nfunction Carousel_div_9_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\", 4);\n    i0.ɵɵtemplate(1, Carousel_div_9_ng_container_1_Template, 1, 0, \"ng-container\", 20);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const item_r6 = ctx.$implicit;\n    const index_r7 = ctx.index;\n    const ctx_r1 = i0.ɵɵnextContext();\n    i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction3(6, _c9, ctx_r1.firstIndex() <= index_r7 && ctx_r1.lastIndex() >= index_r7, ctx_r1.firstIndex() === index_r7, ctx_r1.lastIndex() === index_r7));\n    i0.ɵɵattribute(\"aria-hidden\", !(ctx_r1.totalShiftedItems * -1 === ctx_r1.value.length))(\"aria-label\", ctx_r1.ariaSlideNumber(index_r7))(\"aria-roledescription\", ctx_r1.ariaSlideLabel());\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.itemTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(10, _c8, item_r6));\n  }\n}\nfunction Carousel_div_10_ng_container_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainer(0);\n  }\n}\nfunction Carousel_div_10_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\", 4);\n    i0.ɵɵtemplate(1, Carousel_div_10_ng_container_1_Template, 1, 0, \"ng-container\", 20);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const item_r8 = ctx.$implicit;\n    const index_r9 = ctx.index;\n    const ctx_r1 = i0.ɵɵnextContext();\n    i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction3(3, _c7, ctx_r1.totalShiftedItems * -1 === ctx_r1.numVisible, 0 === index_r9, ctx_r1.clonedItemsForFinishing.length - 1 === index_r9));\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.itemTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(7, _c8, item_r8));\n  }\n}\nfunction Carousel_button_11_ng_container_1_ChevronRightIcon_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"ChevronRightIcon\", 18);\n  }\n  if (rf & 2) {\n    i0.ɵɵproperty(\"styleClass\", \"carousel-prev-icon\");\n  }\n}\nfunction Carousel_button_11_ng_container_1_ChevronDownIcon_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"ChevronDownIcon\", 18);\n  }\n  if (rf & 2) {\n    i0.ɵɵproperty(\"styleClass\", \"carousel-prev-icon\");\n  }\n}\nfunction Carousel_button_11_ng_container_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainerStart(0);\n    i0.ɵɵtemplate(1, Carousel_button_11_ng_container_1_ChevronRightIcon_1_Template, 1, 1, \"ChevronRightIcon\", 17)(2, Carousel_button_11_ng_container_1_ChevronDownIcon_2_Template, 1, 1, \"ChevronDownIcon\", 17);\n    i0.ɵɵelementContainerEnd();\n  }\n  if (rf & 2) {\n    const ctx_r1 = i0.ɵɵnextContext(2);\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngIf\", !ctx_r1.isVertical());\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngIf\", ctx_r1.isVertical());\n  }\n}\nfunction Carousel_button_11_span_2_1_ng_template_0_Template(rf, ctx) {}\nfunction Carousel_button_11_span_2_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵtemplate(0, Carousel_button_11_span_2_1_ng_template_0_Template, 0, 0, \"ng-template\");\n  }\n}\nfunction Carousel_button_11_span_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"span\", 19);\n    i0.ɵɵtemplate(1, Carousel_button_11_span_2_1_Template, 1, 0, null, 13);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const ctx_r1 = i0.ɵɵnextContext(2);\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.nextIconTemplate);\n  }\n}\nfunction Carousel_button_11_Template(rf, ctx) {\n  if (rf & 1) {\n    const _r10 = i0.ɵɵgetCurrentView();\n    i0.ɵɵelementStart(0, \"button\", 14);\n    i0.ɵɵlistener(\"click\", function Carousel_button_11_Template_button_click_0_listener($event) {\n      i0.ɵɵrestoreView(_r10);\n      const ctx_r1 = i0.ɵɵnextContext();\n      return i0.ɵɵresetView(ctx_r1.navForward($event));\n    });\n    i0.ɵɵtemplate(1, Carousel_button_11_ng_container_1_Template, 3, 2, \"ng-container\", 15)(2, Carousel_button_11_span_2_Template, 2, 1, \"span\", 16);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const ctx_r1 = i0.ɵɵnextContext();\n    i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction1(5, _c10, ctx_r1.isForwardNavDisabled()))(\"disabled\", ctx_r1.isForwardNavDisabled());\n    i0.ɵɵattribute(\"aria-label\", ctx_r1.ariaNextButtonLabel());\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngIf\", !ctx_r1.nextIconTemplate);\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngIf\", ctx_r1.nextIconTemplate);\n  }\n}\nfunction Carousel_ul_12_li_2_Template(rf, ctx) {\n  if (rf & 1) {\n    const _r12 = i0.ɵɵgetCurrentView();\n    i0.ɵɵelementStart(0, \"li\", 4)(1, \"button\", 22);\n    i0.ɵɵlistener(\"click\", function Carousel_ul_12_li_2_Template_button_click_1_listener($event) {\n      const i_r13 = i0.ɵɵrestoreView(_r12).index;\n      const ctx_r1 = i0.ɵɵnextContext(2);\n      return i0.ɵɵresetView(ctx_r1.onDotClick($event, i_r13));\n    });\n    i0.ɵɵelementEnd()();\n  }\n  if (rf & 2) {\n    const i_r13 = ctx.index;\n    const ctx_r1 = i0.ɵɵnextContext(2);\n    i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction1(9, _c11, ctx_r1._page === i_r13));\n    i0.ɵɵattribute(\"data-pc-section\", \"indicator\");\n    i0.ɵɵadvance();\n    i0.ɵɵclassMap(ctx_r1.indicatorStyleClass);\n    i0.ɵɵproperty(\"ngClass\", \"p-link\")(\"ngStyle\", ctx_r1.indicatorStyle)(\"tabindex\", ctx_r1._page === i_r13 ? 0 : -1);\n    i0.ɵɵattribute(\"aria-label\", ctx_r1.ariaPageLabel(i_r13 + 1))(\"aria-current\", ctx_r1._page === i_r13 ? \"page\" : undefined);\n  }\n}\nfunction Carousel_ul_12_Template(rf, ctx) {\n  if (rf & 1) {\n    const _r11 = i0.ɵɵgetCurrentView();\n    i0.ɵɵelementStart(0, \"ul\", 21, 1);\n    i0.ɵɵlistener(\"keydown\", function Carousel_ul_12_Template_ul_keydown_0_listener($event) {\n      i0.ɵɵrestoreView(_r11);\n      const ctx_r1 = i0.ɵɵnextContext();\n      return i0.ɵɵresetView(ctx_r1.onIndicatorKeydown($event));\n    });\n    i0.ɵɵtemplate(2, Carousel_ul_12_li_2_Template, 2, 11, \"li\", 9);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const ctx_r1 = i0.ɵɵnextContext();\n    i0.ɵɵclassMap(ctx_r1.indicatorsContentClass);\n    i0.ɵɵproperty(\"ngClass\", \"p-carousel-indicators p-reset\")(\"ngStyle\", ctx_r1.indicatorsContentStyle);\n    i0.ɵɵadvance(2);\n    i0.ɵɵproperty(\"ngForOf\", ctx_r1.totalDotsArray());\n  }\n}\nfunction Carousel_div_13_ng_container_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainer(0);\n  }\n}\nfunction Carousel_div_13_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\", 23);\n    i0.ɵɵprojection(1, 1);\n    i0.ɵɵtemplate(2, Carousel_div_13_ng_container_2_Template, 1, 0, \"ng-container\", 13);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const ctx_r1 = i0.ɵɵnextContext();\n    i0.ɵɵadvance(2);\n    i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.footerTemplate);\n  }\n}\nlet Carousel = /*#__PURE__*/(() => {\n  class Carousel {\n    el;\n    zone;\n    cd;\n    renderer;\n    document;\n    platformId;\n    config;\n    /**\n     * Index of the first item.\n     * @defaultValue 0\n     * @group Props\n     */\n    get page() {\n      return this._page;\n    }\n    set page(val) {\n      if (this.isCreated && val !== this._page) {\n        if (this.autoplayInterval) {\n          this.stopAutoplay();\n        }\n        if (val > this._page && val <= this.totalDots() - 1) {\n          this.step(-1, val);\n        } else if (val < this._page) {\n          this.step(1, val);\n        }\n      }\n      this._page = val;\n    }\n    /**\n     * Number of items per page.\n     * @defaultValue 1\n     * @group Props\n     */\n    get numVisible() {\n      return this._numVisible;\n    }\n    set numVisible(val) {\n      this._numVisible = val;\n    }\n    /**\n     * Number of items to scroll.\n     * @defaultValue 1\n     * @group Props\n     */\n    get numScroll() {\n      return this._numVisible;\n    }\n    set numScroll(val) {\n      this._numScroll = val;\n    }\n    /**\n     * An array of options for responsive design.\n     * @see {CarouselResponsiveOptions}\n     * @group Props\n     */\n    responsiveOptions;\n    /**\n     * Specifies the layout of the component.\n     * @group Props\n     */\n    orientation = 'horizontal';\n    /**\n     * Height of the viewport in vertical layout.\n     * @group Props\n     */\n    verticalViewPortHeight = '300px';\n    /**\n     * Style class of main content.\n     * @group Props\n     */\n    contentClass = '';\n    /**\n     * Style class of the indicator items.\n     * @group Props\n     */\n    indicatorsContentClass = '';\n    /**\n     * Inline style of the indicator items.\n     * @group Props\n     */\n    indicatorsContentStyle;\n    /**\n     * Style class of the indicators.\n     * @group Props\n     */\n    indicatorStyleClass = '';\n    /**\n     * Style of the indicators.\n     * @group Props\n     */\n    indicatorStyle;\n    /**\n     * An array of objects to display.\n     * @defaultValue null\n     * @group Props\n     */\n    get value() {\n      return this._value;\n    }\n    set value(val) {\n      this._value = val;\n    }\n    /**\n     * Defines if scrolling would be infinite.\n     * @group Props\n     */\n    circular = false;\n    /**\n     * Whether to display indicator container.\n     * @group Props\n     */\n    showIndicators = true;\n    /**\n     * Whether to display navigation buttons in container.\n     * @group Props\n     */\n    showNavigators = true;\n    /**\n     * Time in milliseconds to scroll items automatically.\n     * @group Props\n     */\n    autoplayInterval = 0;\n    /**\n     * Inline style of the component.\n     * @group Props\n     */\n    style;\n    /**\n     * Style class of the viewport container.\n     * @group Props\n     */\n    styleClass;\n    /**\n     * Callback to invoke after scroll.\n     * @param {CarouselPageEvent} event - Custom page event.\n     * @group Emits\n     */\n    onPage = new EventEmitter();\n    itemsContainer;\n    indicatorContent;\n    headerFacet;\n    footerFacet;\n    templates;\n    _numVisible = 1;\n    _numScroll = 1;\n    _oldNumScroll = 0;\n    prevState = {\n      numScroll: 0,\n      numVisible: 0,\n      value: []\n    };\n    defaultNumScroll = 1;\n    defaultNumVisible = 1;\n    _page = 0;\n    _value;\n    carouselStyle;\n    id;\n    totalShiftedItems;\n    isRemainingItemsAdded = false;\n    animationTimeout;\n    translateTimeout;\n    remainingItems = 0;\n    _items;\n    startPos;\n    documentResizeListener;\n    clonedItemsForStarting;\n    clonedItemsForFinishing;\n    allowAutoplay;\n    interval;\n    isCreated;\n    swipeThreshold = 20;\n    itemTemplate;\n    headerTemplate;\n    footerTemplate;\n    previousIconTemplate;\n    nextIconTemplate;\n    window;\n    constructor(el, zone, cd, renderer, document, platformId, config) {\n      this.el = el;\n      this.zone = zone;\n      this.cd = cd;\n      this.renderer = renderer;\n      this.document = document;\n      this.platformId = platformId;\n      this.config = config;\n      this.totalShiftedItems = this.page * this.numScroll * -1;\n      this.window = this.document.defaultView;\n    }\n    ngOnChanges(simpleChange) {\n      if (isPlatformBrowser(this.platformId)) {\n        if (simpleChange.value) {\n          if (this.circular && this._value) {\n            this.setCloneItems();\n          }\n        }\n        if (this.isCreated) {\n          if (simpleChange.numVisible) {\n            if (this.responsiveOptions) {\n              this.defaultNumVisible = this.numVisible;\n            }\n            if (this.isCircular()) {\n              this.setCloneItems();\n            }\n            this.createStyle();\n            this.calculatePosition();\n          }\n          if (simpleChange.numScroll) {\n            if (this.responsiveOptions) {\n              this.defaultNumScroll = this.numScroll;\n            }\n          }\n        }\n      }\n      this.cd.markForCheck();\n    }\n    ngAfterContentInit() {\n      this.id = UniqueComponentId();\n      if (isPlatformBrowser(this.platformId)) {\n        this.allowAutoplay = !!this.autoplayInterval;\n        if (this.circular) {\n          this.setCloneItems();\n        }\n        if (this.responsiveOptions) {\n          this.defaultNumScroll = this._numScroll;\n          this.defaultNumVisible = this._numVisible;\n        }\n        this.createStyle();\n        this.calculatePosition();\n        if (this.responsiveOptions) {\n          this.bindDocumentListeners();\n        }\n      }\n      this.templates?.forEach(item => {\n        switch (item.getType()) {\n          case 'item':\n            this.itemTemplate = item.template;\n            break;\n          case 'header':\n            this.headerTemplate = item.template;\n            break;\n          case 'footer':\n            this.footerTemplate = item.template;\n            break;\n          case 'previousicon':\n            this.previousIconTemplate = item.template;\n            break;\n          case 'nexticon':\n            this.nextIconTemplate = item.template;\n            break;\n          default:\n            this.itemTemplate = item.template;\n            break;\n        }\n      });\n      this.cd.detectChanges();\n    }\n    ngAfterContentChecked() {\n      if (isPlatformBrowser(this.platformId)) {\n        const isCircular = this.isCircular();\n        let totalShiftedItems = this.totalShiftedItems;\n        if (this.value && this.itemsContainer && (this.prevState.numScroll !== this._numScroll || this.prevState.numVisible !== this._numVisible || this.prevState.value.length !== this.value.length)) {\n          if (this.autoplayInterval) {\n            this.stopAutoplay(false);\n          }\n          this.remainingItems = (this.value.length - this._numVisible) % this._numScroll;\n          let page = this._page;\n          if (this.totalDots() !== 0 && page >= this.totalDots()) {\n            page = this.totalDots() - 1;\n            this._page = page;\n            this.onPage.emit({\n              page: this.page\n            });\n          }\n          totalShiftedItems = page * this._numScroll * -1;\n          if (isCircular) {\n            totalShiftedItems -= this._numVisible;\n          }\n          if (page === this.totalDots() - 1 && this.remainingItems > 0) {\n            totalShiftedItems += -1 * this.remainingItems + this._numScroll;\n            this.isRemainingItemsAdded = true;\n          } else {\n            this.isRemainingItemsAdded = false;\n          }\n          if (totalShiftedItems !== this.totalShiftedItems) {\n            this.totalShiftedItems = totalShiftedItems;\n          }\n          this._oldNumScroll = this._numScroll;\n          this.prevState.numScroll = this._numScroll;\n          this.prevState.numVisible = this._numVisible;\n          this.prevState.value = [...this._value];\n          if (this.totalDots() > 0 && this.itemsContainer.nativeElement) {\n            this.itemsContainer.nativeElement.style.transform = this.isVertical() ? `translate3d(0, ${totalShiftedItems * (100 / this._numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100 / this._numVisible)}%, 0, 0)`;\n          }\n          this.isCreated = true;\n          if (this.autoplayInterval && this.isAutoplay()) {\n            this.startAutoplay();\n          }\n        }\n        if (isCircular) {\n          if (this.page === 0) {\n            totalShiftedItems = -1 * this._numVisible;\n          } else if (totalShiftedItems === 0) {\n            totalShiftedItems = -1 * this.value.length;\n            if (this.remainingItems > 0) {\n              this.isRemainingItemsAdded = true;\n            }\n          }\n          if (totalShiftedItems !== this.totalShiftedItems) {\n            this.totalShiftedItems = totalShiftedItems;\n          }\n        }\n      }\n    }\n    createStyle() {\n      if (!this.carouselStyle) {\n        this.carouselStyle = this.renderer.createElement('style');\n        this.carouselStyle.type = 'text/css';\n        DomHandler.setAttribute(this.carouselStyle, 'nonce', this.config?.csp()?.nonce);\n        this.renderer.appendChild(this.document.head, this.carouselStyle);\n      }\n      let innerHTML = `\n            #${this.id} .p-carousel-item {\n\t\t\t\tflex: 1 0 ${100 / this.numVisible}%\n\t\t\t}\n        `;\n      if (this.responsiveOptions) {\n        this.responsiveOptions.sort((data1, data2) => {\n          const value1 = data1.breakpoint;\n          const value2 = data2.breakpoint;\n          let result = null;\n          if (value1 == null && value2 != null) result = -1;else if (value1 != null && value2 == null) result = 1;else if (value1 == null && value2 == null) result = 0;else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2, undefined, {\n            numeric: true\n          });else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;\n          return -1 * result;\n        });\n        for (let i = 0; i < this.responsiveOptions.length; i++) {\n          let res = this.responsiveOptions[i];\n          innerHTML += `\n                    @media screen and (max-width: ${res.breakpoint}) {\n                        #${this.id} .p-carousel-item {\n                            flex: 1 0 ${100 / res.numVisible}%\n                        }\n                    }\n                `;\n        }\n      }\n      this.carouselStyle.innerHTML = innerHTML;\n    }\n    calculatePosition() {\n      if (this.responsiveOptions) {\n        let matchedResponsiveData = {\n          numVisible: this.defaultNumVisible,\n          numScroll: this.defaultNumScroll\n        };\n        if (typeof window !== 'undefined') {\n          let windowWidth = window.innerWidth;\n          for (let i = 0; i < this.responsiveOptions.length; i++) {\n            let res = this.responsiveOptions[i];\n            if (parseInt(res.breakpoint, 10) >= windowWidth) {\n              matchedResponsiveData = res;\n            }\n          }\n        }\n        if (this._numScroll !== matchedResponsiveData.numScroll) {\n          let page = this._page;\n          page = Math.floor(page * this._numScroll / matchedResponsiveData.numScroll);\n          let totalShiftedItems = matchedResponsiveData.numScroll * this.page * -1;\n          if (this.isCircular()) {\n            totalShiftedItems -= matchedResponsiveData.numVisible;\n          }\n          this.totalShiftedItems = totalShiftedItems;\n          this._numScroll = matchedResponsiveData.numScroll;\n          this._page = page;\n          this.onPage.emit({\n            page: this.page\n          });\n        }\n        if (this._numVisible !== matchedResponsiveData.numVisible) {\n          this._numVisible = matchedResponsiveData.numVisible;\n          this.setCloneItems();\n        }\n        this.cd.markForCheck();\n      }\n    }\n    setCloneItems() {\n      this.clonedItemsForStarting = [];\n      this.clonedItemsForFinishing = [];\n      if (this.isCircular()) {\n        this.clonedItemsForStarting.push(...this.value.slice(-1 * this._numVisible));\n        this.clonedItemsForFinishing.push(...this.value.slice(0, this._numVisible));\n      }\n    }\n    firstIndex() {\n      return this.isCircular() ? -1 * (this.totalShiftedItems + this.numVisible) : this.totalShiftedItems * -1;\n    }\n    lastIndex() {\n      return this.firstIndex() + this.numVisible - 1;\n    }\n    totalDots() {\n      return this.value?.length ? Math.ceil((this.value.length - this._numVisible) / this._numScroll) + 1 : 0;\n    }\n    totalDotsArray() {\n      const totalDots = this.totalDots();\n      return totalDots <= 0 ? [] : Array(totalDots).fill(0);\n    }\n    isVertical() {\n      return this.orientation === 'vertical';\n    }\n    isCircular() {\n      return this.circular && this.value && this.value.length >= this.numVisible;\n    }\n    isAutoplay() {\n      return this.autoplayInterval && this.allowAutoplay;\n    }\n    isForwardNavDisabled() {\n      return this.isEmpty() || this._page >= this.totalDots() - 1 && !this.isCircular();\n    }\n    isBackwardNavDisabled() {\n      return this.isEmpty() || this._page <= 0 && !this.isCircular();\n    }\n    isEmpty() {\n      return !this.value || this.value.length === 0;\n    }\n    navForward(e, index) {\n      if (this.isCircular() || this._page < this.totalDots() - 1) {\n        this.step(-1, index);\n      }\n      if (this.autoplayInterval) {\n        this.stopAutoplay();\n      }\n      if (e && e.cancelable) {\n        e.preventDefault();\n      }\n    }\n    navBackward(e, index) {\n      if (this.isCircular() || this._page !== 0) {\n        this.step(1, index);\n      }\n      if (this.autoplayInterval) {\n        this.stopAutoplay();\n      }\n      if (e && e.cancelable) {\n        e.preventDefault();\n      }\n    }\n    onDotClick(e, index) {\n      let page = this._page;\n      if (this.autoplayInterval) {\n        this.stopAutoplay();\n      }\n      if (index > page) {\n        this.navForward(e, index);\n      } else if (index < page) {\n        this.navBackward(e, index);\n      }\n    }\n    onIndicatorKeydown(event) {\n      switch (event.code) {\n        case 'ArrowRight':\n          this.onRightKey();\n          break;\n        case 'ArrowLeft':\n          this.onLeftKey();\n          break;\n      }\n    }\n    onRightKey() {\n      const indicators = [...DomHandler.find(this.indicatorContent.nativeElement, '[data-pc-section=\"indicator\"]')];\n      const activeIndex = this.findFocusedIndicatorIndex();\n      this.changedFocusedIndicator(activeIndex, activeIndex + 1 === indicators.length ? indicators.length - 1 : activeIndex + 1);\n    }\n    onLeftKey() {\n      const activeIndex = this.findFocusedIndicatorIndex();\n      this.changedFocusedIndicator(activeIndex, activeIndex - 1 <= 0 ? 0 : activeIndex - 1);\n    }\n    onHomeKey() {\n      const activeIndex = this.findFocusedIndicatorIndex();\n      this.changedFocusedIndicator(activeIndex, 0);\n    }\n    onEndKey() {\n      const indicators = [...DomHandler.find(this.indicatorContent.nativeElement, '[data-pc-section=\"indicator\"]r')];\n      const activeIndex = this.findFocusedIndicatorIndex();\n      this.changedFocusedIndicator(activeIndex, indicators.length - 1);\n    }\n    onTabKey() {\n      const indicators = [...DomHandler.find(this.indicatorContent.nativeElement, '[data-pc-section=\"indicator\"]')];\n      const highlightedIndex = indicators.findIndex(ind => DomHandler.getAttribute(ind, 'data-p-highlight') === true);\n      const activeIndicator = DomHandler.findSingle(this.indicatorContent.nativeElement, '[data-pc-section=\"indicator\"] > button[tabindex=\"0\"]');\n      const activeIndex = indicators.findIndex(ind => ind === activeIndicator.parentElement);\n      indicators[activeIndex].children[0].tabIndex = '-1';\n      indicators[highlightedIndex].children[0].tabIndex = '0';\n    }\n    findFocusedIndicatorIndex() {\n      const indicators = [...DomHandler.find(this.indicatorContent.nativeElement, '[data-pc-section=\"indicator\"]')];\n      const activeIndicator = DomHandler.findSingle(this.indicatorContent.nativeElement, '[data-pc-section=\"indicator\"] > button[tabindex=\"0\"]');\n      return indicators.findIndex(ind => ind === activeIndicator.parentElement);\n    }\n    changedFocusedIndicator(prevInd, nextInd) {\n      const indicators = [...DomHandler.find(this.indicatorContent.nativeElement, '[data-pc-section=\"indicator\"]')];\n      indicators[prevInd].children[0].tabIndex = '-1';\n      indicators[nextInd].children[0].tabIndex = '0';\n      indicators[nextInd].children[0].focus();\n    }\n    step(dir, page) {\n      let totalShiftedItems = this.totalShiftedItems;\n      const isCircular = this.isCircular();\n      if (page != null) {\n        totalShiftedItems = this._numScroll * page * -1;\n        if (isCircular) {\n          totalShiftedItems -= this._numVisible;\n        }\n        this.isRemainingItemsAdded = false;\n      } else {\n        totalShiftedItems += this._numScroll * dir;\n        if (this.isRemainingItemsAdded) {\n          totalShiftedItems += this.remainingItems - this._numScroll * dir;\n          this.isRemainingItemsAdded = false;\n        }\n        let originalShiftedItems = isCircular ? totalShiftedItems + this._numVisible : totalShiftedItems;\n        page = Math.abs(Math.floor(originalShiftedItems / this._numScroll));\n      }\n      if (isCircular && this.page === this.totalDots() - 1 && dir === -1) {\n        totalShiftedItems = -1 * (this.value.length + this._numVisible);\n        page = 0;\n      } else if (isCircular && this.page === 0 && dir === 1) {\n        totalShiftedItems = 0;\n        page = this.totalDots() - 1;\n      } else if (page === this.totalDots() - 1 && this.remainingItems > 0) {\n        totalShiftedItems += this.remainingItems * -1 - this._numScroll * dir;\n        this.isRemainingItemsAdded = true;\n      }\n      if (this.itemsContainer) {\n        this.itemsContainer.nativeElement.style.transform = this.isVertical() ? `translate3d(0, ${totalShiftedItems * (100 / this._numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100 / this._numVisible)}%, 0, 0)`;\n        this.itemsContainer.nativeElement.style.transition = 'transform 500ms ease 0s';\n      }\n      this.totalShiftedItems = totalShiftedItems;\n      this._page = page;\n      this.onPage.emit({\n        page: this.page\n      });\n      this.cd.markForCheck();\n    }\n    startAutoplay() {\n      this.interval = setInterval(() => {\n        if (this.totalDots() > 0) {\n          if (this.page === this.totalDots() - 1) {\n            this.step(-1, 0);\n          } else {\n            this.step(-1, this.page + 1);\n          }\n        }\n      }, this.autoplayInterval);\n      this.allowAutoplay = true;\n      this.cd.markForCheck();\n    }\n    stopAutoplay(changeAllow = true) {\n      if (this.interval) {\n        clearInterval(this.interval);\n        this.interval = undefined;\n        if (changeAllow) {\n          this.allowAutoplay = false;\n        }\n      }\n      this.cd.markForCheck();\n    }\n    isPlaying() {\n      return !!this.interval;\n    }\n    onTransitionEnd() {\n      if (this.itemsContainer) {\n        this.itemsContainer.nativeElement.style.transition = '';\n        if ((this.page === 0 || this.page === this.totalDots() - 1) && this.isCircular()) {\n          this.itemsContainer.nativeElement.style.transform = this.isVertical() ? `translate3d(0, ${this.totalShiftedItems * (100 / this._numVisible)}%, 0)` : `translate3d(${this.totalShiftedItems * (100 / this._numVisible)}%, 0, 0)`;\n        }\n      }\n    }\n    onTouchStart(e) {\n      let touchobj = e.changedTouches[0];\n      this.startPos = {\n        x: touchobj.pageX,\n        y: touchobj.pageY\n      };\n    }\n    onTouchMove(e) {\n      if (e.cancelable) {\n        e.preventDefault();\n      }\n    }\n    onTouchEnd(e) {\n      let touchobj = e.changedTouches[0];\n      if (this.isVertical()) {\n        this.changePageOnTouch(e, touchobj.pageY - this.startPos.y);\n      } else {\n        this.changePageOnTouch(e, touchobj.pageX - this.startPos.x);\n      }\n    }\n    changePageOnTouch(e, diff) {\n      if (Math.abs(diff) > this.swipeThreshold) {\n        if (diff < 0) {\n          this.navForward(e);\n        } else {\n          this.navBackward(e);\n        }\n      }\n    }\n    ariaPrevButtonLabel() {\n      return this.config.translation.aria ? this.config.translation.aria.prevPageLabel : undefined;\n    }\n    ariaSlideLabel() {\n      return this.config.translation.aria ? this.config.translation.aria.slide : undefined;\n    }\n    ariaNextButtonLabel() {\n      return this.config.translation.aria ? this.config.translation.aria.nextPageLabel : undefined;\n    }\n    ariaSlideNumber(value) {\n      return this.config.translation.aria ? this.config.translation.aria.slideNumber.replace(/{slideNumber}/g, value) : undefined;\n    }\n    ariaPageLabel(value) {\n      return this.config.translation.aria ? this.config.translation.aria.pageLabel.replace(/{page}/g, value) : undefined;\n    }\n    bindDocumentListeners() {\n      if (isPlatformBrowser(this.platformId)) {\n        if (!this.documentResizeListener) {\n          this.documentResizeListener = this.renderer.listen(this.window, 'resize', event => {\n            this.calculatePosition();\n          });\n        }\n      }\n    }\n    unbindDocumentListeners() {\n      if (isPlatformBrowser(this.platformId)) {\n        if (this.documentResizeListener) {\n          this.documentResizeListener();\n          this.documentResizeListener = null;\n        }\n      }\n    }\n    ngOnDestroy() {\n      if (this.responsiveOptions) {\n        this.unbindDocumentListeners();\n      }\n      if (this.autoplayInterval) {\n        this.stopAutoplay();\n      }\n    }\n    static ɵfac = function Carousel_Factory(t) {\n      return new (t || Carousel)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(DOCUMENT), i0.ɵɵdirectiveInject(PLATFORM_ID), i0.ɵɵdirectiveInject(i1.PrimeNGConfig));\n    };\n    static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n      type: Carousel,\n      selectors: [[\"p-carousel\"]],\n      contentQueries: function Carousel_ContentQueries(rf, ctx, dirIndex) {\n        if (rf & 1) {\n          i0.ɵɵcontentQuery(dirIndex, Header, 5);\n          i0.ɵɵcontentQuery(dirIndex, Footer, 5);\n          i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);\n        }\n        if (rf & 2) {\n          let _t;\n          i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerFacet = _t.first);\n          i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.footerFacet = _t.first);\n          i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);\n        }\n      },\n      viewQuery: function Carousel_Query(rf, ctx) {\n        if (rf & 1) {\n          i0.ɵɵviewQuery(_c0, 5);\n          i0.ɵɵviewQuery(_c1, 5);\n        }\n        if (rf & 2) {\n          let _t;\n          i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.itemsContainer = _t.first);\n          i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.indicatorContent = _t.first);\n        }\n      },\n      hostAttrs: [1, \"p-element\"],\n      inputs: {\n        page: \"page\",\n        numVisible: \"numVisible\",\n        numScroll: \"numScroll\",\n        responsiveOptions: \"responsiveOptions\",\n        orientation: \"orientation\",\n        verticalViewPortHeight: \"verticalViewPortHeight\",\n        contentClass: \"contentClass\",\n        indicatorsContentClass: \"indicatorsContentClass\",\n        indicatorsContentStyle: \"indicatorsContentStyle\",\n        indicatorStyleClass: \"indicatorStyleClass\",\n        indicatorStyle: \"indicatorStyle\",\n        value: \"value\",\n        circular: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"circular\", \"circular\", booleanAttribute],\n        showIndicators: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"showIndicators\", \"showIndicators\", booleanAttribute],\n        showNavigators: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"showNavigators\", \"showNavigators\", booleanAttribute],\n        autoplayInterval: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"autoplayInterval\", \"autoplayInterval\", numberAttribute],\n        style: \"style\",\n        styleClass: \"styleClass\"\n      },\n      outputs: {\n        onPage: \"onPage\"\n      },\n      features: [i0.ɵɵInputTransformsFeature, i0.ɵɵNgOnChangesFeature],\n      ngContentSelectors: _c3,\n      decls: 14,\n      vars: 23,\n      consts: [[\"itemsContainer\", \"\"], [\"indicatorContent\", \"\"], [\"role\", \"region\", 3, \"ngClass\", \"ngStyle\"], [\"class\", \"p-carousel-header\", 4, \"ngIf\"], [3, \"ngClass\"], [1, \"p-carousel-container\"], [\"type\", \"button\", \"pRipple\", \"\", 3, \"ngClass\", \"disabled\", \"click\", 4, \"ngIf\"], [1, \"p-carousel-items-content\", 3, \"touchend\", \"touchstart\", \"touchmove\", \"ngStyle\"], [1, \"p-carousel-items-container\", 3, \"transitionend\"], [3, \"ngClass\", 4, \"ngFor\", \"ngForOf\"], [3, \"ngClass\", \"class\", \"ngStyle\", \"keydown\", 4, \"ngIf\"], [\"class\", \"p-carousel-footer\", 4, \"ngIf\"], [1, \"p-carousel-header\"], [4, \"ngTemplateOutlet\"], [\"type\", \"button\", \"pRipple\", \"\", 3, \"click\", \"ngClass\", \"disabled\"], [4, \"ngIf\"], [\"class\", \"p-carousel-prev-icon\", 4, \"ngIf\"], [3, \"styleClass\", 4, \"ngIf\"], [3, \"styleClass\"], [1, \"p-carousel-prev-icon\"], [4, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"], [3, \"keydown\", \"ngClass\", \"ngStyle\"], [\"type\", \"button\", 3, \"click\", \"ngClass\", \"ngStyle\", \"tabindex\"], [1, \"p-carousel-footer\"]],\n      template: function Carousel_Template(rf, ctx) {\n        if (rf & 1) {\n          const _r1 = i0.ɵɵgetCurrentView();\n          i0.ɵɵprojectionDef(_c2);\n          i0.ɵɵelementStart(0, \"div\", 2);\n          i0.ɵɵtemplate(1, Carousel_div_1_Template, 3, 1, \"div\", 3);\n          i0.ɵɵelementStart(2, \"div\", 4)(3, \"div\", 5);\n          i0.ɵɵtemplate(4, Carousel_button_4_Template, 3, 7, \"button\", 6);\n          i0.ɵɵelementStart(5, \"div\", 7);\n          i0.ɵɵlistener(\"touchend\", function Carousel_Template_div_touchend_5_listener($event) {\n            i0.ɵɵrestoreView(_r1);\n            return i0.ɵɵresetView(ctx.onTouchEnd($event));\n          })(\"touchstart\", function Carousel_Template_div_touchstart_5_listener($event) {\n            i0.ɵɵrestoreView(_r1);\n            return i0.ɵɵresetView(ctx.onTouchStart($event));\n          })(\"touchmove\", function Carousel_Template_div_touchmove_5_listener($event) {\n            i0.ɵɵrestoreView(_r1);\n            return i0.ɵɵresetView(ctx.onTouchMove($event));\n          });\n          i0.ɵɵelementStart(6, \"div\", 8, 0);\n          i0.ɵɵlistener(\"transitionend\", function Carousel_Template_div_transitionend_6_listener() {\n            i0.ɵɵrestoreView(_r1);\n            return i0.ɵɵresetView(ctx.onTransitionEnd());\n          });\n          i0.ɵɵtemplate(8, Carousel_div_8_Template, 2, 12, \"div\", 9)(9, Carousel_div_9_Template, 2, 12, \"div\", 9)(10, Carousel_div_10_Template, 2, 9, \"div\", 9);\n          i0.ɵɵelementEnd()();\n          i0.ɵɵtemplate(11, Carousel_button_11_Template, 3, 7, \"button\", 6);\n          i0.ɵɵelementEnd();\n          i0.ɵɵtemplate(12, Carousel_ul_12_Template, 3, 5, \"ul\", 10);\n          i0.ɵɵelementEnd();\n          i0.ɵɵtemplate(13, Carousel_div_13_Template, 3, 1, \"div\", 11);\n          i0.ɵɵelementEnd();\n        }\n        if (rf & 2) {\n          i0.ɵɵclassMap(ctx.styleClass);\n          i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction2(18, _c4, ctx.isVertical(), !ctx.isVertical()))(\"ngStyle\", ctx.style);\n          i0.ɵɵattribute(\"id\", ctx.id);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngIf\", ctx.headerFacet || ctx.headerTemplate);\n          i0.ɵɵadvance();\n          i0.ɵɵclassMap(ctx.contentClass);\n          i0.ɵɵproperty(\"ngClass\", \"p-carousel-content\");\n          i0.ɵɵadvance();\n          i0.ɵɵattribute(\"aria-live\", ctx.allowAutoplay ? \"polite\" : \"off\");\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngIf\", ctx.showNavigators);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngStyle\", i0.ɵɵpureFunction1(21, _c5, ctx.isVertical() ? ctx.verticalViewPortHeight : \"auto\"));\n          i0.ɵɵadvance(3);\n          i0.ɵɵproperty(\"ngForOf\", ctx.clonedItemsForStarting);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngForOf\", ctx.value);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngForOf\", ctx.clonedItemsForFinishing);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngIf\", ctx.showNavigators);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngIf\", ctx.showIndicators);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngIf\", ctx.footerFacet || ctx.footerTemplate);\n        }\n      },\n      dependencies: () => [i2.NgClass, i2.NgForOf, i2.NgIf, i2.NgTemplateOutlet, i2.NgStyle, i3.Ripple, ChevronRightIcon, ChevronLeftIcon, ChevronDownIcon, ChevronUpIcon],\n      styles: [\"@layer primeng{.p-carousel{display:flex;flex-direction:column}.p-carousel-content{display:flex;flex-direction:column;overflow:auto}.p-carousel-prev,.p-carousel-next{align-self:center;flex-grow:0;flex-shrink:0;display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-carousel-container{display:flex;flex-direction:row}.p-carousel-items-content{overflow:hidden;width:100%}.p-carousel-items-container{display:flex;flex-direction:row}.p-carousel-indicators{display:flex;flex-direction:row;justify-content:center;flex-wrap:wrap}.p-carousel-indicator>button{display:flex;align-items:center;justify-content:center}.p-carousel-vertical .p-carousel-container{flex-direction:column}.p-carousel-vertical .p-carousel-items-container{flex-direction:column;height:100%}.p-items-hidden .p-carousel-item{visibility:hidden}.p-items-hidden .p-carousel-item.p-carousel-item-active{visibility:visible}}\\n\"],\n      encapsulation: 2,\n      changeDetection: 0\n    });\n  }\n  return Carousel;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet CarouselModule = /*#__PURE__*/(() => {\n  class CarouselModule {\n    static ɵfac = function CarouselModule_Factory(t) {\n      return new (t || CarouselModule)();\n    };\n    static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n      type: CarouselModule\n    });\n    static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n      imports: [CommonModule, SharedModule, RippleModule, ChevronRightIcon, ChevronLeftIcon, ChevronDownIcon, ChevronUpIcon, CommonModule, SharedModule]\n    });\n  }\n  return CarouselModule;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { Carousel, CarouselModule };\n","import { DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { inject, PLATFORM_ID, ElementRef, booleanAttribute, Directive, Input, NgModule } from '@angular/core';\nimport { DomHandler } from 'primeng/dom';\n\n/**\n * AutoFocus manages focus on focusable element on load.\n * @group Components\n */\nlet AutoFocus = /*#__PURE__*/(() => {\n  class AutoFocus {\n    /**\n     * When present, it specifies that the component should automatically get focus on load.\n     * @group Props\n     */\n    autofocus = false;\n    focused = false;\n    platformId = inject(PLATFORM_ID);\n    document = inject(DOCUMENT);\n    host = inject(ElementRef);\n    ngAfterContentChecked() {\n      // This sets the `attr.autofocus` which is different than the Input `autofocus` attribute.\n      if (this.autofocus === false) {\n        this.host.nativeElement.removeAttribute('autofocus');\n      } else {\n        this.host.nativeElement.setAttribute('autofocus', true);\n      }\n      if (!this.focused) {\n        this.autoFocus();\n      }\n    }\n    ngAfterViewChecked() {\n      if (!this.focused) {\n        this.autoFocus();\n      }\n    }\n    autoFocus() {\n      if (isPlatformBrowser(this.platformId) && this.autofocus) {\n        setTimeout(() => {\n          const focusableElements = DomHandler.getFocusableElements(this.host?.nativeElement);\n          if (focusableElements.length === 0) {\n            this.host.nativeElement.focus();\n          }\n          if (focusableElements.length > 0) {\n            focusableElements[0].focus();\n          }\n          this.focused = true;\n        });\n      }\n    }\n    static ɵfac = function AutoFocus_Factory(t) {\n      return new (t || AutoFocus)();\n    };\n    static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n      type: AutoFocus,\n      selectors: [[\"\", \"pAutoFocus\", \"\"]],\n      hostAttrs: [1, \"p-element\"],\n      inputs: {\n        autofocus: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"autofocus\", \"autofocus\", booleanAttribute]\n      },\n      standalone: true,\n      features: [i0.ɵɵInputTransformsFeature]\n    });\n  }\n  return AutoFocus;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet AutoFocusModule = /*#__PURE__*/(() => {\n  class AutoFocusModule {\n    static ɵfac = function AutoFocusModule_Factory(t) {\n      return new (t || AutoFocusModule)();\n    };\n    static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n      type: AutoFocusModule\n    });\n    static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({});\n  }\n  return AutoFocusModule;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AutoFocus, AutoFocusModule };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nimport { UniqueComponentId } from 'primeng/utils';\nlet SpinnerIcon = /*#__PURE__*/(() => {\n  class SpinnerIcon extends BaseIcon {\n    pathId;\n    ngOnInit() {\n      this.pathId = 'url(#' + UniqueComponentId() + ')';\n    }\n    static ɵfac = /* @__PURE__ */(() => {\n      let ɵSpinnerIcon_BaseFactory;\n      return function SpinnerIcon_Factory(t) {\n        return (ɵSpinnerIcon_BaseFactory || (ɵSpinnerIcon_BaseFactory = i0.ɵɵgetInheritedFactory(SpinnerIcon)))(t || SpinnerIcon);\n      };\n    })();\n    static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n      type: SpinnerIcon,\n      selectors: [[\"SpinnerIcon\"]],\n      standalone: true,\n      features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n      decls: 6,\n      vars: 7,\n      consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"d\", \"M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z\", \"fill\", \"currentColor\"], [3, \"id\"], [\"width\", \"14\", \"height\", \"14\", \"fill\", \"white\"]],\n      template: function SpinnerIcon_Template(rf, ctx) {\n        if (rf & 1) {\n          i0.ɵɵnamespaceSVG();\n          i0.ɵɵelementStart(0, \"svg\", 0)(1, \"g\");\n          i0.ɵɵelement(2, \"path\", 1);\n          i0.ɵɵelementEnd();\n          i0.ɵɵelementStart(3, \"defs\")(4, \"clipPath\", 2);\n          i0.ɵɵelement(5, \"rect\", 3);\n          i0.ɵɵelementEnd()()();\n        }\n        if (rf & 2) {\n          i0.ɵɵclassMap(ctx.getClassNames());\n          i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n          i0.ɵɵadvance();\n          i0.ɵɵattribute(\"clip-path\", ctx.pathId);\n          i0.ɵɵadvance(3);\n          i0.ɵɵproperty(\"id\", ctx.pathId);\n        }\n      },\n      encapsulation: 2\n    });\n  }\n  return SpinnerIcon;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { SpinnerIcon };\n","import { DOCUMENT, NgIf, NgTemplateOutlet, NgStyle, NgClass } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { booleanAttribute, Directive, Inject, Input, EventEmitter, numberAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Output, ContentChildren, NgModule } from '@angular/core';\nimport { PrimeTemplate, SharedModule } from 'primeng/api';\nimport { AutoFocus } from 'primeng/autofocus';\nimport { DomHandler } from 'primeng/dom';\nimport { SpinnerIcon } from 'primeng/icons/spinner';\nimport { Ripple } from 'primeng/ripple';\nimport { ObjectUtils } from 'primeng/utils';\nconst _c0 = [\"*\"];\nconst _c1 = a0 => ({\n  class: a0\n});\nfunction Button_ng_container_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainer(0);\n  }\n}\nfunction Button_ng_container_3_ng_container_1_span_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"span\", 8);\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext(3);\n    i0.ɵɵproperty(\"ngClass\", ctx_r0.iconClass());\n    i0.ɵɵattribute(\"aria-hidden\", true)(\"data-pc-section\", \"loadingicon\");\n  }\n}\nfunction Button_ng_container_3_ng_container_1_SpinnerIcon_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"SpinnerIcon\", 9);\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext(3);\n    i0.ɵɵproperty(\"styleClass\", ctx_r0.spinnerIconClass())(\"spin\", true);\n    i0.ɵɵattribute(\"aria-hidden\", true)(\"data-pc-section\", \"loadingicon\");\n  }\n}\nfunction Button_ng_container_3_ng_container_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainerStart(0);\n    i0.ɵɵtemplate(1, Button_ng_container_3_ng_container_1_span_1_Template, 1, 3, \"span\", 6)(2, Button_ng_container_3_ng_container_1_SpinnerIcon_2_Template, 1, 4, \"SpinnerIcon\", 7);\n    i0.ɵɵelementContainerEnd();\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext(2);\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngIf\", ctx_r0.loadingIcon);\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngIf\", !ctx_r0.loadingIcon);\n  }\n}\nfunction Button_ng_container_3_2_ng_template_0_Template(rf, ctx) {}\nfunction Button_ng_container_3_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵtemplate(0, Button_ng_container_3_2_ng_template_0_Template, 0, 0, \"ng-template\", 10);\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext(2);\n    i0.ɵɵproperty(\"ngIf\", ctx_r0.loadingIconTemplate);\n  }\n}\nfunction Button_ng_container_3_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainerStart(0);\n    i0.ɵɵtemplate(1, Button_ng_container_3_ng_container_1_Template, 3, 2, \"ng-container\", 2)(2, Button_ng_container_3_2_Template, 1, 1, null, 5);\n    i0.ɵɵelementContainerEnd();\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext();\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngIf\", !ctx_r0.loadingIconTemplate);\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.loadingIconTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(3, _c1, ctx_r0.iconClass()));\n  }\n}\nfunction Button_ng_container_4_span_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"span\", 8);\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext(2);\n    i0.ɵɵproperty(\"ngClass\", ctx_r0.iconClass());\n    i0.ɵɵattribute(\"data-pc-section\", \"icon\");\n  }\n}\nfunction Button_ng_container_4_2_ng_template_0_Template(rf, ctx) {}\nfunction Button_ng_container_4_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵtemplate(0, Button_ng_container_4_2_ng_template_0_Template, 0, 0, \"ng-template\", 10);\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext(2);\n    i0.ɵɵproperty(\"ngIf\", !ctx_r0.icon && ctx_r0.iconTemplate);\n  }\n}\nfunction Button_ng_container_4_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainerStart(0);\n    i0.ɵɵtemplate(1, Button_ng_container_4_span_1_Template, 1, 2, \"span\", 6)(2, Button_ng_container_4_2_Template, 1, 1, null, 5);\n    i0.ɵɵelementContainerEnd();\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext();\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngIf\", ctx_r0.icon && !ctx_r0.iconTemplate);\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.iconTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(3, _c1, ctx_r0.iconClass()));\n  }\n}\nfunction Button_span_5_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"span\", 11);\n    i0.ɵɵtext(1);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext();\n    i0.ɵɵattribute(\"aria-hidden\", ctx_r0.icon && !ctx_r0.label)(\"data-pc-section\", \"label\");\n    i0.ɵɵadvance();\n    i0.ɵɵtextInterpolate(ctx_r0.label);\n  }\n}\nfunction Button_span_6_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"span\", 8);\n    i0.ɵɵtext(1);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext();\n    i0.ɵɵclassMap(ctx_r0.badgeClass);\n    i0.ɵɵproperty(\"ngClass\", ctx_r0.badgeStyleClass());\n    i0.ɵɵattribute(\"data-pc-section\", \"badge\");\n    i0.ɵɵadvance();\n    i0.ɵɵtextInterpolate(ctx_r0.badge);\n  }\n}\nconst INTERNAL_BUTTON_CLASSES = {\n  button: 'p-button',\n  component: 'p-component',\n  iconOnly: 'p-button-icon-only',\n  disabled: 'p-disabled',\n  loading: 'p-button-loading',\n  labelOnly: 'p-button-loading-label-only'\n};\n/**\n * Button directive is an extension to button component.\n * @group Components\n */\nlet ButtonDirective = /*#__PURE__*/(() => {\n  class ButtonDirective {\n    el;\n    document;\n    /**\n     * Position of the icon.\n     * @group Props\n     */\n    iconPos = 'left';\n    /**\n     * Uses to pass attributes to the loading icon's DOM element.\n     * @group Props\n     */\n    loadingIcon;\n    /**\n     * Text of the button.\n     * @group Props\n     */\n    get label() {\n      return this._label;\n    }\n    set label(val) {\n      this._label = val;\n      if (this.initialized) {\n        this.updateLabel();\n        this.updateIcon();\n        this.setStyleClass();\n      }\n    }\n    /**\n     * Name of the icon.\n     * @group Props\n     */\n    get icon() {\n      return this._icon;\n    }\n    set icon(val) {\n      this._icon = val;\n      if (this.initialized) {\n        this.updateIcon();\n        this.setStyleClass();\n      }\n    }\n    /**\n     * Whether the button is in loading state.\n     * @group Props\n     */\n    get loading() {\n      return this._loading;\n    }\n    set loading(val) {\n      this._loading = val;\n      if (this.initialized) {\n        this.updateIcon();\n        this.setStyleClass();\n      }\n    }\n    /**\n     * Defines the style of the button.\n     * @group Props\n     */\n    severity;\n    /**\n     * Add a shadow to indicate elevation.\n     * @group Props\n     */\n    raised = false;\n    /**\n     * Add a circular border radius to the button.\n     * @group Props\n     */\n    rounded = false;\n    /**\n     * Add a textual class to the button without a background initially.\n     * @group Props\n     */\n    text = false;\n    /**\n     * Add a border class without a background initially.\n     * @group Props\n     */\n    outlined = false;\n    /**\n     * Defines the size of the button.\n     * @group Props\n     */\n    size = null;\n    /**\n     * Add a plain textual class to the button without a background initially.\n     * @group Props\n     */\n    plain = false;\n    _label;\n    _icon;\n    _loading = false;\n    initialized;\n    get htmlElement() {\n      return this.el.nativeElement;\n    }\n    _internalClasses = Object.values(INTERNAL_BUTTON_CLASSES);\n    constructor(el, document) {\n      this.el = el;\n      this.document = document;\n    }\n    ngAfterViewInit() {\n      DomHandler.addMultipleClasses(this.htmlElement, this.getStyleClass().join(' '));\n      this.createIcon();\n      this.createLabel();\n      this.initialized = true;\n    }\n    getStyleClass() {\n      const styleClass = [INTERNAL_BUTTON_CLASSES.button, INTERNAL_BUTTON_CLASSES.component];\n      if (this.icon && !this.label && ObjectUtils.isEmpty(this.htmlElement.textContent)) {\n        styleClass.push(INTERNAL_BUTTON_CLASSES.iconOnly);\n      }\n      if (this.loading) {\n        styleClass.push(INTERNAL_BUTTON_CLASSES.disabled, INTERNAL_BUTTON_CLASSES.loading);\n        if (!this.icon && this.label) {\n          styleClass.push(INTERNAL_BUTTON_CLASSES.labelOnly);\n        }\n        if (this.icon && !this.label && !ObjectUtils.isEmpty(this.htmlElement.textContent)) {\n          styleClass.push(INTERNAL_BUTTON_CLASSES.iconOnly);\n        }\n      }\n      if (this.text) {\n        styleClass.push('p-button-text');\n      }\n      if (this.severity) {\n        styleClass.push(`p-button-${this.severity}`);\n      }\n      if (this.plain) {\n        styleClass.push('p-button-plain');\n      }\n      if (this.raised) {\n        styleClass.push('p-button-raised');\n      }\n      if (this.size) {\n        styleClass.push(`p-button-${this.size}`);\n      }\n      if (this.outlined) {\n        styleClass.push('p-button-outlined');\n      }\n      if (this.rounded) {\n        styleClass.push('p-button-rounded');\n      }\n      if (this.size === 'small') {\n        styleClass.push('p-button-sm');\n      }\n      if (this.size === 'large') {\n        styleClass.push('p-button-lg');\n      }\n      return styleClass;\n    }\n    setStyleClass() {\n      const styleClass = this.getStyleClass();\n      this.htmlElement.classList.remove(...this._internalClasses);\n      this.htmlElement.classList.add(...styleClass);\n    }\n    createLabel() {\n      const created = DomHandler.findSingle(this.htmlElement, '.p-button-label');\n      if (!created && this.label) {\n        let labelElement = this.document.createElement('span');\n        if (this.icon && !this.label) {\n          labelElement.setAttribute('aria-hidden', 'true');\n        }\n        labelElement.className = 'p-button-label';\n        labelElement.appendChild(this.document.createTextNode(this.label));\n        this.htmlElement.appendChild(labelElement);\n      }\n    }\n    createIcon() {\n      const created = DomHandler.findSingle(this.htmlElement, '.p-button-icon');\n      if (!created && (this.icon || this.loading)) {\n        let iconElement = this.document.createElement('span');\n        iconElement.className = 'p-button-icon';\n        iconElement.setAttribute('aria-hidden', 'true');\n        let iconPosClass = this.label ? 'p-button-icon-' + this.iconPos : null;\n        if (iconPosClass) {\n          DomHandler.addClass(iconElement, iconPosClass);\n        }\n        let iconClass = this.getIconClass();\n        if (iconClass) {\n          DomHandler.addMultipleClasses(iconElement, iconClass);\n        }\n        this.htmlElement.insertBefore(iconElement, this.htmlElement.firstChild);\n      }\n    }\n    updateLabel() {\n      let labelElement = DomHandler.findSingle(this.htmlElement, '.p-button-label');\n      if (!this.label) {\n        labelElement && this.htmlElement.removeChild(labelElement);\n        return;\n      }\n      labelElement ? labelElement.textContent = this.label : this.createLabel();\n    }\n    updateIcon() {\n      let iconElement = DomHandler.findSingle(this.htmlElement, '.p-button-icon');\n      let labelElement = DomHandler.findSingle(this.htmlElement, '.p-button-label');\n      if (iconElement) {\n        if (this.iconPos) {\n          iconElement.className = 'p-button-icon ' + (labelElement ? 'p-button-icon-' + this.iconPos : '') + ' ' + this.getIconClass();\n        } else {\n          iconElement.className = 'p-button-icon ' + this.getIconClass();\n        }\n      } else {\n        this.createIcon();\n      }\n    }\n    getIconClass() {\n      return this.loading ? 'p-button-loading-icon pi-spin ' + (this.loadingIcon ?? 'pi pi-spinner') : this.icon || 'p-hidden';\n    }\n    ngOnDestroy() {\n      this.initialized = false;\n    }\n    static ɵfac = function ButtonDirective_Factory(t) {\n      return new (t || ButtonDirective)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(DOCUMENT));\n    };\n    static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n      type: ButtonDirective,\n      selectors: [[\"\", \"pButton\", \"\"]],\n      hostAttrs: [1, \"p-element\"],\n      inputs: {\n        iconPos: \"iconPos\",\n        loadingIcon: \"loadingIcon\",\n        label: \"label\",\n        icon: \"icon\",\n        loading: \"loading\",\n        severity: \"severity\",\n        raised: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"raised\", \"raised\", booleanAttribute],\n        rounded: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"rounded\", \"rounded\", booleanAttribute],\n        text: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"text\", \"text\", booleanAttribute],\n        outlined: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"outlined\", \"outlined\", booleanAttribute],\n        size: \"size\",\n        plain: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"plain\", \"plain\", booleanAttribute]\n      },\n      standalone: true,\n      features: [i0.ɵɵInputTransformsFeature]\n    });\n  }\n  return ButtonDirective;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Button is an extension to standard button element with icons and theming.\n * @group Components\n */\nlet Button = /*#__PURE__*/(() => {\n  class Button {\n    el;\n    /**\n     * Type of the button.\n     * @group Props\n     */\n    type = 'button';\n    /**\n     * Position of the icon.\n     * @group Props\n     */\n    iconPos = 'left';\n    /**\n     * Name of the icon.\n     * @group Props\n     */\n    icon;\n    /**\n     * Value of the badge.\n     * @group Props\n     */\n    badge;\n    /**\n     * Uses to pass attributes to the label's DOM element.\n     * @group Props\n     */\n    label;\n    /**\n     * When present, it specifies that the component should be disabled.\n     * @group Props\n     */\n    disabled;\n    /**\n     * Whether the button is in loading state.\n     * @group Props\n     */\n    loading = false;\n    /**\n     * Icon to display in loading state.\n     * @group Props\n     */\n    loadingIcon;\n    /**\n     * Add a shadow to indicate elevation.\n     * @group Props\n     */\n    raised = false;\n    /**\n     * Add a circular border radius to the button.\n     * @group Props\n     */\n    rounded = false;\n    /**\n     * Add a textual class to the button without a background initially.\n     * @group Props\n     */\n    text = false;\n    /**\n     * Add a plain textual class to the button without a background initially.\n     * @group Props\n     */\n    plain = false;\n    /**\n     * Defines the style of the button.\n     * @group Props\n     */\n    severity;\n    /**\n     * Add a border class without a background initially.\n     * @group Props\n     */\n    outlined = false;\n    /**\n     * Add a link style to the button.\n     * @group Props\n     */\n    link = false;\n    /**\n     * Add a tabindex to the button.\n     * @group Props\n     */\n    tabindex;\n    /**\n     * Defines the size of the button.\n     * @group Props\n     */\n    size;\n    /**\n     * Inline style of the element.\n     * @group Props\n     */\n    style;\n    /**\n     * Class of the element.\n     * @group Props\n     */\n    styleClass;\n    /**\n     * Style class of the badge.\n     * @group Props\n     */\n    badgeClass;\n    /**\n     * Used to define a string that autocomplete attribute the current element.\n     * @group Props\n     */\n    ariaLabel;\n    /**\n     * When present, it specifies that the component should automatically get focus on load.\n     * @group Props\n     */\n    autofocus;\n    /**\n     * Callback to execute when button is clicked.\n     * This event is intended to be used with the <p-button> component. Using a regular <button> element, use (click).\n     * @param {MouseEvent} event - Mouse event.\n     * @group Emits\n     */\n    onClick = new EventEmitter();\n    /**\n     * Callback to execute when button is focused.\n     * This event is intended to be used with the <p-button> component. Using a regular <button> element, use (focus).\n     * @param {FocusEvent} event - Focus event.\n     * @group Emits\n     */\n    onFocus = new EventEmitter();\n    /**\n     * Callback to execute when button loses focus.\n     * This event is intended to be used with the <p-button> component. Using a regular <button> element, use (blur).\n     * @param {FocusEvent} event - Focus event.\n     * @group Emits\n     */\n    onBlur = new EventEmitter();\n    contentTemplate;\n    loadingIconTemplate;\n    iconTemplate;\n    templates;\n    constructor(el) {\n      this.el = el;\n    }\n    spinnerIconClass() {\n      return Object.entries(this.iconClass()).filter(([, value]) => !!value).reduce((acc, [key]) => acc + ` ${key}`, 'p-button-loading-icon');\n    }\n    iconClass() {\n      const iconClasses = {\n        'p-button-icon': true,\n        'p-button-icon-left': this.iconPos === 'left' && this.label,\n        'p-button-icon-right': this.iconPos === 'right' && this.label,\n        'p-button-icon-top': this.iconPos === 'top' && this.label,\n        'p-button-icon-bottom': this.iconPos === 'bottom' && this.label\n      };\n      if (this.loading) {\n        iconClasses[`p-button-loading-icon pi-spin ${this.loadingIcon ?? ''}`] = true;\n      } else if (this.icon) {\n        iconClasses[this.icon] = true;\n      }\n      return iconClasses;\n    }\n    get buttonClass() {\n      return {\n        'p-button p-component': true,\n        'p-button-icon-only': (this.icon || this.iconTemplate || this.loadingIcon || this.loadingIconTemplate) && !this.label,\n        'p-button-vertical': (this.iconPos === 'top' || this.iconPos === 'bottom') && this.label,\n        'p-disabled': this.disabled || this.loading,\n        'p-button-loading': this.loading,\n        'p-button-loading-label-only': this.loading && !this.icon && this.label && !this.loadingIcon && this.iconPos === 'left',\n        'p-button-link': this.link,\n        [`p-button-${this.severity}`]: this.severity,\n        'p-button-raised': this.raised,\n        'p-button-rounded': this.rounded,\n        'p-button-text': this.text,\n        'p-button-outlined': this.outlined,\n        'p-button-sm': this.size === 'small',\n        'p-button-lg': this.size === 'large',\n        'p-button-plain': this.plain,\n        [`${this.styleClass}`]: this.styleClass\n      };\n    }\n    ngAfterContentInit() {\n      this.templates?.forEach(item => {\n        switch (item.getType()) {\n          case 'content':\n            this.contentTemplate = item.template;\n            break;\n          case 'icon':\n            this.iconTemplate = item.template;\n            break;\n          case 'loadingicon':\n            this.loadingIconTemplate = item.template;\n            break;\n          default:\n            this.contentTemplate = item.template;\n            break;\n        }\n      });\n    }\n    badgeStyleClass() {\n      return {\n        'p-badge p-component': true,\n        'p-badge-no-gutter': this.badge && String(this.badge).length === 1\n      };\n    }\n    static ɵfac = function Button_Factory(t) {\n      return new (t || Button)(i0.ɵɵdirectiveInject(i0.ElementRef));\n    };\n    static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n      type: Button,\n      selectors: [[\"p-button\"]],\n      contentQueries: function Button_ContentQueries(rf, ctx, dirIndex) {\n        if (rf & 1) {\n          i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);\n        }\n        if (rf & 2) {\n          let _t;\n          i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);\n        }\n      },\n      hostAttrs: [1, \"p-element\"],\n      inputs: {\n        type: \"type\",\n        iconPos: \"iconPos\",\n        icon: \"icon\",\n        badge: \"badge\",\n        label: \"label\",\n        disabled: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"disabled\", \"disabled\", booleanAttribute],\n        loading: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"loading\", \"loading\", booleanAttribute],\n        loadingIcon: \"loadingIcon\",\n        raised: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"raised\", \"raised\", booleanAttribute],\n        rounded: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"rounded\", \"rounded\", booleanAttribute],\n        text: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"text\", \"text\", booleanAttribute],\n        plain: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"plain\", \"plain\", booleanAttribute],\n        severity: \"severity\",\n        outlined: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"outlined\", \"outlined\", booleanAttribute],\n        link: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"link\", \"link\", booleanAttribute],\n        tabindex: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"tabindex\", \"tabindex\", numberAttribute],\n        size: \"size\",\n        style: \"style\",\n        styleClass: \"styleClass\",\n        badgeClass: \"badgeClass\",\n        ariaLabel: \"ariaLabel\",\n        autofocus: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"autofocus\", \"autofocus\", booleanAttribute]\n      },\n      outputs: {\n        onClick: \"onClick\",\n        onFocus: \"onFocus\",\n        onBlur: \"onBlur\"\n      },\n      standalone: true,\n      features: [i0.ɵɵInputTransformsFeature, i0.ɵɵStandaloneFeature],\n      ngContentSelectors: _c0,\n      decls: 7,\n      vars: 14,\n      consts: [[\"pRipple\", \"\", \"pAutoFocus\", \"\", 3, \"click\", \"focus\", \"blur\", \"ngStyle\", \"disabled\", \"ngClass\", \"autofocus\"], [4, \"ngTemplateOutlet\"], [4, \"ngIf\"], [\"class\", \"p-button-label\", 4, \"ngIf\"], [3, \"ngClass\", \"class\", 4, \"ngIf\"], [4, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"], [3, \"ngClass\", 4, \"ngIf\"], [3, \"styleClass\", \"spin\", 4, \"ngIf\"], [3, \"ngClass\"], [3, \"styleClass\", \"spin\"], [3, \"ngIf\"], [1, \"p-button-label\"]],\n      template: function Button_Template(rf, ctx) {\n        if (rf & 1) {\n          i0.ɵɵprojectionDef();\n          i0.ɵɵelementStart(0, \"button\", 0);\n          i0.ɵɵlistener(\"click\", function Button_Template_button_click_0_listener($event) {\n            return ctx.onClick.emit($event);\n          })(\"focus\", function Button_Template_button_focus_0_listener($event) {\n            return ctx.onFocus.emit($event);\n          })(\"blur\", function Button_Template_button_blur_0_listener($event) {\n            return ctx.onBlur.emit($event);\n          });\n          i0.ɵɵprojection(1);\n          i0.ɵɵtemplate(2, Button_ng_container_2_Template, 1, 0, \"ng-container\", 1)(3, Button_ng_container_3_Template, 3, 5, \"ng-container\", 2)(4, Button_ng_container_4_Template, 3, 5, \"ng-container\", 2)(5, Button_span_5_Template, 2, 3, \"span\", 3)(6, Button_span_6_Template, 2, 5, \"span\", 4);\n          i0.ɵɵelementEnd();\n        }\n        if (rf & 2) {\n          i0.ɵɵproperty(\"ngStyle\", ctx.style)(\"disabled\", ctx.disabled || ctx.loading)(\"ngClass\", ctx.buttonClass)(\"autofocus\", ctx.autofocus);\n          i0.ɵɵattribute(\"type\", ctx.type)(\"aria-label\", ctx.ariaLabel)(\"data-pc-name\", \"button\")(\"data-pc-section\", \"root\")(\"tabindex\", ctx.tabindex);\n          i0.ɵɵadvance(2);\n          i0.ɵɵproperty(\"ngTemplateOutlet\", ctx.contentTemplate);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngIf\", ctx.loading);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngIf\", !ctx.loading);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngIf\", !ctx.contentTemplate && ctx.label);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngIf\", !ctx.contentTemplate && ctx.badge);\n        }\n      },\n      dependencies: [NgIf, NgTemplateOutlet, NgStyle, NgClass, Ripple, AutoFocus, SpinnerIcon],\n      encapsulation: 2,\n      changeDetection: 0\n    });\n  }\n  return Button;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet ButtonModule = /*#__PURE__*/(() => {\n  class ButtonModule {\n    static ɵfac = function ButtonModule_Factory(t) {\n      return new (t || ButtonModule)();\n    };\n    static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n      type: ButtonModule\n    });\n    static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n      imports: [Button, SharedModule]\n    });\n  }\n  return ButtonModule;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { Button, ButtonDirective, ButtonModule };\n","import * as i1 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { booleanAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, ContentChildren, NgModule } from '@angular/core';\nimport { PrimeTemplate, SharedModule } from 'primeng/api';\n\n/**\n * Tag component is used to categorize content.\n * @group Components\n */\nconst _c0 = [\"*\"];\nfunction Tag_ng_container_2_span_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"span\", 5);\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext(2);\n    i0.ɵɵproperty(\"ngClass\", ctx_r0.icon);\n  }\n}\nfunction Tag_ng_container_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainerStart(0);\n    i0.ɵɵtemplate(1, Tag_ng_container_2_span_1_Template, 1, 1, \"span\", 4);\n    i0.ɵɵelementContainerEnd();\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext();\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngIf\", ctx_r0.icon);\n  }\n}\nfunction Tag_span_3_1_ng_template_0_Template(rf, ctx) {}\nfunction Tag_span_3_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵtemplate(0, Tag_span_3_1_ng_template_0_Template, 0, 0, \"ng-template\");\n  }\n}\nfunction Tag_span_3_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"span\", 6);\n    i0.ɵɵtemplate(1, Tag_span_3_1_Template, 1, 0, null, 7);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext();\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.iconTemplate);\n  }\n}\nlet Tag = /*#__PURE__*/(() => {\n  class Tag {\n    cd;\n    /**\n     * Inline style of the component.\n     * @group Props\n     */\n    get style() {\n      return this._style;\n    }\n    set style(value) {\n      this._style = value;\n      this.cd.markForCheck();\n    }\n    /**\n     * Style class of the component.\n     * @group Props\n     */\n    styleClass;\n    /**\n     * Severity type of the tag.\n     * @group Props\n     */\n    severity;\n    /**\n     * Value to display inside the tag.\n     * @group Props\n     */\n    value;\n    /**\n     * Icon of the tag to display next to the value.\n     * @group Props\n     * @deprecated since 15.4.2. Use 'icon' template.\n     */\n    icon;\n    /**\n     * Whether the corners of the tag are rounded.\n     * @group Props\n     */\n    rounded;\n    templates;\n    iconTemplate;\n    _style;\n    ngAfterContentInit() {\n      this.templates?.forEach(item => {\n        switch (item.getType()) {\n          case 'icon':\n            this.iconTemplate = item.template;\n            break;\n        }\n      });\n    }\n    constructor(cd) {\n      this.cd = cd;\n    }\n    containerClass() {\n      return {\n        'p-tag p-component': true,\n        [`p-tag-${this.severity}`]: this.severity,\n        'p-tag-rounded': this.rounded\n      };\n    }\n    static ɵfac = function Tag_Factory(t) {\n      return new (t || Tag)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n    };\n    static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n      type: Tag,\n      selectors: [[\"p-tag\"]],\n      contentQueries: function Tag_ContentQueries(rf, ctx, dirIndex) {\n        if (rf & 1) {\n          i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);\n        }\n        if (rf & 2) {\n          let _t;\n          i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);\n        }\n      },\n      hostAttrs: [1, \"p-element\"],\n      inputs: {\n        style: \"style\",\n        styleClass: \"styleClass\",\n        severity: \"severity\",\n        value: \"value\",\n        icon: \"icon\",\n        rounded: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"rounded\", \"rounded\", booleanAttribute]\n      },\n      features: [i0.ɵɵInputTransformsFeature],\n      ngContentSelectors: _c0,\n      decls: 6,\n      vars: 7,\n      consts: [[3, \"ngClass\", \"ngStyle\"], [4, \"ngIf\"], [\"class\", \"p-tag-icon\", 4, \"ngIf\"], [1, \"p-tag-value\"], [\"class\", \"p-tag-icon\", 3, \"ngClass\", 4, \"ngIf\"], [1, \"p-tag-icon\", 3, \"ngClass\"], [1, \"p-tag-icon\"], [4, \"ngTemplateOutlet\"]],\n      template: function Tag_Template(rf, ctx) {\n        if (rf & 1) {\n          i0.ɵɵprojectionDef();\n          i0.ɵɵelementStart(0, \"span\", 0);\n          i0.ɵɵprojection(1);\n          i0.ɵɵtemplate(2, Tag_ng_container_2_Template, 2, 1, \"ng-container\", 1)(3, Tag_span_3_Template, 2, 1, \"span\", 2);\n          i0.ɵɵelementStart(4, \"span\", 3);\n          i0.ɵɵtext(5);\n          i0.ɵɵelementEnd()();\n        }\n        if (rf & 2) {\n          i0.ɵɵclassMap(ctx.styleClass);\n          i0.ɵɵproperty(\"ngClass\", ctx.containerClass())(\"ngStyle\", ctx.style);\n          i0.ɵɵadvance(2);\n          i0.ɵɵproperty(\"ngIf\", !ctx.iconTemplate);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngIf\", ctx.iconTemplate);\n          i0.ɵɵadvance(2);\n          i0.ɵɵtextInterpolate(ctx.value);\n        }\n      },\n      dependencies: [i1.NgClass, i1.NgIf, i1.NgTemplateOutlet, i1.NgStyle],\n      styles: [\"@layer primeng{.p-tag{display:inline-flex;align-items:center;justify-content:center}.p-tag-icon,.p-tag-value,.p-tag-icon.pi{line-height:1.5}.p-tag.p-tag-rounded{border-radius:10rem}}\\n\"],\n      encapsulation: 2,\n      changeDetection: 0\n    });\n  }\n  return Tag;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TagModule = /*#__PURE__*/(() => {\n  class TagModule {\n    static ɵfac = function TagModule_Factory(t) {\n      return new (t || TagModule)();\n    };\n    static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n      type: TagModule\n    });\n    static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n      imports: [CommonModule, SharedModule, SharedModule]\n    });\n  }\n  return TagModule;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { Tag, TagModule };\n","import { Component, OnInit, Input } from '@angular/core';\r\nimport { CardComponent } from '../card/card.component';\r\nimport { CarouselModule } from 'primeng/carousel';\r\nimport { ButtonModule } from 'primeng/button';\r\nimport { TagModule } from 'primeng/tag';\r\nimport { RecipeAbstraction } from '../../../core/interfaces/recipe-abstraction';\r\n@Component({\r\n  selector: 'app-carousel',\r\n  standalone: true,\r\n  imports: [CardComponent, CarouselModule, ButtonModule, TagModule],\r\n  templateUrl: './carousel.component.html',\r\n  styleUrl: './carousel.component.scss',\r\n})\r\nexport class CarouselComponent implements OnInit{\r\n  @Input() recipes: RecipeAbstraction[] = [];\r\n\r\n    private currentIndex: number = 0;\r\n    responsiveOptions: any[] | undefined;\r\n\r\n    constructor() {}\r\n\r\n    ngOnInit() {\r\n        this.responsiveOptions = [\r\n            {\r\n                breakpoint: '1199px',\r\n                numVisible: 1,\r\n                numScroll: 1\r\n            },\r\n            {\r\n                breakpoint: '991px',\r\n                numVisible: 2,\r\n                numScroll: 1\r\n            },\r\n            {\r\n                breakpoint: '767px',\r\n                numVisible: 1,\r\n                numScroll: 1\r\n            }\r\n        ];\r\n    }\r\n\r\n    logToConsole(m: any):void {\r\n        console.log(\"i:\"+m);\r\n    }\r\n\r\n    getIndex(): number {\r\n      const currentIndex = this.currentIndex;\r\n      this.currentIndex = (this.currentIndex + 1) % this.recipes.length; // Incrementar el índice\r\n      return currentIndex;\r\n    }\r\n    \r\n}\r\n","<div *ngIf=\"recipes.length<6\">\r\n  <p-carousel\r\n  [value]=\"recipes\"\r\n  [circular]=\"true\"\r\n  [numVisible]=\"3\"\r\n  [numScroll]=\"2\"\r\n  [responsiveOptions]=\"responsiveOptions\"\r\n  [showIndicators]=\"false\"\r\n>\r\n  <ng-template let-product pTemplate=\"item\">\r\n    <div class=\"col\" >\r\n      <div class=\"row col-margin\">\r\n        <div class=\"carousel-item\" >  \r\n          <div *ngFor=\"let recipe of recipes; let i = index\">\r\n            <app-card [recipe]=\"recipes[i]\"></app-card>\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </div>\r\n  </ng-template>\r\n</p-carousel>\r\n</div>\r\n<div *ngIf=\"recipes.length>=6\" class=\"card\">\r\n  <p-carousel\r\n    [value]=\"recipes\"\r\n    [circular]=\"true\"\r\n    [numVisible]=\"3\"\r\n    [numScroll]=\"1\"\r\n    [responsiveOptions]=\"responsiveOptions\"\r\n    [showIndicators]=\"false\"\r\n  >\r\n    <ng-template let-product pTemplate=\"item\">\r\n      <div class=\"col\" >\r\n        <div class=\"row col-margin\">\r\n          <div class=\"carousel-item\" >        \r\n            <app-card [recipe]=\"recipes[getIndex()]\"></app-card>\r\n          </div>\r\n        </div>\r\n        <div class=\"row col-margin\">\r\n            <div class=\"carousel-item\">             \r\n              <app-card [recipe]=\"recipes[getIndex()]\"></app-card>\r\n            </div>\r\n          </div>\r\n      </div>\r\n    </ng-template>\r\n  </p-carousel>\r\n</div>\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpErrorResponse } from '@angular/common/http';\r\nimport { Observable, catchError, throwError} from 'rxjs';\r\nimport { handleError } from '../../utils/api-error-handler.utils';\r\nimport { environment } from '../../../../evironments/environment';\r\n\r\n@Injectable({\r\n  providedIn: 'root'\r\n})\r\nexport class RecipesService {\r\n\r\n  private apiUrl = environment.apiUrl + '/api/Recipes';\r\n\r\n  constructor(private http: HttpClient) {}\r\n\r\n  getRecipes(): Observable<any> {\r\n    return this.http.get<any>(this.apiUrl).pipe(catchError(handleError));\r\n  }\r\n\r\n  getRecipeById(id: any): Observable<any> {\r\n    return this.http.get<any>(`${this.apiUrl}/${id}`).pipe(catchError(handleError));\r\n  }\r\n  createRecipe(recipe: any): Observable<any> {\r\n    return this.http.post<any>(this.apiUrl, recipe).pipe(catchError(handleError));\r\n  }\r\n\r\n  updateRecipe(recipe: any): Observable<any> {\r\n    return this.http.put<any>(this.apiUrl, recipe).pipe(catchError(handleError));\r\n  }\r\n\r\n  deleteRecipe(id: any): Observable<any> {\r\n    return this.http.delete<any>(`${this.apiUrl}/${id}`).pipe(catchError(handleError));\r\n  }\r\n\r\n}\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { NavbarComponent } from '../../shared/components/navbar/navbar.component';\r\nimport { SearchBarComponent } from '../../shared/components/search-bar/search-bar.component';\r\nimport { CardComponent } from './card/card.component';\r\nimport { CarouselComponent } from './carousel/carousel.component';\r\nimport { RecipeAbstraction } from '../../core/interfaces/recipe-abstraction';\r\nimport { RecipesService } from '../../core/services/api/recipes.service';\r\nimport { CommonModule } from '@angular/common';\r\nimport { Router } from '@angular/router';\r\nimport { filterTableData } from '../../core/utils/table-data.utils';\r\nimport { TableData } from '../../core/interfaces/table-data';\r\n\r\n@Component({\r\n  selector: 'app-recipes',\r\n  standalone: true,\r\n  imports: [NavbarComponent, SearchBarComponent, CardComponent, CarouselComponent, CommonModule],\r\n  templateUrl: './recipes.component.html',\r\n  styleUrl: './recipes.component.scss'\r\n})\r\nexport class RecipesComponent implements OnInit{\r\n  recipes: RecipeAbstraction[] = [];\r\n  backUpRecipes: RecipeAbstraction[] = [];\r\n  excludedColumns: string[] = [];\r\n  constructor(private recipeService: RecipesService,  private router: Router) {\r\n    this.getRecipes();\r\n  }\r\n\r\n  ngOnInit(): void {\r\n    this.getRecipes();\r\n  }\r\n\r\n  goTo(): void {\r\n    this.router.navigate(['/recipes/add']);\r\n  }\r\n\r\n  handleSearch(value: string) {\r\n    this.recipes = this.backUpRecipes;\r\n    this.recipes = filterRecipeData(this.recipes, this.excludedColumns, value);\r\n    console.log(this.recipes);\r\n  }\r\n\r\n  private getRecipes(): void {\r\n    this.recipeService.getRecipes().subscribe((res) => {\r\n      this.recipes = res;\r\n      this.backUpRecipes = res;\r\n    });\r\n  }\r\n}\r\n\r\nfunction filterRecipeData(\r\n  data: RecipeAbstraction[],\r\n  excludeColumns: string[],\r\n  filterValue: string\r\n): RecipeAbstraction[] {\r\n  if (!filterValue) {\r\n    return data; // Sin valor de filtro, no filtrar\r\n  }\r\n\r\n  const filter = filterValue.trim().toLowerCase();\r\n\r\n  return data.filter((item) => {\r\n    return Object.keys(item).some((key) => {\r\n      if (excludeColumns.includes(key)) {\r\n        return false;\r\n      }\r\n      const value = item[key as keyof RecipeAbstraction];\r\n      if (typeof value === 'string') {\r\n        return value.toLowerCase().includes(filter);\r\n      }\r\n      return false;\r\n    });\r\n  });\r\n}","<app-navbar></app-navbar>\r\n<div\r\n  class=\"container-fluid d-flex flex-column justify-content-center align-items-center vh-100\"\r\n>\r\n  <div class=\"col-flex justify-content-center align-items-center\">\r\n    <div class=\"container custom-container justify-content-center\">\r\n      <div class=\"row header-row\">\r\n        <div class=\"col\">\r\n          <h1 class=\"view-title\">Recetario</h1>\r\n        </div>\r\n        <div class=\"col\">\r\n          <app-search-bar (search)=\"handleSearch($event)\"></app-search-bar>\r\n        </div>\r\n        <div class=\"col\">\r\n          <button class=\"btn btn-custom\" (click)=\"goTo()\">NUEVA RECETA</button>\r\n        </div>\r\n      </div>\r\n      <div class=\"container justify-content-center align-items-center\">\r\n        <div *ngIf=\"recipes.length === 0\" class=\"row\">\r\n          <div class=\"no-recipe-container\">\r\n            <h2 class=\"text-center\">No hay recetas disponibles</h2>\r\n          </div>\r\n        </div>\r\n        <div *ngIf=\"recipes.length > 0\" class=\"row\">\r\n          <app-carousel [recipes]=\"recipes\"> </app-carousel>\r\n        </div>\r\n      </div>\r\n      <!--app-carousel [recipes]=\"recipes\"> </app-carousel-->\r\n    </div>  \r\n</div>\r\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { CommonModule } from '@angular/common';\r\nimport { UsersService } from '../../../core/services/api/users.service';\r\nimport { SalesChannelsService } from '../../../core/services/api/saleschannels.service';\r\n@Component({\r\n  selector: 'app-event',\r\n  standalone: true,\r\n  imports: [CommonModule],\r\n  templateUrl: './event.component.html',\r\n  styleUrl: './event.component.scss'\r\n})\r\nexport class EventComponent {\r\n  @Input() event: TableData = {};\r\n  @Output() closeEventModal = new EventEmitter<void>();\r\n\r\n  labelTranslation: ColumnTranslations = {\r\n    id: 'ID',\r\n    title: 'Título',\r\n    description: 'Descripción',\r\n    envenDate: 'Fecha',\r\n    user: 'Usuario',\r\n    cost: 'Monto',\r\n    saleChannel: 'Cliente',\r\n  };\r\n\r\n  userData: TableData = {};\r\n  isSale: boolean = false;\r\n  elements: string[] =[];\r\n  splitElementsResult: { leftColumn: string[], rightColumn: string[] } = { leftColumn: [], rightColumn: [] };\r\n\r\n\r\n  constructor(private userService: UsersService, private salesChannelService: SalesChannelsService) {\r\n    \r\n  }\r\n\r\n  ngOnInit() {\r\n    console.log(this.event['title']);\r\n    if(this.event['title'] === \"Venta\"){\r\n      this.isSale = true;\r\n      this.formatDescription();\r\n      console.log(this.elements);\r\n      this.splitElements();\r\n      console.log('Left: ',this.splitElementsResult.leftColumn);\r\n      console.log('Right: ',this.splitElementsResult.rightColumn);\r\n    }\r\n  }\r\n  closeModal() {\r\n    this.closeEventModal.emit();\r\n  }\r\n\r\n  objectKeys(obj: TableData): string[] {\r\n    return Object.keys(obj).filter(key => key !== 'soldBatches' && key !== 'unitsPrice' && key !== 'quantities' && key !== 'description');\r\n  }\r\n  \r\n\r\n  splitKeys(): { leftColumn: string[], rightColumn: string[] } {\r\n    const keys = this.objectKeys(this.event);\r\n    const middleIndex = Math.ceil(keys.length / 2);\r\n    return {\r\n      leftColumn: keys.slice(0, middleIndex),\r\n      rightColumn: keys.slice(middleIndex)\r\n    };\r\n  }\r\n\r\n  translateLabel(column: string): string {\r\n    return this.labelTranslation[column] || column;\r\n  }\r\n\r\n  splitElements(): void {\r\n    const middleIndex = Math.ceil(this.elements.length / 2);\r\n    this.splitElementsResult = {\r\n      leftColumn: this.elements.slice(0, middleIndex),\r\n      rightColumn: this.elements.slice(middleIndex),\r\n    };\r\n  }\r\n\r\n  private formatDescription(){\r\n    this.elements = this.event['description'].split(',');\r\n  }\r\n}\r\n\r\ninterface ColumnTranslations {\r\n  [key: string]: string;\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content modal-content-main\">\r\n      <div\r\n        class=\"modal-header d-flex justify-content-center align-items-center\"\r\n      >\r\n        <h5 class=\"modal-title\">Detalles Evento</h5>\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn-close\"\r\n          aria-label=\"Close\"\r\n          (click)=\"closeModal()\"\r\n        ></button>\r\n      </div>\r\n      <div class=\"modal-body\">\r\n        <div class=\"row\">\r\n          <!-- Columna Izquierda -->\r\n          <div class=\"col\">\r\n            <div *ngFor=\"let key of splitKeys().leftColumn\" class=\"p-2\">\r\n              <div class=\"row row-custom\">\r\n                <div class=\"col-3\">\r\n                  <h3>{{ translateLabel(key) }}:</h3>\r\n                </div>\r\n                <div class=\"col\">\r\n                  <span class=\"data\">{{ event[key] }}</span>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n          <!-- Columna Derecha -->\r\n          <div class=\"col\">\r\n            <div *ngFor=\"let key of splitKeys().rightColumn\" class=\"p-2\">\r\n              <div class=\"row row-custom\">\r\n                <div class=\"col-3\">\r\n                  <h3>{{ translateLabel(key) }}:</h3>\r\n                </div>\r\n                <div class=\"col\">\r\n                  <span *ngIf=\"key === 'user'\" class=\"data\"\r\n                    >{{ event[key][\"name\"] }} {{ event[key][\"surname\"] }} ({{\r\n                      event[key][\"id\"]\r\n                    }})</span\r\n                  >\r\n                  <span *ngIf=\"key === 'saleChannel'\" class=\"data\">{{\r\n                    event[key][\"name\"]\r\n                  }}</span>\r\n                  <span\r\n                    *ngIf=\"key !== 'user' && key !== 'saleChannel'\"\r\n                    class=\"data\"\r\n                  >\r\n                    <div *ngIf=\"key === 'cost'\">${{ event[key] }}</div>\r\n                    <div *ngIf=\"key !== 'cost'\">{{ event[key] }}</div>\r\n                  </span>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n          <div class=\"row\">\r\n            <div class=\"custom-container\">\r\n              <h3 class=\"p-2\">Descripción:</h3>\r\n              <div *ngIf=\"isSale\">\r\n                <div class=\"col p-2\">\r\n                  <ul class=\"p-2\">\r\n                    <!-- Primera columna de elementos -->\r\n                    <li\r\n                      *ngFor=\"let element of splitElementsResult.leftColumn\"\r\n                      class=\"p-2\"\r\n                    >\r\n                      <span>{{ element }}</span>\r\n                    </li>\r\n                  </ul>\r\n                  <ul class=\"p-2\">\r\n                    <!-- Segunda columna de elementos -->\r\n                    <li\r\n                      *ngFor=\"let element of splitElementsResult.rightColumn\"\r\n                      class=\"p-2\"\r\n                    >\r\n                      <span>{{ element }}</span>\r\n                    </li>\r\n                  </ul>\r\n                </div>\r\n              </div>\r\n              <div *ngIf=\"!isSale\">\r\n                <div class=\"col\">\r\n                  <span class=\"p-2\">{{ event[\"description\"] }}</span>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n          <div class=\"modal-footer justify-content-center\">\r\n            <button type=\"button\" class=\"btn btn-custom\" (click)=\"closeModal()\">\r\n              CERRAR\r\n            </button>\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</div>\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { NavbarComponent } from '../../shared/components/navbar/navbar.component';\r\nimport { TableComponent } from '../../shared/components/table/table.component';\r\nimport { TableData } from '../../core/interfaces/table-data';\r\nimport { EventComponent } from './event/event.component';\r\nimport { EventsService } from '../../core/services/api/events.service';\r\nimport { CommonModule } from '@angular/common';\r\n@Component({\r\n  selector: 'app-history',\r\n  standalone: true,\r\n  imports: [NavbarComponent , TableComponent, EventComponent, CommonModule],\r\n  templateUrl: './history.component.html',\r\n  styleUrl: './history.component.scss'\r\n})\r\n\r\nexport class HistoryComponent implements OnInit {\r\n\r\n  selectedEvent: TableData = {};\r\n  openEventModal: boolean = false;\r\n  movements: TableData[] = [];\r\n  excludeColumns: string[] = ['user','description','soldBatches', 'quantities','unitsPrice','saleChannel','cost'];\r\n\r\n  constructor(private eventsService: EventsService) {}\r\n  \r\n  ngOnInit(): void {\r\n    this.getMovements();\r\n  }\r\n\r\n  onRowClicked(event: TableData) {\r\n    this.selectedEvent = event;\r\n    this.openEventModal = true;\r\n  }\r\n\r\n  closeEventModal() {\r\n    this.openEventModal = false;\r\n  }\r\n\r\n  private getMovements() {\r\n    this.eventsService.getEvents().subscribe((movements: TableData[]) => {\r\n      this.movements = movements;\r\n    });\r\n  }\r\n}\r\n","<app-navbar></app-navbar>\r\n<div class=\"container-fluid d-flex flex-column justify-content-center align-items-center vh-100\">\r\n    \r\n    <div class=\"col-flex justify-content-center align-items-center\">\r\n        <div class=\"row header-row\">\r\n            <div class=\"col\">\r\n                <h1 class=\"view-title\">ULTIMOS MOVIMIENTOS</h1>\r\n            </div>\r\n            <div class=\"col d-flex justify-content-end\">\r\n                <button class=\"btn btn-custom\">BUSQUEDA AVANZADA</button>\r\n            </div>\r\n        </div>\r\n\r\n        <app-table [data]=\"movements\" [columnsExcluded]=\"excludeColumns\" (rowClicked)=\"onRowClicked($event)\"></app-table>\r\n\r\n    </div>\r\n</div>\r\n\r\n<app-event *ngIf=\"openEventModal\" [event]=\"selectedEvent\" (closeEventModal)=\"closeEventModal()\"></app-event>","import { Component, EventEmitter, Output } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { UsersService } from '../../../core/services/api/users.service';\r\nimport { ReactiveFormsModule, FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { emailValidator, phoneValidator } from '../../../core/utils/validators';\r\nimport { matchPasswordValidator } from '../../../core/utils/validators';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\n@Component({\r\n  selector: 'app-add-user',\r\n  standalone: true,\r\n  imports: [ReactiveFormsModule, CommonModule],\r\n  templateUrl: './add-user.component.html',\r\n  styleUrl: './add-user.component.scss'\r\n})\r\nexport class AddUserComponent {\r\n  @Output() closeModalEvent = new EventEmitter<void>();\r\n  userForm: FormGroup;\r\n  confirmPassword: string = '';\r\n  fatalError: boolean = false;\r\n  fatalErrorMessage: string = 'Hubo un error al intentar crear el usuario. Por favor, intente nuevamente.';\r\n\r\n  constructor(private userService: UsersService, private formBuilder: FormBuilder) {\r\n    this.userForm = this.formBuilder.group({\r\n      email: ['', [Validators.required, emailValidator]],\r\n      name: ['', [Validators.required,  Validators.pattern(\"^[a-zA-ZÀ-ÿ'\\\\- ]+$\"),]],\r\n      surname: ['', [Validators.required,  Validators.pattern(\"^[a-zA-ZÀ-ÿ'\\\\- ]+$\"),]],\r\n      phone: ['', [Validators.required, phoneValidator]],\r\n      password: ['', Validators.required],\r\n      confirmPassword: ['', Validators.required],\r\n      role: ['', Validators.required]\r\n    }, { validator: matchPasswordValidator() });\r\n  }\r\n\r\n  closeModal() {\r\n    this.closeModalEvent.emit();\r\n  }\r\n\r\n\r\n  onSubmit() {\r\n    if (this.userForm.valid) {\r\n      this.fatalError = false;\r\n      const user: TableData = {\r\n        name: this.userForm.get('name')?.value,\r\n        surname: this.userForm.get('surname')?.value,\r\n        email: this.userForm.get('email')?.value,\r\n        phone: this.userForm.get('phone')?.value,\r\n        password: this.userForm.get('password')?.value ||'', // Password is optional\r\n        role: this.userForm.get('role')?.value\r\n      };\r\n      //Call to backend\r\n      this.userService.createUser(user).subscribe(() => {\r\n        this.closeModalEvent.emit(); // Cerrar el modal\r\n      });\r\n    }\r\n    else {\r\n      this.fatalError = true;\r\n    }\r\n  }\r\n}\r\n","<div class=\"modal modal-bg fade show\" tabindex=\"-1\" style=\"display: block\" aria-modal=\"true\" role=\"dialog\">\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content\">\r\n      <div class=\"modal-header\">\r\n        <h5 class=\"modal-title\">Agregar Usuario</h5>\r\n        <button type=\"button\" class=\"btn-close\" aria-label=\"Close\" (click)=\"closeModal()\"></button>\r\n      </div>\r\n      <form #aux=\"ngForm\" [formGroup]=\"userForm\" (ngSubmit)=\"onSubmit()\">\r\n        <div class=\"modal-body\">\r\n          <div class=\"row\">\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"email\">Email</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input type=\"email\" class=\"form-control\" id=\"email\" name=\"email\" formControlName=\"email\"\r\n                      [ngClass]=\"{ 'is-invalid': (userForm.get('email')?.dirty || userForm.get('email')?.touched || aux.submitted) && userForm.get('email')?.invalid }\" />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\" aux.submitted || (userForm.get('email')?.invalid && (userForm.get('email')?.dirty || userForm.get('email')?.touched))\"\r\n                      class=\"text-danger\">\r\n                      <div *ngIf=\"userForm.get('email')?.errors?.['required']\">Email es requerido.</div>\r\n                      <div\r\n                        *ngIf=\"!userForm.get('email')?.errors?.['required'] && (userForm.get('email')?.errors?.['email'] ||userForm.get('email')?.errors?.['invalidEmail'])\">\r\n                        Formato de email inválido.</div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"name\">Nombre</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input type=\"text\" class=\"form-control\" id=\"name\" name=\"name\" formControlName=\"name\"\r\n                      [ngClass]=\"{ 'is-invalid': (userForm.get('name')?.dirty || userForm.get('name')?.touched || aux.submitted) && userForm.get('name')?.invalid }\" />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"aux.submitted || userForm.get('name')?.invalid && (userForm.get('name')?.dirty || userForm.get('name')?.touched)\"\r\n                      class=\"text-danger\">\r\n                      <div *ngIf=\"userForm.get('name')?.errors?.['required']\">Nombre es requerido.</div>\r\n                      <div\r\n                        *ngIf=\"!userForm.get('name')?.errors?.['required'] && userForm.get('name')?.errors?.['pattern']\">\r\n                        El nombre no debe contener números ni símbolos.</div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"surname\">Apellido</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input type=\"text\" class=\"form-control\" id=\"surname\" name=\"surname\" formControlName=\"surname\"\r\n                      [ngClass]=\"{ 'is-invalid': (userForm.get('surname')?.dirty || userForm.get('surname')?.touched || aux.submitted) && userForm.get('surname')?.invalid }\" />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"aux.submitted || userForm.get('surname')?.invalid && (userForm.get('surname')?.dirty || userForm.get('surname')?.touched)\"\r\n                      class=\"text-danger\">\r\n                      <div *ngIf=\"userForm.get('surname')?.errors?.['required']\">Apellido es requerido.</div>\r\n                      <div\r\n                        *ngIf=\"!userForm.get('surname')?.errors?.['required'] && userForm.get('surname')?.errors?.['pattern']\">\r\n                        El apellido no debe contener números ni símbolos.</div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"phone\">Teléfono</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input type=\"number\" class=\"form-control\" id=\"phone\" name=\"phone\" formControlName=\"phone\"\r\n                      [ngClass]=\"{ 'is-invalid': (userForm.get('phone')?.dirty || userForm.get('phone')?.touched || aux.submitted) && userForm.get('phone')?.invalid }\" />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"(userForm.get('phone')?.invalid && (userForm.get('phone')?.dirty || userForm.get('phone')?.touched)) || (aux.submitted && userForm.get('phone')?.invalid)\"\r\n                      class=\"text-danger\">\r\n                      <div *ngIf=\"userForm.get('phone')?.errors?.['required']\">Teléfono es requerido.</div>\r\n                      <div *ngIf=\"!userForm.get('phone')?.errors?.['required'] && userForm.get('phone')?.errors?.['invalidPhone']\">Formato de teléfono inválido.</div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-5\">\r\n                    <label for=\"password\">Contraseña</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input type=\"password\" class=\"form-control\" id=\"password\" name=\"password\" formControlName=\"password\"\r\n                      [ngClass]=\"{ 'is-invalid': (userForm.get('password')?.dirty || userForm.get('password')?.touched || aux.submitted) && userForm.get('password')?.invalid }\" />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"(userForm.get('password')?.invalid && (userForm.get('password')?.dirty || userForm.get('password')?.touched)) || (aux.submitted && userForm.get('password')?.invalid)\"\r\n                      class=\"text-danger\">\r\n                      Contraseña es requerida.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-5\">\r\n                    <label for=\"confirmPassword\">Confirmar Contraseña</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input type=\"password\" class=\"form-control\" id=\"confirmPassword\" formControlName=\"confirmPassword\"\r\n                      [ngClass]=\"{ 'is-invalid': (userForm.get('confirmPassword')?.dirty || userForm.get('confirmPassword')?.touched || aux.submitted) && userForm.get('confirmPassword')?.invalid }\" />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"(userForm.get('confirmPassword')?.invalid && (userForm.get('confirmPassword')?.dirty || userForm.get('confirmPassword')?.touched)) || (aux.submitted && userForm.get('confirmPassword')?.invalid)\"\r\n                      class=\"text-danger\">\r\n                      Confirmar Contraseña es requerida.\r\n                    </div>\r\n                    <!-- Mostrar error si las contraseñas no coinciden -->\r\n                    <div\r\n                      *ngIf=\"userForm.hasError('passwordMismatch') && (userForm.get('confirmPassword')?.dirty || userForm.get('confirmPassword')?.touched)\"\r\n                      class=\"text-danger\">\r\n                      Las contraseñas no coinciden.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <label for=\"role\">Rol:</label>\r\n                <div class=\"d-flex flex-column align-items-center\">\r\n                  <div class=\"form-check\">\r\n                    <input class=\"form-check-input\" type=\"radio\" id=\"roleAdmin\" name=\"role\" value=\"Admin\"\r\n                      formControlName=\"role\"\r\n                      [ngClass]=\"{ 'is-invalid': (userForm.get('role')?.dirty || userForm.get('role')?.touched || aux.submitted) && userForm.get('role')?.invalid }\" />\r\n                    <label class=\"form-check-label\" for=\"roleAdmin\">Admin</label>\r\n                  </div>\r\n                  <div class=\"form-check\">\r\n                    <input class=\"form-check-input\" type=\"radio\" id=\"roleUser\" name=\"role\" value=\"User\"\r\n                      formControlName=\"role\"\r\n                      [ngClass]=\"{ 'is-invalid': (userForm.get('role')?.dirty || userForm.get('role')?.touched || aux.submitted) && userForm.get('role')?.invalid }\" />\r\n                    <label class=\"form-check-label\" for=\"roleUser\">User</label>\r\n                  </div>\r\n                </div>\r\n                <div class=\"error-container\">\r\n                  <div\r\n                    *ngIf=\"(userForm.get('role')?.invalid && (userForm.get('role')?.dirty || userForm.get('role')?.touched)) || (aux.submitted && userForm.get('role')?.invalid)\"\r\n                    class=\"text-danger\">\r\n                    Rol es requerido.\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"modal-footer justify-content-center\">\r\n          <button type=\"submit\" class=\"btn btn-custom\">GUARDAR</button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>","import { Component, EventEmitter, Input, Output, OnChanges, SimpleChanges } from '@angular/core';\r\nimport { User } from '../../../core/interfaces/entities/user';\r\nimport { ReactiveFormsModule, FormBuilder, FormGroup, Validators, AbstractControl, ValidationErrors, FormsModule } from '@angular/forms';\r\nimport { CommonModule } from '@angular/common';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { UsersService } from '../../../core/services/api/users.service';\r\nimport { phoneValidator, emailValidator, matchPasswordValidator } from '../../../core/utils/validators';\r\nimport { DeleteModalComponent } from '../../../shared/components/delete-modal/delete-modal.component';\r\nimport { AuthService } from '../../../core/services/auth/auth.service';\r\n@Component({\r\n  selector: 'app-user',\r\n  standalone: true,\r\n  imports: [ReactiveFormsModule, CommonModule, FormsModule, DeleteModalComponent],\r\n  templateUrl: './user.component.html',\r\n  styleUrls: ['./user.component.scss']\r\n})\r\nexport class UserComponent implements OnChanges {\r\n  @Input() userInput: TableData = {};\r\n  @Output() closeUserModalEvent = new EventEmitter<void>();\r\n\r\n  userForm: FormGroup;\r\n  isToggled: boolean = false;\r\n  confirmDeleteModal: boolean = false;\r\n  myId: any;\r\n\r\n  constructor(private UsersService: UsersService, private fb: FormBuilder, private AuthService: AuthService) { \r\n    this.userForm = this.fb.group({\r\n      email: [{ value: '', disabled: !this.isToggled }, [Validators.required, emailValidator]],\r\n      name: [{ value: '', disabled: !this.isToggled }, [Validators.required,  Validators.pattern(\"^[a-zA-ZÀ-ÿ'\\\\- ]+$\"),]],\r\n      surname: [{ value: '', disabled: !this.isToggled }, [Validators.required,  Validators.pattern(\"^[a-zA-ZÀ-ÿ'\\\\- ]+$\"),]],\r\n      phone: [{ value: '', disabled: !this.isToggled }, [Validators.required, phoneValidator]],\r\n      password: [{ value: '', disabled: !this.isToggled }],\r\n      confirmPassword: [{ value: '', disabled: !this.isToggled }],\r\n      role: [{ value: '', disabled: !this.isToggled }, Validators.required]\r\n    },{ validator: matchPasswordValidator() });\r\n  }\r\n\r\n  ngOnInit(){\r\n    this.myId = this.AuthService.getUserId();\r\n  }\r\n\r\n  ngOnChanges(changes: SimpleChanges) {\r\n    if (changes['userInput'] && changes['userInput'].currentValue) {\r\n      const user = this.transformUserInput(this.userInput);\r\n      this.userForm.patchValue(user);\r\n      this.userForm.get('role')?.setValue(user.role);\r\n    }\r\n  }\r\n\r\n  toggleEditMode() {\r\n    this.isToggled = !this.isToggled;\r\n    if (this.isToggled) {\r\n      this.userForm.enable(); // Habilita todos los controles del formulario\r\n    } else {\r\n      this.userForm.disable(); // Deshabilita todos los controles del formulario\r\n    }\r\n  }\r\n\r\n  closeModal() {\r\n    this.closeUserModalEvent.emit();\r\n  }\r\n\r\n  onSubmit() {\r\n    if (this.userForm.valid) {;\r\n      const userToSave: TableData = {\r\n        id: this.userInput['id'],\r\n        name: this.userForm.get('name')?.value,\r\n        surname: this.userForm.get('surname')?.value,\r\n        email: this.userForm.get('email')?.value,\r\n        phone: this.userForm.get('phone')?.value,\r\n        role: this.userForm.get('role')?.value,\r\n        password: this.userForm.get('password')?.value || this.userInput['password'] // La contraseña es opcional\r\n      };\r\n      //console.log('User to save:', userToSave);\r\n      // Call backend\r\n      this.UsersService.updateUser(userToSave).subscribe(\r\n        () => {\r\n          this.closeUserModalEvent.emit();\r\n        }\r\n      );\r\n    } else {\r\n      this.userForm.markAllAsTouched();\r\n    }\r\n  }\r\n\r\n  confirmDelete() {\r\n    this.confirmDeleteModal = true;\r\n  }\r\n\r\n  closeDeleteModal() {\r\n    this.confirmDeleteModal = false;\r\n  }\r\n\r\n  deleteUser() {\r\n    //Call backend\r\n    //console.log('User to delete:', this.userInput['id']);\r\n    this.UsersService.deleteUser(this.userInput['id']).subscribe(\r\n      response => {\r\n        // Aquí puedes manejar la respuesta si es necesario\r\n        //console.log('Usuario eliminado:', response);\r\n        // Cerrar el modal de confirmación de eliminación\r\n        this.confirmDeleteModal = false;\r\n        // Emitir el evento para cerrar el modal del usuario\r\n        this.closeUserModalEvent.emit();\r\n      },\r\n      error => {\r\n        // Aquí puedes manejar cualquier error que ocurra durante la eliminación\r\n        console.error('Error al eliminar el usuario:', error);\r\n      }\r\n    );\r\n  }\r\n\r\n  isMe(){\r\n    return this.userInput['id'] === this.myId;\r\n  }\r\n  private transformUserInput(data: TableData): User {\r\n    //console.log('Data:', data);\r\n    return {\r\n      id: data['id'],\r\n      name: data['name'] ?? '',\r\n      surname: data['surname'] ?? '',\r\n      email: data['email'] ?? '',\r\n      phone: data['phone'] ?? '',\r\n      password: '',  // No mostramos la contraseña\r\n      role: data['role'] ?? ''\r\n    };\r\n  }\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content modal-content-main\">\r\n      <div\r\n        class=\"modal-header d-flex justify-content-center align-items-center\"\r\n      >\r\n        <div class=\"row w-100\">\r\n          <div class=\"col\">\r\n            <h5 class=\"modal-title\">Detalles Usuario</h5>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-center\">\r\n            <div class=\"form-check form-switch\">\r\n              <label class=\"form-check-label\" for=\"flexSwitchCheckDefault\"\r\n                >Editar</label\r\n              >\r\n              <input\r\n                class=\"form-check-input custom-switch\"\r\n                type=\"checkbox\"\r\n                id=\"flexSwitchCheckDefault\"\r\n                (change)=\"toggleEditMode()\"\r\n              />\r\n            </div>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-end\">\r\n            <button\r\n              type=\"button\"\r\n              class=\"btn-close\"\r\n              aria-label=\"Close\"\r\n              (click)=\"closeModal()\"\r\n            ></button>\r\n          </div>\r\n        </div>\r\n      </div>\r\n      <form #aux=\"ngForm\" [formGroup]=\"userForm\" (ngSubmit)=\"onSubmit()\">\r\n        <div class=\"modal-body\">\r\n          <div class=\"row\">\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"email\">Email</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"email\"\r\n                      class=\"form-control\"\r\n                      id=\"email\"\r\n                      name=\"email\"\r\n                      formControlName=\"email\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('email')?.dirty ||\r\n                            userForm.get('email')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('email')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (userForm.get('email')?.invalid &&\r\n                          (userForm.get('email')?.dirty ||\r\n                            userForm.get('email')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div *ngIf=\"userForm.get('email')?.errors?.['required']\">\r\n                        Email es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!userForm.get('email')?.errors?.['required'] && (userForm.get('email')?.errors?.['email'] ||userForm.get('email')?.errors?.['invalidEmail'])\"\r\n                      >\r\n                        Formato de email inválido.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"name\">Nombre</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"name\"\r\n                      name=\"name\"\r\n                      formControlName=\"name\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('name')?.dirty ||\r\n                            userForm.get('name')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('name')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (userForm.get('name')?.invalid &&\r\n                          (userForm.get('name')?.dirty ||\r\n                            userForm.get('name')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div *ngIf=\"userForm.get('name')?.errors?.['required']\">\r\n                        Nombre es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!userForm.get('name')?.errors?.['required'] && userForm.get('name')?.errors?.['pattern']\"\r\n                      >\r\n                        El nombre no debe contener números ni símbolos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"surname\">Apellido</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"surname\"\r\n                      name=\"surname\"\r\n                      formControlName=\"surname\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('surname')?.dirty ||\r\n                            userForm.get('surname')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('surname')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (userForm.get('surname')?.invalid &&\r\n                          (userForm.get('surname')?.dirty ||\r\n                            userForm.get('surname')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"userForm.get('surname')?.errors?.['required']\"\r\n                      >\r\n                        Apellido es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!userForm.get('surname')?.errors?.['required'] && userForm.get('surname')?.errors?.['pattern']\"\r\n                      >\r\n                        El apellido no debe contener números ni símbolos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"phone\">Teléfono</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"phone\"\r\n                      name=\"phone\"\r\n                      formControlName=\"phone\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('phone')?.dirty ||\r\n                            userForm.get('phone')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('phone')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        (userForm.get('phone')?.invalid &&\r\n                          (userForm.get('phone')?.dirty ||\r\n                            userForm.get('phone')?.touched)) ||\r\n                        (aux.submitted && userForm.get('phone')?.invalid)\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div *ngIf=\"userForm.get('phone')?.errors?.['required']\">\r\n                        Teléfono es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"userForm.get('phone')?.errors?.['invalidPhone']\"\r\n                      >\r\n                        Formato de teléfono inválido.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-5\">\r\n                    <label for=\"password\">Contraseña</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"password\"\r\n                      class=\"form-control\"\r\n                      id=\"password\"\r\n                      name=\"password\"\r\n                      formControlName=\"password\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('password')?.dirty ||\r\n                            userForm.get('password')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('password')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        userForm.get('password')?.value &&\r\n                        userForm.get('password')?.invalid &&\r\n                        (userForm.get('password')?.dirty ||\r\n                          userForm.get('password')?.touched ||\r\n                          aux.submitted)\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Ingrese una contraseña válida.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-5\">\r\n                    <label for=\"confirmPassword\">Confirmar Contraseña</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"password\"\r\n                      class=\"form-control\"\r\n                      id=\"confirmPassword\"\r\n                      formControlName=\"confirmPassword\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('confirmPassword')?.dirty ||\r\n                            userForm.get('confirmPassword')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('confirmPassword')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div *ngIf=\"userForm.get('password')?.value\">\r\n                      <div\r\n                        *ngIf=\"\r\n                          !userForm.get('confirmPassword')?.value &&\r\n                          (aux.submitted ||\r\n                            (userForm.get('confirmPassword')?.dirty &&\r\n                            userForm.get('confirmPassword')?.touched))\r\n                        \"\r\n                        class=\"text-danger\"\r\n                      >\r\n                        Confirmar Contraseña es requerida.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"userForm.get('confirmPassword')?.value && userForm.hasError('passwordMismatch') && (aux.submitted || userForm.get('confirmPassword')?.dirty || userForm.get('confirmPassword')?.touched)\"\r\n                        class=\"text-danger\"\r\n                      >\r\n                        Las contraseñas no coinciden.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <label for=\"role\">Rol:</label>\r\n                <div class=\"d-flex flex-column align-items-center\">\r\n                  <div class=\"form-check\">\r\n                    <input\r\n                      class=\"form-check-input\"\r\n                      type=\"radio\"\r\n                      id=\"roleAdmin\"\r\n                      name=\"role\"\r\n                      value=\"Admin\"\r\n                      formControlName=\"role\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('role')?.dirty ||\r\n                            userForm.get('role')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('role')?.invalid\r\n                      }\"\r\n                    />\r\n                    <label class=\"form-check-label\" for=\"roleAdmin\"\r\n                      >Admin</label\r\n                    >\r\n                  </div>\r\n                  <div class=\"form-check\">\r\n                    <input\r\n                      class=\"form-check-input\"\r\n                      type=\"radio\"\r\n                      id=\"roleUser\"\r\n                      name=\"role\"\r\n                      value=\"User\"\r\n                      formControlName=\"role\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('role')?.dirty ||\r\n                            userForm.get('role')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('role')?.invalid\r\n                      }\"\r\n                    />\r\n                    <label class=\"form-check-label\" for=\"roleUser\">User</label>\r\n                  </div>\r\n                </div>\r\n                <div class=\"error-container\">\r\n                  <div\r\n                    *ngIf=\"\r\n                      (userForm.get('role')?.invalid &&\r\n                        (userForm.get('role')?.dirty ||\r\n                          userForm.get('role')?.touched)) ||\r\n                      (aux.submitted && userForm.get('role')?.invalid)\r\n                    \"\r\n                    class=\"text-danger\"\r\n                  >\r\n                    Rol es requerido.\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"modal-footer justify-content-center\">\r\n          <button type=\"submit\" class=\"btn btn-custom\">GUARDAR</button>\r\n          <button *ngIf=\"!isMe()\" type=\"button\" class=\"btn btn-danger\" (click)=\"confirmDelete()\">Eliminar</button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n\r\n<app-delete-modal\r\n  *ngIf=\"confirmDeleteModal\"\r\n  [headerMessage]=\"'Eliminar Usuario'\"\r\n  [bodyMessage]=\"'¿Estás seguro que deseas borrar este Usuario?'\"\r\n  (cancel)=\"closeDeleteModal()\"\r\n  (confirm)=\"deleteUser()\"\r\n/>  \r\n","import { Component, OnInit, } from '@angular/core';\r\nimport { NavbarComponent } from '../../shared/components/navbar/navbar.component';\r\nimport { TableData } from '../../core/interfaces/table-data';\r\nimport { TableComponent } from '../../shared/components/table/table.component';\r\nimport { SearchBarComponent } from '../../shared/components/search-bar/search-bar.component';\r\nimport { AddUserComponent } from './add-user/add-user.component';\r\nimport { CommonModule } from '@angular/common';\r\nimport { UserComponent } from './user/user.component';\r\nimport { UsersService } from '../../core/services/api/users.service';\r\nimport { filterTableData } from '../../core/utils/table-data.utils';\r\n\r\n@Component({\r\n  selector: 'app-users',\r\n  standalone: true,\r\n  imports: [NavbarComponent, TableComponent, SearchBarComponent, \r\n            AddUserComponent, CommonModule, UserComponent],\r\n  templateUrl: './users.component.html',\r\n  styleUrl: './users.component.scss'\r\n})\r\nexport class UsersComponent implements OnInit{\r\n\r\n  columnsExcluded: string[] = ['transactions','password'];\r\n\r\n  backUpUsers: TableData[] = [];\r\n  users: TableData[] = [];\r\n  addUserModal: boolean = false;\r\n  openUserModal: boolean = false;\r\n  selectedUser: any;\r\n\r\n  constructor(private UsersService: UsersService) { }\r\n\r\n  ngOnInit(): void {\r\n    this.getUsers();\r\n  }\r\n\r\n\r\n  openAddUserModal() {\r\n    this.addUserModal = true;\r\n  }\r\n  closeAddUserModal() {\r\n    this.getUsers();\r\n    this.addUserModal = false;\r\n  }\r\n\r\n\r\n  onRowClicked(user: TableData) {\r\n    this.selectedUser = user;\r\n    this.openUserModal = true;\r\n  }\r\n\r\n  closeUserModal() {\r\n    this.getUsers();\r\n    this.openUserModal = false;\r\n  }\r\n\r\n  handleSearch(value: string) {\r\n    this.users = this.backUpUsers;\r\n    this.users = filterTableData(this.users, this.columnsExcluded, value);\r\n  }\r\n\r\n  private getUsers() {\r\n    this.UsersService.getUsers().subscribe((data: any) => {\r\n      this.backUpUsers = data;\r\n      this.users = data;\r\n    });\r\n  }\r\n\r\n  \r\n}\r\n","<app-navbar></app-navbar>\r\n<div class=\"container-fluid d-flex flex-column justify-content-center align-items-center vh-100\">\r\n    \r\n    <div class=\"col-flex justify-content-center align-items-center\">\r\n        <div class=\"row header-row\">\r\n            <div class=\"col\">\r\n                <h1 class=\"view-title\">Usuarios</h1>\r\n            </div>\r\n            <div class=\"col\">\r\n               <app-search-bar (search)=\"handleSearch($event)\"></app-search-bar>\r\n            </div>\r\n            <div class=\"col d-flex justify-content-center\">\r\n                <a type=\"button\" class=\"btn btn-custom\"  (click)=\"openAddUserModal()\">AGREGAR USUARIO</a>\r\n            </div>\r\n        </div>\r\n\r\n        <app-table [data]=\"users\" [columnsExcluded]=\"columnsExcluded\" (rowClicked)=\"onRowClicked($event)\"></app-table>\r\n\r\n    </div>\r\n</div>\r\n\r\n\r\n<app-add-user *ngIf=\"addUserModal\"  (closeModalEvent)=\"closeAddUserModal()\"></app-add-user>\r\n<app-user *ngIf=\"openUserModal\" [userInput]=\"selectedUser\" (closeUserModalEvent)=\"closeUserModal()\"></app-user>","import { Component, EventEmitter, Output } from '@angular/core';\r\nimport {\r\n  ReactiveFormsModule,\r\n  FormBuilder,\r\n  FormGroup,\r\n  Validators,\r\n} from '@angular/forms';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ProvidersService } from '../../../core/services/api/providers.service';\r\nimport {\r\n  emailValidator,\r\n  phoneValidator,\r\n  cuitValidator,\r\n} from '../../../core/utils/validators';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\n\r\n@Component({\r\n  selector: 'app-add-provider',\r\n  standalone: true,\r\n  imports: [ReactiveFormsModule, CommonModule],\r\n  templateUrl: './add-provider.component.html',\r\n  styleUrl: './add-provider.component.scss',\r\n})\r\nexport class AddProviderComponent {\r\n  @Output() closeModalEvent = new EventEmitter<void>();\r\n  providerForm: FormGroup;\r\n\r\n  provider: TableData = {};\r\n\r\n  constructor(\r\n    private providersService: ProvidersService,\r\n    private formBuilder: FormBuilder\r\n  ) {\r\n    this.providerForm = this.formBuilder.group({\r\n      name: ['', [Validators.required,  Validators.pattern('^[a-zA-ZÀ-ÿ0-9 ]*$')]],\r\n      email: ['', [Validators.required, emailValidator]],\r\n      phone: ['', [phoneValidator]],\r\n      cuit: ['', [Validators.required, cuitValidator]],\r\n      cp: ['', [Validators.required,  Validators.pattern('^(?!0000)[0-9]{4}$')]], // Ejemplo para un CP de 4-6 dígitos\r\n      address: ['', [Validators.required]],\r\n      line2: [''],\r\n      description: [''],\r\n    });\r\n  }\r\n\r\n  closeModal() {\r\n    this.closeModalEvent.emit();\r\n  }\r\n\r\n  onSubmit() {\r\n    if (this.providerForm.valid) {\r\n      const fullAddress = `${this.providerForm.get('cp')?.value}|${\r\n        this.providerForm.get('address')?.value\r\n      }|${this.providerForm.get('line2')?.value}`\r\n        .trim()\r\n        .replace(/|\\s*$/, '');\r\n      this.provider = {\r\n        name: this.providerForm.get('name')?.value,\r\n        email: this.providerForm.get('email')?.value,\r\n        phone: this.providerForm.get('phone')?.value,\r\n        cuit: this.providerForm.get('cuit')?.value,\r\n        address: fullAddress,\r\n        description: this.providerForm.get('description')?.value || '',\r\n      };\r\n      //Call to backend\r\n      this.providersService.createProvider(this.provider).subscribe(\r\n        (response) => {\r\n          this.closeModal();\r\n        },\r\n        (error) => {\r\n          console.error('Error al crear el proveedor:', error);\r\n        }\r\n      );\r\n    } else {\r\n      console.error('Formulario inválido. Revise los campos.');\r\n    }\r\n  }\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content\">\r\n      <div class=\"modal-header\">\r\n        <h5 class=\"modal-title\">Agregar Proveedor</h5>\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn-close\"\r\n          aria-label=\"Close\"\r\n          (click)=\"closeModal()\"\r\n        ></button>\r\n      </div>\r\n      <form\r\n        #aux=\"ngForm\"\r\n        [formGroup]=\"providerForm\"\r\n        (ngSubmit)=\"onSubmit()\"\r\n        noValidate\r\n      >\r\n        <div class=\"modal-body\">\r\n          <div class=\"row\">\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"name\" class=\"title\">Nombre</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"name\"\r\n                      name=\"name\"\r\n                      formControlName=\"name\"\r\n                      placeholder=\"Nombre\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('name')?.dirty ||\r\n                            providerForm.get('name')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('name')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"(aux.submitted || providerForm.get('name')?.dirty || providerForm.get('name')?.touched) && providerForm.get('name')?.invalid\"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div *ngIf=\"providerForm.get('name')?.errors?.['required']\">\r\n                        Nombre es requerido.\r\n                      </div>\r\n                      <div *ngIf=\"providerForm.get('name')?.errors?.['pattern']\">\r\n                        El nombre no debe contener números ni símbolos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>              \r\n             \r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-1\">\r\n                    <label for=\"email\" class=\"title\">Email</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"email\"\r\n                      class=\"form-control\"\r\n                      id=\"email\"\r\n                      name=\"email\"\r\n                      formControlName=\"email\"\r\n                      placeholder=\"Correo electrónico\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('email')?.dirty ||\r\n                            providerForm.get('email')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('email')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (providerForm.get('email')?.invalid &&\r\n                          (providerForm.get('email')?.dirty ||\r\n                            providerForm.get('email')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"providerForm.get('email')?.errors?.['required']\"\r\n                      >\r\n                        Email es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!providerForm.get('email')?.errors?.['required'] && (providerForm.get('email')?.errors?.['email'] || providerForm.get('email')?.errors?.['invalidEmail'])\"\r\n                      >\r\n                        Formato de email inválido.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"phone\" class=\"title\">Teléfono</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"number\"\r\n                      class=\"form-control\"\r\n                      id=\"phone\"\r\n                      name=\"phone\"\r\n                      formControlName=\"phone\"\r\n                      placeholder=\"Teléfono\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('phone')?.dirty ||\r\n                            providerForm.get('phone')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('phone')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        (providerForm.get('phone')?.invalid &&\r\n                          (providerForm.get('phone')?.dirty ||\r\n                          providerForm.get('phone')?.touched)) ||\r\n                        (aux.submitted && providerForm.get('phone')?.invalid)\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div *ngIf=\"providerForm.get('phone')?.errors?.['required']\">\r\n                        Teléfono es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"providerForm.get('phone')?.errors?.['invalidPhone']\"\r\n                      >\r\n                        Formato de teléfono inválido.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"cuit\" class=\"title\">CUIT</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"number\"\r\n                      class=\"form-control\"\r\n                      id=\"cuit\"\r\n                      name=\"cuit\"\r\n                      formControlName=\"cuit\"\r\n                      placeholder=\"000000000000\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('cuit')?.dirty ||\r\n                            providerForm.get('cuit')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('cuit')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (providerForm.get('cuit')?.invalid &&\r\n                          (providerForm.get('cuit')?.dirty ||\r\n                            providerForm.get('cuit')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"providerForm.get('cuit')?.errors?.['required']\"\r\n                      >\r\n                        CUIT es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!providerForm.get('cuit')?.errors?.['required'] && providerForm.get('cuit')?.errors?.['pattern']\"\r\n                      >\r\n                        El CUIT no debe contener letras ni símbolos, y debe\r\n                        contener 11 digitos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"col\">\r\n              <div class=\"form-group\">\r\n                <div class=\"row align-items-center py-2\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"address\" class=\"title\">Direccion</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"address\"\r\n                      formControlName=\"address\"\r\n                      placeholder=\"Direccion\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('address')?.dirty ||\r\n                            providerForm.get('address')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('address')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        (aux.submitted && providerForm.get('address')?.invalid) ||\r\n                        (providerForm.get('address')?.invalid &&\r\n                          (providerForm.get('address')?.dirty ||\r\n                            providerForm.get('address')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Se necesita una direccion.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-1\">\r\n                    <label for=\"cp\" class=\"title\">CP</label>\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"cp\"\r\n                      name=\"cp\"\r\n                      formControlName=\"cp\"\r\n                      placeholder=\"0000\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('cp')?.dirty ||\r\n                            providerForm.get('cp')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('cp')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <label for=\"line2\" class=\"title\">Notas</label>\r\n                  </div>\r\n                  <div class=\"col-7\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"line2\"\r\n                      formControlName=\"line2\"\r\n                      placeholder=\"Entre calles 00 y 00\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('line2')?.dirty ||\r\n                            providerForm.get('line2')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('line2')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        providerForm.get('line2')?.invalid &&\r\n                        (providerForm.get('line2')?.dirty ||\r\n                          providerForm.get('line2')?.touched)\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Revise las notas.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"\r\n                        (aux.submitted && providerForm.get('cp')?.invalid) ||\r\n                        (providerForm.get('cp')?.invalid &&\r\n                          (providerForm.get('cp')?.dirty ||\r\n                            providerForm.get('cp')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      CP es requerido.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group\">\r\n                <label\r\n                  for=\"description\"\r\n                  class=\"title\"\r\n                  style=\"padding-bottom: 0.3rem\"\r\n                  >Descripción</label\r\n                >\r\n                <textarea\r\n                  class=\"form-control desc\"\r\n                  id=\"description\"\r\n                  name=\"description\"\r\n                  formControlName=\"description\"\r\n                  maxlength=\"200\"\r\n                  [ngClass]=\"{\r\n                    'is-invalid':\r\n                      (providerForm.get('description')?.dirty ||\r\n                        providerForm.get('description')?.touched ||\r\n                        aux.submitted) &&\r\n                      providerForm.get('description')?.invalid\r\n                  }\"\r\n                >\r\n                </textarea>\r\n                <div class=\"error-container\">\r\n                  <div\r\n                    *ngIf=\"\r\n                      providerForm.get('description')?.invalid &&\r\n                      (providerForm.get('description')?.dirty ||\r\n                        providerForm.get('description')?.touched)\r\n                    \"\r\n                    class=\"text-danger\"\r\n                  >\r\n                    Descripción no admite símbolos.\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"modal-footer justify-content-center\">\r\n          <button type=\"submit\" class=\"btn btn-custom\">GUARDAR</button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n","import { Component, EventEmitter, Input, Output, OnChanges, SimpleChanges } from '@angular/core';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { ReactiveFormsModule, FormBuilder, FormGroup, Validators, AbstractControl, ValidationErrors, FormsModule } from '@angular/forms';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ProvidersService } from '../../../core/services/api/providers.service';\r\nimport { phoneValidator, emailValidator, cuitValidator } from '../../../core/utils/validators';\r\nimport { DeleteModalComponent } from '../../../shared/components/delete-modal/delete-modal.component';\r\n@Component({\r\n  selector: 'app-provider',\r\n  standalone: true,\r\n  imports: [ReactiveFormsModule, CommonModule, FormsModule, DeleteModalComponent],\r\n  templateUrl: './provider.component.html',\r\n  styleUrl: './provider.component.scss'\r\n})\r\nexport class ProviderComponent {\r\n  @Input() providerInput: TableData = {};\r\n  @Output() closeProviderModalEvent = new EventEmitter<void>();\r\n\r\n  providerForm: FormGroup;\r\n  isToggled: boolean = false;\r\n  confirmDeleteModal: boolean = false;\r\n\r\n  constructor(private providersService: ProvidersService, private fb: FormBuilder) {\r\n    this.providerForm = this.fb.group({\r\n      name: [{ value: '', disabled: !this.isToggled }, [Validators.required,  Validators.pattern('^[a-zA-ZÀ-ÿ0-9 ]*$')]],\r\n      email: [{ value: '', disabled: !this.isToggled }, [Validators.required, emailValidator]],\r\n      phone: [{ value: '', disabled: !this.isToggled }, [Validators.required, phoneValidator]],\r\n      cuit: [{ value: '', disabled: !this.isToggled }, [Validators.required, cuitValidator]],\r\n      cp: [{ value: '', disabled: !this.isToggled }, [Validators.required, Validators.pattern('^(?!0000)[0-9]{4}$')]],\r\n      address: [{ value: '', disabled: !this.isToggled },[Validators.required]],\r\n      line2: [{ value: '', disabled: !this.isToggled }],\r\n      description: [{ value: '', disabled: !this.isToggled }]\r\n    });\r\n  }\r\n\r\n  ngOnChanges(changes: SimpleChanges) {\r\n    if (changes['providerInput'] && changes['providerInput'].currentValue) {\r\n      //console.log(this.transformProviderInput(this.providerInput));\r\n      this.providerForm.patchValue(this.transformProviderInput(this.providerInput));\r\n    }\r\n  }\r\n\r\n  toggleEditMode() {\r\n    this.isToggled = !this.isToggled;\r\n    if (this.isToggled) {\r\n      this.providerForm.enable(); // Habilita todos los controles del formulario\r\n    } else {\r\n      this.providerForm.disable(); // Deshabilita todos los controles del formulario\r\n    }\r\n  }\r\n \r\n  provider: any;\r\n  onSubmit() {\r\n    //console.log(this.providerForm);\r\n    if (this.providerForm.valid) {\r\n      const fullAddress = `${this.providerForm.get('cp')?.value}|${\r\n        this.providerForm.get('address')?.value\r\n      }|${this.providerForm.get('line2')?.value}`\r\n        .trim()\r\n        .replace(/|\\s*$/, '');\r\n      this.provider = {\r\n        id: this.providerInput['id'],\r\n        name: this.providerForm.get('name')?.value,\r\n        email: this.providerForm.get('email')?.value,\r\n        phone: this.providerForm.get('phone')?.value,\r\n        cuit: this.providerForm.get('cuit')?.value,\r\n        address: fullAddress,\r\n        description: this.providerForm.get('description')?.value || '' \r\n      };\r\n      //Call to backend\r\n      this.providersService.updateProvider(this.provider).subscribe(\r\n        (response) => {\r\n          //console.log('Proveedor actualizado:', response);\r\n          this.closeModal();\r\n        },\r\n        (error) => {\r\n          console.error('Error al actualizar el proveedor:', error);\r\n        }\r\n      );\r\n    } else {\r\n      this.providerForm.markAllAsTouched();\r\n    }\r\n  }\r\n\r\n  closeModal() {\r\n    this.closeProviderModalEvent.emit();\r\n  }\r\n\r\n  confirmDelete() {\r\n    this.confirmDeleteModal = true;\r\n  }\r\n\r\n  closeDeleteModal() {\r\n    this.confirmDeleteModal = false;\r\n  }\r\n\r\n  deleteProvider() {\r\n    //Call backend\r\n    this.providersService.deleteProvider(this.providerInput['id']).subscribe(\r\n      (response) => {\r\n        //console.log('Proveedor eliminado:', response);\r\n        this.confirmDeleteModal = false;\r\n        this.closeModal();\r\n      },\r\n      (error) => {\r\n        console.error('Error al eliminar el proveedor:', error);\r\n      }\r\n    );\r\n    \r\n  }\r\n\r\n  \r\n  private transformProviderInput(data: TableData): any {\r\n    const [cp = '', address = '', line2 = ''] = data['address']?.split('|') || [];\r\n    return {\r\n      id: data['id'] ?? null,\r\n      name: data['name'] ?? '',\r\n      email: data['email'] ?? '',\r\n      phone: data['phone'] ?? '',\r\n      cuit: data['cuit'] ?? '',\r\n      cp: cp.trim(),\r\n      address: address.trim(),\r\n      line2: line2.trim(),\r\n      description: data['description']\r\n    };\r\n  }\r\n\r\n\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content modal-content-main\">\r\n      <div\r\n        class=\"modal-header d-flex justify-content-center align-items-center\"\r\n      >\r\n        <div class=\"row w-100\">\r\n          <div class=\"col\">\r\n            <h5 class=\"modal-title\">Detalles Proveedor</h5>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-center\">\r\n            <div class=\"form-check form-switch\">\r\n              <label class=\"form-check-label\" for=\"flexSwitchCheckDefault\"\r\n                >Editar</label\r\n              >\r\n              <input\r\n                class=\"form-check-input custom-switch\"\r\n                type=\"checkbox\"\r\n                id=\"flexSwitchCheckDefault\"\r\n                (change)=\"toggleEditMode()\"\r\n              />\r\n            </div>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-end\">\r\n            <button\r\n              type=\"button\"\r\n              class=\"btn-close\"\r\n              aria-label=\"Close\"\r\n              (click)=\"closeModal()\"\r\n            ></button>\r\n          </div>\r\n        </div>\r\n      </div>\r\n      <form\r\n        #aux=\"ngForm\"\r\n        [formGroup]=\"providerForm\"\r\n        (ngSubmit)=\"onSubmit()\"\r\n        noValidate\r\n      >\r\n        <div class=\"modal-body\">\r\n          <div class=\"row\">\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"name\" class=\"title\">Nombre</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"name\"\r\n                      name=\"name\"\r\n                      formControlName=\"name\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('name')?.dirty ||\r\n                            providerForm.get('name')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('name')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (providerForm.get('name')?.invalid &&\r\n                          (providerForm.get('name')?.dirty ||\r\n                            providerForm.get('name')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"providerForm.get('name')?.errors?.['required']\"\r\n                      >\r\n                        Nombre es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!providerForm.get('name')?.errors?.['required'] && providerForm.get('name')?.errors?.['pattern']\"\r\n                      >\r\n                        El nombre no debe contener números ni símbolos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-1\">\r\n                    <label for=\"email\" class=\"title\">Email</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"email\"\r\n                      class=\"form-control\"\r\n                      id=\"email\"\r\n                      name=\"email\"\r\n                      formControlName=\"email\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('email')?.dirty ||\r\n                            providerForm.get('email')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('email')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (providerForm.get('email')?.invalid &&\r\n                          (providerForm.get('email')?.dirty ||\r\n                            providerForm.get('email')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"providerForm.get('email')?.errors?.['required']\"\r\n                      >\r\n                        Email es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!providerForm.get('email')?.errors?.['required'] && (providerForm.get('email')?.errors?.['email'] || providerForm.get('email')?.errors?.['invalidEmail'])\"\r\n                      >\r\n                        Formato de email inválido.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"phone\" class=\"title\">Teléfono</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"number\"\r\n                      class=\"form-control\"\r\n                      id=\"phone\"\r\n                      name=\"phone\"\r\n                      formControlName=\"phone\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('phone')?.dirty ||\r\n                            providerForm.get('phone')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('phone')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        (aux.submitted && providerForm.get('phone')?.invalid) ||\r\n                        (providerForm.get('phone')?.invalid &&\r\n                          (providerForm.get('phone')?.dirty ||\r\n                            providerForm.get('phone')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Teléfono es requerido.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"cuit\" class=\"title\">CUIT</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"number\"\r\n                      class=\"form-control\"\r\n                      id=\"cuit\"\r\n                      name=\"cuit\"\r\n                      formControlName=\"cuit\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('cuit')?.dirty ||\r\n                            providerForm.get('cuit')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('cuit')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (providerForm.get('cuit')?.invalid &&\r\n                          (providerForm.get('cuit')?.dirty ||\r\n                            providerForm.get('cuit')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"providerForm.get('cuit')?.errors?.['required']\"\r\n                      >\r\n                        CUIT es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!providerForm.get('cuit')?.errors?.['required'] && providerForm.get('cuit')?.errors?.['pattern']\"\r\n                      >\r\n                        El CUIT no debe contener letras ni símbolos, y debe\r\n                        contener 11 digitos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"col\">\r\n              <div class=\"form-group\">\r\n                <div class=\"row align-items-center py-2\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"address\" class=\"title\">Direccion</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"address\"\r\n                      formControlName=\"address\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('address')?.dirty ||\r\n                            providerForm.get('address')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('address')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        (aux.submitted &&\r\n                          providerForm.get('address')?.invalid) ||\r\n                        (providerForm.get('address')?.invalid &&\r\n                          (providerForm.get('address')?.dirty ||\r\n                            providerForm.get('address')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Se necesita una direccion.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-1\">\r\n                    <label for=\"cp\" class=\"title\">CP</label>\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"cp\"\r\n                      name=\"cp\"\r\n                      formControlName=\"cp\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('cp')?.dirty ||\r\n                            providerForm.get('cp')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('cp')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <label for=\"line2\" class=\"title\">Notas</label>\r\n                  </div>\r\n                  <div class=\"col-7\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"line2\"\r\n                      formControlName=\"line2\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('line2')?.dirty ||\r\n                            providerForm.get('linea2')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('linea2')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        providerForm.get('line2')?.invalid &&\r\n                        (providerForm.get('line2')?.dirty ||\r\n                          providerForm.get('line2')?.touched)\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Revise las notas.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"\r\n                        (aux.submitted && providerForm.get('cp')?.invalid) ||\r\n                        (providerForm.get('cp')?.invalid &&\r\n                          (providerForm.get('cp')?.dirty ||\r\n                            providerForm.get('cp')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      CP es requerido.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group\">\r\n                <label\r\n                  for=\"description\"\r\n                  class=\"title\"\r\n                  style=\"padding-bottom: 0.3rem\"\r\n                  >Descripción</label\r\n                >\r\n                <textarea\r\n                  class=\"form-control desc\"\r\n                  id=\"description\"\r\n                  name=\"description\"\r\n                  formControlName=\"description\"\r\n                  maxlength=\"200\"\r\n                  [ngClass]=\"{\r\n                    'is-invalid':\r\n                      (providerForm.get('description')?.dirty ||\r\n                        providerForm.get('description')?.touched ||\r\n                        aux.submitted) &&\r\n                      providerForm.get('description')?.invalid\r\n                  }\"\r\n                >\r\n                </textarea>\r\n                <div class=\"error-container\">\r\n                  <div\r\n                    *ngIf=\"\r\n                      providerForm.get('description')?.invalid &&\r\n                      (providerForm.get('description')?.dirty ||\r\n                        providerForm.get('description')?.touched)\r\n                    \"\r\n                    class=\"text-danger\"\r\n                  >\r\n                    Descripción no admite símbolos.\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"modal-footer justify-content-center\">\r\n          <button type=\"submit\" class=\"btn btn-custom\" [disabled]=\"!isToggled\">\r\n            GUARDAR\r\n          </button>\r\n          <button\r\n            type=\"button\"\r\n            class=\"btn btn-danger\"\r\n            (click)=\"confirmDelete()\"\r\n          >\r\n            BORRAR\r\n          </button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n\r\n<app-delete-modal\r\n  *ngIf=\"confirmDeleteModal\"\r\n  [headerMessage]=\"'Eliminar Proveedor'\"\r\n  [bodyMessage]=\"'¿Estás seguro que deseas borrar este Proveedor?'\"\r\n  (cancel)=\"closeDeleteModal()\"\r\n  (confirm)=\"deleteProvider()\"\r\n>\r\n</app-delete-modal>\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { NavbarComponent } from '../../shared/components/navbar/navbar.component';\r\nimport { TableComponent } from '../../shared/components/table/table.component';\r\nimport { SearchBarComponent } from '../../shared/components/search-bar/search-bar.component';\r\nimport { TableData } from '../../core/interfaces/table-data';\r\nimport { ProvidersService } from '../../core/services/api/providers.service';\r\nimport { AddProviderComponent } from './add-provider/add-provider.component';\r\nimport { ProviderComponent } from './provider/provider.component';\r\nimport { ProductionComponent } from \"../production/production.component\";\r\nimport { CommonModule } from '@angular/common';\r\nimport { filterTableData } from '../../core/utils/table-data.utils';\r\n\r\n@Component({\r\n  selector: 'app-providers',\r\n  standalone: true,\r\n  imports: [CommonModule, NavbarComponent, TableComponent, SearchBarComponent, AddProviderComponent, ProviderComponent, ProductionComponent],\r\n  templateUrl: './providers.component.html',\r\n  styleUrl: './providers.component.scss'\r\n})\r\nexport class ProvidersComponent implements OnInit {\r\n\r\n  //Call to backend\r\n  //providers = this.ProvidersService.getProviders();\r\n\r\n  providers: TableData[] = [];\r\n  backUpProviders: TableData[] = [];\r\n\r\n  addProviderModal: boolean = false;\r\n  openProviderModal: boolean = false;\r\n  selectedProvider: any;\r\n\r\n  exportColumns: string[] = ['description','cuit'];\r\n  constructor(private ProvidersService: ProvidersService) { }\r\n\r\n  ngOnInit(): void {\r\n    this.getProviders();\r\n  }\r\n\r\n  openAddProviderModal() {\r\n    this.addProviderModal = true;\r\n  }\r\n  closeAddProviderModal() {\r\n    this.getProviders();\r\n    this.addProviderModal = false;\r\n  }\r\n  onRowClicked(prov: TableData) {\r\n    this.selectedProvider = prov;\r\n    this.openProviderModal = true;\r\n  }\r\n\r\n  handleSearch(value: string) {\r\n    this.providers = this.backUpProviders;\r\n    this.providers = filterTableData(this.providers, this.exportColumns, value);\r\n  }\r\n\r\n  closeProviderModal() {\r\n    this.getProviders();\r\n    this.openProviderModal = false;\r\n  }\r\n\r\n\r\n  private getProviders() {\r\n    this.ProvidersService.getProviders().subscribe((res: any) => {\r\n      this.backUpProviders = res;\r\n      this.providers = res;\r\n    });\r\n  }\r\n}\r\n","<app-navbar></app-navbar>\r\n<div class=\"container-fluid d-flex flex-column justify-content-center align-items-center vh-100\">\r\n    \r\n    <div class=\"col-flex justify-content-center align-items-center\">\r\n        <div class=\"row header-row\">\r\n            <div class=\"col\">\r\n                <h1 class=\"view-title\">Poveedores</h1>\r\n            </div>\r\n            <div class=\"col\">\r\n               <app-search-bar (search)=\"handleSearch($event)\"></app-search-bar>\r\n            </div>\r\n            <div class=\"col d-flex justify-content-center\">\r\n                <button class=\"btn btn-custom\" (click)=\"openAddProviderModal()\">AGREGAR PROVEEDOR</button>\r\n            </div>\r\n        </div>\r\n\r\n        <app-table [data]=\"providers\" [columnsExcluded]=\"exportColumns\" (rowClicked)=\"onRowClicked($event)\"></app-table>\r\n\r\n    </div>\r\n</div>\r\n\r\n<app-add-provider *ngIf=\"addProviderModal\"  (closeModalEvent)=\"closeAddProviderModal()\"></app-add-provider>\r\n<app-provider *ngIf=\"openProviderModal\" [providerInput]=\"selectedProvider\" (closeProviderModalEvent)=\"closeProviderModal()\"></app-provider>","import { Component, EventEmitter, output, Output } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ReactiveFormsModule, FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { emailValidator, phoneValidator, cuitValidator } from '../../../core/utils/validators';\r\nimport { SalesChannelsService } from '../../../core/services/api/saleschannels.service';\r\n\r\n@Component({\r\n  selector: 'app-add-client',\r\n  standalone: true,\r\n  imports: [CommonModule, ReactiveFormsModule],\r\n  templateUrl: './add-client.component.html',\r\n  styleUrl: './add-client.component.scss'\r\n})\r\nexport class AddClientComponent {\r\n  @Output() closeModalEvent = new EventEmitter<void>();\r\n  clientForm: FormGroup;\r\n  confirmPassword: string = '';\r\n\r\n  constructor(private salesChannelService: SalesChannelsService, private formBuilder: FormBuilder) {\r\n    this.clientForm = this.formBuilder.group({\r\n      name: ['', [Validators.required,  Validators.pattern('^[a-zA-ZÀ-ÿ0-9 ]*$')]],\r\n      cuit: ['', [Validators.required, cuitValidator]],\r\n      email: ['', [Validators.required, emailValidator]],\r\n      phone: ['', [Validators.required, phoneValidator]],\r\n      cp: ['', [Validators.required, Validators.pattern('^(?!0000)[0-9]{4}$')]], // Ejemplo para un CP de 4-6 dígitos\r\n      address: ['', [Validators.required]],\r\n      line2: [''],\r\n    });\r\n  }\r\n\r\n  closeModal() {\r\n    this.closeModalEvent.emit();\r\n  }\r\n\r\n  onSubmit() {\r\n    if (this.clientForm.valid) {\r\n      const fullAddress = this.clientForm.get('cp')?.value +'|'+ this.clientForm.get('address')?.value + '|' + this.clientForm.get('line2')?.value;\r\n      const sc ={\r\n        name: this.clientForm.get('name')?.value,  \r\n        cuit: this.clientForm.get('cuit')?.value,\r\n        email: this.clientForm.get('email')?.value,\r\n        phone: this.clientForm.get('phone')?.value,\r\n        addres: fullAddress\r\n      }\r\n      //Call to backend\r\n    this.salesChannelService.createSaleChannel(sc).subscribe(\r\n      (response) => {\r\n        this.closeModalEvent.emit(); // Cerrar el modal\r\n      },\r\n      (error) => {\r\n        console.error('Error al crear el canal de venta:', error);\r\n      }\r\n    );\r\n    }\r\n    else {\r\n      this.clientForm.markAllAsTouched();\r\n      console.error('Formulario inválido. Revise los campos.');\r\n    }\r\n    \r\n  }\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content\">\r\n      <div class=\"modal-header\">\r\n        <h5 class=\"modal-title\">Agregar Cliente</h5>\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn-close\"\r\n          aria-label=\"Close\"\r\n          (click)=\"closeModal()\"\r\n        ></button>\r\n      </div>\r\n      <form #aux=\"ngForm\" [formGroup]=\"clientForm\" (ngSubmit)=\"onSubmit()\">\r\n        <div class=\"modal-body\">\r\n          <div class=\"row\">\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"form-group row-container\">\r\n                    <div class=\"row align-items-center\">\r\n                      <div class=\"col-2\">\r\n                        <label for=\"name\">Nombre</label>\r\n                      </div>\r\n                      <div class=\"col\">\r\n                        <input\r\n                          type=\"text\"\r\n                          class=\"form-control\"\r\n                          id=\"name\"\r\n                          name=\"name\"\r\n                          formControlName=\"name\"\r\n                          [ngClass]=\"{\r\n                            'is-invalid':\r\n                              (clientForm.get('name')?.dirty ||\r\n                                clientForm.get('name')?.touched ||\r\n                                aux.submitted) &&\r\n                              clientForm.get('name')?.invalid\r\n                          }\"\r\n                        />\r\n                      </div>\r\n                      <div class=\"error-container\">\r\n                        <div\r\n                          *ngIf=\"\r\n                            aux.submitted ||\r\n                            (clientForm.get('name')?.invalid &&\r\n                              (clientForm.get('name')?.dirty ||\r\n                                clientForm.get('name')?.touched))\r\n                          \"\r\n                          class=\"text-danger\"\r\n                        >\r\n                          <div\r\n                            *ngIf=\"clientForm.get('name')?.errors?.['required']\"\r\n                          >\r\n                            Nombre es requerido.\r\n                          </div>\r\n                          <div\r\n                            *ngIf=\"!clientForm.get('name')?.errors?.['required'] && clientForm.get('name')?.errors?.['pattern']\"\r\n                          >\r\n                            El nombre no debe contener números ni símbolos.\r\n                          </div>\r\n                        </div>\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"col-1\">\r\n                    <label for=\"email\">Email</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"email\"\r\n                      class=\"form-control\"\r\n                      id=\"email\"\r\n                      name=\"email\"\r\n                      formControlName=\"email\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (clientForm.get('email')?.dirty ||\r\n                            clientForm.get('email')?.touched ||\r\n                            aux.submitted) &&\r\n                          clientForm.get('email')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (clientForm.get('email')?.invalid &&\r\n                          (clientForm.get('email')?.dirty ||\r\n                            clientForm.get('email')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"clientForm.get('email')?.errors?.['required']\"\r\n                      >\r\n                        Email es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!clientForm.get('email')?.errors?.['required'] && (clientForm.get('email')?.errors?.['email'] ||clientForm.get('email')?.errors?.['invalidEmail'])\"\r\n                      >\r\n                        Formato de email inválido.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"surname\">CUIT</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"number\"\r\n                      class=\"form-control\"\r\n                      id=\"cuit\"\r\n                      name=\"cuit\"\r\n                      formControlName=\"cuit\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (clientForm.get('cuit')?.dirty ||\r\n                            clientForm.get('cuit')?.touched ||\r\n                            aux.submitted) &&\r\n                          clientForm.get('cuit')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (clientForm.get('cuit')?.invalid &&\r\n                          (clientForm.get('cuit')?.dirty ||\r\n                            clientForm.get('cuit')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div *ngIf=\"clientForm.get('cuit')?.errors?.['required']\">\r\n                        El CUIT es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!clientForm.get('cuit')?.errors?.['required'] && clientForm.get('cuit')?.errors?.['pattern']\"\r\n                      >\r\n                        El cuit debe no debe contener simbolos ni letras, y una\r\n                        longitude de 17 digitos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"phone\">Teléfono</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"number\"\r\n                      class=\"form-control\"\r\n                      id=\"phone\"\r\n                      name=\"telefono\"\r\n                      formControlName=\"phone\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (clientForm.get('phone')?.dirty ||\r\n                            clientForm.get('phone')?.touched ||\r\n                            aux.submitted) &&\r\n                          clientForm.get('phone')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        (aux.submitted && clientForm.get('phone')?.invalid) ||\r\n                        (clientForm.get('phone')?.invalid &&\r\n                          (clientForm.get('phone')?.dirty ||\r\n                            clientForm.get('phone')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Teléfono es requerido.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"address\" class=\"title\">Direccion</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"address\"\r\n                      formControlName=\"address\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (clientForm.get('address')?.dirty ||\r\n                            clientForm.get('address')?.touched ||\r\n                            aux.submitted) &&\r\n                          clientForm.get('address')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                      (aux.submitted && clientForm.get('address')?.invalid) ||\r\n                        (clientForm.get('address')?.invalid &&\r\n                          (clientForm.get('address')?.dirty ||\r\n                            clientForm.get('address')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Se necesita una direccion.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-1\">\r\n                    <label for=\"cp\" class=\"title\">CP</label>\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"cp\"\r\n                      name=\"cp\"\r\n                      formControlName=\"cp\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (clientForm.get('cp')?.dirty ||\r\n                            clientForm.get('cp')?.touched ||\r\n                            aux.submitted) &&\r\n                          clientForm.get('cp')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <label for=\"line2\" class=\"title\">Notas</label>\r\n                  </div>\r\n                  <div class=\"col-7\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"line2\"\r\n                      formControlName=\"line2\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (clientForm.get('line2')?.dirty ||\r\n                            clientForm.get('linea2')?.touched ||\r\n                            aux.submitted) &&\r\n                          clientForm.get('linea2')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        clientForm.get('line2')?.invalid &&\r\n                        (clientForm.get('line2')?.dirty ||\r\n                          clientForm.get('line2')?.touched)\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Revise las notas.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"\r\n                      (aux.submitted && clientForm.get('cp')?.invalid) ||\r\n                        (clientForm.get('cp')?.invalid &&\r\n                          (clientForm.get('cp')?.dirty ||\r\n                            clientForm.get('cp')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      CP es requerido.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"modal-footer justify-content-center\">\r\n          <button type=\"submit\" class=\"btn btn-custom\">GUARDAR</button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n","import { Component, EventEmitter, Input, Output, SimpleChanges } from '@angular/core';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { ReactiveFormsModule, FormBuilder, FormGroup, Validators, AbstractControl, ValidationErrors, FormsModule } from '@angular/forms';\r\nimport { CommonModule } from '@angular/common';\r\nimport { SalesChannelsService } from '../../../core/services/api/saleschannels.service';\r\nimport { emailValidator, phoneValidator, cuitValidator } from '../../../core/utils/validators';\r\nimport { DeleteModalComponent } from '../../../shared/components/delete-modal/delete-modal.component';\r\n@Component({\r\n  selector: 'app-client',\r\n  standalone: true,\r\n  imports: [CommonModule, ReactiveFormsModule, DeleteModalComponent],\r\n  templateUrl: './client.component.html',\r\n  styleUrl: './client.component.scss'\r\n})\r\nexport class ClientComponent {\r\n  @Input() clientInput: TableData = {};\r\n  @Output() closeClientModalEvent = new EventEmitter<void>();\r\n\r\n  clientForm: FormGroup;\r\n  isToggled: boolean = false;\r\n  confirmDeleteModal: boolean = false;\r\n\r\n  constructor(private salesChannelService: SalesChannelsService, private formBuilder: FormBuilder) {\r\n    this.clientForm = this.formBuilder.group({\r\n      name: [{ value: '', disabled: !this.isToggled }, [Validators.required,  Validators.pattern('^[a-zA-ZÀ-ÿ0-9 ]*$')]],\r\n      cuit: [{ value: '', disabled: !this.isToggled }, [Validators.required, cuitValidator]],\r\n      email: [{ value: '', disabled: !this.isToggled }, [Validators.required, emailValidator]],\r\n      phone: [{ value: '', disabled: !this.isToggled }, [Validators.required, phoneValidator]],\r\n      cp: [{ value: '', disabled: !this.isToggled }, [Validators.required, Validators.pattern('^(?!0000)[0-9]{4}$')]], // Ejemplo para un CP de 4-6 dígitos\r\n      address: [{ value: '', disabled: !this.isToggled }, [Validators.required]],\r\n      line2: [{ value: '', disabled: !this.isToggled }],\r\n    });\r\n  }\r\n\r\n  ngOnChanges(changes: SimpleChanges) {\r\n    if (changes['clientInput'] && changes['clientInput'].currentValue) {\r\n      this.clientForm.patchValue(this.transformClientInput(this.clientInput));\r\n    }\r\n  }\r\n\r\n  toggleEditMode() {\r\n    this.isToggled = !this.isToggled;\r\n    if (this.isToggled) {\r\n      this.clientForm.enable(); // Habilita todos los controles del formulario\r\n    } else {\r\n      this.clientForm.disable(); // Deshabilita todos los controles del formulario\r\n    }\r\n  }\r\n \r\n  onSubmit() {\r\n    if (this.clientForm.valid) {\r\n      const cp = this.clientForm.get('cp')?.value;\r\n      const direccion = this.clientForm.get('address')?.value;\r\n      const linea2 = this.clientForm.get('line2')?.value; \r\n      const fullAddress = `${cp}|${direccion}|${linea2}`.trim().replace(/|\\s*$/, '');\r\n      const saleChannel = {\r\n        id: this.clientInput['id'],\r\n        name: this.clientForm.get('name')?.value,\r\n        email: this.clientForm.get('email')?.value,\r\n        phone: this.clientForm.get('phone')?.value,\r\n        cuit: this.clientForm.get('cuit')?.value,\r\n        addres: fullAddress,\r\n      };\r\n      //Call to backend\r\n      this.salesChannelService.updateSaleChannel(saleChannel).subscribe(\r\n        () => {\r\n          this.closeClientModalEvent.emit();\r\n        }\r\n      );\r\n    } else {\r\n      this.clientForm.markAllAsTouched();\r\n    }\r\n  }\r\n\r\n  \r\n  closeModal() {\r\n    this.closeClientModalEvent.emit();\r\n  }\r\n\r\n  confirmDelete() {\r\n    this.confirmDeleteModal = true;\r\n  }\r\n\r\n  closeDeleteModal() {\r\n    this.confirmDeleteModal = false;\r\n  }\r\n\r\n  deleteClient() {\r\n    //Call backend\r\n    this.salesChannelService.deleteSaleChannel(this.clientInput['id']).subscribe(\r\n      () => {\r\n        this.closeClientModalEvent.emit();\r\n      }\r\n    );\r\n    \r\n  }\r\n\r\n  private transformClientInput(data: TableData): any {\r\n    const [cp = '', address = '', line2 = ''] = data['addres']?.split('|') || [];\r\n\r\n    return {\r\n      id: data['id'] ?? null,\r\n      name: data['name'] ?? '',\r\n      email: data['email'] ?? '',\r\n      phone: data['phone'] ?? '',\r\n      cuit: data['cuit'] ?? '',\r\n      cp: cp.trim(),\r\n      address: address.trim(),\r\n      line2: line2.trim(),\r\n    };\r\n  }\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content modal-content-main\">\r\n      <div\r\n        class=\"modal-header d-flex justify-content-center align-items-center\"\r\n      >\r\n        <div class=\"row w-100\">\r\n          <div class=\"col\">\r\n            <h5 class=\"modal-title\">Detalles Proveedor</h5>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-center\">\r\n            <div class=\"form-check form-switch\">\r\n              <label class=\"form-check-label\" for=\"flexSwitchCheckDefault\"\r\n                >Editar</label\r\n              >\r\n              <input\r\n                class=\"form-check-input custom-switch\"\r\n                type=\"checkbox\"\r\n                id=\"flexSwitchCheckDefault\"\r\n                (change)=\"toggleEditMode()\"\r\n              />\r\n            </div>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-end\">\r\n            <button\r\n              type=\"button\"\r\n              class=\"btn-close\"\r\n              aria-label=\"Close\"\r\n              (click)=\"closeModal()\"\r\n            ></button>\r\n          </div>\r\n        </div>\r\n      </div>\r\n      <form #aux=\"ngForm\" [formGroup]=\"clientForm\" (ngSubmit)=\"onSubmit()\">\r\n        <div class=\"modal-body\">\r\n          <div class=\"row\">\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"form-group row-container\">\r\n                    <div class=\"row align-items-center\">\r\n                      <div class=\"col-2\">\r\n                        <label for=\"name\">Nombre</label>\r\n                      </div>\r\n                      <div class=\"col\">\r\n                        <input\r\n                          type=\"text\"\r\n                          class=\"form-control\"\r\n                          id=\"name\"\r\n                          name=\"name\"\r\n                          formControlName=\"name\"\r\n                          [ngClass]=\"{\r\n                            'is-invalid':\r\n                              (clientForm.get('name')?.dirty ||\r\n                                clientForm.get('name')?.touched ||\r\n                                aux.submitted) &&\r\n                              clientForm.get('name')?.invalid\r\n                          }\"\r\n                        />\r\n                      </div>\r\n                      <div class=\"error-container\">\r\n                        <div\r\n                          *ngIf=\"\r\n                            aux.submitted ||\r\n                            (clientForm.get('name')?.invalid &&\r\n                              (clientForm.get('name')?.dirty ||\r\n                                clientForm.get('name')?.touched))\r\n                          \"\r\n                          class=\"text-danger\"\r\n                        >\r\n                          <div\r\n                            *ngIf=\"clientForm.get('name')?.errors?.['required']\"\r\n                          >\r\n                            Nombre es requerido.\r\n                          </div>\r\n                          <div\r\n                            *ngIf=\"!clientForm.get('name')?.errors?.['required'] && clientForm.get('name')?.errors?.['pattern']\"\r\n                          >\r\n                            El nombre no debe contener números ni símbolos.\r\n                          </div>\r\n                        </div>\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"col-1\">\r\n                    <label for=\"email\">Email</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"email\"\r\n                      class=\"form-control\"\r\n                      id=\"email\"\r\n                      name=\"email\"\r\n                      formControlName=\"email\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (clientForm.get('email')?.dirty ||\r\n                            clientForm.get('email')?.touched ||\r\n                            aux.submitted) &&\r\n                          clientForm.get('email')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (clientForm.get('email')?.invalid &&\r\n                          (clientForm.get('email')?.dirty ||\r\n                            clientForm.get('email')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"clientForm.get('email')?.errors?.['required']\"\r\n                      >\r\n                        Email es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!clientForm.get('email')?.errors?.['required'] && (clientForm.get('email')?.errors?.['email'] ||clientForm.get('email')?.errors?.['invalidEmail'])\"\r\n                      >\r\n                        Formato de email inválido.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"surname\">CUIT</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"number\"\r\n                      class=\"form-control\"\r\n                      id=\"cuit\"\r\n                      name=\"cuit\"\r\n                      formControlName=\"cuit\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (clientForm.get('cuit')?.dirty ||\r\n                            clientForm.get('cuit')?.touched ||\r\n                            aux.submitted) &&\r\n                          clientForm.get('cuit')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (clientForm.get('cuit')?.invalid &&\r\n                          (clientForm.get('cuit')?.dirty ||\r\n                            clientForm.get('cuit')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div *ngIf=\"clientForm.get('cuit')?.errors?.['required']\">\r\n                        El CUIT es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!clientForm.get('cuit')?.errors?.['required'] && clientForm.get('cuit')?.errors?.['pattern']\"\r\n                      >\r\n                        El cuit debe no debe contener simbolos ni letras, y una\r\n                        longitude de 17 digitos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"phone\">Teléfono</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"phone\"\r\n                      name=\"telefono\"\r\n                      formControlName=\"phone\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (clientForm.get('phone')?.dirty ||\r\n                            clientForm.get('phone')?.touched ||\r\n                            aux.submitted) &&\r\n                          clientForm.get('phone')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        (aux.submitted  && clientForm.get('phones')?.invalid)||\r\n                        (clientForm.get('phone')?.invalid &&\r\n                          (clientForm.get('phone')?.dirty ||\r\n                            clientForm.get('phone')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Teléfono es requerido.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"address\" class=\"title\">Direccion</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"address\"\r\n                      formControlName=\"address\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (clientForm.get('address')?.dirty ||\r\n                            clientForm.get('address')?.touched ||\r\n                            aux.submitted) &&\r\n                          clientForm.get('address')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        (aux.submitted  && clientForm.get('address')?.invalid)||\r\n                        (clientForm.get('address')?.invalid &&\r\n                          (clientForm.get('address')?.dirty ||\r\n                            clientForm.get('address')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Se necesita una direccion.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-1\">\r\n                    <label for=\"cp\" class=\"title\">CP</label>\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"cp\"\r\n                      name=\"cp\"\r\n                      formControlName=\"cp\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (clientForm.get('cp')?.dirty ||\r\n                            clientForm.get('cp')?.touched ||\r\n                            aux.submitted) &&\r\n                          clientForm.get('cp')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <label for=\"line2\" class=\"title\">Notas</label>\r\n                  </div>\r\n                  <div class=\"col-7\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"line2\"\r\n                      formControlName=\"line2\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (clientForm.get('line2')?.dirty ||\r\n                            clientForm.get('linea2')?.touched ||\r\n                            aux.submitted) &&\r\n                          clientForm.get('linea2')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        clientForm.get('line2')?.invalid &&\r\n                        (clientForm.get('line2')?.dirty ||\r\n                          clientForm.get('line2')?.touched)\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Revise las notas.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"\r\n                        (aux.submitted && clientForm.get('cp')?.invalid) ||\r\n                        (clientForm.get('cp')?.invalid &&\r\n                          (clientForm.get('cp')?.dirty ||\r\n                            clientForm.get('cp')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      CP es requerido.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"modal-footer justify-content-center\">\r\n          <button type=\"submit\" class=\"btn btn-custom\" [disabled]=\"!isToggled\">\r\n            GUARDAR\r\n          </button>\r\n          <button\r\n            type=\"button\"\r\n            class=\"btn btn-danger\"\r\n            (click)=\"confirmDelete()\"\r\n          >\r\n            BORRAR\r\n          </button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n<app-delete-modal\r\n  *ngIf=\"confirmDeleteModal\"\r\n  [headerMessage]=\"'Eliminar Cliente'\"\r\n  [bodyMessage]=\"'¿Estás seguro que deseas borrar este Cliente?'\"\r\n  (cancel)=\"closeDeleteModal()\"\r\n  (confirm)=\"deleteClient()\"\r\n/>  ","import { Injectable } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { Observable, catchError, map} from 'rxjs';\r\nimport { handleError } from '../../utils/api-error-handler.utils';\r\nimport { TableData } from '../../interfaces/table-data';\r\nimport { mapToTableData } from '../../utils/mapping.utils';\r\nimport { environment } from '../../../../evironments/environment';\r\n\r\n@Injectable({\r\n  providedIn: 'root'\r\n})\r\nexport class ClientsService {\r\n\r\n  private apiUrl = environment.apiUrl + '/api/SalesChannels';\r\n\r\n  constructor(private http: HttpClient) {}\r\n\r\n  getClients(): Observable<TableData[]> {\r\n    return this.http.get<any[]>(this.apiUrl).pipe(map(data => mapToTableData(data)),catchError(handleError));\r\n  }\r\n\r\n  getClientById(id: number): Observable<any> {\r\n    return this.http.get<any>(`${this.apiUrl}/${id}`).pipe(map(data => mapToTableData(data)),catchError(handleError));\r\n  }\r\n  createClient(client: any): Observable<any> {\r\n    return this.http.post<any>(this.apiUrl, client).pipe(catchError(handleError));\r\n  }\r\n\r\n  updateClient(client: any): Observable<any> {\r\n    return this.http.put<any>(this.apiUrl, client).pipe(catchError(handleError));\r\n  }\r\n\r\n  deleteClient(id: number): Observable<any> {\r\n    return this.http.delete<any>(`${this.apiUrl}/${id}`).pipe(catchError(handleError));\r\n  }\r\n\r\n\r\n}\r\n","import { Component,  OnInit } from '@angular/core';\r\nimport { NavbarComponent } from '../../shared/components/navbar/navbar.component';\r\nimport { TableComponent } from '../../shared/components/table/table.component';\r\nimport { SearchBarComponent } from '../../shared/components/search-bar/search-bar.component';\r\nimport { TableData } from '../../core/interfaces/table-data';\r\nimport { AddClientComponent } from './add-client/add-client.component';\r\nimport { ClientComponent} from './client/client.component';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ClientsService } from '../../core/services/api/clients.service';\r\nimport { filterTableData } from '../../core/utils/table-data.utils';\r\n\r\n@Component({\r\n  selector: 'app-clients',\r\n  standalone: true,\r\n  imports: [NavbarComponent, TableComponent, SearchBarComponent, AddClientComponent, ClientComponent, CommonModule],\r\n  templateUrl: './clients.component.html',\r\n  styleUrl: './clients.component.scss'\r\n})\r\nexport class ClientsComponent implements OnInit {\r\n\r\n  clients: TableData[] = [];\r\n  backUpClients: TableData[] = [];\r\n  //Modales\r\n  addClientModal: boolean = false;\r\n  openClientModal: boolean = false;\r\n  selectedClient: any;\r\n  exportColumns: string[] = ['description','cuit'];\r\n\r\n  constructor(private ClientsService: ClientsService) { }\r\n\r\n\r\n  ngOnInit(): void {\r\n    this.getClients();\r\n  }\r\n\r\n  openAddClientModal() {\r\n    this.addClientModal = true;\r\n  }\r\n  closeAddClientModal() {\r\n    this.getClients();\r\n    this.addClientModal = false;\r\n  }\r\n\r\n  onRowClicked(user: TableData) {\r\n    this.selectedClient = user;\r\n    this.openClientModal = true;\r\n  }\r\n\r\n  closeClientModal() {\r\n    this.getClients();\r\n    this.openClientModal = false;\r\n  }\r\n\r\n  handleSearch(value: string) {\r\n    this.clients = this.backUpClients;\r\n    this.clients = filterTableData(this.clients, this.exportColumns, value);\r\n  }\r\n\r\n  private getClients() {\r\n    this.ClientsService.getClients().subscribe((data: any) => {\r\n      this.clients = data;\r\n      this.backUpClients = data;\r\n    });\r\n  }\r\n  \r\n}\r\n","<app-navbar></app-navbar>\r\n<div class=\"container-fluid d-flex flex-column justify-content-center align-items-center vh-100\">\r\n    \r\n    <div class=\"col-flex justify-content-center align-items-center\">\r\n        <div class=\"row header-row\">\r\n            <div class=\"col\">\r\n                <h1 class=\"view-title\">Clientes</h1>\r\n            </div>\r\n            <div class=\"col\">\r\n               <app-search-bar (search)=\"handleSearch($event)\"></app-search-bar>\r\n            </div>\r\n            <div class=\"col d-flex justify-content-center\">\r\n                <button class=\"btn btn-custom\" (click)=\"openAddClientModal()\">AGREGAR CLIENTE</button>\r\n            </div>\r\n        </div>\r\n\r\n        <app-table [data]=\"clients\" (rowClicked)=\"onRowClicked($event)\"></app-table>\r\n\r\n    </div>\r\n</div>\r\n\r\n<app-add-client *ngIf=\"addClientModal\"  (closeModalEvent)=\"closeAddClientModal()\"></app-add-client>\r\n<app-client *ngIf=\"openClientModal\" [clientInput]=\"selectedClient\" (closeClientModalEvent)=\"closeClientModal()\"></app-client>","import * as i1 from '@angular/common';\nimport { isPlatformServer, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { forwardRef, EventEmitter, afterNextRender, PLATFORM_ID, Component, ChangeDetectionStrategy, ViewEncapsulation, Inject, Input, Output, ContentChildren, ContentChild, NgModule } from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { Header, PrimeTemplate, SharedModule } from 'primeng/api';\nimport { DomHandler } from 'primeng/dom';\nconst _c0 = [[[\"p-header\"]]];\nconst _c1 = [\"p-header\"];\nfunction Editor_div_1_ng_container_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainer(0);\n  }\n}\nfunction Editor_div_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\", 3);\n    i0.ɵɵprojection(1);\n    i0.ɵɵtemplate(2, Editor_div_1_ng_container_2_Template, 1, 0, \"ng-container\", 4);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext();\n    i0.ɵɵadvance(2);\n    i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.headerTemplate);\n  }\n}\nfunction Editor_div_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\", 3)(1, \"span\", 5)(2, \"select\", 6)(3, \"option\", 7);\n    i0.ɵɵtext(4, \"Heading\");\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementStart(5, \"option\", 8);\n    i0.ɵɵtext(6, \"Subheading\");\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementStart(7, \"option\", 9);\n    i0.ɵɵtext(8, \"Normal\");\n    i0.ɵɵelementEnd()();\n    i0.ɵɵelementStart(9, \"select\", 10)(10, \"option\", 9);\n    i0.ɵɵtext(11, \"Sans Serif\");\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementStart(12, \"option\", 11);\n    i0.ɵɵtext(13, \"Serif\");\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementStart(14, \"option\", 12);\n    i0.ɵɵtext(15, \"Monospace\");\n    i0.ɵɵelementEnd()()();\n    i0.ɵɵelementStart(16, \"span\", 5);\n    i0.ɵɵelement(17, \"button\", 13)(18, \"button\", 14)(19, \"button\", 15);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementStart(20, \"span\", 5);\n    i0.ɵɵelement(21, \"select\", 16)(22, \"select\", 17);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementStart(23, \"span\", 5);\n    i0.ɵɵelement(24, \"button\", 18)(25, \"button\", 19);\n    i0.ɵɵelementStart(26, \"select\", 20);\n    i0.ɵɵelement(27, \"option\", 9);\n    i0.ɵɵelementStart(28, \"option\", 21);\n    i0.ɵɵtext(29, \"center\");\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementStart(30, \"option\", 22);\n    i0.ɵɵtext(31, \"right\");\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementStart(32, \"option\", 23);\n    i0.ɵɵtext(33, \"justify\");\n    i0.ɵɵelementEnd()()();\n    i0.ɵɵelementStart(34, \"span\", 5);\n    i0.ɵɵelement(35, \"button\", 24)(36, \"button\", 25)(37, \"button\", 26);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementStart(38, \"span\", 5);\n    i0.ɵɵelement(39, \"button\", 27);\n    i0.ɵɵelementEnd()();\n  }\n}\nconst EDITOR_VALUE_ACCESSOR = {\n  provide: NG_VALUE_ACCESSOR,\n  useExisting: forwardRef(() => Editor),\n  multi: true\n};\n/**\n * Editor groups a collection of contents in tabs.\n * @group Components\n */\nlet Editor = /*#__PURE__*/(() => {\n  class Editor {\n    el;\n    platformId;\n    /**\n     * Inline style of the container.\n     * @group Props\n     */\n    style;\n    /**\n     * Style class of the container.\n     * @group Props\n     */\n    styleClass;\n    /**\n     * Placeholder text to show when editor is empty.\n     * @group Props\n     */\n    placeholder;\n    /**\n     * Whitelist of formats to display, see here for available options.\n     * @group Props\n     */\n    formats;\n    /**\n     * Modules configuration of Editor, see here for available options.\n     * @group Props\n     */\n    modules;\n    /**\n     * DOM Element or a CSS selector for a DOM Element, within which the editor’s p elements (i.e. tooltips, etc.) should be confined. Currently, it only considers left and right boundaries.\n     * @group Props\n     */\n    bounds;\n    /**\n     * DOM Element or a CSS selector for a DOM Element, specifying which container has the scrollbars (i.e. overflow-y: auto), if is has been changed from the default ql-editor with custom CSS. Necessary to fix scroll jumping bugs when Quill is set to auto grow its height, and another ancestor container is responsible from the scrolling..\n     * @group Props\n     */\n    scrollingContainer;\n    /**\n     * Shortcut for debug. Note debug is a static method and will affect other instances of Quill editors on the page. Only warning and error messages are enabled by default.\n     * @group Props\n     */\n    debug;\n    /**\n     * Whether to instantiate the editor to read-only mode.\n     * @group Props\n     */\n    get readonly() {\n      return this._readonly;\n    }\n    set readonly(val) {\n      this._readonly = val;\n      if (this.quill) {\n        if (this._readonly) this.quill.disable();else this.quill.enable();\n      }\n    }\n    /**\n     * Callback to invoke when the quill modules are loaded.\n     * @param {EditorInitEvent} event - custom event.\n     * @group Emits\n     */\n    onInit = new EventEmitter();\n    /**\n     * Callback to invoke when text of editor changes.\n     * @param {EditorTextChangeEvent} event - custom event.\n     * @group Emits\n     */\n    onTextChange = new EventEmitter();\n    /**\n     * Callback to invoke when selection of the text changes.\n     * @param {EditorSelectionChangeEvent} event - custom event.\n     * @group Emits\n     */\n    onSelectionChange = new EventEmitter();\n    templates;\n    toolbar;\n    value;\n    delayedCommand = null;\n    _readonly = false;\n    onModelChange = () => {};\n    onModelTouched = () => {};\n    quill;\n    dynamicQuill;\n    headerTemplate;\n    get isAttachedQuillEditorToDOM() {\n      return this.quillElements?.editorElement?.isConnected;\n    }\n    quillElements;\n    constructor(el, platformId) {\n      this.el = el;\n      this.platformId = platformId;\n      /**\n       * Read or write the DOM once, when initializing non-Angular (Quill) library.\n       */\n      afterNextRender(() => {\n        this.initQuillElements();\n        this.initQuillEditor();\n      });\n    }\n    ngAfterContentInit() {\n      this.templates.forEach(item => {\n        switch (item.getType()) {\n          case 'header':\n            this.headerTemplate = item.template;\n            break;\n        }\n      });\n    }\n    writeValue(value) {\n      this.value = value;\n      if (this.quill) {\n        if (value) {\n          const command = () => {\n            this.quill.setContents(this.quill.clipboard.convert(this.dynamicQuill.version.startsWith('2') ? {\n              html: this.value\n            } : this.value));\n          };\n          if (this.isAttachedQuillEditorToDOM) {\n            command();\n          } else {\n            this.delayedCommand = command;\n          }\n        } else {\n          const command = () => {\n            this.quill.setText('');\n          };\n          if (this.isAttachedQuillEditorToDOM) {\n            command();\n          } else {\n            this.delayedCommand = command;\n          }\n        }\n      }\n    }\n    registerOnChange(fn) {\n      this.onModelChange = fn;\n    }\n    registerOnTouched(fn) {\n      this.onModelTouched = fn;\n    }\n    getQuill() {\n      return this.quill;\n    }\n    initQuillEditor() {\n      if (isPlatformServer(this.platformId)) {\n        return;\n      }\n      /**\n       * Importing Quill at top level, throws `document is undefined` error during when\n       * building for SSR, so this dynamically loads quill when it's in browser module.\n       */\n      if (!this.dynamicQuill) {\n        import('quill').then(quillModule => {\n          this.dynamicQuill = quillModule.default;\n          this.createQuillEditor();\n        }).catch(e => console.error(e.message));\n      } else {\n        this.createQuillEditor();\n      }\n    }\n    createQuillEditor() {\n      this.initQuillElements();\n      const {\n        toolbarElement,\n        editorElement\n      } = this.quillElements;\n      let defaultModule = {\n        toolbar: toolbarElement\n      };\n      let modules = this.modules ? {\n        ...defaultModule,\n        ...this.modules\n      } : defaultModule;\n      this.quill = new this.dynamicQuill(editorElement, {\n        modules: modules,\n        placeholder: this.placeholder,\n        readOnly: this.readonly,\n        theme: 'snow',\n        formats: this.formats,\n        bounds: this.bounds,\n        debug: this.debug,\n        scrollingContainer: this.scrollingContainer\n      });\n      const isQuill2 = this.dynamicQuill.version.startsWith('2');\n      if (this.value) {\n        this.quill.setContents(this.quill.clipboard.convert(isQuill2 ? {\n          html: this.value\n        } : this.value));\n      }\n      this.quill.on('text-change', (delta, oldContents, source) => {\n        if (source === 'user') {\n          let html = isQuill2 ? this.quill.getSemanticHTML() : DomHandler.findSingle(editorElement, '.ql-editor').innerHTML;\n          let text = this.quill.getText().trim();\n          if (html === '<p><br></p>') {\n            html = null;\n          }\n          this.onTextChange.emit({\n            htmlValue: html,\n            textValue: text,\n            delta: delta,\n            source: source\n          });\n          this.onModelChange(html);\n          this.onModelTouched();\n        }\n      });\n      this.quill.on('selection-change', (range, oldRange, source) => {\n        this.onSelectionChange.emit({\n          range: range,\n          oldRange: oldRange,\n          source: source\n        });\n      });\n      this.onInit.emit({\n        editor: this.quill\n      });\n    }\n    initQuillElements() {\n      if (!this.quillElements) {\n        this.quillElements = {\n          editorElement: DomHandler.findSingle(this.el.nativeElement, 'div.p-editor-content'),\n          toolbarElement: DomHandler.findSingle(this.el.nativeElement, 'div.p-editor-toolbar')\n        };\n      }\n    }\n    static ɵfac = function Editor_Factory(t) {\n      return new (t || Editor)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(PLATFORM_ID));\n    };\n    static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n      type: Editor,\n      selectors: [[\"p-editor\"]],\n      contentQueries: function Editor_ContentQueries(rf, ctx, dirIndex) {\n        if (rf & 1) {\n          i0.ɵɵcontentQuery(dirIndex, Header, 5);\n          i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);\n        }\n        if (rf & 2) {\n          let _t;\n          i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.toolbar = _t.first);\n          i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);\n        }\n      },\n      hostAttrs: [1, \"p-element\"],\n      inputs: {\n        style: \"style\",\n        styleClass: \"styleClass\",\n        placeholder: \"placeholder\",\n        formats: \"formats\",\n        modules: \"modules\",\n        bounds: \"bounds\",\n        scrollingContainer: \"scrollingContainer\",\n        debug: \"debug\",\n        readonly: \"readonly\"\n      },\n      outputs: {\n        onInit: \"onInit\",\n        onTextChange: \"onTextChange\",\n        onSelectionChange: \"onSelectionChange\"\n      },\n      features: [i0.ɵɵProvidersFeature([EDITOR_VALUE_ACCESSOR])],\n      ngContentSelectors: _c1,\n      decls: 4,\n      vars: 6,\n      consts: [[3, \"ngClass\"], [\"class\", \"p-editor-toolbar\", 4, \"ngIf\"], [1, \"p-editor-content\", 3, \"ngStyle\"], [1, \"p-editor-toolbar\"], [4, \"ngTemplateOutlet\"], [1, \"ql-formats\"], [1, \"ql-header\"], [\"value\", \"1\"], [\"value\", \"2\"], [\"selected\", \"\"], [1, \"ql-font\"], [\"value\", \"serif\"], [\"value\", \"monospace\"], [\"aria-label\", \"Bold\", \"type\", \"button\", 1, \"ql-bold\"], [\"aria-label\", \"Italic\", \"type\", \"button\", 1, \"ql-italic\"], [\"aria-label\", \"Underline\", \"type\", \"button\", 1, \"ql-underline\"], [1, \"ql-color\"], [1, \"ql-background\"], [\"value\", \"ordered\", \"aria-label\", \"Ordered List\", \"type\", \"button\", 1, \"ql-list\"], [\"value\", \"bullet\", \"aria-label\", \"Unordered List\", \"type\", \"button\", 1, \"ql-list\"], [1, \"ql-align\"], [\"value\", \"center\"], [\"value\", \"right\"], [\"value\", \"justify\"], [\"aria-label\", \"Insert Link\", \"type\", \"button\", 1, \"ql-link\"], [\"aria-label\", \"Insert Image\", \"type\", \"button\", 1, \"ql-image\"], [\"aria-label\", \"Insert Code Block\", \"type\", \"button\", 1, \"ql-code-block\"], [\"aria-label\", \"Remove Styles\", \"type\", \"button\", 1, \"ql-clean\"]],\n      template: function Editor_Template(rf, ctx) {\n        if (rf & 1) {\n          i0.ɵɵprojectionDef(_c0);\n          i0.ɵɵelementStart(0, \"div\", 0);\n          i0.ɵɵtemplate(1, Editor_div_1_Template, 3, 1, \"div\", 1)(2, Editor_div_2_Template, 40, 0, \"div\", 1);\n          i0.ɵɵelement(3, \"div\", 2);\n          i0.ɵɵelementEnd();\n        }\n        if (rf & 2) {\n          i0.ɵɵclassMap(ctx.styleClass);\n          i0.ɵɵproperty(\"ngClass\", \"p-editor-container\");\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngIf\", ctx.toolbar || ctx.headerTemplate);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngIf\", !ctx.toolbar && !ctx.headerTemplate);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngStyle\", ctx.style);\n        }\n      },\n      dependencies: [i1.NgClass, i1.NgIf, i1.NgTemplateOutlet, i1.NgStyle],\n      styles: [\".p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item{width:auto;height:auto}\\n\"],\n      encapsulation: 2,\n      changeDetection: 0\n    });\n  }\n  return Editor;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet EditorModule = /*#__PURE__*/(() => {\n  class EditorModule {\n    static ɵfac = function EditorModule_Factory(t) {\n      return new (t || EditorModule)();\n    };\n    static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n      type: EditorModule\n    });\n    static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n      imports: [CommonModule, SharedModule]\n    });\n  }\n  return EditorModule;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { EDITOR_VALUE_ACCESSOR, Editor, EditorModule };\n","import { Component } from '@angular/core';\r\nimport { NavbarComponent } from '../../../shared/components/navbar/navbar.component';\r\nimport {\r\n  ReactiveFormsModule,\r\n  FormBuilder,\r\n  Validators,\r\n  FormGroup,\r\n} from '@angular/forms';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormArray } from '@angular/forms';\r\nimport { Units } from '../../../shared/enums/units.enum';\r\nimport { EditorModule } from 'primeng/editor';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { RecipesService } from '../../../core/services/api/recipes.service';\r\nimport { Router } from '@angular/router';\r\n@Component({\r\n  selector: 'app-add-recipe',\r\n  standalone: true,\r\n  imports: [NavbarComponent, CommonModule, ReactiveFormsModule, EditorModule],\r\n  templateUrl: './add-recipe.component.html',\r\n  styleUrl: './add-recipe.component.scss',\r\n})\r\nexport class AddRecipeComponent {\r\n  units: string[] = [];\r\n  recipeForm: FormGroup;\r\n\r\n  // Configuración del toolbar personalizada\r\n  toolbar = [\r\n    ['bold', 'italic', 'underline', 'strike'],\r\n    ['blockquote', 'code-block'],\r\n    [{ list: 'ordered' }, { list: 'bullet' }],\r\n    [{ header: 1 }, { header: 2 }],\r\n    [{ align: [] }],\r\n    ['link', 'clean'],\r\n  ];\r\n\r\n  constructor(private formBuilder: FormBuilder, private recipesService: RecipesService, private router: Router) {\r\n    this.recipeForm = this.formBuilder.group({\r\n      name: ['', [Validators.required,  Validators.pattern('^[a-zA-Z0-9 ]*$')]],\r\n      procedure: ['', [Validators.required]],\r\n      ingredients: this.formBuilder.array([this.createIngredientFormGroup()]),\r\n      inputs: this.formBuilder.array([this.createInputsFormGroup()]),\r\n    });\r\n  }\r\n\r\n  ngOnInit() {\r\n    this.units = Object.values(Units);\r\n  }\r\n\r\n  createIngredientFormGroup(): FormGroup {\r\n    return this.formBuilder.group({\r\n      name: ['', [Validators.required, Validators.pattern('^[a-zA-Z ]*$')]],\r\n      quantity: ['', [Validators.required, Validators.pattern('^[0-9]*$')]],\r\n      unit: ['', [Validators.required]],\r\n    });\r\n  }\r\n\r\n  createInputsFormGroup(): FormGroup {\r\n    return this.formBuilder.group({\r\n      name: ['', [Validators.required, Validators.pattern('^[a-zA-Z0-9 ]*$')\r\n      ]],\r\n      quantity: ['', [Validators.required, Validators.pattern('^[0-9]*$')]],\r\n      unit: ['', [Validators.required]],\r\n    });\r\n  }\r\n\r\n  get ingredients(): FormArray {\r\n    return this.recipeForm.get('ingredients') as FormArray;\r\n  }\r\n\r\n  addIngredient() {\r\n    this.ingredients.push(this.createIngredientFormGroup());\r\n  }\r\n\r\n  removeIngredient(index: number) {\r\n    this.ingredients.removeAt(index);\r\n  }\r\n\r\n  get inputs(): FormArray {\r\n    return this.recipeForm.get('inputs') as FormArray;\r\n  }\r\n  addInput() {\r\n    this.inputs.push(this.createIngredientFormGroup());\r\n  }\r\n\r\n  removeInput(index: number) {\r\n    this.inputs.removeAt(index);\r\n  }\r\n\r\n  onSubmit() {\r\n    console.log(this.recipeForm);\r\n    if (this.recipeForm.valid) {\r\n      const ingredientList = this.recipeForm\r\n        .get('ingredients')\r\n        ?.value.map((ingredient: any) => {\r\n          return `${ingredient.name},${ingredient.quantity},${ingredient.unit}`;\r\n        })\r\n        .join(';'); // Concatenar con ';'\r\n      console.log(ingredientList);\r\n\r\n      // Obtener y transformar la lista de insumos\r\n      const inputsList = this.recipeForm\r\n        .get('inputs')\r\n        ?.value.map((input: any) => {\r\n          return `${input.name},${input.quantity},${input.unit}`;\r\n        })\r\n        .join(';'); // Concatenar con ';'\r\n      console.log(inputsList);\r\n\r\n      const recipe: TableData = {\r\n        name: this.recipeForm.get('name')?.value,\r\n        description: this.recipeForm.get('procedure')?.value,\r\n        recipeIngredients: ingredientList,\r\n        recipePackagingElements: inputsList,\r\n      };\r\n      this.recipesService.createRecipe(recipe).subscribe(\r\n        (response) => {\r\n          console.log(response);\r\n          this.router.navigate(['/recipes']);\r\n        },\r\n        (error) => {\r\n          console.error(error);\r\n        }\r\n      );\r\n    }\r\n  }\r\n}\r\n","<app-navbar></app-navbar>\r\n<div class=\"container-fluid d-flex flex-column justify-content-center align-items-center vh-100\">\r\n  <div class=\"row justify-content-center align-items-center w-100\">\r\n    <div class=\"col-10 col-main\">\r\n      <form #aux=\"ngForm\" [formGroup]=\"recipeForm\" (ngSubmit)=\"onSubmit()\" class=\"w-100\">\r\n        <div class=\"row header-row mb-4\">\r\n          <div class=\"col\">\r\n            <h1 class=\"view-title\">Nueva Receta</h1>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-end\">\r\n            <button type=\"submit\" class=\"btn btn-custom\">GUARDAR</button>\r\n          </div>\r\n        </div>\r\n        <div class=\"row custom-row\">\r\n          <div class=\"row mb-3 align-items-center\">\r\n            <div class=\"col-3\">\r\n              <label for=\"name\" class=\"title\">Nombre</label>\r\n            </div>\r\n            <div class=\"col-6\">\r\n              <input type=\"text\" class=\"form-control\" id=\"name\" name=\"name\" formControlName=\"name\"\r\n                [ngClass]=\"{ 'is-invalid': (recipeForm.get('name')?.dirty || recipeForm.get('name')?.touched || aux.submitted) && recipeForm.get('name')?.invalid }\" />\r\n              <div class=\"error-container\">\r\n                <div\r\n                  *ngIf=\"aux.submitted || recipeForm.get('name')?.invalid && (recipeForm.get('name')?.dirty || recipeForm.get('name')?.touched)\"\r\n                  class=\"text-danger\">\r\n                  <div *ngIf=\"recipeForm.get('name')?.errors?.['required']\">Nombre es requerido.</div>\r\n                  <div *ngIf=\"!recipeForm.get('name')?.errors?.['required'] && recipeForm.get('name')?.errors?.['pattern']\">\r\n                    El nombre no debe contener números ni símbolos.\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"col-3 d-flex justify-content-end\">\r\n              <button type=\"button\" class=\"btn btn-secondary\">Subir Imagen</button>\r\n            </div>\r\n          </div>\r\n          <div class=\"row align-items-center py-2\">\r\n            <!-- Columna Izquierda: Ingredientes -->\r\n            <div class=\"col-md-6\">\r\n              <div class=\"form-group\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col\">\r\n                    <label class=\"title\">Ingredientes</label>\r\n                  </div>\r\n                  <div class=\"col d-flex justify-content-end\">\r\n                    <button type=\"button\" class=\"btn btn-icon text-success\" (click)=\"addIngredient()\"><i\r\n                        class=\"bi bi-plus-square-fill\"></i></button>\r\n                  </div>\r\n                </div>\r\n                <div formArrayName=\"ingredients\" class=\"adder-container\">\r\n                  <div *ngFor=\"let ingredient of ingredients.controls; let i = index\" [formGroupName]=\"i\"\r\n                    class=\"form-group adder-row\">\r\n                    <div class=\"row align-items-center\">\r\n                      <div class=\"col\">\r\n                        <input id=\"ingredient-name-{{i}}\" formControlName=\"name\" class=\"form-control\"\r\n                          placeholder=\"Nombre del ingrediente\"\r\n                          [ngClass]=\"{ 'is-invalid': (ingredient.get('name')?.dirty || ingredient.get('name')?.touched || aux.submitted) && ingredient.get('name')?.invalid }\" />\r\n                      </div>\r\n                      <div class=\"col-2\">\r\n                        <input type=\"number\" id=\"ingredient-quantity-{{i}}\" formControlName=\"quantity\"\r\n                          class=\"form-control\" placeholder=\"Cantidad\"\r\n                          [ngClass]=\"{ 'is-invalid': (ingredient.get('quantity')?.dirty || ingredient.get('quantity')?.touched || aux.submitted) && ingredient.get('quantity')?.invalid }\" />\r\n                      </div>\r\n                      <div class=\"col-2\">\r\n                        <select id=\"ingredient-unit-{{i}}\" formControlName=\"unit\" class=\"form-select me-2\"\r\n                          aria-label=\"Unit Selection\"\r\n                          [ngClass]=\"{ 'is-invalid': (ingredient.get('unit')?.dirty || ingredient.get('unit')?.touched || aux.submitted) && ingredient.get('unit')?.invalid }\">\r\n                          <option value=\"\" disabled selected>...</option>\r\n                          <option *ngFor=\"let unit of units\" [value]=\"unit\">\r\n                            {{ unit }}\r\n                          </option>\r\n                        </select>\r\n                      </div>\r\n                      <div class=\"col-2\">\r\n                        <div *ngIf=\"i !== 0\">\r\n                          <button type=\"button\" class=\"btn btn-icon text-danger\" (click)=\"removeIngredient(i)\">\r\n                            <i class=\"bi bi-x-square-fill\"></i>\r\n                          </button>\r\n                        </div>\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <!-- Columna Derecha: Insumos -->\r\n            <div class=\"col-md-6\">\r\n              <div class=\"form-group\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col\">\r\n                    <label class=\"title\">Insumos</label>\r\n                  </div>\r\n                  <div class=\"col d-flex justify-content-end\">\r\n                    <button type=\"button\" class=\"btn btn-icon text-success\" (click)=\"addInput()\"><i\r\n                        class=\"bi bi-plus-square-fill\"></i></button>\r\n                  </div>\r\n                </div>\r\n                <div formArrayName=\"inputs\" class=\"adder-container\">\r\n                  <div *ngFor=\"let input of inputs.controls; let j = index\" [formGroupName]=\"j\"\r\n                    class=\"form-group adder-row\">\r\n                    <div class=\"row align-items-center\">\r\n                      <div class=\"col\">\r\n                        <input id=\"inputs-name-{{j}}\" formControlName=\"name\" class=\"form-control\"\r\n                          placeholder=\"Nombre del insumo\"\r\n                          [ngClass]=\"{ 'is-invalid': (input.get('name')?.dirty || input.get('name')?.touched || aux.submitted) && input.get('name')?.invalid }\" />\r\n\r\n                      </div>\r\n                      <div class=\"col-3\">\r\n                        <input id=\"inputs-quantity-{{j}}\" formControlName=\"quantity\" class=\"form-control\"\r\n                          placeholder=\"Cantidad\"\r\n                          [ngClass]=\"{ 'is-invalid': (input.get('quantity')?.dirty || input.get('quantity')?.touched || aux.submitted) && input.get('quantity')?.invalid }\" />\r\n                      </div>\r\n                      <div class=\"col-2\">\r\n                        <select id=\"inputs-unit-{{j}}\" formControlName=\"unit\" class=\"form-select me-2\"\r\n                          aria-label=\"Unit Selection\"\r\n                          [ngClass]=\"{ 'is-invalid': (input.get('unit')?.dirty || input.get('unit')?.touched || aux.submitted) && input.get('unit')?.invalid }\">\r\n                          <option value=\"\" disabled selected>...</option>\r\n                          <option *ngFor=\"let unit of units\" [value]=\"unit\">\r\n                            {{ unit }}\r\n                          </option>\r\n                        </select>\r\n                      </div>\r\n                      <div class=\"col-2\">\r\n                        <div *ngIf=\"j !== 0\">\r\n                          <button type=\"button\" class=\"btn btn-icon text-danger\" (click)=\"removeInput(j)\">\r\n                            <i class=\"bi bi-x-square-fill\"></i>\r\n                          </button>\r\n                        </div>\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n          <hr />\r\n          <div class=\"form-group\">\r\n            <label class=\"title\">Procedimiento</label>\r\n            <p-editor formControlName=\"procedure\" class=\"form-control p-editor-custom\"\r\n                      [style]=\"{ height: '240px' }\"\r\n                      [ngClass]=\"{ 'is-invalid': (recipeForm.get('procedure')?.dirty || recipeForm.get('procedure')?.touched || aux.submitted) && recipeForm.get('procedure')?.invalid }\">\r\n                      <ng-template pTemplate=\"header\">\r\n                        <span class=\"ql-formats\">\r\n                          <select class=\"ql-header\" aria-label=\"Select header\">\r\n                            <option selected></option>\r\n                            <option value=\"1\">Heading 1</option>\r\n                            <option value=\"2\">Heading 2</option>\r\n                            <option value=\"3\">Heading 3</option>\r\n                          </select>\r\n                          <select class=\"ql-font\" aria-label=\"Select font\">\r\n                            <option selected></option>\r\n                            <option value=\"serif\">Serif</option>\r\n                            <option value=\"monospace\">Monospace</option>\r\n                          </select>\r\n                          <button class=\"ql-bold\" aria-label=\"Bold\"></button>\r\n                          <button class=\"ql-italic\" aria-label=\"Italic\"></button>\r\n                          <button class=\"ql-underline\" aria-label=\"Underline\"></button>\r\n                          <select class=\"ql-align\" aria-label=\"Select align\">\r\n                            <option selected></option>\r\n                            <option value=\"center\">Center</option>\r\n                            <option value=\"right\">Right</option>\r\n                            <option value=\"justify\">Justify</option>\r\n                          </select>\r\n                          <button class=\"ql-list\" value=\"ordered\" aria-label=\"Ordered list\"></button>\r\n                          <button class=\"ql-list\" value=\"bullet\" aria-label=\"Bullet list\"></button>\r\n                          <button class=\"ql-link\" aria-label=\"Insert link\"></button>\r\n                        </span>\r\n                      </ng-template>\r\n                    </p-editor>\r\n            <div class=\"error-container\">\r\n              <div *ngIf=\"aux.submitted || recipeForm.get('procedure')?.invalid && (recipeForm.get('procedure')?.dirty || recipeForm.get('procedure')?.touched)\"\r\n                   class=\"text-danger\">\r\n                <div *ngIf=\"recipeForm.get('procedure')?.errors?.['required']\">Procedimiento es requerido.</div>\r\n                <div *ngIf=\"!recipeForm.get('procedure')?.errors?.['required'] && recipeForm.get('procedure')?.errors?.['pattern']\">\r\n                  Es necesario agregar un procedimiento.\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>","import { Component, OnInit } from '@angular/core';\r\nimport { NavbarComponent } from '../../../shared/components/navbar/navbar.component';\r\nimport { ReactiveFormsModule, FormBuilder, Validators, FormGroup } from '@angular/forms';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormArray } from '@angular/forms';\r\nimport { Units } from '../../../shared/enums/units.enum';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { RecipesService } from '../../../core/services/api/recipes.service';\r\nimport { EditorModule } from 'primeng/editor';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { Router } from '@angular/router';\r\n@Component({\r\n  selector: 'app-view-recipe',\r\n  standalone: true,\r\n  imports: [CommonModule, ReactiveFormsModule, NavbarComponent,EditorModule],\r\n  templateUrl: './modify-recipe.component.html',\r\n  styleUrl: './modify-recipe.component.scss'\r\n})\r\nexport class ModifyRecipeComponent implements OnInit {\r\n  id: number = 0;\r\n  units: string[] = [];\r\n  recipe: any;\r\n\r\n  recipeForm: FormGroup;\r\n  constructor(private formBuilder: FormBuilder, private route: ActivatedRoute, \r\n    private recipeService: RecipesService, private router: Router) { \r\n    this.recipeForm = this.formBuilder.group({\r\n      name: ['', [Validators.required, Validators.pattern('[a-zA-Z ]*')]],\r\n      procedure: ['', [Validators.required]],\r\n      ingredients: this.formBuilder.array([this.createIngredientFormGroup()]),\r\n      inputs: this.formBuilder.array([this.createInputsFormGroup()]),\r\n    });\r\n  }\r\n\r\n  ngOnInit() {\r\n    this.id = +(this.route.snapshot.paramMap.get('id') ?? 0);\r\n    if(this.id !== 0){\r\n      this.recipe = this.recipeService.getRecipeById(this.id).subscribe(\r\n        (recipe: any) => {\r\n          this.recipe = recipe;\r\n          this.patchForm();\r\n    });\r\n      \r\n    }\r\n    this.units = Object.values(Units);\r\n  }\r\n\r\n  createIngredientFormGroup(): FormGroup {\r\n    return this.formBuilder.group({\r\n      name: ['', [Validators.required, Validators.pattern('^[a-zA-Z ]*$')]],\r\n      quantity: ['', [Validators.required, Validators.pattern('^[0-9]*$')]],\r\n      unit: ['', [Validators.required]]\r\n    });\r\n  }\r\n  \r\n  createInputsFormGroup(): FormGroup {\r\n    return this.formBuilder.group({\r\n      name: ['', [Validators.required, Validators.pattern('^[a-zA-Z ]*$')]],\r\n      quantity: ['', [Validators.required, Validators.pattern('^[0-9]*$')]],\r\n      unit: ['', [Validators.required]]\r\n    });\r\n  }\r\n\r\n\r\n  get ingredients(): FormArray {\r\n    return this.recipeForm.get('ingredients') as FormArray;\r\n  }\r\n\r\n  addIngredient() {\r\n    this.ingredients.push(this.createIngredientFormGroup());\r\n  }\r\n\r\n  removeIngredient(index: number) {\r\n    this.ingredients.removeAt(index);\r\n  }\r\n\r\n  get inputs(): FormArray {\r\n    return this.recipeForm.get('inputs') as FormArray;\r\n  }\r\n  addInput() {\r\n    this.inputs.push(this.createIngredientFormGroup());\r\n  }\r\n\r\n  removeInput(index: number) {\r\n    this.inputs.removeAt(index);\r\n  }\r\n\r\n  onSubmit() {\r\n    if(this.recipeForm.valid){\r\n      console.log(this.recipeForm.value);\r\n      const ingredientList = this.recipeForm\r\n        .get('ingredients')\r\n        ?.value.map((ingredient: any) => {\r\n          return `${ingredient.name},${ingredient.quantity},${ingredient.unit}`;\r\n        })\r\n        .join(';'); // Concatenar con ';'\r\n      console.log(ingredientList);\r\n\r\n      // Obtener y transformar la lista de insumos\r\n      const inputsList = this.recipeForm\r\n        .get('inputs')\r\n        ?.value.map((input: any) => {\r\n          return `${input.name},${input.quantity},${input.unit}`;\r\n        })\r\n        .join(';'); // Concatenar con ';'\r\n      console.log(inputsList);\r\n      const recipe: TableData = {\r\n        id: this.id,\r\n        name: this.recipeForm.get('name')?.value,\r\n        description: this.recipeForm.get('procedure')?.value,\r\n        recipeIngredients: ingredientList,\r\n        recipePackagingElements: inputsList,\r\n      };\r\n      this.recipeService.updateRecipe(recipe).subscribe(\r\n        (response) => {\r\n          console.log(response);\r\n          this.router.navigate(['/recipes']);\r\n        },\r\n        (error) => {\r\n          console.error(error);\r\n        }\r\n      );\r\n    }\r\n    \r\n  }\r\n\r\n\r\n  private patchForm() {\r\n    // Rellena los campos básicos\r\n    this.recipeForm.patchValue({\r\n      name: this.recipe['name'],\r\n      procedure: this.recipe['description']\r\n    });\r\n  \r\n    // Limpia los FormArrays antes de agregar nuevos elementos\r\n    this.ingredients.clear();\r\n    this.inputs.clear();\r\n  \r\n    // Obtén los ingredientes y agrégales al FormArray\r\n    const ingredients = parseList(this.recipe['recipeIngredients']);\r\n    ingredients.forEach((ingredient: Argument) => {\r\n      this.ingredients.push(this.formBuilder.group({\r\n        name: ingredient.name,\r\n        quantity: ingredient.quantity,\r\n        unit: ingredient.unit\r\n      }));\r\n    });\r\n  \r\n    // Obtén los inputs y agrégales al FormArray\r\n    const inputs = parseList(this.recipe['recipePackagingElements']);\r\n    inputs.forEach((input: Argument) => {\r\n      this.inputs.push(this.formBuilder.group({\r\n        name: input.name,\r\n        quantity: input.quantity,\r\n        unit: input.unit\r\n      }));\r\n    });\r\n  }\r\n  \r\n}\r\n\r\n\r\ninterface Argument{\r\n  name: string;\r\n  quantity: string;\r\n  unit: string;\r\n}\r\n\r\nfunction parseList(list: string): Argument[] {\r\n  if (!list) return [];\r\n  \r\n  // Asegúrate de que la cadena no tenga espacios innecesarios alrededor\r\n  const parsedList = list.split(';').filter(item => item.trim() !== '');\r\n  const args: Argument[] = parsedList.map((element: string) => {\r\n    const [name, quantity, unit] = element.split(',');\r\n    if (!name || !quantity || !unit) {\r\n      console.error(`Invalid format: ${element}`);\r\n      return { name: '', quantity: '', unit: '' };\r\n    }\r\n    return {\r\n      name: name.trim(),\r\n      quantity: quantity.trim(),\r\n      unit: unit.trim()\r\n    };\r\n  });\r\n  return args;\r\n}","<app-navbar></app-navbar>\r\n<div class=\"container-fluid d-flex flex-column justify-content-center align-items-center vh-100\">\r\n  <div class=\"row justify-content-center align-items-center w-100\">\r\n    <div class=\"col-10 col-main\">\r\n      <form #aux=\"ngForm\" [formGroup]=\"recipeForm\" (ngSubmit)=\"onSubmit()\" class=\"w-100\">\r\n        <div class=\"row header-row mb-4\">\r\n          <div class=\"col\">\r\n            <h1 class=\"view-title\">Modificar Receta</h1>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-end\">\r\n            <button type=\"submit\" class=\"btn btn-custom\">GUARDAR</button>\r\n          </div>\r\n        </div>\r\n        <div class=\"row custom-row\">\r\n          <div class=\"row\">\r\n            <div class=\"form-group\">\r\n              <div class=\"row align-items-center mb-3\">\r\n                <div class=\"col-3\">\r\n                  <label for=\"name\" class=\"title\">Nombre</label>\r\n                </div>\r\n                <div class=\"col\">\r\n                  <input type=\"text\" class=\"form-control\" id=\"name\" name=\"name\" formControlName=\"name\"\r\n                    [ngClass]=\"{ 'is-invalid': (recipeForm.get('name')?.dirty || recipeForm.get('name')?.touched || aux.submitted) && recipeForm.get('name')?.invalid }\" />\r\n                  <div class=\"error-container\">\r\n                    <div *ngIf=\"aux.submitted || recipeForm.get('name')?.invalid && (recipeForm.get('name')?.dirty || recipeForm.get('name')?.touched)\"\r\n                      class=\"text-danger\">\r\n                      <div *ngIf=\"recipeForm.get('name')?.errors?.['required']\">Nombre es requerido.</div>\r\n                      <div *ngIf=\"!recipeForm.get('name')?.errors?.['required'] && recipeForm.get('name')?.errors?.['pattern']\">\r\n                        El nombre no debe contener números ni símbolos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n          <div class=\"row align-items-center py-2\">\r\n            <!-- Columna Izquierda: Ingredientes -->\r\n            <div class=\"col-md-6\">\r\n              <div class=\"form-group\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col\">\r\n                    <label class=\"title\">Ingredientes</label>\r\n                  </div>\r\n                  <div class=\"col d-flex justify-content-end\">\r\n                    <button type=\"button\" class=\"btn btn-icon text-success\" (click)=\"addIngredient()\"><i class=\"bi bi-plus-square-fill\"></i></button>\r\n                  </div>\r\n                </div>\r\n                <div formArrayName=\"ingredients\" class=\"adder-container\">\r\n                  <div *ngFor=\"let ingredient of ingredients.controls; let i = index\" [formGroupName]=\"i\" class=\"form-group adder-row\">\r\n                    <div class=\"row align-items-center\">\r\n                      <div class=\"col\">\r\n                        <input id=\"ingredient-name-{{i}}\" formControlName=\"name\" class=\"form-control\" placeholder=\"Nombre del ingrediente\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"{ 'is-invalid': (ingredient.get('name')?.dirty || ingredient.get('name')?.touched || aux.submitted) && ingredient.get('name')?.invalid }\"/>\r\n                      </div>\r\n                      <div class=\"col-2\">\r\n                        <input type=\"number\" id=\"ingredient-quantity-{{i}}\" formControlName=\"quantity\" class=\"form-control\" placeholder=\"Cantidad\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"{ 'is-invalid': (ingredient.get('quantity')?.dirty || ingredient.get('quantity')?.touched || aux.submitted) && ingredient.get('quantity')?.invalid }\" />\r\n                      </div>\r\n                      <div class=\"col-2\">\r\n                        <select id=\"ingredient-unit-{{i}}\" formControlName=\"unit\" class=\"form-select me-2\" aria-label=\"Unit Selection\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"{ 'is-invalid': (ingredient.get('unit')?.dirty || ingredient.get('unit')?.touched || aux.submitted) && ingredient.get('unit')?.invalid }\">\r\n                          <option value=\"\" disabled selected>...</option>\r\n                          <option *ngFor=\"let unit of units\" [value]=\"unit\">\r\n                            {{ unit }}\r\n                          </option>\r\n                        </select>\r\n                      </div>\r\n                      <div class=\"col-2\">\r\n                        <div *ngIf=\"i !== 0\">\r\n                          <button type=\"button\" class=\"btn btn-icon text-danger\" (click)=\"removeIngredient(i)\">\r\n                            <i class=\"bi bi-x-square-fill\"></i>\r\n                          </button>\r\n                        </div>\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <!-- Columna Derecha: Insumos -->\r\n            <div class=\"col-md-6\">\r\n              <div class=\"form-group\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col\">\r\n                    <label class=\"title\">Insumos</label>\r\n                  </div>\r\n                  <div class=\"col d-flex justify-content-end\">\r\n                    <button type=\"button\" class=\"btn btn-icon text-success\" (click)=\"addInput()\"><i class=\"bi bi-plus-square-fill\"></i></button>\r\n                  </div>\r\n                </div>\r\n                <div formArrayName=\"inputs\" class=\"adder-container\">\r\n                  <div *ngFor=\"let input of inputs.controls; let j = index\" [formGroupName]=\"j\" class=\"form-group adder-row\">\r\n                    <div class=\"row align-items-center\">\r\n                      <div class=\"col\">\r\n                        <input id=\"inputs-name-{{j}}\" formControlName=\"name\" class=\"form-control\" placeholder=\"Nombre del insumo\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"{ 'is-invalid': (input.get('name')?.dirty || input.get('name')?.touched || aux.submitted) && input.get('name')?.invalid }\" />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n                      </div>\r\n                      <div class=\"col-3\">\r\n                        <input id=\"inputs-quantity-{{j}}\" formControlName=\"quantity\" class=\"form-control\" placeholder=\"Cantidad\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"{ 'is-invalid': (input.get('quantity')?.dirty || input.get('quantity')?.touched || aux.submitted) && input.get('quantity')?.invalid }\" />\r\n                      </div>\r\n                      <div class=\"col-2\">\r\n                        <select id=\"inputs-unit-{{j}}\" formControlName=\"unit\" class=\"form-select me-2\" aria-label=\"Unit Selection\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"{ 'is-invalid': (input.get('unit')?.dirty || input.get('unit')?.touched || aux.submitted) && input.get('unit')?.invalid }\" >\r\n                          <option value=\"\" disabled selected>...</option>\r\n                          <option *ngFor=\"let unit of units\" [value]=\"unit\">\r\n                            {{ unit }}\r\n                          </option>\r\n                        </select>\r\n                      </div>\r\n                      <div class=\"col-2\">\r\n                        <div *ngIf=\"j !== 0\">\r\n                          <button type=\"button\" class=\"btn btn-icon text-danger\" (click)=\"removeInput(j)\">\r\n                            <i class=\"bi bi-x-square-fill\"></i>\r\n                          </button>\r\n                        </div>\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n          <hr/>\r\n          <div class=\"form-group\">\r\n            <label class=\"title\">Procedimiento</label>\r\n            <!--textarea id=\"procedure\" name=\"procedure\" formControlName=\"procedure\" class=\"form-control\" rows=\"10\"\r\n\t\t\t\t\t\t[ngClass]=\"{ 'is-invalid': (recipeForm.get('procedure')?.dirty || recipeForm.get('procedure')?.touched || aux.submitted) && recipeForm.get('procedure')?.invalid }\" ></textarea-->\r\n            <p-editor formControlName=\"procedure\" class=\"form-control p-editor-custom\"\r\n                      [style]=\"{ height: '240px' }\"\r\n                      [ngClass]=\"{ 'is-invalid': (recipeForm.get('procedure')?.dirty || recipeForm.get('procedure')?.touched || aux.submitted) && recipeForm.get('procedure')?.invalid }\">\r\n                      <ng-template pTemplate=\"header\">\r\n                        <span class=\"ql-formats\">\r\n                          <select class=\"ql-header\" aria-label=\"Select header\">\r\n                            <option selected></option>\r\n                            <option value=\"1\">Heading 1</option>\r\n                            <option value=\"2\">Heading 2</option>\r\n                            <option value=\"3\">Heading 3</option>\r\n                          </select>\r\n                          <select class=\"ql-font\" aria-label=\"Select font\">\r\n                            <option selected></option>\r\n                            <option value=\"serif\">Serif</option>\r\n                            <option value=\"monospace\">Monospace</option>\r\n                          </select>\r\n                          <button class=\"ql-bold\" aria-label=\"Bold\"></button>\r\n                          <button class=\"ql-italic\" aria-label=\"Italic\"></button>\r\n                          <button class=\"ql-underline\" aria-label=\"Underline\"></button>\r\n                          <select class=\"ql-align\" aria-label=\"Select align\">\r\n                            <option selected></option>\r\n                            <option value=\"center\">Center</option>\r\n                            <option value=\"right\">Right</option>\r\n                            <option value=\"justify\">Justify</option>\r\n                          </select>\r\n                          <button class=\"ql-list\" value=\"ordered\" aria-label=\"Ordered list\"></button>\r\n                          <button class=\"ql-list\" value=\"bullet\" aria-label=\"Bullet list\"></button>\r\n                          <button class=\"ql-link\" aria-label=\"Insert link\"></button>\r\n                        </span>\r\n                      </ng-template>\r\n                    </p-editor>\r\n\t\t\t\t\t\t<div class=\"error-container\">\r\n\t\t\t\t\t\t\t<div *ngIf=\"aux.submitted || recipeForm.get('procedure')?.invalid && (recipeForm.get('procedure')?.dirty || recipeForm.get('procedure')?.touched)\"\r\n\t\t\t\t\t\t\t\tclass=\"text-danger\">\r\n\t\t\t\t\t\t\t\t<div *ngIf=\"recipeForm.get('procedure')?.errors?.['required']\">Procedimiento es requerido.</div>\r\n\t\t\t\t\t\t\t\t<div *ngIf=\"!recipeForm.get('procedure')?.errors?.['required'] && recipeForm.get('procedure')?.errors?.['pattern']\">\r\n\t\t\t\t\t\t\t\t\t\tEs necesario agregar un procedimiento.\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({\r\n  name: 'newLinewToBr',\r\n  standalone: true\r\n})\r\nexport class NewLinewToBrPipe implements PipeTransform {\r\n\r\n  transform(value: string): string {\r\n    if(!value) return value;\r\n    return value.replace(/\\n/g, '<br>');\r\n  }\r\n\r\n}\r\n","// DEFLATE is a complex format; to read this code, you should probably check the RFC first:\n// https://tools.ietf.org/html/rfc1951\n// You may also wish to take a look at the guide I made about this program:\n// https://gist.github.com/101arrowz/253f31eb5abc3d9275ab943003ffecad\n// Much of the following code is similar to that of UZIP.js:\n// https://github.com/photopea/UZIP.js\n// Many optimizations have been made, so the bundle size is ultimately smaller but performance is similar.\n// Sometimes 0 will appear where -1 would be more appropriate. This is because using a uint\n// is better for memory in most engines (I *think*).\nvar ch2 = {};\nvar wk = function (c, id, msg, transfer, cb) {\n  var u = ch2[id] || (ch2[id] = URL.createObjectURL(new Blob([c], {\n    type: 'text/javascript'\n  })));\n  var w = new Worker(u);\n  w.onerror = function (e) {\n    return cb(e.error, null);\n  };\n  w.onmessage = function (e) {\n    return cb(null, e.data);\n  };\n  w.postMessage(msg, transfer);\n  return w;\n};\n\n// aliases for shorter compressed code (most minifers don't do this)\nvar u8 = Uint8Array,\n  u16 = Uint16Array,\n  u32 = Uint32Array;\n// fixed length extra bits\nvar fleb = new u8([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, /* unused */0, 0, /* impossible */0]);\n// fixed distance extra bits\n// see fleb note\nvar fdeb = new u8([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, /* unused */0, 0]);\n// code length index map\nvar clim = new u8([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]);\n// get base, reverse index map from extra bits\nvar freb = function (eb, start) {\n  var b = new u16(31);\n  for (var i = 0; i < 31; ++i) {\n    b[i] = start += 1 << eb[i - 1];\n  }\n  // numbers here are at max 18 bits\n  var r = new u32(b[30]);\n  for (var i = 1; i < 30; ++i) {\n    for (var j = b[i]; j < b[i + 1]; ++j) {\n      r[j] = j - b[i] << 5 | i;\n    }\n  }\n  return [b, r];\n};\nvar _a = freb(fleb, 2),\n  fl = _a[0],\n  revfl = _a[1];\n// we can ignore the fact that the other numbers are wrong; they never happen anyway\nfl[28] = 258, revfl[258] = 28;\nvar _b = freb(fdeb, 0),\n  fd = _b[0],\n  revfd = _b[1];\n// map of value to reverse (assuming 16 bits)\nvar rev = new u16(32768);\nfor (var i = 0; i < 32768; ++i) {\n  // reverse table algorithm from SO\n  var x = (i & 0xAAAA) >>> 1 | (i & 0x5555) << 1;\n  x = (x & 0xCCCC) >>> 2 | (x & 0x3333) << 2;\n  x = (x & 0xF0F0) >>> 4 | (x & 0x0F0F) << 4;\n  rev[i] = ((x & 0xFF00) >>> 8 | (x & 0x00FF) << 8) >>> 1;\n}\n// create huffman tree from u8 \"map\": index -> code length for code index\n// mb (max bits) must be at most 15\n// TODO: optimize/split up?\nvar hMap = function (cd, mb, r) {\n  var s = cd.length;\n  // index\n  var i = 0;\n  // u16 \"map\": index -> # of codes with bit length = index\n  var l = new u16(mb);\n  // length of cd must be 288 (total # of codes)\n  for (; i < s; ++i) ++l[cd[i] - 1];\n  // u16 \"map\": index -> minimum code for bit length = index\n  var le = new u16(mb);\n  for (i = 0; i < mb; ++i) {\n    le[i] = le[i - 1] + l[i - 1] << 1;\n  }\n  var co;\n  if (r) {\n    // u16 \"map\": index -> number of actual bits, symbol for code\n    co = new u16(1 << mb);\n    // bits to remove for reverser\n    var rvb = 15 - mb;\n    for (i = 0; i < s; ++i) {\n      // ignore 0 lengths\n      if (cd[i]) {\n        // num encoding both symbol and bits read\n        var sv = i << 4 | cd[i];\n        // free bits\n        var r_1 = mb - cd[i];\n        // start value\n        var v = le[cd[i] - 1]++ << r_1;\n        // m is end value\n        for (var m = v | (1 << r_1) - 1; v <= m; ++v) {\n          // every 16 bit value starting with the code yields the same result\n          co[rev[v] >>> rvb] = sv;\n        }\n      }\n    }\n  } else {\n    co = new u16(s);\n    for (i = 0; i < s; ++i) co[i] = rev[le[cd[i] - 1]++] >>> 15 - cd[i];\n  }\n  return co;\n};\n// fixed length tree\nvar flt = new u8(288);\nfor (var i = 0; i < 144; ++i) flt[i] = 8;\nfor (var i = 144; i < 256; ++i) flt[i] = 9;\nfor (var i = 256; i < 280; ++i) flt[i] = 7;\nfor (var i = 280; i < 288; ++i) flt[i] = 8;\n// fixed distance tree\nvar fdt = new u8(32);\nfor (var i = 0; i < 32; ++i) fdt[i] = 5;\n// fixed length map\nvar flm = /*#__PURE__*/hMap(flt, 9, 0),\n  flrm = /*#__PURE__*/hMap(flt, 9, 1);\n// fixed distance map\nvar fdm = /*#__PURE__*/hMap(fdt, 5, 0),\n  fdrm = /*#__PURE__*/hMap(fdt, 5, 1);\n// find max of array\nvar max = function (a) {\n  var m = a[0];\n  for (var i = 1; i < a.length; ++i) {\n    if (a[i] > m) m = a[i];\n  }\n  return m;\n};\n// read d, starting at bit p and mask with m\nvar bits = function (d, p, m) {\n  var o = p / 8 >> 0;\n  return (d[o] | d[o + 1] << 8) >>> (p & 7) & m;\n};\n// read d, starting at bit p continuing for at least 16 bits\nvar bits16 = function (d, p) {\n  var o = p / 8 >> 0;\n  return (d[o] | d[o + 1] << 8 | d[o + 2] << 16) >>> (p & 7);\n};\n// get end of byte\nvar shft = function (p) {\n  return (p / 8 >> 0) + (p & 7 && 1);\n};\n// typed array slice - allows garbage collector to free original reference,\n// while being more compatible than .slice\nvar slc = function (v, s, e) {\n  if (s == null || s < 0) s = 0;\n  if (e == null || e > v.length) e = v.length;\n  // can't use .constructor in case user-supplied\n  var n = new (v instanceof u16 ? u16 : v instanceof u32 ? u32 : u8)(e - s);\n  n.set(v.subarray(s, e));\n  return n;\n};\n// expands raw DEFLATE data\nvar inflt = function (dat, buf, st) {\n  // source length\n  var sl = dat.length;\n  // have to estimate size\n  var noBuf = !buf || st;\n  // no state\n  var noSt = !st || st.i;\n  if (!st) st = {};\n  // Assumes roughly 33% compression ratio average\n  if (!buf) buf = new u8(sl * 3);\n  // ensure buffer can fit at least l elements\n  var cbuf = function (l) {\n    var bl = buf.length;\n    // need to increase size to fit\n    if (l > bl) {\n      // Double or set to necessary, whichever is greater\n      var nbuf = new u8(Math.max(bl * 2, l));\n      nbuf.set(buf);\n      buf = nbuf;\n    }\n  };\n  //  last chunk         bitpos           bytes\n  var final = st.f || 0,\n    pos = st.p || 0,\n    bt = st.b || 0,\n    lm = st.l,\n    dm = st.d,\n    lbt = st.m,\n    dbt = st.n;\n  // total bits\n  var tbts = sl * 8;\n  do {\n    if (!lm) {\n      // BFINAL - this is only 1 when last chunk is next\n      st.f = final = bits(dat, pos, 1);\n      // type: 0 = no compression, 1 = fixed huffman, 2 = dynamic huffman\n      var type = bits(dat, pos + 1, 3);\n      pos += 3;\n      if (!type) {\n        // go to end of byte boundary\n        var s = shft(pos) + 4,\n          l = dat[s - 4] | dat[s - 3] << 8,\n          t = s + l;\n        if (t > sl) {\n          if (noSt) throw 'unexpected EOF';\n          break;\n        }\n        // ensure size\n        if (noBuf) cbuf(bt + l);\n        // Copy over uncompressed data\n        buf.set(dat.subarray(s, t), bt);\n        // Get new bitpos, update byte count\n        st.b = bt += l, st.p = pos = t * 8;\n        continue;\n      } else if (type == 1) lm = flrm, dm = fdrm, lbt = 9, dbt = 5;else if (type == 2) {\n        //  literal                            lengths\n        var hLit = bits(dat, pos, 31) + 257,\n          hcLen = bits(dat, pos + 10, 15) + 4;\n        var tl = hLit + bits(dat, pos + 5, 31) + 1;\n        pos += 14;\n        // length+distance tree\n        var ldt = new u8(tl);\n        // code length tree\n        var clt = new u8(19);\n        for (var i = 0; i < hcLen; ++i) {\n          // use index map to get real code\n          clt[clim[i]] = bits(dat, pos + i * 3, 7);\n        }\n        pos += hcLen * 3;\n        // code lengths bits\n        var clb = max(clt),\n          clbmsk = (1 << clb) - 1;\n        if (!noSt && pos + tl * (clb + 7) > tbts) break;\n        // code lengths map\n        var clm = hMap(clt, clb, 1);\n        for (var i = 0; i < tl;) {\n          var r = clm[bits(dat, pos, clbmsk)];\n          // bits read\n          pos += r & 15;\n          // symbol\n          var s = r >>> 4;\n          // code length to copy\n          if (s < 16) {\n            ldt[i++] = s;\n          } else {\n            //  copy   count\n            var c = 0,\n              n = 0;\n            if (s == 16) n = 3 + bits(dat, pos, 3), pos += 2, c = ldt[i - 1];else if (s == 17) n = 3 + bits(dat, pos, 7), pos += 3;else if (s == 18) n = 11 + bits(dat, pos, 127), pos += 7;\n            while (n--) ldt[i++] = c;\n          }\n        }\n        //    length tree                 distance tree\n        var lt = ldt.subarray(0, hLit),\n          dt = ldt.subarray(hLit);\n        // max length bits\n        lbt = max(lt);\n        // max dist bits\n        dbt = max(dt);\n        lm = hMap(lt, lbt, 1);\n        dm = hMap(dt, dbt, 1);\n      } else throw 'invalid block type';\n      if (pos > tbts) throw 'unexpected EOF';\n    }\n    // Make sure the buffer can hold this + the largest possible addition\n    // Maximum chunk size (practically, theoretically infinite) is 2^17;\n    if (noBuf) cbuf(bt + 131072);\n    var lms = (1 << lbt) - 1,\n      dms = (1 << dbt) - 1;\n    var mxa = lbt + dbt + 18;\n    while (noSt || pos + mxa < tbts) {\n      // bits read, code\n      var c = lm[bits16(dat, pos) & lms],\n        sym = c >>> 4;\n      pos += c & 15;\n      if (pos > tbts) throw 'unexpected EOF';\n      if (!c) throw 'invalid length/literal';\n      if (sym < 256) buf[bt++] = sym;else if (sym == 256) {\n        lm = null;\n        break;\n      } else {\n        var add = sym - 254;\n        // no extra bits needed if less\n        if (sym > 264) {\n          // index\n          var i = sym - 257,\n            b = fleb[i];\n          add = bits(dat, pos, (1 << b) - 1) + fl[i];\n          pos += b;\n        }\n        // dist\n        var d = dm[bits16(dat, pos) & dms],\n          dsym = d >>> 4;\n        if (!d) throw 'invalid distance';\n        pos += d & 15;\n        var dt = fd[dsym];\n        if (dsym > 3) {\n          var b = fdeb[dsym];\n          dt += bits16(dat, pos) & (1 << b) - 1, pos += b;\n        }\n        if (pos > tbts) throw 'unexpected EOF';\n        if (noBuf) cbuf(bt + 131072);\n        var end = bt + add;\n        for (; bt < end; bt += 4) {\n          buf[bt] = buf[bt - dt];\n          buf[bt + 1] = buf[bt + 1 - dt];\n          buf[bt + 2] = buf[bt + 2 - dt];\n          buf[bt + 3] = buf[bt + 3 - dt];\n        }\n        bt = end;\n      }\n    }\n    st.l = lm, st.p = pos, st.b = bt;\n    if (lm) final = 1, st.m = lbt, st.d = dm, st.n = dbt;\n  } while (!final);\n  return bt == buf.length ? buf : slc(buf, 0, bt);\n};\n// starting at p, write the minimum number of bits that can hold v to d\nvar wbits = function (d, p, v) {\n  v <<= p & 7;\n  var o = p / 8 >> 0;\n  d[o] |= v;\n  d[o + 1] |= v >>> 8;\n};\n// starting at p, write the minimum number of bits (>8) that can hold v to d\nvar wbits16 = function (d, p, v) {\n  v <<= p & 7;\n  var o = p / 8 >> 0;\n  d[o] |= v;\n  d[o + 1] |= v >>> 8;\n  d[o + 2] |= v >>> 16;\n};\n// creates code lengths from a frequency table\nvar hTree = function (d, mb) {\n  // Need extra info to make a tree\n  var t = [];\n  for (var i = 0; i < d.length; ++i) {\n    if (d[i]) t.push({\n      s: i,\n      f: d[i]\n    });\n  }\n  var s = t.length;\n  var t2 = t.slice();\n  if (!s) return [new u8(0), 0];\n  if (s == 1) {\n    var v = new u8(t[0].s + 1);\n    v[t[0].s] = 1;\n    return [v, 1];\n  }\n  t.sort(function (a, b) {\n    return a.f - b.f;\n  });\n  // after i2 reaches last ind, will be stopped\n  // freq must be greater than largest possible number of symbols\n  t.push({\n    s: -1,\n    f: 25001\n  });\n  var l = t[0],\n    r = t[1],\n    i0 = 0,\n    i1 = 1,\n    i2 = 2;\n  t[0] = {\n    s: -1,\n    f: l.f + r.f,\n    l: l,\n    r: r\n  };\n  // efficient algorithm from UZIP.js\n  // i0 is lookbehind, i2 is lookahead - after processing two low-freq\n  // symbols that combined have high freq, will start processing i2 (high-freq,\n  // non-composite) symbols instead\n  // see https://reddit.com/r/photopea/comments/ikekht/uzipjs_questions/\n  while (i1 != s - 1) {\n    l = t[t[i0].f < t[i2].f ? i0++ : i2++];\n    r = t[i0 != i1 && t[i0].f < t[i2].f ? i0++ : i2++];\n    t[i1++] = {\n      s: -1,\n      f: l.f + r.f,\n      l: l,\n      r: r\n    };\n  }\n  var maxSym = t2[0].s;\n  for (var i = 1; i < s; ++i) {\n    if (t2[i].s > maxSym) maxSym = t2[i].s;\n  }\n  // code lengths\n  var tr = new u16(maxSym + 1);\n  // max bits in tree\n  var mbt = ln(t[i1 - 1], tr, 0);\n  if (mbt > mb) {\n    // more algorithms from UZIP.js\n    // TODO: find out how this code works (debt)\n    //  ind    debt\n    var i = 0,\n      dt = 0;\n    //    left            cost\n    var lft = mbt - mb,\n      cst = 1 << lft;\n    t2.sort(function (a, b) {\n      return tr[b.s] - tr[a.s] || a.f - b.f;\n    });\n    for (; i < s; ++i) {\n      var i2_1 = t2[i].s;\n      if (tr[i2_1] > mb) {\n        dt += cst - (1 << mbt - tr[i2_1]);\n        tr[i2_1] = mb;\n      } else break;\n    }\n    dt >>>= lft;\n    while (dt > 0) {\n      var i2_2 = t2[i].s;\n      if (tr[i2_2] < mb) dt -= 1 << mb - tr[i2_2]++ - 1;else ++i;\n    }\n    for (; i >= 0 && dt; --i) {\n      var i2_3 = t2[i].s;\n      if (tr[i2_3] == mb) {\n        --tr[i2_3];\n        ++dt;\n      }\n    }\n    mbt = mb;\n  }\n  return [new u8(tr), mbt];\n};\n// get the max length and assign length codes\nvar ln = function (n, l, d) {\n  return n.s == -1 ? Math.max(ln(n.l, l, d + 1), ln(n.r, l, d + 1)) : l[n.s] = d;\n};\n// length codes generation\nvar lc = function (c) {\n  var s = c.length;\n  // Note that the semicolon was intentional\n  while (s && !c[--s]);\n  var cl = new u16(++s);\n  //  ind      num         streak\n  var cli = 0,\n    cln = c[0],\n    cls = 1;\n  var w = function (v) {\n    cl[cli++] = v;\n  };\n  for (var i = 1; i <= s; ++i) {\n    if (c[i] == cln && i != s) ++cls;else {\n      if (!cln && cls > 2) {\n        for (; cls > 138; cls -= 138) w(32754);\n        if (cls > 2) {\n          w(cls > 10 ? cls - 11 << 5 | 28690 : cls - 3 << 5 | 12305);\n          cls = 0;\n        }\n      } else if (cls > 3) {\n        w(cln), --cls;\n        for (; cls > 6; cls -= 6) w(8304);\n        if (cls > 2) w(cls - 3 << 5 | 8208), cls = 0;\n      }\n      while (cls--) w(cln);\n      cls = 1;\n      cln = c[i];\n    }\n  }\n  return [cl.subarray(0, cli), s];\n};\n// calculate the length of output from tree, code lengths\nvar clen = function (cf, cl) {\n  var l = 0;\n  for (var i = 0; i < cl.length; ++i) l += cf[i] * cl[i];\n  return l;\n};\n// writes a fixed block\n// returns the new bit pos\nvar wfblk = function (out, pos, dat) {\n  // no need to write 00 as type: TypedArray defaults to 0\n  var s = dat.length;\n  var o = shft(pos + 2);\n  out[o] = s & 255;\n  out[o + 1] = s >>> 8;\n  out[o + 2] = out[o] ^ 255;\n  out[o + 3] = out[o + 1] ^ 255;\n  for (var i = 0; i < s; ++i) out[o + i + 4] = dat[i];\n  return (o + 4 + s) * 8;\n};\n// writes a block\nvar wblk = function (dat, out, final, syms, lf, df, eb, li, bs, bl, p) {\n  wbits(out, p++, final);\n  ++lf[256];\n  var _a = hTree(lf, 15),\n    dlt = _a[0],\n    mlb = _a[1];\n  var _b = hTree(df, 15),\n    ddt = _b[0],\n    mdb = _b[1];\n  var _c = lc(dlt),\n    lclt = _c[0],\n    nlc = _c[1];\n  var _d = lc(ddt),\n    lcdt = _d[0],\n    ndc = _d[1];\n  var lcfreq = new u16(19);\n  for (var i = 0; i < lclt.length; ++i) lcfreq[lclt[i] & 31]++;\n  for (var i = 0; i < lcdt.length; ++i) lcfreq[lcdt[i] & 31]++;\n  var _e = hTree(lcfreq, 7),\n    lct = _e[0],\n    mlcb = _e[1];\n  var nlcc = 19;\n  for (; nlcc > 4 && !lct[clim[nlcc - 1]]; --nlcc);\n  var flen = bl + 5 << 3;\n  var ftlen = clen(lf, flt) + clen(df, fdt) + eb;\n  var dtlen = clen(lf, dlt) + clen(df, ddt) + eb + 14 + 3 * nlcc + clen(lcfreq, lct) + (2 * lcfreq[16] + 3 * lcfreq[17] + 7 * lcfreq[18]);\n  if (flen <= ftlen && flen <= dtlen) return wfblk(out, p, dat.subarray(bs, bs + bl));\n  var lm, ll, dm, dl;\n  wbits(out, p, 1 + (dtlen < ftlen)), p += 2;\n  if (dtlen < ftlen) {\n    lm = hMap(dlt, mlb, 0), ll = dlt, dm = hMap(ddt, mdb, 0), dl = ddt;\n    var llm = hMap(lct, mlcb, 0);\n    wbits(out, p, nlc - 257);\n    wbits(out, p + 5, ndc - 1);\n    wbits(out, p + 10, nlcc - 4);\n    p += 14;\n    for (var i = 0; i < nlcc; ++i) wbits(out, p + 3 * i, lct[clim[i]]);\n    p += 3 * nlcc;\n    var lcts = [lclt, lcdt];\n    for (var it = 0; it < 2; ++it) {\n      var clct = lcts[it];\n      for (var i = 0; i < clct.length; ++i) {\n        var len = clct[i] & 31;\n        wbits(out, p, llm[len]), p += lct[len];\n        if (len > 15) wbits(out, p, clct[i] >>> 5 & 127), p += clct[i] >>> 12;\n      }\n    }\n  } else {\n    lm = flm, ll = flt, dm = fdm, dl = fdt;\n  }\n  for (var i = 0; i < li; ++i) {\n    if (syms[i] > 255) {\n      var len = syms[i] >>> 18 & 31;\n      wbits16(out, p, lm[len + 257]), p += ll[len + 257];\n      if (len > 7) wbits(out, p, syms[i] >>> 23 & 31), p += fleb[len];\n      var dst = syms[i] & 31;\n      wbits16(out, p, dm[dst]), p += dl[dst];\n      if (dst > 3) wbits16(out, p, syms[i] >>> 5 & 8191), p += fdeb[dst];\n    } else {\n      wbits16(out, p, lm[syms[i]]), p += ll[syms[i]];\n    }\n  }\n  wbits16(out, p, lm[256]);\n  return p + ll[256];\n};\n// deflate options (nice << 13) | chain\nvar deo = /*#__PURE__*/new u32([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]);\n// empty\nvar et = /*#__PURE__*/new u8(0);\n// compresses data into a raw DEFLATE buffer\nvar dflt = function (dat, lvl, plvl, pre, post, lst) {\n  var s = dat.length;\n  var o = new u8(pre + s + 5 * (1 + Math.floor(s / 7000)) + post);\n  // writing to this writes to the output buffer\n  var w = o.subarray(pre, o.length - post);\n  var pos = 0;\n  if (!lvl || s < 8) {\n    for (var i = 0; i <= s; i += 65535) {\n      // end\n      var e = i + 65535;\n      if (e < s) {\n        // write full block\n        pos = wfblk(w, pos, dat.subarray(i, e));\n      } else {\n        // write final block\n        w[i] = lst;\n        pos = wfblk(w, pos, dat.subarray(i, s));\n      }\n    }\n  } else {\n    var opt = deo[lvl - 1];\n    var n = opt >>> 13,\n      c = opt & 8191;\n    var msk_1 = (1 << plvl) - 1;\n    //    prev 2-byte val map    curr 2-byte val map\n    var prev = new u16(32768),\n      head = new u16(msk_1 + 1);\n    var bs1_1 = Math.ceil(plvl / 3),\n      bs2_1 = 2 * bs1_1;\n    var hsh = function (i) {\n      return (dat[i] ^ dat[i + 1] << bs1_1 ^ dat[i + 2] << bs2_1) & msk_1;\n    };\n    // 24576 is an arbitrary number of maximum symbols per block\n    // 424 buffer for last block\n    var syms = new u32(25000);\n    // length/literal freq   distance freq\n    var lf = new u16(288),\n      df = new u16(32);\n    //  l/lcnt  exbits  index  l/lind  waitdx  bitpos\n    var lc_1 = 0,\n      eb = 0,\n      i = 0,\n      li = 0,\n      wi = 0,\n      bs = 0;\n    for (; i < s; ++i) {\n      // hash value\n      var hv = hsh(i);\n      // index mod 32768\n      var imod = i & 32767;\n      // previous index with this value\n      var pimod = head[hv];\n      prev[imod] = pimod;\n      head[hv] = imod;\n      // We always should modify head and prev, but only add symbols if\n      // this data is not yet processed (\"wait\" for wait index)\n      if (wi <= i) {\n        // bytes remaining\n        var rem = s - i;\n        if ((lc_1 > 7000 || li > 24576) && rem > 423) {\n          pos = wblk(dat, w, 0, syms, lf, df, eb, li, bs, i - bs, pos);\n          li = lc_1 = eb = 0, bs = i;\n          for (var j = 0; j < 286; ++j) lf[j] = 0;\n          for (var j = 0; j < 30; ++j) df[j] = 0;\n        }\n        //  len    dist   chain\n        var l = 2,\n          d = 0,\n          ch_1 = c,\n          dif = imod - pimod & 32767;\n        if (rem > 2 && hv == hsh(i - dif)) {\n          var maxn = Math.min(n, rem) - 1;\n          var maxd = Math.min(32767, i);\n          // max possible length\n          // not capped at dif because decompressors implement \"rolling\" index population\n          var ml = Math.min(258, rem);\n          while (dif <= maxd && --ch_1 && imod != pimod) {\n            if (dat[i + l] == dat[i + l - dif]) {\n              var nl = 0;\n              for (; nl < ml && dat[i + nl] == dat[i + nl - dif]; ++nl);\n              if (nl > l) {\n                l = nl, d = dif;\n                // break out early when we reach \"nice\" (we are satisfied enough)\n                if (nl > maxn) break;\n                // now, find the rarest 2-byte sequence within this\n                // length of literals and search for that instead.\n                // Much faster than just using the start\n                var mmd = Math.min(dif, nl - 2);\n                var md = 0;\n                for (var j = 0; j < mmd; ++j) {\n                  var ti = i - dif + j + 32768 & 32767;\n                  var pti = prev[ti];\n                  var cd = ti - pti + 32768 & 32767;\n                  if (cd > md) md = cd, pimod = ti;\n                }\n              }\n            }\n            // check the previous match\n            imod = pimod, pimod = prev[imod];\n            dif += imod - pimod + 32768 & 32767;\n          }\n        }\n        // d will be nonzero only when a match was found\n        if (d) {\n          // store both dist and len data in one Uint32\n          // Make sure this is recognized as a len/dist with 28th bit (2^28)\n          syms[li++] = 268435456 | revfl[l] << 18 | revfd[d];\n          var lin = revfl[l] & 31,\n            din = revfd[d] & 31;\n          eb += fleb[lin] + fdeb[din];\n          ++lf[257 + lin];\n          ++df[din];\n          wi = i + l;\n          ++lc_1;\n        } else {\n          syms[li++] = dat[i];\n          ++lf[dat[i]];\n        }\n      }\n    }\n    pos = wblk(dat, w, lst, syms, lf, df, eb, li, bs, i - bs, pos);\n    // this is the easiest way to avoid needing to maintain state\n    if (!lst) pos = wfblk(w, pos, et);\n  }\n  return slc(o, 0, pre + shft(pos) + post);\n};\n// CRC32 table\nvar crct = /*#__PURE__*/function () {\n  var t = new u32(256);\n  for (var i = 0; i < 256; ++i) {\n    var c = i,\n      k = 9;\n    while (--k) c = (c & 1 && 0xEDB88320) ^ c >>> 1;\n    t[i] = c;\n  }\n  return t;\n}();\n// CRC32\nvar crc = function () {\n  var c = 0xFFFFFFFF;\n  return {\n    p: function (d) {\n      // closures have awful performance\n      var cr = c;\n      for (var i = 0; i < d.length; ++i) cr = crct[cr & 255 ^ d[i]] ^ cr >>> 8;\n      c = cr;\n    },\n    d: function () {\n      return c ^ 0xFFFFFFFF;\n    }\n  };\n};\n// Alder32\nvar adler = function () {\n  var a = 1,\n    b = 0;\n  return {\n    p: function (d) {\n      // closures have awful performance\n      var n = a,\n        m = b;\n      var l = d.length;\n      for (var i = 0; i != l;) {\n        var e = Math.min(i + 5552, l);\n        for (; i < e; ++i) n += d[i], m += n;\n        n %= 65521, m %= 65521;\n      }\n      a = n, b = m;\n    },\n    d: function () {\n      return (a >>> 8 << 16 | (b & 255) << 8 | b >>> 8) + ((a & 255) << 23) * 2;\n    }\n  };\n};\n;\n// deflate with opts\nvar dopt = function (dat, opt, pre, post, st) {\n  return dflt(dat, opt.level == null ? 6 : opt.level, opt.mem == null ? Math.ceil(Math.max(8, Math.min(13, Math.log(dat.length))) * 1.5) : 12 + opt.mem, pre, post, !st);\n};\n// Walmart object spread\nvar mrg = function (a, b) {\n  var o = {};\n  for (var k in a) o[k] = a[k];\n  for (var k in b) o[k] = b[k];\n  return o;\n};\n// worker clone\n// This is possibly the craziest part of the entire codebase, despite how simple it may seem.\n// The only parameter to this function is a closure that returns an array of variables outside of the function scope.\n// We're going to try to figure out the variable names used in the closure as strings because that is crucial for workerization.\n// We will return an object mapping of true variable name to value (basically, the current scope as a JS object).\n// The reason we can't just use the original variable names is minifiers mangling the toplevel scope.\n// This took me three weeks to figure out how to do.\nvar wcln = function (fn, fnStr, td) {\n  var dt = fn();\n  var st = fn.toString();\n  var ks = st.slice(st.indexOf('[') + 1, st.lastIndexOf(']')).replace(/ /g, '').split(',');\n  for (var i = 0; i < dt.length; ++i) {\n    var v = dt[i],\n      k = ks[i];\n    if (typeof v == 'function') {\n      fnStr += ';' + k + '=';\n      var st_1 = v.toString();\n      if (v.prototype) {\n        // for global objects\n        if (st_1.indexOf('[native code]') != -1) {\n          var spInd = st_1.indexOf(' ', 8) + 1;\n          fnStr += st_1.slice(spInd, st_1.indexOf('(', spInd));\n        } else {\n          fnStr += st_1;\n          for (var t in v.prototype) fnStr += ';' + k + '.prototype.' + t + '=' + v.prototype[t].toString();\n        }\n      } else fnStr += st_1;\n    } else td[k] = v;\n  }\n  return [fnStr, td];\n};\nvar ch = [];\n// clone bufs\nvar cbfs = function (v) {\n  var tl = [];\n  for (var k in v) {\n    if (v[k] instanceof u8 || v[k] instanceof u16 || v[k] instanceof u32) tl.push((v[k] = new v[k].constructor(v[k])).buffer);\n  }\n  return tl;\n};\n// use a worker to execute code\nvar wrkr = function (fns, init, id, cb) {\n  var _a;\n  if (!ch[id]) {\n    var fnStr = '',\n      td_1 = {},\n      m = fns.length - 1;\n    for (var i = 0; i < m; ++i) _a = wcln(fns[i], fnStr, td_1), fnStr = _a[0], td_1 = _a[1];\n    ch[id] = wcln(fns[m], fnStr, td_1);\n  }\n  var td = mrg({}, ch[id][1]);\n  return wk(ch[id][0] + ';onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage=' + init.toString() + '}', id, td, cbfs(td), cb);\n};\n// base async inflate fn\nvar bInflt = function () {\n  return [u8, u16, u32, fleb, fdeb, clim, fl, fd, flrm, fdrm, rev, hMap, max, bits, bits16, shft, slc, inflt, inflateSync, pbf, gu8];\n};\nvar bDflt = function () {\n  return [u8, u16, u32, fleb, fdeb, clim, revfl, revfd, flm, flt, fdm, fdt, rev, deo, et, hMap, wbits, wbits16, hTree, ln, lc, clen, wfblk, wblk, shft, slc, dflt, dopt, deflateSync, pbf];\n};\n// gzip extra\nvar gze = function () {\n  return [gzh, gzhl, wbytes, crc, crct];\n};\n// gunzip extra\nvar guze = function () {\n  return [gzs, gzl];\n};\n// zlib extra\nvar zle = function () {\n  return [zlh, wbytes, adler];\n};\n// unzlib extra\nvar zule = function () {\n  return [zlv];\n};\n// post buf\nvar pbf = function (msg) {\n  return postMessage(msg, [msg.buffer]);\n};\n// get u8\nvar gu8 = function (o) {\n  return o && o.size && new u8(o.size);\n};\n// async helper\nvar cbify = function (dat, opts, fns, init, id, cb) {\n  var w = wrkr(fns, init, id, function (err, dat) {\n    w.terminate();\n    cb(err, dat);\n  });\n  if (!opts.consume) dat = new u8(dat);\n  w.postMessage([dat, opts], [dat.buffer]);\n  return function () {\n    w.terminate();\n  };\n};\n// auto stream\nvar astrm = function (strm) {\n  strm.ondata = function (dat, final) {\n    return postMessage([dat, final], [dat.buffer]);\n  };\n  return function (ev) {\n    return strm.push(ev.data[0], ev.data[1]);\n  };\n};\n// async stream attach\nvar astrmify = function (fns, strm, opts, init, id) {\n  var t;\n  var w = wrkr(fns, init, id, function (err, dat) {\n    if (err) w.terminate(), strm.ondata.call(strm, err);else {\n      if (dat[1]) w.terminate();\n      strm.ondata.call(strm, err, dat[0], dat[1]);\n    }\n  });\n  w.postMessage(opts);\n  strm.push = function (d, f) {\n    if (t) throw 'stream finished';\n    if (!strm.ondata) throw 'no stream handler';\n    w.postMessage([d, t = f], [d.buffer]);\n  };\n  strm.terminate = function () {\n    w.terminate();\n  };\n};\n// read 2 bytes\nvar b2 = function (d, b) {\n  return d[b] | d[b + 1] << 8;\n};\n// read 4 bytes\nvar b4 = function (d, b) {\n  return (d[b] | d[b + 1] << 8 | d[b + 2] << 16) + (d[b + 3] << 23) * 2;\n};\n// write bytes\nvar wbytes = function (d, b, v) {\n  for (; v; ++b) d[b] = v, v >>>= 8;\n};\n// gzip header\nvar gzh = function (c, o) {\n  var fn = o.filename;\n  c[0] = 31, c[1] = 139, c[2] = 8, c[8] = o.level < 2 ? 4 : o.level == 9 ? 2 : 0, c[9] = 3; // assume Unix\n  if (o.mtime != 0) wbytes(c, 4, Math.floor(new Date(o.mtime || Date.now()) / 1000));\n  if (fn) {\n    c[3] = 8;\n    for (var i = 0; i <= fn.length; ++i) c[i + 10] = fn.charCodeAt(i);\n  }\n};\n// gzip footer: -8 to -4 = CRC, -4 to -0 is length\n// gzip start\nvar gzs = function (d) {\n  if (d[0] != 31 || d[1] != 139 || d[2] != 8) throw 'invalid gzip data';\n  var flg = d[3];\n  var st = 10;\n  if (flg & 4) st += d[10] | (d[11] << 8) + 2;\n  for (var zs = (flg >> 3 & 1) + (flg >> 4 & 1); zs > 0; zs -= !d[st++]);\n  return st + (flg & 2);\n};\n// gzip length\nvar gzl = function (d) {\n  var l = d.length;\n  return (d[l - 4] | d[l - 3] << 8 | d[l - 2] << 16) + 2 * (d[l - 1] << 23);\n};\n// gzip header length\nvar gzhl = function (o) {\n  return 10 + (o.filename && o.filename.length + 1 || 0);\n};\n// zlib header\nvar zlh = function (c, o) {\n  var lv = o.level,\n    fl = lv == 0 ? 0 : lv < 6 ? 1 : lv == 9 ? 3 : 2;\n  c[0] = 120, c[1] = fl << 6 | (fl ? 32 - 2 * fl : 1);\n};\n// zlib valid\nvar zlv = function (d) {\n  if ((d[0] & 15) != 8 || d[0] >>> 4 > 7 || (d[0] << 8 | d[1]) % 31) throw 'invalid zlib data';\n  if (d[1] & 32) throw 'invalid zlib data: preset dictionaries not supported';\n};\nfunction AsyncCmpStrm(opts, cb) {\n  if (!cb && typeof opts == 'function') cb = opts, opts = {};\n  this.ondata = cb;\n  return opts;\n}\n// zlib footer: -4 to -0 is Adler32\n/**\n * Streaming DEFLATE compression\n */\nvar Deflate = /*#__PURE__*/function () {\n  function Deflate(opts, cb) {\n    if (!cb && typeof opts == 'function') cb = opts, opts = {};\n    this.ondata = cb;\n    this.o = opts || {};\n  }\n  Deflate.prototype.p = function (c, f) {\n    this.ondata(dopt(c, this.o, 0, 0, !f), f);\n  };\n  /**\n   * Pushes a chunk to be deflated\n   * @param chunk The chunk to push\n   * @param final Whether this is the last chunk\n   */\n  Deflate.prototype.push = function (chunk, final) {\n    if (this.d) throw 'stream finished';\n    if (!this.ondata) throw 'no stream handler';\n    this.d = final;\n    this.p(chunk, final || false);\n  };\n  return Deflate;\n}();\nexport { Deflate };\n/**\n * Asynchronous streaming DEFLATE compression\n */\nvar AsyncDeflate = /*#__PURE__*/function () {\n  function AsyncDeflate(opts, cb) {\n    astrmify([bDflt, function () {\n      return [astrm, Deflate];\n    }], this, AsyncCmpStrm.call(this, opts, cb), function (ev) {\n      var strm = new Deflate(ev.data);\n      onmessage = astrm(strm);\n    }, 6);\n  }\n  return AsyncDeflate;\n}();\nexport { AsyncDeflate };\nexport function deflate(data, opts, cb) {\n  if (!cb) cb = opts, opts = {};\n  if (typeof cb != 'function') throw 'no callback';\n  return cbify(data, opts, [bDflt], function (ev) {\n    return pbf(deflateSync(ev.data[0], ev.data[1]));\n  }, 0, cb);\n}\n/**\n * Compresses data with DEFLATE without any wrapper\n * @param data The data to compress\n * @param opts The compression options\n * @returns The deflated version of the data\n */\nexport function deflateSync(data, opts) {\n  if (opts === void 0) {\n    opts = {};\n  }\n  return dopt(data, opts, 0, 0);\n}\n/**\n * Streaming DEFLATE decompression\n */\nvar Inflate = /*#__PURE__*/function () {\n  /**\n   * Creates an inflation stream\n   * @param cb The callback to call whenever data is inflated\n   */\n  function Inflate(cb) {\n    this.s = {};\n    this.p = new u8(0);\n    this.ondata = cb;\n  }\n  Inflate.prototype.e = function (c) {\n    if (this.d) throw 'stream finished';\n    if (!this.ondata) throw 'no stream handler';\n    var l = this.p.length;\n    var n = new u8(l + c.length);\n    n.set(this.p), n.set(c, l), this.p = n;\n  };\n  Inflate.prototype.c = function (final) {\n    this.d = this.s.i = final || false;\n    var bts = this.s.b;\n    var dt = inflt(this.p, this.o, this.s);\n    this.ondata(slc(dt, bts, this.s.b), this.d);\n    this.o = slc(dt, this.s.b - 32768), this.s.b = this.o.length;\n    this.p = slc(this.p, this.s.p / 8 >> 0), this.s.p &= 7;\n  };\n  /**\n   * Pushes a chunk to be inflated\n   * @param chunk The chunk to push\n   * @param final Whether this is the final chunk\n   */\n  Inflate.prototype.push = function (chunk, final) {\n    this.e(chunk), this.c(final);\n  };\n  return Inflate;\n}();\nexport { Inflate };\n/**\n * Asynchronous streaming DEFLATE decompression\n */\nvar AsyncInflate = /*#__PURE__*/function () {\n  /**\n   * Creates an asynchronous inflation stream\n   * @param cb The callback to call whenever data is deflated\n   */\n  function AsyncInflate(cb) {\n    this.ondata = cb;\n    astrmify([bInflt, function () {\n      return [astrm, Inflate];\n    }], this, 0, function () {\n      var strm = new Inflate();\n      onmessage = astrm(strm);\n    }, 7);\n  }\n  return AsyncInflate;\n}();\nexport { AsyncInflate };\nexport function inflate(data, opts, cb) {\n  if (!cb) cb = opts, opts = {};\n  if (typeof cb != 'function') throw 'no callback';\n  return cbify(data, opts, [bInflt], function (ev) {\n    return pbf(inflateSync(ev.data[0], gu8(ev.data[1])));\n  }, 1, cb);\n}\n/**\n * Expands DEFLATE data with no wrapper\n * @param data The data to decompress\n * @param out Where to write the data. Saves memory if you know the decompressed size and provide an output buffer of that length.\n * @returns The decompressed version of the data\n */\nexport function inflateSync(data, out) {\n  return inflt(data, out);\n}\n// before you yell at me for not just using extends, my reason is that TS inheritance is hard to workerize.\n/**\n * Streaming GZIP compression\n */\nvar Gzip = /*#__PURE__*/function () {\n  function Gzip(opts, cb) {\n    this.c = crc();\n    this.l = 0;\n    this.v = 1;\n    Deflate.call(this, opts, cb);\n  }\n  /**\n   * Pushes a chunk to be GZIPped\n   * @param chunk The chunk to push\n   * @param final Whether this is the last chunk\n   */\n  Gzip.prototype.push = function (chunk, final) {\n    Deflate.prototype.push.call(this, chunk, final);\n  };\n  Gzip.prototype.p = function (c, f) {\n    this.c.p(c);\n    this.l += c.length;\n    var raw = dopt(c, this.o, this.v && gzhl(this.o), f && 8, !f);\n    if (this.v) gzh(raw, this.o), this.v = 0;\n    if (f) wbytes(raw, raw.length - 8, this.c.d()), wbytes(raw, raw.length - 4, this.l);\n    this.ondata(raw, f);\n  };\n  return Gzip;\n}();\nexport { Gzip };\n/**\n * Asynchronous streaming GZIP compression\n */\nvar AsyncGzip = /*#__PURE__*/function () {\n  function AsyncGzip(opts, cb) {\n    astrmify([bDflt, gze, function () {\n      return [astrm, Deflate, Gzip];\n    }], this, AsyncCmpStrm.call(this, opts, cb), function (ev) {\n      var strm = new Gzip(ev.data);\n      onmessage = astrm(strm);\n    }, 8);\n  }\n  return AsyncGzip;\n}();\nexport { AsyncGzip };\nexport function gzip(data, opts, cb) {\n  if (!cb) cb = opts, opts = {};\n  if (typeof cb != 'function') throw 'no callback';\n  return cbify(data, opts, [bDflt, gze, function () {\n    return [gzipSync];\n  }], function (ev) {\n    return pbf(gzipSync(ev.data[0], ev.data[1]));\n  }, 2, cb);\n}\n/**\n * Compresses data with GZIP\n * @param data The data to compress\n * @param opts The compression options\n * @returns The gzipped version of the data\n */\nexport function gzipSync(data, opts) {\n  if (opts === void 0) {\n    opts = {};\n  }\n  var c = crc(),\n    l = data.length;\n  c.p(data);\n  var d = dopt(data, opts, gzhl(opts), 8),\n    s = d.length;\n  return gzh(d, opts), wbytes(d, s - 8, c.d()), wbytes(d, s - 4, l), d;\n}\n/**\n * Streaming GZIP decompression\n */\nvar Gunzip = /*#__PURE__*/function () {\n  /**\n   * Creates a GUNZIP stream\n   * @param cb The callback to call whenever data is inflated\n   */\n  function Gunzip(cb) {\n    this.v = 1;\n    Inflate.call(this, cb);\n  }\n  /**\n   * Pushes a chunk to be GUNZIPped\n   * @param chunk The chunk to push\n   * @param final Whether this is the last chunk\n   */\n  Gunzip.prototype.push = function (chunk, final) {\n    Inflate.prototype.e.call(this, chunk);\n    if (this.v) {\n      var s = gzs(this.p);\n      if (s >= this.p.length && !final) return;\n      this.p = this.p.subarray(s), this.v = 0;\n    }\n    if (final) {\n      if (this.p.length < 8) throw 'invalid gzip stream';\n      this.p = this.p.subarray(0, -8);\n    }\n    // necessary to prevent TS from using the closure value\n    // This allows for workerization to function correctly\n    Inflate.prototype.c.call(this, final);\n  };\n  return Gunzip;\n}();\nexport { Gunzip };\n/**\n * Asynchronous streaming GZIP decompression\n */\nvar AsyncGunzip = /*#__PURE__*/function () {\n  /**\n   * Creates an asynchronous GUNZIP stream\n   * @param cb The callback to call whenever data is deflated\n   */\n  function AsyncGunzip(cb) {\n    this.ondata = cb;\n    astrmify([bInflt, guze, function () {\n      return [astrm, Inflate, Gunzip];\n    }], this, 0, function () {\n      var strm = new Gunzip();\n      onmessage = astrm(strm);\n    }, 9);\n  }\n  return AsyncGunzip;\n}();\nexport { AsyncGunzip };\nexport function gunzip(data, opts, cb) {\n  if (!cb) cb = opts, opts = {};\n  if (typeof cb != 'function') throw 'no callback';\n  return cbify(data, opts, [bInflt, guze, function () {\n    return [gunzipSync];\n  }], function (ev) {\n    return pbf(gunzipSync(ev.data[0]));\n  }, 3, cb);\n}\n/**\n * Expands GZIP data\n * @param data The data to decompress\n * @param out Where to write the data. GZIP already encodes the output size, so providing this doesn't save memory.\n * @returns The decompressed version of the data\n */\nexport function gunzipSync(data, out) {\n  return inflt(data.subarray(gzs(data), -8), out || new u8(gzl(data)));\n}\n/**\n * Streaming Zlib compression\n */\nvar Zlib = /*#__PURE__*/function () {\n  function Zlib(opts, cb) {\n    this.c = adler();\n    this.v = 1;\n    Deflate.call(this, opts, cb);\n  }\n  /**\n   * Pushes a chunk to be zlibbed\n   * @param chunk The chunk to push\n   * @param final Whether this is the last chunk\n   */\n  Zlib.prototype.push = function (chunk, final) {\n    Deflate.prototype.push.call(this, chunk, final);\n  };\n  Zlib.prototype.p = function (c, f) {\n    this.c.p(c);\n    var raw = dopt(c, this.o, this.v && 2, f && 4, !f);\n    if (this.v) zlh(raw, this.o), this.v = 0;\n    if (f) wbytes(raw, raw.length - 4, this.c.d());\n    this.ondata(raw, f);\n  };\n  return Zlib;\n}();\nexport { Zlib };\n/**\n * Asynchronous streaming Zlib compression\n */\nvar AsyncZlib = /*#__PURE__*/function () {\n  function AsyncZlib(opts, cb) {\n    astrmify([bDflt, zle, function () {\n      return [astrm, Deflate, Zlib];\n    }], this, AsyncCmpStrm.call(this, opts, cb), function (ev) {\n      var strm = new Zlib(ev.data);\n      onmessage = astrm(strm);\n    }, 10);\n  }\n  return AsyncZlib;\n}();\nexport { AsyncZlib };\nexport function zlib(data, opts, cb) {\n  if (!cb) cb = opts, opts = {};\n  if (typeof cb != 'function') throw 'no callback';\n  return cbify(data, opts, [bDflt, zle, function () {\n    return [zlibSync];\n  }], function (ev) {\n    return pbf(zlibSync(ev.data[0], ev.data[1]));\n  }, 4, cb);\n}\n/**\n * Compress data with Zlib\n * @param data The data to compress\n * @param opts The compression options\n * @returns The zlib-compressed version of the data\n */\nexport function zlibSync(data, opts) {\n  if (opts === void 0) {\n    opts = {};\n  }\n  var a = adler();\n  a.p(data);\n  var d = dopt(data, opts, 2, 4);\n  return zlh(d, opts), wbytes(d, d.length - 4, a.d()), d;\n}\n/**\n * Streaming Zlib decompression\n */\nvar Unzlib = /*#__PURE__*/function () {\n  /**\n   * Creates a Zlib decompression stream\n   * @param cb The callback to call whenever data is inflated\n   */\n  function Unzlib(cb) {\n    this.v = 1;\n    Inflate.call(this, cb);\n  }\n  /**\n   * Pushes a chunk to be unzlibbed\n   * @param chunk The chunk to push\n   * @param final Whether this is the last chunk\n   */\n  Unzlib.prototype.push = function (chunk, final) {\n    Inflate.prototype.e.call(this, chunk);\n    if (this.v) {\n      if (this.p.length < 2 && !final) return;\n      this.p = this.p.subarray(2), this.v = 0;\n    }\n    if (final) {\n      if (this.p.length < 4) throw 'invalid zlib stream';\n      this.p = this.p.subarray(0, -4);\n    }\n    // necessary to prevent TS from using the closure value\n    // This allows for workerization to function correctly\n    Inflate.prototype.c.call(this, final);\n  };\n  return Unzlib;\n}();\nexport { Unzlib };\n/**\n * Asynchronous streaming Zlib decompression\n */\nvar AsyncUnzlib = /*#__PURE__*/function () {\n  /**\n   * Creates an asynchronous Zlib decompression stream\n   * @param cb The callback to call whenever data is deflated\n   */\n  function AsyncUnzlib(cb) {\n    this.ondata = cb;\n    astrmify([bInflt, zule, function () {\n      return [astrm, Inflate, Unzlib];\n    }], this, 0, function () {\n      var strm = new Unzlib();\n      onmessage = astrm(strm);\n    }, 11);\n  }\n  return AsyncUnzlib;\n}();\nexport { AsyncUnzlib };\nexport function unzlib(data, opts, cb) {\n  if (!cb) cb = opts, opts = {};\n  if (typeof cb != 'function') throw 'no callback';\n  return cbify(data, opts, [bInflt, zule, function () {\n    return [unzlibSync];\n  }], function (ev) {\n    return pbf(unzlibSync(ev.data[0], gu8(ev.data[1])));\n  }, 5, cb);\n}\n/**\n * Expands Zlib data\n * @param data The data to decompress\n * @param out Where to write the data. Saves memory if you know the decompressed size and provide an output buffer of that length.\n * @returns The decompressed version of the data\n */\nexport function unzlibSync(data, out) {\n  return inflt((zlv(data), data.subarray(2, -4)), out);\n}\n// Default algorithm for compression (used because having a known output size allows faster decompression)\nexport { gzip as compress, AsyncGzip as AsyncCompress };\n// Default algorithm for compression (used because having a known output size allows faster decompression)\nexport { gzipSync as compressSync, Gzip as Compress };\n/**\n * Streaming GZIP, Zlib, or raw DEFLATE decompression\n */\nvar Decompress = /*#__PURE__*/function () {\n  /**\n   * Creates a decompression stream\n   * @param cb The callback to call whenever data is decompressed\n   */\n  function Decompress(cb) {\n    this.G = Gunzip;\n    this.I = Inflate;\n    this.Z = Unzlib;\n    this.ondata = cb;\n  }\n  /**\n   * Pushes a chunk to be decompressed\n   * @param chunk The chunk to push\n   * @param final Whether this is the last chunk\n   */\n  Decompress.prototype.push = function (chunk, final) {\n    if (!this.ondata) throw 'no stream handler';\n    if (!this.s) {\n      if (this.p && this.p.length) {\n        var n = new u8(this.p.length + chunk.length);\n        n.set(this.p), n.set(chunk, this.p.length);\n      } else this.p = chunk;\n      if (this.p.length > 2) {\n        var _this_1 = this;\n        var cb = function () {\n          _this_1.ondata.apply(_this_1, arguments);\n        };\n        this.s = this.p[0] == 31 && this.p[1] == 139 && this.p[2] == 8 ? new this.G(cb) : (this.p[0] & 15) != 8 || this.p[0] >> 4 > 7 || (this.p[0] << 8 | this.p[1]) % 31 ? new this.I(cb) : new this.Z(cb);\n        this.s.push(this.p, final);\n        this.p = null;\n      }\n    } else this.s.push(chunk, final);\n  };\n  return Decompress;\n}();\nexport { Decompress };\n/**\n * Asynchronous streaming GZIP, Zlib, or raw DEFLATE decompression\n */\nvar AsyncDecompress = /*#__PURE__*/function () {\n  /**\n  * Creates an asynchronous decompression stream\n  * @param cb The callback to call whenever data is decompressed\n  */\n  function AsyncDecompress(cb) {\n    this.G = AsyncGunzip;\n    this.I = AsyncInflate;\n    this.Z = AsyncUnzlib;\n    this.ondata = cb;\n  }\n  /**\n   * Pushes a chunk to be decompressed\n   * @param chunk The chunk to push\n   * @param final Whether this is the last chunk\n   */\n  AsyncDecompress.prototype.push = function (chunk, final) {\n    Decompress.prototype.push.call(this, chunk, final);\n  };\n  return AsyncDecompress;\n}();\nexport { AsyncDecompress };\nexport function decompress(data, opts, cb) {\n  if (!cb) cb = opts, opts = {};\n  if (typeof cb != 'function') throw 'no callback';\n  return data[0] == 31 && data[1] == 139 && data[2] == 8 ? gunzip(data, opts, cb) : (data[0] & 15) != 8 || data[0] >> 4 > 7 || (data[0] << 8 | data[1]) % 31 ? inflate(data, opts, cb) : unzlib(data, opts, cb);\n}\n/**\n * Expands compressed GZIP, Zlib, or raw DEFLATE data, automatically detecting the format\n * @param data The data to decompress\n * @param out Where to write the data. Saves memory if you know the decompressed size and provide an output buffer of that length.\n * @returns The decompressed version of the data\n */\nexport function decompressSync(data, out) {\n  return data[0] == 31 && data[1] == 139 && data[2] == 8 ? gunzipSync(data, out) : (data[0] & 15) != 8 || data[0] >> 4 > 7 || (data[0] << 8 | data[1]) % 31 ? inflateSync(data, out) : unzlibSync(data, out);\n}\n// flatten a directory structure\nvar fltn = function (d, p, t, o) {\n  for (var k in d) {\n    var val = d[k],\n      n = p + k;\n    if (val instanceof u8) t[n] = [val, o];else if (Array.isArray(val)) t[n] = [val[0], mrg(o, val[1])];else fltn(val, n + '/', t, o);\n  }\n};\n/**\n * Converts a string into a Uint8Array for use with compression/decompression methods\n * @param str The string to encode\n * @param latin1 Whether or not to interpret the data as Latin-1. This should\n *               not need to be true unless decoding a binary string.\n * @returns The string encoded in UTF-8/Latin-1 binary\n */\nexport function strToU8(str, latin1) {\n  var l = str.length;\n  if (!latin1 && typeof TextEncoder != 'undefined') return new TextEncoder().encode(str);\n  var ar = new u8(str.length + (str.length >>> 1));\n  var ai = 0;\n  var w = function (v) {\n    ar[ai++] = v;\n  };\n  for (var i = 0; i < l; ++i) {\n    if (ai + 5 > ar.length) {\n      var n = new u8(ai + 8 + (l - i << 1));\n      n.set(ar);\n      ar = n;\n    }\n    var c = str.charCodeAt(i);\n    if (c < 128 || latin1) w(c);else if (c < 2048) w(192 | c >>> 6), w(128 | c & 63);else if (c > 55295 && c < 57344) c = 65536 + (c & 1023 << 10) | str.charCodeAt(++i) & 1023, w(240 | c >>> 18), w(128 | c >>> 12 & 63), w(128 | c >>> 6 & 63), w(128 | c & 63);else w(224 | c >>> 12), w(128 | c >>> 6 & 63), w(128 | c & 63);\n  }\n  return slc(ar, 0, ai);\n}\n/**\n * Converts a Uint8Array to a string\n * @param dat The data to decode to string\n * @param latin1 Whether or not to interpret the data as Latin-1. This should\n *               not need to be true unless encoding to binary string.\n * @returns The original UTF-8/Latin-1 string\n */\nexport function strFromU8(dat, latin1) {\n  var r = '';\n  if (!latin1 && typeof TextDecoder != 'undefined') return new TextDecoder().decode(dat);\n  for (var i = 0; i < dat.length;) {\n    var c = dat[i++];\n    if (c < 128 || latin1) r += String.fromCharCode(c);else if (c < 224) r += String.fromCharCode((c & 31) << 6 | dat[i++] & 63);else if (c < 240) r += String.fromCharCode((c & 15) << 12 | (dat[i++] & 63) << 6 | dat[i++] & 63);else c = ((c & 15) << 18 | (dat[i++] & 63) << 12 | (dat[i++] & 63) << 6 | dat[i++] & 63) - 65536, r += String.fromCharCode(55296 | c >> 10, 56320 | c & 1023);\n  }\n  return r;\n}\n;\n// skip local zip header\nvar slzh = function (d, b) {\n  return b + 30 + b2(d, b + 26) + b2(d, b + 28);\n};\n// read zip header\nvar zh = function (d, b, z) {\n  var fnl = b2(d, b + 28),\n    fn = strFromU8(d.subarray(b + 46, b + 46 + fnl), !(b2(d, b + 8) & 2048)),\n    es = b + 46 + fnl;\n  var _a = z ? z64e(d, es) : [b4(d, b + 20), b4(d, b + 24), b4(d, b + 42)],\n    sc = _a[0],\n    su = _a[1],\n    off = _a[2];\n  return [b2(d, b + 10), sc, su, fn, es + b2(d, b + 30) + b2(d, b + 32), off];\n};\n// read zip64 extra field\nvar z64e = function (d, b) {\n  for (; b2(d, b) != 1; b += 4 + b2(d, b + 2));\n  return [b4(d, b + 12), b4(d, b + 4), b4(d, b + 20)];\n};\n// write zip header\nvar wzh = function (d, b, c, cmp, su, fn, u, o, ce, t) {\n  var fl = fn.length,\n    l = cmp.length;\n  wbytes(d, b, ce != null ? 0x2014B50 : 0x4034B50), b += 4;\n  if (ce != null) d[b] = 20, b += 2;\n  d[b] = 20, b += 2; // spec compliance? what's that?\n  d[b++] = t == 8 && (o.level == 1 ? 6 : o.level < 6 ? 4 : o.level == 9 ? 2 : 0), d[b++] = u && 8;\n  d[b] = t, b += 2;\n  var dt = new Date(o.mtime || Date.now()),\n    y = dt.getFullYear() - 1980;\n  if (y < 0 || y > 119) throw 'date not in range 1980-2099';\n  wbytes(d, b, (y << 24) * 2 | dt.getMonth() + 1 << 21 | dt.getDate() << 16 | dt.getHours() << 11 | dt.getMinutes() << 5 | dt.getSeconds() >>> 1);\n  b += 4;\n  wbytes(d, b, c);\n  wbytes(d, b + 4, l);\n  wbytes(d, b + 8, su);\n  wbytes(d, b + 12, fl), b += 16; // skip extra field, comment\n  if (ce != null) wbytes(d, b += 10, ce), b += 4;\n  d.set(fn, b);\n  b += fl;\n  if (ce == null) d.set(cmp, b);\n};\n// write zip footer (end of central directory)\nvar wzf = function (o, b, c, d, e) {\n  wbytes(o, b, 0x6054B50); // skip disk\n  wbytes(o, b + 8, c);\n  wbytes(o, b + 10, c);\n  wbytes(o, b + 12, d);\n  wbytes(o, b + 16, e);\n};\nexport function zip(data, opts, cb) {\n  if (!cb) cb = opts, opts = {};\n  if (typeof cb != 'function') throw 'no callback';\n  var r = {};\n  fltn(data, '', r, opts);\n  var k = Object.keys(r);\n  var lft = k.length,\n    o = 0,\n    tot = 0;\n  var slft = lft,\n    files = new Array(lft);\n  var term = [];\n  var tAll = function () {\n    for (var i = 0; i < term.length; ++i) term[i]();\n  };\n  var cbf = function () {\n    var out = new u8(tot + 22),\n      oe = o,\n      cdl = tot - o;\n    tot = 0;\n    for (var i = 0; i < slft; ++i) {\n      var f = files[i];\n      try {\n        wzh(out, tot, f.c, f.d, f.m, f.n, f.u, f.p, null, f.t);\n        wzh(out, o, f.c, f.d, f.m, f.n, f.u, f.p, tot, f.t), o += 46 + f.n.length, tot += 30 + f.n.length + f.d.length;\n      } catch (e) {\n        return cb(e, null);\n      }\n    }\n    wzf(out, o, files.length, cdl, oe);\n    cb(null, out);\n  };\n  if (!lft) cbf();\n  var _loop_1 = function (i) {\n    var fn = k[i];\n    var _a = r[fn],\n      file = _a[0],\n      p = _a[1];\n    var c = crc(),\n      m = file.length;\n    c.p(file);\n    var n = strToU8(fn),\n      s = n.length;\n    var t = p.level == 0 ? 0 : 8;\n    var cbl = function (e, d) {\n      if (e) {\n        tAll();\n        cb(e, null);\n      } else {\n        var l = d.length;\n        files[i] = {\n          t: t,\n          d: d,\n          m: m,\n          c: c.d(),\n          u: fn.length != l,\n          n: n,\n          p: p\n        };\n        o += 30 + s + l;\n        tot += 76 + 2 * s + l;\n        if (! --lft) cbf();\n      }\n    };\n    if (n.length > 65535) cbl('filename too long', null);\n    if (!t) cbl(null, file);else if (m < 160000) {\n      try {\n        cbl(null, deflateSync(file, p));\n      } catch (e) {\n        cbl(e, null);\n      }\n    } else term.push(deflate(file, p, cbl));\n  };\n  // Cannot use lft because it can decrease\n  for (var i = 0; i < slft; ++i) {\n    _loop_1(i);\n  }\n  return tAll;\n}\n/**\n * Synchronously creates a ZIP file. Prefer using `zip` for better performance\n * with more than one file.\n * @param data The directory structure for the ZIP archive\n * @param opts The main options, merged with per-file options\n * @returns The generated ZIP archive\n */\nexport function zipSync(data, opts) {\n  if (opts === void 0) {\n    opts = {};\n  }\n  var r = {};\n  var files = [];\n  fltn(data, '', r, opts);\n  var o = 0;\n  var tot = 0;\n  for (var fn in r) {\n    var _a = r[fn],\n      file = _a[0],\n      p = _a[1];\n    var t = p.level == 0 ? 0 : 8;\n    var n = strToU8(fn),\n      s = n.length;\n    if (n.length > 65535) throw 'filename too long';\n    var d = t ? deflateSync(file, p) : file,\n      l = d.length;\n    var c = crc();\n    c.p(file);\n    files.push({\n      t: t,\n      d: d,\n      m: file.length,\n      c: c.d(),\n      u: fn.length != s,\n      n: n,\n      o: o,\n      p: p\n    });\n    o += 30 + s + l;\n    tot += 76 + 2 * s + l;\n  }\n  var out = new u8(tot + 22),\n    oe = o,\n    cdl = tot - o;\n  for (var i = 0; i < files.length; ++i) {\n    var f = files[i];\n    wzh(out, f.o, f.c, f.d, f.m, f.n, f.u, f.p, null, f.t);\n    wzh(out, o, f.c, f.d, f.m, f.n, f.u, f.p, f.o, f.t), o += 46 + f.n.length;\n  }\n  wzf(out, o, files.length, cdl, oe);\n  return out;\n}\n/**\n * Asynchronously decompresses a ZIP archive\n * @param data The raw compressed ZIP file\n * @param cb The callback to call with the decompressed files\n * @returns A function that can be used to immediately terminate the unzipping\n */\nexport function unzip(data, cb) {\n  if (typeof cb != 'function') throw 'no callback';\n  var term = [];\n  var tAll = function () {\n    for (var i = 0; i < term.length; ++i) term[i]();\n  };\n  var files = {};\n  var e = data.length - 22;\n  for (; b4(data, e) != 0x6054B50; --e) {\n    if (!e || data.length - e > 65558) {\n      cb('invalid zip file', null);\n      return;\n    }\n  }\n  ;\n  var lft = b2(data, e + 8);\n  if (!lft) cb(null, {});\n  var c = lft;\n  var o = b4(data, e + 16);\n  var z = o == 4294967295;\n  if (z) {\n    e = b4(data, e - 12);\n    if (b4(data, e) != 0x6064B50) throw 'invalid zip file';\n    c = lft = b4(data, e + 32);\n    o = b4(data, e + 48);\n  }\n  var _loop_2 = function (i) {\n    var _a = zh(data, o, z),\n      c_1 = _a[0],\n      sc = _a[1],\n      su = _a[2],\n      fn = _a[3],\n      no = _a[4],\n      off = _a[5],\n      b = slzh(data, off);\n    o = no;\n    var cbl = function (e, d) {\n      if (e) {\n        tAll();\n        cb(e, null);\n      } else {\n        files[fn] = d;\n        if (! --lft) cb(null, files);\n      }\n    };\n    if (!c_1) cbl(null, slc(data, b, b + sc));else if (c_1 == 8) {\n      var infl = data.subarray(b, b + sc);\n      if (sc < 320000) {\n        try {\n          cbl(null, inflateSync(infl, new u8(su)));\n        } catch (e) {\n          cbl(e, null);\n        }\n      } else term.push(inflate(infl, {\n        size: su\n      }, cbl));\n    } else cbl('unknown compression type ' + c_1, null);\n  };\n  for (var i = 0; i < c; ++i) {\n    _loop_2(i);\n  }\n  return tAll;\n}\n/**\n * Synchronously decompresses a ZIP archive. Prefer using `unzip` for better\n * performance with more than one file.\n * @param data The raw compressed ZIP file\n * @returns The decompressed files\n */\nexport function unzipSync(data) {\n  var files = {};\n  var e = data.length - 22;\n  for (; b4(data, e) != 0x6054B50; --e) {\n    if (!e || data.length - e > 65558) throw 'invalid zip file';\n  }\n  ;\n  var c = b2(data, e + 8);\n  if (!c) return {};\n  var o = b4(data, e + 16);\n  var z = o == 4294967295;\n  if (z) {\n    e = b4(data, e - 12);\n    if (b4(data, e) != 0x6064B50) throw 'invalid zip file';\n    c = b4(data, e + 32);\n    o = b4(data, e + 48);\n  }\n  for (var i = 0; i < c; ++i) {\n    var _a = zh(data, o, z),\n      c_2 = _a[0],\n      sc = _a[1],\n      su = _a[2],\n      fn = _a[3],\n      no = _a[4],\n      off = _a[5],\n      b = slzh(data, off);\n    o = no;\n    if (!c_2) files[fn] = slc(data, b, b + sc);else if (c_2 == 8) files[fn] = inflateSync(data.subarray(b, b + sc), new u8(su));else throw 'unknown compression type ' + c_2;\n  }\n  return files;\n}","/** @license\n *\n * jsPDF - PDF Document creation from JavaScript\n * Version 2.5.1 Built on 2022-01-28T15:37:57.791Z\n *                      CommitID 00000000\n *\n * Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF\n *               2015-2021 yWorks GmbH, http://www.yworks.com\n *               2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX\n *               2016-2018 Aras Abbasi <aras.abbasi@gmail.com>\n *               2010 Aaron Spike, https://github.com/acspike\n *               2012 Willow Systems Corporation, https://github.com/willowsystems\n *               2012 Pablo Hess, https://github.com/pablohess\n *               2012 Florian Jenett, https://github.com/fjenett\n *               2013 Warren Weckesser, https://github.com/warrenweckesser\n *               2013 Youssef Beddad, https://github.com/lifof\n *               2013 Lee Driscoll, https://github.com/lsdriscoll\n *               2013 Stefan Slonevskiy, https://github.com/stefslon\n *               2013 Jeremy Morel, https://github.com/jmorel\n *               2013 Christoph Hartmann, https://github.com/chris-rock\n *               2014 Juan Pablo Gaviria, https://github.com/juanpgaviria\n *               2014 James Makes, https://github.com/dollaruw\n *               2014 Diego Casorran, https://github.com/diegocr\n *               2014 Steven Spungin, https://github.com/Flamenco\n *               2014 Kenneth Glassey, https://github.com/Gavvers\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * \"Software\"), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modify, merge, publish,\n * distribute, sublicense, and/or sell copies of the Software, and to\n * permit persons to whom the Software is furnished to do so, subject to\n * the following conditions:\n *\n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n *\n * Contributor(s):\n *    siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,\n *    kim3er, mfo, alnorth, Flamenco\n */\n\nimport t from \"@babel/runtime/helpers/typeof\";\nimport { zlibSync as e, unzlibSync as r } from \"fflate\";\nvar n = function () {\n  return \"undefined\" != typeof window ? window : \"undefined\" != typeof global ? global : \"undefined\" != typeof self ? self : this;\n}();\nfunction i() {\n  n.console && \"function\" == typeof n.console.log && n.console.log.apply(n.console, arguments);\n}\nvar a = {\n  log: i,\n  warn: function (t) {\n    n.console && (\"function\" == typeof n.console.warn ? n.console.warn.apply(n.console, arguments) : i.call(null, arguments));\n  },\n  error: function (t) {\n    n.console && (\"function\" == typeof n.console.error ? n.console.error.apply(n.console, arguments) : i(t));\n  }\n};\nfunction o(t, e, r) {\n  var n = new XMLHttpRequest();\n  n.open(\"GET\", t), n.responseType = \"blob\", n.onload = function () {\n    l(n.response, e, r);\n  }, n.onerror = function () {\n    a.error(\"could not download file\");\n  }, n.send();\n}\nfunction s(t) {\n  var e = new XMLHttpRequest();\n  e.open(\"HEAD\", t, !1);\n  try {\n    e.send();\n  } catch (t) {}\n  return e.status >= 200 && e.status <= 299;\n}\nfunction c(t) {\n  try {\n    t.dispatchEvent(new MouseEvent(\"click\"));\n  } catch (r) {\n    var e = document.createEvent(\"MouseEvents\");\n    e.initMouseEvent(\"click\", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), t.dispatchEvent(e);\n  }\n}\nvar u,\n  h,\n  l = n.saveAs || (\"object\" !== (\"undefined\" == typeof window ? \"undefined\" : t(window)) || window !== n ? function () {} : \"undefined\" != typeof HTMLAnchorElement && \"download\" in HTMLAnchorElement.prototype ? function (t, e, r) {\n    var i = n.URL || n.webkitURL,\n      a = document.createElement(\"a\");\n    e = e || t.name || \"download\", a.download = e, a.rel = \"noopener\", \"string\" == typeof t ? (a.href = t, a.origin !== location.origin ? s(a.href) ? o(t, e, r) : c(a, a.target = \"_blank\") : c(a)) : (a.href = i.createObjectURL(t), setTimeout(function () {\n      i.revokeObjectURL(a.href);\n    }, 4e4), setTimeout(function () {\n      c(a);\n    }, 0));\n  } : \"msSaveOrOpenBlob\" in navigator ? function (e, r, n) {\n    if (r = r || e.name || \"download\", \"string\" == typeof e) {\n      if (s(e)) o(e, r, n);else {\n        var i = document.createElement(\"a\");\n        i.href = e, i.target = \"_blank\", setTimeout(function () {\n          c(i);\n        });\n      }\n    } else navigator.msSaveOrOpenBlob(function (e, r) {\n      return void 0 === r ? r = {\n        autoBom: !1\n      } : \"object\" !== t(r) && (a.warn(\"Deprecated: Expected third argument to be a object\"), r = {\n        autoBom: !r\n      }), r.autoBom && /^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type) ? new Blob([String.fromCharCode(65279), e], {\n        type: e.type\n      }) : e;\n    }(e, n), r);\n  } : function (e, r, i, a) {\n    if ((a = a || open(\"\", \"_blank\")) && (a.document.title = a.document.body.innerText = \"downloading...\"), \"string\" == typeof e) return o(e, r, i);\n    var s = \"application/octet-stream\" === e.type,\n      c = /constructor/i.test(n.HTMLElement) || n.safari,\n      u = /CriOS\\/[\\d]+/.test(navigator.userAgent);\n    if ((u || s && c) && \"object\" === (\"undefined\" == typeof FileReader ? \"undefined\" : t(FileReader))) {\n      var h = new FileReader();\n      h.onloadend = function () {\n        var t = h.result;\n        t = u ? t : t.replace(/^data:[^;]*;/, \"data:attachment/file;\"), a ? a.location.href = t : location = t, a = null;\n      }, h.readAsDataURL(e);\n    } else {\n      var l = n.URL || n.webkitURL,\n        f = l.createObjectURL(e);\n      a ? a.location = f : location.href = f, a = null, setTimeout(function () {\n        l.revokeObjectURL(f);\n      }, 4e4);\n    }\n  });\n/**\n * A class to parse color values\n * @author Stoyan Stefanov <sstoo@gmail.com>\n * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}\n * @license Use it if you like it\n */\nfunction f(t) {\n  var e;\n  t = t || \"\", this.ok = !1, \"#\" == t.charAt(0) && (t = t.substr(1, 6));\n  t = {\n    aliceblue: \"f0f8ff\",\n    antiquewhite: \"faebd7\",\n    aqua: \"00ffff\",\n    aquamarine: \"7fffd4\",\n    azure: \"f0ffff\",\n    beige: \"f5f5dc\",\n    bisque: \"ffe4c4\",\n    black: \"000000\",\n    blanchedalmond: \"ffebcd\",\n    blue: \"0000ff\",\n    blueviolet: \"8a2be2\",\n    brown: \"a52a2a\",\n    burlywood: \"deb887\",\n    cadetblue: \"5f9ea0\",\n    chartreuse: \"7fff00\",\n    chocolate: \"d2691e\",\n    coral: \"ff7f50\",\n    cornflowerblue: \"6495ed\",\n    cornsilk: \"fff8dc\",\n    crimson: \"dc143c\",\n    cyan: \"00ffff\",\n    darkblue: \"00008b\",\n    darkcyan: \"008b8b\",\n    darkgoldenrod: \"b8860b\",\n    darkgray: \"a9a9a9\",\n    darkgreen: \"006400\",\n    darkkhaki: \"bdb76b\",\n    darkmagenta: \"8b008b\",\n    darkolivegreen: \"556b2f\",\n    darkorange: \"ff8c00\",\n    darkorchid: \"9932cc\",\n    darkred: \"8b0000\",\n    darksalmon: \"e9967a\",\n    darkseagreen: \"8fbc8f\",\n    darkslateblue: \"483d8b\",\n    darkslategray: \"2f4f4f\",\n    darkturquoise: \"00ced1\",\n    darkviolet: \"9400d3\",\n    deeppink: \"ff1493\",\n    deepskyblue: \"00bfff\",\n    dimgray: \"696969\",\n    dodgerblue: \"1e90ff\",\n    feldspar: \"d19275\",\n    firebrick: \"b22222\",\n    floralwhite: \"fffaf0\",\n    forestgreen: \"228b22\",\n    fuchsia: \"ff00ff\",\n    gainsboro: \"dcdcdc\",\n    ghostwhite: \"f8f8ff\",\n    gold: \"ffd700\",\n    goldenrod: \"daa520\",\n    gray: \"808080\",\n    green: \"008000\",\n    greenyellow: \"adff2f\",\n    honeydew: \"f0fff0\",\n    hotpink: \"ff69b4\",\n    indianred: \"cd5c5c\",\n    indigo: \"4b0082\",\n    ivory: \"fffff0\",\n    khaki: \"f0e68c\",\n    lavender: \"e6e6fa\",\n    lavenderblush: \"fff0f5\",\n    lawngreen: \"7cfc00\",\n    lemonchiffon: \"fffacd\",\n    lightblue: \"add8e6\",\n    lightcoral: \"f08080\",\n    lightcyan: \"e0ffff\",\n    lightgoldenrodyellow: \"fafad2\",\n    lightgrey: \"d3d3d3\",\n    lightgreen: \"90ee90\",\n    lightpink: \"ffb6c1\",\n    lightsalmon: \"ffa07a\",\n    lightseagreen: \"20b2aa\",\n    lightskyblue: \"87cefa\",\n    lightslateblue: \"8470ff\",\n    lightslategray: \"778899\",\n    lightsteelblue: \"b0c4de\",\n    lightyellow: \"ffffe0\",\n    lime: \"00ff00\",\n    limegreen: \"32cd32\",\n    linen: \"faf0e6\",\n    magenta: \"ff00ff\",\n    maroon: \"800000\",\n    mediumaquamarine: \"66cdaa\",\n    mediumblue: \"0000cd\",\n    mediumorchid: \"ba55d3\",\n    mediumpurple: \"9370d8\",\n    mediumseagreen: \"3cb371\",\n    mediumslateblue: \"7b68ee\",\n    mediumspringgreen: \"00fa9a\",\n    mediumturquoise: \"48d1cc\",\n    mediumvioletred: \"c71585\",\n    midnightblue: \"191970\",\n    mintcream: \"f5fffa\",\n    mistyrose: \"ffe4e1\",\n    moccasin: \"ffe4b5\",\n    navajowhite: \"ffdead\",\n    navy: \"000080\",\n    oldlace: \"fdf5e6\",\n    olive: \"808000\",\n    olivedrab: \"6b8e23\",\n    orange: \"ffa500\",\n    orangered: \"ff4500\",\n    orchid: \"da70d6\",\n    palegoldenrod: \"eee8aa\",\n    palegreen: \"98fb98\",\n    paleturquoise: \"afeeee\",\n    palevioletred: \"d87093\",\n    papayawhip: \"ffefd5\",\n    peachpuff: \"ffdab9\",\n    peru: \"cd853f\",\n    pink: \"ffc0cb\",\n    plum: \"dda0dd\",\n    powderblue: \"b0e0e6\",\n    purple: \"800080\",\n    red: \"ff0000\",\n    rosybrown: \"bc8f8f\",\n    royalblue: \"4169e1\",\n    saddlebrown: \"8b4513\",\n    salmon: \"fa8072\",\n    sandybrown: \"f4a460\",\n    seagreen: \"2e8b57\",\n    seashell: \"fff5ee\",\n    sienna: \"a0522d\",\n    silver: \"c0c0c0\",\n    skyblue: \"87ceeb\",\n    slateblue: \"6a5acd\",\n    slategray: \"708090\",\n    snow: \"fffafa\",\n    springgreen: \"00ff7f\",\n    steelblue: \"4682b4\",\n    tan: \"d2b48c\",\n    teal: \"008080\",\n    thistle: \"d8bfd8\",\n    tomato: \"ff6347\",\n    turquoise: \"40e0d0\",\n    violet: \"ee82ee\",\n    violetred: \"d02090\",\n    wheat: \"f5deb3\",\n    white: \"ffffff\",\n    whitesmoke: \"f5f5f5\",\n    yellow: \"ffff00\",\n    yellowgreen: \"9acd32\"\n  }[t = (t = t.replace(/ /g, \"\")).toLowerCase()] || t;\n  for (var r = [{\n      re: /^rgb\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})\\)$/,\n      example: [\"rgb(123, 234, 45)\", \"rgb(255,234,245)\"],\n      process: function (t) {\n        return [parseInt(t[1]), parseInt(t[2]), parseInt(t[3])];\n      }\n    }, {\n      re: /^(\\w{2})(\\w{2})(\\w{2})$/,\n      example: [\"#00ff00\", \"336699\"],\n      process: function (t) {\n        return [parseInt(t[1], 16), parseInt(t[2], 16), parseInt(t[3], 16)];\n      }\n    }, {\n      re: /^(\\w{1})(\\w{1})(\\w{1})$/,\n      example: [\"#fb0\", \"f0f\"],\n      process: function (t) {\n        return [parseInt(t[1] + t[1], 16), parseInt(t[2] + t[2], 16), parseInt(t[3] + t[3], 16)];\n      }\n    }], n = 0; n < r.length; n++) {\n    var i = r[n].re,\n      a = r[n].process,\n      o = i.exec(t);\n    o && (e = a(o), this.r = e[0], this.g = e[1], this.b = e[2], this.ok = !0);\n  }\n  this.r = this.r < 0 || isNaN(this.r) ? 0 : this.r > 255 ? 255 : this.r, this.g = this.g < 0 || isNaN(this.g) ? 0 : this.g > 255 ? 255 : this.g, this.b = this.b < 0 || isNaN(this.b) ? 0 : this.b > 255 ? 255 : this.b, this.toRGB = function () {\n    return \"rgb(\" + this.r + \", \" + this.g + \", \" + this.b + \")\";\n  }, this.toHex = function () {\n    var t = this.r.toString(16),\n      e = this.g.toString(16),\n      r = this.b.toString(16);\n    return 1 == t.length && (t = \"0\" + t), 1 == e.length && (e = \"0\" + e), 1 == r.length && (r = \"0\" + r), \"#\" + t + e + r;\n  };\n}\n/**\n * @license\n * Joseph Myers does not specify a particular license for his work.\n *\n * Author: Joseph Myers\n * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js\n *\n * Modified by: Owen Leong\n */\nfunction d(t, e) {\n  var r = t[0],\n    n = t[1],\n    i = t[2],\n    a = t[3];\n  r = g(r, n, i, a, e[0], 7, -680876936), a = g(a, r, n, i, e[1], 12, -389564586), i = g(i, a, r, n, e[2], 17, 606105819), n = g(n, i, a, r, e[3], 22, -1044525330), r = g(r, n, i, a, e[4], 7, -176418897), a = g(a, r, n, i, e[5], 12, 1200080426), i = g(i, a, r, n, e[6], 17, -1473231341), n = g(n, i, a, r, e[7], 22, -45705983), r = g(r, n, i, a, e[8], 7, 1770035416), a = g(a, r, n, i, e[9], 12, -1958414417), i = g(i, a, r, n, e[10], 17, -42063), n = g(n, i, a, r, e[11], 22, -1990404162), r = g(r, n, i, a, e[12], 7, 1804603682), a = g(a, r, n, i, e[13], 12, -40341101), i = g(i, a, r, n, e[14], 17, -1502002290), r = m(r, n = g(n, i, a, r, e[15], 22, 1236535329), i, a, e[1], 5, -165796510), a = m(a, r, n, i, e[6], 9, -1069501632), i = m(i, a, r, n, e[11], 14, 643717713), n = m(n, i, a, r, e[0], 20, -373897302), r = m(r, n, i, a, e[5], 5, -701558691), a = m(a, r, n, i, e[10], 9, 38016083), i = m(i, a, r, n, e[15], 14, -660478335), n = m(n, i, a, r, e[4], 20, -405537848), r = m(r, n, i, a, e[9], 5, 568446438), a = m(a, r, n, i, e[14], 9, -1019803690), i = m(i, a, r, n, e[3], 14, -187363961), n = m(n, i, a, r, e[8], 20, 1163531501), r = m(r, n, i, a, e[13], 5, -1444681467), a = m(a, r, n, i, e[2], 9, -51403784), i = m(i, a, r, n, e[7], 14, 1735328473), r = v(r, n = m(n, i, a, r, e[12], 20, -1926607734), i, a, e[5], 4, -378558), a = v(a, r, n, i, e[8], 11, -2022574463), i = v(i, a, r, n, e[11], 16, 1839030562), n = v(n, i, a, r, e[14], 23, -35309556), r = v(r, n, i, a, e[1], 4, -1530992060), a = v(a, r, n, i, e[4], 11, 1272893353), i = v(i, a, r, n, e[7], 16, -155497632), n = v(n, i, a, r, e[10], 23, -1094730640), r = v(r, n, i, a, e[13], 4, 681279174), a = v(a, r, n, i, e[0], 11, -358537222), i = v(i, a, r, n, e[3], 16, -722521979), n = v(n, i, a, r, e[6], 23, 76029189), r = v(r, n, i, a, e[9], 4, -640364487), a = v(a, r, n, i, e[12], 11, -421815835), i = v(i, a, r, n, e[15], 16, 530742520), r = b(r, n = v(n, i, a, r, e[2], 23, -995338651), i, a, e[0], 6, -198630844), a = b(a, r, n, i, e[7], 10, 1126891415), i = b(i, a, r, n, e[14], 15, -1416354905), n = b(n, i, a, r, e[5], 21, -57434055), r = b(r, n, i, a, e[12], 6, 1700485571), a = b(a, r, n, i, e[3], 10, -1894986606), i = b(i, a, r, n, e[10], 15, -1051523), n = b(n, i, a, r, e[1], 21, -2054922799), r = b(r, n, i, a, e[8], 6, 1873313359), a = b(a, r, n, i, e[15], 10, -30611744), i = b(i, a, r, n, e[6], 15, -1560198380), n = b(n, i, a, r, e[13], 21, 1309151649), r = b(r, n, i, a, e[4], 6, -145523070), a = b(a, r, n, i, e[11], 10, -1120210379), i = b(i, a, r, n, e[2], 15, 718787259), n = b(n, i, a, r, e[9], 21, -343485551), t[0] = _(r, t[0]), t[1] = _(n, t[1]), t[2] = _(i, t[2]), t[3] = _(a, t[3]);\n}\nfunction p(t, e, r, n, i, a) {\n  return e = _(_(e, t), _(n, a)), _(e << i | e >>> 32 - i, r);\n}\nfunction g(t, e, r, n, i, a, o) {\n  return p(e & r | ~e & n, t, e, i, a, o);\n}\nfunction m(t, e, r, n, i, a, o) {\n  return p(e & n | r & ~n, t, e, i, a, o);\n}\nfunction v(t, e, r, n, i, a, o) {\n  return p(e ^ r ^ n, t, e, i, a, o);\n}\nfunction b(t, e, r, n, i, a, o) {\n  return p(r ^ (e | ~n), t, e, i, a, o);\n}\nfunction y(t) {\n  var e,\n    r = t.length,\n    n = [1732584193, -271733879, -1732584194, 271733878];\n  for (e = 64; e <= t.length; e += 64) d(n, w(t.substring(e - 64, e)));\n  t = t.substring(e - 64);\n  var i = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\n  for (e = 0; e < t.length; e++) i[e >> 2] |= t.charCodeAt(e) << (e % 4 << 3);\n  if (i[e >> 2] |= 128 << (e % 4 << 3), e > 55) for (d(n, i), e = 0; e < 16; e++) i[e] = 0;\n  return i[14] = 8 * r, d(n, i), n;\n}\nfunction w(t) {\n  var e,\n    r = [];\n  for (e = 0; e < 64; e += 4) r[e >> 2] = t.charCodeAt(e) + (t.charCodeAt(e + 1) << 8) + (t.charCodeAt(e + 2) << 16) + (t.charCodeAt(e + 3) << 24);\n  return r;\n}\nu = n.atob.bind(n), h = n.btoa.bind(n);\nvar N = \"0123456789abcdef\".split(\"\");\nfunction L(t) {\n  for (var e = \"\", r = 0; r < 4; r++) e += N[t >> 8 * r + 4 & 15] + N[t >> 8 * r & 15];\n  return e;\n}\nfunction A(t) {\n  return String.fromCharCode((255 & t) >> 0, (65280 & t) >> 8, (16711680 & t) >> 16, (4278190080 & t) >> 24);\n}\nfunction x(t) {\n  return y(t).map(A).join(\"\");\n}\nvar S = \"5d41402abc4b2a76b9719d911017c592\" != function (t) {\n  for (var e = 0; e < t.length; e++) t[e] = L(t[e]);\n  return t.join(\"\");\n}(y(\"hello\"));\nfunction _(t, e) {\n  if (S) {\n    var r = (65535 & t) + (65535 & e);\n    return (t >> 16) + (e >> 16) + (r >> 16) << 16 | 65535 & r;\n  }\n  return t + e & 4294967295;\n}\n/**\n * @license\n * FPDF is released under a permissive license: there is no usage restriction.\n * You may embed it freely in your application (commercial or not), with or\n * without modifications.\n *\n * Reference: http://www.fpdf.org/en/script/script37.php\n */\nfunction P(t, e) {\n  var r, n, i, a;\n  if (t !== r) {\n    for (var o = (i = t, a = 1 + (256 / t.length >> 0), new Array(a + 1).join(i)), s = [], c = 0; c < 256; c++) s[c] = c;\n    var u = 0;\n    for (c = 0; c < 256; c++) {\n      var h = s[c];\n      u = (u + h + o.charCodeAt(c)) % 256, s[c] = s[u], s[u] = h;\n    }\n    r = t, n = s;\n  } else s = n;\n  var l = e.length,\n    f = 0,\n    d = 0,\n    p = \"\";\n  for (c = 0; c < l; c++) d = (d + (h = s[f = (f + 1) % 256])) % 256, s[f] = s[d], s[d] = h, o = s[(s[f] + s[d]) % 256], p += String.fromCharCode(e.charCodeAt(c) ^ o);\n  return p;\n}\n/**\n * @license\n * Licensed under the MIT License.\n * http://opensource.org/licenses/mit-license\n * Author: Owen Leong (@owenl131)\n * Date: 15 Oct 2020\n * References:\n * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt\n * https://github.com/foliojs/pdfkit/blob/master/lib/security.js\n * http://www.fpdf.org/en/script/script37.php\n */\nvar k = {\n  print: 4,\n  modify: 8,\n  copy: 16,\n  \"annot-forms\": 32\n};\nfunction I(t, e, r, n) {\n  this.v = 1, this.r = 2;\n  var i = 192;\n  t.forEach(function (t) {\n    if (void 0 !== k.perm) throw new Error(\"Invalid permission: \" + t);\n    i += k[t];\n  }), this.padding = \"(¿N^NuŠAd\\0NVÿú\u0001\\b..\\0¶Ðh>€/\\f©þdSiz\";\n  var a = (e + this.padding).substr(0, 32),\n    o = (r + this.padding).substr(0, 32);\n  this.O = this.processOwnerPassword(a, o), this.P = -(1 + (255 ^ i)), this.encryptionKey = x(a + this.O + this.lsbFirstWord(this.P) + this.hexToBytes(n)).substr(0, 5), this.U = P(this.encryptionKey, this.padding);\n}\nfunction F(t) {\n  if (/[^\\u0000-\\u00ff]/.test(t)) throw new Error(\"Invalid PDF Name Object: \" + t + \", Only accept ASCII characters.\");\n  for (var e = \"\", r = t.length, n = 0; n < r; n++) {\n    var i = t.charCodeAt(n);\n    if (i < 33 || 35 === i || 37 === i || 40 === i || 41 === i || 47 === i || 60 === i || 62 === i || 91 === i || 93 === i || 123 === i || 125 === i || i > 126) e += \"#\" + (\"0\" + i.toString(16)).slice(-2);else e += t[n];\n  }\n  return e;\n}\nfunction C(e) {\n  if (\"object\" !== t(e)) throw new Error(\"Invalid Context passed to initialize PubSub (jsPDF-module)\");\n  var r = {};\n  this.subscribe = function (t, e, n) {\n    if (n = n || !1, \"string\" != typeof t || \"function\" != typeof e || \"boolean\" != typeof n) throw new Error(\"Invalid arguments passed to PubSub.subscribe (jsPDF-module)\");\n    r.hasOwnProperty(t) || (r[t] = {});\n    var i = Math.random().toString(35);\n    return r[t][i] = [e, !!n], i;\n  }, this.unsubscribe = function (t) {\n    for (var e in r) if (r[e][t]) return delete r[e][t], 0 === Object.keys(r[e]).length && delete r[e], !0;\n    return !1;\n  }, this.publish = function (t) {\n    if (r.hasOwnProperty(t)) {\n      var i = Array.prototype.slice.call(arguments, 1),\n        o = [];\n      for (var s in r[t]) {\n        var c = r[t][s];\n        try {\n          c[0].apply(e, i);\n        } catch (t) {\n          n.console && a.error(\"jsPDF PubSub Error\", t.message, t);\n        }\n        c[1] && o.push(s);\n      }\n      o.length && o.forEach(this.unsubscribe);\n    }\n  }, this.getTopics = function () {\n    return r;\n  };\n}\nfunction j(t) {\n  if (!(this instanceof j)) return new j(t);\n  var e = \"opacity,stroke-opacity\".split(\",\");\n  for (var r in t) t.hasOwnProperty(r) && e.indexOf(r) >= 0 && (this[r] = t[r]);\n  this.id = \"\", this.objectNumber = -1;\n}\nfunction O(t, e) {\n  this.gState = t, this.matrix = e, this.id = \"\", this.objectNumber = -1;\n}\nfunction B(t, e, r, n, i) {\n  if (!(this instanceof B)) return new B(t, e, r, n, i);\n  this.type = \"axial\" === t ? 2 : 3, this.coords = e, this.colors = r, O.call(this, n, i);\n}\nfunction M(t, e, r, n, i) {\n  if (!(this instanceof M)) return new M(t, e, r, n, i);\n  this.boundingBox = t, this.xStep = e, this.yStep = r, this.stream = \"\", this.cloneIndex = 0, O.call(this, n, i);\n}\nfunction E(e) {\n  var r,\n    i = \"string\" == typeof arguments[0] ? arguments[0] : \"p\",\n    o = arguments[1],\n    s = arguments[2],\n    c = arguments[3],\n    u = [],\n    d = 1,\n    p = 16,\n    g = \"S\",\n    m = null;\n  \"object\" === t(e = e || {}) && (i = e.orientation, o = e.unit || o, s = e.format || s, c = e.compress || e.compressPdf || c, null !== (m = e.encryption || null) && (m.userPassword = m.userPassword || \"\", m.ownerPassword = m.ownerPassword || \"\", m.userPermissions = m.userPermissions || []), d = \"number\" == typeof e.userUnit ? Math.abs(e.userUnit) : 1, void 0 !== e.precision && (r = e.precision), void 0 !== e.floatPrecision && (p = e.floatPrecision), g = e.defaultPathOperation || \"S\"), u = e.filters || (!0 === c ? [\"FlateEncode\"] : u), o = o || \"mm\", i = (\"\" + (i || \"P\")).toLowerCase();\n  var v = e.putOnlyUsedFonts || !1,\n    b = {},\n    y = {\n      internal: {},\n      __private__: {}\n    };\n  y.__private__.PubSub = C;\n  var w = \"1.3\",\n    N = y.__private__.getPdfVersion = function () {\n      return w;\n    };\n  y.__private__.setPdfVersion = function (t) {\n    w = t;\n  };\n  var L = {\n    a0: [2383.94, 3370.39],\n    a1: [1683.78, 2383.94],\n    a2: [1190.55, 1683.78],\n    a3: [841.89, 1190.55],\n    a4: [595.28, 841.89],\n    a5: [419.53, 595.28],\n    a6: [297.64, 419.53],\n    a7: [209.76, 297.64],\n    a8: [147.4, 209.76],\n    a9: [104.88, 147.4],\n    a10: [73.7, 104.88],\n    b0: [2834.65, 4008.19],\n    b1: [2004.09, 2834.65],\n    b2: [1417.32, 2004.09],\n    b3: [1000.63, 1417.32],\n    b4: [708.66, 1000.63],\n    b5: [498.9, 708.66],\n    b6: [354.33, 498.9],\n    b7: [249.45, 354.33],\n    b8: [175.75, 249.45],\n    b9: [124.72, 175.75],\n    b10: [87.87, 124.72],\n    c0: [2599.37, 3676.54],\n    c1: [1836.85, 2599.37],\n    c2: [1298.27, 1836.85],\n    c3: [918.43, 1298.27],\n    c4: [649.13, 918.43],\n    c5: [459.21, 649.13],\n    c6: [323.15, 459.21],\n    c7: [229.61, 323.15],\n    c8: [161.57, 229.61],\n    c9: [113.39, 161.57],\n    c10: [79.37, 113.39],\n    dl: [311.81, 623.62],\n    letter: [612, 792],\n    \"government-letter\": [576, 756],\n    legal: [612, 1008],\n    \"junior-legal\": [576, 360],\n    ledger: [1224, 792],\n    tabloid: [792, 1224],\n    \"credit-card\": [153, 243]\n  };\n  y.__private__.getPageFormats = function () {\n    return L;\n  };\n  var A = y.__private__.getPageFormat = function (t) {\n    return L[t];\n  };\n  s = s || \"a4\";\n  var x = {\n      COMPAT: \"compat\",\n      ADVANCED: \"advanced\"\n    },\n    S = x.COMPAT;\n  function _() {\n    this.saveGraphicsState(), lt(new Vt(_t, 0, 0, -_t, 0, Rr() * _t).toString() + \" cm\"), this.setFontSize(this.getFontSize() / _t), g = \"n\", S = x.ADVANCED;\n  }\n  function P() {\n    this.restoreGraphicsState(), g = \"S\", S = x.COMPAT;\n  }\n  var k = y.__private__.combineFontStyleAndFontWeight = function (t, e) {\n    if (\"bold\" == t && \"normal\" == e || \"bold\" == t && 400 == e || \"normal\" == t && \"italic\" == e || \"bold\" == t && \"italic\" == e) throw new Error(\"Invalid Combination of fontweight and fontstyle\");\n    return e && (t = 400 == e || \"normal\" === e ? \"italic\" === t ? \"italic\" : \"normal\" : 700 != e && \"bold\" !== e || \"normal\" !== t ? (700 == e ? \"bold\" : e) + \"\" + t : \"bold\"), t;\n  };\n  y.advancedAPI = function (t) {\n    var e = S === x.COMPAT;\n    return e && _.call(this), \"function\" != typeof t || (t(this), e && P.call(this)), this;\n  }, y.compatAPI = function (t) {\n    var e = S === x.ADVANCED;\n    return e && P.call(this), \"function\" != typeof t || (t(this), e && _.call(this)), this;\n  }, y.isAdvancedAPI = function () {\n    return S === x.ADVANCED;\n  };\n  var O,\n    q = function (t) {\n      if (S !== x.ADVANCED) throw new Error(t + \" is only available in 'advanced' API mode. You need to call advancedAPI() first.\");\n    },\n    D = y.roundToPrecision = y.__private__.roundToPrecision = function (t, e) {\n      var n = r || e;\n      if (isNaN(t) || isNaN(n)) throw new Error(\"Invalid argument passed to jsPDF.roundToPrecision\");\n      return t.toFixed(n).replace(/0+$/, \"\");\n    };\n  O = y.hpf = y.__private__.hpf = \"number\" == typeof p ? function (t) {\n    if (isNaN(t)) throw new Error(\"Invalid argument passed to jsPDF.hpf\");\n    return D(t, p);\n  } : \"smart\" === p ? function (t) {\n    if (isNaN(t)) throw new Error(\"Invalid argument passed to jsPDF.hpf\");\n    return D(t, t > -1 && t < 1 ? 16 : 5);\n  } : function (t) {\n    if (isNaN(t)) throw new Error(\"Invalid argument passed to jsPDF.hpf\");\n    return D(t, 16);\n  };\n  var R = y.f2 = y.__private__.f2 = function (t) {\n      if (isNaN(t)) throw new Error(\"Invalid argument passed to jsPDF.f2\");\n      return D(t, 2);\n    },\n    T = y.__private__.f3 = function (t) {\n      if (isNaN(t)) throw new Error(\"Invalid argument passed to jsPDF.f3\");\n      return D(t, 3);\n    },\n    U = y.scale = y.__private__.scale = function (t) {\n      if (isNaN(t)) throw new Error(\"Invalid argument passed to jsPDF.scale\");\n      return S === x.COMPAT ? t * _t : S === x.ADVANCED ? t : void 0;\n    },\n    z = function (t) {\n      return S === x.COMPAT ? Rr() - t : S === x.ADVANCED ? t : void 0;\n    },\n    H = function (t) {\n      return U(z(t));\n    };\n  y.__private__.setPrecision = y.setPrecision = function (t) {\n    \"number\" == typeof parseInt(t, 10) && (r = parseInt(t, 10));\n  };\n  var W,\n    V = \"00000000000000000000000000000000\",\n    G = y.__private__.getFileId = function () {\n      return V;\n    },\n    Y = y.__private__.setFileId = function (t) {\n      return V = void 0 !== t && /^[a-fA-F0-9]{32}$/.test(t) ? t.toUpperCase() : V.split(\"\").map(function () {\n        return \"ABCDEF0123456789\".charAt(Math.floor(16 * Math.random()));\n      }).join(\"\"), null !== m && (Ye = new I(m.userPermissions, m.userPassword, m.ownerPassword, V)), V;\n    };\n  y.setFileId = function (t) {\n    return Y(t), this;\n  }, y.getFileId = function () {\n    return G();\n  };\n  var J = y.__private__.convertDateToPDFDate = function (t) {\n      var e = t.getTimezoneOffset(),\n        r = e < 0 ? \"+\" : \"-\",\n        n = Math.floor(Math.abs(e / 60)),\n        i = Math.abs(e % 60),\n        a = [r, Q(n), \"'\", Q(i), \"'\"].join(\"\");\n      return [\"D:\", t.getFullYear(), Q(t.getMonth() + 1), Q(t.getDate()), Q(t.getHours()), Q(t.getMinutes()), Q(t.getSeconds()), a].join(\"\");\n    },\n    X = y.__private__.convertPDFDateToDate = function (t) {\n      var e = parseInt(t.substr(2, 4), 10),\n        r = parseInt(t.substr(6, 2), 10) - 1,\n        n = parseInt(t.substr(8, 2), 10),\n        i = parseInt(t.substr(10, 2), 10),\n        a = parseInt(t.substr(12, 2), 10),\n        o = parseInt(t.substr(14, 2), 10);\n      return new Date(e, r, n, i, a, o, 0);\n    },\n    K = y.__private__.setCreationDate = function (t) {\n      var e;\n      if (void 0 === t && (t = new Date()), t instanceof Date) e = J(t);else {\n        if (!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\\+0[0-9]|\\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(t)) throw new Error(\"Invalid argument passed to jsPDF.setCreationDate\");\n        e = t;\n      }\n      return W = e;\n    },\n    Z = y.__private__.getCreationDate = function (t) {\n      var e = W;\n      return \"jsDate\" === t && (e = X(W)), e;\n    };\n  y.setCreationDate = function (t) {\n    return K(t), this;\n  }, y.getCreationDate = function (t) {\n    return Z(t);\n  };\n  var $,\n    Q = y.__private__.padd2 = function (t) {\n      return (\"0\" + parseInt(t)).slice(-2);\n    },\n    tt = y.__private__.padd2Hex = function (t) {\n      return (\"00\" + (t = t.toString())).substr(t.length);\n    },\n    et = 0,\n    rt = [],\n    nt = [],\n    it = 0,\n    at = [],\n    ot = [],\n    st = !1,\n    ct = nt,\n    ut = function () {\n      et = 0, it = 0, nt = [], rt = [], at = [], Qt = Kt(), te = Kt();\n    };\n  y.__private__.setCustomOutputDestination = function (t) {\n    st = !0, ct = t;\n  };\n  var ht = function (t) {\n    st || (ct = t);\n  };\n  y.__private__.resetCustomOutputDestination = function () {\n    st = !1, ct = nt;\n  };\n  var lt = y.__private__.out = function (t) {\n      return t = t.toString(), it += t.length + 1, ct.push(t), ct;\n    },\n    ft = y.__private__.write = function (t) {\n      return lt(1 === arguments.length ? t.toString() : Array.prototype.join.call(arguments, \" \"));\n    },\n    dt = y.__private__.getArrayBuffer = function (t) {\n      for (var e = t.length, r = new ArrayBuffer(e), n = new Uint8Array(r); e--;) n[e] = t.charCodeAt(e);\n      return r;\n    },\n    pt = [[\"Helvetica\", \"helvetica\", \"normal\", \"WinAnsiEncoding\"], [\"Helvetica-Bold\", \"helvetica\", \"bold\", \"WinAnsiEncoding\"], [\"Helvetica-Oblique\", \"helvetica\", \"italic\", \"WinAnsiEncoding\"], [\"Helvetica-BoldOblique\", \"helvetica\", \"bolditalic\", \"WinAnsiEncoding\"], [\"Courier\", \"courier\", \"normal\", \"WinAnsiEncoding\"], [\"Courier-Bold\", \"courier\", \"bold\", \"WinAnsiEncoding\"], [\"Courier-Oblique\", \"courier\", \"italic\", \"WinAnsiEncoding\"], [\"Courier-BoldOblique\", \"courier\", \"bolditalic\", \"WinAnsiEncoding\"], [\"Times-Roman\", \"times\", \"normal\", \"WinAnsiEncoding\"], [\"Times-Bold\", \"times\", \"bold\", \"WinAnsiEncoding\"], [\"Times-Italic\", \"times\", \"italic\", \"WinAnsiEncoding\"], [\"Times-BoldItalic\", \"times\", \"bolditalic\", \"WinAnsiEncoding\"], [\"ZapfDingbats\", \"zapfdingbats\", \"normal\", null], [\"Symbol\", \"symbol\", \"normal\", null]];\n  y.__private__.getStandardFonts = function () {\n    return pt;\n  };\n  var gt = e.fontSize || 16;\n  y.__private__.setFontSize = y.setFontSize = function (t) {\n    return gt = S === x.ADVANCED ? t / _t : t, this;\n  };\n  var mt,\n    vt = y.__private__.getFontSize = y.getFontSize = function () {\n      return S === x.COMPAT ? gt : gt * _t;\n    },\n    bt = e.R2L || !1;\n  y.__private__.setR2L = y.setR2L = function (t) {\n    return bt = t, this;\n  }, y.__private__.getR2L = y.getR2L = function () {\n    return bt;\n  };\n  var yt,\n    wt = y.__private__.setZoomMode = function (t) {\n      var e = [void 0, null, \"fullwidth\", \"fullheight\", \"fullpage\", \"original\"];\n      if (/^(?:\\d+\\.\\d*|\\d*\\.\\d+|\\d+)%$/.test(t)) mt = t;else if (isNaN(t)) {\n        if (-1 === e.indexOf(t)) throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. \"' + t + '\" is not recognized.');\n        mt = t;\n      } else mt = parseInt(t, 10);\n    };\n  y.__private__.getZoomMode = function () {\n    return mt;\n  };\n  var Nt,\n    Lt = y.__private__.setPageMode = function (t) {\n      if (-1 == [void 0, null, \"UseNone\", \"UseOutlines\", \"UseThumbs\", \"FullScreen\"].indexOf(t)) throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. \"' + t + '\" is not recognized.');\n      yt = t;\n    };\n  y.__private__.getPageMode = function () {\n    return yt;\n  };\n  var At = y.__private__.setLayoutMode = function (t) {\n    if (-1 == [void 0, null, \"continuous\", \"single\", \"twoleft\", \"tworight\", \"two\"].indexOf(t)) throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. \"' + t + '\" is not recognized.');\n    Nt = t;\n  };\n  y.__private__.getLayoutMode = function () {\n    return Nt;\n  }, y.__private__.setDisplayMode = y.setDisplayMode = function (t, e, r) {\n    return wt(t), At(e), Lt(r), this;\n  };\n  var xt = {\n    title: \"\",\n    subject: \"\",\n    author: \"\",\n    keywords: \"\",\n    creator: \"\"\n  };\n  y.__private__.getDocumentProperty = function (t) {\n    if (-1 === Object.keys(xt).indexOf(t)) throw new Error(\"Invalid argument passed to jsPDF.getDocumentProperty\");\n    return xt[t];\n  }, y.__private__.getDocumentProperties = function () {\n    return xt;\n  }, y.__private__.setDocumentProperties = y.setProperties = y.setDocumentProperties = function (t) {\n    for (var e in xt) xt.hasOwnProperty(e) && t[e] && (xt[e] = t[e]);\n    return this;\n  }, y.__private__.setDocumentProperty = function (t, e) {\n    if (-1 === Object.keys(xt).indexOf(t)) throw new Error(\"Invalid arguments passed to jsPDF.setDocumentProperty\");\n    return xt[t] = e;\n  };\n  var St,\n    _t,\n    Pt,\n    kt,\n    It,\n    Ft = {},\n    Ct = {},\n    jt = [],\n    Ot = {},\n    Bt = {},\n    Mt = {},\n    Et = {},\n    qt = null,\n    Dt = 0,\n    Rt = [],\n    Tt = new C(y),\n    Ut = e.hotfixes || [],\n    zt = {},\n    Ht = {},\n    Wt = [],\n    Vt = function t(e, r, n, i, a, o) {\n      if (!(this instanceof t)) return new t(e, r, n, i, a, o);\n      isNaN(e) && (e = 1), isNaN(r) && (r = 0), isNaN(n) && (n = 0), isNaN(i) && (i = 1), isNaN(a) && (a = 0), isNaN(o) && (o = 0), this._matrix = [e, r, n, i, a, o];\n    };\n  Object.defineProperty(Vt.prototype, \"sx\", {\n    get: function () {\n      return this._matrix[0];\n    },\n    set: function (t) {\n      this._matrix[0] = t;\n    }\n  }), Object.defineProperty(Vt.prototype, \"shy\", {\n    get: function () {\n      return this._matrix[1];\n    },\n    set: function (t) {\n      this._matrix[1] = t;\n    }\n  }), Object.defineProperty(Vt.prototype, \"shx\", {\n    get: function () {\n      return this._matrix[2];\n    },\n    set: function (t) {\n      this._matrix[2] = t;\n    }\n  }), Object.defineProperty(Vt.prototype, \"sy\", {\n    get: function () {\n      return this._matrix[3];\n    },\n    set: function (t) {\n      this._matrix[3] = t;\n    }\n  }), Object.defineProperty(Vt.prototype, \"tx\", {\n    get: function () {\n      return this._matrix[4];\n    },\n    set: function (t) {\n      this._matrix[4] = t;\n    }\n  }), Object.defineProperty(Vt.prototype, \"ty\", {\n    get: function () {\n      return this._matrix[5];\n    },\n    set: function (t) {\n      this._matrix[5] = t;\n    }\n  }), Object.defineProperty(Vt.prototype, \"a\", {\n    get: function () {\n      return this._matrix[0];\n    },\n    set: function (t) {\n      this._matrix[0] = t;\n    }\n  }), Object.defineProperty(Vt.prototype, \"b\", {\n    get: function () {\n      return this._matrix[1];\n    },\n    set: function (t) {\n      this._matrix[1] = t;\n    }\n  }), Object.defineProperty(Vt.prototype, \"c\", {\n    get: function () {\n      return this._matrix[2];\n    },\n    set: function (t) {\n      this._matrix[2] = t;\n    }\n  }), Object.defineProperty(Vt.prototype, \"d\", {\n    get: function () {\n      return this._matrix[3];\n    },\n    set: function (t) {\n      this._matrix[3] = t;\n    }\n  }), Object.defineProperty(Vt.prototype, \"e\", {\n    get: function () {\n      return this._matrix[4];\n    },\n    set: function (t) {\n      this._matrix[4] = t;\n    }\n  }), Object.defineProperty(Vt.prototype, \"f\", {\n    get: function () {\n      return this._matrix[5];\n    },\n    set: function (t) {\n      this._matrix[5] = t;\n    }\n  }), Object.defineProperty(Vt.prototype, \"rotation\", {\n    get: function () {\n      return Math.atan2(this.shx, this.sx);\n    }\n  }), Object.defineProperty(Vt.prototype, \"scaleX\", {\n    get: function () {\n      return this.decompose().scale.sx;\n    }\n  }), Object.defineProperty(Vt.prototype, \"scaleY\", {\n    get: function () {\n      return this.decompose().scale.sy;\n    }\n  }), Object.defineProperty(Vt.prototype, \"isIdentity\", {\n    get: function () {\n      return 1 === this.sx && 0 === this.shy && 0 === this.shx && 1 === this.sy && 0 === this.tx && 0 === this.ty;\n    }\n  }), Vt.prototype.join = function (t) {\n    return [this.sx, this.shy, this.shx, this.sy, this.tx, this.ty].map(O).join(t);\n  }, Vt.prototype.multiply = function (t) {\n    var e = t.sx * this.sx + t.shy * this.shx,\n      r = t.sx * this.shy + t.shy * this.sy,\n      n = t.shx * this.sx + t.sy * this.shx,\n      i = t.shx * this.shy + t.sy * this.sy,\n      a = t.tx * this.sx + t.ty * this.shx + this.tx,\n      o = t.tx * this.shy + t.ty * this.sy + this.ty;\n    return new Vt(e, r, n, i, a, o);\n  }, Vt.prototype.decompose = function () {\n    var t = this.sx,\n      e = this.shy,\n      r = this.shx,\n      n = this.sy,\n      i = this.tx,\n      a = this.ty,\n      o = Math.sqrt(t * t + e * e),\n      s = (t /= o) * r + (e /= o) * n;\n    r -= t * s, n -= e * s;\n    var c = Math.sqrt(r * r + n * n);\n    return s /= c, t * (n /= c) < e * (r /= c) && (t = -t, e = -e, s = -s, o = -o), {\n      scale: new Vt(o, 0, 0, c, 0, 0),\n      translate: new Vt(1, 0, 0, 1, i, a),\n      rotate: new Vt(t, e, -e, t, 0, 0),\n      skew: new Vt(1, 0, s, 1, 0, 0)\n    };\n  }, Vt.prototype.toString = function (t) {\n    return this.join(\" \");\n  }, Vt.prototype.inversed = function () {\n    var t = this.sx,\n      e = this.shy,\n      r = this.shx,\n      n = this.sy,\n      i = this.tx,\n      a = this.ty,\n      o = 1 / (t * n - e * r),\n      s = n * o,\n      c = -e * o,\n      u = -r * o,\n      h = t * o;\n    return new Vt(s, c, u, h, -s * i - u * a, -c * i - h * a);\n  }, Vt.prototype.applyToPoint = function (t) {\n    var e = t.x * this.sx + t.y * this.shx + this.tx,\n      r = t.x * this.shy + t.y * this.sy + this.ty;\n    return new Cr(e, r);\n  }, Vt.prototype.applyToRectangle = function (t) {\n    var e = this.applyToPoint(t),\n      r = this.applyToPoint(new Cr(t.x + t.w, t.y + t.h));\n    return new jr(e.x, e.y, r.x - e.x, r.y - e.y);\n  }, Vt.prototype.clone = function () {\n    var t = this.sx,\n      e = this.shy,\n      r = this.shx,\n      n = this.sy,\n      i = this.tx,\n      a = this.ty;\n    return new Vt(t, e, r, n, i, a);\n  }, y.Matrix = Vt;\n  var Gt = y.matrixMult = function (t, e) {\n      return e.multiply(t);\n    },\n    Yt = new Vt(1, 0, 0, 1, 0, 0);\n  y.unitMatrix = y.identityMatrix = Yt;\n  var Jt = function (t, e) {\n    if (!Bt[t]) {\n      var r = (e instanceof B ? \"Sh\" : \"P\") + (Object.keys(Ot).length + 1).toString(10);\n      e.id = r, Bt[t] = r, Ot[r] = e, Tt.publish(\"addPattern\", e);\n    }\n  };\n  y.ShadingPattern = B, y.TilingPattern = M, y.addShadingPattern = function (t, e) {\n    return q(\"addShadingPattern()\"), Jt(t, e), this;\n  }, y.beginTilingPattern = function (t) {\n    q(\"beginTilingPattern()\"), Br(t.boundingBox[0], t.boundingBox[1], t.boundingBox[2] - t.boundingBox[0], t.boundingBox[3] - t.boundingBox[1], t.matrix);\n  }, y.endTilingPattern = function (t, e) {\n    q(\"endTilingPattern()\"), e.stream = ot[$].join(\"\\n\"), Jt(t, e), Tt.publish(\"endTilingPattern\", e), Wt.pop().restore();\n  };\n  var Xt = y.__private__.newObject = function () {\n      var t = Kt();\n      return Zt(t, !0), t;\n    },\n    Kt = y.__private__.newObjectDeferred = function () {\n      return et++, rt[et] = function () {\n        return it;\n      }, et;\n    },\n    Zt = function (t, e) {\n      return e = \"boolean\" == typeof e && e, rt[t] = it, e && lt(t + \" 0 obj\"), t;\n    },\n    $t = y.__private__.newAdditionalObject = function () {\n      var t = {\n        objId: Kt(),\n        content: \"\"\n      };\n      return at.push(t), t;\n    },\n    Qt = Kt(),\n    te = Kt(),\n    ee = y.__private__.decodeColorString = function (t) {\n      var e = t.split(\" \");\n      if (2 !== e.length || \"g\" !== e[1] && \"G\" !== e[1]) {\n        if (5 === e.length && (\"k\" === e[4] || \"K\" === e[4])) {\n          e = [(1 - e[0]) * (1 - e[3]), (1 - e[1]) * (1 - e[3]), (1 - e[2]) * (1 - e[3]), \"r\"];\n        }\n      } else {\n        var r = parseFloat(e[0]);\n        e = [r, r, r, \"r\"];\n      }\n      for (var n = \"#\", i = 0; i < 3; i++) n += (\"0\" + Math.floor(255 * parseFloat(e[i])).toString(16)).slice(-2);\n      return n;\n    },\n    re = y.__private__.encodeColorString = function (e) {\n      var r;\n      \"string\" == typeof e && (e = {\n        ch1: e\n      });\n      var n = e.ch1,\n        i = e.ch2,\n        a = e.ch3,\n        o = e.ch4,\n        s = \"draw\" === e.pdfColorType ? [\"G\", \"RG\", \"K\"] : [\"g\", \"rg\", \"k\"];\n      if (\"string\" == typeof n && \"#\" !== n.charAt(0)) {\n        var c = new f(n);\n        if (c.ok) n = c.toHex();else if (!/^\\d*\\.?\\d*$/.test(n)) throw new Error('Invalid color \"' + n + '\" passed to jsPDF.encodeColorString.');\n      }\n      if (\"string\" == typeof n && /^#[0-9A-Fa-f]{3}$/.test(n) && (n = \"#\" + n[1] + n[1] + n[2] + n[2] + n[3] + n[3]), \"string\" == typeof n && /^#[0-9A-Fa-f]{6}$/.test(n)) {\n        var u = parseInt(n.substr(1), 16);\n        n = u >> 16 & 255, i = u >> 8 & 255, a = 255 & u;\n      }\n      if (void 0 === i || void 0 === o && n === i && i === a) {\n        if (\"string\" == typeof n) r = n + \" \" + s[0];else switch (e.precision) {\n          case 2:\n            r = R(n / 255) + \" \" + s[0];\n            break;\n          case 3:\n          default:\n            r = T(n / 255) + \" \" + s[0];\n        }\n      } else if (void 0 === o || \"object\" === t(o)) {\n        if (o && !isNaN(o.a) && 0 === o.a) return r = [\"1.\", \"1.\", \"1.\", s[1]].join(\" \");\n        if (\"string\" == typeof n) r = [n, i, a, s[1]].join(\" \");else switch (e.precision) {\n          case 2:\n            r = [R(n / 255), R(i / 255), R(a / 255), s[1]].join(\" \");\n            break;\n          default:\n          case 3:\n            r = [T(n / 255), T(i / 255), T(a / 255), s[1]].join(\" \");\n        }\n      } else if (\"string\" == typeof n) r = [n, i, a, o, s[2]].join(\" \");else switch (e.precision) {\n        case 2:\n          r = [R(n), R(i), R(a), R(o), s[2]].join(\" \");\n          break;\n        case 3:\n        default:\n          r = [T(n), T(i), T(a), T(o), s[2]].join(\" \");\n      }\n      return r;\n    },\n    ne = y.__private__.getFilters = function () {\n      return u;\n    },\n    ie = y.__private__.putStream = function (t) {\n      var e = (t = t || {}).data || \"\",\n        r = t.filters || ne(),\n        n = t.alreadyAppliedFilters || [],\n        i = t.addLength1 || !1,\n        a = e.length,\n        o = t.objectId,\n        s = function (t) {\n          return t;\n        };\n      if (null !== m && void 0 === o) throw new Error(\"ObjectId must be passed to putStream for file encryption\");\n      null !== m && (s = Ye.encryptor(o, 0));\n      var c = {};\n      !0 === r && (r = [\"FlateEncode\"]);\n      var u = t.additionalKeyValues || [],\n        h = (c = void 0 !== E.API.processDataByFilters ? E.API.processDataByFilters(e, r) : {\n          data: e,\n          reverseChain: []\n        }).reverseChain + (Array.isArray(n) ? n.join(\" \") : n.toString());\n      if (0 !== c.data.length && (u.push({\n        key: \"Length\",\n        value: c.data.length\n      }), !0 === i && u.push({\n        key: \"Length1\",\n        value: a\n      })), 0 != h.length) if (h.split(\"/\").length - 1 == 1) u.push({\n        key: \"Filter\",\n        value: h\n      });else {\n        u.push({\n          key: \"Filter\",\n          value: \"[\" + h + \"]\"\n        });\n        for (var l = 0; l < u.length; l += 1) if (\"DecodeParms\" === u[l].key) {\n          for (var f = [], d = 0; d < c.reverseChain.split(\"/\").length - 1; d += 1) f.push(\"null\");\n          f.push(u[l].value), u[l].value = \"[\" + f.join(\" \") + \"]\";\n        }\n      }\n      lt(\"<<\");\n      for (var p = 0; p < u.length; p++) lt(\"/\" + u[p].key + \" \" + u[p].value);\n      lt(\">>\"), 0 !== c.data.length && (lt(\"stream\"), lt(s(c.data)), lt(\"endstream\"));\n    },\n    ae = y.__private__.putPage = function (t) {\n      var e = t.number,\n        r = t.data,\n        n = t.objId,\n        i = t.contentsObjId;\n      Zt(n, !0), lt(\"<</Type /Page\"), lt(\"/Parent \" + t.rootDictionaryObjId + \" 0 R\"), lt(\"/Resources \" + t.resourceDictionaryObjId + \" 0 R\"), lt(\"/MediaBox [\" + parseFloat(O(t.mediaBox.bottomLeftX)) + \" \" + parseFloat(O(t.mediaBox.bottomLeftY)) + \" \" + O(t.mediaBox.topRightX) + \" \" + O(t.mediaBox.topRightY) + \"]\"), null !== t.cropBox && lt(\"/CropBox [\" + O(t.cropBox.bottomLeftX) + \" \" + O(t.cropBox.bottomLeftY) + \" \" + O(t.cropBox.topRightX) + \" \" + O(t.cropBox.topRightY) + \"]\"), null !== t.bleedBox && lt(\"/BleedBox [\" + O(t.bleedBox.bottomLeftX) + \" \" + O(t.bleedBox.bottomLeftY) + \" \" + O(t.bleedBox.topRightX) + \" \" + O(t.bleedBox.topRightY) + \"]\"), null !== t.trimBox && lt(\"/TrimBox [\" + O(t.trimBox.bottomLeftX) + \" \" + O(t.trimBox.bottomLeftY) + \" \" + O(t.trimBox.topRightX) + \" \" + O(t.trimBox.topRightY) + \"]\"), null !== t.artBox && lt(\"/ArtBox [\" + O(t.artBox.bottomLeftX) + \" \" + O(t.artBox.bottomLeftY) + \" \" + O(t.artBox.topRightX) + \" \" + O(t.artBox.topRightY) + \"]\"), \"number\" == typeof t.userUnit && 1 !== t.userUnit && lt(\"/UserUnit \" + t.userUnit), Tt.publish(\"putPage\", {\n        objId: n,\n        pageContext: Rt[e],\n        pageNumber: e,\n        page: r\n      }), lt(\"/Contents \" + i + \" 0 R\"), lt(\">>\"), lt(\"endobj\");\n      var a = r.join(\"\\n\");\n      return S === x.ADVANCED && (a += \"\\nQ\"), Zt(i, !0), ie({\n        data: a,\n        filters: ne(),\n        objectId: i\n      }), lt(\"endobj\"), n;\n    },\n    oe = y.__private__.putPages = function () {\n      var t,\n        e,\n        r = [];\n      for (t = 1; t <= Dt; t++) Rt[t].objId = Kt(), Rt[t].contentsObjId = Kt();\n      for (t = 1; t <= Dt; t++) r.push(ae({\n        number: t,\n        data: ot[t],\n        objId: Rt[t].objId,\n        contentsObjId: Rt[t].contentsObjId,\n        mediaBox: Rt[t].mediaBox,\n        cropBox: Rt[t].cropBox,\n        bleedBox: Rt[t].bleedBox,\n        trimBox: Rt[t].trimBox,\n        artBox: Rt[t].artBox,\n        userUnit: Rt[t].userUnit,\n        rootDictionaryObjId: Qt,\n        resourceDictionaryObjId: te\n      }));\n      Zt(Qt, !0), lt(\"<</Type /Pages\");\n      var n = \"/Kids [\";\n      for (e = 0; e < Dt; e++) n += r[e] + \" 0 R \";\n      lt(n + \"]\"), lt(\"/Count \" + Dt), lt(\">>\"), lt(\"endobj\"), Tt.publish(\"postPutPages\");\n    },\n    se = function (t) {\n      Tt.publish(\"putFont\", {\n        font: t,\n        out: lt,\n        newObject: Xt,\n        putStream: ie\n      }), !0 !== t.isAlreadyPutted && (t.objectNumber = Xt(), lt(\"<<\"), lt(\"/Type /Font\"), lt(\"/BaseFont /\" + F(t.postScriptName)), lt(\"/Subtype /Type1\"), \"string\" == typeof t.encoding && lt(\"/Encoding /\" + t.encoding), lt(\"/FirstChar 32\"), lt(\"/LastChar 255\"), lt(\">>\"), lt(\"endobj\"));\n    },\n    ce = function () {\n      for (var t in Ft) Ft.hasOwnProperty(t) && (!1 === v || !0 === v && b.hasOwnProperty(t)) && se(Ft[t]);\n    },\n    ue = function (t) {\n      t.objectNumber = Xt();\n      var e = [];\n      e.push({\n        key: \"Type\",\n        value: \"/XObject\"\n      }), e.push({\n        key: \"Subtype\",\n        value: \"/Form\"\n      }), e.push({\n        key: \"BBox\",\n        value: \"[\" + [O(t.x), O(t.y), O(t.x + t.width), O(t.y + t.height)].join(\" \") + \"]\"\n      }), e.push({\n        key: \"Matrix\",\n        value: \"[\" + t.matrix.toString() + \"]\"\n      });\n      var r = t.pages[1].join(\"\\n\");\n      ie({\n        data: r,\n        additionalKeyValues: e,\n        objectId: t.objectNumber\n      }), lt(\"endobj\");\n    },\n    he = function () {\n      for (var t in zt) zt.hasOwnProperty(t) && ue(zt[t]);\n    },\n    le = function (t, e) {\n      var r,\n        n = [],\n        i = 1 / (e - 1);\n      for (r = 0; r < 1; r += i) n.push(r);\n      if (n.push(1), 0 != t[0].offset) {\n        var a = {\n          offset: 0,\n          color: t[0].color\n        };\n        t.unshift(a);\n      }\n      if (1 != t[t.length - 1].offset) {\n        var o = {\n          offset: 1,\n          color: t[t.length - 1].color\n        };\n        t.push(o);\n      }\n      for (var s = \"\", c = 0, u = 0; u < n.length; u++) {\n        for (r = n[u]; r > t[c + 1].offset;) c++;\n        var h = t[c].offset,\n          l = (r - h) / (t[c + 1].offset - h),\n          f = t[c].color,\n          d = t[c + 1].color;\n        s += tt(Math.round((1 - l) * f[0] + l * d[0]).toString(16)) + tt(Math.round((1 - l) * f[1] + l * d[1]).toString(16)) + tt(Math.round((1 - l) * f[2] + l * d[2]).toString(16));\n      }\n      return s.trim();\n    },\n    fe = function (t, e) {\n      e || (e = 21);\n      var r = Xt(),\n        n = le(t.colors, e),\n        i = [];\n      i.push({\n        key: \"FunctionType\",\n        value: \"0\"\n      }), i.push({\n        key: \"Domain\",\n        value: \"[0.0 1.0]\"\n      }), i.push({\n        key: \"Size\",\n        value: \"[\" + e + \"]\"\n      }), i.push({\n        key: \"BitsPerSample\",\n        value: \"8\"\n      }), i.push({\n        key: \"Range\",\n        value: \"[0.0 1.0 0.0 1.0 0.0 1.0]\"\n      }), i.push({\n        key: \"Decode\",\n        value: \"[0.0 1.0 0.0 1.0 0.0 1.0]\"\n      }), ie({\n        data: n,\n        additionalKeyValues: i,\n        alreadyAppliedFilters: [\"/ASCIIHexDecode\"],\n        objectId: r\n      }), lt(\"endobj\"), t.objectNumber = Xt(), lt(\"<< /ShadingType \" + t.type), lt(\"/ColorSpace /DeviceRGB\");\n      var a = \"/Coords [\" + O(parseFloat(t.coords[0])) + \" \" + O(parseFloat(t.coords[1])) + \" \";\n      2 === t.type ? a += O(parseFloat(t.coords[2])) + \" \" + O(parseFloat(t.coords[3])) : a += O(parseFloat(t.coords[2])) + \" \" + O(parseFloat(t.coords[3])) + \" \" + O(parseFloat(t.coords[4])) + \" \" + O(parseFloat(t.coords[5])), lt(a += \"]\"), t.matrix && lt(\"/Matrix [\" + t.matrix.toString() + \"]\"), lt(\"/Function \" + r + \" 0 R\"), lt(\"/Extend [true true]\"), lt(\">>\"), lt(\"endobj\");\n    },\n    de = function (t, e) {\n      var r = Kt(),\n        n = Xt();\n      e.push({\n        resourcesOid: r,\n        objectOid: n\n      }), t.objectNumber = n;\n      var i = [];\n      i.push({\n        key: \"Type\",\n        value: \"/Pattern\"\n      }), i.push({\n        key: \"PatternType\",\n        value: \"1\"\n      }), i.push({\n        key: \"PaintType\",\n        value: \"1\"\n      }), i.push({\n        key: \"TilingType\",\n        value: \"1\"\n      }), i.push({\n        key: \"BBox\",\n        value: \"[\" + t.boundingBox.map(O).join(\" \") + \"]\"\n      }), i.push({\n        key: \"XStep\",\n        value: O(t.xStep)\n      }), i.push({\n        key: \"YStep\",\n        value: O(t.yStep)\n      }), i.push({\n        key: \"Resources\",\n        value: r + \" 0 R\"\n      }), t.matrix && i.push({\n        key: \"Matrix\",\n        value: \"[\" + t.matrix.toString() + \"]\"\n      }), ie({\n        data: t.stream,\n        additionalKeyValues: i,\n        objectId: t.objectNumber\n      }), lt(\"endobj\");\n    },\n    pe = function (t) {\n      var e;\n      for (e in Ot) Ot.hasOwnProperty(e) && (Ot[e] instanceof B ? fe(Ot[e]) : Ot[e] instanceof M && de(Ot[e], t));\n    },\n    ge = function (t) {\n      for (var e in t.objectNumber = Xt(), lt(\"<<\"), t) switch (e) {\n        case \"opacity\":\n          lt(\"/ca \" + R(t[e]));\n          break;\n        case \"stroke-opacity\":\n          lt(\"/CA \" + R(t[e]));\n      }\n      lt(\">>\"), lt(\"endobj\");\n    },\n    me = function () {\n      var t;\n      for (t in Mt) Mt.hasOwnProperty(t) && ge(Mt[t]);\n    },\n    ve = function () {\n      for (var t in lt(\"/XObject <<\"), zt) zt.hasOwnProperty(t) && zt[t].objectNumber >= 0 && lt(\"/\" + t + \" \" + zt[t].objectNumber + \" 0 R\");\n      Tt.publish(\"putXobjectDict\"), lt(\">>\");\n    },\n    be = function () {\n      Ye.oid = Xt(), lt(\"<<\"), lt(\"/Filter /Standard\"), lt(\"/V \" + Ye.v), lt(\"/R \" + Ye.r), lt(\"/U <\" + Ye.toHexString(Ye.U) + \">\"), lt(\"/O <\" + Ye.toHexString(Ye.O) + \">\"), lt(\"/P \" + Ye.P), lt(\">>\"), lt(\"endobj\");\n    },\n    ye = function () {\n      for (var t in lt(\"/Font <<\"), Ft) Ft.hasOwnProperty(t) && (!1 === v || !0 === v && b.hasOwnProperty(t)) && lt(\"/\" + t + \" \" + Ft[t].objectNumber + \" 0 R\");\n      lt(\">>\");\n    },\n    we = function () {\n      if (Object.keys(Ot).length > 0) {\n        for (var t in lt(\"/Shading <<\"), Ot) Ot.hasOwnProperty(t) && Ot[t] instanceof B && Ot[t].objectNumber >= 0 && lt(\"/\" + t + \" \" + Ot[t].objectNumber + \" 0 R\");\n        Tt.publish(\"putShadingPatternDict\"), lt(\">>\");\n      }\n    },\n    Ne = function (t) {\n      if (Object.keys(Ot).length > 0) {\n        for (var e in lt(\"/Pattern <<\"), Ot) Ot.hasOwnProperty(e) && Ot[e] instanceof y.TilingPattern && Ot[e].objectNumber >= 0 && Ot[e].objectNumber < t && lt(\"/\" + e + \" \" + Ot[e].objectNumber + \" 0 R\");\n        Tt.publish(\"putTilingPatternDict\"), lt(\">>\");\n      }\n    },\n    Le = function () {\n      if (Object.keys(Mt).length > 0) {\n        var t;\n        for (t in lt(\"/ExtGState <<\"), Mt) Mt.hasOwnProperty(t) && Mt[t].objectNumber >= 0 && lt(\"/\" + t + \" \" + Mt[t].objectNumber + \" 0 R\");\n        Tt.publish(\"putGStateDict\"), lt(\">>\");\n      }\n    },\n    Ae = function (t) {\n      Zt(t.resourcesOid, !0), lt(\"<<\"), lt(\"/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]\"), ye(), we(), Ne(t.objectOid), Le(), ve(), lt(\">>\"), lt(\"endobj\");\n    },\n    xe = function () {\n      var t = [];\n      ce(), me(), he(), pe(t), Tt.publish(\"putResources\"), t.forEach(Ae), Ae({\n        resourcesOid: te,\n        objectOid: Number.MAX_SAFE_INTEGER\n      }), Tt.publish(\"postPutResources\");\n    },\n    Se = function () {\n      Tt.publish(\"putAdditionalObjects\");\n      for (var t = 0; t < at.length; t++) {\n        var e = at[t];\n        Zt(e.objId, !0), lt(e.content), lt(\"endobj\");\n      }\n      Tt.publish(\"postPutAdditionalObjects\");\n    },\n    _e = function (t) {\n      Ct[t.fontName] = Ct[t.fontName] || {}, Ct[t.fontName][t.fontStyle] = t.id;\n    },\n    Pe = function (t, e, r, n, i) {\n      var a = {\n        id: \"F\" + (Object.keys(Ft).length + 1).toString(10),\n        postScriptName: t,\n        fontName: e,\n        fontStyle: r,\n        encoding: n,\n        isStandardFont: i || !1,\n        metadata: {}\n      };\n      return Tt.publish(\"addFont\", {\n        font: a,\n        instance: this\n      }), Ft[a.id] = a, _e(a), a.id;\n    },\n    ke = function (t) {\n      for (var e = 0, r = pt.length; e < r; e++) {\n        var n = Pe.call(this, t[e][0], t[e][1], t[e][2], pt[e][3], !0);\n        !1 === v && (b[n] = !0);\n        var i = t[e][0].split(\"-\");\n        _e({\n          id: n,\n          fontName: i[0],\n          fontStyle: i[1] || \"\"\n        });\n      }\n      Tt.publish(\"addFonts\", {\n        fonts: Ft,\n        dictionary: Ct\n      });\n    },\n    Ie = function (t) {\n      return t.foo = function () {\n        try {\n          return t.apply(this, arguments);\n        } catch (t) {\n          var e = t.stack || \"\";\n          ~e.indexOf(\" at \") && (e = e.split(\" at \")[1]);\n          var r = \"Error in function \" + e.split(\"\\n\")[0].split(\"<\")[0] + \": \" + t.message;\n          if (!n.console) throw new Error(r);\n          n.console.error(r, t), n.alert && alert(r);\n        }\n      }, t.foo.bar = t, t.foo;\n    },\n    Fe = function (t, e) {\n      var r, n, i, a, o, s, c, u, h;\n      if (i = (e = e || {}).sourceEncoding || \"Unicode\", o = e.outputEncoding, (e.autoencode || o) && Ft[St].metadata && Ft[St].metadata[i] && Ft[St].metadata[i].encoding && (a = Ft[St].metadata[i].encoding, !o && Ft[St].encoding && (o = Ft[St].encoding), !o && a.codePages && (o = a.codePages[0]), \"string\" == typeof o && (o = a[o]), o)) {\n        for (c = !1, s = [], r = 0, n = t.length; r < n; r++) (u = o[t.charCodeAt(r)]) ? s.push(String.fromCharCode(u)) : s.push(t[r]), s[r].charCodeAt(0) >> 8 && (c = !0);\n        t = s.join(\"\");\n      }\n      for (r = t.length; void 0 === c && 0 !== r;) t.charCodeAt(r - 1) >> 8 && (c = !0), r--;\n      if (!c) return t;\n      for (s = e.noBOM ? [] : [254, 255], r = 0, n = t.length; r < n; r++) {\n        if ((h = (u = t.charCodeAt(r)) >> 8) >> 8) throw new Error(\"Character at position \" + r + \" of string '\" + t + \"' exceeds 16bits. Cannot be encoded into UCS-2 BE\");\n        s.push(h), s.push(u - (h << 8));\n      }\n      return String.fromCharCode.apply(void 0, s);\n    },\n    Ce = y.__private__.pdfEscape = y.pdfEscape = function (t, e) {\n      return Fe(t, e).replace(/\\\\/g, \"\\\\\\\\\").replace(/\\(/g, \"\\\\(\").replace(/\\)/g, \"\\\\)\");\n    },\n    je = y.__private__.beginPage = function (t) {\n      ot[++Dt] = [], Rt[Dt] = {\n        objId: 0,\n        contentsObjId: 0,\n        userUnit: Number(d),\n        artBox: null,\n        bleedBox: null,\n        cropBox: null,\n        trimBox: null,\n        mediaBox: {\n          bottomLeftX: 0,\n          bottomLeftY: 0,\n          topRightX: Number(t[0]),\n          topRightY: Number(t[1])\n        }\n      }, Me(Dt), ht(ot[$]);\n    },\n    Oe = function (t, e) {\n      var r, n, o;\n      switch (i = e || i, \"string\" == typeof t && (r = A(t.toLowerCase()), Array.isArray(r) && (n = r[0], o = r[1])), Array.isArray(t) && (n = t[0] * _t, o = t[1] * _t), isNaN(n) && (n = s[0], o = s[1]), (n > 14400 || o > 14400) && (a.warn(\"A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400\"), n = Math.min(14400, n), o = Math.min(14400, o)), s = [n, o], i.substr(0, 1)) {\n        case \"l\":\n          o > n && (s = [o, n]);\n          break;\n        case \"p\":\n          n > o && (s = [o, n]);\n      }\n      je(s), pr(fr), lt(Lr), 0 !== kr && lt(kr + \" J\"), 0 !== Ir && lt(Ir + \" j\"), Tt.publish(\"addPage\", {\n        pageNumber: Dt\n      });\n    },\n    Be = function (t) {\n      t > 0 && t <= Dt && (ot.splice(t, 1), Rt.splice(t, 1), Dt--, $ > Dt && ($ = Dt), this.setPage($));\n    },\n    Me = function (t) {\n      t > 0 && t <= Dt && ($ = t);\n    },\n    Ee = y.__private__.getNumberOfPages = y.getNumberOfPages = function () {\n      return ot.length - 1;\n    },\n    qe = function (t, e, r) {\n      var n,\n        i = void 0;\n      return r = r || {}, t = void 0 !== t ? t : Ft[St].fontName, e = void 0 !== e ? e : Ft[St].fontStyle, n = t.toLowerCase(), void 0 !== Ct[n] && void 0 !== Ct[n][e] ? i = Ct[n][e] : void 0 !== Ct[t] && void 0 !== Ct[t][e] ? i = Ct[t][e] : !1 === r.disableWarning && a.warn(\"Unable to look up font label for font '\" + t + \"', '\" + e + \"'. Refer to getFontList() for available fonts.\"), i || r.noFallback || null == (i = Ct.times[e]) && (i = Ct.times.normal), i;\n    },\n    De = y.__private__.putInfo = function () {\n      var t = Xt(),\n        e = function (t) {\n          return t;\n        };\n      for (var r in null !== m && (e = Ye.encryptor(t, 0)), lt(\"<<\"), lt(\"/Producer (\" + Ce(e(\"jsPDF \" + E.version)) + \")\"), xt) xt.hasOwnProperty(r) && xt[r] && lt(\"/\" + r.substr(0, 1).toUpperCase() + r.substr(1) + \" (\" + Ce(e(xt[r])) + \")\");\n      lt(\"/CreationDate (\" + Ce(e(W)) + \")\"), lt(\">>\"), lt(\"endobj\");\n    },\n    Re = y.__private__.putCatalog = function (t) {\n      var e = (t = t || {}).rootDictionaryObjId || Qt;\n      switch (Xt(), lt(\"<<\"), lt(\"/Type /Catalog\"), lt(\"/Pages \" + e + \" 0 R\"), mt || (mt = \"fullwidth\"), mt) {\n        case \"fullwidth\":\n          lt(\"/OpenAction [3 0 R /FitH null]\");\n          break;\n        case \"fullheight\":\n          lt(\"/OpenAction [3 0 R /FitV null]\");\n          break;\n        case \"fullpage\":\n          lt(\"/OpenAction [3 0 R /Fit]\");\n          break;\n        case \"original\":\n          lt(\"/OpenAction [3 0 R /XYZ null null 1]\");\n          break;\n        default:\n          var r = \"\" + mt;\n          \"%\" === r.substr(r.length - 1) && (mt = parseInt(mt) / 100), \"number\" == typeof mt && lt(\"/OpenAction [3 0 R /XYZ null null \" + R(mt) + \"]\");\n      }\n      switch (Nt || (Nt = \"continuous\"), Nt) {\n        case \"continuous\":\n          lt(\"/PageLayout /OneColumn\");\n          break;\n        case \"single\":\n          lt(\"/PageLayout /SinglePage\");\n          break;\n        case \"two\":\n        case \"twoleft\":\n          lt(\"/PageLayout /TwoColumnLeft\");\n          break;\n        case \"tworight\":\n          lt(\"/PageLayout /TwoColumnRight\");\n      }\n      yt && lt(\"/PageMode /\" + yt), Tt.publish(\"putCatalog\"), lt(\">>\"), lt(\"endobj\");\n    },\n    Te = y.__private__.putTrailer = function () {\n      lt(\"trailer\"), lt(\"<<\"), lt(\"/Size \" + (et + 1)), lt(\"/Root \" + et + \" 0 R\"), lt(\"/Info \" + (et - 1) + \" 0 R\"), null !== m && lt(\"/Encrypt \" + Ye.oid + \" 0 R\"), lt(\"/ID [ <\" + V + \"> <\" + V + \"> ]\"), lt(\">>\");\n    },\n    Ue = y.__private__.putHeader = function () {\n      lt(\"%PDF-\" + w), lt(\"%ºß¬à\");\n    },\n    ze = y.__private__.putXRef = function () {\n      var t = \"0000000000\";\n      lt(\"xref\"), lt(\"0 \" + (et + 1)), lt(\"0000000000 65535 f \");\n      for (var e = 1; e <= et; e++) {\n        \"function\" == typeof rt[e] ? lt((t + rt[e]()).slice(-10) + \" 00000 n \") : void 0 !== rt[e] ? lt((t + rt[e]).slice(-10) + \" 00000 n \") : lt(\"0000000000 00000 n \");\n      }\n    },\n    He = y.__private__.buildDocument = function () {\n      ut(), ht(nt), Tt.publish(\"buildDocument\"), Ue(), oe(), Se(), xe(), null !== m && be(), De(), Re();\n      var t = it;\n      return ze(), Te(), lt(\"startxref\"), lt(\"\" + t), lt(\"%%EOF\"), ht(ot[$]), nt.join(\"\\n\");\n    },\n    We = y.__private__.getBlob = function (t) {\n      return new Blob([dt(t)], {\n        type: \"application/pdf\"\n      });\n    },\n    Ve = y.output = y.__private__.output = Ie(function (t, e) {\n      switch (\"string\" == typeof (e = e || {}) ? e = {\n        filename: e\n      } : e.filename = e.filename || \"generated.pdf\", t) {\n        case void 0:\n          return He();\n        case \"save\":\n          y.save(e.filename);\n          break;\n        case \"arraybuffer\":\n          return dt(He());\n        case \"blob\":\n          return We(He());\n        case \"bloburi\":\n        case \"bloburl\":\n          if (void 0 !== n.URL && \"function\" == typeof n.URL.createObjectURL) return n.URL && n.URL.createObjectURL(We(He())) || void 0;\n          a.warn(\"bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.\");\n          break;\n        case \"datauristring\":\n        case \"dataurlstring\":\n          var r = \"\",\n            i = He();\n          try {\n            r = h(i);\n          } catch (t) {\n            r = h(unescape(encodeURIComponent(i)));\n          }\n          return \"data:application/pdf;filename=\" + e.filename + \";base64,\" + r;\n        case \"pdfobjectnewwindow\":\n          if (\"[object Window]\" === Object.prototype.toString.call(n)) {\n            var o = \"https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js\",\n              s = ' integrity=\"sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==\" crossorigin=\"anonymous\"';\n            e.pdfObjectUrl && (o = e.pdfObjectUrl, s = \"\");\n            var c = '<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src=\"' + o + '\"' + s + '><\\/script><script >PDFObject.embed(\"' + this.output(\"dataurlstring\") + '\", ' + JSON.stringify(e) + \");<\\/script></body></html>\",\n              u = n.open();\n            return null !== u && u.document.write(c), u;\n          }\n          throw new Error(\"The option pdfobjectnewwindow just works in a browser-environment.\");\n        case \"pdfjsnewwindow\":\n          if (\"[object Window]\" === Object.prototype.toString.call(n)) {\n            var l = '<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id=\"pdfViewer\" src=\"' + (e.pdfJsUrl || \"examples/PDF.js/web/viewer.html\") + \"?file=&downloadName=\" + e.filename + '\" width=\"500px\" height=\"400px\" /></body></html>',\n              f = n.open();\n            if (null !== f) {\n              f.document.write(l);\n              var d = this;\n              f.document.documentElement.querySelector(\"#pdfViewer\").onload = function () {\n                f.document.title = e.filename, f.document.documentElement.querySelector(\"#pdfViewer\").contentWindow.PDFViewerApplication.open(d.output(\"bloburl\"));\n              };\n            }\n            return f;\n          }\n          throw new Error(\"The option pdfjsnewwindow just works in a browser-environment.\");\n        case \"dataurlnewwindow\":\n          if (\"[object Window]\" !== Object.prototype.toString.call(n)) throw new Error(\"The option dataurlnewwindow just works in a browser-environment.\");\n          var p = '<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src=\"' + this.output(\"datauristring\", e) + '\"></iframe></body></html>',\n            g = n.open();\n          if (null !== g && (g.document.write(p), g.document.title = e.filename), g || \"undefined\" == typeof safari) return g;\n          break;\n        case \"datauri\":\n        case \"dataurl\":\n          return n.document.location.href = this.output(\"datauristring\", e);\n        default:\n          return null;\n      }\n    }),\n    Ge = function (t) {\n      return !0 === Array.isArray(Ut) && Ut.indexOf(t) > -1;\n    };\n  switch (o) {\n    case \"pt\":\n      _t = 1;\n      break;\n    case \"mm\":\n      _t = 72 / 25.4;\n      break;\n    case \"cm\":\n      _t = 72 / 2.54;\n      break;\n    case \"in\":\n      _t = 72;\n      break;\n    case \"px\":\n      _t = 1 == Ge(\"px_scaling\") ? .75 : 96 / 72;\n      break;\n    case \"pc\":\n    case \"em\":\n      _t = 12;\n      break;\n    case \"ex\":\n      _t = 6;\n      break;\n    default:\n      if (\"number\" != typeof o) throw new Error(\"Invalid unit: \" + o);\n      _t = o;\n  }\n  var Ye = null;\n  K(), Y();\n  var Je = function (t) {\n      return null !== m ? Ye.encryptor(t, 0) : function (t) {\n        return t;\n      };\n    },\n    Xe = y.__private__.getPageInfo = y.getPageInfo = function (t) {\n      if (isNaN(t) || t % 1 != 0) throw new Error(\"Invalid argument passed to jsPDF.getPageInfo\");\n      return {\n        objId: Rt[t].objId,\n        pageNumber: t,\n        pageContext: Rt[t]\n      };\n    },\n    Ke = y.__private__.getPageInfoByObjId = function (t) {\n      if (isNaN(t) || t % 1 != 0) throw new Error(\"Invalid argument passed to jsPDF.getPageInfoByObjId\");\n      for (var e in Rt) if (Rt[e].objId === t) break;\n      return Xe(e);\n    },\n    Ze = y.__private__.getCurrentPageInfo = y.getCurrentPageInfo = function () {\n      return {\n        objId: Rt[$].objId,\n        pageNumber: $,\n        pageContext: Rt[$]\n      };\n    };\n  y.addPage = function () {\n    return Oe.apply(this, arguments), this;\n  }, y.setPage = function () {\n    return Me.apply(this, arguments), ht.call(this, ot[$]), this;\n  }, y.insertPage = function (t) {\n    return this.addPage(), this.movePage($, t), this;\n  }, y.movePage = function (t, e) {\n    var r, n;\n    if (t > e) {\n      r = ot[t], n = Rt[t];\n      for (var i = t; i > e; i--) ot[i] = ot[i - 1], Rt[i] = Rt[i - 1];\n      ot[e] = r, Rt[e] = n, this.setPage(e);\n    } else if (t < e) {\n      r = ot[t], n = Rt[t];\n      for (var a = t; a < e; a++) ot[a] = ot[a + 1], Rt[a] = Rt[a + 1];\n      ot[e] = r, Rt[e] = n, this.setPage(e);\n    }\n    return this;\n  }, y.deletePage = function () {\n    return Be.apply(this, arguments), this;\n  }, y.__private__.text = y.text = function (e, r, n, i, a) {\n    var o,\n      s,\n      c,\n      u,\n      h,\n      l,\n      f,\n      d,\n      p,\n      g = (i = i || {}).scope || this;\n    if (\"number\" == typeof e && \"number\" == typeof r && (\"string\" == typeof n || Array.isArray(n))) {\n      var m = n;\n      n = r, r = e, e = m;\n    }\n    if (arguments[3] instanceof Vt == !1 ? (c = arguments[4], u = arguments[5], \"object\" === t(f = arguments[3]) && null !== f || (\"string\" == typeof c && (u = c, c = null), \"string\" == typeof f && (u = f, f = null), \"number\" == typeof f && (c = f, f = null), i = {\n      flags: f,\n      angle: c,\n      align: u\n    })) : (q(\"The transform parameter of text() with a Matrix value\"), p = a), isNaN(r) || isNaN(n) || null == e) throw new Error(\"Invalid arguments passed to jsPDF.text\");\n    if (0 === e.length) return g;\n    var v = \"\",\n      y = !1,\n      w = \"number\" == typeof i.lineHeightFactor ? i.lineHeightFactor : lr,\n      N = g.internal.scaleFactor;\n    function L(t) {\n      return t = t.split(\"\\t\").join(Array(i.TabLen || 9).join(\" \")), Ce(t, f);\n    }\n    function A(t) {\n      for (var e, r = t.concat(), n = [], i = r.length; i--;) \"string\" == typeof (e = r.shift()) ? n.push(e) : Array.isArray(t) && (1 === e.length || void 0 === e[1] && void 0 === e[2]) ? n.push(e[0]) : n.push([e[0], e[1], e[2]]);\n      return n;\n    }\n    function _(t, e) {\n      var r;\n      if (\"string\" == typeof t) r = e(t)[0];else if (Array.isArray(t)) {\n        for (var n, i, a = t.concat(), o = [], s = a.length; s--;) \"string\" == typeof (n = a.shift()) ? o.push(e(n)[0]) : Array.isArray(n) && \"string\" == typeof n[0] && (i = e(n[0], n[1], n[2]), o.push([i[0], i[1], i[2]]));\n        r = o;\n      }\n      return r;\n    }\n    var P = !1,\n      k = !0;\n    if (\"string\" == typeof e) P = !0;else if (Array.isArray(e)) {\n      var I = e.concat();\n      s = [];\n      for (var F, C = I.length; C--;) (\"string\" != typeof (F = I.shift()) || Array.isArray(F) && \"string\" != typeof F[0]) && (k = !1);\n      P = k;\n    }\n    if (!1 === P) throw new Error('Type of text must be string or Array. \"' + e + '\" is not recognized.');\n    \"string\" == typeof e && (e = e.match(/[\\r?\\n]/) ? e.split(/\\r\\n|\\r|\\n/g) : [e]);\n    var j = gt / g.internal.scaleFactor,\n      B = j * (w - 1);\n    switch (i.baseline) {\n      case \"bottom\":\n        n -= B;\n        break;\n      case \"top\":\n        n += j - B;\n        break;\n      case \"hanging\":\n        n += j - 2 * B;\n        break;\n      case \"middle\":\n        n += j / 2 - B;\n    }\n    if ((l = i.maxWidth || 0) > 0 && (\"string\" == typeof e ? e = g.splitTextToSize(e, l) : \"[object Array]\" === Object.prototype.toString.call(e) && (e = e.reduce(function (t, e) {\n      return t.concat(g.splitTextToSize(e, l));\n    }, []))), o = {\n      text: e,\n      x: r,\n      y: n,\n      options: i,\n      mutex: {\n        pdfEscape: Ce,\n        activeFontKey: St,\n        fonts: Ft,\n        activeFontSize: gt\n      }\n    }, Tt.publish(\"preProcessText\", o), e = o.text, c = (i = o.options).angle, p instanceof Vt == !1 && c && \"number\" == typeof c) {\n      c *= Math.PI / 180, 0 === i.rotationDirection && (c = -c), S === x.ADVANCED && (c = -c);\n      var M = Math.cos(c),\n        E = Math.sin(c);\n      p = new Vt(M, E, -E, M, 0, 0);\n    } else c && c instanceof Vt && (p = c);\n    S !== x.ADVANCED || p || (p = Yt), void 0 !== (h = i.charSpace || _r) && (v += O(U(h)) + \" Tc\\n\", this.setCharSpace(this.getCharSpace() || 0)), void 0 !== (d = i.horizontalScale) && (v += O(100 * d) + \" Tz\\n\");\n    i.lang;\n    var D = -1,\n      R = void 0 !== i.renderingMode ? i.renderingMode : i.stroke,\n      T = g.internal.getCurrentPageInfo().pageContext;\n    switch (R) {\n      case 0:\n      case !1:\n      case \"fill\":\n        D = 0;\n        break;\n      case 1:\n      case !0:\n      case \"stroke\":\n        D = 1;\n        break;\n      case 2:\n      case \"fillThenStroke\":\n        D = 2;\n        break;\n      case 3:\n      case \"invisible\":\n        D = 3;\n        break;\n      case 4:\n      case \"fillAndAddForClipping\":\n        D = 4;\n        break;\n      case 5:\n      case \"strokeAndAddPathForClipping\":\n        D = 5;\n        break;\n      case 6:\n      case \"fillThenStrokeAndAddToPathForClipping\":\n        D = 6;\n        break;\n      case 7:\n      case \"addToPathForClipping\":\n        D = 7;\n    }\n    var z = void 0 !== T.usedRenderingMode ? T.usedRenderingMode : -1;\n    -1 !== D ? v += D + \" Tr\\n\" : -1 !== z && (v += \"0 Tr\\n\"), -1 !== D && (T.usedRenderingMode = D), u = i.align || \"left\";\n    var H,\n      W = gt * w,\n      V = g.internal.pageSize.getWidth(),\n      G = Ft[St];\n    h = i.charSpace || _r, l = i.maxWidth || 0, f = Object.assign({\n      autoencode: !0,\n      noBOM: !0\n    }, i.flags);\n    var Y = [];\n    if (\"[object Array]\" === Object.prototype.toString.call(e)) {\n      var J;\n      s = A(e), \"left\" !== u && (H = s.map(function (t) {\n        return g.getStringUnitWidth(t, {\n          font: G,\n          charSpace: h,\n          fontSize: gt,\n          doKerning: !1\n        }) * gt / N;\n      }));\n      var X,\n        K = 0;\n      if (\"right\" === u) {\n        r -= H[0], e = [], C = s.length;\n        for (var Z = 0; Z < C; Z++) 0 === Z ? (X = br(r), J = yr(n)) : (X = U(K - H[Z]), J = -W), e.push([s[Z], X, J]), K = H[Z];\n      } else if (\"center\" === u) {\n        r -= H[0] / 2, e = [], C = s.length;\n        for (var $ = 0; $ < C; $++) 0 === $ ? (X = br(r), J = yr(n)) : (X = U((K - H[$]) / 2), J = -W), e.push([s[$], X, J]), K = H[$];\n      } else if (\"left\" === u) {\n        e = [], C = s.length;\n        for (var Q = 0; Q < C; Q++) e.push(s[Q]);\n      } else {\n        if (\"justify\" !== u) throw new Error('Unrecognized alignment option, use \"left\", \"center\", \"right\" or \"justify\".');\n        e = [], C = s.length, l = 0 !== l ? l : V;\n        for (var tt = 0; tt < C; tt++) J = 0 === tt ? yr(n) : -W, X = 0 === tt ? br(r) : 0, tt < C - 1 ? Y.push(O(U((l - H[tt]) / (s[tt].split(\" \").length - 1)))) : Y.push(0), e.push([s[tt], X, J]);\n      }\n    }\n    var et = \"boolean\" == typeof i.R2L ? i.R2L : bt;\n    !0 === et && (e = _(e, function (t, e, r) {\n      return [t.split(\"\").reverse().join(\"\"), e, r];\n    })), o = {\n      text: e,\n      x: r,\n      y: n,\n      options: i,\n      mutex: {\n        pdfEscape: Ce,\n        activeFontKey: St,\n        fonts: Ft,\n        activeFontSize: gt\n      }\n    }, Tt.publish(\"postProcessText\", o), e = o.text, y = o.mutex.isHex || !1;\n    var rt = Ft[St].encoding;\n    \"WinAnsiEncoding\" !== rt && \"StandardEncoding\" !== rt || (e = _(e, function (t, e, r) {\n      return [L(t), e, r];\n    })), s = A(e), e = [];\n    for (var nt, it, at, ot = 0, st = 1, ct = Array.isArray(s[0]) ? st : ot, ut = \"\", ht = function (t, e, r) {\n        var n = \"\";\n        return r instanceof Vt ? (r = \"number\" == typeof i.angle ? Gt(r, new Vt(1, 0, 0, 1, t, e)) : Gt(new Vt(1, 0, 0, 1, t, e), r), S === x.ADVANCED && (r = Gt(new Vt(1, 0, 0, -1, 0, 0), r)), n = r.join(\" \") + \" Tm\\n\") : n = O(t) + \" \" + O(e) + \" Td\\n\", n;\n      }, ft = 0; ft < s.length; ft++) {\n      switch (ut = \"\", ct) {\n        case st:\n          at = (y ? \"<\" : \"(\") + s[ft][0] + (y ? \">\" : \")\"), nt = parseFloat(s[ft][1]), it = parseFloat(s[ft][2]);\n          break;\n        case ot:\n          at = (y ? \"<\" : \"(\") + s[ft] + (y ? \">\" : \")\"), nt = br(r), it = yr(n);\n      }\n      void 0 !== Y && void 0 !== Y[ft] && (ut = Y[ft] + \" Tw\\n\"), 0 === ft ? e.push(ut + ht(nt, it, p) + at) : ct === ot ? e.push(ut + at) : ct === st && e.push(ut + ht(nt, it, p) + at);\n    }\n    e = ct === ot ? e.join(\" Tj\\nT* \") : e.join(\" Tj\\n\"), e += \" Tj\\n\";\n    var dt = \"BT\\n/\";\n    return dt += St + \" \" + gt + \" Tf\\n\", dt += O(gt * w) + \" TL\\n\", dt += xr + \"\\n\", dt += v, dt += e, lt(dt += \"ET\"), b[St] = !0, g;\n  };\n  var $e = y.__private__.clip = y.clip = function (t) {\n    return lt(\"evenodd\" === t ? \"W*\" : \"W\"), this;\n  };\n  y.clipEvenOdd = function () {\n    return $e(\"evenodd\");\n  }, y.__private__.discardPath = y.discardPath = function () {\n    return lt(\"n\"), this;\n  };\n  var Qe = y.__private__.isValidStyle = function (t) {\n    var e = !1;\n    return -1 !== [void 0, null, \"S\", \"D\", \"F\", \"DF\", \"FD\", \"f\", \"f*\", \"B\", \"B*\", \"n\"].indexOf(t) && (e = !0), e;\n  };\n  y.__private__.setDefaultPathOperation = y.setDefaultPathOperation = function (t) {\n    return Qe(t) && (g = t), this;\n  };\n  var tr = y.__private__.getStyle = y.getStyle = function (t) {\n      var e = g;\n      switch (t) {\n        case \"D\":\n        case \"S\":\n          e = \"S\";\n          break;\n        case \"F\":\n          e = \"f\";\n          break;\n        case \"FD\":\n        case \"DF\":\n          e = \"B\";\n          break;\n        case \"f\":\n        case \"f*\":\n        case \"B\":\n        case \"B*\":\n          e = t;\n      }\n      return e;\n    },\n    er = y.close = function () {\n      return lt(\"h\"), this;\n    };\n  y.stroke = function () {\n    return lt(\"S\"), this;\n  }, y.fill = function (t) {\n    return rr(\"f\", t), this;\n  }, y.fillEvenOdd = function (t) {\n    return rr(\"f*\", t), this;\n  }, y.fillStroke = function (t) {\n    return rr(\"B\", t), this;\n  }, y.fillStrokeEvenOdd = function (t) {\n    return rr(\"B*\", t), this;\n  };\n  var rr = function (e, r) {\n      \"object\" === t(r) ? ar(r, e) : lt(e);\n    },\n    nr = function (t) {\n      null === t || S === x.ADVANCED && void 0 === t || (t = tr(t), lt(t));\n    };\n  function ir(t, e, r, n, i) {\n    var a = new M(e || this.boundingBox, r || this.xStep, n || this.yStep, this.gState, i || this.matrix);\n    a.stream = this.stream;\n    var o = t + \"$$\" + this.cloneIndex++ + \"$$\";\n    return Jt(o, a), a;\n  }\n  var ar = function (t, e) {\n      var r = Bt[t.key],\n        n = Ot[r];\n      if (n instanceof B) lt(\"q\"), lt(or(e)), n.gState && y.setGState(n.gState), lt(t.matrix.toString() + \" cm\"), lt(\"/\" + r + \" sh\"), lt(\"Q\");else if (n instanceof M) {\n        var i = new Vt(1, 0, 0, -1, 0, Rr());\n        t.matrix && (i = i.multiply(t.matrix || Yt), r = ir.call(n, t.key, t.boundingBox, t.xStep, t.yStep, i).id), lt(\"q\"), lt(\"/Pattern cs\"), lt(\"/\" + r + \" scn\"), n.gState && y.setGState(n.gState), lt(e), lt(\"Q\");\n      }\n    },\n    or = function (t) {\n      switch (t) {\n        case \"f\":\n        case \"F\":\n          return \"W n\";\n        case \"f*\":\n          return \"W* n\";\n        case \"B\":\n          return \"W S\";\n        case \"B*\":\n          return \"W* S\";\n        case \"S\":\n          return \"W S\";\n        case \"n\":\n          return \"W n\";\n      }\n    },\n    sr = y.moveTo = function (t, e) {\n      return lt(O(U(t)) + \" \" + O(H(e)) + \" m\"), this;\n    },\n    cr = y.lineTo = function (t, e) {\n      return lt(O(U(t)) + \" \" + O(H(e)) + \" l\"), this;\n    },\n    ur = y.curveTo = function (t, e, r, n, i, a) {\n      return lt([O(U(t)), O(H(e)), O(U(r)), O(H(n)), O(U(i)), O(H(a)), \"c\"].join(\" \")), this;\n    };\n  y.__private__.line = y.line = function (t, e, r, n, i) {\n    if (isNaN(t) || isNaN(e) || isNaN(r) || isNaN(n) || !Qe(i)) throw new Error(\"Invalid arguments passed to jsPDF.line\");\n    return S === x.COMPAT ? this.lines([[r - t, n - e]], t, e, [1, 1], i || \"S\") : this.lines([[r - t, n - e]], t, e, [1, 1]).stroke();\n  }, y.__private__.lines = y.lines = function (t, e, r, n, i, a) {\n    var o, s, c, u, h, l, f, d, p, g, m, v;\n    if (\"number\" == typeof t && (v = r, r = e, e = t, t = v), n = n || [1, 1], a = a || !1, isNaN(e) || isNaN(r) || !Array.isArray(t) || !Array.isArray(n) || !Qe(i) || \"boolean\" != typeof a) throw new Error(\"Invalid arguments passed to jsPDF.lines\");\n    for (sr(e, r), o = n[0], s = n[1], u = t.length, g = e, m = r, c = 0; c < u; c++) 2 === (h = t[c]).length ? (g = h[0] * o + g, m = h[1] * s + m, cr(g, m)) : (l = h[0] * o + g, f = h[1] * s + m, d = h[2] * o + g, p = h[3] * s + m, g = h[4] * o + g, m = h[5] * s + m, ur(l, f, d, p, g, m));\n    return a && er(), nr(i), this;\n  }, y.path = function (t) {\n    for (var e = 0; e < t.length; e++) {\n      var r = t[e],\n        n = r.c;\n      switch (r.op) {\n        case \"m\":\n          sr(n[0], n[1]);\n          break;\n        case \"l\":\n          cr(n[0], n[1]);\n          break;\n        case \"c\":\n          ur.apply(this, n);\n          break;\n        case \"h\":\n          er();\n      }\n    }\n    return this;\n  }, y.__private__.rect = y.rect = function (t, e, r, n, i) {\n    if (isNaN(t) || isNaN(e) || isNaN(r) || isNaN(n) || !Qe(i)) throw new Error(\"Invalid arguments passed to jsPDF.rect\");\n    return S === x.COMPAT && (n = -n), lt([O(U(t)), O(H(e)), O(U(r)), O(U(n)), \"re\"].join(\" \")), nr(i), this;\n  }, y.__private__.triangle = y.triangle = function (t, e, r, n, i, a, o) {\n    if (isNaN(t) || isNaN(e) || isNaN(r) || isNaN(n) || isNaN(i) || isNaN(a) || !Qe(o)) throw new Error(\"Invalid arguments passed to jsPDF.triangle\");\n    return this.lines([[r - t, n - e], [i - r, a - n], [t - i, e - a]], t, e, [1, 1], o, !0), this;\n  }, y.__private__.roundedRect = y.roundedRect = function (t, e, r, n, i, a, o) {\n    if (isNaN(t) || isNaN(e) || isNaN(r) || isNaN(n) || isNaN(i) || isNaN(a) || !Qe(o)) throw new Error(\"Invalid arguments passed to jsPDF.roundedRect\");\n    var s = 4 / 3 * (Math.SQRT2 - 1);\n    return i = Math.min(i, .5 * r), a = Math.min(a, .5 * n), this.lines([[r - 2 * i, 0], [i * s, 0, i, a - a * s, i, a], [0, n - 2 * a], [0, a * s, -i * s, a, -i, a], [2 * i - r, 0], [-i * s, 0, -i, -a * s, -i, -a], [0, 2 * a - n], [0, -a * s, i * s, -a, i, -a]], t + i, e, [1, 1], o, !0), this;\n  }, y.__private__.ellipse = y.ellipse = function (t, e, r, n, i) {\n    if (isNaN(t) || isNaN(e) || isNaN(r) || isNaN(n) || !Qe(i)) throw new Error(\"Invalid arguments passed to jsPDF.ellipse\");\n    var a = 4 / 3 * (Math.SQRT2 - 1) * r,\n      o = 4 / 3 * (Math.SQRT2 - 1) * n;\n    return sr(t + r, e), ur(t + r, e - o, t + a, e - n, t, e - n), ur(t - a, e - n, t - r, e - o, t - r, e), ur(t - r, e + o, t - a, e + n, t, e + n), ur(t + a, e + n, t + r, e + o, t + r, e), nr(i), this;\n  }, y.__private__.circle = y.circle = function (t, e, r, n) {\n    if (isNaN(t) || isNaN(e) || isNaN(r) || !Qe(n)) throw new Error(\"Invalid arguments passed to jsPDF.circle\");\n    return this.ellipse(t, e, r, r, n);\n  }, y.setFont = function (t, e, r) {\n    return r && (e = k(e, r)), St = qe(t, e, {\n      disableWarning: !1\n    }), this;\n  };\n  var hr = y.__private__.getFont = y.getFont = function () {\n    return Ft[qe.apply(y, arguments)];\n  };\n  y.__private__.getFontList = y.getFontList = function () {\n    var t,\n      e,\n      r = {};\n    for (t in Ct) if (Ct.hasOwnProperty(t)) for (e in r[t] = [], Ct[t]) Ct[t].hasOwnProperty(e) && r[t].push(e);\n    return r;\n  }, y.addFont = function (t, e, r, n, i) {\n    var a = [\"StandardEncoding\", \"MacRomanEncoding\", \"Identity-H\", \"WinAnsiEncoding\"];\n    return arguments[3] && -1 !== a.indexOf(arguments[3]) ? i = arguments[3] : arguments[3] && -1 == a.indexOf(arguments[3]) && (r = k(r, n)), i = i || \"Identity-H\", Pe.call(this, t, e, r, i);\n  };\n  var lr,\n    fr = e.lineWidth || .200025,\n    dr = y.__private__.getLineWidth = y.getLineWidth = function () {\n      return fr;\n    },\n    pr = y.__private__.setLineWidth = y.setLineWidth = function (t) {\n      return fr = t, lt(O(U(t)) + \" w\"), this;\n    };\n  y.__private__.setLineDash = E.API.setLineDash = E.API.setLineDashPattern = function (t, e) {\n    if (t = t || [], e = e || 0, isNaN(e) || !Array.isArray(t)) throw new Error(\"Invalid arguments passed to jsPDF.setLineDash\");\n    return t = t.map(function (t) {\n      return O(U(t));\n    }).join(\" \"), e = O(U(e)), lt(\"[\" + t + \"] \" + e + \" d\"), this;\n  };\n  var gr = y.__private__.getLineHeight = y.getLineHeight = function () {\n    return gt * lr;\n  };\n  y.__private__.getLineHeight = y.getLineHeight = function () {\n    return gt * lr;\n  };\n  var mr = y.__private__.setLineHeightFactor = y.setLineHeightFactor = function (t) {\n      return \"number\" == typeof (t = t || 1.15) && (lr = t), this;\n    },\n    vr = y.__private__.getLineHeightFactor = y.getLineHeightFactor = function () {\n      return lr;\n    };\n  mr(e.lineHeight);\n  var br = y.__private__.getHorizontalCoordinate = function (t) {\n      return U(t);\n    },\n    yr = y.__private__.getVerticalCoordinate = function (t) {\n      return S === x.ADVANCED ? t : Rt[$].mediaBox.topRightY - Rt[$].mediaBox.bottomLeftY - U(t);\n    },\n    wr = y.__private__.getHorizontalCoordinateString = y.getHorizontalCoordinateString = function (t) {\n      return O(br(t));\n    },\n    Nr = y.__private__.getVerticalCoordinateString = y.getVerticalCoordinateString = function (t) {\n      return O(yr(t));\n    },\n    Lr = e.strokeColor || \"0 G\";\n  y.__private__.getStrokeColor = y.getDrawColor = function () {\n    return ee(Lr);\n  }, y.__private__.setStrokeColor = y.setDrawColor = function (t, e, r, n) {\n    return Lr = re({\n      ch1: t,\n      ch2: e,\n      ch3: r,\n      ch4: n,\n      pdfColorType: \"draw\",\n      precision: 2\n    }), lt(Lr), this;\n  };\n  var Ar = e.fillColor || \"0 g\";\n  y.__private__.getFillColor = y.getFillColor = function () {\n    return ee(Ar);\n  }, y.__private__.setFillColor = y.setFillColor = function (t, e, r, n) {\n    return Ar = re({\n      ch1: t,\n      ch2: e,\n      ch3: r,\n      ch4: n,\n      pdfColorType: \"fill\",\n      precision: 2\n    }), lt(Ar), this;\n  };\n  var xr = e.textColor || \"0 g\",\n    Sr = y.__private__.getTextColor = y.getTextColor = function () {\n      return ee(xr);\n    };\n  y.__private__.setTextColor = y.setTextColor = function (t, e, r, n) {\n    return xr = re({\n      ch1: t,\n      ch2: e,\n      ch3: r,\n      ch4: n,\n      pdfColorType: \"text\",\n      precision: 3\n    }), this;\n  };\n  var _r = e.charSpace,\n    Pr = y.__private__.getCharSpace = y.getCharSpace = function () {\n      return parseFloat(_r || 0);\n    };\n  y.__private__.setCharSpace = y.setCharSpace = function (t) {\n    if (isNaN(t)) throw new Error(\"Invalid argument passed to jsPDF.setCharSpace\");\n    return _r = t, this;\n  };\n  var kr = 0;\n  y.CapJoinStyles = {\n    0: 0,\n    butt: 0,\n    but: 0,\n    miter: 0,\n    1: 1,\n    round: 1,\n    rounded: 1,\n    circle: 1,\n    2: 2,\n    projecting: 2,\n    project: 2,\n    square: 2,\n    bevel: 2\n  }, y.__private__.setLineCap = y.setLineCap = function (t) {\n    var e = y.CapJoinStyles[t];\n    if (void 0 === e) throw new Error(\"Line cap style of '\" + t + \"' is not recognized. See or extend .CapJoinStyles property for valid styles\");\n    return kr = e, lt(e + \" J\"), this;\n  };\n  var Ir = 0;\n  y.__private__.setLineJoin = y.setLineJoin = function (t) {\n    var e = y.CapJoinStyles[t];\n    if (void 0 === e) throw new Error(\"Line join style of '\" + t + \"' is not recognized. See or extend .CapJoinStyles property for valid styles\");\n    return Ir = e, lt(e + \" j\"), this;\n  }, y.__private__.setLineMiterLimit = y.__private__.setMiterLimit = y.setLineMiterLimit = y.setMiterLimit = function (t) {\n    if (t = t || 0, isNaN(t)) throw new Error(\"Invalid argument passed to jsPDF.setLineMiterLimit\");\n    return lt(O(U(t)) + \" M\"), this;\n  }, y.GState = j, y.setGState = function (t) {\n    (t = \"string\" == typeof t ? Mt[Et[t]] : Fr(null, t)).equals(qt) || (lt(\"/\" + t.id + \" gs\"), qt = t);\n  };\n  var Fr = function (t, e) {\n    if (!t || !Et[t]) {\n      var r = !1;\n      for (var n in Mt) if (Mt.hasOwnProperty(n) && Mt[n].equals(e)) {\n        r = !0;\n        break;\n      }\n      if (r) e = Mt[n];else {\n        var i = \"GS\" + (Object.keys(Mt).length + 1).toString(10);\n        Mt[i] = e, e.id = i;\n      }\n      return t && (Et[t] = e.id), Tt.publish(\"addGState\", e), e;\n    }\n  };\n  y.addGState = function (t, e) {\n    return Fr(t, e), this;\n  }, y.saveGraphicsState = function () {\n    return lt(\"q\"), jt.push({\n      key: St,\n      size: gt,\n      color: xr\n    }), this;\n  }, y.restoreGraphicsState = function () {\n    lt(\"Q\");\n    var t = jt.pop();\n    return St = t.key, gt = t.size, xr = t.color, qt = null, this;\n  }, y.setCurrentTransformationMatrix = function (t) {\n    return lt(t.toString() + \" cm\"), this;\n  }, y.comment = function (t) {\n    return lt(\"#\" + t), this;\n  };\n  var Cr = function (t, e) {\n      var r = t || 0;\n      Object.defineProperty(this, \"x\", {\n        enumerable: !0,\n        get: function () {\n          return r;\n        },\n        set: function (t) {\n          isNaN(t) || (r = parseFloat(t));\n        }\n      });\n      var n = e || 0;\n      Object.defineProperty(this, \"y\", {\n        enumerable: !0,\n        get: function () {\n          return n;\n        },\n        set: function (t) {\n          isNaN(t) || (n = parseFloat(t));\n        }\n      });\n      var i = \"pt\";\n      return Object.defineProperty(this, \"type\", {\n        enumerable: !0,\n        get: function () {\n          return i;\n        },\n        set: function (t) {\n          i = t.toString();\n        }\n      }), this;\n    },\n    jr = function (t, e, r, n) {\n      Cr.call(this, t, e), this.type = \"rect\";\n      var i = r || 0;\n      Object.defineProperty(this, \"w\", {\n        enumerable: !0,\n        get: function () {\n          return i;\n        },\n        set: function (t) {\n          isNaN(t) || (i = parseFloat(t));\n        }\n      });\n      var a = n || 0;\n      return Object.defineProperty(this, \"h\", {\n        enumerable: !0,\n        get: function () {\n          return a;\n        },\n        set: function (t) {\n          isNaN(t) || (a = parseFloat(t));\n        }\n      }), this;\n    },\n    Or = function () {\n      this.page = Dt, this.currentPage = $, this.pages = ot.slice(0), this.pagesContext = Rt.slice(0), this.x = Pt, this.y = kt, this.matrix = It, this.width = qr($), this.height = Rr($), this.outputDestination = ct, this.id = \"\", this.objectNumber = -1;\n    };\n  Or.prototype.restore = function () {\n    Dt = this.page, $ = this.currentPage, Rt = this.pagesContext, ot = this.pages, Pt = this.x, kt = this.y, It = this.matrix, Dr($, this.width), Tr($, this.height), ct = this.outputDestination;\n  };\n  var Br = function (t, e, r, n, i) {\n      Wt.push(new Or()), Dt = $ = 0, ot = [], Pt = t, kt = e, It = i, je([r, n]);\n    },\n    Mr = function (t) {\n      if (Ht[t]) Wt.pop().restore();else {\n        var e = new Or(),\n          r = \"Xo\" + (Object.keys(zt).length + 1).toString(10);\n        e.id = r, Ht[t] = r, zt[r] = e, Tt.publish(\"addFormObject\", e), Wt.pop().restore();\n      }\n    };\n  for (var Er in y.beginFormObject = function (t, e, r, n, i) {\n    return Br(t, e, r, n, i), this;\n  }, y.endFormObject = function (t) {\n    return Mr(t), this;\n  }, y.doFormObject = function (t, e) {\n    var r = zt[Ht[t]];\n    return lt(\"q\"), lt(e.toString() + \" cm\"), lt(\"/\" + r.id + \" Do\"), lt(\"Q\"), this;\n  }, y.getFormObject = function (t) {\n    var e = zt[Ht[t]];\n    return {\n      x: e.x,\n      y: e.y,\n      width: e.width,\n      height: e.height,\n      matrix: e.matrix\n    };\n  }, y.save = function (t, e) {\n    return t = t || \"generated.pdf\", (e = e || {}).returnPromise = e.returnPromise || !1, !1 === e.returnPromise ? (l(We(He()), t), \"function\" == typeof l.unload && n.setTimeout && setTimeout(l.unload, 911), this) : new Promise(function (e, r) {\n      try {\n        var i = l(We(He()), t);\n        \"function\" == typeof l.unload && n.setTimeout && setTimeout(l.unload, 911), e(i);\n      } catch (t) {\n        r(t.message);\n      }\n    });\n  }, E.API) E.API.hasOwnProperty(Er) && (\"events\" === Er && E.API.events.length ? function (t, e) {\n    var r, n, i;\n    for (i = e.length - 1; -1 !== i; i--) r = e[i][0], n = e[i][1], t.subscribe.apply(t, [r].concat(\"function\" == typeof n ? [n] : n));\n  }(Tt, E.API.events) : y[Er] = E.API[Er]);\n  var qr = y.getPageWidth = function (t) {\n      return (Rt[t = t || $].mediaBox.topRightX - Rt[t].mediaBox.bottomLeftX) / _t;\n    },\n    Dr = y.setPageWidth = function (t, e) {\n      Rt[t].mediaBox.topRightX = e * _t + Rt[t].mediaBox.bottomLeftX;\n    },\n    Rr = y.getPageHeight = function (t) {\n      return (Rt[t = t || $].mediaBox.topRightY - Rt[t].mediaBox.bottomLeftY) / _t;\n    },\n    Tr = y.setPageHeight = function (t, e) {\n      Rt[t].mediaBox.topRightY = e * _t + Rt[t].mediaBox.bottomLeftY;\n    };\n  return y.internal = {\n    pdfEscape: Ce,\n    getStyle: tr,\n    getFont: hr,\n    getFontSize: vt,\n    getCharSpace: Pr,\n    getTextColor: Sr,\n    getLineHeight: gr,\n    getLineHeightFactor: vr,\n    getLineWidth: dr,\n    write: ft,\n    getHorizontalCoordinate: br,\n    getVerticalCoordinate: yr,\n    getCoordinateString: wr,\n    getVerticalCoordinateString: Nr,\n    collections: {},\n    newObject: Xt,\n    newAdditionalObject: $t,\n    newObjectDeferred: Kt,\n    newObjectDeferredBegin: Zt,\n    getFilters: ne,\n    putStream: ie,\n    events: Tt,\n    scaleFactor: _t,\n    pageSize: {\n      getWidth: function () {\n        return qr($);\n      },\n      setWidth: function (t) {\n        Dr($, t);\n      },\n      getHeight: function () {\n        return Rr($);\n      },\n      setHeight: function (t) {\n        Tr($, t);\n      }\n    },\n    encryptionOptions: m,\n    encryption: Ye,\n    getEncryptor: Je,\n    output: Ve,\n    getNumberOfPages: Ee,\n    pages: ot,\n    out: lt,\n    f2: R,\n    f3: T,\n    getPageInfo: Xe,\n    getPageInfoByObjId: Ke,\n    getCurrentPageInfo: Ze,\n    getPDFVersion: N,\n    Point: Cr,\n    Rectangle: jr,\n    Matrix: Vt,\n    hasHotfix: Ge\n  }, Object.defineProperty(y.internal.pageSize, \"width\", {\n    get: function () {\n      return qr($);\n    },\n    set: function (t) {\n      Dr($, t);\n    },\n    enumerable: !0,\n    configurable: !0\n  }), Object.defineProperty(y.internal.pageSize, \"height\", {\n    get: function () {\n      return Rr($);\n    },\n    set: function (t) {\n      Tr($, t);\n    },\n    enumerable: !0,\n    configurable: !0\n  }), ke.call(y, pt), St = \"F1\", Oe(s, i), Tt.publish(\"initialized\"), y;\n}\nI.prototype.lsbFirstWord = function (t) {\n  return String.fromCharCode(t >> 0 & 255, t >> 8 & 255, t >> 16 & 255, t >> 24 & 255);\n}, I.prototype.toHexString = function (t) {\n  return t.split(\"\").map(function (t) {\n    return (\"0\" + (255 & t.charCodeAt(0)).toString(16)).slice(-2);\n  }).join(\"\");\n}, I.prototype.hexToBytes = function (t) {\n  for (var e = [], r = 0; r < t.length; r += 2) e.push(String.fromCharCode(parseInt(t.substr(r, 2), 16)));\n  return e.join(\"\");\n}, I.prototype.processOwnerPassword = function (t, e) {\n  return P(x(e).substr(0, 5), t);\n}, I.prototype.encryptor = function (t, e) {\n  var r = x(this.encryptionKey + String.fromCharCode(255 & t, t >> 8 & 255, t >> 16 & 255, 255 & e, e >> 8 & 255)).substr(0, 10);\n  return function (t) {\n    return P(r, t);\n  };\n}, j.prototype.equals = function (e) {\n  var r,\n    n = \"id,objectNumber,equals\";\n  if (!e || t(e) !== t(this)) return !1;\n  var i = 0;\n  for (r in this) if (!(n.indexOf(r) >= 0)) {\n    if (this.hasOwnProperty(r) && !e.hasOwnProperty(r)) return !1;\n    if (this[r] !== e[r]) return !1;\n    i++;\n  }\n  for (r in e) e.hasOwnProperty(r) && n.indexOf(r) < 0 && i--;\n  return 0 === i;\n}, E.API = {\n  events: []\n}, E.version = \"2.5.1\";\nvar q = E.API,\n  D = 1,\n  R = function (t) {\n    return t.replace(/\\\\/g, \"\\\\\\\\\").replace(/\\(/g, \"\\\\(\").replace(/\\)/g, \"\\\\)\");\n  },\n  T = function (t) {\n    return t.replace(/\\\\\\\\/g, \"\\\\\").replace(/\\\\\\(/g, \"(\").replace(/\\\\\\)/g, \")\");\n  },\n  U = function (t) {\n    return t.toFixed(2);\n  },\n  z = function (t) {\n    return t.toFixed(5);\n  };\nq.__acroform__ = {};\nvar H = function (t, e) {\n    t.prototype = Object.create(e.prototype), t.prototype.constructor = t;\n  },\n  W = function (t) {\n    return t * D;\n  },\n  V = function (t) {\n    var e = new ut(),\n      r = At.internal.getHeight(t) || 0,\n      n = At.internal.getWidth(t) || 0;\n    return e.BBox = [0, 0, Number(U(n)), Number(U(r))], e;\n  },\n  G = q.__acroform__.setBit = function (t, e) {\n    if (t = t || 0, e = e || 0, isNaN(t) || isNaN(e)) throw new Error(\"Invalid arguments passed to jsPDF.API.__acroform__.setBit\");\n    return t |= 1 << e;\n  },\n  Y = q.__acroform__.clearBit = function (t, e) {\n    if (t = t || 0, e = e || 0, isNaN(t) || isNaN(e)) throw new Error(\"Invalid arguments passed to jsPDF.API.__acroform__.clearBit\");\n    return t &= ~(1 << e);\n  },\n  J = q.__acroform__.getBit = function (t, e) {\n    if (isNaN(t) || isNaN(e)) throw new Error(\"Invalid arguments passed to jsPDF.API.__acroform__.getBit\");\n    return 0 == (t & 1 << e) ? 0 : 1;\n  },\n  X = q.__acroform__.getBitForPdf = function (t, e) {\n    if (isNaN(t) || isNaN(e)) throw new Error(\"Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf\");\n    return J(t, e - 1);\n  },\n  K = q.__acroform__.setBitForPdf = function (t, e) {\n    if (isNaN(t) || isNaN(e)) throw new Error(\"Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf\");\n    return G(t, e - 1);\n  },\n  Z = q.__acroform__.clearBitForPdf = function (t, e) {\n    if (isNaN(t) || isNaN(e)) throw new Error(\"Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf\");\n    return Y(t, e - 1);\n  },\n  $ = q.__acroform__.calculateCoordinates = function (t, e) {\n    var r = e.internal.getHorizontalCoordinate,\n      n = e.internal.getVerticalCoordinate,\n      i = t[0],\n      a = t[1],\n      o = t[2],\n      s = t[3],\n      c = {};\n    return c.lowerLeft_X = r(i) || 0, c.lowerLeft_Y = n(a + s) || 0, c.upperRight_X = r(i + o) || 0, c.upperRight_Y = n(a) || 0, [Number(U(c.lowerLeft_X)), Number(U(c.lowerLeft_Y)), Number(U(c.upperRight_X)), Number(U(c.upperRight_Y))];\n  },\n  Q = function (t) {\n    if (t.appearanceStreamContent) return t.appearanceStreamContent;\n    if (t.V || t.DV) {\n      var e = [],\n        r = t._V || t.DV,\n        n = tt(t, r),\n        i = t.scope.internal.getFont(t.fontName, t.fontStyle).id;\n      e.push(\"/Tx BMC\"), e.push(\"q\"), e.push(\"BT\"), e.push(t.scope.__private__.encodeColorString(t.color)), e.push(\"/\" + i + \" \" + U(n.fontSize) + \" Tf\"), e.push(\"1 0 0 1 0 0 Tm\"), e.push(n.text), e.push(\"ET\"), e.push(\"Q\"), e.push(\"EMC\");\n      var a = V(t);\n      return a.scope = t.scope, a.stream = e.join(\"\\n\"), a;\n    }\n  },\n  tt = function (t, e) {\n    var r = 0 === t.fontSize ? t.maxFontSize : t.fontSize,\n      n = {\n        text: \"\",\n        fontSize: \"\"\n      },\n      i = (e = \")\" == (e = \"(\" == e.substr(0, 1) ? e.substr(1) : e).substr(e.length - 1) ? e.substr(0, e.length - 1) : e).split(\" \");\n    i = t.multiline ? i.map(function (t) {\n      return t.split(\"\\n\");\n    }) : i.map(function (t) {\n      return [t];\n    });\n    var a = r,\n      o = At.internal.getHeight(t) || 0;\n    o = o < 0 ? -o : o;\n    var s = At.internal.getWidth(t) || 0;\n    s = s < 0 ? -s : s;\n    var c = function (e, r, n) {\n      if (e + 1 < i.length) {\n        var a = r + \" \" + i[e + 1][0];\n        return et(a, t, n).width <= s - 4;\n      }\n      return !1;\n    };\n    a++;\n    t: for (; a > 0;) {\n      e = \"\", a--;\n      var u,\n        h,\n        l = et(\"3\", t, a).height,\n        f = t.multiline ? o - a : (o - l) / 2,\n        d = f += 2,\n        p = 0,\n        g = 0,\n        m = 0;\n      if (a <= 0) {\n        e = \"(...) Tj\\n\", e += \"% Width of Text: \" + et(e, t, a = 12).width + \", FieldWidth:\" + s + \"\\n\";\n        break;\n      }\n      for (var v = \"\", b = 0, y = 0; y < i.length; y++) if (i.hasOwnProperty(y)) {\n        var w = !1;\n        if (1 !== i[y].length && m !== i[y].length - 1) {\n          if ((l + 2) * (b + 2) + 2 > o) continue t;\n          v += i[y][m], w = !0, g = y, y--;\n        } else {\n          v = \" \" == (v += i[y][m] + \" \").substr(v.length - 1) ? v.substr(0, v.length - 1) : v;\n          var N = parseInt(y),\n            L = c(N, v, a),\n            A = y >= i.length - 1;\n          if (L && !A) {\n            v += \" \", m = 0;\n            continue;\n          }\n          if (L || A) {\n            if (A) g = N;else if (t.multiline && (l + 2) * (b + 2) + 2 > o) continue t;\n          } else {\n            if (!t.multiline) continue t;\n            if ((l + 2) * (b + 2) + 2 > o) continue t;\n            g = N;\n          }\n        }\n        for (var x = \"\", S = p; S <= g; S++) {\n          var _ = i[S];\n          if (t.multiline) {\n            if (S === g) {\n              x += _[m] + \" \", m = (m + 1) % _.length;\n              continue;\n            }\n            if (S === p) {\n              x += _[_.length - 1] + \" \";\n              continue;\n            }\n          }\n          x += _[0] + \" \";\n        }\n        switch (x = \" \" == x.substr(x.length - 1) ? x.substr(0, x.length - 1) : x, h = et(x, t, a).width, t.textAlign) {\n          case \"right\":\n            u = s - h - 2;\n            break;\n          case \"center\":\n            u = (s - h) / 2;\n            break;\n          case \"left\":\n          default:\n            u = 2;\n        }\n        e += U(u) + \" \" + U(d) + \" Td\\n\", e += \"(\" + R(x) + \") Tj\\n\", e += -U(u) + \" 0 Td\\n\", d = -(a + 2), h = 0, p = w ? g : g + 1, b++, v = \"\";\n      } else ;\n      break;\n    }\n    return n.text = e, n.fontSize = a, n;\n  },\n  et = function (t, e, r) {\n    var n = e.scope.internal.getFont(e.fontName, e.fontStyle),\n      i = e.scope.getStringUnitWidth(t, {\n        font: n,\n        fontSize: parseFloat(r),\n        charSpace: 0\n      }) * parseFloat(r);\n    return {\n      height: e.scope.getStringUnitWidth(\"3\", {\n        font: n,\n        fontSize: parseFloat(r),\n        charSpace: 0\n      }) * parseFloat(r) * 1.5,\n      width: i\n    };\n  },\n  rt = {\n    fields: [],\n    xForms: [],\n    acroFormDictionaryRoot: null,\n    printedOut: !1,\n    internal: null,\n    isInitialized: !1\n  },\n  nt = function (t, e) {\n    var r = {\n      type: \"reference\",\n      object: t\n    };\n    void 0 === e.internal.getPageInfo(t.page).pageContext.annotations.find(function (t) {\n      return t.type === r.type && t.object === r.object;\n    }) && e.internal.getPageInfo(t.page).pageContext.annotations.push(r);\n  },\n  it = function (e, r) {\n    for (var n in e) if (e.hasOwnProperty(n)) {\n      var i = n,\n        a = e[n];\n      r.internal.newObjectDeferredBegin(a.objId, !0), \"object\" === t(a) && \"function\" == typeof a.putStream && a.putStream(), delete e[i];\n    }\n  },\n  at = function (e, r) {\n    if (r.scope = e, void 0 !== e.internal && (void 0 === e.internal.acroformPlugin || !1 === e.internal.acroformPlugin.isInitialized)) {\n      if (lt.FieldNum = 0, e.internal.acroformPlugin = JSON.parse(JSON.stringify(rt)), e.internal.acroformPlugin.acroFormDictionaryRoot) throw new Error(\"Exception while creating AcroformDictionary\");\n      D = e.internal.scaleFactor, e.internal.acroformPlugin.acroFormDictionaryRoot = new ht(), e.internal.acroformPlugin.acroFormDictionaryRoot.scope = e, e.internal.acroformPlugin.acroFormDictionaryRoot._eventID = e.internal.events.subscribe(\"postPutResources\", function () {\n        !function (t) {\n          t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID), delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID, t.internal.acroformPlugin.printedOut = !0;\n        }(e);\n      }), e.internal.events.subscribe(\"buildDocument\", function () {\n        !function (t) {\n          t.internal.acroformPlugin.acroFormDictionaryRoot.objId = void 0;\n          var e = t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;\n          for (var r in e) if (e.hasOwnProperty(r)) {\n            var n = e[r];\n            n.objId = void 0, n.hasAnnotation && nt(n, t);\n          }\n        }(e);\n      }), e.internal.events.subscribe(\"putCatalog\", function () {\n        !function (t) {\n          if (void 0 === t.internal.acroformPlugin.acroFormDictionaryRoot) throw new Error(\"putCatalogCallback: Root missing.\");\n          t.internal.write(\"/AcroForm \" + t.internal.acroformPlugin.acroFormDictionaryRoot.objId + \" 0 R\");\n        }(e);\n      }), e.internal.events.subscribe(\"postPutPages\", function (r) {\n        !function (e, r) {\n          var n = !e;\n          for (var i in e || (r.internal.newObjectDeferredBegin(r.internal.acroformPlugin.acroFormDictionaryRoot.objId, !0), r.internal.acroformPlugin.acroFormDictionaryRoot.putStream()), e = e || r.internal.acroformPlugin.acroFormDictionaryRoot.Kids) if (e.hasOwnProperty(i)) {\n            var a = e[i],\n              o = [],\n              s = a.Rect;\n            if (a.Rect && (a.Rect = $(a.Rect, r)), r.internal.newObjectDeferredBegin(a.objId, !0), a.DA = At.createDefaultAppearanceStream(a), \"object\" === t(a) && \"function\" == typeof a.getKeyValueListForStream && (o = a.getKeyValueListForStream()), a.Rect = s, a.hasAppearanceStream && !a.appearanceStreamContent) {\n              var c = Q(a);\n              o.push({\n                key: \"AP\",\n                value: \"<</N \" + c + \">>\"\n              }), r.internal.acroformPlugin.xForms.push(c);\n            }\n            if (a.appearanceStreamContent) {\n              var u = \"\";\n              for (var h in a.appearanceStreamContent) if (a.appearanceStreamContent.hasOwnProperty(h)) {\n                var l = a.appearanceStreamContent[h];\n                if (u += \"/\" + h + \" \", u += \"<<\", Object.keys(l).length >= 1 || Array.isArray(l)) {\n                  for (var i in l) if (l.hasOwnProperty(i)) {\n                    var f = l[i];\n                    \"function\" == typeof f && (f = f.call(r, a)), u += \"/\" + i + \" \" + f + \" \", r.internal.acroformPlugin.xForms.indexOf(f) >= 0 || r.internal.acroformPlugin.xForms.push(f);\n                  }\n                } else \"function\" == typeof (f = l) && (f = f.call(r, a)), u += \"/\" + i + \" \" + f, r.internal.acroformPlugin.xForms.indexOf(f) >= 0 || r.internal.acroformPlugin.xForms.push(f);\n                u += \">>\";\n              }\n              o.push({\n                key: \"AP\",\n                value: \"<<\\n\" + u + \">>\"\n              });\n            }\n            r.internal.putStream({\n              additionalKeyValues: o,\n              objectId: a.objId\n            }), r.internal.out(\"endobj\");\n          }\n          n && it(r.internal.acroformPlugin.xForms, r);\n        }(r, e);\n      }), e.internal.acroformPlugin.isInitialized = !0;\n    }\n  },\n  ot = q.__acroform__.arrayToPdfArray = function (e, r, n) {\n    var i = function (t) {\n      return t;\n    };\n    if (Array.isArray(e)) {\n      for (var a = \"[\", o = 0; o < e.length; o++) switch (0 !== o && (a += \" \"), t(e[o])) {\n        case \"boolean\":\n        case \"number\":\n        case \"object\":\n          a += e[o].toString();\n          break;\n        case \"string\":\n          \"/\" !== e[o].substr(0, 1) ? (void 0 !== r && n && (i = n.internal.getEncryptor(r)), a += \"(\" + R(i(e[o].toString())) + \")\") : a += e[o].toString();\n      }\n      return a += \"]\";\n    }\n    throw new Error(\"Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray\");\n  };\nvar st = function (t, e, r) {\n    var n = function (t) {\n      return t;\n    };\n    return void 0 !== e && r && (n = r.internal.getEncryptor(e)), (t = t || \"\").toString(), t = \"(\" + R(n(t)) + \")\";\n  },\n  ct = function () {\n    this._objId = void 0, this._scope = void 0, Object.defineProperty(this, \"objId\", {\n      get: function () {\n        if (void 0 === this._objId) {\n          if (void 0 === this.scope) return;\n          this._objId = this.scope.internal.newObjectDeferred();\n        }\n        return this._objId;\n      },\n      set: function (t) {\n        this._objId = t;\n      }\n    }), Object.defineProperty(this, \"scope\", {\n      value: this._scope,\n      writable: !0\n    });\n  };\nct.prototype.toString = function () {\n  return this.objId + \" 0 R\";\n}, ct.prototype.putStream = function () {\n  var t = this.getKeyValueListForStream();\n  this.scope.internal.putStream({\n    data: this.stream,\n    additionalKeyValues: t,\n    objectId: this.objId\n  }), this.scope.internal.out(\"endobj\");\n}, ct.prototype.getKeyValueListForStream = function () {\n  var t = [],\n    e = Object.getOwnPropertyNames(this).filter(function (t) {\n      return \"content\" != t && \"appearanceStreamContent\" != t && \"scope\" != t && \"objId\" != t && \"_\" != t.substring(0, 1);\n    });\n  for (var r in e) if (!1 === Object.getOwnPropertyDescriptor(this, e[r]).configurable) {\n    var n = e[r],\n      i = this[n];\n    i && (Array.isArray(i) ? t.push({\n      key: n,\n      value: ot(i, this.objId, this.scope)\n    }) : i instanceof ct ? (i.scope = this.scope, t.push({\n      key: n,\n      value: i.objId + \" 0 R\"\n    })) : \"function\" != typeof i && t.push({\n      key: n,\n      value: i\n    }));\n  }\n  return t;\n};\nvar ut = function () {\n  ct.call(this), Object.defineProperty(this, \"Type\", {\n    value: \"/XObject\",\n    configurable: !1,\n    writable: !0\n  }), Object.defineProperty(this, \"Subtype\", {\n    value: \"/Form\",\n    configurable: !1,\n    writable: !0\n  }), Object.defineProperty(this, \"FormType\", {\n    value: 1,\n    configurable: !1,\n    writable: !0\n  });\n  var t,\n    e = [];\n  Object.defineProperty(this, \"BBox\", {\n    configurable: !1,\n    get: function () {\n      return e;\n    },\n    set: function (t) {\n      e = t;\n    }\n  }), Object.defineProperty(this, \"Resources\", {\n    value: \"2 0 R\",\n    configurable: !1,\n    writable: !0\n  }), Object.defineProperty(this, \"stream\", {\n    enumerable: !1,\n    configurable: !0,\n    set: function (e) {\n      t = e.trim();\n    },\n    get: function () {\n      return t || null;\n    }\n  });\n};\nH(ut, ct);\nvar ht = function () {\n  ct.call(this);\n  var t,\n    e = [];\n  Object.defineProperty(this, \"Kids\", {\n    enumerable: !1,\n    configurable: !0,\n    get: function () {\n      return e.length > 0 ? e : void 0;\n    }\n  }), Object.defineProperty(this, \"Fields\", {\n    enumerable: !1,\n    configurable: !1,\n    get: function () {\n      return e;\n    }\n  }), Object.defineProperty(this, \"DA\", {\n    enumerable: !1,\n    configurable: !1,\n    get: function () {\n      if (t) {\n        var e = function (t) {\n          return t;\n        };\n        return this.scope && (e = this.scope.internal.getEncryptor(this.objId)), \"(\" + R(e(t)) + \")\";\n      }\n    },\n    set: function (e) {\n      t = e;\n    }\n  });\n};\nH(ht, ct);\nvar lt = function t() {\n  ct.call(this);\n  var e = 4;\n  Object.defineProperty(this, \"F\", {\n    enumerable: !1,\n    configurable: !1,\n    get: function () {\n      return e;\n    },\n    set: function (t) {\n      if (isNaN(t)) throw new Error('Invalid value \"' + t + '\" for attribute F supplied.');\n      e = t;\n    }\n  }), Object.defineProperty(this, \"showWhenPrinted\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(e, 3));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.F = K(e, 3) : this.F = Z(e, 3);\n    }\n  });\n  var r = 0;\n  Object.defineProperty(this, \"Ff\", {\n    enumerable: !1,\n    configurable: !1,\n    get: function () {\n      return r;\n    },\n    set: function (t) {\n      if (isNaN(t)) throw new Error('Invalid value \"' + t + '\" for attribute Ff supplied.');\n      r = t;\n    }\n  });\n  var n = [];\n  Object.defineProperty(this, \"Rect\", {\n    enumerable: !1,\n    configurable: !1,\n    get: function () {\n      if (0 !== n.length) return n;\n    },\n    set: function (t) {\n      n = void 0 !== t ? t : [];\n    }\n  }), Object.defineProperty(this, \"x\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return !n || isNaN(n[0]) ? 0 : n[0];\n    },\n    set: function (t) {\n      n[0] = t;\n    }\n  }), Object.defineProperty(this, \"y\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return !n || isNaN(n[1]) ? 0 : n[1];\n    },\n    set: function (t) {\n      n[1] = t;\n    }\n  }), Object.defineProperty(this, \"width\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return !n || isNaN(n[2]) ? 0 : n[2];\n    },\n    set: function (t) {\n      n[2] = t;\n    }\n  }), Object.defineProperty(this, \"height\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return !n || isNaN(n[3]) ? 0 : n[3];\n    },\n    set: function (t) {\n      n[3] = t;\n    }\n  });\n  var i = \"\";\n  Object.defineProperty(this, \"FT\", {\n    enumerable: !0,\n    configurable: !1,\n    get: function () {\n      return i;\n    },\n    set: function (t) {\n      switch (t) {\n        case \"/Btn\":\n        case \"/Tx\":\n        case \"/Ch\":\n        case \"/Sig\":\n          i = t;\n          break;\n        default:\n          throw new Error('Invalid value \"' + t + '\" for attribute FT supplied.');\n      }\n    }\n  });\n  var a = null;\n  Object.defineProperty(this, \"T\", {\n    enumerable: !0,\n    configurable: !1,\n    get: function () {\n      if (!a || a.length < 1) {\n        if (this instanceof yt) return;\n        a = \"FieldObject\" + t.FieldNum++;\n      }\n      var e = function (t) {\n        return t;\n      };\n      return this.scope && (e = this.scope.internal.getEncryptor(this.objId)), \"(\" + R(e(a)) + \")\";\n    },\n    set: function (t) {\n      a = t.toString();\n    }\n  }), Object.defineProperty(this, \"fieldName\", {\n    configurable: !0,\n    enumerable: !0,\n    get: function () {\n      return a;\n    },\n    set: function (t) {\n      a = t;\n    }\n  });\n  var o = \"helvetica\";\n  Object.defineProperty(this, \"fontName\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return o;\n    },\n    set: function (t) {\n      o = t;\n    }\n  });\n  var s = \"normal\";\n  Object.defineProperty(this, \"fontStyle\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return s;\n    },\n    set: function (t) {\n      s = t;\n    }\n  });\n  var c = 0;\n  Object.defineProperty(this, \"fontSize\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return c;\n    },\n    set: function (t) {\n      c = t;\n    }\n  });\n  var u = void 0;\n  Object.defineProperty(this, \"maxFontSize\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return void 0 === u ? 50 / D : u;\n    },\n    set: function (t) {\n      u = t;\n    }\n  });\n  var h = \"black\";\n  Object.defineProperty(this, \"color\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return h;\n    },\n    set: function (t) {\n      h = t;\n    }\n  });\n  var l = \"/F1 0 Tf 0 g\";\n  Object.defineProperty(this, \"DA\", {\n    enumerable: !0,\n    configurable: !1,\n    get: function () {\n      if (!(!l || this instanceof yt || this instanceof Nt)) return st(l, this.objId, this.scope);\n    },\n    set: function (t) {\n      t = t.toString(), l = t;\n    }\n  });\n  var f = null;\n  Object.defineProperty(this, \"DV\", {\n    enumerable: !1,\n    configurable: !1,\n    get: function () {\n      if (f) return this instanceof mt == !1 ? st(f, this.objId, this.scope) : f;\n    },\n    set: function (t) {\n      t = t.toString(), f = this instanceof mt == !1 ? \"(\" === t.substr(0, 1) ? T(t.substr(1, t.length - 2)) : T(t) : t;\n    }\n  }), Object.defineProperty(this, \"defaultValue\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return this instanceof mt == !0 ? T(f.substr(1, f.length - 1)) : f;\n    },\n    set: function (t) {\n      t = t.toString(), f = this instanceof mt == !0 ? \"/\" + t : t;\n    }\n  });\n  var d = null;\n  Object.defineProperty(this, \"_V\", {\n    enumerable: !1,\n    configurable: !1,\n    get: function () {\n      if (d) return d;\n    },\n    set: function (t) {\n      this.V = t;\n    }\n  }), Object.defineProperty(this, \"V\", {\n    enumerable: !1,\n    configurable: !1,\n    get: function () {\n      if (d) return this instanceof mt == !1 ? st(d, this.objId, this.scope) : d;\n    },\n    set: function (t) {\n      t = t.toString(), d = this instanceof mt == !1 ? \"(\" === t.substr(0, 1) ? T(t.substr(1, t.length - 2)) : T(t) : t;\n    }\n  }), Object.defineProperty(this, \"value\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return this instanceof mt == !0 ? T(d.substr(1, d.length - 1)) : d;\n    },\n    set: function (t) {\n      t = t.toString(), d = this instanceof mt == !0 ? \"/\" + t : t;\n    }\n  }), Object.defineProperty(this, \"hasAnnotation\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return this.Rect;\n    }\n  }), Object.defineProperty(this, \"Type\", {\n    enumerable: !0,\n    configurable: !1,\n    get: function () {\n      return this.hasAnnotation ? \"/Annot\" : null;\n    }\n  }), Object.defineProperty(this, \"Subtype\", {\n    enumerable: !0,\n    configurable: !1,\n    get: function () {\n      return this.hasAnnotation ? \"/Widget\" : null;\n    }\n  });\n  var p,\n    g = !1;\n  Object.defineProperty(this, \"hasAppearanceStream\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return g;\n    },\n    set: function (t) {\n      t = Boolean(t), g = t;\n    }\n  }), Object.defineProperty(this, \"page\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      if (p) return p;\n    },\n    set: function (t) {\n      p = t;\n    }\n  }), Object.defineProperty(this, \"readOnly\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 1));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 1) : this.Ff = Z(this.Ff, 1);\n    }\n  }), Object.defineProperty(this, \"required\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 2));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 2) : this.Ff = Z(this.Ff, 2);\n    }\n  }), Object.defineProperty(this, \"noExport\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 3));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 3) : this.Ff = Z(this.Ff, 3);\n    }\n  });\n  var m = null;\n  Object.defineProperty(this, \"Q\", {\n    enumerable: !0,\n    configurable: !1,\n    get: function () {\n      if (null !== m) return m;\n    },\n    set: function (t) {\n      if (-1 === [0, 1, 2].indexOf(t)) throw new Error('Invalid value \"' + t + '\" for attribute Q supplied.');\n      m = t;\n    }\n  }), Object.defineProperty(this, \"textAlign\", {\n    get: function () {\n      var t;\n      switch (m) {\n        case 0:\n        default:\n          t = \"left\";\n          break;\n        case 1:\n          t = \"center\";\n          break;\n        case 2:\n          t = \"right\";\n      }\n      return t;\n    },\n    configurable: !0,\n    enumerable: !0,\n    set: function (t) {\n      switch (t) {\n        case \"right\":\n        case 2:\n          m = 2;\n          break;\n        case \"center\":\n        case 1:\n          m = 1;\n          break;\n        case \"left\":\n        case 0:\n        default:\n          m = 0;\n      }\n    }\n  });\n};\nH(lt, ct);\nvar ft = function () {\n  lt.call(this), this.FT = \"/Ch\", this.V = \"()\", this.fontName = \"zapfdingbats\";\n  var t = 0;\n  Object.defineProperty(this, \"TI\", {\n    enumerable: !0,\n    configurable: !1,\n    get: function () {\n      return t;\n    },\n    set: function (e) {\n      t = e;\n    }\n  }), Object.defineProperty(this, \"topIndex\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return t;\n    },\n    set: function (e) {\n      t = e;\n    }\n  });\n  var e = [];\n  Object.defineProperty(this, \"Opt\", {\n    enumerable: !0,\n    configurable: !1,\n    get: function () {\n      return ot(e, this.objId, this.scope);\n    },\n    set: function (t) {\n      var r, n;\n      n = [], \"string\" == typeof (r = t) && (n = function (t, e, r) {\n        r || (r = 1);\n        for (var n, i = []; n = e.exec(t);) i.push(n[r]);\n        return i;\n      }(r, /\\((.*?)\\)/g)), e = n;\n    }\n  }), this.getOptions = function () {\n    return e;\n  }, this.setOptions = function (t) {\n    e = t, this.sort && e.sort();\n  }, this.addOption = function (t) {\n    t = (t = t || \"\").toString(), e.push(t), this.sort && e.sort();\n  }, this.removeOption = function (t, r) {\n    for (r = r || !1, t = (t = t || \"\").toString(); -1 !== e.indexOf(t) && (e.splice(e.indexOf(t), 1), !1 !== r););\n  }, Object.defineProperty(this, \"combo\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 18));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 18) : this.Ff = Z(this.Ff, 18);\n    }\n  }), Object.defineProperty(this, \"edit\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 19));\n    },\n    set: function (t) {\n      !0 === this.combo && (!0 === Boolean(t) ? this.Ff = K(this.Ff, 19) : this.Ff = Z(this.Ff, 19));\n    }\n  }), Object.defineProperty(this, \"sort\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 20));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? (this.Ff = K(this.Ff, 20), e.sort()) : this.Ff = Z(this.Ff, 20);\n    }\n  }), Object.defineProperty(this, \"multiSelect\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 22));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 22) : this.Ff = Z(this.Ff, 22);\n    }\n  }), Object.defineProperty(this, \"doNotSpellCheck\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 23));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 23) : this.Ff = Z(this.Ff, 23);\n    }\n  }), Object.defineProperty(this, \"commitOnSelChange\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 27));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 27) : this.Ff = Z(this.Ff, 27);\n    }\n  }), this.hasAppearanceStream = !1;\n};\nH(ft, lt);\nvar dt = function () {\n  ft.call(this), this.fontName = \"helvetica\", this.combo = !1;\n};\nH(dt, ft);\nvar pt = function () {\n  dt.call(this), this.combo = !0;\n};\nH(pt, dt);\nvar gt = function () {\n  pt.call(this), this.edit = !0;\n};\nH(gt, pt);\nvar mt = function () {\n  lt.call(this), this.FT = \"/Btn\", Object.defineProperty(this, \"noToggleToOff\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 15));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 15) : this.Ff = Z(this.Ff, 15);\n    }\n  }), Object.defineProperty(this, \"radio\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 16));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 16) : this.Ff = Z(this.Ff, 16);\n    }\n  }), Object.defineProperty(this, \"pushButton\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 17));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 17) : this.Ff = Z(this.Ff, 17);\n    }\n  }), Object.defineProperty(this, \"radioIsUnison\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 26));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 26) : this.Ff = Z(this.Ff, 26);\n    }\n  });\n  var e,\n    r = {};\n  Object.defineProperty(this, \"MK\", {\n    enumerable: !1,\n    configurable: !1,\n    get: function () {\n      var t = function (t) {\n        return t;\n      };\n      if (this.scope && (t = this.scope.internal.getEncryptor(this.objId)), 0 !== Object.keys(r).length) {\n        var e,\n          n = [];\n        for (e in n.push(\"<<\"), r) n.push(\"/\" + e + \" (\" + R(t(r[e])) + \")\");\n        return n.push(\">>\"), n.join(\"\\n\");\n      }\n    },\n    set: function (e) {\n      \"object\" === t(e) && (r = e);\n    }\n  }), Object.defineProperty(this, \"caption\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return r.CA || \"\";\n    },\n    set: function (t) {\n      \"string\" == typeof t && (r.CA = t);\n    }\n  }), Object.defineProperty(this, \"AS\", {\n    enumerable: !1,\n    configurable: !1,\n    get: function () {\n      return e;\n    },\n    set: function (t) {\n      e = t;\n    }\n  }), Object.defineProperty(this, \"appearanceState\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return e.substr(1, e.length - 1);\n    },\n    set: function (t) {\n      e = \"/\" + t;\n    }\n  });\n};\nH(mt, lt);\nvar vt = function () {\n  mt.call(this), this.pushButton = !0;\n};\nH(vt, mt);\nvar bt = function () {\n  mt.call(this), this.radio = !0, this.pushButton = !1;\n  var t = [];\n  Object.defineProperty(this, \"Kids\", {\n    enumerable: !0,\n    configurable: !1,\n    get: function () {\n      return t;\n    },\n    set: function (e) {\n      t = void 0 !== e ? e : [];\n    }\n  });\n};\nH(bt, mt);\nvar yt = function () {\n  var e, r;\n  lt.call(this), Object.defineProperty(this, \"Parent\", {\n    enumerable: !1,\n    configurable: !1,\n    get: function () {\n      return e;\n    },\n    set: function (t) {\n      e = t;\n    }\n  }), Object.defineProperty(this, \"optionName\", {\n    enumerable: !1,\n    configurable: !0,\n    get: function () {\n      return r;\n    },\n    set: function (t) {\n      r = t;\n    }\n  });\n  var n,\n    i = {};\n  Object.defineProperty(this, \"MK\", {\n    enumerable: !1,\n    configurable: !1,\n    get: function () {\n      var t = function (t) {\n        return t;\n      };\n      this.scope && (t = this.scope.internal.getEncryptor(this.objId));\n      var e,\n        r = [];\n      for (e in r.push(\"<<\"), i) r.push(\"/\" + e + \" (\" + R(t(i[e])) + \")\");\n      return r.push(\">>\"), r.join(\"\\n\");\n    },\n    set: function (e) {\n      \"object\" === t(e) && (i = e);\n    }\n  }), Object.defineProperty(this, \"caption\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return i.CA || \"\";\n    },\n    set: function (t) {\n      \"string\" == typeof t && (i.CA = t);\n    }\n  }), Object.defineProperty(this, \"AS\", {\n    enumerable: !1,\n    configurable: !1,\n    get: function () {\n      return n;\n    },\n    set: function (t) {\n      n = t;\n    }\n  }), Object.defineProperty(this, \"appearanceState\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return n.substr(1, n.length - 1);\n    },\n    set: function (t) {\n      n = \"/\" + t;\n    }\n  }), this.caption = \"l\", this.appearanceState = \"Off\", this._AppearanceType = At.RadioButton.Circle, this.appearanceStreamContent = this._AppearanceType.createAppearanceStream(this.optionName);\n};\nH(yt, lt), bt.prototype.setAppearance = function (t) {\n  if (!(\"createAppearanceStream\" in t) || !(\"getCA\" in t)) throw new Error(\"Couldn't assign Appearance to RadioButton. Appearance was Invalid!\");\n  for (var e in this.Kids) if (this.Kids.hasOwnProperty(e)) {\n    var r = this.Kids[e];\n    r.appearanceStreamContent = t.createAppearanceStream(r.optionName), r.caption = t.getCA();\n  }\n}, bt.prototype.createOption = function (t) {\n  var e = new yt();\n  return e.Parent = this, e.optionName = t, this.Kids.push(e), xt.call(this.scope, e), e;\n};\nvar wt = function () {\n  mt.call(this), this.fontName = \"zapfdingbats\", this.caption = \"3\", this.appearanceState = \"On\", this.value = \"On\", this.textAlign = \"center\", this.appearanceStreamContent = At.CheckBox.createAppearanceStream();\n};\nH(wt, mt);\nvar Nt = function () {\n  lt.call(this), this.FT = \"/Tx\", Object.defineProperty(this, \"multiline\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 13));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 13) : this.Ff = Z(this.Ff, 13);\n    }\n  }), Object.defineProperty(this, \"fileSelect\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 21));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 21) : this.Ff = Z(this.Ff, 21);\n    }\n  }), Object.defineProperty(this, \"doNotSpellCheck\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 23));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 23) : this.Ff = Z(this.Ff, 23);\n    }\n  }), Object.defineProperty(this, \"doNotScroll\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 24));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 24) : this.Ff = Z(this.Ff, 24);\n    }\n  }), Object.defineProperty(this, \"comb\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 25));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 25) : this.Ff = Z(this.Ff, 25);\n    }\n  }), Object.defineProperty(this, \"richText\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 26));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 26) : this.Ff = Z(this.Ff, 26);\n    }\n  });\n  var t = null;\n  Object.defineProperty(this, \"MaxLen\", {\n    enumerable: !0,\n    configurable: !1,\n    get: function () {\n      return t;\n    },\n    set: function (e) {\n      t = e;\n    }\n  }), Object.defineProperty(this, \"maxLength\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return t;\n    },\n    set: function (e) {\n      Number.isInteger(e) && (t = e);\n    }\n  }), Object.defineProperty(this, \"hasAppearanceStream\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return this.V || this.DV;\n    }\n  });\n};\nH(Nt, lt);\nvar Lt = function () {\n  Nt.call(this), Object.defineProperty(this, \"password\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 14));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 14) : this.Ff = Z(this.Ff, 14);\n    }\n  }), this.password = !0;\n};\nH(Lt, Nt);\nvar At = {\n  CheckBox: {\n    createAppearanceStream: function () {\n      return {\n        N: {\n          On: At.CheckBox.YesNormal\n        },\n        D: {\n          On: At.CheckBox.YesPushDown,\n          Off: At.CheckBox.OffPushDown\n        }\n      };\n    },\n    YesPushDown: function (t) {\n      var e = V(t);\n      e.scope = t.scope;\n      var r = [],\n        n = t.scope.internal.getFont(t.fontName, t.fontStyle).id,\n        i = t.scope.__private__.encodeColorString(t.color),\n        a = tt(t, t.caption);\n      return r.push(\"0.749023 g\"), r.push(\"0 0 \" + U(At.internal.getWidth(t)) + \" \" + U(At.internal.getHeight(t)) + \" re\"), r.push(\"f\"), r.push(\"BMC\"), r.push(\"q\"), r.push(\"0 0 1 rg\"), r.push(\"/\" + n + \" \" + U(a.fontSize) + \" Tf \" + i), r.push(\"BT\"), r.push(a.text), r.push(\"ET\"), r.push(\"Q\"), r.push(\"EMC\"), e.stream = r.join(\"\\n\"), e;\n    },\n    YesNormal: function (t) {\n      var e = V(t);\n      e.scope = t.scope;\n      var r = t.scope.internal.getFont(t.fontName, t.fontStyle).id,\n        n = t.scope.__private__.encodeColorString(t.color),\n        i = [],\n        a = At.internal.getHeight(t),\n        o = At.internal.getWidth(t),\n        s = tt(t, t.caption);\n      return i.push(\"1 g\"), i.push(\"0 0 \" + U(o) + \" \" + U(a) + \" re\"), i.push(\"f\"), i.push(\"q\"), i.push(\"0 0 1 rg\"), i.push(\"0 0 \" + U(o - 1) + \" \" + U(a - 1) + \" re\"), i.push(\"W\"), i.push(\"n\"), i.push(\"0 g\"), i.push(\"BT\"), i.push(\"/\" + r + \" \" + U(s.fontSize) + \" Tf \" + n), i.push(s.text), i.push(\"ET\"), i.push(\"Q\"), e.stream = i.join(\"\\n\"), e;\n    },\n    OffPushDown: function (t) {\n      var e = V(t);\n      e.scope = t.scope;\n      var r = [];\n      return r.push(\"0.749023 g\"), r.push(\"0 0 \" + U(At.internal.getWidth(t)) + \" \" + U(At.internal.getHeight(t)) + \" re\"), r.push(\"f\"), e.stream = r.join(\"\\n\"), e;\n    }\n  },\n  RadioButton: {\n    Circle: {\n      createAppearanceStream: function (t) {\n        var e = {\n          D: {\n            Off: At.RadioButton.Circle.OffPushDown\n          },\n          N: {}\n        };\n        return e.N[t] = At.RadioButton.Circle.YesNormal, e.D[t] = At.RadioButton.Circle.YesPushDown, e;\n      },\n      getCA: function () {\n        return \"l\";\n      },\n      YesNormal: function (t) {\n        var e = V(t);\n        e.scope = t.scope;\n        var r = [],\n          n = At.internal.getWidth(t) <= At.internal.getHeight(t) ? At.internal.getWidth(t) / 4 : At.internal.getHeight(t) / 4;\n        n = Number((.9 * n).toFixed(5));\n        var i = At.internal.Bezier_C,\n          a = Number((n * i).toFixed(5));\n        return r.push(\"q\"), r.push(\"1 0 0 1 \" + z(At.internal.getWidth(t) / 2) + \" \" + z(At.internal.getHeight(t) / 2) + \" cm\"), r.push(n + \" 0 m\"), r.push(n + \" \" + a + \" \" + a + \" \" + n + \" 0 \" + n + \" c\"), r.push(\"-\" + a + \" \" + n + \" -\" + n + \" \" + a + \" -\" + n + \" 0 c\"), r.push(\"-\" + n + \" -\" + a + \" -\" + a + \" -\" + n + \" 0 -\" + n + \" c\"), r.push(a + \" -\" + n + \" \" + n + \" -\" + a + \" \" + n + \" 0 c\"), r.push(\"f\"), r.push(\"Q\"), e.stream = r.join(\"\\n\"), e;\n      },\n      YesPushDown: function (t) {\n        var e = V(t);\n        e.scope = t.scope;\n        var r = [],\n          n = At.internal.getWidth(t) <= At.internal.getHeight(t) ? At.internal.getWidth(t) / 4 : At.internal.getHeight(t) / 4;\n        n = Number((.9 * n).toFixed(5));\n        var i = Number((2 * n).toFixed(5)),\n          a = Number((i * At.internal.Bezier_C).toFixed(5)),\n          o = Number((n * At.internal.Bezier_C).toFixed(5));\n        return r.push(\"0.749023 g\"), r.push(\"q\"), r.push(\"1 0 0 1 \" + z(At.internal.getWidth(t) / 2) + \" \" + z(At.internal.getHeight(t) / 2) + \" cm\"), r.push(i + \" 0 m\"), r.push(i + \" \" + a + \" \" + a + \" \" + i + \" 0 \" + i + \" c\"), r.push(\"-\" + a + \" \" + i + \" -\" + i + \" \" + a + \" -\" + i + \" 0 c\"), r.push(\"-\" + i + \" -\" + a + \" -\" + a + \" -\" + i + \" 0 -\" + i + \" c\"), r.push(a + \" -\" + i + \" \" + i + \" -\" + a + \" \" + i + \" 0 c\"), r.push(\"f\"), r.push(\"Q\"), r.push(\"0 g\"), r.push(\"q\"), r.push(\"1 0 0 1 \" + z(At.internal.getWidth(t) / 2) + \" \" + z(At.internal.getHeight(t) / 2) + \" cm\"), r.push(n + \" 0 m\"), r.push(n + \" \" + o + \" \" + o + \" \" + n + \" 0 \" + n + \" c\"), r.push(\"-\" + o + \" \" + n + \" -\" + n + \" \" + o + \" -\" + n + \" 0 c\"), r.push(\"-\" + n + \" -\" + o + \" -\" + o + \" -\" + n + \" 0 -\" + n + \" c\"), r.push(o + \" -\" + n + \" \" + n + \" -\" + o + \" \" + n + \" 0 c\"), r.push(\"f\"), r.push(\"Q\"), e.stream = r.join(\"\\n\"), e;\n      },\n      OffPushDown: function (t) {\n        var e = V(t);\n        e.scope = t.scope;\n        var r = [],\n          n = At.internal.getWidth(t) <= At.internal.getHeight(t) ? At.internal.getWidth(t) / 4 : At.internal.getHeight(t) / 4;\n        n = Number((.9 * n).toFixed(5));\n        var i = Number((2 * n).toFixed(5)),\n          a = Number((i * At.internal.Bezier_C).toFixed(5));\n        return r.push(\"0.749023 g\"), r.push(\"q\"), r.push(\"1 0 0 1 \" + z(At.internal.getWidth(t) / 2) + \" \" + z(At.internal.getHeight(t) / 2) + \" cm\"), r.push(i + \" 0 m\"), r.push(i + \" \" + a + \" \" + a + \" \" + i + \" 0 \" + i + \" c\"), r.push(\"-\" + a + \" \" + i + \" -\" + i + \" \" + a + \" -\" + i + \" 0 c\"), r.push(\"-\" + i + \" -\" + a + \" -\" + a + \" -\" + i + \" 0 -\" + i + \" c\"), r.push(a + \" -\" + i + \" \" + i + \" -\" + a + \" \" + i + \" 0 c\"), r.push(\"f\"), r.push(\"Q\"), e.stream = r.join(\"\\n\"), e;\n      }\n    },\n    Cross: {\n      createAppearanceStream: function (t) {\n        var e = {\n          D: {\n            Off: At.RadioButton.Cross.OffPushDown\n          },\n          N: {}\n        };\n        return e.N[t] = At.RadioButton.Cross.YesNormal, e.D[t] = At.RadioButton.Cross.YesPushDown, e;\n      },\n      getCA: function () {\n        return \"8\";\n      },\n      YesNormal: function (t) {\n        var e = V(t);\n        e.scope = t.scope;\n        var r = [],\n          n = At.internal.calculateCross(t);\n        return r.push(\"q\"), r.push(\"1 1 \" + U(At.internal.getWidth(t) - 2) + \" \" + U(At.internal.getHeight(t) - 2) + \" re\"), r.push(\"W\"), r.push(\"n\"), r.push(U(n.x1.x) + \" \" + U(n.x1.y) + \" m\"), r.push(U(n.x2.x) + \" \" + U(n.x2.y) + \" l\"), r.push(U(n.x4.x) + \" \" + U(n.x4.y) + \" m\"), r.push(U(n.x3.x) + \" \" + U(n.x3.y) + \" l\"), r.push(\"s\"), r.push(\"Q\"), e.stream = r.join(\"\\n\"), e;\n      },\n      YesPushDown: function (t) {\n        var e = V(t);\n        e.scope = t.scope;\n        var r = At.internal.calculateCross(t),\n          n = [];\n        return n.push(\"0.749023 g\"), n.push(\"0 0 \" + U(At.internal.getWidth(t)) + \" \" + U(At.internal.getHeight(t)) + \" re\"), n.push(\"f\"), n.push(\"q\"), n.push(\"1 1 \" + U(At.internal.getWidth(t) - 2) + \" \" + U(At.internal.getHeight(t) - 2) + \" re\"), n.push(\"W\"), n.push(\"n\"), n.push(U(r.x1.x) + \" \" + U(r.x1.y) + \" m\"), n.push(U(r.x2.x) + \" \" + U(r.x2.y) + \" l\"), n.push(U(r.x4.x) + \" \" + U(r.x4.y) + \" m\"), n.push(U(r.x3.x) + \" \" + U(r.x3.y) + \" l\"), n.push(\"s\"), n.push(\"Q\"), e.stream = n.join(\"\\n\"), e;\n      },\n      OffPushDown: function (t) {\n        var e = V(t);\n        e.scope = t.scope;\n        var r = [];\n        return r.push(\"0.749023 g\"), r.push(\"0 0 \" + U(At.internal.getWidth(t)) + \" \" + U(At.internal.getHeight(t)) + \" re\"), r.push(\"f\"), e.stream = r.join(\"\\n\"), e;\n      }\n    }\n  },\n  createDefaultAppearanceStream: function (t) {\n    var e = t.scope.internal.getFont(t.fontName, t.fontStyle).id,\n      r = t.scope.__private__.encodeColorString(t.color);\n    return \"/\" + e + \" \" + t.fontSize + \" Tf \" + r;\n  }\n};\nAt.internal = {\n  Bezier_C: .551915024494,\n  calculateCross: function (t) {\n    var e = At.internal.getWidth(t),\n      r = At.internal.getHeight(t),\n      n = Math.min(e, r);\n    return {\n      x1: {\n        x: (e - n) / 2,\n        y: (r - n) / 2 + n\n      },\n      x2: {\n        x: (e - n) / 2 + n,\n        y: (r - n) / 2\n      },\n      x3: {\n        x: (e - n) / 2,\n        y: (r - n) / 2\n      },\n      x4: {\n        x: (e - n) / 2 + n,\n        y: (r - n) / 2 + n\n      }\n    };\n  }\n}, At.internal.getWidth = function (e) {\n  var r = 0;\n  return \"object\" === t(e) && (r = W(e.Rect[2])), r;\n}, At.internal.getHeight = function (e) {\n  var r = 0;\n  return \"object\" === t(e) && (r = W(e.Rect[3])), r;\n};\nvar xt = q.addField = function (t) {\n  if (at(this, t), !(t instanceof lt)) throw new Error(\"Invalid argument passed to jsPDF.addField.\");\n  var e;\n  return (e = t).scope.internal.acroformPlugin.printedOut && (e.scope.internal.acroformPlugin.printedOut = !1, e.scope.internal.acroformPlugin.acroFormDictionaryRoot = null), e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e), t.page = t.scope.internal.getCurrentPageInfo().pageNumber, this;\n};\nq.AcroFormChoiceField = ft, q.AcroFormListBox = dt, q.AcroFormComboBox = pt, q.AcroFormEditBox = gt, q.AcroFormButton = mt, q.AcroFormPushButton = vt, q.AcroFormRadioButton = bt, q.AcroFormCheckBox = wt, q.AcroFormTextField = Nt, q.AcroFormPasswordField = Lt, q.AcroFormAppearance = At, q.AcroForm = {\n  ChoiceField: ft,\n  ListBox: dt,\n  ComboBox: pt,\n  EditBox: gt,\n  Button: mt,\n  PushButton: vt,\n  RadioButton: bt,\n  CheckBox: wt,\n  TextField: Nt,\n  PasswordField: Lt,\n  Appearance: At\n}, E.AcroForm = {\n  ChoiceField: ft,\n  ListBox: dt,\n  ComboBox: pt,\n  EditBox: gt,\n  Button: mt,\n  PushButton: vt,\n  RadioButton: bt,\n  CheckBox: wt,\n  TextField: Nt,\n  PasswordField: Lt,\n  Appearance: At\n};\nvar St = E.AcroForm;\nfunction _t(t) {\n  return t.reduce(function (t, e, r) {\n    return t[e] = r, t;\n  }, {});\n}\n!function (e) {\n  e.__addimage__ = {};\n  var r = \"UNKNOWN\",\n    n = {\n      PNG: [[137, 80, 78, 71]],\n      TIFF: [[77, 77, 0, 42], [73, 73, 42, 0]],\n      JPEG: [[255, 216, 255, 224, void 0, void 0, 74, 70, 73, 70, 0], [255, 216, 255, 225, void 0, void 0, 69, 120, 105, 102, 0, 0], [255, 216, 255, 219], [255, 216, 255, 238]],\n      JPEG2000: [[0, 0, 0, 12, 106, 80, 32, 32]],\n      GIF87a: [[71, 73, 70, 56, 55, 97]],\n      GIF89a: [[71, 73, 70, 56, 57, 97]],\n      WEBP: [[82, 73, 70, 70, void 0, void 0, void 0, void 0, 87, 69, 66, 80]],\n      BMP: [[66, 77], [66, 65], [67, 73], [67, 80], [73, 67], [80, 84]]\n    },\n    i = e.__addimage__.getImageFileTypeByImageData = function (t, e) {\n      var i,\n        a,\n        o,\n        s,\n        c,\n        u = r;\n      if (\"RGBA\" === (e = e || r) || void 0 !== t.data && t.data instanceof Uint8ClampedArray && \"height\" in t && \"width\" in t) return \"RGBA\";\n      if (x(t)) for (c in n) for (o = n[c], i = 0; i < o.length; i += 1) {\n        for (s = !0, a = 0; a < o[i].length; a += 1) if (void 0 !== o[i][a] && o[i][a] !== t[a]) {\n          s = !1;\n          break;\n        }\n        if (!0 === s) {\n          u = c;\n          break;\n        }\n      } else for (c in n) for (o = n[c], i = 0; i < o.length; i += 1) {\n        for (s = !0, a = 0; a < o[i].length; a += 1) if (void 0 !== o[i][a] && o[i][a] !== t.charCodeAt(a)) {\n          s = !1;\n          break;\n        }\n        if (!0 === s) {\n          u = c;\n          break;\n        }\n      }\n      return u === r && e !== r && (u = e), u;\n    },\n    a = function t(e) {\n      for (var r = this.internal.write, n = this.internal.putStream, i = (0, this.internal.getFilters)(); -1 !== i.indexOf(\"FlateEncode\");) i.splice(i.indexOf(\"FlateEncode\"), 1);\n      e.objectId = this.internal.newObject();\n      var a = [];\n      if (a.push({\n        key: \"Type\",\n        value: \"/XObject\"\n      }), a.push({\n        key: \"Subtype\",\n        value: \"/Image\"\n      }), a.push({\n        key: \"Width\",\n        value: e.width\n      }), a.push({\n        key: \"Height\",\n        value: e.height\n      }), e.colorSpace === b.INDEXED ? a.push({\n        key: \"ColorSpace\",\n        value: \"[/Indexed /DeviceRGB \" + (e.palette.length / 3 - 1) + \" \" + (\"sMask\" in e && void 0 !== e.sMask ? e.objectId + 2 : e.objectId + 1) + \" 0 R]\"\n      }) : (a.push({\n        key: \"ColorSpace\",\n        value: \"/\" + e.colorSpace\n      }), e.colorSpace === b.DEVICE_CMYK && a.push({\n        key: \"Decode\",\n        value: \"[1 0 1 0 1 0 1 0]\"\n      })), a.push({\n        key: \"BitsPerComponent\",\n        value: e.bitsPerComponent\n      }), \"decodeParameters\" in e && void 0 !== e.decodeParameters && a.push({\n        key: \"DecodeParms\",\n        value: \"<<\" + e.decodeParameters + \">>\"\n      }), \"transparency\" in e && Array.isArray(e.transparency)) {\n        for (var o = \"\", s = 0, c = e.transparency.length; s < c; s++) o += e.transparency[s] + \" \" + e.transparency[s] + \" \";\n        a.push({\n          key: \"Mask\",\n          value: \"[\" + o + \"]\"\n        });\n      }\n      void 0 !== e.sMask && a.push({\n        key: \"SMask\",\n        value: e.objectId + 1 + \" 0 R\"\n      });\n      var u = void 0 !== e.filter ? [\"/\" + e.filter] : void 0;\n      if (n({\n        data: e.data,\n        additionalKeyValues: a,\n        alreadyAppliedFilters: u,\n        objectId: e.objectId\n      }), r(\"endobj\"), \"sMask\" in e && void 0 !== e.sMask) {\n        var h = \"/Predictor \" + e.predictor + \" /Colors 1 /BitsPerComponent \" + e.bitsPerComponent + \" /Columns \" + e.width,\n          l = {\n            width: e.width,\n            height: e.height,\n            colorSpace: \"DeviceGray\",\n            bitsPerComponent: e.bitsPerComponent,\n            decodeParameters: h,\n            data: e.sMask\n          };\n        \"filter\" in e && (l.filter = e.filter), t.call(this, l);\n      }\n      if (e.colorSpace === b.INDEXED) {\n        var f = this.internal.newObject();\n        n({\n          data: _(new Uint8Array(e.palette)),\n          objectId: f\n        }), r(\"endobj\");\n      }\n    },\n    o = function () {\n      var t = this.internal.collections.addImage_images;\n      for (var e in t) a.call(this, t[e]);\n    },\n    s = function () {\n      var t,\n        e = this.internal.collections.addImage_images,\n        r = this.internal.write;\n      for (var n in e) r(\"/I\" + (t = e[n]).index, t.objectId, \"0\", \"R\");\n    },\n    c = function () {\n      this.internal.collections.addImage_images || (this.internal.collections.addImage_images = {}, this.internal.events.subscribe(\"putResources\", o), this.internal.events.subscribe(\"putXobjectDict\", s));\n    },\n    h = function () {\n      var t = this.internal.collections.addImage_images;\n      return c.call(this), t;\n    },\n    l = function () {\n      return Object.keys(this.internal.collections.addImage_images).length;\n    },\n    f = function (t) {\n      return \"function\" == typeof e[\"process\" + t.toUpperCase()];\n    },\n    d = function (e) {\n      return \"object\" === t(e) && 1 === e.nodeType;\n    },\n    p = function (t, r) {\n      if (\"IMG\" === t.nodeName && t.hasAttribute(\"src\")) {\n        var n = \"\" + t.getAttribute(\"src\");\n        if (0 === n.indexOf(\"data:image/\")) return u(unescape(n).split(\"base64,\").pop());\n        var i = e.loadFile(n, !0);\n        if (void 0 !== i) return i;\n      }\n      if (\"CANVAS\" === t.nodeName) {\n        if (0 === t.width || 0 === t.height) throw new Error(\"Given canvas must have data. Canvas width: \" + t.width + \", height: \" + t.height);\n        var a;\n        switch (r) {\n          case \"PNG\":\n            a = \"image/png\";\n            break;\n          case \"WEBP\":\n            a = \"image/webp\";\n            break;\n          case \"JPEG\":\n          case \"JPG\":\n          default:\n            a = \"image/jpeg\";\n        }\n        return u(t.toDataURL(a, 1).split(\"base64,\").pop());\n      }\n    },\n    g = function (t) {\n      var e = this.internal.collections.addImage_images;\n      if (e) for (var r in e) if (t === e[r].alias) return e[r];\n    },\n    m = function (t, e, r) {\n      return t || e || (t = -96, e = -96), t < 0 && (t = -1 * r.width * 72 / t / this.internal.scaleFactor), e < 0 && (e = -1 * r.height * 72 / e / this.internal.scaleFactor), 0 === t && (t = e * r.width / r.height), 0 === e && (e = t * r.height / r.width), [t, e];\n    },\n    v = function (t, e, r, n, i, a) {\n      var o = m.call(this, r, n, i),\n        s = this.internal.getCoordinateString,\n        c = this.internal.getVerticalCoordinateString,\n        u = h.call(this);\n      if (r = o[0], n = o[1], u[i.index] = i, a) {\n        a *= Math.PI / 180;\n        var l = Math.cos(a),\n          f = Math.sin(a),\n          d = function (t) {\n            return t.toFixed(4);\n          },\n          p = [d(l), d(f), d(-1 * f), d(l), 0, 0, \"cm\"];\n      }\n      this.internal.write(\"q\"), a ? (this.internal.write([1, \"0\", \"0\", 1, s(t), c(e + n), \"cm\"].join(\" \")), this.internal.write(p.join(\" \")), this.internal.write([s(r), \"0\", \"0\", s(n), \"0\", \"0\", \"cm\"].join(\" \"))) : this.internal.write([s(r), \"0\", \"0\", s(n), s(t), c(e + n), \"cm\"].join(\" \")), this.isAdvancedAPI() && this.internal.write([1, 0, 0, -1, 0, 0, \"cm\"].join(\" \")), this.internal.write(\"/I\" + i.index + \" Do\"), this.internal.write(\"Q\");\n    },\n    b = e.color_spaces = {\n      DEVICE_RGB: \"DeviceRGB\",\n      DEVICE_GRAY: \"DeviceGray\",\n      DEVICE_CMYK: \"DeviceCMYK\",\n      CAL_GREY: \"CalGray\",\n      CAL_RGB: \"CalRGB\",\n      LAB: \"Lab\",\n      ICC_BASED: \"ICCBased\",\n      INDEXED: \"Indexed\",\n      PATTERN: \"Pattern\",\n      SEPARATION: \"Separation\",\n      DEVICE_N: \"DeviceN\"\n    };\n  e.decode = {\n    DCT_DECODE: \"DCTDecode\",\n    FLATE_DECODE: \"FlateDecode\",\n    LZW_DECODE: \"LZWDecode\",\n    JPX_DECODE: \"JPXDecode\",\n    JBIG2_DECODE: \"JBIG2Decode\",\n    ASCII85_DECODE: \"ASCII85Decode\",\n    ASCII_HEX_DECODE: \"ASCIIHexDecode\",\n    RUN_LENGTH_DECODE: \"RunLengthDecode\",\n    CCITT_FAX_DECODE: \"CCITTFaxDecode\"\n  };\n  var y = e.image_compression = {\n      NONE: \"NONE\",\n      FAST: \"FAST\",\n      MEDIUM: \"MEDIUM\",\n      SLOW: \"SLOW\"\n    },\n    w = e.__addimage__.sHashCode = function (t) {\n      var e,\n        r,\n        n = 0;\n      if (\"string\" == typeof t) for (r = t.length, e = 0; e < r; e++) n = (n << 5) - n + t.charCodeAt(e), n |= 0;else if (x(t)) for (r = t.byteLength / 2, e = 0; e < r; e++) n = (n << 5) - n + t[e], n |= 0;\n      return n;\n    },\n    N = e.__addimage__.validateStringAsBase64 = function (t) {\n      (t = t || \"\").toString().trim();\n      var e = !0;\n      return 0 === t.length && (e = !1), t.length % 4 != 0 && (e = !1), !1 === /^[A-Za-z0-9+/]+$/.test(t.substr(0, t.length - 2)) && (e = !1), !1 === /^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(t.substr(-2)) && (e = !1), e;\n    },\n    L = e.__addimage__.extractImageFromDataUrl = function (t) {\n      var e = (t = t || \"\").split(\"base64,\"),\n        r = null;\n      if (2 === e.length) {\n        var n = /^data:(\\w*\\/\\w*);*(charset=(?!charset=)[\\w=-]*)*;*$/.exec(e[0]);\n        Array.isArray(n) && (r = {\n          mimeType: n[1],\n          charset: n[2],\n          data: e[1]\n        });\n      }\n      return r;\n    },\n    A = e.__addimage__.supportsArrayBuffer = function () {\n      return \"undefined\" != typeof ArrayBuffer && \"undefined\" != typeof Uint8Array;\n    };\n  e.__addimage__.isArrayBuffer = function (t) {\n    return A() && t instanceof ArrayBuffer;\n  };\n  var x = e.__addimage__.isArrayBufferView = function (t) {\n      return A() && \"undefined\" != typeof Uint32Array && (t instanceof Int8Array || t instanceof Uint8Array || \"undefined\" != typeof Uint8ClampedArray && t instanceof Uint8ClampedArray || t instanceof Int16Array || t instanceof Uint16Array || t instanceof Int32Array || t instanceof Uint32Array || t instanceof Float32Array || t instanceof Float64Array);\n    },\n    S = e.__addimage__.binaryStringToUint8Array = function (t) {\n      for (var e = t.length, r = new Uint8Array(e), n = 0; n < e; n++) r[n] = t.charCodeAt(n);\n      return r;\n    },\n    _ = e.__addimage__.arrayBufferToBinaryString = function (t) {\n      for (var e = \"\", r = x(t) ? t : new Uint8Array(t), n = 0; n < r.length; n += 8192) e += String.fromCharCode.apply(null, r.subarray(n, n + 8192));\n      return e;\n    };\n  e.addImage = function () {\n    var e, n, i, a, o, s, u, h, l;\n    if (\"number\" == typeof arguments[1] ? (n = r, i = arguments[1], a = arguments[2], o = arguments[3], s = arguments[4], u = arguments[5], h = arguments[6], l = arguments[7]) : (n = arguments[1], i = arguments[2], a = arguments[3], o = arguments[4], s = arguments[5], u = arguments[6], h = arguments[7], l = arguments[8]), \"object\" === t(e = arguments[0]) && !d(e) && \"imageData\" in e) {\n      var f = e;\n      e = f.imageData, n = f.format || n || r, i = f.x || i || 0, a = f.y || a || 0, o = f.w || f.width || o, s = f.h || f.height || s, u = f.alias || u, h = f.compression || h, l = f.rotation || f.angle || l;\n    }\n    var p = this.internal.getFilters();\n    if (void 0 === h && -1 !== p.indexOf(\"FlateEncode\") && (h = \"SLOW\"), isNaN(i) || isNaN(a)) throw new Error(\"Invalid coordinates passed to jsPDF.addImage\");\n    c.call(this);\n    var g = P.call(this, e, n, u, h);\n    return v.call(this, i, a, o, s, g, l), this;\n  };\n  var P = function (t, n, a, o) {\n      var s, c, u;\n      if (\"string\" == typeof t && i(t) === r) {\n        t = unescape(t);\n        var h = k(t, !1);\n        (\"\" !== h || void 0 !== (h = e.loadFile(t, !0))) && (t = h);\n      }\n      if (d(t) && (t = p(t, n)), n = i(t, n), !f(n)) throw new Error(\"addImage does not support files of type '\" + n + \"', please ensure that a plugin for '\" + n + \"' support is added.\");\n      if ((null == (u = a) || 0 === u.length) && (a = function (t) {\n        return \"string\" == typeof t || x(t) ? w(t) : x(t.data) ? w(t.data) : null;\n      }(t)), (s = g.call(this, a)) || (A() && (t instanceof Uint8Array || \"RGBA\" === n || (c = t, t = S(t))), s = this[\"process\" + n.toUpperCase()](t, l.call(this), a, function (t) {\n        return t && \"string\" == typeof t && (t = t.toUpperCase()), t in e.image_compression ? t : y.NONE;\n      }(o), c)), !s) throw new Error(\"An unknown error occurred whilst processing the image.\");\n      return s;\n    },\n    k = e.__addimage__.convertBase64ToBinaryString = function (t, e) {\n      var r;\n      e = \"boolean\" != typeof e || e;\n      var n,\n        i = \"\";\n      if (\"string\" == typeof t) {\n        n = null !== (r = L(t)) ? r.data : t;\n        try {\n          i = u(n);\n        } catch (t) {\n          if (e) throw N(n) ? new Error(\"atob-Error in jsPDF.convertBase64ToBinaryString \" + t.message) : new Error(\"Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString \");\n        }\n      }\n      return i;\n    };\n  e.getImageProperties = function (t) {\n    var n,\n      a,\n      o = \"\";\n    if (d(t) && (t = p(t)), \"string\" == typeof t && i(t) === r && (\"\" === (o = k(t, !1)) && (o = e.loadFile(t) || \"\"), t = o), a = i(t), !f(a)) throw new Error(\"addImage does not support files of type '\" + a + \"', please ensure that a plugin for '\" + a + \"' support is added.\");\n    if (!A() || t instanceof Uint8Array || (t = S(t)), !(n = this[\"process\" + a.toUpperCase()](t))) throw new Error(\"An unknown error occurred whilst processing the image\");\n    return n.fileType = a, n;\n  };\n}(E.API),\n/**\n * @license\n * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv\n *\n * Licensed under the MIT License.\n * http://opensource.org/licenses/mit-license\n */\nfunction (t) {\n  var e = function (t) {\n    if (void 0 !== t && \"\" != t) return !0;\n  };\n  E.API.events.push([\"addPage\", function (t) {\n    this.internal.getPageInfo(t.pageNumber).pageContext.annotations = [];\n  }]), t.events.push([\"putPage\", function (t) {\n    for (var r, n, i, a = this.internal.getCoordinateString, o = this.internal.getVerticalCoordinateString, s = this.internal.getPageInfoByObjId(t.objId), c = t.pageContext.annotations, u = !1, h = 0; h < c.length && !u; h++) switch ((r = c[h]).type) {\n      case \"link\":\n        (e(r.options.url) || e(r.options.pageNumber)) && (u = !0);\n        break;\n      case \"reference\":\n      case \"text\":\n      case \"freetext\":\n        u = !0;\n    }\n    if (0 != u) {\n      this.internal.write(\"/Annots [\");\n      for (var l = 0; l < c.length; l++) {\n        r = c[l];\n        var f = this.internal.pdfEscape,\n          d = this.internal.getEncryptor(t.objId);\n        switch (r.type) {\n          case \"reference\":\n            this.internal.write(\" \" + r.object.objId + \" 0 R \");\n            break;\n          case \"text\":\n            var p = this.internal.newAdditionalObject(),\n              g = this.internal.newAdditionalObject(),\n              m = this.internal.getEncryptor(p.objId),\n              v = r.title || \"Note\";\n            i = \"<</Type /Annot /Subtype /Text \" + (n = \"/Rect [\" + a(r.bounds.x) + \" \" + o(r.bounds.y + r.bounds.h) + \" \" + a(r.bounds.x + r.bounds.w) + \" \" + o(r.bounds.y) + \"] \") + \"/Contents (\" + f(m(r.contents)) + \")\", i += \" /Popup \" + g.objId + \" 0 R\", i += \" /P \" + s.objId + \" 0 R\", i += \" /T (\" + f(m(v)) + \") >>\", p.content = i;\n            var b = p.objId + \" 0 R\";\n            i = \"<</Type /Annot /Subtype /Popup \" + (n = \"/Rect [\" + a(r.bounds.x + 30) + \" \" + o(r.bounds.y + r.bounds.h) + \" \" + a(r.bounds.x + r.bounds.w + 30) + \" \" + o(r.bounds.y) + \"] \") + \" /Parent \" + b, r.open && (i += \" /Open true\"), i += \" >>\", g.content = i, this.internal.write(p.objId, \"0 R\", g.objId, \"0 R\");\n            break;\n          case \"freetext\":\n            n = \"/Rect [\" + a(r.bounds.x) + \" \" + o(r.bounds.y) + \" \" + a(r.bounds.x + r.bounds.w) + \" \" + o(r.bounds.y + r.bounds.h) + \"] \";\n            var y = r.color || \"#000000\";\n            i = \"<</Type /Annot /Subtype /FreeText \" + n + \"/Contents (\" + f(d(r.contents)) + \")\", i += \" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#\" + y + \")\", i += \" /Border [0 0 0]\", i += \" >>\", this.internal.write(i);\n            break;\n          case \"link\":\n            if (r.options.name) {\n              var w = this.annotations._nameMap[r.options.name];\n              r.options.pageNumber = w.page, r.options.top = w.y;\n            } else r.options.top || (r.options.top = 0);\n            if (n = \"/Rect [\" + r.finalBounds.x + \" \" + r.finalBounds.y + \" \" + r.finalBounds.w + \" \" + r.finalBounds.h + \"] \", i = \"\", r.options.url) i = \"<</Type /Annot /Subtype /Link \" + n + \"/Border [0 0 0] /A <</S /URI /URI (\" + f(d(r.options.url)) + \") >>\";else if (r.options.pageNumber) {\n              switch (i = \"<</Type /Annot /Subtype /Link \" + n + \"/Border [0 0 0] /Dest [\" + this.internal.getPageInfo(r.options.pageNumber).objId + \" 0 R\", r.options.magFactor = r.options.magFactor || \"XYZ\", r.options.magFactor) {\n                case \"Fit\":\n                  i += \" /Fit]\";\n                  break;\n                case \"FitH\":\n                  i += \" /FitH \" + r.options.top + \"]\";\n                  break;\n                case \"FitV\":\n                  r.options.left = r.options.left || 0, i += \" /FitV \" + r.options.left + \"]\";\n                  break;\n                case \"XYZ\":\n                default:\n                  var N = o(r.options.top);\n                  r.options.left = r.options.left || 0, void 0 === r.options.zoom && (r.options.zoom = 0), i += \" /XYZ \" + r.options.left + \" \" + N + \" \" + r.options.zoom + \"]\";\n              }\n            }\n            \"\" != i && (i += \" >>\", this.internal.write(i));\n        }\n      }\n      this.internal.write(\"]\");\n    }\n  }]), t.createAnnotation = function (t) {\n    var e = this.internal.getCurrentPageInfo();\n    switch (t.type) {\n      case \"link\":\n        this.link(t.bounds.x, t.bounds.y, t.bounds.w, t.bounds.h, t);\n        break;\n      case \"text\":\n      case \"freetext\":\n        e.pageContext.annotations.push(t);\n    }\n  }, t.link = function (t, e, r, n, i) {\n    var a = this.internal.getCurrentPageInfo(),\n      o = this.internal.getCoordinateString,\n      s = this.internal.getVerticalCoordinateString;\n    a.pageContext.annotations.push({\n      finalBounds: {\n        x: o(t),\n        y: s(e),\n        w: o(t + r),\n        h: s(e + n)\n      },\n      options: i,\n      type: \"link\"\n    });\n  }, t.textWithLink = function (t, e, r, n) {\n    var i,\n      a,\n      o = this.getTextWidth(t),\n      s = this.internal.getLineHeight() / this.internal.scaleFactor;\n    if (void 0 !== n.maxWidth) {\n      a = n.maxWidth;\n      var c = this.splitTextToSize(t, a).length;\n      i = Math.ceil(s * c);\n    } else a = o, i = s;\n    return this.text(t, e, r, n), r += .2 * s, \"center\" === n.align && (e -= o / 2), \"right\" === n.align && (e -= o), this.link(e, r - s, a, i, n), o;\n  }, t.getTextWidth = function (t) {\n    var e = this.internal.getFontSize();\n    return this.getStringUnitWidth(t) * e / this.internal.scaleFactor;\n  };\n}(E.API),\n/**\n * @license\n * Copyright (c) 2017 Aras Abbasi\n *\n * Licensed under the MIT License.\n * http://opensource.org/licenses/mit-license\n */\nfunction (t) {\n  var e = {\n      1569: [65152],\n      1570: [65153, 65154],\n      1571: [65155, 65156],\n      1572: [65157, 65158],\n      1573: [65159, 65160],\n      1574: [65161, 65162, 65163, 65164],\n      1575: [65165, 65166],\n      1576: [65167, 65168, 65169, 65170],\n      1577: [65171, 65172],\n      1578: [65173, 65174, 65175, 65176],\n      1579: [65177, 65178, 65179, 65180],\n      1580: [65181, 65182, 65183, 65184],\n      1581: [65185, 65186, 65187, 65188],\n      1582: [65189, 65190, 65191, 65192],\n      1583: [65193, 65194],\n      1584: [65195, 65196],\n      1585: [65197, 65198],\n      1586: [65199, 65200],\n      1587: [65201, 65202, 65203, 65204],\n      1588: [65205, 65206, 65207, 65208],\n      1589: [65209, 65210, 65211, 65212],\n      1590: [65213, 65214, 65215, 65216],\n      1591: [65217, 65218, 65219, 65220],\n      1592: [65221, 65222, 65223, 65224],\n      1593: [65225, 65226, 65227, 65228],\n      1594: [65229, 65230, 65231, 65232],\n      1601: [65233, 65234, 65235, 65236],\n      1602: [65237, 65238, 65239, 65240],\n      1603: [65241, 65242, 65243, 65244],\n      1604: [65245, 65246, 65247, 65248],\n      1605: [65249, 65250, 65251, 65252],\n      1606: [65253, 65254, 65255, 65256],\n      1607: [65257, 65258, 65259, 65260],\n      1608: [65261, 65262],\n      1609: [65263, 65264, 64488, 64489],\n      1610: [65265, 65266, 65267, 65268],\n      1649: [64336, 64337],\n      1655: [64477],\n      1657: [64358, 64359, 64360, 64361],\n      1658: [64350, 64351, 64352, 64353],\n      1659: [64338, 64339, 64340, 64341],\n      1662: [64342, 64343, 64344, 64345],\n      1663: [64354, 64355, 64356, 64357],\n      1664: [64346, 64347, 64348, 64349],\n      1667: [64374, 64375, 64376, 64377],\n      1668: [64370, 64371, 64372, 64373],\n      1670: [64378, 64379, 64380, 64381],\n      1671: [64382, 64383, 64384, 64385],\n      1672: [64392, 64393],\n      1676: [64388, 64389],\n      1677: [64386, 64387],\n      1678: [64390, 64391],\n      1681: [64396, 64397],\n      1688: [64394, 64395],\n      1700: [64362, 64363, 64364, 64365],\n      1702: [64366, 64367, 64368, 64369],\n      1705: [64398, 64399, 64400, 64401],\n      1709: [64467, 64468, 64469, 64470],\n      1711: [64402, 64403, 64404, 64405],\n      1713: [64410, 64411, 64412, 64413],\n      1715: [64406, 64407, 64408, 64409],\n      1722: [64414, 64415],\n      1723: [64416, 64417, 64418, 64419],\n      1726: [64426, 64427, 64428, 64429],\n      1728: [64420, 64421],\n      1729: [64422, 64423, 64424, 64425],\n      1733: [64480, 64481],\n      1734: [64473, 64474],\n      1735: [64471, 64472],\n      1736: [64475, 64476],\n      1737: [64482, 64483],\n      1739: [64478, 64479],\n      1740: [64508, 64509, 64510, 64511],\n      1744: [64484, 64485, 64486, 64487],\n      1746: [64430, 64431],\n      1747: [64432, 64433]\n    },\n    r = {\n      65247: {\n        65154: 65269,\n        65156: 65271,\n        65160: 65273,\n        65166: 65275\n      },\n      65248: {\n        65154: 65270,\n        65156: 65272,\n        65160: 65274,\n        65166: 65276\n      },\n      65165: {\n        65247: {\n          65248: {\n            65258: 65010\n          }\n        }\n      },\n      1617: {\n        1612: 64606,\n        1613: 64607,\n        1614: 64608,\n        1615: 64609,\n        1616: 64610\n      }\n    },\n    n = {\n      1612: 64606,\n      1613: 64607,\n      1614: 64608,\n      1615: 64609,\n      1616: 64610\n    },\n    i = [1570, 1571, 1573, 1575];\n  t.__arabicParser__ = {};\n  var a = t.__arabicParser__.isInArabicSubstitutionA = function (t) {\n      return void 0 !== e[t.charCodeAt(0)];\n    },\n    o = t.__arabicParser__.isArabicLetter = function (t) {\n      return \"string\" == typeof t && /^[\\u0600-\\u06FF\\u0750-\\u077F\\u08A0-\\u08FF\\uFB50-\\uFDFF\\uFE70-\\uFEFF]+$/.test(t);\n    },\n    s = t.__arabicParser__.isArabicEndLetter = function (t) {\n      return o(t) && a(t) && e[t.charCodeAt(0)].length <= 2;\n    },\n    c = t.__arabicParser__.isArabicAlfLetter = function (t) {\n      return o(t) && i.indexOf(t.charCodeAt(0)) >= 0;\n    };\n  t.__arabicParser__.arabicLetterHasIsolatedForm = function (t) {\n    return o(t) && a(t) && e[t.charCodeAt(0)].length >= 1;\n  };\n  var u = t.__arabicParser__.arabicLetterHasFinalForm = function (t) {\n    return o(t) && a(t) && e[t.charCodeAt(0)].length >= 2;\n  };\n  t.__arabicParser__.arabicLetterHasInitialForm = function (t) {\n    return o(t) && a(t) && e[t.charCodeAt(0)].length >= 3;\n  };\n  var h = t.__arabicParser__.arabicLetterHasMedialForm = function (t) {\n      return o(t) && a(t) && 4 == e[t.charCodeAt(0)].length;\n    },\n    l = t.__arabicParser__.resolveLigatures = function (t) {\n      var e = 0,\n        n = r,\n        i = \"\",\n        a = 0;\n      for (e = 0; e < t.length; e += 1) void 0 !== n[t.charCodeAt(e)] ? (a++, \"number\" == typeof (n = n[t.charCodeAt(e)]) && (i += String.fromCharCode(n), n = r, a = 0), e === t.length - 1 && (n = r, i += t.charAt(e - (a - 1)), e -= a - 1, a = 0)) : (n = r, i += t.charAt(e - a), e -= a, a = 0);\n      return i;\n    };\n  t.__arabicParser__.isArabicDiacritic = function (t) {\n    return void 0 !== t && void 0 !== n[t.charCodeAt(0)];\n  };\n  var f = t.__arabicParser__.getCorrectForm = function (t, e, r) {\n      return o(t) ? !1 === a(t) ? -1 : !u(t) || !o(e) && !o(r) || !o(r) && s(e) || s(t) && !o(e) || s(t) && c(e) || s(t) && s(e) ? 0 : h(t) && o(e) && !s(e) && o(r) && u(r) ? 3 : s(t) || !o(r) ? 1 : 2 : -1;\n    },\n    d = function (t) {\n      var r = 0,\n        n = 0,\n        i = 0,\n        a = \"\",\n        s = \"\",\n        c = \"\",\n        u = (t = t || \"\").split(\"\\\\s+\"),\n        h = [];\n      for (r = 0; r < u.length; r += 1) {\n        for (h.push(\"\"), n = 0; n < u[r].length; n += 1) a = u[r][n], s = u[r][n - 1], c = u[r][n + 1], o(a) ? (i = f(a, s, c), h[r] += -1 !== i ? String.fromCharCode(e[a.charCodeAt(0)][i]) : a) : h[r] += a;\n        h[r] = l(h[r]);\n      }\n      return h.join(\" \");\n    },\n    p = t.__arabicParser__.processArabic = t.processArabic = function () {\n      var t,\n        e = \"string\" == typeof arguments[0] ? arguments[0] : arguments[0].text,\n        r = [];\n      if (Array.isArray(e)) {\n        var n = 0;\n        for (r = [], n = 0; n < e.length; n += 1) Array.isArray(e[n]) ? r.push([d(e[n][0]), e[n][1], e[n][2]]) : r.push([d(e[n])]);\n        t = r;\n      } else t = d(e);\n      return \"string\" == typeof arguments[0] ? t : (arguments[0].text = t, arguments[0]);\n    };\n  t.events.push([\"preProcessText\", p]);\n}(E.API), E.API.autoPrint = function (t) {\n  var e;\n  switch ((t = t || {}).variant = t.variant || \"non-conform\", t.variant) {\n    case \"javascript\":\n      this.addJS(\"print({});\");\n      break;\n    case \"non-conform\":\n    default:\n      this.internal.events.subscribe(\"postPutResources\", function () {\n        e = this.internal.newObject(), this.internal.out(\"<<\"), this.internal.out(\"/S /Named\"), this.internal.out(\"/Type /Action\"), this.internal.out(\"/N /Print\"), this.internal.out(\">>\"), this.internal.out(\"endobj\");\n      }), this.internal.events.subscribe(\"putCatalog\", function () {\n        this.internal.out(\"/OpenAction \" + e + \" 0 R\");\n      });\n  }\n  return this;\n},\n/**\n * @license\n * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv\n *\n * Licensed under the MIT License.\n * http://opensource.org/licenses/mit-license\n */\nfunction (t) {\n  var e = function () {\n    var t = void 0;\n    Object.defineProperty(this, \"pdf\", {\n      get: function () {\n        return t;\n      },\n      set: function (e) {\n        t = e;\n      }\n    });\n    var e = 150;\n    Object.defineProperty(this, \"width\", {\n      get: function () {\n        return e;\n      },\n      set: function (t) {\n        e = isNaN(t) || !1 === Number.isInteger(t) || t < 0 ? 150 : t, this.getContext(\"2d\").pageWrapXEnabled && (this.getContext(\"2d\").pageWrapX = e + 1);\n      }\n    });\n    var r = 300;\n    Object.defineProperty(this, \"height\", {\n      get: function () {\n        return r;\n      },\n      set: function (t) {\n        r = isNaN(t) || !1 === Number.isInteger(t) || t < 0 ? 300 : t, this.getContext(\"2d\").pageWrapYEnabled && (this.getContext(\"2d\").pageWrapY = r + 1);\n      }\n    });\n    var n = [];\n    Object.defineProperty(this, \"childNodes\", {\n      get: function () {\n        return n;\n      },\n      set: function (t) {\n        n = t;\n      }\n    });\n    var i = {};\n    Object.defineProperty(this, \"style\", {\n      get: function () {\n        return i;\n      },\n      set: function (t) {\n        i = t;\n      }\n    }), Object.defineProperty(this, \"parentNode\", {});\n  };\n  e.prototype.getContext = function (t, e) {\n    var r;\n    if (\"2d\" !== (t = t || \"2d\")) return null;\n    for (r in e) this.pdf.context2d.hasOwnProperty(r) && (this.pdf.context2d[r] = e[r]);\n    return this.pdf.context2d._canvas = this, this.pdf.context2d;\n  }, e.prototype.toDataURL = function () {\n    throw new Error(\"toDataURL is not implemented.\");\n  }, t.events.push([\"initialized\", function () {\n    this.canvas = new e(), this.canvas.pdf = this;\n  }]);\n}(E.API), function (e) {\n  var r = {\n      left: 0,\n      top: 0,\n      bottom: 0,\n      right: 0\n    },\n    n = !1,\n    i = function () {\n      void 0 === this.internal.__cell__ && (this.internal.__cell__ = {}, this.internal.__cell__.padding = 3, this.internal.__cell__.headerFunction = void 0, this.internal.__cell__.margins = Object.assign({}, r), this.internal.__cell__.margins.width = this.getPageWidth(), a.call(this));\n    },\n    a = function () {\n      this.internal.__cell__.lastCell = new o(), this.internal.__cell__.pages = 1;\n    },\n    o = function () {\n      var t = arguments[0];\n      Object.defineProperty(this, \"x\", {\n        enumerable: !0,\n        get: function () {\n          return t;\n        },\n        set: function (e) {\n          t = e;\n        }\n      });\n      var e = arguments[1];\n      Object.defineProperty(this, \"y\", {\n        enumerable: !0,\n        get: function () {\n          return e;\n        },\n        set: function (t) {\n          e = t;\n        }\n      });\n      var r = arguments[2];\n      Object.defineProperty(this, \"width\", {\n        enumerable: !0,\n        get: function () {\n          return r;\n        },\n        set: function (t) {\n          r = t;\n        }\n      });\n      var n = arguments[3];\n      Object.defineProperty(this, \"height\", {\n        enumerable: !0,\n        get: function () {\n          return n;\n        },\n        set: function (t) {\n          n = t;\n        }\n      });\n      var i = arguments[4];\n      Object.defineProperty(this, \"text\", {\n        enumerable: !0,\n        get: function () {\n          return i;\n        },\n        set: function (t) {\n          i = t;\n        }\n      });\n      var a = arguments[5];\n      Object.defineProperty(this, \"lineNumber\", {\n        enumerable: !0,\n        get: function () {\n          return a;\n        },\n        set: function (t) {\n          a = t;\n        }\n      });\n      var o = arguments[6];\n      return Object.defineProperty(this, \"align\", {\n        enumerable: !0,\n        get: function () {\n          return o;\n        },\n        set: function (t) {\n          o = t;\n        }\n      }), this;\n    };\n  o.prototype.clone = function () {\n    return new o(this.x, this.y, this.width, this.height, this.text, this.lineNumber, this.align);\n  }, o.prototype.toArray = function () {\n    return [this.x, this.y, this.width, this.height, this.text, this.lineNumber, this.align];\n  }, e.setHeaderFunction = function (t) {\n    return i.call(this), this.internal.__cell__.headerFunction = \"function\" == typeof t ? t : void 0, this;\n  }, e.getTextDimensions = function (t, e) {\n    i.call(this);\n    var r = (e = e || {}).fontSize || this.getFontSize(),\n      n = e.font || this.getFont(),\n      a = e.scaleFactor || this.internal.scaleFactor,\n      o = 0,\n      s = 0,\n      c = 0,\n      u = this;\n    if (!Array.isArray(t) && \"string\" != typeof t) {\n      if (\"number\" != typeof t) throw new Error(\"getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.\");\n      t = String(t);\n    }\n    var h = e.maxWidth;\n    h > 0 ? \"string\" == typeof t ? t = this.splitTextToSize(t, h) : \"[object Array]\" === Object.prototype.toString.call(t) && (t = t.reduce(function (t, e) {\n      return t.concat(u.splitTextToSize(e, h));\n    }, [])) : t = Array.isArray(t) ? t : [t];\n    for (var l = 0; l < t.length; l++) o < (c = this.getStringUnitWidth(t[l], {\n      font: n\n    }) * r) && (o = c);\n    return 0 !== o && (s = t.length), {\n      w: o /= a,\n      h: Math.max((s * r * this.getLineHeightFactor() - r * (this.getLineHeightFactor() - 1)) / a, 0)\n    };\n  }, e.cellAddPage = function () {\n    i.call(this), this.addPage();\n    var t = this.internal.__cell__.margins || r;\n    return this.internal.__cell__.lastCell = new o(t.left, t.top, void 0, void 0), this.internal.__cell__.pages += 1, this;\n  };\n  var s = e.cell = function () {\n    var t;\n    t = arguments[0] instanceof o ? arguments[0] : new o(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]), i.call(this);\n    var e = this.internal.__cell__.lastCell,\n      a = this.internal.__cell__.padding,\n      s = this.internal.__cell__.margins || r,\n      c = this.internal.__cell__.tableHeaderRow,\n      u = this.internal.__cell__.printHeaders;\n    return void 0 !== e.lineNumber && (e.lineNumber === t.lineNumber ? (t.x = (e.x || 0) + (e.width || 0), t.y = e.y || 0) : e.y + e.height + t.height + s.bottom > this.getPageHeight() ? (this.cellAddPage(), t.y = s.top, u && c && (this.printHeaderRow(t.lineNumber, !0), t.y += c[0].height)) : t.y = e.y + e.height || t.y), void 0 !== t.text[0] && (this.rect(t.x, t.y, t.width, t.height, !0 === n ? \"FD\" : void 0), \"right\" === t.align ? this.text(t.text, t.x + t.width - a, t.y + a, {\n      align: \"right\",\n      baseline: \"top\"\n    }) : \"center\" === t.align ? this.text(t.text, t.x + t.width / 2, t.y + a, {\n      align: \"center\",\n      baseline: \"top\",\n      maxWidth: t.width - a - a\n    }) : this.text(t.text, t.x + a, t.y + a, {\n      align: \"left\",\n      baseline: \"top\",\n      maxWidth: t.width - a - a\n    })), this.internal.__cell__.lastCell = t, this;\n  };\n  e.table = function (e, n, u, h, l) {\n    if (i.call(this), !u) throw new Error(\"No data for PDF table.\");\n    var f,\n      d,\n      p,\n      g,\n      m = [],\n      v = [],\n      b = [],\n      y = {},\n      w = {},\n      N = [],\n      L = [],\n      A = (l = l || {}).autoSize || !1,\n      x = !1 !== l.printHeaders,\n      S = l.css && void 0 !== l.css[\"font-size\"] ? 16 * l.css[\"font-size\"] : l.fontSize || 12,\n      _ = l.margins || Object.assign({\n        width: this.getPageWidth()\n      }, r),\n      P = \"number\" == typeof l.padding ? l.padding : 3,\n      k = l.headerBackgroundColor || \"#c8c8c8\",\n      I = l.headerTextColor || \"#000\";\n    if (a.call(this), this.internal.__cell__.printHeaders = x, this.internal.__cell__.margins = _, this.internal.__cell__.table_font_size = S, this.internal.__cell__.padding = P, this.internal.__cell__.headerBackgroundColor = k, this.internal.__cell__.headerTextColor = I, this.setFontSize(S), null == h) v = m = Object.keys(u[0]), b = m.map(function () {\n      return \"left\";\n    });else if (Array.isArray(h) && \"object\" === t(h[0])) for (m = h.map(function (t) {\n      return t.name;\n    }), v = h.map(function (t) {\n      return t.prompt || t.name || \"\";\n    }), b = h.map(function (t) {\n      return t.align || \"left\";\n    }), f = 0; f < h.length; f += 1) w[h[f].name] = h[f].width * (19.049976 / 25.4);else Array.isArray(h) && \"string\" == typeof h[0] && (v = m = h, b = m.map(function () {\n      return \"left\";\n    }));\n    if (A || Array.isArray(h) && \"string\" == typeof h[0]) for (f = 0; f < m.length; f += 1) {\n      for (y[g = m[f]] = u.map(function (t) {\n        return t[g];\n      }), this.setFont(void 0, \"bold\"), N.push(this.getTextDimensions(v[f], {\n        fontSize: this.internal.__cell__.table_font_size,\n        scaleFactor: this.internal.scaleFactor\n      }).w), d = y[g], this.setFont(void 0, \"normal\"), p = 0; p < d.length; p += 1) N.push(this.getTextDimensions(d[p], {\n        fontSize: this.internal.__cell__.table_font_size,\n        scaleFactor: this.internal.scaleFactor\n      }).w);\n      w[g] = Math.max.apply(null, N) + P + P, N = [];\n    }\n    if (x) {\n      var F = {};\n      for (f = 0; f < m.length; f += 1) F[m[f]] = {}, F[m[f]].text = v[f], F[m[f]].align = b[f];\n      var C = c.call(this, F, w);\n      L = m.map(function (t) {\n        return new o(e, n, w[t], C, F[t].text, void 0, F[t].align);\n      }), this.setTableHeaderRow(L), this.printHeaderRow(1, !1);\n    }\n    var j = h.reduce(function (t, e) {\n      return t[e.name] = e.align, t;\n    }, {});\n    for (f = 0; f < u.length; f += 1) {\n      \"rowStart\" in l && l.rowStart instanceof Function && l.rowStart({\n        row: f,\n        data: u[f]\n      }, this);\n      var O = c.call(this, u[f], w);\n      for (p = 0; p < m.length; p += 1) {\n        var B = u[f][m[p]];\n        \"cellStart\" in l && l.cellStart instanceof Function && l.cellStart({\n          row: f,\n          col: p,\n          data: B\n        }, this), s.call(this, new o(e, n, w[m[p]], O, B, f + 2, j[m[p]]));\n      }\n    }\n    return this.internal.__cell__.table_x = e, this.internal.__cell__.table_y = n, this;\n  };\n  var c = function (t, e) {\n    var r = this.internal.__cell__.padding,\n      n = this.internal.__cell__.table_font_size,\n      i = this.internal.scaleFactor;\n    return Object.keys(t).map(function (n) {\n      var i = t[n];\n      return this.splitTextToSize(i.hasOwnProperty(\"text\") ? i.text : i, e[n] - r - r);\n    }, this).map(function (t) {\n      return this.getLineHeightFactor() * t.length * n / i + r + r;\n    }, this).reduce(function (t, e) {\n      return Math.max(t, e);\n    }, 0);\n  };\n  e.setTableHeaderRow = function (t) {\n    i.call(this), this.internal.__cell__.tableHeaderRow = t;\n  }, e.printHeaderRow = function (t, e) {\n    if (i.call(this), !this.internal.__cell__.tableHeaderRow) throw new Error(\"Property tableHeaderRow does not exist.\");\n    var r;\n    if (n = !0, \"function\" == typeof this.internal.__cell__.headerFunction) {\n      var a = this.internal.__cell__.headerFunction(this, this.internal.__cell__.pages);\n      this.internal.__cell__.lastCell = new o(a[0], a[1], a[2], a[3], void 0, -1);\n    }\n    this.setFont(void 0, \"bold\");\n    for (var c = [], u = 0; u < this.internal.__cell__.tableHeaderRow.length; u += 1) {\n      r = this.internal.__cell__.tableHeaderRow[u].clone(), e && (r.y = this.internal.__cell__.margins.top || 0, c.push(r)), r.lineNumber = t;\n      var h = this.getTextColor();\n      this.setTextColor(this.internal.__cell__.headerTextColor), this.setFillColor(this.internal.__cell__.headerBackgroundColor), s.call(this, r), this.setTextColor(h);\n    }\n    c.length > 0 && this.setTableHeaderRow(c), this.setFont(void 0, \"normal\"), n = !1;\n  };\n}(E.API);\nvar Pt = {\n    italic: [\"italic\", \"oblique\", \"normal\"],\n    oblique: [\"oblique\", \"italic\", \"normal\"],\n    normal: [\"normal\", \"oblique\", \"italic\"]\n  },\n  kt = [\"ultra-condensed\", \"extra-condensed\", \"condensed\", \"semi-condensed\", \"normal\", \"semi-expanded\", \"expanded\", \"extra-expanded\", \"ultra-expanded\"],\n  It = _t(kt),\n  Ft = [100, 200, 300, 400, 500, 600, 700, 800, 900],\n  Ct = _t(Ft);\nfunction jt(t) {\n  var e = t.family.replace(/\"|'/g, \"\").toLowerCase(),\n    r = function (t) {\n      return Pt[t = t || \"normal\"] ? t : \"normal\";\n    }(t.style),\n    n = function (t) {\n      if (!t) return 400;\n      if (\"number\" == typeof t) return t >= 100 && t <= 900 && t % 100 == 0 ? t : 400;\n      if (/^\\d00$/.test(t)) return parseInt(t);\n      switch (t) {\n        case \"bold\":\n          return 700;\n        case \"normal\":\n        default:\n          return 400;\n      }\n    }(t.weight),\n    i = function (t) {\n      return \"number\" == typeof It[t = t || \"normal\"] ? t : \"normal\";\n    }(t.stretch);\n  return {\n    family: e,\n    style: r,\n    weight: n,\n    stretch: i,\n    src: t.src || [],\n    ref: t.ref || {\n      name: e,\n      style: [i, r, n].join(\" \")\n    }\n  };\n}\nfunction Ot(t, e, r, n) {\n  var i;\n  for (i = r; i >= 0 && i < e.length; i += n) if (t[e[i]]) return t[e[i]];\n  for (i = r; i >= 0 && i < e.length; i -= n) if (t[e[i]]) return t[e[i]];\n}\nvar Bt = {\n    \"sans-serif\": \"helvetica\",\n    fixed: \"courier\",\n    monospace: \"courier\",\n    terminal: \"courier\",\n    cursive: \"times\",\n    fantasy: \"times\",\n    serif: \"times\"\n  },\n  Mt = {\n    caption: \"times\",\n    icon: \"times\",\n    menu: \"times\",\n    \"message-box\": \"times\",\n    \"small-caption\": \"times\",\n    \"status-bar\": \"times\"\n  };\nfunction Et(t) {\n  return [t.stretch, t.style, t.weight, t.family].join(\" \");\n}\nfunction qt(t, e, r) {\n  for (var n = (r = r || {}).defaultFontFamily || \"times\", i = Object.assign({}, Bt, r.genericFontFamilies || {}), a = null, o = null, s = 0; s < e.length; ++s) if (i[(a = jt(e[s])).family] && (a.family = i[a.family]), t.hasOwnProperty(a.family)) {\n    o = t[a.family];\n    break;\n  }\n  if (!(o = o || t[n])) throw new Error(\"Could not find a font-family for the rule '\" + Et(a) + \"' and default family '\" + n + \"'.\");\n  if (o = function (t, e) {\n    if (e[t]) return e[t];\n    var r = It[t],\n      n = r <= It.normal ? -1 : 1,\n      i = Ot(e, kt, r, n);\n    if (!i) throw new Error(\"Could not find a matching font-stretch value for \" + t);\n    return i;\n  }(a.stretch, o), o = function (t, e) {\n    if (e[t]) return e[t];\n    for (var r = Pt[t], n = 0; n < r.length; ++n) if (e[r[n]]) return e[r[n]];\n    throw new Error(\"Could not find a matching font-style for \" + t);\n  }(a.style, o), !(o = function (t, e) {\n    if (e[t]) return e[t];\n    if (400 === t && e[500]) return e[500];\n    if (500 === t && e[400]) return e[400];\n    var r = Ct[t],\n      n = Ot(e, Ft, r, t < 400 ? -1 : 1);\n    if (!n) throw new Error(\"Could not find a matching font-weight for value \" + t);\n    return n;\n  }(a.weight, o))) throw new Error(\"Failed to resolve a font for the rule '\" + Et(a) + \"'.\");\n  return o;\n}\nfunction Dt(t) {\n  return t.trimLeft();\n}\nfunction Rt(t, e) {\n  for (var r = 0; r < t.length;) {\n    if (t.charAt(r) === e) return [t.substring(0, r), t.substring(r + 1)];\n    r += 1;\n  }\n  return null;\n}\nfunction Tt(t) {\n  var e = t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);\n  return null === e ? null : [e[0], t.substring(e[0].length)];\n}\nvar Ut,\n  zt,\n  Ht,\n  Wt = [\"times\"];\n!function (e) {\n  var r,\n    n,\n    i,\n    o,\n    s,\n    c,\n    u,\n    h,\n    l,\n    d = function (t) {\n      return t = t || {}, this.isStrokeTransparent = t.isStrokeTransparent || !1, this.strokeOpacity = t.strokeOpacity || 1, this.strokeStyle = t.strokeStyle || \"#000000\", this.fillStyle = t.fillStyle || \"#000000\", this.isFillTransparent = t.isFillTransparent || !1, this.fillOpacity = t.fillOpacity || 1, this.font = t.font || \"10px sans-serif\", this.textBaseline = t.textBaseline || \"alphabetic\", this.textAlign = t.textAlign || \"left\", this.lineWidth = t.lineWidth || 1, this.lineJoin = t.lineJoin || \"miter\", this.lineCap = t.lineCap || \"butt\", this.path = t.path || [], this.transform = void 0 !== t.transform ? t.transform.clone() : new h(), this.globalCompositeOperation = t.globalCompositeOperation || \"normal\", this.globalAlpha = t.globalAlpha || 1, this.clip_path = t.clip_path || [], this.currentPoint = t.currentPoint || new c(), this.miterLimit = t.miterLimit || 10, this.lastPoint = t.lastPoint || new c(), this.lineDashOffset = t.lineDashOffset || 0, this.lineDash = t.lineDash || [], this.margin = t.margin || [0, 0, 0, 0], this.prevPageLastElemOffset = t.prevPageLastElemOffset || 0, this.ignoreClearRect = \"boolean\" != typeof t.ignoreClearRect || t.ignoreClearRect, this;\n    };\n  e.events.push([\"initialized\", function () {\n    this.context2d = new p(this), r = this.internal.f2, n = this.internal.getCoordinateString, i = this.internal.getVerticalCoordinateString, o = this.internal.getHorizontalCoordinate, s = this.internal.getVerticalCoordinate, c = this.internal.Point, u = this.internal.Rectangle, h = this.internal.Matrix, l = new d();\n  }]);\n  var p = function (t) {\n    Object.defineProperty(this, \"canvas\", {\n      get: function () {\n        return {\n          parentNode: !1,\n          style: !1\n        };\n      }\n    });\n    var e = t;\n    Object.defineProperty(this, \"pdf\", {\n      get: function () {\n        return e;\n      }\n    });\n    var r = !1;\n    Object.defineProperty(this, \"pageWrapXEnabled\", {\n      get: function () {\n        return r;\n      },\n      set: function (t) {\n        r = Boolean(t);\n      }\n    });\n    var n = !1;\n    Object.defineProperty(this, \"pageWrapYEnabled\", {\n      get: function () {\n        return n;\n      },\n      set: function (t) {\n        n = Boolean(t);\n      }\n    });\n    var i = 0;\n    Object.defineProperty(this, \"posX\", {\n      get: function () {\n        return i;\n      },\n      set: function (t) {\n        isNaN(t) || (i = t);\n      }\n    });\n    var a = 0;\n    Object.defineProperty(this, \"posY\", {\n      get: function () {\n        return a;\n      },\n      set: function (t) {\n        isNaN(t) || (a = t);\n      }\n    }), Object.defineProperty(this, \"margin\", {\n      get: function () {\n        return l.margin;\n      },\n      set: function (t) {\n        var e;\n        \"number\" == typeof t ? e = [t, t, t, t] : ((e = new Array(4))[0] = t[0], e[1] = t.length >= 2 ? t[1] : e[0], e[2] = t.length >= 3 ? t[2] : e[0], e[3] = t.length >= 4 ? t[3] : e[1]), l.margin = e;\n      }\n    });\n    var o = !1;\n    Object.defineProperty(this, \"autoPaging\", {\n      get: function () {\n        return o;\n      },\n      set: function (t) {\n        o = t;\n      }\n    });\n    var s = 0;\n    Object.defineProperty(this, \"lastBreak\", {\n      get: function () {\n        return s;\n      },\n      set: function (t) {\n        s = t;\n      }\n    });\n    var c = [];\n    Object.defineProperty(this, \"pageBreaks\", {\n      get: function () {\n        return c;\n      },\n      set: function (t) {\n        c = t;\n      }\n    }), Object.defineProperty(this, \"ctx\", {\n      get: function () {\n        return l;\n      },\n      set: function (t) {\n        t instanceof d && (l = t);\n      }\n    }), Object.defineProperty(this, \"path\", {\n      get: function () {\n        return l.path;\n      },\n      set: function (t) {\n        l.path = t;\n      }\n    });\n    var u = [];\n    Object.defineProperty(this, \"ctxStack\", {\n      get: function () {\n        return u;\n      },\n      set: function (t) {\n        u = t;\n      }\n    }), Object.defineProperty(this, \"fillStyle\", {\n      get: function () {\n        return this.ctx.fillStyle;\n      },\n      set: function (t) {\n        var e;\n        e = g(t), this.ctx.fillStyle = e.style, this.ctx.isFillTransparent = 0 === e.a, this.ctx.fillOpacity = e.a, this.pdf.setFillColor(e.r, e.g, e.b, {\n          a: e.a\n        }), this.pdf.setTextColor(e.r, e.g, e.b, {\n          a: e.a\n        });\n      }\n    }), Object.defineProperty(this, \"strokeStyle\", {\n      get: function () {\n        return this.ctx.strokeStyle;\n      },\n      set: function (t) {\n        var e = g(t);\n        this.ctx.strokeStyle = e.style, this.ctx.isStrokeTransparent = 0 === e.a, this.ctx.strokeOpacity = e.a, 0 === e.a ? this.pdf.setDrawColor(255, 255, 255) : (e.a, this.pdf.setDrawColor(e.r, e.g, e.b));\n      }\n    }), Object.defineProperty(this, \"lineCap\", {\n      get: function () {\n        return this.ctx.lineCap;\n      },\n      set: function (t) {\n        -1 !== [\"butt\", \"round\", \"square\"].indexOf(t) && (this.ctx.lineCap = t, this.pdf.setLineCap(t));\n      }\n    }), Object.defineProperty(this, \"lineWidth\", {\n      get: function () {\n        return this.ctx.lineWidth;\n      },\n      set: function (t) {\n        isNaN(t) || (this.ctx.lineWidth = t, this.pdf.setLineWidth(t));\n      }\n    }), Object.defineProperty(this, \"lineJoin\", {\n      get: function () {\n        return this.ctx.lineJoin;\n      },\n      set: function (t) {\n        -1 !== [\"bevel\", \"round\", \"miter\"].indexOf(t) && (this.ctx.lineJoin = t, this.pdf.setLineJoin(t));\n      }\n    }), Object.defineProperty(this, \"miterLimit\", {\n      get: function () {\n        return this.ctx.miterLimit;\n      },\n      set: function (t) {\n        isNaN(t) || (this.ctx.miterLimit = t, this.pdf.setMiterLimit(t));\n      }\n    }), Object.defineProperty(this, \"textBaseline\", {\n      get: function () {\n        return this.ctx.textBaseline;\n      },\n      set: function (t) {\n        this.ctx.textBaseline = t;\n      }\n    }), Object.defineProperty(this, \"textAlign\", {\n      get: function () {\n        return this.ctx.textAlign;\n      },\n      set: function (t) {\n        -1 !== [\"right\", \"end\", \"center\", \"left\", \"start\"].indexOf(t) && (this.ctx.textAlign = t);\n      }\n    });\n    var h = null;\n    function f(t, e) {\n      if (null === h) {\n        var r = function (t) {\n          var e = [];\n          return Object.keys(t).forEach(function (r) {\n            t[r].forEach(function (t) {\n              var n = null;\n              switch (t) {\n                case \"bold\":\n                  n = {\n                    family: r,\n                    weight: \"bold\"\n                  };\n                  break;\n                case \"italic\":\n                  n = {\n                    family: r,\n                    style: \"italic\"\n                  };\n                  break;\n                case \"bolditalic\":\n                  n = {\n                    family: r,\n                    weight: \"bold\",\n                    style: \"italic\"\n                  };\n                  break;\n                case \"\":\n                case \"normal\":\n                  n = {\n                    family: r\n                  };\n              }\n              null !== n && (n.ref = {\n                name: r,\n                style: t\n              }, e.push(n));\n            });\n          }), e;\n        }(t.getFontList());\n        h = function (t) {\n          for (var e = {}, r = 0; r < t.length; ++r) {\n            var n = jt(t[r]),\n              i = n.family,\n              a = n.stretch,\n              o = n.style,\n              s = n.weight;\n            e[i] = e[i] || {}, e[i][a] = e[i][a] || {}, e[i][a][o] = e[i][a][o] || {}, e[i][a][o][s] = n;\n          }\n          return e;\n        }(r.concat(e));\n      }\n      return h;\n    }\n    var p = null;\n    Object.defineProperty(this, \"fontFaces\", {\n      get: function () {\n        return p;\n      },\n      set: function (t) {\n        h = null, p = t;\n      }\n    }), Object.defineProperty(this, \"font\", {\n      get: function () {\n        return this.ctx.font;\n      },\n      set: function (t) {\n        var e;\n        if (this.ctx.font = t, null !== (e = /^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))(?:\\s*\\/\\s*(normal|[.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])))?\\s*([-_,\\\"\\'\\sa-z]+?)\\s*$/i.exec(t))) {\n          var r = e[1],\n            n = (e[2], e[3]),\n            i = e[4],\n            a = (e[5], e[6]),\n            o = /^([.\\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(i)[2];\n          i = \"px\" === o ? Math.floor(parseFloat(i) * this.pdf.internal.scaleFactor) : \"em\" === o ? Math.floor(parseFloat(i) * this.pdf.getFontSize()) : Math.floor(parseFloat(i) * this.pdf.internal.scaleFactor), this.pdf.setFontSize(i);\n          var s = function (t) {\n            var e,\n              r,\n              n = [],\n              i = t.trim();\n            if (\"\" === i) return Wt;\n            if (i in Mt) return [Mt[i]];\n            for (; \"\" !== i;) {\n              switch (r = null, e = (i = Dt(i)).charAt(0)) {\n                case '\"':\n                case \"'\":\n                  r = Rt(i.substring(1), e);\n                  break;\n                default:\n                  r = Tt(i);\n              }\n              if (null === r) return Wt;\n              if (n.push(r[0]), \"\" !== (i = Dt(r[1])) && \",\" !== i.charAt(0)) return Wt;\n              i = i.replace(/^,/, \"\");\n            }\n            return n;\n          }(a);\n          if (this.fontFaces) {\n            var c = qt(f(this.pdf, this.fontFaces), s.map(function (t) {\n              return {\n                family: t,\n                stretch: \"normal\",\n                weight: n,\n                style: r\n              };\n            }));\n            this.pdf.setFont(c.ref.name, c.ref.style);\n          } else {\n            var u = \"\";\n            (\"bold\" === n || parseInt(n, 10) >= 700 || \"bold\" === r) && (u = \"bold\"), \"italic\" === r && (u += \"italic\"), 0 === u.length && (u = \"normal\");\n            for (var h = \"\", l = {\n                arial: \"Helvetica\",\n                Arial: \"Helvetica\",\n                verdana: \"Helvetica\",\n                Verdana: \"Helvetica\",\n                helvetica: \"Helvetica\",\n                Helvetica: \"Helvetica\",\n                \"sans-serif\": \"Helvetica\",\n                fixed: \"Courier\",\n                monospace: \"Courier\",\n                terminal: \"Courier\",\n                cursive: \"Times\",\n                fantasy: \"Times\",\n                serif: \"Times\"\n              }, d = 0; d < s.length; d++) {\n              if (void 0 !== this.pdf.internal.getFont(s[d], u, {\n                noFallback: !0,\n                disableWarning: !0\n              })) {\n                h = s[d];\n                break;\n              }\n              if (\"bolditalic\" === u && void 0 !== this.pdf.internal.getFont(s[d], \"bold\", {\n                noFallback: !0,\n                disableWarning: !0\n              })) h = s[d], u = \"bold\";else if (void 0 !== this.pdf.internal.getFont(s[d], \"normal\", {\n                noFallback: !0,\n                disableWarning: !0\n              })) {\n                h = s[d], u = \"normal\";\n                break;\n              }\n            }\n            if (\"\" === h) for (var p = 0; p < s.length; p++) if (l[s[p]]) {\n              h = l[s[p]];\n              break;\n            }\n            h = \"\" === h ? \"Times\" : h, this.pdf.setFont(h, u);\n          }\n        }\n      }\n    }), Object.defineProperty(this, \"globalCompositeOperation\", {\n      get: function () {\n        return this.ctx.globalCompositeOperation;\n      },\n      set: function (t) {\n        this.ctx.globalCompositeOperation = t;\n      }\n    }), Object.defineProperty(this, \"globalAlpha\", {\n      get: function () {\n        return this.ctx.globalAlpha;\n      },\n      set: function (t) {\n        this.ctx.globalAlpha = t;\n      }\n    }), Object.defineProperty(this, \"lineDashOffset\", {\n      get: function () {\n        return this.ctx.lineDashOffset;\n      },\n      set: function (t) {\n        this.ctx.lineDashOffset = t, T.call(this);\n      }\n    }), Object.defineProperty(this, \"lineDash\", {\n      get: function () {\n        return this.ctx.lineDash;\n      },\n      set: function (t) {\n        this.ctx.lineDash = t, T.call(this);\n      }\n    }), Object.defineProperty(this, \"ignoreClearRect\", {\n      get: function () {\n        return this.ctx.ignoreClearRect;\n      },\n      set: function (t) {\n        this.ctx.ignoreClearRect = Boolean(t);\n      }\n    });\n  };\n  p.prototype.setLineDash = function (t) {\n    this.lineDash = t;\n  }, p.prototype.getLineDash = function () {\n    return this.lineDash.length % 2 ? this.lineDash.concat(this.lineDash) : this.lineDash.slice();\n  }, p.prototype.fill = function () {\n    A.call(this, \"fill\", !1);\n  }, p.prototype.stroke = function () {\n    A.call(this, \"stroke\", !1);\n  }, p.prototype.beginPath = function () {\n    this.path = [{\n      type: \"begin\"\n    }];\n  }, p.prototype.moveTo = function (t, e) {\n    if (isNaN(t) || isNaN(e)) throw a.error(\"jsPDF.context2d.moveTo: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.moveTo\");\n    var r = this.ctx.transform.applyToPoint(new c(t, e));\n    this.path.push({\n      type: \"mt\",\n      x: r.x,\n      y: r.y\n    }), this.ctx.lastPoint = new c(t, e);\n  }, p.prototype.closePath = function () {\n    var e = new c(0, 0),\n      r = 0;\n    for (r = this.path.length - 1; -1 !== r; r--) if (\"begin\" === this.path[r].type && \"object\" === t(this.path[r + 1]) && \"number\" == typeof this.path[r + 1].x) {\n      e = new c(this.path[r + 1].x, this.path[r + 1].y);\n      break;\n    }\n    this.path.push({\n      type: \"close\"\n    }), this.ctx.lastPoint = new c(e.x, e.y);\n  }, p.prototype.lineTo = function (t, e) {\n    if (isNaN(t) || isNaN(e)) throw a.error(\"jsPDF.context2d.lineTo: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.lineTo\");\n    var r = this.ctx.transform.applyToPoint(new c(t, e));\n    this.path.push({\n      type: \"lt\",\n      x: r.x,\n      y: r.y\n    }), this.ctx.lastPoint = new c(r.x, r.y);\n  }, p.prototype.clip = function () {\n    this.ctx.clip_path = JSON.parse(JSON.stringify(this.path)), A.call(this, null, !0);\n  }, p.prototype.quadraticCurveTo = function (t, e, r, n) {\n    if (isNaN(r) || isNaN(n) || isNaN(t) || isNaN(e)) throw a.error(\"jsPDF.context2d.quadraticCurveTo: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.quadraticCurveTo\");\n    var i = this.ctx.transform.applyToPoint(new c(r, n)),\n      o = this.ctx.transform.applyToPoint(new c(t, e));\n    this.path.push({\n      type: \"qct\",\n      x1: o.x,\n      y1: o.y,\n      x: i.x,\n      y: i.y\n    }), this.ctx.lastPoint = new c(i.x, i.y);\n  }, p.prototype.bezierCurveTo = function (t, e, r, n, i, o) {\n    if (isNaN(i) || isNaN(o) || isNaN(t) || isNaN(e) || isNaN(r) || isNaN(n)) throw a.error(\"jsPDF.context2d.bezierCurveTo: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.bezierCurveTo\");\n    var s = this.ctx.transform.applyToPoint(new c(i, o)),\n      u = this.ctx.transform.applyToPoint(new c(t, e)),\n      h = this.ctx.transform.applyToPoint(new c(r, n));\n    this.path.push({\n      type: \"bct\",\n      x1: u.x,\n      y1: u.y,\n      x2: h.x,\n      y2: h.y,\n      x: s.x,\n      y: s.y\n    }), this.ctx.lastPoint = new c(s.x, s.y);\n  }, p.prototype.arc = function (t, e, r, n, i, o) {\n    if (isNaN(t) || isNaN(e) || isNaN(r) || isNaN(n) || isNaN(i)) throw a.error(\"jsPDF.context2d.arc: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.arc\");\n    if (o = Boolean(o), !this.ctx.transform.isIdentity) {\n      var s = this.ctx.transform.applyToPoint(new c(t, e));\n      t = s.x, e = s.y;\n      var u = this.ctx.transform.applyToPoint(new c(0, r)),\n        h = this.ctx.transform.applyToPoint(new c(0, 0));\n      r = Math.sqrt(Math.pow(u.x - h.x, 2) + Math.pow(u.y - h.y, 2));\n    }\n    Math.abs(i - n) >= 2 * Math.PI && (n = 0, i = 2 * Math.PI), this.path.push({\n      type: \"arc\",\n      x: t,\n      y: e,\n      radius: r,\n      startAngle: n,\n      endAngle: i,\n      counterclockwise: o\n    });\n  }, p.prototype.arcTo = function (t, e, r, n, i) {\n    throw new Error(\"arcTo not implemented.\");\n  }, p.prototype.rect = function (t, e, r, n) {\n    if (isNaN(t) || isNaN(e) || isNaN(r) || isNaN(n)) throw a.error(\"jsPDF.context2d.rect: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.rect\");\n    this.moveTo(t, e), this.lineTo(t + r, e), this.lineTo(t + r, e + n), this.lineTo(t, e + n), this.lineTo(t, e), this.lineTo(t + r, e), this.lineTo(t, e);\n  }, p.prototype.fillRect = function (t, e, r, n) {\n    if (isNaN(t) || isNaN(e) || isNaN(r) || isNaN(n)) throw a.error(\"jsPDF.context2d.fillRect: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.fillRect\");\n    if (!m.call(this)) {\n      var i = {};\n      \"butt\" !== this.lineCap && (i.lineCap = this.lineCap, this.lineCap = \"butt\"), \"miter\" !== this.lineJoin && (i.lineJoin = this.lineJoin, this.lineJoin = \"miter\"), this.beginPath(), this.rect(t, e, r, n), this.fill(), i.hasOwnProperty(\"lineCap\") && (this.lineCap = i.lineCap), i.hasOwnProperty(\"lineJoin\") && (this.lineJoin = i.lineJoin);\n    }\n  }, p.prototype.strokeRect = function (t, e, r, n) {\n    if (isNaN(t) || isNaN(e) || isNaN(r) || isNaN(n)) throw a.error(\"jsPDF.context2d.strokeRect: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.strokeRect\");\n    v.call(this) || (this.beginPath(), this.rect(t, e, r, n), this.stroke());\n  }, p.prototype.clearRect = function (t, e, r, n) {\n    if (isNaN(t) || isNaN(e) || isNaN(r) || isNaN(n)) throw a.error(\"jsPDF.context2d.clearRect: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.clearRect\");\n    this.ignoreClearRect || (this.fillStyle = \"#ffffff\", this.fillRect(t, e, r, n));\n  }, p.prototype.save = function (t) {\n    t = \"boolean\" != typeof t || t;\n    for (var e = this.pdf.internal.getCurrentPageInfo().pageNumber, r = 0; r < this.pdf.internal.getNumberOfPages(); r++) this.pdf.setPage(r + 1), this.pdf.internal.out(\"q\");\n    if (this.pdf.setPage(e), t) {\n      this.ctx.fontSize = this.pdf.internal.getFontSize();\n      var n = new d(this.ctx);\n      this.ctxStack.push(this.ctx), this.ctx = n;\n    }\n  }, p.prototype.restore = function (t) {\n    t = \"boolean\" != typeof t || t;\n    for (var e = this.pdf.internal.getCurrentPageInfo().pageNumber, r = 0; r < this.pdf.internal.getNumberOfPages(); r++) this.pdf.setPage(r + 1), this.pdf.internal.out(\"Q\");\n    this.pdf.setPage(e), t && 0 !== this.ctxStack.length && (this.ctx = this.ctxStack.pop(), this.fillStyle = this.ctx.fillStyle, this.strokeStyle = this.ctx.strokeStyle, this.font = this.ctx.font, this.lineCap = this.ctx.lineCap, this.lineWidth = this.ctx.lineWidth, this.lineJoin = this.ctx.lineJoin, this.lineDash = this.ctx.lineDash, this.lineDashOffset = this.ctx.lineDashOffset);\n  }, p.prototype.toDataURL = function () {\n    throw new Error(\"toDataUrl not implemented.\");\n  };\n  var g = function (t) {\n      var e, r, n, i;\n      if (!0 === t.isCanvasGradient && (t = t.getColor()), !t) return {\n        r: 0,\n        g: 0,\n        b: 0,\n        a: 0,\n        style: t\n      };\n      if (/transparent|rgba\\s*\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*0+\\s*\\)/.test(t)) e = 0, r = 0, n = 0, i = 0;else {\n        var a = /rgb\\s*\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*\\)/.exec(t);\n        if (null !== a) e = parseInt(a[1]), r = parseInt(a[2]), n = parseInt(a[3]), i = 1;else if (null !== (a = /rgba\\s*\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*([\\d.]+)\\s*\\)/.exec(t))) e = parseInt(a[1]), r = parseInt(a[2]), n = parseInt(a[3]), i = parseFloat(a[4]);else {\n          if (i = 1, \"string\" == typeof t && \"#\" !== t.charAt(0)) {\n            var o = new f(t);\n            t = o.ok ? o.toHex() : \"#000000\";\n          }\n          4 === t.length ? (e = t.substring(1, 2), e += e, r = t.substring(2, 3), r += r, n = t.substring(3, 4), n += n) : (e = t.substring(1, 3), r = t.substring(3, 5), n = t.substring(5, 7)), e = parseInt(e, 16), r = parseInt(r, 16), n = parseInt(n, 16);\n        }\n      }\n      return {\n        r: e,\n        g: r,\n        b: n,\n        a: i,\n        style: t\n      };\n    },\n    m = function () {\n      return this.ctx.isFillTransparent || 0 == this.globalAlpha;\n    },\n    v = function () {\n      return Boolean(this.ctx.isStrokeTransparent || 0 == this.globalAlpha);\n    };\n  p.prototype.fillText = function (t, e, r, n) {\n    if (isNaN(e) || isNaN(r) || \"string\" != typeof t) throw a.error(\"jsPDF.context2d.fillText: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.fillText\");\n    if (n = isNaN(n) ? void 0 : n, !m.call(this)) {\n      var i = q(this.ctx.transform.rotation),\n        o = this.ctx.transform.scaleX;\n      C.call(this, {\n        text: t,\n        x: e,\n        y: r,\n        scale: o,\n        angle: i,\n        align: this.textAlign,\n        maxWidth: n\n      });\n    }\n  }, p.prototype.strokeText = function (t, e, r, n) {\n    if (isNaN(e) || isNaN(r) || \"string\" != typeof t) throw a.error(\"jsPDF.context2d.strokeText: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.strokeText\");\n    if (!v.call(this)) {\n      n = isNaN(n) ? void 0 : n;\n      var i = q(this.ctx.transform.rotation),\n        o = this.ctx.transform.scaleX;\n      C.call(this, {\n        text: t,\n        x: e,\n        y: r,\n        scale: o,\n        renderingMode: \"stroke\",\n        angle: i,\n        align: this.textAlign,\n        maxWidth: n\n      });\n    }\n  }, p.prototype.measureText = function (t) {\n    if (\"string\" != typeof t) throw a.error(\"jsPDF.context2d.measureText: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.measureText\");\n    var e = this.pdf,\n      r = this.pdf.internal.scaleFactor,\n      n = e.internal.getFontSize(),\n      i = e.getStringUnitWidth(t) * n / e.internal.scaleFactor,\n      o = function (t) {\n        var e = (t = t || {}).width || 0;\n        return Object.defineProperty(this, \"width\", {\n          get: function () {\n            return e;\n          }\n        }), this;\n      };\n    return new o({\n      width: i *= Math.round(96 * r / 72 * 1e4) / 1e4\n    });\n  }, p.prototype.scale = function (t, e) {\n    if (isNaN(t) || isNaN(e)) throw a.error(\"jsPDF.context2d.scale: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.scale\");\n    var r = new h(t, 0, 0, e, 0, 0);\n    this.ctx.transform = this.ctx.transform.multiply(r);\n  }, p.prototype.rotate = function (t) {\n    if (isNaN(t)) throw a.error(\"jsPDF.context2d.rotate: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.rotate\");\n    var e = new h(Math.cos(t), Math.sin(t), -Math.sin(t), Math.cos(t), 0, 0);\n    this.ctx.transform = this.ctx.transform.multiply(e);\n  }, p.prototype.translate = function (t, e) {\n    if (isNaN(t) || isNaN(e)) throw a.error(\"jsPDF.context2d.translate: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.translate\");\n    var r = new h(1, 0, 0, 1, t, e);\n    this.ctx.transform = this.ctx.transform.multiply(r);\n  }, p.prototype.transform = function (t, e, r, n, i, o) {\n    if (isNaN(t) || isNaN(e) || isNaN(r) || isNaN(n) || isNaN(i) || isNaN(o)) throw a.error(\"jsPDF.context2d.transform: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.transform\");\n    var s = new h(t, e, r, n, i, o);\n    this.ctx.transform = this.ctx.transform.multiply(s);\n  }, p.prototype.setTransform = function (t, e, r, n, i, a) {\n    t = isNaN(t) ? 1 : t, e = isNaN(e) ? 0 : e, r = isNaN(r) ? 0 : r, n = isNaN(n) ? 1 : n, i = isNaN(i) ? 0 : i, a = isNaN(a) ? 0 : a, this.ctx.transform = new h(t, e, r, n, i, a);\n  };\n  var b = function () {\n    return this.margin[0] > 0 || this.margin[1] > 0 || this.margin[2] > 0 || this.margin[3] > 0;\n  };\n  p.prototype.drawImage = function (t, e, r, n, i, a, o, s, c) {\n    var l = this.pdf.getImageProperties(t),\n      f = 1,\n      d = 1,\n      p = 1,\n      g = 1;\n    void 0 !== n && void 0 !== s && (p = s / n, g = c / i, f = l.width / n * s / n, d = l.height / i * c / i), void 0 === a && (a = e, o = r, e = 0, r = 0), void 0 !== n && void 0 === s && (s = n, c = i), void 0 === n && void 0 === s && (s = l.width, c = l.height);\n    for (var m, v = this.ctx.transform.decompose(), w = q(v.rotate.shx), A = new h(), S = (A = (A = (A = A.multiply(v.translate)).multiply(v.skew)).multiply(v.scale)).applyToRectangle(new u(a - e * p, o - r * g, n * f, i * d)), _ = y.call(this, S), P = [], k = 0; k < _.length; k += 1) -1 === P.indexOf(_[k]) && P.push(_[k]);\n    if (L(P), this.autoPaging) for (var I = P[0], F = P[P.length - 1], C = I; C < F + 1; C++) {\n      this.pdf.setPage(C);\n      var j = this.pdf.internal.pageSize.width - this.margin[3] - this.margin[1],\n        O = 1 === C ? this.posY + this.margin[0] : this.margin[0],\n        B = this.pdf.internal.pageSize.height - this.posY - this.margin[0] - this.margin[2],\n        M = this.pdf.internal.pageSize.height - this.margin[0] - this.margin[2],\n        E = 1 === C ? 0 : B + (C - 2) * M;\n      if (0 !== this.ctx.clip_path.length) {\n        var D = this.path;\n        m = JSON.parse(JSON.stringify(this.ctx.clip_path)), this.path = N(m, this.posX + this.margin[3], -E + O + this.ctx.prevPageLastElemOffset), x.call(this, \"fill\", !0), this.path = D;\n      }\n      var R = JSON.parse(JSON.stringify(S));\n      R = N([R], this.posX + this.margin[3], -E + O + this.ctx.prevPageLastElemOffset)[0];\n      var T = (C > I || C < F) && b.call(this);\n      T && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], j, M, null).clip().discardPath()), this.pdf.addImage(t, \"JPEG\", R.x, R.y, R.w, R.h, null, null, w), T && this.pdf.restoreGraphicsState();\n    } else this.pdf.addImage(t, \"JPEG\", S.x, S.y, S.w, S.h, null, null, w);\n  };\n  var y = function (t, e, r) {\n      var n = [];\n      e = e || this.pdf.internal.pageSize.width, r = r || this.pdf.internal.pageSize.height - this.margin[0] - this.margin[2];\n      var i = this.posY + this.ctx.prevPageLastElemOffset;\n      switch (t.type) {\n        default:\n        case \"mt\":\n        case \"lt\":\n          n.push(Math.floor((t.y + i) / r) + 1);\n          break;\n        case \"arc\":\n          n.push(Math.floor((t.y + i - t.radius) / r) + 1), n.push(Math.floor((t.y + i + t.radius) / r) + 1);\n          break;\n        case \"qct\":\n          var a = D(this.ctx.lastPoint.x, this.ctx.lastPoint.y, t.x1, t.y1, t.x, t.y);\n          n.push(Math.floor((a.y + i) / r) + 1), n.push(Math.floor((a.y + a.h + i) / r) + 1);\n          break;\n        case \"bct\":\n          var o = R(this.ctx.lastPoint.x, this.ctx.lastPoint.y, t.x1, t.y1, t.x2, t.y2, t.x, t.y);\n          n.push(Math.floor((o.y + i) / r) + 1), n.push(Math.floor((o.y + o.h + i) / r) + 1);\n          break;\n        case \"rect\":\n          n.push(Math.floor((t.y + i) / r) + 1), n.push(Math.floor((t.y + t.h + i) / r) + 1);\n      }\n      for (var s = 0; s < n.length; s += 1) for (; this.pdf.internal.getNumberOfPages() < n[s];) w.call(this);\n      return n;\n    },\n    w = function () {\n      var t = this.fillStyle,\n        e = this.strokeStyle,\n        r = this.font,\n        n = this.lineCap,\n        i = this.lineWidth,\n        a = this.lineJoin;\n      this.pdf.addPage(), this.fillStyle = t, this.strokeStyle = e, this.font = r, this.lineCap = n, this.lineWidth = i, this.lineJoin = a;\n    },\n    N = function (t, e, r) {\n      for (var n = 0; n < t.length; n++) switch (t[n].type) {\n        case \"bct\":\n          t[n].x2 += e, t[n].y2 += r;\n        case \"qct\":\n          t[n].x1 += e, t[n].y1 += r;\n        case \"mt\":\n        case \"lt\":\n        case \"arc\":\n        default:\n          t[n].x += e, t[n].y += r;\n      }\n      return t;\n    },\n    L = function (t) {\n      return t.sort(function (t, e) {\n        return t - e;\n      });\n    },\n    A = function (t, e) {\n      for (var r, n, i = this.fillStyle, a = this.strokeStyle, o = this.lineCap, s = this.lineWidth, c = Math.abs(s * this.ctx.transform.scaleX), u = this.lineJoin, h = JSON.parse(JSON.stringify(this.path)), l = JSON.parse(JSON.stringify(this.path)), f = [], d = 0; d < l.length; d++) if (void 0 !== l[d].x) for (var p = y.call(this, l[d]), g = 0; g < p.length; g += 1) -1 === f.indexOf(p[g]) && f.push(p[g]);\n      for (var m = 0; m < f.length; m++) for (; this.pdf.internal.getNumberOfPages() < f[m];) w.call(this);\n      if (L(f), this.autoPaging) for (var v = f[0], A = f[f.length - 1], S = v; S < A + 1; S++) {\n        this.pdf.setPage(S), this.fillStyle = i, this.strokeStyle = a, this.lineCap = o, this.lineWidth = c, this.lineJoin = u;\n        var _ = this.pdf.internal.pageSize.width - this.margin[3] - this.margin[1],\n          P = 1 === S ? this.posY + this.margin[0] : this.margin[0],\n          k = this.pdf.internal.pageSize.height - this.posY - this.margin[0] - this.margin[2],\n          I = this.pdf.internal.pageSize.height - this.margin[0] - this.margin[2],\n          F = 1 === S ? 0 : k + (S - 2) * I;\n        if (0 !== this.ctx.clip_path.length) {\n          var C = this.path;\n          r = JSON.parse(JSON.stringify(this.ctx.clip_path)), this.path = N(r, this.posX + this.margin[3], -F + P + this.ctx.prevPageLastElemOffset), x.call(this, t, !0), this.path = C;\n        }\n        if (n = JSON.parse(JSON.stringify(h)), this.path = N(n, this.posX + this.margin[3], -F + P + this.ctx.prevPageLastElemOffset), !1 === e || 0 === S) {\n          var j = (S > v || S < A) && b.call(this);\n          j && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], _, I, null).clip().discardPath()), x.call(this, t, e), j && this.pdf.restoreGraphicsState();\n        }\n        this.lineWidth = s;\n      } else this.lineWidth = c, x.call(this, t, e), this.lineWidth = s;\n      this.path = h;\n    },\n    x = function (t, e) {\n      if ((\"stroke\" !== t || e || !v.call(this)) && (\"stroke\" === t || e || !m.call(this))) {\n        for (var r, n, i = [], a = this.path, o = 0; o < a.length; o++) {\n          var s = a[o];\n          switch (s.type) {\n            case \"begin\":\n              i.push({\n                begin: !0\n              });\n              break;\n            case \"close\":\n              i.push({\n                close: !0\n              });\n              break;\n            case \"mt\":\n              i.push({\n                start: s,\n                deltas: [],\n                abs: []\n              });\n              break;\n            case \"lt\":\n              var c = i.length;\n              if (a[o - 1] && !isNaN(a[o - 1].x) && (r = [s.x - a[o - 1].x, s.y - a[o - 1].y], c > 0)) for (; c >= 0; c--) if (!0 !== i[c - 1].close && !0 !== i[c - 1].begin) {\n                i[c - 1].deltas.push(r), i[c - 1].abs.push(s);\n                break;\n              }\n              break;\n            case \"bct\":\n              r = [s.x1 - a[o - 1].x, s.y1 - a[o - 1].y, s.x2 - a[o - 1].x, s.y2 - a[o - 1].y, s.x - a[o - 1].x, s.y - a[o - 1].y], i[i.length - 1].deltas.push(r);\n              break;\n            case \"qct\":\n              var u = a[o - 1].x + 2 / 3 * (s.x1 - a[o - 1].x),\n                h = a[o - 1].y + 2 / 3 * (s.y1 - a[o - 1].y),\n                l = s.x + 2 / 3 * (s.x1 - s.x),\n                f = s.y + 2 / 3 * (s.y1 - s.y),\n                d = s.x,\n                p = s.y;\n              r = [u - a[o - 1].x, h - a[o - 1].y, l - a[o - 1].x, f - a[o - 1].y, d - a[o - 1].x, p - a[o - 1].y], i[i.length - 1].deltas.push(r);\n              break;\n            case \"arc\":\n              i.push({\n                deltas: [],\n                abs: [],\n                arc: !0\n              }), Array.isArray(i[i.length - 1].abs) && i[i.length - 1].abs.push(s);\n          }\n        }\n        n = e ? null : \"stroke\" === t ? \"stroke\" : \"fill\";\n        for (var g = !1, b = 0; b < i.length; b++) if (i[b].arc) for (var y = i[b].abs, w = 0; w < y.length; w++) {\n          var N = y[w];\n          \"arc\" === N.type ? P.call(this, N.x, N.y, N.radius, N.startAngle, N.endAngle, N.counterclockwise, void 0, e, !g) : j.call(this, N.x, N.y), g = !0;\n        } else if (!0 === i[b].close) this.pdf.internal.out(\"h\"), g = !1;else if (!0 !== i[b].begin) {\n          var L = i[b].start.x,\n            A = i[b].start.y;\n          O.call(this, i[b].deltas, L, A), g = !0;\n        }\n        n && k.call(this, n), e && I.call(this);\n      }\n    },\n    S = function (t) {\n      var e = this.pdf.internal.getFontSize() / this.pdf.internal.scaleFactor,\n        r = e * (this.pdf.internal.getLineHeightFactor() - 1);\n      switch (this.ctx.textBaseline) {\n        case \"bottom\":\n          return t - r;\n        case \"top\":\n          return t + e - r;\n        case \"hanging\":\n          return t + e - 2 * r;\n        case \"middle\":\n          return t + e / 2 - r;\n        case \"ideographic\":\n          return t;\n        case \"alphabetic\":\n        default:\n          return t;\n      }\n    },\n    _ = function (t) {\n      return t + this.pdf.internal.getFontSize() / this.pdf.internal.scaleFactor * (this.pdf.internal.getLineHeightFactor() - 1);\n    };\n  p.prototype.createLinearGradient = function () {\n    var t = function () {};\n    return t.colorStops = [], t.addColorStop = function (t, e) {\n      this.colorStops.push([t, e]);\n    }, t.getColor = function () {\n      return 0 === this.colorStops.length ? \"#000000\" : this.colorStops[0][1];\n    }, t.isCanvasGradient = !0, t;\n  }, p.prototype.createPattern = function () {\n    return this.createLinearGradient();\n  }, p.prototype.createRadialGradient = function () {\n    return this.createLinearGradient();\n  };\n  var P = function (t, e, r, n, i, a, o, s, c) {\n      for (var u = M.call(this, r, n, i, a), h = 0; h < u.length; h++) {\n        var l = u[h];\n        0 === h && (c ? F.call(this, l.x1 + t, l.y1 + e) : j.call(this, l.x1 + t, l.y1 + e)), B.call(this, t, e, l.x2, l.y2, l.x3, l.y3, l.x4, l.y4);\n      }\n      s ? I.call(this) : k.call(this, o);\n    },\n    k = function (t) {\n      switch (t) {\n        case \"stroke\":\n          this.pdf.internal.out(\"S\");\n          break;\n        case \"fill\":\n          this.pdf.internal.out(\"f\");\n      }\n    },\n    I = function () {\n      this.pdf.clip(), this.pdf.discardPath();\n    },\n    F = function (t, e) {\n      this.pdf.internal.out(n(t) + \" \" + i(e) + \" m\");\n    },\n    C = function (t) {\n      var e;\n      switch (t.align) {\n        case \"right\":\n        case \"end\":\n          e = \"right\";\n          break;\n        case \"center\":\n          e = \"center\";\n          break;\n        case \"left\":\n        case \"start\":\n        default:\n          e = \"left\";\n      }\n      var r = this.pdf.getTextDimensions(t.text),\n        n = S.call(this, t.y),\n        i = _.call(this, n) - r.h,\n        a = this.ctx.transform.applyToPoint(new c(t.x, n)),\n        o = this.ctx.transform.decompose(),\n        s = new h();\n      s = (s = (s = s.multiply(o.translate)).multiply(o.skew)).multiply(o.scale);\n      for (var l, f, d, p = this.ctx.transform.applyToRectangle(new u(t.x, n, r.w, r.h)), g = s.applyToRectangle(new u(t.x, i, r.w, r.h)), m = y.call(this, g), v = [], w = 0; w < m.length; w += 1) -1 === v.indexOf(m[w]) && v.push(m[w]);\n      if (L(v), this.autoPaging) for (var A = v[0], P = v[v.length - 1], k = A; k < P + 1; k++) {\n        this.pdf.setPage(k);\n        var I = 1 === k ? this.posY + this.margin[0] : this.margin[0],\n          F = this.pdf.internal.pageSize.height - this.posY - this.margin[0] - this.margin[2],\n          C = this.pdf.internal.pageSize.height - this.margin[2],\n          j = C - this.margin[0],\n          O = this.pdf.internal.pageSize.width - this.margin[1],\n          B = O - this.margin[3],\n          M = 1 === k ? 0 : F + (k - 2) * j;\n        if (0 !== this.ctx.clip_path.length) {\n          var E = this.path;\n          l = JSON.parse(JSON.stringify(this.ctx.clip_path)), this.path = N(l, this.posX + this.margin[3], -1 * M + I), x.call(this, \"fill\", !0), this.path = E;\n        }\n        var q = N([JSON.parse(JSON.stringify(g))], this.posX + this.margin[3], -M + I + this.ctx.prevPageLastElemOffset)[0];\n        t.scale >= .01 && (f = this.pdf.internal.getFontSize(), this.pdf.setFontSize(f * t.scale), d = this.lineWidth, this.lineWidth = d * t.scale);\n        var D = \"text\" !== this.autoPaging;\n        if (D || q.y + q.h <= C) {\n          if (D || q.y >= I && q.x <= O) {\n            var R = D ? t.text : this.pdf.splitTextToSize(t.text, t.maxWidth || O - q.x)[0],\n              T = N([JSON.parse(JSON.stringify(p))], this.posX + this.margin[3], -M + I + this.ctx.prevPageLastElemOffset)[0],\n              U = D && (k > A || k < P) && b.call(this);\n            U && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], B, j, null).clip().discardPath()), this.pdf.text(R, T.x, T.y, {\n              angle: t.angle,\n              align: e,\n              renderingMode: t.renderingMode\n            }), U && this.pdf.restoreGraphicsState();\n          }\n        } else q.y < C && (this.ctx.prevPageLastElemOffset += C - q.y);\n        t.scale >= .01 && (this.pdf.setFontSize(f), this.lineWidth = d);\n      } else t.scale >= .01 && (f = this.pdf.internal.getFontSize(), this.pdf.setFontSize(f * t.scale), d = this.lineWidth, this.lineWidth = d * t.scale), this.pdf.text(t.text, a.x + this.posX, a.y + this.posY, {\n        angle: t.angle,\n        align: e,\n        renderingMode: t.renderingMode,\n        maxWidth: t.maxWidth\n      }), t.scale >= .01 && (this.pdf.setFontSize(f), this.lineWidth = d);\n    },\n    j = function (t, e, r, a) {\n      r = r || 0, a = a || 0, this.pdf.internal.out(n(t + r) + \" \" + i(e + a) + \" l\");\n    },\n    O = function (t, e, r) {\n      return this.pdf.lines(t, e, r, null, null);\n    },\n    B = function (t, e, n, i, a, c, u, h) {\n      this.pdf.internal.out([r(o(n + t)), r(s(i + e)), r(o(a + t)), r(s(c + e)), r(o(u + t)), r(s(h + e)), \"c\"].join(\" \"));\n    },\n    M = function (t, e, r, n) {\n      for (var i = 2 * Math.PI, a = Math.PI / 2; e > r;) e -= i;\n      var o = Math.abs(r - e);\n      o < i && n && (o = i - o);\n      for (var s = [], c = n ? -1 : 1, u = e; o > 1e-5;) {\n        var h = u + c * Math.min(o, a);\n        s.push(E.call(this, t, u, h)), o -= Math.abs(h - u), u = h;\n      }\n      return s;\n    },\n    E = function (t, e, r) {\n      var n = (r - e) / 2,\n        i = t * Math.cos(n),\n        a = t * Math.sin(n),\n        o = i,\n        s = -a,\n        c = o * o + s * s,\n        u = c + o * i + s * a,\n        h = 4 / 3 * (Math.sqrt(2 * c * u) - u) / (o * a - s * i),\n        l = o - h * s,\n        f = s + h * o,\n        d = l,\n        p = -f,\n        g = n + e,\n        m = Math.cos(g),\n        v = Math.sin(g);\n      return {\n        x1: t * Math.cos(e),\n        y1: t * Math.sin(e),\n        x2: l * m - f * v,\n        y2: l * v + f * m,\n        x3: d * m - p * v,\n        y3: d * v + p * m,\n        x4: t * Math.cos(r),\n        y4: t * Math.sin(r)\n      };\n    },\n    q = function (t) {\n      return 180 * t / Math.PI;\n    },\n    D = function (t, e, r, n, i, a) {\n      var o = t + .5 * (r - t),\n        s = e + .5 * (n - e),\n        c = i + .5 * (r - i),\n        h = a + .5 * (n - a),\n        l = Math.min(t, i, o, c),\n        f = Math.max(t, i, o, c),\n        d = Math.min(e, a, s, h),\n        p = Math.max(e, a, s, h);\n      return new u(l, d, f - l, p - d);\n    },\n    R = function (t, e, r, n, i, a, o, s) {\n      var c,\n        h,\n        l,\n        f,\n        d,\n        p,\n        g,\n        m,\n        v,\n        b,\n        y,\n        w,\n        N,\n        L,\n        A = r - t,\n        x = n - e,\n        S = i - r,\n        _ = a - n,\n        P = o - i,\n        k = s - a;\n      for (h = 0; h < 41; h++) v = (g = (l = t + (c = h / 40) * A) + c * ((d = r + c * S) - l)) + c * (d + c * (i + c * P - d) - g), b = (m = (f = e + c * x) + c * ((p = n + c * _) - f)) + c * (p + c * (a + c * k - p) - m), 0 == h ? (y = v, w = b, N = v, L = b) : (y = Math.min(y, v), w = Math.min(w, b), N = Math.max(N, v), L = Math.max(L, b));\n      return new u(Math.round(y), Math.round(w), Math.round(N - y), Math.round(L - w));\n    },\n    T = function () {\n      if (this.prevLineDash || this.ctx.lineDash.length || this.ctx.lineDashOffset) {\n        var t,\n          e,\n          r = (t = this.ctx.lineDash, e = this.ctx.lineDashOffset, JSON.stringify({\n            lineDash: t,\n            lineDashOffset: e\n          }));\n        this.prevLineDash !== r && (this.pdf.setLineDash(this.ctx.lineDash, this.ctx.lineDashOffset), this.prevLineDash = r);\n      }\n    };\n}(E.API),\n/**\n * @license\n * jsPDF filters PlugIn\n * Copyright (c) 2014 Aras Abbasi\n *\n * Licensed under the MIT License.\n * http://opensource.org/licenses/mit-license\n */\nfunction (t) {\n  var r = function (t) {\n      var e, r, n, i, a, o, s, c, u, h;\n      for (/[^\\x00-\\xFF]/.test(t), r = [], n = 0, i = (t += e = \"\\0\\0\\0\\0\".slice(t.length % 4 || 4)).length; i > n; n += 4) 0 !== (a = (t.charCodeAt(n) << 24) + (t.charCodeAt(n + 1) << 16) + (t.charCodeAt(n + 2) << 8) + t.charCodeAt(n + 3)) ? (o = (a = ((a = ((a = ((a = (a - (h = a % 85)) / 85) - (u = a % 85)) / 85) - (c = a % 85)) / 85) - (s = a % 85)) / 85) % 85, r.push(o + 33, s + 33, c + 33, u + 33, h + 33)) : r.push(122);\n      return function (t, e) {\n        for (var r = e; r > 0; r--) t.pop();\n      }(r, e.length), String.fromCharCode.apply(String, r) + \"~>\";\n    },\n    n = function (t) {\n      var e,\n        r,\n        n,\n        i,\n        a,\n        o = String,\n        s = \"length\",\n        c = 255,\n        u = \"charCodeAt\",\n        h = \"slice\",\n        l = \"replace\";\n      for (t[h](-2), t = t[h](0, -2)[l](/\\s/g, \"\")[l](\"z\", \"!!!!!\"), n = [], i = 0, a = (t += e = \"uuuuu\"[h](t[s] % 5 || 5))[s]; a > i; i += 5) r = 52200625 * (t[u](i) - 33) + 614125 * (t[u](i + 1) - 33) + 7225 * (t[u](i + 2) - 33) + 85 * (t[u](i + 3) - 33) + (t[u](i + 4) - 33), n.push(c & r >> 24, c & r >> 16, c & r >> 8, c & r);\n      return function (t, e) {\n        for (var r = e; r > 0; r--) t.pop();\n      }(n, e[s]), o.fromCharCode.apply(o, n);\n    },\n    i = function (t) {\n      var e = new RegExp(/^([0-9A-Fa-f]{2})+$/);\n      if (-1 !== (t = t.replace(/\\s/g, \"\")).indexOf(\">\") && (t = t.substr(0, t.indexOf(\">\"))), t.length % 2 && (t += \"0\"), !1 === e.test(t)) return \"\";\n      for (var r = \"\", n = 0; n < t.length; n += 2) r += String.fromCharCode(\"0x\" + (t[n] + t[n + 1]));\n      return r;\n    },\n    a = function (t) {\n      for (var r = new Uint8Array(t.length), n = t.length; n--;) r[n] = t.charCodeAt(n);\n      return t = (r = e(r)).reduce(function (t, e) {\n        return t + String.fromCharCode(e);\n      }, \"\");\n    };\n  t.processDataByFilters = function (t, e) {\n    var o = 0,\n      s = t || \"\",\n      c = [];\n    for (\"string\" == typeof (e = e || []) && (e = [e]), o = 0; o < e.length; o += 1) switch (e[o]) {\n      case \"ASCII85Decode\":\n      case \"/ASCII85Decode\":\n        s = n(s), c.push(\"/ASCII85Encode\");\n        break;\n      case \"ASCII85Encode\":\n      case \"/ASCII85Encode\":\n        s = r(s), c.push(\"/ASCII85Decode\");\n        break;\n      case \"ASCIIHexDecode\":\n      case \"/ASCIIHexDecode\":\n        s = i(s), c.push(\"/ASCIIHexEncode\");\n        break;\n      case \"ASCIIHexEncode\":\n      case \"/ASCIIHexEncode\":\n        s = s.split(\"\").map(function (t) {\n          return (\"0\" + t.charCodeAt().toString(16)).slice(-2);\n        }).join(\"\") + \">\", c.push(\"/ASCIIHexDecode\");\n        break;\n      case \"FlateEncode\":\n      case \"/FlateEncode\":\n        s = a(s), c.push(\"/FlateDecode\");\n        break;\n      default:\n        throw new Error('The filter: \"' + e[o] + '\" is not implemented');\n    }\n    return {\n      data: s,\n      reverseChain: c.reverse().join(\" \")\n    };\n  };\n}(E.API),\n/**\n * @license\n * jsPDF fileloading PlugIn\n * Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)\n *\n * Licensed under the MIT License.\n * http://opensource.org/licenses/mit-license\n */\nfunction (t) {\n  t.loadFile = function (t, e, r) {\n    return function (t, e, r) {\n      e = !1 !== e, r = \"function\" == typeof r ? r : function () {};\n      var n = void 0;\n      try {\n        n = function (t, e, r) {\n          var n = new XMLHttpRequest(),\n            i = 0,\n            a = function (t) {\n              var e = t.length,\n                r = [],\n                n = String.fromCharCode;\n              for (i = 0; i < e; i += 1) r.push(n(255 & t.charCodeAt(i)));\n              return r.join(\"\");\n            };\n          if (n.open(\"GET\", t, !e), n.overrideMimeType(\"text/plain; charset=x-user-defined\"), !1 === e && (n.onload = function () {\n            200 === n.status ? r(a(this.responseText)) : r(void 0);\n          }), n.send(null), e && 200 === n.status) return a(n.responseText);\n        }(t, e, r);\n      } catch (t) {}\n      return n;\n    }(t, e, r);\n  }, t.loadImageFile = t.loadFile;\n}(E.API), function (e) {\n  function r() {\n    return (n.html2canvas ? Promise.resolve(n.html2canvas) : import(\"html2canvas\")).catch(function (t) {\n      return Promise.reject(new Error(\"Could not load html2canvas: \" + t));\n    }).then(function (t) {\n      return t.default ? t.default : t;\n    });\n  }\n  function i() {\n    return (n.DOMPurify ? Promise.resolve(n.DOMPurify) : import(\"dompurify\")).catch(function (t) {\n      return Promise.reject(new Error(\"Could not load dompurify: \" + t));\n    }).then(function (t) {\n      return t.default ? t.default : t;\n    });\n  }\n  var a = function (e) {\n      var r = t(e);\n      return \"undefined\" === r ? \"undefined\" : \"string\" === r || e instanceof String ? \"string\" : \"number\" === r || e instanceof Number ? \"number\" : \"function\" === r || e instanceof Function ? \"function\" : e && e.constructor === Array ? \"array\" : e && 1 === e.nodeType ? \"element\" : \"object\" === r ? \"object\" : \"unknown\";\n    },\n    o = function (t, e) {\n      var r = document.createElement(t);\n      for (var n in e.className && (r.className = e.className), e.innerHTML && e.dompurify && (r.innerHTML = e.dompurify.sanitize(e.innerHTML)), e.style) r.style[n] = e.style[n];\n      return r;\n    },\n    s = function t(e) {\n      var r = Object.assign(t.convert(Promise.resolve()), JSON.parse(JSON.stringify(t.template))),\n        n = t.convert(Promise.resolve(), r);\n      return n = (n = n.setProgress(1, t, 1, [t])).set(e);\n    };\n  (s.prototype = Object.create(Promise.prototype)).constructor = s, s.convert = function (t, e) {\n    return t.__proto__ = e || s.prototype, t;\n  }, s.template = {\n    prop: {\n      src: null,\n      container: null,\n      overlay: null,\n      canvas: null,\n      img: null,\n      pdf: null,\n      pageSize: null,\n      callback: function () {}\n    },\n    progress: {\n      val: 0,\n      state: null,\n      n: 0,\n      stack: []\n    },\n    opt: {\n      filename: \"file.pdf\",\n      margin: [0, 0, 0, 0],\n      enableLinks: !0,\n      x: 0,\n      y: 0,\n      html2canvas: {},\n      jsPDF: {},\n      backgroundColor: \"transparent\"\n    }\n  }, s.prototype.from = function (t, e) {\n    return this.then(function () {\n      switch (e = e || function (t) {\n        switch (a(t)) {\n          case \"string\":\n            return \"string\";\n          case \"element\":\n            return \"canvas\" === t.nodeName.toLowerCase() ? \"canvas\" : \"element\";\n          default:\n            return \"unknown\";\n        }\n      }(t)) {\n        case \"string\":\n          return this.then(i).then(function (e) {\n            return this.set({\n              src: o(\"div\", {\n                innerHTML: t,\n                dompurify: e\n              })\n            });\n          });\n        case \"element\":\n          return this.set({\n            src: t\n          });\n        case \"canvas\":\n          return this.set({\n            canvas: t\n          });\n        case \"img\":\n          return this.set({\n            img: t\n          });\n        default:\n          return this.error(\"Unknown source type.\");\n      }\n    });\n  }, s.prototype.to = function (t) {\n    switch (t) {\n      case \"container\":\n        return this.toContainer();\n      case \"canvas\":\n        return this.toCanvas();\n      case \"img\":\n        return this.toImg();\n      case \"pdf\":\n        return this.toPdf();\n      default:\n        return this.error(\"Invalid target.\");\n    }\n  }, s.prototype.toContainer = function () {\n    return this.thenList([function () {\n      return this.prop.src || this.error(\"Cannot duplicate - no source HTML.\");\n    }, function () {\n      return this.prop.pageSize || this.setPageSize();\n    }]).then(function () {\n      var t = {\n          position: \"relative\",\n          display: \"inline-block\",\n          width: (\"number\" != typeof this.opt.width || isNaN(this.opt.width) || \"number\" != typeof this.opt.windowWidth || isNaN(this.opt.windowWidth) ? Math.max(this.prop.src.clientWidth, this.prop.src.scrollWidth, this.prop.src.offsetWidth) : this.opt.windowWidth) + \"px\",\n          left: 0,\n          right: 0,\n          top: 0,\n          margin: \"auto\",\n          backgroundColor: this.opt.backgroundColor\n        },\n        e = function t(e, r) {\n          for (var n = 3 === e.nodeType ? document.createTextNode(e.nodeValue) : e.cloneNode(!1), i = e.firstChild; i; i = i.nextSibling) !0 !== r && 1 === i.nodeType && \"SCRIPT\" === i.nodeName || n.appendChild(t(i, r));\n          return 1 === e.nodeType && (\"CANVAS\" === e.nodeName ? (n.width = e.width, n.height = e.height, n.getContext(\"2d\").drawImage(e, 0, 0)) : \"TEXTAREA\" !== e.nodeName && \"SELECT\" !== e.nodeName || (n.value = e.value), n.addEventListener(\"load\", function () {\n            n.scrollTop = e.scrollTop, n.scrollLeft = e.scrollLeft;\n          }, !0)), n;\n        }(this.prop.src, this.opt.html2canvas.javascriptEnabled);\n      \"BODY\" === e.tagName && (t.height = Math.max(document.body.scrollHeight, document.body.offsetHeight, document.documentElement.clientHeight, document.documentElement.scrollHeight, document.documentElement.offsetHeight) + \"px\"), this.prop.overlay = o(\"div\", {\n        className: \"html2pdf__overlay\",\n        style: {\n          position: \"fixed\",\n          overflow: \"hidden\",\n          zIndex: 1e3,\n          left: \"-100000px\",\n          right: 0,\n          bottom: 0,\n          top: 0\n        }\n      }), this.prop.container = o(\"div\", {\n        className: \"html2pdf__container\",\n        style: t\n      }), this.prop.container.appendChild(e), this.prop.container.firstChild.appendChild(o(\"div\", {\n        style: {\n          clear: \"both\",\n          border: \"0 none transparent\",\n          margin: 0,\n          padding: 0,\n          height: 0\n        }\n      })), this.prop.container.style.float = \"none\", this.prop.overlay.appendChild(this.prop.container), document.body.appendChild(this.prop.overlay), this.prop.container.firstChild.style.position = \"relative\", this.prop.container.height = Math.max(this.prop.container.firstChild.clientHeight, this.prop.container.firstChild.scrollHeight, this.prop.container.firstChild.offsetHeight) + \"px\";\n    });\n  }, s.prototype.toCanvas = function () {\n    var t = [function () {\n      return document.body.contains(this.prop.container) || this.toContainer();\n    }];\n    return this.thenList(t).then(r).then(function (t) {\n      var e = Object.assign({}, this.opt.html2canvas);\n      return delete e.onrendered, t(this.prop.container, e);\n    }).then(function (t) {\n      (this.opt.html2canvas.onrendered || function () {})(t), this.prop.canvas = t, document.body.removeChild(this.prop.overlay);\n    });\n  }, s.prototype.toContext2d = function () {\n    var t = [function () {\n      return document.body.contains(this.prop.container) || this.toContainer();\n    }];\n    return this.thenList(t).then(r).then(function (t) {\n      var e = this.opt.jsPDF,\n        r = this.opt.fontFaces,\n        n = \"number\" != typeof this.opt.width || isNaN(this.opt.width) || \"number\" != typeof this.opt.windowWidth || isNaN(this.opt.windowWidth) ? 1 : this.opt.width / this.opt.windowWidth,\n        i = Object.assign({\n          async: !0,\n          allowTaint: !0,\n          scale: n,\n          scrollX: this.opt.scrollX || 0,\n          scrollY: this.opt.scrollY || 0,\n          backgroundColor: \"#ffffff\",\n          imageTimeout: 15e3,\n          logging: !0,\n          proxy: null,\n          removeContainer: !0,\n          foreignObjectRendering: !1,\n          useCORS: !1\n        }, this.opt.html2canvas);\n      if (delete i.onrendered, e.context2d.autoPaging = void 0 === this.opt.autoPaging || this.opt.autoPaging, e.context2d.posX = this.opt.x, e.context2d.posY = this.opt.y, e.context2d.margin = this.opt.margin, e.context2d.fontFaces = r, r) for (var a = 0; a < r.length; ++a) {\n        var o = r[a],\n          s = o.src.find(function (t) {\n            return \"truetype\" === t.format;\n          });\n        s && e.addFont(s.url, o.ref.name, o.ref.style);\n      }\n      return i.windowHeight = i.windowHeight || 0, i.windowHeight = 0 == i.windowHeight ? Math.max(this.prop.container.clientHeight, this.prop.container.scrollHeight, this.prop.container.offsetHeight) : i.windowHeight, e.context2d.save(!0), t(this.prop.container, i);\n    }).then(function (t) {\n      this.opt.jsPDF.context2d.restore(!0), (this.opt.html2canvas.onrendered || function () {})(t), this.prop.canvas = t, document.body.removeChild(this.prop.overlay);\n    });\n  }, s.prototype.toImg = function () {\n    return this.thenList([function () {\n      return this.prop.canvas || this.toCanvas();\n    }]).then(function () {\n      var t = this.prop.canvas.toDataURL(\"image/\" + this.opt.image.type, this.opt.image.quality);\n      this.prop.img = document.createElement(\"img\"), this.prop.img.src = t;\n    });\n  }, s.prototype.toPdf = function () {\n    return this.thenList([function () {\n      return this.toContext2d();\n    }]).then(function () {\n      this.prop.pdf = this.prop.pdf || this.opt.jsPDF;\n    });\n  }, s.prototype.output = function (t, e, r) {\n    return \"img\" === (r = r || \"pdf\").toLowerCase() || \"image\" === r.toLowerCase() ? this.outputImg(t, e) : this.outputPdf(t, e);\n  }, s.prototype.outputPdf = function (t, e) {\n    return this.thenList([function () {\n      return this.prop.pdf || this.toPdf();\n    }]).then(function () {\n      return this.prop.pdf.output(t, e);\n    });\n  }, s.prototype.outputImg = function (t) {\n    return this.thenList([function () {\n      return this.prop.img || this.toImg();\n    }]).then(function () {\n      switch (t) {\n        case void 0:\n        case \"img\":\n          return this.prop.img;\n        case \"datauristring\":\n        case \"dataurlstring\":\n          return this.prop.img.src;\n        case \"datauri\":\n        case \"dataurl\":\n          return document.location.href = this.prop.img.src;\n        default:\n          throw 'Image output type \"' + t + '\" is not supported.';\n      }\n    });\n  }, s.prototype.save = function (t) {\n    return this.thenList([function () {\n      return this.prop.pdf || this.toPdf();\n    }]).set(t ? {\n      filename: t\n    } : null).then(function () {\n      this.prop.pdf.save(this.opt.filename);\n    });\n  }, s.prototype.doCallback = function () {\n    return this.thenList([function () {\n      return this.prop.pdf || this.toPdf();\n    }]).then(function () {\n      this.prop.callback(this.prop.pdf);\n    });\n  }, s.prototype.set = function (t) {\n    if (\"object\" !== a(t)) return this;\n    var e = Object.keys(t || {}).map(function (e) {\n      if (e in s.template.prop) return function () {\n        this.prop[e] = t[e];\n      };\n      switch (e) {\n        case \"margin\":\n          return this.setMargin.bind(this, t.margin);\n        case \"jsPDF\":\n          return function () {\n            return this.opt.jsPDF = t.jsPDF, this.setPageSize();\n          };\n        case \"pageSize\":\n          return this.setPageSize.bind(this, t.pageSize);\n        default:\n          return function () {\n            this.opt[e] = t[e];\n          };\n      }\n    }, this);\n    return this.then(function () {\n      return this.thenList(e);\n    });\n  }, s.prototype.get = function (t, e) {\n    return this.then(function () {\n      var r = t in s.template.prop ? this.prop[t] : this.opt[t];\n      return e ? e(r) : r;\n    });\n  }, s.prototype.setMargin = function (t) {\n    return this.then(function () {\n      switch (a(t)) {\n        case \"number\":\n          t = [t, t, t, t];\n        case \"array\":\n          if (2 === t.length && (t = [t[0], t[1], t[0], t[1]]), 4 === t.length) break;\n        default:\n          return this.error(\"Invalid margin array.\");\n      }\n      this.opt.margin = t;\n    }).then(this.setPageSize);\n  }, s.prototype.setPageSize = function (t) {\n    function e(t, e) {\n      return Math.floor(t * e / 72 * 96);\n    }\n    return this.then(function () {\n      (t = t || E.getPageSize(this.opt.jsPDF)).hasOwnProperty(\"inner\") || (t.inner = {\n        width: t.width - this.opt.margin[1] - this.opt.margin[3],\n        height: t.height - this.opt.margin[0] - this.opt.margin[2]\n      }, t.inner.px = {\n        width: e(t.inner.width, t.k),\n        height: e(t.inner.height, t.k)\n      }, t.inner.ratio = t.inner.height / t.inner.width), this.prop.pageSize = t;\n    });\n  }, s.prototype.setProgress = function (t, e, r, n) {\n    return null != t && (this.progress.val = t), null != e && (this.progress.state = e), null != r && (this.progress.n = r), null != n && (this.progress.stack = n), this.progress.ratio = this.progress.val / this.progress.state, this;\n  }, s.prototype.updateProgress = function (t, e, r, n) {\n    return this.setProgress(t ? this.progress.val + t : null, e || null, r ? this.progress.n + r : null, n ? this.progress.stack.concat(n) : null);\n  }, s.prototype.then = function (t, e) {\n    var r = this;\n    return this.thenCore(t, e, function (t, e) {\n      return r.updateProgress(null, null, 1, [t]), Promise.prototype.then.call(this, function (e) {\n        return r.updateProgress(null, t), e;\n      }).then(t, e).then(function (t) {\n        return r.updateProgress(1), t;\n      });\n    });\n  }, s.prototype.thenCore = function (t, e, r) {\n    r = r || Promise.prototype.then;\n    t && (t = t.bind(this)), e && (e = e.bind(this));\n    var n = -1 !== Promise.toString().indexOf(\"[native code]\") && \"Promise\" === Promise.name ? this : s.convert(Object.assign({}, this), Promise.prototype),\n      i = r.call(n, t, e);\n    return s.convert(i, this.__proto__);\n  }, s.prototype.thenExternal = function (t, e) {\n    return Promise.prototype.then.call(this, t, e);\n  }, s.prototype.thenList = function (t) {\n    var e = this;\n    return t.forEach(function (t) {\n      e = e.thenCore(t);\n    }), e;\n  }, s.prototype.catch = function (t) {\n    t && (t = t.bind(this));\n    var e = Promise.prototype.catch.call(this, t);\n    return s.convert(e, this);\n  }, s.prototype.catchExternal = function (t) {\n    return Promise.prototype.catch.call(this, t);\n  }, s.prototype.error = function (t) {\n    return this.then(function () {\n      throw new Error(t);\n    });\n  }, s.prototype.using = s.prototype.set, s.prototype.saveAs = s.prototype.save, s.prototype.export = s.prototype.output, s.prototype.run = s.prototype.then, E.getPageSize = function (e, r, n) {\n    if (\"object\" === t(e)) {\n      var i = e;\n      e = i.orientation, r = i.unit || r, n = i.format || n;\n    }\n    r = r || \"mm\", n = n || \"a4\", e = (\"\" + (e || \"P\")).toLowerCase();\n    var a,\n      o = (\"\" + n).toLowerCase(),\n      s = {\n        a0: [2383.94, 3370.39],\n        a1: [1683.78, 2383.94],\n        a2: [1190.55, 1683.78],\n        a3: [841.89, 1190.55],\n        a4: [595.28, 841.89],\n        a5: [419.53, 595.28],\n        a6: [297.64, 419.53],\n        a7: [209.76, 297.64],\n        a8: [147.4, 209.76],\n        a9: [104.88, 147.4],\n        a10: [73.7, 104.88],\n        b0: [2834.65, 4008.19],\n        b1: [2004.09, 2834.65],\n        b2: [1417.32, 2004.09],\n        b3: [1000.63, 1417.32],\n        b4: [708.66, 1000.63],\n        b5: [498.9, 708.66],\n        b6: [354.33, 498.9],\n        b7: [249.45, 354.33],\n        b8: [175.75, 249.45],\n        b9: [124.72, 175.75],\n        b10: [87.87, 124.72],\n        c0: [2599.37, 3676.54],\n        c1: [1836.85, 2599.37],\n        c2: [1298.27, 1836.85],\n        c3: [918.43, 1298.27],\n        c4: [649.13, 918.43],\n        c5: [459.21, 649.13],\n        c6: [323.15, 459.21],\n        c7: [229.61, 323.15],\n        c8: [161.57, 229.61],\n        c9: [113.39, 161.57],\n        c10: [79.37, 113.39],\n        dl: [311.81, 623.62],\n        letter: [612, 792],\n        \"government-letter\": [576, 756],\n        legal: [612, 1008],\n        \"junior-legal\": [576, 360],\n        ledger: [1224, 792],\n        tabloid: [792, 1224],\n        \"credit-card\": [153, 243]\n      };\n    switch (r) {\n      case \"pt\":\n        a = 1;\n        break;\n      case \"mm\":\n        a = 72 / 25.4;\n        break;\n      case \"cm\":\n        a = 72 / 2.54;\n        break;\n      case \"in\":\n        a = 72;\n        break;\n      case \"px\":\n        a = .75;\n        break;\n      case \"pc\":\n      case \"em\":\n        a = 12;\n        break;\n      case \"ex\":\n        a = 6;\n        break;\n      default:\n        throw \"Invalid unit: \" + r;\n    }\n    var c,\n      u = 0,\n      h = 0;\n    if (s.hasOwnProperty(o)) u = s[o][1] / a, h = s[o][0] / a;else try {\n      u = n[1], h = n[0];\n    } catch (t) {\n      throw new Error(\"Invalid format: \" + n);\n    }\n    if (\"p\" === e || \"portrait\" === e) e = \"p\", h > u && (c = h, h = u, u = c);else {\n      if (\"l\" !== e && \"landscape\" !== e) throw \"Invalid orientation: \" + e;\n      e = \"l\", u > h && (c = h, h = u, u = c);\n    }\n    return {\n      width: h,\n      height: u,\n      unit: r,\n      k: a,\n      orientation: e\n    };\n  }, e.html = function (t, e) {\n    (e = e || {}).callback = e.callback || function () {}, e.html2canvas = e.html2canvas || {}, e.html2canvas.canvas = e.html2canvas.canvas || this.canvas, e.jsPDF = e.jsPDF || this, e.fontFaces = e.fontFaces ? e.fontFaces.map(jt) : null;\n    var r = new s(e);\n    return e.worker ? r : r.from(t).doCallback();\n  };\n}(E.API), E.API.addJS = function (t) {\n  return Ht = t, this.internal.events.subscribe(\"postPutResources\", function () {\n    Ut = this.internal.newObject(), this.internal.out(\"<<\"), this.internal.out(\"/Names [(EmbeddedJS) \" + (Ut + 1) + \" 0 R]\"), this.internal.out(\">>\"), this.internal.out(\"endobj\"), zt = this.internal.newObject(), this.internal.out(\"<<\"), this.internal.out(\"/S /JavaScript\"), this.internal.out(\"/JS (\" + Ht + \")\"), this.internal.out(\">>\"), this.internal.out(\"endobj\");\n  }), this.internal.events.subscribe(\"putCatalog\", function () {\n    void 0 !== Ut && void 0 !== zt && this.internal.out(\"/Names <</JavaScript \" + Ut + \" 0 R>>\");\n  }), this;\n},\n/**\n * @license\n * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv\n *\n * Licensed under the MIT License.\n * http://opensource.org/licenses/mit-license\n */\nfunction (t) {\n  var e;\n  t.events.push([\"postPutResources\", function () {\n    var t = this,\n      r = /^(\\d+) 0 obj$/;\n    if (this.outline.root.children.length > 0) for (var n = t.outline.render().split(/\\r\\n/), i = 0; i < n.length; i++) {\n      var a = n[i],\n        o = r.exec(a);\n      if (null != o) {\n        var s = o[1];\n        t.internal.newObjectDeferredBegin(s, !1);\n      }\n      t.internal.write(a);\n    }\n    if (this.outline.createNamedDestinations) {\n      var c = this.internal.pages.length,\n        u = [];\n      for (i = 0; i < c; i++) {\n        var h = t.internal.newObject();\n        u.push(h);\n        var l = t.internal.getPageInfo(i + 1);\n        t.internal.write(\"<< /D[\" + l.objId + \" 0 R /XYZ null null null]>> endobj\");\n      }\n      var f = t.internal.newObject();\n      t.internal.write(\"<< /Names [ \");\n      for (i = 0; i < u.length; i++) t.internal.write(\"(page_\" + (i + 1) + \")\" + u[i] + \" 0 R\");\n      t.internal.write(\" ] >>\", \"endobj\"), e = t.internal.newObject(), t.internal.write(\"<< /Dests \" + f + \" 0 R\"), t.internal.write(\">>\", \"endobj\");\n    }\n  }]), t.events.push([\"putCatalog\", function () {\n    this.outline.root.children.length > 0 && (this.internal.write(\"/Outlines\", this.outline.makeRef(this.outline.root)), this.outline.createNamedDestinations && this.internal.write(\"/Names \" + e + \" 0 R\"));\n  }]), t.events.push([\"initialized\", function () {\n    var t = this;\n    t.outline = {\n      createNamedDestinations: !1,\n      root: {\n        children: []\n      }\n    }, t.outline.add = function (t, e, r) {\n      var n = {\n        title: e,\n        options: r,\n        children: []\n      };\n      return null == t && (t = this.root), t.children.push(n), n;\n    }, t.outline.render = function () {\n      return this.ctx = {}, this.ctx.val = \"\", this.ctx.pdf = t, this.genIds_r(this.root), this.renderRoot(this.root), this.renderItems(this.root), this.ctx.val;\n    }, t.outline.genIds_r = function (e) {\n      e.id = t.internal.newObjectDeferred();\n      for (var r = 0; r < e.children.length; r++) this.genIds_r(e.children[r]);\n    }, t.outline.renderRoot = function (t) {\n      this.objStart(t), this.line(\"/Type /Outlines\"), t.children.length > 0 && (this.line(\"/First \" + this.makeRef(t.children[0])), this.line(\"/Last \" + this.makeRef(t.children[t.children.length - 1]))), this.line(\"/Count \" + this.count_r({\n        count: 0\n      }, t)), this.objEnd();\n    }, t.outline.renderItems = function (e) {\n      for (var r = this.ctx.pdf.internal.getVerticalCoordinateString, n = 0; n < e.children.length; n++) {\n        var i = e.children[n];\n        this.objStart(i), this.line(\"/Title \" + this.makeString(i.title)), this.line(\"/Parent \" + this.makeRef(e)), n > 0 && this.line(\"/Prev \" + this.makeRef(e.children[n - 1])), n < e.children.length - 1 && this.line(\"/Next \" + this.makeRef(e.children[n + 1])), i.children.length > 0 && (this.line(\"/First \" + this.makeRef(i.children[0])), this.line(\"/Last \" + this.makeRef(i.children[i.children.length - 1])));\n        var a = this.count = this.count_r({\n          count: 0\n        }, i);\n        if (a > 0 && this.line(\"/Count \" + a), i.options && i.options.pageNumber) {\n          var o = t.internal.getPageInfo(i.options.pageNumber);\n          this.line(\"/Dest [\" + o.objId + \" 0 R /XYZ 0 \" + r(0) + \" 0]\");\n        }\n        this.objEnd();\n      }\n      for (var s = 0; s < e.children.length; s++) this.renderItems(e.children[s]);\n    }, t.outline.line = function (t) {\n      this.ctx.val += t + \"\\r\\n\";\n    }, t.outline.makeRef = function (t) {\n      return t.id + \" 0 R\";\n    }, t.outline.makeString = function (e) {\n      return \"(\" + t.internal.pdfEscape(e) + \")\";\n    }, t.outline.objStart = function (t) {\n      this.ctx.val += \"\\r\\n\" + t.id + \" 0 obj\\r\\n<<\\r\\n\";\n    }, t.outline.objEnd = function () {\n      this.ctx.val += \">> \\r\\nendobj\\r\\n\";\n    }, t.outline.count_r = function (t, e) {\n      for (var r = 0; r < e.children.length; r++) t.count++, this.count_r(t, e.children[r]);\n      return t.count;\n    };\n  }]);\n}(E.API),\n/**\n * @license\n *\n * Licensed under the MIT License.\n * http://opensource.org/licenses/mit-license\n */\nfunction (t) {\n  var e = [192, 193, 194, 195, 196, 197, 198, 199];\n  t.processJPEG = function (t, r, n, i, a, o) {\n    var s,\n      c = this.decode.DCT_DECODE,\n      u = null;\n    if (\"string\" == typeof t || this.__addimage__.isArrayBuffer(t) || this.__addimage__.isArrayBufferView(t)) {\n      switch (t = a || t, t = this.__addimage__.isArrayBuffer(t) ? new Uint8Array(t) : t, (s = function (t) {\n        for (var r, n = 256 * t.charCodeAt(4) + t.charCodeAt(5), i = t.length, a = {\n            width: 0,\n            height: 0,\n            numcomponents: 1\n          }, o = 4; o < i; o += 2) {\n          if (o += n, -1 !== e.indexOf(t.charCodeAt(o + 1))) {\n            r = 256 * t.charCodeAt(o + 5) + t.charCodeAt(o + 6), a = {\n              width: 256 * t.charCodeAt(o + 7) + t.charCodeAt(o + 8),\n              height: r,\n              numcomponents: t.charCodeAt(o + 9)\n            };\n            break;\n          }\n          n = 256 * t.charCodeAt(o + 2) + t.charCodeAt(o + 3);\n        }\n        return a;\n      }(t = this.__addimage__.isArrayBufferView(t) ? this.__addimage__.arrayBufferToBinaryString(t) : t)).numcomponents) {\n        case 1:\n          o = this.color_spaces.DEVICE_GRAY;\n          break;\n        case 4:\n          o = this.color_spaces.DEVICE_CMYK;\n          break;\n        case 3:\n          o = this.color_spaces.DEVICE_RGB;\n      }\n      u = {\n        data: t,\n        width: s.width,\n        height: s.height,\n        colorSpace: o,\n        bitsPerComponent: 8,\n        filter: c,\n        index: r,\n        alias: n\n      };\n    }\n    return u;\n  };\n}(E.API);\nvar Vt,\n  Gt,\n  Yt,\n  Jt,\n  Xt,\n  Kt = function () {\n    var t, e, i;\n    function a(t) {\n      var e, r, n, i, a, o, s, c, u, h, l, f, d, p;\n      for (this.data = t, this.pos = 8, this.palette = [], this.imgData = [], this.transparency = {}, this.animation = null, this.text = {}, o = null;;) {\n        switch (e = this.readUInt32(), u = function () {\n          var t, e;\n          for (e = [], t = 0; t < 4; ++t) e.push(String.fromCharCode(this.data[this.pos++]));\n          return e;\n        }.call(this).join(\"\")) {\n          case \"IHDR\":\n            this.width = this.readUInt32(), this.height = this.readUInt32(), this.bits = this.data[this.pos++], this.colorType = this.data[this.pos++], this.compressionMethod = this.data[this.pos++], this.filterMethod = this.data[this.pos++], this.interlaceMethod = this.data[this.pos++];\n            break;\n          case \"acTL\":\n            this.animation = {\n              numFrames: this.readUInt32(),\n              numPlays: this.readUInt32() || 1 / 0,\n              frames: []\n            };\n            break;\n          case \"PLTE\":\n            this.palette = this.read(e);\n            break;\n          case \"fcTL\":\n            o && this.animation.frames.push(o), this.pos += 4, o = {\n              width: this.readUInt32(),\n              height: this.readUInt32(),\n              xOffset: this.readUInt32(),\n              yOffset: this.readUInt32()\n            }, a = this.readUInt16(), i = this.readUInt16() || 100, o.delay = 1e3 * a / i, o.disposeOp = this.data[this.pos++], o.blendOp = this.data[this.pos++], o.data = [];\n            break;\n          case \"IDAT\":\n          case \"fdAT\":\n            for (\"fdAT\" === u && (this.pos += 4, e -= 4), t = (null != o ? o.data : void 0) || this.imgData, f = 0; 0 <= e ? f < e : f > e; 0 <= e ? ++f : --f) t.push(this.data[this.pos++]);\n            break;\n          case \"tRNS\":\n            switch (this.transparency = {}, this.colorType) {\n              case 3:\n                if (n = this.palette.length / 3, this.transparency.indexed = this.read(e), this.transparency.indexed.length > n) throw new Error(\"More transparent colors than palette size\");\n                if ((h = n - this.transparency.indexed.length) > 0) for (d = 0; 0 <= h ? d < h : d > h; 0 <= h ? ++d : --d) this.transparency.indexed.push(255);\n                break;\n              case 0:\n                this.transparency.grayscale = this.read(e)[0];\n                break;\n              case 2:\n                this.transparency.rgb = this.read(e);\n            }\n            break;\n          case \"tEXt\":\n            s = (l = this.read(e)).indexOf(0), c = String.fromCharCode.apply(String, l.slice(0, s)), this.text[c] = String.fromCharCode.apply(String, l.slice(s + 1));\n            break;\n          case \"IEND\":\n            return o && this.animation.frames.push(o), this.colors = function () {\n              switch (this.colorType) {\n                case 0:\n                case 3:\n                case 4:\n                  return 1;\n                case 2:\n                case 6:\n                  return 3;\n              }\n            }.call(this), this.hasAlphaChannel = 4 === (p = this.colorType) || 6 === p, r = this.colors + (this.hasAlphaChannel ? 1 : 0), this.pixelBitlength = this.bits * r, this.colorSpace = function () {\n              switch (this.colors) {\n                case 1:\n                  return \"DeviceGray\";\n                case 3:\n                  return \"DeviceRGB\";\n              }\n            }.call(this), void (this.imgData = new Uint8Array(this.imgData));\n          default:\n            this.pos += e;\n        }\n        if (this.pos += 4, this.pos > this.data.length) throw new Error(\"Incomplete or corrupt PNG file\");\n      }\n    }\n    a.prototype.read = function (t) {\n      var e, r;\n      for (r = [], e = 0; 0 <= t ? e < t : e > t; 0 <= t ? ++e : --e) r.push(this.data[this.pos++]);\n      return r;\n    }, a.prototype.readUInt32 = function () {\n      return this.data[this.pos++] << 24 | this.data[this.pos++] << 16 | this.data[this.pos++] << 8 | this.data[this.pos++];\n    }, a.prototype.readUInt16 = function () {\n      return this.data[this.pos++] << 8 | this.data[this.pos++];\n    }, a.prototype.decodePixels = function (t) {\n      var e = this.pixelBitlength / 8,\n        n = new Uint8Array(this.width * this.height * e),\n        i = 0,\n        a = this;\n      if (null == t && (t = this.imgData), 0 === t.length) return new Uint8Array(0);\n      function o(r, o, s, c) {\n        var u,\n          h,\n          l,\n          f,\n          d,\n          p,\n          g,\n          m,\n          v,\n          b,\n          y,\n          w,\n          N,\n          L,\n          A,\n          x,\n          S,\n          _,\n          P,\n          k,\n          I,\n          F = Math.ceil((a.width - r) / s),\n          C = Math.ceil((a.height - o) / c),\n          j = a.width == F && a.height == C;\n        for (L = e * F, w = j ? n : new Uint8Array(L * C), p = t.length, N = 0, h = 0; N < C && i < p;) {\n          switch (t[i++]) {\n            case 0:\n              for (f = S = 0; S < L; f = S += 1) w[h++] = t[i++];\n              break;\n            case 1:\n              for (f = _ = 0; _ < L; f = _ += 1) u = t[i++], d = f < e ? 0 : w[h - e], w[h++] = (u + d) % 256;\n              break;\n            case 2:\n              for (f = P = 0; P < L; f = P += 1) u = t[i++], l = (f - f % e) / e, A = N && w[(N - 1) * L + l * e + f % e], w[h++] = (A + u) % 256;\n              break;\n            case 3:\n              for (f = k = 0; k < L; f = k += 1) u = t[i++], l = (f - f % e) / e, d = f < e ? 0 : w[h - e], A = N && w[(N - 1) * L + l * e + f % e], w[h++] = (u + Math.floor((d + A) / 2)) % 256;\n              break;\n            case 4:\n              for (f = I = 0; I < L; f = I += 1) u = t[i++], l = (f - f % e) / e, d = f < e ? 0 : w[h - e], 0 === N ? A = x = 0 : (A = w[(N - 1) * L + l * e + f % e], x = l && w[(N - 1) * L + (l - 1) * e + f % e]), g = d + A - x, m = Math.abs(g - d), b = Math.abs(g - A), y = Math.abs(g - x), v = m <= b && m <= y ? d : b <= y ? A : x, w[h++] = (u + v) % 256;\n              break;\n            default:\n              throw new Error(\"Invalid filter algorithm: \" + t[i - 1]);\n          }\n          if (!j) {\n            var O = ((o + N * c) * a.width + r) * e,\n              B = N * L;\n            for (f = 0; f < F; f += 1) {\n              for (var M = 0; M < e; M += 1) n[O++] = w[B++];\n              O += (s - 1) * e;\n            }\n          }\n          N++;\n        }\n      }\n      return t = r(t), 1 == a.interlaceMethod ? (o(0, 0, 8, 8), o(4, 0, 8, 8), o(0, 4, 4, 8), o(2, 0, 4, 4), o(0, 2, 2, 4), o(1, 0, 2, 2), o(0, 1, 1, 2)) : o(0, 0, 1, 1), n;\n    }, a.prototype.decodePalette = function () {\n      var t, e, r, n, i, a, o, s, c;\n      for (r = this.palette, a = this.transparency.indexed || [], i = new Uint8Array((a.length || 0) + r.length), n = 0, t = 0, e = o = 0, s = r.length; o < s; e = o += 3) i[n++] = r[e], i[n++] = r[e + 1], i[n++] = r[e + 2], i[n++] = null != (c = a[t++]) ? c : 255;\n      return i;\n    }, a.prototype.copyToImageData = function (t, e) {\n      var r, n, i, a, o, s, c, u, h, l, f;\n      if (n = this.colors, h = null, r = this.hasAlphaChannel, this.palette.length && (h = null != (f = this._decodedPalette) ? f : this._decodedPalette = this.decodePalette(), n = 4, r = !0), u = (i = t.data || t).length, o = h || e, a = s = 0, 1 === n) for (; a < u;) c = h ? 4 * e[a / 4] : s, l = o[c++], i[a++] = l, i[a++] = l, i[a++] = l, i[a++] = r ? o[c++] : 255, s = c;else for (; a < u;) c = h ? 4 * e[a / 4] : s, i[a++] = o[c++], i[a++] = o[c++], i[a++] = o[c++], i[a++] = r ? o[c++] : 255, s = c;\n    }, a.prototype.decode = function () {\n      var t;\n      return t = new Uint8Array(this.width * this.height * 4), this.copyToImageData(t, this.decodePixels()), t;\n    };\n    var o = function () {\n      if (\"[object Window]\" === Object.prototype.toString.call(n)) {\n        try {\n          e = n.document.createElement(\"canvas\"), i = e.getContext(\"2d\");\n        } catch (t) {\n          return !1;\n        }\n        return !0;\n      }\n      return !1;\n    };\n    return o(), t = function (t) {\n      var r;\n      if (!0 === o()) return i.width = t.width, i.height = t.height, i.clearRect(0, 0, t.width, t.height), i.putImageData(t, 0, 0), (r = new Image()).src = e.toDataURL(), r;\n      throw new Error(\"This method requires a Browser with Canvas-capability.\");\n    }, a.prototype.decodeFrames = function (e) {\n      var r, n, i, a, o, s, c, u;\n      if (this.animation) {\n        for (u = [], n = o = 0, s = (c = this.animation.frames).length; o < s; n = ++o) r = c[n], i = e.createImageData(r.width, r.height), a = this.decodePixels(new Uint8Array(r.data)), this.copyToImageData(i, a), r.imageData = i, u.push(r.image = t(i));\n        return u;\n      }\n    }, a.prototype.renderFrame = function (t, e) {\n      var r, n, i;\n      return r = (n = this.animation.frames)[e], i = n[e - 1], 0 === e && t.clearRect(0, 0, this.width, this.height), 1 === (null != i ? i.disposeOp : void 0) ? t.clearRect(i.xOffset, i.yOffset, i.width, i.height) : 2 === (null != i ? i.disposeOp : void 0) && t.putImageData(i.imageData, i.xOffset, i.yOffset), 0 === r.blendOp && t.clearRect(r.xOffset, r.yOffset, r.width, r.height), t.drawImage(r.image, r.xOffset, r.yOffset);\n    }, a.prototype.animate = function (t) {\n      var e,\n        r,\n        n,\n        i,\n        a,\n        o,\n        s = this;\n      return r = 0, o = this.animation, i = o.numFrames, n = o.frames, a = o.numPlays, (e = function () {\n        var o, c;\n        if (o = r++ % i, c = n[o], s.renderFrame(t, o), i > 1 && r / i < a) return s.animation._timeout = setTimeout(e, c.delay);\n      })();\n    }, a.prototype.stopAnimation = function () {\n      var t;\n      return clearTimeout(null != (t = this.animation) ? t._timeout : void 0);\n    }, a.prototype.render = function (t) {\n      var e, r;\n      return t._png && t._png.stopAnimation(), t._png = this, t.width = this.width, t.height = this.height, e = t.getContext(\"2d\"), this.animation ? (this.decodeFrames(e), this.animate(e)) : (r = e.createImageData(this.width, this.height), this.copyToImageData(r, this.decodePixels()), e.putImageData(r, 0, 0));\n    }, a;\n  }();\n/**\n * @license\n *\n * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * \"Software\"), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modify, merge, publish,\n * distribute, sublicense, and/or sell copies of the Software, and to\n * permit persons to whom the Software is furnished to do so, subject to\n * the following conditions:\n *\n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n * ====================================================================\n */\n/**\n * @license\n * (c) Dean McNamee <dean@gmail.com>, 2013.\n *\n * https://github.com/deanm/omggif\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n *\n * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,\n * including animation and compression.  It does not rely on any specific\n * underlying system, so should run in the browser, Node, or Plask.\n */\nfunction Zt(t) {\n  var e = 0;\n  if (71 !== t[e++] || 73 !== t[e++] || 70 !== t[e++] || 56 !== t[e++] || 56 != (t[e++] + 1 & 253) || 97 !== t[e++]) throw new Error(\"Invalid GIF 87a/89a header.\");\n  var r = t[e++] | t[e++] << 8,\n    n = t[e++] | t[e++] << 8,\n    i = t[e++],\n    a = i >> 7,\n    o = 1 << (7 & i) + 1;\n  t[e++];\n  t[e++];\n  var s = null,\n    c = null;\n  a && (s = e, c = o, e += 3 * o);\n  var u = !0,\n    h = [],\n    l = 0,\n    f = null,\n    d = 0,\n    p = null;\n  for (this.width = r, this.height = n; u && e < t.length;) switch (t[e++]) {\n    case 33:\n      switch (t[e++]) {\n        case 255:\n          if (11 !== t[e] || 78 == t[e + 1] && 69 == t[e + 2] && 84 == t[e + 3] && 83 == t[e + 4] && 67 == t[e + 5] && 65 == t[e + 6] && 80 == t[e + 7] && 69 == t[e + 8] && 50 == t[e + 9] && 46 == t[e + 10] && 48 == t[e + 11] && 3 == t[e + 12] && 1 == t[e + 13] && 0 == t[e + 16]) e += 14, p = t[e++] | t[e++] << 8, e++;else for (e += 12;;) {\n            if (!((P = t[e++]) >= 0)) throw Error(\"Invalid block size\");\n            if (0 === P) break;\n            e += P;\n          }\n          break;\n        case 249:\n          if (4 !== t[e++] || 0 !== t[e + 4]) throw new Error(\"Invalid graphics extension block.\");\n          var g = t[e++];\n          l = t[e++] | t[e++] << 8, f = t[e++], 0 == (1 & g) && (f = null), d = g >> 2 & 7, e++;\n          break;\n        case 254:\n          for (;;) {\n            if (!((P = t[e++]) >= 0)) throw Error(\"Invalid block size\");\n            if (0 === P) break;\n            e += P;\n          }\n          break;\n        default:\n          throw new Error(\"Unknown graphic control label: 0x\" + t[e - 1].toString(16));\n      }\n      break;\n    case 44:\n      var m = t[e++] | t[e++] << 8,\n        v = t[e++] | t[e++] << 8,\n        b = t[e++] | t[e++] << 8,\n        y = t[e++] | t[e++] << 8,\n        w = t[e++],\n        N = w >> 6 & 1,\n        L = 1 << (7 & w) + 1,\n        A = s,\n        x = c,\n        S = !1;\n      if (w >> 7) {\n        S = !0;\n        A = e, x = L, e += 3 * L;\n      }\n      var _ = e;\n      for (e++;;) {\n        var P;\n        if (!((P = t[e++]) >= 0)) throw Error(\"Invalid block size\");\n        if (0 === P) break;\n        e += P;\n      }\n      h.push({\n        x: m,\n        y: v,\n        width: b,\n        height: y,\n        has_local_palette: S,\n        palette_offset: A,\n        palette_size: x,\n        data_offset: _,\n        data_length: e - _,\n        transparent_index: f,\n        interlaced: !!N,\n        delay: l,\n        disposal: d\n      });\n      break;\n    case 59:\n      u = !1;\n      break;\n    default:\n      throw new Error(\"Unknown gif block: 0x\" + t[e - 1].toString(16));\n  }\n  this.numFrames = function () {\n    return h.length;\n  }, this.loopCount = function () {\n    return p;\n  }, this.frameInfo = function (t) {\n    if (t < 0 || t >= h.length) throw new Error(\"Frame index out of range.\");\n    return h[t];\n  }, this.decodeAndBlitFrameBGRA = function (e, n) {\n    var i = this.frameInfo(e),\n      a = i.width * i.height,\n      o = new Uint8Array(a);\n    $t(t, i.data_offset, o, a);\n    var s = i.palette_offset,\n      c = i.transparent_index;\n    null === c && (c = 256);\n    var u = i.width,\n      h = r - u,\n      l = u,\n      f = 4 * (i.y * r + i.x),\n      d = 4 * ((i.y + i.height) * r + i.x),\n      p = f,\n      g = 4 * h;\n    !0 === i.interlaced && (g += 4 * r * 7);\n    for (var m = 8, v = 0, b = o.length; v < b; ++v) {\n      var y = o[v];\n      if (0 === l && (l = u, (p += g) >= d && (g = 4 * h + 4 * r * (m - 1), p = f + (u + h) * (m << 1), m >>= 1)), y === c) p += 4;else {\n        var w = t[s + 3 * y],\n          N = t[s + 3 * y + 1],\n          L = t[s + 3 * y + 2];\n        n[p++] = L, n[p++] = N, n[p++] = w, n[p++] = 255;\n      }\n      --l;\n    }\n  }, this.decodeAndBlitFrameRGBA = function (e, n) {\n    var i = this.frameInfo(e),\n      a = i.width * i.height,\n      o = new Uint8Array(a);\n    $t(t, i.data_offset, o, a);\n    var s = i.palette_offset,\n      c = i.transparent_index;\n    null === c && (c = 256);\n    var u = i.width,\n      h = r - u,\n      l = u,\n      f = 4 * (i.y * r + i.x),\n      d = 4 * ((i.y + i.height) * r + i.x),\n      p = f,\n      g = 4 * h;\n    !0 === i.interlaced && (g += 4 * r * 7);\n    for (var m = 8, v = 0, b = o.length; v < b; ++v) {\n      var y = o[v];\n      if (0 === l && (l = u, (p += g) >= d && (g = 4 * h + 4 * r * (m - 1), p = f + (u + h) * (m << 1), m >>= 1)), y === c) p += 4;else {\n        var w = t[s + 3 * y],\n          N = t[s + 3 * y + 1],\n          L = t[s + 3 * y + 2];\n        n[p++] = w, n[p++] = N, n[p++] = L, n[p++] = 255;\n      }\n      --l;\n    }\n  };\n}\nfunction $t(t, e, r, n) {\n  for (var i = t[e++], o = 1 << i, s = o + 1, c = s + 1, u = i + 1, h = (1 << u) - 1, l = 0, f = 0, d = 0, p = t[e++], g = new Int32Array(4096), m = null;;) {\n    for (; l < 16 && 0 !== p;) f |= t[e++] << l, l += 8, 1 === p ? p = t[e++] : --p;\n    if (l < u) break;\n    var v = f & h;\n    if (f >>= u, l -= u, v !== o) {\n      if (v === s) break;\n      for (var b = v < c ? v : m, y = 0, w = b; w > o;) w = g[w] >> 8, ++y;\n      var N = w;\n      if (d + y + (b !== v ? 1 : 0) > n) return void a.log(\"Warning, gif stream longer than expected.\");\n      r[d++] = N;\n      var L = d += y;\n      for (b !== v && (r[d++] = N), w = b; y--;) w = g[w], r[--L] = 255 & w, w >>= 8;\n      null !== m && c < 4096 && (g[c++] = m << 8 | N, c >= h + 1 && u < 12 && (++u, h = h << 1 | 1)), m = v;\n    } else c = s + 1, h = (1 << (u = i + 1)) - 1, m = null;\n  }\n  return d !== n && a.log(\"Warning, gif stream shorter than expected.\"), r;\n}\n/**\n * @license\n  Copyright (c) 2008, Adobe Systems Incorporated\n  All rights reserved.\n\n  Redistribution and use in source and binary forms, with or without \n  modification, are permitted provided that the following conditions are\n  met:\n\n  * Redistributions of source code must retain the above copyright notice, \n    this list of conditions and the following disclaimer.\n  \n  * Redistributions in binary form must reproduce the above copyright\n    notice, this list of conditions and the following disclaimer in the \n    documentation and/or other materials provided with the distribution.\n  \n  * Neither the name of Adobe Systems Incorporated nor the names of its \n    contributors may be used to endorse or promote products derived from \n    this software without specific prior written permission.\n\n  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS\n  IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\n  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \n  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\n  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\nfunction Qt(t) {\n  var e,\n    r,\n    n,\n    i,\n    a,\n    o = Math.floor,\n    s = new Array(64),\n    c = new Array(64),\n    u = new Array(64),\n    h = new Array(64),\n    l = new Array(65535),\n    f = new Array(65535),\n    d = new Array(64),\n    p = new Array(64),\n    g = [],\n    m = 0,\n    v = 7,\n    b = new Array(64),\n    y = new Array(64),\n    w = new Array(64),\n    N = new Array(256),\n    L = new Array(2048),\n    A = [0, 1, 5, 6, 14, 15, 27, 28, 2, 4, 7, 13, 16, 26, 29, 42, 3, 8, 12, 17, 25, 30, 41, 43, 9, 11, 18, 24, 31, 40, 44, 53, 10, 19, 23, 32, 39, 45, 52, 54, 20, 22, 33, 38, 46, 51, 55, 60, 21, 34, 37, 47, 50, 56, 59, 61, 35, 36, 48, 49, 57, 58, 62, 63],\n    x = [0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0],\n    S = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],\n    _ = [0, 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 125],\n    P = [1, 2, 3, 0, 4, 17, 5, 18, 33, 49, 65, 6, 19, 81, 97, 7, 34, 113, 20, 50, 129, 145, 161, 8, 35, 66, 177, 193, 21, 82, 209, 240, 36, 51, 98, 114, 130, 9, 10, 22, 23, 24, 25, 26, 37, 38, 39, 40, 41, 42, 52, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250],\n    k = [0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0],\n    I = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],\n    F = [0, 0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 1, 2, 119],\n    C = [0, 1, 2, 3, 17, 4, 5, 33, 49, 6, 18, 65, 81, 7, 97, 113, 19, 34, 50, 129, 8, 20, 66, 145, 161, 177, 193, 9, 35, 51, 82, 240, 21, 98, 114, 209, 10, 22, 36, 52, 225, 37, 241, 23, 24, 25, 26, 38, 39, 40, 41, 42, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 130, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 226, 227, 228, 229, 230, 231, 232, 233, 234, 242, 243, 244, 245, 246, 247, 248, 249, 250];\n  function j(t, e) {\n    for (var r = 0, n = 0, i = new Array(), a = 1; a <= 16; a++) {\n      for (var o = 1; o <= t[a]; o++) i[e[n]] = [], i[e[n]][0] = r, i[e[n]][1] = a, n++, r++;\n      r *= 2;\n    }\n    return i;\n  }\n  function O(t) {\n    for (var e = t[0], r = t[1] - 1; r >= 0;) e & 1 << r && (m |= 1 << v), r--, --v < 0 && (255 == m ? (B(255), B(0)) : B(m), v = 7, m = 0);\n  }\n  function B(t) {\n    g.push(t);\n  }\n  function M(t) {\n    B(t >> 8 & 255), B(255 & t);\n  }\n  function E(t, e, r, n, i) {\n    for (var a, o = i[0], s = i[240], c = function (t, e) {\n        var r,\n          n,\n          i,\n          a,\n          o,\n          s,\n          c,\n          u,\n          h,\n          l,\n          f = 0;\n        for (h = 0; h < 8; ++h) {\n          r = t[f], n = t[f + 1], i = t[f + 2], a = t[f + 3], o = t[f + 4], s = t[f + 5], c = t[f + 6];\n          var p = r + (u = t[f + 7]),\n            g = r - u,\n            m = n + c,\n            v = n - c,\n            b = i + s,\n            y = i - s,\n            w = a + o,\n            N = a - o,\n            L = p + w,\n            A = p - w,\n            x = m + b,\n            S = m - b;\n          t[f] = L + x, t[f + 4] = L - x;\n          var _ = .707106781 * (S + A);\n          t[f + 2] = A + _, t[f + 6] = A - _;\n          var P = .382683433 * ((L = N + y) - (S = v + g)),\n            k = .5411961 * L + P,\n            I = 1.306562965 * S + P,\n            F = .707106781 * (x = y + v),\n            C = g + F,\n            j = g - F;\n          t[f + 5] = j + k, t[f + 3] = j - k, t[f + 1] = C + I, t[f + 7] = C - I, f += 8;\n        }\n        for (f = 0, h = 0; h < 8; ++h) {\n          r = t[f], n = t[f + 8], i = t[f + 16], a = t[f + 24], o = t[f + 32], s = t[f + 40], c = t[f + 48];\n          var O = r + (u = t[f + 56]),\n            B = r - u,\n            M = n + c,\n            E = n - c,\n            q = i + s,\n            D = i - s,\n            R = a + o,\n            T = a - o,\n            U = O + R,\n            z = O - R,\n            H = M + q,\n            W = M - q;\n          t[f] = U + H, t[f + 32] = U - H;\n          var V = .707106781 * (W + z);\n          t[f + 16] = z + V, t[f + 48] = z - V;\n          var G = .382683433 * ((U = T + D) - (W = E + B)),\n            Y = .5411961 * U + G,\n            J = 1.306562965 * W + G,\n            X = .707106781 * (H = D + E),\n            K = B + X,\n            Z = B - X;\n          t[f + 40] = Z + Y, t[f + 24] = Z - Y, t[f + 8] = K + J, t[f + 56] = K - J, f++;\n        }\n        for (h = 0; h < 64; ++h) l = t[h] * e[h], d[h] = l > 0 ? l + .5 | 0 : l - .5 | 0;\n        return d;\n      }(t, e), u = 0; u < 64; ++u) p[A[u]] = c[u];\n    var h = p[0] - r;\n    r = p[0], 0 == h ? O(n[0]) : (O(n[f[a = 32767 + h]]), O(l[a]));\n    for (var g = 63; g > 0 && 0 == p[g];) g--;\n    if (0 == g) return O(o), r;\n    for (var m, v = 1; v <= g;) {\n      for (var b = v; 0 == p[v] && v <= g;) ++v;\n      var y = v - b;\n      if (y >= 16) {\n        m = y >> 4;\n        for (var w = 1; w <= m; ++w) O(s);\n        y &= 15;\n      }\n      a = 32767 + p[v], O(i[(y << 4) + f[a]]), O(l[a]), v++;\n    }\n    return 63 != g && O(o), r;\n  }\n  function q(t) {\n    (t = Math.min(Math.max(t, 1), 100), a != t) && (!function (t) {\n      for (var e = [16, 11, 10, 16, 24, 40, 51, 61, 12, 12, 14, 19, 26, 58, 60, 55, 14, 13, 16, 24, 40, 57, 69, 56, 14, 17, 22, 29, 51, 87, 80, 62, 18, 22, 37, 56, 68, 109, 103, 77, 24, 35, 55, 64, 81, 104, 113, 92, 49, 64, 78, 87, 103, 121, 120, 101, 72, 92, 95, 98, 112, 100, 103, 99], r = 0; r < 64; r++) {\n        var n = o((e[r] * t + 50) / 100);\n        n = Math.min(Math.max(n, 1), 255), s[A[r]] = n;\n      }\n      for (var i = [17, 18, 24, 47, 99, 99, 99, 99, 18, 21, 26, 66, 99, 99, 99, 99, 24, 26, 56, 99, 99, 99, 99, 99, 47, 66, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99], a = 0; a < 64; a++) {\n        var l = o((i[a] * t + 50) / 100);\n        l = Math.min(Math.max(l, 1), 255), c[A[a]] = l;\n      }\n      for (var f = [1, 1.387039845, 1.306562965, 1.175875602, 1, .785694958, .5411961, .275899379], d = 0, p = 0; p < 8; p++) for (var g = 0; g < 8; g++) u[d] = 1 / (s[A[d]] * f[p] * f[g] * 8), h[d] = 1 / (c[A[d]] * f[p] * f[g] * 8), d++;\n    }(t < 50 ? Math.floor(5e3 / t) : Math.floor(200 - 2 * t)), a = t);\n  }\n  this.encode = function (t, a) {\n    a && q(a), g = new Array(), m = 0, v = 7, M(65496), M(65504), M(16), B(74), B(70), B(73), B(70), B(0), B(1), B(1), B(0), M(1), M(1), B(0), B(0), function () {\n      M(65499), M(132), B(0);\n      for (var t = 0; t < 64; t++) B(s[t]);\n      B(1);\n      for (var e = 0; e < 64; e++) B(c[e]);\n    }(), function (t, e) {\n      M(65472), M(17), B(8), M(e), M(t), B(3), B(1), B(17), B(0), B(2), B(17), B(1), B(3), B(17), B(1);\n    }(t.width, t.height), function () {\n      M(65476), M(418), B(0);\n      for (var t = 0; t < 16; t++) B(x[t + 1]);\n      for (var e = 0; e <= 11; e++) B(S[e]);\n      B(16);\n      for (var r = 0; r < 16; r++) B(_[r + 1]);\n      for (var n = 0; n <= 161; n++) B(P[n]);\n      B(1);\n      for (var i = 0; i < 16; i++) B(k[i + 1]);\n      for (var a = 0; a <= 11; a++) B(I[a]);\n      B(17);\n      for (var o = 0; o < 16; o++) B(F[o + 1]);\n      for (var s = 0; s <= 161; s++) B(C[s]);\n    }(), M(65498), M(12), B(3), B(1), B(0), B(2), B(17), B(3), B(17), B(0), B(63), B(0);\n    var o = 0,\n      l = 0,\n      f = 0;\n    m = 0, v = 7, this.encode.displayName = \"_encode_\";\n    for (var d, p, N, A, j, D, R, T, U, z = t.data, H = t.width, W = t.height, V = 4 * H, G = 0; G < W;) {\n      for (d = 0; d < V;) {\n        for (j = V * G + d, R = -1, T = 0, U = 0; U < 64; U++) D = j + (T = U >> 3) * V + (R = 4 * (7 & U)), G + T >= W && (D -= V * (G + 1 + T - W)), d + R >= V && (D -= d + R - V + 4), p = z[D++], N = z[D++], A = z[D++], b[U] = (L[p] + L[N + 256 >> 0] + L[A + 512 >> 0] >> 16) - 128, y[U] = (L[p + 768 >> 0] + L[N + 1024 >> 0] + L[A + 1280 >> 0] >> 16) - 128, w[U] = (L[p + 1280 >> 0] + L[N + 1536 >> 0] + L[A + 1792 >> 0] >> 16) - 128;\n        o = E(b, u, o, e, n), l = E(y, h, l, r, i), f = E(w, h, f, r, i), d += 32;\n      }\n      G += 8;\n    }\n    if (v >= 0) {\n      var Y = [];\n      Y[1] = v + 1, Y[0] = (1 << v + 1) - 1, O(Y);\n    }\n    return M(65497), new Uint8Array(g);\n  }, t = t || 50, function () {\n    for (var t = String.fromCharCode, e = 0; e < 256; e++) N[e] = t(e);\n  }(), e = j(x, S), r = j(k, I), n = j(_, P), i = j(F, C), function () {\n    for (var t = 1, e = 2, r = 1; r <= 15; r++) {\n      for (var n = t; n < e; n++) f[32767 + n] = r, l[32767 + n] = [], l[32767 + n][1] = r, l[32767 + n][0] = n;\n      for (var i = -(e - 1); i <= -t; i++) f[32767 + i] = r, l[32767 + i] = [], l[32767 + i][1] = r, l[32767 + i][0] = e - 1 + i;\n      t <<= 1, e <<= 1;\n    }\n  }(), function () {\n    for (var t = 0; t < 256; t++) L[t] = 19595 * t, L[t + 256 >> 0] = 38470 * t, L[t + 512 >> 0] = 7471 * t + 32768, L[t + 768 >> 0] = -11059 * t, L[t + 1024 >> 0] = -21709 * t, L[t + 1280 >> 0] = 32768 * t + 8421375, L[t + 1536 >> 0] = -27439 * t, L[t + 1792 >> 0] = -5329 * t;\n  }(), q(t);\n}\n/**\n * @license\n * Copyright (c) 2017 Aras Abbasi\n *\n * Licensed under the MIT License.\n * http://opensource.org/licenses/mit-license\n */\nfunction te(t, e) {\n  if (this.pos = 0, this.buffer = t, this.datav = new DataView(t.buffer), this.is_with_alpha = !!e, this.bottom_up = !0, this.flag = String.fromCharCode(this.buffer[0]) + String.fromCharCode(this.buffer[1]), this.pos += 2, -1 === [\"BM\", \"BA\", \"CI\", \"CP\", \"IC\", \"PT\"].indexOf(this.flag)) throw new Error(\"Invalid BMP File\");\n  this.parseHeader(), this.parseBGR();\n}\nfunction ee(t) {\n  function e(t) {\n    if (!t) throw Error(\"assert :P\");\n  }\n  function r(t, e, r) {\n    for (var n = 0; 4 > n; n++) if (t[e + n] != r.charCodeAt(n)) return !0;\n    return !1;\n  }\n  function n(t, e, r, n, i) {\n    for (var a = 0; a < i; a++) t[e + a] = r[n + a];\n  }\n  function i(t, e, r, n) {\n    for (var i = 0; i < n; i++) t[e + i] = r;\n  }\n  function a(t) {\n    return new Int32Array(t);\n  }\n  function o(t, e) {\n    for (var r = [], n = 0; n < t; n++) r.push(new e());\n    return r;\n  }\n  function s(t, e) {\n    var r = [];\n    return function t(r, n, i) {\n      for (var a = i[n], o = 0; o < a && (r.push(i.length > n + 1 ? [] : new e()), !(i.length < n + 1)); o++) t(r[o], n + 1, i);\n    }(r, 0, t), r;\n  }\n  var c = function () {\n    var t = this;\n    function c(t, e) {\n      for (var r = 1 << e - 1 >>> 0; t & r;) r >>>= 1;\n      return r ? (t & r - 1) + r : t;\n    }\n    function u(t, r, n, i, a) {\n      e(!(i % n));\n      do {\n        t[r + (i -= n)] = a;\n      } while (0 < i);\n    }\n    function h(t, r, n, i, o) {\n      if (e(2328 >= o), 512 >= o) var s = a(512);else if (null == (s = a(o))) return 0;\n      return function (t, r, n, i, o, s) {\n        var h,\n          f,\n          d = r,\n          p = 1 << n,\n          g = a(16),\n          m = a(16);\n        for (e(0 != o), e(null != i), e(null != t), e(0 < n), f = 0; f < o; ++f) {\n          if (15 < i[f]) return 0;\n          ++g[i[f]];\n        }\n        if (g[0] == o) return 0;\n        for (m[1] = 0, h = 1; 15 > h; ++h) {\n          if (g[h] > 1 << h) return 0;\n          m[h + 1] = m[h] + g[h];\n        }\n        for (f = 0; f < o; ++f) h = i[f], 0 < i[f] && (s[m[h]++] = f);\n        if (1 == m[15]) return (i = new l()).g = 0, i.value = s[0], u(t, d, 1, p, i), p;\n        var v,\n          b = -1,\n          y = p - 1,\n          w = 0,\n          N = 1,\n          L = 1,\n          A = 1 << n;\n        for (f = 0, h = 1, o = 2; h <= n; ++h, o <<= 1) {\n          if (N += L <<= 1, 0 > (L -= g[h])) return 0;\n          for (; 0 < g[h]; --g[h]) (i = new l()).g = h, i.value = s[f++], u(t, d + w, o, A, i), w = c(w, h);\n        }\n        for (h = n + 1, o = 2; 15 >= h; ++h, o <<= 1) {\n          if (N += L <<= 1, 0 > (L -= g[h])) return 0;\n          for (; 0 < g[h]; --g[h]) {\n            if (i = new l(), (w & y) != b) {\n              for (d += A, v = 1 << (b = h) - n; 15 > b && !(0 >= (v -= g[b]));) ++b, v <<= 1;\n              p += A = 1 << (v = b - n), t[r + (b = w & y)].g = v + n, t[r + b].value = d - r - b;\n            }\n            i.g = h - n, i.value = s[f++], u(t, d + (w >> n), o, A, i), w = c(w, h);\n          }\n        }\n        return N != 2 * m[15] - 1 ? 0 : p;\n      }(t, r, n, i, o, s);\n    }\n    function l() {\n      this.value = this.g = 0;\n    }\n    function f() {\n      this.value = this.g = 0;\n    }\n    function d() {\n      this.G = o(5, l), this.H = a(5), this.jc = this.Qb = this.qb = this.nd = 0, this.pd = o(Dr, f);\n    }\n    function p(t, r, n, i) {\n      e(null != t), e(null != r), e(2147483648 > i), t.Ca = 254, t.I = 0, t.b = -8, t.Ka = 0, t.oa = r, t.pa = n, t.Jd = r, t.Yc = n + i, t.Zc = 4 <= i ? n + i - 4 + 1 : n, _(t);\n    }\n    function g(t, e) {\n      for (var r = 0; 0 < e--;) r |= k(t, 128) << e;\n      return r;\n    }\n    function m(t, e) {\n      var r = g(t, e);\n      return P(t) ? -r : r;\n    }\n    function v(t, r, n, i) {\n      var a,\n        o = 0;\n      for (e(null != t), e(null != r), e(4294967288 > i), t.Sb = i, t.Ra = 0, t.u = 0, t.h = 0, 4 < i && (i = 4), a = 0; a < i; ++a) o += r[n + a] << 8 * a;\n      t.Ra = o, t.bb = i, t.oa = r, t.pa = n;\n    }\n    function b(t) {\n      for (; 8 <= t.u && t.bb < t.Sb;) t.Ra >>>= 8, t.Ra += t.oa[t.pa + t.bb] << Ur - 8 >>> 0, ++t.bb, t.u -= 8;\n      A(t) && (t.h = 1, t.u = 0);\n    }\n    function y(t, r) {\n      if (e(0 <= r), !t.h && r <= Tr) {\n        var n = L(t) & Rr[r];\n        return t.u += r, b(t), n;\n      }\n      return t.h = 1, t.u = 0;\n    }\n    function w() {\n      this.b = this.Ca = this.I = 0, this.oa = [], this.pa = 0, this.Jd = [], this.Yc = 0, this.Zc = [], this.Ka = 0;\n    }\n    function N() {\n      this.Ra = 0, this.oa = [], this.h = this.u = this.bb = this.Sb = this.pa = 0;\n    }\n    function L(t) {\n      return t.Ra >>> (t.u & Ur - 1) >>> 0;\n    }\n    function A(t) {\n      return e(t.bb <= t.Sb), t.h || t.bb == t.Sb && t.u > Ur;\n    }\n    function x(t, e) {\n      t.u = e, t.h = A(t);\n    }\n    function S(t) {\n      t.u >= zr && (e(t.u >= zr), b(t));\n    }\n    function _(t) {\n      e(null != t && null != t.oa), t.pa < t.Zc ? (t.I = (t.oa[t.pa++] | t.I << 8) >>> 0, t.b += 8) : (e(null != t && null != t.oa), t.pa < t.Yc ? (t.b += 8, t.I = t.oa[t.pa++] | t.I << 8) : t.Ka ? t.b = 0 : (t.I <<= 8, t.b += 8, t.Ka = 1));\n    }\n    function P(t) {\n      return g(t, 1);\n    }\n    function k(t, e) {\n      var r = t.Ca;\n      0 > t.b && _(t);\n      var n = t.b,\n        i = r * e >>> 8,\n        a = (t.I >>> n > i) + 0;\n      for (a ? (r -= i, t.I -= i + 1 << n >>> 0) : r = i + 1, n = r, i = 0; 256 <= n;) i += 8, n >>= 8;\n      return n = 7 ^ i + Hr[n], t.b -= n, t.Ca = (r << n) - 1, a;\n    }\n    function I(t, e, r) {\n      t[e + 0] = r >> 24 & 255, t[e + 1] = r >> 16 & 255, t[e + 2] = r >> 8 & 255, t[e + 3] = r >> 0 & 255;\n    }\n    function F(t, e) {\n      return t[e + 0] << 0 | t[e + 1] << 8;\n    }\n    function C(t, e) {\n      return F(t, e) | t[e + 2] << 16;\n    }\n    function j(t, e) {\n      return F(t, e) | F(t, e + 2) << 16;\n    }\n    function O(t, r) {\n      var n = 1 << r;\n      return e(null != t), e(0 < r), t.X = a(n), null == t.X ? 0 : (t.Mb = 32 - r, t.Xa = r, 1);\n    }\n    function B(t, r) {\n      e(null != t), e(null != r), e(t.Xa == r.Xa), n(r.X, 0, t.X, 0, 1 << r.Xa);\n    }\n    function M() {\n      this.X = [], this.Xa = this.Mb = 0;\n    }\n    function E(t, r, n, i) {\n      e(null != n), e(null != i);\n      var a = n[0],\n        o = i[0];\n      return 0 == a && (a = (t * o + r / 2) / r), 0 == o && (o = (r * a + t / 2) / t), 0 >= a || 0 >= o ? 0 : (n[0] = a, i[0] = o, 1);\n    }\n    function q(t, e) {\n      return t + (1 << e) - 1 >>> e;\n    }\n    function D(t, e) {\n      return ((4278255360 & t) + (4278255360 & e) >>> 0 & 4278255360) + ((16711935 & t) + (16711935 & e) >>> 0 & 16711935) >>> 0;\n    }\n    function R(e, r) {\n      t[r] = function (r, n, i, a, o, s, c) {\n        var u;\n        for (u = 0; u < o; ++u) {\n          var h = t[e](s[c + u - 1], i, a + u);\n          s[c + u] = D(r[n + u], h);\n        }\n      };\n    }\n    function T() {\n      this.ud = this.hd = this.jd = 0;\n    }\n    function U(t, e) {\n      return ((4278124286 & (t ^ e)) >>> 1) + (t & e) >>> 0;\n    }\n    function z(t) {\n      return 0 <= t && 256 > t ? t : 0 > t ? 0 : 255 < t ? 255 : void 0;\n    }\n    function H(t, e) {\n      return z(t + (t - e + .5 >> 1));\n    }\n    function W(t, e, r) {\n      return Math.abs(e - r) - Math.abs(t - r);\n    }\n    function V(t, e, r, n, i, a, o) {\n      for (n = a[o - 1], r = 0; r < i; ++r) a[o + r] = n = D(t[e + r], n);\n    }\n    function G(t, e, r, n, i) {\n      var a;\n      for (a = 0; a < r; ++a) {\n        var o = t[e + a],\n          s = o >> 8 & 255,\n          c = 16711935 & (c = (c = 16711935 & o) + ((s << 16) + s));\n        n[i + a] = (4278255360 & o) + c >>> 0;\n      }\n    }\n    function Y(t, e) {\n      e.jd = t >> 0 & 255, e.hd = t >> 8 & 255, e.ud = t >> 16 & 255;\n    }\n    function J(t, e, r, n, i, a) {\n      var o;\n      for (o = 0; o < n; ++o) {\n        var s = e[r + o],\n          c = s >>> 8,\n          u = s,\n          h = 255 & (h = (h = s >>> 16) + ((t.jd << 24 >> 24) * (c << 24 >> 24) >>> 5));\n        u = 255 & (u = (u = u + ((t.hd << 24 >> 24) * (c << 24 >> 24) >>> 5)) + ((t.ud << 24 >> 24) * (h << 24 >> 24) >>> 5));\n        i[a + o] = (4278255360 & s) + (h << 16) + u;\n      }\n    }\n    function X(e, r, n, i, a) {\n      t[r] = function (t, e, r, n, o, s, c, u, h) {\n        for (n = c; n < u; ++n) for (c = 0; c < h; ++c) o[s++] = a(r[i(t[e++])]);\n      }, t[e] = function (e, r, o, s, c, u, h) {\n        var l = 8 >> e.b,\n          f = e.Ea,\n          d = e.K[0],\n          p = e.w;\n        if (8 > l) for (e = (1 << e.b) - 1, p = (1 << l) - 1; r < o; ++r) {\n          var g,\n            m = 0;\n          for (g = 0; g < f; ++g) g & e || (m = i(s[c++])), u[h++] = a(d[m & p]), m >>= l;\n        } else t[\"VP8LMapColor\" + n](s, c, d, p, u, h, r, o, f);\n      };\n    }\n    function K(t, e, r, n, i) {\n      for (r = e + r; e < r;) {\n        var a = t[e++];\n        n[i++] = a >> 16 & 255, n[i++] = a >> 8 & 255, n[i++] = a >> 0 & 255;\n      }\n    }\n    function Z(t, e, r, n, i) {\n      for (r = e + r; e < r;) {\n        var a = t[e++];\n        n[i++] = a >> 16 & 255, n[i++] = a >> 8 & 255, n[i++] = a >> 0 & 255, n[i++] = a >> 24 & 255;\n      }\n    }\n    function $(t, e, r, n, i) {\n      for (r = e + r; e < r;) {\n        var a = (o = t[e++]) >> 16 & 240 | o >> 12 & 15,\n          o = o >> 0 & 240 | o >> 28 & 15;\n        n[i++] = a, n[i++] = o;\n      }\n    }\n    function Q(t, e, r, n, i) {\n      for (r = e + r; e < r;) {\n        var a = (o = t[e++]) >> 16 & 248 | o >> 13 & 7,\n          o = o >> 5 & 224 | o >> 3 & 31;\n        n[i++] = a, n[i++] = o;\n      }\n    }\n    function tt(t, e, r, n, i) {\n      for (r = e + r; e < r;) {\n        var a = t[e++];\n        n[i++] = a >> 0 & 255, n[i++] = a >> 8 & 255, n[i++] = a >> 16 & 255;\n      }\n    }\n    function et(t, e, r, i, a, o) {\n      if (0 == o) for (r = e + r; e < r;) I(i, ((o = t[e++])[0] >> 24 | o[1] >> 8 & 65280 | o[2] << 8 & 16711680 | o[3] << 24) >>> 0), a += 32;else n(i, a, t, e, r);\n    }\n    function rt(e, r) {\n      t[r][0] = t[e + \"0\"], t[r][1] = t[e + \"1\"], t[r][2] = t[e + \"2\"], t[r][3] = t[e + \"3\"], t[r][4] = t[e + \"4\"], t[r][5] = t[e + \"5\"], t[r][6] = t[e + \"6\"], t[r][7] = t[e + \"7\"], t[r][8] = t[e + \"8\"], t[r][9] = t[e + \"9\"], t[r][10] = t[e + \"10\"], t[r][11] = t[e + \"11\"], t[r][12] = t[e + \"12\"], t[r][13] = t[e + \"13\"], t[r][14] = t[e + \"0\"], t[r][15] = t[e + \"0\"];\n    }\n    function nt(t) {\n      return t == Hn || t == Wn || t == Vn || t == Gn;\n    }\n    function it() {\n      this.eb = [], this.size = this.A = this.fb = 0;\n    }\n    function at() {\n      this.y = [], this.f = [], this.ea = [], this.F = [], this.Tc = this.Ed = this.Cd = this.Fd = this.lb = this.Db = this.Ab = this.fa = this.J = this.W = this.N = this.O = 0;\n    }\n    function ot() {\n      this.Rd = this.height = this.width = this.S = 0, this.f = {}, this.f.RGBA = new it(), this.f.kb = new at(), this.sd = null;\n    }\n    function st() {\n      this.width = [0], this.height = [0], this.Pd = [0], this.Qd = [0], this.format = [0];\n    }\n    function ct() {\n      this.Id = this.fd = this.Md = this.hb = this.ib = this.da = this.bd = this.cd = this.j = this.v = this.Da = this.Sd = this.ob = 0;\n    }\n    function ut(t) {\n      return alert(\"todo:WebPSamplerProcessPlane\"), t.T;\n    }\n    function ht(t, e) {\n      var r = t.T,\n        i = e.ba.f.RGBA,\n        a = i.eb,\n        o = i.fb + t.ka * i.A,\n        s = vi[e.ba.S],\n        c = t.y,\n        u = t.O,\n        h = t.f,\n        l = t.N,\n        f = t.ea,\n        d = t.W,\n        p = e.cc,\n        g = e.dc,\n        m = e.Mc,\n        v = e.Nc,\n        b = t.ka,\n        y = t.ka + t.T,\n        w = t.U,\n        N = w + 1 >> 1;\n      for (0 == b ? s(c, u, null, null, h, l, f, d, h, l, f, d, a, o, null, null, w) : (s(e.ec, e.fc, c, u, p, g, m, v, h, l, f, d, a, o - i.A, a, o, w), ++r); b + 2 < y; b += 2) p = h, g = l, m = f, v = d, l += t.Rc, d += t.Rc, o += 2 * i.A, s(c, (u += 2 * t.fa) - t.fa, c, u, p, g, m, v, h, l, f, d, a, o - i.A, a, o, w);\n      return u += t.fa, t.j + y < t.o ? (n(e.ec, e.fc, c, u, w), n(e.cc, e.dc, h, l, N), n(e.Mc, e.Nc, f, d, N), r--) : 1 & y || s(c, u, null, null, h, l, f, d, h, l, f, d, a, o + i.A, null, null, w), r;\n    }\n    function lt(t, r, n) {\n      var i = t.F,\n        a = [t.J];\n      if (null != i) {\n        var o = t.U,\n          s = r.ba.S,\n          c = s == Tn || s == Vn;\n        r = r.ba.f.RGBA;\n        var u = [0],\n          h = t.ka;\n        u[0] = t.T, t.Kb && (0 == h ? --u[0] : (--h, a[0] -= t.width), t.j + t.ka + t.T == t.o && (u[0] = t.o - t.j - h));\n        var l = r.eb;\n        h = r.fb + h * r.A;\n        t = Sn(i, a[0], t.width, o, u, l, h + (c ? 0 : 3), r.A), e(n == u), t && nt(s) && An(l, h, c, o, u, r.A);\n      }\n      return 0;\n    }\n    function ft(t) {\n      var e = t.ma,\n        r = e.ba.S,\n        n = 11 > r,\n        i = r == qn || r == Rn || r == Tn || r == Un || 12 == r || nt(r);\n      if (e.memory = null, e.Ib = null, e.Jb = null, e.Nd = null, !Mr(e.Oa, t, i ? 11 : 12)) return 0;\n      if (i && nt(r) && br(), t.da) alert(\"todo:use_scaling\");else {\n        if (n) {\n          if (e.Ib = ut, t.Kb) {\n            if (r = t.U + 1 >> 1, e.memory = a(t.U + 2 * r), null == e.memory) return 0;\n            e.ec = e.memory, e.fc = 0, e.cc = e.ec, e.dc = e.fc + t.U, e.Mc = e.cc, e.Nc = e.dc + r, e.Ib = ht, br();\n          }\n        } else alert(\"todo:EmitYUV\");\n        i && (e.Jb = lt, n && mr());\n      }\n      if (n && !Ci) {\n        for (t = 0; 256 > t; ++t) ji[t] = 89858 * (t - 128) + _i >> Si, Mi[t] = -22014 * (t - 128) + _i, Bi[t] = -45773 * (t - 128), Oi[t] = 113618 * (t - 128) + _i >> Si;\n        for (t = Pi; t < ki; ++t) e = 76283 * (t - 16) + _i >> Si, Ei[t - Pi] = Vt(e, 255), qi[t - Pi] = Vt(e + 8 >> 4, 15);\n        Ci = 1;\n      }\n      return 1;\n    }\n    function dt(t) {\n      var r = t.ma,\n        n = t.U,\n        i = t.T;\n      return e(!(1 & t.ka)), 0 >= n || 0 >= i ? 0 : (n = r.Ib(t, r), null != r.Jb && r.Jb(t, r, n), r.Dc += n, 1);\n    }\n    function pt(t) {\n      t.ma.memory = null;\n    }\n    function gt(t, e, r, n) {\n      return 47 != y(t, 8) ? 0 : (e[0] = y(t, 14) + 1, r[0] = y(t, 14) + 1, n[0] = y(t, 1), 0 != y(t, 3) ? 0 : !t.h);\n    }\n    function mt(t, e) {\n      if (4 > t) return t + 1;\n      var r = t - 2 >> 1;\n      return (2 + (1 & t) << r) + y(e, r) + 1;\n    }\n    function vt(t, e) {\n      return 120 < e ? e - 120 : 1 <= (r = ((r = $n[e - 1]) >> 4) * t + (8 - (15 & r))) ? r : 1;\n      var r;\n    }\n    function bt(t, e, r) {\n      var n = L(r),\n        i = t[e += 255 & n].g - 8;\n      return 0 < i && (x(r, r.u + 8), n = L(r), e += t[e].value, e += n & (1 << i) - 1), x(r, r.u + t[e].g), t[e].value;\n    }\n    function yt(t, r, n) {\n      return n.g += t.g, n.value += t.value << r >>> 0, e(8 >= n.g), t.g;\n    }\n    function wt(t, r, n) {\n      var i = t.xc;\n      return e((r = 0 == i ? 0 : t.vc[t.md * (n >> i) + (r >> i)]) < t.Wb), t.Ya[r];\n    }\n    function Nt(t, r, i, a) {\n      var o = t.ab,\n        s = t.c * r,\n        c = t.C;\n      r = c + r;\n      var u = i,\n        h = a;\n      for (a = t.Ta, i = t.Ua; 0 < o--;) {\n        var l = t.gc[o],\n          f = c,\n          d = r,\n          p = u,\n          g = h,\n          m = (h = a, u = i, l.Ea);\n        switch (e(f < d), e(d <= l.nc), l.hc) {\n          case 2:\n            Gr(p, g, (d - f) * m, h, u);\n            break;\n          case 0:\n            var v = f,\n              b = d,\n              y = h,\n              w = u,\n              N = (_ = l).Ea;\n            0 == v && (Wr(p, g, null, null, 1, y, w), V(p, g + 1, 0, 0, N - 1, y, w + 1), g += N, w += N, ++v);\n            for (var L = 1 << _.b, A = L - 1, x = q(N, _.b), S = _.K, _ = _.w + (v >> _.b) * x; v < b;) {\n              var P = S,\n                k = _,\n                I = 1;\n              for (Vr(p, g, y, w - N, 1, y, w); I < N;) {\n                var F = (I & ~A) + L;\n                F > N && (F = N), (0, Zr[P[k++] >> 8 & 15])(p, g + +I, y, w + I - N, F - I, y, w + I), I = F;\n              }\n              g += N, w += N, ++v & A || (_ += x);\n            }\n            d != l.nc && n(h, u - m, h, u + (d - f - 1) * m, m);\n            break;\n          case 1:\n            for (m = p, b = g, N = (p = l.Ea) - (w = p & ~(y = (g = 1 << l.b) - 1)), v = q(p, l.b), L = l.K, l = l.w + (f >> l.b) * v; f < d;) {\n              for (A = L, x = l, S = new T(), _ = b + w, P = b + p; b < _;) Y(A[x++], S), $r(S, m, b, g, h, u), b += g, u += g;\n              b < P && (Y(A[x++], S), $r(S, m, b, N, h, u), b += N, u += N), ++f & y || (l += v);\n            }\n            break;\n          case 3:\n            if (p == h && g == u && 0 < l.b) {\n              for (b = h, p = m = u + (d - f) * m - (w = (d - f) * q(l.Ea, l.b)), g = h, y = u, v = [], w = (N = w) - 1; 0 <= w; --w) v[w] = g[y + w];\n              for (w = N - 1; 0 <= w; --w) b[p + w] = v[w];\n              Yr(l, f, d, h, m, h, u);\n            } else Yr(l, f, d, p, g, h, u);\n        }\n        u = a, h = i;\n      }\n      h != i && n(a, i, u, h, s);\n    }\n    function Lt(t, r) {\n      var n = t.V,\n        i = t.Ba + t.c * t.C,\n        a = r - t.C;\n      if (e(r <= t.l.o), e(16 >= a), 0 < a) {\n        var o = t.l,\n          s = t.Ta,\n          c = t.Ua,\n          u = o.width;\n        if (Nt(t, a, n, i), a = c = [c], e((n = t.C) < (i = r)), e(o.v < o.va), i > o.o && (i = o.o), n < o.j) {\n          var h = o.j - n;\n          n = o.j;\n          a[0] += h * u;\n        }\n        if (n >= i ? n = 0 : (a[0] += 4 * o.v, o.ka = n - o.j, o.U = o.va - o.v, o.T = i - n, n = 1), n) {\n          if (c = c[0], 11 > (n = t.ca).S) {\n            var l = n.f.RGBA,\n              f = (i = n.S, a = o.U, o = o.T, h = l.eb, l.A),\n              d = o;\n            for (l = l.fb + t.Ma * l.A; 0 < d--;) {\n              var p = s,\n                g = c,\n                m = a,\n                v = h,\n                b = l;\n              switch (i) {\n                case En:\n                  Qr(p, g, m, v, b);\n                  break;\n                case qn:\n                  tn(p, g, m, v, b);\n                  break;\n                case Hn:\n                  tn(p, g, m, v, b), An(v, b, 0, m, 1, 0);\n                  break;\n                case Dn:\n                  nn(p, g, m, v, b);\n                  break;\n                case Rn:\n                  et(p, g, m, v, b, 1);\n                  break;\n                case Wn:\n                  et(p, g, m, v, b, 1), An(v, b, 0, m, 1, 0);\n                  break;\n                case Tn:\n                  et(p, g, m, v, b, 0);\n                  break;\n                case Vn:\n                  et(p, g, m, v, b, 0), An(v, b, 1, m, 1, 0);\n                  break;\n                case Un:\n                  en(p, g, m, v, b);\n                  break;\n                case Gn:\n                  en(p, g, m, v, b), xn(v, b, m, 1, 0);\n                  break;\n                case zn:\n                  rn(p, g, m, v, b);\n                  break;\n                default:\n                  e(0);\n              }\n              c += u, l += f;\n            }\n            t.Ma += o;\n          } else alert(\"todo:EmitRescaledRowsYUVA\");\n          e(t.Ma <= n.height);\n        }\n      }\n      t.C = r, e(t.C <= t.i);\n    }\n    function At(t) {\n      var e;\n      if (0 < t.ua) return 0;\n      for (e = 0; e < t.Wb; ++e) {\n        var r = t.Ya[e].G,\n          n = t.Ya[e].H;\n        if (0 < r[1][n[1] + 0].g || 0 < r[2][n[2] + 0].g || 0 < r[3][n[3] + 0].g) return 0;\n      }\n      return 1;\n    }\n    function xt(t, r, n, i, a, o) {\n      if (0 != t.Z) {\n        var s = t.qd,\n          c = t.rd;\n        for (e(null != mi[t.Z]); r < n; ++r) mi[t.Z](s, c, i, a, i, a, o), s = i, c = a, a += o;\n        t.qd = s, t.rd = c;\n      }\n    }\n    function St(t, r) {\n      var n = t.l.ma,\n        i = 0 == n.Z || 1 == n.Z ? t.l.j : t.C;\n      i = t.C < i ? i : t.C;\n      if (e(r <= t.l.o), r > i) {\n        var a = t.l.width,\n          o = n.ca,\n          s = n.tb + a * i,\n          c = t.V,\n          u = t.Ba + t.c * i,\n          h = t.gc;\n        e(1 == t.ab), e(3 == h[0].hc), Xr(h[0], i, r, c, u, o, s), xt(n, i, r, o, s, a);\n      }\n      t.C = t.Ma = r;\n    }\n    function _t(t, r, n, i, a, o, s) {\n      var c = t.$ / i,\n        u = t.$ % i,\n        h = t.m,\n        l = t.s,\n        f = n + t.$,\n        d = f;\n      a = n + i * a;\n      var p = n + i * o,\n        g = 280 + l.ua,\n        m = t.Pb ? c : 16777216,\n        v = 0 < l.ua ? l.Wa : null,\n        b = l.wc,\n        y = f < p ? wt(l, u, c) : null;\n      e(t.C < o), e(p <= a);\n      var w = !1;\n      t: for (;;) {\n        for (; w || f < p;) {\n          var N = 0;\n          if (c >= m) {\n            var _ = f - n;\n            e((m = t).Pb), m.wd = m.m, m.xd = _, 0 < m.s.ua && B(m.s.Wa, m.s.vb), m = c + ti;\n          }\n          if (u & b || (y = wt(l, u, c)), e(null != y), y.Qb && (r[f] = y.qb, w = !0), !w) if (S(h), y.jc) {\n            N = h, _ = r;\n            var P = f,\n              k = y.pd[L(N) & Dr - 1];\n            e(y.jc), 256 > k.g ? (x(N, N.u + k.g), _[P] = k.value, N = 0) : (x(N, N.u + k.g - 256), e(256 <= k.value), N = k.value), 0 == N && (w = !0);\n          } else N = bt(y.G[0], y.H[0], h);\n          if (h.h) break;\n          if (w || 256 > N) {\n            if (!w) if (y.nd) r[f] = (y.qb | N << 8) >>> 0;else {\n              if (S(h), w = bt(y.G[1], y.H[1], h), S(h), _ = bt(y.G[2], y.H[2], h), P = bt(y.G[3], y.H[3], h), h.h) break;\n              r[f] = (P << 24 | w << 16 | N << 8 | _) >>> 0;\n            }\n            if (w = !1, ++f, ++u >= i && (u = 0, ++c, null != s && c <= o && !(c % 16) && s(t, c), null != v)) for (; d < f;) N = r[d++], v.X[(506832829 * N & 4294967295) >>> v.Mb] = N;\n          } else if (280 > N) {\n            if (N = mt(N - 256, h), _ = bt(y.G[4], y.H[4], h), S(h), _ = vt(i, _ = mt(_, h)), h.h) break;\n            if (f - n < _ || a - f < N) break t;\n            for (P = 0; P < N; ++P) r[f + P] = r[f + P - _];\n            for (f += N, u += N; u >= i;) u -= i, ++c, null != s && c <= o && !(c % 16) && s(t, c);\n            if (e(f <= a), u & b && (y = wt(l, u, c)), null != v) for (; d < f;) N = r[d++], v.X[(506832829 * N & 4294967295) >>> v.Mb] = N;\n          } else {\n            if (!(N < g)) break t;\n            for (w = N - 280, e(null != v); d < f;) N = r[d++], v.X[(506832829 * N & 4294967295) >>> v.Mb] = N;\n            N = f, e(!(w >>> (_ = v).Xa)), r[N] = _.X[w], w = !0;\n          }\n          w || e(h.h == A(h));\n        }\n        if (t.Pb && h.h && f < a) e(t.m.h), t.a = 5, t.m = t.wd, t.$ = t.xd, 0 < t.s.ua && B(t.s.vb, t.s.Wa);else {\n          if (h.h) break t;\n          null != s && s(t, c > o ? o : c), t.a = 0, t.$ = f - n;\n        }\n        return 1;\n      }\n      return t.a = 3, 0;\n    }\n    function Pt(t) {\n      e(null != t), t.vc = null, t.yc = null, t.Ya = null;\n      var r = t.Wa;\n      null != r && (r.X = null), t.vb = null, e(null != t);\n    }\n    function kt() {\n      var e = new or();\n      return null == e ? null : (e.a = 0, e.xb = gi, rt(\"Predictor\", \"VP8LPredictors\"), rt(\"Predictor\", \"VP8LPredictors_C\"), rt(\"PredictorAdd\", \"VP8LPredictorsAdd\"), rt(\"PredictorAdd\", \"VP8LPredictorsAdd_C\"), Gr = G, $r = J, Qr = K, tn = Z, en = $, rn = Q, nn = tt, t.VP8LMapColor32b = Jr, t.VP8LMapColor8b = Kr, e);\n    }\n    function It(t, r, n, s, c) {\n      var u = 1,\n        f = [t],\n        p = [r],\n        g = s.m,\n        m = s.s,\n        v = null,\n        b = 0;\n      t: for (;;) {\n        if (n) for (; u && y(g, 1);) {\n          var w = f,\n            N = p,\n            A = s,\n            _ = 1,\n            P = A.m,\n            k = A.gc[A.ab],\n            I = y(P, 2);\n          if (A.Oc & 1 << I) u = 0;else {\n            switch (A.Oc |= 1 << I, k.hc = I, k.Ea = w[0], k.nc = N[0], k.K = [null], ++A.ab, e(4 >= A.ab), I) {\n              case 0:\n              case 1:\n                k.b = y(P, 3) + 2, _ = It(q(k.Ea, k.b), q(k.nc, k.b), 0, A, k.K), k.K = k.K[0];\n                break;\n              case 3:\n                var F,\n                  C = y(P, 8) + 1,\n                  j = 16 < C ? 0 : 4 < C ? 1 : 2 < C ? 2 : 3;\n                if (w[0] = q(k.Ea, j), k.b = j, F = _ = It(C, 1, 0, A, k.K)) {\n                  var B,\n                    M = C,\n                    E = k,\n                    R = 1 << (8 >> E.b),\n                    T = a(R);\n                  if (null == T) F = 0;else {\n                    var U = E.K[0],\n                      z = E.w;\n                    for (T[0] = E.K[0][0], B = 1; B < 1 * M; ++B) T[B] = D(U[z + B], T[B - 1]);\n                    for (; B < 4 * R; ++B) T[B] = 0;\n                    E.K[0] = null, E.K[0] = T, F = 1;\n                  }\n                }\n                _ = F;\n                break;\n              case 2:\n                break;\n              default:\n                e(0);\n            }\n            u = _;\n          }\n        }\n        if (f = f[0], p = p[0], u && y(g, 1) && !(u = 1 <= (b = y(g, 4)) && 11 >= b)) {\n          s.a = 3;\n          break t;\n        }\n        var H;\n        if (H = u) e: {\n          var W,\n            V,\n            G,\n            Y = s,\n            J = f,\n            X = p,\n            K = b,\n            Z = n,\n            $ = Y.m,\n            Q = Y.s,\n            tt = [null],\n            et = 1,\n            rt = 0,\n            nt = Qn[K];\n          r: for (;;) {\n            if (Z && y($, 1)) {\n              var it = y($, 3) + 2,\n                at = q(J, it),\n                ot = q(X, it),\n                st = at * ot;\n              if (!It(at, ot, 0, Y, tt)) break r;\n              for (tt = tt[0], Q.xc = it, W = 0; W < st; ++W) {\n                var ct = tt[W] >> 8 & 65535;\n                tt[W] = ct, ct >= et && (et = ct + 1);\n              }\n            }\n            if ($.h) break r;\n            for (V = 0; 5 > V; ++V) {\n              var ut = Xn[V];\n              !V && 0 < K && (ut += 1 << K), rt < ut && (rt = ut);\n            }\n            var ht = o(et * nt, l),\n              lt = et,\n              ft = o(lt, d);\n            if (null == ft) var dt = null;else e(65536 >= lt), dt = ft;\n            var pt = a(rt);\n            if (null == dt || null == pt || null == ht) {\n              Y.a = 1;\n              break r;\n            }\n            var gt = ht;\n            for (W = G = 0; W < et; ++W) {\n              var mt = dt[W],\n                vt = mt.G,\n                bt = mt.H,\n                wt = 0,\n                Nt = 1,\n                Lt = 0;\n              for (V = 0; 5 > V; ++V) {\n                ut = Xn[V], vt[V] = gt, bt[V] = G, !V && 0 < K && (ut += 1 << K);\n                n: {\n                  var At,\n                    xt = ut,\n                    St = Y,\n                    kt = pt,\n                    Ft = gt,\n                    Ct = G,\n                    jt = 0,\n                    Ot = St.m,\n                    Bt = y(Ot, 1);\n                  if (i(kt, 0, 0, xt), Bt) {\n                    var Mt = y(Ot, 1) + 1,\n                      Et = y(Ot, 1),\n                      qt = y(Ot, 0 == Et ? 1 : 8);\n                    kt[qt] = 1, 2 == Mt && (kt[qt = y(Ot, 8)] = 1);\n                    var Dt = 1;\n                  } else {\n                    var Rt = a(19),\n                      Tt = y(Ot, 4) + 4;\n                    if (19 < Tt) {\n                      St.a = 3;\n                      var Ut = 0;\n                      break n;\n                    }\n                    for (At = 0; At < Tt; ++At) Rt[Zn[At]] = y(Ot, 3);\n                    var zt = void 0,\n                      Ht = void 0,\n                      Wt = St,\n                      Vt = Rt,\n                      Gt = xt,\n                      Yt = kt,\n                      Jt = 0,\n                      Xt = Wt.m,\n                      Kt = 8,\n                      Zt = o(128, l);\n                    i: for (; h(Zt, 0, 7, Vt, 19);) {\n                      if (y(Xt, 1)) {\n                        var $t = 2 + 2 * y(Xt, 3);\n                        if ((zt = 2 + y(Xt, $t)) > Gt) break i;\n                      } else zt = Gt;\n                      for (Ht = 0; Ht < Gt && zt--;) {\n                        S(Xt);\n                        var Qt = Zt[0 + (127 & L(Xt))];\n                        x(Xt, Xt.u + Qt.g);\n                        var te = Qt.value;\n                        if (16 > te) Yt[Ht++] = te, 0 != te && (Kt = te);else {\n                          var ee = 16 == te,\n                            re = te - 16,\n                            ne = Jn[re],\n                            ie = y(Xt, Yn[re]) + ne;\n                          if (Ht + ie > Gt) break i;\n                          for (var ae = ee ? Kt : 0; 0 < ie--;) Yt[Ht++] = ae;\n                        }\n                      }\n                      Jt = 1;\n                      break i;\n                    }\n                    Jt || (Wt.a = 3), Dt = Jt;\n                  }\n                  (Dt = Dt && !Ot.h) && (jt = h(Ft, Ct, 8, kt, xt)), Dt && 0 != jt ? Ut = jt : (St.a = 3, Ut = 0);\n                }\n                if (0 == Ut) break r;\n                if (Nt && 1 == Kn[V] && (Nt = 0 == gt[G].g), wt += gt[G].g, G += Ut, 3 >= V) {\n                  var oe,\n                    se = pt[0];\n                  for (oe = 1; oe < ut; ++oe) pt[oe] > se && (se = pt[oe]);\n                  Lt += se;\n                }\n              }\n              if (mt.nd = Nt, mt.Qb = 0, Nt && (mt.qb = (vt[3][bt[3] + 0].value << 24 | vt[1][bt[1] + 0].value << 16 | vt[2][bt[2] + 0].value) >>> 0, 0 == wt && 256 > vt[0][bt[0] + 0].value && (mt.Qb = 1, mt.qb += vt[0][bt[0] + 0].value << 8)), mt.jc = !mt.Qb && 6 > Lt, mt.jc) {\n                var ce,\n                  ue = mt;\n                for (ce = 0; ce < Dr; ++ce) {\n                  var he = ce,\n                    le = ue.pd[he],\n                    fe = ue.G[0][ue.H[0] + he];\n                  256 <= fe.value ? (le.g = fe.g + 256, le.value = fe.value) : (le.g = 0, le.value = 0, he >>= yt(fe, 8, le), he >>= yt(ue.G[1][ue.H[1] + he], 16, le), he >>= yt(ue.G[2][ue.H[2] + he], 0, le), yt(ue.G[3][ue.H[3] + he], 24, le));\n                }\n              }\n            }\n            Q.vc = tt, Q.Wb = et, Q.Ya = dt, Q.yc = ht, H = 1;\n            break e;\n          }\n          H = 0;\n        }\n        if (!(u = H)) {\n          s.a = 3;\n          break t;\n        }\n        if (0 < b) {\n          if (m.ua = 1 << b, !O(m.Wa, b)) {\n            s.a = 1, u = 0;\n            break t;\n          }\n        } else m.ua = 0;\n        var de = s,\n          pe = f,\n          ge = p,\n          me = de.s,\n          ve = me.xc;\n        if (de.c = pe, de.i = ge, me.md = q(pe, ve), me.wc = 0 == ve ? -1 : (1 << ve) - 1, n) {\n          s.xb = pi;\n          break t;\n        }\n        if (null == (v = a(f * p))) {\n          s.a = 1, u = 0;\n          break t;\n        }\n        u = (u = _t(s, v, 0, f, p, p, null)) && !g.h;\n        break t;\n      }\n      return u ? (null != c ? c[0] = v : (e(null == v), e(n)), s.$ = 0, n || Pt(m)) : Pt(m), u;\n    }\n    function Ft(t, r) {\n      var n = t.c * t.i,\n        i = n + r + 16 * r;\n      return e(t.c <= r), t.V = a(i), null == t.V ? (t.Ta = null, t.Ua = 0, t.a = 1, 0) : (t.Ta = t.V, t.Ua = t.Ba + n + r, 1);\n    }\n    function Ct(t, r) {\n      var n = t.C,\n        i = r - n,\n        a = t.V,\n        o = t.Ba + t.c * n;\n      for (e(r <= t.l.o); 0 < i;) {\n        var s = 16 < i ? 16 : i,\n          c = t.l.ma,\n          u = t.l.width,\n          h = u * s,\n          l = c.ca,\n          f = c.tb + u * n,\n          d = t.Ta,\n          p = t.Ua;\n        Nt(t, s, a, o), _n(d, p, l, f, h), xt(c, n, n + s, l, f, u), i -= s, a += s * t.c, n += s;\n      }\n      e(n == r), t.C = t.Ma = r;\n    }\n    function jt() {\n      this.ub = this.yd = this.td = this.Rb = 0;\n    }\n    function Ot() {\n      this.Kd = this.Ld = this.Ud = this.Td = this.i = this.c = 0;\n    }\n    function Bt() {\n      this.Fb = this.Bb = this.Cb = 0, this.Zb = a(4), this.Lb = a(4);\n    }\n    function Mt() {\n      this.Yb = function () {\n        var t = [];\n        return function t(e, r, n) {\n          for (var i = n[r], a = 0; a < i && (e.push(n.length > r + 1 ? [] : 0), !(n.length < r + 1)); a++) t(e[a], r + 1, n);\n        }(t, 0, [3, 11]), t;\n      }();\n    }\n    function Et() {\n      this.jb = a(3), this.Wc = s([4, 8], Mt), this.Xc = s([4, 17], Mt);\n    }\n    function qt() {\n      this.Pc = this.wb = this.Tb = this.zd = 0, this.vd = new a(4), this.od = new a(4);\n    }\n    function Dt() {\n      this.ld = this.La = this.dd = this.tc = 0;\n    }\n    function Rt() {\n      this.Na = this.la = 0;\n    }\n    function Tt() {\n      this.Sc = [0, 0], this.Eb = [0, 0], this.Qc = [0, 0], this.ia = this.lc = 0;\n    }\n    function Ut() {\n      this.ad = a(384), this.Za = 0, this.Ob = a(16), this.$b = this.Ad = this.ia = this.Gc = this.Hc = this.Dd = 0;\n    }\n    function zt() {\n      this.uc = this.M = this.Nb = 0, this.wa = Array(new Dt()), this.Y = 0, this.ya = Array(new Ut()), this.aa = 0, this.l = new Gt();\n    }\n    function Ht() {\n      this.y = a(16), this.f = a(8), this.ea = a(8);\n    }\n    function Wt() {\n      this.cb = this.a = 0, this.sc = \"\", this.m = new w(), this.Od = new jt(), this.Kc = new Ot(), this.ed = new qt(), this.Qa = new Bt(), this.Ic = this.$c = this.Aa = 0, this.D = new zt(), this.Xb = this.Va = this.Hb = this.zb = this.yb = this.Ub = this.za = 0, this.Jc = o(8, w), this.ia = 0, this.pb = o(4, Tt), this.Pa = new Et(), this.Bd = this.kc = 0, this.Ac = [], this.Bc = 0, this.zc = [0, 0, 0, 0], this.Gd = Array(new Ht()), this.Hd = 0, this.rb = Array(new Rt()), this.sb = 0, this.wa = Array(new Dt()), this.Y = 0, this.oc = [], this.pc = 0, this.sa = [], this.ta = 0, this.qa = [], this.ra = 0, this.Ha = [], this.B = this.R = this.Ia = 0, this.Ec = [], this.M = this.ja = this.Vb = this.Fc = 0, this.ya = Array(new Ut()), this.L = this.aa = 0, this.gd = s([4, 2], Dt), this.ga = null, this.Fa = [], this.Cc = this.qc = this.P = 0, this.Gb = [], this.Uc = 0, this.mb = [], this.nb = 0, this.rc = [], this.Ga = this.Vc = 0;\n    }\n    function Vt(t, e) {\n      return 0 > t ? 0 : t > e ? e : t;\n    }\n    function Gt() {\n      this.T = this.U = this.ka = this.height = this.width = 0, this.y = [], this.f = [], this.ea = [], this.Rc = this.fa = this.W = this.N = this.O = 0, this.ma = \"void\", this.put = \"VP8IoPutHook\", this.ac = \"VP8IoSetupHook\", this.bc = \"VP8IoTeardownHook\", this.ha = this.Kb = 0, this.data = [], this.hb = this.ib = this.da = this.o = this.j = this.va = this.v = this.Da = this.ob = this.w = 0, this.F = [], this.J = 0;\n    }\n    function Yt() {\n      var t = new Wt();\n      return null != t && (t.a = 0, t.sc = \"OK\", t.cb = 0, t.Xb = 0, ni || (ni = Zt)), t;\n    }\n    function Jt(t, e, r) {\n      return 0 == t.a && (t.a = e, t.sc = r, t.cb = 0), 0;\n    }\n    function Xt(t, e, r) {\n      return 3 <= r && 157 == t[e + 0] && 1 == t[e + 1] && 42 == t[e + 2];\n    }\n    function Kt(t, r) {\n      if (null == t) return 0;\n      if (t.a = 0, t.sc = \"OK\", null == r) return Jt(t, 2, \"null VP8Io passed to VP8GetHeaders()\");\n      var n = r.data,\n        a = r.w,\n        o = r.ha;\n      if (4 > o) return Jt(t, 7, \"Truncated header.\");\n      var s = n[a + 0] | n[a + 1] << 8 | n[a + 2] << 16,\n        c = t.Od;\n      if (c.Rb = !(1 & s), c.td = s >> 1 & 7, c.yd = s >> 4 & 1, c.ub = s >> 5, 3 < c.td) return Jt(t, 3, \"Incorrect keyframe parameters.\");\n      if (!c.yd) return Jt(t, 4, \"Frame not displayable.\");\n      a += 3, o -= 3;\n      var u = t.Kc;\n      if (c.Rb) {\n        if (7 > o) return Jt(t, 7, \"cannot parse picture header\");\n        if (!Xt(n, a, o)) return Jt(t, 3, \"Bad code word\");\n        u.c = 16383 & (n[a + 4] << 8 | n[a + 3]), u.Td = n[a + 4] >> 6, u.i = 16383 & (n[a + 6] << 8 | n[a + 5]), u.Ud = n[a + 6] >> 6, a += 7, o -= 7, t.za = u.c + 15 >> 4, t.Ub = u.i + 15 >> 4, r.width = u.c, r.height = u.i, r.Da = 0, r.j = 0, r.v = 0, r.va = r.width, r.o = r.height, r.da = 0, r.ib = r.width, r.hb = r.height, r.U = r.width, r.T = r.height, i((s = t.Pa).jb, 0, 255, s.jb.length), e(null != (s = t.Qa)), s.Cb = 0, s.Bb = 0, s.Fb = 1, i(s.Zb, 0, 0, s.Zb.length), i(s.Lb, 0, 0, s.Lb);\n      }\n      if (c.ub > o) return Jt(t, 7, \"bad partition length\");\n      p(s = t.m, n, a, c.ub), a += c.ub, o -= c.ub, c.Rb && (u.Ld = P(s), u.Kd = P(s)), u = t.Qa;\n      var h,\n        l = t.Pa;\n      if (e(null != s), e(null != u), u.Cb = P(s), u.Cb) {\n        if (u.Bb = P(s), P(s)) {\n          for (u.Fb = P(s), h = 0; 4 > h; ++h) u.Zb[h] = P(s) ? m(s, 7) : 0;\n          for (h = 0; 4 > h; ++h) u.Lb[h] = P(s) ? m(s, 6) : 0;\n        }\n        if (u.Bb) for (h = 0; 3 > h; ++h) l.jb[h] = P(s) ? g(s, 8) : 255;\n      } else u.Bb = 0;\n      if (s.Ka) return Jt(t, 3, \"cannot parse segment header\");\n      if ((u = t.ed).zd = P(s), u.Tb = g(s, 6), u.wb = g(s, 3), u.Pc = P(s), u.Pc && P(s)) {\n        for (l = 0; 4 > l; ++l) P(s) && (u.vd[l] = m(s, 6));\n        for (l = 0; 4 > l; ++l) P(s) && (u.od[l] = m(s, 6));\n      }\n      if (t.L = 0 == u.Tb ? 0 : u.zd ? 1 : 2, s.Ka) return Jt(t, 3, \"cannot parse filter header\");\n      var f = o;\n      if (o = h = a, a = h + f, u = f, t.Xb = (1 << g(t.m, 2)) - 1, f < 3 * (l = t.Xb)) n = 7;else {\n        for (h += 3 * l, u -= 3 * l, f = 0; f < l; ++f) {\n          var d = n[o + 0] | n[o + 1] << 8 | n[o + 2] << 16;\n          d > u && (d = u), p(t.Jc[+f], n, h, d), h += d, u -= d, o += 3;\n        }\n        p(t.Jc[+l], n, h, u), n = h < a ? 0 : 5;\n      }\n      if (0 != n) return Jt(t, n, \"cannot parse partitions\");\n      for (n = g(h = t.m, 7), o = P(h) ? m(h, 4) : 0, a = P(h) ? m(h, 4) : 0, u = P(h) ? m(h, 4) : 0, l = P(h) ? m(h, 4) : 0, h = P(h) ? m(h, 4) : 0, f = t.Qa, d = 0; 4 > d; ++d) {\n        if (f.Cb) {\n          var v = f.Zb[d];\n          f.Fb || (v += n);\n        } else {\n          if (0 < d) {\n            t.pb[d] = t.pb[0];\n            continue;\n          }\n          v = n;\n        }\n        var b = t.pb[d];\n        b.Sc[0] = ei[Vt(v + o, 127)], b.Sc[1] = ri[Vt(v + 0, 127)], b.Eb[0] = 2 * ei[Vt(v + a, 127)], b.Eb[1] = 101581 * ri[Vt(v + u, 127)] >> 16, 8 > b.Eb[1] && (b.Eb[1] = 8), b.Qc[0] = ei[Vt(v + l, 117)], b.Qc[1] = ri[Vt(v + h, 127)], b.lc = v + h;\n      }\n      if (!c.Rb) return Jt(t, 4, \"Not a key frame.\");\n      for (P(s), c = t.Pa, n = 0; 4 > n; ++n) {\n        for (o = 0; 8 > o; ++o) for (a = 0; 3 > a; ++a) for (u = 0; 11 > u; ++u) l = k(s, ui[n][o][a][u]) ? g(s, 8) : si[n][o][a][u], c.Wc[n][o].Yb[a][u] = l;\n        for (o = 0; 17 > o; ++o) c.Xc[n][o] = c.Wc[n][hi[o]];\n      }\n      return t.kc = P(s), t.kc && (t.Bd = g(s, 8)), t.cb = 1;\n    }\n    function Zt(t, e, r, n, i, a, o) {\n      var s = e[i].Yb[r];\n      for (r = 0; 16 > i; ++i) {\n        if (!k(t, s[r + 0])) return i;\n        for (; !k(t, s[r + 1]);) if (s = e[++i].Yb[0], r = 0, 16 == i) return 16;\n        var c = e[i + 1].Yb;\n        if (k(t, s[r + 2])) {\n          var u = t,\n            h = 0;\n          if (k(u, (f = s)[(l = r) + 3])) {\n            if (k(u, f[l + 6])) {\n              for (s = 0, l = 2 * (h = k(u, f[l + 8])) + (f = k(u, f[l + 9 + h])), h = 0, f = ii[l]; f[s]; ++s) h += h + k(u, f[s]);\n              h += 3 + (8 << l);\n            } else k(u, f[l + 7]) ? (h = 7 + 2 * k(u, 165), h += k(u, 145)) : h = 5 + k(u, 159);\n          } else h = k(u, f[l + 4]) ? 3 + k(u, f[l + 5]) : 2;\n          s = c[2];\n        } else h = 1, s = c[1];\n        c = o + ai[i], 0 > (u = t).b && _(u);\n        var l,\n          f = u.b,\n          d = (l = u.Ca >> 1) - (u.I >> f) >> 31;\n        --u.b, u.Ca += d, u.Ca |= 1, u.I -= (l + 1 & d) << f, a[c] = ((h ^ d) - d) * n[(0 < i) + 0];\n      }\n      return 16;\n    }\n    function $t(t) {\n      var e = t.rb[t.sb - 1];\n      e.la = 0, e.Na = 0, i(t.zc, 0, 0, t.zc.length), t.ja = 0;\n    }\n    function Qt(t, r) {\n      if (null == t) return 0;\n      if (null == r) return Jt(t, 2, \"NULL VP8Io parameter in VP8Decode().\");\n      if (!t.cb && !Kt(t, r)) return 0;\n      if (e(t.cb), null == r.ac || r.ac(r)) {\n        r.ob && (t.L = 0);\n        var s = Ri[t.L];\n        if (2 == t.L ? (t.yb = 0, t.zb = 0) : (t.yb = r.v - s >> 4, t.zb = r.j - s >> 4, 0 > t.yb && (t.yb = 0), 0 > t.zb && (t.zb = 0)), t.Va = r.o + 15 + s >> 4, t.Hb = r.va + 15 + s >> 4, t.Hb > t.za && (t.Hb = t.za), t.Va > t.Ub && (t.Va = t.Ub), 0 < t.L) {\n          var c = t.ed;\n          for (s = 0; 4 > s; ++s) {\n            var u;\n            if (t.Qa.Cb) {\n              var h = t.Qa.Lb[s];\n              t.Qa.Fb || (h += c.Tb);\n            } else h = c.Tb;\n            for (u = 0; 1 >= u; ++u) {\n              var l = t.gd[s][u],\n                f = h;\n              if (c.Pc && (f += c.vd[0], u && (f += c.od[0])), 0 < (f = 0 > f ? 0 : 63 < f ? 63 : f)) {\n                var d = f;\n                0 < c.wb && (d = 4 < c.wb ? d >> 2 : d >> 1) > 9 - c.wb && (d = 9 - c.wb), 1 > d && (d = 1), l.dd = d, l.tc = 2 * f + d, l.ld = 40 <= f ? 2 : 15 <= f ? 1 : 0;\n              } else l.tc = 0;\n              l.La = u;\n            }\n          }\n        }\n        s = 0;\n      } else Jt(t, 6, \"Frame setup failed\"), s = t.a;\n      if (s = 0 == s) {\n        if (s) {\n          t.$c = 0, 0 < t.Aa || (t.Ic = Ui);\n          t: {\n            s = t.Ic;\n            c = 4 * (d = t.za);\n            var p = 32 * d,\n              g = d + 1,\n              m = 0 < t.L ? d * (0 < t.Aa ? 2 : 1) : 0,\n              v = (2 == t.Aa ? 2 : 1) * d;\n            if ((l = c + 832 + (u = 3 * (16 * s + Ri[t.L]) / 2 * p) + (h = null != t.Fa && 0 < t.Fa.length ? t.Kc.c * t.Kc.i : 0)) != l) s = 0;else {\n              if (l > t.Vb) {\n                if (t.Vb = 0, t.Ec = a(l), t.Fc = 0, null == t.Ec) {\n                  s = Jt(t, 1, \"no memory during frame initialization.\");\n                  break t;\n                }\n                t.Vb = l;\n              }\n              l = t.Ec, f = t.Fc, t.Ac = l, t.Bc = f, f += c, t.Gd = o(p, Ht), t.Hd = 0, t.rb = o(g + 1, Rt), t.sb = 1, t.wa = m ? o(m, Dt) : null, t.Y = 0, t.D.Nb = 0, t.D.wa = t.wa, t.D.Y = t.Y, 0 < t.Aa && (t.D.Y += d), e(!0), t.oc = l, t.pc = f, f += 832, t.ya = o(v, Ut), t.aa = 0, t.D.ya = t.ya, t.D.aa = t.aa, 2 == t.Aa && (t.D.aa += d), t.R = 16 * d, t.B = 8 * d, d = (p = Ri[t.L]) * t.R, p = p / 2 * t.B, t.sa = l, t.ta = f + d, t.qa = t.sa, t.ra = t.ta + 16 * s * t.R + p, t.Ha = t.qa, t.Ia = t.ra + 8 * s * t.B + p, t.$c = 0, f += u, t.mb = h ? l : null, t.nb = h ? f : null, e(f + h <= t.Fc + t.Vb), $t(t), i(t.Ac, t.Bc, 0, c), s = 1;\n            }\n          }\n          if (s) {\n            if (r.ka = 0, r.y = t.sa, r.O = t.ta, r.f = t.qa, r.N = t.ra, r.ea = t.Ha, r.Vd = t.Ia, r.fa = t.R, r.Rc = t.B, r.F = null, r.J = 0, !Cn) {\n              for (s = -255; 255 >= s; ++s) Pn[255 + s] = 0 > s ? -s : s;\n              for (s = -1020; 1020 >= s; ++s) kn[1020 + s] = -128 > s ? -128 : 127 < s ? 127 : s;\n              for (s = -112; 112 >= s; ++s) In[112 + s] = -16 > s ? -16 : 15 < s ? 15 : s;\n              for (s = -255; 510 >= s; ++s) Fn[255 + s] = 0 > s ? 0 : 255 < s ? 255 : s;\n              Cn = 1;\n            }\n            an = ue, on = ae, cn = oe, un = se, hn = ce, sn = ie, ln = Je, fn = Xe, dn = $e, pn = Qe, gn = Ke, mn = Ze, vn = tr, bn = er, yn = ze, wn = He, Nn = We, Ln = Ve, fi[0] = xe, fi[1] = le, fi[2] = Le, fi[3] = Ae, fi[4] = Se, fi[5] = Pe, fi[6] = _e, fi[7] = ke, fi[8] = Fe, fi[9] = Ie, li[0] = ve, li[1] = de, li[2] = pe, li[3] = ge, li[4] = be, li[5] = ye, li[6] = we, di[0] = Be, di[1] = fe, di[2] = Ce, di[3] = je, di[4] = Ee, di[5] = Me, di[6] = qe, s = 1;\n          } else s = 0;\n        }\n        s && (s = function (t, r) {\n          for (t.M = 0; t.M < t.Va; ++t.M) {\n            var o,\n              s = t.Jc[t.M & t.Xb],\n              c = t.m,\n              u = t;\n            for (o = 0; o < u.za; ++o) {\n              var h = c,\n                l = u,\n                f = l.Ac,\n                d = l.Bc + 4 * o,\n                p = l.zc,\n                g = l.ya[l.aa + o];\n              if (l.Qa.Bb ? g.$b = k(h, l.Pa.jb[0]) ? 2 + k(h, l.Pa.jb[2]) : k(h, l.Pa.jb[1]) : g.$b = 0, l.kc && (g.Ad = k(h, l.Bd)), g.Za = !k(h, 145) + 0, g.Za) {\n                var m = g.Ob,\n                  v = 0;\n                for (l = 0; 4 > l; ++l) {\n                  var b,\n                    y = p[0 + l];\n                  for (b = 0; 4 > b; ++b) {\n                    y = ci[f[d + b]][y];\n                    for (var w = oi[k(h, y[0])]; 0 < w;) w = oi[2 * w + k(h, y[w])];\n                    y = -w, f[d + b] = y;\n                  }\n                  n(m, v, f, d, 4), v += 4, p[0 + l] = y;\n                }\n              } else y = k(h, 156) ? k(h, 128) ? 1 : 3 : k(h, 163) ? 2 : 0, g.Ob[0] = y, i(f, d, y, 4), i(p, 0, y, 4);\n              g.Dd = k(h, 142) ? k(h, 114) ? k(h, 183) ? 1 : 3 : 2 : 0;\n            }\n            if (u.m.Ka) return Jt(t, 7, \"Premature end-of-partition0 encountered.\");\n            for (; t.ja < t.za; ++t.ja) {\n              if (u = s, h = (c = t).rb[c.sb - 1], f = c.rb[c.sb + c.ja], o = c.ya[c.aa + c.ja], d = c.kc ? o.Ad : 0) h.la = f.la = 0, o.Za || (h.Na = f.Na = 0), o.Hc = 0, o.Gc = 0, o.ia = 0;else {\n                var N, L;\n                h = f, f = u, d = c.Pa.Xc, p = c.ya[c.aa + c.ja], g = c.pb[p.$b];\n                if (l = p.ad, m = 0, v = c.rb[c.sb - 1], y = b = 0, i(l, m, 0, 384), p.Za) var A = 0,\n                  x = d[3];else {\n                  w = a(16);\n                  var S = h.Na + v.Na;\n                  if (S = ni(f, d[1], S, g.Eb, 0, w, 0), h.Na = v.Na = (0 < S) + 0, 1 < S) an(w, 0, l, m);else {\n                    var _ = w[0] + 3 >> 3;\n                    for (w = 0; 256 > w; w += 16) l[m + w] = _;\n                  }\n                  A = 1, x = d[0];\n                }\n                var P = 15 & h.la,\n                  I = 15 & v.la;\n                for (w = 0; 4 > w; ++w) {\n                  var F = 1 & I;\n                  for (_ = L = 0; 4 > _; ++_) P = P >> 1 | (F = (S = ni(f, x, S = F + (1 & P), g.Sc, A, l, m)) > A) << 7, L = L << 2 | (3 < S ? 3 : 1 < S ? 2 : 0 != l[m + 0]), m += 16;\n                  P >>= 4, I = I >> 1 | F << 7, b = (b << 8 | L) >>> 0;\n                }\n                for (x = P, A = I >> 4, N = 0; 4 > N; N += 2) {\n                  for (L = 0, P = h.la >> 4 + N, I = v.la >> 4 + N, w = 0; 2 > w; ++w) {\n                    for (F = 1 & I, _ = 0; 2 > _; ++_) S = F + (1 & P), P = P >> 1 | (F = 0 < (S = ni(f, d[2], S, g.Qc, 0, l, m))) << 3, L = L << 2 | (3 < S ? 3 : 1 < S ? 2 : 0 != l[m + 0]), m += 16;\n                    P >>= 2, I = I >> 1 | F << 5;\n                  }\n                  y |= L << 4 * N, x |= P << 4 << N, A |= (240 & I) << N;\n                }\n                h.la = x, v.la = A, p.Hc = b, p.Gc = y, p.ia = 43690 & y ? 0 : g.ia, d = !(b | y);\n              }\n              if (0 < c.L && (c.wa[c.Y + c.ja] = c.gd[o.$b][o.Za], c.wa[c.Y + c.ja].La |= !d), u.Ka) return Jt(t, 7, \"Premature end-of-file encountered.\");\n            }\n            if ($t(t), c = r, u = 1, o = (s = t).D, h = 0 < s.L && s.M >= s.zb && s.M <= s.Va, 0 == s.Aa) t: {\n              if (o.M = s.M, o.uc = h, Or(s, o), u = 1, o = (L = s.D).Nb, h = (y = Ri[s.L]) * s.R, f = y / 2 * s.B, w = 16 * o * s.R, _ = 8 * o * s.B, d = s.sa, p = s.ta - h + w, g = s.qa, l = s.ra - f + _, m = s.Ha, v = s.Ia - f + _, I = 0 == (P = L.M), b = P >= s.Va - 1, 2 == s.Aa && Or(s, L), L.uc) for (F = (S = s).D.M, e(S.D.uc), L = S.yb; L < S.Hb; ++L) {\n                A = L, x = F;\n                var C = (j = (U = S).D).Nb;\n                N = U.R;\n                var j = j.wa[j.Y + A],\n                  O = U.sa,\n                  B = U.ta + 16 * C * N + 16 * A,\n                  M = j.dd,\n                  E = j.tc;\n                if (0 != E) if (e(3 <= E), 1 == U.L) 0 < A && wn(O, B, N, E + 4), j.La && Ln(O, B, N, E), 0 < x && yn(O, B, N, E + 4), j.La && Nn(O, B, N, E);else {\n                  var q = U.B,\n                    D = U.qa,\n                    R = U.ra + 8 * C * q + 8 * A,\n                    T = U.Ha,\n                    U = U.Ia + 8 * C * q + 8 * A;\n                  C = j.ld;\n                  0 < A && (fn(O, B, N, E + 4, M, C), pn(D, R, T, U, q, E + 4, M, C)), j.La && (mn(O, B, N, E, M, C), bn(D, R, T, U, q, E, M, C)), 0 < x && (ln(O, B, N, E + 4, M, C), dn(D, R, T, U, q, E + 4, M, C)), j.La && (gn(O, B, N, E, M, C), vn(D, R, T, U, q, E, M, C));\n                }\n              }\n              if (s.ia && alert(\"todo:DitherRow\"), null != c.put) {\n                if (L = 16 * P, P = 16 * (P + 1), I ? (c.y = s.sa, c.O = s.ta + w, c.f = s.qa, c.N = s.ra + _, c.ea = s.Ha, c.W = s.Ia + _) : (L -= y, c.y = d, c.O = p, c.f = g, c.N = l, c.ea = m, c.W = v), b || (P -= y), P > c.o && (P = c.o), c.F = null, c.J = null, null != s.Fa && 0 < s.Fa.length && L < P && (c.J = lr(s, c, L, P - L), c.F = s.mb, null == c.F && 0 == c.F.length)) {\n                  u = Jt(s, 3, \"Could not decode alpha data.\");\n                  break t;\n                }\n                L < c.j && (y = c.j - L, L = c.j, e(!(1 & y)), c.O += s.R * y, c.N += s.B * (y >> 1), c.W += s.B * (y >> 1), null != c.F && (c.J += c.width * y)), L < P && (c.O += c.v, c.N += c.v >> 1, c.W += c.v >> 1, null != c.F && (c.J += c.v), c.ka = L - c.j, c.U = c.va - c.v, c.T = P - L, u = c.put(c));\n              }\n              o + 1 != s.Ic || b || (n(s.sa, s.ta - h, d, p + 16 * s.R, h), n(s.qa, s.ra - f, g, l + 8 * s.B, f), n(s.Ha, s.Ia - f, m, v + 8 * s.B, f));\n            }\n            if (!u) return Jt(t, 6, \"Output aborted.\");\n          }\n          return 1;\n        }(t, r)), null != r.bc && r.bc(r), s &= 1;\n      }\n      return s ? (t.cb = 0, s) : 0;\n    }\n    function te(t, e, r, n, i) {\n      i = t[e + r + 32 * n] + (i >> 3), t[e + r + 32 * n] = -256 & i ? 0 > i ? 0 : 255 : i;\n    }\n    function ee(t, e, r, n, i, a) {\n      te(t, e, 0, r, n + i), te(t, e, 1, r, n + a), te(t, e, 2, r, n - a), te(t, e, 3, r, n - i);\n    }\n    function re(t) {\n      return (20091 * t >> 16) + t;\n    }\n    function ne(t, e, r, n) {\n      var i,\n        o = 0,\n        s = a(16);\n      for (i = 0; 4 > i; ++i) {\n        var c = t[e + 0] + t[e + 8],\n          u = t[e + 0] - t[e + 8],\n          h = (35468 * t[e + 4] >> 16) - re(t[e + 12]),\n          l = re(t[e + 4]) + (35468 * t[e + 12] >> 16);\n        s[o + 0] = c + l, s[o + 1] = u + h, s[o + 2] = u - h, s[o + 3] = c - l, o += 4, e++;\n      }\n      for (i = o = 0; 4 > i; ++i) c = (t = s[o + 0] + 4) + s[o + 8], u = t - s[o + 8], h = (35468 * s[o + 4] >> 16) - re(s[o + 12]), te(r, n, 0, 0, c + (l = re(s[o + 4]) + (35468 * s[o + 12] >> 16))), te(r, n, 1, 0, u + h), te(r, n, 2, 0, u - h), te(r, n, 3, 0, c - l), o++, n += 32;\n    }\n    function ie(t, e, r, n) {\n      var i = t[e + 0] + 4,\n        a = 35468 * t[e + 4] >> 16,\n        o = re(t[e + 4]),\n        s = 35468 * t[e + 1] >> 16;\n      ee(r, n, 0, i + o, t = re(t[e + 1]), s), ee(r, n, 1, i + a, t, s), ee(r, n, 2, i - a, t, s), ee(r, n, 3, i - o, t, s);\n    }\n    function ae(t, e, r, n, i) {\n      ne(t, e, r, n), i && ne(t, e + 16, r, n + 4);\n    }\n    function oe(t, e, r, n) {\n      on(t, e + 0, r, n, 1), on(t, e + 32, r, n + 128, 1);\n    }\n    function se(t, e, r, n) {\n      var i;\n      for (t = t[e + 0] + 4, i = 0; 4 > i; ++i) for (e = 0; 4 > e; ++e) te(r, n, e, i, t);\n    }\n    function ce(t, e, r, n) {\n      t[e + 0] && un(t, e + 0, r, n), t[e + 16] && un(t, e + 16, r, n + 4), t[e + 32] && un(t, e + 32, r, n + 128), t[e + 48] && un(t, e + 48, r, n + 128 + 4);\n    }\n    function ue(t, e, r, n) {\n      var i,\n        o = a(16);\n      for (i = 0; 4 > i; ++i) {\n        var s = t[e + 0 + i] + t[e + 12 + i],\n          c = t[e + 4 + i] + t[e + 8 + i],\n          u = t[e + 4 + i] - t[e + 8 + i],\n          h = t[e + 0 + i] - t[e + 12 + i];\n        o[0 + i] = s + c, o[8 + i] = s - c, o[4 + i] = h + u, o[12 + i] = h - u;\n      }\n      for (i = 0; 4 > i; ++i) s = (t = o[0 + 4 * i] + 3) + o[3 + 4 * i], c = o[1 + 4 * i] + o[2 + 4 * i], u = o[1 + 4 * i] - o[2 + 4 * i], h = t - o[3 + 4 * i], r[n + 0] = s + c >> 3, r[n + 16] = h + u >> 3, r[n + 32] = s - c >> 3, r[n + 48] = h - u >> 3, n += 64;\n    }\n    function he(t, e, r) {\n      var n,\n        i = e - 32,\n        a = Bn,\n        o = 255 - t[i - 1];\n      for (n = 0; n < r; ++n) {\n        var s,\n          c = a,\n          u = o + t[e - 1];\n        for (s = 0; s < r; ++s) t[e + s] = c[u + t[i + s]];\n        e += 32;\n      }\n    }\n    function le(t, e) {\n      he(t, e, 4);\n    }\n    function fe(t, e) {\n      he(t, e, 8);\n    }\n    function de(t, e) {\n      he(t, e, 16);\n    }\n    function pe(t, e) {\n      var r;\n      for (r = 0; 16 > r; ++r) n(t, e + 32 * r, t, e - 32, 16);\n    }\n    function ge(t, e) {\n      var r;\n      for (r = 16; 0 < r; --r) i(t, e, t[e - 1], 16), e += 32;\n    }\n    function me(t, e, r) {\n      var n;\n      for (n = 0; 16 > n; ++n) i(e, r + 32 * n, t, 16);\n    }\n    function ve(t, e) {\n      var r,\n        n = 16;\n      for (r = 0; 16 > r; ++r) n += t[e - 1 + 32 * r] + t[e + r - 32];\n      me(n >> 5, t, e);\n    }\n    function be(t, e) {\n      var r,\n        n = 8;\n      for (r = 0; 16 > r; ++r) n += t[e - 1 + 32 * r];\n      me(n >> 4, t, e);\n    }\n    function ye(t, e) {\n      var r,\n        n = 8;\n      for (r = 0; 16 > r; ++r) n += t[e + r - 32];\n      me(n >> 4, t, e);\n    }\n    function we(t, e) {\n      me(128, t, e);\n    }\n    function Ne(t, e, r) {\n      return t + 2 * e + r + 2 >> 2;\n    }\n    function Le(t, e) {\n      var r,\n        i = e - 32;\n      i = new Uint8Array([Ne(t[i - 1], t[i + 0], t[i + 1]), Ne(t[i + 0], t[i + 1], t[i + 2]), Ne(t[i + 1], t[i + 2], t[i + 3]), Ne(t[i + 2], t[i + 3], t[i + 4])]);\n      for (r = 0; 4 > r; ++r) n(t, e + 32 * r, i, 0, i.length);\n    }\n    function Ae(t, e) {\n      var r = t[e - 1],\n        n = t[e - 1 + 32],\n        i = t[e - 1 + 64],\n        a = t[e - 1 + 96];\n      I(t, e + 0, 16843009 * Ne(t[e - 1 - 32], r, n)), I(t, e + 32, 16843009 * Ne(r, n, i)), I(t, e + 64, 16843009 * Ne(n, i, a)), I(t, e + 96, 16843009 * Ne(i, a, a));\n    }\n    function xe(t, e) {\n      var r,\n        n = 4;\n      for (r = 0; 4 > r; ++r) n += t[e + r - 32] + t[e - 1 + 32 * r];\n      for (n >>= 3, r = 0; 4 > r; ++r) i(t, e + 32 * r, n, 4);\n    }\n    function Se(t, e) {\n      var r = t[e - 1 + 0],\n        n = t[e - 1 + 32],\n        i = t[e - 1 + 64],\n        a = t[e - 1 - 32],\n        o = t[e + 0 - 32],\n        s = t[e + 1 - 32],\n        c = t[e + 2 - 32],\n        u = t[e + 3 - 32];\n      t[e + 0 + 96] = Ne(n, i, t[e - 1 + 96]), t[e + 1 + 96] = t[e + 0 + 64] = Ne(r, n, i), t[e + 2 + 96] = t[e + 1 + 64] = t[e + 0 + 32] = Ne(a, r, n), t[e + 3 + 96] = t[e + 2 + 64] = t[e + 1 + 32] = t[e + 0 + 0] = Ne(o, a, r), t[e + 3 + 64] = t[e + 2 + 32] = t[e + 1 + 0] = Ne(s, o, a), t[e + 3 + 32] = t[e + 2 + 0] = Ne(c, s, o), t[e + 3 + 0] = Ne(u, c, s);\n    }\n    function _e(t, e) {\n      var r = t[e + 1 - 32],\n        n = t[e + 2 - 32],\n        i = t[e + 3 - 32],\n        a = t[e + 4 - 32],\n        o = t[e + 5 - 32],\n        s = t[e + 6 - 32],\n        c = t[e + 7 - 32];\n      t[e + 0 + 0] = Ne(t[e + 0 - 32], r, n), t[e + 1 + 0] = t[e + 0 + 32] = Ne(r, n, i), t[e + 2 + 0] = t[e + 1 + 32] = t[e + 0 + 64] = Ne(n, i, a), t[e + 3 + 0] = t[e + 2 + 32] = t[e + 1 + 64] = t[e + 0 + 96] = Ne(i, a, o), t[e + 3 + 32] = t[e + 2 + 64] = t[e + 1 + 96] = Ne(a, o, s), t[e + 3 + 64] = t[e + 2 + 96] = Ne(o, s, c), t[e + 3 + 96] = Ne(s, c, c);\n    }\n    function Pe(t, e) {\n      var r = t[e - 1 + 0],\n        n = t[e - 1 + 32],\n        i = t[e - 1 + 64],\n        a = t[e - 1 - 32],\n        o = t[e + 0 - 32],\n        s = t[e + 1 - 32],\n        c = t[e + 2 - 32],\n        u = t[e + 3 - 32];\n      t[e + 0 + 0] = t[e + 1 + 64] = a + o + 1 >> 1, t[e + 1 + 0] = t[e + 2 + 64] = o + s + 1 >> 1, t[e + 2 + 0] = t[e + 3 + 64] = s + c + 1 >> 1, t[e + 3 + 0] = c + u + 1 >> 1, t[e + 0 + 96] = Ne(i, n, r), t[e + 0 + 64] = Ne(n, r, a), t[e + 0 + 32] = t[e + 1 + 96] = Ne(r, a, o), t[e + 1 + 32] = t[e + 2 + 96] = Ne(a, o, s), t[e + 2 + 32] = t[e + 3 + 96] = Ne(o, s, c), t[e + 3 + 32] = Ne(s, c, u);\n    }\n    function ke(t, e) {\n      var r = t[e + 0 - 32],\n        n = t[e + 1 - 32],\n        i = t[e + 2 - 32],\n        a = t[e + 3 - 32],\n        o = t[e + 4 - 32],\n        s = t[e + 5 - 32],\n        c = t[e + 6 - 32],\n        u = t[e + 7 - 32];\n      t[e + 0 + 0] = r + n + 1 >> 1, t[e + 1 + 0] = t[e + 0 + 64] = n + i + 1 >> 1, t[e + 2 + 0] = t[e + 1 + 64] = i + a + 1 >> 1, t[e + 3 + 0] = t[e + 2 + 64] = a + o + 1 >> 1, t[e + 0 + 32] = Ne(r, n, i), t[e + 1 + 32] = t[e + 0 + 96] = Ne(n, i, a), t[e + 2 + 32] = t[e + 1 + 96] = Ne(i, a, o), t[e + 3 + 32] = t[e + 2 + 96] = Ne(a, o, s), t[e + 3 + 64] = Ne(o, s, c), t[e + 3 + 96] = Ne(s, c, u);\n    }\n    function Ie(t, e) {\n      var r = t[e - 1 + 0],\n        n = t[e - 1 + 32],\n        i = t[e - 1 + 64],\n        a = t[e - 1 + 96];\n      t[e + 0 + 0] = r + n + 1 >> 1, t[e + 2 + 0] = t[e + 0 + 32] = n + i + 1 >> 1, t[e + 2 + 32] = t[e + 0 + 64] = i + a + 1 >> 1, t[e + 1 + 0] = Ne(r, n, i), t[e + 3 + 0] = t[e + 1 + 32] = Ne(n, i, a), t[e + 3 + 32] = t[e + 1 + 64] = Ne(i, a, a), t[e + 3 + 64] = t[e + 2 + 64] = t[e + 0 + 96] = t[e + 1 + 96] = t[e + 2 + 96] = t[e + 3 + 96] = a;\n    }\n    function Fe(t, e) {\n      var r = t[e - 1 + 0],\n        n = t[e - 1 + 32],\n        i = t[e - 1 + 64],\n        a = t[e - 1 + 96],\n        o = t[e - 1 - 32],\n        s = t[e + 0 - 32],\n        c = t[e + 1 - 32],\n        u = t[e + 2 - 32];\n      t[e + 0 + 0] = t[e + 2 + 32] = r + o + 1 >> 1, t[e + 0 + 32] = t[e + 2 + 64] = n + r + 1 >> 1, t[e + 0 + 64] = t[e + 2 + 96] = i + n + 1 >> 1, t[e + 0 + 96] = a + i + 1 >> 1, t[e + 3 + 0] = Ne(s, c, u), t[e + 2 + 0] = Ne(o, s, c), t[e + 1 + 0] = t[e + 3 + 32] = Ne(r, o, s), t[e + 1 + 32] = t[e + 3 + 64] = Ne(n, r, o), t[e + 1 + 64] = t[e + 3 + 96] = Ne(i, n, r), t[e + 1 + 96] = Ne(a, i, n);\n    }\n    function Ce(t, e) {\n      var r;\n      for (r = 0; 8 > r; ++r) n(t, e + 32 * r, t, e - 32, 8);\n    }\n    function je(t, e) {\n      var r;\n      for (r = 0; 8 > r; ++r) i(t, e, t[e - 1], 8), e += 32;\n    }\n    function Oe(t, e, r) {\n      var n;\n      for (n = 0; 8 > n; ++n) i(e, r + 32 * n, t, 8);\n    }\n    function Be(t, e) {\n      var r,\n        n = 8;\n      for (r = 0; 8 > r; ++r) n += t[e + r - 32] + t[e - 1 + 32 * r];\n      Oe(n >> 4, t, e);\n    }\n    function Me(t, e) {\n      var r,\n        n = 4;\n      for (r = 0; 8 > r; ++r) n += t[e + r - 32];\n      Oe(n >> 3, t, e);\n    }\n    function Ee(t, e) {\n      var r,\n        n = 4;\n      for (r = 0; 8 > r; ++r) n += t[e - 1 + 32 * r];\n      Oe(n >> 3, t, e);\n    }\n    function qe(t, e) {\n      Oe(128, t, e);\n    }\n    function De(t, e, r) {\n      var n = t[e - r],\n        i = t[e + 0],\n        a = 3 * (i - n) + jn[1020 + t[e - 2 * r] - t[e + r]],\n        o = On[112 + (a + 4 >> 3)];\n      t[e - r] = Bn[255 + n + On[112 + (a + 3 >> 3)]], t[e + 0] = Bn[255 + i - o];\n    }\n    function Re(t, e, r, n) {\n      var i = t[e + 0],\n        a = t[e + r];\n      return Mn[255 + t[e - 2 * r] - t[e - r]] > n || Mn[255 + a - i] > n;\n    }\n    function Te(t, e, r, n) {\n      return 4 * Mn[255 + t[e - r] - t[e + 0]] + Mn[255 + t[e - 2 * r] - t[e + r]] <= n;\n    }\n    function Ue(t, e, r, n, i) {\n      var a = t[e - 3 * r],\n        o = t[e - 2 * r],\n        s = t[e - r],\n        c = t[e + 0],\n        u = t[e + r],\n        h = t[e + 2 * r],\n        l = t[e + 3 * r];\n      return 4 * Mn[255 + s - c] + Mn[255 + o - u] > n ? 0 : Mn[255 + t[e - 4 * r] - a] <= i && Mn[255 + a - o] <= i && Mn[255 + o - s] <= i && Mn[255 + l - h] <= i && Mn[255 + h - u] <= i && Mn[255 + u - c] <= i;\n    }\n    function ze(t, e, r, n) {\n      var i = 2 * n + 1;\n      for (n = 0; 16 > n; ++n) Te(t, e + n, r, i) && De(t, e + n, r);\n    }\n    function He(t, e, r, n) {\n      var i = 2 * n + 1;\n      for (n = 0; 16 > n; ++n) Te(t, e + n * r, 1, i) && De(t, e + n * r, 1);\n    }\n    function We(t, e, r, n) {\n      var i;\n      for (i = 3; 0 < i; --i) ze(t, e += 4 * r, r, n);\n    }\n    function Ve(t, e, r, n) {\n      var i;\n      for (i = 3; 0 < i; --i) He(t, e += 4, r, n);\n    }\n    function Ge(t, e, r, n, i, a, o, s) {\n      for (a = 2 * a + 1; 0 < i--;) {\n        if (Ue(t, e, r, a, o)) if (Re(t, e, r, s)) De(t, e, r);else {\n          var c = t,\n            u = e,\n            h = r,\n            l = c[u - 2 * h],\n            f = c[u - h],\n            d = c[u + 0],\n            p = c[u + h],\n            g = c[u + 2 * h],\n            m = 27 * (b = jn[1020 + 3 * (d - f) + jn[1020 + l - p]]) + 63 >> 7,\n            v = 18 * b + 63 >> 7,\n            b = 9 * b + 63 >> 7;\n          c[u - 3 * h] = Bn[255 + c[u - 3 * h] + b], c[u - 2 * h] = Bn[255 + l + v], c[u - h] = Bn[255 + f + m], c[u + 0] = Bn[255 + d - m], c[u + h] = Bn[255 + p - v], c[u + 2 * h] = Bn[255 + g - b];\n        }\n        e += n;\n      }\n    }\n    function Ye(t, e, r, n, i, a, o, s) {\n      for (a = 2 * a + 1; 0 < i--;) {\n        if (Ue(t, e, r, a, o)) if (Re(t, e, r, s)) De(t, e, r);else {\n          var c = t,\n            u = e,\n            h = r,\n            l = c[u - h],\n            f = c[u + 0],\n            d = c[u + h],\n            p = On[112 + ((g = 3 * (f - l)) + 4 >> 3)],\n            g = On[112 + (g + 3 >> 3)],\n            m = p + 1 >> 1;\n          c[u - 2 * h] = Bn[255 + c[u - 2 * h] + m], c[u - h] = Bn[255 + l + g], c[u + 0] = Bn[255 + f - p], c[u + h] = Bn[255 + d - m];\n        }\n        e += n;\n      }\n    }\n    function Je(t, e, r, n, i, a) {\n      Ge(t, e, r, 1, 16, n, i, a);\n    }\n    function Xe(t, e, r, n, i, a) {\n      Ge(t, e, 1, r, 16, n, i, a);\n    }\n    function Ke(t, e, r, n, i, a) {\n      var o;\n      for (o = 3; 0 < o; --o) Ye(t, e += 4 * r, r, 1, 16, n, i, a);\n    }\n    function Ze(t, e, r, n, i, a) {\n      var o;\n      for (o = 3; 0 < o; --o) Ye(t, e += 4, 1, r, 16, n, i, a);\n    }\n    function $e(t, e, r, n, i, a, o, s) {\n      Ge(t, e, i, 1, 8, a, o, s), Ge(r, n, i, 1, 8, a, o, s);\n    }\n    function Qe(t, e, r, n, i, a, o, s) {\n      Ge(t, e, 1, i, 8, a, o, s), Ge(r, n, 1, i, 8, a, o, s);\n    }\n    function tr(t, e, r, n, i, a, o, s) {\n      Ye(t, e + 4 * i, i, 1, 8, a, o, s), Ye(r, n + 4 * i, i, 1, 8, a, o, s);\n    }\n    function er(t, e, r, n, i, a, o, s) {\n      Ye(t, e + 4, 1, i, 8, a, o, s), Ye(r, n + 4, 1, i, 8, a, o, s);\n    }\n    function rr() {\n      this.ba = new ot(), this.ec = [], this.cc = [], this.Mc = [], this.Dc = this.Nc = this.dc = this.fc = 0, this.Oa = new ct(), this.memory = 0, this.Ib = \"OutputFunc\", this.Jb = \"OutputAlphaFunc\", this.Nd = \"OutputRowFunc\";\n    }\n    function nr() {\n      this.data = [], this.offset = this.kd = this.ha = this.w = 0, this.na = [], this.xa = this.gb = this.Ja = this.Sa = this.P = 0;\n    }\n    function ir() {\n      this.nc = this.Ea = this.b = this.hc = 0, this.K = [], this.w = 0;\n    }\n    function ar() {\n      this.ua = 0, this.Wa = new M(), this.vb = new M(), this.md = this.xc = this.wc = 0, this.vc = [], this.Wb = 0, this.Ya = new d(), this.yc = new l();\n    }\n    function or() {\n      this.xb = this.a = 0, this.l = new Gt(), this.ca = new ot(), this.V = [], this.Ba = 0, this.Ta = [], this.Ua = 0, this.m = new N(), this.Pb = 0, this.wd = new N(), this.Ma = this.$ = this.C = this.i = this.c = this.xd = 0, this.s = new ar(), this.ab = 0, this.gc = o(4, ir), this.Oc = 0;\n    }\n    function sr() {\n      this.Lc = this.Z = this.$a = this.i = this.c = 0, this.l = new Gt(), this.ic = 0, this.ca = [], this.tb = 0, this.qd = null, this.rd = 0;\n    }\n    function cr(t, e, r, n, i, a, o) {\n      for (t = null == t ? 0 : t[e + 0], e = 0; e < o; ++e) i[a + e] = t + r[n + e] & 255, t = i[a + e];\n    }\n    function ur(t, e, r, n, i, a, o) {\n      var s;\n      if (null == t) cr(null, null, r, n, i, a, o);else for (s = 0; s < o; ++s) i[a + s] = t[e + s] + r[n + s] & 255;\n    }\n    function hr(t, e, r, n, i, a, o) {\n      if (null == t) cr(null, null, r, n, i, a, o);else {\n        var s,\n          c = t[e + 0],\n          u = c,\n          h = c;\n        for (s = 0; s < o; ++s) u = h + (c = t[e + s]) - u, h = r[n + s] + (-256 & u ? 0 > u ? 0 : 255 : u) & 255, u = c, i[a + s] = h;\n      }\n    }\n    function lr(t, r, i, o) {\n      var s = r.width,\n        c = r.o;\n      if (e(null != t && null != r), 0 > i || 0 >= o || i + o > c) return null;\n      if (!t.Cc) {\n        if (null == t.ga) {\n          var u;\n          if (t.ga = new sr(), (u = null == t.ga) || (u = r.width * r.o, e(0 == t.Gb.length), t.Gb = a(u), t.Uc = 0, null == t.Gb ? u = 0 : (t.mb = t.Gb, t.nb = t.Uc, t.rc = null, u = 1), u = !u), !u) {\n            u = t.ga;\n            var h = t.Fa,\n              l = t.P,\n              f = t.qc,\n              d = t.mb,\n              p = t.nb,\n              g = l + 1,\n              m = f - 1,\n              b = u.l;\n            if (e(null != h && null != d && null != r), mi[0] = null, mi[1] = cr, mi[2] = ur, mi[3] = hr, u.ca = d, u.tb = p, u.c = r.width, u.i = r.height, e(0 < u.c && 0 < u.i), 1 >= f) r = 0;else if (u.$a = h[l + 0] >> 0 & 3, u.Z = h[l + 0] >> 2 & 3, u.Lc = h[l + 0] >> 4 & 3, l = h[l + 0] >> 6 & 3, 0 > u.$a || 1 < u.$a || 4 <= u.Z || 1 < u.Lc || l) r = 0;else if (b.put = dt, b.ac = ft, b.bc = pt, b.ma = u, b.width = r.width, b.height = r.height, b.Da = r.Da, b.v = r.v, b.va = r.va, b.j = r.j, b.o = r.o, u.$a) t: {\n              e(1 == u.$a), r = kt();\n              e: for (;;) {\n                if (null == r) {\n                  r = 0;\n                  break t;\n                }\n                if (e(null != u), u.mc = r, r.c = u.c, r.i = u.i, r.l = u.l, r.l.ma = u, r.l.width = u.c, r.l.height = u.i, r.a = 0, v(r.m, h, g, m), !It(u.c, u.i, 1, r, null)) break e;\n                if (1 == r.ab && 3 == r.gc[0].hc && At(r.s) ? (u.ic = 1, h = r.c * r.i, r.Ta = null, r.Ua = 0, r.V = a(h), r.Ba = 0, null == r.V ? (r.a = 1, r = 0) : r = 1) : (u.ic = 0, r = Ft(r, u.c)), !r) break e;\n                r = 1;\n                break t;\n              }\n              u.mc = null, r = 0;\n            } else r = m >= u.c * u.i;\n            u = !r;\n          }\n          if (u) return null;\n          1 != t.ga.Lc ? t.Ga = 0 : o = c - i;\n        }\n        e(null != t.ga), e(i + o <= c);\n        t: {\n          if (r = (h = t.ga).c, c = h.l.o, 0 == h.$a) {\n            if (g = t.rc, m = t.Vc, b = t.Fa, l = t.P + 1 + i * r, f = t.mb, d = t.nb + i * r, e(l <= t.P + t.qc), 0 != h.Z) for (e(null != mi[h.Z]), u = 0; u < o; ++u) mi[h.Z](g, m, b, l, f, d, r), g = f, m = d, d += r, l += r;else for (u = 0; u < o; ++u) n(f, d, b, l, r), g = f, m = d, d += r, l += r;\n            t.rc = g, t.Vc = m;\n          } else {\n            if (e(null != h.mc), r = i + o, e(null != (u = h.mc)), e(r <= u.i), u.C >= r) r = 1;else if (h.ic || mr(), h.ic) {\n              h = u.V, g = u.Ba, m = u.c;\n              var y = u.i,\n                w = (b = 1, l = u.$ / m, f = u.$ % m, d = u.m, p = u.s, u.$),\n                N = m * y,\n                L = m * r,\n                x = p.wc,\n                _ = w < L ? wt(p, f, l) : null;\n              e(w <= N), e(r <= y), e(At(p));\n              e: for (;;) {\n                for (; !d.h && w < L;) {\n                  if (f & x || (_ = wt(p, f, l)), e(null != _), S(d), 256 > (y = bt(_.G[0], _.H[0], d))) h[g + w] = y, ++w, ++f >= m && (f = 0, ++l <= r && !(l % 16) && St(u, l));else {\n                    if (!(280 > y)) {\n                      b = 0;\n                      break e;\n                    }\n                    y = mt(y - 256, d);\n                    var P,\n                      k = bt(_.G[4], _.H[4], d);\n                    if (S(d), !(w >= (k = vt(m, k = mt(k, d))) && N - w >= y)) {\n                      b = 0;\n                      break e;\n                    }\n                    for (P = 0; P < y; ++P) h[g + w + P] = h[g + w + P - k];\n                    for (w += y, f += y; f >= m;) f -= m, ++l <= r && !(l % 16) && St(u, l);\n                    w < L && f & x && (_ = wt(p, f, l));\n                  }\n                  e(d.h == A(d));\n                }\n                St(u, l > r ? r : l);\n                break e;\n              }\n              !b || d.h && w < N ? (b = 0, u.a = d.h ? 5 : 3) : u.$ = w, r = b;\n            } else r = _t(u, u.V, u.Ba, u.c, u.i, r, Ct);\n            if (!r) {\n              o = 0;\n              break t;\n            }\n          }\n          i + o >= c && (t.Cc = 1), o = 1;\n        }\n        if (!o) return null;\n        if (t.Cc && (null != (o = t.ga) && (o.mc = null), t.ga = null, 0 < t.Ga)) return alert(\"todo:WebPDequantizeLevels\"), null;\n      }\n      return t.nb + i * s;\n    }\n    function fr(t, e, r, n, i, a) {\n      for (; 0 < i--;) {\n        var o,\n          s = t,\n          c = e + (r ? 1 : 0),\n          u = t,\n          h = e + (r ? 0 : 3);\n        for (o = 0; o < n; ++o) {\n          var l = u[h + 4 * o];\n          255 != l && (l *= 32897, s[c + 4 * o + 0] = s[c + 4 * o + 0] * l >> 23, s[c + 4 * o + 1] = s[c + 4 * o + 1] * l >> 23, s[c + 4 * o + 2] = s[c + 4 * o + 2] * l >> 23);\n        }\n        e += a;\n      }\n    }\n    function dr(t, e, r, n, i) {\n      for (; 0 < n--;) {\n        var a;\n        for (a = 0; a < r; ++a) {\n          var o = t[e + 2 * a + 0],\n            s = 15 & (u = t[e + 2 * a + 1]),\n            c = 4369 * s,\n            u = (240 & u | u >> 4) * c >> 16;\n          t[e + 2 * a + 0] = (240 & o | o >> 4) * c >> 16 & 240 | (15 & o | o << 4) * c >> 16 >> 4 & 15, t[e + 2 * a + 1] = 240 & u | s;\n        }\n        e += i;\n      }\n    }\n    function pr(t, e, r, n, i, a, o, s) {\n      var c,\n        u,\n        h = 255;\n      for (u = 0; u < i; ++u) {\n        for (c = 0; c < n; ++c) {\n          var l = t[e + c];\n          a[o + 4 * c] = l, h &= l;\n        }\n        e += r, o += s;\n      }\n      return 255 != h;\n    }\n    function gr(t, e, r, n, i) {\n      var a;\n      for (a = 0; a < i; ++a) r[n + a] = t[e + a] >> 8;\n    }\n    function mr() {\n      An = fr, xn = dr, Sn = pr, _n = gr;\n    }\n    function vr(r, n, i) {\n      t[r] = function (t, r, a, o, s, c, u, h, l, f, d, p, g, m, v, b, y) {\n        var w,\n          N = y - 1 >> 1,\n          L = s[c + 0] | u[h + 0] << 16,\n          A = l[f + 0] | d[p + 0] << 16;\n        e(null != t);\n        var x = 3 * L + A + 131074 >> 2;\n        for (n(t[r + 0], 255 & x, x >> 16, g, m), null != a && (x = 3 * A + L + 131074 >> 2, n(a[o + 0], 255 & x, x >> 16, v, b)), w = 1; w <= N; ++w) {\n          var S = s[c + w] | u[h + w] << 16,\n            _ = l[f + w] | d[p + w] << 16,\n            P = L + S + A + _ + 524296,\n            k = P + 2 * (S + A) >> 3;\n          x = k + L >> 1, L = (P = P + 2 * (L + _) >> 3) + S >> 1, n(t[r + 2 * w - 1], 255 & x, x >> 16, g, m + (2 * w - 1) * i), n(t[r + 2 * w - 0], 255 & L, L >> 16, g, m + (2 * w - 0) * i), null != a && (x = P + A >> 1, L = k + _ >> 1, n(a[o + 2 * w - 1], 255 & x, x >> 16, v, b + (2 * w - 1) * i), n(a[o + 2 * w + 0], 255 & L, L >> 16, v, b + (2 * w + 0) * i)), L = S, A = _;\n        }\n        1 & y || (x = 3 * L + A + 131074 >> 2, n(t[r + y - 1], 255 & x, x >> 16, g, m + (y - 1) * i), null != a && (x = 3 * A + L + 131074 >> 2, n(a[o + y - 1], 255 & x, x >> 16, v, b + (y - 1) * i)));\n      };\n    }\n    function br() {\n      vi[En] = bi, vi[qn] = wi, vi[Dn] = yi, vi[Rn] = Ni, vi[Tn] = Li, vi[Un] = Ai, vi[zn] = xi, vi[Hn] = wi, vi[Wn] = Ni, vi[Vn] = Li, vi[Gn] = Ai;\n    }\n    function yr(t) {\n      return t & ~Fi ? 0 > t ? 0 : 255 : t >> Ii;\n    }\n    function wr(t, e) {\n      return yr((19077 * t >> 8) + (26149 * e >> 8) - 14234);\n    }\n    function Nr(t, e, r) {\n      return yr((19077 * t >> 8) - (6419 * e >> 8) - (13320 * r >> 8) + 8708);\n    }\n    function Lr(t, e) {\n      return yr((19077 * t >> 8) + (33050 * e >> 8) - 17685);\n    }\n    function Ar(t, e, r, n, i) {\n      n[i + 0] = wr(t, r), n[i + 1] = Nr(t, e, r), n[i + 2] = Lr(t, e);\n    }\n    function xr(t, e, r, n, i) {\n      n[i + 0] = Lr(t, e), n[i + 1] = Nr(t, e, r), n[i + 2] = wr(t, r);\n    }\n    function Sr(t, e, r, n, i) {\n      var a = Nr(t, e, r);\n      e = a << 3 & 224 | Lr(t, e) >> 3, n[i + 0] = 248 & wr(t, r) | a >> 5, n[i + 1] = e;\n    }\n    function _r(t, e, r, n, i) {\n      var a = 240 & Lr(t, e) | 15;\n      n[i + 0] = 240 & wr(t, r) | Nr(t, e, r) >> 4, n[i + 1] = a;\n    }\n    function Pr(t, e, r, n, i) {\n      n[i + 0] = 255, Ar(t, e, r, n, i + 1);\n    }\n    function kr(t, e, r, n, i) {\n      xr(t, e, r, n, i), n[i + 3] = 255;\n    }\n    function Ir(t, e, r, n, i) {\n      Ar(t, e, r, n, i), n[i + 3] = 255;\n    }\n    function Vt(t, e) {\n      return 0 > t ? 0 : t > e ? e : t;\n    }\n    function Fr(e, r, n) {\n      t[e] = function (t, e, i, a, o, s, c, u, h) {\n        for (var l = u + (-2 & h) * n; u != l;) r(t[e + 0], i[a + 0], o[s + 0], c, u), r(t[e + 1], i[a + 0], o[s + 0], c, u + n), e += 2, ++a, ++s, u += 2 * n;\n        1 & h && r(t[e + 0], i[a + 0], o[s + 0], c, u);\n      };\n    }\n    function Cr(t, e, r) {\n      return 0 == r ? 0 == t ? 0 == e ? 6 : 5 : 0 == e ? 4 : 0 : r;\n    }\n    function jr(t, e, r, n, i) {\n      switch (t >>> 30) {\n        case 3:\n          on(e, r, n, i, 0);\n          break;\n        case 2:\n          sn(e, r, n, i);\n          break;\n        case 1:\n          un(e, r, n, i);\n      }\n    }\n    function Or(t, e) {\n      var r,\n        a,\n        o = e.M,\n        s = e.Nb,\n        c = t.oc,\n        u = t.pc + 40,\n        h = t.oc,\n        l = t.pc + 584,\n        f = t.oc,\n        d = t.pc + 600;\n      for (r = 0; 16 > r; ++r) c[u + 32 * r - 1] = 129;\n      for (r = 0; 8 > r; ++r) h[l + 32 * r - 1] = 129, f[d + 32 * r - 1] = 129;\n      for (0 < o ? c[u - 1 - 32] = h[l - 1 - 32] = f[d - 1 - 32] = 129 : (i(c, u - 32 - 1, 127, 21), i(h, l - 32 - 1, 127, 9), i(f, d - 32 - 1, 127, 9)), a = 0; a < t.za; ++a) {\n        var p = e.ya[e.aa + a];\n        if (0 < a) {\n          for (r = -1; 16 > r; ++r) n(c, u + 32 * r - 4, c, u + 32 * r + 12, 4);\n          for (r = -1; 8 > r; ++r) n(h, l + 32 * r - 4, h, l + 32 * r + 4, 4), n(f, d + 32 * r - 4, f, d + 32 * r + 4, 4);\n        }\n        var g = t.Gd,\n          m = t.Hd + a,\n          v = p.ad,\n          b = p.Hc;\n        if (0 < o && (n(c, u - 32, g[m].y, 0, 16), n(h, l - 32, g[m].f, 0, 8), n(f, d - 32, g[m].ea, 0, 8)), p.Za) {\n          var y = c,\n            w = u - 32 + 16;\n          for (0 < o && (a >= t.za - 1 ? i(y, w, g[m].y[15], 4) : n(y, w, g[m + 1].y, 0, 4)), r = 0; 4 > r; r++) y[w + 128 + r] = y[w + 256 + r] = y[w + 384 + r] = y[w + 0 + r];\n          for (r = 0; 16 > r; ++r, b <<= 2) y = c, w = u + Di[r], fi[p.Ob[r]](y, w), jr(b, v, 16 * +r, y, w);\n        } else if (y = Cr(a, o, p.Ob[0]), li[y](c, u), 0 != b) for (r = 0; 16 > r; ++r, b <<= 2) jr(b, v, 16 * +r, c, u + Di[r]);\n        for (r = p.Gc, y = Cr(a, o, p.Dd), di[y](h, l), di[y](f, d), b = v, y = h, w = l, 255 & (p = r >> 0) && (170 & p ? cn(b, 256, y, w) : hn(b, 256, y, w)), p = f, b = d, 255 & (r >>= 8) && (170 & r ? cn(v, 320, p, b) : hn(v, 320, p, b)), o < t.Ub - 1 && (n(g[m].y, 0, c, u + 480, 16), n(g[m].f, 0, h, l + 224, 8), n(g[m].ea, 0, f, d + 224, 8)), r = 8 * s * t.B, g = t.sa, m = t.ta + 16 * a + 16 * s * t.R, v = t.qa, p = t.ra + 8 * a + r, b = t.Ha, y = t.Ia + 8 * a + r, r = 0; 16 > r; ++r) n(g, m + r * t.R, c, u + 32 * r, 16);\n        for (r = 0; 8 > r; ++r) n(v, p + r * t.B, h, l + 32 * r, 8), n(b, y + r * t.B, f, d + 32 * r, 8);\n      }\n    }\n    function Br(t, n, i, a, o, s, c, u, h) {\n      var l = [0],\n        f = [0],\n        d = 0,\n        p = null != h ? h.kd : 0,\n        g = null != h ? h : new nr();\n      if (null == t || 12 > i) return 7;\n      g.data = t, g.w = n, g.ha = i, n = [n], i = [i], g.gb = [g.gb];\n      t: {\n        var m = n,\n          b = i,\n          y = g.gb;\n        if (e(null != t), e(null != b), e(null != y), y[0] = 0, 12 <= b[0] && !r(t, m[0], \"RIFF\")) {\n          if (r(t, m[0] + 8, \"WEBP\")) {\n            y = 3;\n            break t;\n          }\n          var w = j(t, m[0] + 4);\n          if (12 > w || 4294967286 < w) {\n            y = 3;\n            break t;\n          }\n          if (p && w > b[0] - 8) {\n            y = 7;\n            break t;\n          }\n          y[0] = w, m[0] += 12, b[0] -= 12;\n        }\n        y = 0;\n      }\n      if (0 != y) return y;\n      for (w = 0 < g.gb[0], i = i[0];;) {\n        t: {\n          var L = t;\n          b = n, y = i;\n          var A = l,\n            x = f,\n            S = m = [0];\n          if ((k = d = [d])[0] = 0, 8 > y[0]) y = 7;else {\n            if (!r(L, b[0], \"VP8X\")) {\n              if (10 != j(L, b[0] + 4)) {\n                y = 3;\n                break t;\n              }\n              if (18 > y[0]) {\n                y = 7;\n                break t;\n              }\n              var _ = j(L, b[0] + 8),\n                P = 1 + C(L, b[0] + 12);\n              if (2147483648 <= P * (L = 1 + C(L, b[0] + 15))) {\n                y = 3;\n                break t;\n              }\n              null != S && (S[0] = _), null != A && (A[0] = P), null != x && (x[0] = L), b[0] += 18, y[0] -= 18, k[0] = 1;\n            }\n            y = 0;\n          }\n        }\n        if (d = d[0], m = m[0], 0 != y) return y;\n        if (b = !!(2 & m), !w && d) return 3;\n        if (null != s && (s[0] = !!(16 & m)), null != c && (c[0] = b), null != u && (u[0] = 0), c = l[0], m = f[0], d && b && null == h) {\n          y = 0;\n          break;\n        }\n        if (4 > i) {\n          y = 7;\n          break;\n        }\n        if (w && d || !w && !d && !r(t, n[0], \"ALPH\")) {\n          i = [i], g.na = [g.na], g.P = [g.P], g.Sa = [g.Sa];\n          t: {\n            _ = t, y = n, w = i;\n            var k = g.gb;\n            A = g.na, x = g.P, S = g.Sa;\n            P = 22, e(null != _), e(null != w), L = y[0];\n            var I = w[0];\n            for (e(null != A), e(null != S), A[0] = null, x[0] = null, S[0] = 0;;) {\n              if (y[0] = L, w[0] = I, 8 > I) {\n                y = 7;\n                break t;\n              }\n              var F = j(_, L + 4);\n              if (4294967286 < F) {\n                y = 3;\n                break t;\n              }\n              var O = 8 + F + 1 & -2;\n              if (P += O, 0 < k && P > k) {\n                y = 3;\n                break t;\n              }\n              if (!r(_, L, \"VP8 \") || !r(_, L, \"VP8L\")) {\n                y = 0;\n                break t;\n              }\n              if (I[0] < O) {\n                y = 7;\n                break t;\n              }\n              r(_, L, \"ALPH\") || (A[0] = _, x[0] = L + 8, S[0] = F), L += O, I -= O;\n            }\n          }\n          if (i = i[0], g.na = g.na[0], g.P = g.P[0], g.Sa = g.Sa[0], 0 != y) break;\n        }\n        i = [i], g.Ja = [g.Ja], g.xa = [g.xa];\n        t: if (k = t, y = n, w = i, A = g.gb[0], x = g.Ja, S = g.xa, _ = y[0], L = !r(k, _, \"VP8 \"), P = !r(k, _, \"VP8L\"), e(null != k), e(null != w), e(null != x), e(null != S), 8 > w[0]) y = 7;else {\n          if (L || P) {\n            if (k = j(k, _ + 4), 12 <= A && k > A - 12) {\n              y = 3;\n              break t;\n            }\n            if (p && k > w[0] - 8) {\n              y = 7;\n              break t;\n            }\n            x[0] = k, y[0] += 8, w[0] -= 8, S[0] = P;\n          } else S[0] = 5 <= w[0] && 47 == k[_ + 0] && !(k[_ + 4] >> 5), x[0] = w[0];\n          y = 0;\n        }\n        if (i = i[0], g.Ja = g.Ja[0], g.xa = g.xa[0], n = n[0], 0 != y) break;\n        if (4294967286 < g.Ja) return 3;\n        if (null == u || b || (u[0] = g.xa ? 2 : 1), c = [c], m = [m], g.xa) {\n          if (5 > i) {\n            y = 7;\n            break;\n          }\n          u = c, p = m, b = s, null == t || 5 > i ? t = 0 : 5 <= i && 47 == t[n + 0] && !(t[n + 4] >> 5) ? (w = [0], k = [0], A = [0], v(x = new N(), t, n, i), gt(x, w, k, A) ? (null != u && (u[0] = w[0]), null != p && (p[0] = k[0]), null != b && (b[0] = A[0]), t = 1) : t = 0) : t = 0;\n        } else {\n          if (10 > i) {\n            y = 7;\n            break;\n          }\n          u = m, null == t || 10 > i || !Xt(t, n + 3, i - 3) ? t = 0 : (p = t[n + 0] | t[n + 1] << 8 | t[n + 2] << 16, b = 16383 & (t[n + 7] << 8 | t[n + 6]), t = 16383 & (t[n + 9] << 8 | t[n + 8]), 1 & p || 3 < (p >> 1 & 7) || !(p >> 4 & 1) || p >> 5 >= g.Ja || !b || !t ? t = 0 : (c && (c[0] = b), u && (u[0] = t), t = 1));\n        }\n        if (!t) return 3;\n        if (c = c[0], m = m[0], d && (l[0] != c || f[0] != m)) return 3;\n        null != h && (h[0] = g, h.offset = n - h.w, e(4294967286 > n - h.w), e(h.offset == h.ha - i));\n        break;\n      }\n      return 0 == y || 7 == y && d && null == h ? (null != s && (s[0] |= null != g.na && 0 < g.na.length), null != a && (a[0] = c), null != o && (o[0] = m), 0) : y;\n    }\n    function Mr(t, e, r) {\n      var n = e.width,\n        i = e.height,\n        a = 0,\n        o = 0,\n        s = n,\n        c = i;\n      if (e.Da = null != t && 0 < t.Da, e.Da && (s = t.cd, c = t.bd, a = t.v, o = t.j, 11 > r || (a &= -2, o &= -2), 0 > a || 0 > o || 0 >= s || 0 >= c || a + s > n || o + c > i)) return 0;\n      if (e.v = a, e.j = o, e.va = a + s, e.o = o + c, e.U = s, e.T = c, e.da = null != t && 0 < t.da, e.da) {\n        if (!E(s, c, r = [t.ib], a = [t.hb])) return 0;\n        e.ib = r[0], e.hb = a[0];\n      }\n      return e.ob = null != t && t.ob, e.Kb = null == t || !t.Sd, e.da && (e.ob = e.ib < 3 * n / 4 && e.hb < 3 * i / 4, e.Kb = 0), 1;\n    }\n    function Er(t) {\n      if (null == t) return 2;\n      if (11 > t.S) {\n        var e = t.f.RGBA;\n        e.fb += (t.height - 1) * e.A, e.A = -e.A;\n      } else e = t.f.kb, t = t.height, e.O += (t - 1) * e.fa, e.fa = -e.fa, e.N += (t - 1 >> 1) * e.Ab, e.Ab = -e.Ab, e.W += (t - 1 >> 1) * e.Db, e.Db = -e.Db, null != e.F && (e.J += (t - 1) * e.lb, e.lb = -e.lb);\n      return 0;\n    }\n    function qr(t, e, r, n) {\n      if (null == n || 0 >= t || 0 >= e) return 2;\n      if (null != r) {\n        if (r.Da) {\n          var i = r.cd,\n            o = r.bd,\n            s = -2 & r.v,\n            c = -2 & r.j;\n          if (0 > s || 0 > c || 0 >= i || 0 >= o || s + i > t || c + o > e) return 2;\n          t = i, e = o;\n        }\n        if (r.da) {\n          if (!E(t, e, i = [r.ib], o = [r.hb])) return 2;\n          t = i[0], e = o[0];\n        }\n      }\n      n.width = t, n.height = e;\n      t: {\n        var u = n.width,\n          h = n.height;\n        if (t = n.S, 0 >= u || 0 >= h || !(t >= En && 13 > t)) t = 2;else {\n          if (0 >= n.Rd && null == n.sd) {\n            s = o = i = e = 0;\n            var l = (c = u * zi[t]) * h;\n            if (11 > t || (o = (h + 1) / 2 * (e = (u + 1) / 2), 12 == t && (s = (i = u) * h)), null == (h = a(l + 2 * o + s))) {\n              t = 1;\n              break t;\n            }\n            n.sd = h, 11 > t ? ((u = n.f.RGBA).eb = h, u.fb = 0, u.A = c, u.size = l) : ((u = n.f.kb).y = h, u.O = 0, u.fa = c, u.Fd = l, u.f = h, u.N = 0 + l, u.Ab = e, u.Cd = o, u.ea = h, u.W = 0 + l + o, u.Db = e, u.Ed = o, 12 == t && (u.F = h, u.J = 0 + l + 2 * o), u.Tc = s, u.lb = i);\n          }\n          if (e = 1, i = n.S, o = n.width, s = n.height, i >= En && 13 > i) {\n            if (11 > i) t = n.f.RGBA, e &= (c = Math.abs(t.A)) * (s - 1) + o <= t.size, e &= c >= o * zi[i], e &= null != t.eb;else {\n              t = n.f.kb, c = (o + 1) / 2, l = (s + 1) / 2, u = Math.abs(t.fa);\n              h = Math.abs(t.Ab);\n              var f = Math.abs(t.Db),\n                d = Math.abs(t.lb),\n                p = d * (s - 1) + o;\n              e &= u * (s - 1) + o <= t.Fd, e &= h * (l - 1) + c <= t.Cd, e = (e &= f * (l - 1) + c <= t.Ed) & u >= o & h >= c & f >= c, e &= null != t.y, e &= null != t.f, e &= null != t.ea, 12 == i && (e &= d >= o, e &= p <= t.Tc, e &= null != t.F);\n            }\n          } else e = 0;\n          t = e ? 0 : 2;\n        }\n      }\n      return 0 != t || null != r && r.fd && (t = Er(n)), t;\n    }\n    var Dr = 64,\n      Rr = [0, 1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535, 131071, 262143, 524287, 1048575, 2097151, 4194303, 8388607, 16777215],\n      Tr = 24,\n      Ur = 32,\n      zr = 8,\n      Hr = [0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7];\n    R(\"Predictor0\", \"PredictorAdd0\"), t.Predictor0 = function () {\n      return 4278190080;\n    }, t.Predictor1 = function (t) {\n      return t;\n    }, t.Predictor2 = function (t, e, r) {\n      return e[r + 0];\n    }, t.Predictor3 = function (t, e, r) {\n      return e[r + 1];\n    }, t.Predictor4 = function (t, e, r) {\n      return e[r - 1];\n    }, t.Predictor5 = function (t, e, r) {\n      return U(U(t, e[r + 1]), e[r + 0]);\n    }, t.Predictor6 = function (t, e, r) {\n      return U(t, e[r - 1]);\n    }, t.Predictor7 = function (t, e, r) {\n      return U(t, e[r + 0]);\n    }, t.Predictor8 = function (t, e, r) {\n      return U(e[r - 1], e[r + 0]);\n    }, t.Predictor9 = function (t, e, r) {\n      return U(e[r + 0], e[r + 1]);\n    }, t.Predictor10 = function (t, e, r) {\n      return U(U(t, e[r - 1]), U(e[r + 0], e[r + 1]));\n    }, t.Predictor11 = function (t, e, r) {\n      var n = e[r + 0];\n      return 0 >= W(n >> 24 & 255, t >> 24 & 255, (e = e[r - 1]) >> 24 & 255) + W(n >> 16 & 255, t >> 16 & 255, e >> 16 & 255) + W(n >> 8 & 255, t >> 8 & 255, e >> 8 & 255) + W(255 & n, 255 & t, 255 & e) ? n : t;\n    }, t.Predictor12 = function (t, e, r) {\n      var n = e[r + 0];\n      return (z((t >> 24 & 255) + (n >> 24 & 255) - ((e = e[r - 1]) >> 24 & 255)) << 24 | z((t >> 16 & 255) + (n >> 16 & 255) - (e >> 16 & 255)) << 16 | z((t >> 8 & 255) + (n >> 8 & 255) - (e >> 8 & 255)) << 8 | z((255 & t) + (255 & n) - (255 & e))) >>> 0;\n    }, t.Predictor13 = function (t, e, r) {\n      var n = e[r - 1];\n      return (H((t = U(t, e[r + 0])) >> 24 & 255, n >> 24 & 255) << 24 | H(t >> 16 & 255, n >> 16 & 255) << 16 | H(t >> 8 & 255, n >> 8 & 255) << 8 | H(t >> 0 & 255, n >> 0 & 255)) >>> 0;\n    };\n    var Wr = t.PredictorAdd0;\n    t.PredictorAdd1 = V, R(\"Predictor2\", \"PredictorAdd2\"), R(\"Predictor3\", \"PredictorAdd3\"), R(\"Predictor4\", \"PredictorAdd4\"), R(\"Predictor5\", \"PredictorAdd5\"), R(\"Predictor6\", \"PredictorAdd6\"), R(\"Predictor7\", \"PredictorAdd7\"), R(\"Predictor8\", \"PredictorAdd8\"), R(\"Predictor9\", \"PredictorAdd9\"), R(\"Predictor10\", \"PredictorAdd10\"), R(\"Predictor11\", \"PredictorAdd11\"), R(\"Predictor12\", \"PredictorAdd12\"), R(\"Predictor13\", \"PredictorAdd13\");\n    var Vr = t.PredictorAdd2;\n    X(\"ColorIndexInverseTransform\", \"MapARGB\", \"32b\", function (t) {\n      return t >> 8 & 255;\n    }, function (t) {\n      return t;\n    }), X(\"VP8LColorIndexInverseTransformAlpha\", \"MapAlpha\", \"8b\", function (t) {\n      return t;\n    }, function (t) {\n      return t >> 8 & 255;\n    });\n    var Gr,\n      Yr = t.ColorIndexInverseTransform,\n      Jr = t.MapARGB,\n      Xr = t.VP8LColorIndexInverseTransformAlpha,\n      Kr = t.MapAlpha,\n      Zr = t.VP8LPredictorsAdd = [];\n    Zr.length = 16, (t.VP8LPredictors = []).length = 16, (t.VP8LPredictorsAdd_C = []).length = 16, (t.VP8LPredictors_C = []).length = 16;\n    var $r,\n      Qr,\n      tn,\n      en,\n      rn,\n      nn,\n      an,\n      on,\n      sn,\n      cn,\n      un,\n      hn,\n      ln,\n      fn,\n      dn,\n      pn,\n      gn,\n      mn,\n      vn,\n      bn,\n      yn,\n      wn,\n      Nn,\n      Ln,\n      An,\n      xn,\n      Sn,\n      _n,\n      Pn = a(511),\n      kn = a(2041),\n      In = a(225),\n      Fn = a(767),\n      Cn = 0,\n      jn = kn,\n      On = In,\n      Bn = Fn,\n      Mn = Pn,\n      En = 0,\n      qn = 1,\n      Dn = 2,\n      Rn = 3,\n      Tn = 4,\n      Un = 5,\n      zn = 6,\n      Hn = 7,\n      Wn = 8,\n      Vn = 9,\n      Gn = 10,\n      Yn = [2, 3, 7],\n      Jn = [3, 3, 11],\n      Xn = [280, 256, 256, 256, 40],\n      Kn = [0, 1, 1, 1, 0],\n      Zn = [17, 18, 0, 1, 2, 3, 4, 5, 16, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],\n      $n = [24, 7, 23, 25, 40, 6, 39, 41, 22, 26, 38, 42, 56, 5, 55, 57, 21, 27, 54, 58, 37, 43, 72, 4, 71, 73, 20, 28, 53, 59, 70, 74, 36, 44, 88, 69, 75, 52, 60, 3, 87, 89, 19, 29, 86, 90, 35, 45, 68, 76, 85, 91, 51, 61, 104, 2, 103, 105, 18, 30, 102, 106, 34, 46, 84, 92, 67, 77, 101, 107, 50, 62, 120, 1, 119, 121, 83, 93, 17, 31, 100, 108, 66, 78, 118, 122, 33, 47, 117, 123, 49, 63, 99, 109, 82, 94, 0, 116, 124, 65, 79, 16, 32, 98, 110, 48, 115, 125, 81, 95, 64, 114, 126, 97, 111, 80, 113, 127, 96, 112],\n      Qn = [2954, 2956, 2958, 2962, 2970, 2986, 3018, 3082, 3212, 3468, 3980, 5004],\n      ti = 8,\n      ei = [4, 5, 6, 7, 8, 9, 10, 10, 11, 12, 13, 14, 15, 16, 17, 17, 18, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 25, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 91, 93, 95, 96, 98, 100, 101, 102, 104, 106, 108, 110, 112, 114, 116, 118, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 143, 145, 148, 151, 154, 157],\n      ri = [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 119, 122, 125, 128, 131, 134, 137, 140, 143, 146, 149, 152, 155, 158, 161, 164, 167, 170, 173, 177, 181, 185, 189, 193, 197, 201, 205, 209, 213, 217, 221, 225, 229, 234, 239, 245, 249, 254, 259, 264, 269, 274, 279, 284],\n      ni = null,\n      ii = [[173, 148, 140, 0], [176, 155, 140, 135, 0], [180, 157, 141, 134, 130, 0], [254, 254, 243, 230, 196, 177, 153, 140, 133, 130, 129, 0]],\n      ai = [0, 1, 4, 8, 5, 2, 3, 6, 9, 12, 13, 10, 7, 11, 14, 15],\n      oi = [-0, 1, -1, 2, -2, 3, 4, 6, -3, 5, -4, -5, -6, 7, -7, 8, -8, -9],\n      si = [[[[128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128]], [[253, 136, 254, 255, 228, 219, 128, 128, 128, 128, 128], [189, 129, 242, 255, 227, 213, 255, 219, 128, 128, 128], [106, 126, 227, 252, 214, 209, 255, 255, 128, 128, 128]], [[1, 98, 248, 255, 236, 226, 255, 255, 128, 128, 128], [181, 133, 238, 254, 221, 234, 255, 154, 128, 128, 128], [78, 134, 202, 247, 198, 180, 255, 219, 128, 128, 128]], [[1, 185, 249, 255, 243, 255, 128, 128, 128, 128, 128], [184, 150, 247, 255, 236, 224, 128, 128, 128, 128, 128], [77, 110, 216, 255, 236, 230, 128, 128, 128, 128, 128]], [[1, 101, 251, 255, 241, 255, 128, 128, 128, 128, 128], [170, 139, 241, 252, 236, 209, 255, 255, 128, 128, 128], [37, 116, 196, 243, 228, 255, 255, 255, 128, 128, 128]], [[1, 204, 254, 255, 245, 255, 128, 128, 128, 128, 128], [207, 160, 250, 255, 238, 128, 128, 128, 128, 128, 128], [102, 103, 231, 255, 211, 171, 128, 128, 128, 128, 128]], [[1, 152, 252, 255, 240, 255, 128, 128, 128, 128, 128], [177, 135, 243, 255, 234, 225, 128, 128, 128, 128, 128], [80, 129, 211, 255, 194, 224, 128, 128, 128, 128, 128]], [[1, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [246, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [255, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128]]], [[[198, 35, 237, 223, 193, 187, 162, 160, 145, 155, 62], [131, 45, 198, 221, 172, 176, 220, 157, 252, 221, 1], [68, 47, 146, 208, 149, 167, 221, 162, 255, 223, 128]], [[1, 149, 241, 255, 221, 224, 255, 255, 128, 128, 128], [184, 141, 234, 253, 222, 220, 255, 199, 128, 128, 128], [81, 99, 181, 242, 176, 190, 249, 202, 255, 255, 128]], [[1, 129, 232, 253, 214, 197, 242, 196, 255, 255, 128], [99, 121, 210, 250, 201, 198, 255, 202, 128, 128, 128], [23, 91, 163, 242, 170, 187, 247, 210, 255, 255, 128]], [[1, 200, 246, 255, 234, 255, 128, 128, 128, 128, 128], [109, 178, 241, 255, 231, 245, 255, 255, 128, 128, 128], [44, 130, 201, 253, 205, 192, 255, 255, 128, 128, 128]], [[1, 132, 239, 251, 219, 209, 255, 165, 128, 128, 128], [94, 136, 225, 251, 218, 190, 255, 255, 128, 128, 128], [22, 100, 174, 245, 186, 161, 255, 199, 128, 128, 128]], [[1, 182, 249, 255, 232, 235, 128, 128, 128, 128, 128], [124, 143, 241, 255, 227, 234, 128, 128, 128, 128, 128], [35, 77, 181, 251, 193, 211, 255, 205, 128, 128, 128]], [[1, 157, 247, 255, 236, 231, 255, 255, 128, 128, 128], [121, 141, 235, 255, 225, 227, 255, 255, 128, 128, 128], [45, 99, 188, 251, 195, 217, 255, 224, 128, 128, 128]], [[1, 1, 251, 255, 213, 255, 128, 128, 128, 128, 128], [203, 1, 248, 255, 255, 128, 128, 128, 128, 128, 128], [137, 1, 177, 255, 224, 255, 128, 128, 128, 128, 128]]], [[[253, 9, 248, 251, 207, 208, 255, 192, 128, 128, 128], [175, 13, 224, 243, 193, 185, 249, 198, 255, 255, 128], [73, 17, 171, 221, 161, 179, 236, 167, 255, 234, 128]], [[1, 95, 247, 253, 212, 183, 255, 255, 128, 128, 128], [239, 90, 244, 250, 211, 209, 255, 255, 128, 128, 128], [155, 77, 195, 248, 188, 195, 255, 255, 128, 128, 128]], [[1, 24, 239, 251, 218, 219, 255, 205, 128, 128, 128], [201, 51, 219, 255, 196, 186, 128, 128, 128, 128, 128], [69, 46, 190, 239, 201, 218, 255, 228, 128, 128, 128]], [[1, 191, 251, 255, 255, 128, 128, 128, 128, 128, 128], [223, 165, 249, 255, 213, 255, 128, 128, 128, 128, 128], [141, 124, 248, 255, 255, 128, 128, 128, 128, 128, 128]], [[1, 16, 248, 255, 255, 128, 128, 128, 128, 128, 128], [190, 36, 230, 255, 236, 255, 128, 128, 128, 128, 128], [149, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128]], [[1, 226, 255, 128, 128, 128, 128, 128, 128, 128, 128], [247, 192, 255, 128, 128, 128, 128, 128, 128, 128, 128], [240, 128, 255, 128, 128, 128, 128, 128, 128, 128, 128]], [[1, 134, 252, 255, 255, 128, 128, 128, 128, 128, 128], [213, 62, 250, 255, 255, 128, 128, 128, 128, 128, 128], [55, 93, 255, 128, 128, 128, 128, 128, 128, 128, 128]], [[128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128]]], [[[202, 24, 213, 235, 186, 191, 220, 160, 240, 175, 255], [126, 38, 182, 232, 169, 184, 228, 174, 255, 187, 128], [61, 46, 138, 219, 151, 178, 240, 170, 255, 216, 128]], [[1, 112, 230, 250, 199, 191, 247, 159, 255, 255, 128], [166, 109, 228, 252, 211, 215, 255, 174, 128, 128, 128], [39, 77, 162, 232, 172, 180, 245, 178, 255, 255, 128]], [[1, 52, 220, 246, 198, 199, 249, 220, 255, 255, 128], [124, 74, 191, 243, 183, 193, 250, 221, 255, 255, 128], [24, 71, 130, 219, 154, 170, 243, 182, 255, 255, 128]], [[1, 182, 225, 249, 219, 240, 255, 224, 128, 128, 128], [149, 150, 226, 252, 216, 205, 255, 171, 128, 128, 128], [28, 108, 170, 242, 183, 194, 254, 223, 255, 255, 128]], [[1, 81, 230, 252, 204, 203, 255, 192, 128, 128, 128], [123, 102, 209, 247, 188, 196, 255, 233, 128, 128, 128], [20, 95, 153, 243, 164, 173, 255, 203, 128, 128, 128]], [[1, 222, 248, 255, 216, 213, 128, 128, 128, 128, 128], [168, 175, 246, 252, 235, 205, 255, 255, 128, 128, 128], [47, 116, 215, 255, 211, 212, 255, 255, 128, 128, 128]], [[1, 121, 236, 253, 212, 214, 255, 255, 128, 128, 128], [141, 84, 213, 252, 201, 202, 255, 219, 128, 128, 128], [42, 80, 160, 240, 162, 185, 255, 205, 128, 128, 128]], [[1, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [244, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [238, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128]]]],\n      ci = [[[231, 120, 48, 89, 115, 113, 120, 152, 112], [152, 179, 64, 126, 170, 118, 46, 70, 95], [175, 69, 143, 80, 85, 82, 72, 155, 103], [56, 58, 10, 171, 218, 189, 17, 13, 152], [114, 26, 17, 163, 44, 195, 21, 10, 173], [121, 24, 80, 195, 26, 62, 44, 64, 85], [144, 71, 10, 38, 171, 213, 144, 34, 26], [170, 46, 55, 19, 136, 160, 33, 206, 71], [63, 20, 8, 114, 114, 208, 12, 9, 226], [81, 40, 11, 96, 182, 84, 29, 16, 36]], [[134, 183, 89, 137, 98, 101, 106, 165, 148], [72, 187, 100, 130, 157, 111, 32, 75, 80], [66, 102, 167, 99, 74, 62, 40, 234, 128], [41, 53, 9, 178, 241, 141, 26, 8, 107], [74, 43, 26, 146, 73, 166, 49, 23, 157], [65, 38, 105, 160, 51, 52, 31, 115, 128], [104, 79, 12, 27, 217, 255, 87, 17, 7], [87, 68, 71, 44, 114, 51, 15, 186, 23], [47, 41, 14, 110, 182, 183, 21, 17, 194], [66, 45, 25, 102, 197, 189, 23, 18, 22]], [[88, 88, 147, 150, 42, 46, 45, 196, 205], [43, 97, 183, 117, 85, 38, 35, 179, 61], [39, 53, 200, 87, 26, 21, 43, 232, 171], [56, 34, 51, 104, 114, 102, 29, 93, 77], [39, 28, 85, 171, 58, 165, 90, 98, 64], [34, 22, 116, 206, 23, 34, 43, 166, 73], [107, 54, 32, 26, 51, 1, 81, 43, 31], [68, 25, 106, 22, 64, 171, 36, 225, 114], [34, 19, 21, 102, 132, 188, 16, 76, 124], [62, 18, 78, 95, 85, 57, 50, 48, 51]], [[193, 101, 35, 159, 215, 111, 89, 46, 111], [60, 148, 31, 172, 219, 228, 21, 18, 111], [112, 113, 77, 85, 179, 255, 38, 120, 114], [40, 42, 1, 196, 245, 209, 10, 25, 109], [88, 43, 29, 140, 166, 213, 37, 43, 154], [61, 63, 30, 155, 67, 45, 68, 1, 209], [100, 80, 8, 43, 154, 1, 51, 26, 71], [142, 78, 78, 16, 255, 128, 34, 197, 171], [41, 40, 5, 102, 211, 183, 4, 1, 221], [51, 50, 17, 168, 209, 192, 23, 25, 82]], [[138, 31, 36, 171, 27, 166, 38, 44, 229], [67, 87, 58, 169, 82, 115, 26, 59, 179], [63, 59, 90, 180, 59, 166, 93, 73, 154], [40, 40, 21, 116, 143, 209, 34, 39, 175], [47, 15, 16, 183, 34, 223, 49, 45, 183], [46, 17, 33, 183, 6, 98, 15, 32, 183], [57, 46, 22, 24, 128, 1, 54, 17, 37], [65, 32, 73, 115, 28, 128, 23, 128, 205], [40, 3, 9, 115, 51, 192, 18, 6, 223], [87, 37, 9, 115, 59, 77, 64, 21, 47]], [[104, 55, 44, 218, 9, 54, 53, 130, 226], [64, 90, 70, 205, 40, 41, 23, 26, 57], [54, 57, 112, 184, 5, 41, 38, 166, 213], [30, 34, 26, 133, 152, 116, 10, 32, 134], [39, 19, 53, 221, 26, 114, 32, 73, 255], [31, 9, 65, 234, 2, 15, 1, 118, 73], [75, 32, 12, 51, 192, 255, 160, 43, 51], [88, 31, 35, 67, 102, 85, 55, 186, 85], [56, 21, 23, 111, 59, 205, 45, 37, 192], [55, 38, 70, 124, 73, 102, 1, 34, 98]], [[125, 98, 42, 88, 104, 85, 117, 175, 82], [95, 84, 53, 89, 128, 100, 113, 101, 45], [75, 79, 123, 47, 51, 128, 81, 171, 1], [57, 17, 5, 71, 102, 57, 53, 41, 49], [38, 33, 13, 121, 57, 73, 26, 1, 85], [41, 10, 67, 138, 77, 110, 90, 47, 114], [115, 21, 2, 10, 102, 255, 166, 23, 6], [101, 29, 16, 10, 85, 128, 101, 196, 26], [57, 18, 10, 102, 102, 213, 34, 20, 43], [117, 20, 15, 36, 163, 128, 68, 1, 26]], [[102, 61, 71, 37, 34, 53, 31, 243, 192], [69, 60, 71, 38, 73, 119, 28, 222, 37], [68, 45, 128, 34, 1, 47, 11, 245, 171], [62, 17, 19, 70, 146, 85, 55, 62, 70], [37, 43, 37, 154, 100, 163, 85, 160, 1], [63, 9, 92, 136, 28, 64, 32, 201, 85], [75, 15, 9, 9, 64, 255, 184, 119, 16], [86, 6, 28, 5, 64, 255, 25, 248, 1], [56, 8, 17, 132, 137, 255, 55, 116, 128], [58, 15, 20, 82, 135, 57, 26, 121, 40]], [[164, 50, 31, 137, 154, 133, 25, 35, 218], [51, 103, 44, 131, 131, 123, 31, 6, 158], [86, 40, 64, 135, 148, 224, 45, 183, 128], [22, 26, 17, 131, 240, 154, 14, 1, 209], [45, 16, 21, 91, 64, 222, 7, 1, 197], [56, 21, 39, 155, 60, 138, 23, 102, 213], [83, 12, 13, 54, 192, 255, 68, 47, 28], [85, 26, 85, 85, 128, 128, 32, 146, 171], [18, 11, 7, 63, 144, 171, 4, 4, 246], [35, 27, 10, 146, 174, 171, 12, 26, 128]], [[190, 80, 35, 99, 180, 80, 126, 54, 45], [85, 126, 47, 87, 176, 51, 41, 20, 32], [101, 75, 128, 139, 118, 146, 116, 128, 85], [56, 41, 15, 176, 236, 85, 37, 9, 62], [71, 30, 17, 119, 118, 255, 17, 18, 138], [101, 38, 60, 138, 55, 70, 43, 26, 142], [146, 36, 19, 30, 171, 255, 97, 27, 20], [138, 45, 61, 62, 219, 1, 81, 188, 64], [32, 41, 20, 117, 151, 142, 20, 21, 163], [112, 19, 12, 61, 195, 128, 48, 4, 24]]],\n      ui = [[[[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[176, 246, 255, 255, 255, 255, 255, 255, 255, 255, 255], [223, 241, 252, 255, 255, 255, 255, 255, 255, 255, 255], [249, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 244, 252, 255, 255, 255, 255, 255, 255, 255, 255], [234, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [253, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 246, 254, 255, 255, 255, 255, 255, 255, 255, 255], [239, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 248, 254, 255, 255, 255, 255, 255, 255, 255, 255], [251, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [251, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 253, 255, 254, 255, 255, 255, 255, 255, 255], [250, 255, 254, 255, 254, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]], [[[217, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [225, 252, 241, 253, 255, 255, 254, 255, 255, 255, 255], [234, 250, 241, 250, 253, 255, 253, 254, 255, 255, 255]], [[255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [223, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [238, 253, 254, 254, 255, 255, 255, 255, 255, 255, 255]], [[255, 248, 254, 255, 255, 255, 255, 255, 255, 255, 255], [249, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 255, 255, 255, 255, 255, 255, 255, 255, 255], [247, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [252, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [253, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 253, 255, 255, 255, 255, 255, 255, 255, 255], [250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]], [[[186, 251, 250, 255, 255, 255, 255, 255, 255, 255, 255], [234, 251, 244, 254, 255, 255, 255, 255, 255, 255, 255], [251, 251, 243, 253, 254, 255, 254, 255, 255, 255, 255]], [[255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [236, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [251, 253, 253, 254, 254, 255, 255, 255, 255, 255, 255]], [[255, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [254, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]], [[[248, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [250, 254, 252, 254, 255, 255, 255, 255, 255, 255, 255], [248, 254, 249, 253, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255], [246, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255], [252, 254, 251, 254, 254, 255, 255, 255, 255, 255, 255]], [[255, 254, 252, 255, 255, 255, 255, 255, 255, 255, 255], [248, 254, 253, 255, 255, 255, 255, 255, 255, 255, 255], [253, 255, 254, 254, 255, 255, 255, 255, 255, 255, 255]], [[255, 251, 254, 255, 255, 255, 255, 255, 255, 255, 255], [245, 251, 254, 255, 255, 255, 255, 255, 255, 255, 255], [253, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 251, 253, 255, 255, 255, 255, 255, 255, 255, 255], [252, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 252, 255, 255, 255, 255, 255, 255, 255, 255, 255], [249, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 253, 255, 255, 255, 255, 255, 255, 255, 255], [250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]]],\n      hi = [0, 1, 2, 3, 6, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 0],\n      li = [],\n      fi = [],\n      di = [],\n      pi = 1,\n      gi = 2,\n      mi = [],\n      vi = [];\n    vr(\"UpsampleRgbLinePair\", Ar, 3), vr(\"UpsampleBgrLinePair\", xr, 3), vr(\"UpsampleRgbaLinePair\", Ir, 4), vr(\"UpsampleBgraLinePair\", kr, 4), vr(\"UpsampleArgbLinePair\", Pr, 4), vr(\"UpsampleRgba4444LinePair\", _r, 2), vr(\"UpsampleRgb565LinePair\", Sr, 2);\n    var bi = t.UpsampleRgbLinePair,\n      yi = t.UpsampleBgrLinePair,\n      wi = t.UpsampleRgbaLinePair,\n      Ni = t.UpsampleBgraLinePair,\n      Li = t.UpsampleArgbLinePair,\n      Ai = t.UpsampleRgba4444LinePair,\n      xi = t.UpsampleRgb565LinePair,\n      Si = 16,\n      _i = 1 << Si - 1,\n      Pi = -227,\n      ki = 482,\n      Ii = 6,\n      Fi = (256 << Ii) - 1,\n      Ci = 0,\n      ji = a(256),\n      Oi = a(256),\n      Bi = a(256),\n      Mi = a(256),\n      Ei = a(ki - Pi),\n      qi = a(ki - Pi);\n    Fr(\"YuvToRgbRow\", Ar, 3), Fr(\"YuvToBgrRow\", xr, 3), Fr(\"YuvToRgbaRow\", Ir, 4), Fr(\"YuvToBgraRow\", kr, 4), Fr(\"YuvToArgbRow\", Pr, 4), Fr(\"YuvToRgba4444Row\", _r, 2), Fr(\"YuvToRgb565Row\", Sr, 2);\n    var Di = [0, 4, 8, 12, 128, 132, 136, 140, 256, 260, 264, 268, 384, 388, 392, 396],\n      Ri = [0, 2, 8],\n      Ti = [8, 7, 6, 4, 4, 2, 2, 2, 1, 1, 1, 1],\n      Ui = 1;\n    this.WebPDecodeRGBA = function (t, r, n, i, a) {\n      var o = qn,\n        s = new rr(),\n        c = new ot();\n      s.ba = c, c.S = o, c.width = [c.width], c.height = [c.height];\n      var u = c.width,\n        h = c.height,\n        l = new st();\n      if (null == l || null == t) var f = 2;else e(null != l), f = Br(t, r, n, l.width, l.height, l.Pd, l.Qd, l.format, null);\n      if (0 != f ? u = 0 : (null != u && (u[0] = l.width[0]), null != h && (h[0] = l.height[0]), u = 1), u) {\n        c.width = c.width[0], c.height = c.height[0], null != i && (i[0] = c.width), null != a && (a[0] = c.height);\n        t: {\n          if (i = new Gt(), (a = new nr()).data = t, a.w = r, a.ha = n, a.kd = 1, r = [0], e(null != a), (0 == (t = Br(a.data, a.w, a.ha, null, null, null, r, null, a)) || 7 == t) && r[0] && (t = 4), 0 == (r = t)) {\n            if (e(null != s), i.data = a.data, i.w = a.w + a.offset, i.ha = a.ha - a.offset, i.put = dt, i.ac = ft, i.bc = pt, i.ma = s, a.xa) {\n              if (null == (t = kt())) {\n                s = 1;\n                break t;\n              }\n              if (function (t, r) {\n                var n = [0],\n                  i = [0],\n                  a = [0];\n                e: for (;;) {\n                  if (null == t) return 0;\n                  if (null == r) return t.a = 2, 0;\n                  if (t.l = r, t.a = 0, v(t.m, r.data, r.w, r.ha), !gt(t.m, n, i, a)) {\n                    t.a = 3;\n                    break e;\n                  }\n                  if (t.xb = gi, r.width = n[0], r.height = i[0], !It(n[0], i[0], 1, t, null)) break e;\n                  return 1;\n                }\n                return e(0 != t.a), 0;\n              }(t, i)) {\n                if (i = 0 == (r = qr(i.width, i.height, s.Oa, s.ba))) {\n                  e: {\n                    i = t;\n                    r: for (;;) {\n                      if (null == i) {\n                        i = 0;\n                        break e;\n                      }\n                      if (e(null != i.s.yc), e(null != i.s.Ya), e(0 < i.s.Wb), e(null != (n = i.l)), e(null != (a = n.ma)), 0 != i.xb) {\n                        if (i.ca = a.ba, i.tb = a.tb, e(null != i.ca), !Mr(a.Oa, n, Rn)) {\n                          i.a = 2;\n                          break r;\n                        }\n                        if (!Ft(i, n.width)) break r;\n                        if (n.da) break r;\n                        if ((n.da || nt(i.ca.S)) && mr(), 11 > i.ca.S || (alert(\"todo:WebPInitConvertARGBToYUV\"), null != i.ca.f.kb.F && mr()), i.Pb && 0 < i.s.ua && null == i.s.vb.X && !O(i.s.vb, i.s.Wa.Xa)) {\n                          i.a = 1;\n                          break r;\n                        }\n                        i.xb = 0;\n                      }\n                      if (!_t(i, i.V, i.Ba, i.c, i.i, n.o, Lt)) break r;\n                      a.Dc = i.Ma, i = 1;\n                      break e;\n                    }\n                    e(0 != i.a), i = 0;\n                  }\n                  i = !i;\n                }\n                i && (r = t.a);\n              } else r = t.a;\n            } else {\n              if (null == (t = new Yt())) {\n                s = 1;\n                break t;\n              }\n              if (t.Fa = a.na, t.P = a.P, t.qc = a.Sa, Kt(t, i)) {\n                if (0 == (r = qr(i.width, i.height, s.Oa, s.ba))) {\n                  if (t.Aa = 0, n = s.Oa, e(null != (a = t)), null != n) {\n                    if (0 < (u = 0 > (u = n.Md) ? 0 : 100 < u ? 255 : 255 * u / 100)) {\n                      for (h = l = 0; 4 > h; ++h) 12 > (f = a.pb[h]).lc && (f.ia = u * Ti[0 > f.lc ? 0 : f.lc] >> 3), l |= f.ia;\n                      l && (alert(\"todo:VP8InitRandom\"), a.ia = 1);\n                    }\n                    a.Ga = n.Id, 100 < a.Ga ? a.Ga = 100 : 0 > a.Ga && (a.Ga = 0);\n                  }\n                  Qt(t, i) || (r = t.a);\n                }\n              } else r = t.a;\n            }\n            0 == r && null != s.Oa && s.Oa.fd && (r = Er(s.ba));\n          }\n          s = r;\n        }\n        o = 0 != s ? null : 11 > o ? c.f.RGBA.eb : c.f.kb.y;\n      } else o = null;\n      return o;\n    };\n    var zi = [3, 4, 3, 4, 4, 2, 2, 4, 4, 4, 2, 1, 1];\n  };\n  function u(t, e) {\n    for (var r = \"\", n = 0; n < 4; n++) r += String.fromCharCode(t[e++]);\n    return r;\n  }\n  function h(t, e) {\n    return (t[e + 0] << 0 | t[e + 1] << 8 | t[e + 2] << 16) >>> 0;\n  }\n  function l(t, e) {\n    return (t[e + 0] << 0 | t[e + 1] << 8 | t[e + 2] << 16 | t[e + 3] << 24) >>> 0;\n  }\n  new c();\n  var f = [0],\n    d = [0],\n    p = [],\n    g = new c(),\n    m = t,\n    v = function (t, e) {\n      var r = {},\n        n = 0,\n        i = !1,\n        a = 0,\n        o = 0;\n      if (r.frames = [], !\n      /** @license\n         * Copyright (c) 2017 Dominik Homberger\n        Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n        The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n        THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n        https://webpjs.appspot.com\n        WebPRiffParser dominikhlbg@gmail.com\n        */\n      function (t, e, r, n) {\n        for (var i = 0; i < n; i++) if (t[e + i] != r.charCodeAt(i)) return !0;\n        return !1;\n      }(t, e, \"RIFF\", 4)) {\n        var s, c;\n        l(t, e += 4);\n        for (e += 8; e < t.length;) {\n          var f = u(t, e),\n            d = l(t, e += 4);\n          e += 4;\n          var p = d + (1 & d);\n          switch (f) {\n            case \"VP8 \":\n            case \"VP8L\":\n              void 0 === r.frames[n] && (r.frames[n] = {});\n              (v = r.frames[n]).src_off = i ? o : e - 8, v.src_size = a + d + 8, n++, i && (i = !1, a = 0, o = 0);\n              break;\n            case \"VP8X\":\n              (v = r.header = {}).feature_flags = t[e];\n              var g = e + 4;\n              v.canvas_width = 1 + h(t, g);\n              g += 3;\n              v.canvas_height = 1 + h(t, g);\n              g += 3;\n              break;\n            case \"ALPH\":\n              i = !0, a = p + 8, o = e - 8;\n              break;\n            case \"ANIM\":\n              (v = r.header).bgcolor = l(t, e);\n              g = e + 4;\n              v.loop_count = (s = t)[(c = g) + 0] << 0 | s[c + 1] << 8;\n              g += 2;\n              break;\n            case \"ANMF\":\n              var m, v;\n              (v = r.frames[n] = {}).offset_x = 2 * h(t, e), e += 3, v.offset_y = 2 * h(t, e), e += 3, v.width = 1 + h(t, e), e += 3, v.height = 1 + h(t, e), e += 3, v.duration = h(t, e), e += 3, m = t[e++], v.dispose = 1 & m, v.blend = m >> 1 & 1;\n          }\n          \"ANMF\" != f && (e += p);\n        }\n        return r;\n      }\n    }(m, 0);\n  v.response = m, v.rgbaoutput = !0, v.dataurl = !1;\n  var b = v.header ? v.header : null,\n    y = v.frames ? v.frames : null;\n  if (b) {\n    b.loop_counter = b.loop_count, f = [b.canvas_height], d = [b.canvas_width];\n    for (var w = 0; w < y.length && 0 != y[w].blend; w++);\n  }\n  var N = y[0],\n    L = g.WebPDecodeRGBA(m, N.src_off, N.src_size, d, f);\n  N.rgba = L, N.imgwidth = d[0], N.imgheight = f[0];\n  for (var A = 0; A < d[0] * f[0] * 4; A++) p[A] = L[A];\n  return this.width = d, this.height = f, this.data = p, this;\n}\n!function (t) {\n  var r = function () {\n      return \"function\" == typeof e;\n    },\n    n = function (r, n, a, h) {\n      var l = 4,\n        f = s;\n      switch (h) {\n        case t.image_compression.FAST:\n          l = 1, f = o;\n          break;\n        case t.image_compression.MEDIUM:\n          l = 6, f = c;\n          break;\n        case t.image_compression.SLOW:\n          l = 9, f = u;\n      }\n      r = i(r, n, a, f);\n      var d = e(r, {\n        level: l\n      });\n      return t.__addimage__.arrayBufferToBinaryString(d);\n    },\n    i = function (t, e, r, n) {\n      for (var i, a, o, s = t.length / e, c = new Uint8Array(t.length + s), u = l(), h = 0; h < s; h += 1) {\n        if (o = h * e, i = t.subarray(o, o + e), n) c.set(n(i, r, a), o + h);else {\n          for (var d, p = u.length, g = []; d < p; d += 1) g[d] = u[d](i, r, a);\n          var m = f(g.concat());\n          c.set(g[m], o + h);\n        }\n        a = i;\n      }\n      return c;\n    },\n    a = function (t) {\n      var e = Array.apply([], t);\n      return e.unshift(0), e;\n    },\n    o = function (t, e) {\n      var r,\n        n = [],\n        i = t.length;\n      n[0] = 1;\n      for (var a = 0; a < i; a += 1) r = t[a - e] || 0, n[a + 1] = t[a] - r + 256 & 255;\n      return n;\n    },\n    s = function (t, e, r) {\n      var n,\n        i = [],\n        a = t.length;\n      i[0] = 2;\n      for (var o = 0; o < a; o += 1) n = r && r[o] || 0, i[o + 1] = t[o] - n + 256 & 255;\n      return i;\n    },\n    c = function (t, e, r) {\n      var n,\n        i,\n        a = [],\n        o = t.length;\n      a[0] = 3;\n      for (var s = 0; s < o; s += 1) n = t[s - e] || 0, i = r && r[s] || 0, a[s + 1] = t[s] + 256 - (n + i >>> 1) & 255;\n      return a;\n    },\n    u = function (t, e, r) {\n      var n,\n        i,\n        a,\n        o,\n        s = [],\n        c = t.length;\n      s[0] = 4;\n      for (var u = 0; u < c; u += 1) n = t[u - e] || 0, i = r && r[u] || 0, a = r && r[u - e] || 0, o = h(n, i, a), s[u + 1] = t[u] - o + 256 & 255;\n      return s;\n    },\n    h = function (t, e, r) {\n      if (t === e && e === r) return t;\n      var n = Math.abs(e - r),\n        i = Math.abs(t - r),\n        a = Math.abs(t + e - r - r);\n      return n <= i && n <= a ? t : i <= a ? e : r;\n    },\n    l = function () {\n      return [a, o, s, c, u];\n    },\n    f = function (t) {\n      var e = t.map(function (t) {\n        return t.reduce(function (t, e) {\n          return t + Math.abs(e);\n        }, 0);\n      });\n      return e.indexOf(Math.min.apply(null, e));\n    };\n  t.processPNG = function (e, i, a, o) {\n    var s,\n      c,\n      u,\n      h,\n      l,\n      f,\n      d,\n      p,\n      g,\n      m,\n      v,\n      b,\n      y,\n      w,\n      N,\n      L = this.decode.FLATE_DECODE,\n      A = \"\";\n    if (this.__addimage__.isArrayBuffer(e) && (e = new Uint8Array(e)), this.__addimage__.isArrayBufferView(e)) {\n      if (e = (u = new Kt(e)).imgData, c = u.bits, s = u.colorSpace, l = u.colors, -1 !== [4, 6].indexOf(u.colorType)) {\n        if (8 === u.bits) {\n          g = (p = 32 == u.pixelBitlength ? new Uint32Array(u.decodePixels().buffer) : 16 == u.pixelBitlength ? new Uint16Array(u.decodePixels().buffer) : new Uint8Array(u.decodePixels().buffer)).length, v = new Uint8Array(g * u.colors), m = new Uint8Array(g);\n          var x,\n            S = u.pixelBitlength - u.bits;\n          for (w = 0, N = 0; w < g; w++) {\n            for (y = p[w], x = 0; x < S;) v[N++] = y >>> x & 255, x += u.bits;\n            m[w] = y >>> x & 255;\n          }\n        }\n        if (16 === u.bits) {\n          g = (p = new Uint32Array(u.decodePixels().buffer)).length, v = new Uint8Array(g * (32 / u.pixelBitlength) * u.colors), m = new Uint8Array(g * (32 / u.pixelBitlength)), b = u.colors > 1, w = 0, N = 0;\n          for (var _ = 0; w < g;) y = p[w++], v[N++] = y >>> 0 & 255, b && (v[N++] = y >>> 16 & 255, y = p[w++], v[N++] = y >>> 0 & 255), m[_++] = y >>> 16 & 255;\n          c = 8;\n        }\n        o !== t.image_compression.NONE && r() ? (e = n(v, u.width * u.colors, u.colors, o), d = n(m, u.width, 1, o)) : (e = v, d = m, L = void 0);\n      }\n      if (3 === u.colorType && (s = this.color_spaces.INDEXED, f = u.palette, u.transparency.indexed)) {\n        var P = u.transparency.indexed,\n          k = 0;\n        for (w = 0, g = P.length; w < g; ++w) k += P[w];\n        if ((k /= 255) === g - 1 && -1 !== P.indexOf(0)) h = [P.indexOf(0)];else if (k !== g) {\n          for (p = u.decodePixels(), m = new Uint8Array(p.length), w = 0, g = p.length; w < g; w++) m[w] = P[p[w]];\n          d = n(m, u.width, 1);\n        }\n      }\n      var I = function (e) {\n        var r;\n        switch (e) {\n          case t.image_compression.FAST:\n            r = 11;\n            break;\n          case t.image_compression.MEDIUM:\n            r = 13;\n            break;\n          case t.image_compression.SLOW:\n            r = 14;\n            break;\n          default:\n            r = 12;\n        }\n        return r;\n      }(o);\n      return L === this.decode.FLATE_DECODE && (A = \"/Predictor \" + I + \" \"), A += \"/Colors \" + l + \" /BitsPerComponent \" + c + \" /Columns \" + u.width, (this.__addimage__.isArrayBuffer(e) || this.__addimage__.isArrayBufferView(e)) && (e = this.__addimage__.arrayBufferToBinaryString(e)), (d && this.__addimage__.isArrayBuffer(d) || this.__addimage__.isArrayBufferView(d)) && (d = this.__addimage__.arrayBufferToBinaryString(d)), {\n        alias: a,\n        data: e,\n        index: i,\n        filter: L,\n        decodeParameters: A,\n        transparency: h,\n        palette: f,\n        sMask: d,\n        predictor: I,\n        width: u.width,\n        height: u.height,\n        bitsPerComponent: c,\n        colorSpace: s\n      };\n    }\n  };\n}(E.API), function (t) {\n  t.processGIF89A = function (e, r, n, i) {\n    var a = new Zt(e),\n      o = a.width,\n      s = a.height,\n      c = [];\n    a.decodeAndBlitFrameRGBA(0, c);\n    var u = {\n        data: c,\n        width: o,\n        height: s\n      },\n      h = new Qt(100).encode(u, 100);\n    return t.processJPEG.call(this, h, r, n, i);\n  }, t.processGIF87A = t.processGIF89A;\n}(E.API), te.prototype.parseHeader = function () {\n  if (this.fileSize = this.datav.getUint32(this.pos, !0), this.pos += 4, this.reserved = this.datav.getUint32(this.pos, !0), this.pos += 4, this.offset = this.datav.getUint32(this.pos, !0), this.pos += 4, this.headerSize = this.datav.getUint32(this.pos, !0), this.pos += 4, this.width = this.datav.getUint32(this.pos, !0), this.pos += 4, this.height = this.datav.getInt32(this.pos, !0), this.pos += 4, this.planes = this.datav.getUint16(this.pos, !0), this.pos += 2, this.bitPP = this.datav.getUint16(this.pos, !0), this.pos += 2, this.compress = this.datav.getUint32(this.pos, !0), this.pos += 4, this.rawSize = this.datav.getUint32(this.pos, !0), this.pos += 4, this.hr = this.datav.getUint32(this.pos, !0), this.pos += 4, this.vr = this.datav.getUint32(this.pos, !0), this.pos += 4, this.colors = this.datav.getUint32(this.pos, !0), this.pos += 4, this.importantColors = this.datav.getUint32(this.pos, !0), this.pos += 4, 16 === this.bitPP && this.is_with_alpha && (this.bitPP = 15), this.bitPP < 15) {\n    var t = 0 === this.colors ? 1 << this.bitPP : this.colors;\n    this.palette = new Array(t);\n    for (var e = 0; e < t; e++) {\n      var r = this.datav.getUint8(this.pos++, !0),\n        n = this.datav.getUint8(this.pos++, !0),\n        i = this.datav.getUint8(this.pos++, !0),\n        a = this.datav.getUint8(this.pos++, !0);\n      this.palette[e] = {\n        red: i,\n        green: n,\n        blue: r,\n        quad: a\n      };\n    }\n  }\n  this.height < 0 && (this.height *= -1, this.bottom_up = !1);\n}, te.prototype.parseBGR = function () {\n  this.pos = this.offset;\n  try {\n    var t = \"bit\" + this.bitPP,\n      e = this.width * this.height * 4;\n    this.data = new Uint8Array(e), this[t]();\n  } catch (t) {\n    a.log(\"bit decode error:\" + t);\n  }\n}, te.prototype.bit1 = function () {\n  var t,\n    e = Math.ceil(this.width / 8),\n    r = e % 4;\n  for (t = this.height - 1; t >= 0; t--) {\n    for (var n = this.bottom_up ? t : this.height - 1 - t, i = 0; i < e; i++) for (var a = this.datav.getUint8(this.pos++, !0), o = n * this.width * 4 + 8 * i * 4, s = 0; s < 8 && 8 * i + s < this.width; s++) {\n      var c = this.palette[a >> 7 - s & 1];\n      this.data[o + 4 * s] = c.blue, this.data[o + 4 * s + 1] = c.green, this.data[o + 4 * s + 2] = c.red, this.data[o + 4 * s + 3] = 255;\n    }\n    0 !== r && (this.pos += 4 - r);\n  }\n}, te.prototype.bit4 = function () {\n  for (var t = Math.ceil(this.width / 2), e = t % 4, r = this.height - 1; r >= 0; r--) {\n    for (var n = this.bottom_up ? r : this.height - 1 - r, i = 0; i < t; i++) {\n      var a = this.datav.getUint8(this.pos++, !0),\n        o = n * this.width * 4 + 2 * i * 4,\n        s = a >> 4,\n        c = 15 & a,\n        u = this.palette[s];\n      if (this.data[o] = u.blue, this.data[o + 1] = u.green, this.data[o + 2] = u.red, this.data[o + 3] = 255, 2 * i + 1 >= this.width) break;\n      u = this.palette[c], this.data[o + 4] = u.blue, this.data[o + 4 + 1] = u.green, this.data[o + 4 + 2] = u.red, this.data[o + 4 + 3] = 255;\n    }\n    0 !== e && (this.pos += 4 - e);\n  }\n}, te.prototype.bit8 = function () {\n  for (var t = this.width % 4, e = this.height - 1; e >= 0; e--) {\n    for (var r = this.bottom_up ? e : this.height - 1 - e, n = 0; n < this.width; n++) {\n      var i = this.datav.getUint8(this.pos++, !0),\n        a = r * this.width * 4 + 4 * n;\n      if (i < this.palette.length) {\n        var o = this.palette[i];\n        this.data[a] = o.red, this.data[a + 1] = o.green, this.data[a + 2] = o.blue, this.data[a + 3] = 255;\n      } else this.data[a] = 255, this.data[a + 1] = 255, this.data[a + 2] = 255, this.data[a + 3] = 255;\n    }\n    0 !== t && (this.pos += 4 - t);\n  }\n}, te.prototype.bit15 = function () {\n  for (var t = this.width % 3, e = parseInt(\"11111\", 2), r = this.height - 1; r >= 0; r--) {\n    for (var n = this.bottom_up ? r : this.height - 1 - r, i = 0; i < this.width; i++) {\n      var a = this.datav.getUint16(this.pos, !0);\n      this.pos += 2;\n      var o = (a & e) / e * 255 | 0,\n        s = (a >> 5 & e) / e * 255 | 0,\n        c = (a >> 10 & e) / e * 255 | 0,\n        u = a >> 15 ? 255 : 0,\n        h = n * this.width * 4 + 4 * i;\n      this.data[h] = c, this.data[h + 1] = s, this.data[h + 2] = o, this.data[h + 3] = u;\n    }\n    this.pos += t;\n  }\n}, te.prototype.bit16 = function () {\n  for (var t = this.width % 3, e = parseInt(\"11111\", 2), r = parseInt(\"111111\", 2), n = this.height - 1; n >= 0; n--) {\n    for (var i = this.bottom_up ? n : this.height - 1 - n, a = 0; a < this.width; a++) {\n      var o = this.datav.getUint16(this.pos, !0);\n      this.pos += 2;\n      var s = (o & e) / e * 255 | 0,\n        c = (o >> 5 & r) / r * 255 | 0,\n        u = (o >> 11) / e * 255 | 0,\n        h = i * this.width * 4 + 4 * a;\n      this.data[h] = u, this.data[h + 1] = c, this.data[h + 2] = s, this.data[h + 3] = 255;\n    }\n    this.pos += t;\n  }\n}, te.prototype.bit24 = function () {\n  for (var t = this.height - 1; t >= 0; t--) {\n    for (var e = this.bottom_up ? t : this.height - 1 - t, r = 0; r < this.width; r++) {\n      var n = this.datav.getUint8(this.pos++, !0),\n        i = this.datav.getUint8(this.pos++, !0),\n        a = this.datav.getUint8(this.pos++, !0),\n        o = e * this.width * 4 + 4 * r;\n      this.data[o] = a, this.data[o + 1] = i, this.data[o + 2] = n, this.data[o + 3] = 255;\n    }\n    this.pos += this.width % 4;\n  }\n}, te.prototype.bit32 = function () {\n  for (var t = this.height - 1; t >= 0; t--) for (var e = this.bottom_up ? t : this.height - 1 - t, r = 0; r < this.width; r++) {\n    var n = this.datav.getUint8(this.pos++, !0),\n      i = this.datav.getUint8(this.pos++, !0),\n      a = this.datav.getUint8(this.pos++, !0),\n      o = this.datav.getUint8(this.pos++, !0),\n      s = e * this.width * 4 + 4 * r;\n    this.data[s] = a, this.data[s + 1] = i, this.data[s + 2] = n, this.data[s + 3] = o;\n  }\n}, te.prototype.getData = function () {\n  return this.data;\n},\n/**\n * @license\n * Copyright (c) 2018 Aras Abbasi\n *\n * Licensed under the MIT License.\n * http://opensource.org/licenses/mit-license\n */\nfunction (t) {\n  t.processBMP = function (e, r, n, i) {\n    var a = new te(e, !1),\n      o = a.width,\n      s = a.height,\n      c = {\n        data: a.getData(),\n        width: o,\n        height: s\n      },\n      u = new Qt(100).encode(c, 100);\n    return t.processJPEG.call(this, u, r, n, i);\n  };\n}(E.API), ee.prototype.getData = function () {\n  return this.data;\n},\n/**\n * @license\n * Copyright (c) 2019 Aras Abbasi\n *\n * Licensed under the MIT License.\n * http://opensource.org/licenses/mit-license\n */\nfunction (t) {\n  t.processWEBP = function (e, r, n, i) {\n    var a = new ee(e, !1),\n      o = a.width,\n      s = a.height,\n      c = {\n        data: a.getData(),\n        width: o,\n        height: s\n      },\n      u = new Qt(100).encode(c, 100);\n    return t.processJPEG.call(this, u, r, n, i);\n  };\n}(E.API), E.API.processRGBA = function (t, e, r) {\n  for (var n = t.data, i = n.length, a = new Uint8Array(i / 4 * 3), o = new Uint8Array(i / 4), s = 0, c = 0, u = 0; u < i; u += 4) {\n    var h = n[u],\n      l = n[u + 1],\n      f = n[u + 2],\n      d = n[u + 3];\n    a[s++] = h, a[s++] = l, a[s++] = f, o[c++] = d;\n  }\n  var p = this.__addimage__.arrayBufferToBinaryString(a);\n  return {\n    alpha: this.__addimage__.arrayBufferToBinaryString(o),\n    data: p,\n    index: e,\n    alias: r,\n    colorSpace: \"DeviceRGB\",\n    bitsPerComponent: 8,\n    width: t.width,\n    height: t.height\n  };\n}, E.API.setLanguage = function (t) {\n  return void 0 === this.internal.languageSettings && (this.internal.languageSettings = {}, this.internal.languageSettings.isSubscribed = !1), void 0 !== {\n    af: \"Afrikaans\",\n    sq: \"Albanian\",\n    ar: \"Arabic (Standard)\",\n    \"ar-DZ\": \"Arabic (Algeria)\",\n    \"ar-BH\": \"Arabic (Bahrain)\",\n    \"ar-EG\": \"Arabic (Egypt)\",\n    \"ar-IQ\": \"Arabic (Iraq)\",\n    \"ar-JO\": \"Arabic (Jordan)\",\n    \"ar-KW\": \"Arabic (Kuwait)\",\n    \"ar-LB\": \"Arabic (Lebanon)\",\n    \"ar-LY\": \"Arabic (Libya)\",\n    \"ar-MA\": \"Arabic (Morocco)\",\n    \"ar-OM\": \"Arabic (Oman)\",\n    \"ar-QA\": \"Arabic (Qatar)\",\n    \"ar-SA\": \"Arabic (Saudi Arabia)\",\n    \"ar-SY\": \"Arabic (Syria)\",\n    \"ar-TN\": \"Arabic (Tunisia)\",\n    \"ar-AE\": \"Arabic (U.A.E.)\",\n    \"ar-YE\": \"Arabic (Yemen)\",\n    an: \"Aragonese\",\n    hy: \"Armenian\",\n    as: \"Assamese\",\n    ast: \"Asturian\",\n    az: \"Azerbaijani\",\n    eu: \"Basque\",\n    be: \"Belarusian\",\n    bn: \"Bengali\",\n    bs: \"Bosnian\",\n    br: \"Breton\",\n    bg: \"Bulgarian\",\n    my: \"Burmese\",\n    ca: \"Catalan\",\n    ch: \"Chamorro\",\n    ce: \"Chechen\",\n    zh: \"Chinese\",\n    \"zh-HK\": \"Chinese (Hong Kong)\",\n    \"zh-CN\": \"Chinese (PRC)\",\n    \"zh-SG\": \"Chinese (Singapore)\",\n    \"zh-TW\": \"Chinese (Taiwan)\",\n    cv: \"Chuvash\",\n    co: \"Corsican\",\n    cr: \"Cree\",\n    hr: \"Croatian\",\n    cs: \"Czech\",\n    da: \"Danish\",\n    nl: \"Dutch (Standard)\",\n    \"nl-BE\": \"Dutch (Belgian)\",\n    en: \"English\",\n    \"en-AU\": \"English (Australia)\",\n    \"en-BZ\": \"English (Belize)\",\n    \"en-CA\": \"English (Canada)\",\n    \"en-IE\": \"English (Ireland)\",\n    \"en-JM\": \"English (Jamaica)\",\n    \"en-NZ\": \"English (New Zealand)\",\n    \"en-PH\": \"English (Philippines)\",\n    \"en-ZA\": \"English (South Africa)\",\n    \"en-TT\": \"English (Trinidad & Tobago)\",\n    \"en-GB\": \"English (United Kingdom)\",\n    \"en-US\": \"English (United States)\",\n    \"en-ZW\": \"English (Zimbabwe)\",\n    eo: \"Esperanto\",\n    et: \"Estonian\",\n    fo: \"Faeroese\",\n    fj: \"Fijian\",\n    fi: \"Finnish\",\n    fr: \"French (Standard)\",\n    \"fr-BE\": \"French (Belgium)\",\n    \"fr-CA\": \"French (Canada)\",\n    \"fr-FR\": \"French (France)\",\n    \"fr-LU\": \"French (Luxembourg)\",\n    \"fr-MC\": \"French (Monaco)\",\n    \"fr-CH\": \"French (Switzerland)\",\n    fy: \"Frisian\",\n    fur: \"Friulian\",\n    gd: \"Gaelic (Scots)\",\n    \"gd-IE\": \"Gaelic (Irish)\",\n    gl: \"Galacian\",\n    ka: \"Georgian\",\n    de: \"German (Standard)\",\n    \"de-AT\": \"German (Austria)\",\n    \"de-DE\": \"German (Germany)\",\n    \"de-LI\": \"German (Liechtenstein)\",\n    \"de-LU\": \"German (Luxembourg)\",\n    \"de-CH\": \"German (Switzerland)\",\n    el: \"Greek\",\n    gu: \"Gujurati\",\n    ht: \"Haitian\",\n    he: \"Hebrew\",\n    hi: \"Hindi\",\n    hu: \"Hungarian\",\n    is: \"Icelandic\",\n    id: \"Indonesian\",\n    iu: \"Inuktitut\",\n    ga: \"Irish\",\n    it: \"Italian (Standard)\",\n    \"it-CH\": \"Italian (Switzerland)\",\n    ja: \"Japanese\",\n    kn: \"Kannada\",\n    ks: \"Kashmiri\",\n    kk: \"Kazakh\",\n    km: \"Khmer\",\n    ky: \"Kirghiz\",\n    tlh: \"Klingon\",\n    ko: \"Korean\",\n    \"ko-KP\": \"Korean (North Korea)\",\n    \"ko-KR\": \"Korean (South Korea)\",\n    la: \"Latin\",\n    lv: \"Latvian\",\n    lt: \"Lithuanian\",\n    lb: \"Luxembourgish\",\n    mk: \"North Macedonia\",\n    ms: \"Malay\",\n    ml: \"Malayalam\",\n    mt: \"Maltese\",\n    mi: \"Maori\",\n    mr: \"Marathi\",\n    mo: \"Moldavian\",\n    nv: \"Navajo\",\n    ng: \"Ndonga\",\n    ne: \"Nepali\",\n    no: \"Norwegian\",\n    nb: \"Norwegian (Bokmal)\",\n    nn: \"Norwegian (Nynorsk)\",\n    oc: \"Occitan\",\n    or: \"Oriya\",\n    om: \"Oromo\",\n    fa: \"Persian\",\n    \"fa-IR\": \"Persian/Iran\",\n    pl: \"Polish\",\n    pt: \"Portuguese\",\n    \"pt-BR\": \"Portuguese (Brazil)\",\n    pa: \"Punjabi\",\n    \"pa-IN\": \"Punjabi (India)\",\n    \"pa-PK\": \"Punjabi (Pakistan)\",\n    qu: \"Quechua\",\n    rm: \"Rhaeto-Romanic\",\n    ro: \"Romanian\",\n    \"ro-MO\": \"Romanian (Moldavia)\",\n    ru: \"Russian\",\n    \"ru-MO\": \"Russian (Moldavia)\",\n    sz: \"Sami (Lappish)\",\n    sg: \"Sango\",\n    sa: \"Sanskrit\",\n    sc: \"Sardinian\",\n    sd: \"Sindhi\",\n    si: \"Singhalese\",\n    sr: \"Serbian\",\n    sk: \"Slovak\",\n    sl: \"Slovenian\",\n    so: \"Somani\",\n    sb: \"Sorbian\",\n    es: \"Spanish\",\n    \"es-AR\": \"Spanish (Argentina)\",\n    \"es-BO\": \"Spanish (Bolivia)\",\n    \"es-CL\": \"Spanish (Chile)\",\n    \"es-CO\": \"Spanish (Colombia)\",\n    \"es-CR\": \"Spanish (Costa Rica)\",\n    \"es-DO\": \"Spanish (Dominican Republic)\",\n    \"es-EC\": \"Spanish (Ecuador)\",\n    \"es-SV\": \"Spanish (El Salvador)\",\n    \"es-GT\": \"Spanish (Guatemala)\",\n    \"es-HN\": \"Spanish (Honduras)\",\n    \"es-MX\": \"Spanish (Mexico)\",\n    \"es-NI\": \"Spanish (Nicaragua)\",\n    \"es-PA\": \"Spanish (Panama)\",\n    \"es-PY\": \"Spanish (Paraguay)\",\n    \"es-PE\": \"Spanish (Peru)\",\n    \"es-PR\": \"Spanish (Puerto Rico)\",\n    \"es-ES\": \"Spanish (Spain)\",\n    \"es-UY\": \"Spanish (Uruguay)\",\n    \"es-VE\": \"Spanish (Venezuela)\",\n    sx: \"Sutu\",\n    sw: \"Swahili\",\n    sv: \"Swedish\",\n    \"sv-FI\": \"Swedish (Finland)\",\n    \"sv-SV\": \"Swedish (Sweden)\",\n    ta: \"Tamil\",\n    tt: \"Tatar\",\n    te: \"Teluga\",\n    th: \"Thai\",\n    tig: \"Tigre\",\n    ts: \"Tsonga\",\n    tn: \"Tswana\",\n    tr: \"Turkish\",\n    tk: \"Turkmen\",\n    uk: \"Ukrainian\",\n    hsb: \"Upper Sorbian\",\n    ur: \"Urdu\",\n    ve: \"Venda\",\n    vi: \"Vietnamese\",\n    vo: \"Volapuk\",\n    wa: \"Walloon\",\n    cy: \"Welsh\",\n    xh: \"Xhosa\",\n    ji: \"Yiddish\",\n    zu: \"Zulu\"\n  }[t] && (this.internal.languageSettings.languageCode = t, !1 === this.internal.languageSettings.isSubscribed && (this.internal.events.subscribe(\"putCatalog\", function () {\n    this.internal.write(\"/Lang (\" + this.internal.languageSettings.languageCode + \")\");\n  }), this.internal.languageSettings.isSubscribed = !0)), this;\n}, Vt = E.API, Gt = Vt.getCharWidthsArray = function (e, r) {\n  var n,\n    i,\n    a = (r = r || {}).font || this.internal.getFont(),\n    o = r.fontSize || this.internal.getFontSize(),\n    s = r.charSpace || this.internal.getCharSpace(),\n    c = r.widths ? r.widths : a.metadata.Unicode.widths,\n    u = c.fof ? c.fof : 1,\n    h = r.kerning ? r.kerning : a.metadata.Unicode.kerning,\n    l = h.fof ? h.fof : 1,\n    f = !1 !== r.doKerning,\n    d = 0,\n    p = e.length,\n    g = 0,\n    m = c[0] || u,\n    v = [];\n  for (n = 0; n < p; n++) i = e.charCodeAt(n), \"function\" == typeof a.metadata.widthOfString ? v.push((a.metadata.widthOfGlyph(a.metadata.characterToGlyph(i)) + s * (1e3 / o) || 0) / 1e3) : (d = f && \"object\" === t(h[i]) && !isNaN(parseInt(h[i][g], 10)) ? h[i][g] / l : 0, v.push((c[i] || m) / u + d)), g = i;\n  return v;\n}, Yt = Vt.getStringUnitWidth = function (t, e) {\n  var r = (e = e || {}).fontSize || this.internal.getFontSize(),\n    n = e.font || this.internal.getFont(),\n    i = e.charSpace || this.internal.getCharSpace();\n  return Vt.processArabic && (t = Vt.processArabic(t)), \"function\" == typeof n.metadata.widthOfString ? n.metadata.widthOfString(t, r, i) / r : Gt.apply(this, arguments).reduce(function (t, e) {\n    return t + e;\n  }, 0);\n}, Jt = function (t, e, r, n) {\n  for (var i = [], a = 0, o = t.length, s = 0; a !== o && s + e[a] < r;) s += e[a], a++;\n  i.push(t.slice(0, a));\n  var c = a;\n  for (s = 0; a !== o;) s + e[a] > n && (i.push(t.slice(c, a)), s = 0, c = a), s += e[a], a++;\n  return c !== a && i.push(t.slice(c, a)), i;\n}, Xt = function (t, e, r) {\n  r || (r = {});\n  var n,\n    i,\n    a,\n    o,\n    s,\n    c,\n    u,\n    h = [],\n    l = [h],\n    f = r.textIndent || 0,\n    d = 0,\n    p = 0,\n    g = t.split(\" \"),\n    m = Gt.apply(this, [\" \", r])[0];\n  if (c = -1 === r.lineIndent ? g[0].length + 2 : r.lineIndent || 0) {\n    var v = Array(c).join(\" \"),\n      b = [];\n    g.map(function (t) {\n      (t = t.split(/\\s*\\n/)).length > 1 ? b = b.concat(t.map(function (t, e) {\n        return (e && t.length ? \"\\n\" : \"\") + t;\n      })) : b.push(t[0]);\n    }), g = b, c = Yt.apply(this, [v, r]);\n  }\n  for (a = 0, o = g.length; a < o; a++) {\n    var y = 0;\n    if (n = g[a], c && \"\\n\" == n[0] && (n = n.substr(1), y = 1), f + d + (p = (i = Gt.apply(this, [n, r])).reduce(function (t, e) {\n      return t + e;\n    }, 0)) > e || y) {\n      if (p > e) {\n        for (s = Jt.apply(this, [n, i, e - (f + d), e]), h.push(s.shift()), h = [s.pop()]; s.length;) l.push([s.shift()]);\n        p = i.slice(n.length - (h[0] ? h[0].length : 0)).reduce(function (t, e) {\n          return t + e;\n        }, 0);\n      } else h = [n];\n      l.push(h), f = p + c, d = m;\n    } else h.push(n), f += d + p, d = m;\n  }\n  return u = c ? function (t, e) {\n    return (e ? v : \"\") + t.join(\" \");\n  } : function (t) {\n    return t.join(\" \");\n  }, l.map(u);\n}, Vt.splitTextToSize = function (t, e, r) {\n  var n,\n    i = (r = r || {}).fontSize || this.internal.getFontSize(),\n    a = function (t) {\n      if (t.widths && t.kerning) return {\n        widths: t.widths,\n        kerning: t.kerning\n      };\n      var e = this.internal.getFont(t.fontName, t.fontStyle);\n      return e.metadata.Unicode ? {\n        widths: e.metadata.Unicode.widths || {\n          0: 1\n        },\n        kerning: e.metadata.Unicode.kerning || {}\n      } : {\n        font: e.metadata,\n        fontSize: this.internal.getFontSize(),\n        charSpace: this.internal.getCharSpace()\n      };\n    }.call(this, r);\n  n = Array.isArray(t) ? t : String(t).split(/\\r?\\n/);\n  var o = 1 * this.internal.scaleFactor * e / i;\n  a.textIndent = r.textIndent ? 1 * r.textIndent * this.internal.scaleFactor / i : 0, a.lineIndent = r.lineIndent;\n  var s,\n    c,\n    u = [];\n  for (s = 0, c = n.length; s < c; s++) u = u.concat(Xt.apply(this, [n[s], o, a]));\n  return u;\n}, function (e) {\n  e.__fontmetrics__ = e.__fontmetrics__ || {};\n  for (var r = \"klmnopqrstuvwxyz\", n = {}, i = {}, a = 0; a < r.length; a++) n[r[a]] = \"0123456789abcdef\"[a], i[\"0123456789abcdef\"[a]] = r[a];\n  var o = function (t) {\n      return \"0x\" + parseInt(t, 10).toString(16);\n    },\n    s = e.__fontmetrics__.compress = function (e) {\n      var r,\n        n,\n        a,\n        c,\n        u = [\"{\"];\n      for (var h in e) {\n        if (r = e[h], isNaN(parseInt(h, 10)) ? n = \"'\" + h + \"'\" : (h = parseInt(h, 10), n = (n = o(h).slice(2)).slice(0, -1) + i[n.slice(-1)]), \"number\" == typeof r) r < 0 ? (a = o(r).slice(3), c = \"-\") : (a = o(r).slice(2), c = \"\"), a = c + a.slice(0, -1) + i[a.slice(-1)];else {\n          if (\"object\" !== t(r)) throw new Error(\"Don't know what to do with value type \" + t(r) + \".\");\n          a = s(r);\n        }\n        u.push(n + a);\n      }\n      return u.push(\"}\"), u.join(\"\");\n    },\n    c = e.__fontmetrics__.uncompress = function (t) {\n      if (\"string\" != typeof t) throw new Error(\"Invalid argument passed to uncompress.\");\n      for (var e, r, i, a, o = {}, s = 1, c = o, u = [], h = \"\", l = \"\", f = t.length - 1, d = 1; d < f; d += 1) \"'\" == (a = t[d]) ? e ? (i = e.join(\"\"), e = void 0) : e = [] : e ? e.push(a) : \"{\" == a ? (u.push([c, i]), c = {}, i = void 0) : \"}\" == a ? ((r = u.pop())[0][r[1]] = c, i = void 0, c = r[0]) : \"-\" == a ? s = -1 : void 0 === i ? n.hasOwnProperty(a) ? (h += n[a], i = parseInt(h, 16) * s, s = 1, h = \"\") : h += a : n.hasOwnProperty(a) ? (l += n[a], c[i] = parseInt(l, 16) * s, s = 1, i = void 0, l = \"\") : l += a;\n      return o;\n    },\n    u = {\n      codePages: [\"WinAnsiEncoding\"],\n      WinAnsiEncoding: c(\"{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}\")\n    },\n    h = {\n      Unicode: {\n        Courier: u,\n        \"Courier-Bold\": u,\n        \"Courier-BoldOblique\": u,\n        \"Courier-Oblique\": u,\n        Helvetica: u,\n        \"Helvetica-Bold\": u,\n        \"Helvetica-BoldOblique\": u,\n        \"Helvetica-Oblique\": u,\n        \"Times-Roman\": u,\n        \"Times-Bold\": u,\n        \"Times-BoldItalic\": u,\n        \"Times-Italic\": u\n      }\n    },\n    l = {\n      Unicode: {\n        \"Courier-Oblique\": c(\"{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}\"),\n        \"Times-BoldItalic\": c(\"{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}\"),\n        \"Helvetica-Bold\": c(\"{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}\"),\n        Courier: c(\"{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}\"),\n        \"Courier-BoldOblique\": c(\"{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}\"),\n        \"Times-Bold\": c(\"{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}\"),\n        Symbol: c(\"{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}\"),\n        Helvetica: c(\"{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}\"),\n        \"Helvetica-BoldOblique\": c(\"{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}\"),\n        ZapfDingbats: c(\"{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}\"),\n        \"Courier-Bold\": c(\"{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}\"),\n        \"Times-Italic\": c(\"{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}\"),\n        \"Times-Roman\": c(\"{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}\"),\n        \"Helvetica-Oblique\": c(\"{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}\")\n      }\n    };\n  e.events.push([\"addFont\", function (t) {\n    var e = t.font,\n      r = l.Unicode[e.postScriptName];\n    r && (e.metadata.Unicode = {}, e.metadata.Unicode.widths = r.widths, e.metadata.Unicode.kerning = r.kerning);\n    var n = h.Unicode[e.postScriptName];\n    n && (e.metadata.Unicode.encoding = n, e.encoding = n.codePages[0]);\n  }]);\n}(E.API),\n/**\n * @license\n * Licensed under the MIT License.\n * http://opensource.org/licenses/mit-license\n */\nfunction (t) {\n  var e = function (t) {\n    for (var e = t.length, r = new Uint8Array(e), n = 0; n < e; n++) r[n] = t.charCodeAt(n);\n    return r;\n  };\n  t.API.events.push([\"addFont\", function (r) {\n    var n = void 0,\n      i = r.font,\n      a = r.instance;\n    if (!i.isStandardFont) {\n      if (void 0 === a) throw new Error(\"Font does not exist in vFS, import fonts or remove declaration doc.addFont('\" + i.postScriptName + \"').\");\n      if (\"string\" != typeof (n = !1 === a.existsFileInVFS(i.postScriptName) ? a.loadFile(i.postScriptName) : a.getFileFromVFS(i.postScriptName))) throw new Error(\"Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('\" + i.postScriptName + \"').\");\n      !function (r, n) {\n        n = /^\\x00\\x01\\x00\\x00/.test(n) ? e(n) : e(u(n)), r.metadata = t.API.TTFFont.open(n), r.metadata.Unicode = r.metadata.Unicode || {\n          encoding: {},\n          kerning: {},\n          widths: []\n        }, r.metadata.glyIdsUsed = [0];\n      }(i, n);\n    }\n  }]);\n}(E),\n/** @license\n * Copyright (c) 2012 Willow Systems Corporation, https://github.com/willowsystems\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * \"Software\"), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modify, merge, publish,\n * distribute, sublicense, and/or sell copies of the Software, and to\n * permit persons to whom the Software is furnished to do so, subject to\n * the following conditions:\n *\n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n * ====================================================================\n */\nfunction (t) {\n  function e() {\n    return (n.canvg ? Promise.resolve(n.canvg) : import(\"canvg\")).catch(function (t) {\n      return Promise.reject(new Error(\"Could not load canvg: \" + t));\n    }).then(function (t) {\n      return t.default ? t.default : t;\n    });\n  }\n  E.API.addSvgAsImage = function (t, r, n, i, o, s, c, u) {\n    if (isNaN(r) || isNaN(n)) throw a.error(\"jsPDF.addSvgAsImage: Invalid coordinates\", arguments), new Error(\"Invalid coordinates passed to jsPDF.addSvgAsImage\");\n    if (isNaN(i) || isNaN(o)) throw a.error(\"jsPDF.addSvgAsImage: Invalid measurements\", arguments), new Error(\"Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage\");\n    var h = document.createElement(\"canvas\");\n    h.width = i, h.height = o;\n    var l = h.getContext(\"2d\");\n    l.fillStyle = \"#fff\", l.fillRect(0, 0, h.width, h.height);\n    var f = {\n        ignoreMouse: !0,\n        ignoreAnimation: !0,\n        ignoreDimensions: !0\n      },\n      d = this;\n    return e().then(function (e) {\n      return e.fromString(l, t, f);\n    }, function () {\n      return Promise.reject(new Error(\"Could not load canvg.\"));\n    }).then(function (t) {\n      return t.render(f);\n    }).then(function () {\n      d.addImage(h.toDataURL(\"image/jpeg\", 1), r, n, i, o, c, u);\n    });\n  };\n}(), E.API.putTotalPages = function (t) {\n  var e,\n    r = 0;\n  parseInt(this.internal.getFont().id.substr(1), 10) < 15 ? (e = new RegExp(t, \"g\"), r = this.internal.getNumberOfPages()) : (e = new RegExp(this.pdfEscape16(t, this.internal.getFont()), \"g\"), r = this.pdfEscape16(this.internal.getNumberOfPages() + \"\", this.internal.getFont()));\n  for (var n = 1; n <= this.internal.getNumberOfPages(); n++) for (var i = 0; i < this.internal.pages[n].length; i++) this.internal.pages[n][i] = this.internal.pages[n][i].replace(e, r);\n  return this;\n}, E.API.viewerPreferences = function (e, r) {\n  var n;\n  e = e || {}, r = r || !1;\n  var i,\n    a,\n    o,\n    s = {\n      HideToolbar: {\n        defaultValue: !1,\n        value: !1,\n        type: \"boolean\",\n        explicitSet: !1,\n        valueSet: [!0, !1],\n        pdfVersion: 1.3\n      },\n      HideMenubar: {\n        defaultValue: !1,\n        value: !1,\n        type: \"boolean\",\n        explicitSet: !1,\n        valueSet: [!0, !1],\n        pdfVersion: 1.3\n      },\n      HideWindowUI: {\n        defaultValue: !1,\n        value: !1,\n        type: \"boolean\",\n        explicitSet: !1,\n        valueSet: [!0, !1],\n        pdfVersion: 1.3\n      },\n      FitWindow: {\n        defaultValue: !1,\n        value: !1,\n        type: \"boolean\",\n        explicitSet: !1,\n        valueSet: [!0, !1],\n        pdfVersion: 1.3\n      },\n      CenterWindow: {\n        defaultValue: !1,\n        value: !1,\n        type: \"boolean\",\n        explicitSet: !1,\n        valueSet: [!0, !1],\n        pdfVersion: 1.3\n      },\n      DisplayDocTitle: {\n        defaultValue: !1,\n        value: !1,\n        type: \"boolean\",\n        explicitSet: !1,\n        valueSet: [!0, !1],\n        pdfVersion: 1.4\n      },\n      NonFullScreenPageMode: {\n        defaultValue: \"UseNone\",\n        value: \"UseNone\",\n        type: \"name\",\n        explicitSet: !1,\n        valueSet: [\"UseNone\", \"UseOutlines\", \"UseThumbs\", \"UseOC\"],\n        pdfVersion: 1.3\n      },\n      Direction: {\n        defaultValue: \"L2R\",\n        value: \"L2R\",\n        type: \"name\",\n        explicitSet: !1,\n        valueSet: [\"L2R\", \"R2L\"],\n        pdfVersion: 1.3\n      },\n      ViewArea: {\n        defaultValue: \"CropBox\",\n        value: \"CropBox\",\n        type: \"name\",\n        explicitSet: !1,\n        valueSet: [\"MediaBox\", \"CropBox\", \"TrimBox\", \"BleedBox\", \"ArtBox\"],\n        pdfVersion: 1.4\n      },\n      ViewClip: {\n        defaultValue: \"CropBox\",\n        value: \"CropBox\",\n        type: \"name\",\n        explicitSet: !1,\n        valueSet: [\"MediaBox\", \"CropBox\", \"TrimBox\", \"BleedBox\", \"ArtBox\"],\n        pdfVersion: 1.4\n      },\n      PrintArea: {\n        defaultValue: \"CropBox\",\n        value: \"CropBox\",\n        type: \"name\",\n        explicitSet: !1,\n        valueSet: [\"MediaBox\", \"CropBox\", \"TrimBox\", \"BleedBox\", \"ArtBox\"],\n        pdfVersion: 1.4\n      },\n      PrintClip: {\n        defaultValue: \"CropBox\",\n        value: \"CropBox\",\n        type: \"name\",\n        explicitSet: !1,\n        valueSet: [\"MediaBox\", \"CropBox\", \"TrimBox\", \"BleedBox\", \"ArtBox\"],\n        pdfVersion: 1.4\n      },\n      PrintScaling: {\n        defaultValue: \"AppDefault\",\n        value: \"AppDefault\",\n        type: \"name\",\n        explicitSet: !1,\n        valueSet: [\"AppDefault\", \"None\"],\n        pdfVersion: 1.6\n      },\n      Duplex: {\n        defaultValue: \"\",\n        value: \"none\",\n        type: \"name\",\n        explicitSet: !1,\n        valueSet: [\"Simplex\", \"DuplexFlipShortEdge\", \"DuplexFlipLongEdge\", \"none\"],\n        pdfVersion: 1.7\n      },\n      PickTrayByPDFSize: {\n        defaultValue: !1,\n        value: !1,\n        type: \"boolean\",\n        explicitSet: !1,\n        valueSet: [!0, !1],\n        pdfVersion: 1.7\n      },\n      PrintPageRange: {\n        defaultValue: \"\",\n        value: \"\",\n        type: \"array\",\n        explicitSet: !1,\n        valueSet: null,\n        pdfVersion: 1.7\n      },\n      NumCopies: {\n        defaultValue: 1,\n        value: 1,\n        type: \"integer\",\n        explicitSet: !1,\n        valueSet: null,\n        pdfVersion: 1.7\n      }\n    },\n    c = Object.keys(s),\n    u = [],\n    h = 0,\n    l = 0,\n    f = 0;\n  function d(t, e) {\n    var r,\n      n = !1;\n    for (r = 0; r < t.length; r += 1) t[r] === e && (n = !0);\n    return n;\n  }\n  if (void 0 === this.internal.viewerpreferences && (this.internal.viewerpreferences = {}, this.internal.viewerpreferences.configuration = JSON.parse(JSON.stringify(s)), this.internal.viewerpreferences.isSubscribed = !1), n = this.internal.viewerpreferences.configuration, \"reset\" === e || !0 === r) {\n    var p = c.length;\n    for (f = 0; f < p; f += 1) n[c[f]].value = n[c[f]].defaultValue, n[c[f]].explicitSet = !1;\n  }\n  if (\"object\" === t(e)) for (a in e) if (o = e[a], d(c, a) && void 0 !== o) {\n    if (\"boolean\" === n[a].type && \"boolean\" == typeof o) n[a].value = o;else if (\"name\" === n[a].type && d(n[a].valueSet, o)) n[a].value = o;else if (\"integer\" === n[a].type && Number.isInteger(o)) n[a].value = o;else if (\"array\" === n[a].type) {\n      for (h = 0; h < o.length; h += 1) if (i = !0, 1 === o[h].length && \"number\" == typeof o[h][0]) u.push(String(o[h] - 1));else if (o[h].length > 1) {\n        for (l = 0; l < o[h].length; l += 1) \"number\" != typeof o[h][l] && (i = !1);\n        !0 === i && u.push([o[h][0] - 1, o[h][1] - 1].join(\" \"));\n      }\n      n[a].value = \"[\" + u.join(\" \") + \"]\";\n    } else n[a].value = n[a].defaultValue;\n    n[a].explicitSet = !0;\n  }\n  return !1 === this.internal.viewerpreferences.isSubscribed && (this.internal.events.subscribe(\"putCatalog\", function () {\n    var t,\n      e = [];\n    for (t in n) !0 === n[t].explicitSet && (\"name\" === n[t].type ? e.push(\"/\" + t + \" /\" + n[t].value) : e.push(\"/\" + t + \" \" + n[t].value));\n    0 !== e.length && this.internal.write(\"/ViewerPreferences\\n<<\\n\" + e.join(\"\\n\") + \"\\n>>\");\n  }), this.internal.viewerpreferences.isSubscribed = !0), this.internal.viewerpreferences.configuration = n, this;\n},\n/** ====================================================================\n * @license\n * jsPDF XMP metadata plugin\n * Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * \"Software\"), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modify, merge, publish,\n * distribute, sublicense, and/or sell copies of the Software, and to\n * permit persons to whom the Software is furnished to do so, subject to\n * the following conditions:\n *\n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n * ====================================================================\n */\nfunction (t) {\n  var e = function () {\n      var t = '<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"><rdf:Description rdf:about=\"\" xmlns:jspdf=\"' + this.internal.__metadata__.namespaceuri + '\"><jspdf:metadata>',\n        e = unescape(encodeURIComponent('<x:xmpmeta xmlns:x=\"adobe:ns:meta/\">')),\n        r = unescape(encodeURIComponent(t)),\n        n = unescape(encodeURIComponent(this.internal.__metadata__.metadata)),\n        i = unescape(encodeURIComponent(\"</jspdf:metadata></rdf:Description></rdf:RDF>\")),\n        a = unescape(encodeURIComponent(\"</x:xmpmeta>\")),\n        o = r.length + n.length + i.length + e.length + a.length;\n      this.internal.__metadata__.metadata_object_number = this.internal.newObject(), this.internal.write(\"<< /Type /Metadata /Subtype /XML /Length \" + o + \" >>\"), this.internal.write(\"stream\"), this.internal.write(e + r + n + i + a), this.internal.write(\"endstream\"), this.internal.write(\"endobj\");\n    },\n    r = function () {\n      this.internal.__metadata__.metadata_object_number && this.internal.write(\"/Metadata \" + this.internal.__metadata__.metadata_object_number + \" 0 R\");\n    };\n  t.addMetadata = function (t, n) {\n    return void 0 === this.internal.__metadata__ && (this.internal.__metadata__ = {\n      metadata: t,\n      namespaceuri: n || \"http://jspdf.default.namespaceuri/\"\n    }, this.internal.events.subscribe(\"putCatalog\", r), this.internal.events.subscribe(\"postPutResources\", e)), this;\n  };\n}(E.API), function (t) {\n  var e = t.API,\n    r = e.pdfEscape16 = function (t, e) {\n      for (var r, n = e.metadata.Unicode.widths, i = [\"\", \"0\", \"00\", \"000\", \"0000\"], a = [\"\"], o = 0, s = t.length; o < s; ++o) {\n        if (r = e.metadata.characterToGlyph(t.charCodeAt(o)), e.metadata.glyIdsUsed.push(r), e.metadata.toUnicode[r] = t.charCodeAt(o), -1 == n.indexOf(r) && (n.push(r), n.push([parseInt(e.metadata.widthOfGlyph(r), 10)])), \"0\" == r) return a.join(\"\");\n        r = r.toString(16), a.push(i[4 - r.length], r);\n      }\n      return a.join(\"\");\n    },\n    n = function (t) {\n      var e, r, n, i, a, o, s;\n      for (a = \"/CIDInit /ProcSet findresource begin\\n12 dict begin\\nbegincmap\\n/CIDSystemInfo <<\\n  /Registry (Adobe)\\n  /Ordering (UCS)\\n  /Supplement 0\\n>> def\\n/CMapName /Adobe-Identity-UCS def\\n/CMapType 2 def\\n1 begincodespacerange\\n<0000><ffff>\\nendcodespacerange\", n = [], o = 0, s = (r = Object.keys(t).sort(function (t, e) {\n        return t - e;\n      })).length; o < s; o++) e = r[o], n.length >= 100 && (a += \"\\n\" + n.length + \" beginbfchar\\n\" + n.join(\"\\n\") + \"\\nendbfchar\", n = []), void 0 !== t[e] && null !== t[e] && \"function\" == typeof t[e].toString && (i = (\"0000\" + t[e].toString(16)).slice(-4), e = (\"0000\" + (+e).toString(16)).slice(-4), n.push(\"<\" + e + \"><\" + i + \">\"));\n      return n.length && (a += \"\\n\" + n.length + \" beginbfchar\\n\" + n.join(\"\\n\") + \"\\nendbfchar\\n\"), a += \"endcmap\\nCMapName currentdict /CMap defineresource pop\\nend\\nend\";\n    };\n  e.events.push([\"putFont\", function (e) {\n    !function (e) {\n      var r = e.font,\n        i = e.out,\n        a = e.newObject,\n        o = e.putStream;\n      if (r.metadata instanceof t.API.TTFFont && \"Identity-H\" === r.encoding) {\n        for (var s = r.metadata.Unicode.widths, c = r.metadata.subset.encode(r.metadata.glyIdsUsed, 1), u = \"\", h = 0; h < c.length; h++) u += String.fromCharCode(c[h]);\n        var l = a();\n        o({\n          data: u,\n          addLength1: !0,\n          objectId: l\n        }), i(\"endobj\");\n        var f = a();\n        o({\n          data: n(r.metadata.toUnicode),\n          addLength1: !0,\n          objectId: f\n        }), i(\"endobj\");\n        var d = a();\n        i(\"<<\"), i(\"/Type /FontDescriptor\"), i(\"/FontName /\" + F(r.fontName)), i(\"/FontFile2 \" + l + \" 0 R\"), i(\"/FontBBox \" + t.API.PDFObject.convert(r.metadata.bbox)), i(\"/Flags \" + r.metadata.flags), i(\"/StemV \" + r.metadata.stemV), i(\"/ItalicAngle \" + r.metadata.italicAngle), i(\"/Ascent \" + r.metadata.ascender), i(\"/Descent \" + r.metadata.decender), i(\"/CapHeight \" + r.metadata.capHeight), i(\">>\"), i(\"endobj\");\n        var p = a();\n        i(\"<<\"), i(\"/Type /Font\"), i(\"/BaseFont /\" + F(r.fontName)), i(\"/FontDescriptor \" + d + \" 0 R\"), i(\"/W \" + t.API.PDFObject.convert(s)), i(\"/CIDToGIDMap /Identity\"), i(\"/DW 1000\"), i(\"/Subtype /CIDFontType2\"), i(\"/CIDSystemInfo\"), i(\"<<\"), i(\"/Supplement 0\"), i(\"/Registry (Adobe)\"), i(\"/Ordering (\" + r.encoding + \")\"), i(\">>\"), i(\">>\"), i(\"endobj\"), r.objectNumber = a(), i(\"<<\"), i(\"/Type /Font\"), i(\"/Subtype /Type0\"), i(\"/ToUnicode \" + f + \" 0 R\"), i(\"/BaseFont /\" + F(r.fontName)), i(\"/Encoding /\" + r.encoding), i(\"/DescendantFonts [\" + p + \" 0 R]\"), i(\">>\"), i(\"endobj\"), r.isAlreadyPutted = !0;\n      }\n    }(e);\n  }]);\n  e.events.push([\"putFont\", function (e) {\n    !function (e) {\n      var r = e.font,\n        i = e.out,\n        a = e.newObject,\n        o = e.putStream;\n      if (r.metadata instanceof t.API.TTFFont && \"WinAnsiEncoding\" === r.encoding) {\n        for (var s = r.metadata.rawData, c = \"\", u = 0; u < s.length; u++) c += String.fromCharCode(s[u]);\n        var h = a();\n        o({\n          data: c,\n          addLength1: !0,\n          objectId: h\n        }), i(\"endobj\");\n        var l = a();\n        o({\n          data: n(r.metadata.toUnicode),\n          addLength1: !0,\n          objectId: l\n        }), i(\"endobj\");\n        var f = a();\n        i(\"<<\"), i(\"/Descent \" + r.metadata.decender), i(\"/CapHeight \" + r.metadata.capHeight), i(\"/StemV \" + r.metadata.stemV), i(\"/Type /FontDescriptor\"), i(\"/FontFile2 \" + h + \" 0 R\"), i(\"/Flags 96\"), i(\"/FontBBox \" + t.API.PDFObject.convert(r.metadata.bbox)), i(\"/FontName /\" + F(r.fontName)), i(\"/ItalicAngle \" + r.metadata.italicAngle), i(\"/Ascent \" + r.metadata.ascender), i(\">>\"), i(\"endobj\"), r.objectNumber = a();\n        for (var d = 0; d < r.metadata.hmtx.widths.length; d++) r.metadata.hmtx.widths[d] = parseInt(r.metadata.hmtx.widths[d] * (1e3 / r.metadata.head.unitsPerEm));\n        i(\"<</Subtype/TrueType/Type/Font/ToUnicode \" + l + \" 0 R/BaseFont/\" + F(r.fontName) + \"/FontDescriptor \" + f + \" 0 R/Encoding/\" + r.encoding + \" /FirstChar 29 /LastChar 255 /Widths \" + t.API.PDFObject.convert(r.metadata.hmtx.widths) + \">>\"), i(\"endobj\"), r.isAlreadyPutted = !0;\n      }\n    }(e);\n  }]);\n  var i = function (t) {\n    var e,\n      n = t.text || \"\",\n      i = t.x,\n      a = t.y,\n      o = t.options || {},\n      s = t.mutex || {},\n      c = s.pdfEscape,\n      u = s.activeFontKey,\n      h = s.fonts,\n      l = u,\n      f = \"\",\n      d = 0,\n      p = \"\",\n      g = h[l].encoding;\n    if (\"Identity-H\" !== h[l].encoding) return {\n      text: n,\n      x: i,\n      y: a,\n      options: o,\n      mutex: s\n    };\n    for (p = n, l = u, Array.isArray(n) && (p = n[0]), d = 0; d < p.length; d += 1) h[l].metadata.hasOwnProperty(\"cmap\") && (e = h[l].metadata.cmap.unicode.codeMap[p[d].charCodeAt(0)]), e || p[d].charCodeAt(0) < 256 && h[l].metadata.hasOwnProperty(\"Unicode\") ? f += p[d] : f += \"\";\n    var m = \"\";\n    return parseInt(l.slice(1)) < 14 || \"WinAnsiEncoding\" === g ? m = c(f, l).split(\"\").map(function (t) {\n      return t.charCodeAt(0).toString(16);\n    }).join(\"\") : \"Identity-H\" === g && (m = r(f, h[l])), s.isHex = !0, {\n      text: m,\n      x: i,\n      y: a,\n      options: o,\n      mutex: s\n    };\n  };\n  e.events.push([\"postProcessText\", function (t) {\n    var e = t.text || \"\",\n      r = [],\n      n = {\n        text: e,\n        x: t.x,\n        y: t.y,\n        options: t.options,\n        mutex: t.mutex\n      };\n    if (Array.isArray(e)) {\n      var a = 0;\n      for (a = 0; a < e.length; a += 1) Array.isArray(e[a]) && 3 === e[a].length ? r.push([i(Object.assign({}, n, {\n        text: e[a][0]\n      })).text, e[a][1], e[a][2]]) : r.push(i(Object.assign({}, n, {\n        text: e[a]\n      })).text);\n      t.text = r;\n    } else t.text = i(Object.assign({}, n, {\n      text: e\n    })).text;\n  }]);\n}(E),\n/**\n * @license\n * jsPDF virtual FileSystem functionality\n *\n * Licensed under the MIT License.\n * http://opensource.org/licenses/mit-license\n */\nfunction (t) {\n  var e = function () {\n    return void 0 === this.internal.vFS && (this.internal.vFS = {}), !0;\n  };\n  t.existsFileInVFS = function (t) {\n    return e.call(this), void 0 !== this.internal.vFS[t];\n  }, t.addFileToVFS = function (t, r) {\n    return e.call(this), this.internal.vFS[t] = r, this;\n  }, t.getFileFromVFS = function (t) {\n    return e.call(this), void 0 !== this.internal.vFS[t] ? this.internal.vFS[t] : null;\n  };\n}(E.API),\n/**\n * @license\n * Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)\n * MIT License\n */\nfunction (t) {\n  t.__bidiEngine__ = t.prototype.__bidiEngine__ = function (t) {\n    var r,\n      n,\n      i,\n      a,\n      o,\n      s,\n      c,\n      u = e,\n      h = [[0, 3, 0, 1, 0, 0, 0], [0, 3, 0, 1, 2, 2, 0], [0, 3, 0, 17, 2, 0, 1], [0, 3, 5, 5, 4, 1, 0], [0, 3, 21, 21, 4, 0, 1], [0, 3, 5, 5, 4, 2, 0]],\n      l = [[2, 0, 1, 1, 0, 1, 0], [2, 0, 1, 1, 0, 2, 0], [2, 0, 2, 1, 3, 2, 0], [2, 0, 2, 33, 3, 1, 1]],\n      f = {\n        L: 0,\n        R: 1,\n        EN: 2,\n        AN: 3,\n        N: 4,\n        B: 5,\n        S: 6\n      },\n      d = {\n        0: 0,\n        5: 1,\n        6: 2,\n        7: 3,\n        32: 4,\n        251: 5,\n        254: 6,\n        255: 7\n      },\n      p = [\"(\", \")\", \"(\", \"<\", \">\", \"<\", \"[\", \"]\", \"[\", \"{\", \"}\", \"{\", \"«\", \"»\", \"«\", \"‹\", \"›\", \"‹\", \"⁅\", \"⁆\", \"⁅\", \"⁽\", \"⁾\", \"⁽\", \"₍\", \"₎\", \"₍\", \"≤\", \"≥\", \"≤\", \"〈\", \"〉\", \"〈\", \"﹙\", \"﹚\", \"﹙\", \"﹛\", \"﹜\", \"﹛\", \"﹝\", \"﹞\", \"﹝\", \"﹤\", \"﹥\", \"﹤\"],\n      g = new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),\n      m = !1,\n      v = 0;\n    this.__bidiEngine__ = {};\n    var b = function (t) {\n        var e = t.charCodeAt(),\n          r = e >> 8,\n          n = d[r];\n        return void 0 !== n ? u[256 * n + (255 & e)] : 252 === r || 253 === r ? \"AL\" : g.test(r) ? \"L\" : 8 === r ? \"R\" : \"N\";\n      },\n      y = function (t) {\n        for (var e, r = 0; r < t.length; r++) {\n          if (\"L\" === (e = b(t.charAt(r)))) return !1;\n          if (\"R\" === e) return !0;\n        }\n        return !1;\n      },\n      w = function (t, e, o, s) {\n        var c,\n          u,\n          h,\n          l,\n          f = e[s];\n        switch (f) {\n          case \"L\":\n          case \"R\":\n            m = !1;\n            break;\n          case \"N\":\n          case \"AN\":\n            break;\n          case \"EN\":\n            m && (f = \"AN\");\n            break;\n          case \"AL\":\n            m = !0, f = \"R\";\n            break;\n          case \"WS\":\n            f = \"N\";\n            break;\n          case \"CS\":\n            s < 1 || s + 1 >= e.length || \"EN\" !== (c = o[s - 1]) && \"AN\" !== c || \"EN\" !== (u = e[s + 1]) && \"AN\" !== u ? f = \"N\" : m && (u = \"AN\"), f = u === c ? u : \"N\";\n            break;\n          case \"ES\":\n            f = \"EN\" === (c = s > 0 ? o[s - 1] : \"B\") && s + 1 < e.length && \"EN\" === e[s + 1] ? \"EN\" : \"N\";\n            break;\n          case \"ET\":\n            if (s > 0 && \"EN\" === o[s - 1]) {\n              f = \"EN\";\n              break;\n            }\n            if (m) {\n              f = \"N\";\n              break;\n            }\n            for (h = s + 1, l = e.length; h < l && \"ET\" === e[h];) h++;\n            f = h < l && \"EN\" === e[h] ? \"EN\" : \"N\";\n            break;\n          case \"NSM\":\n            if (i && !a) {\n              for (l = e.length, h = s + 1; h < l && \"NSM\" === e[h];) h++;\n              if (h < l) {\n                var d = t[s],\n                  p = d >= 1425 && d <= 2303 || 64286 === d;\n                if (c = e[h], p && (\"R\" === c || \"AL\" === c)) {\n                  f = \"R\";\n                  break;\n                }\n              }\n            }\n            f = s < 1 || \"B\" === (c = e[s - 1]) ? \"N\" : o[s - 1];\n            break;\n          case \"B\":\n            m = !1, r = !0, f = v;\n            break;\n          case \"S\":\n            n = !0, f = \"N\";\n            break;\n          case \"LRE\":\n          case \"RLE\":\n          case \"LRO\":\n          case \"RLO\":\n          case \"PDF\":\n            m = !1;\n            break;\n          case \"BN\":\n            f = \"N\";\n        }\n        return f;\n      },\n      N = function (t, e, r) {\n        var n = t.split(\"\");\n        return r && L(n, r, {\n          hiLevel: v\n        }), n.reverse(), e && e.reverse(), n.join(\"\");\n      },\n      L = function (t, e, i) {\n        var a,\n          o,\n          s,\n          c,\n          u,\n          d = -1,\n          p = t.length,\n          g = 0,\n          y = [],\n          N = v ? l : h,\n          L = [];\n        for (m = !1, r = !1, n = !1, o = 0; o < p; o++) L[o] = b(t[o]);\n        for (s = 0; s < p; s++) {\n          if (u = g, y[s] = w(t, L, y, s), a = 240 & (g = N[u][f[y[s]]]), g &= 15, e[s] = c = N[g][5], a > 0) if (16 === a) {\n            for (o = d; o < s; o++) e[o] = 1;\n            d = -1;\n          } else d = -1;\n          if (N[g][6]) -1 === d && (d = s);else if (d > -1) {\n            for (o = d; o < s; o++) e[o] = c;\n            d = -1;\n          }\n          \"B\" === L[s] && (e[s] = 0), i.hiLevel |= c;\n        }\n        n && function (t, e, r) {\n          for (var n = 0; n < r; n++) if (\"S\" === t[n]) {\n            e[n] = v;\n            for (var i = n - 1; i >= 0 && \"WS\" === t[i]; i--) e[i] = v;\n          }\n        }(L, e, p);\n      },\n      A = function (t, e, n, i, a) {\n        if (!(a.hiLevel < t)) {\n          if (1 === t && 1 === v && !r) return e.reverse(), void (n && n.reverse());\n          for (var o, s, c, u, h = e.length, l = 0; l < h;) {\n            if (i[l] >= t) {\n              for (c = l + 1; c < h && i[c] >= t;) c++;\n              for (u = l, s = c - 1; u < s; u++, s--) o = e[u], e[u] = e[s], e[s] = o, n && (o = n[u], n[u] = n[s], n[s] = o);\n              l = c;\n            }\n            l++;\n          }\n        }\n      },\n      x = function (t, e, r) {\n        var n = t.split(\"\"),\n          i = {\n            hiLevel: v\n          };\n        return r || (r = []), L(n, r, i), function (t, e, r) {\n          if (0 !== r.hiLevel && c) for (var n, i = 0; i < t.length; i++) 1 === e[i] && (n = p.indexOf(t[i])) >= 0 && (t[i] = p[n + 1]);\n        }(n, r, i), A(2, n, e, r, i), A(1, n, e, r, i), n.join(\"\");\n      };\n    return this.__bidiEngine__.doBidiReorder = function (t, e, r) {\n      if (function (t, e) {\n        if (e) for (var r = 0; r < t.length; r++) e[r] = r;\n        void 0 === a && (a = y(t)), void 0 === s && (s = y(t));\n      }(t, e), i || !o || s) {\n        if (i && o && a ^ s) v = a ? 1 : 0, t = N(t, e, r);else if (!i && o && s) v = a ? 1 : 0, t = x(t, e, r), t = N(t, e);else if (!i || a || o || s) {\n          if (i && !o && a ^ s) t = N(t, e), a ? (v = 0, t = x(t, e, r)) : (v = 1, t = x(t, e, r), t = N(t, e));else if (i && a && !o && s) v = 1, t = x(t, e, r), t = N(t, e);else if (!i && !o && a ^ s) {\n            var n = c;\n            a ? (v = 1, t = x(t, e, r), v = 0, c = !1, t = x(t, e, r), c = n) : (v = 0, t = x(t, e, r), t = N(t, e), v = 1, c = !1, t = x(t, e, r), c = n, t = N(t, e));\n          }\n        } else v = 0, t = x(t, e, r);\n      } else v = a ? 1 : 0, t = x(t, e, r);\n      return t;\n    }, this.__bidiEngine__.setOptions = function (t) {\n      t && (i = t.isInputVisual, o = t.isOutputVisual, a = t.isInputRtl, s = t.isOutputRtl, c = t.isSymmetricSwapping);\n    }, this.__bidiEngine__.setOptions(t), this.__bidiEngine__;\n  };\n  var e = [\"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"S\", \"B\", \"S\", \"WS\", \"B\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"B\", \"B\", \"B\", \"S\", \"WS\", \"N\", \"N\", \"ET\", \"ET\", \"ET\", \"N\", \"N\", \"N\", \"N\", \"N\", \"ES\", \"CS\", \"ES\", \"CS\", \"CS\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"CS\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"N\", \"N\", \"N\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"B\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"CS\", \"N\", \"ET\", \"ET\", \"ET\", \"ET\", \"N\", \"N\", \"N\", \"N\", \"L\", \"N\", \"N\", \"BN\", \"N\", \"N\", \"ET\", \"ET\", \"EN\", \"EN\", \"N\", \"L\", \"N\", \"N\", \"N\", \"EN\", \"L\", \"N\", \"N\", \"N\", \"N\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"L\", \"N\", \"N\", \"N\", \"N\", \"N\", \"ET\", \"N\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"R\", \"NSM\", \"R\", \"NSM\", \"NSM\", \"R\", \"NSM\", \"NSM\", \"R\", \"NSM\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"N\", \"N\", \"N\", \"N\", \"N\", \"R\", \"R\", \"R\", \"R\", \"R\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"AN\", \"AN\", \"AN\", \"AN\", \"AN\", \"AN\", \"N\", \"N\", \"AL\", \"ET\", \"ET\", \"AL\", \"CS\", \"AL\", \"N\", \"N\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"AL\", \"AL\", \"N\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"AN\", \"AN\", \"AN\", \"AN\", \"AN\", \"AN\", \"AN\", \"AN\", \"AN\", \"AN\", \"ET\", \"AN\", \"AN\", \"AL\", \"AL\", \"AL\", \"NSM\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"AN\", \"N\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"AL\", \"AL\", \"NSM\", \"NSM\", \"N\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"AL\", \"AL\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"N\", \"AL\", \"AL\", \"NSM\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"N\", \"N\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"AL\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"R\", \"R\", \"N\", \"N\", \"N\", \"N\", \"R\", \"N\", \"N\", \"N\", \"N\", \"N\", \"WS\", \"WS\", \"WS\", \"WS\", \"WS\", \"WS\", \"WS\", \"WS\", \"WS\", \"WS\", \"WS\", \"BN\", \"BN\", \"BN\", \"L\", \"R\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"WS\", \"B\", \"LRE\", \"RLE\", \"PDF\", \"LRO\", \"RLO\", \"CS\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"CS\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"WS\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"N\", \"LRI\", \"RLI\", \"FSI\", \"PDI\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"EN\", \"L\", \"N\", \"N\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"ES\", \"ES\", \"N\", \"N\", \"N\", \"L\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"ES\", \"ES\", \"N\", \"N\", \"N\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"N\", \"N\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"N\", \"N\", \"N\", \"N\", \"R\", \"NSM\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"ES\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"N\", \"R\", \"R\", \"R\", \"R\", \"R\", \"N\", \"R\", \"N\", \"R\", \"R\", \"N\", \"R\", \"R\", \"N\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"CS\", \"N\", \"CS\", \"N\", \"N\", \"CS\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"ET\", \"N\", \"N\", \"ES\", \"ES\", \"N\", \"N\", \"N\", \"N\", \"N\", \"ET\", \"ET\", \"N\", \"N\", \"N\", \"N\", \"N\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"N\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"N\", \"N\", \"BN\", \"N\", \"N\", \"N\", \"ET\", \"ET\", \"ET\", \"N\", \"N\", \"N\", \"N\", \"N\", \"ES\", \"CS\", \"ES\", \"CS\", \"CS\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"CS\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"N\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"N\", \"L\", \"L\", \"L\", \"N\", \"N\", \"N\", \"ET\", \"ET\", \"N\", \"N\", \"N\", \"ET\", \"ET\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\"],\n    r = new t.__bidiEngine__({\n      isInputVisual: !0\n    });\n  t.API.events.push([\"postProcessText\", function (t) {\n    var e = t.text,\n      n = (t.x, t.y, t.options || {}),\n      i = (t.mutex, n.lang, []);\n    if (n.isInputVisual = \"boolean\" != typeof n.isInputVisual || n.isInputVisual, r.setOptions(n), \"[object Array]\" === Object.prototype.toString.call(e)) {\n      var a = 0;\n      for (i = [], a = 0; a < e.length; a += 1) \"[object Array]\" === Object.prototype.toString.call(e[a]) ? i.push([r.doBidiReorder(e[a][0]), e[a][1], e[a][2]]) : i.push([r.doBidiReorder(e[a])]);\n      t.text = i;\n    } else t.text = r.doBidiReorder(e);\n    r.setOptions({\n      isInputVisual: !0\n    });\n  }]);\n}(E), E.API.TTFFont = function () {\n  function t(t) {\n    var e;\n    if (this.rawData = t, e = this.contents = new ne(t), this.contents.pos = 4, \"ttcf\" === e.readString(4)) throw new Error(\"TTCF not supported.\");\n    e.pos = 0, this.parse(), this.subset = new Le(this), this.registerTTF();\n  }\n  return t.open = function (e) {\n    return new t(e);\n  }, t.prototype.parse = function () {\n    return this.directory = new ie(this.contents), this.head = new se(this), this.name = new pe(this), this.cmap = new ue(this), this.toUnicode = {}, this.hhea = new he(this), this.maxp = new ge(this), this.hmtx = new me(this), this.post = new fe(this), this.os2 = new le(this), this.loca = new Ne(this), this.glyf = new be(this), this.ascender = this.os2.exists && this.os2.ascender || this.hhea.ascender, this.decender = this.os2.exists && this.os2.decender || this.hhea.decender, this.lineGap = this.os2.exists && this.os2.lineGap || this.hhea.lineGap, this.bbox = [this.head.xMin, this.head.yMin, this.head.xMax, this.head.yMax];\n  }, t.prototype.registerTTF = function () {\n    var t, e, r, n, i;\n    if (this.scaleFactor = 1e3 / this.head.unitsPerEm, this.bbox = function () {\n      var e, r, n, i;\n      for (i = [], e = 0, r = (n = this.bbox).length; e < r; e++) t = n[e], i.push(Math.round(t * this.scaleFactor));\n      return i;\n    }.call(this), this.stemV = 0, this.post.exists ? (r = 255 & (n = this.post.italic_angle), 0 != (32768 & (e = n >> 16)) && (e = -(1 + (65535 ^ e))), this.italicAngle = +(e + \".\" + r)) : this.italicAngle = 0, this.ascender = Math.round(this.ascender * this.scaleFactor), this.decender = Math.round(this.decender * this.scaleFactor), this.lineGap = Math.round(this.lineGap * this.scaleFactor), this.capHeight = this.os2.exists && this.os2.capHeight || this.ascender, this.xHeight = this.os2.exists && this.os2.xHeight || 0, this.familyClass = (this.os2.exists && this.os2.familyClass || 0) >> 8, this.isSerif = 1 === (i = this.familyClass) || 2 === i || 3 === i || 4 === i || 5 === i || 7 === i, this.isScript = 10 === this.familyClass, this.flags = 0, this.post.isFixedPitch && (this.flags |= 1), this.isSerif && (this.flags |= 2), this.isScript && (this.flags |= 8), 0 !== this.italicAngle && (this.flags |= 64), this.flags |= 32, !this.cmap.unicode) throw new Error(\"No unicode cmap for font\");\n  }, t.prototype.characterToGlyph = function (t) {\n    var e;\n    return (null != (e = this.cmap.unicode) ? e.codeMap[t] : void 0) || 0;\n  }, t.prototype.widthOfGlyph = function (t) {\n    var e;\n    return e = 1e3 / this.head.unitsPerEm, this.hmtx.forGlyph(t).advance * e;\n  }, t.prototype.widthOfString = function (t, e, r) {\n    var n, i, a, o;\n    for (a = 0, i = 0, o = (t = \"\" + t).length; 0 <= o ? i < o : i > o; i = 0 <= o ? ++i : --i) n = t.charCodeAt(i), a += this.widthOfGlyph(this.characterToGlyph(n)) + r * (1e3 / e) || 0;\n    return a * (e / 1e3);\n  }, t.prototype.lineHeight = function (t, e) {\n    var r;\n    return null == e && (e = !1), r = e ? this.lineGap : 0, (this.ascender + r - this.decender) / 1e3 * t;\n  }, t;\n}();\nvar re,\n  ne = function () {\n    function t(t) {\n      this.data = null != t ? t : [], this.pos = 0, this.length = this.data.length;\n    }\n    return t.prototype.readByte = function () {\n      return this.data[this.pos++];\n    }, t.prototype.writeByte = function (t) {\n      return this.data[this.pos++] = t;\n    }, t.prototype.readUInt32 = function () {\n      return 16777216 * this.readByte() + (this.readByte() << 16) + (this.readByte() << 8) + this.readByte();\n    }, t.prototype.writeUInt32 = function (t) {\n      return this.writeByte(t >>> 24 & 255), this.writeByte(t >> 16 & 255), this.writeByte(t >> 8 & 255), this.writeByte(255 & t);\n    }, t.prototype.readInt32 = function () {\n      var t;\n      return (t = this.readUInt32()) >= 2147483648 ? t - 4294967296 : t;\n    }, t.prototype.writeInt32 = function (t) {\n      return t < 0 && (t += 4294967296), this.writeUInt32(t);\n    }, t.prototype.readUInt16 = function () {\n      return this.readByte() << 8 | this.readByte();\n    }, t.prototype.writeUInt16 = function (t) {\n      return this.writeByte(t >> 8 & 255), this.writeByte(255 & t);\n    }, t.prototype.readInt16 = function () {\n      var t;\n      return (t = this.readUInt16()) >= 32768 ? t - 65536 : t;\n    }, t.prototype.writeInt16 = function (t) {\n      return t < 0 && (t += 65536), this.writeUInt16(t);\n    }, t.prototype.readString = function (t) {\n      var e, r;\n      for (r = [], e = 0; 0 <= t ? e < t : e > t; e = 0 <= t ? ++e : --e) r[e] = String.fromCharCode(this.readByte());\n      return r.join(\"\");\n    }, t.prototype.writeString = function (t) {\n      var e, r, n;\n      for (n = [], e = 0, r = t.length; 0 <= r ? e < r : e > r; e = 0 <= r ? ++e : --e) n.push(this.writeByte(t.charCodeAt(e)));\n      return n;\n    }, t.prototype.readShort = function () {\n      return this.readInt16();\n    }, t.prototype.writeShort = function (t) {\n      return this.writeInt16(t);\n    }, t.prototype.readLongLong = function () {\n      var t, e, r, n, i, a, o, s;\n      return t = this.readByte(), e = this.readByte(), r = this.readByte(), n = this.readByte(), i = this.readByte(), a = this.readByte(), o = this.readByte(), s = this.readByte(), 128 & t ? -1 * (72057594037927940 * (255 ^ t) + 281474976710656 * (255 ^ e) + 1099511627776 * (255 ^ r) + 4294967296 * (255 ^ n) + 16777216 * (255 ^ i) + 65536 * (255 ^ a) + 256 * (255 ^ o) + (255 ^ s) + 1) : 72057594037927940 * t + 281474976710656 * e + 1099511627776 * r + 4294967296 * n + 16777216 * i + 65536 * a + 256 * o + s;\n    }, t.prototype.writeLongLong = function (t) {\n      var e, r;\n      return e = Math.floor(t / 4294967296), r = 4294967295 & t, this.writeByte(e >> 24 & 255), this.writeByte(e >> 16 & 255), this.writeByte(e >> 8 & 255), this.writeByte(255 & e), this.writeByte(r >> 24 & 255), this.writeByte(r >> 16 & 255), this.writeByte(r >> 8 & 255), this.writeByte(255 & r);\n    }, t.prototype.readInt = function () {\n      return this.readInt32();\n    }, t.prototype.writeInt = function (t) {\n      return this.writeInt32(t);\n    }, t.prototype.read = function (t) {\n      var e, r;\n      for (e = [], r = 0; 0 <= t ? r < t : r > t; r = 0 <= t ? ++r : --r) e.push(this.readByte());\n      return e;\n    }, t.prototype.write = function (t) {\n      var e, r, n, i;\n      for (i = [], r = 0, n = t.length; r < n; r++) e = t[r], i.push(this.writeByte(e));\n      return i;\n    }, t;\n  }(),\n  ie = function () {\n    var t;\n    function e(t) {\n      var e, r, n;\n      for (this.scalarType = t.readInt(), this.tableCount = t.readShort(), this.searchRange = t.readShort(), this.entrySelector = t.readShort(), this.rangeShift = t.readShort(), this.tables = {}, r = 0, n = this.tableCount; 0 <= n ? r < n : r > n; r = 0 <= n ? ++r : --r) e = {\n        tag: t.readString(4),\n        checksum: t.readInt(),\n        offset: t.readInt(),\n        length: t.readInt()\n      }, this.tables[e.tag] = e;\n    }\n    return e.prototype.encode = function (e) {\n      var r, n, i, a, o, s, c, u, h, l, f, d, p;\n      for (p in f = Object.keys(e).length, s = Math.log(2), h = 16 * Math.floor(Math.log(f) / s), a = Math.floor(h / s), u = 16 * f - h, (n = new ne()).writeInt(this.scalarType), n.writeShort(f), n.writeShort(h), n.writeShort(a), n.writeShort(u), i = 16 * f, c = n.pos + i, o = null, d = [], e) for (l = e[p], n.writeString(p), n.writeInt(t(l)), n.writeInt(c), n.writeInt(l.length), d = d.concat(l), \"head\" === p && (o = c), c += l.length; c % 4;) d.push(0), c++;\n      return n.write(d), r = 2981146554 - t(n.data), n.pos = o + 8, n.writeUInt32(r), n.data;\n    }, t = function (t) {\n      var e, r, n, i;\n      for (t = ve.call(t); t.length % 4;) t.push(0);\n      for (n = new ne(t), r = 0, e = 0, i = t.length; e < i; e = e += 4) r += n.readUInt32();\n      return 4294967295 & r;\n    }, e;\n  }(),\n  ae = {}.hasOwnProperty,\n  oe = function (t, e) {\n    for (var r in e) ae.call(e, r) && (t[r] = e[r]);\n    function n() {\n      this.constructor = t;\n    }\n    return n.prototype = e.prototype, t.prototype = new n(), t.__super__ = e.prototype, t;\n  };\nre = function () {\n  function t(t) {\n    var e;\n    this.file = t, e = this.file.directory.tables[this.tag], this.exists = !!e, e && (this.offset = e.offset, this.length = e.length, this.parse(this.file.contents));\n  }\n  return t.prototype.parse = function () {}, t.prototype.encode = function () {}, t.prototype.raw = function () {\n    return this.exists ? (this.file.contents.pos = this.offset, this.file.contents.read(this.length)) : null;\n  }, t;\n}();\nvar se = function (t) {\n    function e() {\n      return e.__super__.constructor.apply(this, arguments);\n    }\n    return oe(e, re), e.prototype.tag = \"head\", e.prototype.parse = function (t) {\n      return t.pos = this.offset, this.version = t.readInt(), this.revision = t.readInt(), this.checkSumAdjustment = t.readInt(), this.magicNumber = t.readInt(), this.flags = t.readShort(), this.unitsPerEm = t.readShort(), this.created = t.readLongLong(), this.modified = t.readLongLong(), this.xMin = t.readShort(), this.yMin = t.readShort(), this.xMax = t.readShort(), this.yMax = t.readShort(), this.macStyle = t.readShort(), this.lowestRecPPEM = t.readShort(), this.fontDirectionHint = t.readShort(), this.indexToLocFormat = t.readShort(), this.glyphDataFormat = t.readShort();\n    }, e.prototype.encode = function (t) {\n      var e;\n      return (e = new ne()).writeInt(this.version), e.writeInt(this.revision), e.writeInt(this.checkSumAdjustment), e.writeInt(this.magicNumber), e.writeShort(this.flags), e.writeShort(this.unitsPerEm), e.writeLongLong(this.created), e.writeLongLong(this.modified), e.writeShort(this.xMin), e.writeShort(this.yMin), e.writeShort(this.xMax), e.writeShort(this.yMax), e.writeShort(this.macStyle), e.writeShort(this.lowestRecPPEM), e.writeShort(this.fontDirectionHint), e.writeShort(t), e.writeShort(this.glyphDataFormat), e.data;\n    }, e;\n  }(),\n  ce = function () {\n    function t(t, e) {\n      var r, n, i, a, o, s, c, u, h, l, f, d, p, g, m, v, b;\n      switch (this.platformID = t.readUInt16(), this.encodingID = t.readShort(), this.offset = e + t.readInt(), h = t.pos, t.pos = this.offset, this.format = t.readUInt16(), this.length = t.readUInt16(), this.language = t.readUInt16(), this.isUnicode = 3 === this.platformID && 1 === this.encodingID && 4 === this.format || 0 === this.platformID && 4 === this.format, this.codeMap = {}, this.format) {\n        case 0:\n          for (s = 0; s < 256; ++s) this.codeMap[s] = t.readByte();\n          break;\n        case 4:\n          for (f = t.readUInt16(), l = f / 2, t.pos += 6, i = function () {\n            var e, r;\n            for (r = [], s = e = 0; 0 <= l ? e < l : e > l; s = 0 <= l ? ++e : --e) r.push(t.readUInt16());\n            return r;\n          }(), t.pos += 2, p = function () {\n            var e, r;\n            for (r = [], s = e = 0; 0 <= l ? e < l : e > l; s = 0 <= l ? ++e : --e) r.push(t.readUInt16());\n            return r;\n          }(), c = function () {\n            var e, r;\n            for (r = [], s = e = 0; 0 <= l ? e < l : e > l; s = 0 <= l ? ++e : --e) r.push(t.readUInt16());\n            return r;\n          }(), u = function () {\n            var e, r;\n            for (r = [], s = e = 0; 0 <= l ? e < l : e > l; s = 0 <= l ? ++e : --e) r.push(t.readUInt16());\n            return r;\n          }(), n = (this.length - t.pos + this.offset) / 2, o = function () {\n            var e, r;\n            for (r = [], s = e = 0; 0 <= n ? e < n : e > n; s = 0 <= n ? ++e : --e) r.push(t.readUInt16());\n            return r;\n          }(), s = m = 0, b = i.length; m < b; s = ++m) for (g = i[s], r = v = d = p[s]; d <= g ? v <= g : v >= g; r = d <= g ? ++v : --v) 0 === u[s] ? a = r + c[s] : 0 !== (a = o[u[s] / 2 + (r - d) - (l - s)] || 0) && (a += c[s]), this.codeMap[r] = 65535 & a;\n      }\n      t.pos = h;\n    }\n    return t.encode = function (t, e) {\n      var r, n, i, a, o, s, c, u, h, l, f, d, p, g, m, v, b, y, w, N, L, A, x, S, _, P, k, I, F, C, j, O, B, M, E, q, D, R, T, U, z, H, W, V, G, Y;\n      switch (I = new ne(), a = Object.keys(t).sort(function (t, e) {\n        return t - e;\n      }), e) {\n        case \"macroman\":\n          for (p = 0, g = function () {\n            var t = [];\n            for (d = 0; d < 256; ++d) t.push(0);\n            return t;\n          }(), v = {\n            0: 0\n          }, i = {}, F = 0, B = a.length; F < B; F++) null == v[W = t[n = a[F]]] && (v[W] = ++p), i[n] = {\n            old: t[n],\n            new: v[t[n]]\n          }, g[n] = v[t[n]];\n          return I.writeUInt16(1), I.writeUInt16(0), I.writeUInt32(12), I.writeUInt16(0), I.writeUInt16(262), I.writeUInt16(0), I.write(g), {\n            charMap: i,\n            subtable: I.data,\n            maxGlyphID: p + 1\n          };\n        case \"unicode\":\n          for (P = [], h = [], b = 0, v = {}, r = {}, m = c = null, C = 0, M = a.length; C < M; C++) null == v[w = t[n = a[C]]] && (v[w] = ++b), r[n] = {\n            old: w,\n            new: v[w]\n          }, o = v[w] - n, null != m && o === c || (m && h.push(m), P.push(n), c = o), m = n;\n          for (m && h.push(m), h.push(65535), P.push(65535), S = 2 * (x = P.length), A = 2 * Math.pow(Math.log(x) / Math.LN2, 2), l = Math.log(A / 2) / Math.LN2, L = 2 * x - A, s = [], N = [], f = [], d = j = 0, E = P.length; j < E; d = ++j) {\n            if (_ = P[d], u = h[d], 65535 === _) {\n              s.push(0), N.push(0);\n              break;\n            }\n            if (_ - (k = r[_].new) >= 32768) for (s.push(0), N.push(2 * (f.length + x - d)), n = O = _; _ <= u ? O <= u : O >= u; n = _ <= u ? ++O : --O) f.push(r[n].new);else s.push(k - _), N.push(0);\n          }\n          for (I.writeUInt16(3), I.writeUInt16(1), I.writeUInt32(12), I.writeUInt16(4), I.writeUInt16(16 + 8 * x + 2 * f.length), I.writeUInt16(0), I.writeUInt16(S), I.writeUInt16(A), I.writeUInt16(l), I.writeUInt16(L), z = 0, q = h.length; z < q; z++) n = h[z], I.writeUInt16(n);\n          for (I.writeUInt16(0), H = 0, D = P.length; H < D; H++) n = P[H], I.writeUInt16(n);\n          for (V = 0, R = s.length; V < R; V++) o = s[V], I.writeUInt16(o);\n          for (G = 0, T = N.length; G < T; G++) y = N[G], I.writeUInt16(y);\n          for (Y = 0, U = f.length; Y < U; Y++) p = f[Y], I.writeUInt16(p);\n          return {\n            charMap: r,\n            subtable: I.data,\n            maxGlyphID: b + 1\n          };\n      }\n    }, t;\n  }(),\n  ue = function (t) {\n    function e() {\n      return e.__super__.constructor.apply(this, arguments);\n    }\n    return oe(e, re), e.prototype.tag = \"cmap\", e.prototype.parse = function (t) {\n      var e, r, n;\n      for (t.pos = this.offset, this.version = t.readUInt16(), n = t.readUInt16(), this.tables = [], this.unicode = null, r = 0; 0 <= n ? r < n : r > n; r = 0 <= n ? ++r : --r) e = new ce(t, this.offset), this.tables.push(e), e.isUnicode && null == this.unicode && (this.unicode = e);\n      return !0;\n    }, e.encode = function (t, e) {\n      var r, n;\n      return null == e && (e = \"macroman\"), r = ce.encode(t, e), (n = new ne()).writeUInt16(0), n.writeUInt16(1), r.table = n.data.concat(r.subtable), r;\n    }, e;\n  }(),\n  he = function (t) {\n    function e() {\n      return e.__super__.constructor.apply(this, arguments);\n    }\n    return oe(e, re), e.prototype.tag = \"hhea\", e.prototype.parse = function (t) {\n      return t.pos = this.offset, this.version = t.readInt(), this.ascender = t.readShort(), this.decender = t.readShort(), this.lineGap = t.readShort(), this.advanceWidthMax = t.readShort(), this.minLeftSideBearing = t.readShort(), this.minRightSideBearing = t.readShort(), this.xMaxExtent = t.readShort(), this.caretSlopeRise = t.readShort(), this.caretSlopeRun = t.readShort(), this.caretOffset = t.readShort(), t.pos += 8, this.metricDataFormat = t.readShort(), this.numberOfMetrics = t.readUInt16();\n    }, e;\n  }(),\n  le = function (t) {\n    function e() {\n      return e.__super__.constructor.apply(this, arguments);\n    }\n    return oe(e, re), e.prototype.tag = \"OS/2\", e.prototype.parse = function (t) {\n      if (t.pos = this.offset, this.version = t.readUInt16(), this.averageCharWidth = t.readShort(), this.weightClass = t.readUInt16(), this.widthClass = t.readUInt16(), this.type = t.readShort(), this.ySubscriptXSize = t.readShort(), this.ySubscriptYSize = t.readShort(), this.ySubscriptXOffset = t.readShort(), this.ySubscriptYOffset = t.readShort(), this.ySuperscriptXSize = t.readShort(), this.ySuperscriptYSize = t.readShort(), this.ySuperscriptXOffset = t.readShort(), this.ySuperscriptYOffset = t.readShort(), this.yStrikeoutSize = t.readShort(), this.yStrikeoutPosition = t.readShort(), this.familyClass = t.readShort(), this.panose = function () {\n        var e, r;\n        for (r = [], e = 0; e < 10; ++e) r.push(t.readByte());\n        return r;\n      }(), this.charRange = function () {\n        var e, r;\n        for (r = [], e = 0; e < 4; ++e) r.push(t.readInt());\n        return r;\n      }(), this.vendorID = t.readString(4), this.selection = t.readShort(), this.firstCharIndex = t.readShort(), this.lastCharIndex = t.readShort(), this.version > 0 && (this.ascent = t.readShort(), this.descent = t.readShort(), this.lineGap = t.readShort(), this.winAscent = t.readShort(), this.winDescent = t.readShort(), this.codePageRange = function () {\n        var e, r;\n        for (r = [], e = 0; e < 2; e = ++e) r.push(t.readInt());\n        return r;\n      }(), this.version > 1)) return this.xHeight = t.readShort(), this.capHeight = t.readShort(), this.defaultChar = t.readShort(), this.breakChar = t.readShort(), this.maxContext = t.readShort();\n    }, e;\n  }(),\n  fe = function (t) {\n    function e() {\n      return e.__super__.constructor.apply(this, arguments);\n    }\n    return oe(e, re), e.prototype.tag = \"post\", e.prototype.parse = function (t) {\n      var e, r, n;\n      switch (t.pos = this.offset, this.format = t.readInt(), this.italicAngle = t.readInt(), this.underlinePosition = t.readShort(), this.underlineThickness = t.readShort(), this.isFixedPitch = t.readInt(), this.minMemType42 = t.readInt(), this.maxMemType42 = t.readInt(), this.minMemType1 = t.readInt(), this.maxMemType1 = t.readInt(), this.format) {\n        case 65536:\n          break;\n        case 131072:\n          var i;\n          for (r = t.readUInt16(), this.glyphNameIndex = [], i = 0; 0 <= r ? i < r : i > r; i = 0 <= r ? ++i : --i) this.glyphNameIndex.push(t.readUInt16());\n          for (this.names = [], n = []; t.pos < this.offset + this.length;) e = t.readByte(), n.push(this.names.push(t.readString(e)));\n          return n;\n        case 151552:\n          return r = t.readUInt16(), this.offsets = t.read(r);\n        case 196608:\n          break;\n        case 262144:\n          return this.map = function () {\n            var e, r, n;\n            for (n = [], i = e = 0, r = this.file.maxp.numGlyphs; 0 <= r ? e < r : e > r; i = 0 <= r ? ++e : --e) n.push(t.readUInt32());\n            return n;\n          }.call(this);\n      }\n    }, e;\n  }(),\n  de = function (t, e) {\n    this.raw = t, this.length = t.length, this.platformID = e.platformID, this.encodingID = e.encodingID, this.languageID = e.languageID;\n  },\n  pe = function (t) {\n    function e() {\n      return e.__super__.constructor.apply(this, arguments);\n    }\n    return oe(e, re), e.prototype.tag = \"name\", e.prototype.parse = function (t) {\n      var e, r, n, i, a, o, s, c, u, h, l;\n      for (t.pos = this.offset, t.readShort(), e = t.readShort(), o = t.readShort(), r = [], i = 0; 0 <= e ? i < e : i > e; i = 0 <= e ? ++i : --i) r.push({\n        platformID: t.readShort(),\n        encodingID: t.readShort(),\n        languageID: t.readShort(),\n        nameID: t.readShort(),\n        length: t.readShort(),\n        offset: this.offset + o + t.readShort()\n      });\n      for (s = {}, i = u = 0, h = r.length; u < h; i = ++u) n = r[i], t.pos = n.offset, c = t.readString(n.length), a = new de(c, n), null == s[l = n.nameID] && (s[l] = []), s[n.nameID].push(a);\n      this.strings = s, this.copyright = s[0], this.fontFamily = s[1], this.fontSubfamily = s[2], this.uniqueSubfamily = s[3], this.fontName = s[4], this.version = s[5];\n      try {\n        this.postscriptName = s[6][0].raw.replace(/[\\x00-\\x19\\x80-\\xff]/g, \"\");\n      } catch (t) {\n        this.postscriptName = s[4][0].raw.replace(/[\\x00-\\x19\\x80-\\xff]/g, \"\");\n      }\n      return this.trademark = s[7], this.manufacturer = s[8], this.designer = s[9], this.description = s[10], this.vendorUrl = s[11], this.designerUrl = s[12], this.license = s[13], this.licenseUrl = s[14], this.preferredFamily = s[15], this.preferredSubfamily = s[17], this.compatibleFull = s[18], this.sampleText = s[19];\n    }, e;\n  }(),\n  ge = function (t) {\n    function e() {\n      return e.__super__.constructor.apply(this, arguments);\n    }\n    return oe(e, re), e.prototype.tag = \"maxp\", e.prototype.parse = function (t) {\n      return t.pos = this.offset, this.version = t.readInt(), this.numGlyphs = t.readUInt16(), this.maxPoints = t.readUInt16(), this.maxContours = t.readUInt16(), this.maxCompositePoints = t.readUInt16(), this.maxComponentContours = t.readUInt16(), this.maxZones = t.readUInt16(), this.maxTwilightPoints = t.readUInt16(), this.maxStorage = t.readUInt16(), this.maxFunctionDefs = t.readUInt16(), this.maxInstructionDefs = t.readUInt16(), this.maxStackElements = t.readUInt16(), this.maxSizeOfInstructions = t.readUInt16(), this.maxComponentElements = t.readUInt16(), this.maxComponentDepth = t.readUInt16();\n    }, e;\n  }(),\n  me = function (t) {\n    function e() {\n      return e.__super__.constructor.apply(this, arguments);\n    }\n    return oe(e, re), e.prototype.tag = \"hmtx\", e.prototype.parse = function (t) {\n      var e, r, n, i, a, o, s;\n      for (t.pos = this.offset, this.metrics = [], e = 0, o = this.file.hhea.numberOfMetrics; 0 <= o ? e < o : e > o; e = 0 <= o ? ++e : --e) this.metrics.push({\n        advance: t.readUInt16(),\n        lsb: t.readInt16()\n      });\n      for (n = this.file.maxp.numGlyphs - this.file.hhea.numberOfMetrics, this.leftSideBearings = function () {\n        var r, i;\n        for (i = [], e = r = 0; 0 <= n ? r < n : r > n; e = 0 <= n ? ++r : --r) i.push(t.readInt16());\n        return i;\n      }(), this.widths = function () {\n        var t, e, r, n;\n        for (n = [], t = 0, e = (r = this.metrics).length; t < e; t++) i = r[t], n.push(i.advance);\n        return n;\n      }.call(this), r = this.widths[this.widths.length - 1], s = [], e = a = 0; 0 <= n ? a < n : a > n; e = 0 <= n ? ++a : --a) s.push(this.widths.push(r));\n      return s;\n    }, e.prototype.forGlyph = function (t) {\n      return t in this.metrics ? this.metrics[t] : {\n        advance: this.metrics[this.metrics.length - 1].advance,\n        lsb: this.leftSideBearings[t - this.metrics.length]\n      };\n    }, e;\n  }(),\n  ve = [].slice,\n  be = function (t) {\n    function e() {\n      return e.__super__.constructor.apply(this, arguments);\n    }\n    return oe(e, re), e.prototype.tag = \"glyf\", e.prototype.parse = function () {\n      return this.cache = {};\n    }, e.prototype.glyphFor = function (t) {\n      var e, r, n, i, a, o, s, c, u, h;\n      return t in this.cache ? this.cache[t] : (i = this.file.loca, e = this.file.contents, r = i.indexOf(t), 0 === (n = i.lengthOf(t)) ? this.cache[t] = null : (e.pos = this.offset + r, a = (o = new ne(e.read(n))).readShort(), c = o.readShort(), h = o.readShort(), s = o.readShort(), u = o.readShort(), this.cache[t] = -1 === a ? new we(o, c, h, s, u) : new ye(o, a, c, h, s, u), this.cache[t]));\n    }, e.prototype.encode = function (t, e, r) {\n      var n, i, a, o, s;\n      for (a = [], i = [], o = 0, s = e.length; o < s; o++) n = t[e[o]], i.push(a.length), n && (a = a.concat(n.encode(r)));\n      return i.push(a.length), {\n        table: a,\n        offsets: i\n      };\n    }, e;\n  }(),\n  ye = function () {\n    function t(t, e, r, n, i, a) {\n      this.raw = t, this.numberOfContours = e, this.xMin = r, this.yMin = n, this.xMax = i, this.yMax = a, this.compound = !1;\n    }\n    return t.prototype.encode = function () {\n      return this.raw.data;\n    }, t;\n  }(),\n  we = function () {\n    function t(t, e, r, n, i) {\n      var a, o;\n      for (this.raw = t, this.xMin = e, this.yMin = r, this.xMax = n, this.yMax = i, this.compound = !0, this.glyphIDs = [], this.glyphOffsets = [], a = this.raw; o = a.readShort(), this.glyphOffsets.push(a.pos), this.glyphIDs.push(a.readUInt16()), 32 & o;) a.pos += 1 & o ? 4 : 2, 128 & o ? a.pos += 8 : 64 & o ? a.pos += 4 : 8 & o && (a.pos += 2);\n    }\n    return 1, 8, 32, 64, 128, t.prototype.encode = function () {\n      var t, e, r;\n      for (e = new ne(ve.call(this.raw.data)), t = 0, r = this.glyphIDs.length; t < r; ++t) e.pos = this.glyphOffsets[t];\n      return e.data;\n    }, t;\n  }(),\n  Ne = function (t) {\n    function e() {\n      return e.__super__.constructor.apply(this, arguments);\n    }\n    return oe(e, re), e.prototype.tag = \"loca\", e.prototype.parse = function (t) {\n      var e, r;\n      return t.pos = this.offset, e = this.file.head.indexToLocFormat, this.offsets = 0 === e ? function () {\n        var e, n;\n        for (n = [], r = 0, e = this.length; r < e; r += 2) n.push(2 * t.readUInt16());\n        return n;\n      }.call(this) : function () {\n        var e, n;\n        for (n = [], r = 0, e = this.length; r < e; r += 4) n.push(t.readUInt32());\n        return n;\n      }.call(this);\n    }, e.prototype.indexOf = function (t) {\n      return this.offsets[t];\n    }, e.prototype.lengthOf = function (t) {\n      return this.offsets[t + 1] - this.offsets[t];\n    }, e.prototype.encode = function (t, e) {\n      for (var r = new Uint32Array(this.offsets.length), n = 0, i = 0, a = 0; a < r.length; ++a) if (r[a] = n, i < e.length && e[i] == a) {\n        ++i, r[a] = n;\n        var o = this.offsets[a],\n          s = this.offsets[a + 1] - o;\n        s > 0 && (n += s);\n      }\n      for (var c = new Array(4 * r.length), u = 0; u < r.length; ++u) c[4 * u + 3] = 255 & r[u], c[4 * u + 2] = (65280 & r[u]) >> 8, c[4 * u + 1] = (16711680 & r[u]) >> 16, c[4 * u] = (4278190080 & r[u]) >> 24;\n      return c;\n    }, e;\n  }(),\n  Le = function () {\n    function t(t) {\n      this.font = t, this.subset = {}, this.unicodes = {}, this.next = 33;\n    }\n    return t.prototype.generateCmap = function () {\n      var t, e, r, n, i;\n      for (e in n = this.font.cmap.tables[0].codeMap, t = {}, i = this.subset) r = i[e], t[e] = n[r];\n      return t;\n    }, t.prototype.glyphsFor = function (t) {\n      var e, r, n, i, a, o, s;\n      for (n = {}, a = 0, o = t.length; a < o; a++) n[i = t[a]] = this.font.glyf.glyphFor(i);\n      for (i in e = [], n) (null != (r = n[i]) ? r.compound : void 0) && e.push.apply(e, r.glyphIDs);\n      if (e.length > 0) for (i in s = this.glyphsFor(e)) r = s[i], n[i] = r;\n      return n;\n    }, t.prototype.encode = function (t, e) {\n      var r, n, i, a, o, s, c, u, h, l, f, d, p, g, m;\n      for (n in r = ue.encode(this.generateCmap(), \"unicode\"), a = this.glyphsFor(t), f = {\n        0: 0\n      }, m = r.charMap) f[(s = m[n]).old] = s.new;\n      for (d in l = r.maxGlyphID, a) d in f || (f[d] = l++);\n      return u = function (t) {\n        var e, r;\n        for (e in r = {}, t) r[t[e]] = e;\n        return r;\n      }(f), h = Object.keys(u).sort(function (t, e) {\n        return t - e;\n      }), p = function () {\n        var t, e, r;\n        for (r = [], t = 0, e = h.length; t < e; t++) o = h[t], r.push(u[o]);\n        return r;\n      }(), i = this.font.glyf.encode(a, p, f), c = this.font.loca.encode(i.offsets, p), g = {\n        cmap: this.font.cmap.raw(),\n        glyf: i.table,\n        loca: c,\n        hmtx: this.font.hmtx.raw(),\n        hhea: this.font.hhea.raw(),\n        maxp: this.font.maxp.raw(),\n        post: this.font.post.raw(),\n        name: this.font.name.raw(),\n        head: this.font.head.encode(e)\n      }, this.font.os2.exists && (g[\"OS/2\"] = this.font.os2.raw()), this.font.directory.encode(g);\n    }, t;\n  }();\nE.API.PDFObject = function () {\n  var t;\n  function e() {}\n  return t = function (t, e) {\n    return (Array(e + 1).join(\"0\") + t).slice(-e);\n  }, e.convert = function (r) {\n    var n, i, a, o;\n    if (Array.isArray(r)) return \"[\" + function () {\n      var t, i, a;\n      for (a = [], t = 0, i = r.length; t < i; t++) n = r[t], a.push(e.convert(n));\n      return a;\n    }().join(\" \") + \"]\";\n    if (\"string\" == typeof r) return \"/\" + r;\n    if (null != r ? r.isString : void 0) return \"(\" + r + \")\";\n    if (r instanceof Date) return \"(D:\" + t(r.getUTCFullYear(), 4) + t(r.getUTCMonth(), 2) + t(r.getUTCDate(), 2) + t(r.getUTCHours(), 2) + t(r.getUTCMinutes(), 2) + t(r.getUTCSeconds(), 2) + \"Z)\";\n    if (\"[object Object]\" === {}.toString.call(r)) {\n      for (i in a = [\"<<\"], r) o = r[i], a.push(\"/\" + i + \" \" + e.convert(o));\n      return a.push(\">>\"), a.join(\"\\n\");\n    }\n    return \"\" + r;\n  }, e;\n}();\nexport default E;\nexport { St as AcroForm, At as AcroFormAppearance, mt as AcroFormButton, wt as AcroFormCheckBox, ft as AcroFormChoiceField, pt as AcroFormComboBox, gt as AcroFormEditBox, dt as AcroFormListBox, Lt as AcroFormPasswordField, vt as AcroFormPushButton, bt as AcroFormRadioButton, Nt as AcroFormTextField, j as GState, B as ShadingPattern, M as TilingPattern, E as jsPDF };\n","import { Component, OnInit } from '@angular/core';\r\nimport { NavbarComponent } from '../../../shared/components/navbar/navbar.component';\r\nimport { RecipesService } from '../../../core/services/api/recipes.service';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { Router } from '@angular/router';\r\nimport { NewLinewToBrPipe } from '../../../core/pipes/new-linew-to-br.pipe';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { jsPDF } from 'jspdf';\r\nimport html2canvas from 'html2canvas';\r\nimport { parse } from 'path';\r\n@Component({\r\n  selector: 'app-view-recipe',\r\n  standalone: true,\r\n  imports: [NavbarComponent, CommonModule, NewLinewToBrPipe],\r\n  templateUrl: './view-recipe.component.html',\r\n  styleUrl: './view-recipe.component.scss',\r\n})\r\nexport class ViewRecipeComponent implements OnInit {\r\n  id: number = 0;\r\n  recipe: TableData = {};\r\n\r\n  leftColumnIngredients: Argument[] = [];\r\n  rightColumnIngredients: Argument[] = [];\r\n  leftColumnInputs: Argument[] = [];\r\n  rightColumnInputs: Argument[] = [];\r\n\r\n  constructor(\r\n    private route: ActivatedRoute,\r\n    private recipeService: RecipesService,\r\n    private router: Router\r\n  ) {}\r\n\r\n  ngOnInit(): void {\r\n    this.id = +(this.route.snapshot.paramMap.get('id') ?? 0);\r\n    if (this.id !== 0) {\r\n      this.recipeService.getRecipeById(this.id).subscribe(\r\n        (res) => {\r\n          (this.recipe = res), this.splitIngredients(), this.splitInputs();\r\n        },\r\n        (error) => console.error(error)\r\n      );\r\n    }\r\n    //console.log(this.recipe);\r\n  }\r\n\r\n  goTo() {\r\n    this.router.navigate(['/recipes', this.id, 'modify']);\r\n  }\r\n\r\n  deleteRecipe() {\r\n    this.recipeService.deleteRecipe(this.id).subscribe(\r\n      (res) => {\r\n        this.router.navigate(['/recipes']);\r\n      },\r\n      (error) => console.error(error)\r\n    );\r\n  }\r\n\r\n  generatePDF() {\r\n    const doc = new jsPDF();\r\n    let yPosition = 10;\r\n  \r\n    // Título de la receta\r\n    doc.setFontSize(18);\r\n    doc.text(this.recipe['name'], 10, yPosition);\r\n  \r\n    // Sección de Ingredientes\r\n    yPosition += 20;\r\n    doc.setFontSize(14);\r\n    doc.text('Ingredientes:', 10, yPosition);\r\n    yPosition += 10;\r\n  \r\n    // Listar los ingredientes\r\n    doc.setFontSize(12);\r\n    parseList(this.recipe['recipeIngredients']).forEach((ing: any) => {\r\n      doc.text(`- ${ing.name}: ${ing.quantity} ${ing.unit}`, 10, yPosition);\r\n      yPosition += 10;\r\n    });\r\n  \r\n    // Sección de Insumos\r\n    yPosition += 5;\r\n    doc.setFontSize(14);\r\n    doc.text('Insumos:', 10, yPosition);\r\n    yPosition += 10;\r\n  \r\n    // Listar los insumos\r\n    doc.setFontSize(12);\r\n    parseList(this.recipe['recipePackagingElements']).forEach((ins: any) => {\r\n      doc.text(`- ${ins.name}: ${ins.quantity} ${ins.unit}`, 10, yPosition);\r\n      yPosition += 10;\r\n    });\r\n  \r\n    // Sección de Procedimiento\r\n    yPosition += 10;\r\n    doc.setFontSize(14);\r\n    doc.text('Procedimiento', 10, yPosition);\r\n    yPosition += 10;\r\n  \r\n    // Convertir HTML a texto plano\r\n    const procedureText = this.convertHTMLToText(this.recipe['description']);\r\n    const procedureLines = doc.splitTextToSize(procedureText, 180);\r\n  \r\n    // Agregar las líneas de procedimiento al PDF\r\n    procedureLines.forEach((line: string) => {\r\n      doc.text(line, 10, yPosition);\r\n      yPosition += 10;\r\n    });\r\n  \r\n    // Genera y descarga el PDF\r\n    doc.save(`${this.recipe['name']}.pdf`);\r\n  }\r\n  \r\n  // Función para convertir HTML en texto plano\r\n  convertHTMLToText(html: string): string {\r\n    const tempDiv = document.createElement('div');\r\n    tempDiv.innerHTML = html;\r\n  \r\n    // Reemplazar los <br> con saltos de línea\r\n    const replaceBreaks = (node: ChildNode) => {\r\n      if (node.nodeName === 'BR') {\r\n        return '\\n';\r\n      }\r\n      return node.textContent || '';\r\n    };\r\n  \r\n    // Reemplazar las etiquetas de lista con viñetas\r\n    const replaceLists = (node: ChildNode) => {\r\n      if (node.nodeName === 'LI') {\r\n        return `• ${node.textContent?.trim()}\\n`;\r\n      }\r\n      return node.textContent || '';\r\n    };\r\n  \r\n    // Extraer texto del HTML, respetando las etiquetas relevantes\r\n    let text = Array.from(tempDiv.childNodes)\r\n      .map((node) => {\r\n        if (node.nodeName === 'BR') {\r\n          return replaceBreaks(node);\r\n        } else if (node.nodeName === 'UL' || node.nodeName === 'OL') {\r\n          return Array.from(node.childNodes).map(replaceLists).join('');\r\n        } else if (node.nodeName === 'P') {\r\n          return `${node.textContent?.trim()}\\n\\n`;\r\n        }\r\n        return node.textContent || '';\r\n      })\r\n      .join('');\r\n  \r\n    return text.trim();\r\n  }\r\n  \r\n\r\n  private splitIngredients() {\r\n    if (this.recipe && this.recipe['recipeIngredients']) {\r\n      let toggle: boolean = true;\r\n      const ingredients = parseList(this.recipe['recipeIngredients']);\r\n      ingredients.forEach((element: Argument) => {\r\n        if (toggle) {\r\n          this.leftColumnIngredients.push(element);\r\n        } else {\r\n          this.rightColumnIngredients.push(element);\r\n        }\r\n        toggle = !toggle;\r\n      });\r\n    } else {\r\n      console.error('Ingredients are undefined or not an array');\r\n    }\r\n  }\r\n\r\n  private splitInputs() {\r\n    if (this.recipe && this.recipe['recipePackagingElements']) {\r\n      let toggle: boolean = true;\r\n      const packages = parseList(this.recipe['recipePackagingElements']);\r\n      packages.forEach((element: Argument) => {\r\n        if (toggle) {\r\n          this.leftColumnInputs.push(element);\r\n        } else {\r\n          this.rightColumnInputs.push(element);\r\n        }\r\n        toggle = !toggle;\r\n      });\r\n    } else {\r\n      console.error('Inpusts are undefined or not an array');\r\n    }\r\n  }\r\n}\r\n\r\ninterface Argument {\r\n  name: string;\r\n  quantity: string;\r\n  unit: string;\r\n}\r\n\r\nfunction parseList(list: string): Argument[] {\r\n  if (!list) return [];\r\n\r\n  // Asegúrate de que la cadena no tenga espacios innecesarios alrededor\r\n  const parsedList = list.split(';').filter((item) => item.trim() !== '');\r\n  const args: Argument[] = parsedList.map((element: string) => {\r\n    const [name, quantity, unit] = element.split(',');\r\n    if (!name || !quantity || !unit) {\r\n      console.error(`Invalid format: ${element}`);\r\n      return { name: '', quantity: '', unit: '' };\r\n    }\r\n    return {\r\n      name: name.trim(),\r\n      quantity: quantity.trim(),\r\n      unit: unit.trim(),\r\n    };\r\n  });\r\n  return args;\r\n}\r\n","<app-navbar></app-navbar>\r\n<div\r\n  class=\"container-fluid d-flex flex-column justify-content-center align-items-center vh-100\"\r\n>\r\n  <div class=\"row justify-content-center align-items-center w-100\">\r\n    <div class=\"col-8 col-main\">\r\n      <div class=\"row header-row mb-4 align-items-center\">\r\n        <div class=\"col\">\r\n          <h1 class=\"view-title\">{{ recipe[\"name\"] }}</h1>\r\n        </div>\r\n        <div class=\"col d-flex justify-content-center\">\r\n          <button type=\"button\" class=\"btn btn-custom\" (click)=\"generatePDF()\">\r\n            <i class=\"bi bi-file-arrow-down-fill\"></i> PDF\r\n          </button>\r\n        </div>\r\n\r\n        <div class=\"col d-flex justify-content-end\">\r\n          <button type=\"button\" (click)=\"goTo()\" class=\"btn btn-custom\">\r\n            EDITAR\r\n          </button>\r\n          <button type=\"button\" (click)=\"deleteRecipe()\" class=\"btn btn-custom\">\r\n            ELIMINAR\r\n          </button>\r\n        </div>\r\n      </div>\r\n      <div class=\"col custom-col\">\r\n        <div class=\"row px-2 mb-4\">\r\n          <div class=\"col\">\r\n            <label class=\"subtitle\"> INGREDIENTES </label>\r\n            <div class=\"row\">\r\n              <div class=\"col\">\r\n                <div *ngFor=\"let ingredient of leftColumnIngredients\">\r\n                  <li>\r\n                    {{ ingredient.name }} {{ ingredient.quantity\r\n                    }}{{ ingredient.unit }}\r\n                  </li>\r\n                </div>\r\n              </div>\r\n              <div class=\"col\">\r\n                <div *ngFor=\"let ingredient of rightColumnIngredients\">\r\n                  <li>\r\n                    {{ ingredient.name }} {{ ingredient.quantity\r\n                    }}{{ ingredient.unit }}\r\n                  </li>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n          <div class=\"col\">\r\n            <label class=\"subtitle\"> Insumos </label>\r\n            <div class=\"row\">\r\n              <div class=\"col\">\r\n                <div *ngFor=\"let input of leftColumnInputs\">\r\n                  <li>{{ input.name }} {{ input.quantity }}{{ input.unit }}</li>\r\n                </div>\r\n              </div>\r\n              <div class=\"col\">\r\n                <div *ngFor=\"let input of rightColumnInputs\">\r\n                  <li>{{ input.name }} {{ input.quantity }}{{ input.unit }}</li>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"row\">\r\n          <label class=\"subtitle\"> Procedimiento </label>\r\n          <div class=\"procedure\">\r\n            <div [innerHTML]=\"recipe['description'] | newLinewToBr\"></div>\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</div>\r\n","import { Injectable } from '@angular/core';\r\nimport { BatchesService } from '../api/batches.service';\r\nimport { TableData } from '../../interfaces/table-data';\r\nimport { Observable,  BehaviorSubject, map } from 'rxjs';\r\n@Injectable({\r\n  providedIn: 'root'\r\n})\r\nexport class CategoriesService {\r\n\r\n  private batchCategories: BehaviorSubject<string[]> = new BehaviorSubject<string[]>([]);\r\n  constructor(private batchesService: BatchesService) { }\r\n\r\n  chargeCategories(): void {\r\n    this.batchesService.getCategories().subscribe({\r\n      next: (res) => {\r\n        if (Array.isArray(res)) {\r\n          this.batchCategories.next(res); // Actualiza el BehaviorSubject con los datos recibidos\r\n        } else {\r\n          console.error('Unexpected response format', res);\r\n        }\r\n      },\r\n      error: err => {\r\n        console.error('Error fetching categories', err);\r\n      }\r\n    });\r\n  }\r\n\r\n  getCategories(): Observable<string[]> {\r\n    return this.batchCategories.asObservable();\r\n  }\r\n\r\n  addCategory(category: string): void {\r\n   this.batchCategories.pipe(\r\n      map(categories => {\r\n        if (!categories.includes(category)) {\r\n          categories.push(category);\r\n          categories.sort();\r\n          this.batchCategories.next(categories); // Emit the updated list\r\n        }\r\n      })\r\n    ).subscribe(); // Asegúrate de suscribirte al observable\r\n  }\r\n\r\n \r\n}\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { NavbarComponent } from '../../../shared/components/navbar/navbar.component';\r\nimport { CommonModule } from '@angular/common';\r\nimport {\r\n  ReactiveFormsModule,\r\n  FormBuilder,\r\n  Validators,\r\n  FormGroup,\r\n  FormArray,\r\n} from '@angular/forms';\r\nimport { Units } from '../../../shared/enums/units.enum';\r\nimport { CategoriesService } from '../../../core/services/enums/categories.service';\r\nimport { RawMaterialsService } from '../../../core/services/api/rawmaterials.service';\r\nimport { InputsService } from '../../../core/services/api/inputs.service';\r\nimport { EditorModule } from 'primeng/editor';\r\nimport { atLeastOneCheckedValidator } from '../../../core/utils/validators';\r\nimport { BatchesService } from '../../../core/services/api/batches.service';\r\nimport { Router } from '@angular/router';\r\n@Component({\r\n  selector: 'app-add-batch',\r\n  standalone: true,\r\n  imports: [CommonModule, NavbarComponent, ReactiveFormsModule, EditorModule],\r\n  templateUrl: './add-batch.component.html',\r\n  styleUrl: './add-batch.component.scss',\r\n})\r\nexport class AddBatchComponent implements OnInit {\r\n  batchForm: FormGroup;\r\n  addCategoryForm: FormGroup;\r\n  categories: string[] = [];\r\n  units: string[] = [];\r\n  minDate: string = '';\r\n  addCategoryModal: boolean = false;\r\n\r\n  avaibleRawMaterials: any[] = [];\r\n  avaibleInputs: any[] = [];\r\n  totalCost = 0;\r\n  constructor(\r\n    private formbuild: FormBuilder,\r\n    private CategoriesService: CategoriesService,\r\n    private RawMaterialsService: RawMaterialsService,\r\n    private InputsService: InputsService,\r\n    private BatchesService: BatchesService,\r\n    private router: Router\r\n  ) {\r\n    this.batchForm = this.formbuild.group({\r\n      name: ['', [Validators.required, Validators.pattern('[a-zA-Z ]*')]],\r\n      category: ['', [Validators.required]],\r\n      quantity: ['', [Validators.required, Validators.pattern('[0-9]*')]],\r\n      unit: ['', [Validators.required]],\r\n      expirationDate: [''],\r\n      description: [''],\r\n      price: [0, [Validators.required, Validators.min(1)]],\r\n      ingredients: this.formbuild.array([], {\r\n        validators: atLeastOneCheckedValidator(),\r\n      }),\r\n      packages: this.formbuild.array([], {\r\n        validators: atLeastOneCheckedValidator(),\r\n      }),\r\n    });\r\n    this.addCategoryForm = this.formbuild.group({\r\n      newCategory: [\r\n        '',\r\n        [Validators.required, Validators.pattern('[a-zA-Z ]*')],\r\n      ],\r\n    });\r\n  }\r\n\r\n  ngOnInit(): void {\r\n    this.CategoriesService.chargeCategories();\r\n    this.getCategories();\r\n    this.units = Object.values(Units);\r\n    const now = new Date();\r\n    this.minDate = now.toISOString().slice(0, 16);\r\n    this.getRawMaterials();\r\n    this.getInputs();\r\n  }\r\n\r\n  addCategory(): void {\r\n    if (this.addCategoryForm.valid) {\r\n      this.categories.push(this.addCategoryForm.value.newCategory);\r\n      this.addCategoryForm.reset();\r\n      this.addCategoryModal = false;\r\n    } else {\r\n      console.log('Formulario de categoria inválido.');\r\n    }\r\n  }\r\n\r\n  onSubmit(): void {\r\n    console.log(this.batchForm);\r\n    if (this.batchForm.valid) {\r\n      const selectedIngredientControls =\r\n        this.batchForm.get('ingredients')?.value;\r\n      const selectedIngredientIds = selectedIngredientControls\r\n        .filter((ingredient: any) => ingredient.selected)\r\n        .map((ingredient: any) => ingredient.id);\r\n\r\n      const ingredients = this.avaibleRawMaterials.filter((material: any) =>\r\n        selectedIngredientIds.includes(material.id)\r\n      );\r\n\r\n      const selectedInputControls = this.batchForm.get('packages')?.value;\r\n      const selectedInputIds = selectedInputControls\r\n        .filter((input: any) => input.selected)\r\n        .map((input: any) => input.id);\r\n\r\n      const inputs = this.avaibleInputs.filter((material: any) =>\r\n        selectedInputIds.includes(material.id)\r\n      );\r\n\r\n      const futureDate = new Date();\r\n      futureDate.setFullYear(futureDate.getFullYear() + 70);\r\n\r\n      const batch = {\r\n        name: this.batchForm.get('name')?.value,\r\n        category: this.batchForm.get('category')?.value,\r\n        quantity: this.batchForm.get('quantity')?.value,\r\n        unit: this.batchForm.get('unit')?.value,\r\n        expiration: this.batchForm.get('expirationDate')?.value || futureDate,\r\n        description: this.batchForm.get('description')?.value || '',\r\n        batchIngredients: ingredients,\r\n        batchIngredientsQuantity: selectedIngredientControls\r\n          .filter((ingredient: any) => ingredient.selected)\r\n          .map((ingredient: any) => `${ingredient.id},${ingredient.quantity}`)\r\n          .join(';'),\r\n        batchPackagingElements: inputs,\r\n        batchPackagingElementsQuantity: selectedInputControls\r\n          .filter((input: any) => input.selected)\r\n          .map((input: any) => `${input.id},${input.quantity}`)\r\n          .join(';'),\r\n        price: this.batchForm.get('price')?.value,\r\n      };\r\n\r\n      console.log('Batch: ', JSON.stringify(batch));\r\n\r\n      this.BatchesService.createBatch(batch).subscribe(\r\n        (data) => {\r\n          console.log('Lote creado correctamente.');\r\n\r\n          // Actualizar solo los ingredientes seleccionados\r\n          const ingredientUpdatePromises = ingredients\r\n            .map((ingredient: any) => {\r\n              const selectedControl = selectedIngredientControls.find(\r\n                (control: any) => control.id === ingredient.id\r\n              );\r\n              if (selectedControl) {\r\n                ingredient.quantity -= selectedControl.quantity;\r\n                console.log('Ingredient post update: ', ingredient);\r\n                return this.RawMaterialsService.updateRawMaterial(\r\n                  ingredient\r\n                ).toPromise();\r\n              }\r\n              return null; // Retornar null si no hay ingrediente seleccionado\r\n            })\r\n            .filter(Boolean); // Filtrar los nulls\r\n\r\n          // Actualizar solo los empaques seleccionados\r\n          const inputUpdatePromises = inputs\r\n            .map((input: any) => {\r\n              const selectedControl = selectedInputControls.find(\r\n                (control: any) => control.id === input.id\r\n              );\r\n              if (selectedControl) {\r\n                input.quantity -= selectedControl.quantity;\r\n                console.log('Input post update: ', input);\r\n                return this.InputsService.updateInput(input).toPromise();\r\n              }\r\n              return null; // Retornar null si no hay empaque seleccionado\r\n            })\r\n            .filter(Boolean); // Filtrar los nulls\r\n\r\n          Promise.all([...ingredientUpdatePromises, ...inputUpdatePromises])\r\n            .then(() => {\r\n              console.log('Todos los materiales actualizados correctamente.');\r\n            })\r\n            .catch((error) => {\r\n              console.error('Error al actualizar materiales: ', error);\r\n            });\r\n\r\n          this.router.navigate(['/production']);\r\n        },\r\n        (error) => {\r\n          console.error(error);\r\n        }\r\n      );\r\n    } else {\r\n      console.log('Formulario de lote inválido.');\r\n    }\r\n  }\r\n\r\n  openAddCategoryModal() {\r\n    this.addCategoryModal = true;\r\n  }\r\n\r\n  closeAddCategoryModal() {\r\n    this.addCategoryModal = false;\r\n  }\r\n\r\n  get selectedIngredients(): FormArray {\r\n    return this.batchForm.get('ingredients') as FormArray;\r\n  }\r\n\r\n  private addRawMaterialControls(): void {\r\n    this.avaibleRawMaterials.forEach((material) => {\r\n      this.selectedIngredients.push(\r\n        this.formbuild.group({\r\n          id: [material.id],\r\n          name: [material.name],\r\n          selected: [false],\r\n          quantity: [\r\n            null,\r\n            [Validators.min(1), Validators.max(material.availableQuantity)],\r\n          ],\r\n        })\r\n      );\r\n    });\r\n  }\r\n  private getRawMaterials(): any {\r\n    this.RawMaterialsService.getRawMaterials().subscribe(\r\n      (data: any[]) => {\r\n        this.avaibleRawMaterials = data.sort((a, b) =>\r\n          a.name.localeCompare(b.name)\r\n        );\r\n        this.addRawMaterialControls();\r\n      },\r\n      (error) => {\r\n        console.error(error);\r\n      }\r\n    );\r\n  }\r\n\r\n  openRMFilters() {}\r\n\r\n  get selectedInputs(): FormArray {\r\n    return this.batchForm.get('packages') as FormArray;\r\n  }\r\n\r\n  private addInputsControls(): void {\r\n    this.avaibleInputs.forEach((material) => {\r\n      this.selectedInputs.push(\r\n        this.formbuild.group({\r\n          id: [material.id],\r\n          name: [material.name],\r\n          selected: [false],\r\n          quantity: [\r\n            null,\r\n            [Validators.min(1), Validators.max(material.availableQuantity)],\r\n          ],\r\n        })\r\n      );\r\n    });\r\n  }\r\n\r\n  private getInputs(): any {\r\n    this.InputsService.getInputs().subscribe(\r\n      (data: any[]) => {\r\n        this.avaibleInputs = data.sort((a, b) => a.name.localeCompare(b.name));\r\n        this.addInputsControls();\r\n      },\r\n      (error) => {\r\n        console.error(error);\r\n      }\r\n    );\r\n  }\r\n\r\n  openIFilters() {}\r\n\r\n  private getCategories(): void {\r\n    this.CategoriesService.getCategories().subscribe(\r\n      (data) => {\r\n        this.categories = data.sort((a, b) => a.localeCompare(b));\r\n      },\r\n      (error) => {\r\n        console.error(error);\r\n      }\r\n    );\r\n  }\r\n\r\n  calculateCost(): void {\r\n    this.totalCost = 0; // Reinicia el costo total\r\n    this.batchForm.get('ingredients')?.value.forEach((ingredient: any) => {\r\n      console.log(ingredient);\r\n      if (ingredient.selected) {\r\n        const rawMaterial = this.avaibleRawMaterials.find((material) => {\r\n          console.log(material.id, ingredient.id);\r\n          console.log(material.id === ingredient.id);\r\n          material.id === ingredient.id;\r\n          return material.id === ingredient.id;\r\n        });\r\n        console.log(rawMaterial, rawMaterial.cost);\r\n        if (rawMaterial) {\r\n          this.totalCost += ingredient.quantity * rawMaterial.cost;\r\n        }\r\n      }\r\n    });\r\n    // Calcular el costo de los empaques seleccionados\r\n    this.batchForm.get('packages')?.value.forEach((input: any) => {\r\n      if (input.selected) {\r\n        const packagingMaterial = this.avaibleInputs.find((material) => {\r\n          material.id === input.id;\r\n          return material.id === input.id;\r\n        });\r\n        if (packagingMaterial) {\r\n          this.totalCost += input.quantity * packagingMaterial.cost;\r\n        }\r\n      }\r\n    });\r\n\r\n    this.updatePriceValidator();\r\n  }\r\n\r\n  updatePriceValidator(): void {\r\n    const priceControl = this.batchForm.get('price');\r\n    if (priceControl) {\r\n      // Actualiza los validadores del control con el nuevo valor de totalCost\r\n      priceControl.setValidators([\r\n        Validators.required,\r\n        Validators.min(this.totalCost),\r\n      ]);\r\n\r\n      // Recalcula la validez del control para aplicar los nuevos validadores\r\n      priceControl.updateValueAndValidity();\r\n    }\r\n  }\r\n}\r\n","<app-navbar></app-navbar>\r\n<div\r\n  class=\"container-fluid d-flex flex-column justify-content-center align-items-center vh-100\"\r\n>\r\n  <div class=\"row justify-content-center align-items-center w-100\">\r\n    <div class=\"col-10 col-main\">\r\n      <form\r\n        #aux=\"ngForm\"\r\n        [formGroup]=\"batchForm\"\r\n        (ngSubmit)=\"onSubmit()\"\r\n        class=\"w-100\"\r\n      >\r\n        <div class=\"row header-row mb-4\">\r\n          <div class=\"col\">\r\n            <h1 class=\"view-title\">Nuevo Lote</h1>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-end\">\r\n            <button type=\"submit\" class=\"btn btn-custom\">GUARDAR</button>\r\n          </div>\r\n        </div>\r\n        <div class=\"row custom-row\">\r\n          <div class=\"col-5\">\r\n            <div class=\"form-group\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-3\">\r\n                    <label class=\"subtitle\" for=\"name\">Nombre</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"name\"\r\n                      name=\"name\"\r\n                      formControlName=\"name\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (batchForm.get('name')?.dirty ||\r\n                            batchForm.get('name')?.touched ||\r\n                            aux.submitted) &&\r\n                          batchForm.get('name')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (batchForm.get('name')?.invalid &&\r\n                          (batchForm.get('name')?.dirty ||\r\n                            batchForm.get('name')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div *ngIf=\"batchForm.get('name')?.errors?.['required']\">\r\n                        Nombre es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!batchForm.get('name')?.errors?.['required'] && batchForm.get('name')?.errors?.['pattern']\"\r\n                      >\r\n                        El nombre no debe contener números ni símbolos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-3\">\r\n                    <label for=\"category\" class=\"mb-0 subtitle\"\r\n                      >Categoria</label\r\n                    >\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <select\r\n                      id=\"category\"\r\n                      formControlName=\"category\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"category Selection\"\r\n                      placeholder=\"Seleccione un tipo\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (batchForm.get('category')?.dirty ||\r\n                            batchForm.get('category')?.touched ||\r\n                            aux.submitted) &&\r\n                          batchForm.get('category')?.invalid\r\n                      }\"\r\n                    >\r\n                      <option value=\"\" disabled selected>\r\n                        Selecciona una Categoria\r\n                      </option>\r\n                      <option *ngFor=\"let c of categories\" [value]=\"c\">\r\n                        {{ c }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                  <div class=\"col-2 d-flex justify-content-end\">\r\n                    <button\r\n                      type=\"button\"\r\n                      class=\"btn btn-custom\"\r\n                      (click)=\"openAddCategoryModal()\"\r\n                    >\r\n                      <i class=\"bi bi-plus-square-fill\"></i>\r\n                    </button>\r\n                  </div>\r\n                </div>\r\n                <div class=\"error-container\">\r\n                  <div\r\n                    *ngIf=\"aux.submitted && batchForm.get('category')?.invalid\"\r\n                    class=\"text-danger mt-1\"\r\n                  >\r\n                    <div\r\n                      *ngIf=\"batchForm.get('category')?.errors?.['required']\"\r\n                    >\r\n                      La Categoria es necesaria.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-3\">\r\n                    <label class=\"subtitle\" for=\"quantity\">Cantidad</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"quantity\"\r\n                      name=\"quantity\"\r\n                      formControlName=\"quantity\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (batchForm.get('quantity')?.dirty ||\r\n                            batchForm.get('quantity')?.touched ||\r\n                            aux.submitted) &&\r\n                          batchForm.get('quantity')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <label class=\"subtitle\" for=\"unit\">Unidad</label>\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <select\r\n                      id=\"unit\"\r\n                      formControlName=\"unit\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Unit Selection\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (batchForm.get('unit')?.dirty ||\r\n                            batchForm.get('unit')?.touched ||\r\n                            aux.submitted) &&\r\n                          batchForm.get('unit')?.invalid\r\n                      }\"\r\n                    >\r\n                      <option value=\"\" disabled selected>...</option>\r\n                      <option *ngFor=\"let unit of units\" [value]=\"unit\">\r\n                        {{ unit }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                </div>\r\n                <div class=\"row error-container align-items-center\">\r\n                  <div\r\n                    class=\"col-8 text-danger\"\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (batchForm.get('quantity')?.invalid &&\r\n                        (batchForm.get('quantity')?.dirty ||\r\n                          batchForm.get('quantity')?.touched))\r\n                    \"\r\n                  >\r\n                    <div\r\n                      *ngIf=\"batchForm.get('quantity')?.errors?.['required']\"\r\n                    >\r\n                      Es necesario ingresar una cantidad.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"!batchForm.get('quantity')?.errors?.['required'] && batchForm.get('quantity')?.errors?.['invalidQuantity']\"\r\n                    >\r\n                      La cantidad debe ser un número válido mayor a 0.\r\n                    </div>\r\n                  </div>\r\n                  <div\r\n                    class=\"col text-danger\"\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (batchForm.get('unit')?.invalid &&\r\n                        (batchForm.get('unit')?.dirty ||\r\n                          batchForm.get('unit')?.touched))\r\n                    \"\r\n                  >\r\n                    <div *ngIf=\"batchForm.get('unit')?.errors?.['required']\">\r\n                      Ingrese una unidad.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col\">\r\n                    <label class=\"subtitle\" for=\"expirationDate\"\r\n                      >Fecha de Vencimiento:</label\r\n                    >\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"datetime-local\"\r\n                      class=\"form-control\"\r\n                      id=\"expirationDate\"\r\n                      formControlName=\"expirationDate\"\r\n                      [attr.min]=\"minDate\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (batchForm.get('expirationDate')?.dirty ||\r\n                            batchForm.get('expirationDate')?.touched ||\r\n                            aux.submitted) &&\r\n                          batchForm.get('expirationDate')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted &&\r\n                        batchForm.get('expirationDate')?.invalid &&\r\n                        (batchForm.get('expirationDate')?.dirty ||\r\n                          batchForm.get('expirationDate')?.touched)\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Se necesita una Fecha de Vencimiento.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-3\">\r\n                    <label class=\"subtitle\" for=\"quantity\">Precio</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"number\"\r\n                      class=\"form-control\"\r\n                      id=\"price\"\r\n                      name=\"price\"\r\n                      formControlName=\"price\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (batchForm.get('price')?.dirty ||\r\n                            batchForm.get('price')?.touched ||\r\n                            aux.submitted) &&\r\n                          batchForm.get('price')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <label class=\"subtitle\" for=\"unit\">Costo</label>\r\n                  </div>\r\n                  <div class=\"col-2 cost\">\r\n                    {{ totalCost }}\r\n                  </div>\r\n                </div>\r\n                <div class=\"error-container\">\r\n                  <div\r\n                    *ngIf=\"\r\n                      (batchForm.get('price')?.dirty ||\r\n                        batchForm.get('price')?.touched ||\r\n                        aux.submitted) &&\r\n                      batchForm.get('price')?.invalid\r\n                    \"\r\n                    class=\"text-danger\"\r\n                  >\r\n                    El Precio debe ser igual o mayor al costo\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n          <div class=\"col col-border\">\r\n            <div class=\"row align-items-center\">\r\n              <div class=\"col\">\r\n                <label class=\"subtitle\">Ingredientes</label>\r\n              </div>\r\n              <div class=\"col d-flex justify-content-end\">\r\n                <button\r\n                  type=\"button\"\r\n                  class=\"btn btn-custom\"\r\n                  (click)=\"openRMFilters()\"\r\n                >\r\n                  <i class=\"bi bi-filter-square-fill\"></i>\r\n                </button>\r\n              </div>\r\n            </div>\r\n            <div formArrayName=\"ingredients\" class=\"ingredient-list\">\r\n              <div\r\n                *ngFor=\"\r\n                  let materialControl of selectedIngredients.controls;\r\n                  let i = index\r\n                \"\r\n                [formGroupName]=\"i\"\r\n                class=\"ingredient-item\"\r\n              >\r\n                <div class=\"form-check\">\r\n                  <input\r\n                    type=\"checkbox\"\r\n                    class=\"form-check-input\"\r\n                    formControlName=\"selected\"\r\n                    id=\"material-{{ i }}\"\r\n                  />\r\n                  <label class=\"form-check-label\" for=\"material-{{ i }}\">\r\n                    {{ avaibleRawMaterials[i].name }} (Disponible:\r\n                    {{ avaibleRawMaterials[i].quantity }}\r\n                    {{ avaibleRawMaterials[i].unit }})\r\n                  </label>\r\n                </div>\r\n                <div\r\n                  *ngIf=\"materialControl.get('selected')?.value\"\r\n                  class=\"form-group\"\r\n                >\r\n                  <label for=\"quantity-{{ i }}\">Cantidad:</label>\r\n                  <input\r\n                    type=\"number\"\r\n                    class=\"form-control\"\r\n                    formControlName=\"quantity\"\r\n                    id=\"quantity-{{ i }}\"\r\n                    (change)=\"calculateCost()\"\r\n                    [ngClass]=\"{\r\n                      'is-invalid':\r\n                        (batchForm.get('quantity')?.dirty ||\r\n                          batchForm.get('quantity')?.touched ||\r\n                          aux.submitted) &&\r\n                        batchForm.get('quantity')?.invalid\r\n                    }\"\r\n                  />\r\n                  <div\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (materialControl.get('quantity')?.invalid &&\r\n                        (materialControl.get('quantity')?.dirty ||\r\n                          materialControl.get('quantity')?.touched))\r\n                    \"\r\n                    class=\"text-danger\"\r\n                  >\r\n                    <div\r\n                      *ngIf=\"materialControl.get('quantity')?.errors?.['min']\"\r\n                    >\r\n                      La cantidad mínima es 1.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"materialControl.get('quantity')?.errors?.['max']\"\r\n                    >\r\n                      La cantidad máxima es\r\n                      {{ avaibleRawMaterials[i].quantity }}.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div\r\n              *ngIf=\"\r\n                (aux.submitted && batchForm.get('ingredients')?.invalid) ||\r\n                (batchForm.get('ingredients')?.touched &&\r\n                  batchForm.get('ingredients')?.invalid)\r\n              \"\r\n              class=\"text-danger mt-2\"\r\n            >\r\n              Debe seleccionarse al menos un ingrediente.\r\n            </div>\r\n          </div>\r\n\r\n          <div class=\"col col-border\">\r\n            <div class=\"row align-items-center\">\r\n              <div class=\"col\">\r\n                <label class=\"subtitle\">Insumos</label>\r\n              </div>\r\n              <div class=\"col d-flex justify-content-end\">\r\n                <button\r\n                  type=\"button\"\r\n                  class=\"btn btn-custom\"\r\n                  (click)=\"openIFilters()\"\r\n                >\r\n                  <i class=\"bi bi-filter-square-fill\"></i>\r\n                </button>\r\n              </div>\r\n            </div>\r\n            <div formArrayName=\"packages\" class=\"ingredient-list\">\r\n              <div\r\n                *ngFor=\"\r\n                  let materialControl of selectedInputs.controls;\r\n                  let i = index\r\n                \"\r\n                [formGroupName]=\"i\"\r\n                class=\"ingredient-item\"\r\n              >\r\n                <div class=\"form-check\">\r\n                  <input\r\n                    type=\"checkbox\"\r\n                    class=\"form-check-input\"\r\n                    formControlName=\"selected\"\r\n                    id=\"material-{{ i }}\"\r\n                  />\r\n                  <label class=\"form-check-label\" for=\"material-{{ i }}\">\r\n                    {{ avaibleInputs[i].name }} (Disponible:\r\n                    {{ avaibleInputs[i].quantity }} {{ avaibleInputs[i].unit }})\r\n                  </label>\r\n                </div>\r\n                <div\r\n                  *ngIf=\"materialControl.get('selected')?.value\"\r\n                  class=\"form-group\"\r\n                >\r\n                  <label for=\"quantity-{{ i }}\">Cantidad:</label>\r\n                  <input\r\n                    type=\"number\"\r\n                    class=\"form-control\"\r\n                    formControlName=\"quantity\"\r\n                    id=\"quantity-{{ i }}\"\r\n                    (change)=\"calculateCost()\"\r\n                    [ngClass]=\"{\r\n                      'is-invalid':\r\n                        (batchForm.get('quantity')?.dirty ||\r\n                          batchForm.get('quantity')?.touched ||\r\n                          aux.submitted) &&\r\n                        batchForm.get('quantity')?.invalid\r\n                    }\"\r\n                  />\r\n                  <div\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (materialControl.get('quantity')?.invalid &&\r\n                        (materialControl.get('quantity')?.dirty ||\r\n                          materialControl.get('quantity')?.touched))\r\n                    \"\r\n                    class=\"text-danger\"\r\n                  >\r\n                    <div\r\n                      *ngIf=\"materialControl.get('quantity')?.errors?.['min']\"\r\n                    >\r\n                      La cantidad mínima es 1.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"materialControl.get('quantity')?.errors?.['max']\"\r\n                    >\r\n                      La cantidad máxima es {{ avaibleInputs[i].quantity }}.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div\r\n              *ngIf=\"\r\n                (aux.submitted && batchForm.get('packages')?.invalid) ||\r\n                (batchForm.get('packages')?.touched &&\r\n                  batchForm.get('packages')?.invalid)\r\n              \"\r\n              class=\"text-danger mt-2\"\r\n            >\r\n              Debe seleccionarse al menos un insumo.\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"row custom-row\">\r\n          <hr />\r\n          <div class=\"col\">\r\n            <div class=\"form-group\">\r\n              <label class=\"subtitle\" for=\"description\">Descripción</label>\r\n              <!--textarea class=\"form-control\" id=\"description\" name=\"description\"\r\n\t\t\t\t\t\t\t\tformControlName=\"description\"></textarea-->\r\n              <p-editor\r\n                id=\"description\"\r\n                name=\"description\"\r\n                formControlName=\"description\"\r\n                class=\"form-control p-editor-custom\"\r\n                [style]=\"{ height: '240px' }\"\r\n                [ngClass]=\"{\r\n                  'is-invalid':\r\n                    (batchForm.get('description')?.dirty ||\r\n                      batchForm.get('description')?.touched ||\r\n                      aux.submitted) &&\r\n                    batchForm.get('description')?.invalid\r\n                }\"\r\n              >\r\n                <ng-template pTemplate=\"header\">\r\n                  <span class=\"ql-formats\">\r\n                    <select class=\"ql-header\" aria-label=\"Select header\">\r\n                      <option selected></option>\r\n                      <option value=\"1\">Heading 1</option>\r\n                      <option value=\"2\">Heading 2</option>\r\n                      <option value=\"3\">Heading 3</option>\r\n                    </select>\r\n                    <select class=\"ql-font\" aria-label=\"Select font\">\r\n                      <option selected></option>\r\n                      <option value=\"serif\">Serif</option>\r\n                      <option value=\"monospace\">Monospace</option>\r\n                    </select>\r\n                    <button class=\"ql-bold\" aria-label=\"Bold\"></button>\r\n                    <button class=\"ql-italic\" aria-label=\"Italic\"></button>\r\n                    <button\r\n                      class=\"ql-underline\"\r\n                      aria-label=\"Underline\"\r\n                    ></button>\r\n                    <select class=\"ql-align\" aria-label=\"Select align\">\r\n                      <option selected></option>\r\n                      <option value=\"center\">Center</option>\r\n                      <option value=\"right\">Right</option>\r\n                      <option value=\"justify\">Justify</option>\r\n                    </select>\r\n                    <button\r\n                      class=\"ql-list\"\r\n                      value=\"ordered\"\r\n                      aria-label=\"Ordered list\"\r\n                    ></button>\r\n                    <button\r\n                      class=\"ql-list\"\r\n                      value=\"bullet\"\r\n                      aria-label=\"Bullet list\"\r\n                    ></button>\r\n                    <button class=\"ql-link\" aria-label=\"Insert link\"></button>\r\n                  </span>\r\n                </ng-template>\r\n              </p-editor>\r\n            </div>\r\n            <div class=\"error-container\">\r\n              <div\r\n                *ngIf=\"\r\n                  (aux.submitted && batchForm.get('description')?.invalid) ||\r\n                  (batchForm.get('description')?.invalid &&\r\n                    (batchForm.get('description')?.dirty ||\r\n                      batchForm.get('description')?.touched))\r\n                \"\r\n                class=\"text-danger\"\r\n              >\r\n                Descripción es requerida.\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n<!-- Add Category Modal -->\r\n\r\n<div\r\n  *ngIf=\"addCategoryModal\"\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content\">\r\n      <div class=\"modal-header\">\r\n        <h1 class=\"modal-title fs-5\" id=\"confirmDeleteModalLabel\">\r\n          Agregar Tipo\r\n        </h1>\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn-close\"\r\n          (click)=\"closeAddCategoryModal()\"\r\n        ></button>\r\n      </div>\r\n      <div class=\"modal-body\">\r\n        <form [formGroup]=\"addCategoryForm\" (ngSubmit)=\"addCategory()\">\r\n          <div class=\"form-group\">\r\n            <label for=\"newCategory\">Nuevo Tipo</label>\r\n            <input\r\n              type=\"text\"\r\n              class=\"form-control\"\r\n              id=\"newCategory\"\r\n              formControlName=\"newCategory\"\r\n              placeholder=\"Ingrese el nuevo tipo\"\r\n            />\r\n            <div\r\n              *ngIf=\"\r\n                addCategoryForm.get('newCategory')?.invalid &&\r\n                (addCategoryForm.get('newCategory')?.dirty ||\r\n                  addCategoryForm.get('newType')?.touched)\r\n              \"\r\n              class=\"text-danger mt-1\"\r\n            >\r\n              <div\r\n                *ngIf=\"addCategoryForm.get('newCategory')?.errors?.['required']\"\r\n              >\r\n                La categoria es requerida.\r\n              </div>\r\n              <div\r\n                *ngIf=\"addCategoryForm.get('newCategory')?.errors?.['pattern']\"\r\n              >\r\n                La categoria no debe contener números ni símbolos.\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </form>\r\n      </div>\r\n      <div class=\"modal-footer\">\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn btn-secondary\"\r\n          (click)=\"closeAddCategoryModal()\"\r\n        >\r\n          CANCELAR\r\n        </button>\r\n        <button type=\"submit\" class=\"btn btn-success\" (click)=\"addCategory()\">\r\n          GUARDAR\r\n        </button>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</div>\r\n2\r\n","import { CanActivateFn } from '@angular/router';\r\nimport { inject } from '@angular/core';\r\nimport { AuthService } from '../services/auth/auth.service';\r\nimport { Router } from '@angular/router';\r\n\r\nexport const AuthGuard: CanActivateFn = (route, state) => {\r\n  const authService = inject(AuthService);\r\n  const router = inject(Router);\r\n  if (authService.isLoggedIn()) {\r\n    return true;\r\n  } else {\r\n    router.navigate(['/']);\r\n    return false;\r\n  }\r\n};\r\n","import { Component, input, OnInit } from '@angular/core';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { CommonModule } from '@angular/common';\r\nimport {\r\n  ReactiveFormsModule,\r\n  FormBuilder,\r\n  FormGroup,\r\n  Validators,\r\n  FormArray,\r\n} from '@angular/forms';\r\nimport { NavbarComponent } from '../../../shared/components/navbar/navbar.component';\r\nimport { Units } from '../../../shared/enums/units.enum';\r\nimport { CategoriesService } from '../../../core/services/enums/categories.service';\r\nimport { RawMaterialsService } from '../../../core/services/api/rawmaterials.service';\r\nimport { InputsService } from '../../../core/services/api/inputs.service';\r\nimport { EditorModule } from 'primeng/editor';\r\nimport { atLeastOneCheckedValidator } from '../../../core/utils/validators';\r\nimport { BatchesService } from '../../../core/services/api/batches.service';\r\nimport {\r\n  formatDate,\r\n  formatDateString,\r\n} from '../../../core/utils/mapping.utils';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { Cons, last } from 'rxjs';\r\n@Component({\r\n  selector: 'app-modify-batch',\r\n  standalone: true,\r\n  imports: [CommonModule, ReactiveFormsModule, NavbarComponent, EditorModule],\r\n  templateUrl: './modify-batch.component.html',\r\n  styleUrl: './modify-batch.component.scss',\r\n})\r\nexport class ModifyBatchComponent implements OnInit {\r\n  batchId: number = 0;\r\n  batchForm: FormGroup;\r\n  addCategoryForm: FormGroup;\r\n  batch: TableData = {};\r\n  categories: string[] = [];\r\n  units: string[] = [];\r\n  minDate: string = '';\r\n  addCategoryModal: boolean = false;\r\n  ad: any;\r\n  lmd: any;\r\n\r\n  avaibleRawMaterials: any[] = [];\r\n  avaibleInputs: any[] = [];\r\n\r\n  preSelectedIngredients: element[] = [];\r\n  preSelectedIngredientsQuantity: any[] = [];\r\n  preSelectedInputs: element[] = [];\r\n  totalCost: number = 0;\r\n  constructor(\r\n    private formbuild: FormBuilder,\r\n    private CategoriesService: CategoriesService,\r\n    private RawMaterialsService: RawMaterialsService,\r\n    private InputsService: InputsService,\r\n    private BatchesService: BatchesService,\r\n    private router: Router,\r\n    private activeRoute: ActivatedRoute\r\n  ) {\r\n    this.batchForm = this.formbuild.group({\r\n      name: ['', [Validators.required, Validators.pattern('[a-zA-Z ]*')]],\r\n      category: ['', [Validators.required]],\r\n      quantity: ['', [Validators.required, Validators.pattern('[0-9]*')]],\r\n      unit: ['', [Validators.required]],\r\n      expirationDate: [''],\r\n      description: [''],\r\n      price: [0, [Validators.required, Validators.min(this.totalCost)]],\r\n      ingredients: this.formbuild.array([], {\r\n        validators: atLeastOneCheckedValidator(),\r\n      }),\r\n      packages: this.formbuild.array([], {\r\n        validators: atLeastOneCheckedValidator(),\r\n      }),\r\n    });\r\n    this.addCategoryForm = this.formbuild.group({\r\n      newCategory: [\r\n        '',\r\n        [Validators.required, Validators.pattern('[a-zA-Z ]*')],\r\n      ],\r\n    });\r\n  }\r\n\r\n  ngOnInit(): void {\r\n    this.getBatch();\r\n    this.getRawMaterials();\r\n    this.getInputs();\r\n    this.CategoriesService.chargeCategories();\r\n    this.getCategories();\r\n    this.units = Object.values(Units);\r\n    const now = new Date();\r\n    this.minDate = now.toISOString().slice(0, 16); // Formato YYYY-MM-DDTHH:MM\r\n\r\n    console.log('Preselected Ingredients: ', this.preSelectedIngredients);\r\n    console.log('Preselected Inputs: ', this.preSelectedInputs);\r\n  }\r\n\r\n  addCategory(): void {\r\n    if (this.addCategoryForm.valid) {\r\n      this.categories.push(this.addCategoryForm.value.newCategory);\r\n      this.addCategoryForm.reset();\r\n      this.addCategoryModal = false;\r\n    } else {\r\n      console.log('Formulario de categoria inválido.');\r\n    }\r\n  }\r\n\r\n \r\n  onSubmit(): void {\r\n    console.log(this.batchForm);\r\n    if (this.batchForm.valid) {\r\n      const selectedIngredientControls =\r\n        this.batchForm.get('ingredients')?.value;\r\n      //console.log('FSelected Ingredients: ', selectedIngredientControls);\r\n      const selectedInputControls = this.batchForm.get('packages')?.value;\r\n      //console.log('FSelected Inputs: ', selectedInputControls);\r\n\r\n      const selectedIngredientIds = selectedIngredientControls\r\n        .filter((ingredient: any) => ingredient.selected)\r\n        .map((ingredient: any) => ingredient.id);\r\n      //console.log('FSelected Ingredients: ', selectedIngredientIds);\r\n      const selectedInputIds = selectedInputControls\r\n        .filter((input: any) => input.selected)\r\n        .map((input: any) => input.id);\r\n      //console.log('FSelected Inputs: ', selectedInputIds);\r\n      // Ingredientes y empaques seleccionados y deseleccionados\r\n      const updatedIngredients = this.avaibleRawMaterials.filter(\r\n        (material: any) => selectedIngredientIds.includes(material.id)\r\n      );\r\n      //console.log('FUpdated Ingredients: ', updatedIngredients);\r\n      const updatedInputs = this.avaibleInputs.filter((material: any) =>\r\n        selectedInputIds.includes(material.id)\r\n      );\r\n      //console.log('FUpdated Inputs: ', updatedInputs);\r\n\r\n      const ingredientsQuantity = selectedIngredientControls\r\n        .filter((ingredient: any) => ingredient.selected)\r\n        .map((ingredient: any) => `${ingredient.id},${ingredient.quantity}`)\r\n        .join(';');\r\n      //console.log('IngredientesQ: ', ingredientsQuantity);\r\n      const inputsQuantity = selectedInputControls\r\n        .filter((input: any) => input.selected)\r\n        .map((input: any) => `${input.id},${input.quantity}`)\r\n        .join(';');\r\n      //console.log('EmpaquesQ: ', inputsQuantity)\r\n      // Lote actualizado\r\n      const batch = {\r\n        id: this.batchId,\r\n        name: this.batchForm.get('name')?.value,\r\n        category: this.batchForm.get('category')?.value,\r\n        quantity: this.batchForm.get('quantity')?.value,\r\n        unit: this.batchForm.get('unit')?.value,\r\n        expiration: this.batchForm.get('expirationDate')?.value,\r\n        creationDate: this.ad,\r\n        lastModificationDate: this.lmd,\r\n        description: this.batchForm.get('description')?.value || '',\r\n        batchIngredients: updatedIngredients,\r\n        batchIngredientsQuantity: ingredientsQuantity,\r\n        batchPackagingElements: updatedInputs,\r\n        batchPackagingElementsQuantity: inputsQuantity,\r\n        price: this.batchForm.get('price')?.value,\r\n      };\r\n      console.log('Batch: ', batch);\r\n\r\n      console.log('BatchJS: ', JSON.stringify(batch));\r\n\r\n      this.BatchesService.updateBatch(batch).subscribe(\r\n        (data) => {\r\n          console.log('Lote creado correctamente.');\r\n\r\n          // Promesas para actualizar ingredientes seleccionados\r\n          const ingredientUpdatePromises = this.updateSelectedIngredients(\r\n            selectedIngredientControls\r\n          );\r\n\r\n          // Promesas para actualizar empaques seleccionados\r\n          const inputUpdatePromises = this.updateSelectedInputs(\r\n            selectedInputControls\r\n          );\r\n\r\n          // Promesas para restaurar stock de ingredientes deseleccionados\r\n          const ingredientRestorePromises = this.restoreDeselectedIngredients(\r\n            selectedIngredientControls\r\n          );\r\n\r\n          // Promesas para restaurar stock de empaques deseleccionados\r\n          const inputRestorePromises = this.restoreDeselectedInputs(\r\n            selectedInputControls\r\n          );\r\n\r\n          // Ejecutar todas las promesas\r\n          Promise.all([\r\n            ...ingredientUpdatePromises,\r\n            ...inputUpdatePromises,\r\n            ...ingredientRestorePromises,\r\n            ...inputRestorePromises,\r\n          ])\r\n            .then(() => {\r\n              console.log('Todos los materiales actualizados correctamente.');\r\n            })\r\n            .catch((error) => {\r\n              console.error('Error al actualizar materiales: ', error);\r\n            });\r\n\r\n          this.router.navigate(['/production']);\r\n        },\r\n        (error) => {\r\n          console.error(error);\r\n        }\r\n      );\r\n    } else {\r\n      console.log('Formulario de lote inválido.');\r\n    }\r\n  }\r\n\r\n  updateSelectedIngredients(selectedIngredientControls: any[]): Promise<any>[] {\r\n    return selectedIngredientControls.map((field: any) => {\r\n      const ingredient = this.avaibleRawMaterials.find(\r\n        (material) => material.id === field.id\r\n      );\r\n      console.log('Selected Ingredient: ', field);\r\n      console.log('Ingredient base: ', ingredient);\r\n      const originalQuantity = Number(\r\n        this.preSelectedIngredients[field.id] || 0\r\n      );\r\n      console.log('Original Quantity: ', originalQuantity);\r\n      if (ingredient) {\r\n        const newQuantity = Number(field.quantity);\r\n        console.log('New Quantity: ', newQuantity);\r\n        if (newQuantity !== originalQuantity) {\r\n          const difference = newQuantity - originalQuantity;\r\n          console.log('Difference: ', difference);\r\n          if (difference > 0) {\r\n            // Restar diferencia al stock\r\n            ingredient.quantity -= difference;\r\n          } else {\r\n            // Sumar diferencia al stock\r\n            ingredient.quantity += Math.abs(difference);\r\n          }\r\n          console.log('New Ingredient Quantity: ', ingredient.quantity);\r\n          return this.RawMaterialsService.updateRawMaterial(\r\n            ingredient\r\n          ).toPromise();\r\n        }\r\n      }\r\n      return Promise.resolve(null);\r\n    });\r\n  }\r\n\r\n  updateSelectedInputs(selectedInputControls: any[]): Promise<any>[] {\r\n    return selectedInputControls.map((field: any) => {\r\n      const input = this.avaibleInputs.find(\r\n        (material) => material.id === field.id\r\n      );\r\n      const originalQuantity = Number(this.preSelectedInputs[field.id] || 0);\r\n\r\n      if (input) {\r\n        const newQuantity = Number(field.quantity);\r\n\r\n        if (newQuantity !== originalQuantity) {\r\n          const difference = newQuantity - originalQuantity;\r\n\r\n          if (difference > 0) {\r\n            // Restar diferencia al stock\r\n            input.quantity -= difference;\r\n          } else {\r\n            // Sumar diferencia al stock\r\n            input.quantity += Math.abs(difference);\r\n          }\r\n\r\n          return this.InputsService.updateInput(input).toPromise();\r\n        }\r\n      }\r\n      return Promise.resolve(null);\r\n    });\r\n  }\r\n\r\n  restoreDeselectedIngredients(\r\n    selectedIngredientControls: any[]\r\n  ): Promise<any>[] {\r\n    return this.avaibleRawMaterials\r\n      .filter(\r\n        (material: any) =>\r\n          !selectedIngredientControls.find(\r\n            (control: any) => control.id === material.id\r\n          )\r\n      )\r\n      .map((deselected: any) => {\r\n        const originalQuantity =\r\n          this.preSelectedIngredients[deselected.id] || 0;\r\n        deselected.quantity += originalQuantity;\r\n        return this.RawMaterialsService.updateRawMaterial(\r\n          deselected\r\n        ).toPromise();\r\n      });\r\n  }\r\n\r\n  restoreDeselectedInputs(selectedInputControls: any[]): Promise<any>[] {\r\n    return this.avaibleInputs\r\n      .filter(\r\n        (material: any) =>\r\n          !selectedInputControls.find(\r\n            (control: any) => control.id === material.id\r\n          )\r\n      )\r\n      .map((deselected: any) => {\r\n        const originalQuantity = this.preSelectedInputs[deselected.id] || 0;\r\n        deselected.quantity += originalQuantity;\r\n        return this.InputsService.updateInput(deselected).toPromise();\r\n      });\r\n  }\r\n\r\n  openAddCategoryModal() {\r\n    this.addCategoryModal = true;\r\n  }\r\n\r\n  closeAddCategoryModal() {\r\n    this.addCategoryModal = false;\r\n  }\r\n\r\n  get selectedIngredients(): FormArray {\r\n    return this.batchForm.get('ingredients') as FormArray;\r\n  }\r\n\r\n  private addRawMaterialControls(): void {\r\n    while (this.selectedIngredients.length) {\r\n      this.selectedIngredients.removeAt(0);\r\n    } // Asegúrate de eliminar controles antiguos\r\n\r\n    this.avaibleRawMaterials.forEach((material) => {\r\n      this.selectedIngredients.push(\r\n        this.formbuild.group({\r\n          id: [material.id],\r\n          name: [material.name],\r\n          selected: [false],\r\n          quantity: [\r\n            null,\r\n            [Validators.min(1), Validators.max(material.availableQuantity)],\r\n          ],\r\n        })\r\n      );\r\n    });\r\n  }\r\n\r\n  openRMFilters() {}\r\n\r\n  get selectedInputs(): FormArray {\r\n    return this.batchForm.get('packages') as FormArray;\r\n  }\r\n\r\n  private addInputsControls(): void {\r\n    while (this.selectedInputs.length) {\r\n      this.selectedInputs.removeAt(0);\r\n    }\r\n    this.avaibleInputs.forEach((material) => {\r\n      this.selectedInputs.push(\r\n        this.formbuild.group({\r\n          id: [material.id],\r\n          name: [material.name],\r\n          selected: [false],\r\n          quantity: [\r\n            null,\r\n            [Validators.min(1), Validators.max(material.availableQuantity)],\r\n          ],\r\n        })\r\n      );\r\n    });\r\n  }\r\n\r\n  openIFilters() {}\r\n\r\n  private getCategories(): void {\r\n    this.CategoriesService.getCategories().subscribe(\r\n      (data) => {\r\n        this.categories = data.sort((a, b) => a.localeCompare(b));\r\n      },\r\n      (error) => {\r\n        console.error(error);\r\n      }\r\n    );\r\n  }\r\n\r\n  private getBatch(): void {\r\n    this.batchId = +(this.activeRoute.snapshot.paramMap.get('id') ?? 0);\r\n    this.BatchesService.getBatchById(this.batchId).subscribe(\r\n      (res) => {\r\n        console.log(res);\r\n        this.batch = res as TableData;\r\n        console.log(this.batch);\r\n        // Patch general batch data\r\n        this.batchForm.patchValue({\r\n          name: res.name,\r\n          category: res.category,\r\n          quantity: res.quantity,\r\n          unit: res.unit,\r\n          expirationDate: formatDate(res.expiration),\r\n          description: res.description,\r\n          price: res.price,\r\n        });\r\n        this.ad = res.creationDate;\r\n        this.lmd = res.lastModificationDate;\r\n\r\n        // Convert quantities from string to array\r\n        /*const ingredientQuantities = res.batchIngredientsQuantity\r\n          .split(',')\r\n          .map((q: string) => parseFloat(q));\r\n        const packagingQuantities = res.batchPackagingElementsQuantity\r\n          .split(',')\r\n          .map((q: string) => parseFloat(q));\r\n        */\r\n        const ingredientQuantities = res.batchIngredientsQuantity\r\n          .split(';')\r\n          .reduce((acc: { [key: string]: number }, pair: string) => {\r\n            const [id, quantity] = pair.split(','); // separate id and quantity\r\n            acc[id] = parseFloat(quantity); // store id as key and quantity as value\r\n            return acc;\r\n          }, {});\r\n\r\n        const packagingQuantities = res.batchPackagingElementsQuantity\r\n          .split(';')\r\n          .reduce((acc: { [key: string]: number }, pair: string) => {\r\n            const [id, quantity] = pair.split(','); // separate id and quantity\r\n            acc[id] = parseFloat(quantity); // store id as key and quantity as value\r\n            return acc;\r\n          }, {});\r\n\r\n        this.totalCost = res.price;\r\n        // Patch ingredients FormArray with batchIngredients and ingredientQuantities\r\n        this.getRawMaterials().then(() => {\r\n          const ingredientsArray = this.batchForm.get(\r\n            'ingredients'\r\n          ) as FormArray;\r\n          /*res.batchIngredients.forEach((ingredient: any, index: number) => {\r\n            const control = ingredientsArray.controls.find(\r\n              (ctrl) => ctrl.value.id === ingredient.id\r\n            );\r\n            if (control) {\r\n              control.patchValue({\r\n                selected: true,\r\n                quantity:\r\n                  ingredientQuantities[index] !== undefined\r\n                    ? ingredientQuantities[index]\r\n                    : null,\r\n              });\r\n              this.preSelectedIngredients[ingredient.id] =\r\n                ingredientQuantities[index];\r\n            }\r\n          }*/\r\n          res.batchIngredients.forEach((ingredient: any) =>\r\n          {\r\n            const control = ingredientsArray.controls.find((ctrl) => ctrl.value.id === ingredient.id);\r\n            if(control){\r\n              control.patchValue({\r\n                selected: true,\r\n                quantity: ingredientQuantities[ingredient.id] !== undefined ? ingredientQuantities[ingredient.id] : null,\r\n              });\r\n              this.preSelectedIngredients[ingredient.id] = ingredientQuantities[ingredient.id];\r\n            }\r\n          });\r\n        });\r\n\r\n        // Patch packages FormArray with batchPackagingElements and packagingQuantities\r\n        this.getInputs().then(() => {\r\n          const packagesArray = this.batchForm.get('packages') as FormArray;\r\n          /*res.batchPackagingElements.forEach(\r\n            (packaging: any, index: number) => {\r\n              const control = packagesArray.controls.find(\r\n                (ctrl) => ctrl.value.id === packaging.id\r\n              );\r\n              if (control) {\r\n                control.patchValue({\r\n                  selected: true,\r\n                  quantity:\r\n                    packagingQuantities[index] !== undefined\r\n                      ? packagingQuantities[index]\r\n                      : null,\r\n                });\r\n                this.preSelectedInputs[packaging.id] =\r\n                  packagingQuantities[index];\r\n              }\r\n            }*/\r\n          res.batchPackagingElements.forEach((packaging: any) => {\r\n            const control = packagesArray.controls.find((ctrl) => ctrl.value.id === packaging.id);\r\n            if(control){\r\n              control.patchValue({\r\n                selected: true,\r\n                quantity: packagingQuantities[packaging.id] !== undefined ? packagingQuantities[packaging.id] : null,\r\n              });\r\n              this.preSelectedInputs[packaging.id] = packagingQuantities[packaging.id];\r\n            }\r\n          }\r\n          );\r\n        });\r\n      },\r\n      (error) => {\r\n        console.error(error);\r\n      }\r\n    );\r\n  }\r\n\r\n  private getRawMaterials(): Promise<void> {\r\n    return new Promise((resolve, reject) => {\r\n      this.RawMaterialsService.getRawMaterials().subscribe(\r\n        (data: any[]) => {\r\n          this.avaibleRawMaterials = data.sort((a, b) => a.name.localeCompare(b.name));\r\n          this.addRawMaterialControls();\r\n          resolve();\r\n        },\r\n        (error) => {\r\n          console.error(error);\r\n          reject(error);\r\n        }\r\n      );\r\n    });\r\n  }\r\n  private getInputs(): Promise<void> {\r\n    return new Promise((resolve, reject) => {\r\n      this.InputsService.getInputs().subscribe(\r\n        (data: any[]) => {\r\n          this.avaibleInputs = data.sort((a, b) => a.name.localeCompare(b.name));\r\n          this.addInputsControls();\r\n          resolve();\r\n        },\r\n        (error) => {\r\n          console.error(error);\r\n          reject(error);\r\n        }\r\n      );\r\n    });\r\n  }\r\n  /*\r\n  private updateElement(\r\n    element: any,\r\n    actualQuantity: any,\r\n    oldQuantity: any\r\n  ): any {\r\n    if (oldQuantity === actualQuantity) {\r\n      return element.quantity;\r\n    }\r\n    if (actualQuantity > oldQuantity) {\r\n      return (element.quantity -= actualQuantity - oldQuantity);\r\n    } else {\r\n      if (actualQuantity < oldQuantity) {\r\n        return (element.quantity += oldQuantity - actualQuantity);\r\n      }\r\n    }\r\n  }\r\n    **/\r\n  private updateElement(\r\n    stock: any,\r\n    actualQuantity: any,\r\n    oldQuantity: any\r\n  ): number {\r\n    if (oldQuantity === actualQuantity) {\r\n      return stock.quantity;\r\n    } else if (actualQuantity > oldQuantity) {\r\n      return stock.quantity - (actualQuantity - oldQuantity);\r\n    } else {\r\n      return stock.quantity + (oldQuantity - actualQuantity);\r\n    }\r\n  }\r\n\r\n  calculateCost(): void {\r\n    this.totalCost = 0; // Reinicia el costo total\r\n    this.batchForm.get('ingredients')?.value.forEach((ingredient: any) => {\r\n      console.log(ingredient);\r\n      if (ingredient.selected) {\r\n        const rawMaterial = this.avaibleRawMaterials.find((material) => {\r\n          console.log(material.id, ingredient.id);\r\n          console.log(material.id === ingredient.id);\r\n          material.id === ingredient.id;\r\n          return material.id === ingredient.id;\r\n        });\r\n        console.log(rawMaterial, rawMaterial.cost);\r\n        if (rawMaterial) {\r\n          this.totalCost += ingredient.quantity * rawMaterial.cost;\r\n        }\r\n      }\r\n    });\r\n    // Calcular el costo de los empaques seleccionados\r\n    this.batchForm.get('packages')?.value.forEach((input: any) => {\r\n      if (input.selected) {\r\n        const packagingMaterial = this.avaibleInputs.find((material) => {\r\n          material.id === input.id;\r\n          return material.id === input.id;\r\n        });\r\n        if (packagingMaterial) {\r\n          this.totalCost += input.quantity * packagingMaterial.cost;\r\n        }\r\n      }\r\n    });\r\n\r\n    this.updatePriceValidator();\r\n  }\r\n\r\n  updatePriceValidator(): void {\r\n    const priceControl = this.batchForm.get('price');\r\n    if (priceControl) {\r\n      // Actualiza los validadores del control con el nuevo valor de totalCost\r\n      priceControl.setValidators([\r\n        Validators.required,\r\n        Validators.min(this.totalCost),\r\n      ]);\r\n\r\n      // Recalcula la validez del control para aplicar los nuevos validadores\r\n      priceControl.updateValueAndValidity();\r\n    }\r\n  }\r\n}\r\n\r\ninterface element {\r\n  [key: number]: number;\r\n}\r\n","<app-navbar></app-navbar>\r\n<div\r\n  class=\"container-fluid d-flex flex-column justify-content-center align-items-center vh-100\"\r\n>\r\n  <div class=\"row justify-content-center align-items-center w-100\">\r\n    <div class=\"col-10 col-main\">\r\n      <form\r\n        #aux=\"ngForm\"\r\n        [formGroup]=\"batchForm\"\r\n        (ngSubmit)=\"onSubmit()\"\r\n        class=\"w-100\"\r\n      >\r\n        <div class=\"row header-row mb-4\">\r\n          <div class=\"col\">\r\n            <h1 class=\"view-title\">Modificar Lote</h1>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-end\">\r\n            <button type=\"submit\" class=\"btn btn-custom\">GUARDAR</button>\r\n          </div>\r\n        </div>\r\n        <div class=\"row custom-row\">\r\n          <div class=\"col-5\">\r\n            <div class=\"form-group\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-3\">\r\n                    <label class=\"subtitle\" for=\"name\">Nombre</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"name\"\r\n                      name=\"name\"\r\n                      formControlName=\"name\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (batchForm.get('name')?.dirty ||\r\n                            batchForm.get('name')?.touched ||\r\n                            aux.submitted) &&\r\n                          batchForm.get('name')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (batchForm.get('name')?.invalid &&\r\n                          (batchForm.get('name')?.dirty ||\r\n                            batchForm.get('name')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div *ngIf=\"batchForm.get('name')?.errors?.['required']\">\r\n                        Nombre es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!batchForm.get('name')?.errors?.['required'] && batchForm.get('name')?.errors?.['pattern']\"\r\n                      >\r\n                        El nombre no debe contener números ni símbolos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-3\">\r\n                    <label for=\"category\" class=\"mb-0 subtitle\"\r\n                      >Categoria</label\r\n                    >\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <select\r\n                      id=\"category\"\r\n                      formControlName=\"category\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"category Selection\"\r\n                      placeholder=\"Seleccione un tipo\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (batchForm.get('category')?.dirty ||\r\n                            batchForm.get('category')?.touched ||\r\n                            aux.submitted) &&\r\n                          batchForm.get('category')?.invalid\r\n                      }\"\r\n                    >\r\n                      <option value=\"\" disabled selected>\r\n                        Selecciona una Categoria\r\n                      </option>\r\n                      <option *ngFor=\"let c of categories\" [value]=\"c\">\r\n                        {{ c }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                  <div class=\"col-2 d-flex justify-content-end\">\r\n                    <button\r\n                      type=\"button\"\r\n                      class=\"btn btn-custom\"\r\n                      (click)=\"openAddCategoryModal()\"\r\n                    >\r\n                      <i class=\"bi bi-plus-square-fill\"></i>\r\n                    </button>\r\n                  </div>\r\n                </div>\r\n                <div class=\"error-container\">\r\n                  <div\r\n                    *ngIf=\"aux.submitted && batchForm.get('category')?.invalid\"\r\n                    class=\"text-danger mt-1\"\r\n                  >\r\n                    <div\r\n                      *ngIf=\"batchForm.get('category')?.errors?.['required']\"\r\n                    >\r\n                      La Categoria es necesaria.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-3\">\r\n                    <label class=\"subtitle\" for=\"quantity\">Cantidad</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"quantity\"\r\n                      name=\"quantity\"\r\n                      formControlName=\"quantity\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (batchForm.get('quantity')?.dirty ||\r\n                            batchForm.get('quantity')?.touched ||\r\n                            aux.submitted) &&\r\n                          batchForm.get('quantity')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <label class=\"subtitle\" for=\"unit\">Unidad</label>\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <select\r\n                      id=\"unit\"\r\n                      formControlName=\"unit\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Unit Selection\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (batchForm.get('unit')?.dirty ||\r\n                            batchForm.get('unit')?.touched ||\r\n                            aux.submitted) &&\r\n                          batchForm.get('unit')?.invalid\r\n                      }\"\r\n                    >\r\n                      <option value=\"\" disabled selected>...</option>\r\n                      <option *ngFor=\"let unit of units\" [value]=\"unit\">\r\n                        {{ unit }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                </div>\r\n                <div class=\"row error-container align-items-center\">\r\n                  <div\r\n                    class=\"col-8 text-danger\"\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (batchForm.get('quantity')?.invalid &&\r\n                        (batchForm.get('quantity')?.dirty ||\r\n                          batchForm.get('quantity')?.touched))\r\n                    \"\r\n                  >\r\n                    <div\r\n                      *ngIf=\"batchForm.get('quantity')?.errors?.['required']\"\r\n                    >\r\n                      Es necesario ingresar una cantidad.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"!batchForm.get('quantity')?.errors?.['required'] && batchForm.get('quantity')?.errors?.['invalidQuantity']\"\r\n                    >\r\n                      La cantidad debe ser un número válido mayor a 0.\r\n                    </div>\r\n                  </div>\r\n                  <div\r\n                    class=\"col text-danger\"\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (batchForm.get('unit')?.invalid &&\r\n                        (batchForm.get('unit')?.dirty ||\r\n                          batchForm.get('unit')?.touched))\r\n                    \"\r\n                  >\r\n                    <div *ngIf=\"batchForm.get('unit')?.errors?.['required']\">\r\n                      Ingrese una unidad.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col\">\r\n                    <label class=\"subtitle\" for=\"expirationDate\"\r\n                      >Fecha de Vencimiento:</label\r\n                    >\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"datetime-local\"\r\n                      class=\"form-control\"\r\n                      id=\"expirationDate\"\r\n                      formControlName=\"expirationDate\"\r\n                      [attr.min]=\"minDate\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (batchForm.get('expirationDate')?.dirty ||\r\n                            batchForm.get('expirationDate')?.touched ||\r\n                            aux.submitted) &&\r\n                          batchForm.get('expirationDate')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted &&\r\n                        batchForm.get('expirationDate')?.invalid &&\r\n                          (batchForm.get('expirationDate')?.dirty ||\r\n                            batchForm.get('expirationDate')?.touched)\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Se necesita una Fecha de Vencimiento.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-3\">\r\n                    <label class=\"subtitle\" for=\"quantity\">Precio</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"number\"\r\n                      class=\"form-control\"\r\n                      id=\"price\"\r\n                      name=\"price\"\r\n                      formControlName=\"price\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (batchForm.get('price')?.dirty ||\r\n                            batchForm.get('price')?.touched ||\r\n                            aux.submitted) &&\r\n                          batchForm.get('price')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <label class=\"subtitle\" for=\"unit\">Costo</label>\r\n                  </div>\r\n                  <div class=\"col-2 cost\">\r\n                    {{ totalCost }}\r\n                  </div>\r\n                </div>\r\n                <div class=\"error-container\">\r\n                  <div\r\n                    *ngIf=\"\r\n                      (batchForm.get('price')?.dirty ||\r\n                        batchForm.get('price')?.touched ||\r\n                        aux.submitted) &&\r\n                      batchForm.get('price')?.invalid\r\n                    \"\r\n                    class=\"text-danger\"\r\n                  >\r\n                    El Precio debe ser igual o mayor al costo\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n          <div class=\"col col-border\">\r\n            <div class=\"row align-items-center\">\r\n              <div class=\"col\">\r\n                <label class=\"subtitle\">Ingredientes</label>\r\n              </div>\r\n              <div class=\"col d-flex justify-content-end\">\r\n                <button\r\n                  type=\"button\"\r\n                  class=\"btn btn-custom\"\r\n                  (click)=\"openRMFilters()\"\r\n                >\r\n                  <i class=\"bi bi-filter-square-fill\"></i>\r\n                </button>\r\n              </div>\r\n            </div>\r\n            <div formArrayName=\"ingredients\" class=\"ingredient-list\">\r\n              <div\r\n                *ngFor=\"\r\n                  let materialControl of selectedIngredients.controls;\r\n                  let i = index\r\n                \"\r\n                [formGroupName]=\"i\"\r\n                class=\"ingredient-item\"\r\n              >\r\n                <div class=\"form-check\">\r\n                  <input\r\n                    type=\"checkbox\"\r\n                    class=\"form-check-input\"\r\n                    formControlName=\"selected\"\r\n                    id=\"material-{{ i }}\"\r\n                  />\r\n                  <label class=\"form-check-label\" for=\"material-{{ i }}\">\r\n                    {{ avaibleRawMaterials[i].name }} (Disponible:\r\n                    {{ avaibleRawMaterials[i].quantity }}\r\n                    {{ avaibleRawMaterials[i].unit }})\r\n                  </label>\r\n                </div>\r\n                <div\r\n                  *ngIf=\"materialControl.get('selected')?.value\"\r\n                  class=\"form-group\"\r\n                >\r\n                  <label for=\"quantity-{{ i }}\">Cantidad:</label>\r\n                  <input\r\n                    type=\"number\"\r\n                    class=\"form-control\"\r\n                    formControlName=\"quantity\"\r\n                    id=\"quantity-{{ i }}\"\r\n                    (change)=\"calculateCost()\"\r\n                    [ngClass]=\"{\r\n                      'is-invalid':\r\n                        (batchForm.get('quantity')?.dirty ||\r\n                          batchForm.get('quantity')?.touched ||\r\n                          aux.submitted) &&\r\n                        batchForm.get('quantity')?.invalid\r\n                    }\"\r\n                  />\r\n                  <div\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (materialControl.get('quantity')?.invalid &&\r\n                        (materialControl.get('quantity')?.dirty ||\r\n                          materialControl.get('quantity')?.touched))\r\n                    \"\r\n                    class=\"text-danger\"\r\n                  >\r\n                    <div\r\n                      *ngIf=\"materialControl.get('quantity')?.errors?.['min']\"\r\n                    >\r\n                      La cantidad mínima es 1.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"materialControl.get('quantity')?.errors?.['max']\"\r\n                    >\r\n                      La cantidad máxima es\r\n                      {{ avaibleRawMaterials[i].quantity }}.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div\r\n              *ngIf=\"\r\n                (aux.submitted && batchForm.get('ingredients')?.invalid) ||\r\n                (batchForm.get('ingredients')?.touched &&\r\n                  batchForm.get('ingredients')?.invalid)\r\n              \"\r\n              class=\"text-danger mt-2\"\r\n            >\r\n              Debe seleccionarse al menos un ingrediente.\r\n            </div>\r\n          </div>\r\n\r\n          <div class=\"col col-border\">\r\n            <div class=\"row align-items-center\">\r\n              <div class=\"col\">\r\n                <label class=\"subtitle\">Insumos</label>\r\n              </div>\r\n              <div class=\"col d-flex justify-content-end\">\r\n                <button\r\n                  type=\"button\"\r\n                  class=\"btn btn-custom\"\r\n                  (click)=\"openIFilters()\"\r\n                >\r\n                  <i class=\"bi bi-filter-square-fill\"></i>\r\n                </button>\r\n              </div>\r\n            </div>\r\n            <div formArrayName=\"packages\" class=\"ingredient-list\">\r\n              <div\r\n                *ngFor=\"\r\n                  let materialControl of selectedInputs.controls;\r\n                  let i = index\r\n                \"\r\n                [formGroupName]=\"i\"\r\n                class=\"ingredient-item\"\r\n              >\r\n                <div class=\"form-check\">\r\n                  <input\r\n                    type=\"checkbox\"\r\n                    class=\"form-check-input\"\r\n                    formControlName=\"selected\"\r\n                    id=\"material-{{ i }}\"\r\n                  />\r\n                  <label class=\"form-check-label\" for=\"material-{{ i }}\">\r\n                    {{ avaibleInputs[i].name }} (Disponible:\r\n                    {{ avaibleInputs[i].quantity }} {{ avaibleInputs[i].unit }})\r\n                  </label>\r\n                </div>\r\n                <div\r\n                  *ngIf=\"materialControl.get('selected')?.value\"\r\n                  class=\"form-group\"\r\n                >\r\n                  <label for=\"quantity-{{ i }}\">Cantidad:</label>\r\n                  <input\r\n                    type=\"number\"\r\n                    class=\"form-control\"\r\n                    formControlName=\"quantity\"\r\n                    id=\"quantity-{{ i }}\"\r\n                    (change)=\"calculateCost()\"\r\n                    [ngClass]=\"{\r\n                      'is-invalid':\r\n                        (batchForm.get('quantity')?.dirty ||\r\n                          batchForm.get('quantity')?.touched ||\r\n                          aux.submitted) &&\r\n                        batchForm.get('quantity')?.invalid\r\n                    }\"\r\n                  />\r\n                  <div\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (materialControl.get('quantity')?.invalid &&\r\n                        (materialControl.get('quantity')?.dirty ||\r\n                          materialControl.get('quantity')?.touched))\r\n                    \"\r\n                    class=\"text-danger\"\r\n                  >\r\n                    <div\r\n                      *ngIf=\"materialControl.get('quantity')?.errors?.['min']\"\r\n                    >\r\n                      La cantidad mínima es 1.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"materialControl.get('quantity')?.errors?.['max']\"\r\n                    >\r\n                      La cantidad máxima es {{ avaibleInputs[i].quantity }}.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div\r\n              *ngIf=\"\r\n                (aux.submitted && batchForm.get('packages')?.invalid) ||\r\n                (batchForm.get('packages')?.touched &&\r\n                  batchForm.get('packages')?.invalid)\r\n              \"\r\n              class=\"text-danger mt-2\"\r\n            >\r\n              Debe seleccionarse al menos un insumo.\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"row custom-row\">\r\n          <hr />\r\n          <div class=\"col\">\r\n            <div class=\"form-group\">\r\n              <label class=\"subtitle\" for=\"description\">Descripción</label>\r\n              <!--textarea class=\"form-control\" id=\"description\" name=\"description\"\r\n\t\t\t\t\t\t\t\tformControlName=\"description\"></textarea-->\r\n              <p-editor\r\n                id=\"description\"\r\n                name=\"description\"\r\n                formControlName=\"description\"\r\n                class=\"form-control p-editor-custom\"\r\n                [style]=\"{ height: '240px' }\"\r\n                [ngClass]=\"{\r\n                  'is-invalid':\r\n                    (batchForm.get('description')?.dirty ||\r\n                      batchForm.get('description')?.touched ||\r\n                      aux.submitted) &&\r\n                    batchForm.get('description')?.invalid\r\n                }\"\r\n              >\r\n                <ng-template pTemplate=\"header\">\r\n                  <span class=\"ql-formats\">\r\n                    <select class=\"ql-header\" aria-label=\"Select header\">\r\n                      <option selected></option>\r\n                      <option value=\"1\">Heading 1</option>\r\n                      <option value=\"2\">Heading 2</option>\r\n                      <option value=\"3\">Heading 3</option>\r\n                    </select>\r\n                    <select class=\"ql-font\" aria-label=\"Select font\">\r\n                      <option selected></option>\r\n                      <option value=\"serif\">Serif</option>\r\n                      <option value=\"monospace\">Monospace</option>\r\n                    </select>\r\n                    <button class=\"ql-bold\" aria-label=\"Bold\"></button>\r\n                    <button class=\"ql-italic\" aria-label=\"Italic\"></button>\r\n                    <button\r\n                      class=\"ql-underline\"\r\n                      aria-label=\"Underline\"\r\n                    ></button>\r\n                    <select class=\"ql-align\" aria-label=\"Select align\">\r\n                      <option selected></option>\r\n                      <option value=\"center\">Center</option>\r\n                      <option value=\"right\">Right</option>\r\n                      <option value=\"justify\">Justify</option>\r\n                    </select>\r\n                    <button\r\n                      class=\"ql-list\"\r\n                      value=\"ordered\"\r\n                      aria-label=\"Ordered list\"\r\n                    ></button>\r\n                    <button\r\n                      class=\"ql-list\"\r\n                      value=\"bullet\"\r\n                      aria-label=\"Bullet list\"\r\n                    ></button>\r\n                    <button class=\"ql-link\" aria-label=\"Insert link\"></button>\r\n                  </span>\r\n                </ng-template>\r\n              </p-editor>\r\n            </div>\r\n            <div class=\"error-container\">\r\n              <div\r\n                *ngIf=\"\r\n                  (aux.submitted && batchForm.get('description')?.invalid) ||\r\n                  (batchForm.get('description')?.invalid &&\r\n                    (batchForm.get('description')?.dirty ||\r\n                      batchForm.get('description')?.touched))\r\n                \"\r\n                class=\"text-danger\"\r\n              >\r\n                Descripción es requerida.\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n<!-- Add Category Modal -->\r\n\r\n<div\r\n  *ngIf=\"addCategoryModal\"\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content\">\r\n      <div class=\"modal-header\">\r\n        <h1 class=\"modal-title fs-5\" id=\"confirmDeleteModalLabel\">\r\n          Agregar Tipo\r\n        </h1>\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn-close\"\r\n          (click)=\"closeAddCategoryModal()\"\r\n        ></button>\r\n      </div>\r\n      <div class=\"modal-body\">\r\n        <form [formGroup]=\"addCategoryForm\" (ngSubmit)=\"addCategory()\">\r\n          <div class=\"form-group\">\r\n            <label for=\"newCategory\">Nuevo Tipo</label>\r\n            <input\r\n              type=\"text\"\r\n              class=\"form-control\"\r\n              id=\"newCategory\"\r\n              formControlName=\"newCategory\"\r\n              placeholder=\"Ingrese el nuevo tipo\"\r\n            />\r\n            <div\r\n              *ngIf=\"\r\n                addCategoryForm.get('newCategory')?.invalid &&\r\n                (addCategoryForm.get('newCategory')?.dirty ||\r\n                  addCategoryForm.get('newType')?.touched)\r\n              \"\r\n              class=\"text-danger mt-1\"\r\n            >\r\n              <div\r\n                *ngIf=\"addCategoryForm.get('newCategory')?.errors?.['required']\"\r\n              >\r\n                La categoria es requerida.\r\n              </div>\r\n              <div\r\n                *ngIf=\"addCategoryForm.get('newCategory')?.errors?.['pattern']\"\r\n              >\r\n                La categoria no debe contener números ni símbolos.\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </form>\r\n      </div>\r\n      <div class=\"modal-footer\">\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn btn-secondary\"\r\n          (click)=\"closeAddCategoryModal()\"\r\n        >\r\n          CANCELAR\r\n        </button>\r\n        <button type=\"submit\" class=\"btn btn-success\" (click)=\"addCategory()\">\r\n          GUARDAR\r\n        </button>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</div>\r\n","/*import {\r\n  ActivatedRouteSnapshot,\r\n  CanActivate,\r\n  RouterStateSnapshot,\r\n} from '@angular/router';\r\nimport { Injectable } from '@angular/core';\r\nimport { AuthService } from '../services/auth/auth.service';\r\nimport { Router } from '@angular/router';\r\n\r\n@Injectable({\r\n  providedIn: 'root',\r\n})\r\nexport class allReadyLogGuard implements CanActivate {\r\n  constructor(private authService: AuthService, private router: Router) {}\r\n\r\n  canActivate(\r\n    route: ActivatedRouteSnapshot,\r\n    state: RouterStateSnapshot\r\n  ): boolean {\r\n    if (this.authService.isLoggedIn()) {\r\n      this.router.navigate(['/home']);\r\n      return false;\r\n    } else {\r\n      return true;\r\n    }\r\n  }\r\n}\r\n*/\r\n\r\nimport { CanActivateFn } from '@angular/router';\r\nimport { inject } from '@angular/core';\r\nimport { AuthService } from '../services/auth/auth.service';\r\nimport { Router } from '@angular/router';\r\n\r\nexport const allReadyLogGuard: CanActivateFn = (route, state) => {\r\n  const authService = inject(AuthService);\r\n  const router = inject(Router);\r\n\r\n  if (authService.isLoggedIn()) {\r\n    router.navigate(['/home']);\r\n    return false;\r\n  } else {\r\n    return true;\r\n  }\r\n};\r\n","import { CommonModule, } from '@angular/common';\r\nimport { Component, Output, EventEmitter, Input, OnInit } from '@angular/core';\r\nimport { ReactiveFormsModule, FormBuilder, FormGroup, Validators, FormsModule } from '@angular/forms';\r\nimport { TableData } from '../../../../core/interfaces/table-data';\r\nimport { emailValidator, matchPasswordValidator, phoneValidator } from '../../../../core/utils/validators';\r\nimport { User } from '../../../../core/interfaces/entities/user';\r\nimport { UsersService } from '../../../../core/services/api/users.service';\r\n@Component({\r\n  selector: 'app-edit-profile-modal',\r\n  standalone: true,\r\n  imports: [CommonModule, ReactiveFormsModule, FormsModule],\r\n  templateUrl: './edit-profile-modal.component.html',\r\n  styleUrl: './edit-profile-modal.component.scss'\r\n})\r\nexport class EditProfileModalComponent implements OnInit {\r\n  @Input() userInput: TableData = {};\r\n  @Output() close = new EventEmitter<void>();\r\n\r\n  userForm: FormGroup;\r\n\r\n  constructor(private fb: FormBuilder, private UsersService: UsersService) {\r\n    this.userForm = this.fb.group({\r\n      email: [ '', [Validators.required, emailValidator]],\r\n      name: [{ value: ''}, [Validators.required,  Validators.pattern('[a-zA-Z ]*')]],\r\n      surname: [{ value: ''}, [Validators.required, Validators.pattern('[a-zA-Z ]*')]],\r\n      phone: ['', [Validators.required, phoneValidator]],\r\n      password: [''],\r\n      confirmPassword: [''],\r\n      role: ['', Validators.required]\r\n    },{ validator: matchPasswordValidator() });\r\n  }\r\n\r\n  ngOnInit(): void {\r\n    const user = this.transformUserInput(this.userInput);\r\n    this.userForm.patchValue(user);\r\n  }\r\n\r\n  onSubmit() {\r\n    if (this.userForm.valid) {\r\n      let pass = this.userInput['password'];\r\n      if (this.userForm.get('password')?.value !== '') {\r\n        pass = this.userForm.get('password')?.value;\r\n      }\r\n      const userToSave: TableData = {\r\n        id: this.userInput['id'],\r\n        name: this.userForm.get('name')?.value,\r\n        surname: this.userForm.get('surname')?.value,\r\n        email: this.userForm.get('email')?.value,\r\n        phone: this.userForm.get('phone')?.value,\r\n        role: this.userForm.get('role')?.value,\r\n        password: pass\r\n      };\r\n      console.log('User to save:', userToSave);\r\n      // Call backend\r\n      this.UsersService.updateUser(userToSave).subscribe(\r\n        () => {\r\n          this.close.emit();\r\n        }\r\n      );\r\n    } else {\r\n      this.userForm.markAllAsTouched();\r\n    }\r\n  }\r\n\r\n  closeModal() {\r\n    this.close.emit();\r\n  }\r\n\r\n  private transformUserInput(data: TableData): User {\r\n    console.log('Data:', data);\r\n    return {\r\n      id: data['id'],\r\n      name: data['name'] ?? '',\r\n      surname: data['surname'] ?? '',\r\n      email: data['email'] ?? '',\r\n      phone: data['phone'] ?? '',\r\n      password: '',  // No mostramos la contraseña\r\n      role: data['role'] ?? ''\r\n    };\r\n  }\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content modal-content-main\">\r\n      <div\r\n        class=\"modal-header d-flex justify-content-center align-items-center\"\r\n      >\r\n        <div class=\"row w-100\">\r\n          <div class=\"col\">\r\n            <h5 class=\"modal-title\">Editar Perfil</h5>\r\n          </div>\r\n\r\n          <div class=\"col d-flex justify-content-end\">\r\n            <button\r\n              type=\"button\"\r\n              class=\"btn-close\"\r\n              aria-label=\"Close\"\r\n              (click)=\"closeModal()\"\r\n            ></button>\r\n          </div>\r\n        </div>\r\n      </div>\r\n      <form #aux=\"ngForm\" [formGroup]=\"userForm\" (ngSubmit)=\"onSubmit()\">\r\n        <div class=\"modal-body\">\r\n          <div class=\"row\">\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-1\">\r\n                    <label for=\"email\">Email</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"email\"\r\n                      class=\"form-control\"\r\n                      id=\"email\"\r\n                      name=\"email\"\r\n                      formControlName=\"email\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('email')?.dirty ||\r\n                            userForm.get('email')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('email')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (userForm.get('email')?.invalid &&\r\n                          (userForm.get('email')?.dirty ||\r\n                            userForm.get('email')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div *ngIf=\"userForm.get('email')?.errors?.['required']\">\r\n                        Email es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!userForm.get('email')?.errors?.['required'] && (userForm.get('email')?.errors?.['email'] ||userForm.get('email')?.errors?.['invalidEmail'])\"\r\n                      >\r\n                        Formato de email inválido.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"name\">Nombre</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"name\"\r\n                      name=\"name\"\r\n                      formControlName=\"name\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('name')?.dirty ||\r\n                            userForm.get('name')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('name')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (userForm.get('name')?.invalid &&\r\n                          (userForm.get('name')?.dirty ||\r\n                            userForm.get('name')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div *ngIf=\"userForm.get('name')?.errors?.['required']\">\r\n                        Nombre es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!userForm.get('name')?.errors?.['required'] && userForm.get('name')?.errors?.['pattern']\"\r\n                      >\r\n                        El nombre no debe contener números ni símbolos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"surname\">Apellido</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"surname\"\r\n                      name=\"surname\"\r\n                      formControlName=\"surname\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('surname')?.dirty ||\r\n                            userForm.get('surname')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('surname')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (userForm.get('surname')?.invalid &&\r\n                          (userForm.get('surname')?.dirty ||\r\n                            userForm.get('surname')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"userForm.get('surname')?.errors?.['required']\"\r\n                      >\r\n                        Apellido es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!userForm.get('surname')?.errors?.['required'] && userForm.get('surname')?.errors?.['pattern']\"\r\n                      >\r\n                        El apellido no debe contener números ni símbolos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"phone\">Teléfono</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"phone\"\r\n                      name=\"phone\"\r\n                      formControlName=\"phone\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('phone')?.dirty ||\r\n                            userForm.get('phone')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('phone')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        (userForm.get('phone')?.invalid &&\r\n                          (userForm.get('phone')?.dirty ||\r\n                            userForm.get('phone')?.touched)) ||\r\n                        (aux.submitted && userForm.get('phone')?.invalid)\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div *ngIf=\"userForm.get('phone')?.errors?.['required']\">\r\n                        Teléfono es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"userForm.get('phone')?.errors?.['invalidPhone']\"\r\n                      >\r\n                        Formato de teléfono inválido.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"password\">Contraseña</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"password\"\r\n                      class=\"form-control\"\r\n                      id=\"password\"\r\n                      name=\"password\"\r\n                      formControlName=\"password\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('password')?.dirty ||\r\n                            userForm.get('password')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('password')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        userForm.get('password')?.value &&\r\n                        userForm.get('password')?.invalid &&\r\n                        (userForm.get('password')?.dirty ||\r\n                          userForm.get('password')?.touched ||\r\n                          aux.submitted)\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Ingrese una contraseña válida.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-4\">\r\n                    <label for=\"confirmPassword\">Confirmar Contraseña</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"password\"\r\n                      class=\"form-control\"\r\n                      id=\"confirmPassword\"\r\n                      formControlName=\"confirmPassword\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('confirmPassword')?.dirty ||\r\n                            userForm.get('confirmPassword')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('confirmPassword')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div *ngIf=\"userForm.get('password')?.value\">\r\n                      <div\r\n                        *ngIf=\"\r\n                          !userForm.get('confirmPassword')?.value &&\r\n                          (aux.submitted ||\r\n                            (userForm.get('confirmPassword')?.dirty &&\r\n                              userForm.get('confirmPassword')?.touched))\r\n                        \"\r\n                        class=\"text-danger\"\r\n                      >\r\n                        Confirmar Contraseña es requerida.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"\r\n                          userForm.get('confirmPassword')?.value &&\r\n                          userForm.hasError('passwordMismatch') &&\r\n                          (aux.submitted ||\r\n                            userForm.get('confirmPassword')?.dirty ||\r\n                            userForm.get('confirmPassword')?.touched)\r\n                        \"\r\n                        class=\"text-danger\"\r\n                      >\r\n                        Las contraseñas no coinciden.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <label for=\"role\">Rol:</label>\r\n                <div class=\"d-flex flex-column align-items-center\">\r\n                  <div class=\"form-check\">\r\n                    <input\r\n                      class=\"form-check-input\"\r\n                      type=\"radio\"\r\n                      id=\"roleAdmin\"\r\n                      name=\"role\"\r\n                      value=\"Admin\"\r\n                      formControlName=\"role\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('role')?.dirty ||\r\n                            userForm.get('role')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('role')?.invalid\r\n                      }\"\r\n                    />\r\n                    <label class=\"form-check-label\" for=\"roleAdmin\"\r\n                      >Admin</label\r\n                    >\r\n                  </div>\r\n                  <div class=\"form-check\">\r\n                    <input\r\n                      class=\"form-check-input\"\r\n                      type=\"radio\"\r\n                      id=\"roleUser\"\r\n                      name=\"role\"\r\n                      value=\"User\"\r\n                      formControlName=\"role\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('role')?.dirty ||\r\n                            userForm.get('role')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('role')?.invalid\r\n                      }\"\r\n                    />\r\n                    <label class=\"form-check-label\" for=\"roleUser\">User</label>\r\n                  </div>\r\n                </div>\r\n                <div class=\"error-container\">\r\n                  <div\r\n                    *ngIf=\"\r\n                      (userForm.get('role')?.invalid &&\r\n                        (userForm.get('role')?.dirty ||\r\n                          userForm.get('role')?.touched)) ||\r\n                      (aux.submitted && userForm.get('role')?.invalid)\r\n                    \"\r\n                    class=\"text-danger\"\r\n                  >\r\n                    Rol es requerido.\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"modal-footer justify-content-center\">\r\n          <button type=\"submit\" class=\"btn btn-custom\">GUARDAR</button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { NavbarComponent } from '../../shared/components/navbar/navbar.component';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { CommonModule } from '@angular/common';\r\nimport { UsersService } from '../../core/services/api/users.service';\r\nimport { AuthService } from '../../core/services/auth/auth.service';\r\nimport { EditProfileModalComponent } from './editProfile/edit-profile-modal/edit-profile-modal.component';\r\n\r\n@Component({\r\n  selector: 'app-profile',\r\n  standalone: true,\r\n  imports: [NavbarComponent, ReactiveFormsModule, CommonModule, EditProfileModalComponent],\r\n  templateUrl: './profile.component.html',\r\n  styleUrl: './profile.component.scss',\r\n})\r\nexport class ProfileComponent implements OnInit {\r\n  \r\n  userId: any;\r\n  user: any = {};\r\n  openEditProfileModal: boolean = false;\r\n\r\n  constructor(\r\n    private authService: AuthService,\r\n    private userService: UsersService\r\n  ) {}\r\n\r\n  ngOnInit(): void {\r\n    this.userId = this.authService.getUserId();\r\n    //console.log('UserId: ', this.userId);\r\n    if(this.userId){\r\n      this.getData();\r\n    }\r\n    \r\n  }\r\n\r\n  openUserModal(): void {\r\n    this.openEditProfileModal = true;\r\n  }\r\n\r\n  closeUserModal(): void {\r\n    this.getData();\r\n    this.openEditProfileModal = false;\r\n    \r\n  }\r\n\r\n  private getData(): void {\r\n    this.userService.getUsersById(this.userId).subscribe((data: any) => {\r\n      this.user = data\r\n    });\r\n  }\r\n}\r\n","<app-navbar></app-navbar>\r\n<div\r\n  class=\"container-fluid d-flex flex-column justify-content-center align-items-center vh-100\"\r\n>\r\n  <div class=\"col-flex justify-content-center align-items-center\">\r\n    <div class=\"row header-row\">\r\n      <div class=\"col\">\r\n        <h1 class=\"view-title\">Mi Perfil</h1>\r\n      </div>\r\n\r\n      <div class=\"col d-flex justify-content-end\">\r\n        <a type=\"button\" class=\"btn btn-custom\" (click)=\"openUserModal()\"\r\n          >EDITAR</a\r\n        >\r\n      </div>\r\n    </div>\r\n    <div class=\"card \">\r\n      <div class=\"card-body\">\r\n        <div class=\"row mb-3\">\r\n          <div class=\"col\">\r\n            <label class=\"subtitle\">Nombre:</label>\r\n          </div>\r\n          <div class=\"col\">\r\n            <p class=\"card-text\">{{ user[\"name\"] }}</p>\r\n          </div>\r\n        </div>\r\n\r\n        <div class=\"row mb-3\">\r\n          <div class=\"col\">\r\n            <label class=\"subtitle\">Apellido:</label>\r\n          </div>\r\n          <div class=\"col\">\r\n            <p class=\"card-text\">{{ user[\"surname\"] }}</p>\r\n          </div>\r\n        </div>\r\n\r\n        <div class=\"row mb-3\">\r\n          <div class=\"col\">\r\n            <label class=\"subtitle\">Teléfono:</label>\r\n          </div>\r\n          <div class=\"col\">\r\n            <p class=\"card-text\">{{ user[\"phone\"] }}</p>\r\n          </div>\r\n        </div>\r\n\r\n        <div class=\"row\">\r\n          <div class=\"col\">\r\n            <label class=\"subtitle\">Email:</label>\r\n          </div>\r\n          <div class=\"col\">\r\n            <p class=\"card-text\">{{ user[\"email\"] }}</p>\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n<app-edit-profile-modal\r\n  *ngIf=\"openEditProfileModal\"\r\n  [userInput]=\"user\"\r\n  (close)=\"closeUserModal()\"\r\n></app-edit-profile-modal>","import { Routes } from '@angular/router';\r\nimport { LoginComponent } from './views/login/login.component';\r\nimport { HomeComponent } from './views/home/home.component';\r\nimport { InventoryComponent } from './views/inventory/inventory.component';\r\nimport { ProductionComponent } from './views/production/production.component';\r\nimport { RecipesComponent } from './views/recipes/recipes.component';\r\nimport { HistoryComponent } from './views/history/history.component';\r\nimport { UsersComponent } from './views/users/users.component';\r\nimport { ProvidersComponent } from './views/providers/providers.component';\r\nimport { ClientsComponent } from './views/clients/clients.component';\r\nimport { AddRecipeComponent } from './views/recipes/add-recipe/add-recipe.component';\r\nimport { ModifyRecipeComponent } from './views/recipes/modify-recipe/modify-recipe.component';\r\nimport { ViewRecipeComponent } from './views/recipes/view-recipe/view-recipe.component';\r\nimport { AddBatchComponent } from './views/production/add-batch/add-batch.component';\r\nimport { ViewBatchComponent } from './views/production/view-batch/view-batch.component';\r\n\r\nimport { AuthGuard } from './core/guards/auth.guard';\r\nimport { ModifyBatchComponent } from './views/production/modify-batch/modify-batch.component';\r\nimport { allReadyLogGuard } from './core/guards/all-ready-log.guard';\r\nimport { ProfileComponent } from './views/profile/profile.component';\r\n\r\n\r\nexport const routes: Routes = [\r\n    { path: '', component: LoginComponent, canActivate: [allReadyLogGuard], pathMatch: 'full' },\r\n    { path: 'home', component: HomeComponent, canActivate: [AuthGuard]},\r\n    { path: 'inventory', component: InventoryComponent, canActivate: [AuthGuard]},\r\n    { path: 'production', component: ProductionComponent, canActivate: [AuthGuard]},\r\n    { path: 'production/add', component: AddBatchComponent, canActivate: [AuthGuard]},\r\n    { path: 'production/:id', component: ViewBatchComponent, canActivate: [AuthGuard]},\r\n    { path: 'production/:id/modify', component: ModifyBatchComponent, canActivate: [AuthGuard]},\r\n    { path: 'recipes', component: RecipesComponent, canActivate: [AuthGuard]},\r\n    { path: 'recipes/add', component: AddRecipeComponent, canActivate: [AuthGuard]},\r\n    { path: 'recipes/:id', component: ViewRecipeComponent, canActivate: [AuthGuard]},\r\n    { path: 'recipes/:id/modify', component: ModifyRecipeComponent, canActivate: [AuthGuard]},\r\n    { path: 'history', component: HistoryComponent, canActivate: [AuthGuard]},\r\n    { path: 'users', component: UsersComponent, canActivate: [AuthGuard]},\r\n    { path: 'providers', component: ProvidersComponent, canActivate: [AuthGuard]},\r\n    { path: 'clients', component: ClientsComponent, canActivate: [AuthGuard]},\r\n    { path: 'profile', component: ProfileComponent, canActivate: [AuthGuard]},\r\n    { path: '**', redirectTo: '' }\r\n];\r\n","import { HttpInterceptorFn } from '@angular/common/http';\r\nimport { inject } from '@angular/core';\r\nimport { AuthService } from '../services/auth/auth.service';\r\nexport const authInterceptor: HttpInterceptorFn = (req, next) => {\r\n  const authService = inject(AuthService);\r\n  if (req.url.includes('/login')) {\r\n    return next(req);\r\n  }\r\n\r\n  const token = authService.getToken();\r\n  if (token) {\r\n    const authReq = req.clone({\r\n      setHeaders: {\r\n        Authorization: `Bearer ${token}`,\r\n      },\r\n    });\r\n    return next(authReq);\r\n  }\r\n  return next(req);\r\n};\r\n","import { ApplicationConfig } from '@angular/core';\r\nimport { provideRouter } from '@angular/router';\r\nimport {\r\n  provideHttpClient,\r\n  withFetch,\r\n  HTTP_INTERCEPTORS,\r\n  withInterceptors,\r\n} from '@angular/common/http';\r\n\r\nimport { routes } from './app.routes';\r\nimport { provideClientHydration } from '@angular/platform-browser';\r\nimport { authInterceptor } from './core/token/auth.interceptor';\r\n\r\nexport const appConfig: ApplicationConfig = {\r\n  providers: [\r\n    provideRouter(routes),\r\n    provideClientHydration(),\r\n    provideHttpClient(withFetch(), withInterceptors([authInterceptor])),\r\n  ],\r\n};\r\n","import { Component } from '@angular/core';\r\nimport { RouterOutlet } from '@angular/router';\r\n\r\n@Component({\r\n  selector: 'app-root',\r\n  standalone: true,\r\n  imports: [RouterOutlet],\r\n  templateUrl: './app.component.html',\r\n  styleUrl: './app.component.scss'\r\n})\r\nexport class AppComponent {\r\n  title = 'SalaComunitaria';\r\n}\r\n","\r\n<router-outlet />\r\n","/// <reference types=\"@angular/localize\" />\r\n\r\nimport { bootstrapApplication } from '@angular/platform-browser';\r\nimport { appConfig } from './app/app.config';\r\nimport { AppComponent } from './app/app.component';\r\n\r\nbootstrapApplication(AppComponent, appConfig)\r\n  .catch((err) => console.error(err));\r\n"],"mappings":"0GASA,SAASA,GAAcC,EAAGC,EAAG,CAC3B,OAAO,OAAO,GAAGD,EAAGC,CAAC,CACvB,CAOA,IAAIC,GAAiB,KACjBC,GAAsB,GAItBC,GAAQ,EAMNC,GAAwB,OAAO,QAAQ,EAC7C,SAASC,GAAkBC,EAAU,CACnC,IAAMC,EAAON,GACb,OAAAA,GAAiBK,EACVC,CACT,CAUA,IAAMC,GAAgB,CACpB,QAAS,EACT,eAAgB,EAChB,MAAO,GACP,aAAc,OACd,wBAAyB,OACzB,oBAAqB,OACrB,kBAAmB,EACnB,iBAAkB,OAClB,wBAAyB,OACzB,0BAA2B,GAC3B,qBAAsB,GACtB,sBA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CACVC,cAAe,UAAUL,CAAK,IAEjC,EACD,OAAON,EAAKQ,CAAO,CACrB,CACA,OAAOR,EAAKD,CAAG,CACjB,ECNO,IAAMa,GAA+B,CAC1CC,UAAW,CACTC,GAAcC,EAAM,EACpBC,GAAsB,EACtBC,GAAkBC,GAAS,EAAIC,GAAiB,CAACC,EAAe,CAAC,CAAC,CAAC,GCPvE,IAAaC,IAAY,IAAA,CAAnB,IAAOA,EAAP,MAAOA,CAAY,CAPzBC,aAAA,CAQE,KAAAC,MAAQ,0DADGF,EAAY,uBAAZA,EAAYG,UAAA,CAAA,CAAA,UAAA,CAAA,EAAAC,WAAA,GAAAC,SAAA,CAAAC,EAAA,EAAAC,MAAA,EAAAC,KAAA,EAAAC,SAAA,SAAAC,EAAAC,EAAA,CAAAD,EAAA,GCTzBE,EAAA,EAAA,eAAA,iBDKYC,EAAY,CAAA,CAAA,EAIlB,IAAOb,EAAPc,SAAOd,CAAY,GAAA,EEJzBe,GAAqBC,GAAcC,EAAS,EACzCC,MAAOC,GAAQC,QAAQC,MAAMF,CAAG,CAAC","names":["defaultEquals","a","b","activeConsumer","inNotificationPhase","epoch","SIGNAL","setActiveConsumer","consumer","prev","REACTIVE_NODE","producerAccessed","node","inNotificationPhase","activeConsumer","idx","assertConsumerNode","consumerIsLive","staleProducer","producerRemoveLiveConsumerAtIndex","producerAddLiveConsumer","producerIncrementEpoch","epoch","producerUpdateValueVersion","consumerPollProducersForChange","producerNotifyConsumers","prev","consumer","consumerMarkDirty","producerUpdatesAllowed","consumerBeforeComputation","setActiveConsumer","consumerAfterComputation","prevConsumer","i","producer","seenVersion","consumerDestroy","indexOfThis","assertProducerNode","lastIdx","idxProducer","defaultThrowError","throwInvalidWriteToSignalErrorFn","throwInvalidWriteToSignalError","setThrowInvalidWriteToSignalError","fn","postSignalSetFn","createSignal","initialValue","node","SIGNAL_NODE","getter","producerAccessed","SIGNAL","signalSetFn","node","newValue","producerUpdatesAllowed","throwInvalidWriteToSignalError","signalValueChanged","signalUpdateFn","updater","SIGNAL_NODE","__spreadProps","__spreadValues","REACTIVE_NODE","defaultEquals","producerIncrementEpoch","producerNotifyConsumers","postSignalSetFn","isFunction","value","createErrorClass","createImpl","ctorFunc","instance","UnsubscriptionError","createErrorClass","_super","errors","err","i","arrRemove","arr","item","index","Subscription","_Subscription","initialTeardown","errors","_parentage","parent","initialFinalizer","isFunction","e","UnsubscriptionError","_finalizers","finalizer","execFinalizer","err","teardown","_a","arrRemove","empty","EMPTY_SUBSCRIPTION","isSubscription","value","config","timeoutProvider","handler","timeout","args","delegate","handle","reportUnhandledError","err","timeoutProvider","onUnhandledError","config","noop","COMPLETE_NOTIFICATION","createNotification","errorNotification","error","nextNotification","value","kind","context","errorContext","cb","config","isRoot","errorThrown","error","captureError","err","Subscriber","Subscription","destination","isSubscription","EMPTY_OBSERVER","next","error","complete","SafeSubscriber","value","handleStoppedNotification","nextNotification","err","errorNotification","COMPLETE_NOTIFICATION","_bind","bind","fn","thisArg","ConsumerObserver","partialObserver","handleUnhandledError","observerOrNext","isFunction","context","config","captureError","reportUnhandledError","defaultErrorHandler","notification","subscriber","onStoppedNotification","timeoutProvider","noop","observable","identity","x","pipe","fns","pipeFromArray","identity","input","prev","fn","Observable","subscribe","operator","observable","observerOrNext","error","complete","subscriber","isSubscriber","SafeSubscriber","errorContext","source","sink","err","next","promiseCtor","getPromiseCtor","resolve","reject","value","_a","operations","pipeFromArray","x","config","isObserver","isFunction","Subscriber","isSubscription","hasLift","source","isFunction","operate","init","liftedSource","err","createOperatorSubscriber","destination","onNext","onComplete","onError","onFinalize","OperatorSubscriber","Subscriber","shouldUnsubscribe","value","err","_a","closed","refCount","operate","source","subscriber","connection","refCounter","createOperatorSubscriber","sharedConnection","conn","ConnectableObservable","Observable","source","subjectFactory","hasLift","subscriber","subject","_connection","connection","Subscription","createOperatorSubscriber","err","refCount","ObjectUnsubscribedError","createErrorClass","_super","Subject","Observable","operator","subject","AnonymousSubject","ObjectUnsubscribedError","value","errorContext","observer","err","observers","_a","subscriber","hasError","isStopped","EMPTY_SUBSCRIPTION","Subscription","arrRemove","thrownError","observable","destination","source","_b","BehaviorSubject","Subject","_value","subscriber","subscription","hasError","thrownError","value","dateTimestampProvider","Action","Subscription","scheduler","work","state","delay","intervalProvider","handler","timeout","args","delegate","handle","AsyncAction","Action","scheduler","work","state","delay","_a","id","_id","intervalProvider","_scheduler","error","_delay","errored","errorValue","e","actions","arrRemove","Scheduler","_Scheduler","schedulerActionCtor","now","work","delay","state","dateTimestampProvider","AsyncScheduler","Scheduler","SchedulerAction","now","action","actions","error","asyncScheduler","AsyncScheduler","AsyncAction","async","EMPTY","Observable","subscriber","isScheduler","value","isFunction","last","arr","popResultSelector","args","isFunction","popScheduler","isScheduler","__awaiter","thisArg","_arguments","P","generator","adopt","value","resolve","reject","fulfilled","step","e","rejected","result","__values","o","s","m","i","__await","v","__asyncGenerator","thisArg","_arguments","generator","g","i","q","verb","awaitReturn","f","reject","n","a","b","resume","step","e","settle","r","fulfill","value","__asyncValues","o","m","__values","verb","n","v","resolve","reject","settle","d","isArrayLike","x","isPromise","value","isFunction","isInteropObservable","input","isFunction","observable","isAsyncIterable","obj","isFunction","createInvalidObservableTypeError","input","getSymbolIterator","iterator","isIterable","input","isFunction","iterator","readableStreamLikeToAsyncGenerator","readableStream","__asyncGenerator","reader","value","done","__await","isReadableStreamLike","obj","isFunction","innerFrom","input","Observable","isInteropObservable","fromInteropObservable","isArrayLike","fromArrayLike","isPromise","fromPromise","isAsyncIterable","fromAsyncIterable","isIterable","fromIterable","isReadableStreamLike","fromReadableStreamLike","createInvalidObservableTypeError","obj","subscriber","obs","observable","isFunction","array","promise","value","err","reportUnhandledError","iterable","asyncIterable","process","readableStream","readableStreamLikeToAsyncGenerator","asyncIterable_1","asyncIterable_1_1","e_1","_a","__awaiter","__asyncValues","e_1_1","executeSchedule","parentSubscription","scheduler","work","delay","repeat","scheduleSubscription","observeOn","scheduler","delay","operate","source","subscriber","createOperatorSubscriber","value","executeSchedule","err","subscribeOn","scheduler","delay","operate","source","subscriber","scheduleObservable","input","scheduler","innerFrom","subscribeOn","observeOn","schedulePromise","input","scheduler","innerFrom","subscribeOn","observeOn","scheduleArray","input","scheduler","Observable","subscriber","i","scheduleIterable","input","scheduler","Observable","subscriber","iterator","executeSchedule","value","done","err","isFunction","scheduleAsyncIterable","input","scheduler","Observable","subscriber","executeSchedule","iterator","result","scheduleReadableStreamLike","input","scheduler","scheduleAsyncIterable","readableStreamLikeToAsyncGenerator","scheduled","input","scheduler","isInteropObservable","scheduleObservable","isArrayLike","scheduleArray","isPromise","schedulePromise","isAsyncIterable","scheduleAsyncIterable","isIterable","scheduleIterable","isReadableStreamLike","scheduleReadableStreamLike","createInvalidObservableTypeError","from","input","scheduler","scheduled","innerFrom","of","args","scheduler","popScheduler","from","throwError","errorOrErrorFactory","scheduler","errorFactory","isFunction","init","subscriber","Observable","isObservable","obj","Observable","isFunction","EmptyError","createErrorClass","_super","isValidDate","value","map","project","thisArg","operate","source","subscriber","index","createOperatorSubscriber","value","isArray","callOrApply","fn","args","mapOneOrManyArgs","map","isArray","getPrototypeOf","objectProto","getKeys","argsArgArrayOrObject","args","first","isPOJO","keys","key","obj","createObject","keys","values","result","key","i","combineLatest","args","scheduler","popScheduler","resultSelector","popResultSelector","observables","keys","argsArgArrayOrObject","from","result","Observable","combineLatestInit","values","createObject","identity","mapOneOrManyArgs","valueTransform","subscriber","maybeSchedule","length","active","remainingFirstValues","i","source","hasFirstValue","createOperatorSubscriber","value","execute","subscription","executeSchedule","mergeInternals","source","subscriber","project","concurrent","onBeforeNext","expand","innerSubScheduler","additionalFinalizer","buffer","active","index","isComplete","checkComplete","outerNext","value","doInnerSub","innerComplete","innerFrom","createOperatorSubscriber","innerValue","bufferedValue","executeSchedule","err","mergeMap","project","resultSelector","concurrent","isFunction","a","i","map","b","ii","innerFrom","operate","source","subscriber","mergeInternals","mergeAll","concurrent","mergeMap","identity","concatAll","mergeAll","concat","args","concatAll","from","popScheduler","defer","observableFactory","Observable","subscriber","innerFrom","forkJoin","args","resultSelector","popResultSelector","sources","keys","argsArgArrayOrObject","result","Observable","subscriber","length","values","remainingCompletions","remainingEmissions","sourceIndex","hasValue","innerFrom","createOperatorSubscriber","value","createObject","mapOneOrManyArgs","timer","dueTime","intervalOrScheduler","scheduler","async","intervalDuration","isScheduler","Observable","subscriber","due","isValidDate","n","filter","predicate","thisArg","operate","source","subscriber","index","createOperatorSubscriber","value","catchError","selector","operate","source","subscriber","innerSub","syncUnsub","handledResult","createOperatorSubscriber","err","innerFrom","scanInternals","accumulator","seed","hasSeed","emitOnNext","emitBeforeComplete","source","subscriber","hasState","state","index","createOperatorSubscriber","value","i","concatMap","project","resultSelector","isFunction","mergeMap","defaultIfEmpty","defaultValue","operate","source","subscriber","hasValue","createOperatorSubscriber","value","take","count","EMPTY","operate","source","subscriber","seen","createOperatorSubscriber","value","ignoreElements","operate","source","subscriber","createOperatorSubscriber","noop","mapTo","value","map","delayWhen","delayDurationSelector","subscriptionDelay","source","concat","take","ignoreElements","mergeMap","value","index","innerFrom","mapTo","delay","due","scheduler","asyncScheduler","duration","timer","delayWhen","throwIfEmpty","errorFactory","defaultErrorFactory","operate","source","subscriber","hasValue","createOperatorSubscriber","value","EmptyError","finalize","callback","operate","source","subscriber","first","predicate","defaultValue","hasDefaultValue","source","filter","v","i","identity","take","defaultIfEmpty","throwIfEmpty","EmptyError","takeLast","count","EMPTY","operate","source","subscriber","buffer","createOperatorSubscriber","value","last","predicate","defaultValue","hasDefaultValue","source","filter","v","i","identity","takeLast","defaultIfEmpty","throwIfEmpty","EmptyError","retryWhen","notifier","operate","source","subscriber","innerSub","syncResub","errors$","subscribeForRetryWhen","createOperatorSubscriber","err","Subject","innerFrom","scan","accumulator","seed","operate","scanInternals","startWith","values","scheduler","popScheduler","operate","source","subscriber","concat","switchMap","project","resultSelector","operate","source","subscriber","innerSubscriber","index","isComplete","checkComplete","createOperatorSubscriber","value","innerIndex","outerIndex","innerFrom","innerValue","takeUntil","notifier","operate","source","subscriber","innerFrom","createOperatorSubscriber","noop","tap","observerOrNext","error","complete","tapObserver","isFunction","operate","source","subscriber","_a","isUnsub","createOperatorSubscriber","value","err","_b","identity","XSS_SECURITY_URL","RuntimeError","code","message","formatRuntimeError","noSideEffects","fn","PARAMETERS","makeMetadataCtor","props","args","values","propName","makeParamDecorator","name","parentClass","noSideEffects","metaCtor","ParamDecoratorFactory","annotationInstance","ParamDecorator","cls","unusedKey","index","parameters","PARAMETERS","_global","getClosureSafeProperty","objWithPropertyToExtract","key","fillProperties","target","source","stringify","token","res","newLineIndex","concatStringsWithSpace","before","after","__forward_ref__","getClosureSafeProperty","forwardRef","forwardRefFn","stringify","resolveForwardRef","type","isForwardRef","fn","ɵɵdefineInjectable","opts","ɵɵdefineInjector","options","getInjectableDef","type","getOwnDefinition","NG_PROV_DEF","NG_INJECTABLE_DEF","isInjectable","field","getInheritedInjectableDef","def","getInjectorDef","NG_INJ_DEF","NG_INJECTOR_DEF","getClosureSafeProperty","InjectionToken","_desc","ɵɵdefineInjectable","isEnvironmentProviders","value","NG_COMP_DEF","getClosureSafeProperty","NG_DIR_DEF","NG_PIPE_DEF","NG_MOD_DEF","NG_FACTORY_DEF","NG_ELEMENT_ID","NG_ENV_ID","renderStringify","stringifyForError","throwCyclicDependencyError","token","path","depPath","RuntimeError","throwProviderNotFoundError","token","injectorName","RuntimeError","InjectFlags","_injectImplementation","getInjectImplementation","setInjectImplementation","impl","previous","injectRootLimpMode","notFoundValue","flags","injectableDef","getInjectableDef","_THROW_IF_NOT_FOUND","THROW_IF_NOT_FOUND","DI_DECORATOR_FLAG","NG_TEMP_TOKEN_PATH","NG_TOKEN_PATH","NEW_LINE","NO_NEW_LINE","SOURCE","_currentInjector","getCurrentInjector","setCurrentInjector","injector","former","injectInjectorOnly","token","flags","InjectFlags","RuntimeError","injectRootLimpMode","ɵɵinject","getInjectImplementation","resolveForwardRef","inject","token","flags","InjectFlags","ɵɵinject","convertToBitFlags","injectArgs","types","args","arg","resolveForwardRef","RuntimeError","type","j","meta","flag","getInjectFlag","attachInjectFlag","decorator","DI_DECORATOR_FLAG","catchInjectorError","injectorErrorName","source","tokenPath","NG_TEMP_TOKEN_PATH","SOURCE","formatError","NG_TOKEN_PATH","text","obj","NO_NEW_LINE","context","stringify","parts","key","value","NEW_LINE","Optional","attachInjectFlag","makeParamDecorator","SkipSelf","attachInjectFlag","makeParamDecorator","getFactoryDef","type","throwNotFound","hasFactoryDef","NG_FACTORY_DEF","arrayEquals","a","b","identityAccessor","i","valueA","valueB","flatten","list","deepForEach","input","fn","value","addToArray","arr","index","removeFromArray","newArray","size","arrayInsert2","array","index","value1","value2","end","previousEnd","keyValueArraySet","keyValueArray","key","value","index","keyValueArrayIndexOf","arrayInsert2","keyValueArrayGet","_arrayIndexOfSorted","_arrayIndexOfSorted","array","value","shift","start","end","middle","current","EMPTY_OBJ","EMPTY_ARRAY","ENVIRONMENT_INITIALIZER","InjectionToken","INJECTOR$1","INJECTOR_DEF_TYPES","NullInjector","token","notFoundValue","THROW_IF_NOT_FOUND","error","stringify","ChangeDetectionStrategy","ViewEncapsulation$1","ViewEncapsulation","InputFlags","classIndexOf","className","classToSearch","startingIndex","foundIndex","length","setUpAttributes","renderer","native","attrs","i","namespaceURI","attrName","attrVal","isAnimationProp","isNameOnlyAttributeMarker","marker","name","mergeHostAttrs","dst","src","srcMarker","item","mergeHostAttribute","key1","key2","markerInsertPosition","dstValue","NG_TEMPLATE_SELECTOR","isCssClassMatching","tNode","cssClassToMatch","isProjectionMode","isInlineTemplate","hasTagAndTypeMatch","currentSelector","tagNameToCompare","isNodeMatchingSelector","selector","mode","nodeAttrs","nameOnlyMarkerIdx","getNameOnlyMarkerIndex","skipToNextSelector","isPositive","selectorAttrValue","attrIndexInNode","findAttrIndexInNode","nodeAttrValue","bindingsMode","maybeAttrName","matchTemplateAttribute","isNodeMatchingSelectorList","getProjectAsAttrValue","ngProjectAsAttrIdx","nodeAttr","attr","isSelectorInSelectorList","list","selectorListLoop","currentSelectorInList","j","maybeWrapInNotSelector","isNegativeMode","chunk","stringifyCSSSelector","result","currentChunk","valueOrMarker","attrValue","stringifyCSSSelectorList","selectorList","extractAttrsAndClassesFromSelector","classes","ɵɵdefineComponent","componentDefinition","noSideEffects","baseDef","getNgDirectiveDef","def","__spreadProps","__spreadValues","initFeatures","dependencies","extractDefListOrFactory","getComponentId","extractDirectiveDef","type","getComponentDef","getDirectiveDef","nonNull","ɵɵdefineNgModule","parseAndConvertBindingsForDefinition","obj","declaredInputs","newLookup","minifiedKey","publicName","declaredName","inputFlags","ɵɵdefineDirective","directiveDefinition","ɵɵdefinePipe","pipeDef","NG_COMP_DEF","NG_DIR_DEF","getPipeDef$1","NG_PIPE_DEF","isStandalone","getNgModuleDef","throwNotFound","ngModuleDef","NG_MOD_DEF","definition","fn","defExtractor","dep","getComponentId","componentDef","hash","hashSelectors","char","makeEnvironmentProviders","providers","importProvidersFrom","sources","internalImportProvidersFrom","checkForStandaloneCmp","providersOut","dedup","injectorTypesWithProviders","collectProviders","provider","deepForEach","source","internalSource","walkProviderTree","processInjectorTypesWithProviders","typesWithProviders","visitor","ngModule","deepForEachProvider","container","parents","resolveForwardRef","defType","injDef","getInjectorDef","cmpDef","getComponentDef","isDuplicate","deps","dep","importTypesWithProviders","imported","factory","getFactoryDef","EMPTY_ARRAY","INJECTOR_DEF_TYPES","ENVIRONMENT_INITIALIZER","ɵɵinject","defProviders","injectorType","deepForEachProvider","providers","fn","provider","isEnvironmentProviders","USE_VALUE$1","getClosureSafeProperty","isValueProvider","value","isExistingProvider","isFactoryProvider","isTypeProvider","isClassProvider","INJECTOR_SCOPE","InjectionToken","NOT_YET","CIRCULAR","NULL_INJECTOR","getNullInjector","NullInjector","EnvironmentInjector","R3Injector","parent","source","scopes","forEachSingleProvider","INJECTOR$1","makeRecord","record","INJECTOR_DEF_TYPES","EMPTY_ARRAY","InjectFlags","prevConsumer","setActiveConsumer","service","onDestroyHooks","hook","callback","previousInjector","setCurrentInjector","previousInjectImplementation","setInjectImplementation","prevInjectContext","token","notFoundValue","THROW_IF_NOT_FOUND","flags","NG_ENV_ID","convertToBitFlags","def","couldBeInjectableType","getInjectableDef","injectableDefOrInjectorDefFactory","nextInjector","e","NG_TEMP_TOKEN_PATH","stringify","catchInjectorError","initializers","ENVIRONMENT_INITIALIZER","initializer","tokens","records","RuntimeError","resolveForwardRef","providerToRecord","multiRecord","injectArgs","hasOnDestroy","providedIn","destroyCBIdx","injectableDef","factory","getFactoryDef","getUndecoratedInjectableFactory","inheritedInjectableDef","getInheritedInjectableDef","providerToFactory","ngModuleType","unwrappedProvider","ɵɵinject","classRef","hasDeps","multi","runInInjectionContext","injector","prevInjectorProfilerContext","prevInjector","isInInjectionContext","getInjectImplementation","getCurrentInjector","assertInInjectionContext","debugFn","isType","v","HOST","TVIEW","FLAGS","PARENT","NEXT","T_HOST","HYDRATION","CLEANUP","CONTEXT","INJECTOR","ENVIRONMENT","RENDERER","CHILD_HEAD","CHILD_TAIL","DECLARATION_VIEW","DECLARATION_COMPONENT_VIEW","DECLARATION_LCONTAINER","PREORDER_HOOK_FLAGS","QUERIES","ID","EMBEDDED_VIEW_INJECTOR","ON_DESTROY_HOOKS","EFFECTS_TO_SCHEDULE","REACTIVE_TEMPLATE_CONSUMER","HEADER_OFFSET","TYPE","DEHYDRATED_VIEWS","NATIVE","VIEW_REFS","MOVED_VIEWS","CONTAINER_HEADER_OFFSET","LContainerFlags","isLView","value","isLContainer","isContentQueryHost","tNode","isComponentHost","isDirectiveHost","isComponentDef","def","isRootView","target","SimpleChange","previousValue","currentValue","firstChange","applyValueToInputField","instance","inputSignalNode","privateName","value","ɵɵNgOnChangesFeature","NgOnChangesFeatureImpl","definition","ngOnChangesSetInput","rememberChangeHistoryAndInvokeOnChangesHook","simpleChangesStore","getSimpleChangesStore","current","previous","EMPTY_OBJ","key","publicName","declaredName","setSimpleChangesStore","previousChange","SIMPLE_CHANGES_STORE","store","profilerCallback","profiler","event","instance","hookOrListener","profilerCallback","SVG_NAMESPACE","MATH_ML_NAMESPACE","_ensureDirtyViewsAreAlwaysReachable","getEnsureDirtyViewsAreAlwaysReachable","unwrapRNode","value","HOST","getNativeByIndex","index","lView","unwrapRNode","getNativeByTNode","tNode","getTNode","tView","index","load","view","getComponentLViewByIndex","nodeIndex","hostView","slotValue","isLView","HOST","isCreationMode","FLAGS","viewAttachedToChangeDetector","viewAttachedToContainer","isLContainer","PARENT","getConstant","consts","resetPreOrderHookFlags","lView","PREORDER_HOOK_FLAGS","markViewForRefresh","markAncestorsForTraversal","walkUpViews","nestingLevel","currentView","DECLARATION_VIEW","requiresRefreshOrTraversal","REACTIVE_TEMPLATE_CONSUMER","updateAncestorTraversalFlagsOnAttach","ENVIRONMENT","getEnsureDirtyViewsAreAlwaysReachable","parent","getLViewParent","storeLViewOnDestroy","onDestroyCallback","RuntimeError","ON_DESTROY_HOOKS","removeLViewOnDestroy","destroyCBIdx","instructionState","createLFrame","getElementDepthCount","instructionState","increaseElementDepthCount","decreaseElementDepthCount","getBindingsEnabled","isInSkipHydrationBlock$1","isSkipHydrationRootTNode","tNode","enterSkipHydrationBlock","tNode","instructionState","leaveSkipHydrationBlock","instructionState","getLView","getTView","ɵɵrestoreView","viewToRestore","CONTEXT","ɵɵresetView","value","getCurrentTNode","currentTNode","getCurrentTNodePlaceholderOk","getCurrentParentTNode","lFrame","setCurrentTNode","tNode","isParent","isCurrentTNodeParent","setCurrentTNodeAsNotParent","getContextLView","getBindingRoot","lFrame","instructionState","index","getBindingIndex","setBindingIndex","value","nextBindingIndex","incrementBindingIndex","count","isInI18nBlock","setBindingRootForHostBindings","bindingRootIndex","currentDirectiveIndex","lFrame","instructionState","setCurrentDirectiveIndex","getCurrentDirectiveIndex","getCurrentDirectiveDef","tData","getCurrentQueryIndex","setCurrentQueryIndex","value","getDeclarationTNode","lView","tView","TVIEW","T_HOST","enterDI","tNode","flags","InjectFlags","parentTNode","parentLView","DECLARATION_VIEW","allocLFrame","enterView","newView","newLFrame","currentLFrame","childLFrame","createLFrame","parent","leaveViewLight","oldLFrame","leaveDI","leaveView","nextContextImpl","level","walkUpViews","CONTEXT","getSelectedIndex","setSelectedIndex","index","getSelectedTNode","getTNode","ɵɵnamespaceSVG","SVG_NAMESPACE","getNamespace$1","instructionState","_wasLastNodeCreated","wasLastNodeCreated","lastNodeWasCreated","flag","registerPreOrderHooks","directiveIndex","directiveDef","tView","ngOnChanges","ngOnInit","ngDoCheck","wrappedOnChanges","NgOnChangesFeatureImpl","registerPostOrderHooks","tNode","end","lifecycleHooks","ngAfterContentInit","ngAfterContentChecked","ngAfterViewInit","ngAfterViewChecked","ngOnDestroy","executeCheckHooks","lView","hooks","nodeIndex","callHooks","executeInitAndCheckHooks","initPhase","FLAGS","incrementInitPhaseFlags","flags","currentView","arr","currentNodeIndex","startIndex","PREORDER_HOOK_FLAGS","nodeIndexLimit","max","lastNodeIndexFound","i","callHook","callHookInternal","directive","hook","profiler","prevConsumer","setActiveConsumer","isInitHook","NO_PARENT_INJECTOR","NodeInjectorFactory","factory","isViewProvider","injectImplementation","isFactory","obj","hasClassInput","tNode","hasStyleInput","hasParentInjector","parentLocation","NO_PARENT_INJECTOR","getParentInjectorIndex","getParentInjectorViewOffset","getParentInjectorView","location","startView","viewOffset","parentView","DECLARATION_VIEW","includeViewProviders","setIncludeViewProviders","v","oldValue","BLOOM_SIZE","BLOOM_MASK","BLOOM_BUCKET_BITS","nextNgElementId","NOT_FOUND","bloomAdd","injectorIndex","tView","type","id","NG_ELEMENT_ID","bloomHash","mask","getOrCreateNodeInjectorForNode","tNode","lView","existingInjectorIndex","getInjectorIndex","TVIEW","insertBloom","parentLoc","getParentInjectorLocation","parentIndex","parentLView","parentData","i","arr","footer","declarationViewOffset","parentTNode","lViewCursor","getTNodeFromLView","diPublicInInjector","token","injectAttributeImpl","attrNameToInject","attrs","attrsLength","value","isNameOnlyAttributeMarker","notFoundValueOrThrow","notFoundValue","flags","InjectFlags","throwProviderNotFoundError","lookupTokenUsingModuleInjector","moduleInjector","INJECTOR","previousInjectImplementation","setInjectImplementation","injectRootLimpMode","getOrCreateInjectable","FLAGS","embeddedInjectorValue","lookupTokenUsingEmbeddedInjector","lookupTokenUsingNodeInjector","bloomHashBitOrFactory","enterDI","leaveDI","previousTView","hostTElementNode","DECLARATION_COMPONENT_VIEW","T_HOST","shouldSearchParent","bloomHasToken","instance","searchTokensOnInjector","currentTView","canAccessViewProviders","isComponentHost","isHostSpecialCase","injectableIdx","locateDirectiveOrProvider","getNodeInjectable","nodeProviderIndexes","tInjectables","injectablesStart","directivesStart","directiveEnd","cptViewProvidersCount","startingIndex","endIndex","providerTokenOrDef","dirDef","isComponentDef","index","tData","isFactory","factory","throwCyclicDependencyError","stringifyForError","previousIncludeViewProviders","prevInjectContext","success","registerPreOrderHooks","tokenId","createNodeInjector","injectorView","isFirstHostTNode","NodeInjector","_tNode","_lView","token","notFoundValue","flags","getOrCreateInjectable","convertToBitFlags","createNodeInjector","getCurrentTNode","getLView","ɵɵgetInheritedFactory","type","noSideEffects","ownConstructor","ownFactory","NG_FACTORY_DEF","getFactoryOf","objectPrototype","parent","factory","t","isForwardRef","resolveForwardRef","getFactoryDef","lookupTokenUsingEmbeddedInjector","tNode","lView","currentTNode","currentLView","FLAGS","nodeInjectorValue","lookupTokenUsingNodeInjector","InjectFlags","NOT_FOUND","parentTNode","embeddedViewInjector","EMBEDDED_VIEW_INJECTOR","embeddedViewInjectorValue","getTNodeFromLView","DECLARATION_VIEW","tView","TVIEW","tViewType","T_HOST","ɵɵinjectAttribute","attrNameToInject","injectAttributeImpl","createInjector","defType","parent","additionalProviders","name","injector","createInjectorWithoutInjectorInstances","scopes","providers","EMPTY_ARRAY","importProvidersFrom","stringify","R3Injector","getNullInjector","Injector","_Injector","options","THROW_IF_NOT_FOUND","NullInjector","ɵɵdefineInjectable","ɵɵinject","INJECTOR$1","ERROR_ORIGINAL_ERROR","getOriginalError","error","ERROR_ORIGINAL_ERROR","ErrorHandler","originalError","e","INTERNAL_APPLICATION_ERROR_HANDLER","InjectionToken","inject","DestroyRef","_DestroyRef","injectDestroyRef","injector","NodeInjectorDestroyRef","_lView","callback","storeLViewOnDestroy","removeLViewOnDestroy","getLView","injectElementRef","createElementRef","getCurrentTNode","getLView","tNode","lView","ElementRef","getNativeByTNode","_ElementRef","nativeElement","unwrapElementRef","value","EventEmitter_","Subject","isAsync","isInInjectionContext","inject","DestroyRef","prevConsumer","setActiveConsumer","observerOrNext","error","complete","nextFn","errorFn","completeFn","observer","_wrapInTimeout","sink","Subscription","fn","EventEmitter","symbolIterator","QueryList","_QueryList","_emitDistinctChangesOnly","proto","index","init","resultsTree","identityAccessor","newResultFlat","flatten","arrayEquals","cb","SKIP_HYDRATION_ATTR_NAME","SKIP_HYDRATION_ATTR_NAME_LOWER_CASE","hasSkipHydrationAttrOnTNode","attrs","hasSkipHydrationAttrOnRElement","rNode","hasInSkipHydrationBlockFlag","isInSkipHydrationBlock","currentTNode","TRACKED_LVIEWS","uniqueIdCounter","getUniqueLViewId","registerLView","ID","unregisterLView","lView","TRACKED_LVIEWS","ID","MONKEY_PATCH_KEY_NAME","attachPatchData","target","data","isLView","ID","registerLView","getFirstLContainer","lView","getNearestLContainer","CHILD_HEAD","getNextLContainer","container","NEXT","viewOrContainer","isLContainer","DOCUMENT","setDocument","document","getDocument","RuntimeError","APP_ID","InjectionToken","DEFAULT_APP_ID","PLATFORM_INITIALIZER","PLATFORM_ID","CSP_NONCE","InjectionToken","getDocument","initTransferState","transferState","TransferState","inject","PLATFORM_ID","retrieveTransferredState","getDocument","APP_ID","_TransferState","key","defaultValue","value","callback","e","ɵɵdefineInjectable","doc","appId","script","REFERENCE_NODE_HOST","REFERENCE_NODE_BODY","NodeNavigationStep","ELEMENT_CONTAINERS","TEMPLATES","CONTAINERS","MULTIPLIER","NUM_ROOT_NODES","TEMPLATE_ID","NODES","DISCONNECTED_NODES","TRANSFER_STATE_TOKEN_ID","NGH_DATA_KEY","NGH_ATTR_NAME","SSR_CONTENT_INTEGRITY_MARKER","_retrieveHydrationInfoImpl","retrieveHydrationInfoImpl","rNode","injector","isRootView","nghAttrValue","componentViewNgh","rootViewNgh","rootNgh","remainingNgh","data","dehydratedView","setSegmentHead","enableRetrieveHydrationInfoImpl","retrieveHydrationInfo","getLNodeForHydration","viewRef","lView","TVIEW","HEADER_OFFSET","getTextNodeContent","node","processTextNodeMarkersBeforeHydration","commentNodesIterator","content","currentNode","nodes","setSegmentHead","hydrationInfo","index","node","getSegmentHead","getNgContainerSize","data","size","ELEMENT_CONTAINERS","CONTAINERS","calcSerializedContainerSize","getSerializedContainerViews","views","numNodes","view","NUM_ROOT_NODES","MULTIPLIER","isDisconnectedNode$1","nodeIds","DISCONNECTED_NODES","IS_HYDRATION_DOM_REUSE_ENABLED","InjectionToken","PRESERVE_HOST_CONTENT_DEFAULT","PRESERVE_HOST_CONTENT","IS_I18N_HYDRATION_ENABLED","policy$1","getPolicy$1","_global","s","trustedHTMLFromString","html","policy","getPolicy","_global","s","trustedHTMLFromStringBypass","html","trustedScriptURLFromStringBypass","url","getPolicy","SafeValueImpl","changingThisBreaksApplicationSecurity","XSS_SECURITY_URL","unwrapSafeValue","value","SafeValueImpl","allowSanitizationBypassAndThrow","type","actualType","getSanitizationBypassType","XSS_SECURITY_URL","getInertBodyHelper","defaultDoc","inertDocumentHelper","InertDocumentHelper","isDOMParserAvailable","DOMParserHelper","html","body","trustedHTMLFromString","templateEl","SAFE_URL_PATTERN","_sanitizeUrl","url","tagSet","tags","res","t","merge","sets","s","v","VOID_ELEMENTS","OPTIONAL_END_TAG_BLOCK_ELEMENTS","OPTIONAL_END_TAG_INLINE_ELEMENTS","OPTIONAL_END_TAG_ELEMENTS","BLOCK_ELEMENTS","INLINE_ELEMENTS","VALID_ELEMENTS","URI_ATTRS","HTML_ATTRS","ARIA_ATTRS","VALID_ATTRS","SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS","SanitizingHtmlSerializer","el","current","traverseContent","parentNodes","getFirstChild","next","getNextSibling","element","tagName","getNodeName","elAttrs","i","elAttr","attrName","lower","value","encodeEntities","chars","isClobberedElement","parentNode","childNode","node","nextSibling","clobberedElementError","firstChild","nodeName","SURROGATE_PAIR_REGEXP","NON_ALPHANUMERIC_REGEXP","match","hi","low","inertBodyHelper","_sanitizeHtml","unsafeHtmlInput","inertBodyElement","unsafeHtml","mXSSAttempts","parsedHtml","safeHtml","getTemplateContent","parent","isTemplateElement","SecurityContext","ɵɵsanitizeHtml","sanitizer","getSanitizer","trustedHTMLFromStringBypass","allowSanitizationBypassAndThrow","unwrapSafeValue","getDocument","renderStringify","ɵɵsanitizeUrl","unsafeUrl","sanitizer","getSanitizer","SecurityContext","allowSanitizationBypassAndThrow","unwrapSafeValue","_sanitizeUrl","renderStringify","ɵɵsanitizeResourceUrl","unsafeResourceUrl","trustedScriptURLFromStringBypass","RuntimeError","getUrlSanitizer","tag","prop","ɵɵsanitizeResourceUrl","ɵɵsanitizeUrl","ɵɵsanitizeUrlOrResourceUrl","unsafeUrl","getSanitizer","lView","getLView","ENVIRONMENT","COMMENT_DISALLOWED","COMMENT_DELIMITER","COMMENT_DELIMITER_ESCAPED","escapeCommentText","value","text","ɵɵresolveBody","element","maybeUnwrapFn","value","isPlatformBrowser","injector","inject","Injector","PLATFORM_ID","RendererStyleFlags2","_icuContainerIterate","icuContainerIterate","tIcuContainerNode","lView","applyToElementOrContainer","action","renderer","parent","lNodeToHandle","beforeNode","lContainer","isComponent","isLContainer","isLView","HOST","rNode","unwrapRNode","nativeAppendChild","nativeInsertBefore","nativeRemoveNode","applyContainer","createTextNode","value","updateTextNode","createCommentNode","escapeCommentText","createElementNode","name","namespace","removeViewFromDOM","tView","lView","detachViewFromDOM","T_HOST","addViewToDOM","parentTNode","parentNativeNode","applyView","ENVIRONMENT","RENDERER","destroyViewTree","rootView","lViewOrLContainer","CHILD_HEAD","cleanUpView","TVIEW","next","firstView","CONTAINER_HEADER_OFFSET","NEXT","PARENT","insertView","index","indexInContainer","containerLength","addToArray","declarationLContainer","DECLARATION_LCONTAINER","trackMovedView","lQueries","QUERIES","updateAncestorTraversalFlagsOnAttach","FLAGS","declarationContainer","movedViews","MOVED_VIEWS","insertedComponentLView","DECLARATION_COMPONENT_VIEW","LContainerFlags","detachMovedView","declarationViewIndex","detachView","removeIndex","viewToDetach","removedLView","removeFromArray","destroyLView","prevConsumer","setActiveConsumer","REACTIVE_TEMPLATE_CONSUMER","consumerDestroy","executeOnDestroys","processCleanups","unregisterLView","tCleanup","lCleanup","CLEANUP","i","targetIdx","context","destroyHooks","ON_DESTROY_HOOKS","destroyHooksFn","NodeInjectorFactory","toCall","j","callContext","hook","profiler","getParentRElement","tNode","getClosestRElement","componentOffset","encapsulation","ViewEncapsulation$1","getNativeByTNode","child","isMove","nativeAppendOrInsertBefore","nativeRemoveChild","isHostElement","nativeParentNode","renderer","node","nativeNextSibling","getInsertInFrontOfRNode","parentTNode","currentTNode","lView","_getInsertInFrontOfRNodeWithI18n","getInsertInFrontOfRNodeWithNoI18n","getNativeByTNode","_processI18nInsertBefore","appendChild","tView","lView","childRNode","childTNode","parentRNode","getParentRElement","renderer","RENDERER","parentTNode","T_HOST","anchorNode","getInsertInFrontOfRNode","i","nativeAppendOrInsertBefore","_processI18nInsertBefore","getFirstNativeNode","tNode","tNodeType","getNativeByTNode","getBeforeNodeForView","elIcuContainerChild","rNodeOrLContainer","isLContainer","unwrapRNode","icuContainerIterate","projectionNodes","getProjectionNodes","parentView","getLViewParent","DECLARATION_COMPONENT_VIEW","componentHost","slotIdx","viewIndexInContainer","lContainer","nextViewIndex","CONTAINER_HEADER_OFFSET","firstTNodeOfView","TVIEW","NATIVE","nativeRemoveNode","rNode","isHostElement","nativeParent","nativeParentNode","nativeRemoveChild","clearElementContents","rElement","applyNodes","action","parentRElement","beforeNode","isProjection","rawSlotValue","attachPatchData","applyToElementOrContainer","nextRNode","applyProjectionRecursive","applyView","applyProjection","tProjectionNode","componentLView","nodeToProjectOrRNodes","nodeToProject","projectedComponentLView","PARENT","hasInSkipHydrationBlockFlag","applyContainer","anchor","native","applyStyling","isClassBased","prop","value","flags","RendererStyleFlags2","writeDirectStyle","element","newValue","writeDirectClass","setupStaticAttributes","mergedAttrs","classes","styles","setUpAttributes","NO_CHANGE","ɵɵadvance","delta","selectIndexInternal","getTView","getLView","getSelectedIndex","index","checkNoChangesMode","FLAGS","preOrderCheckHooks","executeCheckHooks","preOrderHooks","executeInitAndCheckHooks","setSelectedIndex","ɵɵdirectiveInject","token","InjectFlags","ɵɵinject","getCurrentTNode","getOrCreateInjectable","resolveForwardRef","ɵɵinvalidFactory","msg","writeToDirectiveInput","def","instance","publicName","privateName","prevConsumer","setActiveConsumer","inputSignalNode","InputFlags","SIGNAL","applyValueToInputField","processHostBindingOpCodes","hostBindingOpCodes","opCode","directiveIdx","bindingRootIndx","hostBindingFn","setBindingRootForHostBindings","context","createLView","parentLView","host","tHostNode","environment","injector","embeddedViewInjector","hydrationInfo","HOST","resetPreOrderHookFlags","DECLARATION_VIEW","CONTEXT","ENVIRONMENT","INJECTOR","ID","getUniqueLViewId","HYDRATION","EMBEDDED_VIEW_INJECTOR","getOrCreateTNode","type","name","attrs","createTNodeAtIndex","isInI18nBlock","parent","getCurrentParentTNode","setCurrentTNode","currentTNode","getCurrentTNodePlaceholderOk","isParent","isCurrentTNodeParent","createTNode","allocExpando","numSlotsToAlloc","initialValue","allocIdx","executeTemplate","templateFn","rf","prevSelectedIndex","isUpdatePhase","HEADER_OFFSET","profiler","executeContentQueries","isContentQueryHost","start","end","directiveIndex","directiveInstance","createDirectivesInstances","getBindingsEnabled","instantiateAllDirectives","invokeDirectivesHostBindings","saveResolvedLocalsInData","viewData","localRefExtractor","localNames","localIndex","getOrCreateComponentTView","createTView","declTNode","decls","vars","directives","pipes","viewQuery","schemas","constsOrFactory","ssrId","bindingStartIndex","initialViewLength","blueprint","createViewBlueprint","consts","locateHostElement","elementOrSelector","encapsulation","preserveContent","PRESERVE_HOST_CONTENT","PRESERVE_HOST_CONTENT_DEFAULT","ViewEncapsulation$1","rootElement","applyRootElementTransform","_applyRootElementTransformImpl","applyRootElementTransformImpl","hasSkipHydrationAttrOnRElement","processTextNodeMarkersBeforeHydration","enableApplyRootElementTransformImpl","storeCleanupWithContext","cleanupFn","lCleanup","getOrCreateLViewCleanup","getOrCreateTViewCleanup","tParent","injectorIndex","isInSkipHydrationBlock$1","captureNodeBindings","mode","aliasMap","bindingsResult","hostDirectiveAliasMap","internalName","inputFlags","finalPublicName","addPropertyBinding","bindings","values","initializeInputAndOutputAliases","hostDirectiveDefinitionMap","tViewData","tNodeAttrs","inputsFromAttrs","inputsStore","outputsStore","directiveDef","aliasData","aliasedInputs","aliasedOutputs","initialInputs","isInlineTemplate","generateInitialInputs","mapPropName","elementPropertyInternal","propName","sanitizer","nativeOnly","inputData","dataValue","setInputsForProperty","isComponentHost","markDirtyIfOnPush","viewIndex","childComponentLView","getComponentLViewByIndex","resolveDirectives","tView","lView","tNode","localRefs","getBindingsEnabled","exportsMap","matchResult","findDirectiveDefMatches","directiveDefs","hostDirectiveDefs","initializeDirectives","cacheMatchingLocalNames","mergeHostAttrs","directives","i","diPublicInInjector","getOrCreateNodeInjectorForNode","initTNodeFlags","def","preOrderHooksFound","preOrderCheckHooksFound","directiveIdx","allocExpando","configureViewWithDirective","saveNameToExportMap","lifeCycleHooks","initializeInputAndOutputAliases","registerHostBindingOpCodes","directiveVarsIdx","hostBindings","hostBindingOpCodes","elementIndx","lastSelectedElementIdx","value","instantiateAllDirectives","native","start","end","isComponentHost","addComponentLogic","attachPatchData","initialInputs","directive","getNodeInjectable","setInputsFromAttrs","isComponentDef","componentView","getComponentLViewByIndex","CONTEXT","invokeDirectivesHostBindings","elementIndex","currentDirectiveIndex","getCurrentDirectiveIndex","setSelectedIndex","dirIndex","setCurrentDirectiveIndex","invokeHostBindingsInCreationMode","registry","matches","isNodeMatchingSelectorList","hostDirectiveMatches","componentOffset","markAsComponentHost","hostTNode","localNames","index","RuntimeError","numberOfDirectives","directiveIndex","directiveFactory","getFactoryDef","nodeInjectorFactory","NodeInjectorFactory","ɵɵdirectiveInject","NO_CHANGE","getNativeByTNode","getOrCreateComponentTView","rendererFactory","ENVIRONMENT","lViewFlags","addToViewTree","createLView","elementAttributeInternal","name","sanitizer","namespace","element","setElementAttribute","RENDERER","renderer","tagName","strValue","renderStringify","instance","initialInputData","publicName","privateName","flags","writeToDirectiveInput","generateInitialInputs","inputs","attrs","inputsToStore","attrName","inputConfig","j","createLContainer","hostNative","currentView","refreshContentQueries","contentQueries","prevConsumer","setActiveConsumer","queryStartIdx","directiveDefIdx","directiveDef","setCurrentQueryIndex","lViewOrLContainer","CHILD_HEAD","CHILD_TAIL","NEXT","executeViewQueryFn","viewQueryFn","component","getOrCreateLViewCleanup","view","CLEANUP","getOrCreateTViewCleanup","tView","handleError","lView","error","injector","INJECTOR","errorHandler","ErrorHandler","setInputsForProperty","tView","inputs","publicName","value","i","index","privateName","flags","instance","def","writeToDirectiveInput","textBindingInternal","element","getNativeByIndex","updateTextNode","RENDERER","renderComponent","hostLView","componentHostIdx","componentView","getComponentLViewByIndex","componentTView","TVIEW","syncViewWithBlueprint","hostRNode","HOST","HYDRATION","retrieveHydrationInfo","renderView","CONTEXT","context","enterView","viewQuery","executeViewQueryFn","templateFn","executeTemplate","QUERIES","refreshContentQueries","components","renderChildComponents","FLAGS","leaveView","createAndRenderEmbeddedLView","declarationLView","templateTNode","options","prevConsumer","setActiveConsumer","embeddedTView","viewFlags","embeddedLView","createLView","declarationLContainer","DECLARATION_LCONTAINER","declarationViewLQueries","shouldAddViewToDom","tNode","dehydratedView","hasInSkipHydrationBlockFlag","addLViewToLContainer","lContainer","lView","index","addToDOM","tView","TVIEW","insertView","beforeNode","getBeforeNodeForView","renderer","RENDERER","parentRNode","nativeParentNode","NATIVE","addViewToDOM","T_HOST","hydrationInfo","HYDRATION","collectNativeNodes","tView","lView","tNode","result","isProjection","lNode","unwrapRNode","isLContainer","collectNativeNodesInLContainer","tNodeType","nextRNode","icuContainerIterate","rNode","nodesInSlot","getProjectionNodes","parentView","getLViewParent","DECLARATION_COMPONENT_VIEW","TVIEW","lContainer","CONTAINER_HEADER_OFFSET","lViewInAContainer","lViewFirstChildTNode","NATIVE","HOST","freeConsumers","getOrBorrowReactiveLViewConsumer","REACTIVE_TEMPLATE_CONSUMER","borrowReactiveLViewConsumer","consumer","REACTIVE_LVIEW_CONSUMER_NODE","maybeReturnReactiveLViewConsumer","__spreadProps","__spreadValues","REACTIVE_NODE","node","markAncestorsForTraversal","MAXIMUM_REFRESH_RERUNS","detectChangesInternal","notifyErrorHandler","mode","environment","ENVIRONMENT","rendererFactory","checkNoChangesMode","detectChangesInViewWhileDirty","error","handleError","detectChangesInView$1","retries","requiresRefreshOrTraversal","RuntimeError","refreshView","tView","lView","templateFn","context","flags","FLAGS","isInCheckNoChangesPass","ENVIRONMENT","enterView","prevConsumer","currentConsumer","viewShouldHaveReactiveConsumer","getOrBorrowReactiveLViewConsumer","consumerBeforeComputation","resetPreOrderHookFlags","setBindingIndex","executeTemplate","hooksInitPhaseCompleted","preOrderCheckHooks","executeCheckHooks","preOrderHooks","executeInitAndCheckHooks","incrementInitPhaseFlags","markTransplantedViewsForRefresh","detectChangesInEmbeddedViews","refreshContentQueries","contentCheckHooks","contentHooks","processHostBindingOpCodes","components","detectChangesInChildComponents","viewQuery","executeViewQueryFn","viewCheckHooks","viewHooks","EFFECTS_TO_SCHEDULE","notifyEffect","e","markAncestorsForTraversal","consumerAfterComputation","maybeReturnReactiveLViewConsumer","leaveView","mode","lContainer","getFirstLContainer","getNextLContainer","i","CONTAINER_HEADER_OFFSET","embeddedLView","detectChangesInViewIfAttached","LContainerFlags","movedViews","MOVED_VIEWS","movedLView","insertionLContainer","PARENT","markViewForRefresh","detectChangesInComponent","hostLView","componentHostIdx","componentView","getComponentLViewByIndex","viewAttachedToChangeDetector","detectChangesInView$1","TVIEW","consumer","REACTIVE_TEMPLATE_CONSUMER","shouldRefreshView","consumerPollProducersForChange","CONTEXT","markViewDirty","parent","getLViewParent","isRootView","ViewRef$1","collectNativeNodes","_lView","_cdRefInjectingView","notifyErrorHandler","value","isLContainer","viewRefs","VIEW_REFS","index","detachView","removeFromArray","destroyLView","callback","storeLViewOnDestroy","updateAncestorTraversalFlagsOnAttach","detectChangesInternal","RuntimeError","detachViewFromDOM","appRef","TemplateRef","_TemplateRef","injectTemplateRef","ViewEngineTemplateRef","R3TemplateRef","_declarationLView","_declarationTContainer","elementRef","injector","dehydratedView","createAndRenderEmbeddedLView","createTemplateRef","getCurrentTNode","getLView","hostTNode","createElementRef","removeDehydratedViews","lContainer","views","DEHYDRATED_VIEWS","renderer","PARENT","RENDERER","view","removeDehydratedView","EMPTY_ARRAY","dehydratedView","nodesRemoved","currentRNode","numNodes","NUM_ROOT_NODES","nextSibling","nativeRemoveNode","cleanupLContainer","i","CONTAINER_HEADER_OFFSET","cleanupLView","cleanupDehydratedI18nNodes","lView","i18nNodes","HYDRATION","node","tView","TVIEW","HEADER_OFFSET","isLContainer","isLView","cleanupDehydratedViews","appRef","viewRefs","viewRef","lNode","getLNodeForHydration","HOST","componentLView","REF_EXTRACTOR_REGEXP","REFERENCE_NODE_BODY","REFERENCE_NODE_HOST","decompressNodeLocation","path","matches","REF_EXTRACTOR_REGEXP","_","refNodeId","refNodeName","rest","ref","steps","step","count","repeat","isFirstElementInNgContainer","tNode","getNoOffsetIndex","HEADER_OFFSET","locateI18nRNodeByIndex","hydrationInfo","noOffsetIndex","i18nNodes","native","locateNextRNode","tView","lView","tNode","getNoOffsetIndex","nodes","NODES","locateRNodeByPath","previousTNodeParent","previousTNode","isFirstElementInNgContainer","noOffsetParentIndex","getSegmentHead","previousRElement","getNativeByTNode","noOffsetPrevSiblingIndex","segmentHead","nodesToSkip","calcSerializedContainerSize","siblingAfter","skip","from","currentNode","i","navigateToNode","from","instructions","node","i","step","repeat","r","NodeNavigationStep","locateRNodeByPath","path","lView","referenceNode","navigationInstructions","decompressNodeLocation","ref","REFERENCE_NODE_HOST","DECLARATION_COMPONENT_VIEW","HOST","REFERENCE_NODE_BODY","ɵɵresolveBody","parentElementId","unwrapRNode","HEADER_OFFSET","locateDehydratedViewsInContainer","currentRNode","serializedViews","dehydratedViews","serializedView","i","MULTIPLIER","view","NUM_ROOT_NODES","siblingAfter","_findMatchingDehydratedViewImpl","findMatchingDehydratedViewImpl","lContainer","template","views","DEHYDRATED_VIEWS","TEMPLATE_ID","removeDehydratedViews","enableFindMatchingDehydratedViewImpl","findMatchingDehydratedView","ChangeDetectionScheduler","ComponentRef$1","ComponentFactory$1","noComponentFactoryError","component","error","stringify","ERROR_COMPONENT","_NullComponentFactoryResolver","component","noComponentFactoryError","ComponentFactoryResolver$1","_ComponentFactoryResolver$1","RendererFactory2","Renderer2","_Renderer2","injectRenderer2","lView","getLView","tNode","getCurrentTNode","nodeAtIndex","getComponentLViewByIndex","isLView","RENDERER","Sanitizer","_Sanitizer","ɵɵdefineInjectable","NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR","markedFeatures","performanceMarkFeature","feature","noop","args","getNativeRequestAnimationFrame","isBrowser","_global","nativeRequestAnimationFrame","nativeCancelAnimationFrame","unpatchedRequestAnimationFrame","unpatchedCancelAnimationFrame","NgZone","_NgZone","enableLongStackTrace","shouldCoalesceEventChangeDetection","shouldCoalesceRunChangeDetection","EventEmitter","RuntimeError","self","getNativeRequestAnimationFrame","forkInnerZoneWithAngularBehavior","fn","applyThis","applyArgs","name","zone","task","EMPTY_PAYLOAD","noop","checkStable","delayChangeDetectionForEvents","_global","updateMicroTaskStatus","delayChangeDetectionForEventsDelegate","delegate","current","target","shouldBeIgnoredByZone","onEnter","onLeave","callback","source","hasTaskState","error","shouldBeIgnoredByZone","applyArgs","AfterRenderPhase","NOOP_AFTER_RENDER_REF","afterNextRender","callback","options","assertInInjectionContext","injector","inject","Injector","isPlatformBrowser","NOOP_AFTER_RENDER_REF","performanceMarkFeature","afterRenderEventManager","AfterRenderEventManager","callbackHandler","AfterRenderCallbackHandlerImpl","phase","AfterRenderPhase","destroy","instance","unregisterFn","DestroyRef","runInInjectionContext","AfterRenderCallback","callbackFn","NgZone","ErrorHandler","ChangeDetectionScheduler","err","bucket","_AfterRenderEventManager","callbacks","ɵɵdefineInjectable","computeStaticStyling","tNode","attrs","writeToHost","styles","classes","mode","i","value","concatStringsWithSpace","style","styleValue","ComponentFactoryResolver","ComponentFactoryResolver$1","ngModule","component","componentDef","getComponentDef","ComponentFactory","toRefArray","map","array","publicName","getNamespace","elementName","name","SVG_NAMESPACE","MATH_ML_NAMESPACE","ChainedInjector","injector","parentInjector","token","notFoundValue","flags","convertToBitFlags","NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR","ComponentFactory$1","inputTransforms","refArray","input","stringifyCSSSelectorList","projectableNodes","rootSelectorOrNode","environmentInjector","prevConsumer","setActiveConsumer","realEnvironmentInjector","EnvironmentInjector","rootViewInjector","rendererFactory","RendererFactory2","RuntimeError","sanitizer","Sanitizer","afterRenderEventManager","AfterRenderEventManager","changeDetectionScheduler","ChangeDetectionScheduler","environment","hostRenderer","hostRNode","locateHostElement","createElementNode","rootFlags","hydrationInfo","retrieveHydrationInfo","rootTView","createTView","rootLView","createLView","enterView","tElementNode","rootComponentDef","rootDirectives","hostDirectiveDefs","hostTNode","createRootComponentTNode","componentView","createRootComponentView","getTNode","HEADER_OFFSET","setRootNodeAttributes","projectNodes","createRootComponent","LifecycleHooksFeature","renderView","leaveView","ComponentRef","createElementRef","ComponentRef$1","componentType","instance","location","_rootLView","_tNode","ViewRef$1","inputData","dataValue","lView","setInputsForProperty","TVIEW","childComponentLView","getComponentLViewByIndex","markViewDirty","NodeInjector","callback","rNode","tView","index","getOrCreateTNode","rootView","applyRootComponentStyling","INJECTOR","viewRenderer","lViewFlags","getOrCreateComponentTView","markAsComponentHost","addToViewTree","def","mergeHostAttrs","setupStaticAttributes","hostFeatures","rootTNode","getCurrentTNode","native","getNativeByTNode","initializeDirectives","directiveIndex","directiveInstance","getNodeInjectable","attachPatchData","invokeDirectivesHostBindings","CONTEXT","feature","executeContentQueries","setUpAttributes","extractAttrsAndClassesFromSelector","writeDirectClass","ngContentSelectors","projection","nodesforSlot","registerPostOrderHooks","getLView","ViewContainerRef","_ViewContainerRef","injectViewContainerRef","previousTNode","createContainerRef","VE_ViewContainerRef","R3ViewContainerRef","_lContainer","_hostTNode","_hostLView","parentLocation","getParentInjectorLocation","hasParentInjector","parentView","getParentInjectorView","injectorIndex","getParentInjectorIndex","parentTNode","viewRefs","getViewRefs","CONTAINER_HEADER_OFFSET","templateRef","context","indexOrOptions","dehydratedView","findMatchingDehydratedView","viewRef","shouldAddViewToDom","componentFactoryOrType","isComponentFactory","isType","options","componentFactory","contextInjector","result","componentRef","addToDOM","viewAttachedToContainer","prevIdx","prevLContainer","PARENT","prevVCRef","T_HOST","adjustedIdx","lContainer","addLViewToLContainer","addToArray","getOrCreateViewRefs","newIndex","viewRefsArr","detachedView","detachView","removeFromArray","destroyLView","view","shift","VIEW_REFS","hostLView","slotValue","isLContainer","createLContainer","_locateOrCreateAnchorNode","insertAnchorNode","renderer","RENDERER","commentNode","hostNative","parentOfHostNative","nativeParentNode","nativeInsertBefore","nativeNextSibling","createAnchorNode","_populateDehydratedViewsInLContainer","populateDehydratedViewsInLContainer","NATIVE","unwrapRNode","populateDehydratedViewsInLContainerImpl","DEHYDRATED_VIEWS","HYDRATION","noOffsetIndex","isInSkipHydrationBlock","isDisconnectedNode$1","currentRNode","getSegmentHead","serializedViews","CONTAINERS","dehydratedViews","locateDehydratedViewsInContainer","locateOrCreateAnchorNode","enableLocateOrCreateContainerRefImpl","LQuery_","_LQuery_","queryList","LQueries_","_LQueries_","queries","tQueries","noOfInheritedQueries","viewLQueries","tQuery","parentLQuery","getTQuery","TQueryMetadata_","predicate","read","splitQueryMultiSelectors","TQueries_","_TQueries_","queriesForTemplateRef","childQueryIndex","tqueryClone","tquery","TQuery_","_TQuery_","metadata","nodeIndex","declarationNodeIdx","parent","getIdxOfMatchingSelector","locateDirectiveOrProvider","TemplateRef","nodeMatchIdx","ElementRef","directiveOrProviderIdx","tNodeIdx","matchIdx","selector","localNames","createResultByTNodeType","currentView","createTemplateRef","createResultForNode","matchingIdx","createSpecialToken","materializeViewResults","queryIndex","lQuery","QUERIES","tViewData","tQueryMatches","matchedNodeIdx","collectQueryResults","lViewResults","declarationLContainer","embeddedLView","DECLARATION_LCONTAINER","MOVED_VIEWS","embeddedLViews","loadQueryInternal","createLQuery","QueryList","storeCleanupWithContext","createViewQuery","getTView","createTQuery","createContentQuery","saveContentQueryAndDirectiveIndex","locator","s","tViewContentQueries","lastSavedDirectiveIndex","getQueryResults","signal","initialValue","options","performanceMarkFeature","signalFn","createSignal","node","SIGNAL","newValue","signalSetFn","updateFn","signalUpdateFn","signalAsReadonlyFn","readonlyFn","getSuperType","type","ɵɵInheritDefinitionFeature","definition","superType","shouldInheritFields","inheritanceChain","superDef","isComponentDef","RuntimeError","writeableDef","maybeUnwrapEmpty","superHostBindings","inheritHostBindings","superViewQuery","superContentQueries","inheritViewQuery","inheritContentQueries","mergeInputsWithTransforms","fillProperties","defData","features","i","feature","mergeHostAttrsAcrossInheritance","target","source","key","value","minifiedName","hostVars","hostAttrs","def","mergeHostAttrs","EMPTY_OBJ","EMPTY_ARRAY","prevViewQuery","rf","ctx","prevContentQueries","directiveIndex","prevHostBindings","ɵɵInputTransformsFeature","definition","inputs","inputTransforms","minifiedKey","value","NgModuleRef$1","NgModuleFactory$1","NgModuleRef","NgModuleRef$1","ngModuleType","_parent","additionalProviders","ComponentFactoryResolver","ngModuleDef","getNgModuleDef","maybeUnwrapFn","createInjectorWithoutInjectorInstances","ComponentFactoryResolver$1","stringify","injector","fn","callback","NgModuleFactory","NgModuleFactory$1","moduleType","parentInjector","EnvironmentNgModuleRefAdapter","NgModuleRef$1","config","ComponentFactoryResolver","injector","R3Injector","ComponentFactoryResolver$1","getNullInjector","callback","createEnvironmentInjector","providers","parent","debugName","PendingTasks","_PendingTasks","BehaviorSubject","taskId","t","ɵɵdefineInjectable","isListLikeIterable","obj","isJsObject","iterateListLike","obj","fn","iterator","item","isJsObject","o","updateBinding","lView","bindingIndex","value","getBinding","bindingUpdated","oldValue","bindingUpdated2","exp1","exp2","different","bindingUpdated3","exp3","bindingUpdated4","exp4","isDetachedByI18n","tNode","templateFirstCreatePass","index","tView","templateFn","decls","vars","tagName","attrsIndex","localRefsIndex","tViewConsts","getOrCreateTNode","getConstant","resolveDirectives","registerPostOrderHooks","embeddedTView","createTView","ɵɵtemplate","localRefExtractor","getLView","getTView","adjustedIndex","HEADER_OFFSET","setCurrentTNode","comment","_locateOrCreateContainerAnchor","wasLastNodeCreated","appendChild","attachPatchData","lContainer","createLContainer","addToViewTree","populateDehydratedViewsInLContainer","isDirectiveHost","createDirectivesInstances","saveResolvedLocalsInData","createContainerAnchorImpl","lastNodeWasCreated","RENDERER","locateOrCreateContainerAnchorImpl","hydrationInfo","HYDRATION","isNodeCreationMode","isInSkipHydrationBlock$1","isDisconnectedNode$1","ssrId","TEMPLATES","currentRNode","locateNextRNode","setSegmentHead","viewContainerSize","calcSerializedContainerSize","siblingAfter","enableLocateOrCreateContainerAnchorImpl","ɵɵattribute","name","value","sanitizer","namespace","lView","getLView","bindingIndex","nextBindingIndex","bindingUpdated","tView","getTView","tNode","getSelectedTNode","elementAttributeInternal","interpolation1","lView","prefix","v0","suffix","bindingUpdated","nextBindingIndex","renderStringify","NO_CHANGE","interpolation2","i0","v1","bindingIndex","getBindingIndex","different","bindingUpdated2","incrementBindingIndex","interpolation3","i1","v2","bindingUpdated3","interpolation4","i2","v3","bindingUpdated4","interpolation5","i3","v4","toTStylingRange","prev","next","getTStylingRangePrev","tStylingRange","getTStylingRangePrevDuplicate","setTStylingRangePrev","previous","setTStylingRangePrevDuplicate","getTStylingRangeNext","setTStylingRangeNext","getTStylingRangeNextDuplicate","setTStylingRangeNextDuplicate","insertTStylingBinding","tData","tNode","tStylingKeyWithStatic","index","isHostBinding","isClassBinding","tBindings","tmplHead","getTStylingRangePrev","tmplTail","getTStylingRangeNext","isKeyDuplicateOfStatic","tStylingKey","staticKeyValueArray","keyValueArrayIndexOf","previousNode","toTStylingRange","setTStylingRangeNext","setTStylingRangePrev","setTStylingRangePrevDuplicate","markDuplicates","markDuplicateOfResidualStyling","residual","setTStylingRangeNextDuplicate","isPrevDir","tStylingAtIndex","isMap","cursor","foundDuplicate","tStylingValueAtCursor","tStyleRangeAtCursor","isStylingMatch","tStylingKeyCursor","parserState","getLastParsedKey","text","getLastParsedValue","parseClassName","resetParserState","parseClassNameNext","consumeWhitespace","end","consumeClassToken","parseStyle","parseStyleNext","startIndex","consumeStyleKey","consumeSeparator","consumeStyleValue","endIndex","ch","separator","ch1","ch2","ch3","i","lastChIndex","consumeQuotedText","quoteCharCode","ɵɵproperty","propName","value","sanitizer","lView","getLView","bindingIndex","nextBindingIndex","bindingUpdated","tView","getTView","tNode","getSelectedTNode","elementPropertyInternal","RENDERER","setDirectiveInputsWhichShadowsStyling","isClassBased","inputs","property","setInputsForProperty","ɵɵclassProp","className","value","checkStylingProperty","ɵɵstyleMap","styles","checkStylingMap","styleKeyValueArraySet","styleStringParser","keyValueArray","text","parseStyle","parseStyleNext","getLastParsedKey","getLastParsedValue","ɵɵclassMap","classes","classKeyValueArraySet","classStringParser","parseClassName","parseClassNameNext","keyValueArraySet","prop","suffix","isClassBased","lView","getLView","tView","getTView","bindingIndex","incrementBindingIndex","stylingFirstUpdatePass","NO_CHANGE","bindingUpdated","tNode","getSelectedIndex","updateStyling","RENDERER","normalizeSuffix","stringParser","hasStylingInputShadow","isInHostBindings","staticPrefix","concatStringsWithSpace","setDirectiveInputsWhichShadowsStyling","updateStylingMap","toStylingKeyValueArray","tStylingKey","tData","isHostBindings","wrapInStaticStylingKey","insertTStylingBinding","stylingKey","hostDirectiveDef","getCurrentDirectiveDef","residual","collectStylingFromDirectives","collectStylingFromTAttrs","directiveStylingLast","templateStylingKey","getTemplateHeadTStylingKey","setTemplateHeadTStylingKey","collectResidual","bindings","getTStylingRangeNext","getTStylingRangePrev","directiveEnd","i","attrs","currentDirective","desiredMarker","currentMarker","item","EMPTY_ARRAY","styleKeyValueArray","unwrappedValue","unwrapSafeValue","key","stringKey","renderer","oldKeyValueArray","newKeyValueArray","oldIndex","newIndex","oldKey","newKey","oldValue","newValue","setKey","setValue","tRange","higherPriorityValue","getTStylingRangeNextDuplicate","findStylingValue","isStylingValuePresent","getTStylingRangePrevDuplicate","rNode","getNativeByIndex","applyStyling","index","isPrevDirection","rawKey","containsStatics","isStylingMap","valueAtLViewIndex","currentValue","keyValueArrayGet","stringify","elementStartFirstCreatePass","index","tView","lView","name","attrsIndex","localRefsIndex","tViewConsts","attrs","getConstant","tNode","getOrCreateTNode","resolveDirectives","computeStaticStyling","ɵɵelementStart","getLView","getTView","adjustedIndex","HEADER_OFFSET","renderer","RENDERER","native","_locateOrCreateElementNode","hasDirectives","isDirectiveHost","setCurrentTNode","setupStaticAttributes","isDetachedByI18n","wasLastNodeCreated","appendChild","getElementDepthCount","attachPatchData","increaseElementDepthCount","createDirectivesInstances","executeContentQueries","saveResolvedLocalsInData","ɵɵelementEnd","currentTNode","getCurrentTNode","isCurrentTNodeParent","setCurrentTNodeAsNotParent","isSkipHydrationRootTNode","leaveSkipHydrationBlock","decreaseElementDepthCount","registerPostOrderHooks","isContentQueryHost","hasClassInput","setDirectiveInputsWhichShadowsStyling","hasStyleInput","ɵɵelement","lastNodeWasCreated","createElementNode","getNamespace$1","locateOrCreateElementNodeImpl","hydrationInfo","HYDRATION","isNodeCreationMode","isInSkipHydrationBlock$1","isDisconnectedNode$1","locateNextRNode","getSerializedContainerViews","setSegmentHead","hasSkipHydrationAttrOnTNode","hasSkipHydrationAttrOnRElement","isComponentHost","enterSkipHydrationBlock","clearElementContents","enableLocateOrCreateElementNodeImpl","elementContainerStartFirstCreatePass","localRefs","ɵɵelementContainerStart","comment","_locateOrCreateElementContainerNode","ɵɵelementContainerEnd","ɵɵelementContainer","createCommentNode","locateOrCreateElementContainerNode","currentRNode","ngContainerSize","getNgContainerSize","siblingAfter","enableLocateOrCreateElementContainerNodeImpl","ɵɵgetCurrentView","u","plural","val","n","v","localeEn","LOCALE_DATA","findLocaleData","locale","normalizedLocale","normalizeLocale","match","getLocaleData","parentLocale","localeEn","RuntimeError","getLocaleData","normalizedLocale","LOCALE_DATA","_global","LocaleDataIndex","normalizeLocale","locale","DEFAULT_LOCALE_ID","LOCALE_ID$1","DEFAULT_LOCALE_ID","setLocaleId","localeId","createNodeWithoutHydration","lView","textOrName","nodeType","renderer","RENDERER","createCommentNode","createTextNode","createElementNode","_locateOrCreateNode","index","lastNodeWasCreated","locateOrCreateNodeImpl","enableLocateOrCreateI18nNodeImpl","ɵɵlistener","eventName","listenerFn","useCapture","eventTargetResolver","lView","getLView","tView","getTView","tNode","getCurrentTNode","listenerInternal","RENDERER","findExistingListener","tView","lView","eventName","tNodeIdx","tCleanup","i","cleanupEventName","lCleanup","CLEANUP","listenerIdxInLCleanup","listenerInternal","renderer","tNode","listenerFn","eventTargetResolver","isTNodeDirectiveHost","isDirectiveHost","getOrCreateTViewCleanup","context","CONTEXT","getOrCreateLViewCleanup","processOutputs","native","getNativeByTNode","target","lCleanupIndex","idxOrTargetGetter","_lView","unwrapRNode","existingListener","lastListenerFn","wrapListener","cleanupFn","outputs","props","propsLength","index","minifiedName","subscription","idx","executeListenerWithErrorHandling","e","prevConsumer","setActiveConsumer","profiler","error","handleError","wrapWithPreventDefault","wrapListenerIn_markDirtyAndPreventDefault","startView","getComponentLViewByIndex","markViewDirty","result","nextListenerFn","ɵɵnextContext","level","nextContextImpl","matchingProjectionSlotIndex","tNode","projectionSlots","wildcardNgContentIndex","ngProjectAsAttrVal","getProjectAsAttrValue","i","slotValue","isNodeMatchingSelectorList","isSelectorInSelectorList","ɵɵprojectionDef","componentNode","getLView","DECLARATION_COMPONENT_VIEW","T_HOST","numProjectionSlots","projectionHeads","newArray","tails","componentChild","slotIndex","ɵɵprojection","nodeIndex","selectorIndex","attrs","lView","tView","getTView","tProjectionNode","getOrCreateTNode","HEADER_OFFSET","setCurrentTNodeAsNotParent","HYDRATION","isInSkipHydrationBlock$1","applyProjection","ɵɵpropertyInterpolate1","propName","prefix","v0","suffix","sanitizer","lView","getLView","interpolatedValue","interpolation1","NO_CHANGE","tView","getTView","tNode","getSelectedTNode","elementPropertyInternal","RENDERER","ɵɵcontentQuery","directiveIndex","predicate","flags","read","createContentQuery","ɵɵviewQuery","createViewQuery","ɵɵqueryRefresh","queryList","lView","getLView","tView","getTView","queryIndex","getCurrentQueryIndex","setCurrentQueryIndex","tQuery","getTQuery","isCreationMode","result","getQueryResults","unwrapElementRef","ɵɵloadQuery","loadQueryInternal","store","tView","lView","index","value","ɵɵreference","contextLView","getContextLView","load","HEADER_OFFSET","ɵɵtext","index","value","lView","getLView","tView","getTView","adjustedIndex","HEADER_OFFSET","tNode","getOrCreateTNode","textNative","_locateOrCreateTextNode","wasLastNodeCreated","appendChild","setCurrentTNode","lastNodeWasCreated","createTextNode","RENDERER","locateOrCreateTextNodeImpl","hydrationInfo","HYDRATION","isNodeCreationMode","isInSkipHydrationBlock$1","isDetachedByI18n","isDisconnectedNode$1","locateNextRNode","enableLocateOrCreateTextNodeImpl","ɵɵtextInterpolate","v0","ɵɵtextInterpolate1","prefix","suffix","interpolated","interpolation1","NO_CHANGE","textBindingInternal","getSelectedIndex","ɵɵtextInterpolate2","i0","v1","interpolation2","ɵɵtextInterpolate3","i1","v2","interpolation3","ɵɵtextInterpolate4","i2","v3","interpolation4","ɵɵtextInterpolate5","i3","v4","interpolation5","providersResolver","def","providers","viewProviders","tView","getTView","isComponent","isComponentDef","resolveProvider","provider","tInjectables","lInjectablesBlueprint","isViewProvider","resolveForwardRef","i","lView","getLView","tNode","getCurrentTNode","token","isTypeProvider","providerFactory","providerToFactory","beginIndex","endIndex","cptViewProvidersCount","factory","NodeInjectorFactory","ɵɵdirectiveInject","existingFactoryIndex","indexOf","diPublicInInjector","getOrCreateNodeInjectorForNode","registerDestroyHooksIfSupported","existingProvidersFactoryIndex","existingViewProvidersFactoryIndex","doesProvidersFactoryExist","doesViewProvidersFactoryExist","multiFactory","multiViewProvidersFactoryResolver","multiProvidersFactoryResolver","indexInFactory","multiFactoryAdd","contextIndex","providerIsTypeProvider","providerIsClassProvider","isClassProvider","ngOnDestroy","hooks","existingCallbacksIndex","isComponentProvider","item","arr","begin","end","_","tData","lData","multiResolve","factories","result","componentCount","multiProviders","getNodeInjectable","TVIEW","factoryFn","index","f","ɵɵProvidersFeature","definition","processProvidersFn","StandaloneService","_StandaloneService","_injector","componentDef","internalImportProvidersFrom","standaloneInjector","createEnvironmentInjector","injector","ɵɵdefineInjectable","ɵɵinject","EnvironmentInjector","ɵɵStandaloneFeature","performanceMarkFeature","parentInjector","ɵɵpureFunction0","slotOffset","pureFn","thisArg","bindingIndex","getBindingRoot","lView","getLView","NO_CHANGE","updateBinding","getBinding","ɵɵpureFunction1","exp","pureFunction1Internal","ɵɵpureFunction2","exp1","exp2","pureFunction2Internal","ɵɵpureFunction3","exp3","pureFunction3Internal","getPureFunctionReturnValue","lView","returnValueIndex","lastReturnValue","NO_CHANGE","pureFunction1Internal","bindingRoot","slotOffset","pureFn","exp","thisArg","bindingIndex","bindingUpdated","updateBinding","pureFunction2Internal","exp1","exp2","bindingUpdated2","pureFunction3Internal","exp3","bindingUpdated3","ɵɵpipe","index","pipeName","tView","getTView","pipeDef","adjustedIndex","HEADER_OFFSET","getPipeDef","pipeFactory","getFactoryDef","previousInjectorProfilerContext","previousInjectImplementation","setInjectImplementation","ɵɵdirectiveInject","previousIncludeViewProviders","setIncludeViewProviders","pipeInstance","store","getLView","name","registry","ɵɵpipeBind1","index","offset","v1","adjustedIndex","HEADER_OFFSET","lView","getLView","pipeInstance","load","isPure","pureFunction1Internal","getBindingRoot","ɵɵpipeBind2","slotOffset","v2","pureFunction2Internal","isPure","lView","index","TVIEW","ɵɵtemplateRefExtractor","tNode","createTemplateRef","Console","_Console","message","t","ɵɵdefineInjectable","TESTABILITY","InjectionToken","isPromise","obj","isSubscribable","APP_INITIALIZER","InjectionToken","ApplicationInitStatus","_ApplicationInitStatus","res","rej","inject","asyncInitPromises","appInits","initResult","observableAsPromise","resolve","reject","complete","e","t","ɵɵdefineInjectable","APP_BOOTSTRAP_LISTENER","publishSignalConfiguration","setThrowInvalidWriteToSignalError","RuntimeError","isBoundToModule","cf","_callAndReportToErrorHandler","errorHandler","ngZone","callback","result","isPromise","e","ApplicationRef","_ApplicationRef","inject","INTERNAL_APPLICATION_ERROR_HANDLER","AfterRenderEventManager","Subject","PendingTasks","map","pending","EnvironmentInjector","componentOrFactory","rootSelectorOrNode","isComponentFactory","ComponentFactory$1","ApplicationInitStatus","standalone","isStandalone","errorMessage","RuntimeError","componentFactory","ComponentFactoryResolver$1","ngModule","isBoundToModule","NgModuleRef$1","selectorOrNode","compRef","Injector","nativeElement","testability","TESTABILITY","remove","refreshViews","prevConsumer","setActiveConsumer","e","runs","afterRenderEffectManager","MAXIMUM_REFRESH_RERUNS","isFirstPass","_lView","notifyErrorHandler","detectChangesInViewIfRequired","shouldRecheckView","viewRef","view","componentRef","listeners","APP_BOOTSTRAP_LISTENER","listener","callback","injector","t","ɵɵdefineInjectable","list","el","index","whenStableStore","whenStable","applicationRef","cachedWhenStable","whenStablePromise","first","isStable","lView","detectChangesInView","requiresRefreshOrTraversal","mode","FLAGS","detectChangesInternal","ModuleWithComponentFactories","ngModuleFactory","componentFactories","Compiler","_Compiler","moduleType","NgModuleFactory","moduleDef","getNgModuleDef","maybeUnwrapFn","factories","declaration","componentDef","getComponentDef","ComponentFactory","type","NgZoneChangeDetectionScheduler","_NgZoneChangeDetectionScheduler","inject","NgZone","ApplicationRef","t","ɵɵdefineInjectable","internalProvideZoneChangeDetection","ngZoneFactory","NgZone","ENVIRONMENT_INITIALIZER","ngZoneChangeDetectionScheduler","inject","NgZoneChangeDetectionScheduler","service","ZoneStablePendingTask","INTERNAL_APPLICATION_ERROR_HANDLER","ngZoneApplicationErrorHandlerFactory","zone","userErrorHandler","ErrorHandler","e","provideZoneChangeDetection","options","zoneProviders","getNgZoneOptions","makeEnvironmentProviders","_ZoneStablePendingTask","Subscription","PendingTasks","task","t","ɵɵdefineInjectable","getGlobalLocale","DEFAULT_LOCALE_ID","LOCALE_ID","InjectionToken","InjectFlags","PLATFORM_DESTROY_LISTENERS","InjectionToken","_platformInjector","createPlatformInjector","providers","name","Injector","INJECTOR_SCOPE","PLATFORM_DESTROY_LISTENERS","_platformInjector","createOrReusePlatformInjector","providers","_platformInjector","injector","createPlatformInjector","publishSignalConfiguration","runPlatformInitializers","PLATFORM_INITIALIZER","init","ChangeDetectorRef","_ChangeDetectorRef","injectChangeDetectorRef","flags","createViewRef","getCurrentTNode","getLView","tNode","lView","isPipe","isComponentHost","componentView","getComponentLViewByIndex","ViewRef$1","hostComponentView","DECLARATION_COMPONENT_VIEW","DefaultIterableDifferFactory","obj","isListLikeIterable","trackByFn","DefaultIterableDiffer","trackByIdentity","index","item","fn","record","nextIt","nextRemove","addRemoveOffset","moveOffsets","getPreviousIndex","adjPreviousIndex","currentIndex","localMovePreviousIndex","localCurrentIndex","i","offset","previousIndex","collection","RuntimeError","mayBeDirty","itemTrackBy","iterateListLike","previousRecord","IterableChangeRecord_","reinsertRecord","nextRecord","prevRecord","prev","next","_DuplicateMap","toIndex","trackById","_DuplicateItemRecordList","atOrAfterIndex","key","duplicates","recordList","moveOffset","DefaultKeyValueDifferFactory","isJsObject","DefaultKeyValueDiffer","map","insertBefore","value","before","KeyValueChangeRecord_","newValue","k","defaultIterableDiffersFactory","IterableDiffers","_IterableDiffers","factories","parent","copied","SkipSelf","Optional","iterable","factory","f","ɵɵdefineInjectable","defaultKeyValueDiffersFactory","KeyValueDiffers","DefaultKeyValueDifferFactory","_KeyValueDiffers","factories","parent","copied","SkipSelf","Optional","kv","factory","f","RuntimeError","ɵɵdefineInjectable","internalCreateApplication","config","rootComponent","appProviders","platformProviders","platformInjector","createOrReusePlatformInjector","allAppProviders","provideZoneChangeDetection","envInjector","EnvironmentNgModuleRefAdapter","ngZone","NgZone","exceptionHandler","ErrorHandler","onErrorSubscription","error","destroyListener","onPlatformDestroyListeners","PLATFORM_DESTROY_LISTENERS","_callAndReportToErrorHandler","initStatus","ApplicationInitStatus","localeId","LOCALE_ID","DEFAULT_LOCALE_ID","setLocaleId","appRef","ApplicationRef","e","isHydrationSupportEnabled","_isI18nHydrationSupportEnabled","enableHydrationRuntimeSupport","isHydrationSupportEnabled","enableRetrieveHydrationInfoImpl","enableLocateOrCreateElementNodeImpl","enableLocateOrCreateTextNodeImpl","enableLocateOrCreateElementContainerNodeImpl","enableLocateOrCreateContainerAnchorImpl","enableLocateOrCreateContainerRefImpl","enableFindMatchingDehydratedViewImpl","enableApplyRootElementTransformImpl","enableLocateOrCreateI18nNodeImpl","whenStableWithTimeout","appRef","injector","whenStable","withDomHydration","makeEnvironmentProviders","IS_HYDRATION_DOM_REUSE_ENABLED","isEnabled","isPlatformBrowser","inject","TransferState","NGH_DATA_KEY","performanceMarkFeature","ENVIRONMENT_INITIALIZER","_isI18nHydrationSupportEnabled","IS_I18N_HYDRATION_ENABLED","verifySsrContentsIntegrity","enableHydrationRuntimeSupport","PRESERVE_HOST_CONTENT","APP_BOOTSTRAP_LISTENER","ApplicationRef","Injector","cleanupDehydratedViews","verifySsrContentsIntegrity","doc","getDocument","hydrationMarker","node","SSR_CONTENT_INTEGRITY_MARKER","RuntimeError","booleanAttribute","value","numberAttribute","fallbackValue","reflectComponentType","component","componentDef","getComponentDef","factory","ComponentFactory","_DOM","getDOM","setRootDomAdapter","adapter","DomAdapter","DOCUMENT","InjectionToken","PlatformLocation","_PlatformLocation","relativePosition","t","ɵɵdefineInjectable","inject","BrowserPlatformLocation","LOCATION_INITIALIZED","_BrowserPlatformLocation","getDOM","fn","window","newPath","state","title","url","joinWithSlash","start","end","slashes","stripTrailingSlash","match","pathEndIdx","droppedSlashIdx","normalizeQueryParams","params","LocationStrategy","_LocationStrategy","PathLocationStrategy","APP_BASE_HREF","_PathLocationStrategy","_platformLocation","href","internal","includeHash","pathname","hash","queryParams","externalUrl","ɵɵinject","HashLocationStrategy","_HashLocationStrategy","_baseHref","path","Location","_Location","locationStrategy","EventEmitter","baseHref","_stripOrigin","_stripIndexHtml","ev","query","_stripBasePath","v","fnIndex","onNext","onThrow","onReturn","createLocation","basePath","strippedUrl","FormStyle","TranslationWidth","FormatWidth","NumberSymbol","getLocaleId","locale","findLocaleData","LocaleDataIndex","getLocaleDayPeriods","formStyle","width","data","amPmData","amPm","getLastDefinedValue","getLocaleDayNames","daysData","days","getLocaleMonthNames","monthsData","months","getLocaleEraNames","erasData","getLocaleDateFormat","locale","width","data","findLocaleData","getLastDefinedValue","LocaleDataIndex","getLocaleTimeFormat","getLocaleDateTimeFormat","dateTimeFormatData","getLocaleNumberSymbol","symbol","res","NumberSymbol","checkFullData","data","LocaleDataIndex","getLocaleExtraDayPeriodRules","locale","findLocaleData","rule","extractTime","getLocaleExtraDayPeriods","formStyle","width","dayPeriodsData","dayPeriods","getLastDefinedValue","getLastDefinedValue","data","index","extractTime","time","h","m","ISO8601_DATE_REGEX","NAMED_FORMATS","DATE_FORMATS_SPLIT","ZoneWidth","DateType","TranslationType","formatDate","value","format","locale","timezone","date","toDate","getNamedFormat","parts","match","part","dateTimezoneOffset","timezoneToOffset","convertTimezoneToLocal","text","dateFormatter","getDateFormatter","createDate","year","month","newDate","localeId","getLocaleId","formatValue","getLocaleDateFormat","FormatWidth","getLocaleTimeFormat","shortTime","shortDate","formatDateTime","getLocaleDateTimeFormat","mediumTime","mediumDate","longTime","longDate","fullTime","fullDate","str","opt_values","key","padNumber","num","digits","minusSign","trim","negWrap","neg","strNum","formatFractionalSeconds","milliseconds","dateGetter","name","size","offset","getDatePart","localeMinus","getLocaleNumberSymbol","NumberSymbol","dateStrGetter","width","form","FormStyle","extended","getDateTranslation","getLocaleMonthNames","getLocaleDayNames","currentHours","currentMinutes","rules","getLocaleExtraDayPeriodRules","dayPeriods","getLocaleExtraDayPeriods","index","rule","from","to","afterFrom","beforeTo","getLocaleDayPeriods","getLocaleEraNames","unexpected","timeZoneGetter","zone","hours","JANUARY","THURSDAY","getFirstThursdayOfYear","firstDayOfYear","getThursdayThisIsoWeek","datetime","currentDay","deltaToThursday","weekGetter","monthBased","result","nbDaysBefore1stDayOfMonth","today","thisThurs","firstThurs","diff","weekNumberingYearGetter","weekNumberingYear","DATE_FORMATS","formatter","TranslationWidth","fallback","requestedTimezoneOffset","addDateMinutes","minutes","reverse","reverseValue","timezoneOffset","isDate","y","m","d","val","parsedNb","isoStringToDate","tzHour","tzMin","dateSetter","timeSetter","h","s","ms","parseCookieValue","cookieStr","name","cookie","eqIndex","cookieName","cookieValue","WS_REGEXP","EMPTY_ARRAY","NgClass","_NgClass","_ngEl","_renderer","value","klass","rawClass","nextEnabled","state","stateEntry","enabled","t","ɵɵdirectiveInject","ElementRef","Renderer2","ɵɵdefineDirective","InputFlags","NgForOfContext","$implicit","ngForOf","index","count","NgForOf","_NgForOf","fn","_viewContainer","_template","_differs","value","changes","viewContainer","item","adjustedPreviousIndex","currentIndex","view","applyViewChange","i","ilen","context","record","viewRef","dir","ctx","t","ɵɵdirectiveInject","ViewContainerRef","TemplateRef","IterableDiffers","ɵɵdefineDirective","NgIf","_NgIf","_viewContainer","templateRef","NgIfContext","condition","assertTemplate","dir","ctx","t","ɵɵdirectiveInject","ViewContainerRef","TemplateRef","ɵɵdefineDirective","property","stringify","NgStyle","_NgStyle","_ngEl","_differs","_renderer","values","changes","nameAndUnit","value","name","unit","flags","RendererStyleFlags2","record","t","ɵɵdirectiveInject","ElementRef","KeyValueDiffers","Renderer2","ɵɵdefineDirective","NgTemplateOutlet","_NgTemplateOutlet","_viewContainerRef","viewContainerRef","viewContext","_target","prop","newValue","receiver","ViewContainerRef","ɵɵNgOnChangesFeature","invalidPipeArgumentError","type","value","RuntimeError","DEFAULT_DATE_FORMAT","DATE_PIPE_DEFAULT_TIMEZONE","InjectionToken","DATE_PIPE_DEFAULT_OPTIONS","DatePipe","_DatePipe","locale","defaultTimezone","defaultOptions","value","format","timezone","_format","_timezone","formatDate","error","invalidPipeArgumentError","t","ɵɵdirectiveInject","LOCALE_ID","ɵɵdefinePipe","CommonModule","_CommonModule","t","ɵɵdefineNgModule","ɵɵdefineInjector","PLATFORM_BROWSER_ID","PLATFORM_SERVER_ID","isPlatformBrowser","platformId","PLATFORM_BROWSER_ID","isPlatformServer","PLATFORM_SERVER_ID","ViewportScroller","_ViewportScroller","ɵɵdefineInjectable","isPlatformBrowser","inject","PLATFORM_ID","BrowserViewportScroller","DOCUMENT","NullViewportScroller","document","window","offset","position","target","elSelected","findAnchorFromDocument","scrollRestoration","el","rect","left","top","documentResult","treeWalker","currentNode","shadowRoot","result","anchor","XhrFactory","HttpHandler","HttpBackend","HttpHeaders","_HttpHeaders","headers","line","index","name","key","value","values","lcName","update","other","clone","base","toDelete","existing","headerValues","fn","HttpUrlEncodingCodec","key","standardEncoding","value","paramParser","rawParams","codec","map","param","eqIdx","val","list","STANDARD_ENCODING_REGEX","STANDARD_ENCODING_REPLACEMENTS","v","s","t","valueToString","HttpParams","_HttpParams","options","values","res","params","updates","_value","eKey","update","clone","base","idx","HttpContext","token","value","mightHaveBody","method","isArrayBuffer","isBlob","isFormData","isUrlSearchParams","HttpRequest","_HttpRequest","url","third","fourth","options","HttpHeaders","HttpParams","params","qIdx","sep","update","responseType","transferCache","body","withCredentials","reportProgress","headers","context","name","param","HttpEventType","HttpResponseBase","init","defaultStatus","HttpStatusCode","defaultStatusText","HttpHeaderResponse","_HttpHeaderResponse","HttpResponse","_HttpResponse","HttpErrorResponse","addBody","HttpClient","_HttpClient","handler","first","req","events$","of","concatMap","res$","filter","event","map","res","callbackParam","t","ɵɵinject","HttpHandler","ɵɵdefineInjectable","XSSI_PREFIX$1","REQUEST_URL_HEADER","getResponseUrl$1","response","xRequestUrl","FetchBackend","_FetchBackend","inject","FetchFactory","NgZone","request","Observable","observer","aborter","noop","error","signal","__async","fetchPromise","__spreadValues","silenceSuperfluousUnhandledPromiseRejection","statusText","status","contentLength","chunks","reader","receivedLength","decoder","partialText","reqZone","done","chunksAll","contentType","binContent","text","credentials","values","detectedType","totalLength","position","chunk","promise","interceptorChainEndFn","finalHandlerFn","chainedInterceptorFn","chainTailFn","interceptorFn","injector","initialRequest","finalHandlerFn","runInInjectionContext","downstreamRequest","HTTP_INTERCEPTOR_FNS","InjectionToken","HTTP_ROOT_INTERCEPTOR_FNS","PRIMARY_HTTP_BACKEND","HttpInterceptorHandler","_HttpInterceptorHandler","HttpHandler","backend","injector","inject","PendingTasks","primaryHttpBackend","PRIMARY_HTTP_BACKEND","initialRequest","dedupedInterceptorFns","HTTP_INTERCEPTOR_FNS","HTTP_ROOT_INTERCEPTOR_FNS","nextSequencedFn","interceptorFn","chainedInterceptorFn","interceptorChainEndFn","taskId","downstreamRequest","finalize","t","ɵɵinject","HttpBackend","EnvironmentInjector","ɵɵdefineInjectable","XSSI_PREFIX","getResponseUrl","xhr","HttpXhrBackend","_HttpXhrBackend","xhrFactory","req","RuntimeError","from","of","switchMap","Observable","observer","name","values","detectedType","responseType","reqBody","headerResponse","partialFromXhr","statusText","headers","HttpHeaders","url","HttpHeaderResponse","onLoad","status","body","HttpStatusCode","ok","originalBody","error","HttpResponse","HttpErrorResponse","onError","res","sentHeaders","onDownProgress","event","progressEvent","HttpEventType","onUpProgress","progress","t","ɵɵinject","XhrFactory","ɵɵdefineInjectable","XSRF_ENABLED","InjectionToken","XSRF_DEFAULT_COOKIE_NAME","XSRF_COOKIE_NAME","XSRF_DEFAULT_HEADER_NAME","XSRF_HEADER_NAME","HttpXsrfTokenExtractor","HttpXsrfCookieExtractor","_HttpXsrfCookieExtractor","doc","platform","cookieName","cookieString","parseCookieValue","DOCUMENT","PLATFORM_ID","xsrfInterceptorFn","next","lcUrl","inject","token","headerName","HttpFeatureKind","makeHttpFeature","kind","providers","provideHttpClient","features","HttpClient","HttpXhrBackend","HttpInterceptorHandler","HttpHandler","HttpBackend","HTTP_INTERCEPTOR_FNS","xsrfInterceptorFn","XSRF_ENABLED","HttpXsrfTokenExtractor","HttpXsrfCookieExtractor","feature","makeEnvironmentProviders","withInterceptors","interceptorFns","interceptorFn","withFetch","makeHttpFeature","HttpFeatureKind","FetchBackend","HttpBackend","PRIMARY_HTTP_BACKEND","BODY","HEADERS","STATUS","STATUS_TEXT","URL","RESPONSE_TYPE","CACHE_OPTIONS","InjectionToken","ALLOWED_METHODS","transferCacheInterceptorFn","req","next","_a","inject","isCacheActive","globalOptions","__objRest","requestOptions","requestMethod","transferState","TransferState","storeKey","makeCacheKey","response","headersToInclude","undecodedBody","responseType","httpHeaders","status","statusText","url","body","headers","HttpHeaders","of","HttpResponse","isServer","isPlatformServer","PLATFORM_ID","tap","event","getFilteredHeaders","includeHeaders","headersMap","key","values","sortAndConcatParams","params","k","request","method","encodedParams","serializedBody","hash","generateHash","value","char","withHttpTransferCache","cacheOptions","performanceMarkFeature","__spreadValues","HTTP_ROOT_INTERCEPTOR_FNS","APP_BOOTSTRAP_LISTENER","appRef","ApplicationRef","cacheState","whenStable","GenericBrowserDomAdapter","DomAdapter","BrowserDomAdapter","_BrowserDomAdapter","setRootDomAdapter","el","evt","listener","node","tagName","doc","target","href","getBaseElementHref","relativePath","baseElement","name","parseCookieValue","url","BrowserXhr","_BrowserXhr","t","ɵɵdefineInjectable","EVENT_MANAGER_PLUGINS","InjectionToken","EventManager","_EventManager","plugins","_zone","plugin","element","eventName","handler","RuntimeError","ɵɵinject","NgZone","EventManagerPlugin","_doc","APP_ID_ATTRIBUTE_NAME","SharedStylesHost","_SharedStylesHost","doc","appId","nonce","platformId","isPlatformServer","styles","style","styleNodesInDOM","node","hostNode","host","styleRef","styleMap","delta","map","styleRefValue","styleEl","styleElRef","hostNodes","DOCUMENT","APP_ID","CSP_NONCE","PLATFORM_ID","NAMESPACE_URIS","COMPONENT_REGEX","COMPONENT_VARIABLE","HOST_ATTR","CONTENT_ATTR","REMOVE_STYLES_ON_COMPONENT_DESTROY_DEFAULT","REMOVE_STYLES_ON_COMPONENT_DESTROY","shimContentAttribute","componentShortId","shimHostAttribute","shimStylesContent","compId","s","DomRendererFactory2","_DomRendererFactory2","eventManager","sharedStylesHost","removeStylesOnCompDestroy","ngZone","DefaultDomRenderer2","type","ViewEncapsulation$1","__spreadProps","__spreadValues","renderer","EmulatedEncapsulationDomRenderer2","NoneEncapsulationDomRenderer","rendererByCompId","platformIsServer","ShadowDomRenderer","name","namespace","value","parent","newChild","isTemplateNode","refChild","oldChild","selectorOrNode","preserveContent","el","namespaceUri","flags","RendererStyleFlags2","target","event","callback","getDOM","eventHandler","isTemplateNode","node","ShadowDomRenderer","DefaultDomRenderer2","eventManager","sharedStylesHost","hostEl","component","doc","ngZone","nonce","platformIsServer","styles","shimStylesContent","style","styleEl","parent","newChild","refChild","oldChild","NoneEncapsulationDomRenderer","removeStylesOnCompDestroy","compId","EmulatedEncapsulationDomRenderer2","appId","shimContentAttribute","shimHostAttribute","element","name","el","DomEventsPlugin","_DomEventsPlugin","EventManagerPlugin","eventName","handler","target","callback","t","ɵɵinject","DOCUMENT","ɵɵdefineInjectable","MODIFIER_KEYS","_keyMap","MODIFIER_KEY_GETTERS","event","KeyEventsPlugin","_KeyEventsPlugin","parsedEvent","outsideHandler","getDOM","parts","domEventName","key","fullKey","codeIX","modifierName","index","result","fullKeyCode","keycode","modifierGetter","zone","keyName","bootstrapApplication","rootComponent","options","internalCreateApplication","__spreadValues","createProvidersConfig","createProvidersConfig","options","BROWSER_MODULE_PROVIDERS","INTERNAL_BROWSER_PLATFORM_PROVIDERS","initDomAdapter","BrowserDomAdapter","errorHandler","ErrorHandler","_document","setDocument","INTERNAL_BROWSER_PLATFORM_PROVIDERS","PLATFORM_ID","PLATFORM_BROWSER_ID","PLATFORM_INITIALIZER","DOCUMENT","BROWSER_MODULE_PROVIDERS","INJECTOR_SCOPE","ErrorHandler","errorHandler","EVENT_MANAGER_PLUGINS","DomEventsPlugin","DOCUMENT","NgZone","PLATFORM_ID","KeyEventsPlugin","DomRendererFactory2","SharedStylesHost","EventManager","RendererFactory2","XhrFactory","BrowserXhr","Title","_Title","_doc","newTitle","t","ɵɵinject","DOCUMENT","ɵɵdefineInjectable","HydrationFeatureKind","provideClientHydration","features","providers","featuresKind","hasHttpTransferCacheOptions","HydrationFeatureKind","ɵproviders","ɵkind","makeEnvironmentProviders","withDomHydration","withHttpTransferCache","PRIMARY_OUTLET","RouteTitleKey","ParamsAsMap","params","name","v","convertToParamMap","defaultUrlMatcher","segments","segmentGroup","route","parts","posParams","index","part","segment","shallowEqualArrays","a","b","shallowEqual","k1","getDataKeys","k2","key","i","equalArraysOrString","obj","aSorted","bSorted","val","last","wrapIntoObservable","value","isObservable","isPromise","from","of","pathCompareMap","equalSegmentGroups","containsSegmentGroup","paramCompareMap","equalParams","containsParams","containsTree","container","containee","options","matrixParams","equalPath","matrixParamsMatch","c","containsSegmentGroupHelper","containeePaths","current","next","containerPaths","containeeSegment","UrlTree","root","UrlSegmentGroup","queryParams","fragment","DEFAULT_SERIALIZER","children","serializePaths","UrlSegment","path","parameters","serializePath","equalSegments","as","bs","mapChildrenIntoArray","fn","res","childOutlet","child","UrlSerializer","_UrlSerializer","t","ɵɵdefineInjectable","DefaultUrlSerializer","url","p","UrlParser","tree","serializeSegment","query","serializeQueryParams","encodeUriFragment","primary","k","encodeUriString","s","encodeUriQuery","encodeUriSegment","decode","decodeQuery","serializeMatrixParams","strParams","SEGMENT_RE","matchSegments","str","match","MATRIX_PARAM_SEGMENT_RE","matchMatrixKeySegments","QUERY_PARAM_RE","matchQueryParams","QUERY_PARAM_VALUE_RE","matchUrlQueryParamValue","RuntimeError","valueMatch","decodedKey","decodedVal","currentVal","allowPrimary","outletName","createRoot","rootCandidate","squashSegmentGroup","newChildren","childCandidate","grandChildOutlet","grandChild","mergeTrivialChildren","isUrlTree","createUrlTreeFromSnapshot","relativeTo","commands","relativeToUrlSegmentGroup","createSegmentGroupFromRoute","createUrlTreeFromSegmentGroup","targetGroup","createSegmentGroupFromRouteRecursive","currentRoute","childOutlets","childSnapshot","rootSegmentGroup","nav","computeNavigation","position","findStartingPositionForTargetGroup","newSegmentGroup","updateSegmentGroupChildren","updateSegmentGroup","isMatrixParams","command","isCommandWithOutlets","oldRoot","oldSegmentGroup","qp","replaceSegment","newRoot","oldSegment","newSegment","Navigation","isAbsolute","numberOfDoubleDots","cmdWithOutlet","cmd","cmdIdx","outlets","urlPart","partIndex","Position","processChildren","target","modifier","createPositionApplyingDoubleDots","group","g","ci","dd","getOutlets","startIndex","m","prefixedWith","slicedCommands","createNewSegmentGroup","childrenOfEmptyChild","outlet","currentCommandIndex","currentPathIndex","noMatch","curr","compare","paths","createNewSegmentChildren","stringify","IMPERATIVE_NAVIGATION","EventType","RouterEvent","id","NavigationStart","navigationTrigger","restoredState","NavigationEnd","urlAfterRedirects","NavigationCancellationCode","NavigationSkippedCode","NavigationCancel","reason","code","NavigationSkipped","NavigationError","error","RoutesRecognized","state","GuardsCheckStart","GuardsCheckEnd","shouldActivate","ResolveStart","ResolveEnd","RouteConfigLoadStart","RouteConfigLoadEnd","ChildActivationStart","snapshot","ChildActivationEnd","ActivationStart","ActivationEnd","Scroll","routerEvent","anchor","pos","BeforeActivateRoutes","RedirectRequest","OutletContext","ChildrenOutletContexts","_ChildrenOutletContexts","childName","outlet","context","contexts","t","ɵɵdefineInjectable","Tree","root","p","n","findNode","findPath","c","cc","s","value","node","child","path","TreeNode","children","nodeChildrenAsMap","map","RouterState","snapshot","setRouterState","createEmptyState","rootComponent","createEmptyStateSnapshot","emptyUrl","BehaviorSubject","UrlSegment","emptyParams","emptyData","emptyQueryParams","fragment","activated","ActivatedRoute","PRIMARY_OUTLET","ActivatedRouteSnapshot","RouterStateSnapshot","urlSubject","paramsSubject","queryParamsSubject","fragmentSubject","dataSubject","component","futureSnapshot","d","RouteTitleKey","of","convertToParamMap","getInherited","route","parent","paramsInheritanceStrategy","inherited","routeConfig","__spreadValues","hasStaticTitle","url","params","queryParams","data","resolve","segment","matched","serializeNode","state","advanceActivatedRoute","currentSnapshot","nextSnapshot","shallowEqual","shallowEqualArrays","equalParamsAndUrlSegments","a","b","equalUrlParams","equalSegments","parentsMismatch","config","RouterOutlet","_RouterOutlet","EventEmitter","inject","ViewContainerRef","ChangeDetectorRef","EnvironmentInjector","INPUT_BINDER","changes","firstChange","previousValue","outletName","RuntimeError","cmp","ref","activatedRoute","environmentInjector","location","childContexts","injector","OutletInjector","ɵɵdefineDirective","ɵɵNgOnChangesFeature","_OutletInjector","parentInjector","token","notFoundValue","InjectionToken","RoutedComponentInputBinder","_RoutedComponentInputBinder","dataSubscription","combineLatest","switchMap","index","mirror","reflectComponentType","templateName","createRouterState","routeReuseStrategy","curr","prevState","createNode","createOrReuseChildren","detachedRouteHandle","tree","createActivatedRoute","NAVIGATION_CANCELING_ERROR","redirectingNavigationError","urlSerializer","redirect","redirectTo","navigationBehaviorOptions","isUrlTree","error","navigationCancelingError","NavigationCancellationCode","message","code","isRedirectingNavigationCancelingError","isNavigationCancelingError","ɵEmptyOutletComponent","_ɵEmptyOutletComponent","ɵɵdefineComponent","ɵɵStandaloneFeature","rf","ctx","ɵɵelement","getOrCreateRouteInjectorIfNeeded","currentInjector","createEnvironmentInjector","standardizeConfig","r","children","c","__spreadProps","__spreadValues","PRIMARY_OUTLET","ɵEmptyOutletComponent","getOutlet","route","sortByMatchingOutlets","routes","outletName","sortedConfig","getClosestRouteInjector","snapshot","s","activateRoutes","rootContexts","routeReuseStrategy","forwardEvent","inputBindingEnabled","map","t","ActivateRoutes","futureState","currState","parentContexts","futureRoot","currRoot","advanceActivatedRoute","futureNode","currNode","contexts","children","nodeChildrenAsMap","futureChild","childOutletName","v","parentContext","future","curr","context","route","treeNode","componentRef","c","ActivationEnd","ChildActivationEnd","stored","injector","getClosestRouteInjector","CanActivate","path","CanDeactivate","component","getAllRouteGuards","getChildRouteGuards","getCanActivateChild","p","canActivateChild","getTokenOrFunctionIdentity","tokenOrFunction","NOT_FOUND","result","isInjectable","futurePath","checks","prevChildren","getRouteGuards","k","deactivateRouteAndItsChildren","shouldRun","shouldRunGuardsAndResolvers","mode","equalPath","shallowEqual","equalParamsAndUrlSegments","childName","node","isFunction","isBoolean","isCanLoad","guard","isCanActivate","isCanActivateChild","isCanDeactivate","isCanMatch","isEmptyError","EmptyError","INITIAL_VALUE","prioritizedGuardValue","switchMap","obs","combineLatest","o","take","startWith","results","UrlTree","filter","item","checkGuards","mergeMap","targetSnapshot","currentSnapshot","canActivateChecks","canDeactivateChecks","of","__spreadProps","__spreadValues","runCanDeactivateChecks","canDeactivate","runCanActivateChecks","guardsResult","futureRSS","currRSS","from","check","runCanDeactivate","first","futureSnapshot","concatMap","concat","fireChildActivationStart","fireActivationStart","runCanActivateChild","runCanActivate","snapshot","ActivationStart","ChildActivationStart","futureARS","canActivate","canActivateObservables","defer","closestInjector","guardVal","runInInjectionContext","wrapIntoObservable","canActivateChildGuardsMapped","_","d","guardsMapped","currARS","canDeactivateObservables","runCanLoadGuards","segments","urlSerializer","canLoad","canLoadObservables","injectionToken","redirectIfUrlTree","pipe","tap","isUrlTree","redirectingNavigationError","runCanMatchGuards","canMatch","canMatchObservables","NoMatch","segmentGroup","AbsoluteRedirect","urlTree","noMatch$1","throwError","namedOutletsRedirect","redirectTo","throwError","RuntimeError","canLoadFails","route","navigationCancelingError","NavigationCancellationCode","ApplyRedirects","urlSerializer","urlTree","res","c","of","PRIMARY_OUTLET","segments","posParams","newTree","AbsoluteRedirect","newRoot","UrlTree","redirectToParams","actualParams","k","v","sourceName","group","updatedSegments","children","name","child","UrlSegmentGroup","redirectToSegments","actualSegments","s","redirectToUrlSegment","pos","idx","noMatch","matchWithChecks","segmentGroup","injector","result","match","getOrCreateRouteInjectorIfNeeded","runCanMatchGuards","map","__spreadValues","createWildcardMatchResult","defaultUrlMatcher","parameters","last","split","consumedSegments","slicedSegments","config","containsEmptyPathMatchesWithNamedOutlets","createChildrenForEmptyPaths","containsEmptyPathMatches","addEmptyPathsToChildrenIfNeeded","routes","r","emptyPathMatch","getOutlet","primarySegment","isImmediateMatch","rawSegment","outlet","noLeftoversInUrl","NoLeftoversInUrl","recognize$1","configLoader","rootComponentType","paramsInheritanceStrategy","Recognizer","MAX_ALLOWED_REDIRECTS","e","rootSegmentGroup","root","ActivatedRouteSnapshot","rootNode","TreeNode","routeState","RouterStateSnapshot","tree","createUrlTreeFromSnapshot","catchError","NoMatch","routeNode","parent","i","getInherited","n","childOutlets","from","concatMap","childOutlet","sortedConfig","sortByMatchingOutlets","scan","outletChildren","defaultIfEmpty","mergeMap","noMatch$1","mergedChildren","mergeEmptyPathMatches","sortActivatedRouteSnapshots","allowRedirects","first","x","isEmptyError","matched","positionalParamSegments","remainingSegments","newSegments","matchResult","switchMap","childConfig","childInjector","snapshot","getData","getResolve","matchedOnOutlet","runCanLoadGuards","shouldLoadResult","tap","cfg","nodes","a","b","hasEmptyPathConfig","node","mergedNodes","duplicateEmptyPathNode","resultNode","mergedNode","getData","route","getResolve","recognize","injector","configLoader","rootComponentType","config","serializer","paramsInheritanceStrategy","mergeMap","t","recognize$1","map","targetSnapshot","urlAfterRedirects","__spreadProps","__spreadValues","resolveData","canActivateChecks","of","routesWithResolversToRun","check","routesNeedingDataUpdates","newRoute","flattenRouteTree","routesProcessed","from","concatMap","runResolve","getInherited","tap","takeLast","_","EMPTY","descendants","child","futureARS","futureRSS","resolve","hasStaticTitle","RouteTitleKey","resolveNode","resolvedData","keys","getDataKeys","data","key","getResolver","first","value","mapTo","catchError","e","isEmptyError","throwError","injectionToken","closestInjector","getClosestRouteInjector","resolver","getTokenOrFunctionIdentity","resolverValue","runInInjectionContext","wrapIntoObservable","switchTap","next","switchMap","v","nextResult","TitleStrategy","_TitleStrategy","snapshot","pageTitle","PRIMARY_OUTLET","ɵɵdefineInjectable","inject","DefaultTitleStrategy","_DefaultTitleStrategy","title","ɵɵinject","Title","ROUTER_CONFIGURATION","InjectionToken","ROUTES","RouterConfigLoader","_RouterConfigLoader","Compiler","loadRunner","maybeUnwrapDefaultExport","component","finalize","loader","ConnectableObservable","Subject","refCount","parentInjector","loadChildren","compiler","onLoadEndListener","NgModuleFactory$1","factoryOrRoutes","rawRoutes","requireStandaloneComponents","standardizeConfig","isWrappedDefaultExport","input","UrlHandlingStrategy","_UrlHandlingStrategy","DefaultUrlHandlingStrategy","_DefaultUrlHandlingStrategy","url","newUrlPart","wholeUrl","CREATE_VIEW_TRANSITION","VIEW_TRANSITION_OPTIONS","createViewTransition","to","transitionOptions","document","DOCUMENT","NgZone","resolveViewTransitionStarted","viewTransitionStarted","transition","createRenderPromise","onViewTransitionCreated","afterNextRender","NavigationTransitions","_NavigationTransitions","EnvironmentInjector","UrlSerializer","ChildrenOutletContexts","Location","INPUT_BINDER","onLoadStart","r","RouteConfigLoadStart","onLoadEnd","RouteConfigLoadEnd","request","id","router","initialUrlTree","initialRouterState","BehaviorSubject","IMPERATIVE_NAVIGATION","filter","overallTransitionState","completed","errored","NavigationCancellationCode","urlTransition","onSameUrlNavigation","reason","NavigationSkipped","NavigationSkippedCode","NavigationStart","routesRecognized","RoutesRecognized","extractedUrl","source","restoredState","extras","navStart","createEmptyState","guardsStart","GuardsCheckStart","getAllRouteGuards","checkGuards","evt","isUrlTree","redirectingNavigationError","guardsEnd","GuardsCheckEnd","resolveStart","ResolveStart","dataResolved","resolveEnd","ResolveEnd","loadComponents","loaders","loadedComponent","combineLatest","defaultIfEmpty","take","currentSnapshot","targetRouterState","createRouterState","BeforeActivateRoutes","activateRoutes","NavigationEnd","takeUntil","err","isNavigationCancelingError","NavigationCancel","isRedirectingNavigationCancelingError","RedirectRequest","NavigationError","ee","code","navCancel","isBrowserTriggeredNavigation","RouteReuseStrategy","_RouteReuseStrategy","DefaultRouteReuseStrategy","BaseRouteReuseStrategy","detachedTree","future","curr","_DefaultRouteReuseStrategy","ɵDefaultRouteReuseStrategy_BaseFactory","ɵɵgetInheritedFactory","StateManager","_StateManager","HistoryStateManager","_HistoryStateManager","UrlTree","listener","event","currentTransition","rawUrl","path","currentBrowserPageId","state","navigation","restoringFromCaughtError","targetPagePosition","navigationId","routerPageId","ɵHistoryStateManager_BaseFactory","NavigationResult","afterNextNavigation","action","result","defaultErrorHandler","error","exactMatchOptions","subsetMatchOptions","Router","_Router","Console","PendingTasks","Subscription","subscription","currentNavigation","mergedTree","isPublicRouterEvent","stateCopy","urlTree","commands","navigationExtras","relativeTo","queryParams","fragment","queryParamsHandling","preserveFragment","f","q","relativeToUrlSegmentGroup","relativeToSnapshot","createSegmentGroupFromRoute","createUrlTreeFromSegmentGroup","validateCommands","matchOptions","options","containsTree","params","priorPromise","reject","promise","res","rej","taskId","i","RuntimeError","RouterLink","_RouterLink","tabIndexAttribute","renderer","el","locationStrategy","tagName","s","newTabIndex","changes","button","ctrlKey","shiftKey","altKey","metaKey","sanitizedValue","ɵɵsanitizeUrlOrResourceUrl","attrName","attrValue","nativeElement","ɵɵdirectiveInject","ActivatedRoute","ɵɵinjectAttribute","Renderer2","ElementRef","LocationStrategy","ɵɵdefineDirective","rf","ctx","ɵɵlistener","$event","ɵɵattribute","InputFlags","booleanAttribute","ɵɵInputTransformsFeature","ɵɵNgOnChangesFeature","RouterLinkActive","_RouterLinkActive","element","cdr","link","EventEmitter","mergeAll","allLinkChanges","classes","c","hasActiveLinks","isActiveMatchOptions","isActiveCheckFn","ChangeDetectorRef","dirIndex","ɵɵcontentQuery","_t","ɵɵqueryRefresh","ɵɵloadQuery","PreloadingStrategy","RouterPreloader","_RouterPreloader","router","compiler","injector","preloadingStrategy","loader","filter","e","NavigationEnd","concatMap","routes","res","route","createEnvironmentInjector","injectorForCurrentRoute","injectorForChildren","from","mergeAll","loadedChildren$","of","recursiveLoadChildren$","mergeMap","config","loadComponent$","t","ɵɵinject","Router","Compiler","EnvironmentInjector","PreloadingStrategy","RouterConfigLoader","ɵɵdefineInjectable","ROUTER_SCROLLER","InjectionToken","RouterScroller","_RouterScroller","urlSerializer","transitions","viewportScroller","zone","options","inject","NavigationStart","NavigationSkipped","NavigationSkippedCode","Scroll","routerEvent","anchor","__async","resolve","afterNextRender","ɵɵinvalidFactory","provideRouter","features","makeEnvironmentProviders","ROUTES","ActivatedRoute","rootRoute","APP_BOOTSTRAP_LISTENER","getBootstrapListener","feature","routerFeature","kind","providers","getBootstrapListener","injector","inject","Injector","bootstrappedComponentRef","ref","ApplicationRef","router","Router","bootstrapDone","BOOTSTRAP_DONE","INITIAL_NAVIGATION","ROUTER_PRELOADER","InjectFlags","ROUTER_SCROLLER","InjectionToken","Subject","withEnabledBlockingInitialNavigation","routerFeature","APP_INITIALIZER","locationInitialized","LOCATION_INITIALIZED","resolve","afterNextNavigation","NavigationTransitions","of","withDisabledInitialNavigation","ROUTER_PRELOADER","InjectionToken","withPreloading","preloadingStrategy","routerFeature","RouterPreloader","PreloadingStrategy","withComponentInputBinding","routerFeature","RoutedComponentInputBinder","INPUT_BINDER","withViewTransitions","options","providers","CREATE_VIEW_TRANSITION","createViewTransition","VIEW_TRANSITION_OPTIONS","__spreadValues","ROUTER_FORROOT_GUARD","InjectionToken","ROUTER_PROVIDERS","Location","UrlSerializer","DefaultUrlSerializer","Router","ChildrenOutletContexts","ActivatedRoute","rootRoute","RouterConfigLoader","RouterModule","_RouterModule","guard","routes","config","ROUTES","provideForRootGuard","Optional","SkipSelf","ROUTER_CONFIGURATION","provideHashLocationStrategy","providePathLocationStrategy","provideRouterScroller","withPreloading","provideInitialNavigation","withComponentInputBinding","withViewTransitions","provideRouterInitializer","t","ɵɵinject","ɵɵdefineNgModule","ɵɵdefineInjector","ROUTER_SCROLLER","viewportScroller","inject","ViewportScroller","zone","NgZone","transitions","NavigationTransitions","urlSerializer","RouterScroller","LocationStrategy","HashLocationStrategy","PathLocationStrategy","router","withDisabledInitialNavigation","withEnabledBlockingInitialNavigation","ROUTER_INITIALIZER","getBootstrapListener","APP_BOOTSTRAP_LISTENER","BaseControlValueAccessor","_BaseControlValueAccessor","_renderer","_elementRef","_","key","value","fn","isDisabled","t","ɵɵdirectiveInject","Renderer2","ElementRef","ɵɵdefineDirective","BuiltInControlValueAccessor","_BuiltInControlValueAccessor","ɵBuiltInControlValueAccessor_BaseFactory","ɵɵgetInheritedFactory","ɵɵInheritDefinitionFeature","NG_VALUE_ACCESSOR","InjectionToken","CHECKBOX_VALUE_ACCESSOR","forwardRef","CheckboxControlValueAccessor","_CheckboxControlValueAccessor","ɵCheckboxControlValueAccessor_BaseFactory","rf","ctx","ɵɵlistener","$event","ɵɵProvidersFeature","DEFAULT_VALUE_ACCESSOR","DefaultValueAccessor","_isAndroid","userAgent","getDOM","COMPOSITION_BUFFER_MODE","_DefaultValueAccessor","renderer","elementRef","_compositionMode","normalizedValue","isEmptyInputValue","hasValidLength","NG_VALIDATORS","NG_ASYNC_VALIDATORS","EMAIL_REGEXP","Validators","min","minValidator","max","maxValidator","control","requiredValidator","requiredTrueValidator","emailValidator","minLength","minLengthValidator","maxLength","maxLengthValidator","pattern","patternValidator","nullValidator","validators","compose","composeAsync","regex","regexStr","isPresent","o","toObservable","isPromise","from","mergeErrors","arrayOfErrors","res","errors","__spreadValues","executeValidators","validator","isValidatorFn","normalizeValidators","c","presentValidators","composeValidators","observables","forkJoin","map","composeAsyncValidators","mergeValidators","controlValidators","dirValidator","getControlValidators","getControlAsyncValidators","makeValidatorsArray","hasValidator","addValidators","currentValidators","current","v","removeValidators","AbstractControlDirective","errorCode","path","ControlContainer","NgControl","AbstractControlStatus","cd","ngControlStatusHost","ngGroupStatusHost","__spreadProps","NgControlStatus","_NgControlStatus","ɵɵclassProp","NgControlStatusGroup","_NgControlStatusGroup","VALID","INVALID","PENDING","DISABLED","pickValidators","validatorOrOpts","isOptionsObj","coerceToValidator","validator","composeValidators","pickAsyncValidators","asyncValidator","coerceToAsyncValidator","composeAsyncValidators","assertControlPresent","parent","isGroup","key","controls","RuntimeError","assertAllValuesPresent","control","value","_","AbstractControl","validators","asyncValidators","validatorFn","asyncValidatorFn","addValidators","removeValidators","hasValidator","opts","skipPristineCheck","__spreadProps","__spreadValues","changeFn","ctrl","emitEvent","obs","toObservable","errors","path","currPath","name","errorCode","x","EventEmitter","status","fn","onlySelf","parentDirty","FormGroup","options","controlName","acc","subtreeUpdated","updated","child","cb","condition","initValue","res","FormRecord","FormGroup","CALL_SET_DISABLED_STATE","InjectionToken","setDisabledStateDefault","controlPath","name","parent","setUpControl","control","dir","callSetDisabledState","setUpValidators","setUpViewChangePipeline","setUpModelChangePipeline","setUpBlurPipeline","setUpDisabledChangeHandler","cleanUpControl","validateControlPresenceOnChange","noop","cleanUpValidators","registerOnValidatorChange","validators","onChange","validator","onDisabledChange","isDisabled","getControlValidators","mergeValidators","asyncValidators","getControlAsyncValidators","onValidatorChange","isControlUpdated","updatedValidators","updatedAsyncValidators","asyncValidator","newValue","updateControl","emitModelEvent","setUpFormContainer","cleanUpFormContainer","isPropertyUpdated","changes","viewModel","change","isBuiltInAccessor","valueAccessor","BuiltInControlValueAccessor","syncPendingControls","form","directives","dir","control","selectValueAccessor","valueAccessors","defaultAccessor","builtinAccessor","customAccessor","v","DefaultValueAccessor","removeListItem$1","list","el","index","removeListItem","list","el","index","isFormControlState","formState","FormControl","AbstractControl","validatorOrOpts","asyncValidator","pickValidators","pickAsyncValidators","isOptionsObj","value","options","changeFn","condition","fn","cb","isFormControl","control","FormControl","AbstractFormGroupDirective","_AbstractFormGroupDirective","ControlContainer","controlPath","ɵAbstractFormGroupDirective_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineDirective","ɵɵInheritDefinitionFeature","ɵNgNoValidate","_ɵNgNoValidate","t","ɵɵdefineDirective","NUMBER_VALUE_ACCESSOR","NG_VALUE_ACCESSOR","forwardRef","NumberValueAccessor","_NumberValueAccessor","BuiltInControlValueAccessor","value","normalizedValue","fn","ɵNumberValueAccessor_BaseFactory","ɵɵgetInheritedFactory","rf","ctx","ɵɵlistener","$event","ɵɵProvidersFeature","ɵɵInheritDefinitionFeature","RADIO_VALUE_ACCESSOR","RadioControlValueAccessor","RadioControlRegistry","_RadioControlRegistry","control","accessor","i","c","controlPair","t","ɵɵdefineInjectable","RadioControlValueAccessor","_RadioControlValueAccessor","BuiltInControlValueAccessor","renderer","elementRef","_registry","_injector","inject","CALL_SET_DISABLED_STATE","setDisabledStateDefault","NgControl","value","fn","isDisabled","ɵɵdirectiveInject","Renderer2","ElementRef","Injector","ɵɵdefineDirective","rf","ctx","ɵɵlistener","ɵɵProvidersFeature","RADIO_VALUE_ACCESSOR","ɵɵInheritDefinitionFeature","NG_MODEL_WITH_FORM_CONTROL_WARNING","InjectionToken","formControlBinding","NgControl","forwardRef","FormControlDirective","_FormControlDirective","isDisabled","validators","asyncValidators","valueAccessors","_ngModelWarningConfig","callSetDisabledState","EventEmitter","selectValueAccessor","changes","previousForm","cleanUpControl","setUpControl","isPropertyUpdated","newValue","t","ɵɵdirectiveInject","NG_VALIDATORS","NG_ASYNC_VALIDATORS","NG_VALUE_ACCESSOR","CALL_SET_DISABLED_STATE","ɵɵdefineDirective","InputFlags","ɵɵProvidersFeature","ɵɵInheritDefinitionFeature","ɵɵNgOnChangesFeature","formDirectiveProvider","ControlContainer","FormGroupDirective","_FormGroupDirective","cleanUpValidators","dir","ctrl","removeListItem$1","value","$event","syncPendingControls","oldCtrl","newCtrl","isFormControl","setUpFormContainer","cleanUpFormContainer","setUpValidators","rf","ctx","ɵɵlistener","formGroupNameProvider","FormGroupName","_FormGroupName","AbstractFormGroupDirective","parent","_hasInvalidParent","formArrayNameProvider","FormArrayName","_FormArrayName","controlPath","controlNameBinding","FormControlName","_FormControlName","SELECT_VALUE_ACCESSOR","SelectControlValueAccessor","_buildValueString$1","id","_extractId$1","valueString","_SelectControlValueAccessor","BuiltInControlValueAccessor","fn","ɵSelectControlValueAccessor_BaseFactory","ɵɵgetInheritedFactory","NgSelectOption","_NgSelectOption","_element","_renderer","_select","ElementRef","Renderer2","SELECT_MULTIPLE_VALUE_ACCESSOR","SelectMultipleControlValueAccessor","_buildValueString","_extractId","SelectMultipleControlValueAccessor","_SelectMultipleControlValueAccessor","BuiltInControlValueAccessor","fn","value","optionSelectedStateSetter","ids","v","opt","o","element","selected","selectedOptions","options","i","val","id","valueString","_extractId","ɵSelectMultipleControlValueAccessor_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineDirective","rf","ctx","ɵɵlistener","$event","ɵɵProvidersFeature","SELECT_MULTIPLE_VALUE_ACCESSOR","ɵɵInheritDefinitionFeature","ɵNgSelectMultipleOption","_ɵNgSelectMultipleOption","_element","_renderer","_select","_buildValueString","ɵɵdirectiveInject","ElementRef","Renderer2","toInteger","toFloat","AbstractValidatorDirective","_AbstractValidatorDirective","nullValidator","changes","input","control","ɵɵNgOnChangesFeature","MAX_VALIDATOR","NG_VALIDATORS","forwardRef","MaxValidator","_MaxValidator","max","maxValidator","ɵMaxValidator_BaseFactory","ɵɵattribute","MIN_VALIDATOR","MinValidator","_MinValidator","min","minValidator","ɵMinValidator_BaseFactory","MAX_LENGTH_VALIDATOR","NG_VALIDATORS","forwardRef","MaxLengthValidator","_MaxLengthValidator","AbstractValidatorDirective","input","toInteger","maxlength","maxLengthValidator","ɵMaxLengthValidator_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineDirective","rf","ctx","ɵɵattribute","ɵɵProvidersFeature","ɵɵInheritDefinitionFeature","ɵInternalFormsSharedModule","_ɵInternalFormsSharedModule","t","ɵɵdefineNgModule","ɵɵdefineInjector","FormArray","AbstractControl","controls","validatorOrOpts","asyncValidator","pickValidators","pickAsyncValidators","index","control","options","adjustedIndex","value","assertAllValuesPresent","newValue","assertControlPresent","subtreeUpdated","updated","child","cb","condition","name","isAbstractControlOptions","options","FormBuilder","_FormBuilder","nnfb","controls","reducedControls","newOptions","FormGroup","FormRecord","formState","validatorOrOpts","asyncValidator","FormControl","__spreadProps","__spreadValues","createdControls","c","FormArray","controlName","AbstractControl","value","validator","t","ɵɵdefineInjectable","FormsModule","_FormsModule","opts","CALL_SET_DISABLED_STATE","setDisabledStateDefault","t","ɵɵdefineNgModule","ɵɵdefineInjector","ɵInternalFormsSharedModule","ReactiveFormsModule","_ReactiveFormsModule","NG_MODEL_WITH_FORM_CONTROL_WARNING","environment","production","apiUrl","globalVar","AuthService","constructor","http","apiUrl","environment","logIn","email","password","rememberMe","post","pipe","map","response","token","JWT","string","payload","decodeToken","role","userId","id","console","log","clearStorageItems","setStorageItems","clearSessionItems","setSessionItems","success","catchError","error","errorMsg","status","of","message","logOut","isLoggedIn","getStorageItem","getSessionItem","getUserRole","getUserId","getToken","localStorage","setItem","e","sessionStorage","removeItem","key","getItem","JSON","parse","atob","split","ɵɵinject","HttpClient","factory","ɵfac","providedIn","_AuthService","LoginComponent","constructor","authService","router","formBuilder","error","loginForm","group","email","Validators","required","password","rememberMe","onLogin","valid","value","logIn","subscribe","result","success","navigate","message","ɵɵdirectiveInject","AuthService","Router","FormBuilder","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵlistener","i0","ɵɵrestoreView","_r1","ɵɵresetView","ɵɵtext","ɵɵadvance","ɵɵproperty","ɵɵpureFunction1","_c0","tmp_2_0","get","dirty","touched","aux_r2","submitted","invalid","tmp_3_0","tmp_4_0","tmp_5_0","ɵɵtextInterpolate","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","CheckboxControlValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","CommonModule","NgClass","styles","_LoginComponent","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","NavbarComponent","constructor","authService","router","isAdmin","ngOnInit","getUserRole","logout","logOut","navigate","ɵɵdirectiveInject","AuthService","Router","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelement","ɵɵtemplate","NavbarComponent_div_22_Template","ɵɵlistener","ɵɵadvance","ɵɵproperty","CommonModule","NgIf","RouterModule","RouterLink","RouterLinkActive","styles","_NavbarComponent","handleError","error","errorMessage","throwError","Error","mapToTableData","data","map","item","tableDataItem","key","mapToUser","id","name","surname","email","phone","password","role","formatDate","date","dateObj","Date","year","getFullYear","month","String","getMonth","padStart","day","getDate","hours","getHours","minutes","getMinutes","formatDateString","input","datePart","timePart","split","Number","fullYear","toISOString","slice","UsersService","constructor","http","apiUrl","environment","getUsers","get","pipe","map","data","mapToTableData","catchError","handleError","getUsersById","id","mapToUser","createUser","user","post","updateUser","put","deleteUser","delete","ɵɵinject","HttpClient","factory","ɵfac","providedIn","_UsersService","HomeComponent","constructor","UsersService","AuthService","user","ngOnInit","id","getUserId","getUsersById","subscribe","ɵɵdirectiveInject","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelement","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate2","NavbarComponent","styles","_HomeComponent","sortTableData","dataArray","map","data","orderedData","order","forEach","key","Object","keys","formatTableData","item","formattedItem","dateKeys","options","day","month","year","hour","minute","timeZone","hour12","includes","date","Date","Intl","DateTimeFormat","format","replace","sortTableDataByColumn","column","direction","isAscending","slice","sort","a","b","undefined","aValue","bValue","localeCompare","filterTableData","excludeColumns","filterValue","filter","trim","toLowerCase","some","value","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate","ctx_r0","noDataMessage","ɵɵlistener","ɵɵrestoreView","_r3","ɵɵnextContext","ɵɵresetView","setPage","page_r5","_r4","$implicit","ɵɵclassProp","currentPage","_r6","totalPages","ɵɵelement","ɵɵproperty","getSortIcon","column_r8","_r7","onHeaderClick","ɵɵtemplate","TableComponent_div_3_th_17_i_3_Template","ɵɵtextInterpolate1","translateColumn","ɵɵelementContainerStart","TableComponent_div_3_tr_19_td_1_ng_template_2_ng_container_0_Template","item_r10","column_r11","ɵɵpipeBind2","TableComponent_div_3_tr_19_td_1_ng_container_4_div_2_Template","TableComponent_div_3_tr_19_td_1_ng_container_4_ng_template_3_Template","ɵɵtemplateRefExtractor","getAgeDifference","noExpiration_r12","TableComponent_div_3_tr_19_td_1_ng_container_5_div_1_Template","TableComponent_div_3_tr_19_td_1_ng_container_5_div_2_Template","TableComponent_div_3_tr_19_td_1_ng_container_1_Template","TableComponent_div_3_tr_19_td_1_ng_template_2_Template","TableComponent_div_3_tr_19_td_1_ng_container_4_Template","TableComponent_div_3_tr_19_td_1_ng_container_5_Template","falseIcon_r13","_r9","onRowClick","TableComponent_div_3_tr_19_td_1_Template","getColumns","TableComponent_div_3_tr_20_td_1_Template","_r2","TableComponent_div_3_li_6_Template","TableComponent_div_3_li_7_Template","TableComponent_div_3_li_8_Template","TableComponent_div_3_li_9_Template","TableComponent_div_3_li_10_Template","TableComponent_div_3_th_17_Template","TableComponent_div_3_tr_19_Template","TableComponent_div_3_tr_20_Template","getPageRange","paginatedData","ɵɵpureFunction0","_c0","constructor","itemsPerPage","length","TableComponent","data","columnsExcluded","isTableReady","rowClicked","EventEmitter","columnTranslataions","id","name","surname","email","phone","role","address","addres","cuit","description","category","quantity","expirationDate","creationDate","lastModificationDate","admissionDate","unit","price","cost","expiration","type","envenDate","title","sortStates","activeColumn","ngOnInit","push","ngOnChanges","changes","formatTableData","sortTableData","Object","keys","filter","column","includes","startIndex","endIndex","slice","Math","ceil","page","nearbyPages","startPage","max","maxNearby","endPage","min","i","item","emit","sortTableDataByColumn","currentYear","Date","getFullYear","console","log","aux","formatDate","expirationYear","selectors","inputs","outputs","standalone","features","ɵɵNgOnChangesFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","TableComponent_div_1_Template","TableComponent_div_2_Template","TableComponent_div_3_Template","CommonModule","NgClass","NgForOf","NgIf","DatePipe","ReactiveFormsModule","styles","_TableComponent","SearchBarComponent","constructor","search","EventEmitter","searchControl","FormControl","onFilter","value","trim","undefined","isValid","emit","onKeyDown","event","key","regex","length","test","selectors","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵlistener","ɵɵtext","ɵɵadvance","ɵɵproperty","ReactiveFormsModule","DefaultValueAccessor","NgControlStatus","FormControlDirective","styles","_SearchBarComponent","DecisionModalComponent","constructor","close","EventEmitter","closeDecisionModal","emit","openAddInput","openAddRawMaterial","selectors","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵlistener","_DecisionModalComponent","Units","emailValidator","control","test","value","invalidEmail","phoneValidator","invalidPhone","cuitValidator","cuit","length","isNaN","invalidCuit","multipliers","checksum","i","parseInt","mod","decimalNumberValidator","parseFloat","replace","invalidQuantity","atLeastOneCheckedValidator","controls","some","group","selected","get","quantity","atLeastOneValidControl","matchPasswordValidator","formGroup","password","confirmPassword","passwordMismatch","conditionalRequiredValidator","controlName","dependentControlName","dependentControl","required","priceValidator","totalCost","price","priceInvalid","InputsService","constructor","http","apiUrl","environment","getInputs","get","pipe","catchError","handleError","getInputById","id","createInput","input","post","updateInput","put","deleteInput","delete","getInputsTypes","ɵɵinject","HttpClient","factory","ɵfac","providedIn","_InputsService","RawMaterialsService","constructor","http","apiUrl","environment","getRawMaterials","get","pipe","catchError","handleError","getRawMaterialById","id","createRawMaterial","rm","post","updateRawMaterial","console","log","JSON","stringify","put","deleteRawMaterial","delete","getRawMaterialsTypes","ɵɵinject","HttpClient","factory","ɵfac","providedIn","_RawMaterialsService","InventoryService","constructor","InputsService","RawMaterialService","inputsTypesSubject","BehaviorSubject","rawMaterialTypesSubject","chargeInputsTypes","getInputsTypes","subscribe","types","next","chargeRawMaterialTypes","getRawMaterialsTypes","asObservable","getRawMaterialTypes","addInputsType","type","pipe","map","includes","push","sort","addRawMaterialType","getInventory","forkJoin","inputs","getInputs","rawMaterials","getRawMaterials","safeInputs","safeRawMaterials","concat","retryWhen","errors","scan","retryCount","error","maxRetries","console","warn","delay","retryDelay","catchError","err","throwError","ɵɵinject","RawMaterialsService","factory","ɵfac","providedIn","_InventoryService","ProvidersService","constructor","http","apiUrl","environment","getProviders","get","pipe","catchError","handleError","getProviderById","id","createProvider","provider","post","updateProvider","put","deleteProvider","delete","ɵɵinject","HttpClient","factory","ɵfac","providedIn","_ProvidersService","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","AddInputComponent_div_20_div_1_Template","AddInputComponent_div_20_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","productForm","get","errors","tmp_3_0","type_r3","ɵɵtextInterpolate1","AddInputComponent_div_35_div_1_Template","unit_r4","AddInputComponent_div_52_div_1_Template","AddInputComponent_div_52_div_2_Template","AddInputComponent_div_53_div_1_Template","AddInputComponent_div_66_div_1_Template","AddInputComponent_div_66_div_2_Template","provider_r5","AddInputComponent_div_89_div_14_div_1_Template","AddInputComponent_div_89_div_14_div_2_Template","tmp_4_0","addTypeForm","tmp_5_0","ɵɵlistener","ɵɵrestoreView","_r6","ɵɵnextContext","ɵɵresetView","closeAddTypeModal","addType","ɵɵelement","AddInputComponent_div_89_div_14_Template","ɵɵpureFunction1","_c0","touched","aux2_r7","submitted","invalid","AddInputComponent","constructor","InputsService","formBuilder","InventoryService","providersService","close","EventEmitter","providers","units","inventoryTypes","addTypeModal","isRawMaterial","avaibleFreezed","group","name","Validators","required","type","pattern","quantity","decimalNumberValidator","unit","cost","description","provider","newType","ngOnInit","chargeInputsTypes","getProviders","loadProductTypes","Object","values","Units","closeModal","emit","openAddTypeModal","valid","value","addInputsType","console","error","onSubmit","providerId","selectedProvider","find","Number","input","createInput","subscribe","res","sort","a","b","localeCompare","getInputsTypes","types","ɵɵdirectiveInject","FormBuilder","ProvidersService","selectors","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","i0","_r1","AddInputComponent_div_20_Template","AddInputComponent_option_30_Template","AddInputComponent_div_35_Template","AddInputComponent_option_50_Template","AddInputComponent_div_52_Template","AddInputComponent_div_53_Template","AddInputComponent_div_66_Template","AddInputComponent_option_76_Template","AddInputComponent_div_78_Template","AddInputComponent_div_85_Template","AddInputComponent_div_89_Template","dirty","aux_r8","tmp_6_0","tmp_7_0","tmp_8_0","tmp_10_0","tmp_11_0","tmp_12_0","tmp_13_0","tmp_14_0","tmp_16_0","tmp_17_0","tmp_18_0","CommonModule","NgClass","NgForOf","NgIf","ReactiveFormsModule","ɵNgNoValidate","NgSelectOption","ɵNgSelectMultipleOption","DefaultValueAccessor","SelectControlValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","styles","_AddInputComponent","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","AddRawMaterialComponent_div_20_div_1_Template","AddRawMaterialComponent_div_20_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","productForm","get","errors","tmp_3_0","type_r3","ɵɵtextInterpolate1","AddRawMaterialComponent_div_35_div_1_Template","unit_r4","AddRawMaterialComponent_div_52_div_1_Template","AddRawMaterialComponent_div_52_div_2_Template","AddRawMaterialComponent_div_53_div_1_Template","AddRawMaterialComponent_div_66_div_1_Template","AddRawMaterialComponent_div_66_div_2_Template","provider_r5","AddRawMaterialComponent_div_103_div_14_div_1_Template","AddRawMaterialComponent_div_103_div_14_div_2_Template","tmp_4_0","addTypeForm","tmp_5_0","ɵɵlistener","ɵɵrestoreView","_r6","ɵɵnextContext","ɵɵresetView","closeAddTypeModal","addType","ɵɵelement","AddRawMaterialComponent_div_103_div_14_Template","ɵɵpureFunction1","_c0","touched","aux2_r7","submitted","invalid","AddRawMaterialComponent","constructor","RawMaterialsServices","formBuilder","InventoryService","providersService","close","EventEmitter","providers","units","inventoryTypes","addTypeModal","isRawMaterial","avaibleFreezed","group","name","Validators","required","type","pattern","quantity","decimalNumberValidator","unit","cost","description","freezed","expirationDate","value","disabled","provider","newType","ngOnInit","chargeRawMaterialTypes","getProviders","loadProductTypes","Object","values","Units","valueChanges","subscribe","isFreezed","updateExpirationDateState","closeModal","emit","openAddTypeModal","valid","addRawMaterialType","console","error","onSubmit","providerId","selectedProvider","find","Number","rawMaterial","descripction","freeze","createRawMaterial","res","sort","a","b","localeCompare","getInputsTypes","types","expirationDateControl","enable","disable","ɵɵdirectiveInject","RawMaterialsService","FormBuilder","ProvidersService","selectors","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","i0","_r1","AddRawMaterialComponent_div_20_Template","AddRawMaterialComponent_option_30_Template","AddRawMaterialComponent_div_35_Template","AddRawMaterialComponent_option_50_Template","AddRawMaterialComponent_div_52_Template","AddRawMaterialComponent_div_53_Template","AddRawMaterialComponent_div_66_Template","AddRawMaterialComponent_div_80_Template","AddRawMaterialComponent_option_90_Template","AddRawMaterialComponent_div_92_Template","AddRawMaterialComponent_div_99_Template","AddRawMaterialComponent_div_103_Template","dirty","aux_r8","tmp_6_0","tmp_7_0","tmp_8_0","tmp_10_0","tmp_11_0","tmp_12_0","tmp_13_0","tmp_14_0","tmp_15_0","tmp_16_0","tmp_17_0","tmp_19_0","tmp_20_0","tmp_21_0","CommonModule","NgClass","NgForOf","NgIf","ReactiveFormsModule","ɵNgNoValidate","NgSelectOption","ɵNgSelectMultipleOption","DefaultValueAccessor","CheckboxControlValueAccessor","SelectControlValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","styles","_AddRawMaterialComponent","DeleteModalComponent","constructor","confirmDeleteModal","headerMessage","bodyMessage","confirm","EventEmitter","cancel","closeDeleteModal","emit","deleteEntity","selectors","inputs","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵlistener","ɵɵadvance","ɵɵtextInterpolate1","ɵɵtextInterpolate","_DeleteModalComponent","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","RawMaterialComponent_div_28_div_1_Template","RawMaterialComponent_div_28_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","productForm","get","errors","tmp_3_0","type_r3","ɵɵtextInterpolate1","RawMaterialComponent_div_43_div_1_Template","unit_r4","RawMaterialComponent_div_60_div_1_Template","RawMaterialComponent_div_60_div_2_Template","RawMaterialComponent_div_61_div_1_Template","RawMaterialComponent_div_74_div_1_Template","RawMaterialComponent_div_74_div_2_Template","provider_r5","RawMaterialComponent_div_113_div_14_div_1_Template","RawMaterialComponent_div_113_div_14_div_2_Template","tmp_4_0","addTypeForm","tmp_5_0","ɵɵlistener","ɵɵrestoreView","_r6","ɵɵnextContext","ɵɵresetView","closeAddTypeModal","addType","ɵɵelement","RawMaterialComponent_div_113_div_14_Template","ɵɵpureFunction1","_c0","touched","aux2_r7","submitted","invalid","_r8","closeDeleteModal","deleteProduct","RawMaterialComponent","constructor","RawMaterialsServices","formBuilder","InventoryService","ProvidersService","productInput","close","EventEmitter","inventoryTypes","inputsTypes","units","addTypeModal","providers","avaibleFreezed","isToggled","confirmDeleteModal","group","name","value","disabled","Validators","required","type","pattern","quantity","unit","cost","decimalNumberValidator","description","freezed","expirationDate","provider","validators","conditionalRequiredValidator","newType","ngOnInit","chargeRawMaterialTypes","getProviders","loadProductTypes","Object","values","Units","valueChanges","subscribe","updateFreezedState","isFreezed","updateExpirationDateState","ngOnChanges","changes","currentValue","patchValue","transformProductInput","toggleEditMode","enable","disable","closeModal","emit","confirmDelete","deleteRawMaterial","error","console","openAddTypeModal","valid","addRawMaterialType","onSubmit","providerId","selectedProvider","find","Number","rawMaterial","id","descripction","freeze","admissionDate","formatDateString","lastModificationDate","updateRawMaterial","data","String","formatDate","res","sort","a","b","localeCompare","getInputsTypes","types","expirationDateControl","typeControl","freezedControl","typeValue","includes","setValue","ɵɵdirectiveInject","RawMaterialsService","FormBuilder","selectors","inputs","outputs","standalone","features","ɵɵNgOnChangesFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","i0","_r1","RawMaterialComponent_div_28_Template","RawMaterialComponent_option_38_Template","RawMaterialComponent_div_43_Template","RawMaterialComponent_option_58_Template","RawMaterialComponent_div_60_Template","RawMaterialComponent_div_61_Template","RawMaterialComponent_div_74_Template","RawMaterialComponent_div_88_Template","RawMaterialComponent_option_98_Template","RawMaterialComponent_div_100_Template","RawMaterialComponent_div_107_Template","RawMaterialComponent_div_113_Template","RawMaterialComponent_app_delete_modal_114_Template","aux_r9","dirty","tmp_7_0","tmp_8_0","tmp_9_0","tmp_10_0","tmp_12_0","tmp_13_0","ReactiveFormsModule","ɵNgNoValidate","NgSelectOption","ɵNgSelectMultipleOption","DefaultValueAccessor","NumberValueAccessor","CheckboxControlValueAccessor","SelectControlValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","CommonModule","NgClass","NgForOf","NgIf","DeleteModalComponent","styles","_RawMaterialComponent","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","InputsComponent_div_28_div_1_Template","InputsComponent_div_28_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","productForm","get","errors","tmp_3_0","type_r3","ɵɵtextInterpolate1","InputsComponent_div_43_div_1_Template","unit_r4","InputsComponent_div_60_div_1_Template","InputsComponent_div_60_div_2_Template","InputsComponent_div_61_div_1_Template","InputsComponent_div_74_div_1_Template","InputsComponent_div_74_div_2_Template","provider_r5","InputsComponent_div_99_div_14_div_1_Template","InputsComponent_div_99_div_14_div_2_Template","tmp_4_0","addTypeForm","tmp_5_0","ɵɵlistener","ɵɵrestoreView","_r6","ɵɵnextContext","ɵɵresetView","closeAddTypeModal","addType","ɵɵelement","InputsComponent_div_99_div_14_Template","ɵɵpureFunction1","_c0","touched","aux2_r7","submitted","invalid","_r8","closeDeleteModal","deleteProduct","InputsComponent","constructor","InputsService","formBuilder","InventoryService","ProvidersService","productInput","close","EventEmitter","inventoryTypes","inputsTypes","units","addTypeModal","providers","avaibleFreezed","isToggled","confirmDeleteModal","group","name","value","disabled","Validators","required","type","pattern","quantity","unit","cost","decimalNumberValidator","description","provider","validators","conditionalRequiredValidator","newType","ngOnInit","chargeInputsTypes","getProviders","loadProductTypes","getInputsTypes","subscribe","types","Object","values","Units","ngOnChanges","changes","currentValue","patchValue","transformProductInput","toggleEditMode","enable","disable","closeModal","emit","confirmDelete","deleteInput","error","console","openAddTypeModal","valid","addInputsType","log","onSubmit","providerId","selectedProvider","find","Number","input","id","admissionDate","formatDateString","lastModificationDate","updateInput","data","String","freezed","expirationDate","formatDate","res","sort","a","b","localeCompare","ɵɵdirectiveInject","FormBuilder","selectors","inputs","outputs","standalone","features","ɵɵNgOnChangesFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","i0","_r1","InputsComponent_div_28_Template","InputsComponent_option_38_Template","InputsComponent_div_43_Template","InputsComponent_option_58_Template","InputsComponent_div_60_Template","InputsComponent_div_61_Template","InputsComponent_div_74_Template","InputsComponent_option_84_Template","InputsComponent_div_86_Template","InputsComponent_div_93_Template","InputsComponent_div_99_Template","InputsComponent_app_delete_modal_100_Template","aux_r9","dirty","tmp_7_0","tmp_8_0","tmp_9_0","tmp_11_0","tmp_12_0","ReactiveFormsModule","ɵNgNoValidate","NgSelectOption","ɵNgSelectMultipleOption","DefaultValueAccessor","NumberValueAccessor","SelectControlValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","CommonModule","NgClass","NgForOf","NgIf","DeleteModalComponent","styles","_InputsComponent","ɵɵelementStart","ɵɵlistener","$event","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","closeDecisionModal","ɵɵelementEnd","_r3","closeAddInputModal","_r4","closeAddRawMaterialModal","_r5","closeProductModal","ɵɵproperty","selectedProduct","_r6","InventoryComponent","constructor","inventoryService","inputs","backUpInputs","editRawMaterialsModal","editInputsModal","inputsModal","rawMaterialsModal","decisionModal","isLoading","excludeColumns","ngOnInit","getInventory","openDecisionModal","aux","openAddInputModal","openAddRawMaterialModal","onRowClicked","prov","undefined","handleSearch","value","filterTableData","subscribe","res","ɵɵdirectiveInject","InventoryService","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelement","ɵɵtext","ɵɵtemplate","InventoryComponent_app_decision_modal_13_Template","InventoryComponent_app_add_input_14_Template","InventoryComponent_app_add_raw_material_15_Template","InventoryComponent_app_raw_material_16_Template","InventoryComponent_app_inputs_17_Template","ɵɵadvance","NavbarComponent","TableComponent","SearchBarComponent","CommonModule","NgIf","DecisionModalComponent","AddInputComponent","AddRawMaterialComponent","RawMaterialComponent","InputsComponent","styles","_InventoryComponent","BatchesService","constructor","http","apiUrl","environment","getBatches","get","pipe","catchError","handleError","getBatchById","id","createBatch","batch","post","updateBatch","put","deleteBatch","delete","getCategories","ɵɵinject","HttpClient","factory","ɵfac","providedIn","_BatchesService","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate4","ingredient_r1","ɵɵtextInterpolate5","input_r2","ɵɵlistener","ɵɵrestoreView","_r3","ctx_r3","ɵɵnextContext","ɵɵresetView","closeDeleteModal","deleteProduct","ɵɵproperty","ViewBatchComponent","constructor","batchesService","router","batch","close","EventEmitter","confirmDeleteModal","batchIngredientsData","batchInputsData","ngOnInit","getBatchIngredientsData","getBatchInputsData","closeModal","emit","openDeleteModal","deleteBatch","subscribe","goTo","navigate","Array","isArray","quantities","split","reduce","acc","pair","id","quantity","Number","map","ingredient","ingredientId","name","undefined","unit","provider","console","warn","input","index","codInput","ɵɵdirectiveInject","BatchesService","Router","selectors","inputs","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵtemplate","ViewBatchComponent_li_49_Template","ViewBatchComponent_li_56_Template","ɵɵelement","ViewBatchComponent_app_delete_modal_58_Template","ɵɵtextInterpolate","ɵɵtextInterpolate2","CommonModule","NgForOf","NgIf","DeleteModalComponent","styles","_ViewBatchComponent","SalesChannelsService","constructor","http","apiUrl","environment","getSalesChannels","get","pipe","catchError","handleError","getSaleChannelId","id","createSaleChannel","sc","post","updateSaleChannel","put","deleteSaleChannel","delete","ɵɵinject","HttpClient","factory","ɵfac","providedIn","_SalesChannelsService","EventsService","constructor","http","apiUrl","environment","getEvents","get","pipe","map","data","mapToTableData","catchError","handleError","getEventById","id","createEvent","event","post","ɵɵinject","HttpClient","factory","ɵfac","providedIn","_EventsService","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵproperty","customer_r2","ɵɵadvance","ɵɵtextInterpolate1","batch_r6","ɵɵtextInterpolate4","ctx_r4","getDate","maxQuantities","i_r4","ɵɵtemplate","SellBatchComponent_tr_43_div_6_div_1_Template","SellBatchComponent_tr_43_div_6_div_2_Template","itemControls","errors","ɵɵlistener","ɵɵrestoreView","_r7","ɵɵnextContext","index","ɵɵresetView","removeRow","ɵɵelement","$event","_r3","onBatchChange","SellBatchComponent_tr_43_option_3_Template","calculateCost","SellBatchComponent_tr_43_div_6_Template","SellBatchComponent_tr_43_div_7_Template","SellBatchComponent_tr_43_div_9_Template","getBatchIdControl","ɵɵpureFunction1","_c0","invalid","touched","aux_r8","submitted","avaibleBatches","getQuantityControl","tmp_12_0","sellForm","get","SellBatchComponent","constructor","batchesService","fb","salesChannelsService","authService","userService","eventService","close","EventEmitter","confirmDeleteModal","customers","totalCost","group","customer","Validators","required","items","array","validators","uniqueBatchesValidator","price","priceValidator","ngOnInit","getClients","getAvaibleBatches","initializeRows","userId","getUserId","closeModal","emit","closeDeleteModal","onSubmit","console","log","valid","error","batchesId","controls","map","control","value","batchesQuantities","toString","join","batches","filter","b","includes","pricesString","selectedBatches","batchId","id","descriptionParts","batch","sellData","type","title","description","cost","saleChannel","user","soldBatches","unitsPrice","quantities","JSON","stringify","bq","split","createEvent","subscribe","res","batchesToUpdate","selected","find","indexOf","parseInt","updateBatch","toPromise","Boolean","Promise","all","then","addRow","push","quantity","removedBatchId","at","removedBatch","removeAt","splice","event","target","patchValue","previousBatchId","previousBatch","quantityControl","setValidators","min","max","updateValueAndValidity","getBatches","sort","a","localeCompare","getSalesChannels","clients","clear","Error","forEach","batchPrice","batchQuantity","result","Math","round","updatePriceValidator","priceControl","date","formatDate","ɵɵdirectiveInject","BatchesService","FormBuilder","SalesChannelsService","AuthService","UsersService","EventsService","selectors","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","i0","_r1","SellBatchComponent_option_19_Template","SellBatchComponent_div_21_Template","SellBatchComponent_tr_43_Template","SellBatchComponent_div_54_Template","tmp_2_0","tmp_4_0","tmp_6_0","tmp_8_0","CommonModule","NgClass","NgForOf","NgIf","ReactiveFormsModule","ɵNgNoValidate","NgSelectOption","ɵNgSelectMultipleOption","DefaultValueAccessor","NumberValueAccessor","SelectControlValueAccessor","NgControlStatus","NgControlStatusGroup","MinValidator","MaxValidator","FormControlDirective","FormGroupDirective","FormControlName","styles","_SellBatchComponent","batchIds","item","Set","size","length","duplicateBatches","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","closeModal","ɵɵelementEnd","ɵɵproperty","selectedBatch","_r3","closeSellModal","ProductionComponent","constructor","route","batchesServices","batches","backUpBatches","excludedColumns","openBatchModal","openSellModal","ngOnInit","getBatches","goTo","navigate","onRowClicked","prov","openSellBatch","handleSearch","value","filterTableData","subscribe","data","ɵɵdirectiveInject","Router","BatchesService","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelement","ɵɵtext","$event","ɵɵtemplate","ProductionComponent_app_view_batch_16_Template","ProductionComponent_app_sell_batch_17_Template","ɵɵadvance","NavbarComponent","TableComponent","SearchBarComponent","ViewBatchComponent","CommonModule","NgIf","SellBatchComponent","styles","_ProductionComponent","CardComponent","constructor","router","goTo","navigate","recipe","id","ɵɵdirectiveInject","Router","selectors","inputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵlistener","ɵɵadvance","ɵɵtextInterpolate","name","_CardComponent","ObjectUtils","_ObjectUtils","value","empty","obj1","obj2","field","arrA","arrB","i","length","key","dateA","dateB","regexpA","regexpB","keys","data","fields","len","obj","from","to","target","item","index","arr","sourceArr","injected","list","val","str","input","value1","value2","locale","order","result","emptyValue1","emptyValue2","nullSortOrder","finalSortOrder","__spreadValues","char","params","callback","a","b","lastId","UniqueComponentId","prefix","ZIndexUtils","zIndexes","generateZIndex","baseZIndex","lastZIndex","newZIndex","revertZIndex","zIndex","getCurrentZIndex","getZIndex","el","zindexutils","_c0","FilterMatchMode","PrimeNGConfig","signal","FilterMatchMode","Subject","key","value","__spreadValues","t","ɵɵdefineInjectable","Header","ɵɵdefineComponent","ɵɵStandaloneFeature","_c0","rf","ctx","ɵɵprojectionDef","ɵɵprojection","Footer","PrimeTemplate","template","ɵɵdirectiveInject","TemplateRef","ɵɵdefineDirective","InputFlags","SharedModule","ɵɵdefineNgModule","ɵɵdefineInjector","_c0","BaseIcon","isLabelEmpty","ObjectUtils","t","ɵɵdefineComponent","InputFlags","booleanAttribute","ɵɵInputTransformsFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵprojectionDef","ɵɵprojection","ChevronDownIcon","BaseIcon","ɵChevronDownIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","ChevronLeftIcon","BaseIcon","ɵChevronLeftIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","ChevronRightIcon","BaseIcon","ɵChevronRightIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","ChevronUpIcon","BaseIcon","ɵChevronUpIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","DomHandler","element","className","styles","i","classNames","cNames","child","selector","children","num","attributeName","overlay","target","appendTo","calculateMinWidth","gutter","getClosestRelativeElement","el","elementDimensions","targetHeight","targetOffset","windowScrollTop","windowScrollLeft","viewport","relativeElementOffset","top","left","horizontalOverflow","targetLeftOffsetInSpaceOfRelativeElement","elementOuterHeight","elementOuterWidth","targetOuterHeight","targetOuterWidth","parents","scrollableParents","overflowRegex","overflowCheck","node","styleDeclaration","parent","scrollSelectors","selectors","elementHeight","elementWidth","dimensions","container","item","borderTopValue","borderTop","paddingTopValue","paddingTop","containerRect","offset","scroll","itemHeight","duration","last","opacity","tick","ms","interval","gap","fading","doc","p","f","margin","width","style","height","win","d","e","g","w","h","rect","replacementElement","parentNode","ua","msie","trident","rv","edge","obj","scrollDiv","scrollbarWidth","scrollbarHeight","methodName","args","matched","match","value","options","focusableElements","visibleFocusableElements","focusableElement","computedStyle","reverse","index","focusedIndex","type","name","attributes","attribute","computedStyles","rule","cv","v","_cv","_k","_v","c","key","matchedEvent","Ripple","document","platformId","renderer","el","zone","config","isPlatformBrowser","event","ink","DomHandler","d","offset","x","y","children","i","t","ɵɵdirectiveInject","DOCUMENT","PLATFORM_ID","Renderer2","ElementRef","NgZone","PrimeNGConfig","ɵɵdefineDirective","RippleModule","ɵɵdefineNgModule","ɵɵdefineInjector","_c0","_c1","_c2","_c3","_c4","a0","a1","_c5","_c6","_c7","a2","_c8","_c9","_c10","_c11","Carousel_div_1_ng_container_2_Template","rf","ctx","ɵɵelementContainer","Carousel_div_1_Template","ɵɵelementStart","ɵɵprojection","ɵɵtemplate","ɵɵelementEnd","ctx_r1","ɵɵnextContext","ɵɵadvance","ɵɵproperty","Carousel_button_4_ng_container_1_ChevronLeftIcon_1_Template","ɵɵelement","Carousel_button_4_ng_container_1_ChevronUpIcon_2_Template","Carousel_button_4_ng_container_1_Template","ɵɵelementContainerStart","ɵɵelementContainerEnd","Carousel_button_4_span_2_1_ng_template_0_Template","Carousel_button_4_span_2_1_Template","Carousel_button_4_span_2_Template","Carousel_button_4_Template","_r3","ɵɵgetCurrentView","ɵɵlistener","$event","ɵɵrestoreView","ɵɵresetView","ɵɵpureFunction1","ɵɵattribute","Carousel_div_8_ng_container_1_Template","Carousel_div_8_Template","item_r4","index_r5","ɵɵpureFunction3","Carousel_div_9_ng_container_1_Template","Carousel_div_9_Template","item_r6","index_r7","Carousel_div_10_ng_container_1_Template","Carousel_div_10_Template","item_r8","index_r9","Carousel_button_11_ng_container_1_ChevronRightIcon_1_Template","Carousel_button_11_ng_container_1_ChevronDownIcon_2_Template","Carousel_button_11_ng_container_1_Template","Carousel_button_11_span_2_1_ng_template_0_Template","Carousel_button_11_span_2_1_Template","Carousel_button_11_span_2_Template","Carousel_button_11_Template","_r10","Carousel_ul_12_li_2_Template","_r12","i_r13","ɵɵclassMap","Carousel_ul_12_Template","_r11","Carousel_div_13_ng_container_2_Template","Carousel_div_13_Template","Carousel","val","EventEmitter","el","zone","cd","renderer","document","platformId","config","simpleChange","isPlatformBrowser","UniqueComponentId","item","isCircular","totalShiftedItems","page","DomHandler","innerHTML","data1","data2","value1","value2","result","i","res","matchedResponsiveData","windowWidth","totalDots","e","index","event","indicators","activeIndex","highlightedIndex","ind","activeIndicator","prevInd","nextInd","dir","originalShiftedItems","changeAllow","touchobj","diff","value","t","ɵɵdirectiveInject","ElementRef","NgZone","ChangeDetectorRef","Renderer2","DOCUMENT","PLATFORM_ID","PrimeNGConfig","ɵɵdefineComponent","dirIndex","ɵɵcontentQuery","Header","Footer","PrimeTemplate","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵviewQuery","InputFlags","booleanAttribute","numberAttribute","ɵɵInputTransformsFeature","ɵɵNgOnChangesFeature","_r1","ɵɵprojectionDef","ɵɵpureFunction2","NgClass","NgForOf","NgIf","NgTemplateOutlet","NgStyle","Ripple","ChevronRightIcon","ChevronLeftIcon","ChevronDownIcon","ChevronUpIcon","CarouselModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","SharedModule","RippleModule","AutoFocus","inject","PLATFORM_ID","DOCUMENT","ElementRef","isPlatformBrowser","focusableElements","DomHandler","t","ɵɵdefineDirective","InputFlags","booleanAttribute","ɵɵInputTransformsFeature","SpinnerIcon","BaseIcon","UniqueComponentId","ɵSpinnerIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","ɵɵadvance","ɵɵproperty","_c0","_c1","a0","Button_ng_container_2_Template","rf","ctx","ɵɵelementContainer","Button_ng_container_3_ng_container_1_span_1_Template","ɵɵelement","ctx_r0","ɵɵnextContext","ɵɵproperty","ɵɵattribute","Button_ng_container_3_ng_container_1_SpinnerIcon_2_Template","Button_ng_container_3_ng_container_1_Template","ɵɵelementContainerStart","ɵɵtemplate","ɵɵelementContainerEnd","ɵɵadvance","Button_ng_container_3_2_ng_template_0_Template","Button_ng_container_3_2_Template","Button_ng_container_3_Template","ɵɵpureFunction1","Button_ng_container_4_span_1_Template","Button_ng_container_4_2_ng_template_0_Template","Button_ng_container_4_2_Template","Button_ng_container_4_Template","Button_span_5_Template","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtextInterpolate","Button_span_6_Template","ɵɵclassMap","Button","EventEmitter","el","value","acc","key","iconClasses","item","t","ɵɵdirectiveInject","ElementRef","ɵɵdefineComponent","rf","ctx","dirIndex","ɵɵcontentQuery","PrimeTemplate","_t","ɵɵqueryRefresh","ɵɵloadQuery","InputFlags","booleanAttribute","numberAttribute","ɵɵInputTransformsFeature","ɵɵStandaloneFeature","_c0","ɵɵprojectionDef","ɵɵelementStart","ɵɵlistener","$event","ɵɵprojection","ɵɵtemplate","Button_ng_container_2_Template","Button_ng_container_3_Template","Button_ng_container_4_Template","Button_span_5_Template","Button_span_6_Template","ɵɵelementEnd","ɵɵproperty","ɵɵattribute","ɵɵadvance","NgIf","NgTemplateOutlet","NgStyle","NgClass","Ripple","AutoFocus","SpinnerIcon","ButtonModule","ɵɵdefineNgModule","ɵɵdefineInjector","SharedModule","TagModule","t","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","SharedModule","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵadvance","ɵɵproperty","ctx_r1","recipes","i_r1","ɵɵtemplate","CarouselComponent_div_0_ng_template_2_div_3_Template","CarouselComponent_div_0_ng_template_2_Template","responsiveOptions","getIndex","CarouselComponent_div_1_ng_template_2_Template","CarouselComponent","constructor","currentIndex","ngOnInit","breakpoint","numVisible","numScroll","logToConsole","m","console","log","length","selectors","inputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","CarouselComponent_div_0_Template","CarouselComponent_div_1_Template","CardComponent","CarouselModule","NgForOf","NgIf","Carousel","PrimeTemplate","ButtonModule","TagModule","styles","_CarouselComponent","RecipesService","constructor","http","apiUrl","environment","getRecipes","get","pipe","catchError","handleError","getRecipeById","id","createRecipe","recipe","post","updateRecipe","put","deleteRecipe","delete","ɵɵinject","HttpClient","factory","ɵfac","providedIn","_RecipesService","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵelement","ɵɵadvance","ɵɵproperty","ctx_r0","recipes","RecipesComponent","constructor","recipeService","router","backUpRecipes","excludedColumns","getRecipes","ngOnInit","goTo","navigate","handleSearch","value","filterRecipeData","console","log","subscribe","res","ɵɵdirectiveInject","RecipesService","Router","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵlistener","$event","ɵɵtemplate","RecipesComponent_div_14_Template","RecipesComponent_div_15_Template","length","NavbarComponent","SearchBarComponent","CarouselComponent","CommonModule","NgIf","styles","_RecipesComponent","data","excludeColumns","filterValue","filter","trim","toLowerCase","item","Object","keys","some","key","includes","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate1","ctx_r1","translateLabel","key_r1","ɵɵtextInterpolate","event","ɵɵtextInterpolate3","key_r3","ɵɵtemplate","EventComponent_div_12_span_8_div_1_Template","EventComponent_div_12_span_8_div_2_Template","ɵɵproperty","EventComponent_div_12_span_6_Template","EventComponent_div_12_span_7_Template","EventComponent_div_12_span_8_Template","element_r4","element_r5","EventComponent_div_17_li_3_Template","EventComponent_div_17_li_5_Template","splitElementsResult","leftColumn","rightColumn","EventComponent","constructor","userService","salesChannelService","closeEventModal","EventEmitter","labelTranslation","id","title","description","envenDate","user","cost","saleChannel","userData","isSale","elements","ngOnInit","console","log","formatDescription","splitElements","closeModal","emit","objectKeys","obj","Object","keys","filter","key","splitKeys","middleIndex","Math","ceil","length","slice","column","split","ɵɵdirectiveInject","UsersService","SalesChannelsService","selectors","inputs","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵlistener","EventComponent_div_10_Template","EventComponent_div_12_Template","EventComponent_div_17_Template","EventComponent_div_18_Template","CommonModule","NgForOf","NgIf","styles","_EventComponent","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","closeEventModal","ɵɵelementEnd","ɵɵproperty","selectedEvent","HistoryComponent","constructor","eventsService","openEventModal","movements","excludeColumns","ngOnInit","getMovements","onRowClicked","event","getEvents","subscribe","ɵɵdirectiveInject","EventsService","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelement","ɵɵtext","$event","ɵɵtemplate","HistoryComponent_app_event_11_Template","ɵɵadvance","NavbarComponent","TableComponent","EventComponent","CommonModule","NgIf","styles","_HistoryComponent","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","AddUserComponent_div_20_div_1_Template","AddUserComponent_div_20_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","userForm","get","errors","tmp_3_0","AddUserComponent_div_29_div_1_Template","AddUserComponent_div_29_div_2_Template","AddUserComponent_div_38_div_1_Template","AddUserComponent_div_38_div_2_Template","AddUserComponent_div_47_div_1_Template","AddUserComponent_div_47_div_2_Template","AddUserComponent","constructor","userService","formBuilder","closeModalEvent","EventEmitter","confirmPassword","fatalError","fatalErrorMessage","group","email","Validators","required","emailValidator","name","pattern","surname","phone","phoneValidator","password","role","validator","matchPasswordValidator","closeModal","emit","onSubmit","valid","user","value","createUser","subscribe","ɵɵdirectiveInject","UsersService","FormBuilder","selectors","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵlistener","i0","ɵɵrestoreView","_r1","ɵɵresetView","ɵɵelement","AddUserComponent_div_20_Template","AddUserComponent_div_29_Template","AddUserComponent_div_38_Template","AddUserComponent_div_47_Template","AddUserComponent_div_57_Template","AddUserComponent_div_66_Template","AddUserComponent_div_67_Template","AddUserComponent_div_81_Template","ɵɵpureFunction1","_c0","dirty","touched","aux_r3","submitted","invalid","tmp_4_0","tmp_5_0","tmp_6_0","tmp_7_0","tmp_8_0","tmp_9_0","tmp_10_0","tmp_11_0","tmp_12_0","tmp_13_0","hasError","tmp_14_0","tmp_15_0","tmp_16_0","tmp_17_0","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NumberValueAccessor","RadioControlValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","CommonModule","NgClass","NgIf","styles","_AddUserComponent","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","UserComponent_div_28_div_1_Template","UserComponent_div_28_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","userForm","get","errors","tmp_3_0","UserComponent_div_37_div_1_Template","UserComponent_div_37_div_2_Template","UserComponent_div_46_div_1_Template","UserComponent_div_46_div_2_Template","UserComponent_div_55_div_1_Template","UserComponent_div_55_div_2_Template","UserComponent_div_74_div_1_Template","UserComponent_div_74_div_2_Template","value","aux_r3","submitted","dirty","touched","hasError","ɵɵlistener","ɵɵrestoreView","_r4","ɵɵnextContext","ɵɵresetView","confirmDelete","_r5","closeDeleteModal","deleteUser","UserComponent","constructor","UsersService","fb","AuthService","userInput","closeUserModalEvent","EventEmitter","isToggled","confirmDeleteModal","group","email","disabled","Validators","required","emailValidator","name","pattern","surname","phone","phoneValidator","password","confirmPassword","role","validator","matchPasswordValidator","ngOnInit","myId","getUserId","ngOnChanges","changes","currentValue","user","transformUserInput","patchValue","setValue","toggleEditMode","enable","disable","closeModal","emit","onSubmit","valid","userToSave","id","updateUser","subscribe","markAllAsTouched","response","error","console","isMe","data","ɵɵdirectiveInject","FormBuilder","selectors","inputs","outputs","standalone","features","ɵɵNgOnChangesFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","i0","_r1","ɵɵelement","UserComponent_div_28_Template","UserComponent_div_37_Template","UserComponent_div_46_Template","UserComponent_div_55_Template","UserComponent_div_65_Template","UserComponent_div_74_Template","UserComponent_div_88_Template","UserComponent_button_92_Template","UserComponent_app_delete_modal_93_Template","ɵɵpureFunction1","_c0","invalid","tmp_4_0","tmp_5_0","tmp_6_0","tmp_7_0","tmp_8_0","tmp_9_0","tmp_10_0","tmp_11_0","tmp_12_0","tmp_13_0","tmp_14_0","tmp_15_0","tmp_16_0","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","RadioControlValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","CommonModule","NgClass","NgIf","FormsModule","DeleteModalComponent","styles","_UserComponent","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","closeAddUserModal","ɵɵelementEnd","_r3","closeUserModal","ɵɵproperty","selectedUser","UsersComponent","constructor","UsersService","columnsExcluded","backUpUsers","users","addUserModal","openUserModal","ngOnInit","getUsers","openAddUserModal","onRowClicked","user","handleSearch","value","filterTableData","subscribe","data","ɵɵdirectiveInject","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelement","ɵɵtext","$event","ɵɵtemplate","UsersComponent_app_add_user_13_Template","UsersComponent_app_user_14_Template","ɵɵadvance","NavbarComponent","TableComponent","SearchBarComponent","AddUserComponent","CommonModule","NgIf","UserComponent","styles","_UsersComponent","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","AddProviderComponent_div_20_div_1_Template","AddProviderComponent_div_20_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","providerForm","get","errors","tmp_3_0","AddProviderComponent_div_29_div_1_Template","AddProviderComponent_div_29_div_2_Template","AddProviderComponent_div_38_div_1_Template","AddProviderComponent_div_38_div_2_Template","AddProviderComponent_div_47_div_1_Template","AddProviderComponent_div_47_div_2_Template","AddProviderComponent","constructor","providersService","formBuilder","closeModalEvent","EventEmitter","provider","group","name","Validators","required","pattern","email","emailValidator","phone","phoneValidator","cuit","cuitValidator","cp","address","line2","description","closeModal","emit","onSubmit","valid","fullAddress","value","trim","replace","createProvider","subscribe","response","error","console","ɵɵdirectiveInject","ProvidersService","FormBuilder","selectors","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵlistener","i0","ɵɵrestoreView","_r1","ɵɵresetView","ɵɵelement","AddProviderComponent_div_20_Template","AddProviderComponent_div_29_Template","AddProviderComponent_div_38_Template","AddProviderComponent_div_47_Template","AddProviderComponent_div_57_Template","AddProviderComponent_div_71_Template","AddProviderComponent_div_72_Template","AddProviderComponent_div_79_Template","ɵɵpureFunction1","_c0","dirty","touched","aux_r3","submitted","invalid","tmp_4_0","tmp_5_0","tmp_6_0","tmp_7_0","tmp_8_0","tmp_9_0","tmp_10_0","tmp_11_0","tmp_12_0","tmp_13_0","tmp_14_0","tmp_15_0","tmp_16_0","tmp_17_0","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NumberValueAccessor","NgControlStatus","NgControlStatusGroup","MaxLengthValidator","FormGroupDirective","FormControlName","CommonModule","NgClass","NgIf","styles","_AddProviderComponent","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","ProviderComponent_div_28_div_1_Template","ProviderComponent_div_28_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","providerForm","get","errors","tmp_3_0","ProviderComponent_div_37_div_1_Template","ProviderComponent_div_37_div_2_Template","ProviderComponent_div_55_div_1_Template","ProviderComponent_div_55_div_2_Template","ɵɵlistener","ɵɵrestoreView","_r3","ɵɵnextContext","ɵɵresetView","closeDeleteModal","deleteProvider","ProviderComponent","constructor","providersService","fb","providerInput","closeProviderModalEvent","EventEmitter","isToggled","confirmDeleteModal","group","name","value","disabled","Validators","required","pattern","email","emailValidator","phone","phoneValidator","cuit","cuitValidator","cp","address","line2","description","ngOnChanges","changes","currentValue","patchValue","transformProviderInput","toggleEditMode","enable","disable","onSubmit","valid","fullAddress","trim","replace","provider","id","updateProvider","subscribe","response","closeModal","error","console","markAllAsTouched","emit","confirmDelete","data","split","ɵɵdirectiveInject","ProvidersService","FormBuilder","selectors","inputs","outputs","standalone","features","ɵɵNgOnChangesFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","i0","_r1","ɵɵelement","ProviderComponent_div_28_Template","ProviderComponent_div_37_Template","ProviderComponent_div_46_Template","ProviderComponent_div_55_Template","ProviderComponent_div_65_Template","ProviderComponent_div_79_Template","ProviderComponent_div_80_Template","ProviderComponent_div_87_Template","ProviderComponent_app_delete_modal_93_Template","ɵɵpureFunction1","_c0","dirty","touched","aux_r4","submitted","invalid","tmp_4_0","tmp_5_0","tmp_6_0","tmp_7_0","tmp_8_0","tmp_9_0","tmp_10_0","tmp_11_0","tmp_12_0","tmp_13_0","tmp_14_0","tmp_15_0","tmp_16_0","tmp_17_0","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NumberValueAccessor","NgControlStatus","NgControlStatusGroup","MaxLengthValidator","FormGroupDirective","FormControlName","CommonModule","NgClass","NgIf","FormsModule","DeleteModalComponent","styles","_ProviderComponent","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","closeAddProviderModal","ɵɵelementEnd","_r3","closeProviderModal","ɵɵproperty","selectedProvider","ProvidersComponent","constructor","ProvidersService","providers","backUpProviders","addProviderModal","openProviderModal","exportColumns","ngOnInit","getProviders","openAddProviderModal","onRowClicked","prov","handleSearch","value","filterTableData","subscribe","res","ɵɵdirectiveInject","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelement","ɵɵtext","$event","ɵɵtemplate","ProvidersComponent_app_add_provider_13_Template","ProvidersComponent_app_provider_14_Template","ɵɵadvance","CommonModule","NgIf","NavbarComponent","TableComponent","SearchBarComponent","AddProviderComponent","ProviderComponent","styles","_ProvidersComponent","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","AddClientComponent_div_22_div_1_Template","AddClientComponent_div_22_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","clientForm","get","errors","tmp_3_0","AddClientComponent_div_29_div_1_Template","AddClientComponent_div_29_div_2_Template","AddClientComponent_div_38_div_1_Template","AddClientComponent_div_38_div_2_Template","AddClientComponent","constructor","salesChannelService","formBuilder","closeModalEvent","EventEmitter","confirmPassword","group","name","Validators","required","pattern","cuit","cuitValidator","email","emailValidator","phone","phoneValidator","cp","address","line2","closeModal","emit","onSubmit","valid","fullAddress","value","sc","addres","createSaleChannel","subscribe","response","error","console","markAllAsTouched","ɵɵdirectiveInject","SalesChannelsService","FormBuilder","selectors","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵlistener","i0","ɵɵrestoreView","_r1","ɵɵresetView","ɵɵelement","AddClientComponent_div_22_Template","AddClientComponent_div_29_Template","AddClientComponent_div_38_Template","AddClientComponent_div_48_Template","AddClientComponent_div_57_Template","AddClientComponent_div_71_Template","AddClientComponent_div_72_Template","ɵɵpureFunction1","_c0","dirty","touched","aux_r3","submitted","invalid","tmp_4_0","tmp_5_0","tmp_6_0","tmp_7_0","tmp_8_0","tmp_9_0","tmp_10_0","tmp_11_0","tmp_12_0","tmp_13_0","tmp_14_0","tmp_15_0","CommonModule","NgClass","NgIf","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NumberValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","styles","_AddClientComponent","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","ClientComponent_div_30_div_1_Template","ClientComponent_div_30_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","clientForm","get","errors","tmp_3_0","ClientComponent_div_37_div_1_Template","ClientComponent_div_37_div_2_Template","ClientComponent_div_46_div_1_Template","ClientComponent_div_46_div_2_Template","ɵɵlistener","ɵɵrestoreView","_r3","ɵɵnextContext","ɵɵresetView","closeDeleteModal","deleteClient","ClientComponent","constructor","salesChannelService","formBuilder","clientInput","closeClientModalEvent","EventEmitter","isToggled","confirmDeleteModal","group","name","value","disabled","Validators","required","pattern","cuit","cuitValidator","email","emailValidator","phone","phoneValidator","cp","address","line2","ngOnChanges","changes","currentValue","patchValue","transformClientInput","toggleEditMode","enable","disable","onSubmit","valid","direccion","linea2","fullAddress","trim","replace","saleChannel","id","addres","updateSaleChannel","subscribe","emit","markAllAsTouched","closeModal","confirmDelete","deleteSaleChannel","data","split","ɵɵdirectiveInject","SalesChannelsService","FormBuilder","selectors","inputs","outputs","standalone","features","ɵɵNgOnChangesFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","i0","_r1","ɵɵelement","ClientComponent_div_30_Template","ClientComponent_div_37_Template","ClientComponent_div_46_Template","ClientComponent_div_56_Template","ClientComponent_div_65_Template","ClientComponent_div_79_Template","ClientComponent_div_80_Template","ClientComponent_app_delete_modal_86_Template","ɵɵpureFunction1","_c0","dirty","touched","aux_r4","submitted","invalid","tmp_4_0","tmp_5_0","tmp_6_0","tmp_7_0","tmp_8_0","tmp_9_0","tmp_10_0","tmp_11_0","tmp_12_0","tmp_13_0","tmp_14_0","tmp_15_0","CommonModule","NgClass","NgIf","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NumberValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","DeleteModalComponent","styles","_ClientComponent","ClientsService","constructor","http","apiUrl","environment","getClients","get","pipe","map","data","mapToTableData","catchError","handleError","getClientById","id","createClient","client","post","updateClient","put","deleteClient","delete","ɵɵinject","HttpClient","factory","ɵfac","providedIn","_ClientsService","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","closeAddClientModal","ɵɵelementEnd","_r3","closeClientModal","ɵɵproperty","selectedClient","ClientsComponent","constructor","ClientsService","clients","backUpClients","addClientModal","openClientModal","exportColumns","ngOnInit","getClients","openAddClientModal","onRowClicked","user","handleSearch","value","filterTableData","subscribe","data","ɵɵdirectiveInject","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelement","ɵɵtext","$event","ɵɵtemplate","ClientsComponent_app_add_client_13_Template","ClientsComponent_app_client_14_Template","ɵɵadvance","NavbarComponent","TableComponent","SearchBarComponent","AddClientComponent","ClientComponent","CommonModule","NgIf","styles","_ClientsComponent","_c0","_c1","Editor_div_1_ng_container_2_Template","rf","ctx","ɵɵelementContainer","Editor_div_1_Template","ɵɵelementStart","ɵɵprojection","ɵɵtemplate","ɵɵelementEnd","ctx_r0","ɵɵnextContext","ɵɵadvance","ɵɵproperty","Editor_div_2_Template","ɵɵtext","ɵɵelement","EDITOR_VALUE_ACCESSOR","NG_VALUE_ACCESSOR","forwardRef","Editor","val","EventEmitter","el","platformId","afterNextRender","item","value","command","fn","isPlatformServer","quillModule","e","toolbarElement","editorElement","defaultModule","modules","__spreadValues","isQuill2","delta","oldContents","source","html","DomHandler","text","range","oldRange","t","ɵɵdirectiveInject","ElementRef","PLATFORM_ID","ɵɵdefineComponent","dirIndex","ɵɵcontentQuery","Header","PrimeTemplate","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵProvidersFeature","ɵɵprojectionDef","ɵɵclassMap","NgClass","NgIf","NgTemplateOutlet","NgStyle","EditorModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","SharedModule","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","AddRecipeComponent_div_21_div_1_Template","AddRecipeComponent_div_21_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","recipeForm","get","errors","tmp_3_0","unit_r3","ɵɵtextInterpolate1","ɵɵlistener","ɵɵrestoreView","_r4","i_r5","ɵɵnextContext","index","ɵɵresetView","removeIngredient","ɵɵelement","AddRecipeComponent_div_36_option_10_Template","AddRecipeComponent_div_36_div_12_Template","ɵɵpropertyInterpolate1","ɵɵpureFunction1","_c0","tmp_6_0","ingredient_r6","dirty","touched","aux_r7","submitted","invalid","tmp_8_0","tmp_10_0","units","unit_r8","_r9","j_r10","removeInput","AddRecipeComponent_div_47_option_10_Template","AddRecipeComponent_div_47_div_12_Template","input_r11","AddRecipeComponent_div_55_div_1_Template","AddRecipeComponent_div_55_div_2_Template","AddRecipeComponent","constructor","formBuilder","recipesService","router","toolbar","list","header","align","group","name","Validators","required","pattern","procedure","ingredients","array","createIngredientFormGroup","inputs","createInputsFormGroup","ngOnInit","Object","values","Units","quantity","unit","addIngredient","push","removeAt","addInput","onSubmit","console","log","valid","ingredientList","value","map","ingredient","join","inputsList","input","recipe","description","recipeIngredients","recipePackagingElements","createRecipe","subscribe","response","navigate","error","ɵɵdirectiveInject","FormBuilder","RecipesService","Router","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","i0","_r1","AddRecipeComponent_div_21_Template","AddRecipeComponent_div_36_Template","AddRecipeComponent_div_47_Template","AddRecipeComponent_ng_template_53_Template","AddRecipeComponent_div_55_Template","controls","ɵɵstyleMap","ɵɵpureFunction0","_c1","tmp_7_0","NavbarComponent","CommonModule","NgClass","NgForOf","NgIf","ReactiveFormsModule","ɵNgNoValidate","NgSelectOption","ɵNgSelectMultipleOption","DefaultValueAccessor","NumberValueAccessor","SelectControlValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","FormGroupName","FormArrayName","EditorModule","Editor","PrimeTemplate","styles","_AddRecipeComponent","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","ModifyRecipeComponent_div_23_div_1_Template","ModifyRecipeComponent_div_23_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","recipeForm","get","errors","tmp_3_0","unit_r3","ɵɵtextInterpolate1","ɵɵlistener","ɵɵrestoreView","_r4","i_r5","ɵɵnextContext","index","ɵɵresetView","removeIngredient","ɵɵelement","ModifyRecipeComponent_div_35_option_10_Template","ModifyRecipeComponent_div_35_div_12_Template","ɵɵpropertyInterpolate1","ɵɵpureFunction1","_c0","tmp_6_0","ingredient_r6","dirty","touched","aux_r7","submitted","invalid","tmp_8_0","tmp_10_0","units","unit_r8","_r9","j_r10","removeInput","ModifyRecipeComponent_div_46_option_10_Template","ModifyRecipeComponent_div_46_div_12_Template","input_r11","ModifyRecipeComponent_div_54_div_1_Template","ModifyRecipeComponent_div_54_div_2_Template","ModifyRecipeComponent","constructor","formBuilder","route","recipeService","router","id","group","name","Validators","required","pattern","procedure","ingredients","array","createIngredientFormGroup","inputs","createInputsFormGroup","ngOnInit","snapshot","paramMap","recipe","getRecipeById","subscribe","patchForm","Object","values","Units","quantity","unit","addIngredient","push","removeAt","addInput","onSubmit","valid","console","log","value","ingredientList","map","ingredient","join","inputsList","input","description","recipeIngredients","recipePackagingElements","updateRecipe","response","navigate","error","patchValue","clear","parseList","forEach","ɵɵdirectiveInject","FormBuilder","ActivatedRoute","RecipesService","Router","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","i0","_r1","ModifyRecipeComponent_div_23_Template","ModifyRecipeComponent_div_35_Template","ModifyRecipeComponent_div_46_Template","ModifyRecipeComponent_ng_template_52_Template","ModifyRecipeComponent_div_54_Template","controls","ɵɵstyleMap","ɵɵpureFunction0","_c1","tmp_7_0","CommonModule","NgClass","NgForOf","NgIf","ReactiveFormsModule","ɵNgNoValidate","NgSelectOption","ɵNgSelectMultipleOption","DefaultValueAccessor","NumberValueAccessor","SelectControlValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","FormGroupName","FormArrayName","NavbarComponent","EditorModule","Editor","PrimeTemplate","styles","_ModifyRecipeComponent","list","split","filter","item","trim","element","NewLinewToBrPipe","transform","value","replace","pure","standalone","_NewLinewToBrPipe","u8","u16","u32","fleb","fdeb","clim","freb","eb","start","b","i","j","_a","fl","revfl","_b","fd","revfd","rev","x","hMap","cd","mb","r","s","l","le","co","rvb","sv","r_1","m","flt","fdt","flm","flrm","fdm","fdrm","max","a","bits","d","p","o","bits16","shft","slc","v","e","inflt","dat","buf","st","sl","noBuf","noSt","cbuf","bl","nbuf","final","pos","bt","lm","dm","lbt","dbt","tbts","type","hLit","hcLen","tl","ldt","clt","clb","clbmsk","clm","c","n","lt","dt","t","lms","dms","mxa","sym","add","dsym","end","wbits","wbits16","hTree","t2","i0","i1","i2","maxSym","tr","mbt","ln","lft","cst","i2_1","i2_2","i2_3","lc","cl","cli","cln","cls","w","clen","cf","wfblk","out","wblk","syms","lf","df","li","bs","dlt","mlb","ddt","mdb","_c","lclt","nlc","_d","lcdt","ndc","lcfreq","_e","lct","mlcb","nlcc","flen","ftlen","dtlen","ll","dl","llm","lcts","it","clct","len","dst","deo","et","dflt","lvl","plvl","pre","post","lst","opt","msk_1","prev","head","bs1_1","bs2_1","hsh","lc_1","wi","hv","imod","pimod","rem","ch_1","dif","maxn","maxd","ml","nl","mmd","md","ti","pti","lin","din","adler","a","b","d","m","l","i","e","dopt","dat","opt","pre","post","st","dflt","wbytes","d","b","v","zlh","c","o","lv","fl","zlv","d","zlibSync","data","opts","a","adler","d","dopt","zlh","wbytes","unzlibSync","data","out","inflt","zlv","n","i","a","t","o","e","r","l","s","c","u","h","_typeof","f","d","g","m","v","b","_","p","y","w","N","L","A","x","S","P","k","I","F","C","j","O","B","M","E","lt","Vt","_t","Rr","q","D","R","T","U","z","H","W","V","G","Y","Ye","J","Q","X","K","Z","$","tt","et","rt","nt","it","at","ot","st","ct","ut","Qt","Kt","te","ht","ft","dt","pt","gt","mt","vt","bt","yt","wt","Nt","Lt","At","xt","St","Pt","kt","It","Ft","Ct","jt","Ot","Bt","Mt","Et","qt","Dt","Rt","Tt","Ut","zt","Ht","Wt","Cr","jr","Gt","Yt","Jt","Br","Xt","Zt","$t","ee","re","ne","ie","ae","oe","se","ce","ue","he","le","fe","de","pe","ge","me","ve","be","ye","we","Ne","Le","Ae","xe","Se","_e","Pe","ke","Ie","Fe","Ce","je","Me","Oe","pr","fr","Lr","kr","Ir","Be","Ee","qe","De","Re","Te","Ue","ze","He","We","Ve","Ge","Je","Xe","Ke","Ze","lr","_r","br","yr","xr","$e","Qe","tr","er","rr","ar","nr","ir","or","sr","cr","ur","hr","dr","gr","mr","vr","wr","Nr","Ar","Sr","Pr","Fr","Or","qr","Dr","Tr","Mr","Er","zlibSync","unzlibSync","Ur","zr","Hr","Hn","Wn","Vn","Gn","vi","Tn","Sn","An","qn","Rn","Un","Ci","ji","_i","Si","Mi","Bi","Oi","Pi","ki","Ei","qi","$n","Gr","Wr","Vr","Zr","$r","Yr","En","Qr","tn","Dn","nn","en","xn","zn","rn","mi","Xr","ti","gi","Jr","Kr","Qn","Xn","Zn","Jn","Yn","Kn","pi","_n","ni","ei","ri","ui","si","hi","ii","ai","Ri","Ui","Cn","Pn","kn","In","Fn","an","on","cn","un","hn","sn","ln","fn","dn","pn","gn","mn","vn","bn","yn","wn","Nn","Ln","fi","li","di","ci","oi","Bn","jn","On","Mn","bi","wi","yi","Ni","Li","Ai","xi","Fi","Ii","Di","zi","Ti","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate3","ingredient_r1","name","quantity","unit","ingredient_r2","input_r3","input_r4","ViewRecipeComponent","constructor","route","recipeService","router","id","recipe","leftColumnIngredients","rightColumnIngredients","leftColumnInputs","rightColumnInputs","ngOnInit","snapshot","paramMap","get","getRecipeById","subscribe","res","splitIngredients","splitInputs","error","console","goTo","navigate","deleteRecipe","generatePDF","doc","jsPDF","yPosition","setFontSize","text","parseList","forEach","ing","ins","procedureText","convertHTMLToText","splitTextToSize","line","save","html","tempDiv","document","createElement","innerHTML","replaceBreaks","node","nodeName","textContent","replaceLists","trim","Array","from","childNodes","map","join","toggle","element","push","ɵɵdirectiveInject","ActivatedRoute","RecipesService","Router","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelement","ɵɵlistener","ɵɵtemplate","ViewRecipeComponent_div_24_Template","ViewRecipeComponent_div_26_Template","ViewRecipeComponent_div_32_Template","ViewRecipeComponent_div_34_Template","ɵɵtextInterpolate","ɵɵproperty","ɵɵpipeBind1","ɵɵsanitizeHtml","NavbarComponent","CommonModule","NgForOf","NewLinewToBrPipe","styles","_ViewRecipeComponent","list","split","filter","item","CategoriesService","constructor","batchesService","batchCategories","BehaviorSubject","chargeCategories","getCategories","subscribe","next","res","Array","isArray","console","error","err","asObservable","addCategory","category","pipe","map","categories","includes","push","sort","ɵɵinject","BatchesService","factory","ɵfac","providedIn","_CategoriesService","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","AddBatchComponent_div_24_div_1_Template","AddBatchComponent_div_24_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","batchForm","get","errors","tmp_3_0","c_r3","ɵɵtextInterpolate1","AddBatchComponent_div_39_div_1_Template","unit_r4","AddBatchComponent_div_56_div_1_Template","AddBatchComponent_div_56_div_2_Template","AddBatchComponent_div_57_div_1_Template","avaibleRawMaterials","i_r6","quantity","AddBatchComponent_div_90_div_5_div_4_div_1_Template","AddBatchComponent_div_90_div_5_div_4_div_2_Template","tmp_6_0","materialControl_r7","tmp_7_0","ɵɵlistener","ɵɵrestoreView","_r5","ɵɵnextContext","ɵɵresetView","calculateCost","AddBatchComponent_div_90_div_5_div_4_Template","ɵɵpropertyInterpolate1","ɵɵpureFunction1","_c0","dirty","touched","aux_r9","submitted","invalid","tmp_8_0","ɵɵelement","AddBatchComponent_div_90_div_5_Template","ɵɵtextInterpolate3","name","unit","value","avaibleInputs","i_r11","AddBatchComponent_div_101_div_5_div_4_div_1_Template","AddBatchComponent_div_101_div_5_div_4_div_2_Template","materialControl_r12","_r10","AddBatchComponent_div_101_div_5_div_4_Template","AddBatchComponent_div_101_div_5_Template","AddBatchComponent_div_113_div_13_div_1_Template","AddBatchComponent_div_113_div_13_div_2_Template","addCategoryForm","tmp_4_0","_r14","closeAddCategoryModal","addCategory","AddBatchComponent_div_113_div_13_Template","AddBatchComponent","constructor","formbuild","CategoriesService","RawMaterialsService","InputsService","BatchesService","router","categories","units","minDate","addCategoryModal","totalCost","group","Validators","required","pattern","category","expirationDate","description","price","min","ingredients","array","validators","atLeastOneCheckedValidator","packages","newCategory","ngOnInit","chargeCategories","getCategories","Object","values","Units","now","Date","toISOString","slice","getRawMaterials","getInputs","valid","push","reset","console","log","onSubmit","selectedIngredientControls","selectedIngredientIds","filter","ingredient","selected","map","id","material","includes","selectedInputControls","selectedInputIds","input","inputs","futureDate","setFullYear","getFullYear","batch","expiration","batchIngredients","batchIngredientsQuantity","join","batchPackagingElements","batchPackagingElementsQuantity","JSON","stringify","createBatch","subscribe","data","ingredientUpdatePromises","selectedControl","find","control","updateRawMaterial","toPromise","Boolean","inputUpdatePromises","updateInput","Promise","all","then","catch","error","navigate","openAddCategoryModal","selectedIngredients","addRawMaterialControls","forEach","max","availableQuantity","sort","a","b","localeCompare","openRMFilters","selectedInputs","addInputsControls","openIFilters","rawMaterial","cost","packagingMaterial","updatePriceValidator","priceControl","setValidators","updateValueAndValidity","ɵɵdirectiveInject","FormBuilder","Router","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","i0","_r1","AddBatchComponent_div_24_Template","AddBatchComponent_option_34_Template","AddBatchComponent_div_39_Template","AddBatchComponent_option_54_Template","AddBatchComponent_div_56_Template","AddBatchComponent_div_57_Template","AddBatchComponent_div_66_Template","AddBatchComponent_div_80_Template","AddBatchComponent_div_90_Template","AddBatchComponent_div_91_Template","AddBatchComponent_div_101_Template","AddBatchComponent_div_102_Template","AddBatchComponent_ng_template_110_Template","AddBatchComponent_div_112_Template","AddBatchComponent_div_113_Template","tmp_10_0","tmp_11_0","tmp_12_0","tmp_14_0","tmp_15_0","tmp_17_0","controls","tmp_19_0","tmp_21_0","ɵɵstyleMap","ɵɵpureFunction0","_c1","tmp_23_0","tmp_24_0","CommonModule","NgClass","NgForOf","NgIf","NavbarComponent","ReactiveFormsModule","ɵNgNoValidate","NgSelectOption","ɵNgSelectMultipleOption","DefaultValueAccessor","NumberValueAccessor","CheckboxControlValueAccessor","SelectControlValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","FormGroupName","FormArrayName","EditorModule","Editor","PrimeTemplate","styles","_AddBatchComponent","AuthGuard","route","state","authService","inject","AuthService","router","Router","isLoggedIn","navigate","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","ModifyBatchComponent_div_24_div_1_Template","ModifyBatchComponent_div_24_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","batchForm","get","errors","tmp_3_0","c_r3","ɵɵtextInterpolate1","ModifyBatchComponent_div_39_div_1_Template","unit_r4","ModifyBatchComponent_div_56_div_1_Template","ModifyBatchComponent_div_56_div_2_Template","ModifyBatchComponent_div_57_div_1_Template","avaibleRawMaterials","i_r6","quantity","ModifyBatchComponent_div_90_div_5_div_4_div_1_Template","ModifyBatchComponent_div_90_div_5_div_4_div_2_Template","tmp_6_0","materialControl_r7","tmp_7_0","ɵɵlistener","ɵɵrestoreView","_r5","ɵɵnextContext","ɵɵresetView","calculateCost","ModifyBatchComponent_div_90_div_5_div_4_Template","ɵɵpropertyInterpolate1","ɵɵpureFunction1","_c0","dirty","touched","aux_r9","submitted","invalid","tmp_8_0","ɵɵelement","ModifyBatchComponent_div_90_div_5_Template","ɵɵtextInterpolate3","name","unit","value","avaibleInputs","i_r11","ModifyBatchComponent_div_101_div_5_div_4_div_1_Template","ModifyBatchComponent_div_101_div_5_div_4_div_2_Template","materialControl_r12","_r10","ModifyBatchComponent_div_101_div_5_div_4_Template","ModifyBatchComponent_div_101_div_5_Template","ModifyBatchComponent_div_113_div_13_div_1_Template","ModifyBatchComponent_div_113_div_13_div_2_Template","addCategoryForm","tmp_4_0","_r14","closeAddCategoryModal","addCategory","ModifyBatchComponent_div_113_div_13_Template","ModifyBatchComponent","constructor","formbuild","CategoriesService","RawMaterialsService","InputsService","BatchesService","router","activeRoute","batchId","batch","categories","units","minDate","addCategoryModal","preSelectedIngredients","preSelectedIngredientsQuantity","preSelectedInputs","totalCost","group","Validators","required","pattern","category","expirationDate","description","price","min","ingredients","array","validators","atLeastOneCheckedValidator","packages","newCategory","ngOnInit","getBatch","getRawMaterials","getInputs","chargeCategories","getCategories","Object","values","Units","now","Date","toISOString","slice","console","log","valid","push","reset","onSubmit","selectedIngredientControls","selectedInputControls","selectedIngredientIds","filter","ingredient","selected","map","id","selectedInputIds","input","updatedIngredients","material","includes","updatedInputs","ingredientsQuantity","join","inputsQuantity","expiration","creationDate","ad","lastModificationDate","lmd","batchIngredients","batchIngredientsQuantity","batchPackagingElements","batchPackagingElementsQuantity","JSON","stringify","updateBatch","subscribe","data","ingredientUpdatePromises","updateSelectedIngredients","inputUpdatePromises","updateSelectedInputs","ingredientRestorePromises","restoreDeselectedIngredients","inputRestorePromises","restoreDeselectedInputs","Promise","all","then","catch","error","navigate","field","find","originalQuantity","Number","newQuantity","difference","Math","abs","updateRawMaterial","toPromise","resolve","updateInput","control","deselected","openAddCategoryModal","selectedIngredients","addRawMaterialControls","length","removeAt","forEach","max","availableQuantity","openRMFilters","selectedInputs","addInputsControls","openIFilters","sort","a","b","localeCompare","snapshot","paramMap","getBatchById","res","patchValue","formatDate","ingredientQuantities","split","reduce","acc","pair","parseFloat","packagingQuantities","ingredientsArray","controls","ctrl","undefined","packagesArray","packaging","reject","updateElement","stock","actualQuantity","oldQuantity","rawMaterial","cost","packagingMaterial","updatePriceValidator","priceControl","setValidators","updateValueAndValidity","ɵɵdirectiveInject","FormBuilder","Router","ActivatedRoute","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","i0","_r1","ModifyBatchComponent_div_24_Template","ModifyBatchComponent_option_34_Template","ModifyBatchComponent_div_39_Template","ModifyBatchComponent_option_54_Template","ModifyBatchComponent_div_56_Template","ModifyBatchComponent_div_57_Template","ModifyBatchComponent_div_66_Template","ModifyBatchComponent_div_80_Template","ModifyBatchComponent_div_90_Template","ModifyBatchComponent_div_91_Template","ModifyBatchComponent_div_101_Template","ModifyBatchComponent_div_102_Template","ModifyBatchComponent_ng_template_110_Template","ModifyBatchComponent_div_112_Template","ModifyBatchComponent_div_113_Template","tmp_10_0","tmp_11_0","tmp_12_0","tmp_14_0","tmp_15_0","tmp_17_0","tmp_19_0","tmp_21_0","ɵɵstyleMap","ɵɵpureFunction0","_c1","tmp_23_0","tmp_24_0","CommonModule","NgClass","NgForOf","NgIf","ReactiveFormsModule","ɵNgNoValidate","NgSelectOption","ɵNgSelectMultipleOption","DefaultValueAccessor","NumberValueAccessor","CheckboxControlValueAccessor","SelectControlValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","FormGroupName","FormArrayName","NavbarComponent","EditorModule","Editor","PrimeTemplate","styles","_ModifyBatchComponent","allReadyLogGuard","route","state","authService","inject","AuthService","router","Router","isLoggedIn","navigate","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","EditProfileModalComponent_div_23_div_1_Template","EditProfileModalComponent_div_23_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","userForm","get","errors","tmp_3_0","EditProfileModalComponent_div_32_div_1_Template","EditProfileModalComponent_div_32_div_2_Template","EditProfileModalComponent_div_41_div_1_Template","EditProfileModalComponent_div_41_div_2_Template","EditProfileModalComponent_div_50_div_1_Template","EditProfileModalComponent_div_50_div_2_Template","EditProfileModalComponent_div_69_div_1_Template","EditProfileModalComponent_div_69_div_2_Template","value","aux_r3","submitted","dirty","touched","hasError","EditProfileModalComponent","constructor","fb","UsersService","userInput","close","EventEmitter","group","email","Validators","required","emailValidator","name","pattern","surname","phone","phoneValidator","password","confirmPassword","role","validator","matchPasswordValidator","ngOnInit","user","transformUserInput","patchValue","onSubmit","valid","pass","userToSave","id","console","log","updateUser","subscribe","emit","markAllAsTouched","closeModal","data","ɵɵdirectiveInject","FormBuilder","selectors","inputs","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵlistener","i0","ɵɵrestoreView","_r1","ɵɵresetView","ɵɵelement","EditProfileModalComponent_div_23_Template","EditProfileModalComponent_div_32_Template","EditProfileModalComponent_div_41_Template","EditProfileModalComponent_div_50_Template","EditProfileModalComponent_div_60_Template","EditProfileModalComponent_div_69_Template","EditProfileModalComponent_div_83_Template","ɵɵpureFunction1","_c0","invalid","tmp_4_0","tmp_5_0","tmp_6_0","tmp_7_0","tmp_8_0","tmp_9_0","tmp_10_0","tmp_11_0","tmp_12_0","tmp_13_0","tmp_14_0","tmp_15_0","tmp_16_0","CommonModule","NgClass","NgIf","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","RadioControlValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","FormsModule","styles","_EditProfileModalComponent","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","closeUserModal","ɵɵelementEnd","ɵɵproperty","user","ProfileComponent","constructor","authService","userService","openEditProfileModal","ngOnInit","userId","getUserId","getData","openUserModal","getUsersById","subscribe","data","ɵɵdirectiveInject","AuthService","UsersService","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelement","ɵɵtext","ɵɵtemplate","ProfileComponent_app_edit_profile_modal_40_Template","ɵɵadvance","ɵɵtextInterpolate","NavbarComponent","ReactiveFormsModule","CommonModule","NgIf","EditProfileModalComponent","styles","_ProfileComponent","routes","path","component","LoginComponent","canActivate","allReadyLogGuard","pathMatch","HomeComponent","AuthGuard","InventoryComponent","ProductionComponent","AddBatchComponent","ViewBatchComponent","ModifyBatchComponent","RecipesComponent","AddRecipeComponent","ViewRecipeComponent","ModifyRecipeComponent","HistoryComponent","UsersComponent","ProvidersComponent","ClientsComponent","ProfileComponent","redirectTo","authInterceptor","req","next","authService","inject","AuthService","url","includes","token","getToken","authReq","clone","setHeaders","Authorization","appConfig","providers","provideRouter","routes","provideClientHydration","provideHttpClient","withFetch","withInterceptors","authInterceptor","AppComponent","constructor","title","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","template","rf","ctx","ɵɵelement","RouterOutlet","_AppComponent","bootstrapApplication","AppComponent","appConfig","catch","err","console","error"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,147,148,149,150,151,152,153,154,155,156,157,158,159,160,189,195,196]}
\ No newline at end of file
diff --git a/src/main/webapp/production/add/index.html b/src/main/webapp/production/add/index.html
index dd70e8f..9520dc8 100644
--- a/src/main/webapp/production/add/index.html
+++ b/src/main/webapp/production/add/index.html
@@ -10,6 +10,6 @@
 /*# sourceMappingURL=login.component-V4GLU5XR.css.map */</style></head>
 <body><!--nghm-->
   <app-root _nghost-ng-c3984273398 ng-version="17.3.11" ngh="1" ng-server-context="ssg"><router-outlet _ngcontent-ng-c3984273398></router-outlet><app-login _nghost-ng-c1255512367 ngh="0"><div _ngcontent-ng-c1255512367 class="container-fluid vh-100 d-flex flex-column justify-content-center align-items-center login-background" style="overflow: hidden;"><div _ngcontent-ng-c1255512367 class="logo-container mb-5"><img _ngcontent-ng-c1255512367 src="assets/logo_salacomunitaria.svg" alt="Logo principal" class="img-fluid logo-principal"></div><div _ngcontent-ng-c1255512367 class="login-container col-12 col-md-8 col-lg-8 col-xl-4"><form _ngcontent-ng-c1255512367 novalidate class="login-form p-4 shadow ng-untouched ng-pristine ng-invalid"><div _ngcontent-ng-c1255512367 class="input-group mb-3"><span _ngcontent-ng-c1255512367 class="input-group-text text-white align-items-center justify-content-center"><i _ngcontent-ng-c1255512367 class="bi bi-envelope"></i></span><input _ngcontent-ng-c1255512367 type="email" id="email" formcontrolname="email" placeholder="Ingrese su email" aria-label="Email" class="form-control login-input text-white ng-untouched ng-pristine ng-invalid" value></div><div _ngcontent-ng-c1255512367 class="input-group mb-3"><span _ngcontent-ng-c1255512367 class="input-group-text text-white align-items-center justify-content-center"><i _ngcontent-ng-c1255512367 class="bi bi-lock"></i></span><input _ngcontent-ng-c1255512367 type="password" id="password" formcontrolname="password" placeholder="Ingrese su contraseña" aria-label="Contraseña" class="form-control login-input text-white ng-untouched ng-pristine ng-invalid" value></div><button _ngcontent-ng-c1255512367 type="submit" class="btn login-btn w-100 text-white"> LOGIN </button><div _ngcontent-ng-c1255512367 class="error-container"><span _ngcontent-ng-c1255512367 class="error-message"><!--ngetn--></span></div><div _ngcontent-ng-c1255512367 class="form-check"><input _ngcontent-ng-c1255512367 type="checkbox" id="rememberMe" formcontrolname="rememberMe" class="form-check-input ng-untouched ng-pristine ng-valid"><label _ngcontent-ng-c1255512367 for="rememberMe" class="form-check-label">Recordarme</label></div></form></div><footer _ngcontent-ng-c1255512367 class="footer mt-auto py-3 w-100"><div _ngcontent-ng-c1255512367 class="container d-flex justify-content-center align-items-center footer-container"><img _ngcontent-ng-c1255512367 src="assets/logo_informatica.png" alt="Logo facultad Informatica" class="logo-footer mx-2"><div _ngcontent-ng-c1255512367 class="vr"></div><img _ngcontent-ng-c1255512367 src="assets/logo_unlp.png" alt="Logo UNLP" class="logo-footer mx-2"><div _ngcontent-ng-c1255512367 class="vr"></div><img _ngcontent-ng-c1255512367 src="assets/logo_veterinaria.png" alt="Logo facultad Veterinaria" class="logo-footer mx-2"></div></footer></div></app-login><!----></app-root>
-<script src="polyfills-FEUDNLVJ.js" type="module"></script><script src="scripts-7Z5T4CMR.js" defer></script><script src="main-YAAPIBWJ.js" type="module"></script>
+<script src="polyfills-FEUDNLVJ.js" type="module"></script><script src="scripts-7Z5T4CMR.js" defer></script><script src="main-4GNIG5GO.js" type="module"></script>
 
 <script id="ng-state" type="application/json">{"__nghData__":[{},{"c":{"0":[{"i":"c1255512367","r":1}]}}]}</script></body></html>
\ No newline at end of file
diff --git a/src/main/webapp/production/index.html b/src/main/webapp/production/index.html
index dd70e8f..9520dc8 100644
--- a/src/main/webapp/production/index.html
+++ b/src/main/webapp/production/index.html
@@ -10,6 +10,6 @@
 /*# sourceMappingURL=login.component-V4GLU5XR.css.map */</style></head>
 <body><!--nghm-->
   <app-root _nghost-ng-c3984273398 ng-version="17.3.11" ngh="1" ng-server-context="ssg"><router-outlet _ngcontent-ng-c3984273398></router-outlet><app-login _nghost-ng-c1255512367 ngh="0"><div _ngcontent-ng-c1255512367 class="container-fluid vh-100 d-flex flex-column justify-content-center align-items-center login-background" style="overflow: hidden;"><div _ngcontent-ng-c1255512367 class="logo-container mb-5"><img _ngcontent-ng-c1255512367 src="assets/logo_salacomunitaria.svg" alt="Logo principal" class="img-fluid logo-principal"></div><div _ngcontent-ng-c1255512367 class="login-container col-12 col-md-8 col-lg-8 col-xl-4"><form _ngcontent-ng-c1255512367 novalidate class="login-form p-4 shadow ng-untouched ng-pristine ng-invalid"><div _ngcontent-ng-c1255512367 class="input-group mb-3"><span _ngcontent-ng-c1255512367 class="input-group-text text-white align-items-center justify-content-center"><i _ngcontent-ng-c1255512367 class="bi bi-envelope"></i></span><input _ngcontent-ng-c1255512367 type="email" id="email" formcontrolname="email" placeholder="Ingrese su email" aria-label="Email" class="form-control login-input text-white ng-untouched ng-pristine ng-invalid" value></div><div _ngcontent-ng-c1255512367 class="input-group mb-3"><span _ngcontent-ng-c1255512367 class="input-group-text text-white align-items-center justify-content-center"><i _ngcontent-ng-c1255512367 class="bi bi-lock"></i></span><input _ngcontent-ng-c1255512367 type="password" id="password" formcontrolname="password" placeholder="Ingrese su contraseña" aria-label="Contraseña" class="form-control login-input text-white ng-untouched ng-pristine ng-invalid" value></div><button _ngcontent-ng-c1255512367 type="submit" class="btn login-btn w-100 text-white"> LOGIN </button><div _ngcontent-ng-c1255512367 class="error-container"><span _ngcontent-ng-c1255512367 class="error-message"><!--ngetn--></span></div><div _ngcontent-ng-c1255512367 class="form-check"><input _ngcontent-ng-c1255512367 type="checkbox" id="rememberMe" formcontrolname="rememberMe" class="form-check-input ng-untouched ng-pristine ng-valid"><label _ngcontent-ng-c1255512367 for="rememberMe" class="form-check-label">Recordarme</label></div></form></div><footer _ngcontent-ng-c1255512367 class="footer mt-auto py-3 w-100"><div _ngcontent-ng-c1255512367 class="container d-flex justify-content-center align-items-center footer-container"><img _ngcontent-ng-c1255512367 src="assets/logo_informatica.png" alt="Logo facultad Informatica" class="logo-footer mx-2"><div _ngcontent-ng-c1255512367 class="vr"></div><img _ngcontent-ng-c1255512367 src="assets/logo_unlp.png" alt="Logo UNLP" class="logo-footer mx-2"><div _ngcontent-ng-c1255512367 class="vr"></div><img _ngcontent-ng-c1255512367 src="assets/logo_veterinaria.png" alt="Logo facultad Veterinaria" class="logo-footer mx-2"></div></footer></div></app-login><!----></app-root>
-<script src="polyfills-FEUDNLVJ.js" type="module"></script><script src="scripts-7Z5T4CMR.js" defer></script><script src="main-YAAPIBWJ.js" type="module"></script>
+<script src="polyfills-FEUDNLVJ.js" type="module"></script><script src="scripts-7Z5T4CMR.js" defer></script><script src="main-4GNIG5GO.js" type="module"></script>
 
 <script id="ng-state" type="application/json">{"__nghData__":[{},{"c":{"0":[{"i":"c1255512367","r":1}]}}]}</script></body></html>
\ No newline at end of file
diff --git a/src/main/webapp/profile/index.html b/src/main/webapp/profile/index.html
index dd70e8f..9520dc8 100644
--- a/src/main/webapp/profile/index.html
+++ b/src/main/webapp/profile/index.html
@@ -10,6 +10,6 @@
 /*# sourceMappingURL=login.component-V4GLU5XR.css.map */</style></head>
 <body><!--nghm-->
   <app-root _nghost-ng-c3984273398 ng-version="17.3.11" ngh="1" ng-server-context="ssg"><router-outlet _ngcontent-ng-c3984273398></router-outlet><app-login _nghost-ng-c1255512367 ngh="0"><div _ngcontent-ng-c1255512367 class="container-fluid vh-100 d-flex flex-column justify-content-center align-items-center login-background" style="overflow: hidden;"><div _ngcontent-ng-c1255512367 class="logo-container mb-5"><img _ngcontent-ng-c1255512367 src="assets/logo_salacomunitaria.svg" alt="Logo principal" class="img-fluid logo-principal"></div><div _ngcontent-ng-c1255512367 class="login-container col-12 col-md-8 col-lg-8 col-xl-4"><form _ngcontent-ng-c1255512367 novalidate class="login-form p-4 shadow ng-untouched ng-pristine ng-invalid"><div _ngcontent-ng-c1255512367 class="input-group mb-3"><span _ngcontent-ng-c1255512367 class="input-group-text text-white align-items-center justify-content-center"><i _ngcontent-ng-c1255512367 class="bi bi-envelope"></i></span><input _ngcontent-ng-c1255512367 type="email" id="email" formcontrolname="email" placeholder="Ingrese su email" aria-label="Email" class="form-control login-input text-white ng-untouched ng-pristine ng-invalid" value></div><div _ngcontent-ng-c1255512367 class="input-group mb-3"><span _ngcontent-ng-c1255512367 class="input-group-text text-white align-items-center justify-content-center"><i _ngcontent-ng-c1255512367 class="bi bi-lock"></i></span><input _ngcontent-ng-c1255512367 type="password" id="password" formcontrolname="password" placeholder="Ingrese su contraseña" aria-label="Contraseña" class="form-control login-input text-white ng-untouched ng-pristine ng-invalid" value></div><button _ngcontent-ng-c1255512367 type="submit" class="btn login-btn w-100 text-white"> LOGIN </button><div _ngcontent-ng-c1255512367 class="error-container"><span _ngcontent-ng-c1255512367 class="error-message"><!--ngetn--></span></div><div _ngcontent-ng-c1255512367 class="form-check"><input _ngcontent-ng-c1255512367 type="checkbox" id="rememberMe" formcontrolname="rememberMe" class="form-check-input ng-untouched ng-pristine ng-valid"><label _ngcontent-ng-c1255512367 for="rememberMe" class="form-check-label">Recordarme</label></div></form></div><footer _ngcontent-ng-c1255512367 class="footer mt-auto py-3 w-100"><div _ngcontent-ng-c1255512367 class="container d-flex justify-content-center align-items-center footer-container"><img _ngcontent-ng-c1255512367 src="assets/logo_informatica.png" alt="Logo facultad Informatica" class="logo-footer mx-2"><div _ngcontent-ng-c1255512367 class="vr"></div><img _ngcontent-ng-c1255512367 src="assets/logo_unlp.png" alt="Logo UNLP" class="logo-footer mx-2"><div _ngcontent-ng-c1255512367 class="vr"></div><img _ngcontent-ng-c1255512367 src="assets/logo_veterinaria.png" alt="Logo facultad Veterinaria" class="logo-footer mx-2"></div></footer></div></app-login><!----></app-root>
-<script src="polyfills-FEUDNLVJ.js" type="module"></script><script src="scripts-7Z5T4CMR.js" defer></script><script src="main-YAAPIBWJ.js" type="module"></script>
+<script src="polyfills-FEUDNLVJ.js" type="module"></script><script src="scripts-7Z5T4CMR.js" defer></script><script src="main-4GNIG5GO.js" type="module"></script>
 
 <script id="ng-state" type="application/json">{"__nghData__":[{},{"c":{"0":[{"i":"c1255512367","r":1}]}}]}</script></body></html>
\ No newline at end of file
diff --git a/src/main/webapp/providers/index.html b/src/main/webapp/providers/index.html
index dd70e8f..9520dc8 100644
--- a/src/main/webapp/providers/index.html
+++ b/src/main/webapp/providers/index.html
@@ -10,6 +10,6 @@
 /*# sourceMappingURL=login.component-V4GLU5XR.css.map */</style></head>
 <body><!--nghm-->
   <app-root _nghost-ng-c3984273398 ng-version="17.3.11" ngh="1" ng-server-context="ssg"><router-outlet _ngcontent-ng-c3984273398></router-outlet><app-login _nghost-ng-c1255512367 ngh="0"><div _ngcontent-ng-c1255512367 class="container-fluid vh-100 d-flex flex-column justify-content-center align-items-center login-background" style="overflow: hidden;"><div _ngcontent-ng-c1255512367 class="logo-container mb-5"><img _ngcontent-ng-c1255512367 src="assets/logo_salacomunitaria.svg" alt="Logo principal" class="img-fluid logo-principal"></div><div _ngcontent-ng-c1255512367 class="login-container col-12 col-md-8 col-lg-8 col-xl-4"><form _ngcontent-ng-c1255512367 novalidate class="login-form p-4 shadow ng-untouched ng-pristine ng-invalid"><div _ngcontent-ng-c1255512367 class="input-group mb-3"><span _ngcontent-ng-c1255512367 class="input-group-text text-white align-items-center justify-content-center"><i _ngcontent-ng-c1255512367 class="bi bi-envelope"></i></span><input _ngcontent-ng-c1255512367 type="email" id="email" formcontrolname="email" placeholder="Ingrese su email" aria-label="Email" class="form-control login-input text-white ng-untouched ng-pristine ng-invalid" value></div><div _ngcontent-ng-c1255512367 class="input-group mb-3"><span _ngcontent-ng-c1255512367 class="input-group-text text-white align-items-center justify-content-center"><i _ngcontent-ng-c1255512367 class="bi bi-lock"></i></span><input _ngcontent-ng-c1255512367 type="password" id="password" formcontrolname="password" placeholder="Ingrese su contraseña" aria-label="Contraseña" class="form-control login-input text-white ng-untouched ng-pristine ng-invalid" value></div><button _ngcontent-ng-c1255512367 type="submit" class="btn login-btn w-100 text-white"> LOGIN </button><div _ngcontent-ng-c1255512367 class="error-container"><span _ngcontent-ng-c1255512367 class="error-message"><!--ngetn--></span></div><div _ngcontent-ng-c1255512367 class="form-check"><input _ngcontent-ng-c1255512367 type="checkbox" id="rememberMe" formcontrolname="rememberMe" class="form-check-input ng-untouched ng-pristine ng-valid"><label _ngcontent-ng-c1255512367 for="rememberMe" class="form-check-label">Recordarme</label></div></form></div><footer _ngcontent-ng-c1255512367 class="footer mt-auto py-3 w-100"><div _ngcontent-ng-c1255512367 class="container d-flex justify-content-center align-items-center footer-container"><img _ngcontent-ng-c1255512367 src="assets/logo_informatica.png" alt="Logo facultad Informatica" class="logo-footer mx-2"><div _ngcontent-ng-c1255512367 class="vr"></div><img _ngcontent-ng-c1255512367 src="assets/logo_unlp.png" alt="Logo UNLP" class="logo-footer mx-2"><div _ngcontent-ng-c1255512367 class="vr"></div><img _ngcontent-ng-c1255512367 src="assets/logo_veterinaria.png" alt="Logo facultad Veterinaria" class="logo-footer mx-2"></div></footer></div></app-login><!----></app-root>
-<script src="polyfills-FEUDNLVJ.js" type="module"></script><script src="scripts-7Z5T4CMR.js" defer></script><script src="main-YAAPIBWJ.js" type="module"></script>
+<script src="polyfills-FEUDNLVJ.js" type="module"></script><script src="scripts-7Z5T4CMR.js" defer></script><script src="main-4GNIG5GO.js" type="module"></script>
 
 <script id="ng-state" type="application/json">{"__nghData__":[{},{"c":{"0":[{"i":"c1255512367","r":1}]}}]}</script></body></html>
\ No newline at end of file
diff --git a/src/main/webapp/recipes/add/index.html b/src/main/webapp/recipes/add/index.html
index dd70e8f..9520dc8 100644
--- a/src/main/webapp/recipes/add/index.html
+++ b/src/main/webapp/recipes/add/index.html
@@ -10,6 +10,6 @@
 /*# sourceMappingURL=login.component-V4GLU5XR.css.map */</style></head>
 <body><!--nghm-->
   <app-root _nghost-ng-c3984273398 ng-version="17.3.11" ngh="1" ng-server-context="ssg"><router-outlet _ngcontent-ng-c3984273398></router-outlet><app-login _nghost-ng-c1255512367 ngh="0"><div _ngcontent-ng-c1255512367 class="container-fluid vh-100 d-flex flex-column justify-content-center align-items-center login-background" style="overflow: hidden;"><div _ngcontent-ng-c1255512367 class="logo-container mb-5"><img _ngcontent-ng-c1255512367 src="assets/logo_salacomunitaria.svg" alt="Logo principal" class="img-fluid logo-principal"></div><div _ngcontent-ng-c1255512367 class="login-container col-12 col-md-8 col-lg-8 col-xl-4"><form _ngcontent-ng-c1255512367 novalidate class="login-form p-4 shadow ng-untouched ng-pristine ng-invalid"><div _ngcontent-ng-c1255512367 class="input-group mb-3"><span _ngcontent-ng-c1255512367 class="input-group-text text-white align-items-center justify-content-center"><i _ngcontent-ng-c1255512367 class="bi bi-envelope"></i></span><input _ngcontent-ng-c1255512367 type="email" id="email" formcontrolname="email" placeholder="Ingrese su email" aria-label="Email" class="form-control login-input text-white ng-untouched ng-pristine ng-invalid" value></div><div _ngcontent-ng-c1255512367 class="input-group mb-3"><span _ngcontent-ng-c1255512367 class="input-group-text text-white align-items-center justify-content-center"><i _ngcontent-ng-c1255512367 class="bi bi-lock"></i></span><input _ngcontent-ng-c1255512367 type="password" id="password" formcontrolname="password" placeholder="Ingrese su contraseña" aria-label="Contraseña" class="form-control login-input text-white ng-untouched ng-pristine ng-invalid" value></div><button _ngcontent-ng-c1255512367 type="submit" class="btn login-btn w-100 text-white"> LOGIN </button><div _ngcontent-ng-c1255512367 class="error-container"><span _ngcontent-ng-c1255512367 class="error-message"><!--ngetn--></span></div><div _ngcontent-ng-c1255512367 class="form-check"><input _ngcontent-ng-c1255512367 type="checkbox" id="rememberMe" formcontrolname="rememberMe" class="form-check-input ng-untouched ng-pristine ng-valid"><label _ngcontent-ng-c1255512367 for="rememberMe" class="form-check-label">Recordarme</label></div></form></div><footer _ngcontent-ng-c1255512367 class="footer mt-auto py-3 w-100"><div _ngcontent-ng-c1255512367 class="container d-flex justify-content-center align-items-center footer-container"><img _ngcontent-ng-c1255512367 src="assets/logo_informatica.png" alt="Logo facultad Informatica" class="logo-footer mx-2"><div _ngcontent-ng-c1255512367 class="vr"></div><img _ngcontent-ng-c1255512367 src="assets/logo_unlp.png" alt="Logo UNLP" class="logo-footer mx-2"><div _ngcontent-ng-c1255512367 class="vr"></div><img _ngcontent-ng-c1255512367 src="assets/logo_veterinaria.png" alt="Logo facultad Veterinaria" class="logo-footer mx-2"></div></footer></div></app-login><!----></app-root>
-<script src="polyfills-FEUDNLVJ.js" type="module"></script><script src="scripts-7Z5T4CMR.js" defer></script><script src="main-YAAPIBWJ.js" type="module"></script>
+<script src="polyfills-FEUDNLVJ.js" type="module"></script><script src="scripts-7Z5T4CMR.js" defer></script><script src="main-4GNIG5GO.js" type="module"></script>
 
 <script id="ng-state" type="application/json">{"__nghData__":[{},{"c":{"0":[{"i":"c1255512367","r":1}]}}]}</script></body></html>
\ No newline at end of file
diff --git a/src/main/webapp/recipes/index.html b/src/main/webapp/recipes/index.html
index dd70e8f..9520dc8 100644
--- a/src/main/webapp/recipes/index.html
+++ b/src/main/webapp/recipes/index.html
@@ -10,6 +10,6 @@
 /*# sourceMappingURL=login.component-V4GLU5XR.css.map */</style></head>
 <body><!--nghm-->
   <app-root _nghost-ng-c3984273398 ng-version="17.3.11" ngh="1" ng-server-context="ssg"><router-outlet _ngcontent-ng-c3984273398></router-outlet><app-login _nghost-ng-c1255512367 ngh="0"><div _ngcontent-ng-c1255512367 class="container-fluid vh-100 d-flex flex-column justify-content-center align-items-center login-background" style="overflow: hidden;"><div _ngcontent-ng-c1255512367 class="logo-container mb-5"><img _ngcontent-ng-c1255512367 src="assets/logo_salacomunitaria.svg" alt="Logo principal" class="img-fluid logo-principal"></div><div _ngcontent-ng-c1255512367 class="login-container col-12 col-md-8 col-lg-8 col-xl-4"><form _ngcontent-ng-c1255512367 novalidate class="login-form p-4 shadow ng-untouched ng-pristine ng-invalid"><div _ngcontent-ng-c1255512367 class="input-group mb-3"><span _ngcontent-ng-c1255512367 class="input-group-text text-white align-items-center justify-content-center"><i _ngcontent-ng-c1255512367 class="bi bi-envelope"></i></span><input _ngcontent-ng-c1255512367 type="email" id="email" formcontrolname="email" placeholder="Ingrese su email" aria-label="Email" class="form-control login-input text-white ng-untouched ng-pristine ng-invalid" value></div><div _ngcontent-ng-c1255512367 class="input-group mb-3"><span _ngcontent-ng-c1255512367 class="input-group-text text-white align-items-center justify-content-center"><i _ngcontent-ng-c1255512367 class="bi bi-lock"></i></span><input _ngcontent-ng-c1255512367 type="password" id="password" formcontrolname="password" placeholder="Ingrese su contraseña" aria-label="Contraseña" class="form-control login-input text-white ng-untouched ng-pristine ng-invalid" value></div><button _ngcontent-ng-c1255512367 type="submit" class="btn login-btn w-100 text-white"> LOGIN </button><div _ngcontent-ng-c1255512367 class="error-container"><span _ngcontent-ng-c1255512367 class="error-message"><!--ngetn--></span></div><div _ngcontent-ng-c1255512367 class="form-check"><input _ngcontent-ng-c1255512367 type="checkbox" id="rememberMe" formcontrolname="rememberMe" class="form-check-input ng-untouched ng-pristine ng-valid"><label _ngcontent-ng-c1255512367 for="rememberMe" class="form-check-label">Recordarme</label></div></form></div><footer _ngcontent-ng-c1255512367 class="footer mt-auto py-3 w-100"><div _ngcontent-ng-c1255512367 class="container d-flex justify-content-center align-items-center footer-container"><img _ngcontent-ng-c1255512367 src="assets/logo_informatica.png" alt="Logo facultad Informatica" class="logo-footer mx-2"><div _ngcontent-ng-c1255512367 class="vr"></div><img _ngcontent-ng-c1255512367 src="assets/logo_unlp.png" alt="Logo UNLP" class="logo-footer mx-2"><div _ngcontent-ng-c1255512367 class="vr"></div><img _ngcontent-ng-c1255512367 src="assets/logo_veterinaria.png" alt="Logo facultad Veterinaria" class="logo-footer mx-2"></div></footer></div></app-login><!----></app-root>
-<script src="polyfills-FEUDNLVJ.js" type="module"></script><script src="scripts-7Z5T4CMR.js" defer></script><script src="main-YAAPIBWJ.js" type="module"></script>
+<script src="polyfills-FEUDNLVJ.js" type="module"></script><script src="scripts-7Z5T4CMR.js" defer></script><script src="main-4GNIG5GO.js" type="module"></script>
 
 <script id="ng-state" type="application/json">{"__nghData__":[{},{"c":{"0":[{"i":"c1255512367","r":1}]}}]}</script></body></html>
\ No newline at end of file
diff --git a/src/main/webapp/server/chunk-H47QWUUI.mjs b/src/main/webapp/server/chunk-H47QWUUI.mjs
new file mode 100644
index 0000000..f6a4a2d
--- /dev/null
+++ b/src/main/webapp/server/chunk-H47QWUUI.mjs
@@ -0,0 +1,147 @@
+import './polyfills.server.mjs';
+import{$ as Nr,$a as Ip,A as Ar,Aa as Cp,B as Ti,Ba as jd,C as fp,D as sn,Da as wp,E as lt,F as Lo,G as hp,H as h,I as se,Ia as lc,J as gp,K as Mr,Ka as Bi,L as ic,La as sc,M as vp,Ma as Sp,N as qd,Na as Ud,O as ii,Oa as ha,P as co,Q as O,Qa as St,R as Lt,Ra as Jt,S as g,Sa as Xe,T as fa,Ta as Xa,U as Oo,Ua as el,V as Pi,Va as xp,W as c,Wa as Ze,X as s,Xa as Lr,Y as H,Ya as Ep,Z as kn,Za as Li,_ as Dn,_a as Fp,a as lp,aa as Re,ab as Ap,b as Ql,ba as ee,bb as Mp,c as sp,ca as V,cb as Np,d as cp,da as Gn,e as Xs,ea as Rn,f as Vi,fa as Ht,fb as Tp,g as ec,ga as Tr,h as nt,ha as Bd,i as dp,ia as Wn,j as up,ja as $n,jb as tl,k as pp,ka as ct,kb as Pp,l as tc,la as b,m as Zi,ma as Ut,mb as pi,n as ti,na as pt,nb as Lp,o as Xi,oa as nc,ob as Op,p as ma,pa as Vn,pb as kp,q as mi,qa as rc,qb as Dp,r as En,ra as _p,s as jt,sa as tn,t as ke,ta as Ve,u as en,ua as Pr,v as $t,va as _e,w as mp,wa as bp,x as qi,xa as oc,y as me,ya as ac,z as fe,za as yp}from"./chunk-GGVUNLYZ.mjs";import{a as Gf}from"./chunk-GATFG3FK.mjs";import{a as Hi,b as pa,c as zf,g as Hf}from"./chunk-VAPKEZCW.mjs";var Rp=(()=>{let i=class i{constructor(){this.title="SalaComunitaria"}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=ke({type:i,selectors:[["app-root"]],standalone:!0,features:[Ve],decls:1,vars:0,template:function(o,r){o&1&&H(0,"router-outlet")},dependencies:[Pp]});let t=i;return t})();var Gp=(()=>{let i=class i{constructor(e,o){this._renderer=e,this._elementRef=o,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,o){this._renderer.setProperty(this._elementRef.nativeElement,e,o)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}};i.\u0275fac=function(o){return new(o||i)(se(Mr),se(sn))},i.\u0275dir=$t({type:i});let t=i;return t})(),ol=(()=>{let i=class i extends Gp{};i.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ti(i)))(r||i)}})(),i.\u0275dir=$t({type:i,features:[ii]});let t=i;return t})(),Or=new ma(""),Wf={provide:Or,useExisting:Zi(()=>fr),multi:!0},fr=(()=>{let i=class i extends ol{writeValue(e){this.setProperty("checked",e)}};i.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ti(i)))(r||i)}})(),i.\u0275dir=$t({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(o,r){o&1&&ee("change",function(d){return r.onChange(d.target.checked)})("blur",function(){return r.onTouched()})},features:[tn([Wf]),ii]});let t=i;return t})(),$f={provide:Or,useExisting:Zi(()=>At),multi:!0};function Kf(){let t=Ud()?Ud().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var Yf=new ma(""),At=(()=>{let i=class i extends Gp{constructor(e,o,r){super(e,o),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!Kf())}writeValue(e){let o=e??"";this.setProperty("value",o)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}};i.\u0275fac=function(o){return new(o||i)(se(Mr),se(sn),se(Yf,8))},i.\u0275dir=$t({type:i,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(o,r){o&1&&ee("input",function(d){return r._handleInput(d.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(d){return r._compositionEnd(d.target.value)})},features:[tn([$f]),ii]});let t=i;return t})();function ko(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function Wp(t){return t!=null&&typeof t.length=="number"}var Ro=new ma(""),Xl=new ma(""),Qf=/^(?=.{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])?)*$/,oe=class{static min(i){return $p(i)}static max(i){return Kp(i)}static required(i){return Jf(i)}static requiredTrue(i){return Zf(i)}static email(i){return Xf(i)}static minLength(i){return eh(i)}static maxLength(i){return Yp(i)}static pattern(i){return th(i)}static nullValidator(i){return dc(i)}static compose(i){return tm(i)}static composeAsync(i){return nm(i)}};function $p(t){return i=>{if(ko(i.value)||ko(t))return null;let n=parseFloat(i.value);return!isNaN(n)&&n<t?{min:{min:t,actual:i.value}}:null}}function Kp(t){return i=>{if(ko(i.value)||ko(t))return null;let n=parseFloat(i.value);return!isNaN(n)&&n>t?{max:{max:t,actual:i.value}}:null}}function Jf(t){return ko(t.value)?{required:!0}:null}function Zf(t){return t.value===!0?null:{required:!0}}function Xf(t){return ko(t.value)||Qf.test(t.value)?null:{email:!0}}function eh(t){return i=>ko(i.value)||!Wp(i.value)?null:i.value.length<t?{minlength:{requiredLength:t,actualLength:i.value.length}}:null}function Yp(t){return i=>Wp(i.value)&&i.value.length>t?{maxlength:{requiredLength:t,actualLength:i.value.length}}:null}function th(t){if(!t)return dc;let i,n;return typeof t=="string"?(n="",t.charAt(0)!=="^"&&(n+="^"),n+=t,t.charAt(t.length-1)!=="$"&&(n+="$"),i=new RegExp(n)):(n=t.toString(),i=t),e=>{if(ko(e.value))return null;let o=e.value;return i.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}function dc(t){return null}function Qp(t){return t!=null}function Jp(t){return wp(t)?sp(t):t}function Zp(t){let i={};return t.forEach(n=>{i=n!=null?Hi(Hi({},i),n):i}),Object.keys(i).length===0?null:i}function Xp(t,i){return i.map(n=>n(t))}function ih(t){return!t.validate}function em(t){return t.map(i=>ih(i)?i:n=>i.validate(n))}function tm(t){if(!t)return null;let i=t.filter(Qp);return i.length==0?null:function(n){return Zp(Xp(n,i))}}function im(t){return t!=null?tm(em(t)):null}function nm(t){if(!t)return null;let i=t.filter(Qp);return i.length==0?null:function(n){let e=Xp(n,i).map(Jp);return ec(e).pipe(Vi(Zp))}}function rm(t){return t!=null?nm(em(t)):null}function Vp(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function om(t){return t._rawValidators}function am(t){return t._rawAsyncValidators}function zd(t){return t?Array.isArray(t)?t:[t]:[]}function uc(t,i){return Array.isArray(t)?t.includes(i):t===i}function qp(t,i){let n=zd(i);return zd(t).forEach(o=>{uc(n,o)||n.push(o)}),n}function Bp(t,i){return zd(i).filter(n=>!uc(t,n))}var pc=class{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(i){this._rawValidators=i||[],this._composedValidatorFn=im(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=rm(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control&&this.control.reset(i)}hasError(i,n){return this.control?this.control.hasError(i,n):!1}getError(i,n){return this.control?this.control.getError(i,n):null}},Kn=class extends pc{get formDirective(){return null}get path(){return null}},Do=class extends pc{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},mc=class{constructor(i){this._cd=i}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}},nh={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},tC=pa(Hi({},nh),{"[class.ng-submitted]":"isSubmitted"}),Tt=(()=>{let i=class i extends mc{constructor(e){super(e)}};i.\u0275fac=function(o){return new(o||i)(se(Do,2))},i.\u0275dir=$t({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(o,r){o&2&&fa("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[ii]});let t=i;return t})(),Dt=(()=>{let i=class i extends mc{constructor(e){super(e)}};i.\u0275fac=function(o){return new(o||i)(se(Kn,10))},i.\u0275dir=$t({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(o,r){o&2&&fa("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[ii]});let t=i;return t})();var Jl="VALID",cc="INVALID",il="PENDING",Zl="DISABLED";function $d(t){return(_c(t)?t.validators:t)||null}function rh(t){return Array.isArray(t)?im(t):t||null}function Kd(t,i){return(_c(i)?i.asyncValidators:t)||null}function oh(t){return Array.isArray(t)?rm(t):t||null}function _c(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function lm(t,i,n){let e=t.controls;if(!(i?Object.keys(e):e).length)throw new tc(1e3,"");if(!e[n])throw new tc(1001,"")}function sm(t,i,n){t._forEachChild((e,o)=>{if(n[o]===void 0)throw new tc(1002,"")})}var rl=class{constructor(i,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(i),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get valid(){return this.status===Jl}get invalid(){return this.status===cc}get pending(){return this.status==il}get disabled(){return this.status===Zl}get enabled(){return this.status!==Zl}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(qp(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(qp(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(Bp(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(Bp(i,this._rawAsyncValidators))}hasValidator(i){return uc(this._rawValidators,i)}hasAsyncValidator(i){return uc(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){this.touched=!0,this._parent&&!i.onlySelf&&this._parent.markAsTouched(i)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(i=>i.markAllAsTouched())}markAsUntouched(i={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}markAsDirty(i={}){this.pristine=!1,this._parent&&!i.onlySelf&&this._parent.markAsDirty(i)}markAsPristine(i={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}markAsPending(i={}){this.status=il,i.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!i.onlySelf&&this._parent.markAsPending(i)}disable(i={}){let n=this._parentMarkedDirty(i.onlySelf);this.status=Zl,this.errors=null,this._forEachChild(e=>{e.disable(pa(Hi({},i),{onlySelf:!0}))}),this._updateValue(),i.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(pa(Hi({},i),{skipPristineCheck:n})),this._onDisabledChange.forEach(e=>e(!0))}enable(i={}){let n=this._parentMarkedDirty(i.onlySelf);this.status=Jl,this._forEachChild(e=>{e.enable(pa(Hi({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(pa(Hi({},i),{skipPristineCheck:n})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(i){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Jl||this.status===il)&&this._runAsyncValidator(i.emitEvent)),i.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(i)}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Zl:Jl}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=il,this._hasOwnPendingAsyncValidator=!0;let n=Jp(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:i})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(i,n={}){this.errors=i,this._updateControlsErrors(n.emitEvent!==!1)}get(i){let n=i;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((e,o)=>e&&e._find(o),this)}getError(i,n){let e=n?this.get(n):this;return e&&e.errors?e.errors[i]:null}hasError(i,n){return!!this.getError(i,n)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(i)}_initObservables(){this.valueChanges=new lt,this.statusChanges=new lt}_calculateStatus(){return this._allControlsDisabled()?Zl:this.errors?cc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(il)?il:this._anyControlsHaveStatus(cc)?cc:Jl}_anyControlsHaveStatus(i){return this._anyControls(n=>n.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i={}){this.pristine=!this._anyControlsDirty(),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}_updateTouched(i={}){this.touched=this._anyControlsTouched(),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){_c(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){let n=this._parent&&this._parent.dirty;return!i&&!!n&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=rh(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=oh(this._rawAsyncValidators)}},fc=class extends rl{constructor(i,n,e){super($d(n),Kd(e,n)),this.controls=i,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(i,n){return this.controls[i]?this.controls[i]:(this.controls[i]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(i,n,e={}){this.registerControl(i,n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}removeControl(i,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(i,n,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],n&&this.registerControl(i,n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,n={}){sm(this,!0,i),Object.keys(i).forEach(e=>{lm(this,!0,e),this.controls[e].setValue(i[e],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(i,n={}){i!=null&&(Object.keys(i).forEach(e=>{let o=this.controls[e];o&&o.patchValue(i[e],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(i={},n={}){this._forEachChild((e,o)=>{e.reset(i?i[o]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(i,n,e)=>(i[e]=n.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(n,e)=>e._syncPendingControls()?!0:n);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(n=>{let e=this.controls[n];e&&i(e,n)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[n,e]of Object.entries(this.controls))if(this.contains(n)&&i(e))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(n,e,o)=>((e.enabled||this.disabled)&&(n[o]=e.value),n))}_reduceChildren(i,n){let e=i;return this._forEachChild((o,r)=>{e=n(e,o,r)}),e}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}};var Hd=class extends fc{};var es=new ma("CallSetDisabledState",{providedIn:"root",factory:()=>ts}),ts="always";function Yd(t,i){return[...i.path,t]}function Gd(t,i,n=ts){Qd(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||n==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),lh(t,i),ch(t,i),sh(t,i),ah(t,i)}function hc(t,i,n=!0){let e=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(e),i.valueAccessor.registerOnTouched(e)),vc(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function gc(t,i){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(i)})}function ah(t,i){if(i.valueAccessor.setDisabledState){let n=e=>{i.valueAccessor.setDisabledState(e)};t.registerOnDisabledChange(n),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}function Qd(t,i){let n=om(t);i.validator!==null?t.setValidators(Vp(n,i.validator)):typeof n=="function"&&t.setValidators([n]);let e=am(t);i.asyncValidator!==null?t.setAsyncValidators(Vp(e,i.asyncValidator)):typeof e=="function"&&t.setAsyncValidators([e]);let o=()=>t.updateValueAndValidity();gc(i._rawValidators,o),gc(i._rawAsyncValidators,o)}function vc(t,i){let n=!1;if(t!==null){if(i.validator!==null){let o=om(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.validator);r.length!==o.length&&(n=!0,t.setValidators(r))}}if(i.asyncValidator!==null){let o=am(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.asyncValidator);r.length!==o.length&&(n=!0,t.setAsyncValidators(r))}}}let e=()=>{};return gc(i._rawValidators,e),gc(i._rawAsyncValidators,e),n}function lh(t,i){i.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&cm(t,i)})}function sh(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&cm(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function cm(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function ch(t,i){let n=(e,o)=>{i.valueAccessor.writeValue(e),o&&i.viewToModelUpdate(e)};t.registerOnChange(n),i._registerOnDestroy(()=>{t._unregisterOnChange(n)})}function dh(t,i){t==null,Qd(t,i)}function uh(t,i){return vc(t,i)}function dm(t,i){if(!t.hasOwnProperty("model"))return!1;let n=t.model;return n.isFirstChange()?!0:!Object.is(i,n.currentValue)}function ph(t){return Object.getPrototypeOf(t.constructor)===ol}function mh(t,i){t._syncPendingControls(),i.forEach(n=>{let e=n.control;e.updateOn==="submit"&&e._pendingChange&&(n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function um(t,i){if(!i)return null;Array.isArray(i);let n,e,o;return i.forEach(r=>{r.constructor===At?n=r:ph(r)?e=r:o=r}),o||e||n||null}function fh(t,i){let n=t.indexOf(i);n>-1&&t.splice(n,1)}function jp(t,i){let n=t.indexOf(i);n>-1&&t.splice(n,1)}function Up(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var nl=class extends rl{constructor(i=null,n,e){super($d(n),Kd(e,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),_c(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Up(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,n={}){this.value=this._pendingValue=i,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(e=>e(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(i,n={}){this.setValue(i,n)}reset(i=this.defaultValue,n={}){this._applyFormState(i),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){jp(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){jp(this._onDisabledChange,i)}_forEachChild(i){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(i){Up(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}};var hh=t=>t instanceof nl,gh=(()=>{let i=class i extends Kn{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Yd(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};i.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ti(i)))(r||i)}})(),i.\u0275dir=$t({type:i,features:[ii]});let t=i;return t})();var Rt=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275dir=$t({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=i;return t})(),vh={provide:Or,useExisting:Zi(()=>fi),multi:!0},fi=(()=>{let i=class i extends ol{writeValue(e){let o=e??"";this.setProperty("value",o)}registerOnChange(e){this.onChange=o=>{e(o==""?null:parseFloat(o))}}};i.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ti(i)))(r||i)}})(),i.\u0275dir=$t({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(o,r){o&1&&ee("input",function(d){return r.onChange(d.target.value)})("blur",function(){return r.onTouched()})},features:[tn([vh]),ii]});let t=i;return t})(),_h={provide:Or,useExisting:Zi(()=>ga),multi:!0};var bh=(()=>{let i=class i{constructor(){this._accessors=[]}add(e,o){this._accessors.push([e,o])}remove(e){for(let o=this._accessors.length-1;o>=0;--o)if(this._accessors[o][1]===e){this._accessors.splice(o,1);return}}select(e){this._accessors.forEach(o=>{this._isSameGroup(o,e)&&o[1]!==e&&o[1].fireUncheck(e.value)})}_isSameGroup(e,o){return e[0].control?e[0]._parent===o._control._parent&&e[1].name===o.name:!1}};i.\u0275fac=function(o){return new(o||i)},i.\u0275prov=ti({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})(),ga=(()=>{let i=class i extends ol{constructor(e,o,r,a){super(e,o),this._registry=r,this._injector=a,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=En(es,{optional:!0})??ts}ngOnInit(){this._control=this._injector.get(Do),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}};i.\u0275fac=function(o){return new(o||i)(se(Mr),se(sn),se(bh),se(fp))},i.\u0275dir=$t({type:i,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(o,r){o&1&&ee("change",function(){return r.onChange()})("blur",function(){return r.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[tn([_h]),ii]});let t=i;return t})();var Jd=new ma(""),yh={provide:Do,useExisting:Zi(()=>is)},is=(()=>{let i=class i extends Do{set isDisabled(e){}constructor(e,o,r,a,d){super(),this._ngModelWarningConfig=a,this.callSetDisabledState=d,this.update=new lt,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(o),this.valueAccessor=um(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let o=e.form.previousValue;o&&hc(o,this,!1),Gd(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}dm(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&hc(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}};i._ngModelWarningSentOnce=!1,i.\u0275fac=function(o){return new(o||i)(se(Ro,10),se(Xl,10),se(Or,10),se(Jd,8),se(es,8))},i.\u0275dir=$t({type:i,selectors:[["","formControl",""]],inputs:{form:[jt.None,"formControl","form"],isDisabled:[jt.None,"disabled","isDisabled"],model:[jt.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[tn([yh]),ii,qi]});let t=i;return t})(),Ch={provide:Kn,useExisting:Zi(()=>Pt)},Pt=(()=>{let i=class i extends Kn{constructor(e,o,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new lt,this._setValidators(e),this._setAsyncValidators(o)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(vc(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let o=this.form.get(e.path);return Gd(o,e,this.callSetDisabledState),o.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),o}getControl(e){return this.form.get(e.path)}removeControl(e){hc(e.control||null,e,!1),fh(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,o){this.form.get(e.path).setValue(o)}onSubmit(e){return this.submitted=!0,mh(this.form,this.directives),this.ngSubmit.emit(e),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{let o=e.control,r=this.form.get(e.path);o!==r&&(hc(o||null,e),hh(r)&&(Gd(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let o=this.form.get(e.path);dh(o,e),o.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let o=this.form.get(e.path);o&&uh(o,e)&&o.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Qd(this.form,this),this._oldForm&&vc(this._oldForm,this)}_checkFormPresent(){this.form}};i.\u0275fac=function(o){return new(o||i)(se(Ro,10),se(Xl,10),se(es,8))},i.\u0275dir=$t({type:i,selectors:[["","formGroup",""]],hostBindings:function(o,r){o&1&&ee("submit",function(d){return r.onSubmit(d)})("reset",function(){return r.onReset()})},inputs:{form:[jt.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[tn([Ch]),ii,qi]});let t=i;return t})(),wh={provide:Kn,useExisting:Zi(()=>kr)},kr=(()=>{let i=class i extends gh{constructor(e,o,r){super(),this.name=null,this._parent=e,this._setValidators(o),this._setAsyncValidators(r)}_checkParentType(){pm(this._parent)}};i.\u0275fac=function(o){return new(o||i)(se(Kn,13),se(Ro,10),se(Xl,10))},i.\u0275dir=$t({type:i,selectors:[["","formGroupName",""]],inputs:{name:[jt.None,"formGroupName","name"]},features:[tn([wh]),ii]});let t=i;return t})(),Sh={provide:Kn,useExisting:Zi(()=>Dr)},Dr=(()=>{let i=class i extends Kn{constructor(e,o,r){super(),this.name=null,this._parent=e,this._setValidators(o),this._setAsyncValidators(r)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Yd(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){pm(this._parent)}};i.\u0275fac=function(o){return new(o||i)(se(Kn,13),se(Ro,10),se(Xl,10))},i.\u0275dir=$t({type:i,selectors:[["","formArrayName",""]],inputs:{name:[jt.None,"formArrayName","name"]},features:[tn([Sh]),ii]});let t=i;return t})();function pm(t){return!(t instanceof kr)&&!(t instanceof Pt)&&!(t instanceof Dr)}var xh={provide:Do,useExisting:Zi(()=>Ot)},Ot=(()=>{let i=class i extends Do{set isDisabled(e){}constructor(e,o,r,a,d){super(),this._ngModelWarningConfig=d,this._added=!1,this.name=null,this.update=new lt,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(o),this._setAsyncValidators(r),this.valueAccessor=um(this,a)}ngOnChanges(e){this._added||this._setUpControl(),dm(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Yd(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};i._ngModelWarningSentOnce=!1,i.\u0275fac=function(o){return new(o||i)(se(Kn,13),se(Ro,10),se(Xl,10),se(Or,10),se(Jd,8))},i.\u0275dir=$t({type:i,selectors:[["","formControlName",""]],inputs:{name:[jt.None,"formControlName","name"],isDisabled:[jt.None,"disabled","isDisabled"],model:[jt.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[tn([xh]),ii,qi]});let t=i;return t})(),Eh={provide:Or,useExisting:Zi(()=>Oi),multi:!0};function mm(t,i){return t==null?`${i}`:(i&&typeof i=="object"&&(i="Object"),`${t}: ${i}`.slice(0,50))}function Fh(t){return t.split(":")[0]}var Oi=(()=>{let i=class i extends ol{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;let o=this._getOptionId(e),r=mm(o,e);this.setProperty("value",r)}registerOnChange(e){this.onChange=o=>{this.value=this._getOptionValue(o),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(let o of this._optionMap.keys())if(this._compareWith(this._optionMap.get(o),e))return o;return null}_getOptionValue(e){let o=Fh(e);return this._optionMap.has(o)?this._optionMap.get(o):e}};i.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ti(i)))(r||i)}})(),i.\u0275dir=$t({type:i,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(o,r){o&1&&ee("change",function(d){return r.onChange(d.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[tn([Eh]),ii]});let t=i;return t})(),Gi=(()=>{let i=class i{constructor(e,o,r){this._element=e,this._renderer=o,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){this._select!=null&&(this._select._optionMap.set(this.id,e),this._setElementValue(mm(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};i.\u0275fac=function(o){return new(o||i)(se(sn),se(Mr),se(Oi,9))},i.\u0275dir=$t({type:i,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=i;return t})(),Ih={provide:Or,useExisting:Zi(()=>fm),multi:!0};function zp(t,i){return t==null?`${i}`:(typeof i=="string"&&(i=`'${i}'`),i&&typeof i=="object"&&(i="Object"),`${t}: ${i}`.slice(0,50))}function Ah(t){return t.split(":")[0]}var fm=(()=>{let i=class i extends ol{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;let o;if(Array.isArray(e)){let r=e.map(a=>this._getOptionId(a));o=(a,d)=>{a._setSelected(r.indexOf(d.toString())>-1)}}else o=(r,a)=>{r._setSelected(!1)};this._optionMap.forEach(o)}registerOnChange(e){this.onChange=o=>{let r=[],a=o.selectedOptions;if(a!==void 0){let d=a;for(let p=0;p<d.length;p++){let _=d[p],y=this._getOptionValue(_.value);r.push(y)}}else{let d=o.options;for(let p=0;p<d.length;p++){let _=d[p];if(_.selected){let y=this._getOptionValue(_.value);r.push(y)}}}this.value=r,e(r)}}_registerOption(e){let o=(this._idCounter++).toString();return this._optionMap.set(o,e),o}_getOptionId(e){for(let o of this._optionMap.keys())if(this._compareWith(this._optionMap.get(o)._value,e))return o;return null}_getOptionValue(e){let o=Ah(e);return this._optionMap.has(o)?this._optionMap.get(o)._value:e}};i.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ti(i)))(r||i)}})(),i.\u0275dir=$t({type:i,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(o,r){o&1&&ee("change",function(d){return r.onChange(d.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[tn([Ih]),ii]});let t=i;return t})(),Wi=(()=>{let i=class i{constructor(e,o,r){this._element=e,this._renderer=o,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){this._select!=null&&(this._value=e,this._setElementValue(zp(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(zp(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};i.\u0275fac=function(o){return new(o||i)(se(sn),se(Mr),se(fm,9))},i.\u0275dir=$t({type:i,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=i;return t})();function Mh(t){return typeof t=="number"?t:parseInt(t,10)}function hm(t){return typeof t=="number"?t:parseFloat(t)}var Zd=(()=>{let i=class i{constructor(){this._validator=dc}ngOnChanges(e){if(this.inputName in e){let o=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(o),this._validator=this._enabled?this.createValidator(o):dc,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}};i.\u0275fac=function(o){return new(o||i)},i.\u0275dir=$t({type:i,features:[qi]});let t=i;return t})(),Nh={provide:Ro,useExisting:Zi(()=>Xd),multi:!0},Xd=(()=>{let i=class i extends Zd{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>hm(e),this.createValidator=e=>Kp(e)}};i.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ti(i)))(r||i)}})(),i.\u0275dir=$t({type:i,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(o,r){o&2&&Lt("max",r._enabled?r.max:null)},inputs:{max:"max"},features:[tn([Nh]),ii]});let t=i;return t})(),Th={provide:Ro,useExisting:Zi(()=>eu),multi:!0},eu=(()=>{let i=class i extends Zd{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>hm(e),this.createValidator=e=>$p(e)}};i.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ti(i)))(r||i)}})(),i.\u0275dir=$t({type:i,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(o,r){o&2&&Lt("min",r._enabled?r.min:null)},inputs:{min:"min"},features:[tn([Th]),ii]});let t=i;return t})();var Ph={provide:Ro,useExisting:Zi(()=>ns),multi:!0},ns=(()=>{let i=class i extends Zd{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>Mh(e),this.createValidator=e=>Yp(e)}};i.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ti(i)))(r||i)}})(),i.\u0275dir=$t({type:i,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(o,r){o&2&&Lt("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},features:[tn([Ph]),ii]});let t=i;return t})();var gm=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=en({type:i}),i.\u0275inj=Xi({});let t=i;return t})(),Wd=class extends rl{constructor(i,n,e){super($d(n),Kd(e,n)),this.controls=i,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(i){return this.controls[this._adjustIndex(i)]}push(i,n={}){this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(i,n,e={}){this.controls.splice(i,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent})}removeAt(i,n={}){let e=this._adjustIndex(i);e<0&&(e=0),this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(i,n,e={}){let o=this._adjustIndex(i);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),n&&(this.controls.splice(o,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(i,n={}){sm(this,!1,i),i.forEach((e,o)=>{lm(this,!1,o),this.at(o).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(i,n={}){i!=null&&(i.forEach((e,o)=>{this.at(o)&&this.at(o).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(i=[],n={}){this._forEachChild((e,o)=>{e.reset(i[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(i=>i.getRawValue())}clear(i={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_adjustIndex(i){return i<0?i+this.length:i}_syncPendingControls(){let i=this.controls.reduce((n,e)=>e._syncPendingControls()?!0:n,!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((n,e)=>{i(n,e)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return this.controls.some(n=>n.enabled&&i(n))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(let i of this.controls)if(i.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}_find(i){return this.at(i)??null}};function Hp(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var Vt=(()=>{let i=class i{constructor(){this.useNonNullable=!1}get nonNullable(){let e=new i;return e.useNonNullable=!0,e}group(e,o=null){let r=this._reduceControls(e),a={};return Hp(o)?a=o:o!==null&&(a.validators=o.validator,a.asyncValidators=o.asyncValidator),new fc(r,a)}record(e,o=null){let r=this._reduceControls(e);return new Hd(r,o)}control(e,o,r){let a={};return this.useNonNullable?(Hp(o)?a=o:(a.validators=o,a.asyncValidators=r),new nl(e,pa(Hi({},a),{nonNullable:!0}))):new nl(e,o,r)}array(e,o,r){let a=e.map(d=>this._createControl(d));return new Wd(a,o,r)}_reduceControls(e){let o={};return Object.keys(e).forEach(r=>{o[r]=this._createControl(e[r])}),o}_createControl(e){if(e instanceof nl)return e;if(e instanceof rl)return e;if(Array.isArray(e)){let o=e[0],r=e.length>1?e[1]:null,a=e.length>2?e[2]:null;return this.control(o,r,a)}else return this.control(e)}};i.\u0275fac=function(o){return new(o||i)},i.\u0275prov=ti({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var al=(()=>{let i=class i{static withConfig(e){return{ngModule:i,providers:[{provide:es,useValue:e.callSetDisabledState??ts}]}}};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=en({type:i}),i.\u0275inj=Xi({imports:[gm]});let t=i;return t})(),Ft=(()=>{let i=class i{static withConfig(e){return{ngModule:i,providers:[{provide:Jd,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:es,useValue:e.callSetDisabledState??ts}]}}};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=en({type:i}),i.\u0275inj=Xi({imports:[gm]});let t=i;return t})();var ki={production:!1,apiUrl:"https://grupo2.java2024.linti.unlp.edu.ar",globalVar:"valorGlobal"};var Ki=(()=>{let i=class i{constructor(e){this.http=e,this.apiUrl=ki.apiUrl+"/api/login"}logIn(e,o,r){return this.http.post(`${this.apiUrl}`,{email:e,password:o}).pipe(Vi(a=>{let d=a.JWT.string,p=this.decodeToken(d),_=p.role,y=p.id;return console.log("role, userId",_,y),r?(this.clearStorageItems(),this.setStorageItems(d,_,y)):(this.clearSessionItems(),this.setSessionItems(d,_,y)),{success:!0}}),nt(a=>{let d="Login failed";return a.status===401?d="Invalid email or password":a.status===404&&(d="Email not found"),cp({success:!1,message:d})}))}logOut(){this.clearStorageItems(),this.clearSessionItems()}isLoggedIn(){return!!this.getStorageItem("authToken")||!!this.getSessionItem("authToken")}getUserRole(){return this.getStorageItem("role")||this.getSessionItem("role")||null}getUserId(){return this.getStorageItem("userId")||this.getSessionItem("userId")||null}getToken(){return this.getStorageItem("authToken")||this.getSessionItem("authToken")||null}setStorageItems(e,o,r){try{localStorage.setItem("authToken",e),localStorage.setItem("role",o),localStorage.setItem("userId",r)}catch(a){console.error("Error setting items in localStorage:",a)}}setSessionItems(e,o,r){try{sessionStorage.setItem("authToken",e),sessionStorage.setItem("role",o),sessionStorage.setItem("userId",r)}catch(a){console.error("Error setting items in sessionStorage:",a)}}clearStorageItems(){try{localStorage.removeItem("authToken"),localStorage.removeItem("role"),localStorage.removeItem("userId")}catch(e){console.error("Error clearing items from localStorage:",e)}}clearSessionItems(){try{sessionStorage.removeItem("authToken"),sessionStorage.removeItem("role"),sessionStorage.removeItem("userId")}catch(e){console.error("Error clearing items from sessionStorage:",e)}}getStorageItem(e){try{return localStorage.getItem(e)}catch{return null}}getSessionItem(e){try{return sessionStorage.getItem(e)}catch{return null}}decodeToken(e){return JSON.parse(atob(e.split(".")[1]))}};i.\u0275fac=function(o){return new(o||i)(mi(Li))},i.\u0275prov=ti({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var bc=t=>({"is-invalid":t}),vm=(()=>{let i=class i{constructor(e,o,r){this.authService=e,this.router=o,this.formBuilder=r,this.error="",this.loginForm=this.formBuilder.group({email:["",[oe.required,oe.email]],password:["",oe.required],rememberMe:[!1]})}onLogin(){if(this.loginForm.valid){let{email:e,password:o,rememberMe:r}=this.loginForm.value;this.authService.logIn(e,o,r).subscribe(a=>{a.success?this.router.navigate(["/home"]):this.error=a.message||"Error de inicio de sesi\xF3n"})}else this.error="Email y Contrase\xF1a invalidos"}};i.\u0275fac=function(o){return new(o||i)(se(Ki),se(pi),se(Vt))},i.\u0275cmp=ke({type:i,selectors:[["app-login"]],standalone:!0,features:[Ve],decls:30,vars:14,consts:[["aux","ngForm"],[1,"container-fluid","vh-100","d-flex","flex-column","justify-content-center","align-items-center","login-background",2,"overflow","hidden"],[1,"logo-container","mb-5"],["src","assets/logo_salacomunitaria.svg","alt","Logo principal",1,"img-fluid","logo-principal"],[1,"login-container","col-12","col-md-8","col-lg-8","col-xl-4"],[1,"login-form","p-4","shadow",3,"ngSubmit","formGroup"],[1,"input-group","mb-3"],[1,"input-group-text","text-white","align-items-center","justify-content-center",3,"ngClass"],[1,"bi","bi-envelope"],["type","email","id","email","formControlName","email","placeholder","Ingrese su email","aria-label","Email",1,"form-control","login-input","text-white",3,"ngClass"],[1,"bi","bi-lock"],["type","password","id","password","formControlName","password","placeholder","Ingrese su contrase\xF1a","aria-label","Contrase\xF1a",1,"form-control","login-input","text-white",3,"ngClass"],["type","submit",1,"btn","login-btn","w-100","text-white"],[1,"error-container"],[1,"error-message"],[1,"form-check"],["type","checkbox","id","rememberMe","formControlName","rememberMe",1,"form-check-input"],["for","rememberMe",1,"form-check-label"],[1,"footer","mt-auto","py-3","w-100"],[1,"container","d-flex","justify-content-center","align-items-center","footer-container"],["src","assets/logo_informatica.png","alt","Logo facultad Informatica",1,"logo-footer","mx-2"],[1,"vr"],["src","assets/logo_unlp.png","alt","Logo UNLP",1,"logo-footer","mx-2"],["src","assets/logo_veterinaria.png","alt","Logo facultad Veterinaria",1,"logo-footer","mx-2"]],template:function(o,r){if(o&1){let a=Re();c(0,"div",1)(1,"div",2),H(2,"img",3),s(),c(3,"div",4)(4,"form",5,0),ee("ngSubmit",function(){return me(a),fe(r.onLogin())}),c(6,"div",6)(7,"span",7),H(8,"i",8),s(),H(9,"input",9),s(),c(10,"div",6)(11,"span",7),H(12,"i",10),s(),H(13,"input",11),s(),c(14,"button",12),b(15," LOGIN "),s(),c(16,"div",13)(17,"span",14),b(18),s()(),c(19,"div",15),H(20,"input",16),c(21,"label",17),b(22,"Recordarme"),s()()()(),c(23,"footer",18)(24,"div",19),H(25,"img",20)(26,"div",21)(27,"img",22)(28,"div",21)(29,"img",23),s()()()}if(o&2){let a,d,p,_,y=ct(5);h(4),g("formGroup",r.loginForm),h(3),g("ngClass",_e(6,bc,(((a=r.loginForm.get("email"))==null?null:a.dirty)||((a=r.loginForm.get("email"))==null?null:a.touched)||y.submitted)&&((a=r.loginForm.get("email"))==null?null:a.invalid))),h(2),g("ngClass",_e(8,bc,(((d=r.loginForm.get("email"))==null?null:d.dirty)||((d=r.loginForm.get("email"))==null?null:d.touched)||y.submitted)&&((d=r.loginForm.get("email"))==null?null:d.invalid))),h(2),g("ngClass",_e(10,bc,(((p=r.loginForm.get("password"))==null?null:p.dirty)||((p=r.loginForm.get("password"))==null?null:p.touched)||y.submitted)&&((p=r.loginForm.get("password"))==null?null:p.invalid))),h(2),g("ngClass",_e(12,bc,(((_=r.loginForm.get("password"))==null?null:_.dirty)||((_=r.loginForm.get("password"))==null?null:_.touched)||y.submitted)&&((_=r.loginForm.get("password"))==null?null:_.invalid))),h(5),Ut(r.error)}},dependencies:[Ft,Rt,At,fr,Tt,Dt,Pt,Ot,Ze,St],styles:[`@charset "UTF-8";[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/login.svg);background-size:cover;background-position:center;background-repeat:no-repeat}html[_ngcontent-%COMP%]{font-family:Roboto!important;font-size:24pt!important;font-weight:200!important;font-stretch:condensed!important}.login-background[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100vh;padding:15px;position:relative}.logo-container[_ngcontent-%COMP%]{padding-top:5vh;text-align:center;width:30%}.logo-principal[_ngcontent-%COMP%]{max-width:45%;height:auto}.login-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;z-index:1;align-items:center;justify-items:center}.login-form[_ngcontent-%COMP%]{padding:2rem;box-shadow:0 6px 8px #0000001a;width:auto}.input-group[_ngcontent-%COMP%]{width:23.6682291667vw;height:75px!important;border:1px solid black}.input-group-text[_ngcontent-%COMP%]{background-color:#1b5e20;border-radius:0;border:1px solid transparent;width:75px;font-size:2rem}.login-input[_ngcontent-%COMP%]{background-color:#88ca5e;border-radius:0;border:1px solid transparent}.login-btn[_ngcontent-%COMP%]{background-color:#1b5e20;border-radius:0;height:75px;border:1px solid black}.footer[_ngcontent-%COMP%]{padding-top:5vh!important;padding-bottom:.5vh!important}.footer-container[_ngcontent-%COMP%]{padding-top:5vh;max-width:45%;max-height:20%}.logo-footer[_ngcontent-%COMP%]{width:30%;height:100px;object-fit:contain}.vr[_ngcontent-%COMP%]{border-left:1px solid black}.form-check[_ngcontent-%COMP%]{padding-top:1rem}.form-check-input[type=checkbox][_ngcontent-%COMP%]{border-radius:0%;border:1px solid black;background-color:#88ca5e}.form-check-input[type=checkbox][_ngcontent-%COMP%]:checked{background-color:#1b5e20}.error-container[_ngcontent-%COMP%]{padding-top:.4rem;height:1.8rem}.error-message[_ngcontent-%COMP%]{color:red;font-size:1.2rem;margin-top:2%}.form-control.is-invalid[_ngcontent-%COMP%], .input-group-text.is-invalid[_ngcontent-%COMP%]{border-color:red;box-shadow:0 0 0 .2rem #ff000040}.input-group-text.is-invalid[_ngcontent-%COMP%]{background-color:red}.form-control.is-valid[_ngcontent-%COMP%], .input-group-text.is-valid[_ngcontent-%COMP%]{border-color:#28a745}.input-group-text.is-valid[_ngcontent-%COMP%]{background-color:#28a745}@media screen and (max-width: 1280px){.login-btn[_ngcontent-%COMP%], .input-group[_ngcontent-%COMP%], .input-group-text[_ngcontent-%COMP%]{height:45px!important}}
+/*# sourceMappingURL=login.component-V4GLU5XR.css.map */`]});let t=i;return t})();function Lh(t,i){t&1&&(c(0,"div",7)(1,"a",24),b(2,"USUARIOS"),s()())}var oi=(()=>{let i=class i{constructor(e,o){this.authService=e,this.router=o,this.isAdmin=!1}ngOnInit(){this.isAdmin=this.authService.getUserRole()==="Admin"}logout(){this.authService.logOut(),this.router.navigate(["/"])}};i.\u0275fac=function(o){return new(o||i)(se(Ki),se(pi))},i.\u0275cmp=ke({type:i,selectors:[["app-navbar"]],standalone:!0,features:[Ve],decls:40,vars:1,consts:[[1,"navbar","navbar-container"],[1,"container-fluid","text-center"],[1,"row","tex-white"],[1,"col","col-md-3","col-lg","col-xl-2"],["routerLink","/home",1,"hidden-link"],[1,"col","d-flex"],[1,"row"],[1,"col","justify-content-center"],["routerLink","/inventory","routerLinkActive","active-link",1,"nav-link"],["routerLink","/production","routerLinkActive","active-link",1,"nav-link"],["routerLink","/recipes","routerLinkActive","active-link",1,"nav-link"],[1,"col","d-flex","col-lg-1"],[1,"col","d-flex","justify-content-end"],["routerLink","/history","routerLinkActive","active-link",1,"nav-link"],["class","col justify-content-center",4,"ngIf"],[1,"col","justify-content-end"],[1,"dropdown"],["type","button","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","btn-light"],[1,"bi","bi-list"],[1,"dropdown-menu","dropdown-menu-end","custom-dropdown-menu"],["routerLink","/providers","type","button",1,"dropdown-item"],["routerLink","/clients","type","button",1,"dropdown-item"],["routerLink","/profile","type","button",1,"dropdown-item"],["type","button",1,"dropdown-item",3,"click"],["routerLink","/users","routerLinkActive","active-link",1,"nav-link"]],template:function(o,r){o&1&&(c(0,"nav",0)(1,"div",1)(2,"div",2)(3,"div",3),H(4,"a",4),s(),c(5,"div",5)(6,"div",6)(7,"div",7)(8,"a",8),b(9,"INVENTARIO"),s()(),c(10,"div",7)(11,"a",9),b(12,"PRODUCCION"),s()(),c(13,"div",7)(14,"a",10),b(15,"RECETAS"),s()()()(),H(16,"div",11),c(17,"div",12)(18,"div",6)(19,"div",7)(20,"a",13),b(21,"HISTORIAL"),s()(),O(22,Lh,3,0,"div",14),c(23,"div",15)(24,"div",16)(25,"button",17),H(26,"i",18),s(),c(27,"ul",19)(28,"li")(29,"button",20),b(30,"| PROVEEDORES"),s()(),c(31,"li")(32,"button",21),b(33,"| CLIENTES"),s()(),c(34,"li")(35,"button",22),b(36,"| MI PERFIL"),s()(),c(37,"li")(38,"button",23),ee("click",function(){return r.logout()}),b(39,"| CERRAR SESI\xD3N"),s()()()()()()()()()()),o&2&&(h(22),g("ngIf",r.isAdmin))},dependencies:[Ze,Xe,Dp,Lp,Op],styles:[`@charset "UTF-8";[_nghost-%COMP%]{display:block;width:100%;height:100px;background-image:url(/assets/views/navbar.svg);background-size:cover;background-position:left;background-repeat:no-repeat}.btn[_ngcontent-%COMP%]{font-size:1.7rem!important}.nav-link[_ngcontent-%COMP%]{font-family:LEMONMILK Light,sans-serif;font-size:1.5rem;color:#fff}.container-fluid[_ngcontent-%COMP%]{height:100%}.col[_ngcontent-%COMP%]{height:100%;display:flex;align-items:center}.navbar-container[_ngcontent-%COMP%]{height:100%}.row[_ngcontent-%COMP%]{width:100%;height:100%;align-items:center}.nav-link[_ngcontent-%COMP%]{margin:5px 0;color:#fff;font-size:1.3rem;text-decoration:none}.nav-icon[_ngcontent-%COMP%]{margin:5px 0;cursor:pointer;height:24px;text-decoration:none}.dropdown-menu[_ngcontent-%COMP%]{border-radius:0}.custom-dropdown-menu[_ngcontent-%COMP%]{right:-6vw;width:1100%;left:auto;background-color:#1b5e20}.dropdown-item[_ngcontent-%COMP%]{color:#fff;font-size:2rem;padding-top:1.2rem;padding-bottom:1.2rem;padding-left:2rem}.active-link[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;font-size:1.6rem;text-decoration:none!important}.hidden-link[_ngcontent-%COMP%]{width:100%;height:100%}.dropdown-item[_ngcontent-%COMP%]:hover{background-color:#1b5e20;color:#88ca5e;text-decoration:none}@media (min-width: 1920px){.col-xl-3[_ngcontent-%COMP%]{width:16.66666667%}}@media screen and (max-width: 1280px){.nav-link[_ngcontent-%COMP%]{font-size:.8rem!important}}
+/*# sourceMappingURL=navbar.component-LZSO7YWV.css.map */`]});let t=i;return t})();function ot(t){let i="";return Xs(()=>new Error(i))}function Vo(t){return t.map(i=>{let n={};for(let e in i)n[e]=i[e];return n})}function _m(t){return{id:t.id,name:t.name,surname:t.surname,email:t.email,phone:t.phone,password:t.password,role:t.role}}var Vr=t=>{if(!t)return"";let i=new Date(t),n=i.getFullYear(),e=String(i.getMonth()+1).padStart(2,"0"),o=String(i.getDate()).padStart(2,"0"),r=String(i.getHours()).padStart(2,"0"),a=String(i.getMinutes()).padStart(2,"0");return`${n}-${e}-${o}T${r}:${a}`};function sl(t){let[i,n]=t.split(" "),[e,o,r]=i.split("/").map(Number),[a,d]=n.split(":").map(Number),p=r+2e3;return new Date(p,o-1,e,a,d).toISOString().slice(0,19)}var cn=(()=>{let i=class i{constructor(e){this.http=e,this.apiUrl=ki.apiUrl+"/api/user"}getUsers(){return this.http.get(this.apiUrl).pipe(Vi(e=>Vo(e)),nt(ot))}getUsersById(e){return this.http.get(`${this.apiUrl}/${e}`).pipe(Vi(o=>_m(o)),nt(ot))}createUser(e){return this.http.post(this.apiUrl,e).pipe(nt(ot))}updateUser(e){return this.http.put(this.apiUrl,e).pipe(nt(ot))}deleteUser(e){return this.http.delete(`${this.apiUrl}/${e}`).pipe(nt(ot))}};i.\u0275fac=function(o){return new(o||i)(mi(Li))},i.\u0275prov=ti({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var bm=(()=>{let i=class i{constructor(e,o){this.UsersService=e,this.AuthService=o,this.user={}}ngOnInit(){let e=this.AuthService.getUserId();this.UsersService.getUsersById(e).subscribe(o=>{this.user=o})}};i.\u0275fac=function(o){return new(o||i)(se(cn),se(Ki))},i.\u0275cmp=ke({type:i,selectors:[["app-home"]],standalone:!0,features:[Ve],decls:5,vars:2,consts:[[1,"row"],[1,"col-md-12"],[1,"welcome"]],template:function(o,r){o&1&&(H(0,"app-navbar"),c(1,"div",0)(2,"div",1)(3,"h1",2),b(4),s()()()),o&2&&(h(4),nc("\xA1Bienvenido ",r.user.name," ",r.user.surname,"!"))},dependencies:[oi],styles:[`[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/home.svg);background-size:cover;background-position:center;background-repeat:no-repeat}.welcome[_ngcontent-%COMP%]{padding-left:4rem;padding-top:4rem;font-family:LEMONMILK,sans-serif;color:#1b5e20}
+/*# sourceMappingURL=home.component-3PZ6DPPF.css.map */`]});let t=i;return t})();function ym(t){return t.map(i=>{let n={};return["id","name","surname","email","type","category","quantity","unit","expiration","expirationDate"].forEach(o=>{o in i&&(n[o]=i[o])}),Object.keys(i).forEach(o=>{o in n||(n[o]=i[o])}),n})}function Cm(t){return t.map(i=>{let n={},e=["expiration","expirationDate","creationDate","lastModificationDate","admissionDate","envenDate"],o={day:"2-digit",month:"2-digit",year:"2-digit",hour:"2-digit",minute:"2-digit",timeZone:"America/Argentina/Buenos_Aires",hour12:!1};return Object.keys(i).forEach(r=>{if(e.includes(r)&&i[r]){let a=new Date(i[r]);n[r]=new Intl.DateTimeFormat("es-AR",o).format(a).replace(",","")}else n[r]=i[r]}),n})}function wm(t,i,n){if(!i||n==="")return t;let e=n==="up";return t.slice().sort((o,r)=>{if(o[i]===void 0||r[i]===void 0)return 0;let a=o[i],d=r[i];return typeof a=="string"&&typeof d=="string"?e?a.localeCompare(d):d.localeCompare(a):typeof a=="number"&&typeof d=="number"?e?a-d:d-a:0})}function qr(t,i,n){if(!n)return t;let e=n.trim().toLowerCase();return t.filter(o=>Object.keys(o).some(r=>{if(i.includes(r))return!1;let a=o[r];return typeof a=="string"?a.toLowerCase().includes(e):!1}))}var Oh=()=>[];function kh(t,i){t&1&&(c(0,"div",6)(1,"div",7)(2,"span",8),b(3,"Cargando.."),s()()())}function Dh(t,i){if(t&1&&(c(0,"div",9)(1,"h4"),b(2),s()()),t&2){let n=V();h(2),Ut(n.noDataMessage)}}function Rh(t,i){if(t&1){let n=Re();c(0,"li",13)(1,"a",14),ee("click",function(){me(n);let o=V(2);return fe(o.setPage(1))}),b(2,"1"),s()()}}function Vh(t,i){t&1&&(c(0,"li",24)(1,"a",25),b(2,"..."),s()())}function qh(t,i){if(t&1){let n=Re();c(0,"li",13)(1,"a",14),ee("click",function(){let o=me(n).$implicit,r=V(2);return fe(r.setPage(o))}),b(2),s()()}if(t&2){let n=i.$implicit,e=V(2);fa("active",e.currentPage===n),h(2),Ut(n)}}function Bh(t,i){t&1&&(c(0,"li",24)(1,"a",25),b(2,"..."),s()())}function jh(t,i){if(t&1){let n=Re();c(0,"li",13)(1,"a",14),ee("click",function(){me(n);let o=V(2);return fe(o.setPage(o.totalPages))}),b(2),s()()}if(t&2){let n=V(2);h(2),Ut(n.totalPages)}}function Uh(t,i){if(t&1&&H(0,"i",29),t&2){let n=V().$implicit,e=V(2);g("ngClass",e.getSortIcon(n))}}function zh(t,i){if(t&1){let n=Re();c(0,"th",26)(1,"a",27),ee("click",function(){let o=me(n).$implicit,r=V(2);return fe(r.onHeaderClick(o))}),b(2),O(3,Uh,1,1,"i",28),s()()}if(t&2){let n=i.$implicit,e=V(2);h(2),pt(" ",e.translateColumn(n)," "),h(),g("ngIf",e.getSortIcon(n))}}function Hh(t,i){t&1&&(kn(0),H(1,"i",34),Dn())}function Gh(t,i){t&1&&(kn(0),H(1,"i",35),Dn())}function Wh(t,i){if(t&1&&O(0,Gh,2,0,"ng-container",33),t&2){let n=V().$implicit,e=V().$implicit;g("ngIf",e[n]===!1)}}function $h(t,i){if(t&1&&(c(0,"div"),b(1),ac(2,"date"),s()),t&2){let n=V(2).$implicit,e=V().$implicit;h(),pt(" ",Cp(2,1,e[n],"dd/MM/yyyy")," ")}}function Kh(t,i){t&1&&(c(0,"div"),b(1,"-"),s())}function Yh(t,i){if(t&1&&(kn(0),b(1),O(2,$h,3,4,"div",32)(3,Kh,2,0,"ng-template",null,1,jd),Dn()),t&2){let n=ct(4),e=V().$implicit,o=V().$implicit,r=V(2);h(),pt(" exp = ",o[e]," "),h(),g("ngIf",r.getAgeDifference(o[e])<=60)("ngIfElse",n)}}function Qh(t,i){if(t&1&&(c(0,"div"),b(1),s()),t&2){let n=V(2).$implicit,e=V().$implicit;h(),pt("$",e[n],"")}}function Jh(t,i){if(t&1&&(c(0,"div"),b(1),s()),t&2){let n=V(2).$implicit,e=V().$implicit;h(),pt(" ",e[n]," ")}}function Zh(t,i){if(t&1&&(kn(0),O(1,Qh,2,1,"div",33)(2,Jh,2,1,"div",33),Dn()),t&2){let n=V().$implicit;h(),g("ngIf",n==="cost"),h(),g("ngIf",n!=="cost")}}function Xh(t,i){if(t&1&&(c(0,"td",31),O(1,Hh,2,0,"ng-container",32)(2,Wh,1,1,"ng-template",null,0,jd)(4,Yh,5,3,"ng-container",33)(5,Zh,3,2,"ng-container",33),s()),t&2){let n=i.$implicit,e=ct(3),o=V().$implicit;h(),g("ngIf",o[n]===!0)("ngIfElse",e),h(3),g("ngIf",n==="expiration"),h(),g("ngIf",n!=="expiration")}}function e1(t,i){if(t&1){let n=Re();c(0,"tr",27),ee("click",function(){let o=me(n).$implicit,r=V(2);return fe(r.onRowClick(o))}),O(1,Xh,6,4,"td",30),s()}if(t&2){let n=V(2);h(),g("ngForOf",n.getColumns())}}function t1(t,i){t&1&&H(0,"td",31)}function i1(t,i){if(t&1&&(c(0,"tr"),O(1,t1,1,0,"td",30),s()),t&2){let n=V(2);h(),g("ngForOf",n.getColumns())}}function n1(t,i){if(t&1){let n=Re();c(0,"div",10)(1,"nav",11)(2,"ul",12)(3,"li",13)(4,"a",14),ee("click",function(){me(n);let o=V();return fe(o.setPage(o.currentPage-1))}),H(5,"i",15),s()(),O(6,Rh,3,0,"li",16)(7,Vh,3,0,"li",17)(8,qh,3,3,"li",18)(9,Bh,3,0,"li",17)(10,jh,3,1,"li",16),c(11,"li",13)(12,"a",14),ee("click",function(){me(n);let o=V();return fe(o.setPage(o.currentPage+1))}),H(13,"i",19),s()()()(),c(14,"table",20)(15,"thead")(16,"tr"),O(17,zh,4,2,"th",21),s()(),c(18,"tbody"),O(19,e1,2,1,"tr",22)(20,i1,2,1,"tr",23),s()()()}if(t&2){let n=V();h(3),fa("disabled",n.currentPage===1),h(3),g("ngIf",n.currentPage>2),h(),g("ngIf",n.currentPage>3),h(),g("ngForOf",n.getPageRange()),h(),g("ngIf",n.currentPage<n.totalPages-2&&n.totalPages>5),h(),g("ngIf",n.currentPage<n.totalPages-1&&n.totalPages>3),h(),fa("disabled",n.currentPage===n.totalPages),h(6),g("ngForOf",n.getColumns()),h(2),g("ngForOf",n.paginatedData),h(),g("ngForOf",Pr(12,Oh).constructor(n.itemsPerPage-n.paginatedData.length))}}var Yn=(()=>{let i=class i{constructor(){this.data=[],this.columnsExcluded=[],this.isTableReady=!0,this.rowClicked=new lt,this.columnTranslataions={id:"ID",name:"Nombre",surname:"Apellido",email:"Correo",phone:"Tel\xE9fono",role:"Rol",address:"Direcci\xF3n",addres:"Direcci\xF3n",cuit:"CUIT",description:"Descripci\xF3n",category:"Categor\xEDa",quantity:"Cantidad",expirationDate:"Fecha de vencimiento",creationDate:"Fecha de creaci\xF3n",lastModificationDate:"\xDAltima modificaci\xF3n",admissionDate:"Fecha de admisi\xF3n",unit:"Unidad",price:"Precio",cost:"Precio",expiration:"Fecha de Vencimiento",type:"Tipo",envenDate:"Fecha",title:"Evento"},this.currentPage=1,this.itemsPerPage=10,this.noDataMessage="No hay elementos a mostrar",this.sortStates={},this.activeColumn=null}ngOnInit(){this.columnsExcluded.push("state")}ngOnChanges(e){e.data&&(this.data=Cm(this.data),this.data=ym(this.data))}getColumns(){return this.data.length===0?[]:Object.keys(this.data[0]).filter(e=>!this.columnsExcluded.includes(e))}get paginatedData(){let e=(this.currentPage-1)*this.itemsPerPage,o=e+this.itemsPerPage;return this.data.slice(e,o)}get totalPages(){return Math.ceil(this.data.length/this.itemsPerPage)}setPage(e){e>=1&&e<=this.totalPages&&(this.currentPage=e)}getPageRange(){let e=[],r=Math.max(1,this.currentPage-1),a=Math.min(this.totalPages,this.currentPage+1);this.currentPage<=2&&(a=Math.min(1*2+1,this.totalPages)),this.currentPage>=this.totalPages-1&&(r=Math.max(this.totalPages-1*2,1));for(let d=r;d<=a;d++)e.push(d);return e}onRowClick(e){this.rowClicked.emit(e)}translateColumn(e){return this.columnTranslataions[e]||e}onHeaderClick(e){this.activeColumn===e?(this.sortStates[e]=this.sortStates[e]==="up"?"down":"up",this.data=wm(this.data,e,this.sortStates[e])):(this.sortStates[this.activeColumn||""]="",this.sortStates[e]="up",this.activeColumn=e)}getSortIcon(e){return this.sortStates[e]==="up"?"bi bi-caret-up-fill":this.sortStates[e]==="down"?"bi bi-caret-down-fill":""}getAgeDifference(e){let o=new Date().getFullYear();console.log("Current: ",e);let r=Vr(e);console.log("Aux: ",r);let a=new Date(e).getFullYear();return console.log("Gap: ",o,a),a-o}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=ke({type:i,selectors:[["app-table"]],inputs:{data:"data",columnsExcluded:"columnsExcluded",isTableReady:"isTableReady"},outputs:{rowClicked:"rowClicked"},standalone:!0,features:[qi,Ve],decls:4,vars:3,consts:[["falseIcon",""],["noExpiration",""],[1,"table-container"],["class","spinner-container text-center",4,"ngIf"],["class","no-data-container text-center",4,"ngIf"],["class","table-wrapper",4,"ngIf"],[1,"spinner-container","text-center"],["role","status",1,"spinner-border"],[1,"visually-hidden"],[1,"no-data-container","text-center"],[1,"table-wrapper"],[1,"pagination-container"],[1,"pagination","justify-content-center","custom-pagination"],[1,"page-item"],[1,"page-link",3,"click"],[1,"bi","bi-chevron-left"],["class","page-item",4,"ngIf"],["class","page-item disabled",4,"ngIf"],["class","page-item",3,"active",4,"ngFor","ngForOf"],[1,"bi","bi-chevron-right"],[1,"table","table-custom"],["class","text-uppercase text-center",4,"ngFor","ngForOf"],[3,"click",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"page-item","disabled"],[1,"page-link"],[1,"text-uppercase","text-center"],[3,"click"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],["class","text-center",4,"ngFor","ngForOf"],[1,"text-center"],[4,"ngIf","ngIfElse"],[4,"ngIf"],[1,"bi","bi-check-circle","text-success"],[1,"bi","bi-x-circle","text-danger"]],template:function(o,r){o&1&&(c(0,"div",2),O(1,kh,4,0,"div",3)(2,Dh,3,1,"div",4)(3,n1,21,13,"div",5),s()),o&2&&(h(),g("ngIf",!r.isTableReady),h(),g("ngIf",r.isTableReady&&r.data.length===0),h(),g("ngIf",r.isTableReady&&r.data.length>0))},dependencies:[Ze,St,Jt,Xe,xp,Ft],styles:[`@charset "UTF-8";.table-container[_ngcontent-%COMP%]{position:relative;width:100%;height:640.5px;min-width:1416px;background-color:#d2ffaa;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;padding-bottom:20px}.table-custom[_ngcontent-%COMP%]{width:calc(100% - 40px);margin:0 20px}.table-custom[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{text-transform:uppercase;text-align:center;background-color:#1ba120}.table-custom[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{text-align:center;background-color:transparent}.table-custom[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{height:50.2px}.table-custom[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-child(odd){background-color:#88ca5e}.table-custom[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#1ba120}.pagination-container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:flex-end;padding-right:20px}.custom-pagination[_ngcontent-%COMP%]   .page-link[_ngcontent-%COMP%]{background-color:transparent;color:#1b5e20;border:none;font-size:1.5rem;padding:10px 5px}.custom-pagination[_ngcontent-%COMP%]   .page-item.active[_ngcontent-%COMP%]   .page-link[_ngcontent-%COMP%]{color:#000;background-color:transparent}.custom-pagination[_ngcontent-%COMP%]   .page-item[_ngcontent-%COMP%]   .page-link[_ngcontent-%COMP%]:hover{color:#1b5e20;background-color:transparent}.custom-pagination[_ngcontent-%COMP%]   .page-link[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#1b5e20}.no-data-container[_ngcontent-%COMP%]{width:calc(100% - 40px);height:50.2px;display:flex;justify-content:center;align-items:center;background-color:#f8d7da;color:#721c24;font-size:1.2rem;text-align:center;margin-top:2rem;border-radius:5px}.table-wrapper[_ngcontent-%COMP%]{width:calc(100% - 40px);min-height:640.5px}.spinner-container[_ngcontent-%COMP%]{width:calc(100% - 40px);height:50.2px;display:flex;justify-content:center;align-items:center;color:#1b5e20;margin-top:2rem}.spinner-border[_ngcontent-%COMP%]{width:3rem;height:3rem;border-width:.4em}
+/*# sourceMappingURL=table.component-XMAESJSY.css.map */`]});let t=i;return t})();var Qn=(()=>{let i=class i{constructor(){this.search=new lt,this.searchControl=new nl("")}onFilter(){let e=this.searchControl.value?.trim();e!==void 0&&(this.isValid(e)?this.search.emit(e):this.search.emit(""))}onKeyDown(e){e.key==="Enter"&&this.onFilter()}isValid(e){let o=/^[a-zA-Z0-9@. ]*$/;return typeof e=="string"&&e.length>0&&o.test(e)}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=ke({type:i,selectors:[["app-search-bar"]],outputs:{search:"search"},standalone:!0,features:[Ve],decls:7,vars:1,consts:[[1,"search-container","bg-fix"],["id","basic-addon1"],[1,"bi","bi-search","search-icon","text-white"],["type","text","aria-label","Buscar","aria-describedby","basic-addon1",1,"form-control",3,"keydown.enter","formControl"],[1,"btn","btn-custom",3,"click"],[1,"filter-text"]],template:function(o,r){o&1&&(c(0,"div",0)(1,"span",1),H(2,"i",2),s(),c(3,"input",3),ee("keydown.enter",function(){return r.onFilter()}),s(),c(4,"button",4),ee("click",function(){return r.onFilter()}),c(5,"span",5),b(6,"BUSCAR"),s()()()),o&2&&(h(3),g("formControl",r.searchControl))},dependencies:[Ft,At,Tt,is],styles:[`.search-container[_ngcontent-%COMP%]{display:flex;align-items:center;padding:5px;width:100%;min-width:592px;height:39px;background-color:transparent;border-radius:12px;position:relative}.search-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border:none;border-radius:12px 0 0 12px;padding:10px 10px 10px 30px;outline:none;width:100%;background-color:#1b5e20;opacity:.6;color:#fff;font-family:LEMONMILK Bold,sans-serif}.search-container[_ngcontent-%COMP%]   .search-icon[_ngcontent-%COMP%]{position:absolute;left:10px;top:50%;transform:translateY(-50%);font-size:18px;padding-left:5px;color:#fff}.btn-custom[_ngcontent-%COMP%]{border:none;padding:10px 20px;border-radius:0 12px 12px 0;cursor:pointer;background-color:#1b5e20;color:#fff;align-items:center;justify-content:center}.form-control[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important}
+/*# sourceMappingURL=search-bar.component-35HMNUVF.css.map */`]});let t=i;return t})();var Sm=(()=>{let i=class i{constructor(){this.close=new lt}closeDecisionModal(){this.close.emit("")}openAddInput(){this.close.emit("addInput")}openAddRawMaterial(){this.close.emit("addRawMaterial")}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=ke({type:i,selectors:[["app-decision-modal"]],outputs:{close:"close"},standalone:!0,features:[Ve],decls:15,vars:0,consts:[["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content","modal-content-custom"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body","d-flex","align-items-center","justify-content-center"],[1,"row","w-100"],[1,"col","d-flex","justify-content-center"],[1,"btn","btn-custom","btn-lg",3,"click"]],template:function(o,r){o&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h5",4),b(5,"Agregar Existencia"),s(),c(6,"button",5),ee("click",function(){return r.closeDecisionModal()}),s()(),c(7,"div",6)(8,"div",7)(9,"div",8)(10,"button",9),ee("click",function(){return r.openAddInput()}),b(11,"Agregar Insumo"),s()(),c(12,"div",8)(13,"button",9),ee("click",function(){return r.openAddRawMaterial()}),b(14,"Agregar Materia Prima"),s()()()()()()())},styles:[`.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content-custom[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:396px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.row-custom[_ngcontent-%COMP%]{padding-top:.4rem;padding-bottom:.4rem}
+/*# sourceMappingURL=decision-modal.component-KSVALTJU.css.map */`]});let t=i;return t})();var nn=function(t){return t.Kilogramos="Kg",t.Gramos="g",t.Milimetros="ml",t.Litro="L",t.Unidades="U",t}(nn||{});function Fn(t){return/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(t.value)?null:{invalidEmail:!0}}function In(t){return/^\+?[0-9]{1,4}?[-.\s]?(\(?\d{1,3}?\)?[-.\s]?\d{1,4}[-.\s]?\d{1,4}[-.\s]?\d{1,9})$/.test(t.value)?null:{invalidPhone:!0}}function Bo(){return t=>{let i=t.value;if(!i||i.length!==11||isNaN(i))return{invalidCuit:!0};let n=[5,4,3,2,7,6,5,4,3,2],e=0;for(let a=0;a<10;a++)e+=parseInt(i[a],10)*n[a];let o=e%11;return(o===0?0:o===1?9:11-o)!==parseInt(i[10],10)?{invalidCuit:!0}:null}}function Br(t){let i=t.value;return/^\d+([.,]\d+)?$/.test(i)&&parseFloat(i.replace(",","."))!==0?null:{invalidQuantity:!0}}function cl(){return t=>t.controls.some(e=>{let o=e.get("selected")?.value,r=e.get("quantity")?.value;return o&&r!=null&&r>0})?null:{atLeastOneValidControl:!0}}function dl(){return t=>{let i=t.get("password"),n=t.get("confirmPassword");return i&&n&&i.value!==n.value?{passwordMismatch:!0}:null}}function yc(t,i){return n=>{let e=n.get(t),o=n.get(i);return e&&o&&o.value?e.value?null:{required:!0}:null}}function xm(t){return i=>{let n=i.value;return n<=0||n<=t?{priceInvalid:!0}:null}}var jr=(()=>{let i=class i{constructor(e){this.http=e,this.apiUrl=ki.apiUrl+"/api/Inputs"}getInputs(){return this.http.get(this.apiUrl).pipe(nt(ot))}getInputById(e){return this.http.get(`${this.apiUrl}/${e}`).pipe(nt(ot))}createInput(e){return this.http.post(this.apiUrl,e).pipe(nt(ot))}updateInput(e){return this.http.put(this.apiUrl,e).pipe(nt(ot))}deleteInput(e){return this.http.delete(`${this.apiUrl}/${e}`).pipe(nt(ot))}getInputsTypes(){return this.http.get(`${this.apiUrl}/getTypes`).pipe(nt(ot))}};i.\u0275fac=function(o){return new(o||i)(mi(Li))},i.\u0275prov=ti({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var Ur=(()=>{let i=class i{constructor(e){this.http=e,this.apiUrl=ki.apiUrl+"/api/RawMaterials"}getRawMaterials(){return this.http.get(this.apiUrl).pipe(nt(ot))}getRawMaterialById(e){return this.http.get(`${this.apiUrl}/${e}`).pipe(nt(ot))}createRawMaterial(e){return this.http.post(this.apiUrl,e).pipe(nt(ot))}updateRawMaterial(e){return console.log(JSON.stringify(e)),this.http.put(this.apiUrl,e).pipe(nt(ot))}deleteRawMaterial(e){return this.http.delete(`${this.apiUrl}/${e}`).pipe(nt(ot))}getRawMaterialsTypes(){return this.http.get(`${this.apiUrl}/getTypes`).pipe(nt(ot))}};i.\u0275fac=function(o){return new(o||i)(mi(Li))},i.\u0275prov=ti({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var zr=(()=>{let i=class i{constructor(e,o){this.InputsService=e,this.RawMaterialService=o,this.inputsTypesSubject=new Ql([]),this.rawMaterialTypesSubject=new Ql([])}chargeInputsTypes(){this.InputsService.getInputsTypes().subscribe(e=>this.inputsTypesSubject.next(e))}chargeRawMaterialTypes(){this.RawMaterialService.getRawMaterialsTypes().subscribe(e=>this.rawMaterialTypesSubject.next(e))}getInputsTypes(){return this.inputsTypesSubject.asObservable()}getRawMaterialTypes(){return this.rawMaterialTypesSubject.asObservable()}addInputsType(e){this.inputsTypesSubject.pipe(Vi(o=>{o.includes(e)||(o.push(e),o.sort(),this.inputsTypesSubject.next(o))})).subscribe()}addRawMaterialType(e){this.rawMaterialTypesSubject.pipe(Vi(o=>{o.includes(e)||(o.push(e),o.sort(),this.rawMaterialTypesSubject.next(o))})).subscribe()}getInventory(){return ec({inputs:this.InputsService.getInputs(),rawMaterials:this.RawMaterialService.getRawMaterials()}).pipe(Vi(({inputs:r,rawMaterials:a})=>{let d=r||[],p=a||[];return d.concat(p).sort()}),up(r=>r.pipe(pp((a,d)=>{if(a>=5)throw d;return console.warn(`Retrying... (${a+1}/5)`),a+1},0),dp(5e3))),nt(r=>(console.error("Error fetching inventory",r),Xs(()=>r))))}};i.\u0275fac=function(o){return new(o||i)(mi(jr),mi(Ur))},i.\u0275prov=ti({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var An=(()=>{let i=class i{constructor(e){this.http=e,this.apiUrl=ki.apiUrl+"/api/Providers"}getProviders(){return this.http.get(this.apiUrl).pipe(nt(ot))}getProviderById(e){return this.http.get(`${this.apiUrl}/${e}`).pipe(nt(ot))}createProvider(e){return this.http.post(this.apiUrl,e).pipe(nt(ot))}updateProvider(e){return this.http.put(this.apiUrl,e).pipe(nt(ot))}deleteProvider(e){return this.http.delete(`${this.apiUrl}/${e}`).pipe(nt(ot))}};i.\u0275fac=function(o){return new(o||i)(mi(Li))},i.\u0275prov=ti({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var jo=t=>({"is-invalid":t});function r1(t,i){t&1&&(c(0,"div"),b(1," Nombre es requerido. "),s())}function o1(t,i){t&1&&(c(0,"div"),b(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),s())}function a1(t,i){if(t&1&&(c(0,"div",44),O(1,r1,2,0,"div",45)(2,o1,2,0,"div",45),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.productForm.get("name"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.productForm.get("name"))==null||e.errors==null)&&e.errors.required)&&((e=o.productForm.get("name"))==null||e.errors==null?null:e.errors.pattern))}}function l1(t,i){if(t&1&&(c(0,"option",46),b(1),s()),t&2){let n=i.$implicit;g("value",n),h(),pt(" ",n," ")}}function s1(t,i){t&1&&(c(0,"div"),b(1," Tipo es requerido. "),s())}function c1(t,i){if(t&1&&(c(0,"div",47),O(1,s1,2,0,"div",45),s()),t&2){let n,e=V();h(),g("ngIf",(n=e.productForm.get("type"))==null||n.errors==null?null:n.errors.required)}}function d1(t,i){if(t&1&&(c(0,"option",46),b(1),s()),t&2){let n=i.$implicit;g("value",n),h(),pt(" ",n," ")}}function u1(t,i){t&1&&(c(0,"div"),b(1," Es necesario ingresar una cantidad. "),s())}function p1(t,i){t&1&&(c(0,"div"),b(1," La cantidad debe ser un n\xFAmero v\xE1lido mayor a 0. "),s())}function m1(t,i){if(t&1&&(c(0,"div",48),O(1,u1,2,0,"div",45)(2,p1,2,0,"div",45),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.productForm.get("quantity"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.productForm.get("quantity"))==null||e.errors==null)&&e.errors.required)&&((e=o.productForm.get("quantity"))==null||e.errors==null?null:e.errors.invalidQuantity))}}function f1(t,i){t&1&&(c(0,"div"),b(1," Ingrese una unidad. "),s())}function h1(t,i){if(t&1&&(c(0,"div",49),O(1,f1,2,0,"div",45),s()),t&2){let n,e=V();h(),g("ngIf",(n=e.productForm.get("unit"))==null||n.errors==null?null:n.errors.required)}}function g1(t,i){t&1&&(c(0,"div"),b(1," Es necesario ingresar un Precio. "),s())}function v1(t,i){t&1&&(c(0,"div"),b(1," El Precio debe ser un n\xFAmero v\xE1lido y mayor que cero. "),s())}function _1(t,i){if(t&1&&(c(0,"div",44),O(1,g1,2,0,"div",45)(2,v1,2,0,"div",45),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.productForm.get("cost"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.productForm.get("cost"))==null||e.errors==null)&&e.errors.required)&&((e=o.productForm.get("cost"))==null||e.errors==null?null:e.errors.invalidQuantity))}}function b1(t,i){if(t&1&&(c(0,"option",46),b(1),s()),t&2){let n=i.$implicit;g("value",n.id),h(),pt(" ",n.name," ")}}function y1(t,i){t&1&&(c(0,"div",44),b(1," Se necesita un Provedor. "),s())}function C1(t,i){t&1&&(c(0,"div",44),b(1," Descripcion no admite simbolos. "),s())}function w1(t,i){t&1&&(c(0,"div"),b(1," El tipo es requerido. "),s())}function S1(t,i){t&1&&(c(0,"div"),b(1," El tipo no debe contener n\xFAmeros ni s\xEDmbolos. "),s())}function x1(t,i){if(t&1&&(c(0,"div",47),O(1,w1,2,0,"div",45)(2,S1,2,0,"div",45),s()),t&2){let n,e,o=V(2);h(),g("ngIf",(n=o.addTypeForm.get("newType"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",(e=o.addTypeForm.get("newType"))==null||e.errors==null?null:e.errors.pattern)}}function E1(t,i){if(t&1){let n=Re();c(0,"div",2)(1,"div",3)(2,"div",50)(3,"div",5)(4,"h1",51),b(5," Agregar Tipo "),s(),c(6,"button",52),ee("click",function(){me(n);let o=V();return fe(o.closeAddTypeModal())}),s()(),c(7,"form",8,1),ee("ngSubmit",function(){me(n);let o=V();return fe(o.addType())}),c(9,"div",9)(10,"div",38)(11,"label",53),b(12,"Nuevo Tipo"),s(),H(13,"input",54),O(14,x1,3,2,"div",24),s()(),c(15,"div",55)(16,"button",56),ee("click",function(){me(n);let o=V();return fe(o.closeAddTypeModal())}),b(17," CANCELAR "),s(),c(18,"button",57),b(19," GUARDAR "),s()()()()()()}if(t&2){let n,e,o=ct(8),r=V();h(7),g("formGroup",r.addTypeForm),h(6),g("ngClass",_e(3,jo,(((n=r.addTypeForm.get("newType"))==null?null:n.touched)||o.submitted)&&((n=r.addTypeForm.get("newType"))==null?null:n.invalid))),h(),g("ngIf",(((e=r.addTypeForm.get("newType"))==null?null:e.touched)||o.submitted)&&((e=r.addTypeForm.get("newType"))==null?null:e.invalid))}}var Em=(()=>{let i=class i{constructor(e,o,r,a){this.InputsService=e,this.formBuilder=o,this.InventoryService=r,this.providersService=a,this.close=new lt,this.providers=[],this.units=[],this.inventoryTypes=[],this.addTypeModal=!1,this.isRawMaterial=!1,this.avaibleFreezed=!1,this.productForm=this.formBuilder.group({name:["",[oe.required]],type:["",[oe.required,oe.pattern("^[a-zA-Z ]*$")]],quantity:["",[oe.required,Br]],unit:["",[oe.required]],cost:["",[oe.required,Br]],description:["",[oe.pattern(/^[a-zA-Z0-9À-ÿ\s'_-]+$/)]],provider:["",[oe.required]]}),this.addTypeForm=this.formBuilder.group({newType:["",[oe.required,oe.pattern("^[a-zA-Z ]*$")]]})}ngOnInit(){this.InventoryService.chargeInputsTypes(),this.getProviders(),this.loadProductTypes(),this.units=Object.values(nn)}closeModal(){this.close.emit()}openAddTypeModal(){this.addTypeModal=!0}closeAddTypeModal(){this.addTypeModal=!1}addType(){if(this.addTypeForm.valid){let e=this.addTypeForm.value.newType;this.InventoryService.addInputsType(e),this.closeAddTypeModal()}else console.error("Formulario de tipo inv\xE1lido.")}onSubmit(){if(this.productForm.valid){let e=this.productForm.get("provider")?.value,o=this.providers.find(a=>Number(a.id)===Number(e)),r={name:this.productForm.get("name")?.value,type:this.productForm.get("type")?.value,quantity:this.productForm.get("quantity")?.value,unit:this.productForm.get("unit")?.value,cost:this.productForm.get("cost")?.value,description:this.productForm.get("description")?.value||"",provider:o||{}};this.InputsService.createInput(r).subscribe(()=>{this.closeModal()},a=>{console.error("Error al crear el insumo",a)})}}getProviders(){this.providersService.getProviders().subscribe(e=>{this.providers=e.sort((o,r)=>o.name.localeCompare(r.name))})}loadProductTypes(){this.InventoryService.getInputsTypes().subscribe(e=>{this.inventoryTypes=e.sort((o,r)=>o.localeCompare(r))})}};i.\u0275fac=function(o){return new(o||i)(se(jr),se(Vt),se(zr),se(An))},i.\u0275cmp=ke({type:i,selectors:[["app-add-input"]],outputs:{close:"close"},standalone:!0,features:[Ve],decls:90,vars:33,consts:[["aux","ngForm"],["aux2","ngForm"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content","modal-content-custom"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[3,"ngSubmit","formGroup"],[1,"modal-body"],[1,"row"],[1,"col"],[1,"form-group","row-container"],[1,"row","align-items-center"],[1,"col-2"],["for","name"],["type","text","id","name","name","name","formControlName","name","placeholder","Nombre",1,"form-control",3,"ngClass"],[1,"error-container"],["class","text-danger",4,"ngIf"],["for","type",1,"mb-0"],["id","type","formControlName","type","aria-label","Type Selection","placeholder","Seleccione un tipo",1,"form-select","me-2",3,"ngClass"],["value","","disabled","","selected",""],[3,"value",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-custom",3,"click"],["class","text-danger mt-1",4,"ngIf"],["for","quantity"],["type","text","id","quantity","name","quantity","formControlName","quantity","placeholder","0000",1,"form-control",3,"ngClass"],["for","unit"],["id","unit","formControlName","unit","aria-label","Unit Selection",1,"form-select","me-2",3,"ngClass"],[1,"row","error-container","align-items-center"],["class","col-8 text-danger",4,"ngIf"],["class","col text-danger",4,"ngIf"],["for","cost"],[1,"input-group","mb-3"],[1,"input-group-text"],["type","text","id","cost","name","cost","formControlName","cost","aria-label","Precio","placeholder","00000.00",1,"form-control",3,"ngClass"],["for","provider"],["id","provider","formControlName","provider","aria-label","Provider Selection","placeholder","Seleccione un proveedor",1,"form-select","me-2",3,"ngClass"],[1,"form-group"],["for","desscription"],["type","text","id","descripcion","name","description","formControlName","description",1,"form-control","desc",3,"ngClass"],[1,"modal-footer","justify-content-center"],["type","submit",1,"btn","btn-custom"],["class","modal modal-bg fade show","tabindex","-1","style","display: block","aria-modal","true","role","dialog",4,"ngIf"],[1,"text-danger"],[4,"ngIf"],[3,"value"],[1,"text-danger","mt-1"],[1,"col-8","text-danger"],[1,"col","text-danger"],[1,"modal-content"],["id","confirmDeleteModalLabel",1,"modal-title","fs-5"],["type","button",1,"btn-close",3,"click"],["for","newType"],["type","text","id","newType","formControlName","newType","placeholder","Ingrese el nuevo tipo",1,"form-control",3,"ngClass"],[1,"modal-footer"],["type","button",1,"btn","btn-secondary",3,"click"],["type","submit",1,"btn","btn-success"]],template:function(o,r){if(o&1){let a=Re();c(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"h5",6),b(5,"Agregar Insumo"),s(),c(6,"button",7),ee("click",function(){return me(a),fe(r.closeModal())}),s()(),c(7,"form",8,0),ee("ngSubmit",function(){return me(a),fe(r.onSubmit())}),c(9,"div",9)(10,"div",10)(11,"div",11)(12,"div",12)(13,"div",13)(14,"div",14)(15,"label",15),b(16,"Nombre"),s()(),c(17,"div",11),H(18,"input",16),s(),c(19,"div",17),O(20,a1,3,2,"div",18),s()()(),c(21,"div",12)(22,"div",13)(23,"div",14)(24,"label",19),b(25,"Tipo"),s()(),c(26,"div",11)(27,"select",20)(28,"option",21),b(29," Selecciona un tipo "),s(),O(30,l1,2,2,"option",22),s()(),c(31,"div",11)(32,"button",23),ee("click",function(){return me(a),fe(r.openAddTypeModal())}),b(33," Agregar Tipo "),s()()(),c(34,"div",17),O(35,c1,2,1,"div",24),s()(),c(36,"div",12)(37,"div",13)(38,"div",14)(39,"label",25),b(40,"Cantidad"),s()(),c(41,"div",11),H(42,"input",26),s(),c(43,"div",14)(44,"label",27),b(45,"Unidad"),s()(),c(46,"div",14)(47,"select",28)(48,"option",21),b(49,"..."),s(),O(50,d1,2,2,"option",22),s()()(),c(51,"div",29),O(52,m1,3,2,"div",30)(53,h1,2,1,"div",31),s()()(),c(54,"div",11)(55,"div",12)(56,"div",13)(57,"div",14)(58,"label",32),b(59,"Precio Unitario"),s()(),c(60,"div",11)(61,"div",33)(62,"span",34),b(63,"$"),s(),H(64,"input",35),s()(),c(65,"div",17),O(66,_1,3,2,"div",18),s()()(),c(67,"div",12)(68,"div",13)(69,"div",14)(70,"label",36),b(71,"Proveedor"),s()(),c(72,"div",11)(73,"select",37)(74,"option",21),b(75," Seleccione un proveedor "),s(),O(76,b1,2,2,"option",22),s()(),c(77,"div",17),O(78,y1,2,0,"div",18),s()()()(),c(79,"div",38)(80,"label",39),b(81,"Descripcion"),s(),c(82,"textarea",40),b(83,"              "),s(),c(84,"div",17),O(85,C1,2,0,"div",18),s()()()(),c(86,"div",41)(87,"button",42),b(88,"GUARDAR"),s()()()()()(),O(89,E1,20,5,"div",43)}if(o&2){let a,d,p,_,y,w,S,v,M,F,k,I,L,z,$=ct(8);h(7),g("formGroup",r.productForm),h(11),g("ngClass",_e(19,jo,(((a=r.productForm.get("name"))==null?null:a.dirty)||((a=r.productForm.get("name"))==null?null:a.touched)||$.submitted)&&((a=r.productForm.get("name"))==null?null:a.invalid))),h(2),g("ngIf",$.submitted||((d=r.productForm.get("name"))==null?null:d.invalid)&&(((d=r.productForm.get("name"))==null?null:d.dirty)||((d=r.productForm.get("name"))==null?null:d.touched))),h(7),g("ngClass",_e(21,jo,(((p=r.productForm.get("type"))==null?null:p.dirty)||((p=r.productForm.get("type"))==null?null:p.touched)||$.submitted)&&((p=r.productForm.get("type"))==null?null:p.invalid))),h(3),g("ngForOf",r.inventoryTypes),h(5),g("ngIf",$.submitted&&((_=r.productForm.get("type"))==null?null:_.invalid)),h(7),g("ngClass",_e(23,jo,(((y=r.productForm.get("quantity"))==null?null:y.dirty)||((y=r.productForm.get("quantity"))==null?null:y.touched)||$.submitted)&&((y=r.productForm.get("quantity"))==null?null:y.invalid))),h(5),g("ngClass",_e(25,jo,(((w=r.productForm.get("unit"))==null?null:w.dirty)||((w=r.productForm.get("unit"))==null?null:w.touched)||$.submitted)&&((w=r.productForm.get("unit"))==null?null:w.invalid))),h(3),g("ngForOf",r.units),h(2),g("ngIf",$.submitted||((S=r.productForm.get("quantity"))==null?null:S.invalid)&&(((S=r.productForm.get("quantity"))==null?null:S.dirty)||((S=r.productForm.get("quantity"))==null?null:S.touched))),h(),g("ngIf",$.submitted||((v=r.productForm.get("unit"))==null?null:v.invalid)&&(((v=r.productForm.get("unit"))==null?null:v.dirty)||((v=r.productForm.get("unit"))==null?null:v.touched))),h(11),g("ngClass",_e(27,jo,(((M=r.productForm.get("cost"))==null?null:M.dirty)||((M=r.productForm.get("cost"))==null?null:M.touched)||$.submitted)&&((M=r.productForm.get("cost"))==null?null:M.invalid))),h(2),g("ngIf",$.submitted||((F=r.productForm.get("cost"))==null?null:F.invalid)&&(((F=r.productForm.get("cost"))==null?null:F.dirty)||((F=r.productForm.get("cost"))==null?null:F.touched))),h(7),g("ngClass",_e(29,jo,(((k=r.productForm.get("provider"))==null?null:k.dirty)||((k=r.productForm.get("provider"))==null?null:k.touched)||$.submitted)&&((k=r.productForm.get("provider"))==null?null:k.invalid))),h(3),g("ngForOf",r.providers),h(2),g("ngIf",$.submitted&&((I=r.productForm.get("provider"))==null?null:I.invalid)||((I=r.productForm.get("provider"))==null?null:I.invalid)&&(((I=r.productForm.get("provider"))==null?null:I.dirty)||((I=r.productForm.get("provider"))==null?null:I.touched))),h(4),g("ngClass",_e(31,jo,(((L=r.productForm.get("descripcion"))==null?null:L.dirty)||((L=r.productForm.get("descripcion"))==null?null:L.touched)||$.submitted)&&((L=r.productForm.get("descripcion"))==null?null:L.invalid))),h(3),g("ngIf",((z=r.productForm.get("description"))==null?null:z.invalid)&&((z=r.productForm.get("description"))==null?null:z.dirty)&&((z=r.productForm.get("description"))==null?null:z.value)),h(4),g("ngIf",r.addTypeModal)}},dependencies:[Ze,St,Jt,Xe,Ft,Rt,Gi,Wi,At,Oi,Tt,Dt,Pt,Ot],styles:[`@charset "UTF-8";.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content-custom[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:496px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.desc[_ngcontent-%COMP%]{height:6rem}.form-check[_ngcontent-%COMP%], .form-swicth[_ngcontent-%COMP%]{padding-left:0}.form-check-label[_ngcontent-%COMP%]{margin-right:10px}.form-swicth[_ngcontent-%COMP%], .form-check-input[_ngcontent-%COMP%]{margin-left:.15rem}.text-custom[_ngcontent-%COMP%]{color:#1b5e20}.row-container[_ngcontent-%COMP%]{position:relative;min-height:5em}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.modal-footer[_ngcontent-%COMP%]{border-top:none;padding-top:0;padding-bottom:.5rem}.form-control[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important;font-size:1.2rem}.row-custom[_ngcontent-%COMP%]{padding-top:.4rem;padding-bottom:.4rem}
+/*# sourceMappingURL=add-input.component-T3UICTP5.css.map */`]});let t=i;return t})();var Hr=t=>({"is-invalid":t});function F1(t,i){t&1&&(c(0,"div"),b(1," Nombre es requerido. "),s())}function I1(t,i){t&1&&(c(0,"div"),b(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),s())}function A1(t,i){if(t&1&&(c(0,"div",51),O(1,F1,2,0,"div",52)(2,I1,2,0,"div",52),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.productForm.get("name"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.productForm.get("name"))==null||e.errors==null)&&e.errors.required)&&((e=o.productForm.get("name"))==null||e.errors==null?null:e.errors.pattern))}}function M1(t,i){if(t&1&&(c(0,"option",53),b(1),s()),t&2){let n=i.$implicit;g("value",n),h(),pt(" ",n," ")}}function N1(t,i){t&1&&(c(0,"div"),b(1," Tipo es requerido. "),s())}function T1(t,i){if(t&1&&(c(0,"div",54),O(1,N1,2,0,"div",52),s()),t&2){let n,e=V();h(),g("ngIf",(n=e.productForm.get("type"))==null||n.errors==null?null:n.errors.required)}}function P1(t,i){if(t&1&&(c(0,"option",53),b(1),s()),t&2){let n=i.$implicit;g("value",n),h(),pt(" ",n," ")}}function L1(t,i){t&1&&(c(0,"div"),b(1," Es necesario ingresar una cantidad. "),s())}function O1(t,i){t&1&&(c(0,"div"),b(1," La cantidad debe ser un n\xFAmero v\xE1lido mayor a 0. "),s())}function k1(t,i){if(t&1&&(c(0,"div",55),O(1,L1,2,0,"div",52)(2,O1,2,0,"div",52),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.productForm.get("quantity"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.productForm.get("quantity"))==null||e.errors==null)&&e.errors.required)&&((e=o.productForm.get("quantity"))==null||e.errors==null?null:e.errors.invalidQuantity))}}function D1(t,i){t&1&&(c(0,"div"),b(1," Ingrese una unidad. "),s())}function R1(t,i){if(t&1&&(c(0,"div",56),O(1,D1,2,0,"div",52),s()),t&2){let n,e=V();h(),g("ngIf",(n=e.productForm.get("unit"))==null||n.errors==null?null:n.errors.required)}}function V1(t,i){t&1&&(c(0,"div"),b(1," Es necesario ingresar un Precio. "),s())}function q1(t,i){t&1&&(c(0,"div"),b(1," El Precio debe ser un n\xFAmero v\xE1lido y mayor que cero. "),s())}function B1(t,i){if(t&1&&(c(0,"div",51),O(1,V1,2,0,"div",52)(2,q1,2,0,"div",52),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.productForm.get("cost"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.productForm.get("cost"))==null||e.errors==null)&&e.errors.required)&&((e=o.productForm.get("cost"))==null||e.errors==null?null:e.errors.invalidQuantity))}}function j1(t,i){t&1&&(c(0,"div",51),b(1," Se necesita una Fecha de Vencimiento. "),s())}function U1(t,i){if(t&1&&(c(0,"option",53),b(1),s()),t&2){let n=i.$implicit;g("value",n.id),h(),pt(" ",n.name," ")}}function z1(t,i){t&1&&(c(0,"div",51),b(1," Se necesita un Provedor. "),s())}function H1(t,i){t&1&&(c(0,"div",51),b(1," Descripcion no admite simbolos. "),s())}function G1(t,i){t&1&&(c(0,"div"),b(1," El tipo es requerido. "),s())}function W1(t,i){t&1&&(c(0,"div"),b(1," El tipo no debe contener n\xFAmeros ni s\xEDmbolos. "),s())}function $1(t,i){if(t&1&&(c(0,"div",54),O(1,G1,2,0,"div",52)(2,W1,2,0,"div",52),s()),t&2){let n,e,o=V(2);h(),g("ngIf",(n=o.addTypeForm.get("newType"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",(e=o.addTypeForm.get("newType"))==null||e.errors==null?null:e.errors.pattern)}}function K1(t,i){if(t&1){let n=Re();c(0,"div",2)(1,"div",3)(2,"div",57)(3,"div",5)(4,"h1",58),b(5," Agregar Tipo "),s(),c(6,"button",59),ee("click",function(){me(n);let o=V();return fe(o.closeAddTypeModal())}),s()(),c(7,"form",8,1),ee("ngSubmit",function(){me(n);let o=V();return fe(o.addType())}),c(9,"div",9)(10,"div",45)(11,"label",60),b(12,"Nuevo Tipo"),s(),H(13,"input",61),O(14,$1,3,2,"div",24),s()(),c(15,"div",62)(16,"button",63),ee("click",function(){me(n);let o=V();return fe(o.closeAddTypeModal())}),b(17," CANCELAR "),s(),c(18,"button",64),b(19," GUARDAR "),s()()()()()()}if(t&2){let n,e,o=ct(8),r=V();h(7),g("formGroup",r.addTypeForm),h(6),g("ngClass",_e(3,Hr,(((n=r.addTypeForm.get("newType"))==null?null:n.touched)||o.submitted)&&((n=r.addTypeForm.get("newType"))==null?null:n.invalid))),h(),g("ngIf",(((e=r.addTypeForm.get("newType"))==null?null:e.touched)||o.submitted)&&((e=r.addTypeForm.get("newType"))==null?null:e.invalid))}}var Fm=(()=>{let i=class i{constructor(e,o,r,a){this.RawMaterialsServices=e,this.formBuilder=o,this.InventoryService=r,this.providersService=a,this.close=new lt,this.providers=[],this.units=[],this.inventoryTypes=[],this.addTypeModal=!1,this.isRawMaterial=!1,this.avaibleFreezed=!1,this.productForm=this.formBuilder.group({name:["",[oe.required]],type:["",[oe.required,oe.pattern("^[a-zA-Z ]*$")]],quantity:["",[oe.required,Br]],unit:["",[oe.required]],cost:["",[oe.required,Br]],description:["",[oe.pattern(/^[a-zA-Z0-9\s]+$/)]],freezed:[!1],expirationDate:[{value:"",disabled:!0},[oe.required]],provider:["",[oe.required]]}),this.addTypeForm=this.formBuilder.group({newType:["",[oe.required,oe.pattern("^[a-zA-Z ]*$")]]})}ngOnInit(){this.InventoryService.chargeRawMaterialTypes(),this.getProviders(),this.loadProductTypes(),this.units=Object.values(nn),this.productForm.get("freezed")?.valueChanges.subscribe(e=>{this.updateExpirationDateState(e)})}closeModal(){this.close.emit()}openAddTypeModal(){this.addTypeModal=!0}closeAddTypeModal(){this.addTypeModal=!1}addType(){if(this.addTypeForm.valid){let e=this.addTypeForm.value.newType;this.InventoryService.addRawMaterialType(e),this.closeAddTypeModal()}else console.error("Formulario de tipo inv\xE1lido.")}onSubmit(){let e=this.productForm.get("provider")?.value,o=this.providers.find(r=>Number(r.id)===Number(e));if(this.productForm.valid){let r={name:this.productForm.get("name")?.value,type:this.productForm.get("type")?.value,quantity:this.productForm.get("quantity")?.value,unit:this.productForm.get("unit")?.value,cost:this.productForm.get("cost")?.value,descripction:this.productForm.get("description")?.value||"",freeze:this.productForm.get("freezed")?.value,expirationDate:this.productForm.get("expirationDate")?.value||"",provider:o||{}};this.RawMaterialsServices.createRawMaterial(r).subscribe(()=>{this.closeModal()},a=>{console.error("Error al crear la materia prima",a)})}}getProviders(){this.providersService.getProviders().subscribe(e=>{this.providers=e.sort((o,r)=>o.name.localeCompare(r.name))})}loadProductTypes(){this.InventoryService.getInputsTypes().subscribe(e=>{this.inventoryTypes=e.sort((o,r)=>o.localeCompare(r))})}updateExpirationDateState(e){let o=this.productForm.get("expirationDate");e?o?.enable():o?.disable()}};i.\u0275fac=function(o){return new(o||i)(se(Ur),se(Vt),se(zr),se(An))},i.\u0275cmp=ke({type:i,selectors:[["app-add-raw-material"]],outputs:{close:"close"},standalone:!0,features:[Ve],decls:104,vars:40,consts:[["aux","ngForm"],["aux2","ngForm"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content","modal-content-custom"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[3,"ngSubmit","formGroup"],[1,"modal-body"],[1,"row"],[1,"col"],[1,"form-group","row-container"],[1,"row","align-items-center"],[1,"col-2"],["for","name"],["type","text","id","name","name","name","formControlName","name","placeholder","Nombre",1,"form-control",3,"ngClass"],[1,"error-container"],["class","text-danger",4,"ngIf"],["for","type",1,"mb-0"],["id","type","formControlName","type","aria-label","Type Selection","placeholder","Seleccione un tipo",1,"form-select","me-2",3,"ngClass"],["value","","disabled","","selected",""],[3,"value",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-custom",3,"click"],["class","text-danger mt-1",4,"ngIf"],["for","quantity"],["type","text","id","quantity","name","quantity","formControlName","quantity","placeholder","0000",1,"form-control",3,"ngClass"],["for","unit"],["id","unit","formControlName","unit","aria-label","Unit Selection",1,"form-select","me-2",3,"ngClass"],[1,"row","error-container","align-items-center"],["class","col-8 text-danger",4,"ngIf"],["class","col text-danger",4,"ngIf"],["for","cost"],[1,"input-group","mb-3"],[1,"input-group-text"],["type","text","id","cost","name","cost","formControlName","cost","aria-label","Precio","placeholder","00000.00",1,"form-control",3,"ngClass"],[1,"col-3"],[1,"form-check","form-switch","d-flex","align-items-center"],["for","freezed",1,"form-check-label","me-3"],["type","checkbox","data-toggle","switchbutton","id","freezed","name","freezed","formControlName","freezed","checked","","data-onstyle","success",1,"form-check-input",3,"ngClass"],[1,"col-4"],["for","expirationDate"],["type","datetime-local","id","expirationDate","formControlName","expirationDate",1,"form-control",3,"ngClass"],["for","provider"],["id","provider","formControlName","provider","aria-label","Provider Selection","placeholder","Seleccione un proveedor",1,"form-select","me-2",3,"ngClass"],[1,"form-group"],["for","desscription"],["type","text","id","descripcion","name","description","formControlName","description",1,"form-control","desc",3,"ngClass"],[1,"modal-footer","justify-content-center"],["type","submit",1,"btn","btn-custom"],["class","modal modal-bg fade show","tabindex","-1","style","display: block","aria-modal","true","role","dialog",4,"ngIf"],[1,"text-danger"],[4,"ngIf"],[3,"value"],[1,"text-danger","mt-1"],[1,"col-8","text-danger"],[1,"col","text-danger"],[1,"modal-content"],["id","confirmDeleteModalLabel",1,"modal-title","fs-5"],["type","button",1,"btn-close",3,"click"],["for","newType"],["type","text","id","newType","formControlName","newType","placeholder","Ingrese el nuevo tipo",1,"form-control",3,"ngClass"],[1,"modal-footer"],["type","button",1,"btn","btn-secondary",3,"click"],["type","submit",1,"btn","btn-success"]],template:function(o,r){if(o&1){let a=Re();c(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"h5",6),b(5,"Agregar Materia Prima"),s(),c(6,"button",7),ee("click",function(){return me(a),fe(r.closeModal())}),s()(),c(7,"form",8,0),ee("ngSubmit",function(){return me(a),fe(r.onSubmit())}),c(9,"div",9)(10,"div",10)(11,"div",11)(12,"div",12)(13,"div",13)(14,"div",14)(15,"label",15),b(16,"Nombre"),s()(),c(17,"div",11),H(18,"input",16),s(),c(19,"div",17),O(20,A1,3,2,"div",18),s()()(),c(21,"div",12)(22,"div",13)(23,"div",14)(24,"label",19),b(25,"Tipo"),s()(),c(26,"div",11)(27,"select",20)(28,"option",21),b(29," Selecciona un tipo "),s(),O(30,M1,2,2,"option",22),s()(),c(31,"div",11)(32,"button",23),ee("click",function(){return me(a),fe(r.openAddTypeModal())}),b(33," Agregar Tipo "),s()()(),c(34,"div",17),O(35,T1,2,1,"div",24),s()(),c(36,"div",12)(37,"div",13)(38,"div",14)(39,"label",25),b(40,"Cantidad"),s()(),c(41,"div",11),H(42,"input",26),s(),c(43,"div",14)(44,"label",27),b(45,"Unidad"),s()(),c(46,"div",14)(47,"select",28)(48,"option",21),b(49,"..."),s(),O(50,P1,2,2,"option",22),s()()(),c(51,"div",29),O(52,k1,3,2,"div",30)(53,R1,2,1,"div",31),s()()(),c(54,"div",11)(55,"div",12)(56,"div",13)(57,"div",14)(58,"label",32),b(59,"Precio Unitario"),s()(),c(60,"div",11)(61,"div",33)(62,"span",34),b(63,"$"),s(),H(64,"input",35),s()(),c(65,"div",17),O(66,B1,3,2,"div",18),s()()(),c(67,"div",12)(68,"div",13)(69,"div",36)(70,"div",37)(71,"label",38),b(72,"Freezar"),s(),H(73,"input",39),s()(),c(74,"div",40)(75,"label",41),b(76,"Fecha de Vencimiento:"),s()(),c(77,"div",11),H(78,"input",42),s(),c(79,"div",17),O(80,j1,2,0,"div",18),s()()(),c(81,"div",12)(82,"div",13)(83,"div",14)(84,"label",43),b(85,"Proveedor"),s()(),c(86,"div",11)(87,"select",44)(88,"option",21),b(89," Seleccione un proveedor "),s(),O(90,U1,2,2,"option",22),s()(),c(91,"div",17),O(92,z1,2,0,"div",18),s()()()(),c(93,"div",45)(94,"label",46),b(95,"Descripcion"),s(),c(96,"textarea",47),b(97,"              "),s(),c(98,"div",17),O(99,H1,2,0,"div",18),s()()()(),c(100,"div",48)(101,"button",49),b(102,"GUARDAR"),s()()()()()(),O(103,K1,20,5,"div",50)}if(o&2){let a,d,p,_,y,w,S,v,M,F,k,I,L,z,$,J,re,de=ct(8);h(7),g("formGroup",r.productForm),h(11),g("ngClass",_e(22,Hr,(((a=r.productForm.get("name"))==null?null:a.dirty)||((a=r.productForm.get("name"))==null?null:a.touched)||de.submitted)&&((a=r.productForm.get("name"))==null?null:a.invalid))),h(2),g("ngIf",de.submitted||((d=r.productForm.get("name"))==null?null:d.invalid)&&(((d=r.productForm.get("name"))==null?null:d.dirty)||((d=r.productForm.get("name"))==null?null:d.touched))),h(7),g("ngClass",_e(24,Hr,(((p=r.productForm.get("type"))==null?null:p.dirty)||((p=r.productForm.get("type"))==null?null:p.touched)||de.submitted)&&((p=r.productForm.get("type"))==null?null:p.invalid))),h(3),g("ngForOf",r.inventoryTypes),h(5),g("ngIf",de.submitted&&((_=r.productForm.get("type"))==null?null:_.invalid)),h(7),g("ngClass",_e(26,Hr,(((y=r.productForm.get("quantity"))==null?null:y.dirty)||((y=r.productForm.get("quantity"))==null?null:y.touched)||de.submitted)&&((y=r.productForm.get("quantity"))==null?null:y.invalid))),h(5),g("ngClass",_e(28,Hr,(((w=r.productForm.get("unit"))==null?null:w.dirty)||((w=r.productForm.get("unit"))==null?null:w.touched)||de.submitted)&&((w=r.productForm.get("unit"))==null?null:w.invalid))),h(3),g("ngForOf",r.units),h(2),g("ngIf",de.submitted||((S=r.productForm.get("quantity"))==null?null:S.invalid)&&(((S=r.productForm.get("quantity"))==null?null:S.dirty)||((S=r.productForm.get("quantity"))==null?null:S.touched))),h(),g("ngIf",de.submitted||((v=r.productForm.get("unit"))==null?null:v.invalid)&&(((v=r.productForm.get("unit"))==null?null:v.dirty)||((v=r.productForm.get("unit"))==null?null:v.touched))),h(11),g("ngClass",_e(30,Hr,(((M=r.productForm.get("cost"))==null?null:M.dirty)||((M=r.productForm.get("cost"))==null?null:M.touched)||de.submitted)&&((M=r.productForm.get("cost"))==null?null:M.invalid))),h(2),g("ngIf",de.submitted||((F=r.productForm.get("cost"))==null?null:F.invalid)&&(((F=r.productForm.get("cost"))==null?null:F.dirty)||((F=r.productForm.get("cost"))==null?null:F.touched))),h(7),g("ngClass",_e(32,Hr,(((k=r.productForm.get("checkbox"))==null?null:k.dirty)||((k=r.productForm.get("checkbox"))==null?null:k.touched)||de.submitted)&&((k=r.productForm.get("checkbox"))==null?null:k.invalid))),h(5),g("ngClass",_e(34,Hr,(((I=r.productForm.get("expirationDate"))==null?null:I.dirty)||((I=r.productForm.get("expirationDate"))==null?null:I.touched)||de.submitted)&&((I=r.productForm.get("expirationDate"))==null?null:I.invalid))),h(2),g("ngIf",((L=r.productForm.get("expirationDate"))==null?null:L.invalid)&&(((L=r.productForm.get("expirationDate"))==null?null:L.dirty)||((L=r.productForm.get("expirationDate"))==null?null:L.touched))),h(7),g("ngClass",_e(36,Hr,(((z=r.productForm.get("provider"))==null?null:z.dirty)||((z=r.productForm.get("provider"))==null?null:z.touched)||de.submitted)&&((z=r.productForm.get("provider"))==null?null:z.invalid))),h(3),g("ngForOf",r.providers),h(2),g("ngIf",de.submitted&&(($=r.productForm.get("provider"))==null?null:$.invalid)||(($=r.productForm.get("provider"))==null?null:$.invalid)&&((($=r.productForm.get("provider"))==null?null:$.dirty)||(($=r.productForm.get("provider"))==null?null:$.touched))),h(4),g("ngClass",_e(38,Hr,(((J=r.productForm.get("descripcion"))==null?null:J.dirty)||((J=r.productForm.get("descripcion"))==null?null:J.touched)||de.submitted)&&((J=r.productForm.get("descripcion"))==null?null:J.invalid))),h(3),g("ngIf",((re=r.productForm.get("description"))==null?null:re.invalid)&&((re=r.productForm.get("description"))==null?null:re.dirty)&&((re=r.productForm.get("description"))==null?null:re.value)),h(4),g("ngIf",r.addTypeModal)}},dependencies:[Ze,St,Jt,Xe,Ft,Rt,Gi,Wi,At,fr,Oi,Tt,Dt,Pt,Ot],styles:[`@charset "UTF-8";.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content-custom[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:496px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.desc[_ngcontent-%COMP%]{height:6rem}.form-check[_ngcontent-%COMP%], .form-swicth[_ngcontent-%COMP%]{padding-left:0}.form-check-label[_ngcontent-%COMP%]{margin-right:10px}.form-swicth[_ngcontent-%COMP%], .form-check-input[_ngcontent-%COMP%]{margin-left:.15rem}.text-custom[_ngcontent-%COMP%]{color:#1b5e20}.row-container[_ngcontent-%COMP%]{position:relative;min-height:5em}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.modal-footer[_ngcontent-%COMP%]{border-top:none;padding-top:0;padding-bottom:.5rem}.form-control[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important;font-size:1.2rem}.row-custom[_ngcontent-%COMP%]{padding-top:.4rem;padding-bottom:.4rem}
+/*# sourceMappingURL=add-raw-material.component-CV5VOQ7S.css.map */`]});let t=i;return t})();var Jn=(()=>{let i=class i{constructor(){this.confirmDeleteModal=!1,this.headerMessage="",this.bodyMessage="",this.confirm=new lt,this.cancel=new lt}closeDeleteModal(){this.cancel.emit()}deleteEntity(){this.confirm.emit()}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=ke({type:i,selectors:[["app-delete-modal"]],inputs:{confirmDeleteModal:"confirmDeleteModal",headerMessage:"headerMessage",bodyMessage:"bodyMessage"},outputs:{confirm:"confirm",cancel:"cancel"},standalone:!0,features:[Ve],decls:15,vars:2,consts:[["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","confirmDeleteModalLabel",1,"modal-title","fs-5"],["type","button",1,"btn-close",3,"click"],[1,"modal-body"],[1,"modal-footer"],["type","button",1,"btn","btn-secondary",3,"click"],["type","button",1,"btn","btn-danger",3,"click"]],template:function(o,r){o&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h1",4),b(5),s(),c(6,"button",5),ee("click",function(){return r.closeDeleteModal()}),s()(),c(7,"div",6)(8,"p"),b(9),s()(),c(10,"div",7)(11,"button",8),ee("click",function(){return r.closeDeleteModal()}),b(12," CANCELAR "),s(),c(13,"button",9),ee("click",function(){return r.deleteEntity()}),b(14," CONFIRMAR "),s()()()()()),o&2&&(h(5),pt(" ",r.headerMessage," "),h(4),Ut(r.bodyMessage))},styles:[`.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-header[_ngcontent-%COMP%]{background-color:#df2437}.modal-body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:.8rem}
+/*# sourceMappingURL=delete-modal.component-L4VGCQFL.css.map */`]});let t=i;return t})();var Y1=t=>({"is-invalid":t});function Q1(t,i){t&1&&(c(0,"div"),b(1," Nombre es requerido. "),s())}function J1(t,i){t&1&&(c(0,"div"),b(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),s())}function Z1(t,i){if(t&1&&(c(0,"div",58),O(1,Q1,2,0,"div",59)(2,J1,2,0,"div",59),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.productForm.get("name"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.productForm.get("name"))==null||e.errors==null)&&e.errors.required)&&((e=o.productForm.get("name"))==null||e.errors==null?null:e.errors.pattern))}}function X1(t,i){if(t&1&&(c(0,"option",60),b(1),s()),t&2){let n=i.$implicit;g("value",n),h(),pt(" ",n," ")}}function eg(t,i){t&1&&(c(0,"div"),b(1," Tipo es requerido. "),s())}function tg(t,i){if(t&1&&(c(0,"div",61),O(1,eg,2,0,"div",59),s()),t&2){let n,e=V();h(),g("ngIf",(n=e.productForm.get("type"))==null||n.errors==null?null:n.errors.required)}}function ig(t,i){if(t&1&&(c(0,"option",60),b(1),s()),t&2){let n=i.$implicit;g("value",n),h(),pt(" ",n," ")}}function ng(t,i){t&1&&(c(0,"div"),b(1," Es necesario ingresar una cantidad. "),s())}function rg(t,i){t&1&&(c(0,"div"),b(1," La cantidad debe ser un n\xFAmero v\xE1lido mayor a 0. "),s())}function og(t,i){if(t&1&&(c(0,"div",62),O(1,ng,2,0,"div",59)(2,rg,2,0,"div",59),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.productForm.get("quantity"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.productForm.get("quantity"))==null||e.errors==null)&&e.errors.required)&&((e=o.productForm.get("quantity"))==null||e.errors==null?null:e.errors.invalidQuantity))}}function ag(t,i){t&1&&(c(0,"div"),b(1," Ingrese una unidad. "),s())}function lg(t,i){if(t&1&&(c(0,"div",63),O(1,ag,2,0,"div",59),s()),t&2){let n,e=V();h(),g("ngIf",(n=e.productForm.get("unit"))==null||n.errors==null?null:n.errors.required)}}function sg(t,i){t&1&&(c(0,"div"),b(1," Es necesario ingresar un Precio. "),s())}function cg(t,i){t&1&&(c(0,"div"),b(1," El Precio debe ser un n\xFAmero v\xE1lido y mayor que cero. "),s())}function dg(t,i){if(t&1&&(c(0,"div",58),O(1,sg,2,0,"div",59)(2,cg,2,0,"div",59),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.productForm.get("cost"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.productForm.get("cost"))==null||e.errors==null)&&e.errors.required)&&((e=o.productForm.get("cost"))==null||e.errors==null?null:e.errors.invalidQuantity))}}function ug(t,i){t&1&&(c(0,"div",58),b(1," Se necesita una Fecha de Vencimiento. "),s())}function pg(t,i){if(t&1&&(c(0,"option",60),b(1),s()),t&2){let n=i.$implicit;g("value",n.id),h(),pt(" ",n.name," ")}}function mg(t,i){t&1&&(c(0,"div",58),b(1," Se necesita un Provedor. "),s())}function fg(t,i){t&1&&(c(0,"div",58),b(1," Descripcion no admite simbolos. "),s())}function hg(t,i){t&1&&(c(0,"div"),b(1," El tipo es requerido. "),s())}function gg(t,i){t&1&&(c(0,"div"),b(1," El tipo no debe contener n\xFAmeros ni s\xEDmbolos. "),s())}function vg(t,i){if(t&1&&(c(0,"div",61),O(1,hg,2,0,"div",59)(2,gg,2,0,"div",59),s()),t&2){let n,e,o=V(2);h(),g("ngIf",(n=o.addTypeForm.get("newType"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",(e=o.addTypeForm.get("newType"))==null||e.errors==null?null:e.errors.pattern)}}function _g(t,i){if(t&1){let n=Re();c(0,"div",2)(1,"div",3)(2,"div",64)(3,"div",65)(4,"h1",66),b(5," Agregar Tipo "),s(),c(6,"button",67),ee("click",function(){me(n);let o=V();return fe(o.closeAddTypeModal())}),s()(),c(7,"form",15,1),ee("ngSubmit",function(){me(n);let o=V();return fe(o.addType())}),c(9,"div",16)(10,"div",50)(11,"label",68),b(12,"Nuevo Tipo"),s(),H(13,"input",69),O(14,vg,3,2,"div",30),s()(),c(15,"div",70)(16,"button",71),ee("click",function(){me(n);let o=V();return fe(o.closeAddTypeModal())}),b(17," CANCELAR "),s(),c(18,"button",72),b(19," GUARDAR "),s()()()()()()}if(t&2){let n,e,o=ct(8),r=V();h(7),g("formGroup",r.addTypeForm),h(6),g("ngClass",_e(3,Y1,(((n=r.addTypeForm.get("newType"))==null?null:n.touched)||o.submitted)&&((n=r.addTypeForm.get("newType"))==null?null:n.invalid))),h(),g("ngIf",(((e=r.addTypeForm.get("newType"))==null?null:e.touched)||o.submitted)&&((e=r.addTypeForm.get("newType"))==null?null:e.invalid))}}function bg(t,i){if(t&1){let n=Re();c(0,"app-delete-modal",73),ee("cancel",function(){me(n);let o=V();return fe(o.closeDeleteModal())})("confirm",function(){me(n);let o=V();return fe(o.deleteProduct())}),s()}t&2&&g("headerMessage","Eliminar Proveedor")("bodyMessage","\xBFEst\xE1s seguro que deseas borrar este Proveedor?")}var Im=(()=>{let i=class i{constructor(e,o,r,a){this.RawMaterialsServices=e,this.formBuilder=o,this.InventoryService=r,this.ProvidersService=a,this.productInput={},this.close=new lt,this.inventoryTypes=[],this.inputsTypes=[],this.units=[],this.addTypeModal=!1,this.providers=[],this.avaibleFreezed=!1,this.isToggled=!1,this.confirmDeleteModal=!1,this.productForm=this.formBuilder.group({name:[{value:"",disabled:!this.isToggled},[oe.required]],type:[{value:"",disabled:!this.isToggled},[oe.required,oe.pattern("^[a-zA-Z ]*$")]],quantity:[{value:"",disabled:!this.isToggled},[oe.required]],unit:[{value:"",disabled:!this.isToggled},[oe.required]],cost:[{value:"",disabled:!this.isToggled},[oe.required,Br]],description:[{value:"",disabled:!this.isToggled},[oe.pattern(/^[a-zA-Z0-9\s]+$/)]],freezed:[{value:!1,disabled:!0},[oe.required]],expirationDate:[{value:"",disabled:!0}],provider:[{value:"",disabled:!this.isToggled},[oe.required]]},{validators:yc("expirationDate","freezed")}),this.addTypeForm=this.formBuilder.group({newType:["",[oe.required,oe.pattern("^[a-zA-Z ]*$")]]})}ngOnInit(){this.InventoryService.chargeRawMaterialTypes(),this.getProviders(),this.loadProductTypes(),this.units=Object.values(nn),this.productForm.get("type")?.valueChanges.subscribe(()=>{this.updateFreezedState()}),this.productForm.get("freezed")?.valueChanges.subscribe(e=>{this.updateExpirationDateState(e)})}ngOnChanges(e){e.productInput&&e.productInput.currentValue&&this.productForm.patchValue(this.transformProductInput(this.productInput))}toggleEditMode(){this.isToggled=!this.isToggled,this.isToggled?this.productForm.enable():this.productForm.disable(),this.updateFreezedState()}closeModal(){this.close.emit()}confirmDelete(){this.confirmDeleteModal=!0}closeDeleteModal(){this.confirmDeleteModal=!1}deleteProduct(){this.RawMaterialsServices.deleteRawMaterial(this.productInput.id).subscribe(()=>{this.closeModal()},e=>{console.error("Error al eliminar la materia prima",e)})}openAddTypeModal(){this.addTypeModal=!0}closeAddTypeModal(){this.addTypeModal=!1}addType(){if(this.addTypeForm.valid){let e=this.addTypeForm.value.newType;this.InventoryService.addRawMaterialType(e),this.closeAddTypeModal()}else console.error("Formulario de tipo inv\xE1lido.")}onSubmit(){if(this.productForm.valid){let e=this.productForm.get("provider")?.value,o=this.providers.find(a=>Number(a.id)===Number(e)),r={id:this.productInput.id,name:this.productForm.get("name")?.value,type:this.productForm.get("type")?.value,quantity:this.productForm.get("quantity")?.value,unit:this.productForm.get("unit")?.value,cost:this.productForm.get("cost")?.value,descripction:this.productForm.get("description")?.value||"",freeze:this.productForm.get("freezed")?.value,expirationDate:this.productForm.get("expirationDate")?.value,provider:o||{},admissionDate:sl(this.productInput.admissionDate),lastModificationDate:sl(this.productInput.lastModificationDate)};this.RawMaterialsServices.updateRawMaterial(r).subscribe(()=>{this.closeModal()},a=>{console.error("Error al actualizar la materia prima",a)})}}transformProductInput(e){return{name:e.name??"",type:e.type??"",quantity:e.quantity?String(e.quantity):"",unit:e.unit??"",cost:e.cost?String(e.cost):"",freezed:e.freeze??!1,expirationDate:Vr(e.expirationDate),provider:e.provider.id??""}}getProviders(){this.ProvidersService.getProviders().subscribe(e=>{this.providers=e.sort((o,r)=>o.name.localeCompare(r.name))})}loadProductTypes(){this.InventoryService.getInputsTypes().subscribe(e=>{this.inventoryTypes=e.sort((o,r)=>o.localeCompare(r))})}updateExpirationDateState(e){let o=this.productForm.get("expirationDate");e?o?.enable():o?.disable()}updateFreezedState(){let e=this.productForm.get("type"),o=this.productForm.get("freezed");if(e&&o){let r=e.value;this.inputsTypes.includes(r)?(o.disable(),o.value&&o.setValue(!1)):o.enable()}}};i.\u0275fac=function(o){return new(o||i)(se(Ur),se(Vt),se(zr),se(An))},i.\u0275cmp=ke({type:i,selectors:[["app-raw-material"]],inputs:{productInput:"productInput"},outputs:{close:"close"},standalone:!0,features:[qi,Ve],decls:115,vars:16,consts:[["aux","ngForm"],["aux2","ngForm"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content","modal-content-custom"],[1,"modal-header","d-flex","justify-content-center","align-items-center"],[1,"row","w-100"],[1,"col"],[1,"modal-title"],[1,"col","d-flex","justify-content-center"],[1,"form-check","form-switch"],["for","flexSwitchCheckDefault",1,"form-check-label"],["type","checkbox","id","flexSwitchCheckDefault",1,"form-check-input","custom-switch",3,"change"],[1,"col","d-flex","justify-content-end"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[3,"ngSubmit","formGroup"],[1,"modal-body"],[1,"row"],[1,"form-group","row-container"],[1,"row","align-items-center"],[1,"col-2"],["for","name"],["type","text","id","name","name","name","formControlName","name",1,"form-control"],[1,"error-container"],["class","text-danger",4,"ngIf"],["for","type",1,"mb-0"],["id","type","formControlName","type","aria-label","Type Selection","placeholder","Seleccione un tipo",1,"form-select","me-2"],["value","","disabled","","selected",""],[3,"value",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-custom",3,"click","disabled"],["class","text-danger mt-1",4,"ngIf"],["for","quantity"],["type","number","id","quantity","name","quantity","formControlName","quantity",1,"form-control"],["for","unit"],["id","unit","formControlName","unit","aria-label","Unit Selection",1,"form-select","me-2"],[1,"row","error-container","align-items-center"],["class","col-8 text-danger",4,"ngIf"],["class","col text-danger",4,"ngIf"],["for","cost"],[1,"input-group","mb-3"],[1,"input-group-text"],["type","text","id","cost","name","cost","formControlName","cost","aria-label","Costo",1,"form-control"],[1,"col-3"],[1,"form-check","form-switch","d-flex","align-items-center"],["for","freezed",1,"form-check-label","me-3"],["type","checkbox","data-toggle","switchbutton","id","freezed","name","freezed","formControlName","freezed","checked","","data-onstyle","success",1,"form-check-input"],[1,"col-4"],["for","expirationDate"],["type","datetime-local","id","expirationDate","formControlName","expirationDate",1,"form-control"],["id","provider","formControlName","provider","aria-label","Provider Selection",1,"form-select","me-2"],[1,"form-group"],["for","desscription"],["type","text","id","descripcion","name","description","formControlName","description",1,"form-control","desc"],[1,"modal-footer","justify-content-center"],["type","submit",1,"btn","btn-custom",3,"disabled"],["type","button",1,"btn","btn-danger",3,"click"],["class","modal modal-bg fade show","tabindex","-1","style","display: block","aria-modal","true","role","dialog",4,"ngIf"],[3,"headerMessage","bodyMessage","cancel","confirm",4,"ngIf"],[1,"text-danger"],[4,"ngIf"],[3,"value"],[1,"text-danger","mt-1"],[1,"col-8","text-danger"],[1,"col","text-danger"],[1,"modal-content"],[1,"modal-header"],["id","confirmDeleteModalLabel",1,"modal-title","fs-5"],["type","button",1,"btn-close",3,"click"],["for","newType"],["type","text","id","newType","formControlName","newType","placeholder","Ingrese el nuevo tipo",1,"form-control",3,"ngClass"],[1,"modal-footer"],["type","button",1,"btn","btn-secondary",3,"click"],["type","submit",1,"btn","btn-success"],[3,"cancel","confirm","headerMessage","bodyMessage"]],template:function(o,r){if(o&1){let a=Re();c(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6)(5,"div",7)(6,"h5",8),b(7,"Detalles Existencia"),s()(),c(8,"div",9)(9,"div",10)(10,"label",11),b(11,"Editar"),s(),c(12,"input",12),ee("change",function(){return me(a),fe(r.toggleEditMode())}),s()()(),c(13,"div",13)(14,"button",14),ee("click",function(){return me(a),fe(r.closeModal())}),s()()()(),c(15,"form",15,0),ee("ngSubmit",function(){return me(a),fe(r.onSubmit())}),c(17,"div",16)(18,"div",17)(19,"div",7)(20,"div",18)(21,"div",19)(22,"div",20)(23,"label",21),b(24,"Nombre"),s()(),c(25,"div",7),H(26,"input",22),s(),c(27,"div",23),O(28,Z1,3,2,"div",24),s()()(),c(29,"div",18)(30,"div",19)(31,"div",20)(32,"label",25),b(33,"Tipo"),s()(),c(34,"div",7)(35,"select",26)(36,"option",27),b(37," Selecciona un tipo "),s(),O(38,X1,2,2,"option",28),s()(),c(39,"div",7)(40,"button",29),ee("click",function(){return me(a),fe(r.openAddTypeModal())}),b(41," Agregar Tipo "),s()()(),c(42,"div",23),O(43,tg,2,1,"div",30),s()(),c(44,"div",18)(45,"div",19)(46,"div",20)(47,"label",31),b(48,"Cantidad"),s()(),c(49,"div",7),H(50,"input",32),s(),c(51,"div",20)(52,"label",33),b(53,"Unidad"),s()(),c(54,"div",20)(55,"select",34)(56,"option",27),b(57,"..."),s(),O(58,ig,2,2,"option",28),s()()(),c(59,"div",35),O(60,og,3,2,"div",36)(61,lg,2,1,"div",37),s()()(),c(62,"div",7)(63,"div",18)(64,"div",19)(65,"div",20)(66,"label",38),b(67,"Precio Unitario"),s()(),c(68,"div",7)(69,"div",39)(70,"span",40),b(71,"$"),s(),H(72,"input",41),s()(),c(73,"div",23),O(74,dg,3,2,"div",24),s()()(),c(75,"div",18)(76,"div",19)(77,"div",42)(78,"div",43)(79,"label",44),b(80,"Freezar"),s(),H(81,"input",45),s()(),c(82,"div",46)(83,"label",47),b(84,"Fecha de Vencimiento:"),s()(),c(85,"div",7),H(86,"input",48),s(),c(87,"div",23),O(88,ug,2,0,"div",24),s()()(),c(89,"div",18)(90,"div",19)(91,"div",20)(92,"label",47),b(93,"Proveedor"),s()(),c(94,"div",7)(95,"select",49)(96,"option",27),b(97,"..."),s(),O(98,pg,2,2,"option",28),s()(),c(99,"div",23),O(100,mg,2,0,"div",24),s()()()(),c(101,"div",50)(102,"label",51),b(103,"Descripcion"),s(),c(104,"textarea",52),b(105,"              "),s(),c(106,"div",23),O(107,fg,2,0,"div",24),s()()()(),c(108,"div",53)(109,"button",54),b(110," GUARDAR "),s(),c(111,"button",55),ee("click",function(){return me(a),fe(r.confirmDelete())}),b(112," BORRAR "),s()()()()()(),O(113,_g,20,5,"div",56)(114,bg,1,2,"app-delete-modal",57)}if(o&2){let a,d,p,_,y,w,S,v,M=ct(16);h(15),g("formGroup",r.productForm),h(13),g("ngIf",M.submitted||((a=r.productForm.get("name"))==null?null:a.invalid)&&(((a=r.productForm.get("name"))==null?null:a.dirty)||((a=r.productForm.get("name"))==null?null:a.touched))),h(10),g("ngForOf",r.inventoryTypes),h(2),g("disabled",!r.isToggled),h(3),g("ngIf",M.submitted&&((d=r.productForm.get("type"))==null?null:d.invalid)),h(15),g("ngForOf",r.units),h(2),g("ngIf",M.submitted||((p=r.productForm.get("quantity"))==null?null:p.invalid)&&(((p=r.productForm.get("quantity"))==null?null:p.dirty)||((p=r.productForm.get("quantity"))==null?null:p.touched))),h(),g("ngIf",M.submitted||((_=r.productForm.get("unit"))==null?null:_.invalid)&&(((_=r.productForm.get("unit"))==null?null:_.dirty)||((_=r.productForm.get("unit"))==null?null:_.touched))),h(13),g("ngIf",M.submitted||((y=r.productForm.get("cost"))==null?null:y.invalid)&&(((y=r.productForm.get("cost"))==null?null:y.dirty)||((y=r.productForm.get("cost"))==null?null:y.touched))),h(14),g("ngIf",((w=r.productForm.get("expirationDate"))==null?null:w.invalid)&&(((w=r.productForm.get("expirationDate"))==null?null:w.dirty)||((w=r.productForm.get("expirationDate"))==null?null:w.touched))),h(10),g("ngForOf",r.providers),h(2),g("ngIf",M.submitted&&((S=r.productForm.get("provider"))==null?null:S.invalid)||((S=r.productForm.get("provider"))==null?null:S.invalid)&&(((S=r.productForm.get("provider"))==null?null:S.dirty)||((S=r.productForm.get("provider"))==null?null:S.touched))),h(7),g("ngIf",((v=r.productForm.get("description"))==null?null:v.invalid)&&((v=r.productForm.get("description"))==null?null:v.dirty)&&((v=r.productForm.get("description"))==null?null:v.value)),h(2),g("disabled",!r.isToggled),h(4),g("ngIf",r.addTypeModal),h(),g("ngIf",r.confirmDeleteModal)}},dependencies:[Ft,Rt,Gi,Wi,At,fi,fr,Oi,Tt,Dt,Pt,Ot,Ze,St,Jt,Xe,Jn],styles:[`@charset "UTF-8";.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content-custom[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:496px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.desc[_ngcontent-%COMP%]{height:6rem}.form-check[_ngcontent-%COMP%], .form-swicth[_ngcontent-%COMP%]{padding-left:0}.form-check-label[_ngcontent-%COMP%]{margin-right:10px}.form-swicth[_ngcontent-%COMP%], .form-check-input[_ngcontent-%COMP%]{margin-left:.15rem}.text-custom[_ngcontent-%COMP%]{color:#1b5e20}.row-container[_ngcontent-%COMP%]{position:relative;min-height:5em}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.modal-footer[_ngcontent-%COMP%]{border-top:none;padding-top:0;padding-bottom:.5rem}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.custom-switch[_ngcontent-%COMP%]:focus{border-color:#1b5e20;box-shadow:0 0 0 .25rem #1b5e2040}.custom-switch[_ngcontent-%COMP%]:checked{background-color:#88ca5e;border-color:#1b5e20}.custom-switch[_ngcontent-%COMP%]:checked:before{background-color:#fff}
+/*# sourceMappingURL=raw-material.component-LICNCBRN.css.map */`]});let t=i;return t})();var yg=t=>({"is-invalid":t});function Cg(t,i){t&1&&(c(0,"div"),b(1," Nombre es requerido. "),s())}function wg(t,i){t&1&&(c(0,"div"),b(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),s())}function Sg(t,i){if(t&1&&(c(0,"div",52),O(1,Cg,2,0,"div",53)(2,wg,2,0,"div",53),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.productForm.get("name"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.productForm.get("name"))==null||e.errors==null)&&e.errors.required)&&((e=o.productForm.get("name"))==null||e.errors==null?null:e.errors.pattern))}}function xg(t,i){if(t&1&&(c(0,"option",54),b(1),s()),t&2){let n=i.$implicit;g("value",n),h(),pt(" ",n," ")}}function Eg(t,i){t&1&&(c(0,"div"),b(1," Tipo es requerido. "),s())}function Fg(t,i){if(t&1&&(c(0,"div",55),O(1,Eg,2,0,"div",53),s()),t&2){let n,e=V();h(),g("ngIf",(n=e.productForm.get("type"))==null||n.errors==null?null:n.errors.required)}}function Ig(t,i){if(t&1&&(c(0,"option",54),b(1),s()),t&2){let n=i.$implicit;g("value",n),h(),pt(" ",n," ")}}function Ag(t,i){t&1&&(c(0,"div"),b(1," Es necesario ingresar una cantidad. "),s())}function Mg(t,i){t&1&&(c(0,"div"),b(1," La cantidad debe ser un n\xFAmero v\xE1lido mayor a 0. "),s())}function Ng(t,i){if(t&1&&(c(0,"div",56),O(1,Ag,2,0,"div",53)(2,Mg,2,0,"div",53),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.productForm.get("quantity"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.productForm.get("quantity"))==null||e.errors==null)&&e.errors.required)&&((e=o.productForm.get("quantity"))==null||e.errors==null?null:e.errors.invalidQuantity))}}function Tg(t,i){t&1&&(c(0,"div"),b(1," Ingrese una unidad. "),s())}function Pg(t,i){if(t&1&&(c(0,"div",57),O(1,Tg,2,0,"div",53),s()),t&2){let n,e=V();h(),g("ngIf",(n=e.productForm.get("unit"))==null||n.errors==null?null:n.errors.required)}}function Lg(t,i){t&1&&(c(0,"div"),b(1," Es necesario ingresar un Precio. "),s())}function Og(t,i){t&1&&(c(0,"div"),b(1," El Precio debe ser un n\xFAmero v\xE1lido y mayor que cero. "),s())}function kg(t,i){if(t&1&&(c(0,"div",52),O(1,Lg,2,0,"div",53)(2,Og,2,0,"div",53),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.productForm.get("cost"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.productForm.get("cost"))==null||e.errors==null)&&e.errors.required)&&((e=o.productForm.get("cost"))==null||e.errors==null?null:e.errors.invalidQuantity))}}function Dg(t,i){if(t&1&&(c(0,"option",54),b(1),s()),t&2){let n=i.$implicit;g("value",n.id),h(),pt(" ",n.name," ")}}function Rg(t,i){t&1&&(c(0,"div",52),b(1," Se necesita un Provedor. "),s())}function Vg(t,i){t&1&&(c(0,"div",52),b(1," Descripcion no admite simbolos. "),s())}function qg(t,i){t&1&&(c(0,"div"),b(1," El tipo es requerido. "),s())}function Bg(t,i){t&1&&(c(0,"div"),b(1," El tipo no debe contener n\xFAmeros ni s\xEDmbolos. "),s())}function jg(t,i){if(t&1&&(c(0,"div",55),O(1,qg,2,0,"div",53)(2,Bg,2,0,"div",53),s()),t&2){let n,e,o=V(2);h(),g("ngIf",(n=o.addTypeForm.get("newType"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",(e=o.addTypeForm.get("newType"))==null||e.errors==null?null:e.errors.pattern)}}function Ug(t,i){if(t&1){let n=Re();c(0,"div",2)(1,"div",3)(2,"div",58)(3,"div",59)(4,"h1",60),b(5," Agregar Tipo "),s(),c(6,"button",61),ee("click",function(){me(n);let o=V();return fe(o.closeAddTypeModal())}),s()(),c(7,"form",15,1),ee("ngSubmit",function(){me(n);let o=V();return fe(o.addType())}),c(9,"div",16)(10,"div",44)(11,"label",62),b(12,"Nuevo Tipo"),s(),H(13,"input",63),O(14,jg,3,2,"div",30),s()(),c(15,"div",64)(16,"button",65),ee("click",function(){me(n);let o=V();return fe(o.closeAddTypeModal())}),b(17," CANCELAR "),s(),c(18,"button",66),b(19," GUARDAR "),s()()()()()()}if(t&2){let n,e,o=ct(8),r=V();h(7),g("formGroup",r.addTypeForm),h(6),g("ngClass",_e(3,yg,(((n=r.addTypeForm.get("newType"))==null?null:n.touched)||o.submitted)&&((n=r.addTypeForm.get("newType"))==null?null:n.invalid))),h(),g("ngIf",(((e=r.addTypeForm.get("newType"))==null?null:e.touched)||o.submitted)&&((e=r.addTypeForm.get("newType"))==null?null:e.invalid))}}function zg(t,i){if(t&1){let n=Re();c(0,"app-delete-modal",67),ee("cancel",function(){me(n);let o=V();return fe(o.closeDeleteModal())})("confirm",function(){me(n);let o=V();return fe(o.deleteProduct())}),s()}t&2&&g("headerMessage","Eliminar Proveedor")("bodyMessage","\xBFEst\xE1s seguro que deseas borrar este Proveedor?")}var Am=(()=>{let i=class i{constructor(e,o,r,a){this.InputsService=e,this.formBuilder=o,this.InventoryService=r,this.ProvidersService=a,this.productInput={},this.close=new lt,this.inventoryTypes=[],this.inputsTypes=[],this.units=[],this.addTypeModal=!1,this.providers=[],this.avaibleFreezed=!1,this.isToggled=!1,this.confirmDeleteModal=!1,this.productForm=this.formBuilder.group({name:[{value:"",disabled:!this.isToggled},[oe.required]],type:[{value:"",disabled:!this.isToggled},[oe.required,oe.pattern("^[a-zA-Z ]*$")]],quantity:[{value:"",disabled:!this.isToggled},[oe.required]],unit:[{value:"",disabled:!this.isToggled},[oe.required]],cost:[{value:"",disabled:!this.isToggled},[oe.required,Br]],description:[{value:"",disabled:!this.isToggled},[oe.pattern(/^[a-zA-Z0-9\s]+$/)]],provider:[{value:"",disabled:!this.isToggled},[oe.required]]},{validators:yc("expirationDate","freezed")}),this.addTypeForm=this.formBuilder.group({newType:["",[oe.required,oe.pattern("^[a-zA-Z ]*$")]]})}ngOnInit(){this.InventoryService.chargeInputsTypes(),this.getProviders(),this.loadProductTypes(),this.InputsService.getInputsTypes().subscribe(e=>this.inputsTypes=e),this.units=Object.values(nn)}ngOnChanges(e){e.productInput&&e.productInput.currentValue&&this.productForm.patchValue(this.transformProductInput(this.productInput))}toggleEditMode(){this.isToggled=!this.isToggled,this.isToggled?this.productForm.enable():this.productForm.disable()}closeModal(){this.close.emit()}confirmDelete(){this.confirmDeleteModal=!0}closeDeleteModal(){this.confirmDeleteModal=!1}deleteProduct(){this.InputsService.deleteInput(this.productInput.id).subscribe(()=>{this.closeModal()},e=>{console.error("Error al eliminar el insumo",e)})}openAddTypeModal(){this.addTypeModal=!0}closeAddTypeModal(){this.addTypeModal=!1}addType(){if(this.addTypeForm.valid){let e=this.addTypeForm.value.newType;this.InventoryService.addInputsType(e),this.InventoryService.getInputsTypes().subscribe(o=>{this.inventoryTypes=o,this.closeAddTypeModal()})}else console.log("Formulario de tipo inv\xE1lido.")}onSubmit(){if(this.productForm.valid){let e=this.productForm.get("provider")?.value,o=this.providers.find(a=>Number(a.id)===Number(e)),r={id:this.productInput.id,name:this.productForm.get("name")?.value,type:this.productForm.get("type")?.value,quantity:this.productForm.get("quantity")?.value,unit:this.productForm.get("unit")?.value,cost:this.productForm.get("cost")?.value,description:this.productForm.get("description")?.value||"",provider:o||{},admissionDate:sl(this.productInput.admissionDate),lastModificationDate:sl(this.productInput.lastModificationDate)};this.InputsService.updateInput(r).subscribe(()=>{this.closeModal()},a=>{console.error("Error al crear el insumo",a)})}else console.error("Formulario inv\xE1lido")}transformProductInput(e){return{name:e.name??"",type:e.type??"",quantity:e.quantity?String(e.quantity):"",unit:e.unit??"",cost:e.cost?String(e.cost):"",freezed:e.freeze??!1,expirationDate:Vr(e.expirationDate),provider:e.provider.id??""}}getProviders(){this.ProvidersService.getProviders().subscribe(e=>{this.providers=e.sort((o,r)=>o.name.localeCompare(r.name))})}loadProductTypes(){this.InventoryService.getInputsTypes().subscribe(e=>{this.inventoryTypes=e.sort((o,r)=>o.localeCompare(r))})}};i.\u0275fac=function(o){return new(o||i)(se(jr),se(Vt),se(zr),se(An))},i.\u0275cmp=ke({type:i,selectors:[["app-inputs"]],inputs:{productInput:"productInput"},outputs:{close:"close"},standalone:!0,features:[qi,Ve],decls:101,vars:15,consts:[["aux","ngForm"],["aux2","ngForm"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content","modal-content-custom"],[1,"modal-header","d-flex","justify-content-center","align-items-center"],[1,"row","w-100"],[1,"col"],[1,"modal-title"],[1,"col","d-flex","justify-content-center"],[1,"form-check","form-switch"],["for","flexSwitchCheckDefault",1,"form-check-label"],["type","checkbox","id","flexSwitchCheckDefault",1,"form-check-input","custom-switch",3,"change"],[1,"col","d-flex","justify-content-end"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[3,"ngSubmit","formGroup"],[1,"modal-body"],[1,"row"],[1,"form-group","row-container"],[1,"row","align-items-center"],[1,"col-2"],["for","name"],["type","text","id","name","name","name","formControlName","name",1,"form-control"],[1,"error-container"],["class","text-danger",4,"ngIf"],["for","type",1,"mb-0"],["id","type","formControlName","type","aria-label","Type Selection","placeholder","Seleccione un tipo",1,"form-select","me-2"],["value","","disabled","","selected",""],[3,"value",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-custom",3,"click","disabled"],["class","text-danger mt-1",4,"ngIf"],["for","quantity"],["type","number","id","quantity","name","quantity","formControlName","quantity",1,"form-control"],["for","unit"],["id","unit","formControlName","unit","aria-label","Unit Selection",1,"form-select","me-2"],[1,"row","error-container","align-items-center"],["class","col-8 text-danger",4,"ngIf"],["class","col text-danger",4,"ngIf"],["for","cost"],[1,"input-group","mb-3"],[1,"input-group-text"],["type","text","id","cost","name","cost","formControlName","cost","aria-label","Costo",1,"form-control"],["for","expirationDate"],["id","provider","formControlName","provider","aria-label","Provider Selection",1,"form-select","me-2"],[1,"form-group"],["for","desscription"],["type","text","id","descripcion","name","description","formControlName","description",1,"form-control","desc"],[1,"modal-footer","justify-content-center"],["type","submit",1,"btn","btn-custom",3,"disabled"],["type","button",1,"btn","btn-danger",3,"click"],["class","modal modal-bg fade show","tabindex","-1","style","display: block","aria-modal","true","role","dialog",4,"ngIf"],[3,"headerMessage","bodyMessage","cancel","confirm",4,"ngIf"],[1,"text-danger"],[4,"ngIf"],[3,"value"],[1,"text-danger","mt-1"],[1,"col-8","text-danger"],[1,"col","text-danger"],[1,"modal-content"],[1,"modal-header"],["id","confirmDeleteModalLabel",1,"modal-title","fs-5"],["type","button",1,"btn-close",3,"click"],["for","newType"],["type","text","id","newType","formControlName","newType","placeholder","Ingrese el nuevo tipo",1,"form-control",3,"ngClass"],[1,"modal-footer"],["type","button",1,"btn","btn-secondary",3,"click"],["type","submit",1,"btn","btn-success"],[3,"cancel","confirm","headerMessage","bodyMessage"]],template:function(o,r){if(o&1){let a=Re();c(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6)(5,"div",7)(6,"h5",8),b(7,"Detalles Existencia"),s()(),c(8,"div",9)(9,"div",10)(10,"label",11),b(11,"Editar"),s(),c(12,"input",12),ee("change",function(){return me(a),fe(r.toggleEditMode())}),s()()(),c(13,"div",13)(14,"button",14),ee("click",function(){return me(a),fe(r.closeModal())}),s()()()(),c(15,"form",15,0),ee("ngSubmit",function(){return me(a),fe(r.onSubmit())}),c(17,"div",16)(18,"div",17)(19,"div",7)(20,"div",18)(21,"div",19)(22,"div",20)(23,"label",21),b(24,"Nombre"),s()(),c(25,"div",7),H(26,"input",22),s(),c(27,"div",23),O(28,Sg,3,2,"div",24),s()()(),c(29,"div",18)(30,"div",19)(31,"div",20)(32,"label",25),b(33,"Tipo"),s()(),c(34,"div",7)(35,"select",26)(36,"option",27),b(37," Selecciona un tipo "),s(),O(38,xg,2,2,"option",28),s()(),c(39,"div",7)(40,"button",29),ee("click",function(){return me(a),fe(r.openAddTypeModal())}),b(41," Agregar Tipo "),s()()(),c(42,"div",23),O(43,Fg,2,1,"div",30),s()(),c(44,"div",18)(45,"div",19)(46,"div",20)(47,"label",31),b(48,"Cantidad"),s()(),c(49,"div",7),H(50,"input",32),s(),c(51,"div",20)(52,"label",33),b(53,"Unidad"),s()(),c(54,"div",20)(55,"select",34)(56,"option",27),b(57,"..."),s(),O(58,Ig,2,2,"option",28),s()()(),c(59,"div",35),O(60,Ng,3,2,"div",36)(61,Pg,2,1,"div",37),s()()(),c(62,"div",7)(63,"div",18)(64,"div",19)(65,"div",20)(66,"label",38),b(67,"Precio Unitario"),s()(),c(68,"div",7)(69,"div",39)(70,"span",40),b(71,"$"),s(),H(72,"input",41),s()(),c(73,"div",23),O(74,kg,3,2,"div",24),s()()(),c(75,"div",18)(76,"div",19)(77,"div",20)(78,"label",42),b(79,"Proveedor"),s()(),c(80,"div",7)(81,"select",43)(82,"option",27),b(83,"..."),s(),O(84,Dg,2,2,"option",28),s()(),c(85,"div",23),O(86,Rg,2,0,"div",24),s()()()(),c(87,"div",44)(88,"label",45),b(89,"Descripcion"),s(),c(90,"textarea",46),b(91,"              "),s(),c(92,"div",23),O(93,Vg,2,0,"div",24),s()()()(),c(94,"div",47)(95,"button",48),b(96," GUARDAR "),s(),c(97,"button",49),ee("click",function(){return me(a),fe(r.confirmDelete())}),b(98," BORRAR "),s()()()()()(),O(99,Ug,20,5,"div",50)(100,zg,1,2,"app-delete-modal",51)}if(o&2){let a,d,p,_,y,w,S,v=ct(16);h(15),g("formGroup",r.productForm),h(13),g("ngIf",v.submitted||((a=r.productForm.get("name"))==null?null:a.invalid)&&(((a=r.productForm.get("name"))==null?null:a.dirty)||((a=r.productForm.get("name"))==null?null:a.touched))),h(10),g("ngForOf",r.inventoryTypes),h(2),g("disabled",!r.isToggled),h(3),g("ngIf",v.submitted&&((d=r.productForm.get("type"))==null?null:d.invalid)),h(15),g("ngForOf",r.units),h(2),g("ngIf",v.submitted||((p=r.productForm.get("quantity"))==null?null:p.invalid)&&(((p=r.productForm.get("quantity"))==null?null:p.dirty)||((p=r.productForm.get("quantity"))==null?null:p.touched))),h(),g("ngIf",v.submitted||((_=r.productForm.get("unit"))==null?null:_.invalid)&&(((_=r.productForm.get("unit"))==null?null:_.dirty)||((_=r.productForm.get("unit"))==null?null:_.touched))),h(13),g("ngIf",v.submitted||((y=r.productForm.get("cost"))==null?null:y.invalid)&&(((y=r.productForm.get("cost"))==null?null:y.dirty)||((y=r.productForm.get("cost"))==null?null:y.touched))),h(10),g("ngForOf",r.providers),h(2),g("ngIf",v.submitted&&((w=r.productForm.get("provider"))==null?null:w.invalid)||((w=r.productForm.get("provider"))==null?null:w.invalid)&&(((w=r.productForm.get("provider"))==null?null:w.dirty)||((w=r.productForm.get("provider"))==null?null:w.touched))),h(7),g("ngIf",((S=r.productForm.get("description"))==null?null:S.invalid)&&((S=r.productForm.get("description"))==null?null:S.dirty)&&((S=r.productForm.get("description"))==null?null:S.value)),h(2),g("disabled",!r.isToggled),h(4),g("ngIf",r.addTypeModal),h(),g("ngIf",r.confirmDeleteModal)}},dependencies:[Ft,Rt,Gi,Wi,At,fi,Oi,Tt,Dt,Pt,Ot,Ze,St,Jt,Xe,Jn],styles:[`@charset "UTF-8";.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content-custom[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:496px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.desc[_ngcontent-%COMP%]{height:6rem}.form-check[_ngcontent-%COMP%], .form-swicth[_ngcontent-%COMP%]{padding-left:0}.form-check-label[_ngcontent-%COMP%]{margin-right:10px}.form-swicth[_ngcontent-%COMP%], .form-check-input[_ngcontent-%COMP%]{margin-left:.15rem}.text-custom[_ngcontent-%COMP%]{color:#1b5e20}.row-container[_ngcontent-%COMP%]{position:relative;min-height:5em}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.modal-footer[_ngcontent-%COMP%]{border-top:none;padding-top:0;padding-bottom:.5rem}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.custom-switch[_ngcontent-%COMP%]:focus{border-color:#1b5e20;box-shadow:0 0 0 .25rem #1b5e2040}.custom-switch[_ngcontent-%COMP%]:checked{background-color:#88ca5e;border-color:#1b5e20}.custom-switch[_ngcontent-%COMP%]:checked:before{background-color:#fff}
+/*# sourceMappingURL=inputs.component-OLLEPCX7.css.map */`]});let t=i;return t})();function Hg(t,i){if(t&1){let n=Re();c(0,"app-decision-modal",11),ee("close",function(o){me(n);let r=V();return fe(r.closeDecisionModal(o))}),s()}}function Gg(t,i){if(t&1){let n=Re();c(0,"app-add-input",11),ee("close",function(){me(n);let o=V();return fe(o.closeAddInputModal())}),s()}}function Wg(t,i){if(t&1){let n=Re();c(0,"app-add-raw-material",11),ee("close",function(){me(n);let o=V();return fe(o.closeAddRawMaterialModal())}),s()}}function $g(t,i){if(t&1){let n=Re();c(0,"app-raw-material",12),ee("close",function(){me(n);let o=V();return fe(o.closeProductModal())}),s()}if(t&2){let n=V();g("productInput",n.selectedProduct)}}function Kg(t,i){if(t&1){let n=Re();c(0,"app-inputs",12),ee("close",function(){me(n);let o=V();return fe(o.closeProductModal())}),s()}if(t&2){let n=V();g("productInput",n.selectedProduct)}}var Mm=(()=>{let i=class i{constructor(e){this.inventoryService=e,this.inputs=[],this.backUpInputs=[],this.editRawMaterialsModal=!1,this.editInputsModal=!1,this.inputsModal=!1,this.rawMaterialsModal=!1,this.decisionModal=!1,this.isLoading=!1,this.excludeColumns=["provider","description","batches","descripction","admissionDate","lastModificationDate","expirationDate","freeze"]}ngOnInit(){this.getInventory()}openDecisionModal(){this.decisionModal=!0}closeDecisionModal(e){e==="addInput"?this.openAddInputModal():e==="addRawMaterial"&&this.openAddRawMaterialModal(),this.decisionModal=!1}openAddInputModal(){this.inputsModal=!0}closeAddInputModal(){this.getInventory(),this.inputsModal=!1}openAddRawMaterialModal(){this.rawMaterialsModal=!0}closeAddRawMaterialModal(){this.getInventory(),this.rawMaterialsModal=!1}onRowClicked(e){this.selectedProduct=e,this.selectedProduct.freeze!==void 0?this.editRawMaterialsModal=!0:this.editInputsModal=!0}closeProductModal(){this.getInventory(),this.editRawMaterialsModal=!1,this.editInputsModal=!1}handleSearch(e){this.inputs=this.backUpInputs,this.inputs=qr(this.inputs,this.excludeColumns,e)}getInventory(){this.inventoryService.getInventory().subscribe(e=>{this.inputs=e,this.backUpInputs=e,this.isLoading=!0})}};i.\u0275fac=function(o){return new(o||i)(se(zr))},i.\u0275cmp=ke({type:i,selectors:[["app-inventory"]],standalone:!0,features:[Ve],decls:18,vars:8,consts:[[1,"container-fluid","d-flex","flex-column","justify-content-center","align-items-center","vh-100"],[1,"col-flex","justify-content-center","align-items-center"],[1,"row","header-row"],[1,"col"],[1,"view-title"],[3,"search"],[1,"col","d-flex","justify-content-center"],[1,"btn","btn-custom",3,"click"],[3,"rowClicked","isTableReady","data","columnsExcluded"],[3,"close",4,"ngIf"],[3,"productInput","close",4,"ngIf"],[3,"close"],[3,"close","productInput"]],template:function(o,r){o&1&&(H(0,"app-navbar"),c(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"h1",4),b(6,"Existencias"),s()(),c(7,"div",3)(8,"app-search-bar",5),ee("search",function(d){return r.handleSearch(d)}),s()(),c(9,"div",6)(10,"button",7),ee("click",function(){return r.openDecisionModal()}),b(11,"AGREGAR EXISTENCIA"),s()()(),c(12,"app-table",8),ee("rowClicked",function(d){return r.onRowClicked(d)}),s()()(),O(13,Hg,1,0,"app-decision-modal",9)(14,Gg,1,0,"app-add-input",9)(15,Wg,1,0,"app-add-raw-material",9)(16,$g,1,1,"app-raw-material",10)(17,Kg,1,1,"app-inputs",10)),o&2&&(h(12),g("isTableReady",r.isLoading)("data",r.inputs)("columnsExcluded",r.excludeColumns),h(),g("ngIf",r.decisionModal),h(),g("ngIf",r.inputsModal),h(),g("ngIf",r.rawMaterialsModal),h(),g("ngIf",r.editRawMaterialsModal),h(),g("ngIf",r.editInputsModal))},dependencies:[oi,Yn,Qn,Ze,Xe,Sm,Em,Fm,Im,Am],styles:[`[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/inventory.svg);background-size:cover;background-position:center;background-repeat:no-repeat}.view-title[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;color:#1b5e20;font-size:2.5rem;padding-left:1.5rem}.header-row[_ngcontent-%COMP%]{padding-bottom:20px}.vh-100[_ngcontent-%COMP%]{height:90vh!important}.btn-custom[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1.5rem;color:#1b5e20}
+/*# sourceMappingURL=inventory.component-T2YT6VBD.css.map */`]});let t=i;return t})();var Zn=(()=>{let i=class i{constructor(e){this.http=e,this.apiUrl=ki.apiUrl+"/api/batches"}getBatches(){return this.http.get(this.apiUrl).pipe(nt(ot))}getBatchById(e){return this.http.get(`${this.apiUrl}/getBy/${e}`).pipe(nt(ot))}createBatch(e){return this.http.post(this.apiUrl,e).pipe(nt(ot))}updateBatch(e){return this.http.put(this.apiUrl,e).pipe(nt(ot))}deleteBatch(e){return this.http.delete(`${this.apiUrl}/${e}`).pipe(nt(ot))}getCategories(){return this.http.get(`${this.apiUrl}/getCategories`).pipe(nt(ot))}};i.\u0275fac=function(o){return new(o||i)(mi(Li))},i.\u0275prov=ti({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();function Yg(t,i){if(t&1&&(c(0,"li"),b(1),s()),t&2){let n=i.$implicit;h(),rc(" ",n.name," - ",n.quantity," ",n.unit," - ",n.provider," ")}}function Qg(t,i){if(t&1&&(c(0,"li"),b(1),s()),t&2){let n=i.$implicit;h(),_p(" ",n.codInput," - ",n.name," - ",n.quantity," ",n.unit," - ",n.provider," ")}}function Jg(t,i){if(t&1){let n=Re();c(0,"app-delete-modal",21),ee("cancel",function(){me(n);let o=V();return fe(o.closeDeleteModal())})("confirm",function(){me(n);let o=V();return fe(o.deleteProduct())}),s()}t&2&&g("headerMessage","Eliminar Lote")("bodyMessage","\xBFEst\xE1s seguro que deseas borrar este Lote?")}var Cc=(()=>{let i=class i{constructor(e,o){this.batchesService=e,this.router=o,this.batch={},this.close=new lt,this.confirmDeleteModal=!1,this.batchIngredientsData=[],this.batchInputsData=[]}ngOnInit(){this.getBatchIngredientsData(),this.getBatchInputsData()}closeModal(){this.close.emit()}closeDeleteModal(){this.confirmDeleteModal=!1}openDeleteModal(){this.confirmDeleteModal=!0}deleteProduct(){this.batchesService.deleteBatch(this.batch.id).subscribe(()=>{this.closeModal()})}goTo(){this.router.navigate([`/production/${this.batch.id}/modify`])}getBatchIngredientsData(){if(Array.isArray(this.batch.batchIngredients)){let e=this.batch.batchIngredientsQuantity?this.batch.batchIngredientsQuantity.split(";").reduce((o,r)=>{let[a,d]=r.split(",");return o[a]=Number(d),o},{}):{};this.batchIngredientsData=this.batch.batchIngredients.map(o=>{let r=o.id;return{name:o.name,quantity:e[r]!==void 0?e[r]:o.quantity,unit:o.unit,provider:o.provider?.name||"N/A"}})}else console.warn("No se encontraron ingredientes en los datos del lote.")}getBatchInputsData(){if(Array.isArray(this.batch.batchPackagingElements)){let e=this.batch.batchPackagingElementsQuantity?this.batch.batchPackagingElementsQuantity.split(";").reduce((o,r)=>{let[a,d]=r.split(",");return o[a]=Number(d),o},{}):{};this.batchInputsData=this.batch.batchPackagingElements.map((o,r)=>({codInput:o.id,name:o.name,quantity:e[r]||o.quantity,unit:o.unit,provider:o.provider?.name||"N/A"}))}else console.warn("No se encontraron insumos en los datos del lote.")}};i.\u0275fac=function(o){return new(o||i)(se(Zn),se(pi))},i.\u0275cmp=ke({type:i,selectors:[["app-view-batch"]],inputs:{batch:"batch"},outputs:{close:"close"},standalone:!0,features:[Ve],decls:59,vars:9,consts:[["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content","modal-content-custom"],[1,"modal-header","d-flex","justify-content-center","align-items-center"],[1,"row","w-100"],[1,"col"],[1,"modal-title"],[1,"col","d-flex","justify-content-center"],["type","button","aria-label","edit",1,"btn","btn-success","me-2",3,"click"],["type","button","aria-label","delete",1,"btn","btn-danger",3,"click"],[1,"col","d-flex","justify-content-end"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[1,"row"],[1,"row","justify-content-between","align-items-center","mb-2"],[1,"me-2"],[1,"row","align-items-center"],[1,"ingredients-container"],[4,"ngFor","ngForOf"],[1,"modal-footer","justify-content-center"],[3,"headerMessage","bodyMessage","cancel","confirm",4,"ngIf"],[3,"cancel","confirm","headerMessage","bodyMessage"]],template:function(o,r){o&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"h5",6),b(7,"Detalles Lote"),s()(),c(8,"div",7)(9,"button",8),ee("click",function(){return r.goTo()}),b(10,"Editar"),s(),c(11,"button",9),ee("click",function(){return r.openDeleteModal()}),b(12,"Eliminar"),s()(),c(13,"div",10)(14,"button",11),ee("click",function(){return r.closeModal()}),s()()()(),c(15,"div",12)(16,"div",13)(17,"div",5)(18,"div",14)(19,"label",15),b(20,"Producto:"),s(),c(21,"a"),b(22),s()(),c(23,"div",16)(24,"label"),b(25,"Categoria:"),s(),c(26,"a"),b(27),s()(),c(28,"div",16)(29,"label"),b(30,"Cantidad:"),s(),c(31,"a"),b(32),s()(),c(33,"div",16)(34,"label"),b(35,"Vencimiento:"),s(),c(36,"a"),b(37),s()(),c(38,"div",16)(39,"label"),b(40,"Fecha de Elebarocaion:"),s(),c(41,"a"),b(42),s()()(),c(43,"div",5)(44,"div",16)(45,"label"),b(46,"Ingredientes:"),s(),c(47,"div",17)(48,"ul"),O(49,Yg,2,4,"li",18),s()()()(),c(50,"div",5)(51,"div",16)(52,"label"),b(53,"Insumos:"),s(),c(54,"div",17)(55,"ul"),O(56,Qg,2,5,"li",18),s()()()()()(),H(57,"div",19),s()()(),O(58,Jg,1,2,"app-delete-modal",20)),o&2&&(h(22),Ut(r.batch.name),h(5),Ut(r.batch.category),h(5),nc("",r.batch.quantity," ",r.batch.unit,""),h(5),Ut(r.batch.expiration),h(5),Ut(r.batch.creationDate),h(7),g("ngForOf",r.batchIngredientsData),h(7),g("ngForOf",r.batchInputsData),h(2),g("ngIf",r.confirmDeleteModal))},dependencies:[Ze,Jt,Xe,Jn],styles:[`@charset "UTF-8";.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content-custom[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:496px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.desc[_ngcontent-%COMP%]{height:6rem}.form-check[_ngcontent-%COMP%], .form-swicth[_ngcontent-%COMP%]{padding-left:0}.form-check-label[_ngcontent-%COMP%]{margin-right:10px}.form-swicth[_ngcontent-%COMP%], .form-check-input[_ngcontent-%COMP%]{margin-left:.15rem}.text-custom[_ngcontent-%COMP%]{color:#1b5e20}.row-container[_ngcontent-%COMP%]{position:relative;min-height:5em}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.modal-footer[_ngcontent-%COMP%]{border-top:none;padding-top:0;padding-bottom:.5rem}.ingredients-container[_ngcontent-%COMP%]{max-height:200px;overflow-y:auto}.ingredients-container[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style-type:none;padding:0;margin:0}.ingredients-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{padding:8px 0}
+/*# sourceMappingURL=view-batch.component-KWAPOPS4.css.map */`]});let t=i;return t})();var Uo=(()=>{let i=class i{constructor(e){this.http=e,this.apiUrl=ki.apiUrl+"/api/SalesChannels"}getSalesChannels(){return this.http.get(this.apiUrl).pipe(nt(ot))}getSaleChannelId(e){return this.http.get(`${this.apiUrl}/${e}`).pipe(nt(ot))}createSaleChannel(e){return this.http.post(this.apiUrl,e).pipe(nt(ot))}updateSaleChannel(e){return this.http.put(this.apiUrl,e).pipe(nt(ot))}deleteSaleChannel(e){return this.http.delete(`${this.apiUrl}/${e}`).pipe(nt(ot))}};i.\u0275fac=function(o){return new(o||i)(mi(Li))},i.\u0275prov=ti({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var Sc=(()=>{let i=class i{constructor(e){this.http=e,this.apiUrl=ki.apiUrl+"/api/events"}getEvents(){return this.http.get(this.apiUrl).pipe(Vi(e=>Vo(e)),nt(ot))}getEventById(e){return this.http.get(`${this.apiUrl}/${e}`).pipe(Vi(o=>Vo(o)),nt(ot))}createEvent(e){return this.http.post(this.apiUrl,e).pipe(nt(ot))}};i.\u0275fac=function(o){return new(o||i)(mi(Li))},i.\u0275prov=ti({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var xc=t=>({"is-invalid":t});function Zg(t,i){if(t&1&&(c(0,"option",41),b(1),s()),t&2){let n=i.$implicit;g("value",n.id),h(),pt(" ",n.name," ")}}function Xg(t,i){t&1&&(c(0,"div",42),b(1," Seleccione un comprador "),s())}function ev(t,i){if(t&1&&(c(0,"option",48),b(1),s()),t&2){let n=i.$implicit,e=V(2);g("value",n.id)("disabled",n.selected),h(),rc(" ",n.name," ",n.quantity," ",n.unit," - VTO: ",e.getDate(n.expiration)," ")}}function tv(t,i){t&1&&(c(0,"div"),b(1," La cantidad m\xEDnima es 1. "),s())}function iv(t,i){if(t&1&&(c(0,"div"),b(1),s()),t&2){let n=V(2).index,e=V();h(),pt(" La cantidad m\xE1xima es ",e.maxQuantities[n],". ")}}function nv(t,i){if(t&1&&(c(0,"div",42),O(1,tv,2,0,"div",47)(2,iv,2,1,"div",47),s()),t&2){let n=V().index,e=V();h(),g("ngIf",e.itemControls[n].errors==null?null:e.itemControls[n].errors.min),h(),g("ngIf",e.itemControls[n].errors==null?null:e.itemControls[n].errors.max)}}function rv(t,i){t&1&&(c(0,"div",42),b(1," No puedes seleccionar el mismo lote m\xE1s de una vez. "),s())}function ov(t,i){if(t&1){let n=Re();c(0,"div")(1,"button",49),ee("click",function(){me(n);let o=V().index,r=V();return fe(r.removeRow(o))}),H(2,"i",50),s()()}}function av(t,i){if(t&1){let n=Re();c(0,"tr")(1,"td")(2,"select",43),ee("change",function(o){let r=me(n).index,a=V();return fe(a.onBatchChange(o,r))}),O(3,ev,2,6,"option",44),s()(),c(4,"td")(5,"input",45),ee("change",function(){me(n);let o=V();return fe(o.calculateCost())}),s(),O(6,nv,3,2,"div",17)(7,rv,2,0,"div",17),s(),c(8,"td",46),O(9,ov,3,0,"div",47),s()()}if(t&2){let n,e=i.index,o=V(),r=ct(11);h(2),g("formControl",o.getBatchIdControl(e))("ngClass",_e(10,xc,o.itemControls[e].invalid&&(o.itemControls[e].touched||r.submitted))),h(),g("ngForOf",o.avaibleBatches),h(2),g("formControl",o.getQuantityControl(e))("max",o.maxQuantities[e])("min",1)("ngClass",_e(12,xc,o.itemControls[e].invalid&&(o.itemControls[e].touched||r.submitted))),h(),g("ngIf",o.itemControls[e].invalid&&(o.itemControls[e].touched||r.submitted)),h(),g("ngIf",(n=o.sellForm.get("items"))==null||n.errors==null?null:n.errors.duplicateBatches),h(2),g("ngIf",e>0)}}function lv(t,i){t&1&&(c(0,"div",42),b(1," El precio es requerido. "),s())}var Tm=(()=>{let i=class i{constructor(e,o,r,a,d,p){this.batchesService=e,this.fb=o,this.salesChannelsService=r,this.authService=a,this.userService=d,this.eventService=p,this.close=new lt,this.confirmDeleteModal=!1,this.avaibleBatches=[],this.customers=[],this.maxQuantities=[],this.totalCost=0,this.sellForm=this.fb.group({customer:["",oe.required],items:this.fb.array([],{validators:sv}),price:[0,[oe.required,xm(this.totalCost)]]})}ngOnInit(){this.getClients(),this.getAvaibleBatches(),this.initializeRows(),this.userId=this.authService.getUserId()}closeModal(){this.close.emit()}closeDeleteModal(){this.confirmDeleteModal=!1}onSubmit(){if(console.log(this.sellForm),this.sellForm.valid){if(this.sellForm.get("items")?.errors?.duplicateBatches){console.error("No puedes seleccionar el mismo lote m\xE1s de una vez.");return}let o=this.items.controls.map(M=>M.get("batchId")?.value),r=this.items.controls.map(M=>M.get("quantity")?.value.toString()).join(","),a=this.avaibleBatches.filter(M=>o.includes(M.id)),p=a.map(M=>M.price).join(","),_=o.map(M=>({id:M})),y=a.map((M,F)=>`${r[F]} unit - ${M.name} (${M.id})`);console.log("BatchesQuantities:",r);let S={type:"sales",title:"Venta",description:y.join(", "),cost:this.sellForm.get("price")?.value,saleChannel:{id:this.sellForm.get("customer")?.value},user:{id:this.userId},soldBatches:_,unitsPrice:p,quantities:r};console.log("Sell data:",S),console.log("JSON:",JSON.stringify(S)),console.log("Selcted Batches:",_),console.log("Batches Avaible:",this.avaibleBatches);let v=r.split(",");console.log("Batches Quantities:",v),this.eventService.createEvent(S).subscribe(M=>{let F=this.avaibleBatches.map(k=>{let I=_.find(L=>L.id===k.id);return console.log("Selected:",I),I?(console.log("selectedBatches.indexOf(selected)",_.indexOf(I),"batchesQuantities[selectedBatches.indexOf(selected)]",r[_.indexOf(I)]),k.quantity-=parseInt(v[_.indexOf(I)],10),delete k.selected,console.log("Batch updated:",k),this.batchesService.updateBatch(k).toPromise()):null}).filter(Boolean);Promise.all(F).then(()=>{console.log("Batches updated")}),this.closeModal()})}}addRow(){this.items.push(this.fb.group({quantity:[0,oe.required],batchId:[null]})),this.maxQuantities.push(0)}removeRow(e){let o=this.items.at(e).get("batchId")?.value;if(o){let r=this.avaibleBatches.find(a=>a.id===o);r&&(r.selected=!1)}this.items.removeAt(e),this.maxQuantities.splice(e,1)}onBatchChange(e,o){let r=e.target,a=parseInt(r.value,10),d=this.avaibleBatches.find(p=>p.id===a);if(d){this.maxQuantities[o]=d.quantity,this.items.at(o).patchValue({batchId:a}),d.selected=!0;let p=this.items.at(o).get("batchId")?.value;if(p){let y=this.avaibleBatches.find(w=>w.id===p);y&&(y.selected=!1)}let _=this.items.at(o).get("quantity");_?.setValidators([oe.required,oe.min(1),oe.max(this.maxQuantities[o])]),_?.updateValueAndValidity()}}getAvaibleBatches(){this.batchesService.getBatches().subscribe(e=>{this.avaibleBatches=e.sort((o,r)=>o.name.localeCompare(r.name))})}getClients(){this.salesChannelsService.getSalesChannels().subscribe(e=>{this.customers=e.sort((o,r)=>o.name.localeCompare(r.name))})}initializeRows(){this.items.clear(),this.maxQuantities=[],this.items.push(this.fb.group({quantity:[0,oe.required],batchId:[null,oe.required]})),this.maxQuantities.push(0)}get items(){return this.sellForm.get("items")}get itemControls(){return this.items.controls}getBatchIdControl(e){let o=this.items.at(e).get("batchId");if(!o)throw console.error("Error!"),new Error(`Control 'batchId' not found at index ${e}`);return o}getQuantityControl(e){let o=this.items.at(e).get("quantity");if(!o)throw console.error("Error!"),new Error(`Control 'batchId' not found at index ${e}`);return o}calculateCost(){this.totalCost=0,this.items.controls.forEach(e=>{let o=e.get("batchId")?.value,r=e.get("quantity")?.value;if(o!==null&&r!==null){let a=this.avaibleBatches.find(d=>d.id===o);if(a){let d=a.price||2,p=a.quantity||1,_=Math.round(d/p);this.totalCost+=r*_}}}),this.updatePriceValidator()}updatePriceValidator(){let e=this.sellForm.get("price");e&&(e.setValidators([oe.required,oe.min(this.totalCost)]),e.updateValueAndValidity())}getDate(e){return Vr(e)}};i.\u0275fac=function(o){return new(o||i)(se(Zn),se(Vt),se(Uo),se(Ki),se(cn),se(Sc))},i.\u0275cmp=ke({type:i,selectors:[["app-sell-batch"]],outputs:{close:"close"},standalone:!0,features:[Ve],decls:60,vars:12,consts:[["aux","ngForm"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content","modal-content-custom"],[1,"modal-header","d-flex","justify-content-center","align-items-center"],[1,"row","w-100"],[1,"col"],[1,"modal-title"],[1,"col","d-flex","justify-content-end"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"w-100",3,"formGroup"],[1,"modal-body"],[1,"row","mb-3"],[1,"form-group","d-flex","align-items-center"],["id","customer","formControlName","customer",1,"form-control","ms-2",3,"ngClass"],[3,"value",4,"ngFor","ngForOf"],[1,"error-container"],["class","text-danger",4,"ngIf"],[1,"row"],[1,"col","d-flex"],[1,"form-group","w-100"],[1,"row","align-items-center"],["type","button",1,"btn","btn-icon","text-success",3,"click"],[1,"bi","bi-plus-square-fill"],[1,"row","d-flex"],[1,"table-container"],[1,"table"],[1,"col-8"],[1,"col-3"],[1,"tbody-container"],[4,"ngFor","ngForOf"],[1,"col","d-flex","justify-content-center","align-items-center"],[1,"me-3"],[1,"form-group"],["type","number","formControlName","price","placeholder","Precio",1,"form-control",3,"ngClass"],[1,"ms-3","cost"],[1,"col-12"],[1,"error-container","mt-2","text-center"],[1,"modal-footer","justify-content-center"],["type","button",1,"btn","btn-secondary",3,"click"],["type","submit",1,"btn","btn-custom",3,"click"],[3,"value"],[1,"text-danger"],["placeholder","Produccion",1,"form-control",3,"change","formControl","ngClass"],[3,"value","disabled",4,"ngFor","ngForOf"],["type","number","placeholder","Cantidad",1,"form-control",3,"change","formControl","max","min","ngClass"],[2,"text-align","center"],[4,"ngIf"],[3,"value","disabled"],[1,"btn","btn-danger",3,"click"],[1,"bi","bi-trash"]],template:function(o,r){if(o&1){let a=Re();c(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"h5",7),b(7,"Vender Lote"),s()(),c(8,"div",8)(9,"button",9),ee("click",function(){return me(a),fe(r.closeModal())}),s()()()(),c(10,"form",10,0)(12,"div",11)(13,"div",6)(14,"div",12)(15,"div",13)(16,"label"),b(17,"Comprador"),s(),c(18,"select",14),O(19,Zg,2,2,"option",15),s()(),c(20,"div",16),O(21,Xg,2,0,"div",17),s()(),c(22,"div",18)(23,"div",19)(24,"div",20)(25,"div",21)(26,"div",6)(27,"label"),b(28,"Lotes Disponibles"),s()(),c(29,"div",8)(30,"button",22),ee("click",function(){return me(a),fe(r.addRow())}),H(31,"i",23),s()()(),c(32,"div",24)(33,"div",25)(34,"table",26)(35,"thead")(36,"tr")(37,"th",27),b(38,"Producto"),s(),c(39,"th",28),b(40,"Cantidad"),s(),H(41,"th"),s()(),c(42,"tbody",29),O(43,av,10,14,"tr",30),s()()()()()()(),c(44,"div",18)(45,"div",31)(46,"label",32),b(47,"Precio"),s(),c(48,"div",33),H(49,"input",34),s(),c(50,"label",35),b(51),s()(),c(52,"div",36)(53,"div",37),O(54,lv,2,0,"div",17),s()()()()(),c(55,"div",38)(56,"button",39),ee("click",function(){return me(a),fe(r.closeModal())}),b(57," Cancelar "),s(),c(58,"button",40),ee("click",function(){return me(a),fe(r.onSubmit())}),b(59," Vender "),s()()()()()()}if(o&2){let a,d,p,_,y=ct(11);h(10),g("formGroup",r.sellForm),h(8),g("ngClass",_e(8,xc,(((a=r.sellForm.get("customer"))==null?null:a.touched)||y.submitted)&&((a=r.sellForm.get("customer"))==null?null:a.invalid))),h(),g("ngForOf",r.customers),h(2),g("ngIf",(((d=r.sellForm.get("customer"))==null?null:d.touched)||y.submitted)&&((d=r.sellForm.get("customer"))==null?null:d.invalid)),h(22),g("ngForOf",r.items.controls),h(6),g("ngClass",_e(10,xc,(((p=r.sellForm.get("price"))==null?null:p.touched)||y.submitted)&&((p=r.sellForm.get("price"))==null?null:p.invalid))),h(2),pt("Costo: ",r.totalCost,""),h(3),g("ngIf",(((_=r.sellForm.get("price"))==null?null:_.touched)||y.submitted)&&((_=r.sellForm.get("price"))==null?null:_.invalid))}},dependencies:[Ze,St,Jt,Xe,Ft,Rt,Gi,Wi,At,fi,Oi,Tt,Dt,eu,Xd,is,Pt,Ot],styles:[`@charset "UTF-8";.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content-custom[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:496px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.desc[_ngcontent-%COMP%]{height:6rem}.form-check[_ngcontent-%COMP%], .form-swicth[_ngcontent-%COMP%]{padding-left:0}.form-check-label[_ngcontent-%COMP%]{margin-right:10px}.form-swicth[_ngcontent-%COMP%], .form-check-input[_ngcontent-%COMP%]{margin-left:.15rem}.text-custom[_ngcontent-%COMP%]{color:#1b5e20}.row-container[_ngcontent-%COMP%]{position:relative;min-height:5em}.error-container[_ngcontent-%COMP%]{height:1.2rem;padding-top:.6rem}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.modal-footer[_ngcontent-%COMP%]{border-top:none;padding-top:1rem;padding-bottom:1rem}.ingredients-container[_ngcontent-%COMP%]{max-height:200px;overflow-y:auto}.ingredients-container[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style-type:none;padding:0;margin:0}.ingredients-container[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{padding:8px 0}.table-container[_ngcontent-%COMP%]{height:320px;margin-bottom:1rem;overflow-y:auto;background-color:#d2ffaa}.table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;table-layout:fixed}.table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{position:sticky;top:0;background-color:#1ba120}.table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]{width:100%;overflow-y:auto}.table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{width:100%;table-layout:fixed}.table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:8px;box-sizing:border-box;background-color:transparent}.tbody-container[_ngcontent-%COMP%]{max-height:318px;overflow-y:auto}.table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-child(odd){background-color:#88ca5e}.table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#1ba120}.btn-icon[_ngcontent-%COMP%]{font-size:2rem}.label[_ngcontent-%COMP%]{font-size:1.8rem}
+/*# sourceMappingURL=sell-batch.component-UQAKKXDT.css.map */`]});let t=i;return t})();function sv(t){let n=t.value.map(o=>o.batchId);return new Set(n).size!==n.length?{duplicateBatches:!0}:null}function cv(t,i){if(t&1){let n=Re();c(0,"app-view-batch",11),ee("close",function(){me(n);let o=V();return fe(o.closeModal())}),s()}if(t&2){let n=V();g("batch",n.selectedBatch)}}function dv(t,i){if(t&1){let n=Re();c(0,"app-sell-batch",12),ee("close",function(){me(n);let o=V();return fe(o.closeSellModal())}),s()}}var Pm=(()=>{let i=class i{constructor(e,o){this.route=e,this.batchesServices=o,this.batches=[],this.backUpBatches=[],this.excludedColumns=["batchPackagingElementsQuantity","batchPackagingElements","batchIngredientsQuantity","batchIngredients","description","creationDate","lastModificationDate"],this.selectedBatch={},this.openBatchModal=!1,this.openSellModal=!1}ngOnInit(){this.getBatches()}goTo(){this.route.navigate(["/production/add"])}onRowClicked(e){this.selectedBatch=e,this.openBatchModal=!0}closeModal(){this.getBatches(),this.openBatchModal=!1}openSellBatch(){this.openSellModal=!0}closeSellModal(){this.getBatches(),this.openSellModal=!1}handleSearch(e){this.batches=this.backUpBatches,this.batches=qr(this.batches,this.excludedColumns,e)}getBatches(){this.batchesServices.getBatches().subscribe(e=>{this.batches=e,this.backUpBatches=e})}};i.\u0275fac=function(o){return new(o||i)(se(pi),se(Zn))},i.\u0275cmp=ke({type:i,selectors:[["app-production"]],standalone:!0,features:[Ve],decls:18,vars:4,consts:[[1,"container-fluid","d-flex","flex-column","justify-content-center","align-items-center","vh-100"],[1,"col-flex","justify-content-center","align-items-center"],[1,"row","header-row"],[1,"col"],[1,"view-title"],[3,"search"],[1,"col","d-flex","justify-content-center"],[1,"btn","btn-custom",3,"click"],[3,"rowClicked","data","columnsExcluded"],[3,"batch","close",4,"ngIf"],[3,"close",4,"ngIf"],[3,"close","batch"],[3,"close"]],template:function(o,r){o&1&&(H(0,"app-navbar"),c(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"h1",4),b(6,"Lotes"),s()(),c(7,"div",3)(8,"app-search-bar",5),ee("search",function(d){return r.handleSearch(d)}),s()(),c(9,"div",6)(10,"button",7),ee("click",function(){return r.openSellBatch()}),b(11,"VENDER"),s()(),c(12,"div",6)(13,"button",7),ee("click",function(){return r.goTo()}),b(14,"AGREGAR LOTE"),s()()(),c(15,"app-table",8),ee("rowClicked",function(d){return r.onRowClicked(d)}),s()()(),O(16,cv,1,1,"app-view-batch",9)(17,dv,1,0,"app-sell-batch",10)),o&2&&(h(15),g("data",r.batches)("columnsExcluded",r.excludedColumns),h(),g("ngIf",r.openBatchModal),h(),g("ngIf",r.openSellModal))},dependencies:[oi,Yn,Qn,Cc,Ze,Xe,Tm],styles:[`[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/production.svg);background-size:cover;background-position:center;background-repeat:no-repeat}.view-title[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;color:#1b5e20;font-size:2.5rem;padding-left:1.5rem}.header-row[_ngcontent-%COMP%]{padding-bottom:20px;align-items:center}.vh-100[_ngcontent-%COMP%]{height:90vh!important}.btn-custom[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1.5rem;color:#1b5e20}
+/*# sourceMappingURL=production.component-6Q4GAHZW.css.map */`]});let t=i;return t})();var Lm=(()=>{let i=class i{constructor(e){this.router=e}goTo(){this.router.navigate(["/recipes",this.recipe?.id])}};i.\u0275fac=function(o){return new(o||i)(se(pi))},i.\u0275cmp=ke({type:i,selectors:[["app-card"]],inputs:{recipe:"recipe"},standalone:!0,features:[Ve],decls:7,vars:1,consts:[[1,"card"],[1,"card-body"],[1,"card-title","title-custom"],[1,"d-flex","justify-content-end"],[1,"btn","text-white","btn-custom",3,"click"]],template:function(o,r){o&1&&(c(0,"div",0)(1,"div",1)(2,"h4",2),b(3),s(),c(4,"div",3)(5,"a",4),ee("click",function(){return r.goTo()}),b(6,"VER RECETA"),s()()()()),o&2&&(h(3),Ut(r.recipe==null?null:r.recipe.name))},styles:[`.card[_ngcontent-%COMP%]{background-color:#1b5e20;border-radius:15px;color:#fff;width:100%;min-width:400px;padding:1rem}.card-body[_ngcontent-%COMP%]{height:160px}.title-custom[_ngcontent-%COMP%]{padding-top:1rem}.btn-custom[_ngcontent-%COMP%]{padding-top:1rem;text-decoration:underline}
+/*# sourceMappingURL=card.component-YFD5CI2L.css.map */`]});let t=i;return t})();var Ec=class t{static isArray(i,n=!0){return Array.isArray(i)&&(n||i.length!==0)}static isObject(i,n=!0){return typeof i=="object"&&!Array.isArray(i)&&i!=null&&(n||Object.keys(i).length!==0)}static equals(i,n,e){return e?this.resolveFieldData(i,e)===this.resolveFieldData(n,e):this.equalsByValue(i,n)}static equalsByValue(i,n){if(i===n)return!0;if(i&&n&&typeof i=="object"&&typeof n=="object"){var e=Array.isArray(i),o=Array.isArray(n),r,a,d;if(e&&o){if(a=i.length,a!=n.length)return!1;for(r=a;r--!==0;)if(!this.equalsByValue(i[r],n[r]))return!1;return!0}if(e!=o)return!1;var p=this.isDate(i),_=this.isDate(n);if(p!=_)return!1;if(p&&_)return i.getTime()==n.getTime();var y=i instanceof RegExp,w=n instanceof RegExp;if(y!=w)return!1;if(y&&w)return i.toString()==n.toString();var S=Object.keys(i);if(a=S.length,a!==Object.keys(n).length)return!1;for(r=a;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,S[r]))return!1;for(r=a;r--!==0;)if(d=S[r],!this.equalsByValue(i[d],n[d]))return!1;return!0}return i!==i&&n!==n}static resolveFieldData(i,n){if(i&&n){if(this.isFunction(n))return n(i);if(n.indexOf(".")==-1)return i[n];{let e=n.split("."),o=i;for(let r=0,a=e.length;r<a;++r){if(o==null)return null;o=o[e[r]]}return o}}else return null}static isFunction(i){return!!(i&&i.constructor&&i.call&&i.apply)}static reorderArray(i,n,e){let o;i&&n!==e&&(e>=i.length&&(e%=i.length,n%=i.length),i.splice(e,0,i.splice(n,1)[0]))}static insertIntoOrderedArray(i,n,e,o){if(e.length>0){let r=!1;for(let a=0;a<e.length;a++)if(this.findIndexInList(e[a],o)>n){e.splice(a,0,i),r=!0;break}r||e.push(i)}else e.push(i)}static findIndexInList(i,n){let e=-1;if(n){for(let o=0;o<n.length;o++)if(n[o]==i){e=o;break}}return e}static contains(i,n){if(i!=null&&n&&n.length){for(let e of n)if(this.equals(i,e))return!0}return!1}static removeAccents(i){return i&&(i=i.normalize("NFKD").replace(new RegExp("\\p{Diacritic}","gu"),"")),i}static isDate(i){return Object.prototype.toString.call(i)==="[object Date]"}static isEmpty(i){return i==null||i===""||Array.isArray(i)&&i.length===0||!this.isDate(i)&&typeof i=="object"&&Object.keys(i).length===0}static isNotEmpty(i){return!this.isEmpty(i)}static compare(i,n,e,o=1){let r=-1,a=this.isEmpty(i),d=this.isEmpty(n);return a&&d?r=0:a?r=o:d?r=-o:typeof i=="string"&&typeof n=="string"?r=i.localeCompare(n,e,{numeric:!0}):r=i<n?-1:i>n?1:0,r}static sort(i,n,e=1,o,r=1){let a=t.compare(i,n,o,e),d=e;return(t.isEmpty(i)||t.isEmpty(n))&&(d=r===1?e:r),d*a}static merge(i,n){if(!(i==null&&n==null)){{if((i==null||typeof i=="object")&&(n==null||typeof n=="object"))return Hi(Hi({},i||{}),n||{});if((i==null||typeof i=="string")&&(n==null||typeof n=="string"))return[i||"",n||""].join(" ")}return n||i}}static isPrintableCharacter(i=""){return this.isNotEmpty(i)&&i.length===1&&i.match(/\S| /)}static getItemValue(i,...n){return this.isFunction(i)?i(...n):i}static findLastIndex(i,n){let e=-1;if(this.isNotEmpty(i))try{e=i.findLastIndex(n)}catch{e=i.lastIndexOf([...i].reverse().find(n))}return e}static findLast(i,n){let e;if(this.isNotEmpty(i))try{e=i.findLast(n)}catch{e=[...i].reverse().find(n)}return e}static deepEquals(i,n){if(i===n)return!0;if(i&&n&&typeof i=="object"&&typeof n=="object"){var e=Array.isArray(i),o=Array.isArray(n),r,a,d;if(e&&o){if(a=i.length,a!=n.length)return!1;for(r=a;r--!==0;)if(!this.deepEquals(i[r],n[r]))return!1;return!0}if(e!=o)return!1;var p=i instanceof Date,_=n instanceof Date;if(p!=_)return!1;if(p&&_)return i.getTime()==n.getTime();var y=i instanceof RegExp,w=n instanceof RegExp;if(y!=w)return!1;if(y&&w)return i.toString()==n.toString();var S=Object.keys(i);if(a=S.length,a!==Object.keys(n).length)return!1;for(r=a;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,S[r]))return!1;for(r=a;r--!==0;)if(d=S[r],!this.deepEquals(i[d],n[d]))return!1;return!0}return i!==i&&n!==n}},Om=0;function Fc(t="pn_id_"){return Om++,`${t}${Om}`}function uv(){let t=[],i=(r,a)=>{let d=t.length>0?t[t.length-1]:{key:r,value:a},p=d.value+(d.key===r?0:a)+2;return t.push({key:r,value:p}),p},n=r=>{t=t.filter(a=>a.value!==r)},e=()=>t.length>0?t[t.length-1].value:0,o=r=>r&&parseInt(r.style.zIndex,10)||0;return{get:o,set:(r,a,d)=>{a&&(a.style.zIndex=String(i(r,d)))},clear:r=>{r&&(n(o(r)),r.style.zIndex="")},getCurrent:()=>e()}}var kw=uv();var km=["*"];var dn=(()=>{class t{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"}return t})();var Ic=(()=>{class t{ripple=!1;inputStyle=qd("outlined");overlayOptions={};csp=qd({nonce:void 0});filterMatchModeOptions={text:[dn.STARTS_WITH,dn.CONTAINS,dn.NOT_CONTAINS,dn.ENDS_WITH,dn.EQUALS,dn.NOT_EQUALS],numeric:[dn.EQUALS,dn.NOT_EQUALS,dn.LESS_THAN,dn.LESS_THAN_OR_EQUAL_TO,dn.GREATER_THAN,dn.GREATER_THAN_OR_EQUAL_TO],date:[dn.DATE_IS,dn.DATE_IS_NOT,dn.DATE_BEFORE,dn.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",listLabel:"Option List",selectColor:"Select a color",removeLabel:"Remove",browseFiles:"Browse Files",maximizeLabel:"Maximize"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new lp;translationObserver=this.translationSource.asObservable();getTranslation(n){return this.translation[n]}setTranslation(n){this.translation=Hi(Hi({},this.translation),n),this.translationSource.next(this.translation)}static \u0275fac=function(e){return new(e||t)};static \u0275prov=ti({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ac=(()=>{class t{static \u0275fac=function(e){return new(e||t)};static \u0275cmp=ke({type:t,selectors:[["p-header"]],standalone:!0,features:[Ve],ngContentSelectors:km,decls:1,vars:0,template:function(e,o){e&1&&(Gn(),Rn(0))},encapsulation:2})}return t})(),Dm=(()=>{class t{static \u0275fac=function(e){return new(e||t)};static \u0275cmp=ke({type:t,selectors:[["p-footer"]],standalone:!0,features:[Ve],ngContentSelectors:km,decls:1,vars:0,template:function(e,o){e&1&&(Gn(),Rn(0))},encapsulation:2})}return t})(),rn=(()=>{class t{template;type;name;constructor(n){this.template=n}getType(){return this.name}static \u0275fac=function(e){return new(e||t)(se(gp))};static \u0275dir=$t({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:[jt.None,"pTemplate","name"]},standalone:!0})}return t})(),Gr=(()=>{class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=en({type:t});static \u0275inj=Xi({})}return t})();var pv=["*"],Wr=(()=>{class t{label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){this.getAttributes()}getAttributes(){let n=Ec.isEmpty(this.label);this.role=n?void 0:"img",this.ariaLabel=n?void 0:this.label,this.ariaHidden=n}getClassNames(){return`p-icon ${this.styleClass?this.styleClass+" ":""}${this.spin?"p-icon-spin":""}`}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=ke({type:t,selectors:[["ng-component"]],hostAttrs:[1,"p-element","p-icon-wrapper"],inputs:{label:"label",spin:[jt.HasDecoratorInputTransform,"spin","spin",Bi],styleClass:"styleClass"},standalone:!0,features:[co,Ve],ngContentSelectors:pv,decls:1,vars:0,template:function(e,o){e&1&&(Gn(),Rn(0))},encapsulation:2,changeDetection:0})}return t})();var tu=(()=>{class t extends Wr{static \u0275fac=(()=>{let n;return function(o){return(n||(n=Ti(t)))(o||t)}})();static \u0275cmp=ke({type:t,selectors:[["ChevronDownIcon"]],standalone:!0,features:[ii,Ve],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(e,o){e&1&&(Ar(),c(0,"svg",0),H(1,"path",1),s()),e&2&&(Pi(o.getClassNames()),Lt("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();var iu=(()=>{class t extends Wr{static \u0275fac=(()=>{let n;return function(o){return(n||(n=Ti(t)))(o||t)}})();static \u0275cmp=ke({type:t,selectors:[["ChevronLeftIcon"]],standalone:!0,features:[ii,Ve],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z","fill","currentColor"]],template:function(e,o){e&1&&(Ar(),c(0,"svg",0),H(1,"path",1),s()),e&2&&(Pi(o.getClassNames()),Lt("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();var nu=(()=>{class t extends Wr{static \u0275fac=(()=>{let n;return function(o){return(n||(n=Ti(t)))(o||t)}})();static \u0275cmp=ke({type:t,selectors:[["ChevronRightIcon"]],standalone:!0,features:[ii,Ve],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(e,o){e&1&&(Ar(),c(0,"svg",0),H(1,"path",1),s()),e&2&&(Pi(o.getClassNames()),Lt("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();var ru=(()=>{class t extends Wr{static \u0275fac=(()=>{let n;return function(o){return(n||(n=Ti(t)))(o||t)}})();static \u0275cmp=ke({type:t,selectors:[["ChevronUpIcon"]],standalone:!0,features:[ii,Ve],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z","fill","currentColor"]],template:function(e,o){e&1&&(Ar(),c(0,"svg",0),H(1,"path",1),s()),e&2&&(Pi(o.getClassNames()),Lt("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();var Zt=(()=>{class t{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(n,e){n&&e&&(n.classList?n.classList.add(e):n.className+=" "+e)}static addMultipleClasses(n,e){if(n&&e)if(n.classList){let o=e.trim().split(" ");for(let r=0;r<o.length;r++)n.classList.add(o[r])}else{let o=e.split(" ");for(let r=0;r<o.length;r++)n.className+=" "+o[r]}}static removeClass(n,e){n&&e&&(n.classList?n.classList.remove(e):n.className=n.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," "))}static removeMultipleClasses(n,e){n&&e&&[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(r=>this.removeClass(n,r)))}static hasClass(n,e){return n&&e?n.classList?n.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(n.className):!1}static siblings(n){return Array.prototype.filter.call(n.parentNode.children,function(e){return e!==n})}static find(n,e){return Array.from(n.querySelectorAll(e))}static findSingle(n,e){return this.isElement(n)?n.querySelector(e):null}static index(n){let e=n.parentNode.childNodes,o=0;for(var r=0;r<e.length;r++){if(e[r]==n)return o;e[r].nodeType==1&&o++}return-1}static indexWithinGroup(n,e){let o=n.parentNode?n.parentNode.childNodes:[],r=0;for(var a=0;a<o.length;a++){if(o[a]==n)return r;o[a].attributes&&o[a].attributes[e]&&o[a].nodeType==1&&r++}return-1}static appendOverlay(n,e,o="self"){o!=="self"&&n&&e&&this.appendChild(n,e)}static alignOverlay(n,e,o="self",r=!0){n&&e&&(r&&(n.style.minWidth=`${t.getOuterWidth(e)}px`),o==="self"?this.relativePosition(n,e):this.absolutePosition(n,e))}static relativePosition(n,e,o=!0){let r=L=>{if(L)return getComputedStyle(L).getPropertyValue("position")==="relative"?L:r(L.parentElement)},a=n.offsetParent?{width:n.offsetWidth,height:n.offsetHeight}:this.getHiddenElementDimensions(n),d=e.offsetHeight??e.getBoundingClientRect().height,p=e.getBoundingClientRect(),_=this.getWindowScrollTop(),y=this.getWindowScrollLeft(),w=this.getViewport(),v=r(n)?.getBoundingClientRect()||{top:-1*_,left:-1*y},M,F;p.top+d+a.height>w.height?(M=p.top-v.top-a.height,n.style.transformOrigin="bottom",p.top+M<0&&(M=-1*p.top)):(M=d+p.top-v.top,n.style.transformOrigin="top");let k=p.left+a.width-w.width,I=p.left-v.left;a.width>w.width?F=(p.left-v.left)*-1:k>0?F=I-k:F=p.left-v.left,n.style.top=M+"px",n.style.left=F+"px",o&&(n.style.marginTop=origin==="bottom"?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static absolutePosition(n,e,o=!0){let r=n.offsetParent?{width:n.offsetWidth,height:n.offsetHeight}:this.getHiddenElementDimensions(n),a=r.height,d=r.width,p=e.offsetHeight??e.getBoundingClientRect().height,_=e.offsetWidth??e.getBoundingClientRect().width,y=e.getBoundingClientRect(),w=this.getWindowScrollTop(),S=this.getWindowScrollLeft(),v=this.getViewport(),M,F;y.top+p+a>v.height?(M=y.top+w-a,n.style.transformOrigin="bottom",M<0&&(M=w)):(M=p+y.top+w,n.style.transformOrigin="top"),y.left+d>v.width?F=Math.max(0,y.left+S+_-d):F=y.left+S,n.style.top=M+"px",n.style.left=F+"px",o&&(n.style.marginTop=origin==="bottom"?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static getParents(n,e=[]){return n.parentNode===null?e:this.getParents(n.parentNode,e.concat([n.parentNode]))}static getScrollableParents(n){let e=[];if(n){let o=this.getParents(n),r=/(auto|scroll)/,a=d=>{let p=window.getComputedStyle(d,null);return r.test(p.getPropertyValue("overflow"))||r.test(p.getPropertyValue("overflowX"))||r.test(p.getPropertyValue("overflowY"))};for(let d of o){let p=d.nodeType===1&&d.dataset.scrollselectors;if(p){let _=p.split(",");for(let y of _){let w=this.findSingle(d,y);w&&a(w)&&e.push(w)}}d.nodeType!==9&&a(d)&&e.push(d)}}return e}static getHiddenElementOuterHeight(n){n.style.visibility="hidden",n.style.display="block";let e=n.offsetHeight;return n.style.display="none",n.style.visibility="visible",e}static getHiddenElementOuterWidth(n){n.style.visibility="hidden",n.style.display="block";let e=n.offsetWidth;return n.style.display="none",n.style.visibility="visible",e}static getHiddenElementDimensions(n){let e={};return n.style.visibility="hidden",n.style.display="block",e.width=n.offsetWidth,e.height=n.offsetHeight,n.style.display="none",n.style.visibility="visible",e}static scrollInView(n,e){let o=getComputedStyle(n).getPropertyValue("borderTopWidth"),r=o?parseFloat(o):0,a=getComputedStyle(n).getPropertyValue("paddingTop"),d=a?parseFloat(a):0,p=n.getBoundingClientRect(),y=e.getBoundingClientRect().top+document.body.scrollTop-(p.top+document.body.scrollTop)-r-d,w=n.scrollTop,S=n.clientHeight,v=this.getOuterHeight(e);y<0?n.scrollTop=w+y:y+v>S&&(n.scrollTop=w+y-S+v)}static fadeIn(n,e){n.style.opacity=0;let o=+new Date,r=0,a=function(){r=+n.style.opacity.replace(",",".")+(new Date().getTime()-o)/e,n.style.opacity=r,o=+new Date,+r<1&&(window.requestAnimationFrame&&requestAnimationFrame(a)||setTimeout(a,16))};a()}static fadeOut(n,e){var o=1,r=50,a=e,d=r/a;let p=setInterval(()=>{o=o-d,o<=0&&(o=0,clearInterval(p)),n.style.opacity=o},r)}static getWindowScrollTop(){let n=document.documentElement;return(window.pageYOffset||n.scrollTop)-(n.clientTop||0)}static getWindowScrollLeft(){let n=document.documentElement;return(window.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}static matches(n,e){var o=Element.prototype,r=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.msMatchesSelector||function(a){return[].indexOf.call(document.querySelectorAll(a),this)!==-1};return r.call(n,e)}static getOuterWidth(n,e){let o=n.offsetWidth;if(e){let r=getComputedStyle(n);o+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return o}static getHorizontalPadding(n){let e=getComputedStyle(n);return parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)}static getHorizontalMargin(n){let e=getComputedStyle(n);return parseFloat(e.marginLeft)+parseFloat(e.marginRight)}static innerWidth(n){let e=n.offsetWidth,o=getComputedStyle(n);return e+=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),e}static width(n){let e=n.offsetWidth,o=getComputedStyle(n);return e-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),e}static getInnerHeight(n){let e=n.offsetHeight,o=getComputedStyle(n);return e+=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),e}static getOuterHeight(n,e){let o=n.offsetHeight;if(e){let r=getComputedStyle(n);o+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return o}static getHeight(n){let e=n.offsetHeight,o=getComputedStyle(n);return e-=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom)+parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),e}static getWidth(n){let e=n.offsetWidth,o=getComputedStyle(n);return e-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight)+parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),e}static getViewport(){let n=window,e=document,o=e.documentElement,r=e.getElementsByTagName("body")[0],a=n.innerWidth||o.clientWidth||r.clientWidth,d=n.innerHeight||o.clientHeight||r.clientHeight;return{width:a,height:d}}static getOffset(n){var e=n.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(n,e){let o=n.parentNode;if(!o)throw"Can't replace element";return o.replaceChild(e,n)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var n=window.navigator.userAgent,e=n.indexOf("MSIE ");if(e>0)return!0;var o=n.indexOf("Trident/");if(o>0){var r=n.indexOf("rv:");return!0}var a=n.indexOf("Edge/");return a>0}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(n,e){if(this.isElement(e))e.appendChild(n);else if(e&&e.el&&e.el.nativeElement)e.el.nativeElement.appendChild(n);else throw"Cannot append "+e+" to "+n}static removeChild(n,e){if(this.isElement(e))e.removeChild(n);else if(e.el&&e.el.nativeElement)e.el.nativeElement.removeChild(n);else throw"Cannot remove "+n+" from "+e}static removeElement(n){"remove"in Element.prototype?n.remove():n.parentNode.removeChild(n)}static isElement(n){return typeof HTMLElement=="object"?n instanceof HTMLElement:n&&typeof n=="object"&&n!==null&&n.nodeType===1&&typeof n.nodeName=="string"}static calculateScrollbarWidth(n){if(n){let e=getComputedStyle(n);return n.offsetWidth-n.clientWidth-parseFloat(e.borderLeftWidth)-parseFloat(e.borderRightWidth)}else{if(this.calculatedScrollbarWidth!==null)return this.calculatedScrollbarWidth;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let o=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),this.calculatedScrollbarWidth=o,o}}static calculateScrollbarHeight(){if(this.calculatedScrollbarHeight!==null)return this.calculatedScrollbarHeight;let n=document.createElement("div");n.className="p-scrollbar-measure",document.body.appendChild(n);let e=n.offsetHeight-n.clientHeight;return document.body.removeChild(n),this.calculatedScrollbarWidth=e,e}static invokeElementMethod(n,e,o){n[e].apply(n,o)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let n=this.resolveUserAgent();this.browser={},n.browser&&(this.browser[n.browser]=!0,this.browser.version=n.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let n=navigator.userAgent.toLowerCase(),e=/(chrome)[ \/]([\w.]+)/.exec(n)||/(webkit)[ \/]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||n.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[];return{browser:e[1]||"",version:e[2]||"0"}}static isInteger(n){return Number.isInteger?Number.isInteger(n):typeof n=="number"&&isFinite(n)&&Math.floor(n)===n}static isHidden(n){return!n||n.offsetParent===null}static isVisible(n){return n&&n.offsetParent!=null}static isExist(n){return n!==null&&typeof n<"u"&&n.nodeName&&n.parentNode}static focus(n,e){n&&document.activeElement!==n&&n.focus(e)}static getFocusableSelectorString(n=""){return`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
+        [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
+        input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
+        select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
+        textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
+        [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
+        [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
+        .p-inputtext:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
+        .p-button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}`}static getFocusableElements(n,e=""){let o=this.find(n,this.getFocusableSelectorString(e)),r=[];for(let a of o){let d=getComputedStyle(a);this.isVisible(a)&&d.display!="none"&&d.visibility!="hidden"&&r.push(a)}return r}static getFocusableElement(n,e=""){let o=this.findSingle(n,this.getFocusableSelectorString(e));if(o){let r=getComputedStyle(o);if(this.isVisible(o)&&r.display!="none"&&r.visibility!="hidden")return o}return null}static getFirstFocusableElement(n,e=""){let o=this.getFocusableElements(n,e);return o.length>0?o[0]:null}static getLastFocusableElement(n,e){let o=this.getFocusableElements(n,e);return o.length>0?o[o.length-1]:null}static getNextFocusableElement(n,e=!1){let o=t.getFocusableElements(n),r=0;if(o&&o.length>0){let a=o.indexOf(o[0].ownerDocument.activeElement);e?a==-1||a===0?r=o.length-1:r=a-1:a!=-1&&a!==o.length-1&&(r=a+1)}return o[r]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(n,e){if(!n)return null;switch(n){case"document":return document;case"window":return window;case"@next":return e?.nextElementSibling;case"@prev":return e?.previousElementSibling;case"@parent":return e?.parentElement;case"@grandparent":return e?.parentElement.parentElement;default:let o=typeof n;if(o==="string")return document.querySelector(n);if(o==="object"&&n.hasOwnProperty("nativeElement"))return this.isExist(n.nativeElement)?n.nativeElement:void 0;let a=(d=>!!(d&&d.constructor&&d.call&&d.apply))(n)?n():n;return a&&a.nodeType===9||this.isExist(a)?a:null}}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}static getAttribute(n,e){if(n){let o=n.getAttribute(e);return isNaN(o)?o==="true"||o==="false"?o==="true":o:+o}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(n="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,n)}static unblockBodyScroll(n="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,n)}static createElement(n,e={},...o){if(n){let r=document.createElement(n);return this.setAttributes(r,e),r.append(...o),r}}static setAttribute(n,e="",o){this.isElement(n)&&o!==null&&o!==void 0&&n.setAttribute(e,o)}static setAttributes(n,e={}){if(this.isElement(n)){let o=(r,a)=>{let d=n?.$attrs?.[r]?[n?.$attrs?.[r]]:[];return[a].flat().reduce((p,_)=>{if(_!=null){let y=typeof _;if(y==="string"||y==="number")p.push(_);else if(y==="object"){let w=Array.isArray(_)?o(r,_):Object.entries(_).map(([S,v])=>r==="style"&&(v||v===0)?`${S.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${v}`:v?S:void 0);p=w.length?p.concat(w.filter(S=>!!S)):p}}return p},d)};Object.entries(e).forEach(([r,a])=>{if(a!=null){let d=r.match(/^on(.+)/);d?n.addEventListener(d[1].toLowerCase(),a):r==="pBind"?this.setAttributes(n,a):(a=r==="class"?[...new Set(o("class",a))].join(" ").trim():r==="style"?o("style",a).join(";").trim():a,(n.$attrs=n.$attrs||{})&&(n.$attrs[r]=a),n.setAttribute(r,a))}})}}static isFocusableElement(n,e=""){return this.isElement(n)?n.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
+                [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
+                input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
+                select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
+                textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
+                [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
+                [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}`):!1}}return t})();var Mc=(()=>{class t{document;platformId;renderer;el;zone;config;constructor(n,e,o,r,a,d){this.document=n,this.platformId=e,this.renderer=o,this.el=r,this.zone=a,this.config=d}animationListener;mouseDownListener;timeout;ngAfterViewInit(){Lr(this.platformId)&&this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this))})}onMouseDown(n){let e=this.getInk();if(!e||this.document.defaultView?.getComputedStyle(e,null).display==="none")return;if(Zt.removeClass(e,"p-ink-active"),!Zt.getHeight(e)&&!Zt.getWidth(e)){let d=Math.max(Zt.getOuterWidth(this.el.nativeElement),Zt.getOuterHeight(this.el.nativeElement));e.style.height=d+"px",e.style.width=d+"px"}let o=Zt.getOffset(this.el.nativeElement),r=n.pageX-o.left+this.document.body.scrollTop-Zt.getWidth(e)/2,a=n.pageY-o.top+this.document.body.scrollLeft-Zt.getHeight(e)/2;this.renderer.setStyle(e,"top",a+"px"),this.renderer.setStyle(e,"left",r+"px"),Zt.addClass(e,"p-ink-active"),this.timeout=setTimeout(()=>{let d=this.getInk();d&&Zt.removeClass(d,"p-ink-active")},401)}getInk(){let n=this.el.nativeElement.children;for(let e=0;e<n.length;e++)if(typeof n[e].className=="string"&&n[e].className.indexOf("p-ink")!==-1)return n[e];return null}resetInk(){let n=this.getInk();n&&Zt.removeClass(n,"p-ink-active")}onAnimationEnd(n){this.timeout&&clearTimeout(this.timeout),Zt.removeClass(n.currentTarget,"p-ink-active")}create(){let n=this.renderer.createElement("span");this.renderer.addClass(n,"p-ink"),this.renderer.appendChild(this.el.nativeElement,n),this.renderer.setAttribute(n,"aria-hidden","true"),this.renderer.setAttribute(n,"role","presentation"),this.animationListener||(this.animationListener=this.renderer.listen(n,"animationend",this.onAnimationEnd.bind(this)))}remove(){let n=this.getInk();n&&(this.mouseDownListener&&this.mouseDownListener(),this.animationListener&&this.animationListener(),this.mouseDownListener=null,this.animationListener=null,Zt.removeElement(n))}ngOnDestroy(){this.config&&this.config.ripple&&this.remove()}static \u0275fac=function(e){return new(e||t)(se(ha),se(Lo),se(Mr),se(sn),se(ic),se(Ic,8))};static \u0275dir=$t({type:t,selectors:[["","pRipple",""]],hostAttrs:[1,"p-ripple","p-element"],standalone:!0})}return t})(),Rm=(()=>{class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=en({type:t});static \u0275inj=Xi({})}return t})();var fv=["itemsContainer"],hv=["indicatorContent"],gv=[[["p-header"]],[["p-footer"]]],vv=["p-header","p-footer"],_v=(t,i)=>({"p-carousel p-component":!0,"p-carousel-vertical":t,"p-carousel-horizontal":i}),bv=t=>({height:t}),yv=t=>({"p-carousel-prev p-link":!0,"p-disabled":t}),Vm=(t,i,n)=>({"p-carousel-item p-carousel-item-cloned":!0,"p-carousel-item-active":t,"p-carousel-item-start":i,"p-carousel-item-end":n}),ou=t=>({$implicit:t}),Cv=(t,i,n)=>({"p-carousel-item":!0,"p-carousel-item-active":t,"p-carousel-item-start":i,"p-carousel-item-end":n}),wv=t=>({"p-carousel-next p-link":!0,"p-disabled":t}),Sv=t=>({"p-carousel-indicator":!0,"p-highlight":t});function xv(t,i){t&1&&Nr(0)}function Ev(t,i){if(t&1&&(c(0,"div",12),Rn(1),O(2,xv,1,0,"ng-container",13),s()),t&2){let n=V();h(2),g("ngTemplateOutlet",n.headerTemplate)}}function Fv(t,i){t&1&&H(0,"ChevronLeftIcon",18),t&2&&g("styleClass","carousel-prev-icon")}function Iv(t,i){t&1&&H(0,"ChevronUpIcon",18),t&2&&g("styleClass","carousel-prev-icon")}function Av(t,i){if(t&1&&(kn(0),O(1,Fv,1,1,"ChevronLeftIcon",17)(2,Iv,1,1,"ChevronUpIcon",17),Dn()),t&2){let n=V(2);h(),g("ngIf",!n.isVertical()),h(),g("ngIf",n.isVertical())}}function Mv(t,i){}function Nv(t,i){t&1&&O(0,Mv,0,0,"ng-template")}function Tv(t,i){if(t&1&&(c(0,"span",19),O(1,Nv,1,0,null,13),s()),t&2){let n=V(2);h(),g("ngTemplateOutlet",n.previousIconTemplate)}}function Pv(t,i){if(t&1){let n=Re();c(0,"button",14),ee("click",function(o){me(n);let r=V();return fe(r.navBackward(o))}),O(1,Av,3,2,"ng-container",15)(2,Tv,2,1,"span",16),s()}if(t&2){let n=V();g("ngClass",_e(5,yv,n.isBackwardNavDisabled()))("disabled",n.isBackwardNavDisabled()),Lt("aria-label",n.ariaPrevButtonLabel()),h(),g("ngIf",!n.previousIconTemplate),h(),g("ngIf",n.previousIconTemplate)}}function Lv(t,i){t&1&&Nr(0)}function Ov(t,i){if(t&1&&(c(0,"div",4),O(1,Lv,1,0,"ng-container",20),s()),t&2){let n=i.$implicit,e=i.index,o=V();g("ngClass",oc(6,Vm,o.totalShiftedItems*-1===o.value.length,e===0,o.clonedItemsForStarting.length-1===e)),Lt("aria-hidden",o.totalShiftedItems*-1!==o.value.length)("aria-label",o.ariaSlideNumber(e))("aria-roledescription",o.ariaSlideLabel()),h(),g("ngTemplateOutlet",o.itemTemplate)("ngTemplateOutletContext",_e(10,ou,n))}}function kv(t,i){t&1&&Nr(0)}function Dv(t,i){if(t&1&&(c(0,"div",4),O(1,kv,1,0,"ng-container",20),s()),t&2){let n=i.$implicit,e=i.index,o=V();g("ngClass",oc(6,Cv,o.firstIndex()<=e&&o.lastIndex()>=e,o.firstIndex()===e,o.lastIndex()===e)),Lt("aria-hidden",o.totalShiftedItems*-1!==o.value.length)("aria-label",o.ariaSlideNumber(e))("aria-roledescription",o.ariaSlideLabel()),h(),g("ngTemplateOutlet",o.itemTemplate)("ngTemplateOutletContext",_e(10,ou,n))}}function Rv(t,i){t&1&&Nr(0)}function Vv(t,i){if(t&1&&(c(0,"div",4),O(1,Rv,1,0,"ng-container",20),s()),t&2){let n=i.$implicit,e=i.index,o=V();g("ngClass",oc(3,Vm,o.totalShiftedItems*-1===o.numVisible,e===0,o.clonedItemsForFinishing.length-1===e)),h(),g("ngTemplateOutlet",o.itemTemplate)("ngTemplateOutletContext",_e(7,ou,n))}}function qv(t,i){t&1&&H(0,"ChevronRightIcon",18),t&2&&g("styleClass","carousel-prev-icon")}function Bv(t,i){t&1&&H(0,"ChevronDownIcon",18),t&2&&g("styleClass","carousel-prev-icon")}function jv(t,i){if(t&1&&(kn(0),O(1,qv,1,1,"ChevronRightIcon",17)(2,Bv,1,1,"ChevronDownIcon",17),Dn()),t&2){let n=V(2);h(),g("ngIf",!n.isVertical()),h(),g("ngIf",n.isVertical())}}function Uv(t,i){}function zv(t,i){t&1&&O(0,Uv,0,0,"ng-template")}function Hv(t,i){if(t&1&&(c(0,"span",19),O(1,zv,1,0,null,13),s()),t&2){let n=V(2);h(),g("ngTemplateOutlet",n.nextIconTemplate)}}function Gv(t,i){if(t&1){let n=Re();c(0,"button",14),ee("click",function(o){me(n);let r=V();return fe(r.navForward(o))}),O(1,jv,3,2,"ng-container",15)(2,Hv,2,1,"span",16),s()}if(t&2){let n=V();g("ngClass",_e(5,wv,n.isForwardNavDisabled()))("disabled",n.isForwardNavDisabled()),Lt("aria-label",n.ariaNextButtonLabel()),h(),g("ngIf",!n.nextIconTemplate),h(),g("ngIf",n.nextIconTemplate)}}function Wv(t,i){if(t&1){let n=Re();c(0,"li",4)(1,"button",22),ee("click",function(o){let r=me(n).index,a=V(2);return fe(a.onDotClick(o,r))}),s()()}if(t&2){let n=i.index,e=V(2);g("ngClass",_e(9,Sv,e._page===n)),Lt("data-pc-section","indicator"),h(),Pi(e.indicatorStyleClass),g("ngClass","p-link")("ngStyle",e.indicatorStyle)("tabindex",e._page===n?0:-1),Lt("aria-label",e.ariaPageLabel(n+1))("aria-current",e._page===n?"page":void 0)}}function $v(t,i){if(t&1){let n=Re();c(0,"ul",21,1),ee("keydown",function(o){me(n);let r=V();return fe(r.onIndicatorKeydown(o))}),O(2,Wv,2,11,"li",9),s()}if(t&2){let n=V();Pi(n.indicatorsContentClass),g("ngClass","p-carousel-indicators p-reset")("ngStyle",n.indicatorsContentStyle),h(2),g("ngForOf",n.totalDotsArray())}}function Kv(t,i){t&1&&Nr(0)}function Yv(t,i){if(t&1&&(c(0,"div",23),Rn(1,1),O(2,Kv,1,0,"ng-container",13),s()),t&2){let n=V();h(2),g("ngTemplateOutlet",n.footerTemplate)}}var qm=(()=>{class t{el;zone;cd;renderer;document;platformId;config;get page(){return this._page}set page(n){this.isCreated&&n!==this._page&&(this.autoplayInterval&&this.stopAutoplay(),n>this._page&&n<=this.totalDots()-1?this.step(-1,n):n<this._page&&this.step(1,n)),this._page=n}get numVisible(){return this._numVisible}set numVisible(n){this._numVisible=n}get numScroll(){return this._numVisible}set numScroll(n){this._numScroll=n}responsiveOptions;orientation="horizontal";verticalViewPortHeight="300px";contentClass="";indicatorsContentClass="";indicatorsContentStyle;indicatorStyleClass="";indicatorStyle;get value(){return this._value}set value(n){this._value=n}circular=!1;showIndicators=!0;showNavigators=!0;autoplayInterval=0;style;styleClass;onPage=new lt;itemsContainer;indicatorContent;headerFacet;footerFacet;templates;_numVisible=1;_numScroll=1;_oldNumScroll=0;prevState={numScroll:0,numVisible:0,value:[]};defaultNumScroll=1;defaultNumVisible=1;_page=0;_value;carouselStyle;id;totalShiftedItems;isRemainingItemsAdded=!1;animationTimeout;translateTimeout;remainingItems=0;_items;startPos;documentResizeListener;clonedItemsForStarting;clonedItemsForFinishing;allowAutoplay;interval;isCreated;swipeThreshold=20;itemTemplate;headerTemplate;footerTemplate;previousIconTemplate;nextIconTemplate;window;constructor(n,e,o,r,a,d,p){this.el=n,this.zone=e,this.cd=o,this.renderer=r,this.document=a,this.platformId=d,this.config=p,this.totalShiftedItems=this.page*this.numScroll*-1,this.window=this.document.defaultView}ngOnChanges(n){Lr(this.platformId)&&(n.value&&this.circular&&this._value&&this.setCloneItems(),this.isCreated&&(n.numVisible&&(this.responsiveOptions&&(this.defaultNumVisible=this.numVisible),this.isCircular()&&this.setCloneItems(),this.createStyle(),this.calculatePosition()),n.numScroll&&this.responsiveOptions&&(this.defaultNumScroll=this.numScroll))),this.cd.markForCheck()}ngAfterContentInit(){this.id=Fc(),Lr(this.platformId)&&(this.allowAutoplay=!!this.autoplayInterval,this.circular&&this.setCloneItems(),this.responsiveOptions&&(this.defaultNumScroll=this._numScroll,this.defaultNumVisible=this._numVisible),this.createStyle(),this.calculatePosition(),this.responsiveOptions&&this.bindDocumentListeners()),this.templates?.forEach(n=>{switch(n.getType()){case"item":this.itemTemplate=n.template;break;case"header":this.headerTemplate=n.template;break;case"footer":this.footerTemplate=n.template;break;case"previousicon":this.previousIconTemplate=n.template;break;case"nexticon":this.nextIconTemplate=n.template;break;default:this.itemTemplate=n.template;break}}),this.cd.detectChanges()}ngAfterContentChecked(){if(Lr(this.platformId)){let n=this.isCircular(),e=this.totalShiftedItems;if(this.value&&this.itemsContainer&&(this.prevState.numScroll!==this._numScroll||this.prevState.numVisible!==this._numVisible||this.prevState.value.length!==this.value.length)){this.autoplayInterval&&this.stopAutoplay(!1),this.remainingItems=(this.value.length-this._numVisible)%this._numScroll;let o=this._page;this.totalDots()!==0&&o>=this.totalDots()&&(o=this.totalDots()-1,this._page=o,this.onPage.emit({page:this.page})),e=o*this._numScroll*-1,n&&(e-=this._numVisible),o===this.totalDots()-1&&this.remainingItems>0?(e+=-1*this.remainingItems+this._numScroll,this.isRemainingItemsAdded=!0):this.isRemainingItemsAdded=!1,e!==this.totalShiftedItems&&(this.totalShiftedItems=e),this._oldNumScroll=this._numScroll,this.prevState.numScroll=this._numScroll,this.prevState.numVisible=this._numVisible,this.prevState.value=[...this._value],this.totalDots()>0&&this.itemsContainer.nativeElement&&(this.itemsContainer.nativeElement.style.transform=this.isVertical()?`translate3d(0, ${e*(100/this._numVisible)}%, 0)`:`translate3d(${e*(100/this._numVisible)}%, 0, 0)`),this.isCreated=!0,this.autoplayInterval&&this.isAutoplay()&&this.startAutoplay()}n&&(this.page===0?e=-1*this._numVisible:e===0&&(e=-1*this.value.length,this.remainingItems>0&&(this.isRemainingItemsAdded=!0)),e!==this.totalShiftedItems&&(this.totalShiftedItems=e))}}createStyle(){this.carouselStyle||(this.carouselStyle=this.renderer.createElement("style"),this.carouselStyle.type="text/css",Zt.setAttribute(this.carouselStyle,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.carouselStyle));let n=`
+            #${this.id} .p-carousel-item {
+				flex: 1 0 ${100/this.numVisible}%
+			}
+        `;if(this.responsiveOptions){this.responsiveOptions.sort((e,o)=>{let r=e.breakpoint,a=o.breakpoint,d=null;return r==null&&a!=null?d=-1:r!=null&&a==null?d=1:r==null&&a==null?d=0:typeof r=="string"&&typeof a=="string"?d=r.localeCompare(a,void 0,{numeric:!0}):d=r<a?-1:r>a?1:0,-1*d});for(let e=0;e<this.responsiveOptions.length;e++){let o=this.responsiveOptions[e];n+=`
+                    @media screen and (max-width: ${o.breakpoint}) {
+                        #${this.id} .p-carousel-item {
+                            flex: 1 0 ${100/o.numVisible}%
+                        }
+                    }
+                `}}this.carouselStyle.innerHTML=n}calculatePosition(){if(this.responsiveOptions){let n={numVisible:this.defaultNumVisible,numScroll:this.defaultNumScroll};if(typeof window<"u"){let e=window.innerWidth;for(let o=0;o<this.responsiveOptions.length;o++){let r=this.responsiveOptions[o];parseInt(r.breakpoint,10)>=e&&(n=r)}}if(this._numScroll!==n.numScroll){let e=this._page;e=Math.floor(e*this._numScroll/n.numScroll);let o=n.numScroll*this.page*-1;this.isCircular()&&(o-=n.numVisible),this.totalShiftedItems=o,this._numScroll=n.numScroll,this._page=e,this.onPage.emit({page:this.page})}this._numVisible!==n.numVisible&&(this._numVisible=n.numVisible,this.setCloneItems()),this.cd.markForCheck()}}setCloneItems(){this.clonedItemsForStarting=[],this.clonedItemsForFinishing=[],this.isCircular()&&(this.clonedItemsForStarting.push(...this.value.slice(-1*this._numVisible)),this.clonedItemsForFinishing.push(...this.value.slice(0,this._numVisible)))}firstIndex(){return this.isCircular()?-1*(this.totalShiftedItems+this.numVisible):this.totalShiftedItems*-1}lastIndex(){return this.firstIndex()+this.numVisible-1}totalDots(){return this.value?.length?Math.ceil((this.value.length-this._numVisible)/this._numScroll)+1:0}totalDotsArray(){let n=this.totalDots();return n<=0?[]:Array(n).fill(0)}isVertical(){return this.orientation==="vertical"}isCircular(){return this.circular&&this.value&&this.value.length>=this.numVisible}isAutoplay(){return this.autoplayInterval&&this.allowAutoplay}isForwardNavDisabled(){return this.isEmpty()||this._page>=this.totalDots()-1&&!this.isCircular()}isBackwardNavDisabled(){return this.isEmpty()||this._page<=0&&!this.isCircular()}isEmpty(){return!this.value||this.value.length===0}navForward(n,e){(this.isCircular()||this._page<this.totalDots()-1)&&this.step(-1,e),this.autoplayInterval&&this.stopAutoplay(),n&&n.cancelable&&n.preventDefault()}navBackward(n,e){(this.isCircular()||this._page!==0)&&this.step(1,e),this.autoplayInterval&&this.stopAutoplay(),n&&n.cancelable&&n.preventDefault()}onDotClick(n,e){let o=this._page;this.autoplayInterval&&this.stopAutoplay(),e>o?this.navForward(n,e):e<o&&this.navBackward(n,e)}onIndicatorKeydown(n){switch(n.code){case"ArrowRight":this.onRightKey();break;case"ArrowLeft":this.onLeftKey();break}}onRightKey(){let n=[...Zt.find(this.indicatorContent.nativeElement,'[data-pc-section="indicator"]')],e=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(e,e+1===n.length?n.length-1:e+1)}onLeftKey(){let n=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(n,n-1<=0?0:n-1)}onHomeKey(){let n=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(n,0)}onEndKey(){let n=[...Zt.find(this.indicatorContent.nativeElement,'[data-pc-section="indicator"]r')],e=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(e,n.length-1)}onTabKey(){let n=[...Zt.find(this.indicatorContent.nativeElement,'[data-pc-section="indicator"]')],e=n.findIndex(a=>Zt.getAttribute(a,"data-p-highlight")===!0),o=Zt.findSingle(this.indicatorContent.nativeElement,'[data-pc-section="indicator"] > button[tabindex="0"]'),r=n.findIndex(a=>a===o.parentElement);n[r].children[0].tabIndex="-1",n[e].children[0].tabIndex="0"}findFocusedIndicatorIndex(){let n=[...Zt.find(this.indicatorContent.nativeElement,'[data-pc-section="indicator"]')],e=Zt.findSingle(this.indicatorContent.nativeElement,'[data-pc-section="indicator"] > button[tabindex="0"]');return n.findIndex(o=>o===e.parentElement)}changedFocusedIndicator(n,e){let o=[...Zt.find(this.indicatorContent.nativeElement,'[data-pc-section="indicator"]')];o[n].children[0].tabIndex="-1",o[e].children[0].tabIndex="0",o[e].children[0].focus()}step(n,e){let o=this.totalShiftedItems,r=this.isCircular();if(e!=null)o=this._numScroll*e*-1,r&&(o-=this._numVisible),this.isRemainingItemsAdded=!1;else{o+=this._numScroll*n,this.isRemainingItemsAdded&&(o+=this.remainingItems-this._numScroll*n,this.isRemainingItemsAdded=!1);let a=r?o+this._numVisible:o;e=Math.abs(Math.floor(a/this._numScroll))}r&&this.page===this.totalDots()-1&&n===-1?(o=-1*(this.value.length+this._numVisible),e=0):r&&this.page===0&&n===1?(o=0,e=this.totalDots()-1):e===this.totalDots()-1&&this.remainingItems>0&&(o+=this.remainingItems*-1-this._numScroll*n,this.isRemainingItemsAdded=!0),this.itemsContainer&&(this.itemsContainer.nativeElement.style.transform=this.isVertical()?`translate3d(0, ${o*(100/this._numVisible)}%, 0)`:`translate3d(${o*(100/this._numVisible)}%, 0, 0)`,this.itemsContainer.nativeElement.style.transition="transform 500ms ease 0s"),this.totalShiftedItems=o,this._page=e,this.onPage.emit({page:this.page}),this.cd.markForCheck()}startAutoplay(){this.interval=setInterval(()=>{this.totalDots()>0&&(this.page===this.totalDots()-1?this.step(-1,0):this.step(-1,this.page+1))},this.autoplayInterval),this.allowAutoplay=!0,this.cd.markForCheck()}stopAutoplay(n=!0){this.interval&&(clearInterval(this.interval),this.interval=void 0,n&&(this.allowAutoplay=!1)),this.cd.markForCheck()}isPlaying(){return!!this.interval}onTransitionEnd(){this.itemsContainer&&(this.itemsContainer.nativeElement.style.transition="",(this.page===0||this.page===this.totalDots()-1)&&this.isCircular()&&(this.itemsContainer.nativeElement.style.transform=this.isVertical()?`translate3d(0, ${this.totalShiftedItems*(100/this._numVisible)}%, 0)`:`translate3d(${this.totalShiftedItems*(100/this._numVisible)}%, 0, 0)`))}onTouchStart(n){let e=n.changedTouches[0];this.startPos={x:e.pageX,y:e.pageY}}onTouchMove(n){n.cancelable&&n.preventDefault()}onTouchEnd(n){let e=n.changedTouches[0];this.isVertical()?this.changePageOnTouch(n,e.pageY-this.startPos.y):this.changePageOnTouch(n,e.pageX-this.startPos.x)}changePageOnTouch(n,e){Math.abs(e)>this.swipeThreshold&&(e<0?this.navForward(n):this.navBackward(n))}ariaPrevButtonLabel(){return this.config.translation.aria?this.config.translation.aria.prevPageLabel:void 0}ariaSlideLabel(){return this.config.translation.aria?this.config.translation.aria.slide:void 0}ariaNextButtonLabel(){return this.config.translation.aria?this.config.translation.aria.nextPageLabel:void 0}ariaSlideNumber(n){return this.config.translation.aria?this.config.translation.aria.slideNumber.replace(/{slideNumber}/g,n):void 0}ariaPageLabel(n){return this.config.translation.aria?this.config.translation.aria.pageLabel.replace(/{page}/g,n):void 0}bindDocumentListeners(){Lr(this.platformId)&&(this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",n=>{this.calculatePosition()})))}unbindDocumentListeners(){Lr(this.platformId)&&this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}ngOnDestroy(){this.responsiveOptions&&this.unbindDocumentListeners(),this.autoplayInterval&&this.stopAutoplay()}static \u0275fac=function(e){return new(e||t)(se(sn),se(ic),se(lc),se(Mr),se(ha),se(Lo),se(Ic))};static \u0275cmp=ke({type:t,selectors:[["p-carousel"]],contentQueries:function(e,o,r){if(e&1&&(Tr(r,Ac,5),Tr(r,Dm,5),Tr(r,rn,4)),e&2){let a;Wn(a=$n())&&(o.headerFacet=a.first),Wn(a=$n())&&(o.footerFacet=a.first),Wn(a=$n())&&(o.templates=a)}},viewQuery:function(e,o){if(e&1&&(Bd(fv,5),Bd(hv,5)),e&2){let r;Wn(r=$n())&&(o.itemsContainer=r.first),Wn(r=$n())&&(o.indicatorContent=r.first)}},hostAttrs:[1,"p-element"],inputs:{page:"page",numVisible:"numVisible",numScroll:"numScroll",responsiveOptions:"responsiveOptions",orientation:"orientation",verticalViewPortHeight:"verticalViewPortHeight",contentClass:"contentClass",indicatorsContentClass:"indicatorsContentClass",indicatorsContentStyle:"indicatorsContentStyle",indicatorStyleClass:"indicatorStyleClass",indicatorStyle:"indicatorStyle",value:"value",circular:[jt.HasDecoratorInputTransform,"circular","circular",Bi],showIndicators:[jt.HasDecoratorInputTransform,"showIndicators","showIndicators",Bi],showNavigators:[jt.HasDecoratorInputTransform,"showNavigators","showNavigators",Bi],autoplayInterval:[jt.HasDecoratorInputTransform,"autoplayInterval","autoplayInterval",sc],style:"style",styleClass:"styleClass"},outputs:{onPage:"onPage"},features:[co,qi],ngContentSelectors:vv,decls:14,vars:23,consts:[["itemsContainer",""],["indicatorContent",""],["role","region",3,"ngClass","ngStyle"],["class","p-carousel-header",4,"ngIf"],[3,"ngClass"],[1,"p-carousel-container"],["type","button","pRipple","",3,"ngClass","disabled","click",4,"ngIf"],[1,"p-carousel-items-content",3,"touchend","touchstart","touchmove","ngStyle"],[1,"p-carousel-items-container",3,"transitionend"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass","class","ngStyle","keydown",4,"ngIf"],["class","p-carousel-footer",4,"ngIf"],[1,"p-carousel-header"],[4,"ngTemplateOutlet"],["type","button","pRipple","",3,"click","ngClass","disabled"],[4,"ngIf"],["class","p-carousel-prev-icon",4,"ngIf"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[1,"p-carousel-prev-icon"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"keydown","ngClass","ngStyle"],["type","button",3,"click","ngClass","ngStyle","tabindex"],[1,"p-carousel-footer"]],template:function(e,o){if(e&1){let r=Re();Gn(gv),c(0,"div",2),O(1,Ev,3,1,"div",3),c(2,"div",4)(3,"div",5),O(4,Pv,3,7,"button",6),c(5,"div",7),ee("touchend",function(d){return me(r),fe(o.onTouchEnd(d))})("touchstart",function(d){return me(r),fe(o.onTouchStart(d))})("touchmove",function(d){return me(r),fe(o.onTouchMove(d))}),c(6,"div",8,0),ee("transitionend",function(){return me(r),fe(o.onTransitionEnd())}),O(8,Ov,2,12,"div",9)(9,Dv,2,12,"div",9)(10,Vv,2,9,"div",9),s()(),O(11,Gv,3,7,"button",6),s(),O(12,$v,3,5,"ul",10),s(),O(13,Yv,3,1,"div",11),s()}e&2&&(Pi(o.styleClass),g("ngClass",bp(18,_v,o.isVertical(),!o.isVertical()))("ngStyle",o.style),Lt("id",o.id),h(),g("ngIf",o.headerFacet||o.headerTemplate),h(),Pi(o.contentClass),g("ngClass","p-carousel-content"),h(),Lt("aria-live",o.allowAutoplay?"polite":"off"),h(),g("ngIf",o.showNavigators),h(),g("ngStyle",_e(21,bv,o.isVertical()?o.verticalViewPortHeight:"auto")),h(3),g("ngForOf",o.clonedItemsForStarting),h(),g("ngForOf",o.value),h(),g("ngForOf",o.clonedItemsForFinishing),h(),g("ngIf",o.showNavigators),h(),g("ngIf",o.showIndicators),h(),g("ngIf",o.footerFacet||o.footerTemplate))},dependencies:()=>[St,Jt,Xe,el,Xa,Mc,nu,iu,tu,ru],styles:[`@layer primeng{.p-carousel{display:flex;flex-direction:column}.p-carousel-content{display:flex;flex-direction:column;overflow:auto}.p-carousel-prev,.p-carousel-next{align-self:center;flex-grow:0;flex-shrink:0;display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-carousel-container{display:flex;flex-direction:row}.p-carousel-items-content{overflow:hidden;width:100%}.p-carousel-items-container{display:flex;flex-direction:row}.p-carousel-indicators{display:flex;flex-direction:row;justify-content:center;flex-wrap:wrap}.p-carousel-indicator>button{display:flex;align-items:center;justify-content:center}.p-carousel-vertical .p-carousel-container{flex-direction:column}.p-carousel-vertical .p-carousel-items-container{flex-direction:column;height:100%}.p-items-hidden .p-carousel-item{visibility:hidden}.p-items-hidden .p-carousel-item.p-carousel-item-active{visibility:visible}}
+`],encapsulation:2,changeDetection:0})}return t})(),Bm=(()=>{class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=en({type:t});static \u0275inj=Xi({imports:[Ze,Gr,Rm,nu,iu,tu,ru,Ze,Gr]})}return t})();var jm=(()=>{class t{autofocus=!1;focused=!1;platformId=En(Lo);document=En(ha);host=En(sn);ngAfterContentChecked(){this.autofocus===!1?this.host.nativeElement.removeAttribute("autofocus"):this.host.nativeElement.setAttribute("autofocus",!0),this.focused||this.autoFocus()}ngAfterViewChecked(){this.focused||this.autoFocus()}autoFocus(){Lr(this.platformId)&&this.autofocus&&setTimeout(()=>{let n=Zt.getFocusableElements(this.host?.nativeElement);n.length===0&&this.host.nativeElement.focus(),n.length>0&&n[0].focus(),this.focused=!0})}static \u0275fac=function(e){return new(e||t)};static \u0275dir=$t({type:t,selectors:[["","pAutoFocus",""]],hostAttrs:[1,"p-element"],inputs:{autofocus:[jt.HasDecoratorInputTransform,"autofocus","autofocus",Bi]},standalone:!0,features:[co]})}return t})();var Um=(()=>{class t extends Wr{pathId;ngOnInit(){this.pathId="url(#"+Fc()+")"}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Ti(t)))(o||t)}})();static \u0275cmp=ke({type:t,selectors:[["SpinnerIcon"]],standalone:!0,features:[ii,Ve],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(e,o){e&1&&(Ar(),c(0,"svg",0)(1,"g"),H(2,"path",1),s(),c(3,"defs")(4,"clipPath",2),H(5,"rect",3),s()()()),e&2&&(Pi(o.getClassNames()),Lt("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(),Lt("clip-path",o.pathId),h(3),g("id",o.pathId))},encapsulation:2})}return t})();var Jv=["*"],zm=t=>({class:t});function Zv(t,i){t&1&&Nr(0)}function Xv(t,i){if(t&1&&H(0,"span",8),t&2){let n=V(3);g("ngClass",n.iconClass()),Lt("aria-hidden",!0)("data-pc-section","loadingicon")}}function e2(t,i){if(t&1&&H(0,"SpinnerIcon",9),t&2){let n=V(3);g("styleClass",n.spinnerIconClass())("spin",!0),Lt("aria-hidden",!0)("data-pc-section","loadingicon")}}function t2(t,i){if(t&1&&(kn(0),O(1,Xv,1,3,"span",6)(2,e2,1,4,"SpinnerIcon",7),Dn()),t&2){let n=V(2);h(),g("ngIf",n.loadingIcon),h(),g("ngIf",!n.loadingIcon)}}function i2(t,i){}function n2(t,i){if(t&1&&O(0,i2,0,0,"ng-template",10),t&2){let n=V(2);g("ngIf",n.loadingIconTemplate)}}function r2(t,i){if(t&1&&(kn(0),O(1,t2,3,2,"ng-container",2)(2,n2,1,1,null,5),Dn()),t&2){let n=V();h(),g("ngIf",!n.loadingIconTemplate),h(),g("ngTemplateOutlet",n.loadingIconTemplate)("ngTemplateOutletContext",_e(3,zm,n.iconClass()))}}function o2(t,i){if(t&1&&H(0,"span",8),t&2){let n=V(2);g("ngClass",n.iconClass()),Lt("data-pc-section","icon")}}function a2(t,i){}function l2(t,i){if(t&1&&O(0,a2,0,0,"ng-template",10),t&2){let n=V(2);g("ngIf",!n.icon&&n.iconTemplate)}}function s2(t,i){if(t&1&&(kn(0),O(1,o2,1,2,"span",6)(2,l2,1,1,null,5),Dn()),t&2){let n=V();h(),g("ngIf",n.icon&&!n.iconTemplate),h(),g("ngTemplateOutlet",n.iconTemplate)("ngTemplateOutletContext",_e(3,zm,n.iconClass()))}}function c2(t,i){if(t&1&&(c(0,"span",11),b(1),s()),t&2){let n=V();Lt("aria-hidden",n.icon&&!n.label)("data-pc-section","label"),h(),Ut(n.label)}}function d2(t,i){if(t&1&&(c(0,"span",8),b(1),s()),t&2){let n=V();Pi(n.badgeClass),g("ngClass",n.badgeStyleClass()),Lt("data-pc-section","badge"),h(),Ut(n.badge)}}var u2=(()=>{class t{el;type="button";iconPos="left";icon;badge;label;disabled;loading=!1;loadingIcon;raised=!1;rounded=!1;text=!1;plain=!1;severity;outlined=!1;link=!1;tabindex;size;style;styleClass;badgeClass;ariaLabel;autofocus;onClick=new lt;onFocus=new lt;onBlur=new lt;contentTemplate;loadingIconTemplate;iconTemplate;templates;constructor(n){this.el=n}spinnerIconClass(){return Object.entries(this.iconClass()).filter(([,n])=>!!n).reduce((n,[e])=>n+` ${e}`,"p-button-loading-icon")}iconClass(){let n={"p-button-icon":!0,"p-button-icon-left":this.iconPos==="left"&&this.label,"p-button-icon-right":this.iconPos==="right"&&this.label,"p-button-icon-top":this.iconPos==="top"&&this.label,"p-button-icon-bottom":this.iconPos==="bottom"&&this.label};return this.loading?n[`p-button-loading-icon pi-spin ${this.loadingIcon??""}`]=!0:this.icon&&(n[this.icon]=!0),n}get buttonClass(){return{"p-button p-component":!0,"p-button-icon-only":(this.icon||this.iconTemplate||this.loadingIcon||this.loadingIconTemplate)&&!this.label,"p-button-vertical":(this.iconPos==="top"||this.iconPos==="bottom")&&this.label,"p-disabled":this.disabled||this.loading,"p-button-loading":this.loading,"p-button-loading-label-only":this.loading&&!this.icon&&this.label&&!this.loadingIcon&&this.iconPos==="left","p-button-link":this.link,[`p-button-${this.severity}`]:this.severity,"p-button-raised":this.raised,"p-button-rounded":this.rounded,"p-button-text":this.text,"p-button-outlined":this.outlined,"p-button-sm":this.size==="small","p-button-lg":this.size==="large","p-button-plain":this.plain,[`${this.styleClass}`]:this.styleClass}}ngAfterContentInit(){this.templates?.forEach(n=>{switch(n.getType()){case"content":this.contentTemplate=n.template;break;case"icon":this.iconTemplate=n.template;break;case"loadingicon":this.loadingIconTemplate=n.template;break;default:this.contentTemplate=n.template;break}})}badgeStyleClass(){return{"p-badge p-component":!0,"p-badge-no-gutter":this.badge&&String(this.badge).length===1}}static \u0275fac=function(e){return new(e||t)(se(sn))};static \u0275cmp=ke({type:t,selectors:[["p-button"]],contentQueries:function(e,o,r){if(e&1&&Tr(r,rn,4),e&2){let a;Wn(a=$n())&&(o.templates=a)}},hostAttrs:[1,"p-element"],inputs:{type:"type",iconPos:"iconPos",icon:"icon",badge:"badge",label:"label",disabled:[jt.HasDecoratorInputTransform,"disabled","disabled",Bi],loading:[jt.HasDecoratorInputTransform,"loading","loading",Bi],loadingIcon:"loadingIcon",raised:[jt.HasDecoratorInputTransform,"raised","raised",Bi],rounded:[jt.HasDecoratorInputTransform,"rounded","rounded",Bi],text:[jt.HasDecoratorInputTransform,"text","text",Bi],plain:[jt.HasDecoratorInputTransform,"plain","plain",Bi],severity:"severity",outlined:[jt.HasDecoratorInputTransform,"outlined","outlined",Bi],link:[jt.HasDecoratorInputTransform,"link","link",Bi],tabindex:[jt.HasDecoratorInputTransform,"tabindex","tabindex",sc],size:"size",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",ariaLabel:"ariaLabel",autofocus:[jt.HasDecoratorInputTransform,"autofocus","autofocus",Bi]},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},standalone:!0,features:[co,Ve],ngContentSelectors:Jv,decls:7,vars:14,consts:[["pRipple","","pAutoFocus","",3,"click","focus","blur","ngStyle","disabled","ngClass","autofocus"],[4,"ngTemplateOutlet"],[4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass","class",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass",4,"ngIf"],[3,"styleClass","spin",4,"ngIf"],[3,"ngClass"],[3,"styleClass","spin"],[3,"ngIf"],[1,"p-button-label"]],template:function(e,o){e&1&&(Gn(),c(0,"button",0),ee("click",function(a){return o.onClick.emit(a)})("focus",function(a){return o.onFocus.emit(a)})("blur",function(a){return o.onBlur.emit(a)}),Rn(1),O(2,Zv,1,0,"ng-container",1)(3,r2,3,5,"ng-container",2)(4,s2,3,5,"ng-container",2)(5,c2,2,3,"span",3)(6,d2,2,5,"span",4),s()),e&2&&(g("ngStyle",o.style)("disabled",o.disabled||o.loading)("ngClass",o.buttonClass)("autofocus",o.autofocus),Lt("type",o.type)("aria-label",o.ariaLabel)("data-pc-name","button")("data-pc-section","root")("tabindex",o.tabindex),h(2),g("ngTemplateOutlet",o.contentTemplate),h(),g("ngIf",o.loading),h(),g("ngIf",!o.loading),h(),g("ngIf",!o.contentTemplate&&o.label),h(),g("ngIf",!o.contentTemplate&&o.badge))},dependencies:[Xe,el,Xa,St,Mc,jm,Um],encapsulation:2,changeDetection:0})}return t})(),Hm=(()=>{class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=en({type:t});static \u0275inj=Xi({imports:[u2,Gr]})}return t})();var Gm=(()=>{class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=en({type:t});static \u0275inj=Xi({imports:[Ze,Gr,Gr]})}return t})();function p2(t,i){if(t&1&&(c(0,"div"),H(1,"app-card",8),s()),t&2){let n=i.index,e=V(3);h(),g("recipe",e.recipes[n])}}function m2(t,i){if(t&1&&(c(0,"div",4)(1,"div",5)(2,"div",6),O(3,p2,2,1,"div",7),s()()()),t&2){let n=V(2);h(3),g("ngForOf",n.recipes)}}function f2(t,i){if(t&1&&(c(0,"div")(1,"p-carousel",2),O(2,m2,4,1,"ng-template",3),s()()),t&2){let n=V();h(),g("value",n.recipes)("circular",!0)("numVisible",3)("numScroll",2)("responsiveOptions",n.responsiveOptions)("showIndicators",!1)}}function h2(t,i){if(t&1&&(c(0,"div",4)(1,"div",5)(2,"div",6),H(3,"app-card",8),s()(),c(4,"div",5)(5,"div",6),H(6,"app-card",8),s()()()),t&2){let n=V(2);h(3),g("recipe",n.recipes[n.getIndex()]),h(3),g("recipe",n.recipes[n.getIndex()])}}function g2(t,i){if(t&1&&(c(0,"div",9)(1,"p-carousel",2),O(2,h2,7,2,"ng-template",3),s()()),t&2){let n=V();h(),g("value",n.recipes)("circular",!0)("numVisible",3)("numScroll",1)("responsiveOptions",n.responsiveOptions)("showIndicators",!1)}}var Wm=(()=>{let i=class i{constructor(){this.recipes=[],this.currentIndex=0}ngOnInit(){this.responsiveOptions=[{breakpoint:"1199px",numVisible:1,numScroll:1},{breakpoint:"991px",numVisible:2,numScroll:1},{breakpoint:"767px",numVisible:1,numScroll:1}]}logToConsole(e){console.log("i:"+e)}getIndex(){let e=this.currentIndex;return this.currentIndex=(this.currentIndex+1)%this.recipes.length,e}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=ke({type:i,selectors:[["app-carousel"]],inputs:{recipes:"recipes"},standalone:!0,features:[Ve],decls:2,vars:2,consts:[[4,"ngIf"],["class","card",4,"ngIf"],[3,"value","circular","numVisible","numScroll","responsiveOptions","showIndicators"],["pTemplate","item"],[1,"col"],[1,"row","col-margin"],[1,"carousel-item"],[4,"ngFor","ngForOf"],[3,"recipe"],[1,"card"]],template:function(o,r){o&1&&O(0,f2,3,6,"div",0)(1,g2,3,6,"div",1),o&2&&(g("ngIf",r.recipes.length<6),h(),g("ngIf",r.recipes.length>=6))},dependencies:[Lm,Bm,Jt,Xe,qm,rn,Hm,Gm],styles:[`@charset "UTF-8";.p-carousel-indicators[_ngcontent-%COMP%]   .p-carousel-indicator[_ngcontent-%COMP%]{border-radius:50%}.card[_ngcontent-%COMP%]{background-color:transparent;border:none}.carousel-inner[_ngcontent-%COMP%]   .carousel-item.active[_ngcontent-%COMP%], .carousel-inner[_ngcontent-%COMP%]   .carousel-item-next[_ngcontent-%COMP%], .carousel-inner[_ngcontent-%COMP%]   .carousel-item-prev[_ngcontent-%COMP%]{display:flex}@media (min-width: 768px){.carousel-inner[_ngcontent-%COMP%]   .carousel-item-end.active[_ngcontent-%COMP%], .carousel-inner[_ngcontent-%COMP%]   .carousel-item-next[_ngcontent-%COMP%]{transform:translate(25%)}.carousel-inner[_ngcontent-%COMP%]   .carousel-item-start.active[_ngcontent-%COMP%], .carousel-inner[_ngcontent-%COMP%]   .carousel-item-prev[_ngcontent-%COMP%]{transform:translate(-25%)}}.carousel-inner[_ngcontent-%COMP%]   .carousel-item-end[_ngcontent-%COMP%], .carousel-inner[_ngcontent-%COMP%]   .carousel-item-start[_ngcontent-%COMP%]{transform:translate(0)}.carousel-item[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin:0 10px}.carousel-item[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]{width:100%}.col-margin[_ngcontent-%COMP%]{margin-bottom:3rem;margin-top:3rem}
+/*# sourceMappingURL=carousel.component-TBO7MSQY.css.map */`]});let t=i;return t})();var zo=(()=>{let i=class i{constructor(e){this.http=e,this.apiUrl=ki.apiUrl+"/api/Recipes"}getRecipes(){return this.http.get(this.apiUrl).pipe(nt(ot))}getRecipeById(e){return this.http.get(`${this.apiUrl}/${e}`).pipe(nt(ot))}createRecipe(e){return this.http.post(this.apiUrl,e).pipe(nt(ot))}updateRecipe(e){return this.http.put(this.apiUrl,e).pipe(nt(ot))}deleteRecipe(e){return this.http.delete(`${this.apiUrl}/${e}`).pipe(nt(ot))}};i.\u0275fac=function(o){return new(o||i)(mi(Li))},i.\u0275prov=ti({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();function v2(t,i){t&1&&(c(0,"div",10)(1,"div",11)(2,"h2",12),b(3,"No hay recetas disponibles"),s()()())}function _2(t,i){if(t&1&&(c(0,"div",10),H(1,"app-carousel",13),s()),t&2){let n=V();h(),g("recipes",n.recipes)}}var $m=(()=>{let i=class i{constructor(e,o){this.recipeService=e,this.router=o,this.recipes=[],this.backUpRecipes=[],this.excludedColumns=[],this.getRecipes()}ngOnInit(){this.getRecipes()}goTo(){this.router.navigate(["/recipes/add"])}handleSearch(e){this.recipes=this.backUpRecipes,this.recipes=b2(this.recipes,this.excludedColumns,e),console.log(this.recipes)}getRecipes(){this.recipeService.getRecipes().subscribe(e=>{this.recipes=e,this.backUpRecipes=e})}};i.\u0275fac=function(o){return new(o||i)(se(zo),se(pi))},i.\u0275cmp=ke({type:i,selectors:[["app-recipes"]],standalone:!0,features:[Ve],decls:16,vars:2,consts:[[1,"container-fluid","d-flex","flex-column","justify-content-center","align-items-center","vh-100"],[1,"col-flex","justify-content-center","align-items-center"],[1,"container","custom-container","justify-content-center"],[1,"row","header-row"],[1,"col"],[1,"view-title"],[3,"search"],[1,"btn","btn-custom",3,"click"],[1,"container","justify-content-center","align-items-center"],["class","row",4,"ngIf"],[1,"row"],[1,"no-recipe-container"],[1,"text-center"],[3,"recipes"]],template:function(o,r){o&1&&(H(0,"app-navbar"),c(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"h1",5),b(7,"Recetario"),s()(),c(8,"div",4)(9,"app-search-bar",6),ee("search",function(d){return r.handleSearch(d)}),s()(),c(10,"div",4)(11,"button",7),ee("click",function(){return r.goTo()}),b(12,"NUEVA RECETA"),s()()(),c(13,"div",8),O(14,v2,4,0,"div",9)(15,_2,2,1,"div",9),s()()()()),o&2&&(h(14),g("ngIf",r.recipes.length===0),h(),g("ngIf",r.recipes.length>0))},dependencies:[oi,Qn,Wm,Ze,Xe],styles:[`[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/recipes.svg);background-size:cover;background-position:center;background-repeat:no-repeat}.view-title[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;color:#1b5e20;font-size:2.5rem;padding-left:1.5rem}.header-row[_ngcontent-%COMP%]{padding-bottom:20px;align-items:center}.vh-100[_ngcontent-%COMP%]{height:90vh!important}.btn-custom[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1.5rem;color:#1b5e20}.no-recipe-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:40rem;background-color:#1b5e20;color:#fff}.custom-container[_ngcontent-%COMP%]{height:50rem}
+/*# sourceMappingURL=recipes.component-KDK3TIV3.css.map */`]});let t=i;return t})();function b2(t,i,n){if(!n)return t;let e=n.trim().toLowerCase();return t.filter(o=>Object.keys(o).some(r=>{if(i.includes(r))return!1;let a=o[r];return typeof a=="string"?a.toLowerCase().includes(e):!1}))}function y2(t,i){if(t&1&&(c(0,"div",11)(1,"div",15)(2,"div",16)(3,"h3"),b(4),s()(),c(5,"div",8)(6,"span",17),b(7),s()()()()),t&2){let n=i.$implicit,e=V();h(4),pt("",e.translateLabel(n),":"),h(3),Ut(e.event[n])}}function C2(t,i){if(t&1&&(c(0,"span",17),b(1),s()),t&2){let n=V().$implicit,e=V();h(),Vn("",e.event[n].name," ",e.event[n].surname," (",e.event[n].id,")")}}function w2(t,i){if(t&1&&(c(0,"span",17),b(1),s()),t&2){let n=V().$implicit,e=V();h(),Ut(e.event[n].name)}}function S2(t,i){if(t&1&&(c(0,"div"),b(1),s()),t&2){let n=V(2).$implicit,e=V();h(),pt("$",e.event[n],"")}}function x2(t,i){if(t&1&&(c(0,"div"),b(1),s()),t&2){let n=V(2).$implicit,e=V();h(),Ut(e.event[n])}}function E2(t,i){if(t&1&&(c(0,"span",17),O(1,S2,2,1,"div",12)(2,x2,2,1,"div",12),s()),t&2){let n=V().$implicit;h(),g("ngIf",n==="cost"),h(),g("ngIf",n!=="cost")}}function F2(t,i){if(t&1&&(c(0,"div",11)(1,"div",15)(2,"div",16)(3,"h3"),b(4),s()(),c(5,"div",8),O(6,C2,2,3,"span",18)(7,w2,2,1,"span",18)(8,E2,3,2,"span",18),s()()()),t&2){let n=i.$implicit,e=V();h(4),pt("",e.translateLabel(n),":"),h(2),g("ngIf",n==="user"),h(),g("ngIf",n==="saleChannel"),h(),g("ngIf",n!=="user"&&n!=="saleChannel")}}function I2(t,i){if(t&1&&(c(0,"li",11)(1,"span"),b(2),s()()),t&2){let n=i.$implicit;h(2),Ut(n)}}function A2(t,i){if(t&1&&(c(0,"li",11)(1,"span"),b(2),s()()),t&2){let n=i.$implicit;h(2),Ut(n)}}function M2(t,i){if(t&1&&(c(0,"div")(1,"div",19)(2,"ul",11),O(3,I2,3,1,"li",9),s(),c(4,"ul",11),O(5,A2,3,1,"li",9),s()()()),t&2){let n=V();h(3),g("ngForOf",n.splitElementsResult.leftColumn),h(2),g("ngForOf",n.splitElementsResult.rightColumn)}}function N2(t,i){if(t&1&&(c(0,"div")(1,"div",8)(2,"span",11),b(3),s()()()),t&2){let n=V();h(3),Ut(n.event.description)}}var Km=(()=>{let i=class i{constructor(e,o){this.userService=e,this.salesChannelService=o,this.event={},this.closeEventModal=new lt,this.labelTranslation={id:"ID",title:"T\xEDtulo",description:"Descripci\xF3n",envenDate:"Fecha",user:"Usuario",cost:"Monto",saleChannel:"Cliente"},this.userData={},this.isSale=!1,this.elements=[],this.splitElementsResult={leftColumn:[],rightColumn:[]}}ngOnInit(){console.log(this.event.title),this.event.title==="Venta"&&(this.isSale=!0,this.formatDescription(),console.log(this.elements),this.splitElements(),console.log("Left: ",this.splitElementsResult.leftColumn),console.log("Right: ",this.splitElementsResult.rightColumn))}closeModal(){this.closeEventModal.emit()}objectKeys(e){return Object.keys(e).filter(o=>o!=="soldBatches"&&o!=="unitsPrice"&&o!=="quantities"&&o!=="description")}splitKeys(){let e=this.objectKeys(this.event),o=Math.ceil(e.length/2);return{leftColumn:e.slice(0,o),rightColumn:e.slice(o)}}translateLabel(e){return this.labelTranslation[e]||e}splitElements(){let e=Math.ceil(this.elements.length/2);this.splitElementsResult={leftColumn:this.elements.slice(0,e),rightColumn:this.elements.slice(e)}}formatDescription(){this.elements=this.event.description.split(",")}};i.\u0275fac=function(o){return new(o||i)(se(cn),se(Uo))},i.\u0275cmp=ke({type:i,selectors:[["app-event"]],inputs:{event:"event"},outputs:{closeEventModal:"closeEventModal"},standalone:!0,features:[Ve],decls:22,vars:4,consts:[["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content","modal-content-main"],[1,"modal-header","d-flex","justify-content-center","align-items-center"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[1,"row"],[1,"col"],["class","p-2",4,"ngFor","ngForOf"],[1,"custom-container"],[1,"p-2"],[4,"ngIf"],[1,"modal-footer","justify-content-center"],["type","button",1,"btn","btn-custom",3,"click"],[1,"row","row-custom"],[1,"col-3"],[1,"data"],["class","data",4,"ngIf"],[1,"col","p-2"]],template:function(o,r){o&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h5",4),b(5,"Detalles Evento"),s(),c(6,"button",5),ee("click",function(){return r.closeModal()}),s()(),c(7,"div",6)(8,"div",7)(9,"div",8),O(10,y2,8,2,"div",9),s(),c(11,"div",8),O(12,F2,9,4,"div",9),s(),c(13,"div",7)(14,"div",10)(15,"h3",11),b(16,"Descripci\xF3n:"),s(),O(17,M2,6,2,"div",12)(18,N2,4,1,"div",12),s()(),c(19,"div",13)(20,"button",14),ee("click",function(){return r.closeModal()}),b(21," CERRAR "),s()()()()()()()),o&2&&(h(10),g("ngForOf",r.splitKeys().leftColumn),h(2),g("ngForOf",r.splitKeys().rightColumn),h(5),g("ngIf",r.isSale),h(),g("ngIf",!r.isSale))},dependencies:[Ze,Jt,Xe],styles:[`.modal[_ngcontent-%COMP%]{background-color:#ffffff80}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content-main[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:346px}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.modal-content-main[_ngcontent-%COMP%]{font-size:1.25rem}.modal-header[_ngcontent-%COMP%]   .modal-title[_ngcontent-%COMP%]{font-size:1.5rem}.modal-body[_ngcontent-%COMP%]   .fs-5[_ngcontent-%COMP%], .btn-custom[_ngcontent-%COMP%]{font-size:1.25rem}.data[_ngcontent-%COMP%]{font-size:1.75rem}.row-custom[_ngcontent-%COMP%]{align-items:center}.modal-title[_ngcontent-%COMP%]{font-size:3rem}.custom-container[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}
+/*# sourceMappingURL=event.component-Z53E66WD.css.map */`]});let t=i;return t})();function T2(t,i){if(t&1){let n=Re();c(0,"app-event",9),ee("closeEventModal",function(){me(n);let o=V();return fe(o.closeEventModal())}),s()}if(t&2){let n=V();g("event",n.selectedEvent)}}var Ym=(()=>{let i=class i{constructor(e){this.eventsService=e,this.selectedEvent={},this.openEventModal=!1,this.movements=[],this.excludeColumns=["user","description","soldBatches","quantities","unitsPrice","saleChannel","cost"]}ngOnInit(){this.getMovements()}onRowClicked(e){this.selectedEvent=e,this.openEventModal=!0}closeEventModal(){this.openEventModal=!1}getMovements(){this.eventsService.getEvents().subscribe(e=>{this.movements=e})}};i.\u0275fac=function(o){return new(o||i)(se(Sc))},i.\u0275cmp=ke({type:i,selectors:[["app-history"]],standalone:!0,features:[Ve],decls:12,vars:3,consts:[[1,"container-fluid","d-flex","flex-column","justify-content-center","align-items-center","vh-100"],[1,"col-flex","justify-content-center","align-items-center"],[1,"row","header-row"],[1,"col"],[1,"view-title"],[1,"col","d-flex","justify-content-end"],[1,"btn","btn-custom"],[3,"rowClicked","data","columnsExcluded"],[3,"event","closeEventModal",4,"ngIf"],[3,"closeEventModal","event"]],template:function(o,r){o&1&&(H(0,"app-navbar"),c(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"h1",4),b(6,"ULTIMOS MOVIMIENTOS"),s()(),c(7,"div",5)(8,"button",6),b(9,"BUSQUEDA AVANZADA"),s()()(),c(10,"app-table",7),ee("rowClicked",function(d){return r.onRowClicked(d)}),s()()(),O(11,T2,1,1,"app-event",8)),o&2&&(h(10),g("data",r.movements)("columnsExcluded",r.excludeColumns),h(),g("ngIf",r.openEventModal))},dependencies:[oi,Yn,Km,Ze,Xe],styles:[`[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/history.svg);background-size:cover;background-position:center;background-repeat:no-repeat}.view-title[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;color:#1b5e20;font-size:2.5rem;padding-left:1.5rem}.header-row[_ngcontent-%COMP%]{padding-bottom:20px}.vh-100[_ngcontent-%COMP%]{height:90vh!important}.btn-custom[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1.5rem;color:#1b5e20}
+/*# sourceMappingURL=history.component-WLYWGTXD.css.map */`]});let t=i;return t})();var Ho=t=>({"is-invalid":t});function P2(t,i){t&1&&(c(0,"div"),b(1,"Email es requerido."),s())}function L2(t,i){t&1&&(c(0,"div"),b(1," Formato de email inv\xE1lido."),s())}function O2(t,i){if(t&1&&(c(0,"div",38),O(1,P2,2,0,"div",39)(2,L2,2,0,"div",39),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.userForm.get("email"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.userForm.get("email"))==null||e.errors==null)&&e.errors.required)&&(((e=o.userForm.get("email"))==null||e.errors==null?null:e.errors.email)||((e=o.userForm.get("email"))==null||e.errors==null?null:e.errors.invalidEmail)))}}function k2(t,i){t&1&&(c(0,"div"),b(1,"Nombre es requerido."),s())}function D2(t,i){t&1&&(c(0,"div"),b(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos."),s())}function R2(t,i){if(t&1&&(c(0,"div",38),O(1,k2,2,0,"div",39)(2,D2,2,0,"div",39),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.userForm.get("name"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.userForm.get("name"))==null||e.errors==null)&&e.errors.required)&&((e=o.userForm.get("name"))==null||e.errors==null?null:e.errors.pattern))}}function V2(t,i){t&1&&(c(0,"div"),b(1,"Apellido es requerido."),s())}function q2(t,i){t&1&&(c(0,"div"),b(1," El apellido no debe contener n\xFAmeros ni s\xEDmbolos."),s())}function B2(t,i){if(t&1&&(c(0,"div",38),O(1,V2,2,0,"div",39)(2,q2,2,0,"div",39),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.userForm.get("surname"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.userForm.get("surname"))==null||e.errors==null)&&e.errors.required)&&((e=o.userForm.get("surname"))==null||e.errors==null?null:e.errors.pattern))}}function j2(t,i){t&1&&(c(0,"div"),b(1,"Tel\xE9fono es requerido."),s())}function U2(t,i){t&1&&(c(0,"div"),b(1,"Formato de tel\xE9fono inv\xE1lido."),s())}function z2(t,i){if(t&1&&(c(0,"div",38),O(1,j2,2,0,"div",39)(2,U2,2,0,"div",39),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.userForm.get("phone"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.userForm.get("phone"))==null||e.errors==null)&&e.errors.required)&&((e=o.userForm.get("phone"))==null||e.errors==null?null:e.errors.invalidPhone))}}function H2(t,i){t&1&&(c(0,"div",38),b(1," Contrase\xF1a es requerida. "),s())}function G2(t,i){t&1&&(c(0,"div",38),b(1," Confirmar Contrase\xF1a es requerida. "),s())}function W2(t,i){t&1&&(c(0,"div",38),b(1," Las contrase\xF1as no coinciden. "),s())}function $2(t,i){t&1&&(c(0,"div",38),b(1," Rol es requerido. "),s())}var Qm=(()=>{let i=class i{constructor(e,o){this.userService=e,this.formBuilder=o,this.closeModalEvent=new lt,this.confirmPassword="",this.fatalError=!1,this.fatalErrorMessage="Hubo un error al intentar crear el usuario. Por favor, intente nuevamente.",this.userForm=this.formBuilder.group({email:["",[oe.required,Fn]],name:["",[oe.required,oe.pattern("^[a-zA-Z\xC0-\xFF'\\- ]+$")]],surname:["",[oe.required,oe.pattern("^[a-zA-Z\xC0-\xFF'\\- ]+$")]],phone:["",[oe.required,In]],password:["",oe.required],confirmPassword:["",oe.required],role:["",oe.required]},{validator:dl()})}closeModal(){this.closeModalEvent.emit()}onSubmit(){if(this.userForm.valid){this.fatalError=!1;let e={name:this.userForm.get("name")?.value,surname:this.userForm.get("surname")?.value,email:this.userForm.get("email")?.value,phone:this.userForm.get("phone")?.value,password:this.userForm.get("password")?.value||"",role:this.userForm.get("role")?.value};this.userService.createUser(e).subscribe(()=>{this.closeModalEvent.emit()})}else this.fatalError=!0}};i.\u0275fac=function(o){return new(o||i)(se(cn),se(Vt))},i.\u0275cmp=ke({type:i,selectors:[["app-add-user"]],outputs:{closeModalEvent:"closeModalEvent"},standalone:!0,features:[Ve],decls:85,vars:33,consts:[["aux","ngForm"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[3,"ngSubmit","formGroup"],[1,"modal-body"],[1,"row"],[1,"col"],[1,"form-group","row-container"],[1,"row","align-items-center"],[1,"col-2"],["for","email"],["type","email","id","email","name","email","formControlName","email",1,"form-control",3,"ngClass"],[1,"error-container"],["class","text-danger",4,"ngIf"],["for","name"],["type","text","id","name","name","name","formControlName","name",1,"form-control",3,"ngClass"],["for","surname"],["type","text","id","surname","name","surname","formControlName","surname",1,"form-control",3,"ngClass"],["for","phone"],["type","number","id","phone","name","phone","formControlName","phone",1,"form-control",3,"ngClass"],[1,"col-5"],["for","password"],["type","password","id","password","name","password","formControlName","password",1,"form-control",3,"ngClass"],["for","confirmPassword"],["type","password","id","confirmPassword","formControlName","confirmPassword",1,"form-control",3,"ngClass"],["for","role"],[1,"d-flex","flex-column","align-items-center"],[1,"form-check"],["type","radio","id","roleAdmin","name","role","value","Admin","formControlName","role",1,"form-check-input",3,"ngClass"],["for","roleAdmin",1,"form-check-label"],["type","radio","id","roleUser","name","role","value","User","formControlName","role",1,"form-check-input",3,"ngClass"],["for","roleUser",1,"form-check-label"],[1,"modal-footer","justify-content-center"],["type","submit",1,"btn","btn-custom"],[1,"text-danger"],[4,"ngIf"]],template:function(o,r){if(o&1){let a=Re();c(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),b(5,"Agregar Usuario"),s(),c(6,"button",6),ee("click",function(){return me(a),fe(r.closeModal())}),s()(),c(7,"form",7,0),ee("ngSubmit",function(){return me(a),fe(r.onSubmit())}),c(9,"div",8)(10,"div",9)(11,"div",10)(12,"div",11)(13,"div",12)(14,"div",13)(15,"label",14),b(16,"Email"),s()(),c(17,"div",10),H(18,"input",15),s(),c(19,"div",16),O(20,O2,3,2,"div",17),s()()(),c(21,"div",11)(22,"div",12)(23,"div",13)(24,"label",18),b(25,"Nombre"),s()(),c(26,"div",10),H(27,"input",19),s(),c(28,"div",16),O(29,R2,3,2,"div",17),s()()(),c(30,"div",11)(31,"div",12)(32,"div",13)(33,"label",20),b(34,"Apellido"),s()(),c(35,"div",10),H(36,"input",21),s(),c(37,"div",16),O(38,B2,3,2,"div",17),s()()(),c(39,"div",11)(40,"div",12)(41,"div",13)(42,"label",22),b(43,"Tel\xE9fono"),s()(),c(44,"div",10),H(45,"input",23),s(),c(46,"div",16),O(47,z2,3,2,"div",17),s()()()(),c(48,"div",10)(49,"div",11)(50,"div",12)(51,"div",24)(52,"label",25),b(53,"Contrase\xF1a"),s()(),c(54,"div",10),H(55,"input",26),s(),c(56,"div",16),O(57,H2,2,0,"div",17),s()()(),c(58,"div",11)(59,"div",12)(60,"div",24)(61,"label",27),b(62,"Confirmar Contrase\xF1a"),s()(),c(63,"div",10),H(64,"input",28),s(),c(65,"div",16),O(66,G2,2,0,"div",17)(67,W2,2,0,"div",17),s()()(),c(68,"div",11)(69,"label",29),b(70,"Rol:"),s(),c(71,"div",30)(72,"div",31),H(73,"input",32),c(74,"label",33),b(75,"Admin"),s()(),c(76,"div",31),H(77,"input",34),c(78,"label",35),b(79,"User"),s()()(),c(80,"div",16),O(81,$2,2,0,"div",17),s()()()()(),c(82,"div",36)(83,"button",37),b(84,"GUARDAR"),s()()()()()()}if(o&2){let a,d,p,_,y,w,S,v,M,F,k,I,L,z,$,J,re=ct(8);h(7),g("formGroup",r.userForm),h(11),g("ngClass",_e(17,Ho,(((a=r.userForm.get("email"))==null?null:a.dirty)||((a=r.userForm.get("email"))==null?null:a.touched)||re.submitted)&&((a=r.userForm.get("email"))==null?null:a.invalid))),h(2),g("ngIf",re.submitted||((d=r.userForm.get("email"))==null?null:d.invalid)&&(((d=r.userForm.get("email"))==null?null:d.dirty)||((d=r.userForm.get("email"))==null?null:d.touched))),h(7),g("ngClass",_e(19,Ho,(((p=r.userForm.get("name"))==null?null:p.dirty)||((p=r.userForm.get("name"))==null?null:p.touched)||re.submitted)&&((p=r.userForm.get("name"))==null?null:p.invalid))),h(2),g("ngIf",re.submitted||((_=r.userForm.get("name"))==null?null:_.invalid)&&(((_=r.userForm.get("name"))==null?null:_.dirty)||((_=r.userForm.get("name"))==null?null:_.touched))),h(7),g("ngClass",_e(21,Ho,(((y=r.userForm.get("surname"))==null?null:y.dirty)||((y=r.userForm.get("surname"))==null?null:y.touched)||re.submitted)&&((y=r.userForm.get("surname"))==null?null:y.invalid))),h(2),g("ngIf",re.submitted||((w=r.userForm.get("surname"))==null?null:w.invalid)&&(((w=r.userForm.get("surname"))==null?null:w.dirty)||((w=r.userForm.get("surname"))==null?null:w.touched))),h(7),g("ngClass",_e(23,Ho,(((S=r.userForm.get("phone"))==null?null:S.dirty)||((S=r.userForm.get("phone"))==null?null:S.touched)||re.submitted)&&((S=r.userForm.get("phone"))==null?null:S.invalid))),h(2),g("ngIf",((v=r.userForm.get("phone"))==null?null:v.invalid)&&(((v=r.userForm.get("phone"))==null?null:v.dirty)||((v=r.userForm.get("phone"))==null?null:v.touched))||re.submitted&&((v=r.userForm.get("phone"))==null?null:v.invalid)),h(8),g("ngClass",_e(25,Ho,(((M=r.userForm.get("password"))==null?null:M.dirty)||((M=r.userForm.get("password"))==null?null:M.touched)||re.submitted)&&((M=r.userForm.get("password"))==null?null:M.invalid))),h(2),g("ngIf",((F=r.userForm.get("password"))==null?null:F.invalid)&&(((F=r.userForm.get("password"))==null?null:F.dirty)||((F=r.userForm.get("password"))==null?null:F.touched))||re.submitted&&((F=r.userForm.get("password"))==null?null:F.invalid)),h(7),g("ngClass",_e(27,Ho,(((k=r.userForm.get("confirmPassword"))==null?null:k.dirty)||((k=r.userForm.get("confirmPassword"))==null?null:k.touched)||re.submitted)&&((k=r.userForm.get("confirmPassword"))==null?null:k.invalid))),h(2),g("ngIf",((I=r.userForm.get("confirmPassword"))==null?null:I.invalid)&&(((I=r.userForm.get("confirmPassword"))==null?null:I.dirty)||((I=r.userForm.get("confirmPassword"))==null?null:I.touched))||re.submitted&&((I=r.userForm.get("confirmPassword"))==null?null:I.invalid)),h(),g("ngIf",r.userForm.hasError("passwordMismatch")&&(((L=r.userForm.get("confirmPassword"))==null?null:L.dirty)||((L=r.userForm.get("confirmPassword"))==null?null:L.touched))),h(6),g("ngClass",_e(29,Ho,(((z=r.userForm.get("role"))==null?null:z.dirty)||((z=r.userForm.get("role"))==null?null:z.touched)||re.submitted)&&((z=r.userForm.get("role"))==null?null:z.invalid))),h(4),g("ngClass",_e(31,Ho,((($=r.userForm.get("role"))==null?null:$.dirty)||(($=r.userForm.get("role"))==null?null:$.touched)||re.submitted)&&(($=r.userForm.get("role"))==null?null:$.invalid))),h(4),g("ngIf",((J=r.userForm.get("role"))==null?null:J.invalid)&&(((J=r.userForm.get("role"))==null?null:J.dirty)||((J=r.userForm.get("role"))==null?null:J.touched))||re.submitted&&((J=r.userForm.get("role"))==null?null:J.invalid))}},dependencies:[Ft,Rt,At,fi,ga,Tt,Dt,Pt,Ot,Ze,St,Xe],styles:[`@charset "UTF-8";.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:496px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.row-container[_ngcontent-%COMP%]{position:relative;min-height:5em}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.form-group[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]{margin-bottom:10px}.modal-footer[_ngcontent-%COMP%]{border-top:none}.form-control[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important;font-size:1.2rem}
+/*# sourceMappingURL=add-user.component-OBSJFVN6.css.map */`]});let t=i;return t})();var Go=t=>({"is-invalid":t});function K2(t,i){t&1&&(c(0,"div"),b(1," Email es requerido. "),s())}function Y2(t,i){t&1&&(c(0,"div"),b(1," Formato de email inv\xE1lido. "),s())}function Q2(t,i){if(t&1&&(c(0,"div",47),O(1,K2,2,0,"div",35)(2,Y2,2,0,"div",35),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.userForm.get("email"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.userForm.get("email"))==null||e.errors==null)&&e.errors.required)&&(((e=o.userForm.get("email"))==null||e.errors==null?null:e.errors.email)||((e=o.userForm.get("email"))==null||e.errors==null?null:e.errors.invalidEmail)))}}function J2(t,i){t&1&&(c(0,"div"),b(1," Nombre es requerido. "),s())}function Z2(t,i){t&1&&(c(0,"div"),b(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),s())}function X2(t,i){if(t&1&&(c(0,"div",47),O(1,J2,2,0,"div",35)(2,Z2,2,0,"div",35),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.userForm.get("name"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.userForm.get("name"))==null||e.errors==null)&&e.errors.required)&&((e=o.userForm.get("name"))==null||e.errors==null?null:e.errors.pattern))}}function e5(t,i){t&1&&(c(0,"div"),b(1," Apellido es requerido. "),s())}function t5(t,i){t&1&&(c(0,"div"),b(1," El apellido no debe contener n\xFAmeros ni s\xEDmbolos. "),s())}function i5(t,i){if(t&1&&(c(0,"div",47),O(1,e5,2,0,"div",35)(2,t5,2,0,"div",35),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.userForm.get("surname"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.userForm.get("surname"))==null||e.errors==null)&&e.errors.required)&&((e=o.userForm.get("surname"))==null||e.errors==null?null:e.errors.pattern))}}function n5(t,i){t&1&&(c(0,"div"),b(1," Tel\xE9fono es requerido. "),s())}function r5(t,i){t&1&&(c(0,"div"),b(1," Formato de tel\xE9fono inv\xE1lido. "),s())}function o5(t,i){if(t&1&&(c(0,"div",47),O(1,n5,2,0,"div",35)(2,r5,2,0,"div",35),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.userForm.get("phone"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",(e=o.userForm.get("phone"))==null||e.errors==null?null:e.errors.invalidPhone)}}function a5(t,i){t&1&&(c(0,"div",47),b(1," Ingrese una contrase\xF1a v\xE1lida. "),s())}function l5(t,i){t&1&&(c(0,"div",47),b(1," Confirmar Contrase\xF1a es requerida. "),s())}function s5(t,i){t&1&&(c(0,"div",47),b(1," Las contrase\xF1as no coinciden. "),s())}function c5(t,i){if(t&1&&(c(0,"div"),O(1,l5,2,0,"div",23)(2,s5,2,0,"div",23),s()),t&2){let n,e,o=V(),r=ct(16);h(),g("ngIf",!((n=o.userForm.get("confirmPassword"))!=null&&n.value)&&(r.submitted||((n=o.userForm.get("confirmPassword"))==null?null:n.dirty)&&((n=o.userForm.get("confirmPassword"))==null?null:n.touched))),h(),g("ngIf",((e=o.userForm.get("confirmPassword"))==null?null:e.value)&&o.userForm.hasError("passwordMismatch")&&(r.submitted||((e=o.userForm.get("confirmPassword"))==null?null:e.dirty)||((e=o.userForm.get("confirmPassword"))==null?null:e.touched)))}}function d5(t,i){t&1&&(c(0,"div",47),b(1," Rol es requerido. "),s())}function u5(t,i){if(t&1){let n=Re();c(0,"button",48),ee("click",function(){me(n);let o=V();return fe(o.confirmDelete())}),b(1,"Eliminar"),s()}}function p5(t,i){if(t&1){let n=Re();c(0,"app-delete-modal",49),ee("cancel",function(){me(n);let o=V();return fe(o.closeDeleteModal())})("confirm",function(){me(n);let o=V();return fe(o.deleteUser())}),s()}t&2&&g("headerMessage","Eliminar Usuario")("bodyMessage","\xBFEst\xE1s seguro que deseas borrar este Usuario?")}var Jm=(()=>{let i=class i{constructor(e,o,r){this.UsersService=e,this.fb=o,this.AuthService=r,this.userInput={},this.closeUserModalEvent=new lt,this.isToggled=!1,this.confirmDeleteModal=!1,this.userForm=this.fb.group({email:[{value:"",disabled:!this.isToggled},[oe.required,Fn]],name:[{value:"",disabled:!this.isToggled},[oe.required,oe.pattern("^[a-zA-Z\xC0-\xFF'\\- ]+$")]],surname:[{value:"",disabled:!this.isToggled},[oe.required,oe.pattern("^[a-zA-Z\xC0-\xFF'\\- ]+$")]],phone:[{value:"",disabled:!this.isToggled},[oe.required,In]],password:[{value:"",disabled:!this.isToggled}],confirmPassword:[{value:"",disabled:!this.isToggled}],role:[{value:"",disabled:!this.isToggled},oe.required]},{validator:dl()})}ngOnInit(){this.myId=this.AuthService.getUserId()}ngOnChanges(e){if(e.userInput&&e.userInput.currentValue){let o=this.transformUserInput(this.userInput);this.userForm.patchValue(o),this.userForm.get("role")?.setValue(o.role)}}toggleEditMode(){this.isToggled=!this.isToggled,this.isToggled?this.userForm.enable():this.userForm.disable()}closeModal(){this.closeUserModalEvent.emit()}onSubmit(){if(this.userForm.valid){let e={id:this.userInput.id,name:this.userForm.get("name")?.value,surname:this.userForm.get("surname")?.value,email:this.userForm.get("email")?.value,phone:this.userForm.get("phone")?.value,role:this.userForm.get("role")?.value,password:this.userForm.get("password")?.value||this.userInput.password};this.UsersService.updateUser(e).subscribe(()=>{this.closeUserModalEvent.emit()})}else this.userForm.markAllAsTouched()}confirmDelete(){this.confirmDeleteModal=!0}closeDeleteModal(){this.confirmDeleteModal=!1}deleteUser(){this.UsersService.deleteUser(this.userInput.id).subscribe(e=>{this.confirmDeleteModal=!1,this.closeUserModalEvent.emit()},e=>{console.error("Error al eliminar el usuario:",e)})}isMe(){return this.userInput.id===this.myId}transformUserInput(e){return{id:e.id,name:e.name??"",surname:e.surname??"",email:e.email??"",phone:e.phone??"",password:"",role:e.role??""}}};i.\u0275fac=function(o){return new(o||i)(se(cn),se(Vt),se(Ki))},i.\u0275cmp=ke({type:i,selectors:[["app-user"]],inputs:{userInput:"userInput"},outputs:{closeUserModalEvent:"closeUserModalEvent"},standalone:!0,features:[qi,Ve],decls:94,vars:34,consts:[["aux","ngForm"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content","modal-content-main"],[1,"modal-header","d-flex","justify-content-center","align-items-center"],[1,"row","w-100"],[1,"col"],[1,"modal-title"],[1,"col","d-flex","justify-content-center"],[1,"form-check","form-switch"],["for","flexSwitchCheckDefault",1,"form-check-label"],["type","checkbox","id","flexSwitchCheckDefault",1,"form-check-input","custom-switch",3,"change"],[1,"col","d-flex","justify-content-end"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[3,"ngSubmit","formGroup"],[1,"modal-body"],[1,"row"],[1,"form-group","row-container"],[1,"row","align-items-center"],[1,"col-2"],["for","email"],["type","email","id","email","name","email","formControlName","email",1,"form-control",3,"ngClass"],[1,"error-container"],["class","text-danger",4,"ngIf"],["for","name"],["type","text","id","name","name","name","formControlName","name",1,"form-control",3,"ngClass"],["for","surname"],["type","text","id","surname","name","surname","formControlName","surname",1,"form-control",3,"ngClass"],["for","phone"],["type","text","id","phone","name","phone","formControlName","phone",1,"form-control",3,"ngClass"],[1,"col-5"],["for","password"],["type","password","id","password","name","password","formControlName","password",1,"form-control",3,"ngClass"],["for","confirmPassword"],["type","password","id","confirmPassword","formControlName","confirmPassword",1,"form-control",3,"ngClass"],[4,"ngIf"],["for","role"],[1,"d-flex","flex-column","align-items-center"],[1,"form-check"],["type","radio","id","roleAdmin","name","role","value","Admin","formControlName","role",1,"form-check-input",3,"ngClass"],["for","roleAdmin",1,"form-check-label"],["type","radio","id","roleUser","name","role","value","User","formControlName","role",1,"form-check-input",3,"ngClass"],["for","roleUser",1,"form-check-label"],[1,"modal-footer","justify-content-center"],["type","submit",1,"btn","btn-custom"],["type","button","class","btn btn-danger",3,"click",4,"ngIf"],[3,"headerMessage","bodyMessage","cancel","confirm",4,"ngIf"],[1,"text-danger"],["type","button",1,"btn","btn-danger",3,"click"],[3,"cancel","confirm","headerMessage","bodyMessage"]],template:function(o,r){if(o&1){let a=Re();c(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"h5",7),b(7,"Detalles Usuario"),s()(),c(8,"div",8)(9,"div",9)(10,"label",10),b(11,"Editar"),s(),c(12,"input",11),ee("change",function(){return me(a),fe(r.toggleEditMode())}),s()()(),c(13,"div",12)(14,"button",13),ee("click",function(){return me(a),fe(r.closeModal())}),s()()()(),c(15,"form",14,0),ee("ngSubmit",function(){return me(a),fe(r.onSubmit())}),c(17,"div",15)(18,"div",16)(19,"div",6)(20,"div",17)(21,"div",18)(22,"div",19)(23,"label",20),b(24,"Email"),s()(),c(25,"div",6),H(26,"input",21),s(),c(27,"div",22),O(28,Q2,3,2,"div",23),s()()(),c(29,"div",17)(30,"div",18)(31,"div",19)(32,"label",24),b(33,"Nombre"),s()(),c(34,"div",6),H(35,"input",25),s(),c(36,"div",22),O(37,X2,3,2,"div",23),s()()(),c(38,"div",17)(39,"div",18)(40,"div",19)(41,"label",26),b(42,"Apellido"),s()(),c(43,"div",6),H(44,"input",27),s(),c(45,"div",22),O(46,i5,3,2,"div",23),s()()(),c(47,"div",17)(48,"div",18)(49,"div",19)(50,"label",28),b(51,"Tel\xE9fono"),s()(),c(52,"div",6),H(53,"input",29),s(),c(54,"div",22),O(55,o5,3,2,"div",23),s()()()(),c(56,"div",6)(57,"div",17)(58,"div",18)(59,"div",30)(60,"label",31),b(61,"Contrase\xF1a"),s()(),c(62,"div",6),H(63,"input",32),s(),c(64,"div",22),O(65,a5,2,0,"div",23),s()()(),c(66,"div",17)(67,"div",18)(68,"div",30)(69,"label",33),b(70,"Confirmar Contrase\xF1a"),s()(),c(71,"div",6),H(72,"input",34),s(),c(73,"div",22),O(74,c5,3,2,"div",35),s()()(),c(75,"div",17)(76,"label",36),b(77,"Rol:"),s(),c(78,"div",37)(79,"div",38),H(80,"input",39),c(81,"label",40),b(82,"Admin"),s()(),c(83,"div",38),H(84,"input",41),c(85,"label",42),b(86,"User"),s()()(),c(87,"div",22),O(88,d5,2,0,"div",23),s()()()()(),c(89,"div",43)(90,"button",44),b(91,"GUARDAR"),s(),O(92,u5,2,0,"button",45),s()()()()(),O(93,p5,1,2,"app-delete-modal",46)}if(o&2){let a,d,p,_,y,w,S,v,M,F,k,I,L,z,$,J=ct(16);h(15),g("formGroup",r.userForm),h(11),g("ngClass",_e(18,Go,(((a=r.userForm.get("email"))==null?null:a.dirty)||((a=r.userForm.get("email"))==null?null:a.touched)||J.submitted)&&((a=r.userForm.get("email"))==null?null:a.invalid))),h(2),g("ngIf",J.submitted||((d=r.userForm.get("email"))==null?null:d.invalid)&&(((d=r.userForm.get("email"))==null?null:d.dirty)||((d=r.userForm.get("email"))==null?null:d.touched))),h(7),g("ngClass",_e(20,Go,(((p=r.userForm.get("name"))==null?null:p.dirty)||((p=r.userForm.get("name"))==null?null:p.touched)||J.submitted)&&((p=r.userForm.get("name"))==null?null:p.invalid))),h(2),g("ngIf",J.submitted||((_=r.userForm.get("name"))==null?null:_.invalid)&&(((_=r.userForm.get("name"))==null?null:_.dirty)||((_=r.userForm.get("name"))==null?null:_.touched))),h(7),g("ngClass",_e(22,Go,(((y=r.userForm.get("surname"))==null?null:y.dirty)||((y=r.userForm.get("surname"))==null?null:y.touched)||J.submitted)&&((y=r.userForm.get("surname"))==null?null:y.invalid))),h(2),g("ngIf",J.submitted||((w=r.userForm.get("surname"))==null?null:w.invalid)&&(((w=r.userForm.get("surname"))==null?null:w.dirty)||((w=r.userForm.get("surname"))==null?null:w.touched))),h(7),g("ngClass",_e(24,Go,(((S=r.userForm.get("phone"))==null?null:S.dirty)||((S=r.userForm.get("phone"))==null?null:S.touched)||J.submitted)&&((S=r.userForm.get("phone"))==null?null:S.invalid))),h(2),g("ngIf",((v=r.userForm.get("phone"))==null?null:v.invalid)&&(((v=r.userForm.get("phone"))==null?null:v.dirty)||((v=r.userForm.get("phone"))==null?null:v.touched))||J.submitted&&((v=r.userForm.get("phone"))==null?null:v.invalid)),h(8),g("ngClass",_e(26,Go,(((M=r.userForm.get("password"))==null?null:M.dirty)||((M=r.userForm.get("password"))==null?null:M.touched)||J.submitted)&&((M=r.userForm.get("password"))==null?null:M.invalid))),h(2),g("ngIf",((F=r.userForm.get("password"))==null?null:F.value)&&((F=r.userForm.get("password"))==null?null:F.invalid)&&(((F=r.userForm.get("password"))==null?null:F.dirty)||((F=r.userForm.get("password"))==null?null:F.touched)||J.submitted)),h(7),g("ngClass",_e(28,Go,(((k=r.userForm.get("confirmPassword"))==null?null:k.dirty)||((k=r.userForm.get("confirmPassword"))==null?null:k.touched)||J.submitted)&&((k=r.userForm.get("confirmPassword"))==null?null:k.invalid))),h(2),g("ngIf",(I=r.userForm.get("password"))==null?null:I.value),h(6),g("ngClass",_e(30,Go,(((L=r.userForm.get("role"))==null?null:L.dirty)||((L=r.userForm.get("role"))==null?null:L.touched)||J.submitted)&&((L=r.userForm.get("role"))==null?null:L.invalid))),h(4),g("ngClass",_e(32,Go,(((z=r.userForm.get("role"))==null?null:z.dirty)||((z=r.userForm.get("role"))==null?null:z.touched)||J.submitted)&&((z=r.userForm.get("role"))==null?null:z.invalid))),h(4),g("ngIf",(($=r.userForm.get("role"))==null?null:$.invalid)&&((($=r.userForm.get("role"))==null?null:$.dirty)||(($=r.userForm.get("role"))==null?null:$.touched))||J.submitted&&(($=r.userForm.get("role"))==null?null:$.invalid)),h(4),g("ngIf",!r.isMe()),h(),g("ngIf",r.confirmDeleteModal)}},dependencies:[Ft,Rt,At,ga,Tt,Dt,Pt,Ot,Ze,St,Xe,al,Jn],styles:[`@charset "UTF-8";.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content-main[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:496px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.row-container[_ngcontent-%COMP%]{position:relative;min-height:5em}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.form-group[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]{margin-bottom:10px}.modal-footer[_ngcontent-%COMP%]{border-top:none}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.custom-switch[_ngcontent-%COMP%]:focus{border-color:#1b5e20;box-shadow:0 0 0 .25rem #1b5e2040}.custom-switch[_ngcontent-%COMP%]:checked{background-color:#88ca5e;border-color:#1b5e20}.custom-switch[_ngcontent-%COMP%]:checked:before{background-color:#fff}.form-control[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important;font-size:1.2rem}
+/*# sourceMappingURL=user.component-3POYJCJF.css.map */`]});let t=i;return t})();function m5(t,i){if(t&1){let n=Re();c(0,"app-add-user",11),ee("closeModalEvent",function(){me(n);let o=V();return fe(o.closeAddUserModal())}),s()}}function f5(t,i){if(t&1){let n=Re();c(0,"app-user",12),ee("closeUserModalEvent",function(){me(n);let o=V();return fe(o.closeUserModal())}),s()}if(t&2){let n=V();g("userInput",n.selectedUser)}}var Zm=(()=>{let i=class i{constructor(e){this.UsersService=e,this.columnsExcluded=["transactions","password"],this.backUpUsers=[],this.users=[],this.addUserModal=!1,this.openUserModal=!1}ngOnInit(){this.getUsers()}openAddUserModal(){this.addUserModal=!0}closeAddUserModal(){this.getUsers(),this.addUserModal=!1}onRowClicked(e){this.selectedUser=e,this.openUserModal=!0}closeUserModal(){this.getUsers(),this.openUserModal=!1}handleSearch(e){this.users=this.backUpUsers,this.users=qr(this.users,this.columnsExcluded,e)}getUsers(){this.UsersService.getUsers().subscribe(e=>{this.backUpUsers=e,this.users=e})}};i.\u0275fac=function(o){return new(o||i)(se(cn))},i.\u0275cmp=ke({type:i,selectors:[["app-users"]],standalone:!0,features:[Ve],decls:15,vars:4,consts:[[1,"container-fluid","d-flex","flex-column","justify-content-center","align-items-center","vh-100"],[1,"col-flex","justify-content-center","align-items-center"],[1,"row","header-row"],[1,"col"],[1,"view-title"],[3,"search"],[1,"col","d-flex","justify-content-center"],["type","button",1,"btn","btn-custom",3,"click"],[3,"rowClicked","data","columnsExcluded"],[3,"closeModalEvent",4,"ngIf"],[3,"userInput","closeUserModalEvent",4,"ngIf"],[3,"closeModalEvent"],[3,"closeUserModalEvent","userInput"]],template:function(o,r){o&1&&(H(0,"app-navbar"),c(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"h1",4),b(6,"Usuarios"),s()(),c(7,"div",3)(8,"app-search-bar",5),ee("search",function(d){return r.handleSearch(d)}),s()(),c(9,"div",6)(10,"a",7),ee("click",function(){return r.openAddUserModal()}),b(11,"AGREGAR USUARIO"),s()()(),c(12,"app-table",8),ee("rowClicked",function(d){return r.onRowClicked(d)}),s()()(),O(13,m5,1,0,"app-add-user",9)(14,f5,1,1,"app-user",10)),o&2&&(h(12),g("data",r.users)("columnsExcluded",r.columnsExcluded),h(),g("ngIf",r.addUserModal),h(),g("ngIf",r.openUserModal))},dependencies:[oi,Yn,Qn,Qm,Ze,Xe,Jm],styles:[`[_nghost-%COMP%]{display:block;width:100%;min-height:100vh;background-image:url(/assets/views/users.svg);background-size:cover;background-position:center;background-repeat:no-repeat;overflow:hidden}.view-title[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;color:#1b5e20;font-size:2.5rem;padding-left:1.5rem}.header-row[_ngcontent-%COMP%]{padding-bottom:20px;align-items:center}.vh-100[_ngcontent-%COMP%]{height:90vh!important}.btn-custom[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1.5rem;color:#1b5e20}
+/*# sourceMappingURL=users.component-4OF4JQGF.css.map */`]});let t=i;return t})();var Wo=t=>({"is-invalid":t});function h5(t,i){t&1&&(c(0,"div"),b(1," Nombre es requerido. "),s())}function g5(t,i){t&1&&(c(0,"div"),b(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),s())}function v5(t,i){if(t&1&&(c(0,"div",38),O(1,h5,2,0,"div",39)(2,g5,2,0,"div",39),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.providerForm.get("name"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",(e=o.providerForm.get("name"))==null||e.errors==null?null:e.errors.pattern)}}function _5(t,i){t&1&&(c(0,"div"),b(1," Email es requerido. "),s())}function b5(t,i){t&1&&(c(0,"div"),b(1," Formato de email inv\xE1lido. "),s())}function y5(t,i){if(t&1&&(c(0,"div",38),O(1,_5,2,0,"div",39)(2,b5,2,0,"div",39),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.providerForm.get("email"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.providerForm.get("email"))==null||e.errors==null)&&e.errors.required)&&(((e=o.providerForm.get("email"))==null||e.errors==null?null:e.errors.email)||((e=o.providerForm.get("email"))==null||e.errors==null?null:e.errors.invalidEmail)))}}function C5(t,i){t&1&&(c(0,"div"),b(1," Tel\xE9fono es requerido. "),s())}function w5(t,i){t&1&&(c(0,"div"),b(1," Formato de tel\xE9fono inv\xE1lido. "),s())}function S5(t,i){if(t&1&&(c(0,"div",38),O(1,C5,2,0,"div",39)(2,w5,2,0,"div",39),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.providerForm.get("phone"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",(e=o.providerForm.get("phone"))==null||e.errors==null?null:e.errors.invalidPhone)}}function x5(t,i){t&1&&(c(0,"div"),b(1," CUIT es requerido. "),s())}function E5(t,i){t&1&&(c(0,"div"),b(1," El CUIT no debe contener letras ni s\xEDmbolos, y debe contener 11 digitos. "),s())}function F5(t,i){if(t&1&&(c(0,"div",38),O(1,x5,2,0,"div",39)(2,E5,2,0,"div",39),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.providerForm.get("cuit"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.providerForm.get("cuit"))==null||e.errors==null)&&e.errors.required)&&((e=o.providerForm.get("cuit"))==null||e.errors==null?null:e.errors.pattern))}}function I5(t,i){t&1&&(c(0,"div",38),b(1," Se necesita una direccion. "),s())}function A5(t,i){t&1&&(c(0,"div",38),b(1," Revise las notas. "),s())}function M5(t,i){t&1&&(c(0,"div",38),b(1," CP es requerido. "),s())}function N5(t,i){t&1&&(c(0,"div",38),b(1," Descripci\xF3n no admite s\xEDmbolos. "),s())}var Xm=(()=>{let i=class i{constructor(e,o){this.providersService=e,this.formBuilder=o,this.closeModalEvent=new lt,this.provider={},this.providerForm=this.formBuilder.group({name:["",[oe.required,oe.pattern("^[a-zA-Z\xC0-\xFF0-9 ]*$")]],email:["",[oe.required,Fn]],phone:["",[In]],cuit:["",[oe.required,Bo]],cp:["",[oe.required,oe.pattern("^(?!0000)[0-9]{4}$")]],address:["",[oe.required]],line2:[""],description:[""]})}closeModal(){this.closeModalEvent.emit()}onSubmit(){if(this.providerForm.valid){let e=`${this.providerForm.get("cp")?.value}|${this.providerForm.get("address")?.value}|${this.providerForm.get("line2")?.value}`.trim().replace(/|\s*$/,"");this.provider={name:this.providerForm.get("name")?.value,email:this.providerForm.get("email")?.value,phone:this.providerForm.get("phone")?.value,cuit:this.providerForm.get("cuit")?.value,address:e,description:this.providerForm.get("description")?.value||""},this.providersService.createProvider(this.provider).subscribe(o=>{this.closeModal()},o=>{console.error("Error al crear el proveedor:",o)})}else console.error("Formulario inv\xE1lido. Revise los campos.")}};i.\u0275fac=function(o){return new(o||i)(se(An),se(Vt))},i.\u0275cmp=ke({type:i,selectors:[["app-add-provider"]],outputs:{closeModalEvent:"closeModalEvent"},standalone:!0,features:[Ve],decls:83,vars:33,consts:[["aux","ngForm"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],["noValidate","",3,"ngSubmit","formGroup"],[1,"modal-body"],[1,"row"],[1,"col"],[1,"form-group","row-container"],[1,"row","align-items-center"],[1,"col-2"],["for","name",1,"title"],["type","text","id","name","name","name","formControlName","name","placeholder","Nombre",1,"form-control",3,"ngClass"],[1,"error-container"],["class","text-danger",4,"ngIf"],[1,"col-1"],["for","email",1,"title"],["type","email","id","email","name","email","formControlName","email","placeholder","Correo electr\xF3nico",1,"form-control",3,"ngClass"],["for","phone",1,"title"],["type","number","id","phone","name","phone","formControlName","phone","placeholder","Tel\xE9fono",1,"form-control",3,"ngClass"],["for","cuit",1,"title"],["type","number","id","cuit","name","cuit","formControlName","cuit","placeholder","000000000000",1,"form-control",3,"ngClass"],[1,"form-group"],[1,"row","align-items-center","py-2"],["for","address",1,"title"],["type","text","id","address","formControlName","address","placeholder","Direccion",1,"form-control",3,"ngClass"],["for","cp",1,"title"],["type","text","id","cp","name","cp","formControlName","cp","placeholder","0000",1,"form-control",3,"ngClass"],["for","line2",1,"title"],[1,"col-7"],["type","text","id","line2","formControlName","line2","placeholder","Entre calles 00 y 00",1,"form-control",3,"ngClass"],["for","description",1,"title",2,"padding-bottom","0.3rem"],["id","description","name","description","formControlName","description","maxlength","200",1,"form-control","desc",3,"ngClass"],[1,"modal-footer","justify-content-center"],["type","submit",1,"btn","btn-custom"],[1,"text-danger"],[4,"ngIf"]],template:function(o,r){if(o&1){let a=Re();c(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),b(5,"Agregar Proveedor"),s(),c(6,"button",6),ee("click",function(){return me(a),fe(r.closeModal())}),s()(),c(7,"form",7,0),ee("ngSubmit",function(){return me(a),fe(r.onSubmit())}),c(9,"div",8)(10,"div",9)(11,"div",10)(12,"div",11)(13,"div",12)(14,"div",13)(15,"label",14),b(16,"Nombre"),s()(),c(17,"div",10),H(18,"input",15),s(),c(19,"div",16),O(20,v5,3,2,"div",17),s()()(),c(21,"div",11)(22,"div",12)(23,"div",18)(24,"label",19),b(25,"Email"),s()(),c(26,"div",10),H(27,"input",20),s(),c(28,"div",16),O(29,y5,3,2,"div",17),s()()(),c(30,"div",11)(31,"div",12)(32,"div",13)(33,"label",21),b(34,"Tel\xE9fono"),s()(),c(35,"div",10),H(36,"input",22),s(),c(37,"div",16),O(38,S5,3,2,"div",17),s()()(),c(39,"div",11)(40,"div",12)(41,"div",13)(42,"label",23),b(43,"CUIT"),s()(),c(44,"div",10),H(45,"input",24),s(),c(46,"div",16),O(47,F5,3,2,"div",17),s()()()(),c(48,"div",10)(49,"div",25)(50,"div",26)(51,"div",13)(52,"label",27),b(53,"Direccion"),s()(),c(54,"div",10),H(55,"input",28),s(),c(56,"div",16),O(57,I5,2,0,"div",17),s()()(),c(58,"div",11)(59,"div",12)(60,"div",18)(61,"label",29),b(62,"CP"),s()(),c(63,"div",13),H(64,"input",30),s(),c(65,"div",13)(66,"label",31),b(67,"Notas"),s()(),c(68,"div",32),H(69,"input",33),s(),c(70,"div",16),O(71,A5,2,0,"div",17)(72,M5,2,0,"div",17),s()()(),c(73,"div",25)(74,"label",34),b(75,"Descripci\xF3n"),s(),c(76,"textarea",35),b(77,"                "),s(),c(78,"div",16),O(79,N5,2,0,"div",17),s()()()()(),c(80,"div",36)(81,"button",37),b(82,"GUARDAR"),s()()()()()()}if(o&2){let a,d,p,_,y,w,S,v,M,F,k,I,L,z,$,J,re=ct(8);h(7),g("formGroup",r.providerForm),h(11),g("ngClass",_e(17,Wo,(((a=r.providerForm.get("name"))==null?null:a.dirty)||((a=r.providerForm.get("name"))==null?null:a.touched)||re.submitted)&&((a=r.providerForm.get("name"))==null?null:a.invalid))),h(2),g("ngIf",(re.submitted||((d=r.providerForm.get("name"))==null?null:d.dirty)||((d=r.providerForm.get("name"))==null?null:d.touched))&&((d=r.providerForm.get("name"))==null?null:d.invalid)),h(7),g("ngClass",_e(19,Wo,(((p=r.providerForm.get("email"))==null?null:p.dirty)||((p=r.providerForm.get("email"))==null?null:p.touched)||re.submitted)&&((p=r.providerForm.get("email"))==null?null:p.invalid))),h(2),g("ngIf",re.submitted||((_=r.providerForm.get("email"))==null?null:_.invalid)&&(((_=r.providerForm.get("email"))==null?null:_.dirty)||((_=r.providerForm.get("email"))==null?null:_.touched))),h(7),g("ngClass",_e(21,Wo,(((y=r.providerForm.get("phone"))==null?null:y.dirty)||((y=r.providerForm.get("phone"))==null?null:y.touched)||re.submitted)&&((y=r.providerForm.get("phone"))==null?null:y.invalid))),h(2),g("ngIf",((w=r.providerForm.get("phone"))==null?null:w.invalid)&&(((w=r.providerForm.get("phone"))==null?null:w.dirty)||((w=r.providerForm.get("phone"))==null?null:w.touched))||re.submitted&&((w=r.providerForm.get("phone"))==null?null:w.invalid)),h(7),g("ngClass",_e(23,Wo,(((S=r.providerForm.get("cuit"))==null?null:S.dirty)||((S=r.providerForm.get("cuit"))==null?null:S.touched)||re.submitted)&&((S=r.providerForm.get("cuit"))==null?null:S.invalid))),h(2),g("ngIf",re.submitted||((v=r.providerForm.get("cuit"))==null?null:v.invalid)&&(((v=r.providerForm.get("cuit"))==null?null:v.dirty)||((v=r.providerForm.get("cuit"))==null?null:v.touched))),h(8),g("ngClass",_e(25,Wo,(((M=r.providerForm.get("address"))==null?null:M.dirty)||((M=r.providerForm.get("address"))==null?null:M.touched)||re.submitted)&&((M=r.providerForm.get("address"))==null?null:M.invalid))),h(2),g("ngIf",re.submitted&&((F=r.providerForm.get("address"))==null?null:F.invalid)||((F=r.providerForm.get("address"))==null?null:F.invalid)&&(((F=r.providerForm.get("address"))==null?null:F.dirty)||((F=r.providerForm.get("address"))==null?null:F.touched))),h(7),g("ngClass",_e(27,Wo,(((k=r.providerForm.get("cp"))==null?null:k.dirty)||((k=r.providerForm.get("cp"))==null?null:k.touched)||re.submitted)&&((k=r.providerForm.get("cp"))==null?null:k.invalid))),h(5),g("ngClass",_e(29,Wo,(((I=r.providerForm.get("line2"))==null?null:I.dirty)||((I=r.providerForm.get("line2"))==null?null:I.touched)||re.submitted)&&((I=r.providerForm.get("line2"))==null?null:I.invalid))),h(2),g("ngIf",((L=r.providerForm.get("line2"))==null?null:L.invalid)&&(((L=r.providerForm.get("line2"))==null?null:L.dirty)||((L=r.providerForm.get("line2"))==null?null:L.touched))),h(),g("ngIf",re.submitted&&((z=r.providerForm.get("cp"))==null?null:z.invalid)||((z=r.providerForm.get("cp"))==null?null:z.invalid)&&(((z=r.providerForm.get("cp"))==null?null:z.dirty)||((z=r.providerForm.get("cp"))==null?null:z.touched))),h(4),g("ngClass",_e(31,Wo,((($=r.providerForm.get("description"))==null?null:$.dirty)||(($=r.providerForm.get("description"))==null?null:$.touched)||re.submitted)&&(($=r.providerForm.get("description"))==null?null:$.invalid))),h(3),g("ngIf",((J=r.providerForm.get("description"))==null?null:J.invalid)&&(((J=r.providerForm.get("description"))==null?null:J.dirty)||((J=r.providerForm.get("description"))==null?null:J.touched)))}},dependencies:[Ft,Rt,At,fi,Tt,Dt,ns,Pt,Ot,Ze,St,Xe],styles:[`@charset "UTF-8";.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:496px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.desc[_ngcontent-%COMP%]{height:5rem;resize:vertical}.title[_ngcontent-%COMP%]{font-size:1rem}.row-container[_ngcontent-%COMP%]{position:relative;min-height:5em}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.modal-footer[_ngcontent-%COMP%]{border-top:none}.form-control[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important;font-size:1.2rem}
+/*# sourceMappingURL=add-provider.component-35ULDHOH.css.map */`]});let t=i;return t})();var $o=t=>({"is-invalid":t});function T5(t,i){t&1&&(c(0,"div"),b(1," Nombre es requerido. "),s())}function P5(t,i){t&1&&(c(0,"div"),b(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),s())}function L5(t,i){if(t&1&&(c(0,"div",46),O(1,T5,2,0,"div",47)(2,P5,2,0,"div",47),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.providerForm.get("name"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.providerForm.get("name"))==null||e.errors==null)&&e.errors.required)&&((e=o.providerForm.get("name"))==null||e.errors==null?null:e.errors.pattern))}}function O5(t,i){t&1&&(c(0,"div"),b(1," Email es requerido. "),s())}function k5(t,i){t&1&&(c(0,"div"),b(1," Formato de email inv\xE1lido. "),s())}function D5(t,i){if(t&1&&(c(0,"div",46),O(1,O5,2,0,"div",47)(2,k5,2,0,"div",47),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.providerForm.get("email"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.providerForm.get("email"))==null||e.errors==null)&&e.errors.required)&&(((e=o.providerForm.get("email"))==null||e.errors==null?null:e.errors.email)||((e=o.providerForm.get("email"))==null||e.errors==null?null:e.errors.invalidEmail)))}}function R5(t,i){t&1&&(c(0,"div",46),b(1," Tel\xE9fono es requerido. "),s())}function V5(t,i){t&1&&(c(0,"div"),b(1," CUIT es requerido. "),s())}function q5(t,i){t&1&&(c(0,"div"),b(1," El CUIT no debe contener letras ni s\xEDmbolos, y debe contener 11 digitos. "),s())}function B5(t,i){if(t&1&&(c(0,"div",46),O(1,V5,2,0,"div",47)(2,q5,2,0,"div",47),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.providerForm.get("cuit"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.providerForm.get("cuit"))==null||e.errors==null)&&e.errors.required)&&((e=o.providerForm.get("cuit"))==null||e.errors==null?null:e.errors.pattern))}}function j5(t,i){t&1&&(c(0,"div",46),b(1," Se necesita una direccion. "),s())}function U5(t,i){t&1&&(c(0,"div",46),b(1," Revise las notas. "),s())}function z5(t,i){t&1&&(c(0,"div",46),b(1," CP es requerido. "),s())}function H5(t,i){t&1&&(c(0,"div",46),b(1," Descripci\xF3n no admite s\xEDmbolos. "),s())}function G5(t,i){if(t&1){let n=Re();c(0,"app-delete-modal",48),ee("cancel",function(){me(n);let o=V();return fe(o.closeDeleteModal())})("confirm",function(){me(n);let o=V();return fe(o.deleteProvider())}),s()}t&2&&g("headerMessage","Eliminar Proveedor")("bodyMessage","\xBFEst\xE1s seguro que deseas borrar este Proveedor?")}var e0=(()=>{let i=class i{constructor(e,o){this.providersService=e,this.fb=o,this.providerInput={},this.closeProviderModalEvent=new lt,this.isToggled=!1,this.confirmDeleteModal=!1,this.providerForm=this.fb.group({name:[{value:"",disabled:!this.isToggled},[oe.required,oe.pattern("^[a-zA-Z\xC0-\xFF0-9 ]*$")]],email:[{value:"",disabled:!this.isToggled},[oe.required,Fn]],phone:[{value:"",disabled:!this.isToggled},[oe.required,In]],cuit:[{value:"",disabled:!this.isToggled},[oe.required,Bo]],cp:[{value:"",disabled:!this.isToggled},[oe.required,oe.pattern("^(?!0000)[0-9]{4}$")]],address:[{value:"",disabled:!this.isToggled},[oe.required]],line2:[{value:"",disabled:!this.isToggled}],description:[{value:"",disabled:!this.isToggled}]})}ngOnChanges(e){e.providerInput&&e.providerInput.currentValue&&this.providerForm.patchValue(this.transformProviderInput(this.providerInput))}toggleEditMode(){this.isToggled=!this.isToggled,this.isToggled?this.providerForm.enable():this.providerForm.disable()}onSubmit(){if(this.providerForm.valid){let e=`${this.providerForm.get("cp")?.value}|${this.providerForm.get("address")?.value}|${this.providerForm.get("line2")?.value}`.trim().replace(/|\s*$/,"");this.provider={id:this.providerInput.id,name:this.providerForm.get("name")?.value,email:this.providerForm.get("email")?.value,phone:this.providerForm.get("phone")?.value,cuit:this.providerForm.get("cuit")?.value,address:e,description:this.providerForm.get("description")?.value||""},this.providersService.updateProvider(this.provider).subscribe(o=>{this.closeModal()},o=>{console.error("Error al actualizar el proveedor:",o)})}else this.providerForm.markAllAsTouched()}closeModal(){this.closeProviderModalEvent.emit()}confirmDelete(){this.confirmDeleteModal=!0}closeDeleteModal(){this.confirmDeleteModal=!1}deleteProvider(){this.providersService.deleteProvider(this.providerInput.id).subscribe(e=>{this.confirmDeleteModal=!1,this.closeModal()},e=>{console.error("Error al eliminar el proveedor:",e)})}transformProviderInput(e){let[o="",r="",a=""]=e.address?.split("|")||[];return{id:e.id??null,name:e.name??"",email:e.email??"",phone:e.phone??"",cuit:e.cuit??"",cp:o.trim(),address:r.trim(),line2:a.trim(),description:e.description}}};i.\u0275fac=function(o){return new(o||i)(se(An),se(Vt))},i.\u0275cmp=ke({type:i,selectors:[["app-provider"]],inputs:{providerInput:"providerInput"},outputs:{closeProviderModalEvent:"closeProviderModalEvent"},standalone:!0,features:[qi,Ve],decls:94,vars:35,consts:[["aux","ngForm"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content","modal-content-main"],[1,"modal-header","d-flex","justify-content-center","align-items-center"],[1,"row","w-100"],[1,"col"],[1,"modal-title"],[1,"col","d-flex","justify-content-center"],[1,"form-check","form-switch"],["for","flexSwitchCheckDefault",1,"form-check-label"],["type","checkbox","id","flexSwitchCheckDefault",1,"form-check-input","custom-switch",3,"change"],[1,"col","d-flex","justify-content-end"],["type","button","aria-label","Close",1,"btn-close",3,"click"],["noValidate","",3,"ngSubmit","formGroup"],[1,"modal-body"],[1,"row"],[1,"form-group","row-container"],[1,"row","align-items-center"],[1,"col-2"],["for","name",1,"title"],["type","text","id","name","name","name","formControlName","name",1,"form-control",3,"ngClass"],[1,"error-container"],["class","text-danger",4,"ngIf"],[1,"col-1"],["for","email",1,"title"],["type","email","id","email","name","email","formControlName","email",1,"form-control",3,"ngClass"],["for","phone",1,"title"],["type","number","id","phone","name","phone","formControlName","phone",1,"form-control",3,"ngClass"],["for","cuit",1,"title"],["type","number","id","cuit","name","cuit","formControlName","cuit",1,"form-control",3,"ngClass"],[1,"form-group"],[1,"row","align-items-center","py-2"],["for","address",1,"title"],["type","text","id","address","formControlName","address",1,"form-control",3,"ngClass"],["for","cp",1,"title"],["type","text","id","cp","name","cp","formControlName","cp",1,"form-control",3,"ngClass"],["for","line2",1,"title"],[1,"col-7"],["type","text","id","line2","formControlName","line2",1,"form-control",3,"ngClass"],["for","description",1,"title",2,"padding-bottom","0.3rem"],["id","description","name","description","formControlName","description","maxlength","200",1,"form-control","desc",3,"ngClass"],[1,"modal-footer","justify-content-center"],["type","submit",1,"btn","btn-custom",3,"disabled"],["type","button",1,"btn","btn-danger",3,"click"],[3,"headerMessage","bodyMessage","cancel","confirm",4,"ngIf"],[1,"text-danger"],[4,"ngIf"],[3,"cancel","confirm","headerMessage","bodyMessage"]],template:function(o,r){if(o&1){let a=Re();c(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"h5",7),b(7,"Detalles Proveedor"),s()(),c(8,"div",8)(9,"div",9)(10,"label",10),b(11,"Editar"),s(),c(12,"input",11),ee("change",function(){return me(a),fe(r.toggleEditMode())}),s()()(),c(13,"div",12)(14,"button",13),ee("click",function(){return me(a),fe(r.closeModal())}),s()()()(),c(15,"form",14,0),ee("ngSubmit",function(){return me(a),fe(r.onSubmit())}),c(17,"div",15)(18,"div",16)(19,"div",6)(20,"div",17)(21,"div",18)(22,"div",19)(23,"label",20),b(24,"Nombre"),s()(),c(25,"div",6),H(26,"input",21),s(),c(27,"div",22),O(28,L5,3,2,"div",23),s()()(),c(29,"div",17)(30,"div",18)(31,"div",24)(32,"label",25),b(33,"Email"),s()(),c(34,"div",6),H(35,"input",26),s(),c(36,"div",22),O(37,D5,3,2,"div",23),s()()(),c(38,"div",17)(39,"div",18)(40,"div",19)(41,"label",27),b(42,"Tel\xE9fono"),s()(),c(43,"div",6),H(44,"input",28),s(),c(45,"div",22),O(46,R5,2,0,"div",23),s()()(),c(47,"div",17)(48,"div",18)(49,"div",19)(50,"label",29),b(51,"CUIT"),s()(),c(52,"div",6),H(53,"input",30),s(),c(54,"div",22),O(55,B5,3,2,"div",23),s()()()(),c(56,"div",6)(57,"div",31)(58,"div",32)(59,"div",19)(60,"label",33),b(61,"Direccion"),s()(),c(62,"div",6),H(63,"input",34),s(),c(64,"div",22),O(65,j5,2,0,"div",23),s()()(),c(66,"div",17)(67,"div",18)(68,"div",24)(69,"label",35),b(70,"CP"),s()(),c(71,"div",19),H(72,"input",36),s(),c(73,"div",19)(74,"label",37),b(75,"Notas"),s()(),c(76,"div",38),H(77,"input",39),s(),c(78,"div",22),O(79,U5,2,0,"div",23)(80,z5,2,0,"div",23),s()()(),c(81,"div",31)(82,"label",40),b(83,"Descripci\xF3n"),s(),c(84,"textarea",41),b(85,"                "),s(),c(86,"div",22),O(87,H5,2,0,"div",23),s()()()()(),c(88,"div",42)(89,"button",43),b(90," GUARDAR "),s(),c(91,"button",44),ee("click",function(){return me(a),fe(r.confirmDelete())}),b(92," BORRAR "),s()()()()()(),O(93,G5,1,2,"app-delete-modal",45)}if(o&2){let a,d,p,_,y,w,S,v,M,F,k,I,L,z,$,J,re=ct(16);h(15),g("formGroup",r.providerForm),h(11),g("ngClass",_e(19,$o,(((a=r.providerForm.get("name"))==null?null:a.dirty)||((a=r.providerForm.get("name"))==null?null:a.touched)||re.submitted)&&((a=r.providerForm.get("name"))==null?null:a.invalid))),h(2),g("ngIf",re.submitted||((d=r.providerForm.get("name"))==null?null:d.invalid)&&(((d=r.providerForm.get("name"))==null?null:d.dirty)||((d=r.providerForm.get("name"))==null?null:d.touched))),h(7),g("ngClass",_e(21,$o,(((p=r.providerForm.get("email"))==null?null:p.dirty)||((p=r.providerForm.get("email"))==null?null:p.touched)||re.submitted)&&((p=r.providerForm.get("email"))==null?null:p.invalid))),h(2),g("ngIf",re.submitted||((_=r.providerForm.get("email"))==null?null:_.invalid)&&(((_=r.providerForm.get("email"))==null?null:_.dirty)||((_=r.providerForm.get("email"))==null?null:_.touched))),h(7),g("ngClass",_e(23,$o,(((y=r.providerForm.get("phone"))==null?null:y.dirty)||((y=r.providerForm.get("phone"))==null?null:y.touched)||re.submitted)&&((y=r.providerForm.get("phone"))==null?null:y.invalid))),h(2),g("ngIf",re.submitted&&((w=r.providerForm.get("phone"))==null?null:w.invalid)||((w=r.providerForm.get("phone"))==null?null:w.invalid)&&(((w=r.providerForm.get("phone"))==null?null:w.dirty)||((w=r.providerForm.get("phone"))==null?null:w.touched))),h(7),g("ngClass",_e(25,$o,(((S=r.providerForm.get("cuit"))==null?null:S.dirty)||((S=r.providerForm.get("cuit"))==null?null:S.touched)||re.submitted)&&((S=r.providerForm.get("cuit"))==null?null:S.invalid))),h(2),g("ngIf",re.submitted||((v=r.providerForm.get("cuit"))==null?null:v.invalid)&&(((v=r.providerForm.get("cuit"))==null?null:v.dirty)||((v=r.providerForm.get("cuit"))==null?null:v.touched))),h(8),g("ngClass",_e(27,$o,(((M=r.providerForm.get("address"))==null?null:M.dirty)||((M=r.providerForm.get("address"))==null?null:M.touched)||re.submitted)&&((M=r.providerForm.get("address"))==null?null:M.invalid))),h(2),g("ngIf",re.submitted&&((F=r.providerForm.get("address"))==null?null:F.invalid)||((F=r.providerForm.get("address"))==null?null:F.invalid)&&(((F=r.providerForm.get("address"))==null?null:F.dirty)||((F=r.providerForm.get("address"))==null?null:F.touched))),h(7),g("ngClass",_e(29,$o,(((k=r.providerForm.get("cp"))==null?null:k.dirty)||((k=r.providerForm.get("cp"))==null?null:k.touched)||re.submitted)&&((k=r.providerForm.get("cp"))==null?null:k.invalid))),h(5),g("ngClass",_e(31,$o,(((I=r.providerForm.get("line2"))==null?null:I.dirty)||((I=r.providerForm.get("linea2"))==null?null:I.touched)||re.submitted)&&((I=r.providerForm.get("linea2"))==null?null:I.invalid))),h(2),g("ngIf",((L=r.providerForm.get("line2"))==null?null:L.invalid)&&(((L=r.providerForm.get("line2"))==null?null:L.dirty)||((L=r.providerForm.get("line2"))==null?null:L.touched))),h(),g("ngIf",re.submitted&&((z=r.providerForm.get("cp"))==null?null:z.invalid)||((z=r.providerForm.get("cp"))==null?null:z.invalid)&&(((z=r.providerForm.get("cp"))==null?null:z.dirty)||((z=r.providerForm.get("cp"))==null?null:z.touched))),h(4),g("ngClass",_e(33,$o,((($=r.providerForm.get("description"))==null?null:$.dirty)||(($=r.providerForm.get("description"))==null?null:$.touched)||re.submitted)&&(($=r.providerForm.get("description"))==null?null:$.invalid))),h(3),g("ngIf",((J=r.providerForm.get("description"))==null?null:J.invalid)&&(((J=r.providerForm.get("description"))==null?null:J.dirty)||((J=r.providerForm.get("description"))==null?null:J.touched))),h(2),g("disabled",!r.isToggled),h(4),g("ngIf",r.confirmDeleteModal)}},dependencies:[Ft,Rt,At,fi,Tt,Dt,ns,Pt,Ot,Ze,St,Xe,al,Jn],styles:[`@charset "UTF-8";.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content-main[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:496px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.desc[_ngcontent-%COMP%]{height:6rem;resize:vertical}.title[_ngcontent-%COMP%]{font-size:1rem}.row-container[_ngcontent-%COMP%]{position:relative;min-height:5em}.error-container[_ngcontent-%COMP%]{height:1.8rem;padding-top:.4rem}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.custom-switch[_ngcontent-%COMP%]:focus{border-color:#1b5e20;box-shadow:0 0 0 .25rem #1b5e2040}.custom-switch[_ngcontent-%COMP%]:checked{background-color:#88ca5e;border-color:#1b5e20}.custom-switch[_ngcontent-%COMP%]:checked:before{background-color:#fff}.modal-footer[_ngcontent-%COMP%]{border-top:none}.form-control[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important;font-size:1.2rem}
+/*# sourceMappingURL=provider.component-CZBFFPEY.css.map */`]});let t=i;return t})();function W5(t,i){if(t&1){let n=Re();c(0,"app-add-provider",11),ee("closeModalEvent",function(){me(n);let o=V();return fe(o.closeAddProviderModal())}),s()}}function $5(t,i){if(t&1){let n=Re();c(0,"app-provider",12),ee("closeProviderModalEvent",function(){me(n);let o=V();return fe(o.closeProviderModal())}),s()}if(t&2){let n=V();g("providerInput",n.selectedProvider)}}var t0=(()=>{let i=class i{constructor(e){this.ProvidersService=e,this.providers=[],this.backUpProviders=[],this.addProviderModal=!1,this.openProviderModal=!1,this.exportColumns=["description","cuit"]}ngOnInit(){this.getProviders()}openAddProviderModal(){this.addProviderModal=!0}closeAddProviderModal(){this.getProviders(),this.addProviderModal=!1}onRowClicked(e){this.selectedProvider=e,this.openProviderModal=!0}handleSearch(e){this.providers=this.backUpProviders,this.providers=qr(this.providers,this.exportColumns,e)}closeProviderModal(){this.getProviders(),this.openProviderModal=!1}getProviders(){this.ProvidersService.getProviders().subscribe(e=>{this.backUpProviders=e,this.providers=e})}};i.\u0275fac=function(o){return new(o||i)(se(An))},i.\u0275cmp=ke({type:i,selectors:[["app-providers"]],standalone:!0,features:[Ve],decls:15,vars:4,consts:[[1,"container-fluid","d-flex","flex-column","justify-content-center","align-items-center","vh-100"],[1,"col-flex","justify-content-center","align-items-center"],[1,"row","header-row"],[1,"col"],[1,"view-title"],[3,"search"],[1,"col","d-flex","justify-content-center"],[1,"btn","btn-custom",3,"click"],[3,"rowClicked","data","columnsExcluded"],[3,"closeModalEvent",4,"ngIf"],[3,"providerInput","closeProviderModalEvent",4,"ngIf"],[3,"closeModalEvent"],[3,"closeProviderModalEvent","providerInput"]],template:function(o,r){o&1&&(H(0,"app-navbar"),c(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"h1",4),b(6,"Poveedores"),s()(),c(7,"div",3)(8,"app-search-bar",5),ee("search",function(d){return r.handleSearch(d)}),s()(),c(9,"div",6)(10,"button",7),ee("click",function(){return r.openAddProviderModal()}),b(11,"AGREGAR PROVEEDOR"),s()()(),c(12,"app-table",8),ee("rowClicked",function(d){return r.onRowClicked(d)}),s()()(),O(13,W5,1,0,"app-add-provider",9)(14,$5,1,1,"app-provider",10)),o&2&&(h(12),g("data",r.providers)("columnsExcluded",r.exportColumns),h(),g("ngIf",r.addProviderModal),h(),g("ngIf",r.openProviderModal))},dependencies:[Ze,Xe,oi,Yn,Qn,Xm,e0],styles:[`[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/production.svg);background-size:cover;background-position:center;background-repeat:no-repeat}.view-title[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;color:#1b5e20;font-size:2.5rem;padding-left:1.5rem}.header-row[_ngcontent-%COMP%]{padding-bottom:20px;align-items:center}.vh-100[_ngcontent-%COMP%]{height:90vh!important}.btn-custom[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1.3rem;color:#1b5e20}
+/*# sourceMappingURL=providers.component-SPFJNFWW.css.map */`]});let t=i;return t})();var ba=t=>({"is-invalid":t});function K5(t,i){t&1&&(c(0,"div"),b(1," Nombre es requerido. "),s())}function Y5(t,i){t&1&&(c(0,"div"),b(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),s())}function Q5(t,i){if(t&1&&(c(0,"div",35),O(1,K5,2,0,"div",36)(2,Y5,2,0,"div",36),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.clientForm.get("name"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.clientForm.get("name"))==null||e.errors==null)&&e.errors.required)&&((e=o.clientForm.get("name"))==null||e.errors==null?null:e.errors.pattern))}}function J5(t,i){t&1&&(c(0,"div"),b(1," Email es requerido. "),s())}function Z5(t,i){t&1&&(c(0,"div"),b(1," Formato de email inv\xE1lido. "),s())}function X5(t,i){if(t&1&&(c(0,"div",35),O(1,J5,2,0,"div",36)(2,Z5,2,0,"div",36),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.clientForm.get("email"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.clientForm.get("email"))==null||e.errors==null)&&e.errors.required)&&(((e=o.clientForm.get("email"))==null||e.errors==null?null:e.errors.email)||((e=o.clientForm.get("email"))==null||e.errors==null?null:e.errors.invalidEmail)))}}function e_(t,i){t&1&&(c(0,"div"),b(1," El CUIT es requerido. "),s())}function t_(t,i){t&1&&(c(0,"div"),b(1," El cuit debe no debe contener simbolos ni letras, y una longitude de 17 digitos. "),s())}function i_(t,i){if(t&1&&(c(0,"div",35),O(1,e_,2,0,"div",36)(2,t_,2,0,"div",36),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.clientForm.get("cuit"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.clientForm.get("cuit"))==null||e.errors==null)&&e.errors.required)&&((e=o.clientForm.get("cuit"))==null||e.errors==null?null:e.errors.pattern))}}function n_(t,i){t&1&&(c(0,"div",35),b(1," Tel\xE9fono es requerido. "),s())}function r_(t,i){t&1&&(c(0,"div",35),b(1," Se necesita una direccion. "),s())}function o_(t,i){t&1&&(c(0,"div",35),b(1," Revise las notas. "),s())}function a_(t,i){t&1&&(c(0,"div",35),b(1," CP es requerido. "),s())}var i0=(()=>{let i=class i{constructor(e,o){this.salesChannelService=e,this.formBuilder=o,this.closeModalEvent=new lt,this.confirmPassword="",this.clientForm=this.formBuilder.group({name:["",[oe.required,oe.pattern("^[a-zA-Z\xC0-\xFF0-9 ]*$")]],cuit:["",[oe.required,Bo]],email:["",[oe.required,Fn]],phone:["",[oe.required,In]],cp:["",[oe.required,oe.pattern("^(?!0000)[0-9]{4}$")]],address:["",[oe.required]],line2:[""]})}closeModal(){this.closeModalEvent.emit()}onSubmit(){if(this.clientForm.valid){let e=this.clientForm.get("cp")?.value+"|"+this.clientForm.get("address")?.value+"|"+this.clientForm.get("line2")?.value,o={name:this.clientForm.get("name")?.value,cuit:this.clientForm.get("cuit")?.value,email:this.clientForm.get("email")?.value,phone:this.clientForm.get("phone")?.value,addres:e};this.salesChannelService.createSaleChannel(o).subscribe(r=>{this.closeModalEvent.emit()},r=>{console.error("Error al crear el canal de venta:",r)})}else this.clientForm.markAllAsTouched(),console.error("Formulario inv\xE1lido. Revise los campos.")}};i.\u0275fac=function(o){return new(o||i)(se(Uo),se(Vt))},i.\u0275cmp=ke({type:i,selectors:[["app-add-client"]],outputs:{closeModalEvent:"closeModalEvent"},standalone:!0,features:[Ve],decls:76,vars:29,consts:[["aux","ngForm"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[3,"ngSubmit","formGroup"],[1,"modal-body"],[1,"row"],[1,"col"],[1,"form-group","row-container"],[1,"row","align-items-center"],[1,"col-2"],["for","name"],["type","text","id","name","name","name","formControlName","name",1,"form-control",3,"ngClass"],[1,"error-container"],["class","text-danger",4,"ngIf"],[1,"col-1"],["for","email"],["type","email","id","email","name","email","formControlName","email",1,"form-control",3,"ngClass"],["for","surname"],["type","number","id","cuit","name","cuit","formControlName","cuit",1,"form-control",3,"ngClass"],["for","phone"],["type","number","id","phone","name","telefono","formControlName","phone",1,"form-control",3,"ngClass"],[1,"form-group"],["for","address",1,"title"],["type","text","id","address","formControlName","address",1,"form-control",3,"ngClass"],["for","cp",1,"title"],["type","text","id","cp","name","cp","formControlName","cp",1,"form-control",3,"ngClass"],["for","line2",1,"title"],[1,"col-7"],["type","text","id","line2","formControlName","line2",1,"form-control",3,"ngClass"],[1,"modal-footer","justify-content-center"],["type","submit",1,"btn","btn-custom"],[1,"text-danger"],[4,"ngIf"]],template:function(o,r){if(o&1){let a=Re();c(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),b(5,"Agregar Cliente"),s(),c(6,"button",6),ee("click",function(){return me(a),fe(r.closeModal())}),s()(),c(7,"form",7,0),ee("ngSubmit",function(){return me(a),fe(r.onSubmit())}),c(9,"div",8)(10,"div",9)(11,"div",10)(12,"div",11)(13,"div",12)(14,"div",11)(15,"div",12)(16,"div",13)(17,"label",14),b(18,"Nombre"),s()(),c(19,"div",10),H(20,"input",15),s(),c(21,"div",16),O(22,Q5,3,2,"div",17),s()()(),c(23,"div",18)(24,"label",19),b(25,"Email"),s()(),c(26,"div",10),H(27,"input",20),s(),c(28,"div",16),O(29,X5,3,2,"div",17),s()()(),c(30,"div",11)(31,"div",12)(32,"div",13)(33,"label",21),b(34,"CUIT"),s()(),c(35,"div",10),H(36,"input",22),s(),c(37,"div",16),O(38,i_,3,2,"div",17),s()()()(),c(39,"div",10)(40,"div",11)(41,"div",12)(42,"div",13)(43,"label",23),b(44,"Tel\xE9fono"),s()(),c(45,"div",10),H(46,"input",24),s(),c(47,"div",16),O(48,n_,2,0,"div",17),s()()(),c(49,"div",25)(50,"div",12)(51,"div",13)(52,"label",26),b(53,"Direccion"),s()(),c(54,"div",10),H(55,"input",27),s(),c(56,"div",16),O(57,r_,2,0,"div",17),s()()(),c(58,"div",11)(59,"div",12)(60,"div",18)(61,"label",28),b(62,"CP"),s()(),c(63,"div",13),H(64,"input",29),s(),c(65,"div",13)(66,"label",30),b(67,"Notas"),s()(),c(68,"div",31),H(69,"input",32),s(),c(70,"div",16),O(71,o_,2,0,"div",17)(72,a_,2,0,"div",17),s()()()()()(),c(73,"div",33)(74,"button",34),b(75,"GUARDAR"),s()()()()()()}if(o&2){let a,d,p,_,y,w,S,v,M,F,k,I,L,z,$=ct(8);h(7),g("formGroup",r.clientForm),h(13),g("ngClass",_e(15,ba,(((a=r.clientForm.get("name"))==null?null:a.dirty)||((a=r.clientForm.get("name"))==null?null:a.touched)||$.submitted)&&((a=r.clientForm.get("name"))==null?null:a.invalid))),h(2),g("ngIf",$.submitted||((d=r.clientForm.get("name"))==null?null:d.invalid)&&(((d=r.clientForm.get("name"))==null?null:d.dirty)||((d=r.clientForm.get("name"))==null?null:d.touched))),h(5),g("ngClass",_e(17,ba,(((p=r.clientForm.get("email"))==null?null:p.dirty)||((p=r.clientForm.get("email"))==null?null:p.touched)||$.submitted)&&((p=r.clientForm.get("email"))==null?null:p.invalid))),h(2),g("ngIf",$.submitted||((_=r.clientForm.get("email"))==null?null:_.invalid)&&(((_=r.clientForm.get("email"))==null?null:_.dirty)||((_=r.clientForm.get("email"))==null?null:_.touched))),h(7),g("ngClass",_e(19,ba,(((y=r.clientForm.get("cuit"))==null?null:y.dirty)||((y=r.clientForm.get("cuit"))==null?null:y.touched)||$.submitted)&&((y=r.clientForm.get("cuit"))==null?null:y.invalid))),h(2),g("ngIf",$.submitted||((w=r.clientForm.get("cuit"))==null?null:w.invalid)&&(((w=r.clientForm.get("cuit"))==null?null:w.dirty)||((w=r.clientForm.get("cuit"))==null?null:w.touched))),h(8),g("ngClass",_e(21,ba,(((S=r.clientForm.get("phone"))==null?null:S.dirty)||((S=r.clientForm.get("phone"))==null?null:S.touched)||$.submitted)&&((S=r.clientForm.get("phone"))==null?null:S.invalid))),h(2),g("ngIf",$.submitted&&((v=r.clientForm.get("phone"))==null?null:v.invalid)||((v=r.clientForm.get("phone"))==null?null:v.invalid)&&(((v=r.clientForm.get("phone"))==null?null:v.dirty)||((v=r.clientForm.get("phone"))==null?null:v.touched))),h(7),g("ngClass",_e(23,ba,(((M=r.clientForm.get("address"))==null?null:M.dirty)||((M=r.clientForm.get("address"))==null?null:M.touched)||$.submitted)&&((M=r.clientForm.get("address"))==null?null:M.invalid))),h(2),g("ngIf",$.submitted&&((F=r.clientForm.get("address"))==null?null:F.invalid)||((F=r.clientForm.get("address"))==null?null:F.invalid)&&(((F=r.clientForm.get("address"))==null?null:F.dirty)||((F=r.clientForm.get("address"))==null?null:F.touched))),h(7),g("ngClass",_e(25,ba,(((k=r.clientForm.get("cp"))==null?null:k.dirty)||((k=r.clientForm.get("cp"))==null?null:k.touched)||$.submitted)&&((k=r.clientForm.get("cp"))==null?null:k.invalid))),h(5),g("ngClass",_e(27,ba,(((I=r.clientForm.get("line2"))==null?null:I.dirty)||((I=r.clientForm.get("linea2"))==null?null:I.touched)||$.submitted)&&((I=r.clientForm.get("linea2"))==null?null:I.invalid))),h(2),g("ngIf",((L=r.clientForm.get("line2"))==null?null:L.invalid)&&(((L=r.clientForm.get("line2"))==null?null:L.dirty)||((L=r.clientForm.get("line2"))==null?null:L.touched))),h(),g("ngIf",$.submitted&&((z=r.clientForm.get("cp"))==null?null:z.invalid)||((z=r.clientForm.get("cp"))==null?null:z.invalid)&&(((z=r.clientForm.get("cp"))==null?null:z.dirty)||((z=r.clientForm.get("cp"))==null?null:z.touched)))}},dependencies:[Ze,St,Xe,Ft,Rt,At,fi,Tt,Dt,Pt,Ot],styles:[`@charset "UTF-8";.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:366px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.row-container[_ngcontent-%COMP%]{position:relative;min-height:5em}.error-container[_ngcontent-%COMP%]{height:1.2rem;padding-top:2px}.form-group[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]{margin-bottom:10px}.modal-footer[_ngcontent-%COMP%]{border-top:none}.form-control[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important;font-size:1.2rem}
+/*# sourceMappingURL=add-client.component-YQ23S5AU.css.map */`]});let t=i;return t})();var ya=t=>({"is-invalid":t});function l_(t,i){t&1&&(c(0,"div"),b(1," Nombre es requerido. "),s())}function s_(t,i){t&1&&(c(0,"div"),b(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),s())}function c_(t,i){if(t&1&&(c(0,"div",43),O(1,l_,2,0,"div",44)(2,s_,2,0,"div",44),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.clientForm.get("name"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.clientForm.get("name"))==null||e.errors==null)&&e.errors.required)&&((e=o.clientForm.get("name"))==null||e.errors==null?null:e.errors.pattern))}}function d_(t,i){t&1&&(c(0,"div"),b(1," Email es requerido. "),s())}function u_(t,i){t&1&&(c(0,"div"),b(1," Formato de email inv\xE1lido. "),s())}function p_(t,i){if(t&1&&(c(0,"div",43),O(1,d_,2,0,"div",44)(2,u_,2,0,"div",44),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.clientForm.get("email"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.clientForm.get("email"))==null||e.errors==null)&&e.errors.required)&&(((e=o.clientForm.get("email"))==null||e.errors==null?null:e.errors.email)||((e=o.clientForm.get("email"))==null||e.errors==null?null:e.errors.invalidEmail)))}}function m_(t,i){t&1&&(c(0,"div"),b(1," El CUIT es requerido. "),s())}function f_(t,i){t&1&&(c(0,"div"),b(1," El cuit debe no debe contener simbolos ni letras, y una longitude de 17 digitos. "),s())}function h_(t,i){if(t&1&&(c(0,"div",43),O(1,m_,2,0,"div",44)(2,f_,2,0,"div",44),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.clientForm.get("cuit"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.clientForm.get("cuit"))==null||e.errors==null)&&e.errors.required)&&((e=o.clientForm.get("cuit"))==null||e.errors==null?null:e.errors.pattern))}}function g_(t,i){t&1&&(c(0,"div",43),b(1," Tel\xE9fono es requerido. "),s())}function v_(t,i){t&1&&(c(0,"div",43),b(1," Se necesita una direccion. "),s())}function __(t,i){t&1&&(c(0,"div",43),b(1," Revise las notas. "),s())}function b_(t,i){t&1&&(c(0,"div",43),b(1," CP es requerido. "),s())}function y_(t,i){if(t&1){let n=Re();c(0,"app-delete-modal",45),ee("cancel",function(){me(n);let o=V();return fe(o.closeDeleteModal())})("confirm",function(){me(n);let o=V();return fe(o.deleteClient())}),s()}t&2&&g("headerMessage","Eliminar Cliente")("bodyMessage","\xBFEst\xE1s seguro que deseas borrar este Cliente?")}var n0=(()=>{let i=class i{constructor(e,o){this.salesChannelService=e,this.formBuilder=o,this.clientInput={},this.closeClientModalEvent=new lt,this.isToggled=!1,this.confirmDeleteModal=!1,this.clientForm=this.formBuilder.group({name:[{value:"",disabled:!this.isToggled},[oe.required,oe.pattern("^[a-zA-Z\xC0-\xFF0-9 ]*$")]],cuit:[{value:"",disabled:!this.isToggled},[oe.required,Bo]],email:[{value:"",disabled:!this.isToggled},[oe.required,Fn]],phone:[{value:"",disabled:!this.isToggled},[oe.required,In]],cp:[{value:"",disabled:!this.isToggled},[oe.required,oe.pattern("^(?!0000)[0-9]{4}$")]],address:[{value:"",disabled:!this.isToggled},[oe.required]],line2:[{value:"",disabled:!this.isToggled}]})}ngOnChanges(e){e.clientInput&&e.clientInput.currentValue&&this.clientForm.patchValue(this.transformClientInput(this.clientInput))}toggleEditMode(){this.isToggled=!this.isToggled,this.isToggled?this.clientForm.enable():this.clientForm.disable()}onSubmit(){if(this.clientForm.valid){let e=this.clientForm.get("cp")?.value,o=this.clientForm.get("address")?.value,r=this.clientForm.get("line2")?.value,a=`${e}|${o}|${r}`.trim().replace(/|\s*$/,""),d={id:this.clientInput.id,name:this.clientForm.get("name")?.value,email:this.clientForm.get("email")?.value,phone:this.clientForm.get("phone")?.value,cuit:this.clientForm.get("cuit")?.value,addres:a};this.salesChannelService.updateSaleChannel(d).subscribe(()=>{this.closeClientModalEvent.emit()})}else this.clientForm.markAllAsTouched()}closeModal(){this.closeClientModalEvent.emit()}confirmDelete(){this.confirmDeleteModal=!0}closeDeleteModal(){this.confirmDeleteModal=!1}deleteClient(){this.salesChannelService.deleteSaleChannel(this.clientInput.id).subscribe(()=>{this.closeClientModalEvent.emit()})}transformClientInput(e){let[o="",r="",a=""]=e.addres?.split("|")||[];return{id:e.id??null,name:e.name??"",email:e.email??"",phone:e.phone??"",cuit:e.cuit??"",cp:o.trim(),address:r.trim(),line2:a.trim()}}};i.\u0275fac=function(o){return new(o||i)(se(Uo),se(Vt))},i.\u0275cmp=ke({type:i,selectors:[["app-client"]],inputs:{clientInput:"clientInput"},outputs:{closeClientModalEvent:"closeClientModalEvent"},standalone:!0,features:[qi,Ve],decls:87,vars:31,consts:[["aux","ngForm"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content","modal-content-main"],[1,"modal-header","d-flex","justify-content-center","align-items-center"],[1,"row","w-100"],[1,"col"],[1,"modal-title"],[1,"col","d-flex","justify-content-center"],[1,"form-check","form-switch"],["for","flexSwitchCheckDefault",1,"form-check-label"],["type","checkbox","id","flexSwitchCheckDefault",1,"form-check-input","custom-switch",3,"change"],[1,"col","d-flex","justify-content-end"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[3,"ngSubmit","formGroup"],[1,"modal-body"],[1,"row"],[1,"form-group","row-container"],[1,"row","align-items-center"],[1,"col-2"],["for","name"],["type","text","id","name","name","name","formControlName","name",1,"form-control",3,"ngClass"],[1,"error-container"],["class","text-danger",4,"ngIf"],[1,"col-1"],["for","email"],["type","email","id","email","name","email","formControlName","email",1,"form-control",3,"ngClass"],["for","surname"],["type","number","id","cuit","name","cuit","formControlName","cuit",1,"form-control",3,"ngClass"],["for","phone"],["type","text","id","phone","name","telefono","formControlName","phone",1,"form-control",3,"ngClass"],[1,"form-group"],["for","address",1,"title"],["type","text","id","address","formControlName","address",1,"form-control",3,"ngClass"],["for","cp",1,"title"],["type","text","id","cp","name","cp","formControlName","cp",1,"form-control",3,"ngClass"],["for","line2",1,"title"],[1,"col-7"],["type","text","id","line2","formControlName","line2",1,"form-control",3,"ngClass"],[1,"modal-footer","justify-content-center"],["type","submit",1,"btn","btn-custom",3,"disabled"],["type","button",1,"btn","btn-danger",3,"click"],[3,"headerMessage","bodyMessage","cancel","confirm",4,"ngIf"],[1,"text-danger"],[4,"ngIf"],[3,"cancel","confirm","headerMessage","bodyMessage"]],template:function(o,r){if(o&1){let a=Re();c(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"h5",7),b(7,"Detalles Proveedor"),s()(),c(8,"div",8)(9,"div",9)(10,"label",10),b(11,"Editar"),s(),c(12,"input",11),ee("change",function(){return me(a),fe(r.toggleEditMode())}),s()()(),c(13,"div",12)(14,"button",13),ee("click",function(){return me(a),fe(r.closeModal())}),s()()()(),c(15,"form",14,0),ee("ngSubmit",function(){return me(a),fe(r.onSubmit())}),c(17,"div",15)(18,"div",16)(19,"div",6)(20,"div",17)(21,"div",18)(22,"div",17)(23,"div",18)(24,"div",19)(25,"label",20),b(26,"Nombre"),s()(),c(27,"div",6),H(28,"input",21),s(),c(29,"div",22),O(30,c_,3,2,"div",23),s()()(),c(31,"div",24)(32,"label",25),b(33,"Email"),s()(),c(34,"div",6),H(35,"input",26),s(),c(36,"div",22),O(37,p_,3,2,"div",23),s()()(),c(38,"div",17)(39,"div",18)(40,"div",19)(41,"label",27),b(42,"CUIT"),s()(),c(43,"div",6),H(44,"input",28),s(),c(45,"div",22),O(46,h_,3,2,"div",23),s()()()(),c(47,"div",6)(48,"div",17)(49,"div",18)(50,"div",19)(51,"label",29),b(52,"Tel\xE9fono"),s()(),c(53,"div",6),H(54,"input",30),s(),c(55,"div",22),O(56,g_,2,0,"div",23),s()()(),c(57,"div",31)(58,"div",18)(59,"div",19)(60,"label",32),b(61,"Direccion"),s()(),c(62,"div",6),H(63,"input",33),s(),c(64,"div",22),O(65,v_,2,0,"div",23),s()()(),c(66,"div",17)(67,"div",18)(68,"div",24)(69,"label",34),b(70,"CP"),s()(),c(71,"div",19),H(72,"input",35),s(),c(73,"div",19)(74,"label",36),b(75,"Notas"),s()(),c(76,"div",37),H(77,"input",38),s(),c(78,"div",22),O(79,__,2,0,"div",23)(80,b_,2,0,"div",23),s()()()()()(),c(81,"div",39)(82,"button",40),b(83," GUARDAR "),s(),c(84,"button",41),ee("click",function(){return me(a),fe(r.confirmDelete())}),b(85," BORRAR "),s()()()()()(),O(86,y_,1,2,"app-delete-modal",42)}if(o&2){let a,d,p,_,y,w,S,v,M,F,k,I,L,z,$=ct(16);h(15),g("formGroup",r.clientForm),h(13),g("ngClass",_e(17,ya,(((a=r.clientForm.get("name"))==null?null:a.dirty)||((a=r.clientForm.get("name"))==null?null:a.touched)||$.submitted)&&((a=r.clientForm.get("name"))==null?null:a.invalid))),h(2),g("ngIf",$.submitted||((d=r.clientForm.get("name"))==null?null:d.invalid)&&(((d=r.clientForm.get("name"))==null?null:d.dirty)||((d=r.clientForm.get("name"))==null?null:d.touched))),h(5),g("ngClass",_e(19,ya,(((p=r.clientForm.get("email"))==null?null:p.dirty)||((p=r.clientForm.get("email"))==null?null:p.touched)||$.submitted)&&((p=r.clientForm.get("email"))==null?null:p.invalid))),h(2),g("ngIf",$.submitted||((_=r.clientForm.get("email"))==null?null:_.invalid)&&(((_=r.clientForm.get("email"))==null?null:_.dirty)||((_=r.clientForm.get("email"))==null?null:_.touched))),h(7),g("ngClass",_e(21,ya,(((y=r.clientForm.get("cuit"))==null?null:y.dirty)||((y=r.clientForm.get("cuit"))==null?null:y.touched)||$.submitted)&&((y=r.clientForm.get("cuit"))==null?null:y.invalid))),h(2),g("ngIf",$.submitted||((w=r.clientForm.get("cuit"))==null?null:w.invalid)&&(((w=r.clientForm.get("cuit"))==null?null:w.dirty)||((w=r.clientForm.get("cuit"))==null?null:w.touched))),h(8),g("ngClass",_e(23,ya,(((S=r.clientForm.get("phone"))==null?null:S.dirty)||((S=r.clientForm.get("phone"))==null?null:S.touched)||$.submitted)&&((S=r.clientForm.get("phone"))==null?null:S.invalid))),h(2),g("ngIf",$.submitted&&((v=r.clientForm.get("phones"))==null?null:v.invalid)||((v=r.clientForm.get("phone"))==null?null:v.invalid)&&(((v=r.clientForm.get("phone"))==null?null:v.dirty)||((v=r.clientForm.get("phone"))==null?null:v.touched))),h(7),g("ngClass",_e(25,ya,(((M=r.clientForm.get("address"))==null?null:M.dirty)||((M=r.clientForm.get("address"))==null?null:M.touched)||$.submitted)&&((M=r.clientForm.get("address"))==null?null:M.invalid))),h(2),g("ngIf",$.submitted&&((F=r.clientForm.get("address"))==null?null:F.invalid)||((F=r.clientForm.get("address"))==null?null:F.invalid)&&(((F=r.clientForm.get("address"))==null?null:F.dirty)||((F=r.clientForm.get("address"))==null?null:F.touched))),h(7),g("ngClass",_e(27,ya,(((k=r.clientForm.get("cp"))==null?null:k.dirty)||((k=r.clientForm.get("cp"))==null?null:k.touched)||$.submitted)&&((k=r.clientForm.get("cp"))==null?null:k.invalid))),h(5),g("ngClass",_e(29,ya,(((I=r.clientForm.get("line2"))==null?null:I.dirty)||((I=r.clientForm.get("linea2"))==null?null:I.touched)||$.submitted)&&((I=r.clientForm.get("linea2"))==null?null:I.invalid))),h(2),g("ngIf",((L=r.clientForm.get("line2"))==null?null:L.invalid)&&(((L=r.clientForm.get("line2"))==null?null:L.dirty)||((L=r.clientForm.get("line2"))==null?null:L.touched))),h(),g("ngIf",$.submitted&&((z=r.clientForm.get("cp"))==null?null:z.invalid)||((z=r.clientForm.get("cp"))==null?null:z.invalid)&&(((z=r.clientForm.get("cp"))==null?null:z.dirty)||((z=r.clientForm.get("cp"))==null?null:z.touched))),h(2),g("disabled",!r.isToggled),h(4),g("ngIf",r.confirmDeleteModal)}},dependencies:[Ze,St,Xe,Ft,Rt,At,fi,Tt,Dt,Pt,Ot,Jn],styles:[`@charset "UTF-8";.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:366px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.row-container[_ngcontent-%COMP%]{position:relative;min-height:5em}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.form-group[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]{margin-bottom:10px}.modal-footer[_ngcontent-%COMP%]{border-top:none}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.custom-switch[_ngcontent-%COMP%]:focus{border-color:#1b5e20;box-shadow:0 0 0 .25rem #1b5e2040}.custom-switch[_ngcontent-%COMP%]:checked{background-color:#88ca5e;border-color:#1b5e20}.custom-switch[_ngcontent-%COMP%]:checked:before{background-color:#fff}.form-control[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important;font-size:1.2rem}
+/*# sourceMappingURL=client.component-VSD23SL2.css.map */`]});let t=i;return t})();var r0=(()=>{let i=class i{constructor(e){this.http=e,this.apiUrl=ki.apiUrl+"/api/SalesChannels"}getClients(){return this.http.get(this.apiUrl).pipe(Vi(e=>Vo(e)),nt(ot))}getClientById(e){return this.http.get(`${this.apiUrl}/${e}`).pipe(Vi(o=>Vo(o)),nt(ot))}createClient(e){return this.http.post(this.apiUrl,e).pipe(nt(ot))}updateClient(e){return this.http.put(this.apiUrl,e).pipe(nt(ot))}deleteClient(e){return this.http.delete(`${this.apiUrl}/${e}`).pipe(nt(ot))}};i.\u0275fac=function(o){return new(o||i)(mi(Li))},i.\u0275prov=ti({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();function w_(t,i){if(t&1){let n=Re();c(0,"app-add-client",11),ee("closeModalEvent",function(){me(n);let o=V();return fe(o.closeAddClientModal())}),s()}}function S_(t,i){if(t&1){let n=Re();c(0,"app-client",12),ee("closeClientModalEvent",function(){me(n);let o=V();return fe(o.closeClientModal())}),s()}if(t&2){let n=V();g("clientInput",n.selectedClient)}}var o0=(()=>{let i=class i{constructor(e){this.ClientsService=e,this.clients=[],this.backUpClients=[],this.addClientModal=!1,this.openClientModal=!1,this.exportColumns=["description","cuit"]}ngOnInit(){this.getClients()}openAddClientModal(){this.addClientModal=!0}closeAddClientModal(){this.getClients(),this.addClientModal=!1}onRowClicked(e){this.selectedClient=e,this.openClientModal=!0}closeClientModal(){this.getClients(),this.openClientModal=!1}handleSearch(e){this.clients=this.backUpClients,this.clients=qr(this.clients,this.exportColumns,e)}getClients(){this.ClientsService.getClients().subscribe(e=>{this.clients=e,this.backUpClients=e})}};i.\u0275fac=function(o){return new(o||i)(se(r0))},i.\u0275cmp=ke({type:i,selectors:[["app-clients"]],standalone:!0,features:[Ve],decls:15,vars:3,consts:[[1,"container-fluid","d-flex","flex-column","justify-content-center","align-items-center","vh-100"],[1,"col-flex","justify-content-center","align-items-center"],[1,"row","header-row"],[1,"col"],[1,"view-title"],[3,"search"],[1,"col","d-flex","justify-content-center"],[1,"btn","btn-custom",3,"click"],[3,"rowClicked","data"],[3,"closeModalEvent",4,"ngIf"],[3,"clientInput","closeClientModalEvent",4,"ngIf"],[3,"closeModalEvent"],[3,"closeClientModalEvent","clientInput"]],template:function(o,r){o&1&&(H(0,"app-navbar"),c(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"h1",4),b(6,"Clientes"),s()(),c(7,"div",3)(8,"app-search-bar",5),ee("search",function(d){return r.handleSearch(d)}),s()(),c(9,"div",6)(10,"button",7),ee("click",function(){return r.openAddClientModal()}),b(11,"AGREGAR CLIENTE"),s()()(),c(12,"app-table",8),ee("rowClicked",function(d){return r.onRowClicked(d)}),s()()(),O(13,w_,1,0,"app-add-client",9)(14,S_,1,1,"app-client",10)),o&2&&(h(12),g("data",r.clients),h(),g("ngIf",r.addClientModal),h(),g("ngIf",r.openClientModal))},dependencies:[oi,Yn,Qn,i0,n0,Ze,Xe],styles:[`[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/clients.svg);background-size:cover;background-position:center;background-repeat:no-repeat}.view-title[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;color:#1b5e20;font-size:2.5rem;padding-left:1.5rem}.header-row[_ngcontent-%COMP%]{padding-bottom:20px;align-items:center}.vh-100[_ngcontent-%COMP%]{height:88vh!important}.btn-custom[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1.5rem;color:#1b5e20}
+/*# sourceMappingURL=clients.component-VASF33KL.css.map */`]});let t=i;return t})();var x_=[[["p-header"]]],E_=["p-header"];function F_(t,i){t&1&&Nr(0)}function I_(t,i){if(t&1&&(c(0,"div",3),Rn(1),O(2,F_,1,0,"ng-container",4),s()),t&2){let n=V();h(2),g("ngTemplateOutlet",n.headerTemplate)}}function A_(t,i){t&1&&(c(0,"div",3)(1,"span",5)(2,"select",6)(3,"option",7),b(4,"Heading"),s(),c(5,"option",8),b(6,"Subheading"),s(),c(7,"option",9),b(8,"Normal"),s()(),c(9,"select",10)(10,"option",9),b(11,"Sans Serif"),s(),c(12,"option",11),b(13,"Serif"),s(),c(14,"option",12),b(15,"Monospace"),s()()(),c(16,"span",5),H(17,"button",13)(18,"button",14)(19,"button",15),s(),c(20,"span",5),H(21,"select",16)(22,"select",17),s(),c(23,"span",5),H(24,"button",18)(25,"button",19),c(26,"select",20),H(27,"option",9),c(28,"option",21),b(29,"center"),s(),c(30,"option",22),b(31,"right"),s(),c(32,"option",23),b(33,"justify"),s()()(),c(34,"span",5),H(35,"button",24)(36,"button",25)(37,"button",26),s(),c(38,"span",5),H(39,"button",27),s()())}var M_={provide:Or,useExisting:Zi(()=>po),multi:!0},po=(()=>{class t{el;platformId;style;styleClass;placeholder;formats;modules;bounds;scrollingContainer;debug;get readonly(){return this._readonly}set readonly(n){this._readonly=n,this.quill&&(this._readonly?this.quill.disable():this.quill.enable())}onInit=new lt;onTextChange=new lt;onSelectionChange=new lt;templates;toolbar;value;delayedCommand=null;_readonly=!1;onModelChange=()=>{};onModelTouched=()=>{};quill;dynamicQuill;headerTemplate;get isAttachedQuillEditorToDOM(){return this.quillElements?.editorElement?.isConnected}quillElements;constructor(n,e){this.el=n,this.platformId=e,vp(()=>{this.initQuillElements(),this.initQuillEditor()})}ngAfterContentInit(){this.templates.forEach(n=>{switch(n.getType()){case"header":this.headerTemplate=n.template;break}})}writeValue(n){if(this.value=n,this.quill)if(n){let e=()=>{this.quill.setContents(this.quill.clipboard.convert(this.dynamicQuill.version.startsWith("2")?{html:this.value}:this.value))};this.isAttachedQuillEditorToDOM?e():this.delayedCommand=e}else{let e=()=>{this.quill.setText("")};this.isAttachedQuillEditorToDOM?e():this.delayedCommand=e}}registerOnChange(n){this.onModelChange=n}registerOnTouched(n){this.onModelTouched=n}getQuill(){return this.quill}initQuillEditor(){Ep(this.platformId)||(this.dynamicQuill?this.createQuillEditor():import("./chunk-HHFWQCQ5.mjs").then(n=>{this.dynamicQuill=n.default,this.createQuillEditor()}).catch(n=>console.error(n.message)))}createQuillEditor(){this.initQuillElements();let{toolbarElement:n,editorElement:e}=this.quillElements,o={toolbar:n},r=this.modules?Hi(Hi({},o),this.modules):o;this.quill=new this.dynamicQuill(e,{modules:r,placeholder:this.placeholder,readOnly:this.readonly,theme:"snow",formats:this.formats,bounds:this.bounds,debug:this.debug,scrollingContainer:this.scrollingContainer});let a=this.dynamicQuill.version.startsWith("2");this.value&&this.quill.setContents(this.quill.clipboard.convert(a?{html:this.value}:this.value)),this.quill.on("text-change",(d,p,_)=>{if(_==="user"){let y=a?this.quill.getSemanticHTML():Zt.findSingle(e,".ql-editor").innerHTML,w=this.quill.getText().trim();y==="<p><br></p>"&&(y=null),this.onTextChange.emit({htmlValue:y,textValue:w,delta:d,source:_}),this.onModelChange(y),this.onModelTouched()}}),this.quill.on("selection-change",(d,p,_)=>{this.onSelectionChange.emit({range:d,oldRange:p,source:_})}),this.onInit.emit({editor:this.quill})}initQuillElements(){this.quillElements||(this.quillElements={editorElement:Zt.findSingle(this.el.nativeElement,"div.p-editor-content"),toolbarElement:Zt.findSingle(this.el.nativeElement,"div.p-editor-toolbar")})}static \u0275fac=function(e){return new(e||t)(se(sn),se(Lo))};static \u0275cmp=ke({type:t,selectors:[["p-editor"]],contentQueries:function(e,o,r){if(e&1&&(Tr(r,Ac,5),Tr(r,rn,4)),e&2){let a;Wn(a=$n())&&(o.toolbar=a.first),Wn(a=$n())&&(o.templates=a)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",placeholder:"placeholder",formats:"formats",modules:"modules",bounds:"bounds",scrollingContainer:"scrollingContainer",debug:"debug",readonly:"readonly"},outputs:{onInit:"onInit",onTextChange:"onTextChange",onSelectionChange:"onSelectionChange"},features:[tn([M_])],ngContentSelectors:E_,decls:4,vars:6,consts:[[3,"ngClass"],["class","p-editor-toolbar",4,"ngIf"],[1,"p-editor-content",3,"ngStyle"],[1,"p-editor-toolbar"],[4,"ngTemplateOutlet"],[1,"ql-formats"],[1,"ql-header"],["value","1"],["value","2"],["selected",""],[1,"ql-font"],["value","serif"],["value","monospace"],["aria-label","Bold","type","button",1,"ql-bold"],["aria-label","Italic","type","button",1,"ql-italic"],["aria-label","Underline","type","button",1,"ql-underline"],[1,"ql-color"],[1,"ql-background"],["value","ordered","aria-label","Ordered List","type","button",1,"ql-list"],["value","bullet","aria-label","Unordered List","type","button",1,"ql-list"],[1,"ql-align"],["value","center"],["value","right"],["value","justify"],["aria-label","Insert Link","type","button",1,"ql-link"],["aria-label","Insert Image","type","button",1,"ql-image"],["aria-label","Insert Code Block","type","button",1,"ql-code-block"],["aria-label","Remove Styles","type","button",1,"ql-clean"]],template:function(e,o){e&1&&(Gn(x_),c(0,"div",0),O(1,I_,3,1,"div",1)(2,A_,40,0,"div",1),H(3,"div",2),s()),e&2&&(Pi(o.styleClass),g("ngClass","p-editor-container"),h(),g("ngIf",o.toolbar||o.headerTemplate),h(),g("ngIf",!o.toolbar&&!o.headerTemplate),h(),g("ngStyle",o.style))},dependencies:[St,Xe,el,Xa],styles:[`.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item{width:auto;height:auto}
+`],encapsulation:2,changeDetection:0})}return t})(),Ko=(()=>{class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=en({type:t});static \u0275inj=Xi({imports:[Ze,Gr]})}return t})();var Yo=t=>({"is-invalid":t}),N_=()=>({height:"240px"});function T_(t,i){t&1&&(c(0,"div"),b(1,"Nombre es requerido."),s())}function P_(t,i){t&1&&(c(0,"div"),b(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),s())}function L_(t,i){if(t&1&&(c(0,"div",32),O(1,T_,2,0,"div",33)(2,P_,2,0,"div",33),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.recipeForm.get("name"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.recipeForm.get("name"))==null||e.errors==null)&&e.errors.required)&&((e=o.recipeForm.get("name"))==null||e.errors==null?null:e.errors.pattern))}}function O_(t,i){if(t&1&&(c(0,"option",41),b(1),s()),t&2){let n=i.$implicit;g("value",n),h(),pt(" ",n," ")}}function k_(t,i){if(t&1){let n=Re();c(0,"div")(1,"button",42),ee("click",function(){me(n);let o=V().index,r=V();return fe(r.removeIngredient(o))}),H(2,"i",43),s()()}}function D_(t,i){if(t&1&&(c(0,"div",34)(1,"div",23)(2,"div",6),H(3,"input",35),s(),c(4,"div",36),H(5,"input",37),s(),c(6,"div",36)(7,"select",38)(8,"option",39),b(9,"..."),s(),O(10,O_,2,2,"option",40),s()(),c(11,"div",36),O(12,k_,3,0,"div",33),s()()()),t&2){let n,e,o,r=i.$implicit,a=i.index,d=V(),p=ct(5);g("formGroupName",a),h(3),Ht("id","ingredient-name-",a,""),g("ngClass",_e(12,Yo,(((n=r.get("name"))==null?null:n.dirty)||((n=r.get("name"))==null?null:n.touched)||p.submitted)&&((n=r.get("name"))==null?null:n.invalid))),h(2),Ht("id","ingredient-quantity-",a,""),g("ngClass",_e(14,Yo,(((e=r.get("quantity"))==null?null:e.dirty)||((e=r.get("quantity"))==null?null:e.touched)||p.submitted)&&((e=r.get("quantity"))==null?null:e.invalid))),h(2),Ht("id","ingredient-unit-",a,""),g("ngClass",_e(16,Yo,(((o=r.get("unit"))==null?null:o.dirty)||((o=r.get("unit"))==null?null:o.touched)||p.submitted)&&((o=r.get("unit"))==null?null:o.invalid))),h(3),g("ngForOf",d.units),h(2),g("ngIf",a!==0)}}function R_(t,i){if(t&1&&(c(0,"option",41),b(1),s()),t&2){let n=i.$implicit;g("value",n),h(),pt(" ",n," ")}}function V_(t,i){if(t&1){let n=Re();c(0,"div")(1,"button",42),ee("click",function(){me(n);let o=V().index,r=V();return fe(r.removeInput(o))}),H(2,"i",43),s()()}}function q_(t,i){if(t&1&&(c(0,"div",34)(1,"div",23)(2,"div",6),H(3,"input",44),s(),c(4,"div",12),H(5,"input",45),s(),c(6,"div",36)(7,"select",38)(8,"option",39),b(9,"..."),s(),O(10,R_,2,2,"option",40),s()(),c(11,"div",36),O(12,V_,3,0,"div",33),s()()()),t&2){let n,e,o,r=i.$implicit,a=i.index,d=V(),p=ct(5);g("formGroupName",a),h(3),Ht("id","inputs-name-",a,""),g("ngClass",_e(12,Yo,(((n=r.get("name"))==null?null:n.dirty)||((n=r.get("name"))==null?null:n.touched)||p.submitted)&&((n=r.get("name"))==null?null:n.invalid))),h(2),Ht("id","inputs-quantity-",a,""),g("ngClass",_e(14,Yo,(((e=r.get("quantity"))==null?null:e.dirty)||((e=r.get("quantity"))==null?null:e.touched)||p.submitted)&&((e=r.get("quantity"))==null?null:e.invalid))),h(2),Ht("id","inputs-unit-",a,""),g("ngClass",_e(16,Yo,(((o=r.get("unit"))==null?null:o.dirty)||((o=r.get("unit"))==null?null:o.touched)||p.submitted)&&((o=r.get("unit"))==null?null:o.invalid))),h(3),g("ngForOf",d.units),h(2),g("ngIf",a!==0)}}function B_(t,i){t&1&&(c(0,"span",46)(1,"select",47),H(2,"option",48),c(3,"option",49),b(4,"Heading 1"),s(),c(5,"option",50),b(6,"Heading 2"),s(),c(7,"option",51),b(8,"Heading 3"),s()(),c(9,"select",52),H(10,"option",48),c(11,"option",53),b(12,"Serif"),s(),c(13,"option",54),b(14,"Monospace"),s()(),H(15,"button",55)(16,"button",56)(17,"button",57),c(18,"select",58),H(19,"option",48),c(20,"option",59),b(21,"Center"),s(),c(22,"option",60),b(23,"Right"),s(),c(24,"option",61),b(25,"Justify"),s()(),H(26,"button",62)(27,"button",63)(28,"button",64),s())}function j_(t,i){t&1&&(c(0,"div"),b(1,"Procedimiento es requerido."),s())}function U_(t,i){t&1&&(c(0,"div"),b(1," Es necesario agregar un procedimiento. "),s())}function z_(t,i){if(t&1&&(c(0,"div",32),O(1,j_,2,0,"div",33)(2,U_,2,0,"div",33),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.recipeForm.get("procedure"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.recipeForm.get("procedure"))==null||e.errors==null)&&e.errors.required)&&((e=o.recipeForm.get("procedure"))==null||e.errors==null?null:e.errors.pattern))}}var a0=(()=>{let i=class i{constructor(e,o,r){this.formBuilder=e,this.recipesService=o,this.router=r,this.units=[],this.toolbar=[["bold","italic","underline","strike"],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"}],[{header:1},{header:2}],[{align:[]}],["link","clean"]],this.recipeForm=this.formBuilder.group({name:["",[oe.required,oe.pattern("^[a-zA-Z0-9 ]*$")]],procedure:["",[oe.required]],ingredients:this.formBuilder.array([this.createIngredientFormGroup()]),inputs:this.formBuilder.array([this.createInputsFormGroup()])})}ngOnInit(){this.units=Object.values(nn)}createIngredientFormGroup(){return this.formBuilder.group({name:["",[oe.required,oe.pattern("^[a-zA-Z ]*$")]],quantity:["",[oe.required,oe.pattern("^[0-9]*$")]],unit:["",[oe.required]]})}createInputsFormGroup(){return this.formBuilder.group({name:["",[oe.required,oe.pattern("^[a-zA-Z0-9 ]*$")]],quantity:["",[oe.required,oe.pattern("^[0-9]*$")]],unit:["",[oe.required]]})}get ingredients(){return this.recipeForm.get("ingredients")}addIngredient(){this.ingredients.push(this.createIngredientFormGroup())}removeIngredient(e){this.ingredients.removeAt(e)}get inputs(){return this.recipeForm.get("inputs")}addInput(){this.inputs.push(this.createIngredientFormGroup())}removeInput(e){this.inputs.removeAt(e)}onSubmit(){if(console.log(this.recipeForm),this.recipeForm.valid){let e=this.recipeForm.get("ingredients")?.value.map(a=>`${a.name},${a.quantity},${a.unit}`).join(";");console.log(e);let o=this.recipeForm.get("inputs")?.value.map(a=>`${a.name},${a.quantity},${a.unit}`).join(";");console.log(o);let r={name:this.recipeForm.get("name")?.value,description:this.recipeForm.get("procedure")?.value,recipeIngredients:e,recipePackagingElements:o};this.recipesService.createRecipe(r).subscribe(a=>{console.log(a),this.router.navigate(["/recipes"])},a=>{console.error(a)})}}};i.\u0275fac=function(o){return new(o||i)(se(Vt),se(zo),se(pi))},i.\u0275cmp=ke({type:i,selectors:[["app-add-recipe"]],standalone:!0,features:[Ve],decls:56,vars:14,consts:[["aux","ngForm"],[1,"container-fluid","d-flex","flex-column","justify-content-center","align-items-center","vh-100"],[1,"row","justify-content-center","align-items-center","w-100"],[1,"col-10","col-main"],[1,"w-100",3,"ngSubmit","formGroup"],[1,"row","header-row","mb-4"],[1,"col"],[1,"view-title"],[1,"col","d-flex","justify-content-end"],["type","submit",1,"btn","btn-custom"],[1,"row","custom-row"],[1,"row","mb-3","align-items-center"],[1,"col-3"],["for","name",1,"title"],[1,"col-6"],["type","text","id","name","name","name","formControlName","name",1,"form-control",3,"ngClass"],[1,"error-container"],["class","text-danger",4,"ngIf"],[1,"col-3","d-flex","justify-content-end"],["type","button",1,"btn","btn-secondary"],[1,"row","align-items-center","py-2"],[1,"col-md-6"],[1,"form-group"],[1,"row","align-items-center"],[1,"title"],["type","button",1,"btn","btn-icon","text-success",3,"click"],[1,"bi","bi-plus-square-fill"],["formArrayName","ingredients",1,"adder-container"],["class","form-group adder-row",3,"formGroupName",4,"ngFor","ngForOf"],["formArrayName","inputs",1,"adder-container"],["formControlName","procedure",1,"form-control","p-editor-custom",3,"ngClass"],["pTemplate","header"],[1,"text-danger"],[4,"ngIf"],[1,"form-group","adder-row",3,"formGroupName"],["formControlName","name","placeholder","Nombre del ingrediente",1,"form-control",3,"id","ngClass"],[1,"col-2"],["type","number","formControlName","quantity","placeholder","Cantidad",1,"form-control",3,"id","ngClass"],["formControlName","unit","aria-label","Unit Selection",1,"form-select","me-2",3,"id","ngClass"],["value","","disabled","","selected",""],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["type","button",1,"btn","btn-icon","text-danger",3,"click"],[1,"bi","bi-x-square-fill"],["formControlName","name","placeholder","Nombre del insumo",1,"form-control",3,"id","ngClass"],["formControlName","quantity","placeholder","Cantidad",1,"form-control",3,"id","ngClass"],[1,"ql-formats"],["aria-label","Select header",1,"ql-header"],["selected",""],["value","1"],["value","2"],["value","3"],["aria-label","Select font",1,"ql-font"],["value","serif"],["value","monospace"],["aria-label","Bold",1,"ql-bold"],["aria-label","Italic",1,"ql-italic"],["aria-label","Underline",1,"ql-underline"],["aria-label","Select align",1,"ql-align"],["value","center"],["value","right"],["value","justify"],["value","ordered","aria-label","Ordered list",1,"ql-list"],["value","bullet","aria-label","Bullet list",1,"ql-list"],["aria-label","Insert link",1,"ql-link"]],template:function(o,r){if(o&1){let a=Re();H(0,"app-navbar"),c(1,"div",1)(2,"div",2)(3,"div",3)(4,"form",4,0),ee("ngSubmit",function(){return me(a),fe(r.onSubmit())}),c(6,"div",5)(7,"div",6)(8,"h1",7),b(9,"Nueva Receta"),s()(),c(10,"div",8)(11,"button",9),b(12,"GUARDAR"),s()()(),c(13,"div",10)(14,"div",11)(15,"div",12)(16,"label",13),b(17,"Nombre"),s()(),c(18,"div",14),H(19,"input",15),c(20,"div",16),O(21,L_,3,2,"div",17),s()(),c(22,"div",18)(23,"button",19),b(24,"Subir Imagen"),s()()(),c(25,"div",20)(26,"div",21)(27,"div",22)(28,"div",23)(29,"div",6)(30,"label",24),b(31,"Ingredientes"),s()(),c(32,"div",8)(33,"button",25),ee("click",function(){return me(a),fe(r.addIngredient())}),H(34,"i",26),s()()(),c(35,"div",27),O(36,D_,13,18,"div",28),s()()(),c(37,"div",21)(38,"div",22)(39,"div",23)(40,"div",6)(41,"label",24),b(42,"Insumos"),s()(),c(43,"div",8)(44,"button",25),ee("click",function(){return me(a),fe(r.addInput())}),H(45,"i",26),s()()(),c(46,"div",29),O(47,q_,13,18,"div",28),s()()()(),H(48,"hr"),c(49,"div",22)(50,"label",24),b(51,"Procedimiento"),s(),c(52,"p-editor",30),O(53,B_,29,0,"ng-template",31),s(),c(54,"div",16),O(55,z_,3,2,"div",17),s()()()()()()()}if(o&2){let a,d,p,_,y=ct(5);h(4),g("formGroup",r.recipeForm),h(15),g("ngClass",_e(9,Yo,(((a=r.recipeForm.get("name"))==null?null:a.dirty)||((a=r.recipeForm.get("name"))==null?null:a.touched)||y.submitted)&&((a=r.recipeForm.get("name"))==null?null:a.invalid))),h(2),g("ngIf",y.submitted||((d=r.recipeForm.get("name"))==null?null:d.invalid)&&(((d=r.recipeForm.get("name"))==null?null:d.dirty)||((d=r.recipeForm.get("name"))==null?null:d.touched))),h(15),g("ngForOf",r.ingredients.controls),h(11),g("ngForOf",r.inputs.controls),h(5),Oo(Pr(11,N_)),g("ngClass",_e(12,Yo,(((p=r.recipeForm.get("procedure"))==null?null:p.dirty)||((p=r.recipeForm.get("procedure"))==null?null:p.touched)||y.submitted)&&((p=r.recipeForm.get("procedure"))==null?null:p.invalid))),h(3),g("ngIf",y.submitted||((_=r.recipeForm.get("procedure"))==null?null:_.invalid)&&(((_=r.recipeForm.get("procedure"))==null?null:_.dirty)||((_=r.recipeForm.get("procedure"))==null?null:_.touched)))}},dependencies:[oi,Ze,St,Jt,Xe,Ft,Rt,Gi,Wi,At,fi,Oi,Tt,Dt,Pt,Ot,kr,Dr,Ko,po,rn],styles:[`@charset "UTF-8";[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/recipes.svg);background-size:cover;background-position:center;background-repeat:no-repeat}.view-title[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;color:#1b5e20;font-size:2.5rem;padding-left:1.5rem}.header-row[_ngcontent-%COMP%]{padding-bottom:14px;align-items:center}.title[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-size:1rem}.vh-100[_ngcontent-%COMP%]{height:88vh!important}.btn-custom[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1.5rem;color:#1b5e20}.custom-row[_ngcontent-%COMP%]{background-color:#d2ffaa;padding:.5rem}.btn-icon[_ngcontent-%COMP%]{font-size:1.6rem}.adder-container[_ngcontent-%COMP%]{height:140px;overflow-y:auto;overflow-x:hidden;padding:6px}.adder-row[_ngcontent-%COMP%]{margin:0;padding:0}.adder-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:12px}.adder-container[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:#88ca5e}.adder-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#1b5e20}.adder-container[_ngcontent-%COMP%]::-webkit-scrollbar-button{background-color:#1b5e20}.form-control[_ngcontent-%COMP%], .form-select[_ngcontent-%COMP%]{min-width:0;box-sizing:border-box}hr[_ngcontent-%COMP%]{border-top:1px solid #1b5e20}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.p-editor-custom[_ngcontent-%COMP%]{height:300px!important}.p-editor[_ngcontent-%COMP%]   .p-editor-conteiner[_ngcontent-%COMP%]::-webkit-scrollbar{width:12px}.p-editor[_ngcontent-%COMP%]   .p-editor-conteiner[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:#88ca5e}.p-editor[_ngcontent-%COMP%]   .p-editor-content[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#1b5e20}.p-editor[_ngcontent-%COMP%]   .p-editor-content[_ngcontent-%COMP%]::-webkit-scrollbar-button{background-color:#1b5e20}
+/*# sourceMappingURL=add-recipe.component-OXDUGI23.css.map */`]});let t=i;return t})();var Qo=t=>({"is-invalid":t}),H_=()=>({height:"240px"});function G_(t,i){t&1&&(c(0,"div"),b(1,"Nombre es requerido."),s())}function W_(t,i){t&1&&(c(0,"div"),b(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),s())}function $_(t,i){if(t&1&&(c(0,"div",30),O(1,G_,2,0,"div",31)(2,W_,2,0,"div",31),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.recipeForm.get("name"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.recipeForm.get("name"))==null||e.errors==null)&&e.errors.required)&&((e=o.recipeForm.get("name"))==null||e.errors==null?null:e.errors.pattern))}}function K_(t,i){if(t&1&&(c(0,"option",39),b(1),s()),t&2){let n=i.$implicit;g("value",n),h(),pt(" ",n," ")}}function Y_(t,i){if(t&1){let n=Re();c(0,"div")(1,"button",40),ee("click",function(){me(n);let o=V().index,r=V();return fe(r.removeIngredient(o))}),H(2,"i",41),s()()}}function Q_(t,i){if(t&1&&(c(0,"div",32)(1,"div",21)(2,"div",6),H(3,"input",33),s(),c(4,"div",34),H(5,"input",35),s(),c(6,"div",34)(7,"select",36)(8,"option",37),b(9,"..."),s(),O(10,K_,2,2,"option",38),s()(),c(11,"div",34),O(12,Y_,3,0,"div",31),s()()()),t&2){let n,e,o,r=i.$implicit,a=i.index,d=V(),p=ct(5);g("formGroupName",a),h(3),Ht("id","ingredient-name-",a,""),g("ngClass",_e(12,Qo,(((n=r.get("name"))==null?null:n.dirty)||((n=r.get("name"))==null?null:n.touched)||p.submitted)&&((n=r.get("name"))==null?null:n.invalid))),h(2),Ht("id","ingredient-quantity-",a,""),g("ngClass",_e(14,Qo,(((e=r.get("quantity"))==null?null:e.dirty)||((e=r.get("quantity"))==null?null:e.touched)||p.submitted)&&((e=r.get("quantity"))==null?null:e.invalid))),h(2),Ht("id","ingredient-unit-",a,""),g("ngClass",_e(16,Qo,(((o=r.get("unit"))==null?null:o.dirty)||((o=r.get("unit"))==null?null:o.touched)||p.submitted)&&((o=r.get("unit"))==null?null:o.invalid))),h(3),g("ngForOf",d.units),h(2),g("ngIf",a!==0)}}function J_(t,i){if(t&1&&(c(0,"option",39),b(1),s()),t&2){let n=i.$implicit;g("value",n),h(),pt(" ",n," ")}}function Z_(t,i){if(t&1){let n=Re();c(0,"div")(1,"button",40),ee("click",function(){me(n);let o=V().index,r=V();return fe(r.removeInput(o))}),H(2,"i",41),s()()}}function X_(t,i){if(t&1&&(c(0,"div",32)(1,"div",21)(2,"div",6),H(3,"input",42),s(),c(4,"div",14),H(5,"input",43),s(),c(6,"div",34)(7,"select",36)(8,"option",37),b(9,"..."),s(),O(10,J_,2,2,"option",38),s()(),c(11,"div",34),O(12,Z_,3,0,"div",31),s()()()),t&2){let n,e,o,r=i.$implicit,a=i.index,d=V(),p=ct(5);g("formGroupName",a),h(3),Ht("id","inputs-name-",a,""),g("ngClass",_e(12,Qo,(((n=r.get("name"))==null?null:n.dirty)||((n=r.get("name"))==null?null:n.touched)||p.submitted)&&((n=r.get("name"))==null?null:n.invalid))),h(2),Ht("id","inputs-quantity-",a,""),g("ngClass",_e(14,Qo,(((e=r.get("quantity"))==null?null:e.dirty)||((e=r.get("quantity"))==null?null:e.touched)||p.submitted)&&((e=r.get("quantity"))==null?null:e.invalid))),h(2),Ht("id","inputs-unit-",a,""),g("ngClass",_e(16,Qo,(((o=r.get("unit"))==null?null:o.dirty)||((o=r.get("unit"))==null?null:o.touched)||p.submitted)&&((o=r.get("unit"))==null?null:o.invalid))),h(3),g("ngForOf",d.units),h(2),g("ngIf",a!==0)}}function eb(t,i){t&1&&(c(0,"span",44)(1,"select",45),H(2,"option",46),c(3,"option",47),b(4,"Heading 1"),s(),c(5,"option",48),b(6,"Heading 2"),s(),c(7,"option",49),b(8,"Heading 3"),s()(),c(9,"select",50),H(10,"option",46),c(11,"option",51),b(12,"Serif"),s(),c(13,"option",52),b(14,"Monospace"),s()(),H(15,"button",53)(16,"button",54)(17,"button",55),c(18,"select",56),H(19,"option",46),c(20,"option",57),b(21,"Center"),s(),c(22,"option",58),b(23,"Right"),s(),c(24,"option",59),b(25,"Justify"),s()(),H(26,"button",60)(27,"button",61)(28,"button",62),s())}function tb(t,i){t&1&&(c(0,"div"),b(1,"Procedimiento es requerido."),s())}function ib(t,i){t&1&&(c(0,"div"),b(1," Es necesario agregar un procedimiento. "),s())}function nb(t,i){if(t&1&&(c(0,"div",30),O(1,tb,2,0,"div",31)(2,ib,2,0,"div",31),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.recipeForm.get("procedure"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.recipeForm.get("procedure"))==null||e.errors==null)&&e.errors.required)&&((e=o.recipeForm.get("procedure"))==null||e.errors==null?null:e.errors.pattern))}}var s0=(()=>{let i=class i{constructor(e,o,r,a){this.formBuilder=e,this.route=o,this.recipeService=r,this.router=a,this.id=0,this.units=[],this.recipeForm=this.formBuilder.group({name:["",[oe.required,oe.pattern("[a-zA-Z ]*")]],procedure:["",[oe.required]],ingredients:this.formBuilder.array([this.createIngredientFormGroup()]),inputs:this.formBuilder.array([this.createInputsFormGroup()])})}ngOnInit(){this.id=+(this.route.snapshot.paramMap.get("id")??0),this.id!==0&&(this.recipe=this.recipeService.getRecipeById(this.id).subscribe(e=>{this.recipe=e,this.patchForm()})),this.units=Object.values(nn)}createIngredientFormGroup(){return this.formBuilder.group({name:["",[oe.required,oe.pattern("^[a-zA-Z ]*$")]],quantity:["",[oe.required,oe.pattern("^[0-9]*$")]],unit:["",[oe.required]]})}createInputsFormGroup(){return this.formBuilder.group({name:["",[oe.required,oe.pattern("^[a-zA-Z ]*$")]],quantity:["",[oe.required,oe.pattern("^[0-9]*$")]],unit:["",[oe.required]]})}get ingredients(){return this.recipeForm.get("ingredients")}addIngredient(){this.ingredients.push(this.createIngredientFormGroup())}removeIngredient(e){this.ingredients.removeAt(e)}get inputs(){return this.recipeForm.get("inputs")}addInput(){this.inputs.push(this.createIngredientFormGroup())}removeInput(e){this.inputs.removeAt(e)}onSubmit(){if(this.recipeForm.valid){console.log(this.recipeForm.value);let e=this.recipeForm.get("ingredients")?.value.map(a=>`${a.name},${a.quantity},${a.unit}`).join(";");console.log(e);let o=this.recipeForm.get("inputs")?.value.map(a=>`${a.name},${a.quantity},${a.unit}`).join(";");console.log(o);let r={id:this.id,name:this.recipeForm.get("name")?.value,description:this.recipeForm.get("procedure")?.value,recipeIngredients:e,recipePackagingElements:o};this.recipeService.updateRecipe(r).subscribe(a=>{console.log(a),this.router.navigate(["/recipes"])},a=>{console.error(a)})}}patchForm(){this.recipeForm.patchValue({name:this.recipe.name,procedure:this.recipe.description}),this.ingredients.clear(),this.inputs.clear(),l0(this.recipe.recipeIngredients).forEach(r=>{this.ingredients.push(this.formBuilder.group({name:r.name,quantity:r.quantity,unit:r.unit}))}),l0(this.recipe.recipePackagingElements).forEach(r=>{this.inputs.push(this.formBuilder.group({name:r.name,quantity:r.quantity,unit:r.unit}))})}};i.\u0275fac=function(o){return new(o||i)(se(Vt),se(tl),se(zo),se(pi))},i.\u0275cmp=ke({type:i,selectors:[["app-view-recipe"]],standalone:!0,features:[Ve],decls:55,vars:14,consts:[["aux","ngForm"],[1,"container-fluid","d-flex","flex-column","justify-content-center","align-items-center","vh-100"],[1,"row","justify-content-center","align-items-center","w-100"],[1,"col-10","col-main"],[1,"w-100",3,"ngSubmit","formGroup"],[1,"row","header-row","mb-4"],[1,"col"],[1,"view-title"],[1,"col","d-flex","justify-content-end"],["type","submit",1,"btn","btn-custom"],[1,"row","custom-row"],[1,"row"],[1,"form-group"],[1,"row","align-items-center","mb-3"],[1,"col-3"],["for","name",1,"title"],["type","text","id","name","name","name","formControlName","name",1,"form-control",3,"ngClass"],[1,"error-container"],["class","text-danger",4,"ngIf"],[1,"row","align-items-center","py-2"],[1,"col-md-6"],[1,"row","align-items-center"],[1,"title"],["type","button",1,"btn","btn-icon","text-success",3,"click"],[1,"bi","bi-plus-square-fill"],["formArrayName","ingredients",1,"adder-container"],["class","form-group adder-row",3,"formGroupName",4,"ngFor","ngForOf"],["formArrayName","inputs",1,"adder-container"],["formControlName","procedure",1,"form-control","p-editor-custom",3,"ngClass"],["pTemplate","header"],[1,"text-danger"],[4,"ngIf"],[1,"form-group","adder-row",3,"formGroupName"],["formControlName","name","placeholder","Nombre del ingrediente",1,"form-control",3,"id","ngClass"],[1,"col-2"],["type","number","formControlName","quantity","placeholder","Cantidad",1,"form-control",3,"id","ngClass"],["formControlName","unit","aria-label","Unit Selection",1,"form-select","me-2",3,"id","ngClass"],["value","","disabled","","selected",""],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["type","button",1,"btn","btn-icon","text-danger",3,"click"],[1,"bi","bi-x-square-fill"],["formControlName","name","placeholder","Nombre del insumo",1,"form-control",3,"id","ngClass"],["formControlName","quantity","placeholder","Cantidad",1,"form-control",3,"id","ngClass"],[1,"ql-formats"],["aria-label","Select header",1,"ql-header"],["selected",""],["value","1"],["value","2"],["value","3"],["aria-label","Select font",1,"ql-font"],["value","serif"],["value","monospace"],["aria-label","Bold",1,"ql-bold"],["aria-label","Italic",1,"ql-italic"],["aria-label","Underline",1,"ql-underline"],["aria-label","Select align",1,"ql-align"],["value","center"],["value","right"],["value","justify"],["value","ordered","aria-label","Ordered list",1,"ql-list"],["value","bullet","aria-label","Bullet list",1,"ql-list"],["aria-label","Insert link",1,"ql-link"]],template:function(o,r){if(o&1){let a=Re();H(0,"app-navbar"),c(1,"div",1)(2,"div",2)(3,"div",3)(4,"form",4,0),ee("ngSubmit",function(){return me(a),fe(r.onSubmit())}),c(6,"div",5)(7,"div",6)(8,"h1",7),b(9,"Modificar Receta"),s()(),c(10,"div",8)(11,"button",9),b(12,"GUARDAR"),s()()(),c(13,"div",10)(14,"div",11)(15,"div",12)(16,"div",13)(17,"div",14)(18,"label",15),b(19,"Nombre"),s()(),c(20,"div",6),H(21,"input",16),c(22,"div",17),O(23,$_,3,2,"div",18),s()()()()(),c(24,"div",19)(25,"div",20)(26,"div",12)(27,"div",21)(28,"div",6)(29,"label",22),b(30,"Ingredientes"),s()(),c(31,"div",8)(32,"button",23),ee("click",function(){return me(a),fe(r.addIngredient())}),H(33,"i",24),s()()(),c(34,"div",25),O(35,Q_,13,18,"div",26),s()()(),c(36,"div",20)(37,"div",12)(38,"div",21)(39,"div",6)(40,"label",22),b(41,"Insumos"),s()(),c(42,"div",8)(43,"button",23),ee("click",function(){return me(a),fe(r.addInput())}),H(44,"i",24),s()()(),c(45,"div",27),O(46,X_,13,18,"div",26),s()()()(),H(47,"hr"),c(48,"div",12)(49,"label",22),b(50,"Procedimiento"),s(),c(51,"p-editor",28),O(52,eb,29,0,"ng-template",29),s(),c(53,"div",17),O(54,nb,3,2,"div",18),s()()()()()()()}if(o&2){let a,d,p,_,y=ct(5);h(4),g("formGroup",r.recipeForm),h(17),g("ngClass",_e(9,Qo,(((a=r.recipeForm.get("name"))==null?null:a.dirty)||((a=r.recipeForm.get("name"))==null?null:a.touched)||y.submitted)&&((a=r.recipeForm.get("name"))==null?null:a.invalid))),h(2),g("ngIf",y.submitted||((d=r.recipeForm.get("name"))==null?null:d.invalid)&&(((d=r.recipeForm.get("name"))==null?null:d.dirty)||((d=r.recipeForm.get("name"))==null?null:d.touched))),h(12),g("ngForOf",r.ingredients.controls),h(11),g("ngForOf",r.inputs.controls),h(5),Oo(Pr(11,H_)),g("ngClass",_e(12,Qo,(((p=r.recipeForm.get("procedure"))==null?null:p.dirty)||((p=r.recipeForm.get("procedure"))==null?null:p.touched)||y.submitted)&&((p=r.recipeForm.get("procedure"))==null?null:p.invalid))),h(3),g("ngIf",y.submitted||((_=r.recipeForm.get("procedure"))==null?null:_.invalid)&&(((_=r.recipeForm.get("procedure"))==null?null:_.dirty)||((_=r.recipeForm.get("procedure"))==null?null:_.touched)))}},dependencies:[Ze,St,Jt,Xe,Ft,Rt,Gi,Wi,At,fi,Oi,Tt,Dt,Pt,Ot,kr,Dr,oi,Ko,po,rn],styles:[`@charset "UTF-8";[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/recipes.svg);background-size:cover;background-position:center;background-repeat:no-repeat}.view-title[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;color:#1b5e20;font-size:2.5rem;padding-left:1.5rem}.header-row[_ngcontent-%COMP%]{padding-bottom:14px;align-items:center}.title[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-size:1rem}.vh-100[_ngcontent-%COMP%]{height:88vh!important}.btn-custom[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1.5rem;color:#1b5e20}.custom-row[_ngcontent-%COMP%]{background-color:#d2ffaa;padding:.5rem}.btn-icon[_ngcontent-%COMP%]{font-size:1.6rem}.adder-container[_ngcontent-%COMP%]{height:224px;overflow-y:auto;overflow-x:hidden;padding:6px}.adder-row[_ngcontent-%COMP%]{margin:0;padding:0}.adder-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:12px}.adder-container[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:#88ca5e}.adder-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#1b5e20}.adder-container[_ngcontent-%COMP%]::-webkit-scrollbar-button{background-color:#1b5e20}.form-control[_ngcontent-%COMP%], .form-select[_ngcontent-%COMP%]{min-width:0;box-sizing:border-box}textarea[_ngcontent-%COMP%]{border-radius:0;resize:none;max-height:200px}textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:12px}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:#88ca5e}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#1b5e20}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-button{background-color:#1b5e20}hr[_ngcontent-%COMP%]{border-top:1px solid #1b5e20}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}
+/*# sourceMappingURL=modify-recipe.component-26HS2XP6.css.map */`]});let t=i;return t})();function l0(t){return t?t.split(";").filter(e=>e.trim()!=="").map(e=>{let[o,r,a]=e.split(",");return!o||!r||!a?(console.error(`Invalid format: ${e}`),{name:"",quantity:"",unit:""}):{name:o.trim(),quantity:r.trim(),unit:a.trim()}}):[]}var c0=(()=>{let i=class i{transform(e){return e&&e.replace(/\n/g,"<br>")}};i.\u0275fac=function(o){return new(o||i)},i.\u0275pipe=mp({name:"newLinewToBr",type:i,pure:!0,standalone:!0});let t=i;return t})();var ai=Hf(Gf());var rb;try{rb=zf("worker_threads").Worker}catch{}var vn=Uint8Array,_n=Uint16Array,cs=Uint32Array,Lc=new vn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Oc=new vn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),cu=new vn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m0=function(t,i){for(var n=new _n(31),e=0;e<31;++e)n[e]=i+=1<<t[e-1];for(var o=new cs(n[30]),e=1;e<30;++e)for(var r=n[e];r<n[e+1];++r)o[r]=r-n[e]<<5|e;return[n,o]},f0=m0(Lc,2),h0=f0[0],du=f0[1];h0[28]=258,du[258]=28;var g0=m0(Oc,0),ob=g0[0],d0=g0[1],uu=new _n(32768);for(Kt=0;Kt<32768;++Kt)mo=(Kt&43690)>>>1|(Kt&21845)<<1,mo=(mo&52428)>>>2|(mo&13107)<<2,mo=(mo&61680)>>>4|(mo&3855)<<4,uu[Kt]=((mo&65280)>>>8|(mo&255)<<8)>>>1;var mo,Kt,$r=function(t,i,n){for(var e=t.length,o=0,r=new _n(i);o<e;++o)++r[t[o]-1];var a=new _n(i);for(o=0;o<i;++o)a[o]=a[o-1]+r[o-1]<<1;var d;if(n){d=new _n(1<<i);var p=15-i;for(o=0;o<e;++o)if(t[o])for(var _=o<<4|t[o],y=i-t[o],w=a[t[o]-1]++<<y,S=w|(1<<y)-1;w<=S;++w)d[uu[w]>>>p]=_}else for(d=new _n(e),o=0;o<e;++o)d[o]=uu[a[t[o]-1]++]>>>15-t[o];return d},Jo=new vn(288);for(Kt=0;Kt<144;++Kt)Jo[Kt]=8;var Kt;for(Kt=144;Kt<256;++Kt)Jo[Kt]=9;var Kt;for(Kt=256;Kt<280;++Kt)Jo[Kt]=7;var Kt;for(Kt=280;Kt<288;++Kt)Jo[Kt]=8;var Kt,ds=new vn(32);for(Kt=0;Kt<32;++Kt)ds[Kt]=5;var Kt,ab=$r(Jo,9,0),lb=$r(Jo,9,1),sb=$r(ds,5,0),cb=$r(ds,5,1),au=function(t){for(var i=t[0],n=1;n<t.length;++n)t[n]>i&&(i=t[n]);return i},hr=function(t,i,n){var e=i/8>>0;return(t[e]|t[e+1]<<8)>>>(i&7)&n},lu=function(t,i){var n=i/8>>0;return(t[n]|t[n+1]<<8|t[n+2]<<16)>>>(i&7)},mu=function(t){return(t/8>>0)+(t&7&&1)},v0=function(t,i,n){(i==null||i<0)&&(i=0),(n==null||n>t.length)&&(n=t.length);var e=new(t instanceof _n?_n:t instanceof cs?cs:vn)(n-i);return e.set(t.subarray(i,n)),e},db=function(t,i,n){var e=t.length,o=!i||n,r=!n||n.i;n||(n={}),i||(i=new vn(e*3));var a=function(le){var ge=i.length;if(le>ge){var ve=new vn(Math.max(ge*2,le));ve.set(i),i=ve}},d=n.f||0,p=n.p||0,_=n.b||0,y=n.l,w=n.d,S=n.m,v=n.n,M=e*8;do{if(!y){n.f=d=hr(t,p,1);var F=hr(t,p+1,3);if(p+=3,F)if(F==1)y=lb,w=cb,S=9,v=5;else if(F==2){var z=hr(t,p,31)+257,$=hr(t,p+10,15)+4,J=z+hr(t,p+5,31)+1;p+=14;for(var re=new vn(J),de=new vn(19),Y=0;Y<$;++Y)de[cu[Y]]=hr(t,p+Y*3,7);p+=$*3;var Ne=au(de),Ae=(1<<Ne)-1;if(!r&&p+J*(Ne+7)>M)break;for(var B=$r(de,Ne,1),Y=0;Y<J;){var R=B[hr(t,p,Ae)];p+=R&15;var k=R>>>4;if(k<16)re[Y++]=k;else{var Z=0,K=0;for(k==16?(K=3+hr(t,p,3),p+=2,Z=re[Y-1]):k==17?(K=3+hr(t,p,7),p+=3):k==18&&(K=11+hr(t,p,127),p+=7);K--;)re[Y++]=Z}}var we=re.subarray(0,z),be=re.subarray(z);S=au(we),v=au(be),y=$r(we,S,1),w=$r(be,v,1)}else throw"invalid block type";else{var k=mu(p)+4,I=t[k-4]|t[k-3]<<8,L=k+I;if(L>e){if(r)throw"unexpected EOF";break}o&&a(_+I),i.set(t.subarray(k,L),_),n.b=_+=I,n.p=p=L*8;continue}if(p>M)throw"unexpected EOF"}o&&a(_+131072);for(var Ee=(1<<S)-1,he=(1<<v)-1,Ie=S+v+18;r||p+Ie<M;){var Z=y[lu(t,p)&Ee],Fe=Z>>>4;if(p+=Z&15,p>M)throw"unexpected EOF";if(!Z)throw"invalid length/literal";if(Fe<256)i[_++]=Fe;else if(Fe==256){y=null;break}else{var Ge=Fe-254;if(Fe>264){var Y=Fe-257,T=Lc[Y];Ge=hr(t,p,(1<<T)-1)+h0[Y],p+=T}var U=w[lu(t,p)&he],G=U>>>4;if(!U)throw"invalid distance";p+=U&15;var be=ob[G];if(G>3){var T=Oc[G];be+=lu(t,p)&(1<<T)-1,p+=T}if(p>M)throw"unexpected EOF";o&&a(_+131072);for(var ie=_+Ge;_<ie;_+=4)i[_]=i[_-be],i[_+1]=i[_+1-be],i[_+2]=i[_+2-be],i[_+3]=i[_+3-be];_=ie}}n.l=y,n.p=p,n.b=_,y&&(d=1,n.m=S,n.d=w,n.n=v)}while(!d);return _==i.length?i:v0(i,0,_)},fo=function(t,i,n){n<<=i&7;var e=i/8>>0;t[e]|=n,t[e+1]|=n>>>8},ls=function(t,i,n){n<<=i&7;var e=i/8>>0;t[e]|=n,t[e+1]|=n>>>8,t[e+2]|=n>>>16},su=function(t,i){for(var n=[],e=0;e<t.length;++e)t[e]&&n.push({s:e,f:t[e]});var o=n.length,r=n.slice();if(!o)return[new vn(0),0];if(o==1){var a=new vn(n[0].s+1);return a[n[0].s]=1,[a,1]}n.sort(function(J,re){return J.f-re.f}),n.push({s:-1,f:25001});var d=n[0],p=n[1],_=0,y=1,w=2;for(n[0]={s:-1,f:d.f+p.f,l:d,r:p};y!=o-1;)d=n[n[_].f<n[w].f?_++:w++],p=n[_!=y&&n[_].f<n[w].f?_++:w++],n[y++]={s:-1,f:d.f+p.f,l:d,r:p};for(var S=r[0].s,e=1;e<o;++e)r[e].s>S&&(S=r[e].s);var v=new _n(S+1),M=pu(n[y-1],v,0);if(M>i){var e=0,F=0,k=M-i,I=1<<k;for(r.sort(function(re,de){return v[de.s]-v[re.s]||re.f-de.f});e<o;++e){var L=r[e].s;if(v[L]>i)F+=I-(1<<M-v[L]),v[L]=i;else break}for(F>>>=k;F>0;){var z=r[e].s;v[z]<i?F-=1<<i-v[z]++-1:++e}for(;e>=0&&F;--e){var $=r[e].s;v[$]==i&&(--v[$],++F)}M=i}return[new vn(v),M]},pu=function(t,i,n){return t.s==-1?Math.max(pu(t.l,i,n+1),pu(t.r,i,n+1)):i[t.s]=n},u0=function(t){for(var i=t.length;i&&!t[--i];);for(var n=new _n(++i),e=0,o=t[0],r=1,a=function(p){n[e++]=p},d=1;d<=i;++d)if(t[d]==o&&d!=i)++r;else{if(!o&&r>2){for(;r>138;r-=138)a(32754);r>2&&(a(r>10?r-11<<5|28690:r-3<<5|12305),r=0)}else if(r>3){for(a(o),--r;r>6;r-=6)a(8304);r>2&&(a(r-3<<5|8208),r=0)}for(;r--;)a(o);r=1,o=t[d]}return[n.subarray(0,e),i]},ss=function(t,i){for(var n=0,e=0;e<i.length;++e)n+=t[e]*i[e];return n},Pc=function(t,i,n){var e=n.length,o=mu(i+2);t[o]=e&255,t[o+1]=e>>>8,t[o+2]=t[o]^255,t[o+3]=t[o+1]^255;for(var r=0;r<e;++r)t[o+r+4]=n[r];return(o+4+e)*8},p0=function(t,i,n,e,o,r,a,d,p,_,y){fo(i,y++,n),++o[256];for(var w=su(o,15),S=w[0],v=w[1],M=su(r,15),F=M[0],k=M[1],I=u0(S),L=I[0],z=I[1],$=u0(F),J=$[0],re=$[1],de=new _n(19),Y=0;Y<L.length;++Y)de[L[Y]&31]++;for(var Y=0;Y<J.length;++Y)de[J[Y]&31]++;for(var Ne=su(de,7),Ae=Ne[0],B=Ne[1],R=19;R>4&&!Ae[cu[R-1]];--R);var Z=_+5<<3,K=ss(o,Jo)+ss(r,ds)+a,we=ss(o,S)+ss(r,F)+a+14+3*R+ss(de,Ae)+(2*de[16]+3*de[17]+7*de[18]);if(Z<=K&&Z<=we)return Pc(i,y,t.subarray(p,p+_));var be,Ee,he,Ie;if(fo(i,y,1+(we<K)),y+=2,we<K){be=$r(S,v,0),Ee=S,he=$r(F,k,0),Ie=F;var Fe=$r(Ae,B,0);fo(i,y,z-257),fo(i,y+5,re-1),fo(i,y+10,R-4),y+=14;for(var Y=0;Y<R;++Y)fo(i,y+3*Y,Ae[cu[Y]]);y+=3*R;for(var Ge=[L,J],T=0;T<2;++T)for(var U=Ge[T],Y=0;Y<U.length;++Y){var G=U[Y]&31;fo(i,y,Fe[G]),y+=Ae[G],G>15&&(fo(i,y,U[Y]>>>5&127),y+=U[Y]>>>12)}}else be=ab,Ee=Jo,he=sb,Ie=ds;for(var Y=0;Y<d;++Y)if(e[Y]>255){var G=e[Y]>>>18&31;ls(i,y,be[G+257]),y+=Ee[G+257],G>7&&(fo(i,y,e[Y]>>>23&31),y+=Lc[G]);var ie=e[Y]&31;ls(i,y,he[ie]),y+=Ie[ie],ie>3&&(ls(i,y,e[Y]>>>5&8191),y+=Oc[ie])}else ls(i,y,be[e[Y]]),y+=Ee[e[Y]];return ls(i,y,be[256]),y+Ee[256]},ub=new cs([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),pb=new vn(0),mb=function(t,i,n,e,o,r){var a=t.length,d=new vn(e+a+5*(1+Math.floor(a/7e3))+o),p=d.subarray(e,d.length-o),_=0;if(!i||a<8)for(var y=0;y<=a;y+=65535){var w=y+65535;w<a?_=Pc(p,_,t.subarray(y,w)):(p[y]=r,_=Pc(p,_,t.subarray(y,a)))}else{for(var S=ub[i-1],v=S>>>13,M=S&8191,F=(1<<n)-1,k=new _n(32768),I=new _n(F+1),L=Math.ceil(n/3),z=2*L,$=function(mt){return(t[mt]^t[mt+1]<<L^t[mt+2]<<z)&F},J=new cs(25e3),re=new _n(288),de=new _n(32),Y=0,Ne=0,y=0,Ae=0,B=0,R=0;y<a;++y){var Z=$(y),K=y&32767,we=I[Z];if(k[K]=we,I[Z]=K,B<=y){var be=a-y;if((Y>7e3||Ae>24576)&&be>423){_=p0(t,p,0,J,re,de,Ne,Ae,R,y-R,_),Ae=Y=Ne=0,R=y;for(var Ee=0;Ee<286;++Ee)re[Ee]=0;for(var Ee=0;Ee<30;++Ee)de[Ee]=0}var he=2,Ie=0,Fe=M,Ge=K-we&32767;if(be>2&&Z==$(y-Ge))for(var T=Math.min(v,be)-1,U=Math.min(32767,y),G=Math.min(258,be);Ge<=U&&--Fe&&K!=we;){if(t[y+he]==t[y+he-Ge]){for(var ie=0;ie<G&&t[y+ie]==t[y+ie-Ge];++ie);if(ie>he){if(he=ie,Ie=Ge,ie>T)break;for(var le=Math.min(Ge,ie-2),ge=0,Ee=0;Ee<le;++Ee){var ve=y-Ge+Ee+32768&32767,ye=k[ve],Be=ve-ye+32768&32767;Be>ge&&(ge=Be,we=ve)}}}K=we,we=k[K],Ge+=K-we+32768&32767}if(Ie){J[Ae++]=268435456|du[he]<<18|d0[Ie];var qe=du[he]&31,Ke=d0[Ie]&31;Ne+=Lc[qe]+Oc[Ke],++re[257+qe],++de[Ke],B=y+he,++Y}else J[Ae++]=t[y],++re[t[y]]}}_=p0(t,p,r,J,re,de,Ne,Ae,R,y-R,_),r||(_=Pc(p,_,pb))}return v0(d,0,e+mu(_)+o)};var fb=function(){var t=1,i=0;return{p:function(n){for(var e=t,o=i,r=n.length,a=0;a!=r;){for(var d=Math.min(a+5552,r);a<d;++a)e+=n[a],o+=e;e%=65521,o%=65521}t=e,i=o},d:function(){return(t>>>8<<16|(i&255)<<8|i>>>8)+((t&255)<<23)*2}}},hb=function(t,i,n,e,o){return mb(t,i.level==null?6:i.level,i.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):12+i.mem,n,e,!o)};var gb=function(t,i,n){for(;n;++i)t[i]=n,n>>>=8};var vb=function(t,i){var n=i.level,e=n==0?0:n<6?1:n==9?3:2;t[0]=120,t[1]=e<<6|(e?32-2*e:1)},_b=function(t){if((t[0]&15)!=8||t[0]>>>4>7||(t[0]<<8|t[1])%31)throw"invalid zlib data";if(t[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function kc(t,i){i===void 0&&(i={});var n=fb();n.p(t);var e=hb(t,i,2,4);return vb(e,i),gb(e,e.length-4,n.d()),e}function _0(t,i){return db((_b(t),t.subarray(2,-4)),i)}var ft=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function fu(){ft.console&&typeof ft.console.log=="function"&&ft.console.log.apply(ft.console,arguments)}var ci={log:fu,warn:function(t){ft.console&&(typeof ft.console.warn=="function"?ft.console.warn.apply(ft.console,arguments):fu.call(null,arguments))},error:function(t){ft.console&&(typeof ft.console.error=="function"?ft.console.error.apply(ft.console,arguments):fu(t))}};function hu(t,i,n){var e=new XMLHttpRequest;e.open("GET",t),e.responseType="blob",e.onload=function(){Ca(e.response,i,n)},e.onerror=function(){ci.error("could not download file")},e.send()}function b0(t){var i=new XMLHttpRequest;i.open("HEAD",t,!1);try{i.send()}catch{}return i.status>=200&&i.status<=299}function Dc(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var us,yu,Ca=ft.saveAs||((typeof window>"u"?"undefined":(0,ai.default)(window))!=="object"||window!==ft?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,i,n){var e=ft.URL||ft.webkitURL,o=document.createElement("a");i=i||t.name||"download",o.download=i,o.rel="noopener",typeof t=="string"?(o.href=t,o.origin!==location.origin?b0(o.href)?hu(t,i,n):Dc(o,o.target="_blank"):Dc(o)):(o.href=e.createObjectURL(t),setTimeout(function(){e.revokeObjectURL(o.href)},4e4),setTimeout(function(){Dc(o)},0))}:"msSaveOrOpenBlob"in navigator?function(t,i,n){if(i=i||t.name||"download",typeof t=="string")if(b0(t))hu(t,i,n);else{var e=document.createElement("a");e.href=t,e.target="_blank",setTimeout(function(){Dc(e)})}else navigator.msSaveOrOpenBlob(function(o,r){return r===void 0?r={autoBom:!1}:(0,ai.default)(r)!=="object"&&(ci.warn("Deprecated: Expected third argument to be a object"),r={autoBom:!r}),r.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(o.type)?new Blob(["\uFEFF",o],{type:o.type}):o}(t,n),i)}:function(t,i,n,e){if((e=e||open("","_blank"))&&(e.document.title=e.document.body.innerText="downloading..."),typeof t=="string")return hu(t,i,n);var o=t.type==="application/octet-stream",r=/constructor/i.test(ft.HTMLElement)||ft.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||o&&r)&&(typeof FileReader>"u"?"undefined":(0,ai.default)(FileReader))==="object"){var d=new FileReader;d.onloadend=function(){var y=d.result;y=a?y:y.replace(/^data:[^;]*;/,"data:attachment/file;"),e?e.location.href=y:location=y,e=null},d.readAsDataURL(t)}else{var p=ft.URL||ft.webkitURL,_=p.createObjectURL(t);e?e.location=_:location.href=_,e=null,setTimeout(function(){p.revokeObjectURL(_)},4e4)}});function D0(t){var i;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(d){return[parseInt(d[1]),parseInt(d[2]),parseInt(d[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(d){return[parseInt(d[1],16),parseInt(d[2],16),parseInt(d[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(d){return[parseInt(d[1]+d[1],16),parseInt(d[2]+d[2],16),parseInt(d[3]+d[3],16)]}}],e=0;e<n.length;e++){var o=n[e].re,r=n[e].process,a=o.exec(t);a&&(i=r(a),this.r=i[0],this.g=i[1],this.b=i[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var d=this.r.toString(16),p=this.g.toString(16),_=this.b.toString(16);return d.length==1&&(d="0"+d),p.length==1&&(p="0"+p),_.length==1&&(_="0"+_),"#"+d+p+_}}function gu(t,i){var n=t[0],e=t[1],o=t[2],r=t[3];n=un(n,e,o,r,i[0],7,-680876936),r=un(r,n,e,o,i[1],12,-389564586),o=un(o,r,n,e,i[2],17,606105819),e=un(e,o,r,n,i[3],22,-1044525330),n=un(n,e,o,r,i[4],7,-176418897),r=un(r,n,e,o,i[5],12,1200080426),o=un(o,r,n,e,i[6],17,-1473231341),e=un(e,o,r,n,i[7],22,-45705983),n=un(n,e,o,r,i[8],7,1770035416),r=un(r,n,e,o,i[9],12,-1958414417),o=un(o,r,n,e,i[10],17,-42063),e=un(e,o,r,n,i[11],22,-1990404162),n=un(n,e,o,r,i[12],7,1804603682),r=un(r,n,e,o,i[13],12,-40341101),o=un(o,r,n,e,i[14],17,-1502002290),n=pn(n,e=un(e,o,r,n,i[15],22,1236535329),o,r,i[1],5,-165796510),r=pn(r,n,e,o,i[6],9,-1069501632),o=pn(o,r,n,e,i[11],14,643717713),e=pn(e,o,r,n,i[0],20,-373897302),n=pn(n,e,o,r,i[5],5,-701558691),r=pn(r,n,e,o,i[10],9,38016083),o=pn(o,r,n,e,i[15],14,-660478335),e=pn(e,o,r,n,i[4],20,-405537848),n=pn(n,e,o,r,i[9],5,568446438),r=pn(r,n,e,o,i[14],9,-1019803690),o=pn(o,r,n,e,i[3],14,-187363961),e=pn(e,o,r,n,i[8],20,1163531501),n=pn(n,e,o,r,i[13],5,-1444681467),r=pn(r,n,e,o,i[2],9,-51403784),o=pn(o,r,n,e,i[7],14,1735328473),n=mn(n,e=pn(e,o,r,n,i[12],20,-1926607734),o,r,i[5],4,-378558),r=mn(r,n,e,o,i[8],11,-2022574463),o=mn(o,r,n,e,i[11],16,1839030562),e=mn(e,o,r,n,i[14],23,-35309556),n=mn(n,e,o,r,i[1],4,-1530992060),r=mn(r,n,e,o,i[4],11,1272893353),o=mn(o,r,n,e,i[7],16,-155497632),e=mn(e,o,r,n,i[10],23,-1094730640),n=mn(n,e,o,r,i[13],4,681279174),r=mn(r,n,e,o,i[0],11,-358537222),o=mn(o,r,n,e,i[3],16,-722521979),e=mn(e,o,r,n,i[6],23,76029189),n=mn(n,e,o,r,i[9],4,-640364487),r=mn(r,n,e,o,i[12],11,-421815835),o=mn(o,r,n,e,i[15],16,530742520),n=fn(n,e=mn(e,o,r,n,i[2],23,-995338651),o,r,i[0],6,-198630844),r=fn(r,n,e,o,i[7],10,1126891415),o=fn(o,r,n,e,i[14],15,-1416354905),e=fn(e,o,r,n,i[5],21,-57434055),n=fn(n,e,o,r,i[12],6,1700485571),r=fn(r,n,e,o,i[3],10,-1894986606),o=fn(o,r,n,e,i[10],15,-1051523),e=fn(e,o,r,n,i[1],21,-2054922799),n=fn(n,e,o,r,i[8],6,1873313359),r=fn(r,n,e,o,i[15],10,-30611744),o=fn(o,r,n,e,i[6],15,-1560198380),e=fn(e,o,r,n,i[13],21,1309151649),n=fn(n,e,o,r,i[4],6,-145523070),r=fn(r,n,e,o,i[11],10,-1120210379),o=fn(o,r,n,e,i[2],15,718787259),e=fn(e,o,r,n,i[9],21,-343485551),t[0]=Xo(n,t[0]),t[1]=Xo(e,t[1]),t[2]=Xo(o,t[2]),t[3]=Xo(r,t[3])}function Wc(t,i,n,e,o,r){return i=Xo(Xo(i,t),Xo(e,r)),Xo(i<<o|i>>>32-o,n)}function un(t,i,n,e,o,r,a){return Wc(i&n|~i&e,t,i,o,r,a)}function pn(t,i,n,e,o,r,a){return Wc(i&e|n&~e,t,i,o,r,a)}function mn(t,i,n,e,o,r,a){return Wc(i^n^e,t,i,o,r,a)}function fn(t,i,n,e,o,r,a){return Wc(n^(i|~e),t,i,o,r,a)}function R0(t){var i,n=t.length,e=[1732584193,-271733879,-1732584194,271733878];for(i=64;i<=t.length;i+=64)gu(e,bb(t.substring(i-64,i)));t=t.substring(i-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(i=0;i<t.length;i++)o[i>>2]|=t.charCodeAt(i)<<(i%4<<3);if(o[i>>2]|=128<<(i%4<<3),i>55)for(gu(e,o),i=0;i<16;i++)o[i]=0;return o[14]=8*n,gu(e,o),e}function bb(t){var i,n=[];for(i=0;i<64;i+=4)n[i>>2]=t.charCodeAt(i)+(t.charCodeAt(i+1)<<8)+(t.charCodeAt(i+2)<<16)+(t.charCodeAt(i+3)<<24);return n}us=ft.atob.bind(ft),yu=ft.btoa.bind(ft);var y0="0123456789abcdef".split("");function yb(t){for(var i="",n=0;n<4;n++)i+=y0[t>>8*n+4&15]+y0[t>>8*n&15];return i}function Cb(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function Cu(t){return R0(t).map(Cb).join("")}var wb=function(t){for(var i=0;i<t.length;i++)t[i]=yb(t[i]);return t.join("")}(R0("hello"))!="5d41402abc4b2a76b9719d911017c592";function Xo(t,i){if(wb){var n=(65535&t)+(65535&i);return(t>>16)+(i>>16)+(n>>16)<<16|65535&n}return t+i&4294967295}function wu(t,i){var n,e,o,r;if(t!==n){for(var a=(o=t,r=1+(256/t.length>>0),new Array(r+1).join(o)),d=[],p=0;p<256;p++)d[p]=p;var _=0;for(p=0;p<256;p++){var y=d[p];_=(_+y+a.charCodeAt(p))%256,d[p]=d[_],d[_]=y}n=t,e=d}else d=e;var w=i.length,S=0,v=0,M="";for(p=0;p<w;p++)v=(v+(y=d[S=(S+1)%256]))%256,d[S]=d[v],d[v]=y,a=d[(d[S]+d[v])%256],M+=String.fromCharCode(i.charCodeAt(p)^a);return M}var C0={print:4,modify:8,copy:16,"annot-forms":32};function fl(t,i,n,e){this.v=1,this.r=2;var o=192;t.forEach(function(d){if(C0.perm!==void 0)throw new Error("Invalid permission: "+d);o+=C0[d]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var r=(i+this.padding).substr(0,32),a=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(r,a),this.P=-(1+(255^o)),this.encryptionKey=Cu(r+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(e)).substr(0,5),this.U=wu(this.encryptionKey,this.padding)}function hl(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var i="",n=t.length,e=0;e<n;e++){var o=t.charCodeAt(e);o<33||o===35||o===37||o===40||o===41||o===47||o===60||o===62||o===91||o===93||o===123||o===125||o>126?i+="#"+("0"+o.toString(16)).slice(-2):i+=t[e]}return i}function w0(t){if((0,ai.default)(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var i={};this.subscribe=function(n,e,o){if(o=o||!1,typeof n!="string"||typeof e!="function"||typeof o!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");i.hasOwnProperty(n)||(i[n]={});var r=Math.random().toString(35);return i[n][r]=[e,!!o],r},this.unsubscribe=function(n){for(var e in i)if(i[e][n])return delete i[e][n],Object.keys(i[e]).length===0&&delete i[e],!0;return!1},this.publish=function(n){if(i.hasOwnProperty(n)){var e=Array.prototype.slice.call(arguments,1),o=[];for(var r in i[n]){var a=i[n][r];try{a[0].apply(t,e)}catch(d){ft.console&&ci.error("jsPDF PubSub Error",d.message,d)}a[1]&&o.push(r)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return i}}function Hc(t){if(!(this instanceof Hc))return new Hc(t);var i="opacity,stroke-opacity".split(",");for(var n in t)t.hasOwnProperty(n)&&i.indexOf(n)>=0&&(this[n]=t[n]);this.id="",this.objectNumber=-1}function V0(t,i){this.gState=t,this.matrix=i,this.id="",this.objectNumber=-1}function wa(t,i,n,e,o){if(!(this instanceof wa))return new wa(t,i,n,e,o);this.type=t==="axial"?2:3,this.coords=i,this.colors=n,V0.call(this,e,o)}function gl(t,i,n,e,o){if(!(this instanceof gl))return new gl(t,i,n,e,o);this.boundingBox=t,this.xStep=i,this.yStep=n,this.stream="",this.cloneIndex=0,V0.call(this,e,o)}function dt(t){var i,n=typeof arguments[0]=="string"?arguments[0]:"p",e=arguments[1],o=arguments[2],r=arguments[3],a=[],d=1,p=16,_="S",y=null;(0,ai.default)(t=t||{})==="object"&&(n=t.orientation,e=t.unit||e,o=t.format||o,r=t.compress||t.compressPdf||r,(y=t.encryption||null)!==null&&(y.userPassword=y.userPassword||"",y.ownerPassword=y.ownerPassword||"",y.userPermissions=y.userPermissions||[]),d=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(i=t.precision),t.floatPrecision!==void 0&&(p=t.floatPrecision),_=t.defaultPathOperation||"S"),a=t.filters||(r===!0?["FlateEncode"]:a),e=e||"mm",n=(""+(n||"P")).toLowerCase();var w=t.putOnlyUsedFonts||!1,S={},v={internal:{},__private__:{}};v.__private__.PubSub=w0;var M="1.3",F=v.__private__.getPdfVersion=function(){return M};v.__private__.setPdfVersion=function(m){M=m};var k={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};v.__private__.getPageFormats=function(){return k};var I=v.__private__.getPageFormat=function(m){return k[m]};o=o||"a4";var L={COMPAT:"compat",ADVANCED:"advanced"},z=L.COMPAT;function $(){this.saveGraphicsState(),W(new ut($e,0,0,-$e,0,yo()*$e).toString()+" cm"),this.setFontSize(this.getFontSize()/$e),_="n",z=L.ADVANCED}function J(){this.restoreGraphicsState(),_="S",z=L.COMPAT}var re=v.__private__.combineFontStyleAndFontWeight=function(m,E){if(m=="bold"&&E=="normal"||m=="bold"&&E==400||m=="normal"&&E=="italic"||m=="bold"&&E=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return E&&(m=E==400||E==="normal"?m==="italic"?"italic":"normal":E!=700&&E!=="bold"||m!=="normal"?(E==700?"bold":E)+""+m:"bold"),m};v.advancedAPI=function(m){var E=z===L.COMPAT;return E&&$.call(this),typeof m!="function"||(m(this),E&&J.call(this)),this},v.compatAPI=function(m){var E=z===L.ADVANCED;return E&&J.call(this),typeof m!="function"||(m(this),E&&$.call(this)),this},v.isAdvancedAPI=function(){return z===L.ADVANCED};var de,Y=function(m){if(z!==L.ADVANCED)throw new Error(m+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Ne=v.roundToPrecision=v.__private__.roundToPrecision=function(m,E){var j=i||E;if(isNaN(m)||isNaN(j))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return m.toFixed(j).replace(/0+$/,"")};de=v.hpf=v.__private__.hpf=typeof p=="number"?function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return Ne(m,p)}:p==="smart"?function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return Ne(m,m>-1&&m<1?16:5)}:function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.hpf");return Ne(m,16)};var Ae=v.f2=v.__private__.f2=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.f2");return Ne(m,2)},B=v.__private__.f3=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.f3");return Ne(m,3)},R=v.scale=v.__private__.scale=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.scale");return z===L.COMPAT?m*$e:z===L.ADVANCED?m:void 0},Z=function(m){return z===L.COMPAT?yo()-m:z===L.ADVANCED?m:void 0},K=function(m){return R(Z(m))};v.__private__.setPrecision=v.setPrecision=function(m){typeof parseInt(m,10)=="number"&&(i=parseInt(m,10))};var we,be="00000000000000000000000000000000",Ee=v.__private__.getFileId=function(){return be},he=v.__private__.setFileId=function(m){return be=m!==void 0&&/^[a-fA-F0-9]{32}$/.test(m)?m.toUpperCase():be.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),y!==null&&(an=new fl(y.userPermissions,y.userPassword,y.ownerPassword,be)),be};v.setFileId=function(m){return he(m),this},v.getFileId=function(){return Ee()};var Ie=v.__private__.convertDateToPDFDate=function(m){var E=m.getTimezoneOffset(),j=E<0?"+":"-",Q=Math.floor(Math.abs(E/60)),ce=Math.abs(E%60),Se=[j,G(Q),"'",G(ce),"'"].join("");return["D:",m.getFullYear(),G(m.getMonth()+1),G(m.getDate()),G(m.getHours()),G(m.getMinutes()),G(m.getSeconds()),Se].join("")},Fe=v.__private__.convertPDFDateToDate=function(m){var E=parseInt(m.substr(2,4),10),j=parseInt(m.substr(6,2),10)-1,Q=parseInt(m.substr(8,2),10),ce=parseInt(m.substr(10,2),10),Se=parseInt(m.substr(12,2),10),Oe=parseInt(m.substr(14,2),10);return new Date(E,j,Q,ce,Se,Oe,0)},Ge=v.__private__.setCreationDate=function(m){var E;if(m===void 0&&(m=new Date),m instanceof Date)E=Ie(m);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(m))throw new Error("Invalid argument passed to jsPDF.setCreationDate");E=m}return we=E},T=v.__private__.getCreationDate=function(m){var E=we;return m==="jsDate"&&(E=Fe(we)),E};v.setCreationDate=function(m){return Ge(m),this},v.getCreationDate=function(m){return T(m)};var U,G=v.__private__.padd2=function(m){return("0"+parseInt(m)).slice(-2)},ie=v.__private__.padd2Hex=function(m){return("00"+(m=m.toString())).substr(m.length)},le=0,ge=[],ve=[],ye=0,Be=[],qe=[],Ke=!1,Je=ve,mt=function(){le=0,ye=0,ve=[],ge=[],Be=[],Zr=Ii(),ir=Ii()};v.__private__.setCustomOutputDestination=function(m){Ke=!0,Je=m};var xe=function(m){Ke||(Je=m)};v.__private__.resetCustomOutputDestination=function(){Ke=!1,Je=ve};var W=v.__private__.out=function(m){return m=m.toString(),ye+=m.length+1,Je.push(m),Je},yt=v.__private__.write=function(m){return W(arguments.length===1?m.toString():Array.prototype.join.call(arguments," "))},it=v.__private__.getArrayBuffer=function(m){for(var E=m.length,j=new ArrayBuffer(E),Q=new Uint8Array(j);E--;)Q[E]=m.charCodeAt(E);return j},De=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];v.__private__.getStandardFonts=function(){return De};var je=t.fontSize||16;v.__private__.setFontSize=v.setFontSize=function(m){return je=z===L.ADVANCED?m/$e:m,this};var We,He=v.__private__.getFontSize=v.getFontSize=function(){return z===L.COMPAT?je:je*$e},rt=t.R2L||!1;v.__private__.setR2L=v.setR2L=function(m){return rt=m,this},v.__private__.getR2L=v.getR2L=function(){return rt};var vt,xt=v.__private__.setZoomMode=function(m){var E=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(m))We=m;else if(isNaN(m)){if(E.indexOf(m)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+m+'" is not recognized.');We=m}else We=parseInt(m,10)};v.__private__.getZoomMode=function(){return We};var It,qt=v.__private__.setPageMode=function(m){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(m)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+m+'" is not recognized.');vt=m};v.__private__.getPageMode=function(){return vt};var ni=v.__private__.setLayoutMode=function(m){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(m)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+m+'" is not recognized.');It=m};v.__private__.getLayoutMode=function(){return It},v.__private__.setDisplayMode=v.setDisplayMode=function(m,E,j){return xt(m),ni(E),qt(j),this};var ht={title:"",subject:"",author:"",keywords:"",creator:""};v.__private__.getDocumentProperty=function(m){if(Object.keys(ht).indexOf(m)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ht[m]},v.__private__.getDocumentProperties=function(){return ht},v.__private__.setDocumentProperties=v.setProperties=v.setDocumentProperties=function(m){for(var E in ht)ht.hasOwnProperty(E)&&m[E]&&(ht[E]=m[E]);return this},v.__private__.setDocumentProperty=function(m,E){if(Object.keys(ht).indexOf(m)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ht[m]=E};var Mt,$e,on,zt,Xn,li={},hi={},br=[],Yt={},ia={},vi={},er={},Jr=null,_i=0,_t=[],Qt=new w0(v),na=t.hotfixes||[],Qi={},yr={},Cr=[],ut=function m(E,j,Q,ce,Se,Oe){if(!(this instanceof m))return new m(E,j,Q,ce,Se,Oe);isNaN(E)&&(E=1),isNaN(j)&&(j=0),isNaN(Q)&&(Q=0),isNaN(ce)&&(ce=1),isNaN(Se)&&(Se=0),isNaN(Oe)&&(Oe=0),this._matrix=[E,j,Q,ce,Se,Oe]};Object.defineProperty(ut.prototype,"sx",{get:function(){return this._matrix[0]},set:function(m){this._matrix[0]=m}}),Object.defineProperty(ut.prototype,"shy",{get:function(){return this._matrix[1]},set:function(m){this._matrix[1]=m}}),Object.defineProperty(ut.prototype,"shx",{get:function(){return this._matrix[2]},set:function(m){this._matrix[2]=m}}),Object.defineProperty(ut.prototype,"sy",{get:function(){return this._matrix[3]},set:function(m){this._matrix[3]=m}}),Object.defineProperty(ut.prototype,"tx",{get:function(){return this._matrix[4]},set:function(m){this._matrix[4]=m}}),Object.defineProperty(ut.prototype,"ty",{get:function(){return this._matrix[5]},set:function(m){this._matrix[5]=m}}),Object.defineProperty(ut.prototype,"a",{get:function(){return this._matrix[0]},set:function(m){this._matrix[0]=m}}),Object.defineProperty(ut.prototype,"b",{get:function(){return this._matrix[1]},set:function(m){this._matrix[1]=m}}),Object.defineProperty(ut.prototype,"c",{get:function(){return this._matrix[2]},set:function(m){this._matrix[2]=m}}),Object.defineProperty(ut.prototype,"d",{get:function(){return this._matrix[3]},set:function(m){this._matrix[3]=m}}),Object.defineProperty(ut.prototype,"e",{get:function(){return this._matrix[4]},set:function(m){this._matrix[4]=m}}),Object.defineProperty(ut.prototype,"f",{get:function(){return this._matrix[5]},set:function(m){this._matrix[5]=m}}),Object.defineProperty(ut.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(ut.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(ut.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(ut.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),ut.prototype.join=function(m){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(de).join(m)},ut.prototype.multiply=function(m){var E=m.sx*this.sx+m.shy*this.shx,j=m.sx*this.shy+m.shy*this.sy,Q=m.shx*this.sx+m.sy*this.shx,ce=m.shx*this.shy+m.sy*this.sy,Se=m.tx*this.sx+m.ty*this.shx+this.tx,Oe=m.tx*this.shy+m.ty*this.sy+this.ty;return new ut(E,j,Q,ce,Se,Oe)},ut.prototype.decompose=function(){var m=this.sx,E=this.shy,j=this.shx,Q=this.sy,ce=this.tx,Se=this.ty,Oe=Math.sqrt(m*m+E*E),Ye=(m/=Oe)*j+(E/=Oe)*Q;j-=m*Ye,Q-=E*Ye;var at=Math.sqrt(j*j+Q*Q);return Ye/=at,m*(Q/=at)<E*(j/=at)&&(m=-m,E=-E,Ye=-Ye,Oe=-Oe),{scale:new ut(Oe,0,0,at,0,0),translate:new ut(1,0,0,1,ce,Se),rotate:new ut(m,E,-E,m,0,0),skew:new ut(1,0,Ye,1,0,0)}},ut.prototype.toString=function(m){return this.join(" ")},ut.prototype.inversed=function(){var m=this.sx,E=this.shy,j=this.shx,Q=this.sy,ce=this.tx,Se=this.ty,Oe=1/(m*Q-E*j),Ye=Q*Oe,at=-E*Oe,Ct=-j*Oe,Et=m*Oe;return new ut(Ye,at,Ct,Et,-Ye*ce-Ct*Se,-at*ce-Et*Se)},ut.prototype.applyToPoint=function(m){var E=m.x*this.sx+m.y*this.shx+this.tx,j=m.x*this.shy+m.y*this.sy+this.ty;return new Va(E,j)},ut.prototype.applyToRectangle=function(m){var E=this.applyToPoint(m),j=this.applyToPoint(new Va(m.x+m.w,m.y+m.h));return new Tl(E.x,E.y,j.x-E.x,j.y-E.y)},ut.prototype.clone=function(){var m=this.sx,E=this.shy,j=this.shx,Q=this.sy,ce=this.tx,Se=this.ty;return new ut(m,E,j,Q,ce,Se)},v.Matrix=ut;var tr=v.matrixMult=function(m,E){return E.multiply(m)},wr=new ut(1,0,0,1,0,0);v.unitMatrix=v.identityMatrix=wr;var bn=function(m,E){if(!ia[m]){var j=(E instanceof wa?"Sh":"P")+(Object.keys(Yt).length+1).toString(10);E.id=j,ia[m]=j,Yt[j]=E,Qt.publish("addPattern",E)}};v.ShadingPattern=wa,v.TilingPattern=gl,v.addShadingPattern=function(m,E){return Y("addShadingPattern()"),bn(m,E),this},v.beginTilingPattern=function(m){Y("beginTilingPattern()"),Ns(m.boundingBox[0],m.boundingBox[1],m.boundingBox[2]-m.boundingBox[0],m.boundingBox[3]-m.boundingBox[1],m.matrix)},v.endTilingPattern=function(m,E){Y("endTilingPattern()"),E.stream=qe[U].join(`
+`),bn(m,E),Qt.publish("endTilingPattern",E),Cr.pop().restore()};var Di=v.__private__.newObject=function(){var m=Ii();return Nn(m,!0),m},Ii=v.__private__.newObjectDeferred=function(){return le++,ge[le]=function(){return ye},le},Nn=function(m,E){return E=typeof E=="boolean"&&E,ge[m]=ye,E&&W(m+" 0 obj"),m},Ea=v.__private__.newAdditionalObject=function(){var m={objId:Ii(),content:""};return Be.push(m),m},Zr=Ii(),ir=Ii(),nr=v.__private__.decodeColorString=function(m){var E=m.split(" ");if(E.length!==2||E[1]!=="g"&&E[1]!=="G")E.length===5&&(E[4]==="k"||E[4]==="K")&&(E=[(1-E[0])*(1-E[3]),(1-E[1])*(1-E[3]),(1-E[2])*(1-E[3]),"r"]);else{var j=parseFloat(E[0]);E=[j,j,j,"r"]}for(var Q="#",ce=0;ce<3;ce++)Q+=("0"+Math.floor(255*parseFloat(E[ce])).toString(16)).slice(-2);return Q},rr=v.__private__.encodeColorString=function(m){var E;typeof m=="string"&&(m={ch1:m});var j=m.ch1,Q=m.ch2,ce=m.ch3,Se=m.ch4,Oe=m.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof j=="string"&&j.charAt(0)!=="#"){var Ye=new D0(j);if(Ye.ok)j=Ye.toHex();else if(!/^\d*\.?\d*$/.test(j))throw new Error('Invalid color "'+j+'" passed to jsPDF.encodeColorString.')}if(typeof j=="string"&&/^#[0-9A-Fa-f]{3}$/.test(j)&&(j="#"+j[1]+j[1]+j[2]+j[2]+j[3]+j[3]),typeof j=="string"&&/^#[0-9A-Fa-f]{6}$/.test(j)){var at=parseInt(j.substr(1),16);j=at>>16&255,Q=at>>8&255,ce=255&at}if(Q===void 0||Se===void 0&&j===Q&&Q===ce)if(typeof j=="string")E=j+" "+Oe[0];else switch(m.precision){case 2:E=Ae(j/255)+" "+Oe[0];break;case 3:default:E=B(j/255)+" "+Oe[0]}else if(Se===void 0||(0,ai.default)(Se)==="object"){if(Se&&!isNaN(Se.a)&&Se.a===0)return E=["1.","1.","1.",Oe[1]].join(" ");if(typeof j=="string")E=[j,Q,ce,Oe[1]].join(" ");else switch(m.precision){case 2:E=[Ae(j/255),Ae(Q/255),Ae(ce/255),Oe[1]].join(" ");break;default:case 3:E=[B(j/255),B(Q/255),B(ce/255),Oe[1]].join(" ")}}else if(typeof j=="string")E=[j,Q,ce,Se,Oe[2]].join(" ");else switch(m.precision){case 2:E=[Ae(j),Ae(Q),Ae(ce),Ae(Se),Oe[2]].join(" ");break;case 3:default:E=[B(j),B(Q),B(ce),B(Se),Oe[2]].join(" ")}return E},Sr=v.__private__.getFilters=function(){return a},qn=v.__private__.putStream=function(m){var E=(m=m||{}).data||"",j=m.filters||Sr(),Q=m.alreadyAppliedFilters||[],ce=m.addLength1||!1,Se=E.length,Oe=m.objectId,Ye=function(ln){return ln};if(y!==null&&Oe===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");y!==null&&(Ye=an.encryptor(Oe,0));var at={};j===!0&&(j=["FlateEncode"]);var Ct=m.additionalKeyValues||[],Et=(at=dt.API.processDataByFilters!==void 0?dt.API.processDataByFilters(E,j):{data:E,reverseChain:[]}).reverseChain+(Array.isArray(Q)?Q.join(" "):Q.toString());if(at.data.length!==0&&(Ct.push({key:"Length",value:at.data.length}),ce===!0&&Ct.push({key:"Length1",value:Se})),Et.length!=0)if(Et.split("/").length-1==1)Ct.push({key:"Filter",value:Et});else{Ct.push({key:"Filter",value:"["+Et+"]"});for(var kt=0;kt<Ct.length;kt+=1)if(Ct[kt].key==="DecodeParms"){for(var gi=[],bi=0;bi<at.reverseChain.split("/").length-1;bi+=1)gi.push("null");gi.push(Ct[kt].value),Ct[kt].value="["+gi.join(" ")+"]"}}W("<<");for(var Ai=0;Ai<Ct.length;Ai++)W("/"+Ct[Ai].key+" "+Ct[Ai].value);W(">>"),at.data.length!==0&&(W("stream"),W(Ye(at.data)),W("endstream"))},xr=v.__private__.putPage=function(m){var E=m.number,j=m.data,Q=m.objId,ce=m.contentsObjId;Nn(Q,!0),W("<</Type /Page"),W("/Parent "+m.rootDictionaryObjId+" 0 R"),W("/Resources "+m.resourceDictionaryObjId+" 0 R"),W("/MediaBox ["+parseFloat(de(m.mediaBox.bottomLeftX))+" "+parseFloat(de(m.mediaBox.bottomLeftY))+" "+de(m.mediaBox.topRightX)+" "+de(m.mediaBox.topRightY)+"]"),m.cropBox!==null&&W("/CropBox ["+de(m.cropBox.bottomLeftX)+" "+de(m.cropBox.bottomLeftY)+" "+de(m.cropBox.topRightX)+" "+de(m.cropBox.topRightY)+"]"),m.bleedBox!==null&&W("/BleedBox ["+de(m.bleedBox.bottomLeftX)+" "+de(m.bleedBox.bottomLeftY)+" "+de(m.bleedBox.topRightX)+" "+de(m.bleedBox.topRightY)+"]"),m.trimBox!==null&&W("/TrimBox ["+de(m.trimBox.bottomLeftX)+" "+de(m.trimBox.bottomLeftY)+" "+de(m.trimBox.topRightX)+" "+de(m.trimBox.topRightY)+"]"),m.artBox!==null&&W("/ArtBox ["+de(m.artBox.bottomLeftX)+" "+de(m.artBox.bottomLeftY)+" "+de(m.artBox.topRightX)+" "+de(m.artBox.topRightY)+"]"),typeof m.userUnit=="number"&&m.userUnit!==1&&W("/UserUnit "+m.userUnit),Qt.publish("putPage",{objId:Q,pageContext:_t[E],pageNumber:E,page:j}),W("/Contents "+ce+" 0 R"),W(">>"),W("endobj");var Se=j.join(`
+`);return z===L.ADVANCED&&(Se+=`
+Q`),Nn(ce,!0),qn({data:Se,filters:Sr(),objectId:ce}),W("endobj"),Q},ra=v.__private__.putPages=function(){var m,E,j=[];for(m=1;m<=_i;m++)_t[m].objId=Ii(),_t[m].contentsObjId=Ii();for(m=1;m<=_i;m++)j.push(xr({number:m,data:qe[m],objId:_t[m].objId,contentsObjId:_t[m].contentsObjId,mediaBox:_t[m].mediaBox,cropBox:_t[m].cropBox,bleedBox:_t[m].bleedBox,trimBox:_t[m].trimBox,artBox:_t[m].artBox,userUnit:_t[m].userUnit,rootDictionaryObjId:Zr,resourceDictionaryObjId:ir}));Nn(Zr,!0),W("<</Type /Pages");var Q="/Kids [";for(E=0;E<_i;E++)Q+=j[E]+" 0 R ";W(Q+"]"),W("/Count "+_i),W(">>"),W("endobj"),Qt.publish("postPutPages")},Fa=function(m){Qt.publish("putFont",{font:m,out:W,newObject:Di,putStream:qn}),m.isAlreadyPutted!==!0&&(m.objectNumber=Di(),W("<<"),W("/Type /Font"),W("/BaseFont /"+hl(m.postScriptName)),W("/Subtype /Type1"),typeof m.encoding=="string"&&W("/Encoding /"+m.encoding),W("/FirstChar 32"),W("/LastChar 255"),W(">>"),W("endobj"))},Ia=function(){for(var m in li)li.hasOwnProperty(m)&&(w===!1||w===!0&&S.hasOwnProperty(m))&&Fa(li[m])},Aa=function(m){m.objectNumber=Di();var E=[];E.push({key:"Type",value:"/XObject"}),E.push({key:"Subtype",value:"/Form"}),E.push({key:"BBox",value:"["+[de(m.x),de(m.y),de(m.x+m.width),de(m.y+m.height)].join(" ")+"]"}),E.push({key:"Matrix",value:"["+m.matrix.toString()+"]"});var j=m.pages[1].join(`
+`);qn({data:j,additionalKeyValues:E,objectId:m.objectNumber}),W("endobj")},Ma=function(){for(var m in Qi)Qi.hasOwnProperty(m)&&Aa(Qi[m])},ps=function(m,E){var j,Q=[],ce=1/(E-1);for(j=0;j<1;j+=ce)Q.push(j);if(Q.push(1),m[0].offset!=0){var Se={offset:0,color:m[0].color};m.unshift(Se)}if(m[m.length-1].offset!=1){var Oe={offset:1,color:m[m.length-1].color};m.push(Oe)}for(var Ye="",at=0,Ct=0;Ct<Q.length;Ct++){for(j=Q[Ct];j>m[at+1].offset;)at++;var Et=m[at].offset,kt=(j-Et)/(m[at+1].offset-Et),gi=m[at].color,bi=m[at+1].color;Ye+=ie(Math.round((1-kt)*gi[0]+kt*bi[0]).toString(16))+ie(Math.round((1-kt)*gi[1]+kt*bi[1]).toString(16))+ie(Math.round((1-kt)*gi[2]+kt*bi[2]).toString(16))}return Ye.trim()},Yc=function(m,E){E||(E=21);var j=Di(),Q=ps(m.colors,E),ce=[];ce.push({key:"FunctionType",value:"0"}),ce.push({key:"Domain",value:"[0.0 1.0]"}),ce.push({key:"Size",value:"["+E+"]"}),ce.push({key:"BitsPerSample",value:"8"}),ce.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ce.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),qn({data:Q,additionalKeyValues:ce,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:j}),W("endobj"),m.objectNumber=Di(),W("<< /ShadingType "+m.type),W("/ColorSpace /DeviceRGB");var Se="/Coords ["+de(parseFloat(m.coords[0]))+" "+de(parseFloat(m.coords[1]))+" ";m.type===2?Se+=de(parseFloat(m.coords[2]))+" "+de(parseFloat(m.coords[3])):Se+=de(parseFloat(m.coords[2]))+" "+de(parseFloat(m.coords[3]))+" "+de(parseFloat(m.coords[4]))+" "+de(parseFloat(m.coords[5])),W(Se+="]"),m.matrix&&W("/Matrix ["+m.matrix.toString()+"]"),W("/Function "+j+" 0 R"),W("/Extend [true true]"),W(">>"),W("endobj")},Qc=function(m,E){var j=Ii(),Q=Di();E.push({resourcesOid:j,objectOid:Q}),m.objectNumber=Q;var ce=[];ce.push({key:"Type",value:"/Pattern"}),ce.push({key:"PatternType",value:"1"}),ce.push({key:"PaintType",value:"1"}),ce.push({key:"TilingType",value:"1"}),ce.push({key:"BBox",value:"["+m.boundingBox.map(de).join(" ")+"]"}),ce.push({key:"XStep",value:de(m.xStep)}),ce.push({key:"YStep",value:de(m.yStep)}),ce.push({key:"Resources",value:j+" 0 R"}),m.matrix&&ce.push({key:"Matrix",value:"["+m.matrix.toString()+"]"}),qn({data:m.stream,additionalKeyValues:ce,objectId:m.objectNumber}),W("endobj")},Na=function(m){var E;for(E in Yt)Yt.hasOwnProperty(E)&&(Yt[E]instanceof wa?Yc(Yt[E]):Yt[E]instanceof gl&&Qc(Yt[E],m))},ms=function(m){for(var E in m.objectNumber=Di(),W("<<"),m)switch(E){case"opacity":W("/ca "+Ae(m[E]));break;case"stroke-opacity":W("/CA "+Ae(m[E]))}W(">>"),W("endobj")},Jc=function(){var m;for(m in vi)vi.hasOwnProperty(m)&&ms(vi[m])},Cl=function(){for(var m in W("/XObject <<"),Qi)Qi.hasOwnProperty(m)&&Qi[m].objectNumber>=0&&W("/"+m+" "+Qi[m].objectNumber+" 0 R");Qt.publish("putXobjectDict"),W(">>")},Zc=function(){an.oid=Di(),W("<<"),W("/Filter /Standard"),W("/V "+an.v),W("/R "+an.r),W("/U <"+an.toHexString(an.U)+">"),W("/O <"+an.toHexString(an.O)+">"),W("/P "+an.P),W(">>"),W("endobj")},fs=function(){for(var m in W("/Font <<"),li)li.hasOwnProperty(m)&&(w===!1||w===!0&&S.hasOwnProperty(m))&&W("/"+m+" "+li[m].objectNumber+" 0 R");W(">>")},Xc=function(){if(Object.keys(Yt).length>0){for(var m in W("/Shading <<"),Yt)Yt.hasOwnProperty(m)&&Yt[m]instanceof wa&&Yt[m].objectNumber>=0&&W("/"+m+" "+Yt[m].objectNumber+" 0 R");Qt.publish("putShadingPatternDict"),W(">>")}},Ta=function(m){if(Object.keys(Yt).length>0){for(var E in W("/Pattern <<"),Yt)Yt.hasOwnProperty(E)&&Yt[E]instanceof v.TilingPattern&&Yt[E].objectNumber>=0&&Yt[E].objectNumber<m&&W("/"+E+" "+Yt[E].objectNumber+" 0 R");Qt.publish("putTilingPatternDict"),W(">>")}},ed=function(){if(Object.keys(vi).length>0){var m;for(m in W("/ExtGState <<"),vi)vi.hasOwnProperty(m)&&vi[m].objectNumber>=0&&W("/"+m+" "+vi[m].objectNumber+" 0 R");Qt.publish("putGStateDict"),W(">>")}},wi=function(m){Nn(m.resourcesOid,!0),W("<<"),W("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),fs(),Xc(),Ta(m.objectOid),ed(),Cl(),W(">>"),W("endobj")},hs=function(){var m=[];Ia(),Jc(),Ma(),Na(m),Qt.publish("putResources"),m.forEach(wi),wi({resourcesOid:ir,objectOid:Number.MAX_SAFE_INTEGER}),Qt.publish("postPutResources")},gs=function(){Qt.publish("putAdditionalObjects");for(var m=0;m<Be.length;m++){var E=Be[m];Nn(E.objId,!0),W(E.content),W("endobj")}Qt.publish("postPutAdditionalObjects")},vs=function(m){hi[m.fontName]=hi[m.fontName]||{},hi[m.fontName][m.fontStyle]=m.id},wl=function(m,E,j,Q,ce){var Se={id:"F"+(Object.keys(li).length+1).toString(10),postScriptName:m,fontName:E,fontStyle:j,encoding:Q,isStandardFont:ce||!1,metadata:{}};return Qt.publish("addFont",{font:Se,instance:this}),li[Se.id]=Se,vs(Se),Se.id},td=function(m){for(var E=0,j=De.length;E<j;E++){var Q=wl.call(this,m[E][0],m[E][1],m[E][2],De[E][3],!0);w===!1&&(S[Q]=!0);var ce=m[E][0].split("-");vs({id:Q,fontName:ce[0],fontStyle:ce[1]||""})}Qt.publish("addFonts",{fonts:li,dictionary:hi})},or=function(m){return m.foo=function(){try{return m.apply(this,arguments)}catch(Q){var E=Q.stack||"";~E.indexOf(" at ")&&(E=E.split(" at ")[1]);var j="Error in function "+E.split(`
+`)[0].split("<")[0]+": "+Q.message;if(!ft.console)throw new Error(j);ft.console.error(j,Q),ft.alert&&alert(j)}},m.foo.bar=m,m.foo},Pa=function(m,E){var j,Q,ce,Se,Oe,Ye,at,Ct,Et;if(ce=(E=E||{}).sourceEncoding||"Unicode",Oe=E.outputEncoding,(E.autoencode||Oe)&&li[Mt].metadata&&li[Mt].metadata[ce]&&li[Mt].metadata[ce].encoding&&(Se=li[Mt].metadata[ce].encoding,!Oe&&li[Mt].encoding&&(Oe=li[Mt].encoding),!Oe&&Se.codePages&&(Oe=Se.codePages[0]),typeof Oe=="string"&&(Oe=Se[Oe]),Oe)){for(at=!1,Ye=[],j=0,Q=m.length;j<Q;j++)(Ct=Oe[m.charCodeAt(j)])?Ye.push(String.fromCharCode(Ct)):Ye.push(m[j]),Ye[j].charCodeAt(0)>>8&&(at=!0);m=Ye.join("")}for(j=m.length;at===void 0&&j!==0;)m.charCodeAt(j-1)>>8&&(at=!0),j--;if(!at)return m;for(Ye=E.noBOM?[]:[254,255],j=0,Q=m.length;j<Q;j++){if((Et=(Ct=m.charCodeAt(j))>>8)>>8)throw new Error("Character at position "+j+" of string '"+m+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Ye.push(Et),Ye.push(Ct-(Et<<8))}return String.fromCharCode.apply(void 0,Ye)},yn=v.__private__.pdfEscape=v.pdfEscape=function(m,E){return Pa(m,E).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Sl=v.__private__.beginPage=function(m){qe[++_i]=[],_t[_i]={objId:0,contentsObjId:0,userUnit:Number(d),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(m[0]),topRightY:Number(m[1])}},bs(_i),xe(qe[U])},_s=function(m,E){var j,Q,ce;switch(n=E||n,typeof m=="string"&&(j=I(m.toLowerCase()),Array.isArray(j)&&(Q=j[0],ce=j[1])),Array.isArray(m)&&(Q=m[0]*$e,ce=m[1]*$e),isNaN(Q)&&(Q=o[0],ce=o[1]),(Q>14400||ce>14400)&&(ci.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Q=Math.min(14400,Q),ce=Math.min(14400,ce)),o=[Q,ce],n.substr(0,1)){case"l":ce>Q&&(o=[ce,Q]);break;case"p":Q>ce&&(o=[ce,Q])}Sl(o),Es(Il),W(ar),Ml!==0&&W(Ml+" J"),Nl!==0&&W(Nl+" j"),Qt.publish("addPage",{pageNumber:_i})},id=function(m){m>0&&m<=_i&&(qe.splice(m,1),_t.splice(m,1),_i--,U>_i&&(U=_i),this.setPage(U))},bs=function(m){m>0&&m<=_i&&(U=m)},nd=v.__private__.getNumberOfPages=v.getNumberOfPages=function(){return qe.length-1},ys=function(m,E,j){var Q,ce=void 0;return j=j||{},m=m!==void 0?m:li[Mt].fontName,E=E!==void 0?E:li[Mt].fontStyle,Q=m.toLowerCase(),hi[Q]!==void 0&&hi[Q][E]!==void 0?ce=hi[Q][E]:hi[m]!==void 0&&hi[m][E]!==void 0?ce=hi[m][E]:j.disableWarning===!1&&ci.warn("Unable to look up font label for font '"+m+"', '"+E+"'. Refer to getFontList() for available fonts."),ce||j.noFallback||(ce=hi.times[E])==null&&(ce=hi.times.normal),ce},rd=v.__private__.putInfo=function(){var m=Di(),E=function(Q){return Q};for(var j in y!==null&&(E=an.encryptor(m,0)),W("<<"),W("/Producer ("+yn(E("jsPDF "+dt.version))+")"),ht)ht.hasOwnProperty(j)&&ht[j]&&W("/"+j.substr(0,1).toUpperCase()+j.substr(1)+" ("+yn(E(ht[j]))+")");W("/CreationDate ("+yn(E(we))+")"),W(">>"),W("endobj")},xl=v.__private__.putCatalog=function(m){var E=(m=m||{}).rootDictionaryObjId||Zr;switch(Di(),W("<<"),W("/Type /Catalog"),W("/Pages "+E+" 0 R"),We||(We="fullwidth"),We){case"fullwidth":W("/OpenAction [3 0 R /FitH null]");break;case"fullheight":W("/OpenAction [3 0 R /FitV null]");break;case"fullpage":W("/OpenAction [3 0 R /Fit]");break;case"original":W("/OpenAction [3 0 R /XYZ null null 1]");break;default:var j=""+We;j.substr(j.length-1)==="%"&&(We=parseInt(We)/100),typeof We=="number"&&W("/OpenAction [3 0 R /XYZ null null "+Ae(We)+"]")}switch(It||(It="continuous"),It){case"continuous":W("/PageLayout /OneColumn");break;case"single":W("/PageLayout /SinglePage");break;case"two":case"twoleft":W("/PageLayout /TwoColumnLeft");break;case"tworight":W("/PageLayout /TwoColumnRight")}vt&&W("/PageMode /"+vt),Qt.publish("putCatalog"),W(">>"),W("endobj")},od=v.__private__.putTrailer=function(){W("trailer"),W("<<"),W("/Size "+(le+1)),W("/Root "+le+" 0 R"),W("/Info "+(le-1)+" 0 R"),y!==null&&W("/Encrypt "+an.oid+" 0 R"),W("/ID [ <"+be+"> <"+be+"> ]"),W(">>")},ad=v.__private__.putHeader=function(){W("%PDF-"+M),W("%\xBA\xDF\xAC\xE0")},ld=v.__private__.putXRef=function(){var m="0000000000";W("xref"),W("0 "+(le+1)),W("0000000000 65535 f ");for(var E=1;E<=le;E++)typeof ge[E]=="function"?W((m+ge[E]()).slice(-10)+" 00000 n "):ge[E]!==void 0?W((m+ge[E]).slice(-10)+" 00000 n "):W("0000000000 00000 n ")},Xr=v.__private__.buildDocument=function(){mt(),xe(ve),Qt.publish("buildDocument"),ad(),ra(),gs(),hs(),y!==null&&Zc(),rd(),xl();var m=ye;return ld(),od(),W("startxref"),W(""+m),W("%%EOF"),xe(qe[U]),ve.join(`
+`)},La=v.__private__.getBlob=function(m){return new Blob([it(m)],{type:"application/pdf"})},Oa=v.output=v.__private__.output=or(function(m,E){switch(typeof(E=E||{})=="string"?E={filename:E}:E.filename=E.filename||"generated.pdf",m){case void 0:return Xr();case"save":v.save(E.filename);break;case"arraybuffer":return it(Xr());case"blob":return La(Xr());case"bloburi":case"bloburl":if(ft.URL!==void 0&&typeof ft.URL.createObjectURL=="function")return ft.URL&&ft.URL.createObjectURL(La(Xr()))||void 0;ci.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var j="",Q=Xr();try{j=yu(Q)}catch{j=yu(unescape(encodeURIComponent(Q)))}return"data:application/pdf;filename="+E.filename+";base64,"+j;case"pdfobjectnewwindow":if(Object.prototype.toString.call(ft)==="[object Window]"){var ce="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Se=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';E.pdfObjectUrl&&(ce=E.pdfObjectUrl,Se="");var Oe='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+ce+'"'+Se+'></script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(E)+");</script></body></html>",Ye=ft.open();return Ye!==null&&Ye.document.write(Oe),Ye}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(ft)==="[object Window]"){var at='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(E.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+E.filename+'" width="500px" height="400px" /></body></html>',Ct=ft.open();if(Ct!==null){Ct.document.write(at);var Et=this;Ct.document.documentElement.querySelector("#pdfViewer").onload=function(){Ct.document.title=E.filename,Ct.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Et.output("bloburl"))}}return Ct}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(ft)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var kt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",E)+'"></iframe></body></html>',gi=ft.open();if(gi!==null&&(gi.document.write(kt),gi.document.title=E.filename),gi||typeof safari>"u")return gi;break;case"datauri":case"dataurl":return ft.document.location.href=this.output("datauristring",E);default:return null}}),Cs=function(m){return Array.isArray(na)===!0&&na.indexOf(m)>-1};switch(e){case"pt":$e=1;break;case"mm":$e=72/25.4;break;case"cm":$e=72/2.54;break;case"in":$e=72;break;case"px":$e=Cs("px_scaling")==1?.75:96/72;break;case"pc":case"em":$e=12;break;case"ex":$e=6;break;default:if(typeof e!="number")throw new Error("Invalid unit: "+e);$e=e}var an=null;Ge(),he();var sd=function(m){return y!==null?an.encryptor(m,0):function(E){return E}},ws=v.__private__.getPageInfo=v.getPageInfo=function(m){if(isNaN(m)||m%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:_t[m].objId,pageNumber:m,pageContext:_t[m]}},gt=v.__private__.getPageInfoByObjId=function(m){if(isNaN(m)||m%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var E in _t)if(_t[E].objId===m)break;return ws(E)},cd=v.__private__.getCurrentPageInfo=v.getCurrentPageInfo=function(){return{objId:_t[U].objId,pageNumber:U,pageContext:_t[U]}};v.addPage=function(){return _s.apply(this,arguments),this},v.setPage=function(){return bs.apply(this,arguments),xe.call(this,qe[U]),this},v.insertPage=function(m){return this.addPage(),this.movePage(U,m),this},v.movePage=function(m,E){var j,Q;if(m>E){j=qe[m],Q=_t[m];for(var ce=m;ce>E;ce--)qe[ce]=qe[ce-1],_t[ce]=_t[ce-1];qe[E]=j,_t[E]=Q,this.setPage(E)}else if(m<E){j=qe[m],Q=_t[m];for(var Se=m;Se<E;Se++)qe[Se]=qe[Se+1],_t[Se]=_t[Se+1];qe[E]=j,_t[E]=Q,this.setPage(E)}return this},v.deletePage=function(){return id.apply(this,arguments),this},v.__private__.text=v.text=function(m,E,j,Q,ce){var Se,Oe,Ye,at,Ct,Et,kt,gi,bi,Ai=(Q=Q||{}).scope||this;if(typeof m=="number"&&typeof E=="number"&&(typeof j=="string"||Array.isArray(j))){var ln=j;j=E,E=m,m=ln}if(arguments[3]instanceof ut?(Y("The transform parameter of text() with a Matrix value"),bi=ce):(Ye=arguments[4],at=arguments[5],(0,ai.default)(kt=arguments[3])==="object"&&kt!==null||(typeof Ye=="string"&&(at=Ye,Ye=null),typeof kt=="string"&&(at=kt,kt=null),typeof kt=="number"&&(Ye=kt,kt=null),Q={flags:kt,angle:Ye,align:at})),isNaN(E)||isNaN(j)||m==null)throw new Error("Invalid arguments passed to jsPDF.text");if(m.length===0)return Ai;var ji="",lr=!1,Tn=typeof Q.lineHeightFactor=="number"?Q.lineHeightFactor:aa,to=Ai.internal.scaleFactor;function Ts(di){return di=di.split("	").join(Array(Q.TabLen||9).join(" ")),yn(di,kt)}function kl(di){for(var ui,Si=di.concat(),Ri=[],oo=Si.length;oo--;)typeof(ui=Si.shift())=="string"?Ri.push(ui):Array.isArray(di)&&(ui.length===1||ui[1]===void 0&&ui[2]===void 0)?Ri.push(ui[0]):Ri.push([ui[0],ui[1],ui[2]]);return Ri}function Dl(di,ui){var Si;if(typeof di=="string")Si=ui(di)[0];else if(Array.isArray(di)){for(var Ri,oo,Eo=di.concat(),Ka=[],Ls=Eo.length;Ls--;)typeof(Ri=Eo.shift())=="string"?Ka.push(ui(Ri)[0]):Array.isArray(Ri)&&typeof Ri[0]=="string"&&(oo=ui(Ri[0],Ri[1],Ri[2]),Ka.push([oo[0],oo[1],oo[2]]));Si=Ka}return Si}var Ba=!1,Rl=!0;if(typeof m=="string")Ba=!0;else if(Array.isArray(m)){var Vl=m.concat();Oe=[];for(var ja,Cn=Vl.length;Cn--;)(typeof(ja=Vl.shift())!="string"||Array.isArray(ja)&&typeof ja[0]!="string")&&(Rl=!1);Ba=Rl}if(Ba===!1)throw new Error('Type of text must be string or Array. "'+m+'" is not recognized.');typeof m=="string"&&(m=m.match(/[\r?\n]/)?m.split(/\r\n|\r|\n/g):[m]);var Ua=je/Ai.internal.scaleFactor,za=Ua*(Tn-1);switch(Q.baseline){case"bottom":j-=za;break;case"top":j+=Ua-za;break;case"hanging":j+=Ua-2*za;break;case"middle":j+=Ua/2-za}if((Et=Q.maxWidth||0)>0&&(typeof m=="string"?m=Ai.splitTextToSize(m,Et):Object.prototype.toString.call(m)==="[object Array]"&&(m=m.reduce(function(di,ui){return di.concat(Ai.splitTextToSize(ui,Et))},[]))),Se={text:m,x:E,y:j,options:Q,mutex:{pdfEscape:yn,activeFontKey:Mt,fonts:li,activeFontSize:je}},Qt.publish("preProcessText",Se),m=Se.text,Ye=(Q=Se.options).angle,!(bi instanceof ut)&&Ye&&typeof Ye=="number"){Ye*=Math.PI/180,Q.rotationDirection===0&&(Ye=-Ye),z===L.ADVANCED&&(Ye=-Ye);var Ha=Math.cos(Ye),ql=Math.sin(Ye);bi=new ut(Ha,ql,-ql,Ha,0,0)}else Ye&&Ye instanceof ut&&(bi=Ye);z!==L.ADVANCED||bi||(bi=wr),(Ct=Q.charSpace||Ra)!==void 0&&(ji+=de(R(Ct))+` Tc
+`,this.setCharSpace(this.getCharSpace()||0)),(gi=Q.horizontalScale)!==void 0&&(ji+=de(100*gi)+` Tz
+`),Q.lang;var wn=-1,bd=Q.renderingMode!==void 0?Q.renderingMode:Q.stroke,Bl=Ai.internal.getCurrentPageInfo().pageContext;switch(bd){case 0:case!1:case"fill":wn=0;break;case 1:case!0:case"stroke":wn=1;break;case 2:case"fillThenStroke":wn=2;break;case 3:case"invisible":wn=3;break;case 4:case"fillAndAddForClipping":wn=4;break;case 5:case"strokeAndAddPathForClipping":wn=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":wn=6;break;case 7:case"addToPathForClipping":wn=7}var Ps=Bl.usedRenderingMode!==void 0?Bl.usedRenderingMode:-1;wn!==-1?ji+=wn+` Tr
+`:Ps!==-1&&(ji+=`0 Tr
+`),wn!==-1&&(Bl.usedRenderingMode=wn),at=Q.align||"left";var sr,jl=je*Tn,yd=Ai.internal.pageSize.getWidth(),Cd=li[Mt];Ct=Q.charSpace||Ra,Et=Q.maxWidth||0,kt=Object.assign({autoencode:!0,noBOM:!0},Q.flags);var Co=[];if(Object.prototype.toString.call(m)==="[object Array]"){var Bn;Oe=kl(m),at!=="left"&&(sr=Oe.map(function(di){return Ai.getStringUnitWidth(di,{font:Cd,charSpace:Ct,fontSize:je,doKerning:!1})*je/to}));var cr,wo=0;if(at==="right"){E-=sr[0],m=[],Cn=Oe.length;for(var Fr=0;Fr<Cn;Fr++)Fr===0?(cr=eo(E),Bn=_o(j)):(cr=R(wo-sr[Fr]),Bn=-jl),m.push([Oe[Fr],cr,Bn]),wo=sr[Fr]}else if(at==="center"){E-=sr[0]/2,m=[],Cn=Oe.length;for(var io=0;io<Cn;io++)io===0?(cr=eo(E),Bn=_o(j)):(cr=R((wo-sr[io])/2),Bn=-jl),m.push([Oe[io],cr,Bn]),wo=sr[io]}else if(at==="left"){m=[],Cn=Oe.length;for(var Ga=0;Ga<Cn;Ga++)m.push(Oe[Ga])}else{if(at!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');m=[],Cn=Oe.length,Et=Et!==0?Et:yd;for(var dr=0;dr<Cn;dr++)Bn=dr===0?_o(j):-jl,cr=dr===0?eo(E):0,dr<Cn-1?Co.push(de(R((Et-sr[dr])/(Oe[dr].split(" ").length-1)))):Co.push(0),m.push([Oe[dr],cr,Bn])}}var Wa=typeof Q.R2L=="boolean"?Q.R2L:rt;Wa===!0&&(m=Dl(m,function(di,ui,Si){return[di.split("").reverse().join(""),ui,Si]})),Se={text:m,x:E,y:j,options:Q,mutex:{pdfEscape:yn,activeFontKey:Mt,fonts:li,activeFontSize:je}},Qt.publish("postProcessText",Se),m=Se.text,lr=Se.mutex.isHex||!1;var Ul=li[Mt].encoding;Ul!=="WinAnsiEncoding"&&Ul!=="StandardEncoding"||(m=Dl(m,function(di,ui,Si){return[Ts(di),ui,Si]})),Oe=kl(m),m=[];for(var So,ur,no,ca=0,$a=1,da=Array.isArray(Oe[0])?$a:ca,xo="",zl=function(di,ui,Si){var Ri="";return Si instanceof ut?(Si=typeof Q.angle=="number"?tr(Si,new ut(1,0,0,1,di,ui)):tr(new ut(1,0,0,1,di,ui),Si),z===L.ADVANCED&&(Si=tr(new ut(1,0,0,-1,0,0),Si)),Ri=Si.join(" ")+` Tm
+`):Ri=de(di)+" "+de(ui)+` Td
+`,Ri},jn=0;jn<Oe.length;jn++){switch(xo="",da){case $a:no=(lr?"<":"(")+Oe[jn][0]+(lr?">":")"),So=parseFloat(Oe[jn][1]),ur=parseFloat(Oe[jn][2]);break;case ca:no=(lr?"<":"(")+Oe[jn]+(lr?">":")"),So=eo(E),ur=_o(j)}Co!==void 0&&Co[jn]!==void 0&&(xo=Co[jn]+` Tw
+`),jn===0?m.push(xo+zl(So,ur,bi)+no):da===ca?m.push(xo+no):da===$a&&m.push(xo+zl(So,ur,bi)+no)}m=da===ca?m.join(` Tj
+T* `):m.join(` Tj
+`),m+=` Tj
+`;var ro=`BT
+/`;return ro+=Mt+" "+je+` Tf
+`,ro+=de(je*Tn)+` TL
+`,ro+=la+`
+`,ro+=ji,ro+=m,W(ro+="ET"),S[Mt]=!0,Ai};var dd=v.__private__.clip=v.clip=function(m){return W(m==="evenodd"?"W*":"W"),this};v.clipEvenOdd=function(){return dd("evenodd")},v.__private__.discardPath=v.discardPath=function(){return W("n"),this};var Er=v.__private__.isValidStyle=function(m){var E=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(m)!==-1&&(E=!0),E};v.__private__.setDefaultPathOperation=v.setDefaultPathOperation=function(m){return Er(m)&&(_=m),this};var Ss=v.__private__.getStyle=v.getStyle=function(m){var E=_;switch(m){case"D":case"S":E="S";break;case"F":E="f";break;case"FD":case"DF":E="B";break;case"f":case"f*":case"B":case"B*":E=m}return E},xs=v.close=function(){return W("h"),this};v.stroke=function(){return W("S"),this},v.fill=function(m){return ka("f",m),this},v.fillEvenOdd=function(m){return ka("f*",m),this},v.fillStroke=function(m){return ka("B",m),this},v.fillStrokeEvenOdd=function(m){return ka("B*",m),this};var ka=function(m,E){(0,ai.default)(E)==="object"?pd(E,m):W(m)},El=function(m){m===null||z===L.ADVANCED&&m===void 0||(m=Ss(m),W(m))};function ud(m,E,j,Q,ce){var Se=new gl(E||this.boundingBox,j||this.xStep,Q||this.yStep,this.gState,ce||this.matrix);Se.stream=this.stream;var Oe=m+"$$"+this.cloneIndex+++"$$";return bn(Oe,Se),Se}var pd=function(m,E){var j=ia[m.key],Q=Yt[j];if(Q instanceof wa)W("q"),W(md(E)),Q.gState&&v.setGState(Q.gState),W(m.matrix.toString()+" cm"),W("/"+j+" sh"),W("Q");else if(Q instanceof gl){var ce=new ut(1,0,0,-1,0,yo());m.matrix&&(ce=ce.multiply(m.matrix||wr),j=ud.call(Q,m.key,m.boundingBox,m.xStep,m.yStep,ce).id),W("q"),W("/Pattern cs"),W("/"+j+" scn"),Q.gState&&v.setGState(Q.gState),W(E),W("Q")}},md=function(m){switch(m){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},Fl=v.moveTo=function(m,E){return W(de(R(m))+" "+de(K(E))+" m"),this},oa=v.lineTo=function(m,E){return W(de(R(m))+" "+de(K(E))+" l"),this},vo=v.curveTo=function(m,E,j,Q,ce,Se){return W([de(R(m)),de(K(E)),de(R(j)),de(K(Q)),de(R(ce)),de(K(Se)),"c"].join(" ")),this};v.__private__.line=v.line=function(m,E,j,Q,ce){if(isNaN(m)||isNaN(E)||isNaN(j)||isNaN(Q)||!Er(ce))throw new Error("Invalid arguments passed to jsPDF.line");return z===L.COMPAT?this.lines([[j-m,Q-E]],m,E,[1,1],ce||"S"):this.lines([[j-m,Q-E]],m,E,[1,1]).stroke()},v.__private__.lines=v.lines=function(m,E,j,Q,ce,Se){var Oe,Ye,at,Ct,Et,kt,gi,bi,Ai,ln,ji,lr;if(typeof m=="number"&&(lr=j,j=E,E=m,m=lr),Q=Q||[1,1],Se=Se||!1,isNaN(E)||isNaN(j)||!Array.isArray(m)||!Array.isArray(Q)||!Er(ce)||typeof Se!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Fl(E,j),Oe=Q[0],Ye=Q[1],Ct=m.length,ln=E,ji=j,at=0;at<Ct;at++)(Et=m[at]).length===2?(ln=Et[0]*Oe+ln,ji=Et[1]*Ye+ji,oa(ln,ji)):(kt=Et[0]*Oe+ln,gi=Et[1]*Ye+ji,bi=Et[2]*Oe+ln,Ai=Et[3]*Ye+ji,ln=Et[4]*Oe+ln,ji=Et[5]*Ye+ji,vo(kt,gi,bi,Ai,ln,ji));return Se&&xs(),El(ce),this},v.path=function(m){for(var E=0;E<m.length;E++){var j=m[E],Q=j.c;switch(j.op){case"m":Fl(Q[0],Q[1]);break;case"l":oa(Q[0],Q[1]);break;case"c":vo.apply(this,Q);break;case"h":xs()}}return this},v.__private__.rect=v.rect=function(m,E,j,Q,ce){if(isNaN(m)||isNaN(E)||isNaN(j)||isNaN(Q)||!Er(ce))throw new Error("Invalid arguments passed to jsPDF.rect");return z===L.COMPAT&&(Q=-Q),W([de(R(m)),de(K(E)),de(R(j)),de(R(Q)),"re"].join(" ")),El(ce),this},v.__private__.triangle=v.triangle=function(m,E,j,Q,ce,Se,Oe){if(isNaN(m)||isNaN(E)||isNaN(j)||isNaN(Q)||isNaN(ce)||isNaN(Se)||!Er(Oe))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[j-m,Q-E],[ce-j,Se-Q],[m-ce,E-Se]],m,E,[1,1],Oe,!0),this},v.__private__.roundedRect=v.roundedRect=function(m,E,j,Q,ce,Se,Oe){if(isNaN(m)||isNaN(E)||isNaN(j)||isNaN(Q)||isNaN(ce)||isNaN(Se)||!Er(Oe))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Ye=4/3*(Math.SQRT2-1);return ce=Math.min(ce,.5*j),Se=Math.min(Se,.5*Q),this.lines([[j-2*ce,0],[ce*Ye,0,ce,Se-Se*Ye,ce,Se],[0,Q-2*Se],[0,Se*Ye,-ce*Ye,Se,-ce,Se],[2*ce-j,0],[-ce*Ye,0,-ce,-Se*Ye,-ce,-Se],[0,2*Se-Q],[0,-Se*Ye,ce*Ye,-Se,ce,-Se]],m+ce,E,[1,1],Oe,!0),this},v.__private__.ellipse=v.ellipse=function(m,E,j,Q,ce){if(isNaN(m)||isNaN(E)||isNaN(j)||isNaN(Q)||!Er(ce))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Se=4/3*(Math.SQRT2-1)*j,Oe=4/3*(Math.SQRT2-1)*Q;return Fl(m+j,E),vo(m+j,E-Oe,m+Se,E-Q,m,E-Q),vo(m-Se,E-Q,m-j,E-Oe,m-j,E),vo(m-j,E+Oe,m-Se,E+Q,m,E+Q),vo(m+Se,E+Q,m+j,E+Oe,m+j,E),El(ce),this},v.__private__.circle=v.circle=function(m,E,j,Q){if(isNaN(m)||isNaN(E)||isNaN(j)||!Er(Q))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(m,E,j,j,Q)},v.setFont=function(m,E,j){return j&&(E=re(E,j)),Mt=ys(m,E,{disableWarning:!1}),this};var fd=v.__private__.getFont=v.getFont=function(){return li[ys.apply(v,arguments)]};v.__private__.getFontList=v.getFontList=function(){var m,E,j={};for(m in hi)if(hi.hasOwnProperty(m))for(E in j[m]=[],hi[m])hi[m].hasOwnProperty(E)&&j[m].push(E);return j},v.addFont=function(m,E,j,Q,ce){var Se=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Se.indexOf(arguments[3])!==-1?ce=arguments[3]:arguments[3]&&Se.indexOf(arguments[3])==-1&&(j=re(j,Q)),ce=ce||"Identity-H",wl.call(this,m,E,j,ce)};var aa,Il=t.lineWidth||.200025,Da=v.__private__.getLineWidth=v.getLineWidth=function(){return Il},Es=v.__private__.setLineWidth=v.setLineWidth=function(m){return Il=m,W(de(R(m))+" w"),this};v.__private__.setLineDash=dt.API.setLineDash=dt.API.setLineDashPattern=function(m,E){if(m=m||[],E=E||0,isNaN(E)||!Array.isArray(m))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return m=m.map(function(j){return de(R(j))}).join(" "),E=de(R(E)),W("["+m+"] "+E+" d"),this};var Fs=v.__private__.getLineHeight=v.getLineHeight=function(){return je*aa};v.__private__.getLineHeight=v.getLineHeight=function(){return je*aa};var Is=v.__private__.setLineHeightFactor=v.setLineHeightFactor=function(m){return typeof(m=m||1.15)=="number"&&(aa=m),this},As=v.__private__.getLineHeightFactor=v.getLineHeightFactor=function(){return aa};Is(t.lineHeight);var eo=v.__private__.getHorizontalCoordinate=function(m){return R(m)},_o=v.__private__.getVerticalCoordinate=function(m){return z===L.ADVANCED?m:_t[U].mediaBox.topRightY-_t[U].mediaBox.bottomLeftY-R(m)},hd=v.__private__.getHorizontalCoordinateString=v.getHorizontalCoordinateString=function(m){return de(eo(m))},bo=v.__private__.getVerticalCoordinateString=v.getVerticalCoordinateString=function(m){return de(_o(m))},ar=t.strokeColor||"0 G";v.__private__.getStrokeColor=v.getDrawColor=function(){return nr(ar)},v.__private__.setStrokeColor=v.setDrawColor=function(m,E,j,Q){return ar=rr({ch1:m,ch2:E,ch3:j,ch4:Q,pdfColorType:"draw",precision:2}),W(ar),this};var Al=t.fillColor||"0 g";v.__private__.getFillColor=v.getFillColor=function(){return nr(Al)},v.__private__.setFillColor=v.setFillColor=function(m,E,j,Q){return Al=rr({ch1:m,ch2:E,ch3:j,ch4:Q,pdfColorType:"fill",precision:2}),W(Al),this};var la=t.textColor||"0 g",gd=v.__private__.getTextColor=v.getTextColor=function(){return nr(la)};v.__private__.setTextColor=v.setTextColor=function(m,E,j,Q){return la=rr({ch1:m,ch2:E,ch3:j,ch4:Q,pdfColorType:"text",precision:3}),this};var Ra=t.charSpace,vd=v.__private__.getCharSpace=v.getCharSpace=function(){return parseFloat(Ra||0)};v.__private__.setCharSpace=v.setCharSpace=function(m){if(isNaN(m))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Ra=m,this};var Ml=0;v.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},v.__private__.setLineCap=v.setLineCap=function(m){var E=v.CapJoinStyles[m];if(E===void 0)throw new Error("Line cap style of '"+m+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ml=E,W(E+" J"),this};var Nl=0;v.__private__.setLineJoin=v.setLineJoin=function(m){var E=v.CapJoinStyles[m];if(E===void 0)throw new Error("Line join style of '"+m+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Nl=E,W(E+" j"),this},v.__private__.setLineMiterLimit=v.__private__.setMiterLimit=v.setLineMiterLimit=v.setMiterLimit=function(m){if(m=m||0,isNaN(m))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return W(de(R(m))+" M"),this},v.GState=Hc,v.setGState=function(m){(m=typeof m=="string"?vi[er[m]]:Ms(null,m)).equals(Jr)||(W("/"+m.id+" gs"),Jr=m)};var Ms=function(m,E){if(!m||!er[m]){var j=!1;for(var Q in vi)if(vi.hasOwnProperty(Q)&&vi[Q].equals(E)){j=!0;break}if(j)E=vi[Q];else{var ce="GS"+(Object.keys(vi).length+1).toString(10);vi[ce]=E,E.id=ce}return m&&(er[m]=E.id),Qt.publish("addGState",E),E}};v.addGState=function(m,E){return Ms(m,E),this},v.saveGraphicsState=function(){return W("q"),br.push({key:Mt,size:je,color:la}),this},v.restoreGraphicsState=function(){W("Q");var m=br.pop();return Mt=m.key,je=m.size,la=m.color,Jr=null,this},v.setCurrentTransformationMatrix=function(m){return W(m.toString()+" cm"),this},v.comment=function(m){return W("#"+m),this};var Va=function(m,E){var j=m||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return j},set:function(Se){isNaN(Se)||(j=parseFloat(Se))}});var Q=E||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Q},set:function(Se){isNaN(Se)||(Q=parseFloat(Se))}});var ce="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ce},set:function(Se){ce=Se.toString()}}),this},Tl=function(m,E,j,Q){Va.call(this,m,E),this.type="rect";var ce=j||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ce},set:function(Oe){isNaN(Oe)||(ce=parseFloat(Oe))}});var Se=Q||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Se},set:function(Oe){isNaN(Oe)||(Se=parseFloat(Oe))}}),this},Pl=function(){this.page=_i,this.currentPage=U,this.pages=qe.slice(0),this.pagesContext=_t.slice(0),this.x=on,this.y=zt,this.matrix=Xn,this.width=sa(U),this.height=yo(U),this.outputDestination=Je,this.id="",this.objectNumber=-1};Pl.prototype.restore=function(){_i=this.page,U=this.currentPage,_t=this.pagesContext,qe=this.pages,on=this.x,zt=this.y,Xn=this.matrix,Ll(U,this.width),Ol(U,this.height),Je=this.outputDestination};var Ns=function(m,E,j,Q,ce){Cr.push(new Pl),_i=U=0,qe=[],on=m,zt=E,Xn=ce,Sl([j,Q])},_d=function(m){if(yr[m])Cr.pop().restore();else{var E=new Pl,j="Xo"+(Object.keys(Qi).length+1).toString(10);E.id=j,yr[m]=j,Qi[j]=E,Qt.publish("addFormObject",E),Cr.pop().restore()}};for(var qa in v.beginFormObject=function(m,E,j,Q,ce){return Ns(m,E,j,Q,ce),this},v.endFormObject=function(m){return _d(m),this},v.doFormObject=function(m,E){var j=Qi[yr[m]];return W("q"),W(E.toString()+" cm"),W("/"+j.id+" Do"),W("Q"),this},v.getFormObject=function(m){var E=Qi[yr[m]];return{x:E.x,y:E.y,width:E.width,height:E.height,matrix:E.matrix}},v.save=function(m,E){return m=m||"generated.pdf",(E=E||{}).returnPromise=E.returnPromise||!1,E.returnPromise===!1?(Ca(La(Xr()),m),typeof Ca.unload=="function"&&ft.setTimeout&&setTimeout(Ca.unload,911),this):new Promise(function(j,Q){try{var ce=Ca(La(Xr()),m);typeof Ca.unload=="function"&&ft.setTimeout&&setTimeout(Ca.unload,911),j(ce)}catch(Se){Q(Se.message)}})},dt.API)dt.API.hasOwnProperty(qa)&&(qa==="events"&&dt.API.events.length?function(m,E){var j,Q,ce;for(ce=E.length-1;ce!==-1;ce--)j=E[ce][0],Q=E[ce][1],m.subscribe.apply(m,[j].concat(typeof Q=="function"?[Q]:Q))}(Qt,dt.API.events):v[qa]=dt.API[qa]);var sa=v.getPageWidth=function(m){return(_t[m=m||U].mediaBox.topRightX-_t[m].mediaBox.bottomLeftX)/$e},Ll=v.setPageWidth=function(m,E){_t[m].mediaBox.topRightX=E*$e+_t[m].mediaBox.bottomLeftX},yo=v.getPageHeight=function(m){return(_t[m=m||U].mediaBox.topRightY-_t[m].mediaBox.bottomLeftY)/$e},Ol=v.setPageHeight=function(m,E){_t[m].mediaBox.topRightY=E*$e+_t[m].mediaBox.bottomLeftY};return v.internal={pdfEscape:yn,getStyle:Ss,getFont:fd,getFontSize:He,getCharSpace:vd,getTextColor:gd,getLineHeight:Fs,getLineHeightFactor:As,getLineWidth:Da,write:yt,getHorizontalCoordinate:eo,getVerticalCoordinate:_o,getCoordinateString:hd,getVerticalCoordinateString:bo,collections:{},newObject:Di,newAdditionalObject:Ea,newObjectDeferred:Ii,newObjectDeferredBegin:Nn,getFilters:Sr,putStream:qn,events:Qt,scaleFactor:$e,pageSize:{getWidth:function(){return sa(U)},setWidth:function(m){Ll(U,m)},getHeight:function(){return yo(U)},setHeight:function(m){Ol(U,m)}},encryptionOptions:y,encryption:an,getEncryptor:sd,output:Oa,getNumberOfPages:nd,pages:qe,out:W,f2:Ae,f3:B,getPageInfo:ws,getPageInfoByObjId:gt,getCurrentPageInfo:cd,getPDFVersion:F,Point:Va,Rectangle:Tl,Matrix:ut,hasHotfix:Cs},Object.defineProperty(v.internal.pageSize,"width",{get:function(){return sa(U)},set:function(m){Ll(U,m)},enumerable:!0,configurable:!0}),Object.defineProperty(v.internal.pageSize,"height",{get:function(){return yo(U)},set:function(m){Ol(U,m)},enumerable:!0,configurable:!0}),td.call(v,De),Mt="F1",_s(o,n),Qt.publish("initialized"),v}fl.prototype.lsbFirstWord=function(t){return String.fromCharCode(t>>0&255,t>>8&255,t>>16&255,t>>24&255)},fl.prototype.toHexString=function(t){return t.split("").map(function(i){return("0"+(255&i.charCodeAt(0)).toString(16)).slice(-2)}).join("")},fl.prototype.hexToBytes=function(t){for(var i=[],n=0;n<t.length;n+=2)i.push(String.fromCharCode(parseInt(t.substr(n,2),16)));return i.join("")},fl.prototype.processOwnerPassword=function(t,i){return wu(Cu(i).substr(0,5),t)},fl.prototype.encryptor=function(t,i){var n=Cu(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&i,i>>8&255)).substr(0,10);return function(e){return wu(n,e)}},Hc.prototype.equals=function(t){var i,n="id,objectNumber,equals";if(!t||(0,ai.default)(t)!==(0,ai.default)(this))return!1;var e=0;for(i in this)if(!(n.indexOf(i)>=0)){if(this.hasOwnProperty(i)&&!t.hasOwnProperty(i)||this[i]!==t[i])return!1;e++}for(i in t)t.hasOwnProperty(i)&&n.indexOf(i)<0&&e--;return e===0},dt.API={events:[]},dt.version="2.5.1";var Ci=dt.API,Fu=1,xa=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},pl=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},bt=function(t){return t.toFixed(2)},Zo=function(t){return t.toFixed(5)};Ci.__acroform__={};var Mn=function(t,i){t.prototype=Object.create(i.prototype),t.prototype.constructor=t},S0=function(t){return t*Fu},Kr=function(t){var i=new B0,n=et.internal.getHeight(t)||0,e=et.internal.getWidth(t)||0;return i.BBox=[0,0,Number(bt(e)),Number(bt(n))],i},Sb=Ci.__acroform__.setBit=function(t,i){if(t=t||0,i=i||0,isNaN(t)||isNaN(i))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|=1<<i},xb=Ci.__acroform__.clearBit=function(t,i){if(t=t||0,i=i||0,isNaN(t)||isNaN(i))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&=~(1<<i)},Eb=Ci.__acroform__.getBit=function(t,i){if(isNaN(t)||isNaN(i))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return t&1<<i?1:0},xi=Ci.__acroform__.getBitForPdf=function(t,i){if(isNaN(t)||isNaN(i))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Eb(t,i-1)},Ei=Ci.__acroform__.setBitForPdf=function(t,i){if(isNaN(t)||isNaN(i))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Sb(t,i-1)},Fi=Ci.__acroform__.clearBitForPdf=function(t,i){if(isNaN(t)||isNaN(i))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return xb(t,i-1)},Fb=Ci.__acroform__.calculateCoordinates=function(t,i){var n=i.internal.getHorizontalCoordinate,e=i.internal.getVerticalCoordinate,o=t[0],r=t[1],a=t[2],d=t[3],p={};return p.lowerLeft_X=n(o)||0,p.lowerLeft_Y=e(r+d)||0,p.upperRight_X=n(o+a)||0,p.upperRight_Y=e(r)||0,[Number(bt(p.lowerLeft_X)),Number(bt(p.lowerLeft_Y)),Number(bt(p.upperRight_X)),Number(bt(p.upperRight_Y))]},Ib=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var i=[],n=t._V||t.DV,e=Su(t,n),o=t.scope.internal.getFont(t.fontName,t.fontStyle).id;i.push("/Tx BMC"),i.push("q"),i.push("BT"),i.push(t.scope.__private__.encodeColorString(t.color)),i.push("/"+o+" "+bt(e.fontSize)+" Tf"),i.push("1 0 0 1 0 0 Tm"),i.push(e.text),i.push("ET"),i.push("Q"),i.push("EMC");var r=Kr(t);return r.scope=t.scope,r.stream=i.join(`
+`),r}},Su=function(t,i){var n=t.fontSize===0?t.maxFontSize:t.fontSize,e={text:"",fontSize:""},o=(i=(i=i.substr(0,1)=="("?i.substr(1):i).substr(i.length-1)==")"?i.substr(0,i.length-1):i).split(" ");o=t.multiline?o.map(function(B){return B.split(`
+`)}):o.map(function(B){return[B]});var r=n,a=et.internal.getHeight(t)||0;a=a<0?-a:a;var d=et.internal.getWidth(t)||0;d=d<0?-d:d;var p=function(B,R,Z){if(B+1<o.length){var K=R+" "+o[B+1][0];return Rc(K,t,Z).width<=d-4}return!1};r++;e:for(;r>0;){i="",r--;var _,y,w=Rc("3",t,r).height,S=t.multiline?a-r:(a-w)/2,v=S+=2,M=0,F=0,k=0;if(r<=0){i=`(...) Tj
+`,i+="% Width of Text: "+Rc(i,t,r=12).width+", FieldWidth:"+d+`
+`;break}for(var I="",L=0,z=0;z<o.length;z++)if(o.hasOwnProperty(z)){var $=!1;if(o[z].length!==1&&k!==o[z].length-1){if((w+2)*(L+2)+2>a)continue e;I+=o[z][k],$=!0,F=z,z--}else{I=(I+=o[z][k]+" ").substr(I.length-1)==" "?I.substr(0,I.length-1):I;var J=parseInt(z),re=p(J,I,r),de=z>=o.length-1;if(re&&!de){I+=" ",k=0;continue}if(re||de){if(de)F=J;else if(t.multiline&&(w+2)*(L+2)+2>a)continue e}else{if(!t.multiline||(w+2)*(L+2)+2>a)continue e;F=J}}for(var Y="",Ne=M;Ne<=F;Ne++){var Ae=o[Ne];if(t.multiline){if(Ne===F){Y+=Ae[k]+" ",k=(k+1)%Ae.length;continue}if(Ne===M){Y+=Ae[Ae.length-1]+" ";continue}}Y+=Ae[0]+" "}switch(Y=Y.substr(Y.length-1)==" "?Y.substr(0,Y.length-1):Y,y=Rc(Y,t,r).width,t.textAlign){case"right":_=d-y-2;break;case"center":_=(d-y)/2;break;case"left":default:_=2}i+=bt(_)+" "+bt(v)+` Td
+`,i+="("+xa(Y)+`) Tj
+`,i+=-bt(_)+` 0 Td
+`,v=-(r+2),y=0,M=$?F:F+1,L++,I=""}break}return e.text=i,e.fontSize=r,e},Rc=function(t,i,n){var e=i.scope.internal.getFont(i.fontName,i.fontStyle),o=i.scope.getStringUnitWidth(t,{font:e,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:i.scope.getStringUnitWidth("3",{font:e,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:o}},Ab={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Mb=function(t,i){var n={type:"reference",object:t};i.internal.getPageInfo(t.page).pageContext.annotations.find(function(e){return e.type===n.type&&e.object===n.object})===void 0&&i.internal.getPageInfo(t.page).pageContext.annotations.push(n)},Nb=function(t,i){for(var n in t)if(t.hasOwnProperty(n)){var e=n,o=t[n];i.internal.newObjectDeferredBegin(o.objId,!0),(0,ai.default)(o)==="object"&&typeof o.putStream=="function"&&o.putStream(),delete t[e]}},Tb=function(t,i){if(i.scope=t,t.internal!==void 0&&(t.internal.acroformPlugin===void 0||t.internal.acroformPlugin.isInitialized===!1)){if(vr.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(Ab)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Fu=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new j0,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",function(){(function(n){n.internal.events.unsubscribe(n.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete n.internal.acroformPlugin.acroFormDictionaryRoot._eventID,n.internal.acroformPlugin.printedOut=!0})(t)}),t.internal.events.subscribe("buildDocument",function(){(function(n){n.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var e=n.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];r.objId=void 0,r.hasAnnotation&&Mb(r,n)}})(t)}),t.internal.events.subscribe("putCatalog",function(){(function(n){if(n.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");n.internal.write("/AcroForm "+n.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(t)}),t.internal.events.subscribe("postPutPages",function(n){(function(e,o){var r=!e;for(var a in e||(o.internal.newObjectDeferredBegin(o.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),o.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e=e||o.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(e.hasOwnProperty(a)){var d=e[a],p=[],_=d.Rect;if(d.Rect&&(d.Rect=Fb(d.Rect,o)),o.internal.newObjectDeferredBegin(d.objId,!0),d.DA=et.createDefaultAppearanceStream(d),(0,ai.default)(d)==="object"&&typeof d.getKeyValueListForStream=="function"&&(p=d.getKeyValueListForStream()),d.Rect=_,d.hasAppearanceStream&&!d.appearanceStreamContent){var y=Ib(d);p.push({key:"AP",value:"<</N "+y+">>"}),o.internal.acroformPlugin.xForms.push(y)}if(d.appearanceStreamContent){var w="";for(var S in d.appearanceStreamContent)if(d.appearanceStreamContent.hasOwnProperty(S)){var v=d.appearanceStreamContent[S];if(w+="/"+S+" ",w+="<<",Object.keys(v).length>=1||Array.isArray(v)){for(var a in v)if(v.hasOwnProperty(a)){var M=v[a];typeof M=="function"&&(M=M.call(o,d)),w+="/"+a+" "+M+" ",o.internal.acroformPlugin.xForms.indexOf(M)>=0||o.internal.acroformPlugin.xForms.push(M)}}else typeof(M=v)=="function"&&(M=M.call(o,d)),w+="/"+a+" "+M,o.internal.acroformPlugin.xForms.indexOf(M)>=0||o.internal.acroformPlugin.xForms.push(M);w+=">>"}p.push({key:"AP",value:`<<
+`+w+">>"})}o.internal.putStream({additionalKeyValues:p,objectId:d.objId}),o.internal.out("endobj")}r&&Nb(o.internal.acroformPlugin.xForms,o)})(n,t)}),t.internal.acroformPlugin.isInitialized=!0}},q0=Ci.__acroform__.arrayToPdfArray=function(t,i,n){var e=function(a){return a};if(Array.isArray(t)){for(var o="[",r=0;r<t.length;r++)switch(r!==0&&(o+=" "),(0,ai.default)(t[r])){case"boolean":case"number":case"object":o+=t[r].toString();break;case"string":t[r].substr(0,1)!=="/"?(i!==void 0&&n&&(e=n.internal.getEncryptor(i)),o+="("+xa(e(t[r].toString()))+")"):o+=t[r].toString()}return o+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},vu=function(t,i,n){var e=function(o){return o};return i!==void 0&&n&&(e=n.internal.getEncryptor(i)),(t=t||"").toString(),t="("+xa(e(t))+")"},Yr=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Yr.prototype.toString=function(){return this.objId+" 0 R"},Yr.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},Yr.prototype.getKeyValueListForStream=function(){var t=[],i=Object.getOwnPropertyNames(this).filter(function(r){return r!="content"&&r!="appearanceStreamContent"&&r!="scope"&&r!="objId"&&r.substring(0,1)!="_"});for(var n in i)if(Object.getOwnPropertyDescriptor(this,i[n]).configurable===!1){var e=i[n],o=this[e];o&&(Array.isArray(o)?t.push({key:e,value:q0(o,this.objId,this.scope)}):o instanceof Yr?(o.scope=this.scope,t.push({key:e,value:o.objId+" 0 R"})):typeof o!="function"&&t.push({key:e,value:o}))}return t};var B0=function(){Yr.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,i=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return i},set:function(n){i=n}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(n){t=n.trim()},get:function(){return t||null}})};Mn(B0,Yr);var j0=function(){Yr.call(this);var t,i=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return i.length>0?i:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return i}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var n=function(e){return e};return this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),"("+xa(n(t))+")"}},set:function(n){t=n}})};Mn(j0,Yr);var vr=function t(){Yr.call(this);var i=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return i},set:function(I){if(isNaN(I))throw new Error('Invalid value "'+I+'" for attribute F supplied.');i=I}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!xi(i,3)},set:function(I){I?this.F=Ei(i,3):this.F=Fi(i,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(I){if(isNaN(I))throw new Error('Invalid value "'+I+'" for attribute Ff supplied.');n=I}});var e=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(e.length!==0)return e},set:function(I){e=I!==void 0?I:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!e||isNaN(e[0])?0:e[0]},set:function(I){e[0]=I}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!e||isNaN(e[1])?0:e[1]},set:function(I){e[1]=I}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!e||isNaN(e[2])?0:e[2]},set:function(I){e[2]=I}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!e||isNaN(e[3])?0:e[3]},set:function(I){e[3]=I}});var o="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return o},set:function(I){switch(I){case"/Btn":case"/Tx":case"/Ch":case"/Sig":o=I;break;default:throw new Error('Invalid value "'+I+'" for attribute FT supplied.')}}});var r=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!r||r.length<1){if(this instanceof Gc)return;r="FieldObject"+t.FieldNum++}var I=function(L){return L};return this.scope&&(I=this.scope.internal.getEncryptor(this.objId)),"("+xa(I(r))+")"},set:function(I){r=I.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return r},set:function(I){r=I}});var a="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return a},set:function(I){a=I}});var d="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return d},set:function(I){d=I}});var p=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return p},set:function(I){p=I}});var _=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return _===void 0?50/Fu:_},set:function(I){_=I}});var y="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return y},set:function(I){y=I}});var w="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!w||this instanceof Gc||this instanceof Sa))return vu(w,this.objId,this.scope)},set:function(I){I=I.toString(),w=I}});var S=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(S)return this instanceof Yi?S:vu(S,this.objId,this.scope)},set:function(I){I=I.toString(),S=this instanceof Yi?I:I.substr(0,1)==="("?pl(I.substr(1,I.length-2)):pl(I)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Yi?pl(S.substr(1,S.length-1)):S},set:function(I){I=I.toString(),S=this instanceof Yi?"/"+I:I}});var v=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(v)return v},set:function(I){this.V=I}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(v)return this instanceof Yi?v:vu(v,this.objId,this.scope)},set:function(I){I=I.toString(),v=this instanceof Yi?I:I.substr(0,1)==="("?pl(I.substr(1,I.length-2)):pl(I)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Yi?pl(v.substr(1,v.length-1)):v},set:function(I){I=I.toString(),v=this instanceof Yi?"/"+I:I}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var M,F=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return F},set:function(I){I=!!I,F=I}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(M)return M},set:function(I){M=I}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,1)},set:function(I){I?this.Ff=Ei(this.Ff,1):this.Ff=Fi(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,2)},set:function(I){I?this.Ff=Ei(this.Ff,2):this.Ff=Fi(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,3)},set:function(I){I?this.Ff=Ei(this.Ff,3):this.Ff=Fi(this.Ff,3)}});var k=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(k!==null)return k},set:function(I){if([0,1,2].indexOf(I)===-1)throw new Error('Invalid value "'+I+'" for attribute Q supplied.');k=I}}),Object.defineProperty(this,"textAlign",{get:function(){var I;switch(k){case 0:default:I="left";break;case 1:I="center";break;case 2:I="right"}return I},configurable:!0,enumerable:!0,set:function(I){switch(I){case"right":case 2:k=2;break;case"center":case 1:k=1;break;case"left":case 0:default:k=0}}})};Mn(vr,Yr);var vl=function(){vr.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(n){t=n}});var i=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return q0(i,this.objId,this.scope)},set:function(n){var e,o;o=[],typeof(e=n)=="string"&&(o=function(r,a,d){d||(d=1);for(var p,_=[];p=a.exec(r);)_.push(p[d]);return _}(e,/\((.*?)\)/g)),i=o}}),this.getOptions=function(){return i},this.setOptions=function(n){i=n,this.sort&&i.sort()},this.addOption=function(n){n=(n=n||"").toString(),i.push(n),this.sort&&i.sort()},this.removeOption=function(n,e){for(e=e||!1,n=(n=n||"").toString();i.indexOf(n)!==-1&&(i.splice(i.indexOf(n),1),e!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,18)},set:function(n){n?this.Ff=Ei(this.Ff,18):this.Ff=Fi(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,19)},set:function(n){this.combo===!0&&(n?this.Ff=Ei(this.Ff,19):this.Ff=Fi(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,20)},set:function(n){n?(this.Ff=Ei(this.Ff,20),i.sort()):this.Ff=Fi(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,22)},set:function(n){n?this.Ff=Ei(this.Ff,22):this.Ff=Fi(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,23)},set:function(n){n?this.Ff=Ei(this.Ff,23):this.Ff=Fi(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,27)},set:function(n){n?this.Ff=Ei(this.Ff,27):this.Ff=Fi(this.Ff,27)}}),this.hasAppearanceStream=!1};Mn(vl,vr);var _l=function(){vl.call(this),this.fontName="helvetica",this.combo=!1};Mn(_l,vl);var bl=function(){_l.call(this),this.combo=!0};Mn(bl,_l);var Bc=function(){bl.call(this),this.edit=!0};Mn(Bc,bl);var Yi=function(){vr.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,15)},set:function(n){n?this.Ff=Ei(this.Ff,15):this.Ff=Fi(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,16)},set:function(n){n?this.Ff=Ei(this.Ff,16):this.Ff=Fi(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,17)},set:function(n){n?this.Ff=Ei(this.Ff,17):this.Ff=Fi(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,26)},set:function(n){n?this.Ff=Ei(this.Ff,26):this.Ff=Fi(this.Ff,26)}});var t,i={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(r){return r};if(this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),Object.keys(i).length!==0){var e,o=[];for(e in o.push("<<"),i)o.push("/"+e+" ("+xa(n(i[e]))+")");return o.push(">>"),o.join(`
+`)}},set:function(n){(0,ai.default)(n)==="object"&&(i=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(n){typeof n=="string"&&(i.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(n){t="/"+n}})};Mn(Yi,vr);var jc=function(){Yi.call(this),this.pushButton=!0};Mn(jc,Yi);var yl=function(){Yi.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(i){t=i!==void 0?i:[]}})};Mn(yl,Yi);var Gc=function(){var t,i;vr.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(o){t=o}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return i},set:function(o){i=o}});var n,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var o=function(d){return d};this.scope&&(o=this.scope.internal.getEncryptor(this.objId));var r,a=[];for(r in a.push("<<"),e)a.push("/"+r+" ("+xa(o(e[r]))+")");return a.push(">>"),a.join(`
+`)},set:function(o){(0,ai.default)(o)==="object"&&(e=o)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(o){typeof o=="string"&&(e.CA=o)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(o){n=o}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(o){n="/"+o}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=et.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Mn(Gc,vr),yl.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var i in this.Kids)if(this.Kids.hasOwnProperty(i)){var n=this.Kids[i];n.appearanceStreamContent=t.createAppearanceStream(n.optionName),n.caption=t.getCA()}},yl.prototype.createOption=function(t){var i=new Gc;return i.Parent=this,i.optionName=t,this.Kids.push(i),Pb.call(this.scope,i),i};var Uc=function(){Yi.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=et.CheckBox.createAppearanceStream()};Mn(Uc,Yi);var Sa=function(){vr.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,13)},set:function(i){i?this.Ff=Ei(this.Ff,13):this.Ff=Fi(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,21)},set:function(i){i?this.Ff=Ei(this.Ff,21):this.Ff=Fi(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,23)},set:function(i){i?this.Ff=Ei(this.Ff,23):this.Ff=Fi(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,24)},set:function(i){i?this.Ff=Ei(this.Ff,24):this.Ff=Fi(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,25)},set:function(i){i?this.Ff=Ei(this.Ff,25):this.Ff=Fi(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,26)},set:function(i){i?this.Ff=Ei(this.Ff,26):this.Ff=Fi(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(i){t=i}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(i){Number.isInteger(i)&&(t=i)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Mn(Sa,vr);var zc=function(){Sa.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!xi(this.Ff,14)},set:function(t){t?this.Ff=Ei(this.Ff,14):this.Ff=Fi(this.Ff,14)}}),this.password=!0};Mn(zc,Sa);var et={CheckBox:{createAppearanceStream:function(){return{N:{On:et.CheckBox.YesNormal},D:{On:et.CheckBox.YesPushDown,Off:et.CheckBox.OffPushDown}}},YesPushDown:function(t){var i=Kr(t);i.scope=t.scope;var n=[],e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,o=t.scope.__private__.encodeColorString(t.color),r=Su(t,t.caption);return n.push("0.749023 g"),n.push("0 0 "+bt(et.internal.getWidth(t))+" "+bt(et.internal.getHeight(t))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+e+" "+bt(r.fontSize)+" Tf "+o),n.push("BT"),n.push(r.text),n.push("ET"),n.push("Q"),n.push("EMC"),i.stream=n.join(`
+`),i},YesNormal:function(t){var i=Kr(t);i.scope=t.scope;var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,e=t.scope.__private__.encodeColorString(t.color),o=[],r=et.internal.getHeight(t),a=et.internal.getWidth(t),d=Su(t,t.caption);return o.push("1 g"),o.push("0 0 "+bt(a)+" "+bt(r)+" re"),o.push("f"),o.push("q"),o.push("0 0 1 rg"),o.push("0 0 "+bt(a-1)+" "+bt(r-1)+" re"),o.push("W"),o.push("n"),o.push("0 g"),o.push("BT"),o.push("/"+n+" "+bt(d.fontSize)+" Tf "+e),o.push(d.text),o.push("ET"),o.push("Q"),i.stream=o.join(`
+`),i},OffPushDown:function(t){var i=Kr(t);i.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+bt(et.internal.getWidth(t))+" "+bt(et.internal.getHeight(t))+" re"),n.push("f"),i.stream=n.join(`
+`),i}},RadioButton:{Circle:{createAppearanceStream:function(t){var i={D:{Off:et.RadioButton.Circle.OffPushDown},N:{}};return i.N[t]=et.RadioButton.Circle.YesNormal,i.D[t]=et.RadioButton.Circle.YesPushDown,i},getCA:function(){return"l"},YesNormal:function(t){var i=Kr(t);i.scope=t.scope;var n=[],e=et.internal.getWidth(t)<=et.internal.getHeight(t)?et.internal.getWidth(t)/4:et.internal.getHeight(t)/4;e=Number((.9*e).toFixed(5));var o=et.internal.Bezier_C,r=Number((e*o).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+Zo(et.internal.getWidth(t)/2)+" "+Zo(et.internal.getHeight(t)/2)+" cm"),n.push(e+" 0 m"),n.push(e+" "+r+" "+r+" "+e+" 0 "+e+" c"),n.push("-"+r+" "+e+" -"+e+" "+r+" -"+e+" 0 c"),n.push("-"+e+" -"+r+" -"+r+" -"+e+" 0 -"+e+" c"),n.push(r+" -"+e+" "+e+" -"+r+" "+e+" 0 c"),n.push("f"),n.push("Q"),i.stream=n.join(`
+`),i},YesPushDown:function(t){var i=Kr(t);i.scope=t.scope;var n=[],e=et.internal.getWidth(t)<=et.internal.getHeight(t)?et.internal.getWidth(t)/4:et.internal.getHeight(t)/4;e=Number((.9*e).toFixed(5));var o=Number((2*e).toFixed(5)),r=Number((o*et.internal.Bezier_C).toFixed(5)),a=Number((e*et.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Zo(et.internal.getWidth(t)/2)+" "+Zo(et.internal.getHeight(t)/2)+" cm"),n.push(o+" 0 m"),n.push(o+" "+r+" "+r+" "+o+" 0 "+o+" c"),n.push("-"+r+" "+o+" -"+o+" "+r+" -"+o+" 0 c"),n.push("-"+o+" -"+r+" -"+r+" -"+o+" 0 -"+o+" c"),n.push(r+" -"+o+" "+o+" -"+r+" "+o+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+Zo(et.internal.getWidth(t)/2)+" "+Zo(et.internal.getHeight(t)/2)+" cm"),n.push(e+" 0 m"),n.push(e+" "+a+" "+a+" "+e+" 0 "+e+" c"),n.push("-"+a+" "+e+" -"+e+" "+a+" -"+e+" 0 c"),n.push("-"+e+" -"+a+" -"+a+" -"+e+" 0 -"+e+" c"),n.push(a+" -"+e+" "+e+" -"+a+" "+e+" 0 c"),n.push("f"),n.push("Q"),i.stream=n.join(`
+`),i},OffPushDown:function(t){var i=Kr(t);i.scope=t.scope;var n=[],e=et.internal.getWidth(t)<=et.internal.getHeight(t)?et.internal.getWidth(t)/4:et.internal.getHeight(t)/4;e=Number((.9*e).toFixed(5));var o=Number((2*e).toFixed(5)),r=Number((o*et.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Zo(et.internal.getWidth(t)/2)+" "+Zo(et.internal.getHeight(t)/2)+" cm"),n.push(o+" 0 m"),n.push(o+" "+r+" "+r+" "+o+" 0 "+o+" c"),n.push("-"+r+" "+o+" -"+o+" "+r+" -"+o+" 0 c"),n.push("-"+o+" -"+r+" -"+r+" -"+o+" 0 -"+o+" c"),n.push(r+" -"+o+" "+o+" -"+r+" "+o+" 0 c"),n.push("f"),n.push("Q"),i.stream=n.join(`
+`),i}},Cross:{createAppearanceStream:function(t){var i={D:{Off:et.RadioButton.Cross.OffPushDown},N:{}};return i.N[t]=et.RadioButton.Cross.YesNormal,i.D[t]=et.RadioButton.Cross.YesPushDown,i},getCA:function(){return"8"},YesNormal:function(t){var i=Kr(t);i.scope=t.scope;var n=[],e=et.internal.calculateCross(t);return n.push("q"),n.push("1 1 "+bt(et.internal.getWidth(t)-2)+" "+bt(et.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(bt(e.x1.x)+" "+bt(e.x1.y)+" m"),n.push(bt(e.x2.x)+" "+bt(e.x2.y)+" l"),n.push(bt(e.x4.x)+" "+bt(e.x4.y)+" m"),n.push(bt(e.x3.x)+" "+bt(e.x3.y)+" l"),n.push("s"),n.push("Q"),i.stream=n.join(`
+`),i},YesPushDown:function(t){var i=Kr(t);i.scope=t.scope;var n=et.internal.calculateCross(t),e=[];return e.push("0.749023 g"),e.push("0 0 "+bt(et.internal.getWidth(t))+" "+bt(et.internal.getHeight(t))+" re"),e.push("f"),e.push("q"),e.push("1 1 "+bt(et.internal.getWidth(t)-2)+" "+bt(et.internal.getHeight(t)-2)+" re"),e.push("W"),e.push("n"),e.push(bt(n.x1.x)+" "+bt(n.x1.y)+" m"),e.push(bt(n.x2.x)+" "+bt(n.x2.y)+" l"),e.push(bt(n.x4.x)+" "+bt(n.x4.y)+" m"),e.push(bt(n.x3.x)+" "+bt(n.x3.y)+" l"),e.push("s"),e.push("Q"),i.stream=e.join(`
+`),i},OffPushDown:function(t){var i=Kr(t);i.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+bt(et.internal.getWidth(t))+" "+bt(et.internal.getHeight(t))+" re"),n.push("f"),i.stream=n.join(`
+`),i}}},createDefaultAppearanceStream:function(t){var i=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color);return"/"+i+" "+t.fontSize+" Tf "+n}};et.internal={Bezier_C:.551915024494,calculateCross:function(t){var i=et.internal.getWidth(t),n=et.internal.getHeight(t),e=Math.min(i,n);return{x1:{x:(i-e)/2,y:(n-e)/2+e},x2:{x:(i-e)/2+e,y:(n-e)/2},x3:{x:(i-e)/2,y:(n-e)/2},x4:{x:(i-e)/2+e,y:(n-e)/2+e}}}},et.internal.getWidth=function(t){var i=0;return(0,ai.default)(t)==="object"&&(i=S0(t.Rect[2])),i},et.internal.getHeight=function(t){var i=0;return(0,ai.default)(t)==="object"&&(i=S0(t.Rect[3])),i};var Pb=Ci.addField=function(t){if(Tb(this,t),!(t instanceof vr))throw new Error("Invalid argument passed to jsPDF.addField.");var i;return(i=t).scope.internal.acroformPlugin.printedOut&&(i.scope.internal.acroformPlugin.printedOut=!1,i.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),i.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(i),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};Ci.AcroFormChoiceField=vl,Ci.AcroFormListBox=_l,Ci.AcroFormComboBox=bl,Ci.AcroFormEditBox=Bc,Ci.AcroFormButton=Yi,Ci.AcroFormPushButton=jc,Ci.AcroFormRadioButton=yl,Ci.AcroFormCheckBox=Uc,Ci.AcroFormTextField=Sa,Ci.AcroFormPasswordField=zc,Ci.AcroFormAppearance=et,Ci.AcroForm={ChoiceField:vl,ListBox:_l,ComboBox:bl,EditBox:Bc,Button:Yi,PushButton:jc,RadioButton:yl,CheckBox:Uc,TextField:Sa,PasswordField:zc,Appearance:et},dt.AcroForm={ChoiceField:vl,ListBox:_l,ComboBox:bl,EditBox:Bc,Button:Yi,PushButton:jc,RadioButton:yl,CheckBox:Uc,TextField:Sa,PasswordField:zc,Appearance:et};var RE=dt.AcroForm;function U0(t){return t.reduce(function(i,n,e){return i[n]=e,i},{})}(function(t){t.__addimage__={};var i="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},e=t.__addimage__.getImageFileTypeByImageData=function(B,R){var Z,K,we,be,Ee,he=i;if((R=R||i)==="RGBA"||B.data!==void 0&&B.data instanceof Uint8ClampedArray&&"height"in B&&"width"in B)return"RGBA";if(re(B))for(Ee in n)for(we=n[Ee],Z=0;Z<we.length;Z+=1){for(be=!0,K=0;K<we[Z].length;K+=1)if(we[Z][K]!==void 0&&we[Z][K]!==B[K]){be=!1;break}if(be===!0){he=Ee;break}}else for(Ee in n)for(we=n[Ee],Z=0;Z<we.length;Z+=1){for(be=!0,K=0;K<we[Z].length;K+=1)if(we[Z][K]!==void 0&&we[Z][K]!==B.charCodeAt(K)){be=!1;break}if(be===!0){he=Ee;break}}return he===i&&R!==i&&(he=R),he},o=function B(R){for(var Z=this.internal.write,K=this.internal.putStream,we=(0,this.internal.getFilters)();we.indexOf("FlateEncode")!==-1;)we.splice(we.indexOf("FlateEncode"),1);R.objectId=this.internal.newObject();var be=[];if(be.push({key:"Type",value:"/XObject"}),be.push({key:"Subtype",value:"/Image"}),be.push({key:"Width",value:R.width}),be.push({key:"Height",value:R.height}),R.colorSpace===k.INDEXED?be.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(R.palette.length/3-1)+" "+("sMask"in R&&R.sMask!==void 0?R.objectId+2:R.objectId+1)+" 0 R]"}):(be.push({key:"ColorSpace",value:"/"+R.colorSpace}),R.colorSpace===k.DEVICE_CMYK&&be.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),be.push({key:"BitsPerComponent",value:R.bitsPerComponent}),"decodeParameters"in R&&R.decodeParameters!==void 0&&be.push({key:"DecodeParms",value:"<<"+R.decodeParameters+">>"}),"transparency"in R&&Array.isArray(R.transparency)){for(var Ee="",he=0,Ie=R.transparency.length;he<Ie;he++)Ee+=R.transparency[he]+" "+R.transparency[he]+" ";be.push({key:"Mask",value:"["+Ee+"]"})}R.sMask!==void 0&&be.push({key:"SMask",value:R.objectId+1+" 0 R"});var Fe=R.filter!==void 0?["/"+R.filter]:void 0;if(K({data:R.data,additionalKeyValues:be,alreadyAppliedFilters:Fe,objectId:R.objectId}),Z("endobj"),"sMask"in R&&R.sMask!==void 0){var Ge="/Predictor "+R.predictor+" /Colors 1 /BitsPerComponent "+R.bitsPerComponent+" /Columns "+R.width,T={width:R.width,height:R.height,colorSpace:"DeviceGray",bitsPerComponent:R.bitsPerComponent,decodeParameters:Ge,data:R.sMask};"filter"in R&&(T.filter=R.filter),B.call(this,T)}if(R.colorSpace===k.INDEXED){var U=this.internal.newObject();K({data:Y(new Uint8Array(R.palette)),objectId:U}),Z("endobj")}},r=function(){var B=this.internal.collections.addImage_images;for(var R in B)o.call(this,B[R])},a=function(){var B,R=this.internal.collections.addImage_images,Z=this.internal.write;for(var K in R)Z("/I"+(B=R[K]).index,B.objectId,"0","R")},d=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",r),this.internal.events.subscribe("putXobjectDict",a))},p=function(){var B=this.internal.collections.addImage_images;return d.call(this),B},_=function(){return Object.keys(this.internal.collections.addImage_images).length},y=function(B){return typeof t["process"+B.toUpperCase()]=="function"},w=function(B){return(0,ai.default)(B)==="object"&&B.nodeType===1},S=function(B,R){if(B.nodeName==="IMG"&&B.hasAttribute("src")){var Z=""+B.getAttribute("src");if(Z.indexOf("data:image/")===0)return us(unescape(Z).split("base64,").pop());var K=t.loadFile(Z,!0);if(K!==void 0)return K}if(B.nodeName==="CANVAS"){if(B.width===0||B.height===0)throw new Error("Given canvas must have data. Canvas width: "+B.width+", height: "+B.height);var we;switch(R){case"PNG":we="image/png";break;case"WEBP":we="image/webp";break;case"JPEG":case"JPG":default:we="image/jpeg"}return us(B.toDataURL(we,1).split("base64,").pop())}},v=function(B){var R=this.internal.collections.addImage_images;if(R){for(var Z in R)if(B===R[Z].alias)return R[Z]}},M=function(B,R,Z){return B||R||(B=-96,R=-96),B<0&&(B=-1*Z.width*72/B/this.internal.scaleFactor),R<0&&(R=-1*Z.height*72/R/this.internal.scaleFactor),B===0&&(B=R*Z.width/Z.height),R===0&&(R=B*Z.height/Z.width),[B,R]},F=function(B,R,Z,K,we,be){var Ee=M.call(this,Z,K,we),he=this.internal.getCoordinateString,Ie=this.internal.getVerticalCoordinateString,Fe=p.call(this);if(Z=Ee[0],K=Ee[1],Fe[we.index]=we,be){be*=Math.PI/180;var Ge=Math.cos(be),T=Math.sin(be),U=function(ie){return ie.toFixed(4)},G=[U(Ge),U(T),U(-1*T),U(Ge),0,0,"cm"]}this.internal.write("q"),be?(this.internal.write([1,"0","0",1,he(B),Ie(R+K),"cm"].join(" ")),this.internal.write(G.join(" ")),this.internal.write([he(Z),"0","0",he(K),"0","0","cm"].join(" "))):this.internal.write([he(Z),"0","0",he(K),he(B),Ie(R+K),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+we.index+" Do"),this.internal.write("Q")},k=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var I=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},L=t.__addimage__.sHashCode=function(B){var R,Z,K=0;if(typeof B=="string")for(Z=B.length,R=0;R<Z;R++)K=(K<<5)-K+B.charCodeAt(R),K|=0;else if(re(B))for(Z=B.byteLength/2,R=0;R<Z;R++)K=(K<<5)-K+B[R],K|=0;return K},z=t.__addimage__.validateStringAsBase64=function(B){(B=B||"").toString().trim();var R=!0;return B.length===0&&(R=!1),B.length%4!=0&&(R=!1),/^[A-Za-z0-9+/]+$/.test(B.substr(0,B.length-2))===!1&&(R=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(B.substr(-2))===!1&&(R=!1),R},$=t.__addimage__.extractImageFromDataUrl=function(B){var R=(B=B||"").split("base64,"),Z=null;if(R.length===2){var K=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(R[0]);Array.isArray(K)&&(Z={mimeType:K[1],charset:K[2],data:R[1]})}return Z},J=t.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};t.__addimage__.isArrayBuffer=function(B){return J()&&B instanceof ArrayBuffer};var re=t.__addimage__.isArrayBufferView=function(B){return J()&&typeof Uint32Array<"u"&&(B instanceof Int8Array||B instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&B instanceof Uint8ClampedArray||B instanceof Int16Array||B instanceof Uint16Array||B instanceof Int32Array||B instanceof Uint32Array||B instanceof Float32Array||B instanceof Float64Array)},de=t.__addimage__.binaryStringToUint8Array=function(B){for(var R=B.length,Z=new Uint8Array(R),K=0;K<R;K++)Z[K]=B.charCodeAt(K);return Z},Y=t.__addimage__.arrayBufferToBinaryString=function(B){for(var R="",Z=re(B)?B:new Uint8Array(B),K=0;K<Z.length;K+=8192)R+=String.fromCharCode.apply(null,Z.subarray(K,K+8192));return R};t.addImage=function(){var B,R,Z,K,we,be,Ee,he,Ie;if(typeof arguments[1]=="number"?(R=i,Z=arguments[1],K=arguments[2],we=arguments[3],be=arguments[4],Ee=arguments[5],he=arguments[6],Ie=arguments[7]):(R=arguments[1],Z=arguments[2],K=arguments[3],we=arguments[4],be=arguments[5],Ee=arguments[6],he=arguments[7],Ie=arguments[8]),(0,ai.default)(B=arguments[0])==="object"&&!w(B)&&"imageData"in B){var Fe=B;B=Fe.imageData,R=Fe.format||R||i,Z=Fe.x||Z||0,K=Fe.y||K||0,we=Fe.w||Fe.width||we,be=Fe.h||Fe.height||be,Ee=Fe.alias||Ee,he=Fe.compression||he,Ie=Fe.rotation||Fe.angle||Ie}var Ge=this.internal.getFilters();if(he===void 0&&Ge.indexOf("FlateEncode")!==-1&&(he="SLOW"),isNaN(Z)||isNaN(K))throw new Error("Invalid coordinates passed to jsPDF.addImage");d.call(this);var T=Ne.call(this,B,R,Ee,he);return F.call(this,Z,K,we,be,T,Ie),this};var Ne=function(B,R,Z,K){var we,be,Ee;if(typeof B=="string"&&e(B)===i){B=unescape(B);var he=Ae(B,!1);(he!==""||(he=t.loadFile(B,!0))!==void 0)&&(B=he)}if(w(B)&&(B=S(B,R)),R=e(B,R),!y(R))throw new Error("addImage does not support files of type '"+R+"', please ensure that a plugin for '"+R+"' support is added.");if(((Ee=Z)==null||Ee.length===0)&&(Z=function(Ie){return typeof Ie=="string"||re(Ie)?L(Ie):re(Ie.data)?L(Ie.data):null}(B)),(we=v.call(this,Z))||(J()&&(B instanceof Uint8Array||R==="RGBA"||(be=B,B=de(B))),we=this["process"+R.toUpperCase()](B,_.call(this),Z,function(Ie){return Ie&&typeof Ie=="string"&&(Ie=Ie.toUpperCase()),Ie in t.image_compression?Ie:I.NONE}(K),be)),!we)throw new Error("An unknown error occurred whilst processing the image.");return we},Ae=t.__addimage__.convertBase64ToBinaryString=function(B,R){var Z;R=typeof R!="boolean"||R;var K,we="";if(typeof B=="string"){K=(Z=$(B))!==null?Z.data:B;try{we=us(K)}catch(be){if(R)throw z(K)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+be.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return we};t.getImageProperties=function(B){var R,Z,K="";if(w(B)&&(B=S(B)),typeof B=="string"&&e(B)===i&&((K=Ae(B,!1))===""&&(K=t.loadFile(B)||""),B=K),Z=e(B),!y(Z))throw new Error("addImage does not support files of type '"+Z+"', please ensure that a plugin for '"+Z+"' support is added.");if(!J()||B instanceof Uint8Array||(B=de(B)),!(R=this["process"+Z.toUpperCase()](B)))throw new Error("An unknown error occurred whilst processing the image");return R.fileType=Z,R}})(dt.API),function(t){var i=function(n){if(n!==void 0&&n!="")return!0};dt.API.events.push(["addPage",function(n){this.internal.getPageInfo(n.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(n){for(var e,o,r,a=this.internal.getCoordinateString,d=this.internal.getVerticalCoordinateString,p=this.internal.getPageInfoByObjId(n.objId),_=n.pageContext.annotations,y=!1,w=0;w<_.length&&!y;w++)switch((e=_[w]).type){case"link":(i(e.options.url)||i(e.options.pageNumber))&&(y=!0);break;case"reference":case"text":case"freetext":y=!0}if(y!=0){this.internal.write("/Annots [");for(var S=0;S<_.length;S++){e=_[S];var v=this.internal.pdfEscape,M=this.internal.getEncryptor(n.objId);switch(e.type){case"reference":this.internal.write(" "+e.object.objId+" 0 R ");break;case"text":var F=this.internal.newAdditionalObject(),k=this.internal.newAdditionalObject(),I=this.internal.getEncryptor(F.objId),L=e.title||"Note";r="<</Type /Annot /Subtype /Text "+(o="/Rect ["+a(e.bounds.x)+" "+d(e.bounds.y+e.bounds.h)+" "+a(e.bounds.x+e.bounds.w)+" "+d(e.bounds.y)+"] ")+"/Contents ("+v(I(e.contents))+")",r+=" /Popup "+k.objId+" 0 R",r+=" /P "+p.objId+" 0 R",r+=" /T ("+v(I(L))+") >>",F.content=r;var z=F.objId+" 0 R";r="<</Type /Annot /Subtype /Popup "+(o="/Rect ["+a(e.bounds.x+30)+" "+d(e.bounds.y+e.bounds.h)+" "+a(e.bounds.x+e.bounds.w+30)+" "+d(e.bounds.y)+"] ")+" /Parent "+z,e.open&&(r+=" /Open true"),r+=" >>",k.content=r,this.internal.write(F.objId,"0 R",k.objId,"0 R");break;case"freetext":o="/Rect ["+a(e.bounds.x)+" "+d(e.bounds.y)+" "+a(e.bounds.x+e.bounds.w)+" "+d(e.bounds.y+e.bounds.h)+"] ";var $=e.color||"#000000";r="<</Type /Annot /Subtype /FreeText "+o+"/Contents ("+v(M(e.contents))+")",r+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+$+")",r+=" /Border [0 0 0]",r+=" >>",this.internal.write(r);break;case"link":if(e.options.name){var J=this.annotations._nameMap[e.options.name];e.options.pageNumber=J.page,e.options.top=J.y}else e.options.top||(e.options.top=0);if(o="/Rect ["+e.finalBounds.x+" "+e.finalBounds.y+" "+e.finalBounds.w+" "+e.finalBounds.h+"] ",r="",e.options.url)r="<</Type /Annot /Subtype /Link "+o+"/Border [0 0 0] /A <</S /URI /URI ("+v(M(e.options.url))+") >>";else if(e.options.pageNumber)switch(r="<</Type /Annot /Subtype /Link "+o+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(e.options.pageNumber).objId+" 0 R",e.options.magFactor=e.options.magFactor||"XYZ",e.options.magFactor){case"Fit":r+=" /Fit]";break;case"FitH":r+=" /FitH "+e.options.top+"]";break;case"FitV":e.options.left=e.options.left||0,r+=" /FitV "+e.options.left+"]";break;case"XYZ":default:var re=d(e.options.top);e.options.left=e.options.left||0,e.options.zoom===void 0&&(e.options.zoom=0),r+=" /XYZ "+e.options.left+" "+re+" "+e.options.zoom+"]"}r!=""&&(r+=" >>",this.internal.write(r))}}this.internal.write("]")}}]),t.createAnnotation=function(n){var e=this.internal.getCurrentPageInfo();switch(n.type){case"link":this.link(n.bounds.x,n.bounds.y,n.bounds.w,n.bounds.h,n);break;case"text":case"freetext":e.pageContext.annotations.push(n)}},t.link=function(n,e,o,r,a){var d=this.internal.getCurrentPageInfo(),p=this.internal.getCoordinateString,_=this.internal.getVerticalCoordinateString;d.pageContext.annotations.push({finalBounds:{x:p(n),y:_(e),w:p(n+o),h:_(e+r)},options:a,type:"link"})},t.textWithLink=function(n,e,o,r){var a,d,p=this.getTextWidth(n),_=this.internal.getLineHeight()/this.internal.scaleFactor;if(r.maxWidth!==void 0){d=r.maxWidth;var y=this.splitTextToSize(n,d).length;a=Math.ceil(_*y)}else d=p,a=_;return this.text(n,e,o,r),o+=.2*_,r.align==="center"&&(e-=p/2),r.align==="right"&&(e-=p),this.link(e,o-_,d,a,r),p},t.getTextWidth=function(n){var e=this.internal.getFontSize();return this.getStringUnitWidth(n)*e/this.internal.scaleFactor}}(dt.API),function(t){var i={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},e={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},o=[1570,1571,1573,1575];t.__arabicParser__={};var r=t.__arabicParser__.isInArabicSubstitutionA=function(F){return i[F.charCodeAt(0)]!==void 0},a=t.__arabicParser__.isArabicLetter=function(F){return typeof F=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(F)},d=t.__arabicParser__.isArabicEndLetter=function(F){return a(F)&&r(F)&&i[F.charCodeAt(0)].length<=2},p=t.__arabicParser__.isArabicAlfLetter=function(F){return a(F)&&o.indexOf(F.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(F){return a(F)&&r(F)&&i[F.charCodeAt(0)].length>=1};var _=t.__arabicParser__.arabicLetterHasFinalForm=function(F){return a(F)&&r(F)&&i[F.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(F){return a(F)&&r(F)&&i[F.charCodeAt(0)].length>=3};var y=t.__arabicParser__.arabicLetterHasMedialForm=function(F){return a(F)&&r(F)&&i[F.charCodeAt(0)].length==4},w=t.__arabicParser__.resolveLigatures=function(F){var k=0,I=n,L="",z=0;for(k=0;k<F.length;k+=1)I[F.charCodeAt(k)]!==void 0?(z++,typeof(I=I[F.charCodeAt(k)])=="number"&&(L+=String.fromCharCode(I),I=n,z=0),k===F.length-1&&(I=n,L+=F.charAt(k-(z-1)),k-=z-1,z=0)):(I=n,L+=F.charAt(k-z),k-=z,z=0);return L};t.__arabicParser__.isArabicDiacritic=function(F){return F!==void 0&&e[F.charCodeAt(0)]!==void 0};var S=t.__arabicParser__.getCorrectForm=function(F,k,I){return a(F)?r(F)===!1?-1:!_(F)||!a(k)&&!a(I)||!a(I)&&d(k)||d(F)&&!a(k)||d(F)&&p(k)||d(F)&&d(k)?0:y(F)&&a(k)&&!d(k)&&a(I)&&_(I)?3:d(F)||!a(I)?1:2:-1},v=function(F){var k=0,I=0,L=0,z="",$="",J="",re=(F=F||"").split("\\s+"),de=[];for(k=0;k<re.length;k+=1){for(de.push(""),I=0;I<re[k].length;I+=1)z=re[k][I],$=re[k][I-1],J=re[k][I+1],a(z)?(L=S(z,$,J),de[k]+=L!==-1?String.fromCharCode(i[z.charCodeAt(0)][L]):z):de[k]+=z;de[k]=w(de[k])}return de.join(" ")},M=t.__arabicParser__.processArabic=t.processArabic=function(){var F,k=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,I=[];if(Array.isArray(k)){var L=0;for(I=[],L=0;L<k.length;L+=1)Array.isArray(k[L])?I.push([v(k[L][0]),k[L][1],k[L][2]]):I.push([v(k[L])]);F=I}else F=v(k);return typeof arguments[0]=="string"?F:(arguments[0].text=F,arguments[0])};t.events.push(["preProcessText",M])}(dt.API),dt.API.autoPrint=function(t){var i;switch((t=t||{}).variant=t.variant||"non-conform",t.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){i=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+i+" 0 R")})}return this},function(t){var i=function(){var n=void 0;Object.defineProperty(this,"pdf",{get:function(){return n},set:function(d){n=d}});var e=150;Object.defineProperty(this,"width",{get:function(){return e},set:function(d){e=isNaN(d)||Number.isInteger(d)===!1||d<0?150:d,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var o=300;Object.defineProperty(this,"height",{get:function(){return o},set:function(d){o=isNaN(d)||Number.isInteger(d)===!1||d<0?300:d,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=o+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(d){r=d}});var a={};Object.defineProperty(this,"style",{get:function(){return a},set:function(d){a=d}}),Object.defineProperty(this,"parentNode",{})};i.prototype.getContext=function(n,e){var o;if((n=n||"2d")!=="2d")return null;for(o in e)this.pdf.context2d.hasOwnProperty(o)&&(this.pdf.context2d[o]=e[o]);return this.pdf.context2d._canvas=this,this.pdf.context2d},i.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new i,this.canvas.pdf=this}])}(dt.API),function(t){var i={left:0,top:0,bottom:0,right:0},n=!1,e=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},i),this.internal.__cell__.margins.width=this.getPageWidth(),o.call(this))},o=function(){this.internal.__cell__.lastCell=new r,this.internal.__cell__.pages=1},r=function(){var p=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return p},set:function(F){p=F}});var _=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return _},set:function(F){_=F}});var y=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return y},set:function(F){y=F}});var w=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return w},set:function(F){w=F}});var S=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return S},set:function(F){S=F}});var v=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return v},set:function(F){v=F}});var M=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return M},set:function(F){M=F}}),this};r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},r.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(p){return e.call(this),this.internal.__cell__.headerFunction=typeof p=="function"?p:void 0,this},t.getTextDimensions=function(p,_){e.call(this);var y=(_=_||{}).fontSize||this.getFontSize(),w=_.font||this.getFont(),S=_.scaleFactor||this.internal.scaleFactor,v=0,M=0,F=0,k=this;if(!Array.isArray(p)&&typeof p!="string"){if(typeof p!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");p=String(p)}var I=_.maxWidth;I>0?typeof p=="string"?p=this.splitTextToSize(p,I):Object.prototype.toString.call(p)==="[object Array]"&&(p=p.reduce(function(z,$){return z.concat(k.splitTextToSize($,I))},[])):p=Array.isArray(p)?p:[p];for(var L=0;L<p.length;L++)v<(F=this.getStringUnitWidth(p[L],{font:w})*y)&&(v=F);return v!==0&&(M=p.length),{w:v/=S,h:Math.max((M*y*this.getLineHeightFactor()-y*(this.getLineHeightFactor()-1))/S,0)}},t.cellAddPage=function(){e.call(this),this.addPage();var p=this.internal.__cell__.margins||i;return this.internal.__cell__.lastCell=new r(p.left,p.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var a=t.cell=function(){var p;p=arguments[0]instanceof r?arguments[0]:new r(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),e.call(this);var _=this.internal.__cell__.lastCell,y=this.internal.__cell__.padding,w=this.internal.__cell__.margins||i,S=this.internal.__cell__.tableHeaderRow,v=this.internal.__cell__.printHeaders;return _.lineNumber!==void 0&&(_.lineNumber===p.lineNumber?(p.x=(_.x||0)+(_.width||0),p.y=_.y||0):_.y+_.height+p.height+w.bottom>this.getPageHeight()?(this.cellAddPage(),p.y=w.top,v&&S&&(this.printHeaderRow(p.lineNumber,!0),p.y+=S[0].height)):p.y=_.y+_.height||p.y),p.text[0]!==void 0&&(this.rect(p.x,p.y,p.width,p.height,n===!0?"FD":void 0),p.align==="right"?this.text(p.text,p.x+p.width-y,p.y+y,{align:"right",baseline:"top"}):p.align==="center"?this.text(p.text,p.x+p.width/2,p.y+y,{align:"center",baseline:"top",maxWidth:p.width-y-y}):this.text(p.text,p.x+y,p.y+y,{align:"left",baseline:"top",maxWidth:p.width-y-y})),this.internal.__cell__.lastCell=p,this};t.table=function(p,_,y,w,S){if(e.call(this),!y)throw new Error("No data for PDF table.");var v,M,F,k,I=[],L=[],z=[],$={},J={},re=[],de=[],Y=(S=S||{}).autoSize||!1,Ne=S.printHeaders!==!1,Ae=S.css&&S.css["font-size"]!==void 0?16*S.css["font-size"]:S.fontSize||12,B=S.margins||Object.assign({width:this.getPageWidth()},i),R=typeof S.padding=="number"?S.padding:3,Z=S.headerBackgroundColor||"#c8c8c8",K=S.headerTextColor||"#000";if(o.call(this),this.internal.__cell__.printHeaders=Ne,this.internal.__cell__.margins=B,this.internal.__cell__.table_font_size=Ae,this.internal.__cell__.padding=R,this.internal.__cell__.headerBackgroundColor=Z,this.internal.__cell__.headerTextColor=K,this.setFontSize(Ae),w==null)L=I=Object.keys(y[0]),z=I.map(function(){return"left"});else if(Array.isArray(w)&&(0,ai.default)(w[0])==="object")for(I=w.map(function(Fe){return Fe.name}),L=w.map(function(Fe){return Fe.prompt||Fe.name||""}),z=w.map(function(Fe){return Fe.align||"left"}),v=0;v<w.length;v+=1)J[w[v].name]=w[v].width*(19.049976/25.4);else Array.isArray(w)&&typeof w[0]=="string"&&(L=I=w,z=I.map(function(){return"left"}));if(Y||Array.isArray(w)&&typeof w[0]=="string")for(v=0;v<I.length;v+=1){for($[k=I[v]]=y.map(function(Fe){return Fe[k]}),this.setFont(void 0,"bold"),re.push(this.getTextDimensions(L[v],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),M=$[k],this.setFont(void 0,"normal"),F=0;F<M.length;F+=1)re.push(this.getTextDimensions(M[F],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);J[k]=Math.max.apply(null,re)+R+R,re=[]}if(Ne){var we={};for(v=0;v<I.length;v+=1)we[I[v]]={},we[I[v]].text=L[v],we[I[v]].align=z[v];var be=d.call(this,we,J);de=I.map(function(Fe){return new r(p,_,J[Fe],be,we[Fe].text,void 0,we[Fe].align)}),this.setTableHeaderRow(de),this.printHeaderRow(1,!1)}var Ee=w.reduce(function(Fe,Ge){return Fe[Ge.name]=Ge.align,Fe},{});for(v=0;v<y.length;v+=1){"rowStart"in S&&S.rowStart instanceof Function&&S.rowStart({row:v,data:y[v]},this);var he=d.call(this,y[v],J);for(F=0;F<I.length;F+=1){var Ie=y[v][I[F]];"cellStart"in S&&S.cellStart instanceof Function&&S.cellStart({row:v,col:F,data:Ie},this),a.call(this,new r(p,_,J[I[F]],he,Ie,v+2,Ee[I[F]]))}}return this.internal.__cell__.table_x=p,this.internal.__cell__.table_y=_,this};var d=function(p,_){var y=this.internal.__cell__.padding,w=this.internal.__cell__.table_font_size,S=this.internal.scaleFactor;return Object.keys(p).map(function(v){var M=p[v];return this.splitTextToSize(M.hasOwnProperty("text")?M.text:M,_[v]-y-y)},this).map(function(v){return this.getLineHeightFactor()*v.length*w/S+y+y},this).reduce(function(v,M){return Math.max(v,M)},0)};t.setTableHeaderRow=function(p){e.call(this),this.internal.__cell__.tableHeaderRow=p},t.printHeaderRow=function(p,_){if(e.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var y;if(n=!0,typeof this.internal.__cell__.headerFunction=="function"){var w=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new r(w[0],w[1],w[2],w[3],void 0,-1)}this.setFont(void 0,"bold");for(var S=[],v=0;v<this.internal.__cell__.tableHeaderRow.length;v+=1){y=this.internal.__cell__.tableHeaderRow[v].clone(),_&&(y.y=this.internal.__cell__.margins.top||0,S.push(y)),y.lineNumber=p;var M=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),a.call(this,y),this.setTextColor(M)}S.length>0&&this.setTableHeaderRow(S),this.setFont(void 0,"normal"),n=!1}}(dt.API);var z0={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},H0=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],xu=U0(H0),G0=[100,200,300,400,500,600,700,800,900],Lb=U0(G0);function Eu(t){var i=t.family.replace(/"|'/g,"").toLowerCase(),n=function(r){return z0[r=r||"normal"]?r:"normal"}(t.style),e=function(r){if(!r)return 400;if(typeof r=="number")return r>=100&&r<=900&&r%100==0?r:400;if(/^\d00$/.test(r))return parseInt(r);switch(r){case"bold":return 700;case"normal":default:return 400}}(t.weight),o=function(r){return typeof xu[r=r||"normal"]=="number"?r:"normal"}(t.stretch);return{family:i,style:n,weight:e,stretch:o,src:t.src||[],ref:t.ref||{name:i,style:[o,n,e].join(" ")}}}function x0(t,i,n,e){var o;for(o=n;o>=0&&o<i.length;o+=e)if(t[i[o]])return t[i[o]];for(o=n;o>=0&&o<i.length;o-=e)if(t[i[o]])return t[i[o]]}var Ob={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},E0={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function F0(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function kb(t,i,n){for(var e=(n=n||{}).defaultFontFamily||"times",o=Object.assign({},Ob,n.genericFontFamilies||{}),r=null,a=null,d=0;d<i.length;++d)if(o[(r=Eu(i[d])).family]&&(r.family=o[r.family]),t.hasOwnProperty(r.family)){a=t[r.family];break}if(!(a=a||t[e]))throw new Error("Could not find a font-family for the rule '"+F0(r)+"' and default family '"+e+"'.");if(a=function(p,_){if(_[p])return _[p];var y=xu[p],w=y<=xu.normal?-1:1,S=x0(_,H0,y,w);if(!S)throw new Error("Could not find a matching font-stretch value for "+p);return S}(r.stretch,a),a=function(p,_){if(_[p])return _[p];for(var y=z0[p],w=0;w<y.length;++w)if(_[y[w]])return _[y[w]];throw new Error("Could not find a matching font-style for "+p)}(r.style,a),!(a=function(p,_){if(_[p])return _[p];if(p===400&&_[500])return _[500];if(p===500&&_[400])return _[400];var y=Lb[p],w=x0(_,G0,y,p<400?-1:1);if(!w)throw new Error("Could not find a matching font-weight for value "+p);return w}(r.weight,a)))throw new Error("Failed to resolve a font for the rule '"+F0(r)+"'.");return a}function I0(t){return t.trimLeft()}function Db(t,i){for(var n=0;n<t.length;){if(t.charAt(n)===i)return[t.substring(0,n),t.substring(n+1)];n+=1}return null}function Rb(t){var i=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return i===null?null:[i[0],t.substring(i[0].length)]}var Vc,A0,M0,_u=["times"];(function(t){var i,n,e,o,r,a,d,p,_,y=function(T){return T=T||{},this.isStrokeTransparent=T.isStrokeTransparent||!1,this.strokeOpacity=T.strokeOpacity||1,this.strokeStyle=T.strokeStyle||"#000000",this.fillStyle=T.fillStyle||"#000000",this.isFillTransparent=T.isFillTransparent||!1,this.fillOpacity=T.fillOpacity||1,this.font=T.font||"10px sans-serif",this.textBaseline=T.textBaseline||"alphabetic",this.textAlign=T.textAlign||"left",this.lineWidth=T.lineWidth||1,this.lineJoin=T.lineJoin||"miter",this.lineCap=T.lineCap||"butt",this.path=T.path||[],this.transform=T.transform!==void 0?T.transform.clone():new p,this.globalCompositeOperation=T.globalCompositeOperation||"normal",this.globalAlpha=T.globalAlpha||1,this.clip_path=T.clip_path||[],this.currentPoint=T.currentPoint||new a,this.miterLimit=T.miterLimit||10,this.lastPoint=T.lastPoint||new a,this.lineDashOffset=T.lineDashOffset||0,this.lineDash=T.lineDash||[],this.margin=T.margin||[0,0,0,0],this.prevPageLastElemOffset=T.prevPageLastElemOffset||0,this.ignoreClearRect=typeof T.ignoreClearRect!="boolean"||T.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new w(this),i=this.internal.f2,n=this.internal.getCoordinateString,e=this.internal.getVerticalCoordinateString,o=this.internal.getHorizontalCoordinate,r=this.internal.getVerticalCoordinate,a=this.internal.Point,d=this.internal.Rectangle,p=this.internal.Matrix,_=new y}]);var w=function(T){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var U=T;Object.defineProperty(this,"pdf",{get:function(){return U}});var G=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return G},set:function(xe){G=!!xe}});var ie=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return ie},set:function(xe){ie=!!xe}});var le=0;Object.defineProperty(this,"posX",{get:function(){return le},set:function(xe){isNaN(xe)||(le=xe)}});var ge=0;Object.defineProperty(this,"posY",{get:function(){return ge},set:function(xe){isNaN(xe)||(ge=xe)}}),Object.defineProperty(this,"margin",{get:function(){return _.margin},set:function(xe){var W;typeof xe=="number"?W=[xe,xe,xe,xe]:((W=new Array(4))[0]=xe[0],W[1]=xe.length>=2?xe[1]:W[0],W[2]=xe.length>=3?xe[2]:W[0],W[3]=xe.length>=4?xe[3]:W[1]),_.margin=W}});var ve=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ve},set:function(xe){ve=xe}});var ye=0;Object.defineProperty(this,"lastBreak",{get:function(){return ye},set:function(xe){ye=xe}});var Be=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Be},set:function(xe){Be=xe}}),Object.defineProperty(this,"ctx",{get:function(){return _},set:function(xe){xe instanceof y&&(_=xe)}}),Object.defineProperty(this,"path",{get:function(){return _.path},set:function(xe){_.path=xe}});var qe=[];Object.defineProperty(this,"ctxStack",{get:function(){return qe},set:function(xe){qe=xe}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(xe){var W;W=S(xe),this.ctx.fillStyle=W.style,this.ctx.isFillTransparent=W.a===0,this.ctx.fillOpacity=W.a,this.pdf.setFillColor(W.r,W.g,W.b,{a:W.a}),this.pdf.setTextColor(W.r,W.g,W.b,{a:W.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(xe){var W=S(xe);this.ctx.strokeStyle=W.style,this.ctx.isStrokeTransparent=W.a===0,this.ctx.strokeOpacity=W.a,W.a===0?this.pdf.setDrawColor(255,255,255):(W.a,this.pdf.setDrawColor(W.r,W.g,W.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(xe){["butt","round","square"].indexOf(xe)!==-1&&(this.ctx.lineCap=xe,this.pdf.setLineCap(xe))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(xe){isNaN(xe)||(this.ctx.lineWidth=xe,this.pdf.setLineWidth(xe))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(xe){["bevel","round","miter"].indexOf(xe)!==-1&&(this.ctx.lineJoin=xe,this.pdf.setLineJoin(xe))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(xe){isNaN(xe)||(this.ctx.miterLimit=xe,this.pdf.setMiterLimit(xe))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(xe){this.ctx.textBaseline=xe}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(xe){["right","end","center","left","start"].indexOf(xe)!==-1&&(this.ctx.textAlign=xe)}});var Ke=null;function Je(xe,W){if(Ke===null){var yt=function(it){var De=[];return Object.keys(it).forEach(function(je){it[je].forEach(function(We){var He=null;switch(We){case"bold":He={family:je,weight:"bold"};break;case"italic":He={family:je,style:"italic"};break;case"bolditalic":He={family:je,weight:"bold",style:"italic"};break;case"":case"normal":He={family:je}}He!==null&&(He.ref={name:je,style:We},De.push(He))})}),De}(xe.getFontList());Ke=function(it){for(var De={},je=0;je<it.length;++je){var We=Eu(it[je]),He=We.family,rt=We.stretch,vt=We.style,xt=We.weight;De[He]=De[He]||{},De[He][rt]=De[He][rt]||{},De[He][rt][vt]=De[He][rt][vt]||{},De[He][rt][vt][xt]=We}return De}(yt.concat(W))}return Ke}var mt=null;Object.defineProperty(this,"fontFaces",{get:function(){return mt},set:function(xe){Ke=null,mt=xe}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(xe){var W;if(this.ctx.font=xe,(W=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(xe))!==null){var yt=W[1],it=(W[2],W[3]),De=W[4],je=(W[5],W[6]),We=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(De)[2];De=Math.floor(We==="px"?parseFloat(De)*this.pdf.internal.scaleFactor:We==="em"?parseFloat(De)*this.pdf.getFontSize():parseFloat(De)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(De);var He=function(ht){var Mt,$e,on=[],zt=ht.trim();if(zt==="")return _u;if(zt in E0)return[E0[zt]];for(;zt!=="";){switch($e=null,Mt=(zt=I0(zt)).charAt(0)){case'"':case"'":$e=Db(zt.substring(1),Mt);break;default:$e=Rb(zt)}if($e===null||(on.push($e[0]),(zt=I0($e[1]))!==""&&zt.charAt(0)!==","))return _u;zt=zt.replace(/^,/,"")}return on}(je);if(this.fontFaces){var rt=kb(Je(this.pdf,this.fontFaces),He.map(function(ht){return{family:ht,stretch:"normal",weight:it,style:yt}}));this.pdf.setFont(rt.ref.name,rt.ref.style)}else{var vt="";(it==="bold"||parseInt(it,10)>=700||yt==="bold")&&(vt="bold"),yt==="italic"&&(vt+="italic"),vt.length===0&&(vt="normal");for(var xt="",It={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},qt=0;qt<He.length;qt++){if(this.pdf.internal.getFont(He[qt],vt,{noFallback:!0,disableWarning:!0})!==void 0){xt=He[qt];break}if(vt==="bolditalic"&&this.pdf.internal.getFont(He[qt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)xt=He[qt],vt="bold";else if(this.pdf.internal.getFont(He[qt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){xt=He[qt],vt="normal";break}}if(xt===""){for(var ni=0;ni<He.length;ni++)if(It[He[ni]]){xt=It[He[ni]];break}}xt=xt===""?"Times":xt,this.pdf.setFont(xt,vt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(xe){this.ctx.globalCompositeOperation=xe}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(xe){this.ctx.globalAlpha=xe}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(xe){this.ctx.lineDashOffset=xe,Ge.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(xe){this.ctx.lineDash=xe,Ge.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(xe){this.ctx.ignoreClearRect=!!xe}})};w.prototype.setLineDash=function(T){this.lineDash=T},w.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},w.prototype.fill=function(){$.call(this,"fill",!1)},w.prototype.stroke=function(){$.call(this,"stroke",!1)},w.prototype.beginPath=function(){this.path=[{type:"begin"}]},w.prototype.moveTo=function(T,U){if(isNaN(T)||isNaN(U))throw ci.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var G=this.ctx.transform.applyToPoint(new a(T,U));this.path.push({type:"mt",x:G.x,y:G.y}),this.ctx.lastPoint=new a(T,U)},w.prototype.closePath=function(){var T=new a(0,0),U=0;for(U=this.path.length-1;U!==-1;U--)if(this.path[U].type==="begin"&&(0,ai.default)(this.path[U+1])==="object"&&typeof this.path[U+1].x=="number"){T=new a(this.path[U+1].x,this.path[U+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new a(T.x,T.y)},w.prototype.lineTo=function(T,U){if(isNaN(T)||isNaN(U))throw ci.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var G=this.ctx.transform.applyToPoint(new a(T,U));this.path.push({type:"lt",x:G.x,y:G.y}),this.ctx.lastPoint=new a(G.x,G.y)},w.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),$.call(this,null,!0)},w.prototype.quadraticCurveTo=function(T,U,G,ie){if(isNaN(G)||isNaN(ie)||isNaN(T)||isNaN(U))throw ci.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var le=this.ctx.transform.applyToPoint(new a(G,ie)),ge=this.ctx.transform.applyToPoint(new a(T,U));this.path.push({type:"qct",x1:ge.x,y1:ge.y,x:le.x,y:le.y}),this.ctx.lastPoint=new a(le.x,le.y)},w.prototype.bezierCurveTo=function(T,U,G,ie,le,ge){if(isNaN(le)||isNaN(ge)||isNaN(T)||isNaN(U)||isNaN(G)||isNaN(ie))throw ci.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ve=this.ctx.transform.applyToPoint(new a(le,ge)),ye=this.ctx.transform.applyToPoint(new a(T,U)),Be=this.ctx.transform.applyToPoint(new a(G,ie));this.path.push({type:"bct",x1:ye.x,y1:ye.y,x2:Be.x,y2:Be.y,x:ve.x,y:ve.y}),this.ctx.lastPoint=new a(ve.x,ve.y)},w.prototype.arc=function(T,U,G,ie,le,ge){if(isNaN(T)||isNaN(U)||isNaN(G)||isNaN(ie)||isNaN(le))throw ci.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ge=!!ge,!this.ctx.transform.isIdentity){var ve=this.ctx.transform.applyToPoint(new a(T,U));T=ve.x,U=ve.y;var ye=this.ctx.transform.applyToPoint(new a(0,G)),Be=this.ctx.transform.applyToPoint(new a(0,0));G=Math.sqrt(Math.pow(ye.x-Be.x,2)+Math.pow(ye.y-Be.y,2))}Math.abs(le-ie)>=2*Math.PI&&(ie=0,le=2*Math.PI),this.path.push({type:"arc",x:T,y:U,radius:G,startAngle:ie,endAngle:le,counterclockwise:ge})},w.prototype.arcTo=function(T,U,G,ie,le){throw new Error("arcTo not implemented.")},w.prototype.rect=function(T,U,G,ie){if(isNaN(T)||isNaN(U)||isNaN(G)||isNaN(ie))throw ci.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(T,U),this.lineTo(T+G,U),this.lineTo(T+G,U+ie),this.lineTo(T,U+ie),this.lineTo(T,U),this.lineTo(T+G,U),this.lineTo(T,U)},w.prototype.fillRect=function(T,U,G,ie){if(isNaN(T)||isNaN(U)||isNaN(G)||isNaN(ie))throw ci.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!v.call(this)){var le={};this.lineCap!=="butt"&&(le.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(le.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(T,U,G,ie),this.fill(),le.hasOwnProperty("lineCap")&&(this.lineCap=le.lineCap),le.hasOwnProperty("lineJoin")&&(this.lineJoin=le.lineJoin)}},w.prototype.strokeRect=function(T,U,G,ie){if(isNaN(T)||isNaN(U)||isNaN(G)||isNaN(ie))throw ci.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");M.call(this)||(this.beginPath(),this.rect(T,U,G,ie),this.stroke())},w.prototype.clearRect=function(T,U,G,ie){if(isNaN(T)||isNaN(U)||isNaN(G)||isNaN(ie))throw ci.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(T,U,G,ie))},w.prototype.save=function(T){T=typeof T!="boolean"||T;for(var U=this.pdf.internal.getCurrentPageInfo().pageNumber,G=0;G<this.pdf.internal.getNumberOfPages();G++)this.pdf.setPage(G+1),this.pdf.internal.out("q");if(this.pdf.setPage(U),T){this.ctx.fontSize=this.pdf.internal.getFontSize();var ie=new y(this.ctx);this.ctxStack.push(this.ctx),this.ctx=ie}},w.prototype.restore=function(T){T=typeof T!="boolean"||T;for(var U=this.pdf.internal.getCurrentPageInfo().pageNumber,G=0;G<this.pdf.internal.getNumberOfPages();G++)this.pdf.setPage(G+1),this.pdf.internal.out("Q");this.pdf.setPage(U),T&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},w.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var S=function(T){var U,G,ie,le;if(T.isCanvasGradient===!0&&(T=T.getColor()),!T)return{r:0,g:0,b:0,a:0,style:T};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(T))U=0,G=0,ie=0,le=0;else{var ge=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(T);if(ge!==null)U=parseInt(ge[1]),G=parseInt(ge[2]),ie=parseInt(ge[3]),le=1;else if((ge=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(T))!==null)U=parseInt(ge[1]),G=parseInt(ge[2]),ie=parseInt(ge[3]),le=parseFloat(ge[4]);else{if(le=1,typeof T=="string"&&T.charAt(0)!=="#"){var ve=new D0(T);T=ve.ok?ve.toHex():"#000000"}T.length===4?(U=T.substring(1,2),U+=U,G=T.substring(2,3),G+=G,ie=T.substring(3,4),ie+=ie):(U=T.substring(1,3),G=T.substring(3,5),ie=T.substring(5,7)),U=parseInt(U,16),G=parseInt(G,16),ie=parseInt(ie,16)}}return{r:U,g:G,b:ie,a:le,style:T}},v=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},M=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};w.prototype.fillText=function(T,U,G,ie){if(isNaN(U)||isNaN(G)||typeof T!="string")throw ci.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(ie=isNaN(ie)?void 0:ie,!v.call(this)){var le=he(this.ctx.transform.rotation),ge=this.ctx.transform.scaleX;R.call(this,{text:T,x:U,y:G,scale:ge,angle:le,align:this.textAlign,maxWidth:ie})}},w.prototype.strokeText=function(T,U,G,ie){if(isNaN(U)||isNaN(G)||typeof T!="string")throw ci.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!M.call(this)){ie=isNaN(ie)?void 0:ie;var le=he(this.ctx.transform.rotation),ge=this.ctx.transform.scaleX;R.call(this,{text:T,x:U,y:G,scale:ge,renderingMode:"stroke",angle:le,align:this.textAlign,maxWidth:ie})}},w.prototype.measureText=function(T){if(typeof T!="string")throw ci.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var U=this.pdf,G=this.pdf.internal.scaleFactor,ie=U.internal.getFontSize(),le=U.getStringUnitWidth(T)*ie/U.internal.scaleFactor,ge=function(ve){var ye=(ve=ve||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ye}}),this};return new ge({width:le*=Math.round(96*G/72*1e4)/1e4})},w.prototype.scale=function(T,U){if(isNaN(T)||isNaN(U))throw ci.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var G=new p(T,0,0,U,0,0);this.ctx.transform=this.ctx.transform.multiply(G)},w.prototype.rotate=function(T){if(isNaN(T))throw ci.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var U=new p(Math.cos(T),Math.sin(T),-Math.sin(T),Math.cos(T),0,0);this.ctx.transform=this.ctx.transform.multiply(U)},w.prototype.translate=function(T,U){if(isNaN(T)||isNaN(U))throw ci.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var G=new p(1,0,0,1,T,U);this.ctx.transform=this.ctx.transform.multiply(G)},w.prototype.transform=function(T,U,G,ie,le,ge){if(isNaN(T)||isNaN(U)||isNaN(G)||isNaN(ie)||isNaN(le)||isNaN(ge))throw ci.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ve=new p(T,U,G,ie,le,ge);this.ctx.transform=this.ctx.transform.multiply(ve)},w.prototype.setTransform=function(T,U,G,ie,le,ge){T=isNaN(T)?1:T,U=isNaN(U)?0:U,G=isNaN(G)?0:G,ie=isNaN(ie)?1:ie,le=isNaN(le)?0:le,ge=isNaN(ge)?0:ge,this.ctx.transform=new p(T,U,G,ie,le,ge)};var F=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};w.prototype.drawImage=function(T,U,G,ie,le,ge,ve,ye,Be){var qe=this.pdf.getImageProperties(T),Ke=1,Je=1,mt=1,xe=1;ie!==void 0&&ye!==void 0&&(mt=ye/ie,xe=Be/le,Ke=qe.width/ie*ye/ie,Je=qe.height/le*Be/le),ge===void 0&&(ge=U,ve=G,U=0,G=0),ie!==void 0&&ye===void 0&&(ye=ie,Be=le),ie===void 0&&ye===void 0&&(ye=qe.width,Be=qe.height);for(var W,yt=this.ctx.transform.decompose(),it=he(yt.rotate.shx),De=new p,je=(De=(De=(De=De.multiply(yt.translate)).multiply(yt.skew)).multiply(yt.scale)).applyToRectangle(new d(ge-U*mt,ve-G*xe,ie*Ke,le*Je)),We=k.call(this,je),He=[],rt=0;rt<We.length;rt+=1)He.indexOf(We[rt])===-1&&He.push(We[rt]);if(z(He),this.autoPaging)for(var vt=He[0],xt=He[He.length-1],It=vt;It<xt+1;It++){this.pdf.setPage(It);var qt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ni=It===1?this.posY+this.margin[0]:this.margin[0],ht=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Mt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],$e=It===1?0:ht+(It-2)*Mt;if(this.ctx.clip_path.length!==0){var on=this.path;W=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=L(W,this.posX+this.margin[3],-$e+ni+this.ctx.prevPageLastElemOffset),J.call(this,"fill",!0),this.path=on}var zt=JSON.parse(JSON.stringify(je));zt=L([zt],this.posX+this.margin[3],-$e+ni+this.ctx.prevPageLastElemOffset)[0];var Xn=(It>vt||It<xt)&&F.call(this);Xn&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],qt,Mt,null).clip().discardPath()),this.pdf.addImage(T,"JPEG",zt.x,zt.y,zt.w,zt.h,null,null,it),Xn&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(T,"JPEG",je.x,je.y,je.w,je.h,null,null,it)};var k=function(T,U,G){var ie=[];U=U||this.pdf.internal.pageSize.width,G=G||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var le=this.posY+this.ctx.prevPageLastElemOffset;switch(T.type){default:case"mt":case"lt":ie.push(Math.floor((T.y+le)/G)+1);break;case"arc":ie.push(Math.floor((T.y+le-T.radius)/G)+1),ie.push(Math.floor((T.y+le+T.radius)/G)+1);break;case"qct":var ge=Ie(this.ctx.lastPoint.x,this.ctx.lastPoint.y,T.x1,T.y1,T.x,T.y);ie.push(Math.floor((ge.y+le)/G)+1),ie.push(Math.floor((ge.y+ge.h+le)/G)+1);break;case"bct":var ve=Fe(this.ctx.lastPoint.x,this.ctx.lastPoint.y,T.x1,T.y1,T.x2,T.y2,T.x,T.y);ie.push(Math.floor((ve.y+le)/G)+1),ie.push(Math.floor((ve.y+ve.h+le)/G)+1);break;case"rect":ie.push(Math.floor((T.y+le)/G)+1),ie.push(Math.floor((T.y+T.h+le)/G)+1)}for(var ye=0;ye<ie.length;ye+=1)for(;this.pdf.internal.getNumberOfPages()<ie[ye];)I.call(this);return ie},I=function(){var T=this.fillStyle,U=this.strokeStyle,G=this.font,ie=this.lineCap,le=this.lineWidth,ge=this.lineJoin;this.pdf.addPage(),this.fillStyle=T,this.strokeStyle=U,this.font=G,this.lineCap=ie,this.lineWidth=le,this.lineJoin=ge},L=function(T,U,G){for(var ie=0;ie<T.length;ie++)switch(T[ie].type){case"bct":T[ie].x2+=U,T[ie].y2+=G;case"qct":T[ie].x1+=U,T[ie].y1+=G;case"mt":case"lt":case"arc":default:T[ie].x+=U,T[ie].y+=G}return T},z=function(T){return T.sort(function(U,G){return U-G})},$=function(T,U){for(var G,ie,le=this.fillStyle,ge=this.strokeStyle,ve=this.lineCap,ye=this.lineWidth,Be=Math.abs(ye*this.ctx.transform.scaleX),qe=this.lineJoin,Ke=JSON.parse(JSON.stringify(this.path)),Je=JSON.parse(JSON.stringify(this.path)),mt=[],xe=0;xe<Je.length;xe++)if(Je[xe].x!==void 0)for(var W=k.call(this,Je[xe]),yt=0;yt<W.length;yt+=1)mt.indexOf(W[yt])===-1&&mt.push(W[yt]);for(var it=0;it<mt.length;it++)for(;this.pdf.internal.getNumberOfPages()<mt[it];)I.call(this);if(z(mt),this.autoPaging)for(var De=mt[0],je=mt[mt.length-1],We=De;We<je+1;We++){this.pdf.setPage(We),this.fillStyle=le,this.strokeStyle=ge,this.lineCap=ve,this.lineWidth=Be,this.lineJoin=qe;var He=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],rt=We===1?this.posY+this.margin[0]:this.margin[0],vt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],xt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],It=We===1?0:vt+(We-2)*xt;if(this.ctx.clip_path.length!==0){var qt=this.path;G=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=L(G,this.posX+this.margin[3],-It+rt+this.ctx.prevPageLastElemOffset),J.call(this,T,!0),this.path=qt}if(ie=JSON.parse(JSON.stringify(Ke)),this.path=L(ie,this.posX+this.margin[3],-It+rt+this.ctx.prevPageLastElemOffset),U===!1||We===0){var ni=(We>De||We<je)&&F.call(this);ni&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],He,xt,null).clip().discardPath()),J.call(this,T,U),ni&&this.pdf.restoreGraphicsState()}this.lineWidth=ye}else this.lineWidth=Be,J.call(this,T,U),this.lineWidth=ye;this.path=Ke},J=function(T,U){if((T!=="stroke"||U||!M.call(this))&&(T==="stroke"||U||!v.call(this))){for(var G,ie,le=[],ge=this.path,ve=0;ve<ge.length;ve++){var ye=ge[ve];switch(ye.type){case"begin":le.push({begin:!0});break;case"close":le.push({close:!0});break;case"mt":le.push({start:ye,deltas:[],abs:[]});break;case"lt":var Be=le.length;if(ge[ve-1]&&!isNaN(ge[ve-1].x)&&(G=[ye.x-ge[ve-1].x,ye.y-ge[ve-1].y],Be>0)){for(;Be>=0;Be--)if(le[Be-1].close!==!0&&le[Be-1].begin!==!0){le[Be-1].deltas.push(G),le[Be-1].abs.push(ye);break}}break;case"bct":G=[ye.x1-ge[ve-1].x,ye.y1-ge[ve-1].y,ye.x2-ge[ve-1].x,ye.y2-ge[ve-1].y,ye.x-ge[ve-1].x,ye.y-ge[ve-1].y],le[le.length-1].deltas.push(G);break;case"qct":var qe=ge[ve-1].x+2/3*(ye.x1-ge[ve-1].x),Ke=ge[ve-1].y+2/3*(ye.y1-ge[ve-1].y),Je=ye.x+2/3*(ye.x1-ye.x),mt=ye.y+2/3*(ye.y1-ye.y),xe=ye.x,W=ye.y;G=[qe-ge[ve-1].x,Ke-ge[ve-1].y,Je-ge[ve-1].x,mt-ge[ve-1].y,xe-ge[ve-1].x,W-ge[ve-1].y],le[le.length-1].deltas.push(G);break;case"arc":le.push({deltas:[],abs:[],arc:!0}),Array.isArray(le[le.length-1].abs)&&le[le.length-1].abs.push(ye)}}ie=U?null:T==="stroke"?"stroke":"fill";for(var yt=!1,it=0;it<le.length;it++)if(le[it].arc)for(var De=le[it].abs,je=0;je<De.length;je++){var We=De[je];We.type==="arc"?Y.call(this,We.x,We.y,We.radius,We.startAngle,We.endAngle,We.counterclockwise,void 0,U,!yt):Z.call(this,We.x,We.y),yt=!0}else if(le[it].close===!0)this.pdf.internal.out("h"),yt=!1;else if(le[it].begin!==!0){var He=le[it].start.x,rt=le[it].start.y;K.call(this,le[it].deltas,He,rt),yt=!0}ie&&Ne.call(this,ie),U&&Ae.call(this)}},re=function(T){var U=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,G=U*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return T-G;case"top":return T+U-G;case"hanging":return T+U-2*G;case"middle":return T+U/2-G;case"ideographic":return T;case"alphabetic":default:return T}},de=function(T){return T+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};w.prototype.createLinearGradient=function(){var T=function(){};return T.colorStops=[],T.addColorStop=function(U,G){this.colorStops.push([U,G])},T.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},T.isCanvasGradient=!0,T},w.prototype.createPattern=function(){return this.createLinearGradient()},w.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Y=function(T,U,G,ie,le,ge,ve,ye,Be){for(var qe=be.call(this,G,ie,le,ge),Ke=0;Ke<qe.length;Ke++){var Je=qe[Ke];Ke===0&&(Be?B.call(this,Je.x1+T,Je.y1+U):Z.call(this,Je.x1+T,Je.y1+U)),we.call(this,T,U,Je.x2,Je.y2,Je.x3,Je.y3,Je.x4,Je.y4)}ye?Ae.call(this):Ne.call(this,ve)},Ne=function(T){switch(T){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Ae=function(){this.pdf.clip(),this.pdf.discardPath()},B=function(T,U){this.pdf.internal.out(n(T)+" "+e(U)+" m")},R=function(T){var U;switch(T.align){case"right":case"end":U="right";break;case"center":U="center";break;case"left":case"start":default:U="left"}var G=this.pdf.getTextDimensions(T.text),ie=re.call(this,T.y),le=de.call(this,ie)-G.h,ge=this.ctx.transform.applyToPoint(new a(T.x,ie)),ve=this.ctx.transform.decompose(),ye=new p;ye=(ye=(ye=ye.multiply(ve.translate)).multiply(ve.skew)).multiply(ve.scale);for(var Be,qe,Ke,Je=this.ctx.transform.applyToRectangle(new d(T.x,ie,G.w,G.h)),mt=ye.applyToRectangle(new d(T.x,le,G.w,G.h)),xe=k.call(this,mt),W=[],yt=0;yt<xe.length;yt+=1)W.indexOf(xe[yt])===-1&&W.push(xe[yt]);if(z(W),this.autoPaging)for(var it=W[0],De=W[W.length-1],je=it;je<De+1;je++){this.pdf.setPage(je);var We=je===1?this.posY+this.margin[0]:this.margin[0],He=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],rt=this.pdf.internal.pageSize.height-this.margin[2],vt=rt-this.margin[0],xt=this.pdf.internal.pageSize.width-this.margin[1],It=xt-this.margin[3],qt=je===1?0:He+(je-2)*vt;if(this.ctx.clip_path.length!==0){var ni=this.path;Be=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=L(Be,this.posX+this.margin[3],-1*qt+We),J.call(this,"fill",!0),this.path=ni}var ht=L([JSON.parse(JSON.stringify(mt))],this.posX+this.margin[3],-qt+We+this.ctx.prevPageLastElemOffset)[0];T.scale>=.01&&(qe=this.pdf.internal.getFontSize(),this.pdf.setFontSize(qe*T.scale),Ke=this.lineWidth,this.lineWidth=Ke*T.scale);var Mt=this.autoPaging!=="text";if(Mt||ht.y+ht.h<=rt){if(Mt||ht.y>=We&&ht.x<=xt){var $e=Mt?T.text:this.pdf.splitTextToSize(T.text,T.maxWidth||xt-ht.x)[0],on=L([JSON.parse(JSON.stringify(Je))],this.posX+this.margin[3],-qt+We+this.ctx.prevPageLastElemOffset)[0],zt=Mt&&(je>it||je<De)&&F.call(this);zt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],It,vt,null).clip().discardPath()),this.pdf.text($e,on.x,on.y,{angle:T.angle,align:U,renderingMode:T.renderingMode}),zt&&this.pdf.restoreGraphicsState()}}else ht.y<rt&&(this.ctx.prevPageLastElemOffset+=rt-ht.y);T.scale>=.01&&(this.pdf.setFontSize(qe),this.lineWidth=Ke)}else T.scale>=.01&&(qe=this.pdf.internal.getFontSize(),this.pdf.setFontSize(qe*T.scale),Ke=this.lineWidth,this.lineWidth=Ke*T.scale),this.pdf.text(T.text,ge.x+this.posX,ge.y+this.posY,{angle:T.angle,align:U,renderingMode:T.renderingMode,maxWidth:T.maxWidth}),T.scale>=.01&&(this.pdf.setFontSize(qe),this.lineWidth=Ke)},Z=function(T,U,G,ie){G=G||0,ie=ie||0,this.pdf.internal.out(n(T+G)+" "+e(U+ie)+" l")},K=function(T,U,G){return this.pdf.lines(T,U,G,null,null)},we=function(T,U,G,ie,le,ge,ve,ye){this.pdf.internal.out([i(o(G+T)),i(r(ie+U)),i(o(le+T)),i(r(ge+U)),i(o(ve+T)),i(r(ye+U)),"c"].join(" "))},be=function(T,U,G,ie){for(var le=2*Math.PI,ge=Math.PI/2;U>G;)U-=le;var ve=Math.abs(G-U);ve<le&&ie&&(ve=le-ve);for(var ye=[],Be=ie?-1:1,qe=U;ve>1e-5;){var Ke=qe+Be*Math.min(ve,ge);ye.push(Ee.call(this,T,qe,Ke)),ve-=Math.abs(Ke-qe),qe=Ke}return ye},Ee=function(T,U,G){var ie=(G-U)/2,le=T*Math.cos(ie),ge=T*Math.sin(ie),ve=le,ye=-ge,Be=ve*ve+ye*ye,qe=Be+ve*le+ye*ge,Ke=4/3*(Math.sqrt(2*Be*qe)-qe)/(ve*ge-ye*le),Je=ve-Ke*ye,mt=ye+Ke*ve,xe=Je,W=-mt,yt=ie+U,it=Math.cos(yt),De=Math.sin(yt);return{x1:T*Math.cos(U),y1:T*Math.sin(U),x2:Je*it-mt*De,y2:Je*De+mt*it,x3:xe*it-W*De,y3:xe*De+W*it,x4:T*Math.cos(G),y4:T*Math.sin(G)}},he=function(T){return 180*T/Math.PI},Ie=function(T,U,G,ie,le,ge){var ve=T+.5*(G-T),ye=U+.5*(ie-U),Be=le+.5*(G-le),qe=ge+.5*(ie-ge),Ke=Math.min(T,le,ve,Be),Je=Math.max(T,le,ve,Be),mt=Math.min(U,ge,ye,qe),xe=Math.max(U,ge,ye,qe);return new d(Ke,mt,Je-Ke,xe-mt)},Fe=function(T,U,G,ie,le,ge,ve,ye){var Be,qe,Ke,Je,mt,xe,W,yt,it,De,je,We,He,rt,vt=G-T,xt=ie-U,It=le-G,qt=ge-ie,ni=ve-le,ht=ye-ge;for(qe=0;qe<41;qe++)it=(W=(Ke=T+(Be=qe/40)*vt)+Be*((mt=G+Be*It)-Ke))+Be*(mt+Be*(le+Be*ni-mt)-W),De=(yt=(Je=U+Be*xt)+Be*((xe=ie+Be*qt)-Je))+Be*(xe+Be*(ge+Be*ht-xe)-yt),qe==0?(je=it,We=De,He=it,rt=De):(je=Math.min(je,it),We=Math.min(We,De),He=Math.max(He,it),rt=Math.max(rt,De));return new d(Math.round(je),Math.round(We),Math.round(He-je),Math.round(rt-We))},Ge=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var T,U,G=(T=this.ctx.lineDash,U=this.ctx.lineDashOffset,JSON.stringify({lineDash:T,lineDashOffset:U}));this.prevLineDash!==G&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=G)}}})(dt.API),function(t){var i=function(r){var a,d,p,_,y,w,S,v,M,F;for(/[^\x00-\xFF]/.test(r),d=[],p=0,_=(r+=a="\0\0\0\0".slice(r.length%4||4)).length;_>p;p+=4)(y=(r.charCodeAt(p)<<24)+(r.charCodeAt(p+1)<<16)+(r.charCodeAt(p+2)<<8)+r.charCodeAt(p+3))!==0?(w=(y=((y=((y=((y=(y-(F=y%85))/85)-(M=y%85))/85)-(v=y%85))/85)-(S=y%85))/85)%85,d.push(w+33,S+33,v+33,M+33,F+33)):d.push(122);return function(k,I){for(var L=I;L>0;L--)k.pop()}(d,a.length),String.fromCharCode.apply(String,d)+"~>"},n=function(r){var a,d,p,_,y,w=String,S="length",v=255,M="charCodeAt",F="slice",k="replace";for(r[F](-2),r=r[F](0,-2)[k](/\s/g,"")[k]("z","!!!!!"),p=[],_=0,y=(r+=a="uuuuu"[F](r[S]%5||5))[S];y>_;_+=5)d=52200625*(r[M](_)-33)+614125*(r[M](_+1)-33)+7225*(r[M](_+2)-33)+85*(r[M](_+3)-33)+(r[M](_+4)-33),p.push(v&d>>24,v&d>>16,v&d>>8,v&d);return function(I,L){for(var z=L;z>0;z--)I.pop()}(p,a[S]),w.fromCharCode.apply(w,p)},e=function(r){var a=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((r=r.replace(/\s/g,"")).indexOf(">")!==-1&&(r=r.substr(0,r.indexOf(">"))),r.length%2&&(r+="0"),a.test(r)===!1)return"";for(var d="",p=0;p<r.length;p+=2)d+=String.fromCharCode("0x"+(r[p]+r[p+1]));return d},o=function(r){for(var a=new Uint8Array(r.length),d=r.length;d--;)a[d]=r.charCodeAt(d);return r=(a=kc(a)).reduce(function(p,_){return p+String.fromCharCode(_)},"")};t.processDataByFilters=function(r,a){var d=0,p=r||"",_=[];for(typeof(a=a||[])=="string"&&(a=[a]),d=0;d<a.length;d+=1)switch(a[d]){case"ASCII85Decode":case"/ASCII85Decode":p=n(p),_.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":p=i(p),_.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":p=e(p),_.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":p=p.split("").map(function(y){return("0"+y.charCodeAt().toString(16)).slice(-2)}).join("")+">",_.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":p=o(p),_.push("/FlateDecode");break;default:throw new Error('The filter: "'+a[d]+'" is not implemented')}return{data:p,reverseChain:_.reverse().join(" ")}}}(dt.API),function(t){t.loadFile=function(i,n,e){return function(o,r,a){r=r!==!1,a=typeof a=="function"?a:function(){};var d=void 0;try{d=function(p,_,y){var w=new XMLHttpRequest,S=0,v=function(M){var F=M.length,k=[],I=String.fromCharCode;for(S=0;S<F;S+=1)k.push(I(255&M.charCodeAt(S)));return k.join("")};if(w.open("GET",p,!_),w.overrideMimeType("text/plain; charset=x-user-defined"),_===!1&&(w.onload=function(){w.status===200?y(v(this.responseText)):y(void 0)}),w.send(null),_&&w.status===200)return v(w.responseText)}(o,r,a)}catch{}return d}(i,n,e)},t.loadImageFile=t.loadFile}(dt.API),function(t){function i(){return(ft.html2canvas?Promise.resolve(ft.html2canvas):import("./chunk-JOES5ZDF.mjs")).catch(function(a){return Promise.reject(new Error("Could not load html2canvas: "+a))}).then(function(a){return a.default?a.default:a})}function n(){return(ft.DOMPurify?Promise.resolve(ft.DOMPurify):import("./chunk-UCTTQTKD.mjs")).catch(function(a){return Promise.reject(new Error("Could not load dompurify: "+a))}).then(function(a){return a.default?a.default:a})}var e=function(a){var d=(0,ai.default)(a);return d==="undefined"?"undefined":d==="string"||a instanceof String?"string":d==="number"||a instanceof Number?"number":d==="function"||a instanceof Function?"function":a&&a.constructor===Array?"array":a&&a.nodeType===1?"element":d==="object"?"object":"unknown"},o=function(a,d){var p=document.createElement(a);for(var _ in d.className&&(p.className=d.className),d.innerHTML&&d.dompurify&&(p.innerHTML=d.dompurify.sanitize(d.innerHTML)),d.style)p.style[_]=d.style[_];return p},r=function a(d){var p=Object.assign(a.convert(Promise.resolve()),JSON.parse(JSON.stringify(a.template))),_=a.convert(Promise.resolve(),p);return _=(_=_.setProgress(1,a,1,[a])).set(d)};(r.prototype=Object.create(Promise.prototype)).constructor=r,r.convert=function(a,d){return a.__proto__=d||r.prototype,a},r.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},r.prototype.from=function(a,d){return this.then(function(){switch(d=d||function(p){switch(e(p)){case"string":return"string";case"element":return p.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(a)){case"string":return this.then(n).then(function(p){return this.set({src:o("div",{innerHTML:a,dompurify:p})})});case"element":return this.set({src:a});case"canvas":return this.set({canvas:a});case"img":return this.set({img:a});default:return this.error("Unknown source type.")}})},r.prototype.to=function(a){switch(a){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},r.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var a={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},d=function p(_,y){for(var w=_.nodeType===3?document.createTextNode(_.nodeValue):_.cloneNode(!1),S=_.firstChild;S;S=S.nextSibling)y!==!0&&S.nodeType===1&&S.nodeName==="SCRIPT"||w.appendChild(p(S,y));return _.nodeType===1&&(_.nodeName==="CANVAS"?(w.width=_.width,w.height=_.height,w.getContext("2d").drawImage(_,0,0)):_.nodeName!=="TEXTAREA"&&_.nodeName!=="SELECT"||(w.value=_.value),w.addEventListener("load",function(){w.scrollTop=_.scrollTop,w.scrollLeft=_.scrollLeft},!0)),w}(this.prop.src,this.opt.html2canvas.javascriptEnabled);d.tagName==="BODY"&&(a.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=o("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=o("div",{className:"html2pdf__container",style:a}),this.prop.container.appendChild(d),this.prop.container.firstChild.appendChild(o("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},r.prototype.toCanvas=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(i).then(function(d){var p=Object.assign({},this.opt.html2canvas);return delete p.onrendered,d(this.prop.container,p)}).then(function(d){(this.opt.html2canvas.onrendered||function(){})(d),this.prop.canvas=d,document.body.removeChild(this.prop.overlay)})},r.prototype.toContext2d=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(i).then(function(d){var p=this.opt.jsPDF,_=this.opt.fontFaces,y=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,w=Object.assign({async:!0,allowTaint:!0,scale:y,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete w.onrendered,p.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,p.context2d.posX=this.opt.x,p.context2d.posY=this.opt.y,p.context2d.margin=this.opt.margin,p.context2d.fontFaces=_,_)for(var S=0;S<_.length;++S){var v=_[S],M=v.src.find(function(F){return F.format==="truetype"});M&&p.addFont(M.url,v.ref.name,v.ref.style)}return w.windowHeight=w.windowHeight||0,w.windowHeight=w.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):w.windowHeight,p.context2d.save(!0),d(this.prop.container,w)}).then(function(d){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(d),this.prop.canvas=d,document.body.removeChild(this.prop.overlay)})},r.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var a=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=a})},r.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},r.prototype.output=function(a,d,p){return(p=p||"pdf").toLowerCase()==="img"||p.toLowerCase()==="image"?this.outputImg(a,d):this.outputPdf(a,d)},r.prototype.outputPdf=function(a,d){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(a,d)})},r.prototype.outputImg=function(a){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(a){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+a+'" is not supported.'}})},r.prototype.save=function(a){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(a?{filename:a}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},r.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},r.prototype.set=function(a){if(e(a)!=="object")return this;var d=Object.keys(a||{}).map(function(p){if(p in r.template.prop)return function(){this.prop[p]=a[p]};switch(p){case"margin":return this.setMargin.bind(this,a.margin);case"jsPDF":return function(){return this.opt.jsPDF=a.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,a.pageSize);default:return function(){this.opt[p]=a[p]}}},this);return this.then(function(){return this.thenList(d)})},r.prototype.get=function(a,d){return this.then(function(){var p=a in r.template.prop?this.prop[a]:this.opt[a];return d?d(p):p})},r.prototype.setMargin=function(a){return this.then(function(){switch(e(a)){case"number":a=[a,a,a,a];case"array":if(a.length===2&&(a=[a[0],a[1],a[0],a[1]]),a.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=a}).then(this.setPageSize)},r.prototype.setPageSize=function(a){function d(p,_){return Math.floor(p*_/72*96)}return this.then(function(){(a=a||dt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(a.inner={width:a.width-this.opt.margin[1]-this.opt.margin[3],height:a.height-this.opt.margin[0]-this.opt.margin[2]},a.inner.px={width:d(a.inner.width,a.k),height:d(a.inner.height,a.k)},a.inner.ratio=a.inner.height/a.inner.width),this.prop.pageSize=a})},r.prototype.setProgress=function(a,d,p,_){return a!=null&&(this.progress.val=a),d!=null&&(this.progress.state=d),p!=null&&(this.progress.n=p),_!=null&&(this.progress.stack=_),this.progress.ratio=this.progress.val/this.progress.state,this},r.prototype.updateProgress=function(a,d,p,_){return this.setProgress(a?this.progress.val+a:null,d||null,p?this.progress.n+p:null,_?this.progress.stack.concat(_):null)},r.prototype.then=function(a,d){var p=this;return this.thenCore(a,d,function(_,y){return p.updateProgress(null,null,1,[_]),Promise.prototype.then.call(this,function(w){return p.updateProgress(null,_),w}).then(_,y).then(function(w){return p.updateProgress(1),w})})},r.prototype.thenCore=function(a,d,p){p=p||Promise.prototype.then,a&&(a=a.bind(this)),d&&(d=d.bind(this));var _=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:r.convert(Object.assign({},this),Promise.prototype),y=p.call(_,a,d);return r.convert(y,this.__proto__)},r.prototype.thenExternal=function(a,d){return Promise.prototype.then.call(this,a,d)},r.prototype.thenList=function(a){var d=this;return a.forEach(function(p){d=d.thenCore(p)}),d},r.prototype.catch=function(a){a&&(a=a.bind(this));var d=Promise.prototype.catch.call(this,a);return r.convert(d,this)},r.prototype.catchExternal=function(a){return Promise.prototype.catch.call(this,a)},r.prototype.error=function(a){return this.then(function(){throw new Error(a)})},r.prototype.using=r.prototype.set,r.prototype.saveAs=r.prototype.save,r.prototype.export=r.prototype.output,r.prototype.run=r.prototype.then,dt.getPageSize=function(a,d,p){if((0,ai.default)(a)==="object"){var _=a;a=_.orientation,d=_.unit||d,p=_.format||p}d=d||"mm",p=p||"a4",a=(""+(a||"P")).toLowerCase();var y,w=(""+p).toLowerCase(),S={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(d){case"pt":y=1;break;case"mm":y=72/25.4;break;case"cm":y=72/2.54;break;case"in":y=72;break;case"px":y=.75;break;case"pc":case"em":y=12;break;case"ex":y=6;break;default:throw"Invalid unit: "+d}var v,M=0,F=0;if(S.hasOwnProperty(w))M=S[w][1]/y,F=S[w][0]/y;else try{M=p[1],F=p[0]}catch{throw new Error("Invalid format: "+p)}if(a==="p"||a==="portrait")a="p",F>M&&(v=F,F=M,M=v);else{if(a!=="l"&&a!=="landscape")throw"Invalid orientation: "+a;a="l",M>F&&(v=F,F=M,M=v)}return{width:F,height:M,unit:d,k:y,orientation:a}},t.html=function(a,d){(d=d||{}).callback=d.callback||function(){},d.html2canvas=d.html2canvas||{},d.html2canvas.canvas=d.html2canvas.canvas||this.canvas,d.jsPDF=d.jsPDF||this,d.fontFaces=d.fontFaces?d.fontFaces.map(Eu):null;var p=new r(d);return d.worker?p:p.from(a).doCallback()}}(dt.API),dt.API.addJS=function(t){return M0=t,this.internal.events.subscribe("postPutResources",function(){Vc=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Vc+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),A0=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+M0+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Vc!==void 0&&A0!==void 0&&this.internal.out("/Names <</JavaScript "+Vc+" 0 R>>")}),this},function(t){var i;t.events.push(["postPutResources",function(){var n=this,e=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var o=n.outline.render().split(/\r\n/),r=0;r<o.length;r++){var a=o[r],d=e.exec(a);if(d!=null){var p=d[1];n.internal.newObjectDeferredBegin(p,!1)}n.internal.write(a)}if(this.outline.createNamedDestinations){var _=this.internal.pages.length,y=[];for(r=0;r<_;r++){var w=n.internal.newObject();y.push(w);var S=n.internal.getPageInfo(r+1);n.internal.write("<< /D["+S.objId+" 0 R /XYZ null null null]>> endobj")}var v=n.internal.newObject();for(n.internal.write("<< /Names [ "),r=0;r<y.length;r++)n.internal.write("(page_"+(r+1)+")"+y[r]+" 0 R");n.internal.write(" ] >>","endobj"),i=n.internal.newObject(),n.internal.write("<< /Dests "+v+" 0 R"),n.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+i+" 0 R"))}]),t.events.push(["initialized",function(){var n=this;n.outline={createNamedDestinations:!1,root:{children:[]}},n.outline.add=function(e,o,r){var a={title:o,options:r,children:[]};return e==null&&(e=this.root),e.children.push(a),a},n.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=n,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},n.outline.genIds_r=function(e){e.id=n.internal.newObjectDeferred();for(var o=0;o<e.children.length;o++)this.genIds_r(e.children[o])},n.outline.renderRoot=function(e){this.objStart(e),this.line("/Type /Outlines"),e.children.length>0&&(this.line("/First "+this.makeRef(e.children[0])),this.line("/Last "+this.makeRef(e.children[e.children.length-1]))),this.line("/Count "+this.count_r({count:0},e)),this.objEnd()},n.outline.renderItems=function(e){for(var o=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r<e.children.length;r++){var a=e.children[r];this.objStart(a),this.line("/Title "+this.makeString(a.title)),this.line("/Parent "+this.makeRef(e)),r>0&&this.line("/Prev "+this.makeRef(e.children[r-1])),r<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[r+1])),a.children.length>0&&(this.line("/First "+this.makeRef(a.children[0])),this.line("/Last "+this.makeRef(a.children[a.children.length-1])));var d=this.count=this.count_r({count:0},a);if(d>0&&this.line("/Count "+d),a.options&&a.options.pageNumber){var p=n.internal.getPageInfo(a.options.pageNumber);this.line("/Dest ["+p.objId+" 0 R /XYZ 0 "+o(0)+" 0]")}this.objEnd()}for(var _=0;_<e.children.length;_++)this.renderItems(e.children[_])},n.outline.line=function(e){this.ctx.val+=e+`\r
+`},n.outline.makeRef=function(e){return e.id+" 0 R"},n.outline.makeString=function(e){return"("+n.internal.pdfEscape(e)+")"},n.outline.objStart=function(e){this.ctx.val+=`\r
+`+e.id+` 0 obj\r
+<<\r
+`},n.outline.objEnd=function(){this.ctx.val+=`>> \r
+endobj\r
+`},n.outline.count_r=function(e,o){for(var r=0;r<o.children.length;r++)e.count++,this.count_r(e,o.children[r]);return e.count}}])}(dt.API),function(t){var i=[192,193,194,195,196,197,198,199];t.processJPEG=function(n,e,o,r,a,d){var p,_=this.decode.DCT_DECODE,y=null;if(typeof n=="string"||this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n)){switch(n=a||n,n=this.__addimage__.isArrayBuffer(n)?new Uint8Array(n):n,(p=function(w){for(var S,v=256*w.charCodeAt(4)+w.charCodeAt(5),M=w.length,F={width:0,height:0,numcomponents:1},k=4;k<M;k+=2){if(k+=v,i.indexOf(w.charCodeAt(k+1))!==-1){S=256*w.charCodeAt(k+5)+w.charCodeAt(k+6),F={width:256*w.charCodeAt(k+7)+w.charCodeAt(k+8),height:S,numcomponents:w.charCodeAt(k+9)};break}v=256*w.charCodeAt(k+2)+w.charCodeAt(k+3)}return F}(n=this.__addimage__.isArrayBufferView(n)?this.__addimage__.arrayBufferToBinaryString(n):n)).numcomponents){case 1:d=this.color_spaces.DEVICE_GRAY;break;case 4:d=this.color_spaces.DEVICE_CMYK;break;case 3:d=this.color_spaces.DEVICE_RGB}y={data:n,width:p.width,height:p.height,colorSpace:d,bitsPerComponent:8,filter:_,index:e,alias:o}}return y}}(dt.API);var ml,qc,N0,T0,P0,Vb=function(){var t,i,n;function e(r){var a,d,p,_,y,w,S,v,M,F,k,I,L,z;for(this.data=r,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},w=null;;){switch(a=this.readUInt32(),M=(function(){var $,J;for(J=[],$=0;$<4;++$)J.push(String.fromCharCode(this.data[this.pos++]));return J}).call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(a);break;case"fcTL":w&&this.animation.frames.push(w),this.pos+=4,w={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},y=this.readUInt16(),_=this.readUInt16()||100,w.delay=1e3*y/_,w.disposeOp=this.data[this.pos++],w.blendOp=this.data[this.pos++],w.data=[];break;case"IDAT":case"fdAT":for(M==="fdAT"&&(this.pos+=4,a-=4),r=w?.data||this.imgData,I=0;0<=a?I<a:I>a;0<=a?++I:--I)r.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(p=this.palette.length/3,this.transparency.indexed=this.read(a),this.transparency.indexed.length>p)throw new Error("More transparent colors than palette size");if((F=p-this.transparency.indexed.length)>0)for(L=0;0<=F?L<F:L>F;0<=F?++L:--L)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(a)[0];break;case 2:this.transparency.rgb=this.read(a)}break;case"tEXt":S=(k=this.read(a)).indexOf(0),v=String.fromCharCode.apply(String,k.slice(0,S)),this.text[v]=String.fromCharCode.apply(String,k.slice(S+1));break;case"IEND":return w&&this.animation.frames.push(w),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=(z=this.colorType)===4||z===6,d=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*d,this.colorSpace=(function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}).call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=a}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}e.prototype.read=function(r){var a,d;for(d=[],a=0;0<=r?a<r:a>r;0<=r?++a:--a)d.push(this.data[this.pos++]);return d},e.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},e.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},e.prototype.decodePixels=function(r){var a=this.pixelBitlength/8,d=new Uint8Array(this.width*this.height*a),p=0,_=this;if(r==null&&(r=this.imgData),r.length===0)return new Uint8Array(0);function y(w,S,v,M){var F,k,I,L,z,$,J,re,de,Y,Ne,Ae,B,R,Z,K,we,be,Ee,he,Ie,Fe=Math.ceil((_.width-w)/v),Ge=Math.ceil((_.height-S)/M),T=_.width==Fe&&_.height==Ge;for(R=a*Fe,Ae=T?d:new Uint8Array(R*Ge),$=r.length,B=0,k=0;B<Ge&&p<$;){switch(r[p++]){case 0:for(L=we=0;we<R;L=we+=1)Ae[k++]=r[p++];break;case 1:for(L=be=0;be<R;L=be+=1)F=r[p++],z=L<a?0:Ae[k-a],Ae[k++]=(F+z)%256;break;case 2:for(L=Ee=0;Ee<R;L=Ee+=1)F=r[p++],I=(L-L%a)/a,Z=B&&Ae[(B-1)*R+I*a+L%a],Ae[k++]=(Z+F)%256;break;case 3:for(L=he=0;he<R;L=he+=1)F=r[p++],I=(L-L%a)/a,z=L<a?0:Ae[k-a],Z=B&&Ae[(B-1)*R+I*a+L%a],Ae[k++]=(F+Math.floor((z+Z)/2))%256;break;case 4:for(L=Ie=0;Ie<R;L=Ie+=1)F=r[p++],I=(L-L%a)/a,z=L<a?0:Ae[k-a],B===0?Z=K=0:(Z=Ae[(B-1)*R+I*a+L%a],K=I&&Ae[(B-1)*R+(I-1)*a+L%a]),J=z+Z-K,re=Math.abs(J-z),Y=Math.abs(J-Z),Ne=Math.abs(J-K),de=re<=Y&&re<=Ne?z:Y<=Ne?Z:K,Ae[k++]=(F+de)%256;break;default:throw new Error("Invalid filter algorithm: "+r[p-1])}if(!T){var U=((S+B*M)*_.width+w)*a,G=B*R;for(L=0;L<Fe;L+=1){for(var ie=0;ie<a;ie+=1)d[U++]=Ae[G++];U+=(v-1)*a}}B++}}return r=_0(r),_.interlaceMethod==1?(y(0,0,8,8),y(4,0,8,8),y(0,4,4,8),y(2,0,4,4),y(0,2,2,4),y(1,0,2,2),y(0,1,1,2)):y(0,0,1,1),d},e.prototype.decodePalette=function(){var r,a,d,p,_,y,w,S,v;for(d=this.palette,y=this.transparency.indexed||[],_=new Uint8Array((y.length||0)+d.length),p=0,r=0,a=w=0,S=d.length;w<S;a=w+=3)_[p++]=d[a],_[p++]=d[a+1],_[p++]=d[a+2],_[p++]=(v=y[r++])!=null?v:255;return _},e.prototype.copyToImageData=function(r,a){var d,p,_,y,w,S,v,M,F,k,I;if(p=this.colors,F=null,d=this.hasAlphaChannel,this.palette.length&&(F=(I=this._decodedPalette)!=null?I:this._decodedPalette=this.decodePalette(),p=4,d=!0),M=(_=r.data||r).length,w=F||a,y=S=0,p===1)for(;y<M;)v=F?4*a[y/4]:S,k=w[v++],_[y++]=k,_[y++]=k,_[y++]=k,_[y++]=d?w[v++]:255,S=v;else for(;y<M;)v=F?4*a[y/4]:S,_[y++]=w[v++],_[y++]=w[v++],_[y++]=w[v++],_[y++]=d?w[v++]:255,S=v},e.prototype.decode=function(){var r;return r=new Uint8Array(this.width*this.height*4),this.copyToImageData(r,this.decodePixels()),r};var o=function(){if(Object.prototype.toString.call(ft)==="[object Window]"){try{i=ft.document.createElement("canvas"),n=i.getContext("2d")}catch{return!1}return!0}return!1};return o(),t=function(r){var a;if(o()===!0)return n.width=r.width,n.height=r.height,n.clearRect(0,0,r.width,r.height),n.putImageData(r,0,0),(a=new Image).src=i.toDataURL(),a;throw new Error("This method requires a Browser with Canvas-capability.")},e.prototype.decodeFrames=function(r){var a,d,p,_,y,w,S,v;if(this.animation){for(v=[],d=y=0,w=(S=this.animation.frames).length;y<w;d=++y)a=S[d],p=r.createImageData(a.width,a.height),_=this.decodePixels(new Uint8Array(a.data)),this.copyToImageData(p,_),a.imageData=p,v.push(a.image=t(p));return v}},e.prototype.renderFrame=function(r,a){var d,p,_;return d=(p=this.animation.frames)[a],_=p[a-1],a===0&&r.clearRect(0,0,this.width,this.height),_?.disposeOp===1?r.clearRect(_.xOffset,_.yOffset,_.width,_.height):_?.disposeOp===2&&r.putImageData(_.imageData,_.xOffset,_.yOffset),d.blendOp===0&&r.clearRect(d.xOffset,d.yOffset,d.width,d.height),r.drawImage(d.image,d.xOffset,d.yOffset)},e.prototype.animate=function(r){var a,d,p,_,y,w,S=this;return d=0,w=this.animation,_=w.numFrames,p=w.frames,y=w.numPlays,(a=function(){var v,M;if(v=d++%_,M=p[v],S.renderFrame(r,v),_>1&&d/_<y)return S.animation._timeout=setTimeout(a,M.delay)})()},e.prototype.stopAnimation=function(){var r;return clearTimeout((r=this.animation)!=null?r._timeout:void 0)},e.prototype.render=function(r){var a,d;return r._png&&r._png.stopAnimation(),r._png=this,r.width=this.width,r.height=this.height,a=r.getContext("2d"),this.animation?(this.decodeFrames(a),this.animate(a)):(d=a.createImageData(this.width,this.height),this.copyToImageData(d,this.decodePixels()),a.putImageData(d,0,0))},e}();function qb(t){var i=0;if(t[i++]!==71||t[i++]!==73||t[i++]!==70||t[i++]!==56||(t[i++]+1&253)!=56||t[i++]!==97)throw new Error("Invalid GIF 87a/89a header.");var n=t[i++]|t[i++]<<8,e=t[i++]|t[i++]<<8,o=t[i++],r=o>>7,a=1<<(7&o)+1;t[i++],t[i++];var d=null,p=null;r&&(d=i,p=a,i+=3*a);var _=!0,y=[],w=0,S=null,v=0,M=null;for(this.width=n,this.height=e;_&&i<t.length;)switch(t[i++]){case 33:switch(t[i++]){case 255:if(t[i]!==11||t[i+1]==78&&t[i+2]==69&&t[i+3]==84&&t[i+4]==83&&t[i+5]==67&&t[i+6]==65&&t[i+7]==80&&t[i+8]==69&&t[i+9]==50&&t[i+10]==46&&t[i+11]==48&&t[i+12]==3&&t[i+13]==1&&t[i+16]==0)i+=14,M=t[i++]|t[i++]<<8,i++;else for(i+=12;;){if(!((B=t[i++])>=0))throw Error("Invalid block size");if(B===0)break;i+=B}break;case 249:if(t[i++]!==4||t[i+4]!==0)throw new Error("Invalid graphics extension block.");var F=t[i++];w=t[i++]|t[i++]<<8,S=t[i++],!(1&F)&&(S=null),v=F>>2&7,i++;break;case 254:for(;;){if(!((B=t[i++])>=0))throw Error("Invalid block size");if(B===0)break;i+=B}break;default:throw new Error("Unknown graphic control label: 0x"+t[i-1].toString(16))}break;case 44:var k=t[i++]|t[i++]<<8,I=t[i++]|t[i++]<<8,L=t[i++]|t[i++]<<8,z=t[i++]|t[i++]<<8,$=t[i++],J=$>>6&1,re=1<<(7&$)+1,de=d,Y=p,Ne=!1;$>>7&&(Ne=!0,de=i,Y=re,i+=3*re);var Ae=i;for(i++;;){var B;if(!((B=t[i++])>=0))throw Error("Invalid block size");if(B===0)break;i+=B}y.push({x:k,y:I,width:L,height:z,has_local_palette:Ne,palette_offset:de,palette_size:Y,data_offset:Ae,data_length:i-Ae,transparent_index:S,interlaced:!!J,delay:w,disposal:v});break;case 59:_=!1;break;default:throw new Error("Unknown gif block: 0x"+t[i-1].toString(16))}this.numFrames=function(){return y.length},this.loopCount=function(){return M},this.frameInfo=function(R){if(R<0||R>=y.length)throw new Error("Frame index out of range.");return y[R]},this.decodeAndBlitFrameBGRA=function(R,Z){var K=this.frameInfo(R),we=K.width*K.height,be=new Uint8Array(we);L0(t,K.data_offset,be,we);var Ee=K.palette_offset,he=K.transparent_index;he===null&&(he=256);var Ie=K.width,Fe=n-Ie,Ge=Ie,T=4*(K.y*n+K.x),U=4*((K.y+K.height)*n+K.x),G=T,ie=4*Fe;K.interlaced===!0&&(ie+=4*n*7);for(var le=8,ge=0,ve=be.length;ge<ve;++ge){var ye=be[ge];if(Ge===0&&(Ge=Ie,(G+=ie)>=U&&(ie=4*Fe+4*n*(le-1),G=T+(Ie+Fe)*(le<<1),le>>=1)),ye===he)G+=4;else{var Be=t[Ee+3*ye],qe=t[Ee+3*ye+1],Ke=t[Ee+3*ye+2];Z[G++]=Ke,Z[G++]=qe,Z[G++]=Be,Z[G++]=255}--Ge}},this.decodeAndBlitFrameRGBA=function(R,Z){var K=this.frameInfo(R),we=K.width*K.height,be=new Uint8Array(we);L0(t,K.data_offset,be,we);var Ee=K.palette_offset,he=K.transparent_index;he===null&&(he=256);var Ie=K.width,Fe=n-Ie,Ge=Ie,T=4*(K.y*n+K.x),U=4*((K.y+K.height)*n+K.x),G=T,ie=4*Fe;K.interlaced===!0&&(ie+=4*n*7);for(var le=8,ge=0,ve=be.length;ge<ve;++ge){var ye=be[ge];if(Ge===0&&(Ge=Ie,(G+=ie)>=U&&(ie=4*Fe+4*n*(le-1),G=T+(Ie+Fe)*(le<<1),le>>=1)),ye===he)G+=4;else{var Be=t[Ee+3*ye],qe=t[Ee+3*ye+1],Ke=t[Ee+3*ye+2];Z[G++]=Be,Z[G++]=qe,Z[G++]=Ke,Z[G++]=255}--Ge}}}function L0(t,i,n,e){for(var o=t[i++],r=1<<o,a=r+1,d=a+1,p=o+1,_=(1<<p)-1,y=0,w=0,S=0,v=t[i++],M=new Int32Array(4096),F=null;;){for(;y<16&&v!==0;)w|=t[i++]<<y,y+=8,v===1?v=t[i++]:--v;if(y<p)break;var k=w&_;if(w>>=p,y-=p,k!==r){if(k===a)break;for(var I=k<d?k:F,L=0,z=I;z>r;)z=M[z]>>8,++L;var $=z;if(S+L+(I!==k?1:0)>e)return void ci.log("Warning, gif stream longer than expected.");n[S++]=$;var J=S+=L;for(I!==k&&(n[S++]=$),z=I;L--;)z=M[z],n[--J]=255&z,z>>=8;F!==null&&d<4096&&(M[d++]=F<<8|$,d>=_+1&&p<12&&(++p,_=_<<1|1)),F=k}else d=a+1,_=(1<<(p=o+1))-1,F=null}return S!==e&&ci.log("Warning, gif stream shorter than expected."),n}function bu(t){var i,n,e,o,r,a=Math.floor,d=new Array(64),p=new Array(64),_=new Array(64),y=new Array(64),w=new Array(65535),S=new Array(65535),v=new Array(64),M=new Array(64),F=[],k=0,I=7,L=new Array(64),z=new Array(64),$=new Array(64),J=new Array(256),re=new Array(2048),de=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],Y=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Ne=[0,1,2,3,4,5,6,7,8,9,10,11],Ae=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],B=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],R=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Z=[0,1,2,3,4,5,6,7,8,9,10,11],K=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],we=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function be(T,U){for(var G=0,ie=0,le=new Array,ge=1;ge<=16;ge++){for(var ve=1;ve<=T[ge];ve++)le[U[ie]]=[],le[U[ie]][0]=G,le[U[ie]][1]=ge,ie++,G++;G*=2}return le}function Ee(T){for(var U=T[0],G=T[1]-1;G>=0;)U&1<<G&&(k|=1<<I),G--,--I<0&&(k==255?(he(255),he(0)):he(k),I=7,k=0)}function he(T){F.push(T)}function Ie(T){he(T>>8&255),he(255&T)}function Fe(T,U,G,ie,le){for(var ge,ve=le[0],ye=le[240],Be=function(De,je){var We,He,rt,vt,xt,It,qt,ni,ht,Mt,$e=0;for(ht=0;ht<8;++ht){We=De[$e],He=De[$e+1],rt=De[$e+2],vt=De[$e+3],xt=De[$e+4],It=De[$e+5],qt=De[$e+6];var on=We+(ni=De[$e+7]),zt=We-ni,Xn=He+qt,li=He-qt,hi=rt+It,br=rt-It,Yt=vt+xt,ia=vt-xt,vi=on+Yt,er=on-Yt,Jr=Xn+hi,_i=Xn-hi;De[$e]=vi+Jr,De[$e+4]=vi-Jr;var _t=.707106781*(_i+er);De[$e+2]=er+_t,De[$e+6]=er-_t;var Qt=.382683433*((vi=ia+br)-(_i=li+zt)),na=.5411961*vi+Qt,Qi=1.306562965*_i+Qt,yr=.707106781*(Jr=br+li),Cr=zt+yr,ut=zt-yr;De[$e+5]=ut+na,De[$e+3]=ut-na,De[$e+1]=Cr+Qi,De[$e+7]=Cr-Qi,$e+=8}for($e=0,ht=0;ht<8;++ht){We=De[$e],He=De[$e+8],rt=De[$e+16],vt=De[$e+24],xt=De[$e+32],It=De[$e+40],qt=De[$e+48];var tr=We+(ni=De[$e+56]),wr=We-ni,bn=He+qt,Di=He-qt,Ii=rt+It,Nn=rt-It,Ea=vt+xt,Zr=vt-xt,ir=tr+Ea,nr=tr-Ea,rr=bn+Ii,Sr=bn-Ii;De[$e]=ir+rr,De[$e+32]=ir-rr;var qn=.707106781*(Sr+nr);De[$e+16]=nr+qn,De[$e+48]=nr-qn;var xr=.382683433*((ir=Zr+Nn)-(Sr=Di+wr)),ra=.5411961*ir+xr,Fa=1.306562965*Sr+xr,Ia=.707106781*(rr=Nn+Di),Aa=wr+Ia,Ma=wr-Ia;De[$e+40]=Ma+ra,De[$e+24]=Ma-ra,De[$e+8]=Aa+Fa,De[$e+56]=Aa-Fa,$e++}for(ht=0;ht<64;++ht)Mt=De[ht]*je[ht],v[ht]=Mt>0?Mt+.5|0:Mt-.5|0;return v}(T,U),qe=0;qe<64;++qe)M[de[qe]]=Be[qe];var Ke=M[0]-G;G=M[0],Ke==0?Ee(ie[0]):(Ee(ie[S[ge=32767+Ke]]),Ee(w[ge]));for(var Je=63;Je>0&&M[Je]==0;)Je--;if(Je==0)return Ee(ve),G;for(var mt,xe=1;xe<=Je;){for(var W=xe;M[xe]==0&&xe<=Je;)++xe;var yt=xe-W;if(yt>=16){mt=yt>>4;for(var it=1;it<=mt;++it)Ee(ye);yt&=15}ge=32767+M[xe],Ee(le[(yt<<4)+S[ge]]),Ee(w[ge]),xe++}return Je!=63&&Ee(ve),G}function Ge(T){T=Math.min(Math.max(T,1),100),r!=T&&(function(U){for(var G=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],ie=0;ie<64;ie++){var le=a((G[ie]*U+50)/100);le=Math.min(Math.max(le,1),255),d[de[ie]]=le}for(var ge=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],ve=0;ve<64;ve++){var ye=a((ge[ve]*U+50)/100);ye=Math.min(Math.max(ye,1),255),p[de[ve]]=ye}for(var Be=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],qe=0,Ke=0;Ke<8;Ke++)for(var Je=0;Je<8;Je++)_[qe]=1/(d[de[qe]]*Be[Ke]*Be[Je]*8),y[qe]=1/(p[de[qe]]*Be[Ke]*Be[Je]*8),qe++}(T<50?Math.floor(5e3/T):Math.floor(200-2*T)),r=T)}this.encode=function(T,U){U&&Ge(U),F=new Array,k=0,I=7,Ie(65496),Ie(65504),Ie(16),he(74),he(70),he(73),he(70),he(0),he(1),he(1),he(0),Ie(1),Ie(1),he(0),he(0),function(){Ie(65499),Ie(132),he(0);for(var He=0;He<64;He++)he(d[He]);he(1);for(var rt=0;rt<64;rt++)he(p[rt])}(),function(He,rt){Ie(65472),Ie(17),he(8),Ie(rt),Ie(He),he(3),he(1),he(17),he(0),he(2),he(17),he(1),he(3),he(17),he(1)}(T.width,T.height),function(){Ie(65476),Ie(418),he(0);for(var He=0;He<16;He++)he(Y[He+1]);for(var rt=0;rt<=11;rt++)he(Ne[rt]);he(16);for(var vt=0;vt<16;vt++)he(Ae[vt+1]);for(var xt=0;xt<=161;xt++)he(B[xt]);he(1);for(var It=0;It<16;It++)he(R[It+1]);for(var qt=0;qt<=11;qt++)he(Z[qt]);he(17);for(var ni=0;ni<16;ni++)he(K[ni+1]);for(var ht=0;ht<=161;ht++)he(we[ht])}(),Ie(65498),Ie(12),he(3),he(1),he(0),he(2),he(17),he(3),he(17),he(0),he(63),he(0);var G=0,ie=0,le=0;k=0,I=7,this.encode.displayName="_encode_";for(var ge,ve,ye,Be,qe,Ke,Je,mt,xe,W=T.data,yt=T.width,it=T.height,De=4*yt,je=0;je<it;){for(ge=0;ge<De;){for(qe=De*je+ge,Je=-1,mt=0,xe=0;xe<64;xe++)Ke=qe+(mt=xe>>3)*De+(Je=4*(7&xe)),je+mt>=it&&(Ke-=De*(je+1+mt-it)),ge+Je>=De&&(Ke-=ge+Je-De+4),ve=W[Ke++],ye=W[Ke++],Be=W[Ke++],L[xe]=(re[ve]+re[ye+256>>0]+re[Be+512>>0]>>16)-128,z[xe]=(re[ve+768>>0]+re[ye+1024>>0]+re[Be+1280>>0]>>16)-128,$[xe]=(re[ve+1280>>0]+re[ye+1536>>0]+re[Be+1792>>0]>>16)-128;G=Fe(L,_,G,i,e),ie=Fe(z,y,ie,n,o),le=Fe($,y,le,n,o),ge+=32}je+=8}if(I>=0){var We=[];We[1]=I+1,We[0]=(1<<I+1)-1,Ee(We)}return Ie(65497),new Uint8Array(F)},t=t||50,function(){for(var T=String.fromCharCode,U=0;U<256;U++)J[U]=T(U)}(),i=be(Y,Ne),n=be(R,Z),e=be(Ae,B),o=be(K,we),function(){for(var T=1,U=2,G=1;G<=15;G++){for(var ie=T;ie<U;ie++)S[32767+ie]=G,w[32767+ie]=[],w[32767+ie][1]=G,w[32767+ie][0]=ie;for(var le=-(U-1);le<=-T;le++)S[32767+le]=G,w[32767+le]=[],w[32767+le][1]=G,w[32767+le][0]=U-1+le;T<<=1,U<<=1}}(),function(){for(var T=0;T<256;T++)re[T]=19595*T,re[T+256>>0]=38470*T,re[T+512>>0]=7471*T+32768,re[T+768>>0]=-11059*T,re[T+1024>>0]=-21709*T,re[T+1280>>0]=32768*T+8421375,re[T+1536>>0]=-27439*T,re[T+1792>>0]=-5329*T}(),Ge(t)}function gr(t,i){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!i,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function O0(t){function i(Y){if(!Y)throw Error("assert :P")}function n(Y,Ne,Ae){for(var B=0;4>B;B++)if(Y[Ne+B]!=Ae.charCodeAt(B))return!0;return!1}function e(Y,Ne,Ae,B,R){for(var Z=0;Z<R;Z++)Y[Ne+Z]=Ae[B+Z]}function o(Y,Ne,Ae,B){for(var R=0;R<B;R++)Y[Ne+R]=Ae}function r(Y){return new Int32Array(Y)}function a(Y,Ne){for(var Ae=[],B=0;B<Y;B++)Ae.push(new Ne);return Ae}function d(Y,Ne){var Ae=[];return function B(R,Z,K){for(var we=K[Z],be=0;be<we&&(R.push(K.length>Z+1?[]:new Ne),!(K.length<Z+1));be++)B(R[be],Z+1,K)}(Ae,0,Y),Ae}var p=function(){var Y=this;function Ne(l,u){for(var f=1<<u-1>>>0;l&f;)f>>>=1;return f?(l&f-1)+f:l}function Ae(l,u,f,C,x){i(!(C%f));do l[u+(C-=f)]=x;while(0<C)}function B(l,u,f,C,x){if(i(2328>=x),512>=x)var A=r(512);else if((A=r(x))==null)return 0;return function(N,P,D,q,X,ue){var pe,ae,Pe=P,Ce=1<<D,te=r(16),ne=r(16);for(i(X!=0),i(q!=null),i(N!=null),i(0<D),ae=0;ae<X;++ae){if(15<q[ae])return 0;++te[q[ae]]}if(te[0]==X)return 0;for(ne[1]=0,pe=1;15>pe;++pe){if(te[pe]>1<<pe)return 0;ne[pe+1]=ne[pe]+te[pe]}for(ae=0;ae<X;++ae)pe=q[ae],0<q[ae]&&(ue[ne[pe]++]=ae);if(ne[15]==1)return(q=new R).g=0,q.value=ue[0],Ae(N,Pe,1,Ce,q),Ce;var Me,Le=-1,Te=Ce-1,Qe=0,Ue=1,st=1,ze=1<<D;for(ae=0,pe=1,X=2;pe<=D;++pe,X<<=1){if(Ue+=st<<=1,0>(st-=te[pe]))return 0;for(;0<te[pe];--te[pe])(q=new R).g=pe,q.value=ue[ae++],Ae(N,Pe+Qe,X,ze,q),Qe=Ne(Qe,pe)}for(pe=D+1,X=2;15>=pe;++pe,X<<=1){if(Ue+=st<<=1,0>(st-=te[pe]))return 0;for(;0<te[pe];--te[pe]){if(q=new R,(Qe&Te)!=Le){for(Pe+=ze,Me=1<<(Le=pe)-D;15>Le&&!(0>=(Me-=te[Le]));)++Le,Me<<=1;Ce+=ze=1<<(Me=Le-D),N[P+(Le=Qe&Te)].g=Me+D,N[P+Le].value=Pe-P-Le}q.g=pe-D,q.value=ue[ae++],Ae(N,Pe+(Qe>>D),X,ze,q),Qe=Ne(Qe,pe)}}return Ue!=2*ne[15]-1?0:Ce}(l,u,f,C,x,A)}function R(){this.value=this.g=0}function Z(){this.value=this.g=0}function K(){this.G=a(5,R),this.H=r(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(Cn,Z)}function we(l,u,f,C){i(l!=null),i(u!=null),i(2147483648>C),l.Ca=254,l.I=0,l.b=-8,l.Ka=0,l.oa=u,l.pa=f,l.Jd=u,l.Yc=f+C,l.Zc=4<=C?f+C-4+1:f,ge(l)}function be(l,u){for(var f=0;0<u--;)f|=ye(l,128)<<u;return f}function Ee(l,u){var f=be(l,u);return ve(l)?-f:f}function he(l,u,f,C){var x,A=0;for(i(l!=null),i(u!=null),i(4294967288>C),l.Sb=C,l.Ra=0,l.u=0,l.h=0,4<C&&(C=4),x=0;x<C;++x)A+=u[f+x]<<8*x;l.Ra=A,l.bb=C,l.oa=u,l.pa=f}function Ie(l){for(;8<=l.u&&l.bb<l.Sb;)l.Ra>>>=8,l.Ra+=l.oa[l.pa+l.bb]<<Ha-8>>>0,++l.bb,l.u-=8;G(l)&&(l.h=1,l.u=0)}function Fe(l,u){if(i(0<=u),!l.h&&u<=za){var f=U(l)&Ua[u];return l.u+=u,Ie(l),f}return l.h=1,l.u=0}function Ge(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function T(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function U(l){return l.Ra>>>(l.u&Ha-1)>>>0}function G(l){return i(l.bb<=l.Sb),l.h||l.bb==l.Sb&&l.u>Ha}function ie(l,u){l.u=u,l.h=G(l)}function le(l){l.u>=ql&&(i(l.u>=ql),Ie(l))}function ge(l){i(l!=null&&l.oa!=null),l.pa<l.Zc?(l.I=(l.oa[l.pa++]|l.I<<8)>>>0,l.b+=8):(i(l!=null&&l.oa!=null),l.pa<l.Yc?(l.b+=8,l.I=l.oa[l.pa++]|l.I<<8):l.Ka?l.b=0:(l.I<<=8,l.b+=8,l.Ka=1))}function ve(l){return be(l,1)}function ye(l,u){var f=l.Ca;0>l.b&&ge(l);var C=l.b,x=f*u>>>8,A=(l.I>>>C>x)+0;for(A?(f-=x,l.I-=x+1<<C>>>0):f=x+1,C=f,x=0;256<=C;)x+=8,C>>=8;return C=7^x+wn[C],l.b-=C,l.Ca=(f<<C)-1,A}function Be(l,u,f){l[u+0]=f>>24&255,l[u+1]=f>>16&255,l[u+2]=f>>8&255,l[u+3]=f>>0&255}function qe(l,u){return l[u+0]<<0|l[u+1]<<8}function Ke(l,u){return qe(l,u)|l[u+2]<<16}function Je(l,u){return qe(l,u)|qe(l,u+2)<<16}function mt(l,u){var f=1<<u;return i(l!=null),i(0<u),l.X=r(f),l.X==null?0:(l.Mb=32-u,l.Xa=u,1)}function xe(l,u){i(l!=null),i(u!=null),i(l.Xa==u.Xa),e(u.X,0,l.X,0,1<<u.Xa)}function W(){this.X=[],this.Xa=this.Mb=0}function yt(l,u,f,C){i(f!=null),i(C!=null);var x=f[0],A=C[0];return x==0&&(x=(l*A+u/2)/u),A==0&&(A=(u*x+l/2)/l),0>=x||0>=A?0:(f[0]=x,C[0]=A,1)}function it(l,u){return l+(1<<u)-1>>>u}function De(l,u){return((4278255360&l)+(4278255360&u)>>>0&4278255360)+((16711935&l)+(16711935&u)>>>0&16711935)>>>0}function je(l,u){Y[u]=function(f,C,x,A,N,P,D){var q;for(q=0;q<N;++q){var X=Y[l](P[D+q-1],x,A+q);P[D+q]=De(f[C+q],X)}}}function We(){this.ud=this.hd=this.jd=0}function He(l,u){return((4278124286&(l^u))>>>1)+(l&u)>>>0}function rt(l){return 0<=l&&256>l?l:0>l?0:255<l?255:void 0}function vt(l,u){return rt(l+(l-u+.5>>1))}function xt(l,u,f){return Math.abs(u-f)-Math.abs(l-f)}function It(l,u,f,C,x,A,N){for(C=A[N-1],f=0;f<x;++f)A[N+f]=C=De(l[u+f],C)}function qt(l,u,f,C,x){var A;for(A=0;A<f;++A){var N=l[u+A],P=N>>8&255,D=16711935&(D=(D=16711935&N)+((P<<16)+P));C[x+A]=(4278255360&N)+D>>>0}}function ni(l,u){u.jd=l>>0&255,u.hd=l>>8&255,u.ud=l>>16&255}function ht(l,u,f,C,x,A){var N;for(N=0;N<C;++N){var P=u[f+N],D=P>>>8,q=P,X=255&(X=(X=P>>>16)+((l.jd<<24>>24)*(D<<24>>24)>>>5));q=255&(q=(q=q+((l.hd<<24>>24)*(D<<24>>24)>>>5))+((l.ud<<24>>24)*(X<<24>>24)>>>5)),x[A+N]=(4278255360&P)+(X<<16)+q}}function Mt(l,u,f,C,x){Y[u]=function(A,N,P,D,q,X,ue,pe,ae){for(D=ue;D<pe;++D)for(ue=0;ue<ae;++ue)q[X++]=x(P[C(A[N++])])},Y[l]=function(A,N,P,D,q,X,ue){var pe=8>>A.b,ae=A.Ea,Pe=A.K[0],Ce=A.w;if(8>pe)for(A=(1<<A.b)-1,Ce=(1<<pe)-1;N<P;++N){var te,ne=0;for(te=0;te<ae;++te)te&A||(ne=C(D[q++])),X[ue++]=x(Pe[ne&Ce]),ne>>=pe}else Y["VP8LMapColor"+f](D,q,Pe,Ce,X,ue,N,P,ae)}}function $e(l,u,f,C,x){for(f=u+f;u<f;){var A=l[u++];C[x++]=A>>16&255,C[x++]=A>>8&255,C[x++]=A>>0&255}}function on(l,u,f,C,x){for(f=u+f;u<f;){var A=l[u++];C[x++]=A>>16&255,C[x++]=A>>8&255,C[x++]=A>>0&255,C[x++]=A>>24&255}}function zt(l,u,f,C,x){for(f=u+f;u<f;){var A=(N=l[u++])>>16&240|N>>12&15,N=N>>0&240|N>>28&15;C[x++]=A,C[x++]=N}}function Xn(l,u,f,C,x){for(f=u+f;u<f;){var A=(N=l[u++])>>16&248|N>>13&7,N=N>>5&224|N>>3&31;C[x++]=A,C[x++]=N}}function li(l,u,f,C,x){for(f=u+f;u<f;){var A=l[u++];C[x++]=A>>0&255,C[x++]=A>>8&255,C[x++]=A>>16&255}}function hi(l,u,f,C,x,A){if(A==0)for(f=u+f;u<f;)Be(C,((A=l[u++])[0]>>24|A[1]>>8&65280|A[2]<<8&16711680|A[3]<<24)>>>0),x+=32;else e(C,x,l,u,f)}function br(l,u){Y[u][0]=Y[l+"0"],Y[u][1]=Y[l+"1"],Y[u][2]=Y[l+"2"],Y[u][3]=Y[l+"3"],Y[u][4]=Y[l+"4"],Y[u][5]=Y[l+"5"],Y[u][6]=Y[l+"6"],Y[u][7]=Y[l+"7"],Y[u][8]=Y[l+"8"],Y[u][9]=Y[l+"9"],Y[u][10]=Y[l+"10"],Y[u][11]=Y[l+"11"],Y[u][12]=Y[l+"12"],Y[u][13]=Y[l+"13"],Y[u][14]=Y[l+"0"],Y[u][15]=Y[l+"0"]}function Yt(l){return l==xd||l==Ed||l==qs||l==Fd}function ia(){this.eb=[],this.size=this.A=this.fb=0}function vi(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function er(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new ia,this.f.kb=new vi,this.sd=null}function Jr(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function _i(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function _t(l){return alert("todo:WebPSamplerProcessPlane"),l.T}function Qt(l,u){var f=l.T,C=u.ba.f.RGBA,x=C.eb,A=C.fb+l.ka*C.A,N=zn[u.ba.S],P=l.y,D=l.O,q=l.f,X=l.N,ue=l.ea,pe=l.W,ae=u.cc,Pe=u.dc,Ce=u.Mc,te=u.Nc,ne=l.ka,Me=l.ka+l.T,Le=l.U,Te=Le+1>>1;for(ne==0?N(P,D,null,null,q,X,ue,pe,q,X,ue,pe,x,A,null,null,Le):(N(u.ec,u.fc,P,D,ae,Pe,Ce,te,q,X,ue,pe,x,A-C.A,x,A,Le),++f);ne+2<Me;ne+=2)ae=q,Pe=X,Ce=ue,te=pe,X+=l.Rc,pe+=l.Rc,A+=2*C.A,N(P,(D+=2*l.fa)-l.fa,P,D,ae,Pe,Ce,te,q,X,ue,pe,x,A-C.A,x,A,Le);return D+=l.fa,l.j+Me<l.o?(e(u.ec,u.fc,P,D,Le),e(u.cc,u.dc,q,X,Te),e(u.Mc,u.Nc,ue,pe,Te),f--):1&Me||N(P,D,null,null,q,X,ue,pe,q,X,ue,pe,x,A+C.A,null,null,Le),f}function na(l,u,f){var C=l.F,x=[l.J];if(C!=null){var A=l.U,N=u.ba.S,P=N==Vs||N==qs;u=u.ba.f.RGBA;var D=[0],q=l.ka;D[0]=l.T,l.Kb&&(q==0?--D[0]:(--q,x[0]-=l.width),l.j+l.ka+l.T==l.o&&(D[0]=l.o-l.j-q));var X=u.eb;q=u.fb+q*u.A,l=Ls(C,x[0],l.width,A,D,X,q+(P?0:3),u.A),i(f==D),l&&Yt(N)&&Eo(X,q,P,A,D,u.A)}return 0}function Qi(l){var u=l.ma,f=u.ba.S,C=11>f,x=f==Ds||f==Rs||f==Vs||f==Sd||f==12||Yt(f);if(u.memory=null,u.Ib=null,u.Jb=null,u.Nd=null,!Rl(u.Oa,l,x?11:12))return 0;if(x&&Yt(f)&&Oe(),l.da)alert("todo:use_scaling");else{if(C){if(u.Ib=_t,l.Kb){if(f=l.U+1>>1,u.memory=r(l.U+2*f),u.memory==null)return 0;u.ec=u.memory,u.fc=0,u.cc=u.ec,u.dc=u.fc+l.U,u.Mc=u.cc,u.Nc=u.dc+f,u.Ib=Qt,Oe()}}else alert("todo:EmitYUV");x&&(u.Jb=na,C&&ce())}if(C&&!zu){for(l=0;256>l;++l)xf[l]=89858*(l-128)+js>>Bs,If[l]=-22014*(l-128)+js,Ff[l]=-45773*(l-128),Ef[l]=113618*(l-128)+js>>Bs;for(l=Gl;l<Md;++l)u=76283*(l-16)+js>>Bs,Af[l-Gl]=Tn(u,255),Mf[l-Gl]=Tn(u+8>>4,15);zu=1}return 1}function yr(l){var u=l.ma,f=l.U,C=l.T;return i(!(1&l.ka)),0>=f||0>=C?0:(f=u.Ib(l,u),u.Jb!=null&&u.Jb(l,u,f),u.Dc+=f,1)}function Cr(l){l.ma.memory=null}function ut(l,u,f,C){return Fe(l,8)!=47?0:(u[0]=Fe(l,14)+1,f[0]=Fe(l,14)+1,C[0]=Fe(l,1),Fe(l,3)!=0?0:!l.h)}function tr(l,u){if(4>l)return l+1;var f=l-2>>1;return(2+(1&l)<<f)+Fe(u,f)+1}function wr(l,u){return 120<u?u-120:1<=(f=((f=df[u-1])>>4)*l+(8-(15&f)))?f:1;var f}function bn(l,u,f){var C=U(f),x=l[u+=255&C].g-8;return 0<x&&(ie(f,f.u+8),C=U(f),u+=l[u].value,u+=C&(1<<x)-1),ie(f,f.u+l[u].g),l[u].value}function Di(l,u,f){return f.g+=l.g,f.value+=l.value<<u>>>0,i(8>=f.g),l.g}function Ii(l,u,f){var C=l.xc;return i((u=C==0?0:l.vc[l.md*(f>>C)+(u>>C)])<l.Wb),l.Ya[u]}function Nn(l,u,f,C){var x=l.ab,A=l.c*u,N=l.C;u=N+u;var P=f,D=C;for(C=l.Ta,f=l.Ua;0<x--;){var q=l.gc[x],X=N,ue=u,pe=P,ae=D,Pe=(D=C,P=f,q.Ea);switch(i(X<ue),i(ue<=q.nc),q.hc){case 2:Ps(pe,ae,(ue-X)*Pe,D,P);break;case 0:var Ce=X,te=ue,ne=D,Me=P,Le=(ze=q).Ea;Ce==0&&(bd(pe,ae,null,null,1,ne,Me),It(pe,ae+1,0,0,Le-1,ne,Me+1),ae+=Le,Me+=Le,++Ce);for(var Te=1<<ze.b,Qe=Te-1,Ue=it(Le,ze.b),st=ze.K,ze=ze.w+(Ce>>ze.b)*Ue;Ce<te;){var Wt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A.U,A=A.T,q=X.eb,X.A),pe=A;for(X=X.fb+l.Ma*X.A;0<pe--;){var ae=N,Pe=P,Ce=x,te=q,ne=X;switch(C){case ks:cr(ae,Pe,Ce,te,ne);break;case Ds:wo(ae,Pe,Ce,te,ne);break;case xd:wo(ae,Pe,Ce,te,ne),Eo(te,ne,0,Ce,1,0);break;case Lu:Ga(ae,Pe,Ce,te,ne);break;case Rs:hi(ae,Pe,Ce,te,ne,1);break;case Ed:hi(ae,Pe,Ce,te,ne,1),Eo(te,ne,0,Ce,1,0);break;case Vs:hi(ae,Pe,Ce,te,ne,0);break;case qs:hi(ae,Pe,Ce,te,ne,0),Eo(te,ne,1,Ce,1,0);break;case Sd:Fr(ae,Pe,Ce,te,ne);break;case Fd:Fr(ae,Pe,Ce,te,ne),Ka(te,ne,Ce,1,0);break;case Ou:io(ae,Pe,Ce,te,ne);break;default:i(0)}P+=D,X+=ue}l.Ma+=A}else alert("todo:EmitRescaledRowsYUVA");i(l.Ma<=f.height)}}l.C=u,i(l.C<=l.i)}function Zr(l){var u;if(0<l.ua)return 0;for(u=0;u<l.Wb;++u){var f=l.Ya[u].G,C=l.Ya[u].H;if(0<f[1][C[1]+0].g||0<f[2][C[2]+0].g||0<f[3][C[3]+0].g)return 0}return 1}function ir(l,u,f,C,x,A){if(l.Z!=0){var N=l.qd,P=l.rd;for(i(Io[l.Z]!=null);u<f;++u)Io[l.Z](N,P,C,x,C,x,A),N=C,P=x,x+=A;l.qd=N,l.rd=P}}function nr(l,u){var f=l.l.ma,C=f.Z==0||f.Z==1?l.l.j:l.C;if(C=l.C<C?C:l.C,i(u<=l.l.o),u>C){var x=l.l.width,A=f.ca,N=f.tb+x*C,P=l.V,D=l.Ba+l.c*C,q=l.gc;i(l.ab==1),i(q[0].hc==3),yd(q[0],C,u,P,D,A,N),ir(f,C,u,A,N,x)}l.C=l.Ma=u}function rr(l,u,f,C,x,A,N){var P=l.$/C,D=l.$%C,q=l.m,X=l.s,ue=f+l.$,pe=ue;x=f+C*x;var ae=f+C*A,Pe=280+X.ua,Ce=l.Pb?P:16777216,te=0<X.ua?X.Wa:null,ne=X.wc,Me=ue<ae?Ii(X,D,P):null;i(l.C<A),i(ae<=x);var Le=!1;e:for(;;){for(;Le||ue<ae;){var Te=0;if(P>=Ce){var Qe=ue-f;i((Ce=l).Pb),Ce.wd=Ce.m,Ce.xd=Qe,0<Ce.s.ua&&xe(Ce.s.Wa,Ce.s.vb),Ce=P+pf}if(D&ne||(Me=Ii(X,D,P)),i(Me!=null),Me.Qb&&(u[ue]=Me.qb,Le=!0),!Le)if(le(q),Me.jc){Te=q,Qe=u;var Ue=ue,st=Me.pd[U(Te)&Cn-1];i(Me.jc),256>st.g?(ie(Te,Te.u+st.g),Qe[Ue]=st.value,Te=0):(ie(Te,Te.u+st.g-256),i(256<=st.value),Te=st.value),Te==0&&(Le=!0)}else Te=bn(Me.G[0],Me.H[0],q);if(q.h)break;if(Le||256>Te){if(!Le)if(Me.nd)u[ue]=(Me.qb|Te<<8)>>>0;else{if(le(q),Le=bn(Me.G[1],Me.H[1],q),le(q),Qe=bn(Me.G[2],Me.H[2],q),Ue=bn(Me.G[3],Me.H[3],q),q.h)break;u[ue]=(Ue<<24|Le<<16|Te<<8|Qe)>>>0}if(Le=!1,++ue,++D>=C&&(D=0,++P,N!=null&&P<=A&&!(P%16)&&N(l,P),te!=null))for(;pe<ue;)Te=u[pe++],te.X[(506832829*Te&4294967295)>>>te.Mb]=Te}else if(280>Te){if(Te=tr(Te-256,q),Qe=bn(Me.G[4],Me.H[4],q),le(q),Qe=wr(C,Qe=tr(Qe,q)),q.h)break;if(ue-f<Qe||x-ue<Te)break e;for(Ue=0;Ue<Te;++Ue)u[ue+Ue]=u[ue+Ue-Qe];for(ue+=Te,D+=Te;D>=C;)D-=C,++P,N!=null&&P<=A&&!(P%16)&&N(l,P);if(i(ue<=x),D&ne&&(Me=Ii(X,D,P)),te!=null)for(;pe<ue;)Te=u[pe++],te.X[(506832829*Te&4294967295)>>>te.Mb]=Te}else{if(!(Te<Pe))break e;for(Le=Te-280,i(te!=null);pe<ue;)Te=u[pe++],te.X[(506832829*Te&4294967295)>>>te.Mb]=Te;Te=ue,i(!(Le>>>(Qe=te).Xa)),u[Te]=Qe.X[Le],Le=!0}Le||i(q.h==G(q))}if(l.Pb&&q.h&&ue<x)i(l.m.h),l.a=5,l.m=l.wd,l.$=l.xd,0<l.s.ua&&xe(l.s.vb,l.s.Wa);else{if(q.h)break e;N?.(l,P>A?A:P),l.a=0,l.$=ue-f}return 1}return l.a=3,0}function Sr(l){i(l!=null),l.vc=null,l.yc=null,l.Ya=null;var u=l.Wa;u!=null&&(u.X=null),l.vb=null,i(l!=null)}function qn(){var l=new _d;return l==null?null:(l.a=0,l.xb=Ru,br("Predictor","VP8LPredictors"),br("Predictor","VP8LPredictors_C"),br("PredictorAdd","VP8LPredictorsAdd"),br("PredictorAdd","VP8LPredictorsAdd_C"),Ps=qt,Bn=ht,cr=$e,wo=on,Fr=zt,io=Xn,Ga=li,Y.VP8LMapColor32b=jl,Y.VP8LMapColor8b=Cd,l)}function xr(l,u,f,C,x){var A=1,N=[l],P=[u],D=C.m,q=C.s,X=null,ue=0;e:for(;;){if(f)for(;A&&Fe(D,1);){var pe=N,ae=P,Pe=C,Ce=1,te=Pe.m,ne=Pe.gc[Pe.ab],Me=Fe(te,2);if(Pe.Oc&1<<Me)A=0;else{switch(Pe.Oc|=1<<Me,ne.hc=Me,ne.Ea=pe[0],ne.nc=ae[0],ne.K=[null],++Pe.ab,i(4>=Pe.ab),Me){case 0:case 1:ne.b=Fe(te,3)+2,Ce=xr(it(ne.Ea,ne.b),it(ne.nc,ne.b),0,Pe,ne.K),ne.K=ne.K[0];break;case 3:var Le,Te=Fe(te,8)+1,Qe=16<Te?0:4<Te?1:2<Te?2:3;if(pe[0]=it(ne.Ea,Qe),ne.b=Qe,Le=Ce=xr(Te,1,0,Pe,ne.K)){var Ue,st=Te,ze=ne,Wt=1<<(8>>ze.b),Xt=r(Wt);if(Xt==null)Le=0;else{var Bt=ze.K[0],Nt=ze.w;for(Xt[0]=ze.K[0][0],Ue=1;Ue<1*st;++Ue)Xt[Ue]=De(Bt[Nt+Ue],Xt[Ue-1]);for(;Ue<4*Wt;++Ue)Xt[Ue]=0;ze.K[0]=null,ze.K[0]=Xt,Le=1}}Ce=Le;break;case 2:break;default:i(0)}A=Ce}}if(N=N[0],P=P[0],A&&Fe(D,1)&&!(A=1<=(ue=Fe(D,4))&&11>=ue)){C.a=3;break e}var si;if(si=A)t:{var ri,wt,Mi,Sn=C,Ni=N,xn=P,ei=ue,Ln=f,On=Sn.m,Ui=Sn.s,Ji=[null],gn=1,Hn=0,Ir=uf[ei];i:for(;;){if(Ln&&Fe(On,1)){var zi=Fe(On,3)+2,lo=it(Ni,zi),ua=it(xn,zi),Ya=lo*ua;if(!xr(lo,ua,0,Sn,Ji))break i;for(Ji=Ji[0],Ui.xc=zi,ri=0;ri<Ya;++ri){var Ao=Ji[ri]>>8&65535;Ji[ri]=Ao,Ao>=gn&&(gn=Ao+1)}}if(On.h)break i;for(wt=0;5>wt;++wt){var yi=ku[wt];!wt&&0<ei&&(yi+=1<<ei),Hn<yi&&(Hn=yi)}var Nd=a(gn*Ir,R),Wu=gn,$u=a(Wu,K);if($u==null)var zs=null;else i(65536>=Wu),zs=$u;var Wl=r(Hn);if(zs==null||Wl==null||Nd==null){Sn.a=1;break i}var Hs=Nd;for(ri=Mi=0;ri<gn;++ri){var mr=zs[ri],Qa=mr.G,Ja=mr.H,Ku=0,Gs=1,Yu=0;for(wt=0;5>wt;++wt){yi=ku[wt],Qa[wt]=Hs,Ja[wt]=Mi,!wt&&0<ei&&(yi+=1<<ei);r:{var Ws,Td=yi,$s=Sn,$l=Wl,Pf=Hs,Lf=Mi,Pd=0,Mo=$s.m,Of=Fe(Mo,1);if(o($l,0,0,Td),Of){var kf=Fe(Mo,1)+1,Df=Fe(Mo,1),Qu=Fe(Mo,Df==0?1:8);$l[Qu]=1,kf==2&&($l[Qu=Fe(Mo,8)]=1);var Ks=1}else{var Ju=r(19),Zu=Fe(Mo,4)+4;if(19<Zu){$s.a=3;var Ys=0;break r}for(Ws=0;Ws<Zu;++Ws)Ju[cf[Ws]]=Fe(Mo,3);var Ld=void 0,Kl=void 0,Xu=$s,Rf=Ju,Qs=Td,ep=$l,Od=0,No=Xu.m,tp=8,ip=a(128,R);n:for(;B(ip,0,7,Rf,19);){if(Fe(No,1)){var Vf=2+2*Fe(No,3);if((Ld=2+Fe(No,Vf))>Qs)break n}else Ld=Qs;for(Kl=0;Kl<Qs&&Ld--;){le(No);var np=ip[0+(127&U(No))];ie(No,No.u+np.g);var Za=np.value;if(16>Za)ep[Kl++]=Za,Za!=0&&(tp=Za);else{var qf=Za==16,rp=Za-16,Bf=lf[rp],op=Fe(No,af[rp])+Bf;if(Kl+op>Qs)break n;for(var jf=qf?tp:0;0<op--;)ep[Kl++]=jf}}Od=1;break n}Od||(Xu.a=3),Ks=Od}(Ks=Ks&&!Mo.h)&&(Pd=B(Pf,Lf,8,$l,Td)),Ks&&Pd!=0?Ys=Pd:($s.a=3,Ys=0)}if(Ys==0)break i;if(Gs&&sf[wt]==1&&(Gs=Hs[Mi].g==0),Ku+=Hs[Mi].g,Mi+=Ys,3>=wt){var Yl,kd=Wl[0];for(Yl=1;Yl<yi;++Yl)Wl[Yl]>kd&&(kd=Wl[Yl]);Yu+=kd}}if(mr.nd=Gs,mr.Qb=0,Gs&&(mr.qb=(Qa[3][Ja[3]+0].value<<24|Qa[1][Ja[1]+0].value<<16|Qa[2][Ja[2]+0].value)>>>0,Ku==0&&256>Qa[0][Ja[0]+0].value&&(mr.Qb=1,mr.qb+=Qa[0][Ja[0]+0].value<<8)),mr.jc=!mr.Qb&&6>Yu,mr.jc){var Js,so=mr;for(Js=0;Js<Cn;++Js){var To=Js,Po=so.pd[To],Zs=so.G[0][so.H[0]+To];256<=Zs.value?(Po.g=Zs.g+256,Po.value=Zs.value):(Po.g=0,Po.value=0,To>>=Di(Zs,8,Po),To>>=Di(so.G[1][so.H[1]+To],16,Po),To>>=Di(so.G[2][so.H[2]+To],0,Po),Di(so.G[3][so.H[3]+To],24,Po))}}}Ui.vc=Ji,Ui.Wb=gn,Ui.Ya=zs,Ui.yc=Nd,si=1;break t}si=0}if(!(A=si)){C.a=3;break e}if(0<ue){if(q.ua=1<<ue,!mt(q.Wa,ue)){C.a=1,A=0;break e}}else q.ua=0;var Dd=C,ap=N,Uf=P,Rd=Dd.s,Vd=Rd.xc;if(Dd.c=ap,Dd.i=Uf,Rd.md=it(ap,Vd),Rd.wc=Vd==0?-1:(1<<Vd)-1,f){C.xb=bf;break e}if((X=r(N*P))==null){C.a=1,A=0;break e}A=(A=rr(C,X,0,N,P,P,null))&&!D.h;break e}return A?(x!=null?x[0]=X:(i(X==null),i(f)),C.$=0,f||Sr(q)):Sr(q),A}function ra(l,u){var f=l.c*l.i,C=f+u+16*u;return i(l.c<=u),l.V=r(C),l.V==null?(l.Ta=null,l.Ua=0,l.a=1,0):(l.Ta=l.V,l.Ua=l.Ba+f+u,1)}function Fa(l,u){var f=l.C,C=u-f,x=l.V,A=l.Ba+l.c*f;for(i(u<=l.l.o);0<C;){var N=16<C?16:C,P=l.l.ma,D=l.l.width,q=D*N,X=P.ca,ue=P.tb+D*f,pe=l.Ta,ae=l.Ua;Nn(l,N,x,A),Iu(pe,ae,X,ue,q),ir(P,f,f+N,X,ue,D),C-=N,x+=N*l.c,f+=N}i(f==u),l.C=l.Ma=u}function Ia(){this.ub=this.yd=this.td=this.Rb=0}function Aa(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Ma(){this.Fb=this.Bb=this.Cb=0,this.Zb=r(4),this.Lb=r(4)}function ps(){this.Yb=function(){var l=[];return function u(f,C,x){for(var A=x[C],N=0;N<A&&(f.push(x.length>C+1?[]:0),!(x.length<C+1));N++)u(f[N],C+1,x)}(l,0,[3,11]),l}()}function Yc(){this.jb=r(3),this.Wc=d([4,8],ps),this.Xc=d([4,17],ps)}function Qc(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new r(4),this.od=new r(4)}function Na(){this.ld=this.La=this.dd=this.tc=0}function ms(){this.Na=this.la=0}function Jc(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Cl(){this.ad=r(384),this.Za=0,this.Ob=r(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Zc(){this.uc=this.M=this.Nb=0,this.wa=Array(new Na),this.Y=0,this.ya=Array(new Cl),this.aa=0,this.l=new Ta}function fs(){this.y=r(16),this.f=r(8),this.ea=r(8)}function Xc(){this.cb=this.a=0,this.sc="",this.m=new Ge,this.Od=new Ia,this.Kc=new Aa,this.ed=new Qc,this.Qa=new Ma,this.Ic=this.$c=this.Aa=0,this.D=new Zc,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=a(8,Ge),this.ia=0,this.pb=a(4,Jc),this.Pa=new Yc,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new fs),this.Hd=0,this.rb=Array(new ms),this.sb=0,this.wa=Array(new Na),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Cl),this.L=this.aa=0,this.gd=d([4,2],Na),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Ta(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function ed(){var l=new Xc;return l!=null&&(l.a=0,l.sc="OK",l.cb=0,l.Xb=0,Hl||(Hl=vs)),l}function wi(l,u,f){return l.a==0&&(l.a=u,l.sc=f,l.cb=0),0}function hs(l,u,f){return 3<=f&&l[u+0]==157&&l[u+1]==1&&l[u+2]==42}function gs(l,u){if(l==null)return 0;if(l.a=0,l.sc="OK",u==null)return wi(l,2,"null VP8Io passed to VP8GetHeaders()");var f=u.data,C=u.w,x=u.ha;if(4>x)return wi(l,7,"Truncated header.");var A=f[C+0]|f[C+1]<<8|f[C+2]<<16,N=l.Od;if(N.Rb=!(1&A),N.td=A>>1&7,N.yd=A>>4&1,N.ub=A>>5,3<N.td)return wi(l,3,"Incorrect keyframe parameters.");if(!N.yd)return wi(l,4,"Frame not displayable.");C+=3,x-=3;var P=l.Kc;if(N.Rb){if(7>x)return wi(l,7,"cannot parse picture header");if(!hs(f,C,x))return wi(l,3,"Bad code word");P.c=16383&(f[C+4]<<8|f[C+3]),P.Td=f[C+4]>>6,P.i=16383&(f[C+6]<<8|f[C+5]),P.Ud=f[C+6]>>6,C+=7,x-=7,l.za=P.c+15>>4,l.Ub=P.i+15>>4,u.width=P.c,u.height=P.i,u.Da=0,u.j=0,u.v=0,u.va=u.width,u.o=u.height,u.da=0,u.ib=u.width,u.hb=u.height,u.U=u.width,u.T=u.height,o((A=l.Pa).jb,0,255,A.jb.length),i((A=l.Qa)!=null),A.Cb=0,A.Bb=0,A.Fb=1,o(A.Zb,0,0,A.Zb.length),o(A.Lb,0,0,A.Lb)}if(N.ub>x)return wi(l,7,"bad partition length");we(A=l.m,f,C,N.ub),C+=N.ub,x-=N.ub,N.Rb&&(P.Ld=ve(A),P.Kd=ve(A)),P=l.Qa;var D,q=l.Pa;if(i(A!=null),i(P!=null),P.Cb=ve(A),P.Cb){if(P.Bb=ve(A),ve(A)){for(P.Fb=ve(A),D=0;4>D;++D)P.Zb[D]=ve(A)?Ee(A,7):0;for(D=0;4>D;++D)P.Lb[D]=ve(A)?Ee(A,6):0}if(P.Bb)for(D=0;3>D;++D)q.jb[D]=ve(A)?be(A,8):255}else P.Bb=0;if(A.Ka)return wi(l,3,"cannot parse segment header");if((P=l.ed).zd=ve(A),P.Tb=be(A,6),P.wb=be(A,3),P.Pc=ve(A),P.Pc&&ve(A)){for(q=0;4>q;++q)ve(A)&&(P.vd[q]=Ee(A,6));for(q=0;4>q;++q)ve(A)&&(P.od[q]=Ee(A,6))}if(l.L=P.Tb==0?0:P.zd?1:2,A.Ka)return wi(l,3,"cannot parse filter header");var X=x;if(x=D=C,C=D+X,P=X,l.Xb=(1<<be(l.m,2))-1,X<3*(q=l.Xb))f=7;else{for(D+=3*q,P-=3*q,X=0;X<q;++X){var ue=f[x+0]|f[x+1]<<8|f[x+2]<<16;ue>P&&(ue=P),we(l.Jc[+X],f,D,ue),D+=ue,P-=ue,x+=3}we(l.Jc[+q],f,D,P),f=D<C?0:5}if(f!=0)return wi(l,f,"cannot parse partitions");for(f=be(D=l.m,7),x=ve(D)?Ee(D,4):0,C=ve(D)?Ee(D,4):0,P=ve(D)?Ee(D,4):0,q=ve(D)?Ee(D,4):0,D=ve(D)?Ee(D,4):0,X=l.Qa,ue=0;4>ue;++ue){if(X.Cb){var pe=X.Zb[ue];X.Fb||(pe+=f)}else{if(0<ue){l.pb[ue]=l.pb[0];continue}pe=f}var ae=l.pb[ue];ae.Sc[0]=Id[Tn(pe+x,127)],ae.Sc[1]=Ad[Tn(pe+0,127)],ae.Eb[0]=2*Id[Tn(pe+C,127)],ae.Eb[1]=101581*Ad[Tn(pe+P,127)]>>16,8>ae.Eb[1]&&(ae.Eb[1]=8),ae.Qc[0]=Id[Tn(pe+q,117)],ae.Qc[1]=Ad[Tn(pe+D,127)],ae.lc=pe+D}if(!N.Rb)return wi(l,4,"Not a key frame.");for(ve(A),N=l.Pa,f=0;4>f;++f){for(x=0;8>x;++x)for(C=0;3>C;++C)for(P=0;11>P;++P)q=ye(A,vf[f][x][C][P])?be(A,8):hf[f][x][C][P],N.Wc[f][x].Yb[C][P]=q;for(x=0;17>x;++x)N.Xc[f][x]=N.Wc[f][_f[x]]}return l.kc=ve(A),l.kc&&(l.Bd=be(A,8)),l.cb=1}function vs(l,u,f,C,x,A,N){var P=u[x].Yb[f];for(f=0;16>x;++x){if(!ye(l,P[f+0]))return x;for(;!ye(l,P[f+1]);)if(P=u[++x].Yb[0],f=0,x==16)return 16;var D=u[x+1].Yb;if(ye(l,P[f+2])){var q=l,X=0;if(ye(q,(pe=P)[(ue=f)+3]))if(ye(q,pe[ue+6])){for(P=0,ue=2*(X=ye(q,pe[ue+8]))+(pe=ye(q,pe[ue+9+X])),X=0,pe=mf[ue];pe[P];++P)X+=X+ye(q,pe[P]);X+=3+(8<<ue)}else ye(q,pe[ue+7])?(X=7+2*ye(q,165),X+=ye(q,145)):X=5+ye(q,159);else X=ye(q,pe[ue+4])?3+ye(q,pe[ue+5]):2;P=D[2]}else X=1,P=D[1];D=N+ff[x],0>(q=l).b&&ge(q);var ue,pe=q.b,ae=(ue=q.Ca>>1)-(q.I>>pe)>>31;--q.b,q.Ca+=ae,q.Ca|=1,q.I-=(ue+1&ae)<<pe,A[D]=((X^ae)-ae)*C[(0<x)+0]}return 16}function wl(l){var u=l.rb[l.sb-1];u.la=0,u.Na=0,o(l.zc,0,0,l.zc.length),l.ja=0}function td(l,u){if(l==null)return 0;if(u==null)return wi(l,2,"NULL VP8Io parameter in VP8Decode().");if(!l.cb&&!gs(l,u))return 0;if(i(l.cb),u.ac==null||u.ac(u)){u.ob&&(l.L=0);var f=Us[l.L];if(l.L==2?(l.yb=0,l.zb=0):(l.yb=u.v-f>>4,l.zb=u.j-f>>4,0>l.yb&&(l.yb=0),0>l.zb&&(l.zb=0)),l.Va=u.o+15+f>>4,l.Hb=u.va+15+f>>4,l.Hb>l.za&&(l.Hb=l.za),l.Va>l.Ub&&(l.Va=l.Ub),0<l.L){var C=l.ed;for(f=0;4>f;++f){var x;if(l.Qa.Cb){var A=l.Qa.Lb[f];l.Qa.Fb||(A+=C.Tb)}else A=C.Tb;for(x=0;1>=x;++x){var N=l.gd[f][x],P=A;if(C.Pc&&(P+=C.vd[0],x&&(P+=C.od[0])),0<(P=0>P?0:63<P?63:P)){var D=P;0<C.wb&&(D=4<C.wb?D>>2:D>>1)>9-C.wb&&(D=9-C.wb),1>D&&(D=1),N.dd=D,N.tc=2*P+D,N.ld=40<=P?2:15<=P?1:0}else N.tc=0;N.La=x}}}f=0}else wi(l,6,"Frame setup failed"),f=l.a;if(f=f==0){if(f){l.$c=0,0<l.Aa||(l.Ic=Tf);e:{f=l.Ic,C=4*(D=l.za);var q=32*D,X=D+1,ue=0<l.L?D*(0<l.Aa?2:1):0,pe=(l.Aa==2?2:1)*D;if((N=C+832+(x=3*(16*f+Us[l.L])/2*q)+(A=l.Fa!=null&&0<l.Fa.length?l.Kc.c*l.Kc.i:0))!=N)f=0;else{if(N>l.Vb){if(l.Vb=0,l.Ec=r(N),l.Fc=0,l.Ec==null){f=wi(l,1,"no memory during frame initialization.");break e}l.Vb=N}N=l.Ec,P=l.Fc,l.Ac=N,l.Bc=P,P+=C,l.Gd=a(q,fs),l.Hd=0,l.rb=a(X+1,ms),l.sb=1,l.wa=ue?a(ue,Na):null,l.Y=0,l.D.Nb=0,l.D.wa=l.wa,l.D.Y=l.Y,0<l.Aa&&(l.D.Y+=D),i(!0),l.oc=N,l.pc=P,P+=832,l.ya=a(pe,Cl),l.aa=0,l.D.ya=l.ya,l.D.aa=l.aa,l.Aa==2&&(l.D.aa+=D),l.R=16*D,l.B=8*D,D=(q=Us[l.L])*l.R,q=q/2*l.B,l.sa=N,l.ta=P+D,l.qa=l.sa,l.ra=l.ta+16*f*l.R+q,l.Ha=l.qa,l.Ia=l.ra+8*f*l.B+q,l.$c=0,P+=x,l.mb=A?N:null,l.nb=A?P:null,i(P+A<=l.Fc+l.Vb),wl(l),o(l.Ac,l.Bc,0,C),f=1}}if(f){if(u.ka=0,u.y=l.sa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.B,Qe))}if(!Me)return wi(ae,6,"Output aborted.")}return 1}(l,u)),u.bc!=null&&u.bc(u),f&=1}return f?(l.cb=0,f):0}function or(l,u,f,C,x){x=l[u+f+32*C]+(x>>3),l[u+f+32*C]=-256&x?0>x?0:255:x}function Pa(l,u,f,C,x,A){or(l,u,0,f,C+x),or(l,u,1,f,C+A),or(l,u,2,f,C-A),or(l,u,3,f,C-x)}function yn(l){return(20091*l>>16)+l}function Sl(l,u,f,C){var x,A=0,N=r(16);for(x=0;4>x;++x){var P=l[u+0]+l[u+8],D=l[u+0]-l[u+8],q=(35468*l[u+4]>>16)-yn(l[u+12]),X=yn(l[u+4])+(35468*l[u+12]>>16);N[A+0]=P+X,N[A+1]=D+q,N[A+2]=D-q,N[A+3]=P-X,A+=4,u++}for(x=A=0;4>x;++x)P=(l=N[A+0]+4)+N[A+8],D=l-N[A+8],q=(35468*N[A+4]>>16)-yn(N[A+12]),or(f,C,0,0,P+(X=yn(N[A+4])+(35468*N[A+12]>>16))),or(f,C,1,0,D+q),or(f,C,2,0,D-q),or(f,C,3,0,P-X),A++,C+=32}function _s(l,u,f,C){var x=l[u+0]+4,A=35468*l[u+4]>>16,N=yn(l[u+4]),P=35468*l[u+1]>>16;Pa(f,C,0,x+N,l=yn(l[u+1]),P),Pa(f,C,1,x+A,l,P),Pa(f,C,2,x-A,l,P),Pa(f,C,3,x-N,l,P)}function id(l,u,f,C,x){Sl(l,u,f,C),x&&Sl(l,u+16,f,C+4)}function bs(l,u,f,C){Wa(l,u+0,f,C,1),Wa(l,u+32,f,C+128,1)}function nd(l,u,f,C){var x;for(l=l[u+0]+4,x=0;4>x;++x)for(u=0;4>u;++u)or(f,C,u,x,l)}function ys(l,u,f,C){l[u+0]&&ur(l,u+0,f,C),l[u+16]&&ur(l,u+16,f,C+4),l[u+32]&&ur(l,u+32,f,C+128),l[u+48]&&ur(l,u+48,f,C+128+4)}function rd(l,u,f,C){var x,A=r(16);for(x=0;4>x;++x){var N=l[u+0+x]+l[u+12+x],P=l[u+4+x]+l[u+8+x],D=l[u+4+x]-l[u+8+x],q=l[u+0+x]-l[u+12+x];A[0+x]=N+P,A[8+x]=N-P,A[4+x]=q+D,A[12+x]=q-D}for(x=0;4>x;++x)N=(l=A[0+4*x]+3)+A[3+4*x],P=A[1+4*x]+A[2+4*x],D=A[1+4*x]-A[2+4*x],q=l-A[3+4*x],f[C+0]=N+P>>3,f[C+16]=q+D>>3,f[C+32]=N-P>>3,f[C+48]=q-D>>3,C+=64}function xl(l,u,f){var C,x=u-32,A=Pn,N=255-l[x-1];for(C=0;C<f;++C){var P,D=A,q=N+l[u-1];for(P=0;P<f;++P)l[u+P]=D[q+l[x+P]];u+=32}}function od(l,u){xl(l,u,4)}function ad(l,u){xl(l,u,8)}function ld(l,u){xl(l,u,16)}function Xr(l,u){var f;for(f=0;16>f;++f)e(l,u+32*f,l,u-32,16)}function La(l,u){var f;for(f=16;0<f;--f)o(l,u,l[u-1],16),u+=32}function Oa(l,u,f){var C;for(C=0;16>C;++C)o(u,f+32*C,l,16)}function Cs(l,u){var f,C=16;for(f=0;16>f;++f)C+=l[u-1+32*f]+l[u+f-32];Oa(C>>5,l,u)}function an(l,u){var f,C=8;for(f=0;16>f;++f)C+=l[u-1+32*f];Oa(C>>4,l,u)}function sd(l,u){var f,C=8;for(f=0;16>f;++f)C+=l[u+f-32];Oa(C>>4,l,u)}function ws(l,u){Oa(128,l,u)}function gt(l,u,f){return l+2*u+f+2>>2}function cd(l,u){var f,C=u-32;for(C=new Uint8Array([gt(l[C-1],l[C+0],l[C+1]),gt(l[C+0],l[C+1],l[C+2]),gt(l[C+1],l[C+2],l[C+3]),gt(l[C+2],l[C+3],l[C+4])]),f=0;4>f;++f)e(l,u+32*f,C,0,C.length)}function dd(l,u){var f=l[u-1],C=l[u-1+32],x=l[u-1+64],A=l[u-1+96];Be(l,u+0,16843009*gt(l[u-1-32],f,C)),Be(l,u+32,16843009*gt(f,C,x)),Be(l,u+64,16843009*gt(C,x,A)),Be(l,u+96,16843009*gt(x,A,A))}function Er(l,u){var f,C=4;for(f=0;4>f;++f)C+=l[u+f-32]+l[u-1+32*f];for(C>>=3,f=0;4>f;++f)o(l,u+32*f,C,4)}function Ss(l,u){var f=l[u-1+0],C=l[u-1+32],x=l[u-1+64],A=l[u-1-32],N=l[u+0-32],P=l[u+1-32],D=l[u+2-32],q=l[u+3-32];l[u+0+96]=gt(C,x,l[u-1+96]),l[u+1+96]=l[u+0+64]=gt(f,C,x),l[u+2+96]=l[u+1+64]=l[u+0+32]=gt(A,f,C),l[u+3+96]=l[u+2+64]=l[u+1+32]=l[u+0+0]=gt(N,A,f),l[u+3+64]=l[u+2+32]=l[u+1+0]=gt(P,N,A),l[u+3+32]=l[u+2+0]=gt(D,P,N),l[u+3+0]=gt(q,D,P)}function xs(l,u){var f=l[u+1-32],C=l[u+2-32],x=l[u+3-32],A=l[u+4-32],N=l[u+5-32],P=l[u+6-32],D=l[u+7-32];l[u+0+0]=gt(l[u+0-32],f,C),l[u+1+0]=l[u+0+32]=gt(f,C,x),l[u+2+0]=l[u+1+32]=l[u+0+64]=gt(C,x,A),l[u+3+0]=l[u+2+32]=l[u+1+64]=l[u+0+96]=gt(x,A,N),l[u+3+32]=l[u+2+64]=l[u+1+96]=gt(A,N,P),l[u+3+64]=l[u+2+96]=gt(N,P,D),l[u+3+96]=gt(P,D,D)}function ka(l,u){var f=l[u-1+0],C=l[u-1+32],x=l[u-1+64],A=l[u-1-32],N=l[u+0-32],P=l[u+1-32],D=l[u+2-32],q=l[u+3-32];l[u+0+0]=l[u+1+64]=A+N+1>>1,l[u+1+0]=l[u+2+64]=N+P+1>>1,l[u+2+0]=l[u+3+64]=P+D+1>>1,l[u+3+0]=D+q+1>>1,l[u+0+96]=gt(x,C,f),l[u+0+64]=gt(C,f,A),l[u+0+32]=l[u+1+96]=gt(f,A,N),l[u+1+32]=l[u+2+96]=gt(A,N,P),l[u+2+32]=l[u+3+96]=gt(N,P,D),l[u+3+32]=gt(P,D,q)}function El(l,u){var f=l[u+0-32],C=l[u+1-32],x=l[u+2-32],A=l[u+3-32],N=l[u+4-32],P=l[u+5-32],D=l[u+6-32],q=l[u+7-32];l[u+0+0]=f+C+1>>1,l[u+1+0]=l[u+0+64]=C+x+1>>1,l[u+2+0]=l[u+1+64]=x+A+1>>1,l[u+3+0]=l[u+2+64]=A+N+1>>1,l[u+0+32]=gt(f,C,x),l[u+1+32]=l[u+0+96]=gt(C,x,A),l[u+2+32]=l[u+1+96]=gt(x,A,N),l[u+3+32]=l[u+2+96]=gt(A,N,P),l[u+3+64]=gt(N,P,D),l[u+3+96]=gt(P,D,q)}function ud(l,u){var f=l[u-1+0],C=l[u-1+32],x=l[u-1+64],A=l[u-1+96];l[u+0+0]=f+C+1>>1,l[u+2+0]=l[u+0+32]=C+x+1>>1,l[u+2+32]=l[u+0+64]=x+A+1>>1,l[u+1+0]=gt(f,C,x),l[u+3+0]=l[u+1+32]=gt(C,x,A),l[u+3+32]=l[u+1+64]=gt(x,A,A),l[u+3+64]=l[u+2+64]=l[u+0+96]=l[u+1+96]=l[u+2+96]=l[u+3+96]=A}function pd(l,u){var f=l[u-1+0],C=l[u-1+32],x=l[u-1+64],A=l[u-1+96],N=l[u-1-32],P=l[u+0-32],D=l[u+1-32],q=l[u+2-32];l[u+0+0]=l[u+2+32]=f+N+1>>1,l[u+0+32]=l[u+2+64]=C+f+1>>1,l[u+0+64]=l[u+2+96]=x+C+1>>1,l[u+0+96]=A+x+1>>1,l[u+3+0]=gt(P,D,q),l[u+2+0]=gt(N,P,D),l[u+1+0]=l[u+3+32]=gt(f,N,P),l[u+1+32]=l[u+3+64]=gt(C,f,N),l[u+1+64]=l[u+3+96]=gt(x,C,f),l[u+1+96]=gt(A,x,C)}function md(l,u){var f;for(f=0;8>f;++f)e(l,u+32*f,l,u-32,8)}function Fl(l,u){var f;for(f=0;8>f;++f)o(l,u,l[u-1],8),u+=32}function oa(l,u,f){var C;for(C=0;8>C;++C)o(u,f+32*C,l,8)}function vo(l,u){var f,C=8;for(f=0;8>f;++f)C+=l[u+f-32]+l[u-1+32*f];oa(C>>4,l,u)}function fd(l,u){var f,C=4;for(f=0;8>f;++f)C+=l[u+f-32];oa(C>>3,l,u)}function aa(l,u){var f,C=4;for(f=0;8>f;++f)C+=l[u-1+32*f];oa(C>>3,l,u)}function Il(l,u){oa(128,l,u)}function Da(l,u,f){var C=l[u-f],x=l[u+0],A=3*(x-C)+wd[1020+l[u-2*f]-l[u+f]],N=Os[112+(A+4>>3)];l[u-f]=Pn[255+C+Os[112+(A+3>>3)]],l[u+0]=Pn[255+x-N]}function Es(l,u,f,C){var x=l[u+0],A=l[u+f];return Un[255+l[u-2*f]-l[u-f]]>C||Un[255+A-x]>C}function Fs(l,u,f,C){return 4*Un[255+l[u-f]-l[u+0]]+Un[255+l[u-2*f]-l[u+f]]<=C}function Is(l,u,f,C,x){var A=l[u-3*f],N=l[u-2*f],P=l[u-f],D=l[u+0],q=l[u+f],X=l[u+2*f],ue=l[u+3*f];return 4*Un[255+P-D]+Un[255+N-q]>C?0:Un[255+l[u-4*f]-A]<=x&&Un[255+A-N]<=x&&Un[255+N-P]<=x&&Un[255+ue-X]<=x&&Un[255+X-q]<=x&&Un[255+q-D]<=x}function As(l,u,f,C){var x=2*C+1;for(C=0;16>C;++C)Fs(l,u+C,f,x)&&Da(l,u+C,f)}function eo(l,u,f,C){var x=2*C+1;for(C=0;16>C;++C)Fs(l,u+C*f,1,x)&&Da(l,u+C*f,1)}function _o(l,u,f,C){var x;for(x=3;0<x;--x)As(l,u+=4*f,f,C)}function hd(l,u,f,C){var x;for(x=3;0<x;--x)eo(l,u+=4,f,C)}function bo(l,u,f,C,x,A,N,P){for(A=2*A+1;0<x--;){if(Is(l,u,f,A,N))if(Es(l,u,f,P))Da(l,u,f);else{var D=l,q=u,X=f,ue=D[q-2*X],pe=D[q-X],ae=D[q+0],Pe=D[q+X],Ce=D[q+2*X],te=27*(Me=wd[1020+3*(ae-pe)+wd[1020+ue-Pe]])+63>>7,ne=18*Me+63>>7,Me=9*Me+63>>7;D[q-3*X]=Pn[255+D[q-3*X]+Me],D[q-2*X]=Pn[255+ue+ne],D[q-X]=Pn[255+pe+te],D[q+0]=Pn[255+ae-te],D[q+X]=Pn[255+Pe-ne],D[q+2*X]=Pn[255+Ce-Me]}u+=C}}function ar(l,u,f,C,x,A,N,P){for(A=2*A+1;0<x--;){if(Is(l,u,f,A,N))if(Es(l,u,f,P))Da(l,u,f);else{var D=l,q=u,X=f,ue=D[q-X],pe=D[q+0],ae=D[q+X],Pe=Os[112+((Ce=3*(pe-ue))+4>>3)],Ce=Os[112+(Ce+3>>3)],te=Pe+1>>1;D[q-2*X]=Pn[255+D[q-2*X]+te],D[q-X]=Pn[255+ue+Ce],D[q+0]=Pn[255+pe-Pe],D[q+X]=Pn[255+ae-te]}u+=C}}function Al(l,u,f,C,x,A){bo(l,u,f,1,16,C,x,A)}function la(l,u,f,C,x,A){bo(l,u,1,f,16,C,x,A)}function gd(l,u,f,C,x,A){var N;for(N=3;0<N;--N)ar(l,u+=4*f,f,1,16,C,x,A)}function Ra(l,u,f,C,x,A){var N;for(N=3;0<N;--N)ar(l,u+=4,1,f,16,C,x,A)}function vd(l,u,f,C,x,A,N,P){bo(l,u,x,1,8,A,N,P),bo(f,C,x,1,8,A,N,P)}function Ml(l,u,f,C,x,A,N,P){bo(l,u,1,x,8,A,N,P),bo(f,C,1,x,8,A,N,P)}function Nl(l,u,f,C,x,A,N,P){ar(l,u+4*x,x,1,8,A,N,P),ar(f,C+4*x,x,1,8,A,N,P)}function Ms(l,u,f,C,x,A,N,P){ar(l,u+4,1,x,8,A,N,P),ar(f,C+4,1,x,8,A,N,P)}function Va(){this.ba=new er,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new _i,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Tl(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Pl(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Ns(){this.ua=0,this.Wa=new W,this.vb=new W,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new K,this.yc=new R}function _d(){this.xb=this.a=0,this.l=new Ta,this.ca=new er,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new T,this.Pb=0,this.wd=new T,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Ns,this.ab=0,this.gc=a(4,Pl),this.Oc=0}function qa(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Ta,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function sa(l,u,f,C,x,A,N){for(l=l==null?0:l[u+0],u=0;u<N;++u)x[A+u]=l+f[C+u]&255,l=x[A+u]}function Ll(l,u,f,C,x,A,N){var P;if(l==null)sa(null,null,f,C,x,A,N);else for(P=0;P<N;++P)x[A+P]=l[u+P]+f[C+P]&255}function yo(l,u,f,C,x,A,N){if(l==null)sa(null,null,f,C,x,A,N);else{var P,D=l[u+0],q=D,X=D;for(P=0;P<N;++P)q=X+(D=l[u+P])-q,X=f[C+P]+(-256&q?0>q?0:255:q)&255,q=D,x[A+P]=X}}function Ol(l,u,f,C){var x=u.width,A=u.o;if(i(l!=null&&u!=null),0>f||0>=C||f+C>A)return null;if(!l.Cc){if(l.ga==null){var N;if(l.ga=new qa,(N=l.ga==null)||(N=u.width*u.o,i(l.Gb.length==0),l.Gb=r(N),l.Uc=0,l.Gb==null?N=0:(l.mb=l.Gb,l.nb=l.Uc,l.rc=null,N=1),N=!N),!N){N=l.ga;var P=l.Fa,D=l.P,q=l.qc,X=l.mb,ue=l.nb,pe=D+1,ae=q-1,Pe=N.l;if(i(P!=null&&X!=null&&u!=null),Io[0]=null,Io[1]=sa,Io[2]=Ll,Io[3]=yo,N.ca=X,N.tb=ue,N.c=u.width,N.i=u.height,i(0<N.c&&0<N.i),1>=q)u=0;else if(N.$a=P[D+0]>>0&3,N.Z=P[D+0]>>2&3,N.Lc=P[D+0]>>4&3,D=P[D+0]>>6&3,0>N.$a||1<N.$a||4<=N.Z||1<N.Lc||D)u=0;else if(Pe.put=yr,Pe.ac=Qi,Pe.bc=Cr,Pe.ma=N,Pe.width=u.width,Pe.height=u.height,Pe.Da=u.Da,Pe.v=u.v,Pe.va=u.va,Pe.j=u.j,Pe.o=u.o,N.$a)e:{i(N.$a==1),u=qn();t:for(;;){if(u==null){u=0;break e}if(i(N!=null),N.mc=u,u.c=N.c,u.i=N.i,u.l=N.l,u.l.ma=N,u.l.width=N.c,u.l.height=N.i,u.a=0,he(u.m,P,pe,ae),!xr(N.c,N.i,1,u,null)||(u.ab==1&&u.gc[0].hc==3&&Zr(u.s)?(N.ic=1,P=u.c*u.i,u.Ta=null,u.Ua=0,u.V=r(P),u.Ba=0,u.V==null?(u.a=1,u=0):u=1):(N.ic=0,u=ra(u,N.c)),!u))break t;u=1;break e}N.mc=null,u=0}else u=ae>=N.c*N.i;N=!u}if(N)return null;l.ga.Lc!=1?l.Ga=0:C=A-f}i(l.ga!=null),i(f+C<=A);e:{if(u=(P=l.ga).c,A=P.l.o,P.$a==0){if(pe=l.rc,ae=l.Vc,Pe=l.Fa,D=l.P+1+f*u,q=l.mb,X=l.nb+f*u,i(D<=l.P+l.qc),P.Z!=0)for(i(Io[P.Z]!=null),N=0;N<C;++N)Io[P.Z](pe,ae,Pe,D,q,X,u),pe=q,ae=X,X+=u,D+=u;else for(N=0;N<C;++N)e(q,X,Pe,D,u),pe=q,ae=X,X+=u,D+=u;l.rc=pe,l.Vc=ae}else{if(i(P.mc!=null),u=f+C,i((N=P.mc)!=null),i(u<=N.i),N.C>=u)u=1;else if(P.ic||ce(),P.ic){P=N.V,pe=N.Ba,ae=N.c;var Ce=N.i,te=(Pe=1,D=N.$/ae,q=N.$%ae,X=N.m,ue=N.s,N.$),ne=ae*Ce,Me=ae*u,Le=ue.wc,Te=te<Me?Ii(ue,q,D):null;i(te<=ne),i(u<=Ce),i(Zr(ue));t:for(;;){for(;!X.h&&te<Me;){if(q&Le||(Te=Ii(ue,q,D)),i(Te!=null),le(X),256>(Ce=bn(Te.G[0],Te.H[0],X)))P[pe+te]=Ce,++te,++q>=ae&&(q=0,++D<=u&&!(D%16)&&nr(N,D));else{if(!(280>Ce)){Pe=0;break t}Ce=tr(Ce-256,X);var Qe,Ue=bn(Te.G[4],Te.H[4],X);if(le(X),!(te>=(Ue=wr(ae,Ue=tr(Ue,X)))&&ne-te>=Ce)){Pe=0;break t}for(Qe=0;Qe<Ce;++Qe)P[pe+te+Qe]=P[pe+te+Qe-Ue];for(te+=Ce,q+=Ce;q>=ae;)q-=ae,++D<=u&&!(D%16)&&nr(N,D);te<Me&&q&Le&&(Te=Ii(ue,q,D))}i(X.h==G(X))}nr(N,D>u?u:D);break t}!Pe||X.h&&te<ne?(Pe=0,N.a=X.h?5:3):N.$=te,u=Pe}else u=rr(N,N.V,N.Ba,N.c,N.i,u,Fa);if(!u){C=0;break e}}f+C>=A&&(l.Cc=1),C=1}if(!C)return null;if(l.Cc&&((C=l.ga)!=null&&(C.mc=null),l.ga=null,0<l.Ga))return alert("todo:WebPDequantizeLevels"),null}return l.nb+f*x}function m(l,u,f,C,x,A){for(;0<x--;){var N,P=l,D=u+(f?1:0),q=l,X=u+(f?0:3);for(N=0;N<C;++N){var ue=q[X+4*N];ue!=255&&(ue*=32897,P[D+4*N+0]=P[D+4*N+0]*ue>>23,P[D+4*N+1]=P[D+4*N+1]*ue>>23,P[D+4*N+2]=P[D+4*N+2]*ue>>23)}u+=A}}function E(l,u,f,C,x){for(;0<C--;){var A;for(A=0;A<f;++A){var N=l[u+2*A+0],P=15&(q=l[u+2*A+1]),D=4369*P,q=(240&q|q>>4)*D>>16;l[u+2*A+0]=(240&N|N>>4)*D>>16&240|(15&N|N<<4)*D>>16>>4&15,l[u+2*A+1]=240&q|P}u+=x}}function j(l,u,f,C,x,A,N,P){var D,q,X=255;for(q=0;q<x;++q){for(D=0;D<C;++D){var ue=l[u+D];A[N+4*D]=ue,X&=ue}u+=f,N+=P}return X!=255}function Q(l,u,f,C,x){var A;for(A=0;A<x;++A)f[C+A]=l[u+A]>>8}function ce(){Eo=m,Ka=E,Ls=j,Iu=Q}function Se(l,u,f){Y[l]=function(C,x,A,N,P,D,q,X,ue,pe,ae,Pe,Ce,te,ne,Me,Le){var Te,Qe=Le-1>>1,Ue=P[D+0]|q[X+0]<<16,st=ue[pe+0]|ae[Pe+0]<<16;i(C!=null);var ze=3*Ue+st+131074>>2;for(u(C[x+0],255&ze,ze>>16,Ce,te),A!=null&&(ze=3*st+Ue+131074>>2,u(A[N+0],255&ze,ze>>16,ne,Me)),Te=1;Te<=Qe;++Te){var Wt=P[D+Te]|q[X+Te]<<16,Xt=ue[pe+Te]|ae[Pe+Te]<<16,Bt=Ue+Wt+st+Xt+524296,Nt=Bt+2*(Wt+st)>>3;ze=Nt+Ue>>1,Ue=(Bt=Bt+2*(Ue+Xt)>>3)+Wt>>1,u(C[x+2*Te-1],255&ze,ze>>16,Ce,te+(2*Te-1)*f),u(C[x+2*Te-0],255&Ue,Ue>>16,Ce,te+(2*Te-0)*f),A!=null&&(ze=Bt+st>>1,Ue=Nt+Xt>>1,u(A[N+2*Te-1],255&ze,ze>>16,ne,Me+(2*Te-1)*f),u(A[N+2*Te+0],255&Ue,Ue>>16,ne,Me+(2*Te+0)*f)),Ue=Wt,st=Xt}1&Le||(ze=3*Ue+st+131074>>2,u(C[x+Le-1],255&ze,ze>>16,Ce,te+(Le-1)*f),A!=null&&(ze=3*st+Ue+131074>>2,u(A[N+Le-1],255&ze,ze>>16,ne,Me+(Le-1)*f)))}}function Oe(){zn[ks]=yf,zn[Ds]=Vu,zn[Lu]=Cf,zn[Rs]=qu,zn[Vs]=Bu,zn[Sd]=ju,zn[Ou]=wf,zn[xd]=Vu,zn[Ed]=qu,zn[qs]=Bu,zn[Fd]=ju}function Ye(l){return l&~Sf?0>l?0:255:l>>Uu}function at(l,u){return Ye((19077*l>>8)+(26149*u>>8)-14234)}function Ct(l,u,f){return Ye((19077*l>>8)-(6419*u>>8)-(13320*f>>8)+8708)}function Et(l,u){return Ye((19077*l>>8)+(33050*u>>8)-17685)}function kt(l,u,f,C,x){C[x+0]=at(l,f),C[x+1]=Ct(l,u,f),C[x+2]=Et(l,u)}function gi(l,u,f,C,x){C[x+0]=Et(l,u),C[x+1]=Ct(l,u,f),C[x+2]=at(l,f)}function bi(l,u,f,C,x){var A=Ct(l,u,f);u=A<<3&224|Et(l,u)>>3,C[x+0]=248&at(l,f)|A>>5,C[x+1]=u}function Ai(l,u,f,C,x){var A=240&Et(l,u)|15;C[x+0]=240&at(l,f)|Ct(l,u,f)>>4,C[x+1]=A}function ln(l,u,f,C,x){C[x+0]=255,kt(l,u,f,C,x+1)}function ji(l,u,f,C,x){gi(l,u,f,C,x),C[x+3]=255}function lr(l,u,f,C,x){kt(l,u,f,C,x),C[x+3]=255}function Tn(l,u){return 0>l?0:l>u?u:l}function to(l,u,f){Y[l]=function(C,x,A,N,P,D,q,X,ue){for(var pe=X+(-2&ue)*f;X!=pe;)u(C[x+0],A[N+0],P[D+0],q,X),u(C[x+1],A[N+0],P[D+0],q,X+f),x+=2,++N,++D,X+=2*f;1&ue&&u(C[x+0],A[N+0],P[D+0],q,X)}}function Ts(l,u,f){return f==0?l==0?u==0?6:5:u==0?4:0:f}function kl(l,u,f,C,x){switch(l>>>30){case 3:Wa(u,f,C,x,0);break;case 2:Ul(u,f,C,x);break;case 1:ur(u,f,C,x)}}function Dl(l,u){var f,C,x=u.M,A=u.Nb,N=l.oc,P=l.pc+40,D=l.oc,q=l.pc+584,X=l.oc,ue=l.pc+600;for(f=0;16>f;++f)N[P+32*f-1]=129;for(f=0;8>f;++f)D[q+32*f-1]=129,X[ue+32*f-1]=129;for(0<x?N[P-1-32]=D[q-1-32]=X[ue-1-32]=129:(o(N,P-32-1,127,21),o(D,q-32-1,127,9),o(X,ue-32-1,127,9)),C=0;C<l.za;++C){var pe=u.ya[u.aa+C];if(0<C){for(f=-1;16>f;++f)e(N,P+32*f-4,N,P+32*f+12,4);for(f=-1;8>f;++f)e(D,q+32*f-4,D,q+32*f+4,4),e(X,ue+32*f-4,X,ue+32*f+4,4)}var ae=l.Gd,Pe=l.Hd+C,Ce=pe.ad,te=pe.Hc;if(0<x&&(e(N,P-32,ae[Pe].y,0,16),e(D,q-32,ae[Pe].f,0,8),e(X,ue-32,ae[Pe].ea,0,8)),pe.Za){var ne=N,Me=P-32+16;for(0<x&&(C>=l.za-1?o(ne,Me,ae[Pe].y[15],4):e(ne,Me,ae[Pe+1].y,0,4)),f=0;4>f;f++)ne[Me+128+f]=ne[Me+256+f]=ne[Me+384+f]=ne[Me+0+f];for(f=0;16>f;++f,te<<=2)ne=N,Me=P+Hu[f],pr[pe.Ob[f]](ne,Me),kl(te,Ce,16*+f,ne,Me)}else if(ne=Ts(C,x,pe.Ob[0]),Fo[ne](N,P),te!=0)for(f=0;16>f;++f,te<<=2)kl(te,Ce,16*+f,N,P+Hu[f]);for(f=pe.Gc,ne=Ts(C,x,pe.Dd),ao[ne](D,q),ao[ne](X,ue),te=Ce,ne=D,Me=q,255&(pe=f>>0)&&(170&pe?So(te,256,ne,Me):no(te,256,ne,Me)),pe=X,te=ue,255&(f>>=8)&&(170&f?So(Ce,320,pe,te):no(Ce,320,pe,te)),x<l.Ub-1&&(e(ae[Pe].y,0,N,P+480,16),e(ae[Pe].f,0,D,q+224,8),e(ae[Pe].ea,0,X,ue+224,8)),f=8*A*l.B,ae=l.sa,Pe=l.ta+16*C+16*A*l.R,Ce=l.qa,pe=l.ra+8*C+f,te=l.Ha,ne=l.Ia+8*C+f,f=0;16>f;++f)e(ae,Pe+f*l.R,N,P+32*f,16);for(f=0;8>f;++f)e(Ce,pe+f*l.B,D,q+32*f,8),e(te,ne+f*l.B,X,ue+32*f,8)}}function Ba(l,u,f,C,x,A,N,P,D){var q=[0],X=[0],ue=0,pe=D!=null?D.kd:0,ae=D??new Tl;if(l==null||12>f)return 7;ae.data=l,ae.w=u,ae.ha=f,u=[u],f=[f],ae.gb=[ae.gb];e:{var Pe=u,Ce=f,te=ae.gb;if(i(l!=null),i(Ce!=null),i(te!=null),te[0]=0,12<=Ce[0]&&!n(l,Pe[0],"RIFF")){if(n(l,Pe[0]+8,"WEBP")){te=3;break e}var ne=Je(l,Pe[0]+4);if(12>ne||4294967286<ne){te=3;break e}if(pe&&ne>Ce[0]-8){te=7;break e}te[0]=ne,Pe[0]+=12,Ce[0]-=12}te=0}if(te!=0)return te;for(ne=0<ae.gb[0],f=f[0];;){e:{var Me=l;Ce=u,te=f;var Le=q,Te=X,Qe=Pe=[0];if((ze=ue=[ue])[0]=0,8>te[0])te=7;else{if(!n(Me,Ce[0],"VP8X")){if(Je(Me,Ce[0]+4)!=10){te=3;break e}if(18>te[0]){te=7;break e}var Ue=Je(Me,Ce[0]+8),st=1+Ke(Me,Ce[0]+12);if(2147483648<=st*(Me=1+Ke(Me,Ce[0]+15))){te=3;break e}Qe!=null&&(Qe[0]=Ue),Le!=null&&(Le[0]=st),Te!=null&&(Te[0]=Me),Ce[0]+=18,te[0]-=18,ze[0]=1}te=0}}if(ue=ue[0],Pe=Pe[0],te!=0)return te;if(Ce=!!(2&Pe),!ne&&ue)return 3;if(A!=null&&(A[0]=!!(16&Pe)),N!=null&&(N[0]=Ce),P!=null&&(P[0]=0),N=q[0],Pe=X[0],ue&&Ce&&D==null){te=0;break}if(4>f){te=7;break}if(ne&&ue||!ne&&!ue&&!n(l,u[0],"ALPH")){f=[f],ae.na=[ae.na],ae.P=[ae.P],ae.Sa=[ae.Sa];e:{Ue=l,te=u,ne=f;var ze=ae.gb;Le=ae.na,Te=ae.P,Qe=ae.Sa,st=22,i(Ue!=null),i(ne!=null),Me=te[0];var Wt=ne[0];for(i(Le!=null),i(Qe!=null),Le[0]=null,Te[0]=null,Qe[0]=0;;){if(te[0]=Me,ne[0]=Wt,8>Wt){te=7;break e}var Xt=Je(Ue,Me+4);if(4294967286<Xt){te=3;break e}var Bt=8+Xt+1&-2;if(st+=Bt,0<ze&&st>ze){te=3;break e}if(!n(Ue,Me,"VP8 ")||!n(Ue,Me,"VP8L")){te=0;break e}if(Wt[0]<Bt){te=7;break e}n(Ue,Me,"ALPH")||(Le[0]=Ue,Te[0]=Me+8,Qe[0]=Xt),Me+=Bt,Wt-=Bt}}if(f=f[0],ae.na=ae.na[0],ae.P=ae.P[0],ae.Sa=ae.Sa[0],te!=0)break}f=[f],ae.Ja=[ae.Ja],ae.xa=[ae.xa];e:if(ze=l,te=u,ne=f,Le=ae.gb[0],Te=ae.Ja,Qe=ae.xa,Ue=te[0],Me=!n(ze,Ue,"VP8 "),st=!n(ze,Ue,"VP8L"),i(ze!=null),i(ne!=null),i(Te!=null),i(Qe!=null),8>ne[0])te=7;else{if(Me||st){if(ze=Je(ze,Ue+4),12<=Le&&ze>Le-12){te=3;break e}if(pe&&ze>ne[0]-8){te=7;break e}Te[0]=ze,te[0]+=8,ne[0]-=8,Qe[0]=st}else Qe[0]=5<=ne[0]&&ze[Ue+0]==47&&!(ze[Ue+4]>>5),Te[0]=ne[0];te=0}if(f=f[0],ae.Ja=ae.Ja[0],ae.xa=ae.xa[0],u=u[0],te!=0)break;if(4294967286<ae.Ja)return 3;if(P==null||Ce||(P[0]=ae.xa?2:1),N=[N],Pe=[Pe],ae.xa){if(5>f){te=7;break}P=N,pe=Pe,Ce=A,l==null||5>f?l=0:5<=f&&l[u+0]==47&&!(l[u+4]>>5)?(ne=[0],ze=[0],Le=[0],he(Te=new T,l,u,f),ut(Te,ne,ze,Le)?(P!=null&&(P[0]=ne[0]),pe!=null&&(pe[0]=ze[0]),Ce!=null&&(Ce[0]=Le[0]),l=1):l=0):l=0}else{if(10>f){te=7;break}P=Pe,l==null||10>f||!hs(l,u+3,f-3)?l=0:(pe=l[u+0]|l[u+1]<<8|l[u+2]<<16,Ce=16383&(l[u+7]<<8|l[u+6]),l=16383&(l[u+9]<<8|l[u+8]),1&pe||3<(pe>>1&7)||!(pe>>4&1)||pe>>5>=ae.Ja||!Ce||!l?l=0:(N&&(N[0]=Ce),P&&(P[0]=l),l=1))}if(!l||(N=N[0],Pe=Pe[0],ue&&(q[0]!=N||X[0]!=Pe)))return 3;D!=null&&(D[0]=ae,D.offset=u-D.w,i(4294967286>u-D.w),i(D.offset==D.ha-f));break}return te==0||te==7&&ue&&D==null?(A!=null&&(A[0]|=ae.na!=null&&0<ae.na.length),C!=null&&(C[0]=N),x!=null&&(x[0]=Pe),0):te}function Rl(l,u,f){var C=u.width,x=u.height,A=0,N=0,P=C,D=x;if(u.Da=l!=null&&0<l.Da,u.Da&&(P=l.cd,D=l.bd,A=l.v,N=l.j,11>f||(A&=-2,N&=-2),0>A||0>N||0>=P||0>=D||A+P>C||N+D>x))return 0;if(u.v=A,u.j=N,u.va=A+P,u.o=N+D,u.U=P,u.T=D,u.da=l!=null&&0<l.da,u.da){if(!yt(P,D,f=[l.ib],A=[l.hb]))return 0;u.ib=f[0],u.hb=A[0]}return u.ob=l!=null&&l.ob,u.Kb=l==null||!l.Sd,u.da&&(u.ob=u.ib<3*C/4&&u.hb<3*x/4,u.Kb=0),1}function Vl(l){if(l==null)return 2;if(11>l.S){var u=l.f.RGBA;u.fb+=(l.height-1)*u.A,u.A=-u.A}else u=l.f.kb,l=l.height,u.O+=(l-1)*u.fa,u.fa=-u.fa,u.N+=(l-1>>1)*u.Ab,u.Ab=-u.Ab,u.W+=(l-1>>1)*u.Db,u.Db=-u.Db,u.F!=null&&(u.J+=(l-1)*u.lb,u.lb=-u.lb);return 0}function ja(l,u,f,C){if(C==null||0>=l||0>=u)return 2;if(f!=null){if(f.Da){var x=f.cd,A=f.bd,N=-2&f.v,P=-2&f.j;if(0>N||0>P||0>=x||0>=A||N+x>l||P+A>u)return 2;l=x,u=A}if(f.da){if(!yt(l,u,x=[f.ib],A=[f.hb]))return 2;l=x[0],u=A[0]}}C.width=l,C.height=u;e:{var D=C.width,q=C.height;if(l=C.S,0>=D||0>=q||!(l>=ks&&13>l))l=2;else{if(0>=C.Rd&&C.sd==null){N=A=x=u=0;var X=(P=D*Gu[l])*q;if(11>l||(A=(q+1)/2*(u=(D+1)/2),l==12&&(N=(x=D)*q)),(q=r(X+2*A+N))==null){l=1;break e}C.sd=q,11>l?((D=C.f.RGBA).eb=q,D.fb=0,D.A=P,D.size=X):((D=C.f.kb).y=q,D.O=0,D.fa=P,D.Fd=X,D.f=q,D.N=0+X,D.Ab=u,D.Cd=A,D.ea=q,D.W=0+X+A,D.Db=u,D.Ed=A,l==12&&(D.F=q,D.J=0+X+2*A),D.Tc=N,D.lb=x)}if(u=1,x=C.S,A=C.width,N=C.height,x>=ks&&13>x)if(11>x)l=C.f.RGBA,u&=(P=Math.abs(l.A))*(N-1)+A<=l.size,u&=P>=A*Gu[x],u&=l.eb!=null;else{l=C.f.kb,P=(A+1)/2,X=(N+1)/2,D=Math.abs(l.fa),q=Math.abs(l.Ab);var ue=Math.abs(l.Db),pe=Math.abs(l.lb),ae=pe*(N-1)+A;u&=D*(N-1)+A<=l.Fd,u&=q*(X-1)+P<=l.Cd,u=(u&=ue*(X-1)+P<=l.Ed)&D>=A&q>=P&ue>=P,u&=l.y!=null,u&=l.f!=null,u&=l.ea!=null,x==12&&(u&=pe>=A,u&=ae<=l.Tc,u&=l.F!=null)}else u=0;l=u?0:2}}return l!=0||f!=null&&f.fd&&(l=Vl(C)),l}var Cn=64,Ua=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],za=24,Ha=32,ql=8,wn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];je("Predictor0","PredictorAdd0"),Y.Predictor0=function(){return 4278190080},Y.Predictor1=function(l){return l},Y.Predictor2=function(l,u,f){return u[f+0]},Y.Predictor3=function(l,u,f){return u[f+1]},Y.Predictor4=function(l,u,f){return u[f-1]},Y.Predictor5=function(l,u,f){return He(He(l,u[f+1]),u[f+0])},Y.Predictor6=function(l,u,f){return He(l,u[f-1])},Y.Predictor7=function(l,u,f){return He(l,u[f+0])},Y.Predictor8=function(l,u,f){return He(u[f-1],u[f+0])},Y.Predictor9=function(l,u,f){return He(u[f+0],u[f+1])},Y.Predictor10=function(l,u,f){return He(He(l,u[f-1]),He(u[f+0],u[f+1]))},Y.Predictor11=function(l,u,f){var C=u[f+0];return 0>=xt(C>>24&255,l>>24&255,(u=u[f-1])>>24&255)+xt(C>>16&255,l>>16&255,u>>16&255)+xt(C>>8&255,l>>8&255,u>>8&255)+xt(255&C,255&l,255&u)?C:l},Y.Predictor12=function(l,u,f){var C=u[f+0];return(rt((l>>24&255)+(C>>24&255)-((u=u[f-1])>>24&255))<<24|rt((l>>16&255)+(C>>16&255)-(u>>16&255))<<16|rt((l>>8&255)+(C>>8&255)-(u>>8&255))<<8|rt((255&l)+(255&C)-(255&u)))>>>0},Y.Predictor13=function(l,u,f){var C=u[f-1];return(vt((l=He(l,u[f+0]))>>24&255,C>>24&255)<<24|vt(l>>16&255,C>>16&255)<<16|vt(l>>8&255,C>>8&255)<<8|vt(l>>0&255,C>>0&255))>>>0};var bd=Y.PredictorAdd0;Y.PredictorAdd1=It,je("Predictor2","PredictorAdd2"),je("Predictor3","PredictorAdd3"),je("Predictor4","PredictorAdd4"),je("Predictor5","PredictorAdd5"),je("Predictor6","PredictorAdd6"),je("Predictor7","PredictorAdd7"),je("Predictor8","PredictorAdd8"),je("Predictor9","PredictorAdd9"),je("Predictor10","PredictorAdd10"),je("Predictor11","PredictorAdd11"),je("Predictor12","PredictorAdd12"),je("Predictor13","PredictorAdd13");var Bl=Y.PredictorAdd2;Mt("ColorIndexInverseTransform","MapARGB","32b",function(l){return l>>8&255},function(l){return l}),Mt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(l){return l},function(l){return l>>8&255});var Ps,sr=Y.ColorIndexInverseTransform,jl=Y.MapARGB,yd=Y.VP8LColorIndexInverseTransformAlpha,Cd=Y.MapAlpha,Co=Y.VP8LPredictorsAdd=[];Co.length=16,(Y.VP8LPredictors=[]).length=16,(Y.VP8LPredictorsAdd_C=[]).length=16,(Y.VP8LPredictors_C=[]).length=16;var Bn,cr,wo,Fr,io,Ga,dr,Wa,Ul,So,ur,no,ca,$a,da,xo,zl,jn,ro,di,ui,Si,Ri,oo,Eo,Ka,Ls,Iu,Au=r(511),Mu=r(2041),Nu=r(225),Tu=r(767),Pu=0,wd=Mu,Os=Nu,Pn=Tu,Un=Au,ks=0,Ds=1,Lu=2,Rs=3,Vs=4,Sd=5,Ou=6,xd=7,Ed=8,qs=9,Fd=10,af=[2,3,7],lf=[3,3,11],ku=[280,256,256,256,40],sf=[0,1,1,1,0],cf=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],df=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],uf=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],pf=8,Id=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Ad=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Hl=null,mf=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],ff=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Du=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],hf=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],gf=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],vf=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],_f=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Fo=[],pr=[],ao=[],bf=1,Ru=2,Io=[],zn=[];Se("UpsampleRgbLinePair",kt,3),Se("UpsampleBgrLinePair",gi,3),Se("UpsampleRgbaLinePair",lr,4),Se("UpsampleBgraLinePair",ji,4),Se("UpsampleArgbLinePair",ln,4),Se("UpsampleRgba4444LinePair",Ai,2),Se("UpsampleRgb565LinePair",bi,2);var yf=Y.UpsampleRgbLinePair,Cf=Y.UpsampleBgrLinePair,Vu=Y.UpsampleRgbaLinePair,qu=Y.UpsampleBgraLinePair,Bu=Y.UpsampleArgbLinePair,ju=Y.UpsampleRgba4444LinePair,wf=Y.UpsampleRgb565LinePair,Bs=16,js=1<<Bs-1,Gl=-227,Md=482,Uu=6,Sf=(256<<Uu)-1,zu=0,xf=r(256),Ef=r(256),Ff=r(256),If=r(256),Af=r(Md-Gl),Mf=r(Md-Gl);to("YuvToRgbRow",kt,3),to("YuvToBgrRow",gi,3),to("YuvToRgbaRow",lr,4),to("YuvToBgraRow",ji,4),to("YuvToArgbRow",ln,4),to("YuvToRgba4444Row",Ai,2),to("YuvToRgb565Row",bi,2);var Hu=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Us=[0,2,8],Nf=[8,7,6,4,4,2,2,2,1,1,1,1],Tf=1;this.WebPDecodeRGBA=function(l,u,f,C,x){var A=Ds,N=new Va,P=new er;N.ba=P,P.S=A,P.width=[P.width],P.height=[P.height];var D=P.width,q=P.height,X=new Jr;if(X==null||l==null)var ue=2;else i(X!=null),ue=Ba(l,u,f,X.width,X.height,X.Pd,X.Qd,X.format,null);if(ue!=0?D=0:(D!=null&&(D[0]=X.width[0]),q!=null&&(q[0]=X.height[0]),D=1),D){P.width=P.width[0],P.height=P.height[0],C!=null&&(C[0]=P.width),x!=null&&(x[0]=P.height);e:{if(C=new Ta,(x=new Tl).data=l,x.w=u,x.ha=f,x.kd=1,u=[0],i(x!=null),((l=Ba(x.data,x.w,x.ha,null,null,null,u,null,x))==0||l==7)&&u[0]&&(l=4),(u=l)==0){if(i(N!=null),C.data=x.data,C.w=x.w+x.offset,C.ha=x.ha-x.offset,C.put=yr,C.ac=Qi,C.bc=Cr,C.ma=N,x.xa){if((l=qn())==null){N=1;break e}if(function(pe,ae){var Pe=[0],Ce=[0],te=[0];t:for(;;){if(pe==null)return 0;if(ae==null)return pe.a=2,0;if(pe.l=ae,pe.a=0,he(pe.m,ae.data,ae.w,ae.ha),!ut(pe.m,Pe,Ce,te)){pe.a=3;break t}if(pe.xb=Ru,ae.width=Pe[0],ae.height=Ce[0],!xr(Pe[0],Ce[0],1,pe,null))break t;return 1}return i(pe.a!=0),0}(l,C)){if(C=(u=ja(C.width,C.height,N.Oa,N.ba))==0){t:{C=l;i:for(;;){if(C==null){C=0;break t}if(i(C.s.yc!=null),i(C.s.Ya!=null),i(0<C.s.Wb),i((f=C.l)!=null),i((x=f.ma)!=null),C.xb!=0){if(C.ca=x.ba,C.tb=x.tb,i(C.ca!=null),!Rl(x.Oa,f,Rs)){C.a=2;break i}if(!ra(C,f.width)||f.da)break i;if((f.da||Yt(C.ca.S))&&ce(),11>C.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),C.ca.f.kb.F!=null&&ce()),C.Pb&&0<C.s.ua&&C.s.vb.X==null&&!mt(C.s.vb,C.s.Wa.Xa)){C.a=1;break i}C.xb=0}if(!rr(C,C.V,C.Ba,C.c,C.i,f.o,Ea))break i;x.Dc=C.Ma,C=1;break t}i(C.a!=0),C=0}C=!C}C&&(u=l.a)}else u=l.a}else{if((l=new ed)==null){N=1;break e}if(l.Fa=x.na,l.P=x.P,l.qc=x.Sa,gs(l,C)){if((u=ja(C.width,C.height,N.Oa,N.ba))==0){if(l.Aa=0,f=N.Oa,i((x=l)!=null),f!=null){if(0<(D=0>(D=f.Md)?0:100<D?255:255*D/100)){for(q=X=0;4>q;++q)12>(ue=x.pb[q]).lc&&(ue.ia=D*Nf[0>ue.lc?0:ue.lc]>>3),X|=ue.ia;X&&(alert("todo:VP8InitRandom"),x.ia=1)}x.Ga=f.Id,100<x.Ga?x.Ga=100:0>x.Ga&&(x.Ga=0)}td(l,C)||(u=l.a)}}else u=l.a}u==0&&N.Oa!=null&&N.Oa.fd&&(u=Vl(N.ba))}N=u}A=N!=0?null:11>A?P.f.RGBA.eb:P.f.kb.y}else A=null;return A};var Gu=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function _(Y,Ne){for(var Ae="",B=0;B<4;B++)Ae+=String.fromCharCode(Y[Ne++]);return Ae}function y(Y,Ne){return(Y[Ne+0]<<0|Y[Ne+1]<<8|Y[Ne+2]<<16)>>>0}function w(Y,Ne){return(Y[Ne+0]<<0|Y[Ne+1]<<8|Y[Ne+2]<<16|Y[Ne+3]<<24)>>>0}new p;var S=[0],v=[0],M=[],F=new p,k=t,I=function(Y,Ne){var Ae={},B=0,R=!1,Z=0,K=0;if(Ae.frames=[],!function(U,G,ie,le){for(var ge=0;ge<le;ge++)if(U[G+ge]!=ie.charCodeAt(ge))return!0;return!1}(Y,Ne,"RIFF",4)){var we,be;for(w(Y,Ne+=4),Ne+=8;Ne<Y.length;){var Ee=_(Y,Ne),he=w(Y,Ne+=4);Ne+=4;var Ie=he+(1&he);switch(Ee){case"VP8 ":case"VP8L":Ae.frames[B]===void 0&&(Ae.frames[B]={}),(T=Ae.frames[B]).src_off=R?K:Ne-8,T.src_size=Z+he+8,B++,R&&(R=!1,Z=0,K=0);break;case"VP8X":(T=Ae.header={}).feature_flags=Y[Ne];var Fe=Ne+4;T.canvas_width=1+y(Y,Fe),Fe+=3,T.canvas_height=1+y(Y,Fe),Fe+=3;break;case"ALPH":R=!0,Z=Ie+8,K=Ne-8;break;case"ANIM":(T=Ae.header).bgcolor=w(Y,Ne),Fe=Ne+4,T.loop_count=(we=Y)[(be=Fe)+0]<<0|we[be+1]<<8,Fe+=2;break;case"ANMF":var Ge,T;(T=Ae.frames[B]={}).offset_x=2*y(Y,Ne),Ne+=3,T.offset_y=2*y(Y,Ne),Ne+=3,T.width=1+y(Y,Ne),Ne+=3,T.height=1+y(Y,Ne),Ne+=3,T.duration=y(Y,Ne),Ne+=3,Ge=Y[Ne++],T.dispose=1&Ge,T.blend=Ge>>1&1}Ee!="ANMF"&&(Ne+=Ie)}return Ae}}(k,0);I.response=k,I.rgbaoutput=!0,I.dataurl=!1;var L=I.header?I.header:null,z=I.frames?I.frames:null;if(L){L.loop_counter=L.loop_count,S=[L.canvas_height],v=[L.canvas_width];for(var $=0;$<z.length&&z[$].blend!=0;$++);}var J=z[0],re=F.WebPDecodeRGBA(k,J.src_off,J.src_size,v,S);J.rgba=re,J.imgwidth=v[0],J.imgheight=S[0];for(var de=0;de<v[0]*S[0]*4;de++)M[de]=re[de];return this.width=v,this.height=S,this.data=M,this}(function(t){var i=function(){return typeof kc=="function"},n=function(S,v,M,F){var k=4,I=a;switch(F){case t.image_compression.FAST:k=1,I=r;break;case t.image_compression.MEDIUM:k=6,I=d;break;case t.image_compression.SLOW:k=9,I=p}S=e(S,v,M,I);var L=kc(S,{level:k});return t.__addimage__.arrayBufferToBinaryString(L)},e=function(S,v,M,F){for(var k,I,L,z=S.length/v,$=new Uint8Array(S.length+z),J=y(),re=0;re<z;re+=1){if(L=re*v,k=S.subarray(L,L+v),F)$.set(F(k,M,I),L+re);else{for(var de,Y=J.length,Ne=[];de<Y;de+=1)Ne[de]=J[de](k,M,I);var Ae=w(Ne.concat());$.set(Ne[Ae],L+re)}I=k}return $},o=function(S){var v=Array.apply([],S);return v.unshift(0),v},r=function(S,v){var M,F=[],k=S.length;F[0]=1;for(var I=0;I<k;I+=1)M=S[I-v]||0,F[I+1]=S[I]-M+256&255;return F},a=function(S,v,M){var F,k=[],I=S.length;k[0]=2;for(var L=0;L<I;L+=1)F=M&&M[L]||0,k[L+1]=S[L]-F+256&255;return k},d=function(S,v,M){var F,k,I=[],L=S.length;I[0]=3;for(var z=0;z<L;z+=1)F=S[z-v]||0,k=M&&M[z]||0,I[z+1]=S[z]+256-(F+k>>>1)&255;return I},p=function(S,v,M){var F,k,I,L,z=[],$=S.length;z[0]=4;for(var J=0;J<$;J+=1)F=S[J-v]||0,k=M&&M[J]||0,I=M&&M[J-v]||0,L=_(F,k,I),z[J+1]=S[J]-L+256&255;return z},_=function(S,v,M){if(S===v&&v===M)return S;var F=Math.abs(v-M),k=Math.abs(S-M),I=Math.abs(S+v-M-M);return F<=k&&F<=I?S:k<=I?v:M},y=function(){return[o,r,a,d,p]},w=function(S){var v=S.map(function(M){return M.reduce(function(F,k){return F+Math.abs(k)},0)});return v.indexOf(Math.min.apply(null,v))};t.processPNG=function(S,v,M,F){var k,I,L,z,$,J,re,de,Y,Ne,Ae,B,R,Z,K,we=this.decode.FLATE_DECODE,be="";if(this.__addimage__.isArrayBuffer(S)&&(S=new Uint8Array(S)),this.__addimage__.isArrayBufferView(S)){if(S=(L=new Vb(S)).imgData,I=L.bits,k=L.colorSpace,$=L.colors,[4,6].indexOf(L.colorType)!==-1){if(L.bits===8){Y=(de=L.pixelBitlength==32?new Uint32Array(L.decodePixels().buffer):L.pixelBitlength==16?new Uint16Array(L.decodePixels().buffer):new Uint8Array(L.decodePixels().buffer)).length,Ae=new Uint8Array(Y*L.colors),Ne=new Uint8Array(Y);var Ee,he=L.pixelBitlength-L.bits;for(Z=0,K=0;Z<Y;Z++){for(R=de[Z],Ee=0;Ee<he;)Ae[K++]=R>>>Ee&255,Ee+=L.bits;Ne[Z]=R>>>Ee&255}}if(L.bits===16){Y=(de=new Uint32Array(L.decodePixels().buffer)).length,Ae=new Uint8Array(Y*(32/L.pixelBitlength)*L.colors),Ne=new Uint8Array(Y*(32/L.pixelBitlength)),B=L.colors>1,Z=0,K=0;for(var Ie=0;Z<Y;)R=de[Z++],Ae[K++]=R>>>0&255,B&&(Ae[K++]=R>>>16&255,R=de[Z++],Ae[K++]=R>>>0&255),Ne[Ie++]=R>>>16&255;I=8}F!==t.image_compression.NONE&&i()?(S=n(Ae,L.width*L.colors,L.colors,F),re=n(Ne,L.width,1,F)):(S=Ae,re=Ne,we=void 0)}if(L.colorType===3&&(k=this.color_spaces.INDEXED,J=L.palette,L.transparency.indexed)){var Fe=L.transparency.indexed,Ge=0;for(Z=0,Y=Fe.length;Z<Y;++Z)Ge+=Fe[Z];if((Ge/=255)===Y-1&&Fe.indexOf(0)!==-1)z=[Fe.indexOf(0)];else if(Ge!==Y){for(de=L.decodePixels(),Ne=new Uint8Array(de.length),Z=0,Y=de.length;Z<Y;Z++)Ne[Z]=Fe[de[Z]];re=n(Ne,L.width,1)}}var T=function(U){var G;switch(U){case t.image_compression.FAST:G=11;break;case t.image_compression.MEDIUM:G=13;break;case t.image_compression.SLOW:G=14;break;default:G=12}return G}(F);return we===this.decode.FLATE_DECODE&&(be="/Predictor "+T+" "),be+="/Colors "+$+" /BitsPerComponent "+I+" /Columns "+L.width,(this.__addimage__.isArrayBuffer(S)||this.__addimage__.isArrayBufferView(S))&&(S=this.__addimage__.arrayBufferToBinaryString(S)),(re&&this.__addimage__.isArrayBuffer(re)||this.__addimage__.isArrayBufferView(re))&&(re=this.__addimage__.arrayBufferToBinaryString(re)),{alias:M,data:S,index:v,filter:we,decodeParameters:be,transparency:z,palette:J,sMask:re,predictor:T,width:L.width,height:L.height,bitsPerComponent:I,colorSpace:k}}}})(dt.API),function(t){t.processGIF89A=function(i,n,e,o){var r=new qb(i),a=r.width,d=r.height,p=[];r.decodeAndBlitFrameRGBA(0,p);var _={data:p,width:a,height:d},y=new bu(100).encode(_,100);return t.processJPEG.call(this,y,n,e,o)},t.processGIF87A=t.processGIF89A}(dt.API),gr.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var i=0;i<t;i++){var n=this.datav.getUint8(this.pos++,!0),e=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0);this.palette[i]={red:o,green:e,blue:n,quad:r}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},gr.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,i=this.width*this.height*4;this.data=new Uint8Array(i),this[t]()}catch(n){ci.log("bit decode error:"+n)}},gr.prototype.bit1=function(){var t,i=Math.ceil(this.width/8),n=i%4;for(t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,o=0;o<i;o++)for(var r=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+8*o*4,d=0;d<8&&8*o+d<this.width;d++){var p=this.palette[r>>7-d&1];this.data[a+4*d]=p.blue,this.data[a+4*d+1]=p.green,this.data[a+4*d+2]=p.red,this.data[a+4*d+3]=255}n!==0&&(this.pos+=4-n)}},gr.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),i=t%4,n=this.height-1;n>=0;n--){for(var e=this.bottom_up?n:this.height-1-n,o=0;o<t;o++){var r=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+2*o*4,d=r>>4,p=15&r,_=this.palette[d];if(this.data[a]=_.blue,this.data[a+1]=_.green,this.data[a+2]=_.red,this.data[a+3]=255,2*o+1>=this.width)break;_=this.palette[p],this.data[a+4]=_.blue,this.data[a+4+1]=_.green,this.data[a+4+2]=_.red,this.data[a+4+3]=255}i!==0&&(this.pos+=4-i)}},gr.prototype.bit8=function(){for(var t=this.width%4,i=this.height-1;i>=0;i--){for(var n=this.bottom_up?i:this.height-1-i,e=0;e<this.width;e++){var o=this.datav.getUint8(this.pos++,!0),r=n*this.width*4+4*e;if(o<this.palette.length){var a=this.palette[o];this.data[r]=a.red,this.data[r+1]=a.green,this.data[r+2]=a.blue,this.data[r+3]=255}else this.data[r]=255,this.data[r+1]=255,this.data[r+2]=255,this.data[r+3]=255}t!==0&&(this.pos+=4-t)}},gr.prototype.bit15=function(){for(var t=this.width%3,i=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var e=this.bottom_up?n:this.height-1-n,o=0;o<this.width;o++){var r=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(r&i)/i*255|0,d=(r>>5&i)/i*255|0,p=(r>>10&i)/i*255|0,_=r>>15?255:0,y=e*this.width*4+4*o;this.data[y]=p,this.data[y+1]=d,this.data[y+2]=a,this.data[y+3]=_}this.pos+=t}},gr.prototype.bit16=function(){for(var t=this.width%3,i=parseInt("11111",2),n=parseInt("111111",2),e=this.height-1;e>=0;e--){for(var o=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var d=(a&i)/i*255|0,p=(a>>5&n)/n*255|0,_=(a>>11)/i*255|0,y=o*this.width*4+4*r;this.data[y]=_,this.data[y+1]=p,this.data[y+2]=d,this.data[y+3]=255}this.pos+=t}},gr.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var i=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var e=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),a=i*this.width*4+4*n;this.data[a]=r,this.data[a+1]=o,this.data[a+2]=e,this.data[a+3]=255}this.pos+=this.width%4}},gr.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var i=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var e=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),d=i*this.width*4+4*n;this.data[d]=r,this.data[d+1]=o,this.data[d+2]=e,this.data[d+3]=a}},gr.prototype.getData=function(){return this.data},function(t){t.processBMP=function(i,n,e,o){var r=new gr(i,!1),a=r.width,d=r.height,p={data:r.getData(),width:a,height:d},_=new bu(100).encode(p,100);return t.processJPEG.call(this,_,n,e,o)}}(dt.API),O0.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(i,n,e,o){var r=new O0(i,!1),a=r.width,d=r.height,p={data:r.getData(),width:a,height:d},_=new bu(100).encode(p,100);return t.processJPEG.call(this,_,n,e,o)}}(dt.API),dt.API.processRGBA=function(t,i,n){for(var e=t.data,o=e.length,r=new Uint8Array(o/4*3),a=new Uint8Array(o/4),d=0,p=0,_=0;_<o;_+=4){var y=e[_],w=e[_+1],S=e[_+2],v=e[_+3];r[d++]=y,r[d++]=w,r[d++]=S,a[p++]=v}var M=this.__addimage__.arrayBufferToBinaryString(r);return{alpha:this.__addimage__.arrayBufferToBinaryString(a),data:M,index:i,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},dt.API.setLanguage=function(t){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]!==void 0&&(this.internal.languageSettings.languageCode=t,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},ml=dt.API,qc=ml.getCharWidthsArray=function(t,i){var n,e,o=(i=i||{}).font||this.internal.getFont(),r=i.fontSize||this.internal.getFontSize(),a=i.charSpace||this.internal.getCharSpace(),d=i.widths?i.widths:o.metadata.Unicode.widths,p=d.fof?d.fof:1,_=i.kerning?i.kerning:o.metadata.Unicode.kerning,y=_.fof?_.fof:1,w=i.doKerning!==!1,S=0,v=t.length,M=0,F=d[0]||p,k=[];for(n=0;n<v;n++)e=t.charCodeAt(n),typeof o.metadata.widthOfString=="function"?k.push((o.metadata.widthOfGlyph(o.metadata.characterToGlyph(e))+a*(1e3/r)||0)/1e3):(S=w&&(0,ai.default)(_[e])==="object"&&!isNaN(parseInt(_[e][M],10))?_[e][M]/y:0,k.push((d[e]||F)/p+S)),M=e;return k},N0=ml.getStringUnitWidth=function(t,i){var n=(i=i||{}).fontSize||this.internal.getFontSize(),e=i.font||this.internal.getFont(),o=i.charSpace||this.internal.getCharSpace();return ml.processArabic&&(t=ml.processArabic(t)),typeof e.metadata.widthOfString=="function"?e.metadata.widthOfString(t,n,o)/n:qc.apply(this,arguments).reduce(function(r,a){return r+a},0)},T0=function(t,i,n,e){for(var o=[],r=0,a=t.length,d=0;r!==a&&d+i[r]<n;)d+=i[r],r++;o.push(t.slice(0,r));var p=r;for(d=0;r!==a;)d+i[r]>e&&(o.push(t.slice(p,r)),d=0,p=r),d+=i[r],r++;return p!==r&&o.push(t.slice(p,r)),o},P0=function(t,i,n){n||(n={});var e,o,r,a,d,p,_,y=[],w=[y],S=n.textIndent||0,v=0,M=0,F=t.split(" "),k=qc.apply(this,[" ",n])[0];if(p=n.lineIndent===-1?F[0].length+2:n.lineIndent||0){var I=Array(p).join(" "),L=[];F.map(function($){($=$.split(/\s*\n/)).length>1?L=L.concat($.map(function(J,re){return(re&&J.length?`
+`:"")+J})):L.push($[0])}),F=L,p=N0.apply(this,[I,n])}for(r=0,a=F.length;r<a;r++){var z=0;if(e=F[r],p&&e[0]==`
+`&&(e=e.substr(1),z=1),S+v+(M=(o=qc.apply(this,[e,n])).reduce(function($,J){return $+J},0))>i||z){if(M>i){for(d=T0.apply(this,[e,o,i-(S+v),i]),y.push(d.shift()),y=[d.pop()];d.length;)w.push([d.shift()]);M=o.slice(e.length-(y[0]?y[0].length:0)).reduce(function($,J){return $+J},0)}else y=[e];w.push(y),S=M+p,v=k}else y.push(e),S+=v+M,v=k}return _=p?function($,J){return(J?I:"")+$.join(" ")}:function($){return $.join(" ")},w.map(_)},ml.splitTextToSize=function(t,i,n){var e,o=(n=n||{}).fontSize||this.internal.getFontSize(),r=(function(y){if(y.widths&&y.kerning)return{widths:y.widths,kerning:y.kerning};var w=this.internal.getFont(y.fontName,y.fontStyle);return w.metadata.Unicode?{widths:w.metadata.Unicode.widths||{0:1},kerning:w.metadata.Unicode.kerning||{}}:{font:w.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);e=Array.isArray(t)?t:String(t).split(/\r?\n/);var a=1*this.internal.scaleFactor*i/o;r.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/o:0,r.lineIndent=n.lineIndent;var d,p,_=[];for(d=0,p=e.length;d<p;d++)_=_.concat(P0.apply(this,[e[d],a,r]));return _},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var i="klmnopqrstuvwxyz",n={},e={},o=0;o<i.length;o++)n[i[o]]="0123456789abcdef"[o],e["0123456789abcdef"[o]]=i[o];var r=function(w){return"0x"+parseInt(w,10).toString(16)},a=t.__fontmetrics__.compress=function(w){var S,v,M,F,k=["{"];for(var I in w){if(S=w[I],isNaN(parseInt(I,10))?v="'"+I+"'":(I=parseInt(I,10),v=(v=r(I).slice(2)).slice(0,-1)+e[v.slice(-1)]),typeof S=="number")S<0?(M=r(S).slice(3),F="-"):(M=r(S).slice(2),F=""),M=F+M.slice(0,-1)+e[M.slice(-1)];else{if((0,ai.default)(S)!=="object")throw new Error("Don't know what to do with value type "+(0,ai.default)(S)+".");M=a(S)}k.push(v+M)}return k.push("}"),k.join("")},d=t.__fontmetrics__.uncompress=function(w){if(typeof w!="string")throw new Error("Invalid argument passed to uncompress.");for(var S,v,M,F,k={},I=1,L=k,z=[],$="",J="",re=w.length-1,de=1;de<re;de+=1)(F=w[de])=="'"?S?(M=S.join(""),S=void 0):S=[]:S?S.push(F):F=="{"?(z.push([L,M]),L={},M=void 0):F=="}"?((v=z.pop())[0][v[1]]=L,M=void 0,L=v[0]):F=="-"?I=-1:M===void 0?n.hasOwnProperty(F)?($+=n[F],M=parseInt($,16)*I,I=1,$=""):$+=F:n.hasOwnProperty(F)?(J+=n[F],L[M]=parseInt(J,16)*I,I=1,M=void 0,J=""):J+=F;return k},p={codePages:["WinAnsiEncoding"],WinAnsiEncoding:d("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},_={Unicode:{Courier:p,"Courier-Bold":p,"Courier-BoldOblique":p,"Courier-Oblique":p,Helvetica:p,"Helvetica-Bold":p,"Helvetica-BoldOblique":p,"Helvetica-Oblique":p,"Times-Roman":p,"Times-Bold":p,"Times-BoldItalic":p,"Times-Italic":p}},y={Unicode:{"Courier-Oblique":d("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":d("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":d("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:d("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":d("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":d("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:d("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:d("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufz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x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:d("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":d("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":d("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru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v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":d("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(w){var S=w.font,v=y.Unicode[S.postScriptName];v&&(S.metadata.Unicode={},S.metadata.Unicode.widths=v.widths,S.metadata.Unicode.kerning=v.kerning);var M=_.Unicode[S.postScriptName];M&&(S.metadata.Unicode.encoding=M,S.encoding=M.codePages[0])}])}(dt.API),function(t){var i=function(n){for(var e=n.length,o=new Uint8Array(e),r=0;r<e;r++)o[r]=n.charCodeAt(r);return o};t.API.events.push(["addFont",function(n){var e=void 0,o=n.font,r=n.instance;if(!o.isStandardFont){if(r===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+o.postScriptName+"').");if(typeof(e=r.existsFileInVFS(o.postScriptName)===!1?r.loadFile(o.postScriptName):r.getFileFromVFS(o.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+o.postScriptName+"').");(function(a,d){d=/^\x00\x01\x00\x00/.test(d)?i(d):i(us(d)),a.metadata=t.API.TTFFont.open(d),a.metadata.Unicode=a.metadata.Unicode||{encoding:{},kerning:{},widths:[]},a.metadata.glyIdsUsed=[0]})(o,e)}}])}(dt),function(t){function i(){return(ft.canvg?Promise.resolve(ft.canvg):import("./chunk-BAIERU3B.mjs")).catch(function(n){return Promise.reject(new Error("Could not load canvg: "+n))}).then(function(n){return n.default?n.default:n})}dt.API.addSvgAsImage=function(n,e,o,r,a,d,p,_){if(isNaN(e)||isNaN(o))throw ci.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(a))throw ci.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var y=document.createElement("canvas");y.width=r,y.height=a;var w=y.getContext("2d");w.fillStyle="#fff",w.fillRect(0,0,y.width,y.height);var S={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},v=this;return i().then(function(M){return M.fromString(w,n,S)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(M){return M.render(S)}).then(function(){v.addImage(y.toDataURL("image/jpeg",1),e,o,r,a,p,_)})}}(),dt.API.putTotalPages=function(t){var i,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(i=new RegExp(t,"g"),n=this.internal.getNumberOfPages()):(i=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var e=1;e<=this.internal.getNumberOfPages();e++)for(var o=0;o<this.internal.pages[e].length;o++)this.internal.pages[e][o]=this.internal.pages[e][o].replace(i,n);return this},dt.API.viewerPreferences=function(t,i){var n;t=t||{},i=i||!1;var e,o,r,a={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},d=Object.keys(a),p=[],_=0,y=0,w=0;function S(M,F){var k,I=!1;for(k=0;k<M.length;k+=1)M[k]===F&&(I=!0);return I}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,t==="reset"||i===!0){var v=d.length;for(w=0;w<v;w+=1)n[d[w]].value=n[d[w]].defaultValue,n[d[w]].explicitSet=!1}if((0,ai.default)(t)==="object"){for(o in t)if(r=t[o],S(d,o)&&r!==void 0){if(n[o].type==="boolean"&&typeof r=="boolean")n[o].value=r;else if(n[o].type==="name"&&S(n[o].valueSet,r))n[o].value=r;else if(n[o].type==="integer"&&Number.isInteger(r))n[o].value=r;else if(n[o].type==="array"){for(_=0;_<r.length;_+=1)if(e=!0,r[_].length===1&&typeof r[_][0]=="number")p.push(String(r[_]-1));else if(r[_].length>1){for(y=0;y<r[_].length;y+=1)typeof r[_][y]!="number"&&(e=!1);e===!0&&p.push([r[_][0]-1,r[_][1]-1].join(" "))}n[o].value="["+p.join(" ")+"]"}else n[o].value=n[o].defaultValue;n[o].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var M,F=[];for(M in n)n[M].explicitSet===!0&&(n[M].type==="name"?F.push("/"+M+" /"+n[M].value):F.push("/"+M+" "+n[M].value));F.length!==0&&this.internal.write(`/ViewerPreferences
+<<
+`+F.join(`
+`)+`
+>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},function(t){var i=function(){var e='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',o=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),r=unescape(encodeURIComponent(e)),a=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),d=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),p=unescape(encodeURIComponent("</x:xmpmeta>")),_=r.length+a.length+d.length+o.length+p.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+_+" >>"),this.internal.write("stream"),this.internal.write(o+r+a+d+p),this.internal.write("endstream"),this.internal.write("endobj")},n=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};t.addMetadata=function(e,o){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:e,namespaceuri:o||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",n),this.internal.events.subscribe("postPutResources",i)),this}}(dt.API),function(t){var i=t.API,n=i.pdfEscape16=function(r,a){for(var d,p=a.metadata.Unicode.widths,_=["","0","00","000","0000"],y=[""],w=0,S=r.length;w<S;++w){if(d=a.metadata.characterToGlyph(r.charCodeAt(w)),a.metadata.glyIdsUsed.push(d),a.metadata.toUnicode[d]=r.charCodeAt(w),p.indexOf(d)==-1&&(p.push(d),p.push([parseInt(a.metadata.widthOfGlyph(d),10)])),d=="0")return y.join("");d=d.toString(16),y.push(_[4-d.length],d)}return y.join("")},e=function(r){var a,d,p,_,y,w,S;for(y=`/CIDInit /ProcSet findresource begin
+12 dict begin
+begincmap
+/CIDSystemInfo <<
+  /Registry (Adobe)
+  /Ordering (UCS)
+  /Supplement 0
+>> def
+/CMapName /Adobe-Identity-UCS def
+/CMapType 2 def
+1 begincodespacerange
+<0000><ffff>
+endcodespacerange`,p=[],w=0,S=(d=Object.keys(r).sort(function(v,M){return v-M})).length;w<S;w++)a=d[w],p.length>=100&&(y+=`
+`+p.length+` beginbfchar
+`+p.join(`
+`)+`
+endbfchar`,p=[]),r[a]!==void 0&&r[a]!==null&&typeof r[a].toString=="function"&&(_=("0000"+r[a].toString(16)).slice(-4),a=("0000"+(+a).toString(16)).slice(-4),p.push("<"+a+"><"+_+">"));return p.length&&(y+=`
+`+p.length+` beginbfchar
+`+p.join(`
+`)+`
+endbfchar
+`),y+=`endcmap
+CMapName currentdict /CMap defineresource pop
+end
+end`};i.events.push(["putFont",function(r){(function(a){var d=a.font,p=a.out,_=a.newObject,y=a.putStream;if(d.metadata instanceof t.API.TTFFont&&d.encoding==="Identity-H"){for(var w=d.metadata.Unicode.widths,S=d.metadata.subset.encode(d.metadata.glyIdsUsed,1),v="",M=0;M<S.length;M++)v+=String.fromCharCode(S[M]);var F=_();y({data:v,addLength1:!0,objectId:F}),p("endobj");var k=_();y({data:e(d.metadata.toUnicode),addLength1:!0,objectId:k}),p("endobj");var I=_();p("<<"),p("/Type /FontDescriptor"),p("/FontName /"+hl(d.fontName)),p("/FontFile2 "+F+" 0 R"),p("/FontBBox "+t.API.PDFObject.convert(d.metadata.bbox)),p("/Flags "+d.metadata.flags),p("/StemV "+d.metadata.stemV),p("/ItalicAngle "+d.metadata.italicAngle),p("/Ascent "+d.metadata.ascender),p("/Descent "+d.metadata.decender),p("/CapHeight "+d.metadata.capHeight),p(">>"),p("endobj");var L=_();p("<<"),p("/Type /Font"),p("/BaseFont /"+hl(d.fontName)),p("/FontDescriptor "+I+" 0 R"),p("/W "+t.API.PDFObject.convert(w)),p("/CIDToGIDMap /Identity"),p("/DW 1000"),p("/Subtype /CIDFontType2"),p("/CIDSystemInfo"),p("<<"),p("/Supplement 0"),p("/Registry (Adobe)"),p("/Ordering ("+d.encoding+")"),p(">>"),p(">>"),p("endobj"),d.objectNumber=_(),p("<<"),p("/Type /Font"),p("/Subtype /Type0"),p("/ToUnicode "+k+" 0 R"),p("/BaseFont /"+hl(d.fontName)),p("/Encoding /"+d.encoding),p("/DescendantFonts ["+L+" 0 R]"),p(">>"),p("endobj"),d.isAlreadyPutted=!0}})(r)}]),i.events.push(["putFont",function(r){(function(a){var d=a.font,p=a.out,_=a.newObject,y=a.putStream;if(d.metadata instanceof t.API.TTFFont&&d.encoding==="WinAnsiEncoding"){for(var w=d.metadata.rawData,S="",v=0;v<w.length;v++)S+=String.fromCharCode(w[v]);var M=_();y({data:S,addLength1:!0,objectId:M}),p("endobj");var F=_();y({data:e(d.metadata.toUnicode),addLength1:!0,objectId:F}),p("endobj");var k=_();p("<<"),p("/Descent "+d.metadata.decender),p("/CapHeight "+d.metadata.capHeight),p("/StemV "+d.metadata.stemV),p("/Type /FontDescriptor"),p("/FontFile2 "+M+" 0 R"),p("/Flags 96"),p("/FontBBox "+t.API.PDFObject.convert(d.metadata.bbox)),p("/FontName /"+hl(d.fontName)),p("/ItalicAngle "+d.metadata.italicAngle),p("/Ascent "+d.metadata.ascender),p(">>"),p("endobj"),d.objectNumber=_();for(var I=0;I<d.metadata.hmtx.widths.length;I++)d.metadata.hmtx.widths[I]=parseInt(d.metadata.hmtx.widths[I]*(1e3/d.metadata.head.unitsPerEm));p("<</Subtype/TrueType/Type/Font/ToUnicode "+F+" 0 R/BaseFont/"+hl(d.fontName)+"/FontDescriptor "+k+" 0 R/Encoding/"+d.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(d.metadata.hmtx.widths)+">>"),p("endobj"),d.isAlreadyPutted=!0}})(r)}]);var o=function(r){var a,d=r.text||"",p=r.x,_=r.y,y=r.options||{},w=r.mutex||{},S=w.pdfEscape,v=w.activeFontKey,M=w.fonts,F=v,k="",I=0,L="",z=M[F].encoding;if(M[F].encoding!=="Identity-H")return{text:d,x:p,y:_,options:y,mutex:w};for(L=d,F=v,Array.isArray(d)&&(L=d[0]),I=0;I<L.length;I+=1)M[F].metadata.hasOwnProperty("cmap")&&(a=M[F].metadata.cmap.unicode.codeMap[L[I].charCodeAt(0)]),a||L[I].charCodeAt(0)<256&&M[F].metadata.hasOwnProperty("Unicode")?k+=L[I]:k+="";var $="";return parseInt(F.slice(1))<14||z==="WinAnsiEncoding"?$=S(k,F).split("").map(function(J){return J.charCodeAt(0).toString(16)}).join(""):z==="Identity-H"&&($=n(k,M[F])),w.isHex=!0,{text:$,x:p,y:_,options:y,mutex:w}};i.events.push(["postProcessText",function(r){var a=r.text||"",d=[],p={text:a,x:r.x,y:r.y,options:r.options,mutex:r.mutex};if(Array.isArray(a)){var _=0;for(_=0;_<a.length;_+=1)Array.isArray(a[_])&&a[_].length===3?d.push([o(Object.assign({},p,{text:a[_][0]})).text,a[_][1],a[_][2]]):d.push(o(Object.assign({},p,{text:a[_]})).text);r.text=d}else r.text=o(Object.assign({},p,{text:a})).text}])}(dt),function(t){var i=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(n){return i.call(this),this.internal.vFS[n]!==void 0},t.addFileToVFS=function(n,e){return i.call(this),this.internal.vFS[n]=e,this},t.getFileFromVFS=function(n){return i.call(this),this.internal.vFS[n]!==void 0?this.internal.vFS[n]:null}}(dt.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(e){var o,r,a,d,p,_,y,w=i,S=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],v=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],M={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},F={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},k=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],I=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),L=!1,z=0;this.__bidiEngine__={};var $=function(B){var R=B.charCodeAt(),Z=R>>8,K=F[Z];return K!==void 0?w[256*K+(255&R)]:Z===252||Z===253?"AL":I.test(Z)?"L":Z===8?"R":"N"},J=function(B){for(var R,Z=0;Z<B.length;Z++){if((R=$(B.charAt(Z)))==="L")return!1;if(R==="R")return!0}return!1},re=function(B,R,Z,K){var we,be,Ee,he,Ie=R[K];switch(Ie){case"L":case"R":L=!1;break;case"N":case"AN":break;case"EN":L&&(Ie="AN");break;case"AL":L=!0,Ie="R";break;case"WS":Ie="N";break;case"CS":K<1||K+1>=R.length||(we=Z[K-1])!=="EN"&&we!=="AN"||(be=R[K+1])!=="EN"&&be!=="AN"?Ie="N":L&&(be="AN"),Ie=be===we?be:"N";break;case"ES":Ie=(we=K>0?Z[K-1]:"B")==="EN"&&K+1<R.length&&R[K+1]==="EN"?"EN":"N";break;case"ET":if(K>0&&Z[K-1]==="EN"){Ie="EN";break}if(L){Ie="N";break}for(Ee=K+1,he=R.length;Ee<he&&R[Ee]==="ET";)Ee++;Ie=Ee<he&&R[Ee]==="EN"?"EN":"N";break;case"NSM":if(a&&!d){for(he=R.length,Ee=K+1;Ee<he&&R[Ee]==="NSM";)Ee++;if(Ee<he){var Fe=B[K],Ge=Fe>=1425&&Fe<=2303||Fe===64286;if(we=R[Ee],Ge&&(we==="R"||we==="AL")){Ie="R";break}}}Ie=K<1||(we=R[K-1])==="B"?"N":Z[K-1];break;case"B":L=!1,o=!0,Ie=z;break;case"S":r=!0,Ie="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":L=!1;break;case"BN":Ie="N"}return Ie},de=function(B,R,Z){var K=B.split("");return Z&&Y(K,Z,{hiLevel:z}),K.reverse(),R&&R.reverse(),K.join("")},Y=function(B,R,Z){var K,we,be,Ee,he,Ie=-1,Fe=B.length,Ge=0,T=[],U=z?v:S,G=[];for(L=!1,o=!1,r=!1,we=0;we<Fe;we++)G[we]=$(B[we]);for(be=0;be<Fe;be++){if(he=Ge,T[be]=re(B,G,T,be),K=240&(Ge=U[he][M[T[be]]]),Ge&=15,R[be]=Ee=U[Ge][5],K>0)if(K===16){for(we=Ie;we<be;we++)R[we]=1;Ie=-1}else Ie=-1;if(U[Ge][6])Ie===-1&&(Ie=be);else if(Ie>-1){for(we=Ie;we<be;we++)R[we]=Ee;Ie=-1}G[be]==="B"&&(R[be]=0),Z.hiLevel|=Ee}r&&function(ie,le,ge){for(var ve=0;ve<ge;ve++)if(ie[ve]==="S"){le[ve]=z;for(var ye=ve-1;ye>=0&&ie[ye]==="WS";ye--)le[ye]=z}}(G,R,Fe)},Ne=function(B,R,Z,K,we){if(!(we.hiLevel<B)){if(B===1&&z===1&&!o)return R.reverse(),void(Z&&Z.reverse());for(var be,Ee,he,Ie,Fe=R.length,Ge=0;Ge<Fe;){if(K[Ge]>=B){for(he=Ge+1;he<Fe&&K[he]>=B;)he++;for(Ie=Ge,Ee=he-1;Ie<Ee;Ie++,Ee--)be=R[Ie],R[Ie]=R[Ee],R[Ee]=be,Z&&(be=Z[Ie],Z[Ie]=Z[Ee],Z[Ee]=be);Ge=he}Ge++}}},Ae=function(B,R,Z){var K=B.split(""),we={hiLevel:z};return Z||(Z=[]),Y(K,Z,we),function(be,Ee,he){if(he.hiLevel!==0&&y)for(var Ie,Fe=0;Fe<be.length;Fe++)Ee[Fe]===1&&(Ie=k.indexOf(be[Fe]))>=0&&(be[Fe]=k[Ie+1])}(K,Z,we),Ne(2,K,R,Z,we),Ne(1,K,R,Z,we),K.join("")};return this.__bidiEngine__.doBidiReorder=function(B,R,Z){if(function(we,be){if(be)for(var Ee=0;Ee<we.length;Ee++)be[Ee]=Ee;d===void 0&&(d=J(we)),_===void 0&&(_=J(we))}(B,R),a||!p||_)if(a&&p&&d^_)z=d?1:0,B=de(B,R,Z);else if(!a&&p&&_)z=d?1:0,B=Ae(B,R,Z),B=de(B,R);else if(!a||d||p||_){if(a&&!p&&d^_)B=de(B,R),d?(z=0,B=Ae(B,R,Z)):(z=1,B=Ae(B,R,Z),B=de(B,R));else if(a&&d&&!p&&_)z=1,B=Ae(B,R,Z),B=de(B,R);else if(!a&&!p&&d^_){var K=y;d?(z=1,B=Ae(B,R,Z),z=0,y=!1,B=Ae(B,R,Z),y=K):(z=0,B=Ae(B,R,Z),B=de(B,R),z=1,y=!1,B=Ae(B,R,Z),y=K,B=de(B,R))}}else z=0,B=Ae(B,R,Z);else z=d?1:0,B=Ae(B,R,Z);return B},this.__bidiEngine__.setOptions=function(B){B&&(a=B.isInputVisual,p=B.isOutputVisual,d=B.isInputRtl,_=B.isOutputRtl,y=B.isSymmetricSwapping)},this.__bidiEngine__.setOptions(e),this.__bidiEngine__};var i=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(e){var o=e.text,r=(e.x,e.y,e.options||{}),a=(e.mutex,r.lang,[]);if(r.isInputVisual=typeof r.isInputVisual!="boolean"||r.isInputVisual,n.setOptions(r),Object.prototype.toString.call(o)==="[object Array]"){var d=0;for(a=[],d=0;d<o.length;d+=1)Object.prototype.toString.call(o[d])==="[object Array]"?a.push([n.doBidiReorder(o[d][0]),o[d][1],o[d][2]]):a.push([n.doBidiReorder(o[d])]);e.text=a}else e.text=n.doBidiReorder(o);n.setOptions({isInputVisual:!0})}])}(dt),dt.API.TTFFont=function(){function t(i){var n;if(this.rawData=i,n=this.contents=new ea(i),this.contents.pos=4,n.readString(4)==="ttcf")throw new Error("TTCF not supported.");n.pos=0,this.parse(),this.subset=new ey(this),this.registerTTF()}return t.open=function(i){return new t(i)},t.prototype.parse=function(){return this.directory=new Bb(this.contents),this.head=new Ub(this),this.name=new $b(this),this.cmap=new W0(this),this.toUnicode={},this.hhea=new zb(this),this.maxp=new Kb(this),this.hmtx=new Yb(this),this.post=new Gb(this),this.os2=new Hb(this),this.loca=new Xb(this),this.glyf=new Qb(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var i,n,e,o,r;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var a,d,p,_;for(_=[],a=0,d=(p=this.bbox).length;a<d;a++)i=p[a],_.push(Math.round(i*this.scaleFactor));return _}).call(this),this.stemV=0,this.post.exists?(e=255&(o=this.post.italic_angle),32768&(n=o>>16)&&(n=-(1+(65535^n))),this.italicAngle=+(n+"."+e)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(r=this.familyClass)===1||r===2||r===3||r===4||r===5||r===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(i){var n;return((n=this.cmap.unicode)!=null?n.codeMap[i]:void 0)||0},t.prototype.widthOfGlyph=function(i){var n;return n=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(i).advance*n},t.prototype.widthOfString=function(i,n,e){var o,r,a,d;for(a=0,r=0,d=(i=""+i).length;0<=d?r<d:r>d;r=0<=d?++r:--r)o=i.charCodeAt(r),a+=this.widthOfGlyph(this.characterToGlyph(o))+e*(1e3/n)||0;return a*(n/1e3)},t.prototype.lineHeight=function(i,n){var e;return n==null&&(n=!1),e=n?this.lineGap:0,(this.ascender+e-this.decender)/1e3*i},t}();var _r,ea=function(){function t(i){this.data=i??[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(i){return this.data[this.pos++]=i},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(i){return this.writeByte(i>>>24&255),this.writeByte(i>>16&255),this.writeByte(i>>8&255),this.writeByte(255&i)},t.prototype.readInt32=function(){var i;return(i=this.readUInt32())>=2147483648?i-4294967296:i},t.prototype.writeInt32=function(i){return i<0&&(i+=4294967296),this.writeUInt32(i)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(i){return this.writeByte(i>>8&255),this.writeByte(255&i)},t.prototype.readInt16=function(){var i;return(i=this.readUInt16())>=32768?i-65536:i},t.prototype.writeInt16=function(i){return i<0&&(i+=65536),this.writeUInt16(i)},t.prototype.readString=function(i){var n,e;for(e=[],n=0;0<=i?n<i:n>i;n=0<=i?++n:--n)e[n]=String.fromCharCode(this.readByte());return e.join("")},t.prototype.writeString=function(i){var n,e,o;for(o=[],n=0,e=i.length;0<=e?n<e:n>e;n=0<=e?++n:--n)o.push(this.writeByte(i.charCodeAt(n)));return o},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(i){return this.writeInt16(i)},t.prototype.readLongLong=function(){var i,n,e,o,r,a,d,p;return i=this.readByte(),n=this.readByte(),e=this.readByte(),o=this.readByte(),r=this.readByte(),a=this.readByte(),d=this.readByte(),p=this.readByte(),128&i?-1*(72057594037927940*(255^i)+281474976710656*(255^n)+1099511627776*(255^e)+4294967296*(255^o)+16777216*(255^r)+65536*(255^a)+256*(255^d)+(255^p)+1):72057594037927940*i+281474976710656*n+1099511627776*e+4294967296*o+16777216*r+65536*a+256*d+p},t.prototype.writeLongLong=function(i){var n,e;return n=Math.floor(i/4294967296),e=4294967295&i,this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n),this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(i){return this.writeInt32(i)},t.prototype.read=function(i){var n,e;for(n=[],e=0;0<=i?e<i:e>i;e=0<=i?++e:--e)n.push(this.readByte());return n},t.prototype.write=function(i){var n,e,o,r;for(r=[],e=0,o=i.length;e<o;e++)n=i[e],r.push(this.writeByte(n));return r},t}(),Bb=function(){var t;function i(n){var e,o,r;for(this.scalarType=n.readInt(),this.tableCount=n.readShort(),this.searchRange=n.readShort(),this.entrySelector=n.readShort(),this.rangeShift=n.readShort(),this.tables={},o=0,r=this.tableCount;0<=r?o<r:o>r;o=0<=r?++o:--o)e={tag:n.readString(4),checksum:n.readInt(),offset:n.readInt(),length:n.readInt()},this.tables[e.tag]=e}return i.prototype.encode=function(n){var e,o,r,a,d,p,_,y,w,S,v,M,F;for(F in v=Object.keys(n).length,p=Math.log(2),w=16*Math.floor(Math.log(v)/p),a=Math.floor(w/p),y=16*v-w,(o=new ea).writeInt(this.scalarType),o.writeShort(v),o.writeShort(w),o.writeShort(a),o.writeShort(y),r=16*v,_=o.pos+r,d=null,M=[],n)for(S=n[F],o.writeString(F),o.writeInt(t(S)),o.writeInt(_),o.writeInt(S.length),M=M.concat(S),F==="head"&&(d=_),_+=S.length;_%4;)M.push(0),_++;return o.write(M),e=2981146554-t(o.data),o.pos=d+8,o.writeUInt32(e),o.data},t=function(n){var e,o,r,a;for(n=$0.call(n);n.length%4;)n.push(0);for(r=new ea(n),o=0,e=0,a=n.length;e<a;e=e+=4)o+=r.readUInt32();return 4294967295&o},i}(),jb={}.hasOwnProperty,Qr=function(t,i){for(var n in i)jb.call(i,n)&&(t[n]=i[n]);function e(){this.constructor=t}return e.prototype=i.prototype,t.prototype=new e,t.__super__=i.prototype,t};_r=function(){function t(i){var n;this.file=i,n=this.file.directory.tables[this.tag],this.exists=!!n,n&&(this.offset=n.offset,this.length=n.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var Ub=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return Qr(i,_r),i.prototype.tag="head",i.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.revision=n.readInt(),this.checkSumAdjustment=n.readInt(),this.magicNumber=n.readInt(),this.flags=n.readShort(),this.unitsPerEm=n.readShort(),this.created=n.readLongLong(),this.modified=n.readLongLong(),this.xMin=n.readShort(),this.yMin=n.readShort(),this.xMax=n.readShort(),this.yMax=n.readShort(),this.macStyle=n.readShort(),this.lowestRecPPEM=n.readShort(),this.fontDirectionHint=n.readShort(),this.indexToLocFormat=n.readShort(),this.glyphDataFormat=n.readShort()},i.prototype.encode=function(n){var e;return(e=new ea).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(n),e.writeShort(this.glyphDataFormat),e.data},i}(),k0=function(){function t(i,n){var e,o,r,a,d,p,_,y,w,S,v,M,F,k,I,L,z;switch(this.platformID=i.readUInt16(),this.encodingID=i.readShort(),this.offset=n+i.readInt(),w=i.pos,i.pos=this.offset,this.format=i.readUInt16(),this.length=i.readUInt16(),this.language=i.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(p=0;p<256;++p)this.codeMap[p]=i.readByte();break;case 4:for(v=i.readUInt16(),S=v/2,i.pos+=6,r=function(){var $,J;for(J=[],p=$=0;0<=S?$<S:$>S;p=0<=S?++$:--$)J.push(i.readUInt16());return J}(),i.pos+=2,F=function(){var $,J;for(J=[],p=$=0;0<=S?$<S:$>S;p=0<=S?++$:--$)J.push(i.readUInt16());return J}(),_=function(){var $,J;for(J=[],p=$=0;0<=S?$<S:$>S;p=0<=S?++$:--$)J.push(i.readUInt16());return J}(),y=function(){var $,J;for(J=[],p=$=0;0<=S?$<S:$>S;p=0<=S?++$:--$)J.push(i.readUInt16());return J}(),o=(this.length-i.pos+this.offset)/2,d=function(){var $,J;for(J=[],p=$=0;0<=o?$<o:$>o;p=0<=o?++$:--$)J.push(i.readUInt16());return J}(),p=I=0,z=r.length;I<z;p=++I)for(k=r[p],e=L=M=F[p];M<=k?L<=k:L>=k;e=M<=k?++L:--L)y[p]===0?a=e+_[p]:(a=d[y[p]/2+(e-M)-(S-p)]||0)!==0&&(a+=_[p]),this.codeMap[e]=65535&a}i.pos=w}return t.encode=function(i,n){var e,o,r,a,d,p,_,y,w,S,v,M,F,k,I,L,z,$,J,re,de,Y,Ne,Ae,B,R,Z,K,we,be,Ee,he,Ie,Fe,Ge,T,U,G,ie,le,ge,ve,ye,Be,qe,Ke;switch(K=new ea,a=Object.keys(i).sort(function(Je,mt){return Je-mt}),n){case"macroman":for(F=0,k=function(){var Je=[];for(M=0;M<256;++M)Je.push(0);return Je}(),L={0:0},r={},we=0,Ie=a.length;we<Ie;we++)L[ye=i[o=a[we]]]==null&&(L[ye]=++F),r[o]={old:i[o],new:L[i[o]]},k[o]=L[i[o]];return K.writeUInt16(1),K.writeUInt16(0),K.writeUInt32(12),K.writeUInt16(0),K.writeUInt16(262),K.writeUInt16(0),K.write(k),{charMap:r,subtable:K.data,maxGlyphID:F+1};case"unicode":for(R=[],w=[],z=0,L={},e={},I=_=null,be=0,Fe=a.length;be<Fe;be++)L[J=i[o=a[be]]]==null&&(L[J]=++z),e[o]={old:J,new:L[J]},d=L[J]-o,I!=null&&d===_||(I&&w.push(I),R.push(o),_=d),I=o;for(I&&w.push(I),w.push(65535),R.push(65535),Ae=2*(Ne=R.length),Y=2*Math.pow(Math.log(Ne)/Math.LN2,2),S=Math.log(Y/2)/Math.LN2,de=2*Ne-Y,p=[],re=[],v=[],M=Ee=0,Ge=R.length;Ee<Ge;M=++Ee){if(B=R[M],y=w[M],B===65535){p.push(0),re.push(0);break}if(B-(Z=e[B].new)>=32768)for(p.push(0),re.push(2*(v.length+Ne-M)),o=he=B;B<=y?he<=y:he>=y;o=B<=y?++he:--he)v.push(e[o].new);else p.push(Z-B),re.push(0)}for(K.writeUInt16(3),K.writeUInt16(1),K.writeUInt32(12),K.writeUInt16(4),K.writeUInt16(16+8*Ne+2*v.length),K.writeUInt16(0),K.writeUInt16(Ae),K.writeUInt16(Y),K.writeUInt16(S),K.writeUInt16(de),ge=0,T=w.length;ge<T;ge++)o=w[ge],K.writeUInt16(o);for(K.writeUInt16(0),ve=0,U=R.length;ve<U;ve++)o=R[ve],K.writeUInt16(o);for(Be=0,G=p.length;Be<G;Be++)d=p[Be],K.writeUInt16(d);for(qe=0,ie=re.length;qe<ie;qe++)$=re[qe],K.writeUInt16($);for(Ke=0,le=v.length;Ke<le;Ke++)F=v[Ke],K.writeUInt16(F);return{charMap:e,subtable:K.data,maxGlyphID:z+1}}},t}(),W0=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return Qr(i,_r),i.prototype.tag="cmap",i.prototype.parse=function(n){var e,o,r;for(n.pos=this.offset,this.version=n.readUInt16(),r=n.readUInt16(),this.tables=[],this.unicode=null,o=0;0<=r?o<r:o>r;o=0<=r?++o:--o)e=new k0(n,this.offset),this.tables.push(e),e.isUnicode&&this.unicode==null&&(this.unicode=e);return!0},i.encode=function(n,e){var o,r;return e==null&&(e="macroman"),o=k0.encode(n,e),(r=new ea).writeUInt16(0),r.writeUInt16(1),o.table=r.data.concat(o.subtable),o},i}(),zb=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return Qr(i,_r),i.prototype.tag="hhea",i.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.ascender=n.readShort(),this.decender=n.readShort(),this.lineGap=n.readShort(),this.advanceWidthMax=n.readShort(),this.minLeftSideBearing=n.readShort(),this.minRightSideBearing=n.readShort(),this.xMaxExtent=n.readShort(),this.caretSlopeRise=n.readShort(),this.caretSlopeRun=n.readShort(),this.caretOffset=n.readShort(),n.pos+=8,this.metricDataFormat=n.readShort(),this.numberOfMetrics=n.readUInt16()},i}(),Hb=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return Qr(i,_r),i.prototype.tag="OS/2",i.prototype.parse=function(n){if(n.pos=this.offset,this.version=n.readUInt16(),this.averageCharWidth=n.readShort(),this.weightClass=n.readUInt16(),this.widthClass=n.readUInt16(),this.type=n.readShort(),this.ySubscriptXSize=n.readShort(),this.ySubscriptYSize=n.readShort(),this.ySubscriptXOffset=n.readShort(),this.ySubscriptYOffset=n.readShort(),this.ySuperscriptXSize=n.readShort(),this.ySuperscriptYSize=n.readShort(),this.ySuperscriptXOffset=n.readShort(),this.ySuperscriptYOffset=n.readShort(),this.yStrikeoutSize=n.readShort(),this.yStrikeoutPosition=n.readShort(),this.familyClass=n.readShort(),this.panose=function(){var e,o;for(o=[],e=0;e<10;++e)o.push(n.readByte());return o}(),this.charRange=function(){var e,o;for(o=[],e=0;e<4;++e)o.push(n.readInt());return o}(),this.vendorID=n.readString(4),this.selection=n.readShort(),this.firstCharIndex=n.readShort(),this.lastCharIndex=n.readShort(),this.version>0&&(this.ascent=n.readShort(),this.descent=n.readShort(),this.lineGap=n.readShort(),this.winAscent=n.readShort(),this.winDescent=n.readShort(),this.codePageRange=function(){var e,o;for(o=[],e=0;e<2;e=++e)o.push(n.readInt());return o}(),this.version>1))return this.xHeight=n.readShort(),this.capHeight=n.readShort(),this.defaultChar=n.readShort(),this.breakChar=n.readShort(),this.maxContext=n.readShort()},i}(),Gb=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return Qr(i,_r),i.prototype.tag="post",i.prototype.parse=function(n){var e,o,r;switch(n.pos=this.offset,this.format=n.readInt(),this.italicAngle=n.readInt(),this.underlinePosition=n.readShort(),this.underlineThickness=n.readShort(),this.isFixedPitch=n.readInt(),this.minMemType42=n.readInt(),this.maxMemType42=n.readInt(),this.minMemType1=n.readInt(),this.maxMemType1=n.readInt(),this.format){case 65536:break;case 131072:var a;for(o=n.readUInt16(),this.glyphNameIndex=[],a=0;0<=o?a<o:a>o;a=0<=o?++a:--a)this.glyphNameIndex.push(n.readUInt16());for(this.names=[],r=[];n.pos<this.offset+this.length;)e=n.readByte(),r.push(this.names.push(n.readString(e)));return r;case 151552:return o=n.readUInt16(),this.offsets=n.read(o);case 196608:break;case 262144:return this.map=(function(){var d,p,_;for(_=[],a=d=0,p=this.file.maxp.numGlyphs;0<=p?d<p:d>p;a=0<=p?++d:--d)_.push(n.readUInt32());return _}).call(this)}},i}(),Wb=function(t,i){this.raw=t,this.length=t.length,this.platformID=i.platformID,this.encodingID=i.encodingID,this.languageID=i.languageID},$b=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return Qr(i,_r),i.prototype.tag="name",i.prototype.parse=function(n){var e,o,r,a,d,p,_,y,w,S,v;for(n.pos=this.offset,n.readShort(),e=n.readShort(),p=n.readShort(),o=[],a=0;0<=e?a<e:a>e;a=0<=e?++a:--a)o.push({platformID:n.readShort(),encodingID:n.readShort(),languageID:n.readShort(),nameID:n.readShort(),length:n.readShort(),offset:this.offset+p+n.readShort()});for(_={},a=w=0,S=o.length;w<S;a=++w)r=o[a],n.pos=r.offset,y=n.readString(r.length),d=new Wb(y,r),_[v=r.nameID]==null&&(_[v]=[]),_[r.nameID].push(d);this.strings=_,this.copyright=_[0],this.fontFamily=_[1],this.fontSubfamily=_[2],this.uniqueSubfamily=_[3],this.fontName=_[4],this.version=_[5];try{this.postscriptName=_[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=_[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=_[7],this.manufacturer=_[8],this.designer=_[9],this.description=_[10],this.vendorUrl=_[11],this.designerUrl=_[12],this.license=_[13],this.licenseUrl=_[14],this.preferredFamily=_[15],this.preferredSubfamily=_[17],this.compatibleFull=_[18],this.sampleText=_[19]},i}(),Kb=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return Qr(i,_r),i.prototype.tag="maxp",i.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.numGlyphs=n.readUInt16(),this.maxPoints=n.readUInt16(),this.maxContours=n.readUInt16(),this.maxCompositePoints=n.readUInt16(),this.maxComponentContours=n.readUInt16(),this.maxZones=n.readUInt16(),this.maxTwilightPoints=n.readUInt16(),this.maxStorage=n.readUInt16(),this.maxFunctionDefs=n.readUInt16(),this.maxInstructionDefs=n.readUInt16(),this.maxStackElements=n.readUInt16(),this.maxSizeOfInstructions=n.readUInt16(),this.maxComponentElements=n.readUInt16(),this.maxComponentDepth=n.readUInt16()},i}(),Yb=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return Qr(i,_r),i.prototype.tag="hmtx",i.prototype.parse=function(n){var e,o,r,a,d,p,_;for(n.pos=this.offset,this.metrics=[],e=0,p=this.file.hhea.numberOfMetrics;0<=p?e<p:e>p;e=0<=p?++e:--e)this.metrics.push({advance:n.readUInt16(),lsb:n.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var y,w;for(w=[],e=y=0;0<=r?y<r:y>r;e=0<=r?++y:--y)w.push(n.readInt16());return w}(),this.widths=(function(){var y,w,S,v;for(v=[],y=0,w=(S=this.metrics).length;y<w;y++)a=S[y],v.push(a.advance);return v}).call(this),o=this.widths[this.widths.length-1],_=[],e=d=0;0<=r?d<r:d>r;e=0<=r?++d:--d)_.push(this.widths.push(o));return _},i.prototype.forGlyph=function(n){return n in this.metrics?this.metrics[n]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[n-this.metrics.length]}},i}(),$0=[].slice,Qb=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return Qr(i,_r),i.prototype.tag="glyf",i.prototype.parse=function(){return this.cache={}},i.prototype.glyphFor=function(n){var e,o,r,a,d,p,_,y,w,S;return n in this.cache?this.cache[n]:(a=this.file.loca,e=this.file.contents,o=a.indexOf(n),(r=a.lengthOf(n))===0?this.cache[n]=null:(e.pos=this.offset+o,d=(p=new ea(e.read(r))).readShort(),y=p.readShort(),S=p.readShort(),_=p.readShort(),w=p.readShort(),this.cache[n]=d===-1?new Zb(p,y,S,_,w):new Jb(p,d,y,S,_,w),this.cache[n]))},i.prototype.encode=function(n,e,o){var r,a,d,p,_;for(d=[],a=[],p=0,_=e.length;p<_;p++)r=n[e[p]],a.push(d.length),r&&(d=d.concat(r.encode(o)));return a.push(d.length),{table:d,offsets:a}},i}(),Jb=function(){function t(i,n,e,o,r,a){this.raw=i,this.numberOfContours=n,this.xMin=e,this.yMin=o,this.xMax=r,this.yMax=a,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),Zb=function(){function t(i,n,e,o,r){var a,d;for(this.raw=i,this.xMin=n,this.yMin=e,this.xMax=o,this.yMax=r,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],a=this.raw;d=a.readShort(),this.glyphOffsets.push(a.pos),this.glyphIDs.push(a.readUInt16()),32&d;)a.pos+=1&d?4:2,128&d?a.pos+=8:64&d?a.pos+=4:8&d&&(a.pos+=2)}return t.prototype.encode=function(){var i,n,e;for(n=new ea($0.call(this.raw.data)),i=0,e=this.glyphIDs.length;i<e;++i)n.pos=this.glyphOffsets[i];return n.data},t}(),Xb=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return Qr(i,_r),i.prototype.tag="loca",i.prototype.parse=function(n){var e,o;return n.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=e===0?(function(){var r,a;for(a=[],o=0,r=this.length;o<r;o+=2)a.push(2*n.readUInt16());return a}).call(this):(function(){var r,a;for(a=[],o=0,r=this.length;o<r;o+=4)a.push(n.readUInt32());return a}).call(this)},i.prototype.indexOf=function(n){return this.offsets[n]},i.prototype.lengthOf=function(n){return this.offsets[n+1]-this.offsets[n]},i.prototype.encode=function(n,e){for(var o=new Uint32Array(this.offsets.length),r=0,a=0,d=0;d<o.length;++d)if(o[d]=r,a<e.length&&e[a]==d){++a,o[d]=r;var p=this.offsets[d],_=this.offsets[d+1]-p;_>0&&(r+=_)}for(var y=new Array(4*o.length),w=0;w<o.length;++w)y[4*w+3]=255&o[w],y[4*w+2]=(65280&o[w])>>8,y[4*w+1]=(16711680&o[w])>>16,y[4*w]=(4278190080&o[w])>>24;return y},i}(),ey=function(){function t(i){this.font=i,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var i,n,e,o,r;for(n in o=this.font.cmap.tables[0].codeMap,i={},r=this.subset)e=r[n],i[n]=o[e];return i},t.prototype.glyphsFor=function(i){var n,e,o,r,a,d,p;for(o={},a=0,d=i.length;a<d;a++)o[r=i[a]]=this.font.glyf.glyphFor(r);for(r in n=[],o)(e=o[r])!=null&&e.compound&&n.push.apply(n,e.glyphIDs);if(n.length>0)for(r in p=this.glyphsFor(n))e=p[r],o[r]=e;return o},t.prototype.encode=function(i,n){var e,o,r,a,d,p,_,y,w,S,v,M,F,k,I;for(o in e=W0.encode(this.generateCmap(),"unicode"),a=this.glyphsFor(i),v={0:0},I=e.charMap)v[(p=I[o]).old]=p.new;for(M in S=e.maxGlyphID,a)M in v||(v[M]=S++);return y=function(L){var z,$;for(z in $={},L)$[L[z]]=z;return $}(v),w=Object.keys(y).sort(function(L,z){return L-z}),F=function(){var L,z,$;for($=[],L=0,z=w.length;L<z;L++)d=w[L],$.push(y[d]);return $}(),r=this.font.glyf.encode(a,F,v),_=this.font.loca.encode(r.offsets,F),k={cmap:this.font.cmap.raw(),glyf:r.table,loca:_,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(n)},this.font.os2.exists&&(k["OS/2"]=this.font.os2.raw()),this.font.directory.encode(k)},t}();dt.API.PDFObject=function(){var t;function i(){}return t=function(n,e){return(Array(e+1).join("0")+n).slice(-e)},i.convert=function(n){var e,o,r,a;if(Array.isArray(n))return"["+function(){var d,p,_;for(_=[],d=0,p=n.length;d<p;d++)e=n[d],_.push(i.convert(e));return _}().join(" ")+"]";if(typeof n=="string")return"/"+n;if(n?.isString)return"("+n+")";if(n instanceof Date)return"(D:"+t(n.getUTCFullYear(),4)+t(n.getUTCMonth(),2)+t(n.getUTCDate(),2)+t(n.getUTCHours(),2)+t(n.getUTCMinutes(),2)+t(n.getUTCSeconds(),2)+"Z)";if({}.toString.call(n)==="[object Object]"){for(o in r=["<<"],n)a=n[o],r.push("/"+o+" "+i.convert(a));return r.push(">>"),r.join(`
+`)}return""+n},i}();function ty(t,i){if(t&1&&(c(0,"div")(1,"li"),b(2),s()()),t&2){let n=i.$implicit;h(2),Vn(" ",n.name," ",n.quantity,"",n.unit," ")}}function iy(t,i){if(t&1&&(c(0,"div")(1,"li"),b(2),s()()),t&2){let n=i.$implicit;h(2),Vn(" ",n.name," ",n.quantity,"",n.unit," ")}}function ny(t,i){if(t&1&&(c(0,"div")(1,"li"),b(2),s()()),t&2){let n=i.$implicit;h(2),Vn("",n.name," ",n.quantity,"",n.unit,"")}}function ry(t,i){if(t&1&&(c(0,"div")(1,"li"),b(2),s()()),t&2){let n=i.$implicit;h(2),Vn("",n.name," ",n.quantity,"",n.unit,"")}}var K0=(()=>{let i=class i{constructor(e,o,r){this.route=e,this.recipeService=o,this.router=r,this.id=0,this.recipe={},this.leftColumnIngredients=[],this.rightColumnIngredients=[],this.leftColumnInputs=[],this.rightColumnInputs=[]}ngOnInit(){this.id=+(this.route.snapshot.paramMap.get("id")??0),this.id!==0&&this.recipeService.getRecipeById(this.id).subscribe(e=>{this.recipe=e,this.splitIngredients(),this.splitInputs()},e=>console.error(e))}goTo(){this.router.navigate(["/recipes",this.id,"modify"])}deleteRecipe(){this.recipeService.deleteRecipe(this.id).subscribe(e=>{this.router.navigate(["/recipes"])},e=>console.error(e))}generatePDF(){let e=new dt,o=10;e.setFontSize(18),e.text(this.recipe.name,10,o),o+=20,e.setFontSize(14),e.text("Ingredientes:",10,o),o+=10,e.setFontSize(12),$c(this.recipe.recipeIngredients).forEach(d=>{e.text(`- ${d.name}: ${d.quantity} ${d.unit}`,10,o),o+=10}),o+=5,e.setFontSize(14),e.text("Insumos:",10,o),o+=10,e.setFontSize(12),$c(this.recipe.recipePackagingElements).forEach(d=>{e.text(`- ${d.name}: ${d.quantity} ${d.unit}`,10,o),o+=10}),o+=10,e.setFontSize(14),e.text("Procedimiento",10,o),o+=10;let r=this.convertHTMLToText(this.recipe.description);e.splitTextToSize(r,180).forEach(d=>{e.text(d,10,o),o+=10}),e.save(`${this.recipe.name}.pdf`)}convertHTMLToText(e){let o=document.createElement("div");o.innerHTML=e;let r=p=>p.nodeName==="BR"?`
+`:p.textContent||"",a=p=>p.nodeName==="LI"?`\u2022 ${p.textContent?.trim()}
+`:p.textContent||"";return Array.from(o.childNodes).map(p=>p.nodeName==="BR"?r(p):p.nodeName==="UL"||p.nodeName==="OL"?Array.from(p.childNodes).map(a).join(""):p.nodeName==="P"?`${p.textContent?.trim()}
+
+`:p.textContent||"").join("").trim()}splitIngredients(){if(this.recipe&&this.recipe.recipeIngredients){let e=!0;$c(this.recipe.recipeIngredients).forEach(r=>{e?this.leftColumnIngredients.push(r):this.rightColumnIngredients.push(r),e=!e})}else console.error("Ingredients are undefined or not an array")}splitInputs(){if(this.recipe&&this.recipe.recipePackagingElements){let e=!0;$c(this.recipe.recipePackagingElements).forEach(r=>{e?this.leftColumnInputs.push(r):this.rightColumnInputs.push(r),e=!e})}else console.error("Inpusts are undefined or not an array")}};i.\u0275fac=function(o){return new(o||i)(se(tl),se(zo),se(pi))},i.\u0275cmp=ke({type:i,selectors:[["app-view-recipe"]],standalone:!0,features:[Ve],decls:41,vars:8,consts:[[1,"container-fluid","d-flex","flex-column","justify-content-center","align-items-center","vh-100"],[1,"row","justify-content-center","align-items-center","w-100"],[1,"col-8","col-main"],[1,"row","header-row","mb-4","align-items-center"],[1,"col"],[1,"view-title"],[1,"col","d-flex","justify-content-center"],["type","button",1,"btn","btn-custom",3,"click"],[1,"bi","bi-file-arrow-down-fill"],[1,"col","d-flex","justify-content-end"],[1,"col","custom-col"],[1,"row","px-2","mb-4"],[1,"subtitle"],[1,"row"],[4,"ngFor","ngForOf"],[1,"procedure"],[3,"innerHTML"]],template:function(o,r){o&1&&(H(0,"app-navbar"),c(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"h1",5),b(7),s()(),c(8,"div",6)(9,"button",7),ee("click",function(){return r.generatePDF()}),H(10,"i",8),b(11," PDF "),s()(),c(12,"div",9)(13,"button",7),ee("click",function(){return r.goTo()}),b(14," EDITAR "),s(),c(15,"button",7),ee("click",function(){return r.deleteRecipe()}),b(16," ELIMINAR "),s()()(),c(17,"div",10)(18,"div",11)(19,"div",4)(20,"label",12),b(21," INGREDIENTES "),s(),c(22,"div",13)(23,"div",4),O(24,ty,3,3,"div",14),s(),c(25,"div",4),O(26,iy,3,3,"div",14),s()()(),c(27,"div",4)(28,"label",12),b(29," Insumos "),s(),c(30,"div",13)(31,"div",4),O(32,ny,3,3,"div",14),s(),c(33,"div",4),O(34,ry,3,3,"div",14),s()()()(),c(35,"div",13)(36,"label",12),b(37," Procedimiento "),s(),c(38,"div",15),H(39,"div",16),ac(40,"newLinewToBr"),s()()()()()()),o&2&&(h(7),Ut(r.recipe.name),h(17),g("ngForOf",r.leftColumnIngredients),h(2),g("ngForOf",r.rightColumnIngredients),h(6),g("ngForOf",r.leftColumnInputs),h(2),g("ngForOf",r.rightColumnInputs),h(5),g("innerHTML",yp(40,6,r.recipe.description),hp))},dependencies:[oi,Ze,Jt,c0],styles:[`[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/recipes.svg);background-size:cover;background-position:center;background-repeat:no-repeat}.vh-100[_ngcontent-%COMP%]{height:60vh!important}.view-title[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;color:#1b5e20;font-size:2.5rem;padding-left:1.5rem}.header-row[_ngcontent-%COMP%]{padding-bottom:14px;align-items:center}.custom-col[_ngcontent-%COMP%]{background-color:#d2ffaa;padding:1rem}.subtitle[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;color:#1b5e20;font-size:1.2rem}.btn-custom[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1.3rem;color:#1b5e20}.procedure[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:.6rem}
+/*# sourceMappingURL=view-recipe.component-TIE2PERX.css.map */`]});let t=i;return t})();function $c(t){return t?t.split(";").filter(e=>e.trim()!=="").map(e=>{let[o,r,a]=e.split(",");return!o||!r||!a?(console.error(`Invalid format: ${e}`),{name:"",quantity:"",unit:""}):{name:o.trim(),quantity:r.trim(),unit:a.trim()}}):[]}var Kc=(()=>{let i=class i{constructor(e){this.batchesService=e,this.batchCategories=new Ql([])}chargeCategories(){this.batchesService.getCategories().subscribe({next:e=>{Array.isArray(e)?this.batchCategories.next(e):console.error("Unexpected response format",e)},error:e=>{console.error("Error fetching categories",e)}})}getCategories(){return this.batchCategories.asObservable()}addCategory(e){this.batchCategories.pipe(Vi(o=>{o.includes(e)||(o.push(e),o.sort(),this.batchCategories.next(o))})).subscribe()}};i.\u0275fac=function(o){return new(o||i)(mi(Zn))},i.\u0275prov=ti({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var ho=t=>({"is-invalid":t}),oy=()=>({height:"240px"});function ay(t,i){t&1&&(c(0,"div"),b(1," Nombre es requerido. "),s())}function ly(t,i){t&1&&(c(0,"div"),b(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),s())}function sy(t,i){if(t&1&&(c(0,"div",51),O(1,ay,2,0,"div",52)(2,ly,2,0,"div",52),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.batchForm.get("name"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.batchForm.get("name"))==null||e.errors==null)&&e.errors.required)&&((e=o.batchForm.get("name"))==null||e.errors==null?null:e.errors.pattern))}}function cy(t,i){if(t&1&&(c(0,"option",53),b(1),s()),t&2){let n=i.$implicit;g("value",n),h(),pt(" ",n," ")}}function dy(t,i){t&1&&(c(0,"div"),b(1," La Categoria es necesaria. "),s())}function uy(t,i){if(t&1&&(c(0,"div",54),O(1,dy,2,0,"div",52),s()),t&2){let n,e=V();h(),g("ngIf",(n=e.batchForm.get("category"))==null||n.errors==null?null:n.errors.required)}}function py(t,i){if(t&1&&(c(0,"option",53),b(1),s()),t&2){let n=i.$implicit;g("value",n),h(),pt(" ",n," ")}}function my(t,i){t&1&&(c(0,"div"),b(1," Es necesario ingresar una cantidad. "),s())}function fy(t,i){t&1&&(c(0,"div"),b(1," La cantidad debe ser un n\xFAmero v\xE1lido mayor a 0. "),s())}function hy(t,i){if(t&1&&(c(0,"div",55),O(1,my,2,0,"div",52)(2,fy,2,0,"div",52),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.batchForm.get("quantity"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.batchForm.get("quantity"))==null||e.errors==null)&&e.errors.required)&&((e=o.batchForm.get("quantity"))==null||e.errors==null?null:e.errors.invalidQuantity))}}function gy(t,i){t&1&&(c(0,"div"),b(1," Ingrese una unidad. "),s())}function vy(t,i){if(t&1&&(c(0,"div",56),O(1,gy,2,0,"div",52),s()),t&2){let n,e=V();h(),g("ngIf",(n=e.batchForm.get("unit"))==null||n.errors==null?null:n.errors.required)}}function _y(t,i){t&1&&(c(0,"div",51),b(1," Se necesita una Fecha de Vencimiento. "),s())}function by(t,i){t&1&&(c(0,"div",51),b(1," El Precio debe ser igual o mayor al costo "),s())}function yy(t,i){t&1&&(c(0,"div"),b(1," La cantidad m\xEDnima es 1. "),s())}function Cy(t,i){if(t&1&&(c(0,"div"),b(1),s()),t&2){let n=V(3).index,e=V();h(),pt(" La cantidad m\xE1xima es ",e.avaibleRawMaterials[n].quantity,". ")}}function wy(t,i){if(t&1&&(c(0,"div",51),O(1,yy,2,0,"div",52)(2,Cy,2,1,"div",52),s()),t&2){let n,e,o=V(2).$implicit;h(),g("ngIf",(n=o.get("quantity"))==null||n.errors==null?null:n.errors.min),h(),g("ngIf",(e=o.get("quantity"))==null||e.errors==null?null:e.errors.max)}}function Sy(t,i){if(t&1){let n=Re();c(0,"div",12)(1,"label",62),b(2,"Cantidad:"),s(),c(3,"input",63),ee("change",function(){me(n);let o=V(2);return fe(o.calculateCost())}),s(),O(4,wy,3,2,"div",19),s()}if(t&2){let n,e,o=V(),r=o.$implicit,a=o.index,d=V(),p=ct(5);h(),Ht("for","quantity-",a,""),h(2),Ht("id","quantity-",a,""),g("ngClass",_e(6,ho,(((n=d.batchForm.get("quantity"))==null?null:n.dirty)||((n=d.batchForm.get("quantity"))==null?null:n.touched)||p.submitted)&&((n=d.batchForm.get("quantity"))==null?null:n.invalid))),h(),g("ngIf",p.submitted||((e=r.get("quantity"))==null?null:e.invalid)&&(((e=r.get("quantity"))==null?null:e.dirty)||((e=r.get("quantity"))==null?null:e.touched)))}}function xy(t,i){if(t&1&&(c(0,"div",57)(1,"div",58),H(2,"input",59),c(3,"label",60),b(4),s()(),O(5,Sy,5,8,"div",61),s()),t&2){let n,e=i.$implicit,o=i.index,r=V();g("formGroupName",o),h(2),Ht("id","material-",o,""),h(),Ht("for","material-",o,""),h(),Vn(" ",r.avaibleRawMaterials[o].name," (Disponible: ",r.avaibleRawMaterials[o].quantity," ",r.avaibleRawMaterials[o].unit,") "),h(),g("ngIf",(n=e.get("selected"))==null?null:n.value)}}function Ey(t,i){t&1&&(c(0,"div",64),b(1," Debe seleccionarse al menos un ingrediente. "),s())}function Fy(t,i){t&1&&(c(0,"div"),b(1," La cantidad m\xEDnima es 1. "),s())}function Iy(t,i){if(t&1&&(c(0,"div"),b(1),s()),t&2){let n=V(3).index,e=V();h(),pt(" La cantidad m\xE1xima es ",e.avaibleInputs[n].quantity,". ")}}function Ay(t,i){if(t&1&&(c(0,"div",51),O(1,Fy,2,0,"div",52)(2,Iy,2,1,"div",52),s()),t&2){let n,e,o=V(2).$implicit;h(),g("ngIf",(n=o.get("quantity"))==null||n.errors==null?null:n.errors.min),h(),g("ngIf",(e=o.get("quantity"))==null||e.errors==null?null:e.errors.max)}}function My(t,i){if(t&1){let n=Re();c(0,"div",12)(1,"label",62),b(2,"Cantidad:"),s(),c(3,"input",63),ee("change",function(){me(n);let o=V(2);return fe(o.calculateCost())}),s(),O(4,Ay,3,2,"div",19),s()}if(t&2){let n,e,o=V(),r=o.$implicit,a=o.index,d=V(),p=ct(5);h(),Ht("for","quantity-",a,""),h(2),Ht("id","quantity-",a,""),g("ngClass",_e(6,ho,(((n=d.batchForm.get("quantity"))==null?null:n.dirty)||((n=d.batchForm.get("quantity"))==null?null:n.touched)||p.submitted)&&((n=d.batchForm.get("quantity"))==null?null:n.invalid))),h(),g("ngIf",p.submitted||((e=r.get("quantity"))==null?null:e.invalid)&&(((e=r.get("quantity"))==null?null:e.dirty)||((e=r.get("quantity"))==null?null:e.touched)))}}function Ny(t,i){if(t&1&&(c(0,"div",57)(1,"div",58),H(2,"input",59),c(3,"label",60),b(4),s()(),O(5,My,5,8,"div",61),s()),t&2){let n,e=i.$implicit,o=i.index,r=V();g("formGroupName",o),h(2),Ht("id","material-",o,""),h(),Ht("for","material-",o,""),h(),Vn(" ",r.avaibleInputs[o].name," (Disponible: ",r.avaibleInputs[o].quantity," ",r.avaibleInputs[o].unit,") "),h(),g("ngIf",(n=e.get("selected"))==null?null:n.value)}}function Ty(t,i){t&1&&(c(0,"div",64),b(1," Debe seleccionarse al menos un insumo. "),s())}function Py(t,i){t&1&&(c(0,"span",65)(1,"select",66),H(2,"option",67),c(3,"option",68),b(4,"Heading 1"),s(),c(5,"option",69),b(6,"Heading 2"),s(),c(7,"option",70),b(8,"Heading 3"),s()(),c(9,"select",71),H(10,"option",67),c(11,"option",72),b(12,"Serif"),s(),c(13,"option",73),b(14,"Monospace"),s()(),H(15,"button",74)(16,"button",75)(17,"button",76),c(18,"select",77),H(19,"option",67),c(20,"option",78),b(21,"Center"),s(),c(22,"option",79),b(23,"Right"),s(),c(24,"option",80),b(25,"Justify"),s()(),H(26,"button",81)(27,"button",82)(28,"button",83),s())}function Ly(t,i){t&1&&(c(0,"div",51),b(1," Descripci\xF3n es requerida. "),s())}function Oy(t,i){t&1&&(c(0,"div"),b(1," La categoria es requerida. "),s())}function ky(t,i){t&1&&(c(0,"div"),b(1," La categoria no debe contener n\xFAmeros ni s\xEDmbolos. "),s())}function Dy(t,i){if(t&1&&(c(0,"div",54),O(1,Oy,2,0,"div",52)(2,ky,2,0,"div",52),s()),t&2){let n,e,o=V(2);h(),g("ngIf",(n=o.addCategoryForm.get("newCategory"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",(e=o.addCategoryForm.get("newCategory"))==null||e.errors==null?null:e.errors.pattern)}}function Ry(t,i){if(t&1){let n=Re();c(0,"div",84)(1,"div",85)(2,"div",86)(3,"div",87)(4,"h1",88),b(5," Agregar Tipo "),s(),c(6,"button",89),ee("click",function(){me(n);let o=V();return fe(o.closeAddCategoryModal())}),s()(),c(7,"div",90)(8,"form",91),ee("ngSubmit",function(){me(n);let o=V();return fe(o.addCategory())}),c(9,"div",12)(10,"label",92),b(11,"Nuevo Tipo"),s(),H(12,"input",93),O(13,Dy,3,2,"div",27),s()()(),c(14,"div",94)(15,"button",95),ee("click",function(){me(n);let o=V();return fe(o.closeAddCategoryModal())}),b(16," CANCELAR "),s(),c(17,"button",96),ee("click",function(){me(n);let o=V();return fe(o.addCategory())}),b(18," GUARDAR "),s()()()()()}if(t&2){let n,e=V();h(8),g("formGroup",e.addCategoryForm),h(5),g("ngIf",((n=e.addCategoryForm.get("newCategory"))==null?null:n.invalid)&&(((n=e.addCategoryForm.get("newCategory"))==null?null:n.dirty)||((n=e.addCategoryForm.get("newType"))==null?null:n.touched)))}}var Q0=(()=>{let i=class i{constructor(e,o,r,a,d,p){this.formbuild=e,this.CategoriesService=o,this.RawMaterialsService=r,this.InputsService=a,this.BatchesService=d,this.router=p,this.categories=[],this.units=[],this.minDate="",this.addCategoryModal=!1,this.avaibleRawMaterials=[],this.avaibleInputs=[],this.totalCost=0,this.batchForm=this.formbuild.group({name:["",[oe.required,oe.pattern("[a-zA-Z ]*")]],category:["",[oe.required]],quantity:["",[oe.required,oe.pattern("[0-9]*")]],unit:["",[oe.required]],expirationDate:[""],description:[""],price:[0,[oe.required,oe.min(1)]],ingredients:this.formbuild.array([],{validators:cl()}),packages:this.formbuild.array([],{validators:cl()})}),this.addCategoryForm=this.formbuild.group({newCategory:["",[oe.required,oe.pattern("[a-zA-Z ]*")]]})}ngOnInit(){this.CategoriesService.chargeCategories(),this.getCategories(),this.units=Object.values(nn);let e=new Date;this.minDate=e.toISOString().slice(0,16),this.getRawMaterials(),this.getInputs()}addCategory(){this.addCategoryForm.valid?(this.categories.push(this.addCategoryForm.value.newCategory),this.addCategoryForm.reset(),this.addCategoryModal=!1):console.log("Formulario de categoria inv\xE1lido.")}onSubmit(){if(console.log(this.batchForm),this.batchForm.valid){let e=this.batchForm.get("ingredients")?.value,o=e.filter(w=>w.selected).map(w=>w.id),r=this.avaibleRawMaterials.filter(w=>o.includes(w.id)),a=this.batchForm.get("packages")?.value,d=a.filter(w=>w.selected).map(w=>w.id),p=this.avaibleInputs.filter(w=>d.includes(w.id)),_=new Date;_.setFullYear(_.getFullYear()+70);let y={name:this.batchForm.get("name")?.value,category:this.batchForm.get("category")?.value,quantity:this.batchForm.get("quantity")?.value,unit:this.batchForm.get("unit")?.value,expiration:this.batchForm.get("expirationDate")?.value||_,description:this.batchForm.get("description")?.value||"",batchIngredients:r,batchIngredientsQuantity:e.filter(w=>w.selected).map(w=>`${w.id},${w.quantity}`).join(";"),batchPackagingElements:p,batchPackagingElementsQuantity:a.filter(w=>w.selected).map(w=>`${w.id},${w.quantity}`).join(";"),price:this.batchForm.get("price")?.value};console.log("Batch: ",JSON.stringify(y)),this.BatchesService.createBatch(y).subscribe(w=>{console.log("Lote creado correctamente.");let S=r.map(M=>{let F=e.find(k=>k.id===M.id);return F?(M.quantity-=F.quantity,console.log("Ingredient post update: ",M),this.RawMaterialsService.updateRawMaterial(M).toPromise()):null}).filter(Boolean),v=p.map(M=>{let F=a.find(k=>k.id===M.id);return F?(M.quantity-=F.quantity,console.log("Input post update: ",M),this.InputsService.updateInput(M).toPromise()):null}).filter(Boolean);Promise.all([...S,...v]).then(()=>{console.log("Todos los materiales actualizados correctamente.")}).catch(M=>{console.error("Error al actualizar materiales: ",M)}),this.router.navigate(["/production"])},w=>{console.error(w)})}else console.log("Formulario de lote inv\xE1lido.")}openAddCategoryModal(){this.addCategoryModal=!0}closeAddCategoryModal(){this.addCategoryModal=!1}get selectedIngredients(){return this.batchForm.get("ingredients")}addRawMaterialControls(){this.avaibleRawMaterials.forEach(e=>{this.selectedIngredients.push(this.formbuild.group({id:[e.id],name:[e.name],selected:[!1],quantity:[null,[oe.min(1),oe.max(e.availableQuantity)]]}))})}getRawMaterials(){this.RawMaterialsService.getRawMaterials().subscribe(e=>{this.avaibleRawMaterials=e.sort((o,r)=>o.name.localeCompare(r.name)),this.addRawMaterialControls()},e=>{console.error(e)})}openRMFilters(){}get selectedInputs(){return this.batchForm.get("packages")}addInputsControls(){this.avaibleInputs.forEach(e=>{this.selectedInputs.push(this.formbuild.group({id:[e.id],name:[e.name],selected:[!1],quantity:[null,[oe.min(1),oe.max(e.availableQuantity)]]}))})}getInputs(){this.InputsService.getInputs().subscribe(e=>{this.avaibleInputs=e.sort((o,r)=>o.name.localeCompare(r.name)),this.addInputsControls()},e=>{console.error(e)})}openIFilters(){}getCategories(){this.CategoriesService.getCategories().subscribe(e=>{this.categories=e.sort((o,r)=>o.localeCompare(r))},e=>{console.error(e)})}calculateCost(){this.totalCost=0,this.batchForm.get("ingredients")?.value.forEach(e=>{if(console.log(e),e.selected){let o=this.avaibleRawMaterials.find(r=>(console.log(r.id,e.id),console.log(r.id===e.id),r.id,e.id,r.id===e.id));console.log(o,o.cost),o&&(this.totalCost+=e.quantity*o.cost)}}),this.batchForm.get("packages")?.value.forEach(e=>{if(e.selected){let o=this.avaibleInputs.find(r=>(r.id,e.id,r.id===e.id));o&&(this.totalCost+=e.quantity*o.cost)}}),this.updatePriceValidator()}updatePriceValidator(){let e=this.batchForm.get("price");e&&(e.setValidators([oe.required,oe.min(this.totalCost)]),e.updateValueAndValidity())}};i.\u0275fac=function(o){return new(o||i)(se(Vt),se(Kc),se(Ur),se(jr),se(Zn),se(pi))},i.\u0275cmp=ke({type:i,selectors:[["app-add-batch"]],standalone:!0,features:[Ve],decls:115,vars:41,consts:[["aux","ngForm"],[1,"container-fluid","d-flex","flex-column","justify-content-center","align-items-center","vh-100"],[1,"row","justify-content-center","align-items-center","w-100"],[1,"col-10","col-main"],[1,"w-100",3,"ngSubmit","formGroup"],[1,"row","header-row","mb-4"],[1,"col"],[1,"view-title"],[1,"col","d-flex","justify-content-end"],["type","submit",1,"btn","btn-custom"],[1,"row","custom-row"],[1,"col-5"],[1,"form-group"],[1,"form-group","row-container"],[1,"row","align-items-center"],[1,"col-3"],["for","name",1,"subtitle"],["type","text","id","name","name","name","formControlName","name",1,"form-control",3,"ngClass"],[1,"error-container"],["class","text-danger",4,"ngIf"],["for","category",1,"mb-0","subtitle"],["id","category","formControlName","category","aria-label","category Selection","placeholder","Seleccione un tipo",1,"form-select","me-2",3,"ngClass"],["value","","disabled","","selected",""],[3,"value",4,"ngFor","ngForOf"],[1,"col-2","d-flex","justify-content-end"],["type","button",1,"btn","btn-custom",3,"click"],[1,"bi","bi-plus-square-fill"],["class","text-danger mt-1",4,"ngIf"],["for","quantity",1,"subtitle"],["type","text","id","quantity","name","quantity","formControlName","quantity",1,"form-control",3,"ngClass"],[1,"col-2"],["for","unit",1,"subtitle"],["id","unit","formControlName","unit","aria-label","Unit Selection",1,"form-select","me-2",3,"ngClass"],[1,"row","error-container","align-items-center"],["class","col-8 text-danger",4,"ngIf"],["class","col text-danger",4,"ngIf"],["for","expirationDate",1,"subtitle"],["type","datetime-local","id","expirationDate","formControlName","expirationDate",1,"form-control",3,"ngClass"],["type","number","id","price","name","price","formControlName","price",1,"form-control",3,"ngClass"],[1,"col-2","cost"],[1,"col","col-border"],[1,"subtitle"],[1,"bi","bi-filter-square-fill"],["formArrayName","ingredients",1,"ingredient-list"],["class","ingredient-item",3,"formGroupName",4,"ngFor","ngForOf"],["class","text-danger mt-2",4,"ngIf"],["formArrayName","packages",1,"ingredient-list"],["for","description",1,"subtitle"],["id","description","name","description","formControlName","description",1,"form-control","p-editor-custom",3,"ngClass"],["pTemplate","header"],["class","modal modal-bg fade show","tabindex","-1","style","display: block","aria-modal","true","role","dialog",4,"ngIf"],[1,"text-danger"],[4,"ngIf"],[3,"value"],[1,"text-danger","mt-1"],[1,"col-8","text-danger"],[1,"col","text-danger"],[1,"ingredient-item",3,"formGroupName"],[1,"form-check"],["type","checkbox","formControlName","selected",1,"form-check-input",3,"id"],[1,"form-check-label",3,"for"],["class","form-group",4,"ngIf"],[3,"for"],["type","number","formControlName","quantity",1,"form-control",3,"change","id","ngClass"],[1,"text-danger","mt-2"],[1,"ql-formats"],["aria-label","Select header",1,"ql-header"],["selected",""],["value","1"],["value","2"],["value","3"],["aria-label","Select font",1,"ql-font"],["value","serif"],["value","monospace"],["aria-label","Bold",1,"ql-bold"],["aria-label","Italic",1,"ql-italic"],["aria-label","Underline",1,"ql-underline"],["aria-label","Select align",1,"ql-align"],["value","center"],["value","right"],["value","justify"],["value","ordered","aria-label","Ordered list",1,"ql-list"],["value","bullet","aria-label","Bullet list",1,"ql-list"],["aria-label","Insert link",1,"ql-link"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","confirmDeleteModalLabel",1,"modal-title","fs-5"],["type","button",1,"btn-close",3,"click"],[1,"modal-body"],[3,"ngSubmit","formGroup"],["for","newCategory"],["type","text","id","newCategory","formControlName","newCategory","placeholder","Ingrese el nuevo tipo",1,"form-control"],[1,"modal-footer"],["type","button",1,"btn","btn-secondary",3,"click"],["type","submit",1,"btn","btn-success",3,"click"]],template:function(o,r){if(o&1){let a=Re();H(0,"app-navbar"),c(1,"div",1)(2,"div",2)(3,"div",3)(4,"form",4,0),ee("ngSubmit",function(){return me(a),fe(r.onSubmit())}),c(6,"div",5)(7,"div",6)(8,"h1",7),b(9,"Nuevo Lote"),s()(),c(10,"div",8)(11,"button",9),b(12,"GUARDAR"),s()()(),c(13,"div",10)(14,"div",11)(15,"div",12)(16,"div",13)(17,"div",14)(18,"div",15)(19,"label",16),b(20,"Nombre"),s()(),c(21,"div",6),H(22,"input",17),s(),c(23,"div",18),O(24,sy,3,2,"div",19),s()()(),c(25,"div",13)(26,"div",14)(27,"div",15)(28,"label",20),b(29,"Categoria"),s()(),c(30,"div",6)(31,"select",21)(32,"option",22),b(33," Selecciona una Categoria "),s(),O(34,cy,2,2,"option",23),s()(),c(35,"div",24)(36,"button",25),ee("click",function(){return me(a),fe(r.openAddCategoryModal())}),H(37,"i",26),s()()(),c(38,"div",18),O(39,uy,2,1,"div",27),s()(),c(40,"div",13)(41,"div",14)(42,"div",15)(43,"label",28),b(44,"Cantidad"),s()(),c(45,"div",6),H(46,"input",29),s(),c(47,"div",30)(48,"label",31),b(49,"Unidad"),s()(),c(50,"div",30)(51,"select",32)(52,"option",22),b(53,"..."),s(),O(54,py,2,2,"option",23),s()()(),c(55,"div",33),O(56,hy,3,2,"div",34)(57,vy,2,1,"div",35),s()(),c(58,"div",13)(59,"div",14)(60,"div",6)(61,"label",36),b(62,"Fecha de Vencimiento:"),s()(),c(63,"div",6),H(64,"input",37),s(),c(65,"div",18),O(66,_y,2,0,"div",19),s()()(),c(67,"div",13)(68,"div",14)(69,"div",15)(70,"label",28),b(71,"Precio"),s()(),c(72,"div",6),H(73,"input",38),s(),c(74,"div",30)(75,"label",31),b(76,"Costo"),s()(),c(77,"div",39),b(78),s()(),c(79,"div",18),O(80,by,2,0,"div",19),s()()()(),c(81,"div",40)(82,"div",14)(83,"div",6)(84,"label",41),b(85,"Ingredientes"),s()(),c(86,"div",8)(87,"button",25),ee("click",function(){return me(a),fe(r.openRMFilters())}),H(88,"i",42),s()()(),c(89,"div",43),O(90,xy,6,9,"div",44),s(),O(91,Ey,2,0,"div",45),s(),c(92,"div",40)(93,"div",14)(94,"div",6)(95,"label",41),b(96,"Insumos"),s()(),c(97,"div",8)(98,"button",25),ee("click",function(){return me(a),fe(r.openIFilters())}),H(99,"i",42),s()()(),c(100,"div",46),O(101,Ny,6,9,"div",44),s(),O(102,Ty,2,0,"div",45),s()(),c(103,"div",10),H(104,"hr"),c(105,"div",6)(106,"div",12)(107,"label",47),b(108,"Descripci\xF3n"),s(),c(109,"p-editor",48),O(110,Py,29,0,"ng-template",49),s()(),c(111,"div",18),O(112,Ly,2,0,"div",19),s()()()()()()(),O(113,Ry,19,2,"div",50),b(114,`
+2
+`)}if(o&2){let a,d,p,_,y,w,S,v,M,F,k,I,L,z,$,J,re=ct(5);h(4),g("formGroup",r.batchForm),h(18),g("ngClass",_e(26,ho,(((a=r.batchForm.get("name"))==null?null:a.dirty)||((a=r.batchForm.get("name"))==null?null:a.touched)||re.submitted)&&((a=r.batchForm.get("name"))==null?null:a.invalid))),h(2),g("ngIf",re.submitted||((d=r.batchForm.get("name"))==null?null:d.invalid)&&(((d=r.batchForm.get("name"))==null?null:d.dirty)||((d=r.batchForm.get("name"))==null?null:d.touched))),h(7),g("ngClass",_e(28,ho,(((p=r.batchForm.get("category"))==null?null:p.dirty)||((p=r.batchForm.get("category"))==null?null:p.touched)||re.submitted)&&((p=r.batchForm.get("category"))==null?null:p.invalid))),h(3),g("ngForOf",r.categories),h(5),g("ngIf",re.submitted&&((_=r.batchForm.get("category"))==null?null:_.invalid)),h(7),g("ngClass",_e(30,ho,(((y=r.batchForm.get("quantity"))==null?null:y.dirty)||((y=r.batchForm.get("quantity"))==null?null:y.touched)||re.submitted)&&((y=r.batchForm.get("quantity"))==null?null:y.invalid))),h(5),g("ngClass",_e(32,ho,(((w=r.batchForm.get("unit"))==null?null:w.dirty)||((w=r.batchForm.get("unit"))==null?null:w.touched)||re.submitted)&&((w=r.batchForm.get("unit"))==null?null:w.invalid))),h(3),g("ngForOf",r.units),h(2),g("ngIf",re.submitted||((S=r.batchForm.get("quantity"))==null?null:S.invalid)&&(((S=r.batchForm.get("quantity"))==null?null:S.dirty)||((S=r.batchForm.get("quantity"))==null?null:S.touched))),h(),g("ngIf",re.submitted||((v=r.batchForm.get("unit"))==null?null:v.invalid)&&(((v=r.batchForm.get("unit"))==null?null:v.dirty)||((v=r.batchForm.get("unit"))==null?null:v.touched))),h(7),g("ngClass",_e(34,ho,(((M=r.batchForm.get("expirationDate"))==null?null:M.dirty)||((M=r.batchForm.get("expirationDate"))==null?null:M.touched)||re.submitted)&&((M=r.batchForm.get("expirationDate"))==null?null:M.invalid))),Lt("min",r.minDate),h(2),g("ngIf",re.submitted&&((F=r.batchForm.get("expirationDate"))==null?null:F.invalid)&&(((F=r.batchForm.get("expirationDate"))==null?null:F.dirty)||((F=r.batchForm.get("expirationDate"))==null?null:F.touched))),h(7),g("ngClass",_e(36,ho,(((k=r.batchForm.get("price"))==null?null:k.dirty)||((k=r.batchForm.get("price"))==null?null:k.touched)||re.submitted)&&((k=r.batchForm.get("price"))==null?null:k.invalid))),h(5),pt(" ",r.totalCost," "),h(2),g("ngIf",(((I=r.batchForm.get("price"))==null?null:I.dirty)||((I=r.batchForm.get("price"))==null?null:I.touched)||re.submitted)&&((I=r.batchForm.get("price"))==null?null:I.invalid)),h(10),g("ngForOf",r.selectedIngredients.controls),h(),g("ngIf",re.submitted&&((L=r.batchForm.get("ingredients"))==null?null:L.invalid)||((L=r.batchForm.get("ingredients"))==null?null:L.touched)&&((L=r.batchForm.get("ingredients"))==null?null:L.invalid)),h(10),g("ngForOf",r.selectedInputs.controls),h(),g("ngIf",re.submitted&&((z=r.batchForm.get("packages"))==null?null:z.invalid)||((z=r.batchForm.get("packages"))==null?null:z.touched)&&((z=r.batchForm.get("packages"))==null?null:z.invalid)),h(7),Oo(Pr(38,oy)),g("ngClass",_e(39,ho,((($=r.batchForm.get("description"))==null?null:$.dirty)||(($=r.batchForm.get("description"))==null?null:$.touched)||re.submitted)&&(($=r.batchForm.get("description"))==null?null:$.invalid))),h(3),g("ngIf",re.submitted&&((J=r.batchForm.get("description"))==null?null:J.invalid)||((J=r.batchForm.get("description"))==null?null:J.invalid)&&(((J=r.batchForm.get("description"))==null?null:J.dirty)||((J=r.batchForm.get("description"))==null?null:J.touched))),h(),g("ngIf",r.addCategoryModal)}},dependencies:[Ze,St,Jt,Xe,oi,Ft,Rt,Gi,Wi,At,fi,fr,Oi,Tt,Dt,Pt,Ot,kr,Dr,Ko,po,rn],styles:[`@charset "UTF-8";[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/recipes.svg);background-size:cover;background-position:center;background-repeat:no-repeat}.view-title[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;color:#1b5e20;font-size:2.5rem;padding-left:1.5rem}.header-row[_ngcontent-%COMP%]{padding-bottom:.2rem;align-items:center}.title[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-size:1rem}.vh-100[_ngcontent-%COMP%]{height:88vh!important}.btn-custom[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1.5rem;color:#1b5e20}.btn-custom-2[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1rem;color:#1b5e20}.custom-row[_ngcontent-%COMP%]{background-color:#d2ffaa;padding:1rem .6rem .6rem}.btn-icon[_ngcontent-%COMP%]{font-size:1.6rem}.form-control[_ngcontent-%COMP%], .form-select[_ngcontent-%COMP%]{min-width:0;box-sizing:border-box}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.ingredient-list[_ngcontent-%COMP%]{max-height:200px;overflow-y:auto}.ingredient-item[_ngcontent-%COMP%]{margin-bottom:10px}.subtitle[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;color:#000;font-size:1rem}.col-border[_ngcontent-%COMP%]{border-left:1px solid #1b5e20}.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e;border-bottom-color:#1b5e20}.modal-footer[_ngcontent-%COMP%]{border-top:none;padding-top:0;padding-bottom:.5rem}.form-control[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important;font-size:1.2rem}.cost[_ngcontent-%COMP%]{font-size:1.2rem}
+/*# sourceMappingURL=add-batch.component-IBNPAMTM.css.map */`]});let t=i;return t})();var hn=(t,i)=>{let n=En(Ki),e=En(pi);return n.isLoggedIn()?!0:(e.navigate(["/"]),!1)};var go=t=>({"is-invalid":t}),Vy=()=>({height:"240px"});function qy(t,i){t&1&&(c(0,"div"),b(1," Nombre es requerido. "),s())}function By(t,i){t&1&&(c(0,"div"),b(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),s())}function jy(t,i){if(t&1&&(c(0,"div",51),O(1,qy,2,0,"div",52)(2,By,2,0,"div",52),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.batchForm.get("name"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.batchForm.get("name"))==null||e.errors==null)&&e.errors.required)&&((e=o.batchForm.get("name"))==null||e.errors==null?null:e.errors.pattern))}}function Uy(t,i){if(t&1&&(c(0,"option",53),b(1),s()),t&2){let n=i.$implicit;g("value",n),h(),pt(" ",n," ")}}function zy(t,i){t&1&&(c(0,"div"),b(1," La Categoria es necesaria. "),s())}function Hy(t,i){if(t&1&&(c(0,"div",54),O(1,zy,2,0,"div",52),s()),t&2){let n,e=V();h(),g("ngIf",(n=e.batchForm.get("category"))==null||n.errors==null?null:n.errors.required)}}function Gy(t,i){if(t&1&&(c(0,"option",53),b(1),s()),t&2){let n=i.$implicit;g("value",n),h(),pt(" ",n," ")}}function Wy(t,i){t&1&&(c(0,"div"),b(1," Es necesario ingresar una cantidad. "),s())}function $y(t,i){t&1&&(c(0,"div"),b(1," La cantidad debe ser un n\xFAmero v\xE1lido mayor a 0. "),s())}function Ky(t,i){if(t&1&&(c(0,"div",55),O(1,Wy,2,0,"div",52)(2,$y,2,0,"div",52),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.batchForm.get("quantity"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.batchForm.get("quantity"))==null||e.errors==null)&&e.errors.required)&&((e=o.batchForm.get("quantity"))==null||e.errors==null?null:e.errors.invalidQuantity))}}function Yy(t,i){t&1&&(c(0,"div"),b(1," Ingrese una unidad. "),s())}function Qy(t,i){if(t&1&&(c(0,"div",56),O(1,Yy,2,0,"div",52),s()),t&2){let n,e=V();h(),g("ngIf",(n=e.batchForm.get("unit"))==null||n.errors==null?null:n.errors.required)}}function Jy(t,i){t&1&&(c(0,"div",51),b(1," Se necesita una Fecha de Vencimiento. "),s())}function Zy(t,i){t&1&&(c(0,"div",51),b(1," El Precio debe ser igual o mayor al costo "),s())}function Xy(t,i){t&1&&(c(0,"div"),b(1," La cantidad m\xEDnima es 1. "),s())}function e3(t,i){if(t&1&&(c(0,"div"),b(1),s()),t&2){let n=V(3).index,e=V();h(),pt(" La cantidad m\xE1xima es ",e.avaibleRawMaterials[n].quantity,". ")}}function t3(t,i){if(t&1&&(c(0,"div",51),O(1,Xy,2,0,"div",52)(2,e3,2,1,"div",52),s()),t&2){let n,e,o=V(2).$implicit;h(),g("ngIf",(n=o.get("quantity"))==null||n.errors==null?null:n.errors.min),h(),g("ngIf",(e=o.get("quantity"))==null||e.errors==null?null:e.errors.max)}}function i3(t,i){if(t&1){let n=Re();c(0,"div",12)(1,"label",62),b(2,"Cantidad:"),s(),c(3,"input",63),ee("change",function(){me(n);let o=V(2);return fe(o.calculateCost())}),s(),O(4,t3,3,2,"div",19),s()}if(t&2){let n,e,o=V(),r=o.$implicit,a=o.index,d=V(),p=ct(5);h(),Ht("for","quantity-",a,""),h(2),Ht("id","quantity-",a,""),g("ngClass",_e(6,go,(((n=d.batchForm.get("quantity"))==null?null:n.dirty)||((n=d.batchForm.get("quantity"))==null?null:n.touched)||p.submitted)&&((n=d.batchForm.get("quantity"))==null?null:n.invalid))),h(),g("ngIf",p.submitted||((e=r.get("quantity"))==null?null:e.invalid)&&(((e=r.get("quantity"))==null?null:e.dirty)||((e=r.get("quantity"))==null?null:e.touched)))}}function n3(t,i){if(t&1&&(c(0,"div",57)(1,"div",58),H(2,"input",59),c(3,"label",60),b(4),s()(),O(5,i3,5,8,"div",61),s()),t&2){let n,e=i.$implicit,o=i.index,r=V();g("formGroupName",o),h(2),Ht("id","material-",o,""),h(),Ht("for","material-",o,""),h(),Vn(" ",r.avaibleRawMaterials[o].name," (Disponible: ",r.avaibleRawMaterials[o].quantity," ",r.avaibleRawMaterials[o].unit,") "),h(),g("ngIf",(n=e.get("selected"))==null?null:n.value)}}function r3(t,i){t&1&&(c(0,"div",64),b(1," Debe seleccionarse al menos un ingrediente. "),s())}function o3(t,i){t&1&&(c(0,"div"),b(1," La cantidad m\xEDnima es 1. "),s())}function a3(t,i){if(t&1&&(c(0,"div"),b(1),s()),t&2){let n=V(3).index,e=V();h(),pt(" La cantidad m\xE1xima es ",e.avaibleInputs[n].quantity,". ")}}function l3(t,i){if(t&1&&(c(0,"div",51),O(1,o3,2,0,"div",52)(2,a3,2,1,"div",52),s()),t&2){let n,e,o=V(2).$implicit;h(),g("ngIf",(n=o.get("quantity"))==null||n.errors==null?null:n.errors.min),h(),g("ngIf",(e=o.get("quantity"))==null||e.errors==null?null:e.errors.max)}}function s3(t,i){if(t&1){let n=Re();c(0,"div",12)(1,"label",62),b(2,"Cantidad:"),s(),c(3,"input",63),ee("change",function(){me(n);let o=V(2);return fe(o.calculateCost())}),s(),O(4,l3,3,2,"div",19),s()}if(t&2){let n,e,o=V(),r=o.$implicit,a=o.index,d=V(),p=ct(5);h(),Ht("for","quantity-",a,""),h(2),Ht("id","quantity-",a,""),g("ngClass",_e(6,go,(((n=d.batchForm.get("quantity"))==null?null:n.dirty)||((n=d.batchForm.get("quantity"))==null?null:n.touched)||p.submitted)&&((n=d.batchForm.get("quantity"))==null?null:n.invalid))),h(),g("ngIf",p.submitted||((e=r.get("quantity"))==null?null:e.invalid)&&(((e=r.get("quantity"))==null?null:e.dirty)||((e=r.get("quantity"))==null?null:e.touched)))}}function c3(t,i){if(t&1&&(c(0,"div",57)(1,"div",58),H(2,"input",59),c(3,"label",60),b(4),s()(),O(5,s3,5,8,"div",61),s()),t&2){let n,e=i.$implicit,o=i.index,r=V();g("formGroupName",o),h(2),Ht("id","material-",o,""),h(),Ht("for","material-",o,""),h(),Vn(" ",r.avaibleInputs[o].name," (Disponible: ",r.avaibleInputs[o].quantity," ",r.avaibleInputs[o].unit,") "),h(),g("ngIf",(n=e.get("selected"))==null?null:n.value)}}function d3(t,i){t&1&&(c(0,"div",64),b(1," Debe seleccionarse al menos un insumo. "),s())}function u3(t,i){t&1&&(c(0,"span",65)(1,"select",66),H(2,"option",67),c(3,"option",68),b(4,"Heading 1"),s(),c(5,"option",69),b(6,"Heading 2"),s(),c(7,"option",70),b(8,"Heading 3"),s()(),c(9,"select",71),H(10,"option",67),c(11,"option",72),b(12,"Serif"),s(),c(13,"option",73),b(14,"Monospace"),s()(),H(15,"button",74)(16,"button",75)(17,"button",76),c(18,"select",77),H(19,"option",67),c(20,"option",78),b(21,"Center"),s(),c(22,"option",79),b(23,"Right"),s(),c(24,"option",80),b(25,"Justify"),s()(),H(26,"button",81)(27,"button",82)(28,"button",83),s())}function p3(t,i){t&1&&(c(0,"div",51),b(1," Descripci\xF3n es requerida. "),s())}function m3(t,i){t&1&&(c(0,"div"),b(1," La categoria es requerida. "),s())}function f3(t,i){t&1&&(c(0,"div"),b(1," La categoria no debe contener n\xFAmeros ni s\xEDmbolos. "),s())}function h3(t,i){if(t&1&&(c(0,"div",54),O(1,m3,2,0,"div",52)(2,f3,2,0,"div",52),s()),t&2){let n,e,o=V(2);h(),g("ngIf",(n=o.addCategoryForm.get("newCategory"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",(e=o.addCategoryForm.get("newCategory"))==null||e.errors==null?null:e.errors.pattern)}}function g3(t,i){if(t&1){let n=Re();c(0,"div",84)(1,"div",85)(2,"div",86)(3,"div",87)(4,"h1",88),b(5," Agregar Tipo "),s(),c(6,"button",89),ee("click",function(){me(n);let o=V();return fe(o.closeAddCategoryModal())}),s()(),c(7,"div",90)(8,"form",91),ee("ngSubmit",function(){me(n);let o=V();return fe(o.addCategory())}),c(9,"div",12)(10,"label",92),b(11,"Nuevo Tipo"),s(),H(12,"input",93),O(13,h3,3,2,"div",27),s()()(),c(14,"div",94)(15,"button",95),ee("click",function(){me(n);let o=V();return fe(o.closeAddCategoryModal())}),b(16," CANCELAR "),s(),c(17,"button",96),ee("click",function(){me(n);let o=V();return fe(o.addCategory())}),b(18," GUARDAR "),s()()()()()}if(t&2){let n,e=V();h(8),g("formGroup",e.addCategoryForm),h(5),g("ngIf",((n=e.addCategoryForm.get("newCategory"))==null?null:n.invalid)&&(((n=e.addCategoryForm.get("newCategory"))==null?null:n.dirty)||((n=e.addCategoryForm.get("newType"))==null?null:n.touched)))}}var J0=(()=>{let i=class i{constructor(e,o,r,a,d,p,_){this.formbuild=e,this.CategoriesService=o,this.RawMaterialsService=r,this.InputsService=a,this.BatchesService=d,this.router=p,this.activeRoute=_,this.batchId=0,this.batch={},this.categories=[],this.units=[],this.minDate="",this.addCategoryModal=!1,this.avaibleRawMaterials=[],this.avaibleInputs=[],this.preSelectedIngredients=[],this.preSelectedIngredientsQuantity=[],this.preSelectedInputs=[],this.totalCost=0,this.batchForm=this.formbuild.group({name:["",[oe.required,oe.pattern("[a-zA-Z ]*")]],category:["",[oe.required]],quantity:["",[oe.required,oe.pattern("[0-9]*")]],unit:["",[oe.required]],expirationDate:[""],description:[""],price:[0,[oe.required,oe.min(this.totalCost)]],ingredients:this.formbuild.array([],{validators:cl()}),packages:this.formbuild.array([],{validators:cl()})}),this.addCategoryForm=this.formbuild.group({newCategory:["",[oe.required,oe.pattern("[a-zA-Z ]*")]]})}ngOnInit(){this.getBatch(),this.getRawMaterials(),this.getInputs(),this.CategoriesService.chargeCategories(),this.getCategories(),this.units=Object.values(nn);let e=new Date;this.minDate=e.toISOString().slice(0,16),console.log("Preselected Ingredients: ",this.preSelectedIngredients),console.log("Preselected Inputs: ",this.preSelectedInputs)}addCategory(){this.addCategoryForm.valid?(this.categories.push(this.addCategoryForm.value.newCategory),this.addCategoryForm.reset(),this.addCategoryModal=!1):console.log("Formulario de categoria inv\xE1lido.")}onSubmit(){if(console.log(this.batchForm),this.batchForm.valid){let e=this.batchForm.get("ingredients")?.value,o=this.batchForm.get("packages")?.value,r=e.filter(S=>S.selected).map(S=>S.id),a=o.filter(S=>S.selected).map(S=>S.id),d=this.avaibleRawMaterials.filter(S=>r.includes(S.id)),p=this.avaibleInputs.filter(S=>a.includes(S.id)),_=e.filter(S=>S.selected).map(S=>`${S.id},${S.quantity}`).join(";"),y=o.filter(S=>S.selected).map(S=>`${S.id},${S.quantity}`).join(";"),w={id:this.batchId,name:this.batchForm.get("name")?.value,category:this.batchForm.get("category")?.value,quantity:this.batchForm.get("quantity")?.value,unit:this.batchForm.get("unit")?.value,expiration:this.batchForm.get("expirationDate")?.value,creationDate:this.ad,lastModificationDate:this.lmd,description:this.batchForm.get("description")?.value||"",batchIngredients:d,batchIngredientsQuantity:_,batchPackagingElements:p,batchPackagingElementsQuantity:y,price:this.batchForm.get("price")?.value};console.log("Batch: ",w),console.log("BatchJS: ",JSON.stringify(w)),this.BatchesService.updateBatch(w).subscribe(S=>{console.log("Lote creado correctamente.");let v=this.updateSelectedIngredients(e),M=this.updateSelectedInputs(o),F=this.restoreDeselectedIngredients(e),k=this.restoreDeselectedInputs(o);Promise.all([...v,...M,...F,...k]).then(()=>{console.log("Todos los materiales actualizados correctamente.")}).catch(I=>{console.error("Error al actualizar materiales: ",I)}),this.router.navigate(["/production"])},S=>{console.error(S)})}else console.log("Formulario de lote inv\xE1lido.")}updateSelectedIngredients(e){return e.map(o=>{let r=this.avaibleRawMaterials.find(d=>d.id===o.id);console.log("Selected Ingredient: ",o),console.log("Ingredient base: ",r);let a=Number(this.preSelectedIngredients[o.id]||0);if(console.log("Original Quantity: ",a),r){let d=Number(o.quantity);if(console.log("New Quantity: ",d),d!==a){let p=d-a;return console.log("Difference: ",p),p>0?r.quantity-=p:r.quantity+=Math.abs(p),console.log("New Ingredient Quantity: ",r.quantity),this.RawMaterialsService.updateRawMaterial(r).toPromise()}}return Promise.resolve(null)})}updateSelectedInputs(e){return e.map(o=>{let r=this.avaibleInputs.find(d=>d.id===o.id),a=Number(this.preSelectedInputs[o.id]||0);if(r){let d=Number(o.quantity);if(d!==a){let p=d-a;return p>0?r.quantity-=p:r.quantity+=Math.abs(p),this.InputsService.updateInput(r).toPromise()}}return Promise.resolve(null)})}restoreDeselectedIngredients(e){return this.avaibleRawMaterials.filter(o=>!e.find(r=>r.id===o.id)).map(o=>{let r=this.preSelectedIngredients[o.id]||0;return o.quantity+=r,this.RawMaterialsService.updateRawMaterial(o).toPromise()})}restoreDeselectedInputs(e){return this.avaibleInputs.filter(o=>!e.find(r=>r.id===o.id)).map(o=>{let r=this.preSelectedInputs[o.id]||0;return o.quantity+=r,this.InputsService.updateInput(o).toPromise()})}openAddCategoryModal(){this.addCategoryModal=!0}closeAddCategoryModal(){this.addCategoryModal=!1}get selectedIngredients(){return this.batchForm.get("ingredients")}addRawMaterialControls(){for(;this.selectedIngredients.length;)this.selectedIngredients.removeAt(0);this.avaibleRawMaterials.forEach(e=>{this.selectedIngredients.push(this.formbuild.group({id:[e.id],name:[e.name],selected:[!1],quantity:[null,[oe.min(1),oe.max(e.availableQuantity)]]}))})}openRMFilters(){}get selectedInputs(){return this.batchForm.get("packages")}addInputsControls(){for(;this.selectedInputs.length;)this.selectedInputs.removeAt(0);this.avaibleInputs.forEach(e=>{this.selectedInputs.push(this.formbuild.group({id:[e.id],name:[e.name],selected:[!1],quantity:[null,[oe.min(1),oe.max(e.availableQuantity)]]}))})}openIFilters(){}getCategories(){this.CategoriesService.getCategories().subscribe(e=>{this.categories=e.sort((o,r)=>o.localeCompare(r))},e=>{console.error(e)})}getBatch(){this.batchId=+(this.activeRoute.snapshot.paramMap.get("id")??0),this.BatchesService.getBatchById(this.batchId).subscribe(e=>{console.log(e),this.batch=e,console.log(this.batch),this.batchForm.patchValue({name:e.name,category:e.category,quantity:e.quantity,unit:e.unit,expirationDate:Vr(e.expiration),description:e.description,price:e.price}),this.ad=e.creationDate,this.lmd=e.lastModificationDate;let o=e.batchIngredientsQuantity.split(";").reduce((a,d)=>{let[p,_]=d.split(",");return a[p]=parseFloat(_),a},{}),r=e.batchPackagingElementsQuantity.split(";").reduce((a,d)=>{let[p,_]=d.split(",");return a[p]=parseFloat(_),a},{});this.totalCost=e.price,this.getRawMaterials().then(()=>{let a=this.batchForm.get("ingredients");e.batchIngredients.forEach(d=>{let p=a.controls.find(_=>_.value.id===d.id);p&&(p.patchValue({selected:!0,quantity:o[d.id]!==void 0?o[d.id]:null}),this.preSelectedIngredients[d.id]=o[d.id])})}),this.getInputs().then(()=>{let a=this.batchForm.get("packages");e.batchPackagingElements.forEach(d=>{let p=a.controls.find(_=>_.value.id===d.id);p&&(p.patchValue({selected:!0,quantity:r[d.id]!==void 0?r[d.id]:null}),this.preSelectedInputs[d.id]=r[d.id])})})},e=>{console.error(e)})}getRawMaterials(){return new Promise((e,o)=>{this.RawMaterialsService.getRawMaterials().subscribe(r=>{this.avaibleRawMaterials=r.sort((a,d)=>a.name.localeCompare(d.name)),this.addRawMaterialControls(),e()},r=>{console.error(r),o(r)})})}getInputs(){return new Promise((e,o)=>{this.InputsService.getInputs().subscribe(r=>{this.avaibleInputs=r.sort((a,d)=>a.name.localeCompare(d.name)),this.addInputsControls(),e()},r=>{console.error(r),o(r)})})}updateElement(e,o,r){return r===o?e.quantity:o>r?e.quantity-(o-r):e.quantity+(r-o)}calculateCost(){this.totalCost=0,this.batchForm.get("ingredients")?.value.forEach(e=>{if(console.log(e),e.selected){let o=this.avaibleRawMaterials.find(r=>(console.log(r.id,e.id),console.log(r.id===e.id),r.id,e.id,r.id===e.id));console.log(o,o.cost),o&&(this.totalCost+=e.quantity*o.cost)}}),this.batchForm.get("packages")?.value.forEach(e=>{if(e.selected){let o=this.avaibleInputs.find(r=>(r.id,e.id,r.id===e.id));o&&(this.totalCost+=e.quantity*o.cost)}}),this.updatePriceValidator()}updatePriceValidator(){let e=this.batchForm.get("price");e&&(e.setValidators([oe.required,oe.min(this.totalCost)]),e.updateValueAndValidity())}};i.\u0275fac=function(o){return new(o||i)(se(Vt),se(Kc),se(Ur),se(jr),se(Zn),se(pi),se(tl))},i.\u0275cmp=ke({type:i,selectors:[["app-modify-batch"]],standalone:!0,features:[Ve],decls:114,vars:41,consts:[["aux","ngForm"],[1,"container-fluid","d-flex","flex-column","justify-content-center","align-items-center","vh-100"],[1,"row","justify-content-center","align-items-center","w-100"],[1,"col-10","col-main"],[1,"w-100",3,"ngSubmit","formGroup"],[1,"row","header-row","mb-4"],[1,"col"],[1,"view-title"],[1,"col","d-flex","justify-content-end"],["type","submit",1,"btn","btn-custom"],[1,"row","custom-row"],[1,"col-5"],[1,"form-group"],[1,"form-group","row-container"],[1,"row","align-items-center"],[1,"col-3"],["for","name",1,"subtitle"],["type","text","id","name","name","name","formControlName","name",1,"form-control",3,"ngClass"],[1,"error-container"],["class","text-danger",4,"ngIf"],["for","category",1,"mb-0","subtitle"],["id","category","formControlName","category","aria-label","category Selection","placeholder","Seleccione un tipo",1,"form-select","me-2",3,"ngClass"],["value","","disabled","","selected",""],[3,"value",4,"ngFor","ngForOf"],[1,"col-2","d-flex","justify-content-end"],["type","button",1,"btn","btn-custom",3,"click"],[1,"bi","bi-plus-square-fill"],["class","text-danger mt-1",4,"ngIf"],["for","quantity",1,"subtitle"],["type","text","id","quantity","name","quantity","formControlName","quantity",1,"form-control",3,"ngClass"],[1,"col-2"],["for","unit",1,"subtitle"],["id","unit","formControlName","unit","aria-label","Unit Selection",1,"form-select","me-2",3,"ngClass"],[1,"row","error-container","align-items-center"],["class","col-8 text-danger",4,"ngIf"],["class","col text-danger",4,"ngIf"],["for","expirationDate",1,"subtitle"],["type","datetime-local","id","expirationDate","formControlName","expirationDate",1,"form-control",3,"ngClass"],["type","number","id","price","name","price","formControlName","price",1,"form-control",3,"ngClass"],[1,"col-2","cost"],[1,"col","col-border"],[1,"subtitle"],[1,"bi","bi-filter-square-fill"],["formArrayName","ingredients",1,"ingredient-list"],["class","ingredient-item",3,"formGroupName",4,"ngFor","ngForOf"],["class","text-danger mt-2",4,"ngIf"],["formArrayName","packages",1,"ingredient-list"],["for","description",1,"subtitle"],["id","description","name","description","formControlName","description",1,"form-control","p-editor-custom",3,"ngClass"],["pTemplate","header"],["class","modal modal-bg fade show","tabindex","-1","style","display: block","aria-modal","true","role","dialog",4,"ngIf"],[1,"text-danger"],[4,"ngIf"],[3,"value"],[1,"text-danger","mt-1"],[1,"col-8","text-danger"],[1,"col","text-danger"],[1,"ingredient-item",3,"formGroupName"],[1,"form-check"],["type","checkbox","formControlName","selected",1,"form-check-input",3,"id"],[1,"form-check-label",3,"for"],["class","form-group",4,"ngIf"],[3,"for"],["type","number","formControlName","quantity",1,"form-control",3,"change","id","ngClass"],[1,"text-danger","mt-2"],[1,"ql-formats"],["aria-label","Select header",1,"ql-header"],["selected",""],["value","1"],["value","2"],["value","3"],["aria-label","Select font",1,"ql-font"],["value","serif"],["value","monospace"],["aria-label","Bold",1,"ql-bold"],["aria-label","Italic",1,"ql-italic"],["aria-label","Underline",1,"ql-underline"],["aria-label","Select align",1,"ql-align"],["value","center"],["value","right"],["value","justify"],["value","ordered","aria-label","Ordered list",1,"ql-list"],["value","bullet","aria-label","Bullet list",1,"ql-list"],["aria-label","Insert link",1,"ql-link"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","confirmDeleteModalLabel",1,"modal-title","fs-5"],["type","button",1,"btn-close",3,"click"],[1,"modal-body"],[3,"ngSubmit","formGroup"],["for","newCategory"],["type","text","id","newCategory","formControlName","newCategory","placeholder","Ingrese el nuevo tipo",1,"form-control"],[1,"modal-footer"],["type","button",1,"btn","btn-secondary",3,"click"],["type","submit",1,"btn","btn-success",3,"click"]],template:function(o,r){if(o&1){let a=Re();H(0,"app-navbar"),c(1,"div",1)(2,"div",2)(3,"div",3)(4,"form",4,0),ee("ngSubmit",function(){return me(a),fe(r.onSubmit())}),c(6,"div",5)(7,"div",6)(8,"h1",7),b(9,"Modificar Lote"),s()(),c(10,"div",8)(11,"button",9),b(12,"GUARDAR"),s()()(),c(13,"div",10)(14,"div",11)(15,"div",12)(16,"div",13)(17,"div",14)(18,"div",15)(19,"label",16),b(20,"Nombre"),s()(),c(21,"div",6),H(22,"input",17),s(),c(23,"div",18),O(24,jy,3,2,"div",19),s()()(),c(25,"div",13)(26,"div",14)(27,"div",15)(28,"label",20),b(29,"Categoria"),s()(),c(30,"div",6)(31,"select",21)(32,"option",22),b(33," Selecciona una Categoria "),s(),O(34,Uy,2,2,"option",23),s()(),c(35,"div",24)(36,"button",25),ee("click",function(){return me(a),fe(r.openAddCategoryModal())}),H(37,"i",26),s()()(),c(38,"div",18),O(39,Hy,2,1,"div",27),s()(),c(40,"div",13)(41,"div",14)(42,"div",15)(43,"label",28),b(44,"Cantidad"),s()(),c(45,"div",6),H(46,"input",29),s(),c(47,"div",30)(48,"label",31),b(49,"Unidad"),s()(),c(50,"div",30)(51,"select",32)(52,"option",22),b(53,"..."),s(),O(54,Gy,2,2,"option",23),s()()(),c(55,"div",33),O(56,Ky,3,2,"div",34)(57,Qy,2,1,"div",35),s()(),c(58,"div",13)(59,"div",14)(60,"div",6)(61,"label",36),b(62,"Fecha de Vencimiento:"),s()(),c(63,"div",6),H(64,"input",37),s(),c(65,"div",18),O(66,Jy,2,0,"div",19),s()()(),c(67,"div",13)(68,"div",14)(69,"div",15)(70,"label",28),b(71,"Precio"),s()(),c(72,"div",6),H(73,"input",38),s(),c(74,"div",30)(75,"label",31),b(76,"Costo"),s()(),c(77,"div",39),b(78),s()(),c(79,"div",18),O(80,Zy,2,0,"div",19),s()()()(),c(81,"div",40)(82,"div",14)(83,"div",6)(84,"label",41),b(85,"Ingredientes"),s()(),c(86,"div",8)(87,"button",25),ee("click",function(){return me(a),fe(r.openRMFilters())}),H(88,"i",42),s()()(),c(89,"div",43),O(90,n3,6,9,"div",44),s(),O(91,r3,2,0,"div",45),s(),c(92,"div",40)(93,"div",14)(94,"div",6)(95,"label",41),b(96,"Insumos"),s()(),c(97,"div",8)(98,"button",25),ee("click",function(){return me(a),fe(r.openIFilters())}),H(99,"i",42),s()()(),c(100,"div",46),O(101,c3,6,9,"div",44),s(),O(102,d3,2,0,"div",45),s()(),c(103,"div",10),H(104,"hr"),c(105,"div",6)(106,"div",12)(107,"label",47),b(108,"Descripci\xF3n"),s(),c(109,"p-editor",48),O(110,u3,29,0,"ng-template",49),s()(),c(111,"div",18),O(112,p3,2,0,"div",19),s()()()()()()(),O(113,g3,19,2,"div",50)}if(o&2){let a,d,p,_,y,w,S,v,M,F,k,I,L,z,$,J,re=ct(5);h(4),g("formGroup",r.batchForm),h(18),g("ngClass",_e(26,go,(((a=r.batchForm.get("name"))==null?null:a.dirty)||((a=r.batchForm.get("name"))==null?null:a.touched)||re.submitted)&&((a=r.batchForm.get("name"))==null?null:a.invalid))),h(2),g("ngIf",re.submitted||((d=r.batchForm.get("name"))==null?null:d.invalid)&&(((d=r.batchForm.get("name"))==null?null:d.dirty)||((d=r.batchForm.get("name"))==null?null:d.touched))),h(7),g("ngClass",_e(28,go,(((p=r.batchForm.get("category"))==null?null:p.dirty)||((p=r.batchForm.get("category"))==null?null:p.touched)||re.submitted)&&((p=r.batchForm.get("category"))==null?null:p.invalid))),h(3),g("ngForOf",r.categories),h(5),g("ngIf",re.submitted&&((_=r.batchForm.get("category"))==null?null:_.invalid)),h(7),g("ngClass",_e(30,go,(((y=r.batchForm.get("quantity"))==null?null:y.dirty)||((y=r.batchForm.get("quantity"))==null?null:y.touched)||re.submitted)&&((y=r.batchForm.get("quantity"))==null?null:y.invalid))),h(5),g("ngClass",_e(32,go,(((w=r.batchForm.get("unit"))==null?null:w.dirty)||((w=r.batchForm.get("unit"))==null?null:w.touched)||re.submitted)&&((w=r.batchForm.get("unit"))==null?null:w.invalid))),h(3),g("ngForOf",r.units),h(2),g("ngIf",re.submitted||((S=r.batchForm.get("quantity"))==null?null:S.invalid)&&(((S=r.batchForm.get("quantity"))==null?null:S.dirty)||((S=r.batchForm.get("quantity"))==null?null:S.touched))),h(),g("ngIf",re.submitted||((v=r.batchForm.get("unit"))==null?null:v.invalid)&&(((v=r.batchForm.get("unit"))==null?null:v.dirty)||((v=r.batchForm.get("unit"))==null?null:v.touched))),h(7),g("ngClass",_e(34,go,(((M=r.batchForm.get("expirationDate"))==null?null:M.dirty)||((M=r.batchForm.get("expirationDate"))==null?null:M.touched)||re.submitted)&&((M=r.batchForm.get("expirationDate"))==null?null:M.invalid))),Lt("min",r.minDate),h(2),g("ngIf",re.submitted&&((F=r.batchForm.get("expirationDate"))==null?null:F.invalid)&&(((F=r.batchForm.get("expirationDate"))==null?null:F.dirty)||((F=r.batchForm.get("expirationDate"))==null?null:F.touched))),h(7),g("ngClass",_e(36,go,(((k=r.batchForm.get("price"))==null?null:k.dirty)||((k=r.batchForm.get("price"))==null?null:k.touched)||re.submitted)&&((k=r.batchForm.get("price"))==null?null:k.invalid))),h(5),pt(" ",r.totalCost," "),h(2),g("ngIf",(((I=r.batchForm.get("price"))==null?null:I.dirty)||((I=r.batchForm.get("price"))==null?null:I.touched)||re.submitted)&&((I=r.batchForm.get("price"))==null?null:I.invalid)),h(10),g("ngForOf",r.selectedIngredients.controls),h(),g("ngIf",re.submitted&&((L=r.batchForm.get("ingredients"))==null?null:L.invalid)||((L=r.batchForm.get("ingredients"))==null?null:L.touched)&&((L=r.batchForm.get("ingredients"))==null?null:L.invalid)),h(10),g("ngForOf",r.selectedInputs.controls),h(),g("ngIf",re.submitted&&((z=r.batchForm.get("packages"))==null?null:z.invalid)||((z=r.batchForm.get("packages"))==null?null:z.touched)&&((z=r.batchForm.get("packages"))==null?null:z.invalid)),h(7),Oo(Pr(38,Vy)),g("ngClass",_e(39,go,((($=r.batchForm.get("description"))==null?null:$.dirty)||(($=r.batchForm.get("description"))==null?null:$.touched)||re.submitted)&&(($=r.batchForm.get("description"))==null?null:$.invalid))),h(3),g("ngIf",re.submitted&&((J=r.batchForm.get("description"))==null?null:J.invalid)||((J=r.batchForm.get("description"))==null?null:J.invalid)&&(((J=r.batchForm.get("description"))==null?null:J.dirty)||((J=r.batchForm.get("description"))==null?null:J.touched))),h(),g("ngIf",r.addCategoryModal)}},dependencies:[Ze,St,Jt,Xe,Ft,Rt,Gi,Wi,At,fi,fr,Oi,Tt,Dt,Pt,Ot,kr,Dr,oi,Ko,po,rn],styles:[`@charset "UTF-8";[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/recipes.svg);background-size:cover;background-position:center;background-repeat:no-repeat}.view-title[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;color:#1b5e20;font-size:2.5rem;padding-left:1.5rem}.header-row[_ngcontent-%COMP%]{padding-bottom:.2rem;align-items:center}.title[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-size:1rem}.vh-100[_ngcontent-%COMP%]{height:88vh!important}.btn-custom[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1.5rem;color:#1b5e20}.btn-custom-2[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1rem;color:#1b5e20}.custom-row[_ngcontent-%COMP%]{background-color:#d2ffaa;padding:1rem .6rem .6rem}.btn-icon[_ngcontent-%COMP%]{font-size:1.6rem}.form-control[_ngcontent-%COMP%], .form-select[_ngcontent-%COMP%]{min-width:0;box-sizing:border-box}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.ingredient-list[_ngcontent-%COMP%]{max-height:200px;overflow-y:auto}.ingredient-item[_ngcontent-%COMP%]{margin-bottom:10px}.subtitle[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;color:#000;font-size:1rem}.col-border[_ngcontent-%COMP%]{border-left:1px solid #1b5e20}.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e;border-bottom-color:#1b5e20}.modal-footer[_ngcontent-%COMP%]{border-top:none;padding-top:0;padding-bottom:.5rem}.form-control[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important;font-size:1.2rem}.cost[_ngcontent-%COMP%]{font-size:1.2rem}
+/*# sourceMappingURL=modify-batch.component-ATI3EZBX.css.map */`]});let t=i;return t})();var Z0=(t,i)=>{let n=En(Ki),e=En(pi);return n.isLoggedIn()?(e.navigate(["/home"]),!1):!0};var ta=t=>({"is-invalid":t});function v3(t,i){t&1&&(c(0,"div"),b(1," Email es requerido. "),s())}function _3(t,i){t&1&&(c(0,"div"),b(1," Formato de email inv\xE1lido. "),s())}function b3(t,i){if(t&1&&(c(0,"div",42),O(1,v3,2,0,"div",32)(2,_3,2,0,"div",32),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.userForm.get("email"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.userForm.get("email"))==null||e.errors==null)&&e.errors.required)&&(((e=o.userForm.get("email"))==null||e.errors==null?null:e.errors.email)||((e=o.userForm.get("email"))==null||e.errors==null?null:e.errors.invalidEmail)))}}function y3(t,i){t&1&&(c(0,"div"),b(1," Nombre es requerido. "),s())}function C3(t,i){t&1&&(c(0,"div"),b(1," El nombre no debe contener n\xFAmeros ni s\xEDmbolos. "),s())}function w3(t,i){if(t&1&&(c(0,"div",42),O(1,y3,2,0,"div",32)(2,C3,2,0,"div",32),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.userForm.get("name"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.userForm.get("name"))==null||e.errors==null)&&e.errors.required)&&((e=o.userForm.get("name"))==null||e.errors==null?null:e.errors.pattern))}}function S3(t,i){t&1&&(c(0,"div"),b(1," Apellido es requerido. "),s())}function x3(t,i){t&1&&(c(0,"div"),b(1," El apellido no debe contener n\xFAmeros ni s\xEDmbolos. "),s())}function E3(t,i){if(t&1&&(c(0,"div",42),O(1,S3,2,0,"div",32)(2,x3,2,0,"div",32),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.userForm.get("surname"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",!(!((e=o.userForm.get("surname"))==null||e.errors==null)&&e.errors.required)&&((e=o.userForm.get("surname"))==null||e.errors==null?null:e.errors.pattern))}}function F3(t,i){t&1&&(c(0,"div"),b(1," Tel\xE9fono es requerido. "),s())}function I3(t,i){t&1&&(c(0,"div"),b(1," Formato de tel\xE9fono inv\xE1lido. "),s())}function A3(t,i){if(t&1&&(c(0,"div",42),O(1,F3,2,0,"div",32)(2,I3,2,0,"div",32),s()),t&2){let n,e,o=V();h(),g("ngIf",(n=o.userForm.get("phone"))==null||n.errors==null?null:n.errors.required),h(),g("ngIf",(e=o.userForm.get("phone"))==null||e.errors==null?null:e.errors.invalidPhone)}}function M3(t,i){t&1&&(c(0,"div",42),b(1," Ingrese una contrase\xF1a v\xE1lida. "),s())}function N3(t,i){t&1&&(c(0,"div",42),b(1," Confirmar Contrase\xF1a es requerida. "),s())}function T3(t,i){t&1&&(c(0,"div",42),b(1," Las contrase\xF1as no coinciden. "),s())}function P3(t,i){if(t&1&&(c(0,"div"),O(1,N3,2,0,"div",19)(2,T3,2,0,"div",19),s()),t&2){let n,e,o=V(),r=ct(11);h(),g("ngIf",!((n=o.userForm.get("confirmPassword"))!=null&&n.value)&&(r.submitted||((n=o.userForm.get("confirmPassword"))==null?null:n.dirty)&&((n=o.userForm.get("confirmPassword"))==null?null:n.touched))),h(),g("ngIf",((e=o.userForm.get("confirmPassword"))==null?null:e.value)&&o.userForm.hasError("passwordMismatch")&&(r.submitted||((e=o.userForm.get("confirmPassword"))==null?null:e.dirty)||((e=o.userForm.get("confirmPassword"))==null?null:e.touched)))}}function L3(t,i){t&1&&(c(0,"div",42),b(1," Rol es requerido. "),s())}var X0=(()=>{let i=class i{constructor(e,o){this.fb=e,this.UsersService=o,this.userInput={},this.close=new lt,this.userForm=this.fb.group({email:["",[oe.required,Fn]],name:[{value:""},[oe.required,oe.pattern("[a-zA-Z ]*")]],surname:[{value:""},[oe.required,oe.pattern("[a-zA-Z ]*")]],phone:["",[oe.required,In]],password:[""],confirmPassword:[""],role:["",oe.required]},{validator:dl()})}ngOnInit(){let e=this.transformUserInput(this.userInput);this.userForm.patchValue(e)}onSubmit(){if(this.userForm.valid){let e=this.userInput.password;this.userForm.get("password")?.value!==""&&(e=this.userForm.get("password")?.value);let o={id:this.userInput.id,name:this.userForm.get("name")?.value,surname:this.userForm.get("surname")?.value,email:this.userForm.get("email")?.value,phone:this.userForm.get("phone")?.value,role:this.userForm.get("role")?.value,password:e};console.log("User to save:",o),this.UsersService.updateUser(o).subscribe(()=>{this.close.emit()})}else this.userForm.markAllAsTouched()}closeModal(){this.close.emit()}transformUserInput(e){return console.log("Data:",e),{id:e.id,name:e.name??"",surname:e.surname??"",email:e.email??"",phone:e.phone??"",password:"",role:e.role??""}}};i.\u0275fac=function(o){return new(o||i)(se(Vt),se(cn))},i.\u0275cmp=ke({type:i,selectors:[["app-edit-profile-modal"]],inputs:{userInput:"userInput"},outputs:{close:"close"},standalone:!0,features:[Ve],decls:87,vars:32,consts:[["aux","ngForm"],["tabindex","-1","aria-modal","true","role","dialog",1,"modal","modal-bg","fade","show",2,"display","block"],[1,"modal-dialog"],[1,"modal-content","modal-content-main"],[1,"modal-header","d-flex","justify-content-center","align-items-center"],[1,"row","w-100"],[1,"col"],[1,"modal-title"],[1,"col","d-flex","justify-content-end"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[3,"ngSubmit","formGroup"],[1,"modal-body"],[1,"row"],[1,"form-group","row-container"],[1,"row","align-items-center"],[1,"col-1"],["for","email"],["type","email","id","email","name","email","formControlName","email",1,"form-control",3,"ngClass"],[1,"error-container"],["class","text-danger",4,"ngIf"],[1,"col-2"],["for","name"],["type","text","id","name","name","name","formControlName","name",1,"form-control",3,"ngClass"],["for","surname"],["type","text","id","surname","name","surname","formControlName","surname",1,"form-control",3,"ngClass"],["for","phone"],["type","text","id","phone","name","phone","formControlName","phone",1,"form-control",3,"ngClass"],["for","password"],["type","password","id","password","name","password","formControlName","password",1,"form-control",3,"ngClass"],[1,"col-4"],["for","confirmPassword"],["type","password","id","confirmPassword","formControlName","confirmPassword",1,"form-control",3,"ngClass"],[4,"ngIf"],["for","role"],[1,"d-flex","flex-column","align-items-center"],[1,"form-check"],["type","radio","id","roleAdmin","name","role","value","Admin","formControlName","role",1,"form-check-input",3,"ngClass"],["for","roleAdmin",1,"form-check-label"],["type","radio","id","roleUser","name","role","value","User","formControlName","role",1,"form-check-input",3,"ngClass"],["for","roleUser",1,"form-check-label"],[1,"modal-footer","justify-content-center"],["type","submit",1,"btn","btn-custom"],[1,"text-danger"]],template:function(o,r){if(o&1){let a=Re();c(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"h5",7),b(7,"Editar Perfil"),s()(),c(8,"div",8)(9,"button",9),ee("click",function(){return me(a),fe(r.closeModal())}),s()()()(),c(10,"form",10,0),ee("ngSubmit",function(){return me(a),fe(r.onSubmit())}),c(12,"div",11)(13,"div",12)(14,"div",6)(15,"div",13)(16,"div",14)(17,"div",15)(18,"label",16),b(19,"Email"),s()(),c(20,"div",6),H(21,"input",17),s(),c(22,"div",18),O(23,b3,3,2,"div",19),s()()(),c(24,"div",13)(25,"div",14)(26,"div",20)(27,"label",21),b(28,"Nombre"),s()(),c(29,"div",6),H(30,"input",22),s(),c(31,"div",18),O(32,w3,3,2,"div",19),s()()(),c(33,"div",13)(34,"div",14)(35,"div",20)(36,"label",23),b(37,"Apellido"),s()(),c(38,"div",6),H(39,"input",24),s(),c(40,"div",18),O(41,E3,3,2,"div",19),s()()(),c(42,"div",13)(43,"div",14)(44,"div",20)(45,"label",25),b(46,"Tel\xE9fono"),s()(),c(47,"div",6),H(48,"input",26),s(),c(49,"div",18),O(50,A3,3,2,"div",19),s()()()(),c(51,"div",6)(52,"div",13)(53,"div",14)(54,"div",20)(55,"label",27),b(56,"Contrase\xF1a"),s()(),c(57,"div",6),H(58,"input",28),s(),c(59,"div",18),O(60,M3,2,0,"div",19),s()()(),c(61,"div",13)(62,"div",14)(63,"div",29)(64,"label",30),b(65,"Confirmar Contrase\xF1a"),s()(),c(66,"div",6),H(67,"input",31),s(),c(68,"div",18),O(69,P3,3,2,"div",32),s()()(),c(70,"div",13)(71,"label",33),b(72,"Rol:"),s(),c(73,"div",34)(74,"div",35),H(75,"input",36),c(76,"label",37),b(77,"Admin"),s()(),c(78,"div",35),H(79,"input",38),c(80,"label",39),b(81,"User"),s()()(),c(82,"div",18),O(83,L3,2,0,"div",19),s()()()()(),c(84,"div",40)(85,"button",41),b(86,"GUARDAR"),s()()()()()()}if(o&2){let a,d,p,_,y,w,S,v,M,F,k,I,L,z,$,J=ct(11);h(10),g("formGroup",r.userForm),h(11),g("ngClass",_e(16,ta,(((a=r.userForm.get("email"))==null?null:a.dirty)||((a=r.userForm.get("email"))==null?null:a.touched)||J.submitted)&&((a=r.userForm.get("email"))==null?null:a.invalid))),h(2),g("ngIf",J.submitted||((d=r.userForm.get("email"))==null?null:d.invalid)&&(((d=r.userForm.get("email"))==null?null:d.dirty)||((d=r.userForm.get("email"))==null?null:d.touched))),h(7),g("ngClass",_e(18,ta,(((p=r.userForm.get("name"))==null?null:p.dirty)||((p=r.userForm.get("name"))==null?null:p.touched)||J.submitted)&&((p=r.userForm.get("name"))==null?null:p.invalid))),h(2),g("ngIf",J.submitted||((_=r.userForm.get("name"))==null?null:_.invalid)&&(((_=r.userForm.get("name"))==null?null:_.dirty)||((_=r.userForm.get("name"))==null?null:_.touched))),h(7),g("ngClass",_e(20,ta,(((y=r.userForm.get("surname"))==null?null:y.dirty)||((y=r.userForm.get("surname"))==null?null:y.touched)||J.submitted)&&((y=r.userForm.get("surname"))==null?null:y.invalid))),h(2),g("ngIf",J.submitted||((w=r.userForm.get("surname"))==null?null:w.invalid)&&(((w=r.userForm.get("surname"))==null?null:w.dirty)||((w=r.userForm.get("surname"))==null?null:w.touched))),h(7),g("ngClass",_e(22,ta,(((S=r.userForm.get("phone"))==null?null:S.dirty)||((S=r.userForm.get("phone"))==null?null:S.touched)||J.submitted)&&((S=r.userForm.get("phone"))==null?null:S.invalid))),h(2),g("ngIf",((v=r.userForm.get("phone"))==null?null:v.invalid)&&(((v=r.userForm.get("phone"))==null?null:v.dirty)||((v=r.userForm.get("phone"))==null?null:v.touched))||J.submitted&&((v=r.userForm.get("phone"))==null?null:v.invalid)),h(8),g("ngClass",_e(24,ta,(((M=r.userForm.get("password"))==null?null:M.dirty)||((M=r.userForm.get("password"))==null?null:M.touched)||J.submitted)&&((M=r.userForm.get("password"))==null?null:M.invalid))),h(2),g("ngIf",((F=r.userForm.get("password"))==null?null:F.value)&&((F=r.userForm.get("password"))==null?null:F.invalid)&&(((F=r.userForm.get("password"))==null?null:F.dirty)||((F=r.userForm.get("password"))==null?null:F.touched)||J.submitted)),h(7),g("ngClass",_e(26,ta,(((k=r.userForm.get("confirmPassword"))==null?null:k.dirty)||((k=r.userForm.get("confirmPassword"))==null?null:k.touched)||J.submitted)&&((k=r.userForm.get("confirmPassword"))==null?null:k.invalid))),h(2),g("ngIf",(I=r.userForm.get("password"))==null?null:I.value),h(6),g("ngClass",_e(28,ta,(((L=r.userForm.get("role"))==null?null:L.dirty)||((L=r.userForm.get("role"))==null?null:L.touched)||J.submitted)&&((L=r.userForm.get("role"))==null?null:L.invalid))),h(4),g("ngClass",_e(30,ta,(((z=r.userForm.get("role"))==null?null:z.dirty)||((z=r.userForm.get("role"))==null?null:z.touched)||J.submitted)&&((z=r.userForm.get("role"))==null?null:z.invalid))),h(4),g("ngIf",(($=r.userForm.get("role"))==null?null:$.invalid)&&((($=r.userForm.get("role"))==null?null:$.dirty)||(($=r.userForm.get("role"))==null?null:$.touched))||J.submitted&&(($=r.userForm.get("role"))==null?null:$.invalid))}},dependencies:[Ze,St,Xe,Ft,Rt,At,ga,Tt,Dt,Pt,Ot,al],styles:[`@charset "UTF-8";.modal[_ngcontent-%COMP%]{background-color:#ffffff80;font-family:LEMONMILK}.modal-dialog[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;top:18vh}.modal-content-main[_ngcontent-%COMP%]{background-color:#88ca5e;background-image:url(/assets/views/modal1.svg);min-width:1416px;min-height:496px;background-position:bottom}.modal-header[_ngcontent-%COMP%]{background-color:#88ca5e}.btn-custom[_ngcontent-%COMP%]{background-color:#1b5e20;color:#fff}.row-container[_ngcontent-%COMP%]{position:relative;min-height:5em}.error-container[_ngcontent-%COMP%]{min-height:1.2rem;padding-top:2px}.form-group[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]{margin-bottom:10px}.modal-footer[_ngcontent-%COMP%]{border-top:none}.form-control[_ngcontent-%COMP%]:focus{border-color:#1b5e20}.custom-switch[_ngcontent-%COMP%]:focus{border-color:#1b5e20;box-shadow:0 0 0 .25rem #1b5e2040}.custom-switch[_ngcontent-%COMP%]:checked{background-color:#88ca5e;border-color:#1b5e20}.custom-switch[_ngcontent-%COMP%]:checked:before{background-color:#fff}.form-control[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important;font-size:1.2rem}
+/*# sourceMappingURL=edit-profile-modal.component-ADENO63L.css.map */`]});let t=i;return t})();function O3(t,i){if(t&1){let n=Re();c(0,"app-edit-profile-modal",14),ee("close",function(){me(n);let o=V();return fe(o.closeUserModal())}),s()}if(t&2){let n=V();g("userInput",n.user)}}var ef=(()=>{let i=class i{constructor(e,o){this.authService=e,this.userService=o,this.user={},this.openEditProfileModal=!1}ngOnInit(){this.userId=this.authService.getUserId(),this.userId&&this.getData()}openUserModal(){this.openEditProfileModal=!0}closeUserModal(){this.getData(),this.openEditProfileModal=!1}getData(){this.userService.getUsersById(this.userId).subscribe(e=>{this.user=e})}};i.\u0275fac=function(o){return new(o||i)(se(Ki),se(cn))},i.\u0275cmp=ke({type:i,selectors:[["app-profile"]],standalone:!0,features:[Ve],decls:41,vars:5,consts:[[1,"container-fluid","d-flex","flex-column","justify-content-center","align-items-center","vh-100"],[1,"col-flex","justify-content-center","align-items-center"],[1,"row","header-row"],[1,"col"],[1,"view-title"],[1,"col","d-flex","justify-content-end"],["type","button",1,"btn","btn-custom",3,"click"],[1,"card"],[1,"card-body"],[1,"row","mb-3"],[1,"subtitle"],[1,"card-text"],[1,"row"],[3,"userInput","close",4,"ngIf"],[3,"close","userInput"]],template:function(o,r){o&1&&(H(0,"app-navbar"),c(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"h1",4),b(6,"Mi Perfil"),s()(),c(7,"div",5)(8,"a",6),ee("click",function(){return r.openUserModal()}),b(9,"EDITAR"),s()()(),c(10,"div",7)(11,"div",8)(12,"div",9)(13,"div",3)(14,"label",10),b(15,"Nombre:"),s()(),c(16,"div",3)(17,"p",11),b(18),s()()(),c(19,"div",9)(20,"div",3)(21,"label",10),b(22,"Apellido:"),s()(),c(23,"div",3)(24,"p",11),b(25),s()()(),c(26,"div",9)(27,"div",3)(28,"label",10),b(29,"Tel\xE9fono:"),s()(),c(30,"div",3)(31,"p",11),b(32),s()()(),c(33,"div",12)(34,"div",3)(35,"label",10),b(36,"Email:"),s()(),c(37,"div",3)(38,"p",11),b(39),s()()()()()()(),O(40,O3,1,1,"app-edit-profile-modal",13)),o&2&&(h(18),Ut(r.user.name),h(7),Ut(r.user.surname),h(7),Ut(r.user.phone),h(7),Ut(r.user.email),h(),g("ngIf",r.openEditProfileModal))},dependencies:[oi,Ft,Ze,Xe,X0],styles:[`[_nghost-%COMP%]{display:block;width:100%;height:100vh;background-image:url(/assets/views/home.svg);background-size:cover;background-position:center;background-repeat:no-repeat}.view-title[_ngcontent-%COMP%]{font-family:LEMONMILK Bold,sans-serif;font-weight:700;color:#1b5e20;font-size:2.5rem;padding-left:.4rem}.header-row[_ngcontent-%COMP%]{padding-bottom:20px;align-items:center}.vh-100[_ngcontent-%COMP%]{height:90vh!important}.btn-custom[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-style:italic;font-weight:300;font-size:1.5rem;color:#1b5e20}.body-container[_ngcontent-%COMP%]{position:relative;width:100%;min-height:220px;min-width:846px;background-color:#d2ffaa;display:flex;padding-top:1rem}.subtitle[_ngcontent-%COMP%]{font-family:LEMONMILK,sans-serif;font-size:1.3rem}.card-body[_ngcontent-%COMP%]{min-width:600px;background-color:#d2ffaa}.card-text[_ngcontent-%COMP%]{font-size:1.3rem}
+/*# sourceMappingURL=profile.component-PE4QUQJX.css.map */`]});let t=i;return t})();var tf=[{path:"",component:vm,canActivate:[Z0],pathMatch:"full"},{path:"home",component:bm,canActivate:[hn]},{path:"inventory",component:Mm,canActivate:[hn]},{path:"production",component:Pm,canActivate:[hn]},{path:"production/add",component:Q0,canActivate:[hn]},{path:"production/:id",component:Cc,canActivate:[hn]},{path:"production/:id/modify",component:J0,canActivate:[hn]},{path:"recipes",component:$m,canActivate:[hn]},{path:"recipes/add",component:a0,canActivate:[hn]},{path:"recipes/:id",component:K0,canActivate:[hn]},{path:"recipes/:id/modify",component:s0,canActivate:[hn]},{path:"history",component:Ym,canActivate:[hn]},{path:"users",component:Zm,canActivate:[hn]},{path:"providers",component:t0,canActivate:[hn]},{path:"clients",component:o0,canActivate:[hn]},{path:"profile",component:ef,canActivate:[hn]},{path:"**",redirectTo:""}];var nf=(t,i)=>{let n=En(Ki);if(t.url.includes("/login"))return i(t);let e=n.getToken();if(e){let o=t.clone({setHeaders:{Authorization:`Bearer ${e}`}});return i(o)}return i(t)};var rf={providers:[kp(tf),Np(),Fp(Ap(),Ip([nf]))]};var k3={providers:[Tp()]},of=Sp(rf,k3);var D3=()=>Mp(Rp,of),sI=D3;export{sI as a};
+//# sourceMappingURL=chunk-H47QWUUI.mjs.map
diff --git a/src/main/webapp/server/chunk-H47QWUUI.mjs.map b/src/main/webapp/server/chunk-H47QWUUI.mjs.map
new file mode 100644
index 0000000..79ef821
--- /dev/null
+++ b/src/main/webapp/server/chunk-H47QWUUI.mjs.map
@@ -0,0 +1 @@
+{"version":3,"sources":["src/app/app.component.ts","src/app/app.component.html","node_modules/@angular/forms/fesm2022/forms.mjs","src/evironments/environment.ts","src/app/core/services/auth/auth.service.ts","src/app/views/login/login.component.ts","src/app/views/login/login.component.html","src/app/shared/components/navbar/navbar.component.ts","src/app/shared/components/navbar/navbar.component.html","src/app/core/utils/api-error-handler.utils.ts","src/app/core/utils/mapping.utils.ts","src/app/core/services/api/users.service.ts","src/app/views/home/home.component.ts","src/app/views/home/home.component.html","src/app/core/utils/table-data.utils.ts","src/app/shared/components/table/table.component.ts","src/app/shared/components/table/table.component.html","src/app/shared/components/search-bar/search-bar.component.ts","src/app/shared/components/search-bar/search-bar.component.html","src/app/views/inventory/decision-modal/decision-modal.component.ts","src/app/views/inventory/decision-modal/decision-modal.component.html","src/app/shared/enums/units.enum.ts","src/app/core/utils/validators.ts","src/app/core/services/api/inputs.service.ts","src/app/core/services/api/rawmaterials.service.ts","src/app/core/services/enums/inventory.service.ts","src/app/core/services/api/providers.service.ts","src/app/views/inventory/add-input/add-input.component.ts","src/app/views/inventory/add-input/add-input.component.html","src/app/views/inventory/add-raw-material/add-raw-material.component.ts","src/app/views/inventory/add-raw-material/add-raw-material.component.html","src/app/shared/components/delete-modal/delete-modal.component.ts","src/app/shared/components/delete-modal/delete-modal.component.html","src/app/views/inventory/raw-material/raw-material.component.ts","src/app/views/inventory/raw-material/raw-material.component.html","src/app/views/inventory/inputs/inputs.component.ts","src/app/views/inventory/inputs/inputs.component.html","src/app/views/inventory/inventory.component.ts","src/app/views/inventory/inventory.component.html","src/app/core/services/api/batches.service.ts","src/app/views/production/view-batch/view-batch.component.ts","src/app/views/production/view-batch/view-batch.component.html","src/app/core/services/api/saleschannels.service.ts","src/app/core/services/api/events.service.ts","src/app/views/production/sell-batch/sell-batch.component.ts","src/app/views/production/sell-batch/sell-batch.component.html","src/app/views/production/production.component.ts","src/app/views/production/production.component.html","src/app/views/recipes/card/card.component.ts","src/app/views/recipes/card/card.component.html","node_modules/primeng/fesm2022/primeng-utils.mjs","node_modules/primeng/fesm2022/primeng-api.mjs","node_modules/primeng/fesm2022/primeng-baseicon.mjs","node_modules/primeng/fesm2022/primeng-icons-chevrondown.mjs","node_modules/primeng/fesm2022/primeng-icons-chevronleft.mjs","node_modules/primeng/fesm2022/primeng-icons-chevronright.mjs","node_modules/primeng/fesm2022/primeng-icons-chevronup.mjs","node_modules/primeng/fesm2022/primeng-dom.mjs","node_modules/primeng/fesm2022/primeng-ripple.mjs","node_modules/primeng/fesm2022/primeng-carousel.mjs","node_modules/primeng/fesm2022/primeng-autofocus.mjs","node_modules/primeng/fesm2022/primeng-icons-spinner.mjs","node_modules/primeng/fesm2022/primeng-button.mjs","node_modules/primeng/fesm2022/primeng-tag.mjs","src/app/views/recipes/carousel/carousel.component.ts","src/app/views/recipes/carousel/carousel.component.html","src/app/core/services/api/recipes.service.ts","src/app/views/recipes/recipes.component.ts","src/app/views/recipes/recipes.component.html","src/app/views/history/event/event.component.ts","src/app/views/history/event/event.component.html","src/app/views/history/history.component.ts","src/app/views/history/history.component.html","src/app/views/users/add-user/add-user.component.ts","src/app/views/users/add-user/add-user.component.html","src/app/views/users/user/user.component.ts","src/app/views/users/user/user.component.html","src/app/views/users/users.component.ts","src/app/views/users/users.component.html","src/app/views/providers/add-provider/add-provider.component.ts","src/app/views/providers/add-provider/add-provider.component.html","src/app/views/providers/provider/provider.component.ts","src/app/views/providers/provider/provider.component.html","src/app/views/providers/providers.component.ts","src/app/views/providers/providers.component.html","src/app/views/clients/add-client/add-client.component.ts","src/app/views/clients/add-client/add-client.component.html","src/app/views/clients/client/client.component.ts","src/app/views/clients/client/client.component.html","src/app/core/services/api/clients.service.ts","src/app/views/clients/clients.component.ts","src/app/views/clients/clients.component.html","node_modules/primeng/fesm2022/primeng-editor.mjs","src/app/views/recipes/add-recipe/add-recipe.component.ts","src/app/views/recipes/add-recipe/add-recipe.component.html","src/app/views/recipes/modify-recipe/modify-recipe.component.ts","src/app/views/recipes/modify-recipe/modify-recipe.component.html","src/app/core/pipes/new-linew-to-br.pipe.ts","node_modules/jspdf/dist/jspdf.es.min.js","node_modules/fflate/esm/index.mjs","src/app/views/recipes/view-recipe/view-recipe.component.ts","src/app/views/recipes/view-recipe/view-recipe.component.html","src/app/core/services/enums/categories.service.ts","src/app/views/production/add-batch/add-batch.component.ts","src/app/views/production/add-batch/add-batch.component.html","src/app/core/guards/auth.guard.ts","src/app/views/production/modify-batch/modify-batch.component.ts","src/app/views/production/modify-batch/modify-batch.component.html","src/app/core/guards/all-ready-log.guard.ts","src/app/views/profile/editProfile/edit-profile-modal/edit-profile-modal.component.ts","src/app/views/profile/editProfile/edit-profile-modal/edit-profile-modal.component.html","src/app/views/profile/profile.component.ts","src/app/views/profile/profile.component.html","src/app/app.routes.ts","src/app/core/token/auth.interceptor.ts","src/app/app.config.ts","src/app/app.config.server.ts","src/main.server.ts"],"sourcesContent":["import { Component } from '@angular/core';\r\nimport { RouterOutlet } from '@angular/router';\r\n\r\n@Component({\r\n  selector: 'app-root',\r\n  standalone: true,\r\n  imports: [RouterOutlet],\r\n  templateUrl: './app.component.html',\r\n  styleUrl: './app.component.scss'\r\n})\r\nexport class AppComponent {\r\n  title = 'SalaComunitaria';\r\n}\r\n","\r\n<router-outlet />\r\n","/**\n * @license Angular v17.3.11\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { Directive, InjectionToken, forwardRef, Optional, Inject, ɵisPromise, ɵisSubscribable, ɵRuntimeError, Self, EventEmitter, Input, Host, SkipSelf, booleanAttribute, ChangeDetectorRef, Output, Injectable, inject, NgModule, Version } from '@angular/core';\nimport { ɵgetDOM } from '@angular/common';\nimport { from, forkJoin } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\n/**\n * Base class for all ControlValueAccessor classes defined in Forms package.\n * Contains common logic and utility functions.\n *\n * Note: this is an *internal-only* class and should not be extended or used directly in\n * applications code.\n */\nlet BaseControlValueAccessor = /*#__PURE__*/(() => {\n  class BaseControlValueAccessor {\n    constructor(_renderer, _elementRef) {\n      this._renderer = _renderer;\n      this._elementRef = _elementRef;\n      /**\n       * The registered callback function called when a change or input event occurs on the input\n       * element.\n       * @nodoc\n       */\n      this.onChange = _ => {};\n      /**\n       * The registered callback function called when a blur event occurs on the input element.\n       * @nodoc\n       */\n      this.onTouched = () => {};\n    }\n    /**\n     * Helper method that sets a property on a target element using the current Renderer\n     * implementation.\n     * @nodoc\n     */\n    setProperty(key, value) {\n      this._renderer.setProperty(this._elementRef.nativeElement, key, value);\n    }\n    /**\n     * Registers a function called when the control is touched.\n     * @nodoc\n     */\n    registerOnTouched(fn) {\n      this.onTouched = fn;\n    }\n    /**\n     * Registers a function called when the control value changes.\n     * @nodoc\n     */\n    registerOnChange(fn) {\n      this.onChange = fn;\n    }\n    /**\n     * Sets the \"disabled\" property on the range input element.\n     * @nodoc\n     */\n    setDisabledState(isDisabled) {\n      this.setProperty('disabled', isDisabled);\n    }\n    static {\n      this.ɵfac = function BaseControlValueAccessor_Factory(t) {\n        return new (t || BaseControlValueAccessor)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: BaseControlValueAccessor\n      });\n    }\n  }\n  return BaseControlValueAccessor;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Base class for all built-in ControlValueAccessor classes (except DefaultValueAccessor, which is\n * used in case no other CVAs can be found). We use this class to distinguish between default CVA,\n * built-in CVAs and custom CVAs, so that Forms logic can recognize built-in CVAs and treat custom\n * ones with higher priority (when both built-in and custom CVAs are present).\n *\n * Note: this is an *internal-only* class and should not be extended or used directly in\n * applications code.\n */\nlet BuiltInControlValueAccessor = /*#__PURE__*/(() => {\n  class BuiltInControlValueAccessor extends BaseControlValueAccessor {\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵBuiltInControlValueAccessor_BaseFactory;\n        return function BuiltInControlValueAccessor_Factory(t) {\n          return (ɵBuiltInControlValueAccessor_BaseFactory || (ɵBuiltInControlValueAccessor_BaseFactory = i0.ɵɵgetInheritedFactory(BuiltInControlValueAccessor)))(t || BuiltInControlValueAccessor);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: BuiltInControlValueAccessor,\n        features: [i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return BuiltInControlValueAccessor;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Used to provide a `ControlValueAccessor` for form controls.\n *\n * See `DefaultValueAccessor` for how to implement one.\n *\n * @publicApi\n */\nconst NG_VALUE_ACCESSOR = /*#__PURE__*/new InjectionToken(ngDevMode ? 'NgValueAccessor' : '');\nconst CHECKBOX_VALUE_ACCESSOR = {\n  provide: NG_VALUE_ACCESSOR,\n  useExisting: /*#__PURE__*/forwardRef(() => CheckboxControlValueAccessor),\n  multi: true\n};\n/**\n * @description\n * A `ControlValueAccessor` for writing a value and listening to changes on a checkbox input\n * element.\n *\n * @usageNotes\n *\n * ### Using a checkbox with a reactive form.\n *\n * The following example shows how to use a checkbox with a reactive form.\n *\n * ```ts\n * const rememberLoginControl = new FormControl();\n * ```\n *\n * ```\n * <input type=\"checkbox\" [formControl]=\"rememberLoginControl\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet CheckboxControlValueAccessor = /*#__PURE__*/(() => {\n  class CheckboxControlValueAccessor extends BuiltInControlValueAccessor {\n    /**\n     * Sets the \"checked\" property on the input element.\n     * @nodoc\n     */\n    writeValue(value) {\n      this.setProperty('checked', value);\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵCheckboxControlValueAccessor_BaseFactory;\n        return function CheckboxControlValueAccessor_Factory(t) {\n          return (ɵCheckboxControlValueAccessor_BaseFactory || (ɵCheckboxControlValueAccessor_BaseFactory = i0.ɵɵgetInheritedFactory(CheckboxControlValueAccessor)))(t || CheckboxControlValueAccessor);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: CheckboxControlValueAccessor,\n        selectors: [[\"input\", \"type\", \"checkbox\", \"formControlName\", \"\"], [\"input\", \"type\", \"checkbox\", \"formControl\", \"\"], [\"input\", \"type\", \"checkbox\", \"ngModel\", \"\"]],\n        hostBindings: function CheckboxControlValueAccessor_HostBindings(rf, ctx) {\n          if (rf & 1) {\n            i0.ɵɵlistener(\"change\", function CheckboxControlValueAccessor_change_HostBindingHandler($event) {\n              return ctx.onChange($event.target.checked);\n            })(\"blur\", function CheckboxControlValueAccessor_blur_HostBindingHandler() {\n              return ctx.onTouched();\n            });\n          }\n        },\n        features: [i0.ɵɵProvidersFeature([CHECKBOX_VALUE_ACCESSOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return CheckboxControlValueAccessor;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst DEFAULT_VALUE_ACCESSOR = {\n  provide: NG_VALUE_ACCESSOR,\n  useExisting: /*#__PURE__*/forwardRef(() => DefaultValueAccessor),\n  multi: true\n};\n/**\n * We must check whether the agent is Android because composition events\n * behave differently between iOS and Android.\n */\nfunction _isAndroid() {\n  const userAgent = ɵgetDOM() ? ɵgetDOM().getUserAgent() : '';\n  return /android (\\d+)/.test(userAgent.toLowerCase());\n}\n/**\n * @description\n * Provide this token to control if form directives buffer IME input until\n * the \"compositionend\" event occurs.\n * @publicApi\n */\nconst COMPOSITION_BUFFER_MODE = /*#__PURE__*/new InjectionToken(ngDevMode ? 'CompositionEventMode' : '');\n/**\n * The default `ControlValueAccessor` for writing a value and listening to changes on input\n * elements. The accessor is used by the `FormControlDirective`, `FormControlName`, and\n * `NgModel` directives.\n *\n * {@searchKeywords ngDefaultControl}\n *\n * @usageNotes\n *\n * ### Using the default value accessor\n *\n * The following example shows how to use an input element that activates the default value accessor\n * (in this case, a text field).\n *\n * ```ts\n * const firstNameControl = new FormControl();\n * ```\n *\n * ```\n * <input type=\"text\" [formControl]=\"firstNameControl\">\n * ```\n *\n * This value accessor is used by default for `<input type=\"text\">` and `<textarea>` elements, but\n * you could also use it for custom components that have similar behavior and do not require special\n * processing. In order to attach the default value accessor to a custom element, add the\n * `ngDefaultControl` attribute as shown below.\n *\n * ```\n * <custom-input-component ngDefaultControl [(ngModel)]=\"value\"></custom-input-component>\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet DefaultValueAccessor = /*#__PURE__*/(() => {\n  class DefaultValueAccessor extends BaseControlValueAccessor {\n    constructor(renderer, elementRef, _compositionMode) {\n      super(renderer, elementRef);\n      this._compositionMode = _compositionMode;\n      /** Whether the user is creating a composition string (IME events). */\n      this._composing = false;\n      if (this._compositionMode == null) {\n        this._compositionMode = !_isAndroid();\n      }\n    }\n    /**\n     * Sets the \"value\" property on the input element.\n     * @nodoc\n     */\n    writeValue(value) {\n      const normalizedValue = value == null ? '' : value;\n      this.setProperty('value', normalizedValue);\n    }\n    /** @internal */\n    _handleInput(value) {\n      if (!this._compositionMode || this._compositionMode && !this._composing) {\n        this.onChange(value);\n      }\n    }\n    /** @internal */\n    _compositionStart() {\n      this._composing = true;\n    }\n    /** @internal */\n    _compositionEnd(value) {\n      this._composing = false;\n      this._compositionMode && this.onChange(value);\n    }\n    static {\n      this.ɵfac = function DefaultValueAccessor_Factory(t) {\n        return new (t || DefaultValueAccessor)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(COMPOSITION_BUFFER_MODE, 8));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: DefaultValueAccessor,\n        selectors: [[\"input\", \"formControlName\", \"\", 3, \"type\", \"checkbox\"], [\"textarea\", \"formControlName\", \"\"], [\"input\", \"formControl\", \"\", 3, \"type\", \"checkbox\"], [\"textarea\", \"formControl\", \"\"], [\"input\", \"ngModel\", \"\", 3, \"type\", \"checkbox\"], [\"textarea\", \"ngModel\", \"\"], [\"\", \"ngDefaultControl\", \"\"]],\n        hostBindings: function DefaultValueAccessor_HostBindings(rf, ctx) {\n          if (rf & 1) {\n            i0.ɵɵlistener(\"input\", function DefaultValueAccessor_input_HostBindingHandler($event) {\n              return ctx._handleInput($event.target.value);\n            })(\"blur\", function DefaultValueAccessor_blur_HostBindingHandler() {\n              return ctx.onTouched();\n            })(\"compositionstart\", function DefaultValueAccessor_compositionstart_HostBindingHandler() {\n              return ctx._compositionStart();\n            })(\"compositionend\", function DefaultValueAccessor_compositionend_HostBindingHandler($event) {\n              return ctx._compositionEnd($event.target.value);\n            });\n          }\n        },\n        features: [i0.ɵɵProvidersFeature([DEFAULT_VALUE_ACCESSOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return DefaultValueAccessor;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction isEmptyInputValue(value) {\n  /**\n   * Check if the object is a string or array before evaluating the length attribute.\n   * This avoids falsely rejecting objects that contain a custom length attribute.\n   * For example, the object {id: 1, length: 0, width: 0} should not be returned as empty.\n   */\n  return value == null || (typeof value === 'string' || Array.isArray(value)) && value.length === 0;\n}\nfunction hasValidLength(value) {\n  // non-strict comparison is intentional, to check for both `null` and `undefined` values\n  return value != null && typeof value.length === 'number';\n}\n/**\n * @description\n * An `InjectionToken` for registering additional synchronous validators used with\n * `AbstractControl`s.\n *\n * @see {@link NG_ASYNC_VALIDATORS}\n *\n * @usageNotes\n *\n * ### Providing a custom validator\n *\n * The following example registers a custom validator directive. Adding the validator to the\n * existing collection of validators requires the `multi: true` option.\n *\n * ```typescript\n * @Directive({\n *   selector: '[customValidator]',\n *   providers: [{provide: NG_VALIDATORS, useExisting: CustomValidatorDirective, multi: true}]\n * })\n * class CustomValidatorDirective implements Validator {\n *   validate(control: AbstractControl): ValidationErrors | null {\n *     return { 'custom': true };\n *   }\n * }\n * ```\n *\n * @publicApi\n */\nconst NG_VALIDATORS = /*#__PURE__*/new InjectionToken(ngDevMode ? 'NgValidators' : '');\n/**\n * @description\n * An `InjectionToken` for registering additional asynchronous validators used with\n * `AbstractControl`s.\n *\n * @see {@link NG_VALIDATORS}\n *\n * @usageNotes\n *\n * ### Provide a custom async validator directive\n *\n * The following example implements the `AsyncValidator` interface to create an\n * async validator directive with a custom error key.\n *\n * ```typescript\n * @Directive({\n *   selector: '[customAsyncValidator]',\n *   providers: [{provide: NG_ASYNC_VALIDATORS, useExisting: CustomAsyncValidatorDirective, multi:\n * true}]\n * })\n * class CustomAsyncValidatorDirective implements AsyncValidator {\n *   validate(control: AbstractControl): Promise<ValidationErrors|null> {\n *     return Promise.resolve({'custom': true});\n *   }\n * }\n * ```\n *\n * @publicApi\n */\nconst NG_ASYNC_VALIDATORS = /*#__PURE__*/new InjectionToken(ngDevMode ? 'NgAsyncValidators' : '');\n/**\n * A regular expression that matches valid e-mail addresses.\n *\n * At a high level, this regexp matches e-mail addresses of the format `local-part@tld`, where:\n * - `local-part` consists of one or more of the allowed characters (alphanumeric and some\n *   punctuation symbols).\n * - `local-part` cannot begin or end with a period (`.`).\n * - `local-part` cannot be longer than 64 characters.\n * - `tld` consists of one or more `labels` separated by periods (`.`). For example `localhost` or\n *   `foo.com`.\n * - A `label` consists of one or more of the allowed characters (alphanumeric, dashes (`-`) and\n *   periods (`.`)).\n * - A `label` cannot begin or end with a dash (`-`) or a period (`.`).\n * - A `label` cannot be longer than 63 characters.\n * - The whole address cannot be longer than 254 characters.\n *\n * ## Implementation background\n *\n * This regexp was ported over from AngularJS (see there for git history):\n * https://github.com/angular/angular.js/blob/c133ef836/src/ng/directive/input.js#L27\n * It is based on the\n * [WHATWG version](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address) with\n * some enhancements to incorporate more RFC rules (such as rules related to domain names and the\n * lengths of different parts of the address). The main differences from the WHATWG version are:\n *   - Disallow `local-part` to begin or end with a period (`.`).\n *   - Disallow `local-part` length to exceed 64 characters.\n *   - Disallow total address length to exceed 254 characters.\n *\n * See [this commit](https://github.com/angular/angular.js/commit/f3f5cf72e) for more details.\n */\nconst EMAIL_REGEXP = /^(?=.{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])?)*$/;\n/**\n * @description\n * Provides a set of built-in validators that can be used by form controls.\n *\n * A validator is a function that processes a `FormControl` or collection of\n * controls and returns an error map or null. A null map means that validation has passed.\n *\n * @see [Form Validation](/guide/form-validation)\n *\n * @publicApi\n */\nclass Validators {\n  /**\n   * @description\n   * Validator that requires the control's value to be greater than or equal to the provided number.\n   *\n   * @usageNotes\n   *\n   * ### Validate against a minimum of 3\n   *\n   * ```typescript\n   * const control = new FormControl(2, Validators.min(3));\n   *\n   * console.log(control.errors); // {min: {min: 3, actual: 2}}\n   * ```\n   *\n   * @returns A validator function that returns an error map with the\n   * `min` property if the validation check fails, otherwise `null`.\n   *\n   * @see {@link updateValueAndValidity()}\n   *\n   */\n  static min(min) {\n    return minValidator(min);\n  }\n  /**\n   * @description\n   * Validator that requires the control's value to be less than or equal to the provided number.\n   *\n   * @usageNotes\n   *\n   * ### Validate against a maximum of 15\n   *\n   * ```typescript\n   * const control = new FormControl(16, Validators.max(15));\n   *\n   * console.log(control.errors); // {max: {max: 15, actual: 16}}\n   * ```\n   *\n   * @returns A validator function that returns an error map with the\n   * `max` property if the validation check fails, otherwise `null`.\n   *\n   * @see {@link updateValueAndValidity()}\n   *\n   */\n  static max(max) {\n    return maxValidator(max);\n  }\n  /**\n   * @description\n   * Validator that requires the control have a non-empty value.\n   *\n   * @usageNotes\n   *\n   * ### Validate that the field is non-empty\n   *\n   * ```typescript\n   * const control = new FormControl('', Validators.required);\n   *\n   * console.log(control.errors); // {required: true}\n   * ```\n   *\n   * @returns An error map with the `required` property\n   * if the validation check fails, otherwise `null`.\n   *\n   * @see {@link updateValueAndValidity()}\n   *\n   */\n  static required(control) {\n    return requiredValidator(control);\n  }\n  /**\n   * @description\n   * Validator that requires the control's value be true. This validator is commonly\n   * used for required checkboxes.\n   *\n   * @usageNotes\n   *\n   * ### Validate that the field value is true\n   *\n   * ```typescript\n   * const control = new FormControl('some value', Validators.requiredTrue);\n   *\n   * console.log(control.errors); // {required: true}\n   * ```\n   *\n   * @returns An error map that contains the `required` property\n   * set to `true` if the validation check fails, otherwise `null`.\n   *\n   * @see {@link updateValueAndValidity()}\n   *\n   */\n  static requiredTrue(control) {\n    return requiredTrueValidator(control);\n  }\n  /**\n   * @description\n   * Validator that requires the control's value pass an email validation test.\n   *\n   * Tests the value using a [regular\n   * expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions)\n   * pattern suitable for common use cases. The pattern is based on the definition of a valid email\n   * address in the [WHATWG HTML\n   * specification](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address) with\n   * some enhancements to incorporate more RFC rules (such as rules related to domain names and the\n   * lengths of different parts of the address).\n   *\n   * The differences from the WHATWG version include:\n   * - Disallow `local-part` (the part before the `@` symbol) to begin or end with a period (`.`).\n   * - Disallow `local-part` to be longer than 64 characters.\n   * - Disallow the whole address to be longer than 254 characters.\n   *\n   * If this pattern does not satisfy your business needs, you can use `Validators.pattern()` to\n   * validate the value against a different pattern.\n   *\n   * @usageNotes\n   *\n   * ### Validate that the field matches a valid email pattern\n   *\n   * ```typescript\n   * const control = new FormControl('bad@', Validators.email);\n   *\n   * console.log(control.errors); // {email: true}\n   * ```\n   *\n   * @returns An error map with the `email` property\n   * if the validation check fails, otherwise `null`.\n   *\n   * @see {@link updateValueAndValidity()}\n   *\n   */\n  static email(control) {\n    return emailValidator(control);\n  }\n  /**\n   * @description\n   * Validator that requires the length of the control's value to be greater than or equal\n   * to the provided minimum length. This validator is also provided by default if you use the\n   * the HTML5 `minlength` attribute. Note that the `minLength` validator is intended to be used\n   * only for types that have a numeric `length` property, such as strings or arrays. The\n   * `minLength` validator logic is also not invoked for values when their `length` property is 0\n   * (for example in case of an empty string or an empty array), to support optional controls. You\n   * can use the standard `required` validator if empty values should not be considered valid.\n   *\n   * @usageNotes\n   *\n   * ### Validate that the field has a minimum of 3 characters\n   *\n   * ```typescript\n   * const control = new FormControl('ng', Validators.minLength(3));\n   *\n   * console.log(control.errors); // {minlength: {requiredLength: 3, actualLength: 2}}\n   * ```\n   *\n   * ```html\n   * <input minlength=\"5\">\n   * ```\n   *\n   * @returns A validator function that returns an error map with the\n   * `minlength` property if the validation check fails, otherwise `null`.\n   *\n   * @see {@link updateValueAndValidity()}\n   *\n   */\n  static minLength(minLength) {\n    return minLengthValidator(minLength);\n  }\n  /**\n   * @description\n   * Validator that requires the length of the control's value to be less than or equal\n   * to the provided maximum length. This validator is also provided by default if you use the\n   * the HTML5 `maxlength` attribute. Note that the `maxLength` validator is intended to be used\n   * only for types that have a numeric `length` property, such as strings or arrays.\n   *\n   * @usageNotes\n   *\n   * ### Validate that the field has maximum of 5 characters\n   *\n   * ```typescript\n   * const control = new FormControl('Angular', Validators.maxLength(5));\n   *\n   * console.log(control.errors); // {maxlength: {requiredLength: 5, actualLength: 7}}\n   * ```\n   *\n   * ```html\n   * <input maxlength=\"5\">\n   * ```\n   *\n   * @returns A validator function that returns an error map with the\n   * `maxlength` property if the validation check fails, otherwise `null`.\n   *\n   * @see {@link updateValueAndValidity()}\n   *\n   */\n  static maxLength(maxLength) {\n    return maxLengthValidator(maxLength);\n  }\n  /**\n   * @description\n   * Validator that requires the control's value to match a regex pattern. This validator is also\n   * provided by default if you use the HTML5 `pattern` attribute.\n   *\n   * @usageNotes\n   *\n   * ### Validate that the field only contains letters or spaces\n   *\n   * ```typescript\n   * const control = new FormControl('1', Validators.pattern('[a-zA-Z ]*'));\n   *\n   * console.log(control.errors); // {pattern: {requiredPattern: '^[a-zA-Z ]*$', actualValue: '1'}}\n   * ```\n   *\n   * ```html\n   * <input pattern=\"[a-zA-Z ]*\">\n   * ```\n   *\n   * ### Pattern matching with the global or sticky flag\n   *\n   * `RegExp` objects created with the `g` or `y` flags that are passed into `Validators.pattern`\n   * can produce different results on the same input when validations are run consecutively. This is\n   * due to how the behavior of `RegExp.prototype.test` is\n   * specified in [ECMA-262](https://tc39.es/ecma262/#sec-regexpbuiltinexec)\n   * (`RegExp` preserves the index of the last match when the global or sticky flag is used).\n   * Due to this behavior, it is recommended that when using\n   * `Validators.pattern` you **do not** pass in a `RegExp` object with either the global or sticky\n   * flag enabled.\n   *\n   * ```typescript\n   * // Not recommended (since the `g` flag is used)\n   * const controlOne = new FormControl('1', Validators.pattern(/foo/g));\n   *\n   * // Good\n   * const controlTwo = new FormControl('1', Validators.pattern(/foo/));\n   * ```\n   *\n   * @param pattern A regular expression to be used as is to test the values, or a string.\n   * If a string is passed, the `^` character is prepended and the `$` character is\n   * appended to the provided string (if not already present), and the resulting regular\n   * expression is used to test the values.\n   *\n   * @returns A validator function that returns an error map with the\n   * `pattern` property if the validation check fails, otherwise `null`.\n   *\n   * @see {@link updateValueAndValidity()}\n   *\n   */\n  static pattern(pattern) {\n    return patternValidator(pattern);\n  }\n  /**\n   * @description\n   * Validator that performs no operation.\n   *\n   * @see {@link updateValueAndValidity()}\n   *\n   */\n  static nullValidator(control) {\n    return nullValidator(control);\n  }\n  static compose(validators) {\n    return compose(validators);\n  }\n  /**\n   * @description\n   * Compose multiple async validators into a single function that returns the union\n   * of the individual error objects for the provided control.\n   *\n   * @returns A validator function that returns an error map with the\n   * merged error objects of the async validators if the validation check fails, otherwise `null`.\n   *\n   * @see {@link updateValueAndValidity()}\n   *\n   */\n  static composeAsync(validators) {\n    return composeAsync(validators);\n  }\n}\n/**\n * Validator that requires the control's value to be greater than or equal to the provided number.\n * See `Validators.min` for additional information.\n */\nfunction minValidator(min) {\n  return control => {\n    if (isEmptyInputValue(control.value) || isEmptyInputValue(min)) {\n      return null; // don't validate empty values to allow optional controls\n    }\n    const value = parseFloat(control.value);\n    // Controls with NaN values after parsing should be treated as not having a\n    // minimum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-min\n    return !isNaN(value) && value < min ? {\n      'min': {\n        'min': min,\n        'actual': control.value\n      }\n    } : null;\n  };\n}\n/**\n * Validator that requires the control's value to be less than or equal to the provided number.\n * See `Validators.max` for additional information.\n */\nfunction maxValidator(max) {\n  return control => {\n    if (isEmptyInputValue(control.value) || isEmptyInputValue(max)) {\n      return null; // don't validate empty values to allow optional controls\n    }\n    const value = parseFloat(control.value);\n    // Controls with NaN values after parsing should be treated as not having a\n    // maximum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-max\n    return !isNaN(value) && value > max ? {\n      'max': {\n        'max': max,\n        'actual': control.value\n      }\n    } : null;\n  };\n}\n/**\n * Validator that requires the control have a non-empty value.\n * See `Validators.required` for additional information.\n */\nfunction requiredValidator(control) {\n  return isEmptyInputValue(control.value) ? {\n    'required': true\n  } : null;\n}\n/**\n * Validator that requires the control's value be true. This validator is commonly\n * used for required checkboxes.\n * See `Validators.requiredTrue` for additional information.\n */\nfunction requiredTrueValidator(control) {\n  return control.value === true ? null : {\n    'required': true\n  };\n}\n/**\n * Validator that requires the control's value pass an email validation test.\n * See `Validators.email` for additional information.\n */\nfunction emailValidator(control) {\n  if (isEmptyInputValue(control.value)) {\n    return null; // don't validate empty values to allow optional controls\n  }\n  return EMAIL_REGEXP.test(control.value) ? null : {\n    'email': true\n  };\n}\n/**\n * Validator that requires the length of the control's value to be greater than or equal\n * to the provided minimum length. See `Validators.minLength` for additional information.\n */\nfunction minLengthValidator(minLength) {\n  return control => {\n    if (isEmptyInputValue(control.value) || !hasValidLength(control.value)) {\n      // don't validate empty values to allow optional controls\n      // don't validate values without `length` property\n      return null;\n    }\n    return control.value.length < minLength ? {\n      'minlength': {\n        'requiredLength': minLength,\n        'actualLength': control.value.length\n      }\n    } : null;\n  };\n}\n/**\n * Validator that requires the length of the control's value to be less than or equal\n * to the provided maximum length. See `Validators.maxLength` for additional information.\n */\nfunction maxLengthValidator(maxLength) {\n  return control => {\n    return hasValidLength(control.value) && control.value.length > maxLength ? {\n      'maxlength': {\n        'requiredLength': maxLength,\n        'actualLength': control.value.length\n      }\n    } : null;\n  };\n}\n/**\n * Validator that requires the control's value to match a regex pattern.\n * See `Validators.pattern` for additional information.\n */\nfunction patternValidator(pattern) {\n  if (!pattern) return nullValidator;\n  let regex;\n  let regexStr;\n  if (typeof pattern === 'string') {\n    regexStr = '';\n    if (pattern.charAt(0) !== '^') regexStr += '^';\n    regexStr += pattern;\n    if (pattern.charAt(pattern.length - 1) !== '$') regexStr += '$';\n    regex = new RegExp(regexStr);\n  } else {\n    regexStr = pattern.toString();\n    regex = pattern;\n  }\n  return control => {\n    if (isEmptyInputValue(control.value)) {\n      return null; // don't validate empty values to allow optional controls\n    }\n    const value = control.value;\n    return regex.test(value) ? null : {\n      'pattern': {\n        'requiredPattern': regexStr,\n        'actualValue': value\n      }\n    };\n  };\n}\n/**\n * Function that has `ValidatorFn` shape, but performs no operation.\n */\nfunction nullValidator(control) {\n  return null;\n}\nfunction isPresent(o) {\n  return o != null;\n}\nfunction toObservable(value) {\n  const obs = ɵisPromise(value) ? from(value) : value;\n  if ((typeof ngDevMode === 'undefined' || ngDevMode) && !ɵisSubscribable(obs)) {\n    let errorMessage = `Expected async validator to return Promise or Observable.`;\n    // A synchronous validator will return object or null.\n    if (typeof value === 'object') {\n      errorMessage += ' Are you using a synchronous validator where an async validator is expected?';\n    }\n    throw new ɵRuntimeError(-1101 /* RuntimeErrorCode.WRONG_VALIDATOR_RETURN_TYPE */, errorMessage);\n  }\n  return obs;\n}\nfunction mergeErrors(arrayOfErrors) {\n  let res = {};\n  arrayOfErrors.forEach(errors => {\n    res = errors != null ? {\n      ...res,\n      ...errors\n    } : res;\n  });\n  return Object.keys(res).length === 0 ? null : res;\n}\nfunction executeValidators(control, validators) {\n  return validators.map(validator => validator(control));\n}\nfunction isValidatorFn(validator) {\n  return !validator.validate;\n}\n/**\n * Given the list of validators that may contain both functions as well as classes, return the list\n * of validator functions (convert validator classes into validator functions). This is needed to\n * have consistent structure in validators list before composing them.\n *\n * @param validators The set of validators that may contain validators both in plain function form\n *     as well as represented as a validator class.\n */\nfunction normalizeValidators(validators) {\n  return validators.map(validator => {\n    return isValidatorFn(validator) ? validator : c => validator.validate(c);\n  });\n}\n/**\n * Merges synchronous validators into a single validator function.\n * See `Validators.compose` for additional information.\n */\nfunction compose(validators) {\n  if (!validators) return null;\n  const presentValidators = validators.filter(isPresent);\n  if (presentValidators.length == 0) return null;\n  return function (control) {\n    return mergeErrors(executeValidators(control, presentValidators));\n  };\n}\n/**\n * Accepts a list of validators of different possible shapes (`Validator` and `ValidatorFn`),\n * normalizes the list (converts everything to `ValidatorFn`) and merges them into a single\n * validator function.\n */\nfunction composeValidators(validators) {\n  return validators != null ? compose(normalizeValidators(validators)) : null;\n}\n/**\n * Merges asynchronous validators into a single validator function.\n * See `Validators.composeAsync` for additional information.\n */\nfunction composeAsync(validators) {\n  if (!validators) return null;\n  const presentValidators = validators.filter(isPresent);\n  if (presentValidators.length == 0) return null;\n  return function (control) {\n    const observables = executeValidators(control, presentValidators).map(toObservable);\n    return forkJoin(observables).pipe(map(mergeErrors));\n  };\n}\n/**\n * Accepts a list of async validators of different possible shapes (`AsyncValidator` and\n * `AsyncValidatorFn`), normalizes the list (converts everything to `AsyncValidatorFn`) and merges\n * them into a single validator function.\n */\nfunction composeAsyncValidators(validators) {\n  return validators != null ? composeAsync(normalizeValidators(validators)) : null;\n}\n/**\n * Merges raw control validators with a given directive validator and returns the combined list of\n * validators as an array.\n */\nfunction mergeValidators(controlValidators, dirValidator) {\n  if (controlValidators === null) return [dirValidator];\n  return Array.isArray(controlValidators) ? [...controlValidators, dirValidator] : [controlValidators, dirValidator];\n}\n/**\n * Retrieves the list of raw synchronous validators attached to a given control.\n */\nfunction getControlValidators(control) {\n  return control._rawValidators;\n}\n/**\n * Retrieves the list of raw asynchronous validators attached to a given control.\n */\nfunction getControlAsyncValidators(control) {\n  return control._rawAsyncValidators;\n}\n/**\n * Accepts a singleton validator, an array, or null, and returns an array type with the provided\n * validators.\n *\n * @param validators A validator, validators, or null.\n * @returns A validators array.\n */\nfunction makeValidatorsArray(validators) {\n  if (!validators) return [];\n  return Array.isArray(validators) ? validators : [validators];\n}\n/**\n * Determines whether a validator or validators array has a given validator.\n *\n * @param validators The validator or validators to compare against.\n * @param validator The validator to check.\n * @returns Whether the validator is present.\n */\nfunction hasValidator(validators, validator) {\n  return Array.isArray(validators) ? validators.includes(validator) : validators === validator;\n}\n/**\n * Combines two arrays of validators into one. If duplicates are provided, only one will be added.\n *\n * @param validators The new validators.\n * @param currentValidators The base array of current validators.\n * @returns An array of validators.\n */\nfunction addValidators(validators, currentValidators) {\n  const current = makeValidatorsArray(currentValidators);\n  const validatorsToAdd = makeValidatorsArray(validators);\n  validatorsToAdd.forEach(v => {\n    // Note: if there are duplicate entries in the new validators array,\n    // only the first one would be added to the current list of validators.\n    // Duplicate ones would be ignored since `hasValidator` would detect\n    // the presence of a validator function and we update the current list in place.\n    if (!hasValidator(current, v)) {\n      current.push(v);\n    }\n  });\n  return current;\n}\nfunction removeValidators(validators, currentValidators) {\n  return makeValidatorsArray(currentValidators).filter(v => !hasValidator(validators, v));\n}\n\n/**\n * @description\n * Base class for control directives.\n *\n * This class is only used internally in the `ReactiveFormsModule` and the `FormsModule`.\n *\n * @publicApi\n */\nclass AbstractControlDirective {\n  constructor() {\n    /**\n     * Set of synchronous validators as they were provided while calling `setValidators` function.\n     * @internal\n     */\n    this._rawValidators = [];\n    /**\n     * Set of asynchronous validators as they were provided while calling `setAsyncValidators`\n     * function.\n     * @internal\n     */\n    this._rawAsyncValidators = [];\n    /*\n     * The set of callbacks to be invoked when directive instance is being destroyed.\n     */\n    this._onDestroyCallbacks = [];\n  }\n  /**\n   * @description\n   * Reports the value of the control if it is present, otherwise null.\n   */\n  get value() {\n    return this.control ? this.control.value : null;\n  }\n  /**\n   * @description\n   * Reports whether the control is valid. A control is considered valid if no\n   * validation errors exist with the current value.\n   * If the control is not present, null is returned.\n   */\n  get valid() {\n    return this.control ? this.control.valid : null;\n  }\n  /**\n   * @description\n   * Reports whether the control is invalid, meaning that an error exists in the input value.\n   * If the control is not present, null is returned.\n   */\n  get invalid() {\n    return this.control ? this.control.invalid : null;\n  }\n  /**\n   * @description\n   * Reports whether a control is pending, meaning that async validation is occurring and\n   * errors are not yet available for the input value. If the control is not present, null is\n   * returned.\n   */\n  get pending() {\n    return this.control ? this.control.pending : null;\n  }\n  /**\n   * @description\n   * Reports whether the control is disabled, meaning that the control is disabled\n   * in the UI and is exempt from validation checks and excluded from aggregate\n   * values of ancestor controls. If the control is not present, null is returned.\n   */\n  get disabled() {\n    return this.control ? this.control.disabled : null;\n  }\n  /**\n   * @description\n   * Reports whether the control is enabled, meaning that the control is included in ancestor\n   * calculations of validity or value. If the control is not present, null is returned.\n   */\n  get enabled() {\n    return this.control ? this.control.enabled : null;\n  }\n  /**\n   * @description\n   * Reports the control's validation errors. If the control is not present, null is returned.\n   */\n  get errors() {\n    return this.control ? this.control.errors : null;\n  }\n  /**\n   * @description\n   * Reports whether the control is pristine, meaning that the user has not yet changed\n   * the value in the UI. If the control is not present, null is returned.\n   */\n  get pristine() {\n    return this.control ? this.control.pristine : null;\n  }\n  /**\n   * @description\n   * Reports whether the control is dirty, meaning that the user has changed\n   * the value in the UI. If the control is not present, null is returned.\n   */\n  get dirty() {\n    return this.control ? this.control.dirty : null;\n  }\n  /**\n   * @description\n   * Reports whether the control is touched, meaning that the user has triggered\n   * a `blur` event on it. If the control is not present, null is returned.\n   */\n  get touched() {\n    return this.control ? this.control.touched : null;\n  }\n  /**\n   * @description\n   * Reports the validation status of the control. Possible values include:\n   * 'VALID', 'INVALID', 'DISABLED', and 'PENDING'.\n   * If the control is not present, null is returned.\n   */\n  get status() {\n    return this.control ? this.control.status : null;\n  }\n  /**\n   * @description\n   * Reports whether the control is untouched, meaning that the user has not yet triggered\n   * a `blur` event on it. If the control is not present, null is returned.\n   */\n  get untouched() {\n    return this.control ? this.control.untouched : null;\n  }\n  /**\n   * @description\n   * Returns a multicasting observable that emits a validation status whenever it is\n   * calculated for the control. If the control is not present, null is returned.\n   */\n  get statusChanges() {\n    return this.control ? this.control.statusChanges : null;\n  }\n  /**\n   * @description\n   * Returns a multicasting observable of value changes for the control that emits every time the\n   * value of the control changes in the UI or programmatically.\n   * If the control is not present, null is returned.\n   */\n  get valueChanges() {\n    return this.control ? this.control.valueChanges : null;\n  }\n  /**\n   * @description\n   * Returns an array that represents the path from the top-level form to this control.\n   * Each index is the string name of the control on that level.\n   */\n  get path() {\n    return null;\n  }\n  /**\n   * Sets synchronous validators for this directive.\n   * @internal\n   */\n  _setValidators(validators) {\n    this._rawValidators = validators || [];\n    this._composedValidatorFn = composeValidators(this._rawValidators);\n  }\n  /**\n   * Sets asynchronous validators for this directive.\n   * @internal\n   */\n  _setAsyncValidators(validators) {\n    this._rawAsyncValidators = validators || [];\n    this._composedAsyncValidatorFn = composeAsyncValidators(this._rawAsyncValidators);\n  }\n  /**\n   * @description\n   * Synchronous validator function composed of all the synchronous validators registered with this\n   * directive.\n   */\n  get validator() {\n    return this._composedValidatorFn || null;\n  }\n  /**\n   * @description\n   * Asynchronous validator function composed of all the asynchronous validators registered with\n   * this directive.\n   */\n  get asyncValidator() {\n    return this._composedAsyncValidatorFn || null;\n  }\n  /**\n   * Internal function to register callbacks that should be invoked\n   * when directive instance is being destroyed.\n   * @internal\n   */\n  _registerOnDestroy(fn) {\n    this._onDestroyCallbacks.push(fn);\n  }\n  /**\n   * Internal function to invoke all registered \"on destroy\" callbacks.\n   * Note: calling this function also clears the list of callbacks.\n   * @internal\n   */\n  _invokeOnDestroyCallbacks() {\n    this._onDestroyCallbacks.forEach(fn => fn());\n    this._onDestroyCallbacks = [];\n  }\n  /**\n   * @description\n   * Resets the control with the provided value if the control is present.\n   */\n  reset(value = undefined) {\n    if (this.control) this.control.reset(value);\n  }\n  /**\n   * @description\n   * Reports whether the control with the given path has the error specified.\n   *\n   * @param errorCode The code of the error to check\n   * @param path A list of control names that designates how to move from the current control\n   * to the control that should be queried for errors.\n   *\n   * @usageNotes\n   * For example, for the following `FormGroup`:\n   *\n   * ```\n   * form = new FormGroup({\n   *   address: new FormGroup({ street: new FormControl() })\n   * });\n   * ```\n   *\n   * The path to the 'street' control from the root form would be 'address' -> 'street'.\n   *\n   * It can be provided to this method in one of two formats:\n   *\n   * 1. An array of string control names, e.g. `['address', 'street']`\n   * 1. A period-delimited list of control names in one string, e.g. `'address.street'`\n   *\n   * If no path is given, this method checks for the error on the current control.\n   *\n   * @returns whether the given error is present in the control at the given path.\n   *\n   * If the control is not present, false is returned.\n   */\n  hasError(errorCode, path) {\n    return this.control ? this.control.hasError(errorCode, path) : false;\n  }\n  /**\n   * @description\n   * Reports error data for the control with the given path.\n   *\n   * @param errorCode The code of the error to check\n   * @param path A list of control names that designates how to move from the current control\n   * to the control that should be queried for errors.\n   *\n   * @usageNotes\n   * For example, for the following `FormGroup`:\n   *\n   * ```\n   * form = new FormGroup({\n   *   address: new FormGroup({ street: new FormControl() })\n   * });\n   * ```\n   *\n   * The path to the 'street' control from the root form would be 'address' -> 'street'.\n   *\n   * It can be provided to this method in one of two formats:\n   *\n   * 1. An array of string control names, e.g. `['address', 'street']`\n   * 1. A period-delimited list of control names in one string, e.g. `'address.street'`\n   *\n   * @returns error data for that particular error. If the control or error is not present,\n   * null is returned.\n   */\n  getError(errorCode, path) {\n    return this.control ? this.control.getError(errorCode, path) : null;\n  }\n}\n\n/**\n * @description\n * A base class for directives that contain multiple registered instances of `NgControl`.\n * Only used by the forms module.\n *\n * @publicApi\n */\nclass ControlContainer extends AbstractControlDirective {\n  /**\n   * @description\n   * The top-level form directive for the control.\n   */\n  get formDirective() {\n    return null;\n  }\n  /**\n   * @description\n   * The path to this group.\n   */\n  get path() {\n    return null;\n  }\n}\n\n/**\n * @description\n * A base class that all `FormControl`-based directives extend. It binds a `FormControl`\n * object to a DOM element.\n *\n * @publicApi\n */\nclass NgControl extends AbstractControlDirective {\n  constructor() {\n    super(...arguments);\n    /**\n     * @description\n     * The parent form for the control.\n     *\n     * @internal\n     */\n    this._parent = null;\n    /**\n     * @description\n     * The name for the control\n     */\n    this.name = null;\n    /**\n     * @description\n     * The value accessor for the control\n     */\n    this.valueAccessor = null;\n  }\n}\n\n// DO NOT REFACTOR!\n// Each status is represented by a separate function to make sure that\n// advanced Closure Compiler optimizations related to property renaming\n// can work correctly.\nclass AbstractControlStatus {\n  constructor(cd) {\n    this._cd = cd;\n  }\n  get isTouched() {\n    return !!this._cd?.control?.touched;\n  }\n  get isUntouched() {\n    return !!this._cd?.control?.untouched;\n  }\n  get isPristine() {\n    return !!this._cd?.control?.pristine;\n  }\n  get isDirty() {\n    return !!this._cd?.control?.dirty;\n  }\n  get isValid() {\n    return !!this._cd?.control?.valid;\n  }\n  get isInvalid() {\n    return !!this._cd?.control?.invalid;\n  }\n  get isPending() {\n    return !!this._cd?.control?.pending;\n  }\n  get isSubmitted() {\n    // We check for the `submitted` field from `NgForm` and `FormGroupDirective` classes, but\n    // we avoid instanceof checks to prevent non-tree-shakable references to those types.\n    return !!this._cd?.submitted;\n  }\n}\nconst ngControlStatusHost = {\n  '[class.ng-untouched]': 'isUntouched',\n  '[class.ng-touched]': 'isTouched',\n  '[class.ng-pristine]': 'isPristine',\n  '[class.ng-dirty]': 'isDirty',\n  '[class.ng-valid]': 'isValid',\n  '[class.ng-invalid]': 'isInvalid',\n  '[class.ng-pending]': 'isPending'\n};\nconst ngGroupStatusHost = {\n  ...ngControlStatusHost,\n  '[class.ng-submitted]': 'isSubmitted'\n};\n/**\n * @description\n * Directive automatically applied to Angular form controls that sets CSS classes\n * based on control status.\n *\n * @usageNotes\n *\n * ### CSS classes applied\n *\n * The following classes are applied as the properties become true:\n *\n * * ng-valid\n * * ng-invalid\n * * ng-pending\n * * ng-pristine\n * * ng-dirty\n * * ng-untouched\n * * ng-touched\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet NgControlStatus = /*#__PURE__*/(() => {\n  class NgControlStatus extends AbstractControlStatus {\n    constructor(cd) {\n      super(cd);\n    }\n    static {\n      this.ɵfac = function NgControlStatus_Factory(t) {\n        return new (t || NgControlStatus)(i0.ɵɵdirectiveInject(NgControl, 2));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: NgControlStatus,\n        selectors: [[\"\", \"formControlName\", \"\"], [\"\", \"ngModel\", \"\"], [\"\", \"formControl\", \"\"]],\n        hostVars: 14,\n        hostBindings: function NgControlStatus_HostBindings(rf, ctx) {\n          if (rf & 2) {\n            i0.ɵɵclassProp(\"ng-untouched\", ctx.isUntouched)(\"ng-touched\", ctx.isTouched)(\"ng-pristine\", ctx.isPristine)(\"ng-dirty\", ctx.isDirty)(\"ng-valid\", ctx.isValid)(\"ng-invalid\", ctx.isInvalid)(\"ng-pending\", ctx.isPending);\n          }\n        },\n        features: [i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return NgControlStatus;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n * Directive automatically applied to Angular form groups that sets CSS classes\n * based on control status (valid/invalid/dirty/etc). On groups, this includes the additional\n * class ng-submitted.\n *\n * @see {@link NgControlStatus}\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet NgControlStatusGroup = /*#__PURE__*/(() => {\n  class NgControlStatusGroup extends AbstractControlStatus {\n    constructor(cd) {\n      super(cd);\n    }\n    static {\n      this.ɵfac = function NgControlStatusGroup_Factory(t) {\n        return new (t || NgControlStatusGroup)(i0.ɵɵdirectiveInject(ControlContainer, 10));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: NgControlStatusGroup,\n        selectors: [[\"\", \"formGroupName\", \"\"], [\"\", \"formArrayName\", \"\"], [\"\", \"ngModelGroup\", \"\"], [\"\", \"formGroup\", \"\"], [\"form\", 3, \"ngNoForm\", \"\"], [\"\", \"ngForm\", \"\"]],\n        hostVars: 16,\n        hostBindings: function NgControlStatusGroup_HostBindings(rf, ctx) {\n          if (rf & 2) {\n            i0.ɵɵclassProp(\"ng-untouched\", ctx.isUntouched)(\"ng-touched\", ctx.isTouched)(\"ng-pristine\", ctx.isPristine)(\"ng-dirty\", ctx.isDirty)(\"ng-valid\", ctx.isValid)(\"ng-invalid\", ctx.isInvalid)(\"ng-pending\", ctx.isPending)(\"ng-submitted\", ctx.isSubmitted);\n          }\n        },\n        features: [i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return NgControlStatusGroup;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst formControlNameExample = `\n  <div [formGroup]=\"myGroup\">\n    <input formControlName=\"firstName\">\n  </div>\n\n  In your class:\n\n  this.myGroup = new FormGroup({\n      firstName: new FormControl()\n  });`;\nconst formGroupNameExample = `\n  <div [formGroup]=\"myGroup\">\n      <div formGroupName=\"person\">\n        <input formControlName=\"firstName\">\n      </div>\n  </div>\n\n  In your class:\n\n  this.myGroup = new FormGroup({\n      person: new FormGroup({ firstName: new FormControl() })\n  });`;\nconst formArrayNameExample = `\n  <div [formGroup]=\"myGroup\">\n    <div formArrayName=\"cities\">\n      <div *ngFor=\"let city of cityArray.controls; index as i\">\n        <input [formControlName]=\"i\">\n      </div>\n    </div>\n  </div>\n\n  In your class:\n\n  this.cityArray = new FormArray([new FormControl('SF')]);\n  this.myGroup = new FormGroup({\n    cities: this.cityArray\n  });`;\nconst ngModelGroupExample = `\n  <form>\n      <div ngModelGroup=\"person\">\n        <input [(ngModel)]=\"person.name\" name=\"firstName\">\n      </div>\n  </form>`;\nconst ngModelWithFormGroupExample = `\n  <div [formGroup]=\"myGroup\">\n      <input formControlName=\"firstName\">\n      <input [(ngModel)]=\"showMoreControls\" [ngModelOptions]=\"{standalone: true}\">\n  </div>\n`;\nfunction controlParentException() {\n  return new ɵRuntimeError(1050 /* RuntimeErrorCode.FORM_CONTROL_NAME_MISSING_PARENT */, `formControlName must be used with a parent formGroup directive.  You'll want to add a formGroup\n      directive and pass it an existing FormGroup instance (you can create one in your class).\n\n    Example:\n\n    ${formControlNameExample}`);\n}\nfunction ngModelGroupException() {\n  return new ɵRuntimeError(1051 /* RuntimeErrorCode.FORM_CONTROL_NAME_INSIDE_MODEL_GROUP */, `formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n      that also have a \"form\" prefix: formGroupName, formArrayName, or formGroup.\n\n      Option 1:  Update the parent to be formGroupName (reactive form strategy)\n\n      ${formGroupNameExample}\n\n      Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n      ${ngModelGroupExample}`);\n}\nfunction missingFormException() {\n  return new ɵRuntimeError(1052 /* RuntimeErrorCode.FORM_GROUP_MISSING_INSTANCE */, `formGroup expects a FormGroup instance. Please pass one in.\n\n      Example:\n\n      ${formControlNameExample}`);\n}\nfunction groupParentException() {\n  return new ɵRuntimeError(1053 /* RuntimeErrorCode.FORM_GROUP_NAME_MISSING_PARENT */, `formGroupName must be used with a parent formGroup directive.  You'll want to add a formGroup\n    directive and pass it an existing FormGroup instance (you can create one in your class).\n\n    Example:\n\n    ${formGroupNameExample}`);\n}\nfunction arrayParentException() {\n  return new ɵRuntimeError(1054 /* RuntimeErrorCode.FORM_ARRAY_NAME_MISSING_PARENT */, `formArrayName must be used with a parent formGroup directive.  You'll want to add a formGroup\n      directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      ${formArrayNameExample}`);\n}\nconst disabledAttrWarning = `\n  It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n  when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n  you. We recommend using this approach to avoid 'changed after checked' errors.\n\n  Example:\n  // Specify the \\`disabled\\` property at control creation time:\n  form = new FormGroup({\n    first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n    last: new FormControl('Drew', Validators.required)\n  });\n\n  // Controls can also be enabled/disabled after creation:\n  form.get('first')?.enable();\n  form.get('last')?.disable();\n`;\nconst asyncValidatorsDroppedWithOptsWarning = `\n  It looks like you're constructing using a FormControl with both an options argument and an\n  async validators argument. Mixing these arguments will cause your async validators to be dropped.\n  You should either put all your validators in the options object, or in separate validators\n  arguments. For example:\n\n  // Using validators arguments\n  fc = new FormControl(42, Validators.required, myAsyncValidator);\n\n  // Using AbstractControlOptions\n  fc = new FormControl(42, {validators: Validators.required, asyncValidators: myAV});\n\n  // Do NOT mix them: async validators will be dropped!\n  fc = new FormControl(42, {validators: Validators.required}, /* Oops! */ myAsyncValidator);\n`;\nfunction ngModelWarning(directiveName) {\n  return `\n  It looks like you're using ngModel on the same form field as ${directiveName}.\n  Support for using the ngModel input property and ngModelChange event with\n  reactive form directives has been deprecated in Angular v6 and will be removed\n  in a future version of Angular.\n\n  For more information on this, see our API docs here:\n  https://angular.io/api/forms/${directiveName === 'formControl' ? 'FormControlDirective' : 'FormControlName'}#use-with-ngmodel\n  `;\n}\nfunction describeKey(isFormGroup, key) {\n  return isFormGroup ? `with name: '${key}'` : `at index: ${key}`;\n}\nfunction noControlsError(isFormGroup) {\n  return `\n    There are no form controls registered with this ${isFormGroup ? 'group' : 'array'} yet. If you're using ngModel,\n    you may want to check next tick (e.g. use setTimeout).\n  `;\n}\nfunction missingControlError(isFormGroup, key) {\n  return `Cannot find form control ${describeKey(isFormGroup, key)}`;\n}\nfunction missingControlValueError(isFormGroup, key) {\n  return `Must supply a value for form control ${describeKey(isFormGroup, key)}`;\n}\n\n/**\n * Reports that a control is valid, meaning that no errors exist in the input value.\n *\n * @see {@link status}\n */\nconst VALID = 'VALID';\n/**\n * Reports that a control is invalid, meaning that an error exists in the input value.\n *\n * @see {@link status}\n */\nconst INVALID = 'INVALID';\n/**\n * Reports that a control is pending, meaning that async validation is occurring and\n * errors are not yet available for the input value.\n *\n * @see {@link markAsPending}\n * @see {@link status}\n */\nconst PENDING = 'PENDING';\n/**\n * Reports that a control is disabled, meaning that the control is exempt from ancestor\n * calculations of validity or value.\n *\n * @see {@link markAsDisabled}\n * @see {@link status}\n */\nconst DISABLED = 'DISABLED';\n/**\n * Gets validators from either an options object or given validators.\n */\nfunction pickValidators(validatorOrOpts) {\n  return (isOptionsObj(validatorOrOpts) ? validatorOrOpts.validators : validatorOrOpts) || null;\n}\n/**\n * Creates validator function by combining provided validators.\n */\nfunction coerceToValidator(validator) {\n  return Array.isArray(validator) ? composeValidators(validator) : validator || null;\n}\n/**\n * Gets async validators from either an options object or given validators.\n */\nfunction pickAsyncValidators(asyncValidator, validatorOrOpts) {\n  if (typeof ngDevMode === 'undefined' || ngDevMode) {\n    if (isOptionsObj(validatorOrOpts) && asyncValidator) {\n      console.warn(asyncValidatorsDroppedWithOptsWarning);\n    }\n  }\n  return (isOptionsObj(validatorOrOpts) ? validatorOrOpts.asyncValidators : asyncValidator) || null;\n}\n/**\n * Creates async validator function by combining provided async validators.\n */\nfunction coerceToAsyncValidator(asyncValidator) {\n  return Array.isArray(asyncValidator) ? composeAsyncValidators(asyncValidator) : asyncValidator || null;\n}\nfunction isOptionsObj(validatorOrOpts) {\n  return validatorOrOpts != null && !Array.isArray(validatorOrOpts) && typeof validatorOrOpts === 'object';\n}\nfunction assertControlPresent(parent, isGroup, key) {\n  const controls = parent.controls;\n  const collection = isGroup ? Object.keys(controls) : controls;\n  if (!collection.length) {\n    throw new ɵRuntimeError(1000 /* RuntimeErrorCode.NO_CONTROLS */, typeof ngDevMode === 'undefined' || ngDevMode ? noControlsError(isGroup) : '');\n  }\n  if (!controls[key]) {\n    throw new ɵRuntimeError(1001 /* RuntimeErrorCode.MISSING_CONTROL */, typeof ngDevMode === 'undefined' || ngDevMode ? missingControlError(isGroup, key) : '');\n  }\n}\nfunction assertAllValuesPresent(control, isGroup, value) {\n  control._forEachChild((_, key) => {\n    if (value[key] === undefined) {\n      throw new ɵRuntimeError(1002 /* RuntimeErrorCode.MISSING_CONTROL_VALUE */, typeof ngDevMode === 'undefined' || ngDevMode ? missingControlValueError(isGroup, key) : '');\n    }\n  });\n}\n// clang-format on\n/**\n * This is the base class for `FormControl`, `FormGroup`, and `FormArray`.\n *\n * It provides some of the shared behavior that all controls and groups of controls have, like\n * running validators, calculating status, and resetting state. It also defines the properties\n * that are shared between all sub-classes, like `value`, `valid`, and `dirty`. It shouldn't be\n * instantiated directly.\n *\n * The first type parameter TValue represents the value type of the control (`control.value`).\n * The optional type parameter TRawValue  represents the raw value type (`control.getRawValue()`).\n *\n * @see [Forms Guide](/guide/forms)\n * @see [Reactive Forms Guide](/guide/reactive-forms)\n * @see [Dynamic Forms Guide](/guide/dynamic-form)\n *\n * @publicApi\n */\nclass AbstractControl {\n  /**\n   * Initialize the AbstractControl instance.\n   *\n   * @param validators The function or array of functions that is used to determine the validity of\n   *     this control synchronously.\n   * @param asyncValidators The function or array of functions that is used to determine validity of\n   *     this control asynchronously.\n   */\n  constructor(validators, asyncValidators) {\n    /** @internal */\n    this._pendingDirty = false;\n    /**\n     * Indicates that a control has its own pending asynchronous validation in progress.\n     *\n     * @internal\n     */\n    this._hasOwnPendingAsyncValidator = false;\n    /** @internal */\n    this._pendingTouched = false;\n    /** @internal */\n    this._onCollectionChange = () => {};\n    this._parent = null;\n    /**\n     * A control is `pristine` if the user has not yet changed\n     * the value in the UI.\n     *\n     * @returns True if the user has not yet changed the value in the UI; compare `dirty`.\n     * Programmatic changes to a control's value do not mark it dirty.\n     */\n    this.pristine = true;\n    /**\n     * True if the control is marked as `touched`.\n     *\n     * A control is marked `touched` once the user has triggered\n     * a `blur` event on it.\n     */\n    this.touched = false;\n    /** @internal */\n    this._onDisabledChange = [];\n    this._assignValidators(validators);\n    this._assignAsyncValidators(asyncValidators);\n  }\n  /**\n   * Returns the function that is used to determine the validity of this control synchronously.\n   * If multiple validators have been added, this will be a single composed function.\n   * See `Validators.compose()` for additional information.\n   */\n  get validator() {\n    return this._composedValidatorFn;\n  }\n  set validator(validatorFn) {\n    this._rawValidators = this._composedValidatorFn = validatorFn;\n  }\n  /**\n   * Returns the function that is used to determine the validity of this control asynchronously.\n   * If multiple validators have been added, this will be a single composed function.\n   * See `Validators.compose()` for additional information.\n   */\n  get asyncValidator() {\n    return this._composedAsyncValidatorFn;\n  }\n  set asyncValidator(asyncValidatorFn) {\n    this._rawAsyncValidators = this._composedAsyncValidatorFn = asyncValidatorFn;\n  }\n  /**\n   * The parent control.\n   */\n  get parent() {\n    return this._parent;\n  }\n  /**\n   * A control is `valid` when its `status` is `VALID`.\n   *\n   * @see {@link AbstractControl.status}\n   *\n   * @returns True if the control has passed all of its validation tests,\n   * false otherwise.\n   */\n  get valid() {\n    return this.status === VALID;\n  }\n  /**\n   * A control is `invalid` when its `status` is `INVALID`.\n   *\n   * @see {@link AbstractControl.status}\n   *\n   * @returns True if this control has failed one or more of its validation checks,\n   * false otherwise.\n   */\n  get invalid() {\n    return this.status === INVALID;\n  }\n  /**\n   * A control is `pending` when its `status` is `PENDING`.\n   *\n   * @see {@link AbstractControl.status}\n   *\n   * @returns True if this control is in the process of conducting a validation check,\n   * false otherwise.\n   */\n  get pending() {\n    return this.status == PENDING;\n  }\n  /**\n   * A control is `disabled` when its `status` is `DISABLED`.\n   *\n   * Disabled controls are exempt from validation checks and\n   * are not included in the aggregate value of their ancestor\n   * controls.\n   *\n   * @see {@link AbstractControl.status}\n   *\n   * @returns True if the control is disabled, false otherwise.\n   */\n  get disabled() {\n    return this.status === DISABLED;\n  }\n  /**\n   * A control is `enabled` as long as its `status` is not `DISABLED`.\n   *\n   * @returns True if the control has any status other than 'DISABLED',\n   * false if the status is 'DISABLED'.\n   *\n   * @see {@link AbstractControl.status}\n   *\n   */\n  get enabled() {\n    return this.status !== DISABLED;\n  }\n  /**\n   * A control is `dirty` if the user has changed the value\n   * in the UI.\n   *\n   * @returns True if the user has changed the value of this control in the UI; compare `pristine`.\n   * Programmatic changes to a control's value do not mark it dirty.\n   */\n  get dirty() {\n    return !this.pristine;\n  }\n  /**\n   * True if the control has not been marked as touched\n   *\n   * A control is `untouched` if the user has not yet triggered\n   * a `blur` event on it.\n   */\n  get untouched() {\n    return !this.touched;\n  }\n  /**\n   * Reports the update strategy of the `AbstractControl` (meaning\n   * the event on which the control updates itself).\n   * Possible values: `'change'` | `'blur'` | `'submit'`\n   * Default value: `'change'`\n   */\n  get updateOn() {\n    return this._updateOn ? this._updateOn : this.parent ? this.parent.updateOn : 'change';\n  }\n  /**\n   * Sets the synchronous validators that are active on this control.  Calling\n   * this overwrites any existing synchronous validators.\n   *\n   * When you add or remove a validator at run time, you must call\n   * `updateValueAndValidity()` for the new validation to take effect.\n   *\n   * If you want to add a new validator without affecting existing ones, consider\n   * using `addValidators()` method instead.\n   */\n  setValidators(validators) {\n    this._assignValidators(validators);\n  }\n  /**\n   * Sets the asynchronous validators that are active on this control. Calling this\n   * overwrites any existing asynchronous validators.\n   *\n   * When you add or remove a validator at run time, you must call\n   * `updateValueAndValidity()` for the new validation to take effect.\n   *\n   * If you want to add a new validator without affecting existing ones, consider\n   * using `addAsyncValidators()` method instead.\n   */\n  setAsyncValidators(validators) {\n    this._assignAsyncValidators(validators);\n  }\n  /**\n   * Add a synchronous validator or validators to this control, without affecting other validators.\n   *\n   * When you add or remove a validator at run time, you must call\n   * `updateValueAndValidity()` for the new validation to take effect.\n   *\n   * Adding a validator that already exists will have no effect. If duplicate validator functions\n   * are present in the `validators` array, only the first instance would be added to a form\n   * control.\n   *\n   * @param validators The new validator function or functions to add to this control.\n   */\n  addValidators(validators) {\n    this.setValidators(addValidators(validators, this._rawValidators));\n  }\n  /**\n   * Add an asynchronous validator or validators to this control, without affecting other\n   * validators.\n   *\n   * When you add or remove a validator at run time, you must call\n   * `updateValueAndValidity()` for the new validation to take effect.\n   *\n   * Adding a validator that already exists will have no effect.\n   *\n   * @param validators The new asynchronous validator function or functions to add to this control.\n   */\n  addAsyncValidators(validators) {\n    this.setAsyncValidators(addValidators(validators, this._rawAsyncValidators));\n  }\n  /**\n   * Remove a synchronous validator from this control, without affecting other validators.\n   * Validators are compared by function reference; you must pass a reference to the exact same\n   * validator function as the one that was originally set. If a provided validator is not found,\n   * it is ignored.\n   *\n   * @usageNotes\n   *\n   * ### Reference to a ValidatorFn\n   *\n   * ```\n   * // Reference to the RequiredValidator\n   * const ctrl = new FormControl<string | null>('', Validators.required);\n   * ctrl.removeValidators(Validators.required);\n   *\n   * // Reference to anonymous function inside MinValidator\n   * const minValidator = Validators.min(3);\n   * const ctrl = new FormControl<string | null>('', minValidator);\n   * expect(ctrl.hasValidator(minValidator)).toEqual(true)\n   * expect(ctrl.hasValidator(Validators.min(3))).toEqual(false)\n   *\n   * ctrl.removeValidators(minValidator);\n   * ```\n   *\n   * When you add or remove a validator at run time, you must call\n   * `updateValueAndValidity()` for the new validation to take effect.\n   *\n   * @param validators The validator or validators to remove.\n   */\n  removeValidators(validators) {\n    this.setValidators(removeValidators(validators, this._rawValidators));\n  }\n  /**\n   * Remove an asynchronous validator from this control, without affecting other validators.\n   * Validators are compared by function reference; you must pass a reference to the exact same\n   * validator function as the one that was originally set. If a provided validator is not found, it\n   * is ignored.\n   *\n   * When you add or remove a validator at run time, you must call\n   * `updateValueAndValidity()` for the new validation to take effect.\n   *\n   * @param validators The asynchronous validator or validators to remove.\n   */\n  removeAsyncValidators(validators) {\n    this.setAsyncValidators(removeValidators(validators, this._rawAsyncValidators));\n  }\n  /**\n   * Check whether a synchronous validator function is present on this control. The provided\n   * validator must be a reference to the exact same function that was provided.\n   *\n   * @usageNotes\n   *\n   * ### Reference to a ValidatorFn\n   *\n   * ```\n   * // Reference to the RequiredValidator\n   * const ctrl = new FormControl<number | null>(0, Validators.required);\n   * expect(ctrl.hasValidator(Validators.required)).toEqual(true)\n   *\n   * // Reference to anonymous function inside MinValidator\n   * const minValidator = Validators.min(3);\n   * const ctrl = new FormControl<number | null>(0, minValidator);\n   * expect(ctrl.hasValidator(minValidator)).toEqual(true)\n   * expect(ctrl.hasValidator(Validators.min(3))).toEqual(false)\n   * ```\n   *\n   * @param validator The validator to check for presence. Compared by function reference.\n   * @returns Whether the provided validator was found on this control.\n   */\n  hasValidator(validator) {\n    return hasValidator(this._rawValidators, validator);\n  }\n  /**\n   * Check whether an asynchronous validator function is present on this control. The provided\n   * validator must be a reference to the exact same function that was provided.\n   *\n   * @param validator The asynchronous validator to check for presence. Compared by function\n   *     reference.\n   * @returns Whether the provided asynchronous validator was found on this control.\n   */\n  hasAsyncValidator(validator) {\n    return hasValidator(this._rawAsyncValidators, validator);\n  }\n  /**\n   * Empties out the synchronous validator list.\n   *\n   * When you add or remove a validator at run time, you must call\n   * `updateValueAndValidity()` for the new validation to take effect.\n   *\n   */\n  clearValidators() {\n    this.validator = null;\n  }\n  /**\n   * Empties out the async validator list.\n   *\n   * When you add or remove a validator at run time, you must call\n   * `updateValueAndValidity()` for the new validation to take effect.\n   *\n   */\n  clearAsyncValidators() {\n    this.asyncValidator = null;\n  }\n  /**\n   * Marks the control as `touched`. A control is touched by focus and\n   * blur events that do not change the value.\n   *\n   * @see {@link markAsUntouched()}\n   * @see {@link markAsDirty()}\n   * @see {@link markAsPristine()}\n   *\n   * @param opts Configuration options that determine how the control propagates changes\n   * and emits events after marking is applied.\n   * * `onlySelf`: When true, mark only this control. When false or not supplied,\n   * marks all direct ancestors. Default is false.\n   */\n  markAsTouched(opts = {}) {\n    this.touched = true;\n    if (this._parent && !opts.onlySelf) {\n      this._parent.markAsTouched(opts);\n    }\n  }\n  /**\n   * Marks the control and all its descendant controls as `touched`.\n   * @see {@link markAsTouched()}\n   */\n  markAllAsTouched() {\n    this.markAsTouched({\n      onlySelf: true\n    });\n    this._forEachChild(control => control.markAllAsTouched());\n  }\n  /**\n   * Marks the control as `untouched`.\n   *\n   * If the control has any children, also marks all children as `untouched`\n   * and recalculates the `touched` status of all parent controls.\n   *\n   * @see {@link markAsTouched()}\n   * @see {@link markAsDirty()}\n   * @see {@link markAsPristine()}\n   *\n   * @param opts Configuration options that determine how the control propagates changes\n   * and emits events after the marking is applied.\n   * * `onlySelf`: When true, mark only this control. When false or not supplied,\n   * marks all direct ancestors. Default is false.\n   */\n  markAsUntouched(opts = {}) {\n    this.touched = false;\n    this._pendingTouched = false;\n    this._forEachChild(control => {\n      control.markAsUntouched({\n        onlySelf: true\n      });\n    });\n    if (this._parent && !opts.onlySelf) {\n      this._parent._updateTouched(opts);\n    }\n  }\n  /**\n   * Marks the control as `dirty`. A control becomes dirty when\n   * the control's value is changed through the UI; compare `markAsTouched`.\n   *\n   * @see {@link markAsTouched()}\n   * @see {@link markAsUntouched()}\n   * @see {@link markAsPristine()}\n   *\n   * @param opts Configuration options that determine how the control propagates changes\n   * and emits events after marking is applied.\n   * * `onlySelf`: When true, mark only this control. When false or not supplied,\n   * marks all direct ancestors. Default is false.\n   */\n  markAsDirty(opts = {}) {\n    this.pristine = false;\n    if (this._parent && !opts.onlySelf) {\n      this._parent.markAsDirty(opts);\n    }\n  }\n  /**\n   * Marks the control as `pristine`.\n   *\n   * If the control has any children, marks all children as `pristine`,\n   * and recalculates the `pristine` status of all parent\n   * controls.\n   *\n   * @see {@link markAsTouched()}\n   * @see {@link markAsUntouched()}\n   * @see {@link markAsDirty()}\n   *\n   * @param opts Configuration options that determine how the control emits events after\n   * marking is applied.\n   * * `onlySelf`: When true, mark only this control. When false or not supplied,\n   * marks all direct ancestors. Default is false.\n   */\n  markAsPristine(opts = {}) {\n    this.pristine = true;\n    this._pendingDirty = false;\n    this._forEachChild(control => {\n      control.markAsPristine({\n        onlySelf: true\n      });\n    });\n    if (this._parent && !opts.onlySelf) {\n      this._parent._updatePristine(opts);\n    }\n  }\n  /**\n   * Marks the control as `pending`.\n   *\n   * A control is pending while the control performs async validation.\n   *\n   * @see {@link AbstractControl.status}\n   *\n   * @param opts Configuration options that determine how the control propagates changes and\n   * emits events after marking is applied.\n   * * `onlySelf`: When true, mark only this control. When false or not supplied,\n   * marks all direct ancestors. Default is false.\n   * * `emitEvent`: When true or not supplied (the default), the `statusChanges`\n   * observable emits an event with the latest status the control is marked pending.\n   * When false, no events are emitted.\n   *\n   */\n  markAsPending(opts = {}) {\n    this.status = PENDING;\n    if (opts.emitEvent !== false) {\n      this.statusChanges.emit(this.status);\n    }\n    if (this._parent && !opts.onlySelf) {\n      this._parent.markAsPending(opts);\n    }\n  }\n  /**\n   * Disables the control. This means the control is exempt from validation checks and\n   * excluded from the aggregate value of any parent. Its status is `DISABLED`.\n   *\n   * If the control has children, all children are also disabled.\n   *\n   * @see {@link AbstractControl.status}\n   *\n   * @param opts Configuration options that determine how the control propagates\n   * changes and emits events after the control is disabled.\n   * * `onlySelf`: When true, mark only this control. When false or not supplied,\n   * marks all direct ancestors. Default is false.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges`\n   * observables emit events with the latest status and value when the control is disabled.\n   * When false, no events are emitted.\n   */\n  disable(opts = {}) {\n    // If parent has been marked artificially dirty we don't want to re-calculate the\n    // parent's dirtiness based on the children.\n    const skipPristineCheck = this._parentMarkedDirty(opts.onlySelf);\n    this.status = DISABLED;\n    this.errors = null;\n    this._forEachChild(control => {\n      control.disable({\n        ...opts,\n        onlySelf: true\n      });\n    });\n    this._updateValue();\n    if (opts.emitEvent !== false) {\n      this.valueChanges.emit(this.value);\n      this.statusChanges.emit(this.status);\n    }\n    this._updateAncestors({\n      ...opts,\n      skipPristineCheck\n    });\n    this._onDisabledChange.forEach(changeFn => changeFn(true));\n  }\n  /**\n   * Enables the control. This means the control is included in validation checks and\n   * the aggregate value of its parent. Its status recalculates based on its value and\n   * its validators.\n   *\n   * By default, if the control has children, all children are enabled.\n   *\n   * @see {@link AbstractControl.status}\n   *\n   * @param opts Configure options that control how the control propagates changes and\n   * emits events when marked as untouched\n   * * `onlySelf`: When true, mark only this control. When false or not supplied,\n   * marks all direct ancestors. Default is false.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges`\n   * observables emit events with the latest status and value when the control is enabled.\n   * When false, no events are emitted.\n   */\n  enable(opts = {}) {\n    // If parent has been marked artificially dirty we don't want to re-calculate the\n    // parent's dirtiness based on the children.\n    const skipPristineCheck = this._parentMarkedDirty(opts.onlySelf);\n    this.status = VALID;\n    this._forEachChild(control => {\n      control.enable({\n        ...opts,\n        onlySelf: true\n      });\n    });\n    this.updateValueAndValidity({\n      onlySelf: true,\n      emitEvent: opts.emitEvent\n    });\n    this._updateAncestors({\n      ...opts,\n      skipPristineCheck\n    });\n    this._onDisabledChange.forEach(changeFn => changeFn(false));\n  }\n  _updateAncestors(opts) {\n    if (this._parent && !opts.onlySelf) {\n      this._parent.updateValueAndValidity(opts);\n      if (!opts.skipPristineCheck) {\n        this._parent._updatePristine();\n      }\n      this._parent._updateTouched();\n    }\n  }\n  /**\n   * Sets the parent of the control\n   *\n   * @param parent The new parent.\n   */\n  setParent(parent) {\n    this._parent = parent;\n  }\n  /**\n   * The raw value of this control. For most control implementations, the raw value will include\n   * disabled children.\n   */\n  getRawValue() {\n    return this.value;\n  }\n  /**\n   * Recalculates the value and validation status of the control.\n   *\n   * By default, it also updates the value and validity of its ancestors.\n   *\n   * @param opts Configuration options determine how the control propagates changes and emits events\n   * after updates and validity checks are applied.\n   * * `onlySelf`: When true, only update this control. When false or not supplied,\n   * update all direct ancestors. Default is false.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges`\n   * observables emit events with the latest status and value when the control is updated.\n   * When false, no events are emitted.\n   */\n  updateValueAndValidity(opts = {}) {\n    this._setInitialStatus();\n    this._updateValue();\n    if (this.enabled) {\n      this._cancelExistingSubscription();\n      this.errors = this._runValidator();\n      this.status = this._calculateStatus();\n      if (this.status === VALID || this.status === PENDING) {\n        this._runAsyncValidator(opts.emitEvent);\n      }\n    }\n    if (opts.emitEvent !== false) {\n      this.valueChanges.emit(this.value);\n      this.statusChanges.emit(this.status);\n    }\n    if (this._parent && !opts.onlySelf) {\n      this._parent.updateValueAndValidity(opts);\n    }\n  }\n  /** @internal */\n  _updateTreeValidity(opts = {\n    emitEvent: true\n  }) {\n    this._forEachChild(ctrl => ctrl._updateTreeValidity(opts));\n    this.updateValueAndValidity({\n      onlySelf: true,\n      emitEvent: opts.emitEvent\n    });\n  }\n  _setInitialStatus() {\n    this.status = this._allControlsDisabled() ? DISABLED : VALID;\n  }\n  _runValidator() {\n    return this.validator ? this.validator(this) : null;\n  }\n  _runAsyncValidator(emitEvent) {\n    if (this.asyncValidator) {\n      this.status = PENDING;\n      this._hasOwnPendingAsyncValidator = true;\n      const obs = toObservable(this.asyncValidator(this));\n      this._asyncValidationSubscription = obs.subscribe(errors => {\n        this._hasOwnPendingAsyncValidator = false;\n        // This will trigger the recalculation of the validation status, which depends on\n        // the state of the asynchronous validation (whether it is in progress or not). So, it is\n        // necessary that we have updated the `_hasOwnPendingAsyncValidator` boolean flag first.\n        this.setErrors(errors, {\n          emitEvent\n        });\n      });\n    }\n  }\n  _cancelExistingSubscription() {\n    if (this._asyncValidationSubscription) {\n      this._asyncValidationSubscription.unsubscribe();\n      this._hasOwnPendingAsyncValidator = false;\n    }\n  }\n  /**\n   * Sets errors on a form control when running validations manually, rather than automatically.\n   *\n   * Calling `setErrors` also updates the validity of the parent control.\n   *\n   * @param opts Configuration options that determine how the control propagates\n   * changes and emits events after the control errors are set.\n   * * `emitEvent`: When true or not supplied (the default), the `statusChanges`\n   * observable emits an event after the errors are set.\n   *\n   * @usageNotes\n   *\n   * ### Manually set the errors for a control\n   *\n   * ```\n   * const login = new FormControl('someLogin');\n   * login.setErrors({\n   *   notUnique: true\n   * });\n   *\n   * expect(login.valid).toEqual(false);\n   * expect(login.errors).toEqual({ notUnique: true });\n   *\n   * login.setValue('someOtherLogin');\n   *\n   * expect(login.valid).toEqual(true);\n   * ```\n   */\n  setErrors(errors, opts = {}) {\n    this.errors = errors;\n    this._updateControlsErrors(opts.emitEvent !== false);\n  }\n  /**\n   * Retrieves a child control given the control's name or path.\n   *\n   * @param path A dot-delimited string or array of string/number values that define the path to the\n   * control. If a string is provided, passing it as a string literal will result in improved type\n   * information. Likewise, if an array is provided, passing it `as const` will cause improved type\n   * information to be available.\n   *\n   * @usageNotes\n   * ### Retrieve a nested control\n   *\n   * For example, to get a `name` control nested within a `person` sub-group:\n   *\n   * * `this.form.get('person.name');`\n   *\n   * -OR-\n   *\n   * * `this.form.get(['person', 'name'] as const);` // `as const` gives improved typings\n   *\n   * ### Retrieve a control in a FormArray\n   *\n   * When accessing an element inside a FormArray, you can use an element index.\n   * For example, to get a `price` control from the first element in an `items` array you can use:\n   *\n   * * `this.form.get('items.0.price');`\n   *\n   * -OR-\n   *\n   * * `this.form.get(['items', 0, 'price']);`\n   */\n  get(path) {\n    let currPath = path;\n    if (currPath == null) return null;\n    if (!Array.isArray(currPath)) currPath = currPath.split('.');\n    if (currPath.length === 0) return null;\n    return currPath.reduce((control, name) => control && control._find(name), this);\n  }\n  /**\n   * @description\n   * Reports error data for the control with the given path.\n   *\n   * @param errorCode The code of the error to check\n   * @param path A list of control names that designates how to move from the current control\n   * to the control that should be queried for errors.\n   *\n   * @usageNotes\n   * For example, for the following `FormGroup`:\n   *\n   * ```\n   * form = new FormGroup({\n   *   address: new FormGroup({ street: new FormControl() })\n   * });\n   * ```\n   *\n   * The path to the 'street' control from the root form would be 'address' -> 'street'.\n   *\n   * It can be provided to this method in one of two formats:\n   *\n   * 1. An array of string control names, e.g. `['address', 'street']`\n   * 1. A period-delimited list of control names in one string, e.g. `'address.street'`\n   *\n   * @returns error data for that particular error. If the control or error is not present,\n   * null is returned.\n   */\n  getError(errorCode, path) {\n    const control = path ? this.get(path) : this;\n    return control && control.errors ? control.errors[errorCode] : null;\n  }\n  /**\n   * @description\n   * Reports whether the control with the given path has the error specified.\n   *\n   * @param errorCode The code of the error to check\n   * @param path A list of control names that designates how to move from the current control\n   * to the control that should be queried for errors.\n   *\n   * @usageNotes\n   * For example, for the following `FormGroup`:\n   *\n   * ```\n   * form = new FormGroup({\n   *   address: new FormGroup({ street: new FormControl() })\n   * });\n   * ```\n   *\n   * The path to the 'street' control from the root form would be 'address' -> 'street'.\n   *\n   * It can be provided to this method in one of two formats:\n   *\n   * 1. An array of string control names, e.g. `['address', 'street']`\n   * 1. A period-delimited list of control names in one string, e.g. `'address.street'`\n   *\n   * If no path is given, this method checks for the error on the current control.\n   *\n   * @returns whether the given error is present in the control at the given path.\n   *\n   * If the control is not present, false is returned.\n   */\n  hasError(errorCode, path) {\n    return !!this.getError(errorCode, path);\n  }\n  /**\n   * Retrieves the top-level ancestor of this control.\n   */\n  get root() {\n    let x = this;\n    while (x._parent) {\n      x = x._parent;\n    }\n    return x;\n  }\n  /** @internal */\n  _updateControlsErrors(emitEvent) {\n    this.status = this._calculateStatus();\n    if (emitEvent) {\n      this.statusChanges.emit(this.status);\n    }\n    if (this._parent) {\n      this._parent._updateControlsErrors(emitEvent);\n    }\n  }\n  /** @internal */\n  _initObservables() {\n    this.valueChanges = new EventEmitter();\n    this.statusChanges = new EventEmitter();\n  }\n  _calculateStatus() {\n    if (this._allControlsDisabled()) return DISABLED;\n    if (this.errors) return INVALID;\n    if (this._hasOwnPendingAsyncValidator || this._anyControlsHaveStatus(PENDING)) return PENDING;\n    if (this._anyControlsHaveStatus(INVALID)) return INVALID;\n    return VALID;\n  }\n  /** @internal */\n  _anyControlsHaveStatus(status) {\n    return this._anyControls(control => control.status === status);\n  }\n  /** @internal */\n  _anyControlsDirty() {\n    return this._anyControls(control => control.dirty);\n  }\n  /** @internal */\n  _anyControlsTouched() {\n    return this._anyControls(control => control.touched);\n  }\n  /** @internal */\n  _updatePristine(opts = {}) {\n    this.pristine = !this._anyControlsDirty();\n    if (this._parent && !opts.onlySelf) {\n      this._parent._updatePristine(opts);\n    }\n  }\n  /** @internal */\n  _updateTouched(opts = {}) {\n    this.touched = this._anyControlsTouched();\n    if (this._parent && !opts.onlySelf) {\n      this._parent._updateTouched(opts);\n    }\n  }\n  /** @internal */\n  _registerOnCollectionChange(fn) {\n    this._onCollectionChange = fn;\n  }\n  /** @internal */\n  _setUpdateStrategy(opts) {\n    if (isOptionsObj(opts) && opts.updateOn != null) {\n      this._updateOn = opts.updateOn;\n    }\n  }\n  /**\n   * Check to see if parent has been marked artificially dirty.\n   *\n   * @internal\n   */\n  _parentMarkedDirty(onlySelf) {\n    const parentDirty = this._parent && this._parent.dirty;\n    return !onlySelf && !!parentDirty && !this._parent._anyControlsDirty();\n  }\n  /** @internal */\n  _find(name) {\n    return null;\n  }\n  /**\n   * Internal implementation of the `setValidators` method. Needs to be separated out into a\n   * different method, because it is called in the constructor and it can break cases where\n   * a control is extended.\n   */\n  _assignValidators(validators) {\n    this._rawValidators = Array.isArray(validators) ? validators.slice() : validators;\n    this._composedValidatorFn = coerceToValidator(this._rawValidators);\n  }\n  /**\n   * Internal implementation of the `setAsyncValidators` method. Needs to be separated out into a\n   * different method, because it is called in the constructor and it can break cases where\n   * a control is extended.\n   */\n  _assignAsyncValidators(validators) {\n    this._rawAsyncValidators = Array.isArray(validators) ? validators.slice() : validators;\n    this._composedAsyncValidatorFn = coerceToAsyncValidator(this._rawAsyncValidators);\n  }\n}\n\n/**\n * Tracks the value and validity state of a group of `FormControl` instances.\n *\n * A `FormGroup` aggregates the values of each child `FormControl` into one object,\n * with each control name as the key.  It calculates its status by reducing the status values\n * of its children. For example, if one of the controls in a group is invalid, the entire\n * group becomes invalid.\n *\n * `FormGroup` is one of the four fundamental building blocks used to define forms in Angular,\n * along with `FormControl`, `FormArray`, and `FormRecord`.\n *\n * When instantiating a `FormGroup`, pass in a collection of child controls as the first\n * argument. The key for each child registers the name for the control.\n *\n * `FormGroup` is intended for use cases where the keys are known ahead of time.\n * If you need to dynamically add and remove controls, use {@link FormRecord} instead.\n *\n * `FormGroup` accepts an optional type parameter `TControl`, which is an object type with inner\n * control types as values.\n *\n * @usageNotes\n *\n * ### Create a form group with 2 controls\n *\n * ```\n * const form = new FormGroup({\n *   first: new FormControl('Nancy', Validators.minLength(2)),\n *   last: new FormControl('Drew'),\n * });\n *\n * console.log(form.value);   // {first: 'Nancy', last; 'Drew'}\n * console.log(form.status);  // 'VALID'\n * ```\n *\n * ### The type argument, and optional controls\n *\n * `FormGroup` accepts one generic argument, which is an object containing its inner controls.\n * This type will usually be inferred automatically, but you can always specify it explicitly if you\n * wish.\n *\n * If you have controls that are optional (i.e. they can be removed, you can use the `?` in the\n * type):\n *\n * ```\n * const form = new FormGroup<{\n *   first: FormControl<string|null>,\n *   middle?: FormControl<string|null>, // Middle name is optional.\n *   last: FormControl<string|null>,\n * }>({\n *   first: new FormControl('Nancy'),\n *   last: new FormControl('Drew'),\n * });\n * ```\n *\n * ### Create a form group with a group-level validator\n *\n * You include group-level validators as the second arg, or group-level async\n * validators as the third arg. These come in handy when you want to perform validation\n * that considers the value of more than one child control.\n *\n * ```\n * const form = new FormGroup({\n *   password: new FormControl('', Validators.minLength(2)),\n *   passwordConfirm: new FormControl('', Validators.minLength(2)),\n * }, passwordMatchValidator);\n *\n *\n * function passwordMatchValidator(g: FormGroup) {\n *    return g.get('password').value === g.get('passwordConfirm').value\n *       ? null : {'mismatch': true};\n * }\n * ```\n *\n * Like `FormControl` instances, you choose to pass in\n * validators and async validators as part of an options object.\n *\n * ```\n * const form = new FormGroup({\n *   password: new FormControl('')\n *   passwordConfirm: new FormControl('')\n * }, { validators: passwordMatchValidator, asyncValidators: otherValidator });\n * ```\n *\n * ### Set the updateOn property for all controls in a form group\n *\n * The options object is used to set a default value for each child\n * control's `updateOn` property. If you set `updateOn` to `'blur'` at the\n * group level, all child controls default to 'blur', unless the child\n * has explicitly specified a different `updateOn` value.\n *\n * ```ts\n * const c = new FormGroup({\n *   one: new FormControl()\n * }, { updateOn: 'blur' });\n * ```\n *\n * ### Using a FormGroup with optional controls\n *\n * It is possible to have optional controls in a FormGroup. An optional control can be removed later\n * using `removeControl`, and can be omitted when calling `reset`. Optional controls must be\n * declared optional in the group's type.\n *\n * ```ts\n * const c = new FormGroup<{one?: FormControl<string>}>({\n *   one: new FormControl('')\n * });\n * ```\n *\n * Notice that `c.value.one` has type `string|null|undefined`. This is because calling `c.reset({})`\n * without providing the optional key `one` will cause it to become `null`.\n *\n * @publicApi\n */\nclass FormGroup extends AbstractControl {\n  /**\n   * Creates a new `FormGroup` instance.\n   *\n   * @param controls A collection of child controls. The key for each child is the name\n   * under which it is registered.\n   *\n   * @param validatorOrOpts A synchronous validator function, or an array of\n   * such functions, or an `AbstractControlOptions` object that contains validation functions\n   * and a validation trigger.\n   *\n   * @param asyncValidator A single async validator or array of async validator functions\n   *\n   */\n  constructor(controls, validatorOrOpts, asyncValidator) {\n    super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));\n    (typeof ngDevMode === 'undefined' || ngDevMode) && validateFormGroupControls(controls);\n    this.controls = controls;\n    this._initObservables();\n    this._setUpdateStrategy(validatorOrOpts);\n    this._setUpControls();\n    this.updateValueAndValidity({\n      onlySelf: true,\n      // If `asyncValidator` is present, it will trigger control status change from `PENDING` to\n      // `VALID` or `INVALID`. The status should be broadcasted via the `statusChanges` observable,\n      // so we set `emitEvent` to `true` to allow that during the control creation process.\n      emitEvent: !!this.asyncValidator\n    });\n  }\n  registerControl(name, control) {\n    if (this.controls[name]) return this.controls[name];\n    this.controls[name] = control;\n    control.setParent(this);\n    control._registerOnCollectionChange(this._onCollectionChange);\n    return control;\n  }\n  addControl(name, control, options = {}) {\n    this.registerControl(name, control);\n    this.updateValueAndValidity({\n      emitEvent: options.emitEvent\n    });\n    this._onCollectionChange();\n  }\n  /**\n   * Remove a control from this group. In a strongly-typed group, required controls cannot be\n   * removed.\n   *\n   * This method also updates the value and validity of the control.\n   *\n   * @param name The control name to remove from the collection\n   * @param options Specifies whether this FormGroup instance should emit events after a\n   *     control is removed.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges` observables emit events with the latest status and value when the control is\n   * removed. When false, no events are emitted.\n   */\n  removeControl(name, options = {}) {\n    if (this.controls[name]) this.controls[name]._registerOnCollectionChange(() => {});\n    delete this.controls[name];\n    this.updateValueAndValidity({\n      emitEvent: options.emitEvent\n    });\n    this._onCollectionChange();\n  }\n  setControl(name, control, options = {}) {\n    if (this.controls[name]) this.controls[name]._registerOnCollectionChange(() => {});\n    delete this.controls[name];\n    if (control) this.registerControl(name, control);\n    this.updateValueAndValidity({\n      emitEvent: options.emitEvent\n    });\n    this._onCollectionChange();\n  }\n  contains(controlName) {\n    return this.controls.hasOwnProperty(controlName) && this.controls[controlName].enabled;\n  }\n  /**\n   * Sets the value of the `FormGroup`. It accepts an object that matches\n   * the structure of the group, with control names as keys.\n   *\n   * @usageNotes\n   * ### Set the complete value for the form group\n   *\n   * ```\n   * const form = new FormGroup({\n   *   first: new FormControl(),\n   *   last: new FormControl()\n   * });\n   *\n   * console.log(form.value);   // {first: null, last: null}\n   *\n   * form.setValue({first: 'Nancy', last: 'Drew'});\n   * console.log(form.value);   // {first: 'Nancy', last: 'Drew'}\n   * ```\n   *\n   * @throws When strict checks fail, such as setting the value of a control\n   * that doesn't exist or if you exclude a value of a control that does exist.\n   *\n   * @param value The new value for the control that matches the structure of the group.\n   * @param options Configuration options that determine how the control propagates changes\n   * and emits events after the value changes.\n   * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity\n   * updateValueAndValidity} method.\n   *\n   * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is\n   * false.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges`\n   * observables emit events with the latest status and value when the control value is updated.\n   * When false, no events are emitted.\n   */\n  setValue(value, options = {}) {\n    assertAllValuesPresent(this, true, value);\n    Object.keys(value).forEach(name => {\n      assertControlPresent(this, true, name);\n      this.controls[name].setValue(value[name], {\n        onlySelf: true,\n        emitEvent: options.emitEvent\n      });\n    });\n    this.updateValueAndValidity(options);\n  }\n  /**\n   * Patches the value of the `FormGroup`. It accepts an object with control\n   * names as keys, and does its best to match the values to the correct controls\n   * in the group.\n   *\n   * It accepts both super-sets and sub-sets of the group without throwing an error.\n   *\n   * @usageNotes\n   * ### Patch the value for a form group\n   *\n   * ```\n   * const form = new FormGroup({\n   *    first: new FormControl(),\n   *    last: new FormControl()\n   * });\n   * console.log(form.value);   // {first: null, last: null}\n   *\n   * form.patchValue({first: 'Nancy'});\n   * console.log(form.value);   // {first: 'Nancy', last: null}\n   * ```\n   *\n   * @param value The object that matches the structure of the group.\n   * @param options Configuration options that determine how the control propagates changes and\n   * emits events after the value is patched.\n   * * `onlySelf`: When true, each change only affects this control and not its parent. Default is\n   * true.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges` observables emit events with the latest status and value when the control value\n   * is updated. When false, no events are emitted. The configuration options are passed to\n   * the {@link AbstractControl#updateValueAndValidity updateValueAndValidity} method.\n   */\n  patchValue(value, options = {}) {\n    // Even though the `value` argument type doesn't allow `null` and `undefined` values, the\n    // `patchValue` can be called recursively and inner data structures might have these values, so\n    // we just ignore such cases when a field containing FormGroup instance receives `null` or\n    // `undefined` as a value.\n    if (value == null /* both `null` and `undefined` */) return;\n    Object.keys(value).forEach(name => {\n      // The compiler cannot see through the uninstantiated conditional type of `this.controls`, so\n      // `as any` is required.\n      const control = this.controls[name];\n      if (control) {\n        control.patchValue( /* Guaranteed to be present, due to the outer forEach. */value[name], {\n          onlySelf: true,\n          emitEvent: options.emitEvent\n        });\n      }\n    });\n    this.updateValueAndValidity(options);\n  }\n  /**\n   * Resets the `FormGroup`, marks all descendants `pristine` and `untouched` and sets\n   * the value of all descendants to their default values, or null if no defaults were provided.\n   *\n   * You reset to a specific form state by passing in a map of states\n   * that matches the structure of your form, with control names as keys. The state\n   * is a standalone value or a form state object with both a value and a disabled\n   * status.\n   *\n   * @param value Resets the control with an initial value,\n   * or an object that defines the initial value and disabled state.\n   *\n   * @param options Configuration options that determine how the control propagates changes\n   * and emits events when the group is reset.\n   * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is\n   * false.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges`\n   * observables emit events with the latest status and value when the control is reset.\n   * When false, no events are emitted.\n   * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity\n   * updateValueAndValidity} method.\n   *\n   * @usageNotes\n   *\n   * ### Reset the form group values\n   *\n   * ```ts\n   * const form = new FormGroup({\n   *   first: new FormControl('first name'),\n   *   last: new FormControl('last name')\n   * });\n   *\n   * console.log(form.value);  // {first: 'first name', last: 'last name'}\n   *\n   * form.reset({ first: 'name', last: 'last name' });\n   *\n   * console.log(form.value);  // {first: 'name', last: 'last name'}\n   * ```\n   *\n   * ### Reset the form group values and disabled status\n   *\n   * ```\n   * const form = new FormGroup({\n   *   first: new FormControl('first name'),\n   *   last: new FormControl('last name')\n   * });\n   *\n   * form.reset({\n   *   first: {value: 'name', disabled: true},\n   *   last: 'last'\n   * });\n   *\n   * console.log(form.value);  // {last: 'last'}\n   * console.log(form.get('first').status);  // 'DISABLED'\n   * ```\n   */\n  reset(value = {}, options = {}) {\n    this._forEachChild((control, name) => {\n      control.reset(value ? value[name] : null, {\n        onlySelf: true,\n        emitEvent: options.emitEvent\n      });\n    });\n    this._updatePristine(options);\n    this._updateTouched(options);\n    this.updateValueAndValidity(options);\n  }\n  /**\n   * The aggregate value of the `FormGroup`, including any disabled controls.\n   *\n   * Retrieves all values regardless of disabled status.\n   */\n  getRawValue() {\n    return this._reduceChildren({}, (acc, control, name) => {\n      acc[name] = control.getRawValue();\n      return acc;\n    });\n  }\n  /** @internal */\n  _syncPendingControls() {\n    let subtreeUpdated = this._reduceChildren(false, (updated, child) => {\n      return child._syncPendingControls() ? true : updated;\n    });\n    if (subtreeUpdated) this.updateValueAndValidity({\n      onlySelf: true\n    });\n    return subtreeUpdated;\n  }\n  /** @internal */\n  _forEachChild(cb) {\n    Object.keys(this.controls).forEach(key => {\n      // The list of controls can change (for ex. controls might be removed) while the loop\n      // is running (as a result of invoking Forms API in `valueChanges` subscription), so we\n      // have to null check before invoking the callback.\n      const control = this.controls[key];\n      control && cb(control, key);\n    });\n  }\n  /** @internal */\n  _setUpControls() {\n    this._forEachChild(control => {\n      control.setParent(this);\n      control._registerOnCollectionChange(this._onCollectionChange);\n    });\n  }\n  /** @internal */\n  _updateValue() {\n    this.value = this._reduceValue();\n  }\n  /** @internal */\n  _anyControls(condition) {\n    for (const [controlName, control] of Object.entries(this.controls)) {\n      if (this.contains(controlName) && condition(control)) {\n        return true;\n      }\n    }\n    return false;\n  }\n  /** @internal */\n  _reduceValue() {\n    let acc = {};\n    return this._reduceChildren(acc, (acc, control, name) => {\n      if (control.enabled || this.disabled) {\n        acc[name] = control.value;\n      }\n      return acc;\n    });\n  }\n  /** @internal */\n  _reduceChildren(initValue, fn) {\n    let res = initValue;\n    this._forEachChild((control, name) => {\n      res = fn(res, control, name);\n    });\n    return res;\n  }\n  /** @internal */\n  _allControlsDisabled() {\n    for (const controlName of Object.keys(this.controls)) {\n      if (this.controls[controlName].enabled) {\n        return false;\n      }\n    }\n    return Object.keys(this.controls).length > 0 || this.disabled;\n  }\n  /** @internal */\n  _find(name) {\n    return this.controls.hasOwnProperty(name) ? this.controls[name] : null;\n  }\n}\n/**\n * Will validate that none of the controls has a key with a dot\n * Throws other wise\n */\nfunction validateFormGroupControls(controls) {\n  const invalidKeys = Object.keys(controls).filter(key => key.includes('.'));\n  if (invalidKeys.length > 0) {\n    // TODO: make this an error once there are no more uses in G3\n    console.warn(`FormGroup keys cannot include \\`.\\`, please replace the keys for: ${invalidKeys.join(',')}.`);\n  }\n}\nconst UntypedFormGroup = FormGroup;\n/**\n * @description\n * Asserts that the given control is an instance of `FormGroup`\n *\n * @publicApi\n */\nconst isFormGroup = control => control instanceof FormGroup;\n/**\n * Tracks the value and validity state of a collection of `FormControl` instances, each of which has\n * the same value type.\n *\n * `FormRecord` is very similar to {@link FormGroup}, except it can be used with a dynamic keys,\n * with controls added and removed as needed.\n *\n * `FormRecord` accepts one generic argument, which describes the type of the controls it contains.\n *\n * @usageNotes\n *\n * ```\n * let numbers = new FormRecord({bill: new FormControl('415-123-456')});\n * numbers.addControl('bob', new FormControl('415-234-567'));\n * numbers.removeControl('bill');\n * ```\n *\n * @publicApi\n */\nclass FormRecord extends FormGroup {}\n/**\n * @description\n * Asserts that the given control is an instance of `FormRecord`\n *\n * @publicApi\n */\nconst isFormRecord = control => control instanceof FormRecord;\n\n/**\n * Token to provide to allow SetDisabledState to always be called when a CVA is added, regardless of\n * whether the control is disabled or enabled.\n *\n * @see {@link FormsModule#withconfig}\n */\nconst CALL_SET_DISABLED_STATE = /*#__PURE__*/new InjectionToken('CallSetDisabledState', {\n  providedIn: 'root',\n  factory: () => setDisabledStateDefault\n});\n/**\n * Whether to use the fixed setDisabledState behavior by default.\n */\nconst setDisabledStateDefault = 'always';\nfunction controlPath(name, parent) {\n  return [...parent.path, name];\n}\n/**\n * Links a Form control and a Form directive by setting up callbacks (such as `onChange`) on both\n * instances. This function is typically invoked when form directive is being initialized.\n *\n * @param control Form control instance that should be linked.\n * @param dir Directive that should be linked with a given control.\n */\nfunction setUpControl(control, dir, callSetDisabledState = setDisabledStateDefault) {\n  if (typeof ngDevMode === 'undefined' || ngDevMode) {\n    if (!control) _throwError(dir, 'Cannot find control with');\n    if (!dir.valueAccessor) _throwMissingValueAccessorError(dir);\n  }\n  setUpValidators(control, dir);\n  dir.valueAccessor.writeValue(control.value);\n  // The legacy behavior only calls the CVA's `setDisabledState` if the control is disabled.\n  // If the `callSetDisabledState` option is set to `always`, then this bug is fixed and\n  // the method is always called.\n  if (control.disabled || callSetDisabledState === 'always') {\n    dir.valueAccessor.setDisabledState?.(control.disabled);\n  }\n  setUpViewChangePipeline(control, dir);\n  setUpModelChangePipeline(control, dir);\n  setUpBlurPipeline(control, dir);\n  setUpDisabledChangeHandler(control, dir);\n}\n/**\n * Reverts configuration performed by the `setUpControl` control function.\n * Effectively disconnects form control with a given form directive.\n * This function is typically invoked when corresponding form directive is being destroyed.\n *\n * @param control Form control which should be cleaned up.\n * @param dir Directive that should be disconnected from a given control.\n * @param validateControlPresenceOnChange Flag that indicates whether onChange handler should\n *     contain asserts to verify that it's not called once directive is destroyed. We need this flag\n *     to avoid potentially breaking changes caused by better control cleanup introduced in #39235.\n */\nfunction cleanUpControl(control, dir, validateControlPresenceOnChange = true) {\n  const noop = () => {\n    if (validateControlPresenceOnChange && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n      _noControlError(dir);\n    }\n  };\n  // The `valueAccessor` field is typically defined on FromControl and FormControlName directive\n  // instances and there is a logic in `selectValueAccessor` function that throws if it's not the\n  // case. We still check the presence of `valueAccessor` before invoking its methods to make sure\n  // that cleanup works correctly if app code or tests are setup to ignore the error thrown from\n  // `selectValueAccessor`. See https://github.com/angular/angular/issues/40521.\n  if (dir.valueAccessor) {\n    dir.valueAccessor.registerOnChange(noop);\n    dir.valueAccessor.registerOnTouched(noop);\n  }\n  cleanUpValidators(control, dir);\n  if (control) {\n    dir._invokeOnDestroyCallbacks();\n    control._registerOnCollectionChange(() => {});\n  }\n}\nfunction registerOnValidatorChange(validators, onChange) {\n  validators.forEach(validator => {\n    if (validator.registerOnValidatorChange) validator.registerOnValidatorChange(onChange);\n  });\n}\n/**\n * Sets up disabled change handler function on a given form control if ControlValueAccessor\n * associated with a given directive instance supports the `setDisabledState` call.\n *\n * @param control Form control where disabled change handler should be setup.\n * @param dir Corresponding directive instance associated with this control.\n */\nfunction setUpDisabledChangeHandler(control, dir) {\n  if (dir.valueAccessor.setDisabledState) {\n    const onDisabledChange = isDisabled => {\n      dir.valueAccessor.setDisabledState(isDisabled);\n    };\n    control.registerOnDisabledChange(onDisabledChange);\n    // Register a callback function to cleanup disabled change handler\n    // from a control instance when a directive is destroyed.\n    dir._registerOnDestroy(() => {\n      control._unregisterOnDisabledChange(onDisabledChange);\n    });\n  }\n}\n/**\n * Sets up sync and async directive validators on provided form control.\n * This function merges validators from the directive into the validators of the control.\n *\n * @param control Form control where directive validators should be setup.\n * @param dir Directive instance that contains validators to be setup.\n */\nfunction setUpValidators(control, dir) {\n  const validators = getControlValidators(control);\n  if (dir.validator !== null) {\n    control.setValidators(mergeValidators(validators, dir.validator));\n  } else if (typeof validators === 'function') {\n    // If sync validators are represented by a single validator function, we force the\n    // `Validators.compose` call to happen by executing the `setValidators` function with\n    // an array that contains that function. We need this to avoid possible discrepancies in\n    // validators behavior, so sync validators are always processed by the `Validators.compose`.\n    // Note: we should consider moving this logic inside the `setValidators` function itself, so we\n    // have consistent behavior on AbstractControl API level. The same applies to the async\n    // validators logic below.\n    control.setValidators([validators]);\n  }\n  const asyncValidators = getControlAsyncValidators(control);\n  if (dir.asyncValidator !== null) {\n    control.setAsyncValidators(mergeValidators(asyncValidators, dir.asyncValidator));\n  } else if (typeof asyncValidators === 'function') {\n    control.setAsyncValidators([asyncValidators]);\n  }\n  // Re-run validation when validator binding changes, e.g. minlength=3 -> minlength=4\n  const onValidatorChange = () => control.updateValueAndValidity();\n  registerOnValidatorChange(dir._rawValidators, onValidatorChange);\n  registerOnValidatorChange(dir._rawAsyncValidators, onValidatorChange);\n}\n/**\n * Cleans up sync and async directive validators on provided form control.\n * This function reverts the setup performed by the `setUpValidators` function, i.e.\n * removes directive-specific validators from a given control instance.\n *\n * @param control Form control from where directive validators should be removed.\n * @param dir Directive instance that contains validators to be removed.\n * @returns true if a control was updated as a result of this action.\n */\nfunction cleanUpValidators(control, dir) {\n  let isControlUpdated = false;\n  if (control !== null) {\n    if (dir.validator !== null) {\n      const validators = getControlValidators(control);\n      if (Array.isArray(validators) && validators.length > 0) {\n        // Filter out directive validator function.\n        const updatedValidators = validators.filter(validator => validator !== dir.validator);\n        if (updatedValidators.length !== validators.length) {\n          isControlUpdated = true;\n          control.setValidators(updatedValidators);\n        }\n      }\n    }\n    if (dir.asyncValidator !== null) {\n      const asyncValidators = getControlAsyncValidators(control);\n      if (Array.isArray(asyncValidators) && asyncValidators.length > 0) {\n        // Filter out directive async validator function.\n        const updatedAsyncValidators = asyncValidators.filter(asyncValidator => asyncValidator !== dir.asyncValidator);\n        if (updatedAsyncValidators.length !== asyncValidators.length) {\n          isControlUpdated = true;\n          control.setAsyncValidators(updatedAsyncValidators);\n        }\n      }\n    }\n  }\n  // Clear onValidatorChange callbacks by providing a noop function.\n  const noop = () => {};\n  registerOnValidatorChange(dir._rawValidators, noop);\n  registerOnValidatorChange(dir._rawAsyncValidators, noop);\n  return isControlUpdated;\n}\nfunction setUpViewChangePipeline(control, dir) {\n  dir.valueAccessor.registerOnChange(newValue => {\n    control._pendingValue = newValue;\n    control._pendingChange = true;\n    control._pendingDirty = true;\n    if (control.updateOn === 'change') updateControl(control, dir);\n  });\n}\nfunction setUpBlurPipeline(control, dir) {\n  dir.valueAccessor.registerOnTouched(() => {\n    control._pendingTouched = true;\n    if (control.updateOn === 'blur' && control._pendingChange) updateControl(control, dir);\n    if (control.updateOn !== 'submit') control.markAsTouched();\n  });\n}\nfunction updateControl(control, dir) {\n  if (control._pendingDirty) control.markAsDirty();\n  control.setValue(control._pendingValue, {\n    emitModelToViewChange: false\n  });\n  dir.viewToModelUpdate(control._pendingValue);\n  control._pendingChange = false;\n}\nfunction setUpModelChangePipeline(control, dir) {\n  const onChange = (newValue, emitModelEvent) => {\n    // control -> view\n    dir.valueAccessor.writeValue(newValue);\n    // control -> ngModel\n    if (emitModelEvent) dir.viewToModelUpdate(newValue);\n  };\n  control.registerOnChange(onChange);\n  // Register a callback function to cleanup onChange handler\n  // from a control instance when a directive is destroyed.\n  dir._registerOnDestroy(() => {\n    control._unregisterOnChange(onChange);\n  });\n}\n/**\n * Links a FormGroup or FormArray instance and corresponding Form directive by setting up validators\n * present in the view.\n *\n * @param control FormGroup or FormArray instance that should be linked.\n * @param dir Directive that provides view validators.\n */\nfunction setUpFormContainer(control, dir) {\n  if (control == null && (typeof ngDevMode === 'undefined' || ngDevMode)) _throwError(dir, 'Cannot find control with');\n  setUpValidators(control, dir);\n}\n/**\n * Reverts the setup performed by the `setUpFormContainer` function.\n *\n * @param control FormGroup or FormArray instance that should be cleaned up.\n * @param dir Directive that provided view validators.\n * @returns true if a control was updated as a result of this action.\n */\nfunction cleanUpFormContainer(control, dir) {\n  return cleanUpValidators(control, dir);\n}\nfunction _noControlError(dir) {\n  return _throwError(dir, 'There is no FormControl instance attached to form control element with');\n}\nfunction _throwError(dir, message) {\n  const messageEnd = _describeControlLocation(dir);\n  throw new Error(`${message} ${messageEnd}`);\n}\nfunction _describeControlLocation(dir) {\n  const path = dir.path;\n  if (path && path.length > 1) return `path: '${path.join(' -> ')}'`;\n  if (path?.[0]) return `name: '${path}'`;\n  return 'unspecified name attribute';\n}\nfunction _throwMissingValueAccessorError(dir) {\n  const loc = _describeControlLocation(dir);\n  throw new ɵRuntimeError(-1203 /* RuntimeErrorCode.NG_MISSING_VALUE_ACCESSOR */, `No value accessor for form control ${loc}.`);\n}\nfunction _throwInvalidValueAccessorError(dir) {\n  const loc = _describeControlLocation(dir);\n  throw new ɵRuntimeError(1200 /* RuntimeErrorCode.NG_VALUE_ACCESSOR_NOT_PROVIDED */, `Value accessor was not provided as an array for form control with ${loc}. ` + `Check that the \\`NG_VALUE_ACCESSOR\\` token is configured as a \\`multi: true\\` provider.`);\n}\nfunction isPropertyUpdated(changes, viewModel) {\n  if (!changes.hasOwnProperty('model')) return false;\n  const change = changes['model'];\n  if (change.isFirstChange()) return true;\n  return !Object.is(viewModel, change.currentValue);\n}\nfunction isBuiltInAccessor(valueAccessor) {\n  // Check if a given value accessor is an instance of a class that directly extends\n  // `BuiltInControlValueAccessor` one.\n  return Object.getPrototypeOf(valueAccessor.constructor) === BuiltInControlValueAccessor;\n}\nfunction syncPendingControls(form, directives) {\n  form._syncPendingControls();\n  directives.forEach(dir => {\n    const control = dir.control;\n    if (control.updateOn === 'submit' && control._pendingChange) {\n      dir.viewToModelUpdate(control._pendingValue);\n      control._pendingChange = false;\n    }\n  });\n}\n// TODO: vsavkin remove it once https://github.com/angular/angular/issues/3011 is implemented\nfunction selectValueAccessor(dir, valueAccessors) {\n  if (!valueAccessors) return null;\n  if (!Array.isArray(valueAccessors) && (typeof ngDevMode === 'undefined' || ngDevMode)) _throwInvalidValueAccessorError(dir);\n  let defaultAccessor = undefined;\n  let builtinAccessor = undefined;\n  let customAccessor = undefined;\n  valueAccessors.forEach(v => {\n    if (v.constructor === DefaultValueAccessor) {\n      defaultAccessor = v;\n    } else if (isBuiltInAccessor(v)) {\n      if (builtinAccessor && (typeof ngDevMode === 'undefined' || ngDevMode)) _throwError(dir, 'More than one built-in value accessor matches form control with');\n      builtinAccessor = v;\n    } else {\n      if (customAccessor && (typeof ngDevMode === 'undefined' || ngDevMode)) _throwError(dir, 'More than one custom value accessor matches form control with');\n      customAccessor = v;\n    }\n  });\n  if (customAccessor) return customAccessor;\n  if (builtinAccessor) return builtinAccessor;\n  if (defaultAccessor) return defaultAccessor;\n  if (typeof ngDevMode === 'undefined' || ngDevMode) {\n    _throwError(dir, 'No valid value accessor for form control with');\n  }\n  return null;\n}\nfunction removeListItem$1(list, el) {\n  const index = list.indexOf(el);\n  if (index > -1) list.splice(index, 1);\n}\n// TODO(kara): remove after deprecation period\nfunction _ngModelWarning(name, type, instance, warningConfig) {\n  if (warningConfig === 'never') return;\n  if ((warningConfig === null || warningConfig === 'once') && !type._ngModelWarningSentOnce || warningConfig === 'always' && !instance._ngModelWarningSent) {\n    console.warn(ngModelWarning(name));\n    type._ngModelWarningSentOnce = true;\n    instance._ngModelWarningSent = true;\n  }\n}\nconst formDirectiveProvider$1 = {\n  provide: ControlContainer,\n  useExisting: /*#__PURE__*/forwardRef(() => NgForm)\n};\nconst resolvedPromise$1 = /*#__PURE__*/(() => Promise.resolve())();\n/**\n * @description\n * Creates a top-level `FormGroup` instance and binds it to a form\n * to track aggregate form value and validation status.\n *\n * As soon as you import the `FormsModule`, this directive becomes active by default on\n * all `<form>` tags.  You don't need to add a special selector.\n *\n * You optionally export the directive into a local template variable using `ngForm` as the key\n * (ex: `#myForm=\"ngForm\"`). This is optional, but useful.  Many properties from the underlying\n * `FormGroup` instance are duplicated on the directive itself, so a reference to it\n * gives you access to the aggregate value and validity status of the form, as well as\n * user interaction properties like `dirty` and `touched`.\n *\n * To register child controls with the form, use `NgModel` with a `name`\n * attribute. You may use `NgModelGroup` to create sub-groups within the form.\n *\n * If necessary, listen to the directive's `ngSubmit` event to be notified when the user has\n * triggered a form submission. The `ngSubmit` event emits the original form\n * submission event.\n *\n * In template driven forms, all `<form>` tags are automatically tagged as `NgForm`.\n * To import the `FormsModule` but skip its usage in some forms,\n * for example, to use native HTML5 validation, add the `ngNoForm` and the `<form>`\n * tags won't create an `NgForm` directive. In reactive forms, using `ngNoForm` is\n * unnecessary because the `<form>` tags are inert. In that case, you would\n * refrain from using the `formGroup` directive.\n *\n * @usageNotes\n *\n * ### Listening for form submission\n *\n * The following example shows how to capture the form values from the \"ngSubmit\" event.\n *\n * {@example forms/ts/simpleForm/simple_form_example.ts region='Component'}\n *\n * ### Setting the update options\n *\n * The following example shows you how to change the \"updateOn\" option from its default using\n * ngFormOptions.\n *\n * ```html\n * <form [ngFormOptions]=\"{updateOn: 'blur'}\">\n *    <input name=\"one\" ngModel>  <!-- this ngModel will update on blur -->\n * </form>\n * ```\n *\n * ### Native DOM validation UI\n *\n * In order to prevent the native DOM form validation UI from interfering with Angular's form\n * validation, Angular automatically adds the `novalidate` attribute on any `<form>` whenever\n * `FormModule` or `ReactiveFormModule` are imported into the application.\n * If you want to explicitly enable native DOM validation UI with Angular forms, you can add the\n * `ngNativeValidate` attribute to the `<form>` element:\n *\n * ```html\n * <form ngNativeValidate>\n *   ...\n * </form>\n * ```\n *\n * @ngModule FormsModule\n * @publicApi\n */\nlet NgForm = /*#__PURE__*/(() => {\n  class NgForm extends ControlContainer {\n    constructor(validators, asyncValidators, callSetDisabledState) {\n      super();\n      this.callSetDisabledState = callSetDisabledState;\n      /**\n       * @description\n       * Returns whether the form submission has been triggered.\n       */\n      this.submitted = false;\n      this._directives = new Set();\n      /**\n       * @description\n       * Event emitter for the \"ngSubmit\" event\n       */\n      this.ngSubmit = new EventEmitter();\n      this.form = new FormGroup({}, composeValidators(validators), composeAsyncValidators(asyncValidators));\n    }\n    /** @nodoc */\n    ngAfterViewInit() {\n      this._setUpdateStrategy();\n    }\n    /**\n     * @description\n     * The directive instance.\n     */\n    get formDirective() {\n      return this;\n    }\n    /**\n     * @description\n     * The internal `FormGroup` instance.\n     */\n    get control() {\n      return this.form;\n    }\n    /**\n     * @description\n     * Returns an array representing the path to this group. Because this directive\n     * always lives at the top level of a form, it is always an empty array.\n     */\n    get path() {\n      return [];\n    }\n    /**\n     * @description\n     * Returns a map of the controls in this group.\n     */\n    get controls() {\n      return this.form.controls;\n    }\n    /**\n     * @description\n     * Method that sets up the control directive in this group, re-calculates its value\n     * and validity, and adds the instance to the internal list of directives.\n     *\n     * @param dir The `NgModel` directive instance.\n     */\n    addControl(dir) {\n      resolvedPromise$1.then(() => {\n        const container = this._findContainer(dir.path);\n        dir.control = container.registerControl(dir.name, dir.control);\n        setUpControl(dir.control, dir, this.callSetDisabledState);\n        dir.control.updateValueAndValidity({\n          emitEvent: false\n        });\n        this._directives.add(dir);\n      });\n    }\n    /**\n     * @description\n     * Retrieves the `FormControl` instance from the provided `NgModel` directive.\n     *\n     * @param dir The `NgModel` directive instance.\n     */\n    getControl(dir) {\n      return this.form.get(dir.path);\n    }\n    /**\n     * @description\n     * Removes the `NgModel` instance from the internal list of directives\n     *\n     * @param dir The `NgModel` directive instance.\n     */\n    removeControl(dir) {\n      resolvedPromise$1.then(() => {\n        const container = this._findContainer(dir.path);\n        if (container) {\n          container.removeControl(dir.name);\n        }\n        this._directives.delete(dir);\n      });\n    }\n    /**\n     * @description\n     * Adds a new `NgModelGroup` directive instance to the form.\n     *\n     * @param dir The `NgModelGroup` directive instance.\n     */\n    addFormGroup(dir) {\n      resolvedPromise$1.then(() => {\n        const container = this._findContainer(dir.path);\n        const group = new FormGroup({});\n        setUpFormContainer(group, dir);\n        container.registerControl(dir.name, group);\n        group.updateValueAndValidity({\n          emitEvent: false\n        });\n      });\n    }\n    /**\n     * @description\n     * Removes the `NgModelGroup` directive instance from the form.\n     *\n     * @param dir The `NgModelGroup` directive instance.\n     */\n    removeFormGroup(dir) {\n      resolvedPromise$1.then(() => {\n        const container = this._findContainer(dir.path);\n        if (container) {\n          container.removeControl(dir.name);\n        }\n      });\n    }\n    /**\n     * @description\n     * Retrieves the `FormGroup` for a provided `NgModelGroup` directive instance\n     *\n     * @param dir The `NgModelGroup` directive instance.\n     */\n    getFormGroup(dir) {\n      return this.form.get(dir.path);\n    }\n    /**\n     * Sets the new value for the provided `NgControl` directive.\n     *\n     * @param dir The `NgControl` directive instance.\n     * @param value The new value for the directive's control.\n     */\n    updateModel(dir, value) {\n      resolvedPromise$1.then(() => {\n        const ctrl = this.form.get(dir.path);\n        ctrl.setValue(value);\n      });\n    }\n    /**\n     * @description\n     * Sets the value for this `FormGroup`.\n     *\n     * @param value The new value\n     */\n    setValue(value) {\n      this.control.setValue(value);\n    }\n    /**\n     * @description\n     * Method called when the \"submit\" event is triggered on the form.\n     * Triggers the `ngSubmit` emitter to emit the \"submit\" event as its payload.\n     *\n     * @param $event The \"submit\" event object\n     */\n    onSubmit($event) {\n      this.submitted = true;\n      syncPendingControls(this.form, this._directives);\n      this.ngSubmit.emit($event);\n      // Forms with `method=\"dialog\"` have some special behavior\n      // that won't reload the page and that shouldn't be prevented.\n      return $event?.target?.method === 'dialog';\n    }\n    /**\n     * @description\n     * Method called when the \"reset\" event is triggered on the form.\n     */\n    onReset() {\n      this.resetForm();\n    }\n    /**\n     * @description\n     * Resets the form to an initial value and resets its submitted status.\n     *\n     * @param value The new value for the form.\n     */\n    resetForm(value = undefined) {\n      this.form.reset(value);\n      this.submitted = false;\n    }\n    _setUpdateStrategy() {\n      if (this.options && this.options.updateOn != null) {\n        this.form._updateOn = this.options.updateOn;\n      }\n    }\n    _findContainer(path) {\n      path.pop();\n      return path.length ? this.form.get(path) : this.form;\n    }\n    static {\n      this.ɵfac = function NgForm_Factory(t) {\n        return new (t || NgForm)(i0.ɵɵdirectiveInject(NG_VALIDATORS, 10), i0.ɵɵdirectiveInject(NG_ASYNC_VALIDATORS, 10), i0.ɵɵdirectiveInject(CALL_SET_DISABLED_STATE, 8));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: NgForm,\n        selectors: [[\"form\", 3, \"ngNoForm\", \"\", 3, \"formGroup\", \"\"], [\"ng-form\"], [\"\", \"ngForm\", \"\"]],\n        hostBindings: function NgForm_HostBindings(rf, ctx) {\n          if (rf & 1) {\n            i0.ɵɵlistener(\"submit\", function NgForm_submit_HostBindingHandler($event) {\n              return ctx.onSubmit($event);\n            })(\"reset\", function NgForm_reset_HostBindingHandler() {\n              return ctx.onReset();\n            });\n          }\n        },\n        inputs: {\n          options: [i0.ɵɵInputFlags.None, \"ngFormOptions\", \"options\"]\n        },\n        outputs: {\n          ngSubmit: \"ngSubmit\"\n        },\n        exportAs: [\"ngForm\"],\n        features: [i0.ɵɵProvidersFeature([formDirectiveProvider$1]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return NgForm;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction removeListItem(list, el) {\n  const index = list.indexOf(el);\n  if (index > -1) list.splice(index, 1);\n}\nfunction isFormControlState(formState) {\n  return typeof formState === 'object' && formState !== null && Object.keys(formState).length === 2 && 'value' in formState && 'disabled' in formState;\n}\nconst FormControl = class FormControl extends AbstractControl {\n  constructor(\n  // formState and defaultValue will only be null if T is nullable\n  formState = null, validatorOrOpts, asyncValidator) {\n    super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));\n    /** @publicApi */\n    this.defaultValue = null;\n    /** @internal */\n    this._onChange = [];\n    /** @internal */\n    this._pendingChange = false;\n    this._applyFormState(formState);\n    this._setUpdateStrategy(validatorOrOpts);\n    this._initObservables();\n    this.updateValueAndValidity({\n      onlySelf: true,\n      // If `asyncValidator` is present, it will trigger control status change from `PENDING` to\n      // `VALID` or `INVALID`.\n      // The status should be broadcasted via the `statusChanges` observable, so we set\n      // `emitEvent` to `true` to allow that during the control creation process.\n      emitEvent: !!this.asyncValidator\n    });\n    if (isOptionsObj(validatorOrOpts) && (validatorOrOpts.nonNullable || validatorOrOpts.initialValueIsDefault)) {\n      if (isFormControlState(formState)) {\n        this.defaultValue = formState.value;\n      } else {\n        this.defaultValue = formState;\n      }\n    }\n  }\n  setValue(value, options = {}) {\n    this.value = this._pendingValue = value;\n    if (this._onChange.length && options.emitModelToViewChange !== false) {\n      this._onChange.forEach(changeFn => changeFn(this.value, options.emitViewToModelChange !== false));\n    }\n    this.updateValueAndValidity(options);\n  }\n  patchValue(value, options = {}) {\n    this.setValue(value, options);\n  }\n  reset(formState = this.defaultValue, options = {}) {\n    this._applyFormState(formState);\n    this.markAsPristine(options);\n    this.markAsUntouched(options);\n    this.setValue(this.value, options);\n    this._pendingChange = false;\n  }\n  /**  @internal */\n  _updateValue() {}\n  /**  @internal */\n  _anyControls(condition) {\n    return false;\n  }\n  /**  @internal */\n  _allControlsDisabled() {\n    return this.disabled;\n  }\n  registerOnChange(fn) {\n    this._onChange.push(fn);\n  }\n  /** @internal */\n  _unregisterOnChange(fn) {\n    removeListItem(this._onChange, fn);\n  }\n  registerOnDisabledChange(fn) {\n    this._onDisabledChange.push(fn);\n  }\n  /** @internal */\n  _unregisterOnDisabledChange(fn) {\n    removeListItem(this._onDisabledChange, fn);\n  }\n  /** @internal */\n  _forEachChild(cb) {}\n  /** @internal */\n  _syncPendingControls() {\n    if (this.updateOn === 'submit') {\n      if (this._pendingDirty) this.markAsDirty();\n      if (this._pendingTouched) this.markAsTouched();\n      if (this._pendingChange) {\n        this.setValue(this._pendingValue, {\n          onlySelf: true,\n          emitModelToViewChange: false\n        });\n        return true;\n      }\n    }\n    return false;\n  }\n  _applyFormState(formState) {\n    if (isFormControlState(formState)) {\n      this.value = this._pendingValue = formState.value;\n      formState.disabled ? this.disable({\n        onlySelf: true,\n        emitEvent: false\n      }) : this.enable({\n        onlySelf: true,\n        emitEvent: false\n      });\n    } else {\n      this.value = this._pendingValue = formState;\n    }\n  }\n};\nconst UntypedFormControl = FormControl;\n/**\n * @description\n * Asserts that the given control is an instance of `FormControl`\n *\n * @publicApi\n */\nconst isFormControl = control => control instanceof FormControl;\n\n/**\n * @description\n * A base class for code shared between the `NgModelGroup` and `FormGroupName` directives.\n *\n * @publicApi\n */\nlet AbstractFormGroupDirective = /*#__PURE__*/(() => {\n  class AbstractFormGroupDirective extends ControlContainer {\n    /** @nodoc */\n    ngOnInit() {\n      this._checkParentType();\n      // Register the group with its parent group.\n      this.formDirective.addFormGroup(this);\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n      if (this.formDirective) {\n        // Remove the group from its parent group.\n        this.formDirective.removeFormGroup(this);\n      }\n    }\n    /**\n     * @description\n     * The `FormGroup` bound to this directive.\n     */\n    get control() {\n      return this.formDirective.getFormGroup(this);\n    }\n    /**\n     * @description\n     * The path to this group from the top-level directive.\n     */\n    get path() {\n      return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);\n    }\n    /**\n     * @description\n     * The top-level directive for this group if present, otherwise null.\n     */\n    get formDirective() {\n      return this._parent ? this._parent.formDirective : null;\n    }\n    /** @internal */\n    _checkParentType() {}\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵAbstractFormGroupDirective_BaseFactory;\n        return function AbstractFormGroupDirective_Factory(t) {\n          return (ɵAbstractFormGroupDirective_BaseFactory || (ɵAbstractFormGroupDirective_BaseFactory = i0.ɵɵgetInheritedFactory(AbstractFormGroupDirective)))(t || AbstractFormGroupDirective);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: AbstractFormGroupDirective,\n        features: [i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return AbstractFormGroupDirective;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction modelParentException() {\n  return new ɵRuntimeError(1350 /* RuntimeErrorCode.NGMODEL_IN_FORM_GROUP */, `\n    ngModel cannot be used to register form controls with a parent formGroup directive.  Try using\n    formGroup's partner directive \"formControlName\" instead.  Example:\n\n    ${formControlNameExample}\n\n    Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n    Example:\n\n    ${ngModelWithFormGroupExample}`);\n}\nfunction formGroupNameException() {\n  return new ɵRuntimeError(1351 /* RuntimeErrorCode.NGMODEL_IN_FORM_GROUP_NAME */, `\n    ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n    Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n    ${formGroupNameExample}\n\n    Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n    ${ngModelGroupExample}`);\n}\nfunction missingNameException() {\n  return new ɵRuntimeError(1352 /* RuntimeErrorCode.NGMODEL_WITHOUT_NAME */, `If ngModel is used within a form tag, either the name attribute must be set or the form\n    control must be defined as 'standalone' in ngModelOptions.\n\n    Example 1: <input [(ngModel)]=\"person.firstName\" name=\"first\">\n    Example 2: <input [(ngModel)]=\"person.firstName\" [ngModelOptions]=\"{standalone: true}\">`);\n}\nfunction modelGroupParentException() {\n  return new ɵRuntimeError(1353 /* RuntimeErrorCode.NGMODELGROUP_IN_FORM_GROUP */, `\n    ngModelGroup cannot be used with a parent formGroup directive.\n\n    Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n    ${formGroupNameExample}\n\n    Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n    ${ngModelGroupExample}`);\n}\nconst modelGroupProvider = {\n  provide: ControlContainer,\n  useExisting: /*#__PURE__*/forwardRef(() => NgModelGroup)\n};\n/**\n * @description\n * Creates and binds a `FormGroup` instance to a DOM element.\n *\n * This directive can only be used as a child of `NgForm` (within `<form>` tags).\n *\n * Use this directive to validate a sub-group of your form separately from the\n * rest of your form, or if some values in your domain model make more sense\n * to consume together in a nested object.\n *\n * Provide a name for the sub-group and it will become the key\n * for the sub-group in the form's full value. If you need direct access, export the directive into\n * a local template variable using `ngModelGroup` (ex: `#myGroup=\"ngModelGroup\"`).\n *\n * @usageNotes\n *\n * ### Consuming controls in a grouping\n *\n * The following example shows you how to combine controls together in a sub-group\n * of the form.\n *\n * {@example forms/ts/ngModelGroup/ng_model_group_example.ts region='Component'}\n *\n * @ngModule FormsModule\n * @publicApi\n */\nlet NgModelGroup = /*#__PURE__*/(() => {\n  class NgModelGroup extends AbstractFormGroupDirective {\n    constructor(parent, validators, asyncValidators) {\n      super();\n      /**\n       * @description\n       * Tracks the name of the `NgModelGroup` bound to the directive. The name corresponds\n       * to a key in the parent `NgForm`.\n       */\n      this.name = '';\n      this._parent = parent;\n      this._setValidators(validators);\n      this._setAsyncValidators(asyncValidators);\n    }\n    /** @internal */\n    _checkParentType() {\n      if (!(this._parent instanceof NgModelGroup) && !(this._parent instanceof NgForm) && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n        throw modelGroupParentException();\n      }\n    }\n    static {\n      this.ɵfac = function NgModelGroup_Factory(t) {\n        return new (t || NgModelGroup)(i0.ɵɵdirectiveInject(ControlContainer, 5), i0.ɵɵdirectiveInject(NG_VALIDATORS, 10), i0.ɵɵdirectiveInject(NG_ASYNC_VALIDATORS, 10));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: NgModelGroup,\n        selectors: [[\"\", \"ngModelGroup\", \"\"]],\n        inputs: {\n          name: [i0.ɵɵInputFlags.None, \"ngModelGroup\", \"name\"]\n        },\n        exportAs: [\"ngModelGroup\"],\n        features: [i0.ɵɵProvidersFeature([modelGroupProvider]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return NgModelGroup;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst formControlBinding$1 = {\n  provide: NgControl,\n  useExisting: /*#__PURE__*/forwardRef(() => NgModel)\n};\n/**\n * `ngModel` forces an additional change detection run when its inputs change:\n * E.g.:\n * ```\n * <div>{{myModel.valid}}</div>\n * <input [(ngModel)]=\"myValue\" #myModel=\"ngModel\">\n * ```\n * I.e. `ngModel` can export itself on the element and then be used in the template.\n * Normally, this would result in expressions before the `input` that use the exported directive\n * to have an old value as they have been\n * dirty checked before. As this is a very common case for `ngModel`, we added this second change\n * detection run.\n *\n * Notes:\n * - this is just one extra run no matter how many `ngModel`s have been changed.\n * - this is a general problem when using `exportAs` for directives!\n */\nconst resolvedPromise = /*#__PURE__*/(() => Promise.resolve())();\n/**\n * @description\n * Creates a `FormControl` instance from a [domain\n * model](https://en.wikipedia.org/wiki/Domain_model) and binds it to a form control element.\n *\n * The `FormControl` instance tracks the value, user interaction, and\n * validation status of the control and keeps the view synced with the model. If used\n * within a parent form, the directive also registers itself with the form as a child\n * control.\n *\n * This directive is used by itself or as part of a larger form. Use the\n * `ngModel` selector to activate it.\n *\n * It accepts a domain model as an optional `Input`. If you have a one-way binding\n * to `ngModel` with `[]` syntax, changing the domain model's value in the component\n * class sets the value in the view. If you have a two-way binding with `[()]` syntax\n * (also known as 'banana-in-a-box syntax'), the value in the UI always syncs back to\n * the domain model in your class.\n *\n * To inspect the properties of the associated `FormControl` (like the validity state),\n * export the directive into a local template variable using `ngModel` as the key (ex:\n * `#myVar=\"ngModel\"`). You can then access the control using the directive's `control` property.\n * However, the most commonly used properties (like `valid` and `dirty`) also exist on the control\n * for direct access. See a full list of properties directly available in\n * `AbstractControlDirective`.\n *\n * @see {@link RadioControlValueAccessor}\n * @see {@link SelectControlValueAccessor}\n *\n * @usageNotes\n *\n * ### Using ngModel on a standalone control\n *\n * The following examples show a simple standalone control using `ngModel`:\n *\n * {@example forms/ts/simpleNgModel/simple_ng_model_example.ts region='Component'}\n *\n * When using the `ngModel` within `<form>` tags, you'll also need to supply a `name` attribute\n * so that the control can be registered with the parent form under that name.\n *\n * In the context of a parent form, it's often unnecessary to include one-way or two-way binding,\n * as the parent form syncs the value for you. You access its properties by exporting it into a\n * local template variable using `ngForm` such as (`#f=\"ngForm\"`). Use the variable where\n * needed on form submission.\n *\n * If you do need to populate initial values into your form, using a one-way binding for\n * `ngModel` tends to be sufficient as long as you use the exported form's value rather\n * than the domain model's value on submit.\n *\n * ### Using ngModel within a form\n *\n * The following example shows controls using `ngModel` within a form:\n *\n * {@example forms/ts/simpleForm/simple_form_example.ts region='Component'}\n *\n * ### Using a standalone ngModel within a group\n *\n * The following example shows you how to use a standalone ngModel control\n * within a form. This controls the display of the form, but doesn't contain form data.\n *\n * ```html\n * <form>\n *   <input name=\"login\" ngModel placeholder=\"Login\">\n *   <input type=\"checkbox\" ngModel [ngModelOptions]=\"{standalone: true}\"> Show more options?\n * </form>\n * <!-- form value: {login: ''} -->\n * ```\n *\n * ### Setting the ngModel `name` attribute through options\n *\n * The following example shows you an alternate way to set the name attribute. Here,\n * an attribute identified as name is used within a custom form control component. To still be able\n * to specify the NgModel's name, you must specify it using the `ngModelOptions` input instead.\n *\n * ```html\n * <form>\n *   <my-custom-form-control name=\"Nancy\" ngModel [ngModelOptions]=\"{name: 'user'}\">\n *   </my-custom-form-control>\n * </form>\n * <!-- form value: {user: ''} -->\n * ```\n *\n * @ngModule FormsModule\n * @publicApi\n */\nlet NgModel = /*#__PURE__*/(() => {\n  class NgModel extends NgControl {\n    constructor(parent, validators, asyncValidators, valueAccessors, _changeDetectorRef, callSetDisabledState) {\n      super();\n      this._changeDetectorRef = _changeDetectorRef;\n      this.callSetDisabledState = callSetDisabledState;\n      this.control = new FormControl();\n      /** @internal */\n      this._registered = false;\n      /**\n       * @description\n       * Tracks the name bound to the directive. If a parent form exists, it\n       * uses this name as a key to retrieve this control's value.\n       */\n      this.name = '';\n      /**\n       * @description\n       * Event emitter for producing the `ngModelChange` event after\n       * the view model updates.\n       */\n      this.update = new EventEmitter();\n      this._parent = parent;\n      this._setValidators(validators);\n      this._setAsyncValidators(asyncValidators);\n      this.valueAccessor = selectValueAccessor(this, valueAccessors);\n    }\n    /** @nodoc */\n    ngOnChanges(changes) {\n      this._checkForErrors();\n      if (!this._registered || 'name' in changes) {\n        if (this._registered) {\n          this._checkName();\n          if (this.formDirective) {\n            // We can't call `formDirective.removeControl(this)`, because the `name` has already been\n            // changed. We also can't reset the name temporarily since the logic in `removeControl`\n            // is inside a promise and it won't run immediately. We work around it by giving it an\n            // object with the same shape instead.\n            const oldName = changes['name'].previousValue;\n            this.formDirective.removeControl({\n              name: oldName,\n              path: this._getPath(oldName)\n            });\n          }\n        }\n        this._setUpControl();\n      }\n      if ('isDisabled' in changes) {\n        this._updateDisabled(changes);\n      }\n      if (isPropertyUpdated(changes, this.viewModel)) {\n        this._updateValue(this.model);\n        this.viewModel = this.model;\n      }\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n      this.formDirective && this.formDirective.removeControl(this);\n    }\n    /**\n     * @description\n     * Returns an array that represents the path from the top-level form to this control.\n     * Each index is the string name of the control on that level.\n     */\n    get path() {\n      return this._getPath(this.name);\n    }\n    /**\n     * @description\n     * The top-level directive for this control if present, otherwise null.\n     */\n    get formDirective() {\n      return this._parent ? this._parent.formDirective : null;\n    }\n    /**\n     * @description\n     * Sets the new value for the view model and emits an `ngModelChange` event.\n     *\n     * @param newValue The new value emitted by `ngModelChange`.\n     */\n    viewToModelUpdate(newValue) {\n      this.viewModel = newValue;\n      this.update.emit(newValue);\n    }\n    _setUpControl() {\n      this._setUpdateStrategy();\n      this._isStandalone() ? this._setUpStandalone() : this.formDirective.addControl(this);\n      this._registered = true;\n    }\n    _setUpdateStrategy() {\n      if (this.options && this.options.updateOn != null) {\n        this.control._updateOn = this.options.updateOn;\n      }\n    }\n    _isStandalone() {\n      return !this._parent || !!(this.options && this.options.standalone);\n    }\n    _setUpStandalone() {\n      setUpControl(this.control, this, this.callSetDisabledState);\n      this.control.updateValueAndValidity({\n        emitEvent: false\n      });\n    }\n    _checkForErrors() {\n      if (!this._isStandalone()) {\n        this._checkParentType();\n      }\n      this._checkName();\n    }\n    _checkParentType() {\n      if (typeof ngDevMode === 'undefined' || ngDevMode) {\n        if (!(this._parent instanceof NgModelGroup) && this._parent instanceof AbstractFormGroupDirective) {\n          throw formGroupNameException();\n        } else if (!(this._parent instanceof NgModelGroup) && !(this._parent instanceof NgForm)) {\n          throw modelParentException();\n        }\n      }\n    }\n    _checkName() {\n      if (this.options && this.options.name) this.name = this.options.name;\n      if (!this._isStandalone() && !this.name && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n        throw missingNameException();\n      }\n    }\n    _updateValue(value) {\n      resolvedPromise.then(() => {\n        this.control.setValue(value, {\n          emitViewToModelChange: false\n        });\n        this._changeDetectorRef?.markForCheck();\n      });\n    }\n    _updateDisabled(changes) {\n      const disabledValue = changes['isDisabled'].currentValue;\n      // checking for 0 to avoid breaking change\n      const isDisabled = disabledValue !== 0 && booleanAttribute(disabledValue);\n      resolvedPromise.then(() => {\n        if (isDisabled && !this.control.disabled) {\n          this.control.disable();\n        } else if (!isDisabled && this.control.disabled) {\n          this.control.enable();\n        }\n        this._changeDetectorRef?.markForCheck();\n      });\n    }\n    _getPath(controlName) {\n      return this._parent ? controlPath(controlName, this._parent) : [controlName];\n    }\n    static {\n      this.ɵfac = function NgModel_Factory(t) {\n        return new (t || NgModel)(i0.ɵɵdirectiveInject(ControlContainer, 9), i0.ɵɵdirectiveInject(NG_VALIDATORS, 10), i0.ɵɵdirectiveInject(NG_ASYNC_VALIDATORS, 10), i0.ɵɵdirectiveInject(NG_VALUE_ACCESSOR, 10), i0.ɵɵdirectiveInject(ChangeDetectorRef, 8), i0.ɵɵdirectiveInject(CALL_SET_DISABLED_STATE, 8));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: NgModel,\n        selectors: [[\"\", \"ngModel\", \"\", 3, \"formControlName\", \"\", 3, \"formControl\", \"\"]],\n        inputs: {\n          name: \"name\",\n          isDisabled: [i0.ɵɵInputFlags.None, \"disabled\", \"isDisabled\"],\n          model: [i0.ɵɵInputFlags.None, \"ngModel\", \"model\"],\n          options: [i0.ɵɵInputFlags.None, \"ngModelOptions\", \"options\"]\n        },\n        outputs: {\n          update: \"ngModelChange\"\n        },\n        exportAs: [\"ngModel\"],\n        features: [i0.ɵɵProvidersFeature([formControlBinding$1]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature]\n      });\n    }\n  }\n  return NgModel;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * @description\n *\n * Adds `novalidate` attribute to all forms by default.\n *\n * `novalidate` is used to disable browser's native form validation.\n *\n * If you want to use native validation with Angular forms, just add `ngNativeValidate` attribute:\n *\n * ```\n * <form ngNativeValidate></form>\n * ```\n *\n * @publicApi\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n */\nlet ɵNgNoValidate = /*#__PURE__*/(() => {\n  class ɵNgNoValidate {\n    static {\n      this.ɵfac = function ɵNgNoValidate_Factory(t) {\n        return new (t || ɵNgNoValidate)();\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: ɵNgNoValidate,\n        selectors: [[\"form\", 3, \"ngNoForm\", \"\", 3, \"ngNativeValidate\", \"\"]],\n        hostAttrs: [\"novalidate\", \"\"]\n      });\n    }\n  }\n  return ɵNgNoValidate;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst NUMBER_VALUE_ACCESSOR = {\n  provide: NG_VALUE_ACCESSOR,\n  useExisting: /*#__PURE__*/forwardRef(() => NumberValueAccessor),\n  multi: true\n};\n/**\n * @description\n * The `ControlValueAccessor` for writing a number value and listening to number input changes.\n * The value accessor is used by the `FormControlDirective`, `FormControlName`, and `NgModel`\n * directives.\n *\n * @usageNotes\n *\n * ### Using a number input with a reactive form.\n *\n * The following example shows how to use a number input with a reactive form.\n *\n * ```ts\n * const totalCountControl = new FormControl();\n * ```\n *\n * ```\n * <input type=\"number\" [formControl]=\"totalCountControl\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet NumberValueAccessor = /*#__PURE__*/(() => {\n  class NumberValueAccessor extends BuiltInControlValueAccessor {\n    /**\n     * Sets the \"value\" property on the input element.\n     * @nodoc\n     */\n    writeValue(value) {\n      // The value needs to be normalized for IE9, otherwise it is set to 'null' when null\n      const normalizedValue = value == null ? '' : value;\n      this.setProperty('value', normalizedValue);\n    }\n    /**\n     * Registers a function called when the control value changes.\n     * @nodoc\n     */\n    registerOnChange(fn) {\n      this.onChange = value => {\n        fn(value == '' ? null : parseFloat(value));\n      };\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵNumberValueAccessor_BaseFactory;\n        return function NumberValueAccessor_Factory(t) {\n          return (ɵNumberValueAccessor_BaseFactory || (ɵNumberValueAccessor_BaseFactory = i0.ɵɵgetInheritedFactory(NumberValueAccessor)))(t || NumberValueAccessor);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: NumberValueAccessor,\n        selectors: [[\"input\", \"type\", \"number\", \"formControlName\", \"\"], [\"input\", \"type\", \"number\", \"formControl\", \"\"], [\"input\", \"type\", \"number\", \"ngModel\", \"\"]],\n        hostBindings: function NumberValueAccessor_HostBindings(rf, ctx) {\n          if (rf & 1) {\n            i0.ɵɵlistener(\"input\", function NumberValueAccessor_input_HostBindingHandler($event) {\n              return ctx.onChange($event.target.value);\n            })(\"blur\", function NumberValueAccessor_blur_HostBindingHandler() {\n              return ctx.onTouched();\n            });\n          }\n        },\n        features: [i0.ɵɵProvidersFeature([NUMBER_VALUE_ACCESSOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return NumberValueAccessor;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst RADIO_VALUE_ACCESSOR = {\n  provide: NG_VALUE_ACCESSOR,\n  useExisting: /*#__PURE__*/forwardRef(() => RadioControlValueAccessor),\n  multi: true\n};\nfunction throwNameError() {\n  throw new ɵRuntimeError(1202 /* RuntimeErrorCode.NAME_AND_FORM_CONTROL_NAME_MUST_MATCH */, `\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: <input type=\"radio\" formControlName=\"food\" name=\"food\">\n    `);\n}\n/**\n * @description\n * Class used by Angular to track radio buttons. For internal use only.\n */\nlet RadioControlRegistry = /*#__PURE__*/(() => {\n  class RadioControlRegistry {\n    constructor() {\n      this._accessors = [];\n    }\n    /**\n     * @description\n     * Adds a control to the internal registry. For internal use only.\n     */\n    add(control, accessor) {\n      this._accessors.push([control, accessor]);\n    }\n    /**\n     * @description\n     * Removes a control from the internal registry. For internal use only.\n     */\n    remove(accessor) {\n      for (let i = this._accessors.length - 1; i >= 0; --i) {\n        if (this._accessors[i][1] === accessor) {\n          this._accessors.splice(i, 1);\n          return;\n        }\n      }\n    }\n    /**\n     * @description\n     * Selects a radio button. For internal use only.\n     */\n    select(accessor) {\n      this._accessors.forEach(c => {\n        if (this._isSameGroup(c, accessor) && c[1] !== accessor) {\n          c[1].fireUncheck(accessor.value);\n        }\n      });\n    }\n    _isSameGroup(controlPair, accessor) {\n      if (!controlPair[0].control) return false;\n      return controlPair[0]._parent === accessor._control._parent && controlPair[1].name === accessor.name;\n    }\n    static {\n      this.ɵfac = function RadioControlRegistry_Factory(t) {\n        return new (t || RadioControlRegistry)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: RadioControlRegistry,\n        factory: RadioControlRegistry.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return RadioControlRegistry;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n * The `ControlValueAccessor` for writing radio control values and listening to radio control\n * changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and\n * `NgModel` directives.\n *\n * @usageNotes\n *\n * ### Using radio buttons with reactive form directives\n *\n * The follow example shows how to use radio buttons in a reactive form. When using radio buttons in\n * a reactive form, radio buttons in the same group should have the same `formControlName`.\n * Providing a `name` attribute is optional.\n *\n * {@example forms/ts/reactiveRadioButtons/reactive_radio_button_example.ts region='Reactive'}\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet RadioControlValueAccessor = /*#__PURE__*/(() => {\n  class RadioControlValueAccessor extends BuiltInControlValueAccessor {\n    constructor(renderer, elementRef, _registry, _injector) {\n      super(renderer, elementRef);\n      this._registry = _registry;\n      this._injector = _injector;\n      this.setDisabledStateFired = false;\n      /**\n       * The registered callback function called when a change event occurs on the input element.\n       * Note: we declare `onChange` here (also used as host listener) as a function with no arguments\n       * to override the `onChange` function (which expects 1 argument) in the parent\n       * `BaseControlValueAccessor` class.\n       * @nodoc\n       */\n      this.onChange = () => {};\n      this.callSetDisabledState = inject(CALL_SET_DISABLED_STATE, {\n        optional: true\n      }) ?? setDisabledStateDefault;\n    }\n    /** @nodoc */\n    ngOnInit() {\n      this._control = this._injector.get(NgControl);\n      this._checkName();\n      this._registry.add(this._control, this);\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n      this._registry.remove(this);\n    }\n    /**\n     * Sets the \"checked\" property value on the radio input element.\n     * @nodoc\n     */\n    writeValue(value) {\n      this._state = value === this.value;\n      this.setProperty('checked', this._state);\n    }\n    /**\n     * Registers a function called when the control value changes.\n     * @nodoc\n     */\n    registerOnChange(fn) {\n      this._fn = fn;\n      this.onChange = () => {\n        fn(this.value);\n        this._registry.select(this);\n      };\n    }\n    /** @nodoc */\n    setDisabledState(isDisabled) {\n      /**\n       * `setDisabledState` is supposed to be called whenever the disabled state of a control changes,\n       * including upon control creation. However, a longstanding bug caused the method to not fire\n       * when an *enabled* control was attached. This bug was fixed in v15 in #47576.\n       *\n       * This had a side effect: previously, it was possible to instantiate a reactive form control\n       * with `[attr.disabled]=true`, even though the corresponding control was enabled in the\n       * model. This resulted in a mismatch between the model and the DOM. Now, because\n       * `setDisabledState` is always called, the value in the DOM will be immediately overwritten\n       * with the \"correct\" enabled value.\n       *\n       * However, the fix also created an exceptional case: radio buttons. Because Reactive Forms\n       * models the entire group of radio buttons as a single `FormControl`, there is no way to\n       * control the disabled state for individual radios, so they can no longer be configured as\n       * disabled. Thus, we keep the old behavior for radio buttons, so that `[attr.disabled]`\n       * continues to work. Specifically, we drop the first call to `setDisabledState` if `disabled`\n       * is `false`, and we are not in legacy mode.\n       */\n      if (this.setDisabledStateFired || isDisabled || this.callSetDisabledState === 'whenDisabledForLegacyCode') {\n        this.setProperty('disabled', isDisabled);\n      }\n      this.setDisabledStateFired = true;\n    }\n    /**\n     * Sets the \"value\" on the radio input element and unchecks it.\n     *\n     * @param value\n     */\n    fireUncheck(value) {\n      this.writeValue(value);\n    }\n    _checkName() {\n      if (this.name && this.formControlName && this.name !== this.formControlName && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n        throwNameError();\n      }\n      if (!this.name && this.formControlName) this.name = this.formControlName;\n    }\n    static {\n      this.ɵfac = function RadioControlValueAccessor_Factory(t) {\n        return new (t || RadioControlValueAccessor)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(RadioControlRegistry), i0.ɵɵdirectiveInject(i0.Injector));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: RadioControlValueAccessor,\n        selectors: [[\"input\", \"type\", \"radio\", \"formControlName\", \"\"], [\"input\", \"type\", \"radio\", \"formControl\", \"\"], [\"input\", \"type\", \"radio\", \"ngModel\", \"\"]],\n        hostBindings: function RadioControlValueAccessor_HostBindings(rf, ctx) {\n          if (rf & 1) {\n            i0.ɵɵlistener(\"change\", function RadioControlValueAccessor_change_HostBindingHandler() {\n              return ctx.onChange();\n            })(\"blur\", function RadioControlValueAccessor_blur_HostBindingHandler() {\n              return ctx.onTouched();\n            });\n          }\n        },\n        inputs: {\n          name: \"name\",\n          formControlName: \"formControlName\",\n          value: \"value\"\n        },\n        features: [i0.ɵɵProvidersFeature([RADIO_VALUE_ACCESSOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return RadioControlValueAccessor;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst RANGE_VALUE_ACCESSOR = {\n  provide: NG_VALUE_ACCESSOR,\n  useExisting: /*#__PURE__*/forwardRef(() => RangeValueAccessor),\n  multi: true\n};\n/**\n * @description\n * The `ControlValueAccessor` for writing a range value and listening to range input changes.\n * The value accessor is used by the `FormControlDirective`, `FormControlName`, and  `NgModel`\n * directives.\n *\n * @usageNotes\n *\n * ### Using a range input with a reactive form\n *\n * The following example shows how to use a range input with a reactive form.\n *\n * ```ts\n * const ageControl = new FormControl();\n * ```\n *\n * ```\n * <input type=\"range\" [formControl]=\"ageControl\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet RangeValueAccessor = /*#__PURE__*/(() => {\n  class RangeValueAccessor extends BuiltInControlValueAccessor {\n    /**\n     * Sets the \"value\" property on the input element.\n     * @nodoc\n     */\n    writeValue(value) {\n      this.setProperty('value', parseFloat(value));\n    }\n    /**\n     * Registers a function called when the control value changes.\n     * @nodoc\n     */\n    registerOnChange(fn) {\n      this.onChange = value => {\n        fn(value == '' ? null : parseFloat(value));\n      };\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵRangeValueAccessor_BaseFactory;\n        return function RangeValueAccessor_Factory(t) {\n          return (ɵRangeValueAccessor_BaseFactory || (ɵRangeValueAccessor_BaseFactory = i0.ɵɵgetInheritedFactory(RangeValueAccessor)))(t || RangeValueAccessor);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: RangeValueAccessor,\n        selectors: [[\"input\", \"type\", \"range\", \"formControlName\", \"\"], [\"input\", \"type\", \"range\", \"formControl\", \"\"], [\"input\", \"type\", \"range\", \"ngModel\", \"\"]],\n        hostBindings: function RangeValueAccessor_HostBindings(rf, ctx) {\n          if (rf & 1) {\n            i0.ɵɵlistener(\"change\", function RangeValueAccessor_change_HostBindingHandler($event) {\n              return ctx.onChange($event.target.value);\n            })(\"input\", function RangeValueAccessor_input_HostBindingHandler($event) {\n              return ctx.onChange($event.target.value);\n            })(\"blur\", function RangeValueAccessor_blur_HostBindingHandler() {\n              return ctx.onTouched();\n            });\n          }\n        },\n        features: [i0.ɵɵProvidersFeature([RANGE_VALUE_ACCESSOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return RangeValueAccessor;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Token to provide to turn off the ngModel warning on formControl and formControlName.\n */\nconst NG_MODEL_WITH_FORM_CONTROL_WARNING = /*#__PURE__*/new InjectionToken(ngDevMode ? 'NgModelWithFormControlWarning' : '');\nconst formControlBinding = {\n  provide: NgControl,\n  useExisting: /*#__PURE__*/forwardRef(() => FormControlDirective)\n};\n/**\n * @description\n * Synchronizes a standalone `FormControl` instance to a form control element.\n *\n * Note that support for using the `ngModel` input property and `ngModelChange` event with reactive\n * form directives was deprecated in Angular v6 and is scheduled for removal in\n * a future version of Angular.\n * For details, see [Deprecated features](guide/deprecations#ngmodel-with-reactive-forms).\n *\n * @see [Reactive Forms Guide](guide/reactive-forms)\n * @see {@link FormControl}\n * @see {@link AbstractControl}\n *\n * @usageNotes\n *\n * The following example shows how to register a standalone control and set its value.\n *\n * {@example forms/ts/simpleFormControl/simple_form_control_example.ts region='Component'}\n *\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nlet FormControlDirective = /*#__PURE__*/(() => {\n  class FormControlDirective extends NgControl {\n    /**\n     * @description\n     * Triggers a warning in dev mode that this input should not be used with reactive forms.\n     */\n    set isDisabled(isDisabled) {\n      if (typeof ngDevMode === 'undefined' || ngDevMode) {\n        console.warn(disabledAttrWarning);\n      }\n    }\n    /**\n     * @description\n     * Static property used to track whether any ngModel warnings have been sent across\n     * all instances of FormControlDirective. Used to support warning config of \"once\".\n     *\n     * @internal\n     */\n    static {\n      this._ngModelWarningSentOnce = false;\n    }\n    constructor(validators, asyncValidators, valueAccessors, _ngModelWarningConfig, callSetDisabledState) {\n      super();\n      this._ngModelWarningConfig = _ngModelWarningConfig;\n      this.callSetDisabledState = callSetDisabledState;\n      /** @deprecated as of v6 */\n      this.update = new EventEmitter();\n      /**\n       * @description\n       * Instance property used to track whether an ngModel warning has been sent out for this\n       * particular `FormControlDirective` instance. Used to support warning config of \"always\".\n       *\n       * @internal\n       */\n      this._ngModelWarningSent = false;\n      this._setValidators(validators);\n      this._setAsyncValidators(asyncValidators);\n      this.valueAccessor = selectValueAccessor(this, valueAccessors);\n    }\n    /** @nodoc */\n    ngOnChanges(changes) {\n      if (this._isControlChanged(changes)) {\n        const previousForm = changes['form'].previousValue;\n        if (previousForm) {\n          cleanUpControl(previousForm, this, /* validateControlPresenceOnChange */false);\n        }\n        setUpControl(this.form, this, this.callSetDisabledState);\n        this.form.updateValueAndValidity({\n          emitEvent: false\n        });\n      }\n      if (isPropertyUpdated(changes, this.viewModel)) {\n        if (typeof ngDevMode === 'undefined' || ngDevMode) {\n          _ngModelWarning('formControl', FormControlDirective, this, this._ngModelWarningConfig);\n        }\n        this.form.setValue(this.model);\n        this.viewModel = this.model;\n      }\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n      if (this.form) {\n        cleanUpControl(this.form, this, /* validateControlPresenceOnChange */false);\n      }\n    }\n    /**\n     * @description\n     * Returns an array that represents the path from the top-level form to this control.\n     * Each index is the string name of the control on that level.\n     */\n    get path() {\n      return [];\n    }\n    /**\n     * @description\n     * The `FormControl` bound to this directive.\n     */\n    get control() {\n      return this.form;\n    }\n    /**\n     * @description\n     * Sets the new value for the view model and emits an `ngModelChange` event.\n     *\n     * @param newValue The new value for the view model.\n     */\n    viewToModelUpdate(newValue) {\n      this.viewModel = newValue;\n      this.update.emit(newValue);\n    }\n    _isControlChanged(changes) {\n      return changes.hasOwnProperty('form');\n    }\n    static {\n      this.ɵfac = function FormControlDirective_Factory(t) {\n        return new (t || FormControlDirective)(i0.ɵɵdirectiveInject(NG_VALIDATORS, 10), i0.ɵɵdirectiveInject(NG_ASYNC_VALIDATORS, 10), i0.ɵɵdirectiveInject(NG_VALUE_ACCESSOR, 10), i0.ɵɵdirectiveInject(NG_MODEL_WITH_FORM_CONTROL_WARNING, 8), i0.ɵɵdirectiveInject(CALL_SET_DISABLED_STATE, 8));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: FormControlDirective,\n        selectors: [[\"\", \"formControl\", \"\"]],\n        inputs: {\n          form: [i0.ɵɵInputFlags.None, \"formControl\", \"form\"],\n          isDisabled: [i0.ɵɵInputFlags.None, \"disabled\", \"isDisabled\"],\n          model: [i0.ɵɵInputFlags.None, \"ngModel\", \"model\"]\n        },\n        outputs: {\n          update: \"ngModelChange\"\n        },\n        exportAs: [\"ngForm\"],\n        features: [i0.ɵɵProvidersFeature([formControlBinding]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature]\n      });\n    }\n  }\n  return FormControlDirective;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst formDirectiveProvider = {\n  provide: ControlContainer,\n  useExisting: /*#__PURE__*/forwardRef(() => FormGroupDirective)\n};\n/**\n * @description\n *\n * Binds an existing `FormGroup` or `FormRecord` to a DOM element.\n *\n * This directive accepts an existing `FormGroup` instance. It will then use this\n * `FormGroup` instance to match any child `FormControl`, `FormGroup`/`FormRecord`,\n * and `FormArray` instances to child `FormControlName`, `FormGroupName`,\n * and `FormArrayName` directives.\n *\n * @see [Reactive Forms Guide](guide/reactive-forms)\n * @see {@link AbstractControl}\n *\n * @usageNotes\n * ### Register Form Group\n *\n * The following example registers a `FormGroup` with first name and last name controls,\n * and listens for the *ngSubmit* event when the button is clicked.\n *\n * {@example forms/ts/simpleFormGroup/simple_form_group_example.ts region='Component'}\n *\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nlet FormGroupDirective = /*#__PURE__*/(() => {\n  class FormGroupDirective extends ControlContainer {\n    constructor(validators, asyncValidators, callSetDisabledState) {\n      super();\n      this.callSetDisabledState = callSetDisabledState;\n      /**\n       * @description\n       * Reports whether the form submission has been triggered.\n       */\n      this.submitted = false;\n      /**\n       * Callback that should be invoked when controls in FormGroup or FormArray collection change\n       * (added or removed). This callback triggers corresponding DOM updates.\n       */\n      this._onCollectionChange = () => this._updateDomValue();\n      /**\n       * @description\n       * Tracks the list of added `FormControlName` instances\n       */\n      this.directives = [];\n      /**\n       * @description\n       * Tracks the `FormGroup` bound to this directive.\n       */\n      this.form = null;\n      /**\n       * @description\n       * Emits an event when the form submission has been triggered.\n       */\n      this.ngSubmit = new EventEmitter();\n      this._setValidators(validators);\n      this._setAsyncValidators(asyncValidators);\n    }\n    /** @nodoc */\n    ngOnChanges(changes) {\n      this._checkFormPresent();\n      if (changes.hasOwnProperty('form')) {\n        this._updateValidators();\n        this._updateDomValue();\n        this._updateRegistrations();\n        this._oldForm = this.form;\n      }\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n      if (this.form) {\n        cleanUpValidators(this.form, this);\n        // Currently the `onCollectionChange` callback is rewritten each time the\n        // `_registerOnCollectionChange` function is invoked. The implication is that cleanup should\n        // happen *only* when the `onCollectionChange` callback was set by this directive instance.\n        // Otherwise it might cause overriding a callback of some other directive instances. We should\n        // consider updating this logic later to make it similar to how `onChange` callbacks are\n        // handled, see https://github.com/angular/angular/issues/39732 for additional info.\n        if (this.form._onCollectionChange === this._onCollectionChange) {\n          this.form._registerOnCollectionChange(() => {});\n        }\n      }\n    }\n    /**\n     * @description\n     * Returns this directive's instance.\n     */\n    get formDirective() {\n      return this;\n    }\n    /**\n     * @description\n     * Returns the `FormGroup` bound to this directive.\n     */\n    get control() {\n      return this.form;\n    }\n    /**\n     * @description\n     * Returns an array representing the path to this group. Because this directive\n     * always lives at the top level of a form, it always an empty array.\n     */\n    get path() {\n      return [];\n    }\n    /**\n     * @description\n     * Method that sets up the control directive in this group, re-calculates its value\n     * and validity, and adds the instance to the internal list of directives.\n     *\n     * @param dir The `FormControlName` directive instance.\n     */\n    addControl(dir) {\n      const ctrl = this.form.get(dir.path);\n      setUpControl(ctrl, dir, this.callSetDisabledState);\n      ctrl.updateValueAndValidity({\n        emitEvent: false\n      });\n      this.directives.push(dir);\n      return ctrl;\n    }\n    /**\n     * @description\n     * Retrieves the `FormControl` instance from the provided `FormControlName` directive\n     *\n     * @param dir The `FormControlName` directive instance.\n     */\n    getControl(dir) {\n      return this.form.get(dir.path);\n    }\n    /**\n     * @description\n     * Removes the `FormControlName` instance from the internal list of directives\n     *\n     * @param dir The `FormControlName` directive instance.\n     */\n    removeControl(dir) {\n      cleanUpControl(dir.control || null, dir, /* validateControlPresenceOnChange */false);\n      removeListItem$1(this.directives, dir);\n    }\n    /**\n     * Adds a new `FormGroupName` directive instance to the form.\n     *\n     * @param dir The `FormGroupName` directive instance.\n     */\n    addFormGroup(dir) {\n      this._setUpFormContainer(dir);\n    }\n    /**\n     * Performs the necessary cleanup when a `FormGroupName` directive instance is removed from the\n     * view.\n     *\n     * @param dir The `FormGroupName` directive instance.\n     */\n    removeFormGroup(dir) {\n      this._cleanUpFormContainer(dir);\n    }\n    /**\n     * @description\n     * Retrieves the `FormGroup` for a provided `FormGroupName` directive instance\n     *\n     * @param dir The `FormGroupName` directive instance.\n     */\n    getFormGroup(dir) {\n      return this.form.get(dir.path);\n    }\n    /**\n     * Performs the necessary setup when a `FormArrayName` directive instance is added to the view.\n     *\n     * @param dir The `FormArrayName` directive instance.\n     */\n    addFormArray(dir) {\n      this._setUpFormContainer(dir);\n    }\n    /**\n     * Performs the necessary cleanup when a `FormArrayName` directive instance is removed from the\n     * view.\n     *\n     * @param dir The `FormArrayName` directive instance.\n     */\n    removeFormArray(dir) {\n      this._cleanUpFormContainer(dir);\n    }\n    /**\n     * @description\n     * Retrieves the `FormArray` for a provided `FormArrayName` directive instance.\n     *\n     * @param dir The `FormArrayName` directive instance.\n     */\n    getFormArray(dir) {\n      return this.form.get(dir.path);\n    }\n    /**\n     * Sets the new value for the provided `FormControlName` directive.\n     *\n     * @param dir The `FormControlName` directive instance.\n     * @param value The new value for the directive's control.\n     */\n    updateModel(dir, value) {\n      const ctrl = this.form.get(dir.path);\n      ctrl.setValue(value);\n    }\n    /**\n     * @description\n     * Method called with the \"submit\" event is triggered on the form.\n     * Triggers the `ngSubmit` emitter to emit the \"submit\" event as its payload.\n     *\n     * @param $event The \"submit\" event object\n     */\n    onSubmit($event) {\n      this.submitted = true;\n      syncPendingControls(this.form, this.directives);\n      this.ngSubmit.emit($event);\n      // Forms with `method=\"dialog\"` have some special behavior that won't reload the page and that\n      // shouldn't be prevented. Note that we need to null check the `event` and the `target`, because\n      // some internal apps call this method directly with the wrong arguments.\n      return $event?.target?.method === 'dialog';\n    }\n    /**\n     * @description\n     * Method called when the \"reset\" event is triggered on the form.\n     */\n    onReset() {\n      this.resetForm();\n    }\n    /**\n     * @description\n     * Resets the form to an initial value and resets its submitted status.\n     *\n     * @param value The new value for the form.\n     */\n    resetForm(value = undefined) {\n      this.form.reset(value);\n      this.submitted = false;\n    }\n    /** @internal */\n    _updateDomValue() {\n      this.directives.forEach(dir => {\n        const oldCtrl = dir.control;\n        const newCtrl = this.form.get(dir.path);\n        if (oldCtrl !== newCtrl) {\n          // Note: the value of the `dir.control` may not be defined, for example when it's a first\n          // `FormControl` that is added to a `FormGroup` instance (via `addControl` call).\n          cleanUpControl(oldCtrl || null, dir);\n          // Check whether new control at the same location inside the corresponding `FormGroup` is an\n          // instance of `FormControl` and perform control setup only if that's the case.\n          // Note: we don't need to clear the list of directives (`this.directives`) here, it would be\n          // taken care of in the `removeControl` method invoked when corresponding `formControlName`\n          // directive instance is being removed (invoked from `FormControlName.ngOnDestroy`).\n          if (isFormControl(newCtrl)) {\n            setUpControl(newCtrl, dir, this.callSetDisabledState);\n            dir.control = newCtrl;\n          }\n        }\n      });\n      this.form._updateTreeValidity({\n        emitEvent: false\n      });\n    }\n    _setUpFormContainer(dir) {\n      const ctrl = this.form.get(dir.path);\n      setUpFormContainer(ctrl, dir);\n      // NOTE: this operation looks unnecessary in case no new validators were added in\n      // `setUpFormContainer` call. Consider updating this code to match the logic in\n      // `_cleanUpFormContainer` function.\n      ctrl.updateValueAndValidity({\n        emitEvent: false\n      });\n    }\n    _cleanUpFormContainer(dir) {\n      if (this.form) {\n        const ctrl = this.form.get(dir.path);\n        if (ctrl) {\n          const isControlUpdated = cleanUpFormContainer(ctrl, dir);\n          if (isControlUpdated) {\n            // Run validity check only in case a control was updated (i.e. view validators were\n            // removed) as removing view validators might cause validity to change.\n            ctrl.updateValueAndValidity({\n              emitEvent: false\n            });\n          }\n        }\n      }\n    }\n    _updateRegistrations() {\n      this.form._registerOnCollectionChange(this._onCollectionChange);\n      if (this._oldForm) {\n        this._oldForm._registerOnCollectionChange(() => {});\n      }\n    }\n    _updateValidators() {\n      setUpValidators(this.form, this);\n      if (this._oldForm) {\n        cleanUpValidators(this._oldForm, this);\n      }\n    }\n    _checkFormPresent() {\n      if (!this.form && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n        throw missingFormException();\n      }\n    }\n    static {\n      this.ɵfac = function FormGroupDirective_Factory(t) {\n        return new (t || FormGroupDirective)(i0.ɵɵdirectiveInject(NG_VALIDATORS, 10), i0.ɵɵdirectiveInject(NG_ASYNC_VALIDATORS, 10), i0.ɵɵdirectiveInject(CALL_SET_DISABLED_STATE, 8));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: FormGroupDirective,\n        selectors: [[\"\", \"formGroup\", \"\"]],\n        hostBindings: function FormGroupDirective_HostBindings(rf, ctx) {\n          if (rf & 1) {\n            i0.ɵɵlistener(\"submit\", function FormGroupDirective_submit_HostBindingHandler($event) {\n              return ctx.onSubmit($event);\n            })(\"reset\", function FormGroupDirective_reset_HostBindingHandler() {\n              return ctx.onReset();\n            });\n          }\n        },\n        inputs: {\n          form: [i0.ɵɵInputFlags.None, \"formGroup\", \"form\"]\n        },\n        outputs: {\n          ngSubmit: \"ngSubmit\"\n        },\n        exportAs: [\"ngForm\"],\n        features: [i0.ɵɵProvidersFeature([formDirectiveProvider]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature]\n      });\n    }\n  }\n  return FormGroupDirective;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst formGroupNameProvider = {\n  provide: ControlContainer,\n  useExisting: /*#__PURE__*/forwardRef(() => FormGroupName)\n};\n/**\n * @description\n *\n * Syncs a nested `FormGroup` or `FormRecord` to a DOM element.\n *\n * This directive can only be used with a parent `FormGroupDirective`.\n *\n * It accepts the string name of the nested `FormGroup` or `FormRecord` to link, and\n * looks for a `FormGroup` or `FormRecord` registered with that name in the parent\n * `FormGroup` instance you passed into `FormGroupDirective`.\n *\n * Use nested form groups to validate a sub-group of a\n * form separately from the rest or to group the values of certain\n * controls into their own nested object.\n *\n * @see [Reactive Forms Guide](guide/reactive-forms)\n *\n * @usageNotes\n *\n * ### Access the group by name\n *\n * The following example uses the `AbstractControl.get` method to access the\n * associated `FormGroup`\n *\n * ```ts\n *   this.form.get('name');\n * ```\n *\n * ### Access individual controls in the group\n *\n * The following example uses the `AbstractControl.get` method to access\n * individual controls within the group using dot syntax.\n *\n * ```ts\n *   this.form.get('name.first');\n * ```\n *\n * ### Register a nested `FormGroup`.\n *\n * The following example registers a nested *name* `FormGroup` within an existing `FormGroup`,\n * and provides methods to retrieve the nested `FormGroup` and individual controls.\n *\n * {@example forms/ts/nestedFormGroup/nested_form_group_example.ts region='Component'}\n *\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nlet FormGroupName = /*#__PURE__*/(() => {\n  class FormGroupName extends AbstractFormGroupDirective {\n    constructor(parent, validators, asyncValidators) {\n      super();\n      /**\n       * @description\n       * Tracks the name of the `FormGroup` bound to the directive. The name corresponds\n       * to a key in the parent `FormGroup` or `FormArray`.\n       * Accepts a name as a string or a number.\n       * The name in the form of a string is useful for individual forms,\n       * while the numerical form allows for form groups to be bound\n       * to indices when iterating over groups in a `FormArray`.\n       */\n      this.name = null;\n      this._parent = parent;\n      this._setValidators(validators);\n      this._setAsyncValidators(asyncValidators);\n    }\n    /** @internal */\n    _checkParentType() {\n      if (_hasInvalidParent(this._parent) && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n        throw groupParentException();\n      }\n    }\n    static {\n      this.ɵfac = function FormGroupName_Factory(t) {\n        return new (t || FormGroupName)(i0.ɵɵdirectiveInject(ControlContainer, 13), i0.ɵɵdirectiveInject(NG_VALIDATORS, 10), i0.ɵɵdirectiveInject(NG_ASYNC_VALIDATORS, 10));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: FormGroupName,\n        selectors: [[\"\", \"formGroupName\", \"\"]],\n        inputs: {\n          name: [i0.ɵɵInputFlags.None, \"formGroupName\", \"name\"]\n        },\n        features: [i0.ɵɵProvidersFeature([formGroupNameProvider]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return FormGroupName;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst formArrayNameProvider = {\n  provide: ControlContainer,\n  useExisting: /*#__PURE__*/forwardRef(() => FormArrayName)\n};\n/**\n * @description\n *\n * Syncs a nested `FormArray` to a DOM element.\n *\n * This directive is designed to be used with a parent `FormGroupDirective` (selector:\n * `[formGroup]`).\n *\n * It accepts the string name of the nested `FormArray` you want to link, and\n * will look for a `FormArray` registered with that name in the parent\n * `FormGroup` instance you passed into `FormGroupDirective`.\n *\n * @see [Reactive Forms Guide](guide/reactive-forms)\n * @see {@link AbstractControl}\n *\n * @usageNotes\n *\n * ### Example\n *\n * {@example forms/ts/nestedFormArray/nested_form_array_example.ts region='Component'}\n *\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nlet FormArrayName = /*#__PURE__*/(() => {\n  class FormArrayName extends ControlContainer {\n    constructor(parent, validators, asyncValidators) {\n      super();\n      /**\n       * @description\n       * Tracks the name of the `FormArray` bound to the directive. The name corresponds\n       * to a key in the parent `FormGroup` or `FormArray`.\n       * Accepts a name as a string or a number.\n       * The name in the form of a string is useful for individual forms,\n       * while the numerical form allows for form arrays to be bound\n       * to indices when iterating over arrays in a `FormArray`.\n       */\n      this.name = null;\n      this._parent = parent;\n      this._setValidators(validators);\n      this._setAsyncValidators(asyncValidators);\n    }\n    /**\n     * A lifecycle method called when the directive's inputs are initialized. For internal use only.\n     * @throws If the directive does not have a valid parent.\n     * @nodoc\n     */\n    ngOnInit() {\n      this._checkParentType();\n      this.formDirective.addFormArray(this);\n    }\n    /**\n     * A lifecycle method called before the directive's instance is destroyed. For internal use only.\n     * @nodoc\n     */\n    ngOnDestroy() {\n      if (this.formDirective) {\n        this.formDirective.removeFormArray(this);\n      }\n    }\n    /**\n     * @description\n     * The `FormArray` bound to this directive.\n     */\n    get control() {\n      return this.formDirective.getFormArray(this);\n    }\n    /**\n     * @description\n     * The top-level directive for this group if present, otherwise null.\n     */\n    get formDirective() {\n      return this._parent ? this._parent.formDirective : null;\n    }\n    /**\n     * @description\n     * Returns an array that represents the path from the top-level form to this control.\n     * Each index is the string name of the control on that level.\n     */\n    get path() {\n      return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);\n    }\n    _checkParentType() {\n      if (_hasInvalidParent(this._parent) && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n        throw arrayParentException();\n      }\n    }\n    static {\n      this.ɵfac = function FormArrayName_Factory(t) {\n        return new (t || FormArrayName)(i0.ɵɵdirectiveInject(ControlContainer, 13), i0.ɵɵdirectiveInject(NG_VALIDATORS, 10), i0.ɵɵdirectiveInject(NG_ASYNC_VALIDATORS, 10));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: FormArrayName,\n        selectors: [[\"\", \"formArrayName\", \"\"]],\n        inputs: {\n          name: [i0.ɵɵInputFlags.None, \"formArrayName\", \"name\"]\n        },\n        features: [i0.ɵɵProvidersFeature([formArrayNameProvider]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return FormArrayName;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction _hasInvalidParent(parent) {\n  return !(parent instanceof FormGroupName) && !(parent instanceof FormGroupDirective) && !(parent instanceof FormArrayName);\n}\nconst controlNameBinding = {\n  provide: NgControl,\n  useExisting: /*#__PURE__*/forwardRef(() => FormControlName)\n};\n/**\n * @description\n * Syncs a `FormControl` in an existing `FormGroup` to a form control\n * element by name.\n *\n * @see [Reactive Forms Guide](guide/reactive-forms)\n * @see {@link FormControl}\n * @see {@link AbstractControl}\n *\n * @usageNotes\n *\n * ### Register `FormControl` within a group\n *\n * The following example shows how to register multiple form controls within a form group\n * and set their value.\n *\n * {@example forms/ts/simpleFormGroup/simple_form_group_example.ts region='Component'}\n *\n * To see `formControlName` examples with different form control types, see:\n *\n * * Radio buttons: `RadioControlValueAccessor`\n * * Selects: `SelectControlValueAccessor`\n *\n * ### Use with ngModel is deprecated\n *\n * Support for using the `ngModel` input property and `ngModelChange` event with reactive\n * form directives has been deprecated in Angular v6 and is scheduled for removal in\n * a future version of Angular.\n *\n * For details, see [Deprecated features](guide/deprecations#ngmodel-with-reactive-forms).\n *\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nlet FormControlName = /*#__PURE__*/(() => {\n  class FormControlName extends NgControl {\n    /**\n     * @description\n     * Triggers a warning in dev mode that this input should not be used with reactive forms.\n     */\n    set isDisabled(isDisabled) {\n      if (typeof ngDevMode === 'undefined' || ngDevMode) {\n        console.warn(disabledAttrWarning);\n      }\n    }\n    /**\n     * @description\n     * Static property used to track whether any ngModel warnings have been sent across\n     * all instances of FormControlName. Used to support warning config of \"once\".\n     *\n     * @internal\n     */\n    static {\n      this._ngModelWarningSentOnce = false;\n    }\n    constructor(parent, validators, asyncValidators, valueAccessors, _ngModelWarningConfig) {\n      super();\n      this._ngModelWarningConfig = _ngModelWarningConfig;\n      this._added = false;\n      /**\n       * @description\n       * Tracks the name of the `FormControl` bound to the directive. The name corresponds\n       * to a key in the parent `FormGroup` or `FormArray`.\n       * Accepts a name as a string or a number.\n       * The name in the form of a string is useful for individual forms,\n       * while the numerical form allows for form controls to be bound\n       * to indices when iterating over controls in a `FormArray`.\n       */\n      this.name = null;\n      /** @deprecated as of v6 */\n      this.update = new EventEmitter();\n      /**\n       * @description\n       * Instance property used to track whether an ngModel warning has been sent out for this\n       * particular FormControlName instance. Used to support warning config of \"always\".\n       *\n       * @internal\n       */\n      this._ngModelWarningSent = false;\n      this._parent = parent;\n      this._setValidators(validators);\n      this._setAsyncValidators(asyncValidators);\n      this.valueAccessor = selectValueAccessor(this, valueAccessors);\n    }\n    /** @nodoc */\n    ngOnChanges(changes) {\n      if (!this._added) this._setUpControl();\n      if (isPropertyUpdated(changes, this.viewModel)) {\n        if (typeof ngDevMode === 'undefined' || ngDevMode) {\n          _ngModelWarning('formControlName', FormControlName, this, this._ngModelWarningConfig);\n        }\n        this.viewModel = this.model;\n        this.formDirective.updateModel(this, this.model);\n      }\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n      if (this.formDirective) {\n        this.formDirective.removeControl(this);\n      }\n    }\n    /**\n     * @description\n     * Sets the new value for the view model and emits an `ngModelChange` event.\n     *\n     * @param newValue The new value for the view model.\n     */\n    viewToModelUpdate(newValue) {\n      this.viewModel = newValue;\n      this.update.emit(newValue);\n    }\n    /**\n     * @description\n     * Returns an array that represents the path from the top-level form to this control.\n     * Each index is the string name of the control on that level.\n     */\n    get path() {\n      return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);\n    }\n    /**\n     * @description\n     * The top-level directive for this group if present, otherwise null.\n     */\n    get formDirective() {\n      return this._parent ? this._parent.formDirective : null;\n    }\n    _checkParentType() {\n      if (typeof ngDevMode === 'undefined' || ngDevMode) {\n        if (!(this._parent instanceof FormGroupName) && this._parent instanceof AbstractFormGroupDirective) {\n          throw ngModelGroupException();\n        } else if (!(this._parent instanceof FormGroupName) && !(this._parent instanceof FormGroupDirective) && !(this._parent instanceof FormArrayName)) {\n          throw controlParentException();\n        }\n      }\n    }\n    _setUpControl() {\n      this._checkParentType();\n      this.control = this.formDirective.addControl(this);\n      this._added = true;\n    }\n    static {\n      this.ɵfac = function FormControlName_Factory(t) {\n        return new (t || FormControlName)(i0.ɵɵdirectiveInject(ControlContainer, 13), i0.ɵɵdirectiveInject(NG_VALIDATORS, 10), i0.ɵɵdirectiveInject(NG_ASYNC_VALIDATORS, 10), i0.ɵɵdirectiveInject(NG_VALUE_ACCESSOR, 10), i0.ɵɵdirectiveInject(NG_MODEL_WITH_FORM_CONTROL_WARNING, 8));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: FormControlName,\n        selectors: [[\"\", \"formControlName\", \"\"]],\n        inputs: {\n          name: [i0.ɵɵInputFlags.None, \"formControlName\", \"name\"],\n          isDisabled: [i0.ɵɵInputFlags.None, \"disabled\", \"isDisabled\"],\n          model: [i0.ɵɵInputFlags.None, \"ngModel\", \"model\"]\n        },\n        outputs: {\n          update: \"ngModelChange\"\n        },\n        features: [i0.ɵɵProvidersFeature([controlNameBinding]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature]\n      });\n    }\n  }\n  return FormControlName;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst SELECT_VALUE_ACCESSOR = {\n  provide: NG_VALUE_ACCESSOR,\n  useExisting: /*#__PURE__*/forwardRef(() => SelectControlValueAccessor),\n  multi: true\n};\nfunction _buildValueString$1(id, value) {\n  if (id == null) return `${value}`;\n  if (value && typeof value === 'object') value = 'Object';\n  return `${id}: ${value}`.slice(0, 50);\n}\nfunction _extractId$1(valueString) {\n  return valueString.split(':')[0];\n}\n/**\n * @description\n * The `ControlValueAccessor` for writing select control values and listening to select control\n * changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and\n * `NgModel` directives.\n *\n * @usageNotes\n *\n * ### Using select controls in a reactive form\n *\n * The following examples show how to use a select control in a reactive form.\n *\n * {@example forms/ts/reactiveSelectControl/reactive_select_control_example.ts region='Component'}\n *\n * ### Using select controls in a template-driven form\n *\n * To use a select in a template-driven form, simply add an `ngModel` and a `name`\n * attribute to the main `<select>` tag.\n *\n * {@example forms/ts/selectControl/select_control_example.ts region='Component'}\n *\n * ### Customizing option selection\n *\n * Angular uses object identity to select option. It's possible for the identities of items\n * to change while the data does not. This can happen, for example, if the items are produced\n * from an RPC to the server, and that RPC is re-run. Even if the data hasn't changed, the\n * second response will produce objects with different identities.\n *\n * To customize the default option comparison algorithm, `<select>` supports `compareWith` input.\n * `compareWith` takes a **function** which has two arguments: `option1` and `option2`.\n * If `compareWith` is given, Angular selects option by the return value of the function.\n *\n * ```ts\n * const selectedCountriesControl = new FormControl();\n * ```\n *\n * ```\n * <select [compareWith]=\"compareFn\"  [formControl]=\"selectedCountriesControl\">\n *     <option *ngFor=\"let country of countries\" [ngValue]=\"country\">\n *         {{country.name}}\n *     </option>\n * </select>\n *\n * compareFn(c1: Country, c2: Country): boolean {\n *     return c1 && c2 ? c1.id === c2.id : c1 === c2;\n * }\n * ```\n *\n * **Note:** We listen to the 'change' event because 'input' events aren't fired\n * for selects in IE, see:\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event#browser_compatibility\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet SelectControlValueAccessor = /*#__PURE__*/(() => {\n  class SelectControlValueAccessor extends BuiltInControlValueAccessor {\n    constructor() {\n      super(...arguments);\n      /** @internal */\n      this._optionMap = new Map();\n      /** @internal */\n      this._idCounter = 0;\n      this._compareWith = Object.is;\n    }\n    /**\n     * @description\n     * Tracks the option comparison algorithm for tracking identities when\n     * checking for changes.\n     */\n    set compareWith(fn) {\n      if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n        throw new ɵRuntimeError(1201 /* RuntimeErrorCode.COMPAREWITH_NOT_A_FN */, `compareWith must be a function, but received ${JSON.stringify(fn)}`);\n      }\n      this._compareWith = fn;\n    }\n    /**\n     * Sets the \"value\" property on the select element.\n     * @nodoc\n     */\n    writeValue(value) {\n      this.value = value;\n      const id = this._getOptionId(value);\n      const valueString = _buildValueString$1(id, value);\n      this.setProperty('value', valueString);\n    }\n    /**\n     * Registers a function called when the control value changes.\n     * @nodoc\n     */\n    registerOnChange(fn) {\n      this.onChange = valueString => {\n        this.value = this._getOptionValue(valueString);\n        fn(this.value);\n      };\n    }\n    /** @internal */\n    _registerOption() {\n      return (this._idCounter++).toString();\n    }\n    /** @internal */\n    _getOptionId(value) {\n      for (const id of this._optionMap.keys()) {\n        if (this._compareWith(this._optionMap.get(id), value)) return id;\n      }\n      return null;\n    }\n    /** @internal */\n    _getOptionValue(valueString) {\n      const id = _extractId$1(valueString);\n      return this._optionMap.has(id) ? this._optionMap.get(id) : valueString;\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵSelectControlValueAccessor_BaseFactory;\n        return function SelectControlValueAccessor_Factory(t) {\n          return (ɵSelectControlValueAccessor_BaseFactory || (ɵSelectControlValueAccessor_BaseFactory = i0.ɵɵgetInheritedFactory(SelectControlValueAccessor)))(t || SelectControlValueAccessor);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: SelectControlValueAccessor,\n        selectors: [[\"select\", \"formControlName\", \"\", 3, \"multiple\", \"\"], [\"select\", \"formControl\", \"\", 3, \"multiple\", \"\"], [\"select\", \"ngModel\", \"\", 3, \"multiple\", \"\"]],\n        hostBindings: function SelectControlValueAccessor_HostBindings(rf, ctx) {\n          if (rf & 1) {\n            i0.ɵɵlistener(\"change\", function SelectControlValueAccessor_change_HostBindingHandler($event) {\n              return ctx.onChange($event.target.value);\n            })(\"blur\", function SelectControlValueAccessor_blur_HostBindingHandler() {\n              return ctx.onTouched();\n            });\n          }\n        },\n        inputs: {\n          compareWith: \"compareWith\"\n        },\n        features: [i0.ɵɵProvidersFeature([SELECT_VALUE_ACCESSOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return SelectControlValueAccessor;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n * Marks `<option>` as dynamic, so Angular can be notified when options change.\n *\n * @see {@link SelectControlValueAccessor}\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet NgSelectOption = /*#__PURE__*/(() => {\n  class NgSelectOption {\n    constructor(_element, _renderer, _select) {\n      this._element = _element;\n      this._renderer = _renderer;\n      this._select = _select;\n      if (this._select) this.id = this._select._registerOption();\n    }\n    /**\n     * @description\n     * Tracks the value bound to the option element. Unlike the value binding,\n     * ngValue supports binding to objects.\n     */\n    set ngValue(value) {\n      if (this._select == null) return;\n      this._select._optionMap.set(this.id, value);\n      this._setElementValue(_buildValueString$1(this.id, value));\n      this._select.writeValue(this._select.value);\n    }\n    /**\n     * @description\n     * Tracks simple string values bound to the option element.\n     * For objects, use the `ngValue` input binding.\n     */\n    set value(value) {\n      this._setElementValue(value);\n      if (this._select) this._select.writeValue(this._select.value);\n    }\n    /** @internal */\n    _setElementValue(value) {\n      this._renderer.setProperty(this._element.nativeElement, 'value', value);\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n      if (this._select) {\n        this._select._optionMap.delete(this.id);\n        this._select.writeValue(this._select.value);\n      }\n    }\n    static {\n      this.ɵfac = function NgSelectOption_Factory(t) {\n        return new (t || NgSelectOption)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(SelectControlValueAccessor, 9));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: NgSelectOption,\n        selectors: [[\"option\"]],\n        inputs: {\n          ngValue: \"ngValue\",\n          value: \"value\"\n        }\n      });\n    }\n  }\n  return NgSelectOption;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst SELECT_MULTIPLE_VALUE_ACCESSOR = {\n  provide: NG_VALUE_ACCESSOR,\n  useExisting: /*#__PURE__*/forwardRef(() => SelectMultipleControlValueAccessor),\n  multi: true\n};\nfunction _buildValueString(id, value) {\n  if (id == null) return `${value}`;\n  if (typeof value === 'string') value = `'${value}'`;\n  if (value && typeof value === 'object') value = 'Object';\n  return `${id}: ${value}`.slice(0, 50);\n}\nfunction _extractId(valueString) {\n  return valueString.split(':')[0];\n}\n/** Mock interface for HTMLCollection */\nclass HTMLCollection {}\n/**\n * @description\n * The `ControlValueAccessor` for writing multi-select control values and listening to multi-select\n * control changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and\n * `NgModel` directives.\n *\n * @see {@link SelectControlValueAccessor}\n *\n * @usageNotes\n *\n * ### Using a multi-select control\n *\n * The follow example shows you how to use a multi-select control with a reactive form.\n *\n * ```ts\n * const countryControl = new FormControl();\n * ```\n *\n * ```\n * <select multiple name=\"countries\" [formControl]=\"countryControl\">\n *   <option *ngFor=\"let country of countries\" [ngValue]=\"country\">\n *     {{ country.name }}\n *   </option>\n * </select>\n * ```\n *\n * ### Customizing option selection\n *\n * To customize the default option comparison algorithm, `<select>` supports `compareWith` input.\n * See the `SelectControlValueAccessor` for usage.\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet SelectMultipleControlValueAccessor = /*#__PURE__*/(() => {\n  class SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor {\n    constructor() {\n      super(...arguments);\n      /** @internal */\n      this._optionMap = new Map();\n      /** @internal */\n      this._idCounter = 0;\n      this._compareWith = Object.is;\n    }\n    /**\n     * @description\n     * Tracks the option comparison algorithm for tracking identities when\n     * checking for changes.\n     */\n    set compareWith(fn) {\n      if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n        throw new ɵRuntimeError(1201 /* RuntimeErrorCode.COMPAREWITH_NOT_A_FN */, `compareWith must be a function, but received ${JSON.stringify(fn)}`);\n      }\n      this._compareWith = fn;\n    }\n    /**\n     * Sets the \"value\" property on one or of more of the select's options.\n     * @nodoc\n     */\n    writeValue(value) {\n      this.value = value;\n      let optionSelectedStateSetter;\n      if (Array.isArray(value)) {\n        // convert values to ids\n        const ids = value.map(v => this._getOptionId(v));\n        optionSelectedStateSetter = (opt, o) => {\n          opt._setSelected(ids.indexOf(o.toString()) > -1);\n        };\n      } else {\n        optionSelectedStateSetter = (opt, o) => {\n          opt._setSelected(false);\n        };\n      }\n      this._optionMap.forEach(optionSelectedStateSetter);\n    }\n    /**\n     * Registers a function called when the control value changes\n     * and writes an array of the selected options.\n     * @nodoc\n     */\n    registerOnChange(fn) {\n      this.onChange = element => {\n        const selected = [];\n        const selectedOptions = element.selectedOptions;\n        if (selectedOptions !== undefined) {\n          const options = selectedOptions;\n          for (let i = 0; i < options.length; i++) {\n            const opt = options[i];\n            const val = this._getOptionValue(opt.value);\n            selected.push(val);\n          }\n        }\n        // Degrade to use `options` when `selectedOptions` property is not available.\n        // Note: the `selectedOptions` is available in all supported browsers, but the Domino lib\n        // doesn't have it currently, see https://github.com/fgnass/domino/issues/177.\n        else {\n          const options = element.options;\n          for (let i = 0; i < options.length; i++) {\n            const opt = options[i];\n            if (opt.selected) {\n              const val = this._getOptionValue(opt.value);\n              selected.push(val);\n            }\n          }\n        }\n        this.value = selected;\n        fn(selected);\n      };\n    }\n    /** @internal */\n    _registerOption(value) {\n      const id = (this._idCounter++).toString();\n      this._optionMap.set(id, value);\n      return id;\n    }\n    /** @internal */\n    _getOptionId(value) {\n      for (const id of this._optionMap.keys()) {\n        if (this._compareWith(this._optionMap.get(id)._value, value)) return id;\n      }\n      return null;\n    }\n    /** @internal */\n    _getOptionValue(valueString) {\n      const id = _extractId(valueString);\n      return this._optionMap.has(id) ? this._optionMap.get(id)._value : valueString;\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵSelectMultipleControlValueAccessor_BaseFactory;\n        return function SelectMultipleControlValueAccessor_Factory(t) {\n          return (ɵSelectMultipleControlValueAccessor_BaseFactory || (ɵSelectMultipleControlValueAccessor_BaseFactory = i0.ɵɵgetInheritedFactory(SelectMultipleControlValueAccessor)))(t || SelectMultipleControlValueAccessor);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: SelectMultipleControlValueAccessor,\n        selectors: [[\"select\", \"multiple\", \"\", \"formControlName\", \"\"], [\"select\", \"multiple\", \"\", \"formControl\", \"\"], [\"select\", \"multiple\", \"\", \"ngModel\", \"\"]],\n        hostBindings: function SelectMultipleControlValueAccessor_HostBindings(rf, ctx) {\n          if (rf & 1) {\n            i0.ɵɵlistener(\"change\", function SelectMultipleControlValueAccessor_change_HostBindingHandler($event) {\n              return ctx.onChange($event.target);\n            })(\"blur\", function SelectMultipleControlValueAccessor_blur_HostBindingHandler() {\n              return ctx.onTouched();\n            });\n          }\n        },\n        inputs: {\n          compareWith: \"compareWith\"\n        },\n        features: [i0.ɵɵProvidersFeature([SELECT_MULTIPLE_VALUE_ACCESSOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return SelectMultipleControlValueAccessor;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n * Marks `<option>` as dynamic, so Angular can be notified when options change.\n *\n * @see {@link SelectMultipleControlValueAccessor}\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet ɵNgSelectMultipleOption = /*#__PURE__*/(() => {\n  class ɵNgSelectMultipleOption {\n    constructor(_element, _renderer, _select) {\n      this._element = _element;\n      this._renderer = _renderer;\n      this._select = _select;\n      if (this._select) {\n        this.id = this._select._registerOption(this);\n      }\n    }\n    /**\n     * @description\n     * Tracks the value bound to the option element. Unlike the value binding,\n     * ngValue supports binding to objects.\n     */\n    set ngValue(value) {\n      if (this._select == null) return;\n      this._value = value;\n      this._setElementValue(_buildValueString(this.id, value));\n      this._select.writeValue(this._select.value);\n    }\n    /**\n     * @description\n     * Tracks simple string values bound to the option element.\n     * For objects, use the `ngValue` input binding.\n     */\n    set value(value) {\n      if (this._select) {\n        this._value = value;\n        this._setElementValue(_buildValueString(this.id, value));\n        this._select.writeValue(this._select.value);\n      } else {\n        this._setElementValue(value);\n      }\n    }\n    /** @internal */\n    _setElementValue(value) {\n      this._renderer.setProperty(this._element.nativeElement, 'value', value);\n    }\n    /** @internal */\n    _setSelected(selected) {\n      this._renderer.setProperty(this._element.nativeElement, 'selected', selected);\n    }\n    /** @nodoc */\n    ngOnDestroy() {\n      if (this._select) {\n        this._select._optionMap.delete(this.id);\n        this._select.writeValue(this._select.value);\n      }\n    }\n    static {\n      this.ɵfac = function ɵNgSelectMultipleOption_Factory(t) {\n        return new (t || ɵNgSelectMultipleOption)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(SelectMultipleControlValueAccessor, 9));\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: ɵNgSelectMultipleOption,\n        selectors: [[\"option\"]],\n        inputs: {\n          ngValue: \"ngValue\",\n          value: \"value\"\n        }\n      });\n    }\n  }\n  return ɵNgSelectMultipleOption;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Method that updates string to integer if not already a number\n *\n * @param value The value to convert to integer.\n * @returns value of parameter converted to number or integer.\n */\nfunction toInteger(value) {\n  return typeof value === 'number' ? value : parseInt(value, 10);\n}\n/**\n * Method that ensures that provided value is a float (and converts it to float if needed).\n *\n * @param value The value to convert to float.\n * @returns value of parameter converted to number or float.\n */\nfunction toFloat(value) {\n  return typeof value === 'number' ? value : parseFloat(value);\n}\n/**\n * A base class for Validator-based Directives. The class contains common logic shared across such\n * Directives.\n *\n * For internal use only, this class is not intended for use outside of the Forms package.\n */\nlet AbstractValidatorDirective = /*#__PURE__*/(() => {\n  class AbstractValidatorDirective {\n    constructor() {\n      this._validator = nullValidator;\n    }\n    /** @nodoc */\n    ngOnChanges(changes) {\n      if (this.inputName in changes) {\n        const input = this.normalizeInput(changes[this.inputName].currentValue);\n        this._enabled = this.enabled(input);\n        this._validator = this._enabled ? this.createValidator(input) : nullValidator;\n        if (this._onChange) {\n          this._onChange();\n        }\n      }\n    }\n    /** @nodoc */\n    validate(control) {\n      return this._validator(control);\n    }\n    /** @nodoc */\n    registerOnValidatorChange(fn) {\n      this._onChange = fn;\n    }\n    /**\n     * @description\n     * Determines whether this validator should be active or not based on an input.\n     * Base class implementation checks whether an input is defined (if the value is different from\n     * `null` and `undefined`). Validator classes that extend this base class can override this\n     * function with the logic specific to a particular validator directive.\n     */\n    enabled(input) {\n      return input != null /* both `null` and `undefined` */;\n    }\n    static {\n      this.ɵfac = function AbstractValidatorDirective_Factory(t) {\n        return new (t || AbstractValidatorDirective)();\n      };\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: AbstractValidatorDirective,\n        features: [i0.ɵɵNgOnChangesFeature]\n      });\n    }\n  }\n  return AbstractValidatorDirective;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n * Provider which adds `MaxValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst MAX_VALIDATOR = {\n  provide: NG_VALIDATORS,\n  useExisting: /*#__PURE__*/forwardRef(() => MaxValidator),\n  multi: true\n};\n/**\n * A directive which installs the {@link MaxValidator} for any `formControlName`,\n * `formControl`, or control with `ngModel` that also has a `max` attribute.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a max validator\n *\n * The following example shows how to add a max validator to an input attached to an\n * ngModel binding.\n *\n * ```html\n * <input type=\"number\" ngModel max=\"4\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet MaxValidator = /*#__PURE__*/(() => {\n  class MaxValidator extends AbstractValidatorDirective {\n    constructor() {\n      super(...arguments);\n      /** @internal */\n      this.inputName = 'max';\n      /** @internal */\n      this.normalizeInput = input => toFloat(input);\n      /** @internal */\n      this.createValidator = max => maxValidator(max);\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵMaxValidator_BaseFactory;\n        return function MaxValidator_Factory(t) {\n          return (ɵMaxValidator_BaseFactory || (ɵMaxValidator_BaseFactory = i0.ɵɵgetInheritedFactory(MaxValidator)))(t || MaxValidator);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: MaxValidator,\n        selectors: [[\"input\", \"type\", \"number\", \"max\", \"\", \"formControlName\", \"\"], [\"input\", \"type\", \"number\", \"max\", \"\", \"formControl\", \"\"], [\"input\", \"type\", \"number\", \"max\", \"\", \"ngModel\", \"\"]],\n        hostVars: 1,\n        hostBindings: function MaxValidator_HostBindings(rf, ctx) {\n          if (rf & 2) {\n            i0.ɵɵattribute(\"max\", ctx._enabled ? ctx.max : null);\n          }\n        },\n        inputs: {\n          max: \"max\"\n        },\n        features: [i0.ɵɵProvidersFeature([MAX_VALIDATOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return MaxValidator;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n * Provider which adds `MinValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst MIN_VALIDATOR = {\n  provide: NG_VALIDATORS,\n  useExisting: /*#__PURE__*/forwardRef(() => MinValidator),\n  multi: true\n};\n/**\n * A directive which installs the {@link MinValidator} for any `formControlName`,\n * `formControl`, or control with `ngModel` that also has a `min` attribute.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a min validator\n *\n * The following example shows how to add a min validator to an input attached to an\n * ngModel binding.\n *\n * ```html\n * <input type=\"number\" ngModel min=\"4\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet MinValidator = /*#__PURE__*/(() => {\n  class MinValidator extends AbstractValidatorDirective {\n    constructor() {\n      super(...arguments);\n      /** @internal */\n      this.inputName = 'min';\n      /** @internal */\n      this.normalizeInput = input => toFloat(input);\n      /** @internal */\n      this.createValidator = min => minValidator(min);\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵMinValidator_BaseFactory;\n        return function MinValidator_Factory(t) {\n          return (ɵMinValidator_BaseFactory || (ɵMinValidator_BaseFactory = i0.ɵɵgetInheritedFactory(MinValidator)))(t || MinValidator);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: MinValidator,\n        selectors: [[\"input\", \"type\", \"number\", \"min\", \"\", \"formControlName\", \"\"], [\"input\", \"type\", \"number\", \"min\", \"\", \"formControl\", \"\"], [\"input\", \"type\", \"number\", \"min\", \"\", \"ngModel\", \"\"]],\n        hostVars: 1,\n        hostBindings: function MinValidator_HostBindings(rf, ctx) {\n          if (rf & 2) {\n            i0.ɵɵattribute(\"min\", ctx._enabled ? ctx.min : null);\n          }\n        },\n        inputs: {\n          min: \"min\"\n        },\n        features: [i0.ɵɵProvidersFeature([MIN_VALIDATOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return MinValidator;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n * Provider which adds `RequiredValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst REQUIRED_VALIDATOR = {\n  provide: NG_VALIDATORS,\n  useExisting: /*#__PURE__*/forwardRef(() => RequiredValidator),\n  multi: true\n};\n/**\n * @description\n * Provider which adds `CheckboxRequiredValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst CHECKBOX_REQUIRED_VALIDATOR = {\n  provide: NG_VALIDATORS,\n  useExisting: /*#__PURE__*/forwardRef(() => CheckboxRequiredValidator),\n  multi: true\n};\n/**\n * @description\n * A directive that adds the `required` validator to any controls marked with the\n * `required` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a required validator using template-driven forms\n *\n * ```\n * <input name=\"fullName\" ngModel required>\n * ```\n *\n * @ngModule FormsModule\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nlet RequiredValidator = /*#__PURE__*/(() => {\n  class RequiredValidator extends AbstractValidatorDirective {\n    constructor() {\n      super(...arguments);\n      /** @internal */\n      this.inputName = 'required';\n      /** @internal */\n      this.normalizeInput = booleanAttribute;\n      /** @internal */\n      this.createValidator = input => requiredValidator;\n    }\n    /** @nodoc */\n    enabled(input) {\n      return input;\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵRequiredValidator_BaseFactory;\n        return function RequiredValidator_Factory(t) {\n          return (ɵRequiredValidator_BaseFactory || (ɵRequiredValidator_BaseFactory = i0.ɵɵgetInheritedFactory(RequiredValidator)))(t || RequiredValidator);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: RequiredValidator,\n        selectors: [[\"\", \"required\", \"\", \"formControlName\", \"\", 3, \"type\", \"checkbox\"], [\"\", \"required\", \"\", \"formControl\", \"\", 3, \"type\", \"checkbox\"], [\"\", \"required\", \"\", \"ngModel\", \"\", 3, \"type\", \"checkbox\"]],\n        hostVars: 1,\n        hostBindings: function RequiredValidator_HostBindings(rf, ctx) {\n          if (rf & 2) {\n            i0.ɵɵattribute(\"required\", ctx._enabled ? \"\" : null);\n          }\n        },\n        inputs: {\n          required: \"required\"\n        },\n        features: [i0.ɵɵProvidersFeature([REQUIRED_VALIDATOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return RequiredValidator;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * A Directive that adds the `required` validator to checkbox controls marked with the\n * `required` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a required checkbox validator using template-driven forms\n *\n * The following example shows how to add a checkbox required validator to an input attached to an\n * ngModel binding.\n *\n * ```\n * <input type=\"checkbox\" name=\"active\" ngModel required>\n * ```\n *\n * @publicApi\n * @ngModule FormsModule\n * @ngModule ReactiveFormsModule\n */\nlet CheckboxRequiredValidator = /*#__PURE__*/(() => {\n  class CheckboxRequiredValidator extends RequiredValidator {\n    constructor() {\n      super(...arguments);\n      /** @internal */\n      this.createValidator = input => requiredTrueValidator;\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵCheckboxRequiredValidator_BaseFactory;\n        return function CheckboxRequiredValidator_Factory(t) {\n          return (ɵCheckboxRequiredValidator_BaseFactory || (ɵCheckboxRequiredValidator_BaseFactory = i0.ɵɵgetInheritedFactory(CheckboxRequiredValidator)))(t || CheckboxRequiredValidator);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: CheckboxRequiredValidator,\n        selectors: [[\"input\", \"type\", \"checkbox\", \"required\", \"\", \"formControlName\", \"\"], [\"input\", \"type\", \"checkbox\", \"required\", \"\", \"formControl\", \"\"], [\"input\", \"type\", \"checkbox\", \"required\", \"\", \"ngModel\", \"\"]],\n        hostVars: 1,\n        hostBindings: function CheckboxRequiredValidator_HostBindings(rf, ctx) {\n          if (rf & 2) {\n            i0.ɵɵattribute(\"required\", ctx._enabled ? \"\" : null);\n          }\n        },\n        features: [i0.ɵɵProvidersFeature([CHECKBOX_REQUIRED_VALIDATOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return CheckboxRequiredValidator;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n * Provider which adds `EmailValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst EMAIL_VALIDATOR = {\n  provide: NG_VALIDATORS,\n  useExisting: /*#__PURE__*/forwardRef(() => EmailValidator),\n  multi: true\n};\n/**\n * A directive that adds the `email` validator to controls marked with the\n * `email` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * The email validation is based on the WHATWG HTML specification with some enhancements to\n * incorporate more RFC rules. More information can be found on the [Validators.email\n * page](api/forms/Validators#email).\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding an email validator\n *\n * The following example shows how to add an email validator to an input attached to an ngModel\n * binding.\n *\n * ```\n * <input type=\"email\" name=\"email\" ngModel email>\n * <input type=\"email\" name=\"email\" ngModel email=\"true\">\n * <input type=\"email\" name=\"email\" ngModel [email]=\"true\">\n * ```\n *\n * @publicApi\n * @ngModule FormsModule\n * @ngModule ReactiveFormsModule\n */\nlet EmailValidator = /*#__PURE__*/(() => {\n  class EmailValidator extends AbstractValidatorDirective {\n    constructor() {\n      super(...arguments);\n      /** @internal */\n      this.inputName = 'email';\n      /** @internal */\n      this.normalizeInput = booleanAttribute;\n      /** @internal */\n      this.createValidator = input => emailValidator;\n    }\n    /** @nodoc */\n    enabled(input) {\n      return input;\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵEmailValidator_BaseFactory;\n        return function EmailValidator_Factory(t) {\n          return (ɵEmailValidator_BaseFactory || (ɵEmailValidator_BaseFactory = i0.ɵɵgetInheritedFactory(EmailValidator)))(t || EmailValidator);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: EmailValidator,\n        selectors: [[\"\", \"email\", \"\", \"formControlName\", \"\"], [\"\", \"email\", \"\", \"formControl\", \"\"], [\"\", \"email\", \"\", \"ngModel\", \"\"]],\n        inputs: {\n          email: \"email\"\n        },\n        features: [i0.ɵɵProvidersFeature([EMAIL_VALIDATOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return EmailValidator;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n * Provider which adds `MinLengthValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst MIN_LENGTH_VALIDATOR = {\n  provide: NG_VALIDATORS,\n  useExisting: /*#__PURE__*/forwardRef(() => MinLengthValidator),\n  multi: true\n};\n/**\n * A directive that adds minimum length validation to controls marked with the\n * `minlength` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a minimum length validator\n *\n * The following example shows how to add a minimum length validator to an input attached to an\n * ngModel binding.\n *\n * ```html\n * <input name=\"firstName\" ngModel minlength=\"4\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet MinLengthValidator = /*#__PURE__*/(() => {\n  class MinLengthValidator extends AbstractValidatorDirective {\n    constructor() {\n      super(...arguments);\n      /** @internal */\n      this.inputName = 'minlength';\n      /** @internal */\n      this.normalizeInput = input => toInteger(input);\n      /** @internal */\n      this.createValidator = minlength => minLengthValidator(minlength);\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵMinLengthValidator_BaseFactory;\n        return function MinLengthValidator_Factory(t) {\n          return (ɵMinLengthValidator_BaseFactory || (ɵMinLengthValidator_BaseFactory = i0.ɵɵgetInheritedFactory(MinLengthValidator)))(t || MinLengthValidator);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: MinLengthValidator,\n        selectors: [[\"\", \"minlength\", \"\", \"formControlName\", \"\"], [\"\", \"minlength\", \"\", \"formControl\", \"\"], [\"\", \"minlength\", \"\", \"ngModel\", \"\"]],\n        hostVars: 1,\n        hostBindings: function MinLengthValidator_HostBindings(rf, ctx) {\n          if (rf & 2) {\n            i0.ɵɵattribute(\"minlength\", ctx._enabled ? ctx.minlength : null);\n          }\n        },\n        inputs: {\n          minlength: \"minlength\"\n        },\n        features: [i0.ɵɵProvidersFeature([MIN_LENGTH_VALIDATOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return MinLengthValidator;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n * Provider which adds `MaxLengthValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst MAX_LENGTH_VALIDATOR = {\n  provide: NG_VALIDATORS,\n  useExisting: /*#__PURE__*/forwardRef(() => MaxLengthValidator),\n  multi: true\n};\n/**\n * A directive that adds maximum length validation to controls marked with the\n * `maxlength` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a maximum length validator\n *\n * The following example shows how to add a maximum length validator to an input attached to an\n * ngModel binding.\n *\n * ```html\n * <input name=\"firstName\" ngModel maxlength=\"25\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet MaxLengthValidator = /*#__PURE__*/(() => {\n  class MaxLengthValidator extends AbstractValidatorDirective {\n    constructor() {\n      super(...arguments);\n      /** @internal */\n      this.inputName = 'maxlength';\n      /** @internal */\n      this.normalizeInput = input => toInteger(input);\n      /** @internal */\n      this.createValidator = maxlength => maxLengthValidator(maxlength);\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵMaxLengthValidator_BaseFactory;\n        return function MaxLengthValidator_Factory(t) {\n          return (ɵMaxLengthValidator_BaseFactory || (ɵMaxLengthValidator_BaseFactory = i0.ɵɵgetInheritedFactory(MaxLengthValidator)))(t || MaxLengthValidator);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: MaxLengthValidator,\n        selectors: [[\"\", \"maxlength\", \"\", \"formControlName\", \"\"], [\"\", \"maxlength\", \"\", \"formControl\", \"\"], [\"\", \"maxlength\", \"\", \"ngModel\", \"\"]],\n        hostVars: 1,\n        hostBindings: function MaxLengthValidator_HostBindings(rf, ctx) {\n          if (rf & 2) {\n            i0.ɵɵattribute(\"maxlength\", ctx._enabled ? ctx.maxlength : null);\n          }\n        },\n        inputs: {\n          maxlength: \"maxlength\"\n        },\n        features: [i0.ɵɵProvidersFeature([MAX_LENGTH_VALIDATOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return MaxLengthValidator;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n * Provider which adds `PatternValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst PATTERN_VALIDATOR = {\n  provide: NG_VALIDATORS,\n  useExisting: /*#__PURE__*/forwardRef(() => PatternValidator),\n  multi: true\n};\n/**\n * @description\n * A directive that adds regex pattern validation to controls marked with the\n * `pattern` attribute. The regex must match the entire control value.\n * The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a pattern validator\n *\n * The following example shows how to add a pattern validator to an input attached to an\n * ngModel binding.\n *\n * ```html\n * <input name=\"firstName\" ngModel pattern=\"[a-zA-Z ]*\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nlet PatternValidator = /*#__PURE__*/(() => {\n  class PatternValidator extends AbstractValidatorDirective {\n    constructor() {\n      super(...arguments);\n      /** @internal */\n      this.inputName = 'pattern';\n      /** @internal */\n      this.normalizeInput = input => input;\n      /** @internal */\n      this.createValidator = input => patternValidator(input);\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵPatternValidator_BaseFactory;\n        return function PatternValidator_Factory(t) {\n          return (ɵPatternValidator_BaseFactory || (ɵPatternValidator_BaseFactory = i0.ɵɵgetInheritedFactory(PatternValidator)))(t || PatternValidator);\n        };\n      })();\n    }\n    static {\n      this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n        type: PatternValidator,\n        selectors: [[\"\", \"pattern\", \"\", \"formControlName\", \"\"], [\"\", \"pattern\", \"\", \"formControl\", \"\"], [\"\", \"pattern\", \"\", \"ngModel\", \"\"]],\n        hostVars: 1,\n        hostBindings: function PatternValidator_HostBindings(rf, ctx) {\n          if (rf & 2) {\n            i0.ɵɵattribute(\"pattern\", ctx._enabled ? ctx.pattern : null);\n          }\n        },\n        inputs: {\n          pattern: \"pattern\"\n        },\n        features: [i0.ɵɵProvidersFeature([PATTERN_VALIDATOR]), i0.ɵɵInheritDefinitionFeature]\n      });\n    }\n  }\n  return PatternValidator;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst SHARED_FORM_DIRECTIVES = [ɵNgNoValidate, NgSelectOption, ɵNgSelectMultipleOption, DefaultValueAccessor, NumberValueAccessor, RangeValueAccessor, CheckboxControlValueAccessor, SelectControlValueAccessor, SelectMultipleControlValueAccessor, RadioControlValueAccessor, NgControlStatus, NgControlStatusGroup, RequiredValidator, MinLengthValidator, MaxLengthValidator, PatternValidator, CheckboxRequiredValidator, EmailValidator, MinValidator, MaxValidator];\nconst TEMPLATE_DRIVEN_DIRECTIVES = [NgModel, NgModelGroup, NgForm];\nconst REACTIVE_DRIVEN_DIRECTIVES = [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName];\n/**\n * Internal module used for sharing directives between FormsModule and ReactiveFormsModule\n */\nlet ɵInternalFormsSharedModule = /*#__PURE__*/(() => {\n  class ɵInternalFormsSharedModule {\n    static {\n      this.ɵfac = function ɵInternalFormsSharedModule_Factory(t) {\n        return new (t || ɵInternalFormsSharedModule)();\n      };\n    }\n    static {\n      this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n        type: ɵInternalFormsSharedModule\n      });\n    }\n    static {\n      this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({});\n    }\n  }\n  return ɵInternalFormsSharedModule;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Tracks the value and validity state of an array of `FormControl`,\n * `FormGroup` or `FormArray` instances.\n *\n * A `FormArray` aggregates the values of each child `FormControl` into an array.\n * It calculates its status by reducing the status values of its children. For example, if one of\n * the controls in a `FormArray` is invalid, the entire array becomes invalid.\n *\n * `FormArray` accepts one generic argument, which is the type of the controls inside.\n * If you need a heterogenous array, use {@link UntypedFormArray}.\n *\n * `FormArray` is one of the four fundamental building blocks used to define forms in Angular,\n * along with `FormControl`, `FormGroup`, and `FormRecord`.\n *\n * @usageNotes\n *\n * ### Create an array of form controls\n *\n * ```\n * const arr = new FormArray([\n *   new FormControl('Nancy', Validators.minLength(2)),\n *   new FormControl('Drew'),\n * ]);\n *\n * console.log(arr.value);   // ['Nancy', 'Drew']\n * console.log(arr.status);  // 'VALID'\n * ```\n *\n * ### Create a form array with array-level validators\n *\n * You include array-level validators and async validators. These come in handy\n * when you want to perform validation that considers the value of more than one child\n * control.\n *\n * The two types of validators are passed in separately as the second and third arg\n * respectively, or together as part of an options object.\n *\n * ```\n * const arr = new FormArray([\n *   new FormControl('Nancy'),\n *   new FormControl('Drew')\n * ], {validators: myValidator, asyncValidators: myAsyncValidator});\n * ```\n *\n * ### Set the updateOn property for all controls in a form array\n *\n * The options object is used to set a default value for each child\n * control's `updateOn` property. If you set `updateOn` to `'blur'` at the\n * array level, all child controls default to 'blur', unless the child\n * has explicitly specified a different `updateOn` value.\n *\n * ```ts\n * const arr = new FormArray([\n *    new FormControl()\n * ], {updateOn: 'blur'});\n * ```\n *\n * ### Adding or removing controls from a form array\n *\n * To change the controls in the array, use the `push`, `insert`, `removeAt` or `clear` methods\n * in `FormArray` itself. These methods ensure the controls are properly tracked in the\n * form's hierarchy. Do not modify the array of `AbstractControl`s used to instantiate\n * the `FormArray` directly, as that result in strange and unexpected behavior such\n * as broken change detection.\n *\n * @publicApi\n */\nclass FormArray extends AbstractControl {\n  /**\n   * Creates a new `FormArray` instance.\n   *\n   * @param controls An array of child controls. Each child control is given an index\n   * where it is registered.\n   *\n   * @param validatorOrOpts A synchronous validator function, or an array of\n   * such functions, or an `AbstractControlOptions` object that contains validation functions\n   * and a validation trigger.\n   *\n   * @param asyncValidator A single async validator or array of async validator functions\n   *\n   */\n  constructor(controls, validatorOrOpts, asyncValidator) {\n    super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));\n    this.controls = controls;\n    this._initObservables();\n    this._setUpdateStrategy(validatorOrOpts);\n    this._setUpControls();\n    this.updateValueAndValidity({\n      onlySelf: true,\n      // If `asyncValidator` is present, it will trigger control status change from `PENDING` to\n      // `VALID` or `INVALID`.\n      // The status should be broadcasted via the `statusChanges` observable, so we set `emitEvent`\n      // to `true` to allow that during the control creation process.\n      emitEvent: !!this.asyncValidator\n    });\n  }\n  /**\n   * Get the `AbstractControl` at the given `index` in the array.\n   *\n   * @param index Index in the array to retrieve the control. If `index` is negative, it will wrap\n   *     around from the back, and if index is greatly negative (less than `-length`), the result is\n   * undefined. This behavior is the same as `Array.at(index)`.\n   */\n  at(index) {\n    return this.controls[this._adjustIndex(index)];\n  }\n  /**\n   * Insert a new `AbstractControl` at the end of the array.\n   *\n   * @param control Form control to be inserted\n   * @param options Specifies whether this FormArray instance should emit events after a new\n   *     control is added.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges` observables emit events with the latest status and value when the control is\n   * inserted. When false, no events are emitted.\n   */\n  push(control, options = {}) {\n    this.controls.push(control);\n    this._registerControl(control);\n    this.updateValueAndValidity({\n      emitEvent: options.emitEvent\n    });\n    this._onCollectionChange();\n  }\n  /**\n   * Insert a new `AbstractControl` at the given `index` in the array.\n   *\n   * @param index Index in the array to insert the control. If `index` is negative, wraps around\n   *     from the back. If `index` is greatly negative (less than `-length`), prepends to the array.\n   * This behavior is the same as `Array.splice(index, 0, control)`.\n   * @param control Form control to be inserted\n   * @param options Specifies whether this FormArray instance should emit events after a new\n   *     control is inserted.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges` observables emit events with the latest status and value when the control is\n   * inserted. When false, no events are emitted.\n   */\n  insert(index, control, options = {}) {\n    this.controls.splice(index, 0, control);\n    this._registerControl(control);\n    this.updateValueAndValidity({\n      emitEvent: options.emitEvent\n    });\n  }\n  /**\n   * Remove the control at the given `index` in the array.\n   *\n   * @param index Index in the array to remove the control.  If `index` is negative, wraps around\n   *     from the back. If `index` is greatly negative (less than `-length`), removes the first\n   *     element. This behavior is the same as `Array.splice(index, 1)`.\n   * @param options Specifies whether this FormArray instance should emit events after a\n   *     control is removed.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges` observables emit events with the latest status and value when the control is\n   * removed. When false, no events are emitted.\n   */\n  removeAt(index, options = {}) {\n    // Adjust the index, then clamp it at no less than 0 to prevent undesired underflows.\n    let adjustedIndex = this._adjustIndex(index);\n    if (adjustedIndex < 0) adjustedIndex = 0;\n    if (this.controls[adjustedIndex]) this.controls[adjustedIndex]._registerOnCollectionChange(() => {});\n    this.controls.splice(adjustedIndex, 1);\n    this.updateValueAndValidity({\n      emitEvent: options.emitEvent\n    });\n  }\n  /**\n   * Replace an existing control.\n   *\n   * @param index Index in the array to replace the control. If `index` is negative, wraps around\n   *     from the back. If `index` is greatly negative (less than `-length`), replaces the first\n   *     element. This behavior is the same as `Array.splice(index, 1, control)`.\n   * @param control The `AbstractControl` control to replace the existing control\n   * @param options Specifies whether this FormArray instance should emit events after an\n   *     existing control is replaced with a new one.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges` observables emit events with the latest status and value when the control is\n   * replaced with a new one. When false, no events are emitted.\n   */\n  setControl(index, control, options = {}) {\n    // Adjust the index, then clamp it at no less than 0 to prevent undesired underflows.\n    let adjustedIndex = this._adjustIndex(index);\n    if (adjustedIndex < 0) adjustedIndex = 0;\n    if (this.controls[adjustedIndex]) this.controls[adjustedIndex]._registerOnCollectionChange(() => {});\n    this.controls.splice(adjustedIndex, 1);\n    if (control) {\n      this.controls.splice(adjustedIndex, 0, control);\n      this._registerControl(control);\n    }\n    this.updateValueAndValidity({\n      emitEvent: options.emitEvent\n    });\n    this._onCollectionChange();\n  }\n  /**\n   * Length of the control array.\n   */\n  get length() {\n    return this.controls.length;\n  }\n  /**\n   * Sets the value of the `FormArray`. It accepts an array that matches\n   * the structure of the control.\n   *\n   * This method performs strict checks, and throws an error if you try\n   * to set the value of a control that doesn't exist or if you exclude the\n   * value of a control.\n   *\n   * @usageNotes\n   * ### Set the values for the controls in the form array\n   *\n   * ```\n   * const arr = new FormArray([\n   *   new FormControl(),\n   *   new FormControl()\n   * ]);\n   * console.log(arr.value);   // [null, null]\n   *\n   * arr.setValue(['Nancy', 'Drew']);\n   * console.log(arr.value);   // ['Nancy', 'Drew']\n   * ```\n   *\n   * @param value Array of values for the controls\n   * @param options Configure options that determine how the control propagates changes and\n   * emits events after the value changes\n   *\n   * * `onlySelf`: When true, each change only affects this control, and not its parent. Default\n   * is false.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges`\n   * observables emit events with the latest status and value when the control value is updated.\n   * When false, no events are emitted.\n   * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity\n   * updateValueAndValidity} method.\n   */\n  setValue(value, options = {}) {\n    assertAllValuesPresent(this, false, value);\n    value.forEach((newValue, index) => {\n      assertControlPresent(this, false, index);\n      this.at(index).setValue(newValue, {\n        onlySelf: true,\n        emitEvent: options.emitEvent\n      });\n    });\n    this.updateValueAndValidity(options);\n  }\n  /**\n   * Patches the value of the `FormArray`. It accepts an array that matches the\n   * structure of the control, and does its best to match the values to the correct\n   * controls in the group.\n   *\n   * It accepts both super-sets and sub-sets of the array without throwing an error.\n   *\n   * @usageNotes\n   * ### Patch the values for controls in a form array\n   *\n   * ```\n   * const arr = new FormArray([\n   *    new FormControl(),\n   *    new FormControl()\n   * ]);\n   * console.log(arr.value);   // [null, null]\n   *\n   * arr.patchValue(['Nancy']);\n   * console.log(arr.value);   // ['Nancy', null]\n   * ```\n   *\n   * @param value Array of latest values for the controls\n   * @param options Configure options that determine how the control propagates changes and\n   * emits events after the value changes\n   *\n   * * `onlySelf`: When true, each change only affects this control, and not its parent. Default\n   * is false.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges` observables emit events with the latest status and value when the control\n   * value is updated. When false, no events are emitted. The configuration options are passed to\n   * the {@link AbstractControl#updateValueAndValidity updateValueAndValidity} method.\n   */\n  patchValue(value, options = {}) {\n    // Even though the `value` argument type doesn't allow `null` and `undefined` values, the\n    // `patchValue` can be called recursively and inner data structures might have these values,\n    // so we just ignore such cases when a field containing FormArray instance receives `null` or\n    // `undefined` as a value.\n    if (value == null /* both `null` and `undefined` */) return;\n    value.forEach((newValue, index) => {\n      if (this.at(index)) {\n        this.at(index).patchValue(newValue, {\n          onlySelf: true,\n          emitEvent: options.emitEvent\n        });\n      }\n    });\n    this.updateValueAndValidity(options);\n  }\n  /**\n   * Resets the `FormArray` and all descendants are marked `pristine` and `untouched`, and the\n   * value of all descendants to null or null maps.\n   *\n   * You reset to a specific form state by passing in an array of states\n   * that matches the structure of the control. The state is a standalone value\n   * or a form state object with both a value and a disabled status.\n   *\n   * @usageNotes\n   * ### Reset the values in a form array\n   *\n   * ```ts\n   * const arr = new FormArray([\n   *    new FormControl(),\n   *    new FormControl()\n   * ]);\n   * arr.reset(['name', 'last name']);\n   *\n   * console.log(arr.value);  // ['name', 'last name']\n   * ```\n   *\n   * ### Reset the values in a form array and the disabled status for the first control\n   *\n   * ```\n   * arr.reset([\n   *   {value: 'name', disabled: true},\n   *   'last'\n   * ]);\n   *\n   * console.log(arr.value);  // ['last']\n   * console.log(arr.at(0).status);  // 'DISABLED'\n   * ```\n   *\n   * @param value Array of values for the controls\n   * @param options Configure options that determine how the control propagates changes and\n   * emits events after the value changes\n   *\n   * * `onlySelf`: When true, each change only affects this control, and not its parent. Default\n   * is false.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges`\n   * observables emit events with the latest status and value when the control is reset.\n   * When false, no events are emitted.\n   * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity\n   * updateValueAndValidity} method.\n   */\n  reset(value = [], options = {}) {\n    this._forEachChild((control, index) => {\n      control.reset(value[index], {\n        onlySelf: true,\n        emitEvent: options.emitEvent\n      });\n    });\n    this._updatePristine(options);\n    this._updateTouched(options);\n    this.updateValueAndValidity(options);\n  }\n  /**\n   * The aggregate value of the array, including any disabled controls.\n   *\n   * Reports all values regardless of disabled status.\n   */\n  getRawValue() {\n    return this.controls.map(control => control.getRawValue());\n  }\n  /**\n   * Remove all controls in the `FormArray`.\n   *\n   * @param options Specifies whether this FormArray instance should emit events after all\n   *     controls are removed.\n   * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n   * `valueChanges` observables emit events with the latest status and value when all controls\n   * in this FormArray instance are removed. When false, no events are emitted.\n   *\n   * @usageNotes\n   * ### Remove all elements from a FormArray\n   *\n   * ```ts\n   * const arr = new FormArray([\n   *    new FormControl(),\n   *    new FormControl()\n   * ]);\n   * console.log(arr.length);  // 2\n   *\n   * arr.clear();\n   * console.log(arr.length);  // 0\n   * ```\n   *\n   * It's a simpler and more efficient alternative to removing all elements one by one:\n   *\n   * ```ts\n   * const arr = new FormArray([\n   *    new FormControl(),\n   *    new FormControl()\n   * ]);\n   *\n   * while (arr.length) {\n   *    arr.removeAt(0);\n   * }\n   * ```\n   */\n  clear(options = {}) {\n    if (this.controls.length < 1) return;\n    this._forEachChild(control => control._registerOnCollectionChange(() => {}));\n    this.controls.splice(0);\n    this.updateValueAndValidity({\n      emitEvent: options.emitEvent\n    });\n  }\n  /**\n   * Adjusts a negative index by summing it with the length of the array. For very negative\n   * indices, the result may remain negative.\n   * @internal\n   */\n  _adjustIndex(index) {\n    return index < 0 ? index + this.length : index;\n  }\n  /** @internal */\n  _syncPendingControls() {\n    let subtreeUpdated = this.controls.reduce((updated, child) => {\n      return child._syncPendingControls() ? true : updated;\n    }, false);\n    if (subtreeUpdated) this.updateValueAndValidity({\n      onlySelf: true\n    });\n    return subtreeUpdated;\n  }\n  /** @internal */\n  _forEachChild(cb) {\n    this.controls.forEach((control, index) => {\n      cb(control, index);\n    });\n  }\n  /** @internal */\n  _updateValue() {\n    this.value = this.controls.filter(control => control.enabled || this.disabled).map(control => control.value);\n  }\n  /** @internal */\n  _anyControls(condition) {\n    return this.controls.some(control => control.enabled && condition(control));\n  }\n  /** @internal */\n  _setUpControls() {\n    this._forEachChild(control => this._registerControl(control));\n  }\n  /** @internal */\n  _allControlsDisabled() {\n    for (const control of this.controls) {\n      if (control.enabled) return false;\n    }\n    return this.controls.length > 0 || this.disabled;\n  }\n  _registerControl(control) {\n    control.setParent(this);\n    control._registerOnCollectionChange(this._onCollectionChange);\n  }\n  /** @internal */\n  _find(name) {\n    return this.at(name) ?? null;\n  }\n}\nconst UntypedFormArray = FormArray;\n/**\n * @description\n * Asserts that the given control is an instance of `FormArray`\n *\n * @publicApi\n */\nconst isFormArray = control => control instanceof FormArray;\nfunction isAbstractControlOptions(options) {\n  return !!options && (options.asyncValidators !== undefined || options.validators !== undefined || options.updateOn !== undefined);\n}\n// clang-format on\n/**\n * @description\n * Creates an `AbstractControl` from a user-specified configuration.\n *\n * The `FormBuilder` provides syntactic sugar that shortens creating instances of a\n * `FormControl`, `FormGroup`, or `FormArray`. It reduces the amount of boilerplate needed to\n * build complex forms.\n *\n * @see [Reactive Forms Guide](guide/reactive-forms)\n *\n * @publicApi\n */\nlet FormBuilder = /*#__PURE__*/(() => {\n  class FormBuilder {\n    constructor() {\n      this.useNonNullable = false;\n    }\n    /**\n     * @description\n     * Returns a FormBuilder in which automatically constructed `FormControl` elements\n     * have `{nonNullable: true}` and are non-nullable.\n     *\n     * **Constructing non-nullable controls**\n     *\n     * When constructing a control, it will be non-nullable, and will reset to its initial value.\n     *\n     * ```ts\n     * let nnfb = new FormBuilder().nonNullable;\n     * let name = nnfb.control('Alex'); // FormControl<string>\n     * name.reset();\n     * console.log(name); // 'Alex'\n     * ```\n     *\n     * **Constructing non-nullable groups or arrays**\n     *\n     * When constructing a group or array, all automatically created inner controls will be\n     * non-nullable, and will reset to their initial values.\n     *\n     * ```ts\n     * let nnfb = new FormBuilder().nonNullable;\n     * let name = nnfb.group({who: 'Alex'}); // FormGroup<{who: FormControl<string>}>\n     * name.reset();\n     * console.log(name); // {who: 'Alex'}\n     * ```\n     * **Constructing *nullable* fields on groups or arrays**\n     *\n     * It is still possible to have a nullable field. In particular, any `FormControl` which is\n     * *already* constructed will not be altered. For example:\n     *\n     * ```ts\n     * let nnfb = new FormBuilder().nonNullable;\n     * // FormGroup<{who: FormControl<string|null>}>\n     * let name = nnfb.group({who: new FormControl('Alex')});\n     * name.reset(); console.log(name); // {who: null}\n     * ```\n     *\n     * Because the inner control is constructed explicitly by the caller, the builder has\n     * no control over how it is created, and cannot exclude the `null`.\n     */\n    get nonNullable() {\n      const nnfb = new FormBuilder();\n      nnfb.useNonNullable = true;\n      return nnfb;\n    }\n    group(controls, options = null) {\n      const reducedControls = this._reduceControls(controls);\n      let newOptions = {};\n      if (isAbstractControlOptions(options)) {\n        // `options` are `AbstractControlOptions`\n        newOptions = options;\n      } else if (options !== null) {\n        // `options` are legacy form group options\n        newOptions.validators = options.validator;\n        newOptions.asyncValidators = options.asyncValidator;\n      }\n      return new FormGroup(reducedControls, newOptions);\n    }\n    /**\n     * @description\n     * Constructs a new `FormRecord` instance. Accepts a single generic argument, which is an object\n     * containing all the keys and corresponding inner control types.\n     *\n     * @param controls A collection of child controls. The key for each child is the name\n     * under which it is registered.\n     *\n     * @param options Configuration options object for the `FormRecord`. The object should have the\n     * `AbstractControlOptions` type and might contain the following fields:\n     * * `validators`: A synchronous validator function, or an array of validator functions.\n     * * `asyncValidators`: A single async validator or array of async validator functions.\n     * * `updateOn`: The event upon which the control should be updated (options: 'change' | 'blur'\n     * | submit').\n     */\n    record(controls, options = null) {\n      const reducedControls = this._reduceControls(controls);\n      // Cast to `any` because the inferred types are not as specific as Element.\n      return new FormRecord(reducedControls, options);\n    }\n    /**\n     * @description\n     * Constructs a new `FormControl` with the given state, validators and options. Sets\n     * `{nonNullable: true}` in the options to get a non-nullable control. Otherwise, the\n     * control will be nullable. Accepts a single generic argument, which is the type  of the\n     * control's value.\n     *\n     * @param formState Initializes the control with an initial state value, or\n     * with an object that contains both a value and a disabled status.\n     *\n     * @param validatorOrOpts A synchronous validator function, or an array of\n     * such functions, or a `FormControlOptions` object that contains\n     * validation functions and a validation trigger.\n     *\n     * @param asyncValidator A single async validator or array of async validator\n     * functions.\n     *\n     * @usageNotes\n     *\n     * ### Initialize a control as disabled\n     *\n     * The following example returns a control with an initial value in a disabled state.\n     *\n     * <code-example path=\"forms/ts/formBuilder/form_builder_example.ts\" region=\"disabled-control\">\n     * </code-example>\n     */\n    control(formState, validatorOrOpts, asyncValidator) {\n      let newOptions = {};\n      if (!this.useNonNullable) {\n        return new FormControl(formState, validatorOrOpts, asyncValidator);\n      }\n      if (isAbstractControlOptions(validatorOrOpts)) {\n        // If the second argument is options, then they are copied.\n        newOptions = validatorOrOpts;\n      } else {\n        // If the other arguments are validators, they are copied into an options object.\n        newOptions.validators = validatorOrOpts;\n        newOptions.asyncValidators = asyncValidator;\n      }\n      return new FormControl(formState, {\n        ...newOptions,\n        nonNullable: true\n      });\n    }\n    /**\n     * Constructs a new `FormArray` from the given array of configurations,\n     * validators and options. Accepts a single generic argument, which is the type of each control\n     * inside the array.\n     *\n     * @param controls An array of child controls or control configs. Each child control is given an\n     *     index when it is registered.\n     *\n     * @param validatorOrOpts A synchronous validator function, or an array of such functions, or an\n     *     `AbstractControlOptions` object that contains\n     * validation functions and a validation trigger.\n     *\n     * @param asyncValidator A single async validator or array of async validator functions.\n     */\n    array(controls, validatorOrOpts, asyncValidator) {\n      const createdControls = controls.map(c => this._createControl(c));\n      // Cast to `any` because the inferred types are not as specific as Element.\n      return new FormArray(createdControls, validatorOrOpts, asyncValidator);\n    }\n    /** @internal */\n    _reduceControls(controls) {\n      const createdControls = {};\n      Object.keys(controls).forEach(controlName => {\n        createdControls[controlName] = this._createControl(controls[controlName]);\n      });\n      return createdControls;\n    }\n    /** @internal */\n    _createControl(controls) {\n      if (controls instanceof FormControl) {\n        return controls;\n      } else if (controls instanceof AbstractControl) {\n        // A control; just return it\n        return controls;\n      } else if (Array.isArray(controls)) {\n        // ControlConfig Tuple\n        const value = controls[0];\n        const validator = controls.length > 1 ? controls[1] : null;\n        const asyncValidator = controls.length > 2 ? controls[2] : null;\n        return this.control(value, validator, asyncValidator);\n      } else {\n        // T or FormControlState<T>\n        return this.control(controls);\n      }\n    }\n    static {\n      this.ɵfac = function FormBuilder_Factory(t) {\n        return new (t || FormBuilder)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: FormBuilder,\n        factory: FormBuilder.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return FormBuilder;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @description\n * `NonNullableFormBuilder` is similar to {@link FormBuilder}, but automatically constructed\n * {@link FormControl} elements have `{nonNullable: true}` and are non-nullable.\n *\n * @publicApi\n */\nlet NonNullableFormBuilder = /*#__PURE__*/(() => {\n  class NonNullableFormBuilder {\n    static {\n      this.ɵfac = function NonNullableFormBuilder_Factory(t) {\n        return new (t || NonNullableFormBuilder)();\n      };\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: NonNullableFormBuilder,\n        factory: () => (() => inject(FormBuilder).nonNullable)(),\n        providedIn: 'root'\n      });\n    }\n  }\n  return NonNullableFormBuilder;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * UntypedFormBuilder is the same as `FormBuilder`, but it provides untyped controls.\n */\nlet UntypedFormBuilder = /*#__PURE__*/(() => {\n  class UntypedFormBuilder extends FormBuilder {\n    group(controlsConfig, options = null) {\n      return super.group(controlsConfig, options);\n    }\n    /**\n     * Like `FormBuilder#control`, except the resulting control is untyped.\n     */\n    control(formState, validatorOrOpts, asyncValidator) {\n      return super.control(formState, validatorOrOpts, asyncValidator);\n    }\n    /**\n     * Like `FormBuilder#array`, except the resulting array is untyped.\n     */\n    array(controlsConfig, validatorOrOpts, asyncValidator) {\n      return super.array(controlsConfig, validatorOrOpts, asyncValidator);\n    }\n    static {\n      this.ɵfac = /* @__PURE__ */(() => {\n        let ɵUntypedFormBuilder_BaseFactory;\n        return function UntypedFormBuilder_Factory(t) {\n          return (ɵUntypedFormBuilder_BaseFactory || (ɵUntypedFormBuilder_BaseFactory = i0.ɵɵgetInheritedFactory(UntypedFormBuilder)))(t || UntypedFormBuilder);\n        };\n      })();\n    }\n    static {\n      this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n        token: UntypedFormBuilder,\n        factory: UntypedFormBuilder.ɵfac,\n        providedIn: 'root'\n      });\n    }\n  }\n  return UntypedFormBuilder;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the forms package.\n */\n/**\n * @publicApi\n */\nconst VERSION = /*#__PURE__*/new Version('17.3.11');\n\n/**\n * Exports the required providers and directives for template-driven forms,\n * making them available for import by NgModules that import this module.\n *\n * @see [Forms Overview](/guide/forms-overview)\n * @see [Template-driven Forms Guide](/guide/forms)\n *\n * @publicApi\n */\nlet FormsModule = /*#__PURE__*/(() => {\n  class FormsModule {\n    /**\n     * @description\n     * Provides options for configuring the forms module.\n     *\n     * @param opts An object of configuration options\n     * * `callSetDisabledState` Configures whether to `always` call `setDisabledState`, which is more\n     * correct, or to only call it `whenDisabled`, which is the legacy behavior.\n     */\n    static withConfig(opts) {\n      return {\n        ngModule: FormsModule,\n        providers: [{\n          provide: CALL_SET_DISABLED_STATE,\n          useValue: opts.callSetDisabledState ?? setDisabledStateDefault\n        }]\n      };\n    }\n    static {\n      this.ɵfac = function FormsModule_Factory(t) {\n        return new (t || FormsModule)();\n      };\n    }\n    static {\n      this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n        type: FormsModule\n      });\n    }\n    static {\n      this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n        imports: [ɵInternalFormsSharedModule]\n      });\n    }\n  }\n  return FormsModule;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Exports the required infrastructure and directives for reactive forms,\n * making them available for import by NgModules that import this module.\n *\n * @see [Forms Overview](guide/forms-overview)\n * @see [Reactive Forms Guide](guide/reactive-forms)\n *\n * @publicApi\n */\nlet ReactiveFormsModule = /*#__PURE__*/(() => {\n  class ReactiveFormsModule {\n    /**\n     * @description\n     * Provides options for configuring the reactive forms module.\n     *\n     * @param opts An object of configuration options\n     * * `warnOnNgModelWithFormControl` Configures when to emit a warning when an `ngModel`\n     * binding is used with reactive form directives.\n     * * `callSetDisabledState` Configures whether to `always` call `setDisabledState`, which is more\n     * correct, or to only call it `whenDisabled`, which is the legacy behavior.\n     */\n    static withConfig(opts) {\n      return {\n        ngModule: ReactiveFormsModule,\n        providers: [{\n          provide: NG_MODEL_WITH_FORM_CONTROL_WARNING,\n          useValue: opts.warnOnNgModelWithFormControl ?? 'always'\n        }, {\n          provide: CALL_SET_DISABLED_STATE,\n          useValue: opts.callSetDisabledState ?? setDisabledStateDefault\n        }]\n      };\n    }\n    static {\n      this.ɵfac = function ReactiveFormsModule_Factory(t) {\n        return new (t || ReactiveFormsModule)();\n      };\n    }\n    static {\n      this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n        type: ReactiveFormsModule\n      });\n    }\n    static {\n      this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n        imports: [ɵInternalFormsSharedModule]\n      });\n    }\n  }\n  return ReactiveFormsModule;\n})();\n/*#__PURE__*/(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * @module\n * @description\n * This module is used for handling user input, by defining and building a `FormGroup` that\n * consists of `FormControl` objects, and mapping them onto the DOM. `FormControl`\n * objects can then be used to read information from the form DOM elements.\n *\n * Forms providers are not included in default providers; you must import these providers\n * explicitly.\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n// This file only reexports content of the `src` folder. Keep it that way.\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AbstractControl, AbstractControlDirective, AbstractFormGroupDirective, COMPOSITION_BUFFER_MODE, CheckboxControlValueAccessor, CheckboxRequiredValidator, ControlContainer, DefaultValueAccessor, EmailValidator, FormArray, FormArrayName, FormBuilder, FormControl, FormControlDirective, FormControlName, FormGroup, FormGroupDirective, FormGroupName, FormRecord, FormsModule, MaxLengthValidator, MaxValidator, MinLengthValidator, MinValidator, NG_ASYNC_VALIDATORS, NG_VALIDATORS, NG_VALUE_ACCESSOR, NgControl, NgControlStatus, NgControlStatusGroup, NgForm, NgModel, NgModelGroup, NgSelectOption, NonNullableFormBuilder, NumberValueAccessor, PatternValidator, RadioControlValueAccessor, RangeValueAccessor, ReactiveFormsModule, RequiredValidator, SelectControlValueAccessor, SelectMultipleControlValueAccessor, UntypedFormArray, UntypedFormBuilder, UntypedFormControl, UntypedFormGroup, VERSION, Validators, isFormArray, isFormControl, isFormGroup, isFormRecord, ɵInternalFormsSharedModule, ɵNgNoValidate, ɵNgSelectMultipleOption };\n","export const environment = {\r\n    production: false,\r\n    apiUrl: 'https://grupo2.java2024.linti.unlp.edu.ar', \r\n    globalVar: 'valorGlobal'\r\n  };\r\n  ","import { Injectable } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { Observable, of, map, catchError } from 'rxjs';\r\nimport { environment } from '../../../../evironments/environment';\r\n\r\n@Injectable({\r\n  providedIn: 'root',\r\n})\r\nexport class AuthService {\r\n  private apiUrl = environment.apiUrl + '/api/login';\r\n\r\n  constructor(private http: HttpClient) {}\r\n\r\n    logIn(email: string, password: string, rememberMe: boolean): Observable<{ success: boolean, message?: string }> {\r\n      return this.http.post<{ JWT: { string: string } }>(`${this.apiUrl}`, { email, password })\r\n      .pipe(\r\n        map(response => {\r\n          const token = response.JWT.string;\r\n          \r\n          // Decodifica el JWT (por ejemplo, utilizando jwt-decode) para extraer role y userId\r\n          const payload = this.decodeToken(token);\r\n          const role = payload.role;\r\n          const userId = payload.id;\r\n          console.log('role, userId',role, userId);\r\n          //console.log('token',token);\r\n          //console.log('rememberMe',rememberMe);\r\n          if (rememberMe) {\r\n            this.clearStorageItems();\r\n            this.setStorageItems(token, role, userId);\r\n          } else {\r\n            this.clearSessionItems();\r\n            this.setSessionItems(token, role, userId);\r\n          }\r\n          \r\n          return { success: true };\r\n        }),\r\n        catchError(error => {\r\n          let errorMsg = 'Login failed';\r\n          if (error.status === 401) {\r\n            errorMsg = 'Invalid email or password';\r\n          } else if (error.status === 404) {\r\n            errorMsg = 'Email not found';\r\n          }\r\n          return of({ success: false, message: errorMsg });\r\n        })\r\n      );\r\n    }\r\n\r\n  logOut(): void {\r\n    this.clearStorageItems();\r\n    this.clearSessionItems();\r\n  }\r\n\r\n  isLoggedIn(): boolean {\r\n    return (\r\n      !!this.getStorageItem('authToken') || !!this.getSessionItem('authToken')\r\n    );\r\n  }\r\n\r\n  getUserRole(): string | null {\r\n    return this.getStorageItem('role') || this.getSessionItem('role') || null;\r\n  }\r\n\r\n  getUserId(): string | null {\r\n    return (\r\n      this.getStorageItem('userId') || this.getSessionItem('userId') || null\r\n    );\r\n  }\r\n\r\n  getToken(): string | null {\r\n    return this.getStorageItem('authToken') || this.getSessionItem('authToken') ||\r\n      null;\r\n  }\r\n\r\n  private setStorageItems(token: string, role: string, userId: string): void {\r\n    try {\r\n      localStorage.setItem('authToken', token);\r\n      localStorage.setItem('role', role);\r\n      localStorage.setItem('userId', userId);\r\n      //console.log('Saved in localStorage');\r\n    } catch (e) {\r\n      console.error('Error setting items in localStorage:', e);\r\n    }\r\n  }\r\n\r\n  private setSessionItems(token: string, role: string, userId: string): void {\r\n    try {\r\n      sessionStorage.setItem('authToken', token);\r\n      sessionStorage.setItem('role', role);\r\n      sessionStorage.setItem('userId', userId);\r\n      //console.log('Saved in sessionStorage');\r\n    } catch (e) {\r\n      console.error('Error setting items in sessionStorage:', e);\r\n    }\r\n  }\r\n\r\n  private clearStorageItems(): void {\r\n    try {\r\n      localStorage.removeItem('authToken');\r\n      localStorage.removeItem('role');\r\n      localStorage.removeItem('userId');\r\n    } catch (e) {\r\n      console.error('Error clearing items from localStorage:', e);\r\n    }\r\n  }\r\n\r\n  private clearSessionItems(): void {\r\n    try {\r\n      sessionStorage.removeItem('authToken');\r\n      sessionStorage.removeItem('role');\r\n      sessionStorage.removeItem('userId');\r\n    } catch (e) {\r\n      console.error('Error clearing items from sessionStorage:', e);\r\n    }\r\n  }\r\n\r\n  private getStorageItem(key: string): string | null {\r\n    try {\r\n      return localStorage.getItem(key);\r\n    } catch (e) {\r\n      //console.error('Error getting item from localStorage:', e);\r\n      return null;\r\n    }\r\n  }\r\n\r\n  private getSessionItem(key: string): string | null {\r\n    try {\r\n      return sessionStorage.getItem(key);\r\n    } catch (e) {\r\n      //console.error('Error getting item from sessionStorage:', e);\r\n      return null;\r\n    }\r\n  }\r\n\r\n  private decodeToken(token: string): any {\r\n    // Usa una librería como jwt-decode o implementa tu propio decodificador si es necesario.\r\n    const payload = JSON.parse(atob(token.split('.')[1]));\r\n    return payload;\r\n  }\r\n}\r\n","import { Component } from '@angular/core';\r\nimport {ReactiveFormsModule, FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { AuthService } from '../../core/services/auth/auth.service';\r\nimport { Router } from '@angular/router';\r\nimport { CommonModule } from '@angular/common';\r\n\r\n@Component({\r\n  selector: 'app-login',\r\n  standalone: true,\r\n  imports: [ReactiveFormsModule, CommonModule],\r\n  templateUrl: './login.component.html',\r\n  styleUrl: './login.component.scss',\r\n})\r\nexport class LoginComponent {\r\n  loginForm: FormGroup;\r\n  error: string = '';\r\n\r\n  constructor(private authService: AuthService, private router: Router, private formBuilder: FormBuilder) {\r\n    this.loginForm = this.formBuilder.group({\r\n      email: ['', [Validators.required, Validators.email]],\r\n      password: ['', Validators.required],\r\n      rememberMe: [false],\r\n    });\r\n   }\r\n\r\n  onLogin() {\r\n    if (this.loginForm.valid) {\r\n      const { email, password, rememberMe } = this.loginForm.value;\r\n      \r\n      this.authService.logIn(email, password, rememberMe).subscribe(result => {\r\n        if (result.success) {\r\n          this.router.navigate(['/home']);\r\n        } else {\r\n          this.error = result.message || 'Error de inicio de sesión';\r\n        }\r\n      });\r\n    } else {\r\n      this.error = 'Email y Contraseña invalidos';\r\n    }\r\n  }\r\n}\r\n","<div\r\n  class=\"container-fluid vh-100 d-flex flex-column justify-content-center align-items-center login-background\"\r\n  style=\"overflow: hidden\"\r\n>\r\n  <div class=\"logo-container mb-5\">\r\n    <img\r\n      src=\"assets/logo_salacomunitaria.svg\"\r\n      alt=\"Logo principal\"\r\n      class=\"img-fluid logo-principal\"\r\n    />\r\n  </div>\r\n\r\n  <div class=\"login-container col-12 col-md-8 col-lg-8 col-xl-4\">\r\n    <form\r\n      #aux=\"ngForm\"\r\n      [formGroup]=\"loginForm\"\r\n      (ngSubmit)=\"onLogin()\"\r\n      class=\"login-form p-4 shadow\"\r\n    >\r\n      <div class=\"input-group mb-3\">\r\n        <span\r\n          class=\"input-group-text text-white align-items-center justify-content-center\"\r\n          [ngClass]=\"{\r\n            'is-invalid':\r\n              (loginForm.get('email')?.dirty ||\r\n                loginForm.get('email')?.touched ||\r\n                aux.submitted) &&\r\n              loginForm.get('email')?.invalid\r\n          }\"\r\n        >\r\n          <i class=\"bi bi-envelope\"></i>\r\n        </span>\r\n        <input\r\n          type=\"email\"\r\n          id=\"email\"\r\n          formControlName=\"email\"\r\n          class=\"form-control login-input text-white\"\r\n          placeholder=\"Ingrese su email\"\r\n          aria-label=\"Email\"\r\n          [ngClass]=\"{\r\n            'is-invalid':\r\n              (loginForm.get('email')?.dirty ||\r\n                loginForm.get('email')?.touched ||\r\n                aux.submitted) &&\r\n              loginForm.get('email')?.invalid\r\n          }\"\r\n        />\r\n      </div>\r\n      <div class=\"input-group mb-3\">\r\n        <span\r\n          class=\"input-group-text text-white align-items-center justify-content-center\"\r\n          [ngClass]=\"{\r\n            'is-invalid':\r\n              (loginForm.get('password')?.dirty ||\r\n                loginForm.get('password')?.touched ||\r\n                aux.submitted) &&\r\n              loginForm.get('password')?.invalid\r\n          }\"\r\n          >\r\n          <i class=\"bi bi-lock\"></i>\r\n        </span>\r\n        <input\r\n          type=\"password\"\r\n          id=\"password\"\r\n          formControlName=\"password\"\r\n          class=\"form-control login-input text-white\"\r\n          placeholder=\"Ingrese su contraseña\"\r\n          aria-label=\"Contraseña\"\r\n          [ngClass]=\"{\r\n            'is-invalid':\r\n              (loginForm.get('password')?.dirty ||\r\n                loginForm.get('password')?.touched ||\r\n                aux.submitted) &&\r\n              loginForm.get('password')?.invalid\r\n          }\"\r\n        />\r\n      </div>\r\n      <button type=\"submit\" class=\"btn login-btn w-100 text-white\">\r\n        LOGIN\r\n      </button>\r\n      <div class=\"error-container\">\r\n        <span class=\"error-message\">{{ error }}</span>\r\n      </div>\r\n      <div class=\"form-check\">\r\n        <input\r\n          class=\"form-check-input\"\r\n          type=\"checkbox\"\r\n          id=\"rememberMe\"\r\n          formControlName=\"rememberMe\"\r\n        />\r\n        <label class=\"form-check-label\" for=\"rememberMe\">Recordarme</label>\r\n      </div>\r\n    </form>\r\n  </div>\r\n\r\n  <footer class=\"footer mt-auto py-3 w-100\">\r\n    <div\r\n      class=\"container d-flex justify-content-center align-items-center footer-container\"\r\n    >\r\n      <img\r\n        src=\"assets/logo_informatica.png\"\r\n        alt=\"Logo facultad Informatica\"\r\n        class=\"logo-footer mx-2\"\r\n      />\r\n      <div class=\"vr\"></div>\r\n      <img\r\n        src=\"assets/logo_unlp.png\"\r\n        alt=\"Logo UNLP\"\r\n        class=\"logo-footer mx-2\"\r\n      />\r\n      <div class=\"vr\"></div>\r\n      <img\r\n        src=\"assets/logo_veterinaria.png\"\r\n        alt=\"Logo facultad Veterinaria\"\r\n        class=\"logo-footer mx-2\"\r\n      />\r\n    </div>\r\n  </footer>\r\n</div>\r\n","import { Component, OnInit} from '@angular/core';\r\nimport { AuthService } from '../../../core/services/auth/auth.service';\r\nimport { CommonModule } from '@angular/common';\r\nimport { RouterModule } from '@angular/router';\r\nimport { Router } from '@angular/router';\r\n@Component({\r\n  selector: 'app-navbar',\r\n  standalone: true,\r\n  imports: [CommonModule, RouterModule],\r\n  templateUrl: './navbar.component.html',\r\n  styleUrl: './navbar.component.scss'\r\n})\r\nexport class NavbarComponent implements OnInit{\r\n  isAdmin: boolean = false;\r\n  constructor(private authService: AuthService, private router: Router) {}\r\n\r\n  ngOnInit() {\r\n    this.isAdmin = this.authService.getUserRole() === 'Admin';\r\n  }\r\n\r\n  logout() {\r\n    this.authService.logOut();\r\n    this.router.navigate(['/']);\r\n  }\r\n}\r\n","<nav class=\"navbar navbar-container\">\r\n  <div class=\"container-fluid text-center\">\r\n    <div class=\"row tex-white\">\r\n      <div class=\"col col-md-3 col-lg col-xl-2\">\r\n        <a routerLink=\"/home\" class=\"hidden-link\"></a>\r\n      </div>\r\n      <div class=\"col d-flex\">\r\n        <div class=\"row\">\r\n          <div class=\"col justify-content-center\">\r\n            <a  routerLink=\"/inventory\" class=\"nav-link\" routerLinkActive=\"active-link\">INVENTARIO</a>\r\n          </div>\r\n          <div class=\"col justify-content-center\">\r\n            <a routerLink=\"/production\" class=\"nav-link\" routerLinkActive=\"active-link\">PRODUCCION</a>\r\n          </div>\r\n          <div class=\"col justify-content-center\">\r\n            <a routerLink=\"/recipes\" class=\"nav-link\" routerLinkActive=\"active-link\">RECETAS</a>\r\n          </div>\r\n        </div>\r\n      </div>\r\n      <div class=\"col d-flex col-lg-1\"></div>\r\n      <div class=\"col d-flex justify-content-end\">\r\n        <div class=\"row\">\r\n          <div class=\"col justify-content-center\">\r\n            <a routerLink=\"/history\" class=\"nav-link\" routerLinkActive=\"active-link\">HISTORIAL</a>\r\n          </div>\r\n          <div class=\"col justify-content-center\" *ngIf=\"isAdmin\">\r\n            <a routerLink=\"/users\" class=\"nav-link\" routerLinkActive=\"active-link\">USUARIOS</a>\r\n          </div>\r\n          <div class=\"col justify-content-end\">\r\n            <div class=\"dropdown\">\r\n              <button class=\"btn btn-light\" type=\"button\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">\r\n                <i class=\"bi bi-list\"></i>\r\n              </button>\r\n              <ul class=\"dropdown-menu dropdown-menu-end custom-dropdown-menu\">\r\n                <!--li><button routerLink=\"#\" class=\"dropdown-item\" type=\"button\">| VER CALENDARIO</button></li-->\r\n                <li><button routerLink=\"/providers\" class=\"dropdown-item\" type=\"button\">| PROVEEDORES</button></li>\r\n                <li><button routerLink=\"/clients\" class=\"dropdown-item\" type=\"button\">| CLIENTES</button></li>\r\n                <li><button routerLink=\"/profile\" class=\"dropdown-item\" type=\"button\">| MI PERFIL</button></li>\r\n                <li><button class=\"dropdown-item\" type=\"button\" (click)=\"logout()\">| CERRAR SESIÓN</button></li>\r\n              </ul>\r\n            </div>\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</nav>\r\n","import { HttpErrorResponse } from '@angular/common/http';\r\nimport { Observable, throwError } from 'rxjs';\r\n\r\nexport function handleError(error: HttpErrorResponse): Observable<never> {\r\n  let errorMessage = '';\r\n\r\n  /*if (error.error instanceof ErrorEvent) {\r\n    console.error('Client-side error:', error.error.message);\r\n    errorMessage = `Client-side error: ${error.error.message}`;\r\n  } else {\r\n    console.error(`Server-side error: ${error.status} - ${error.message}`);\r\n    errorMessage = `Server-side error: ${error.status}\\nMessage: ${error.message}`;\r\n  }*/\r\n\r\n  return throwError(() => new Error(errorMessage));\r\n}\r\n","import { TableData } from '../interfaces/table-data';\r\nimport { User } from '../interfaces/entities/user';\r\n\r\nexport function mapToTableData(data: any[]): TableData[] {\r\n    return data.map(item => {\r\n      let tableDataItem: TableData = {};\r\n      for (let key in item) {\r\n        tableDataItem[key] = item[key];\r\n      }\r\n      return tableDataItem;\r\n    });\r\n  }\r\n\r\nexport function mapToUser(data: any): User {\r\n    let user: User = {\r\n      id: data.id,\r\n      name: data.name,\r\n      surname: data.surname,\r\n      email: data.email,\r\n      phone: data.phone,\r\n      password: data.password,\r\n      role: data.role\r\n    };\r\n    return user;\r\n  }\r\n\r\n/**\r\n * Formatea una fecha para un input de tipo datetime-local.\r\n * @param date - Fecha en milisegundos o cadena de texto que puede ser convertida a un objeto Date.\r\n * @returns La fecha formateada en el formato YYYY-MM-DDTHH:MM.\r\n */\r\nexport const formatDate = (date: any): string => {\r\n  // Verifica si el parámetro es una fecha válida\r\n  if (!date) return '';\r\n\r\n  // Convierte el parámetro a un objeto Date\r\n  const dateObj = new Date(date);\r\n\r\n  // Obtiene los componentes de la fecha\r\n  const year = dateObj.getFullYear();\r\n  const month = String(dateObj.getMonth() + 1).padStart(2, '0'); // Meses desde 0 (enero) hasta 11 (diciembre)\r\n  const day = String(dateObj.getDate()).padStart(2, '0');\r\n  const hours = String(dateObj.getHours()).padStart(2, '0');\r\n  const minutes = String(dateObj.getMinutes()).padStart(2, '0');\r\n\r\n  // Retorna la fecha formateada en el formato YYYY-MM-DDTHH:MM\r\n  return `${year}-${month}-${day}T${hours}:${minutes}`;\r\n};\r\n\r\nexport function formatDateString(input: string): string {\r\n  // Separar la fecha y la hora\r\n  const [datePart, timePart] = input.split(' ');\r\n\r\n  // Separar día, mes y año\r\n  const [day, month, year] = datePart.split('/').map(Number);\r\n\r\n  // Separar horas y minutos\r\n  const [hours, minutes] = timePart.split(':').map(Number);\r\n\r\n  // Crear un objeto Date con el año ajustado\r\n  const fullYear = year + 2000; // Asumimos que el año es del siglo XXI (20xx)\r\n  const formattedDate = new Date(fullYear, month - 1, day, hours, minutes);\r\n\r\n  // Convertir la fecha a un formato ISO (yyyy-MM-dd'T'HH:mm:ss)\r\n  return formattedDate.toISOString().slice(0, 19);\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { Observable, catchError, map} from 'rxjs';\r\nimport { handleError } from '../../utils/api-error-handler.utils';\r\nimport { TableData } from '../../interfaces/table-data';\r\nimport { mapToTableData, mapToUser } from '../../utils/mapping.utils';\r\nimport { environment } from '../../../../evironments/environment';\r\n@Injectable({\r\n  providedIn: 'root'\r\n})\r\nexport class UsersService {\r\n\r\n  private apiUrl = environment.apiUrl + '/api/user';\r\n\r\n  constructor(private http: HttpClient) {}\r\n\r\n  getUsers(): Observable<TableData[]> {\r\n    return this.http.get<any[]>(this.apiUrl).pipe(map(data => mapToTableData(data)),catchError(handleError));\r\n  }\r\n\r\n  getUsersById(id: any): Observable<any> {\r\n    return this.http.get<any>(`${this.apiUrl}/${id}`).pipe(map(data => mapToUser(data)),catchError(handleError));\r\n  }\r\n  createUser(user: any): Observable<any> {\r\n    return this.http.post<any>(this.apiUrl, user).pipe(catchError(handleError));\r\n  }\r\n\r\n  updateUser(user: any): Observable<any> {\r\n    return this.http.put<any>(this.apiUrl, user).pipe(catchError(handleError));\r\n  }\r\n\r\n  deleteUser(id: any): Observable<any> {\r\n    return this.http.delete<any>(`${this.apiUrl}/${id}`).pipe(catchError(handleError));\r\n  }\r\n\r\n}\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { NavbarComponent } from '../../shared/components/navbar/navbar.component';\r\nimport { UsersService } from '../../core/services/api/users.service';\r\nimport { AuthService } from '../../core/services/auth/auth.service';\r\nimport { TableData } from '../../core/interfaces/table-data';\r\n@Component({\r\n  selector: 'app-home',\r\n  standalone: true,\r\n  imports: [NavbarComponent],\r\n  templateUrl: './home.component.html',\r\n  styleUrl: './home.component.scss'\r\n})\r\nexport class HomeComponent implements OnInit {\r\n\r\n  user: TableData = {};\r\n\r\n  constructor(\r\n    private UsersService: UsersService,\r\n    private AuthService: AuthService\r\n  ) { }\r\n\r\n  ngOnInit() {\r\n    const id = this.AuthService.getUserId();\r\n    this.UsersService.getUsersById(id).subscribe((user: TableData) => {\r\n      this.user = user;\r\n    });\r\n  }\r\n\r\n}\r\n","<app-navbar></app-navbar>\r\n\r\n<div class=\"row\">\r\n    <div class=\"col-md-12\">\r\n      <h1 class=\"welcome\">¡Bienvenido {{user['name']}} {{user['surname']}}!</h1>\r\n  </div>\r\n</div>","import { TableData } from '../interfaces/table-data';\r\n\r\nexport function sortTableData(dataArray: TableData[]): TableData[] {\r\n  return dataArray.map((data) => {\r\n    const orderedData: TableData = {};\r\n    const order = [\r\n      'id',\r\n      'name',\r\n      'surname',\r\n      'email',\r\n      'type',\r\n      'category',\r\n      'quantity',\r\n      'unit',\r\n      'expiration',\r\n      'expirationDate',\r\n    ];\r\n\r\n    // Añadir las claves en el orden especificado\r\n    order.forEach((key) => {\r\n      if (key in data) {\r\n        orderedData[key] = data[key];\r\n      }\r\n    });\r\n\r\n    // Añadir las claves que no están en el orden especificado\r\n    Object.keys(data).forEach((key) => {\r\n      if (!(key in orderedData)) {\r\n        orderedData[key] = data[key];\r\n      }\r\n    });\r\n\r\n    return orderedData;\r\n  });\r\n}\r\n\r\nexport function formatTableData(data: TableData[]): TableData[] {\r\n  return data.map((item) => {\r\n    const formattedItem: TableData = {};\r\n\r\n    // Claves que deben ser formateadas como fechas\r\n    const dateKeys = [\r\n      'expiration',\r\n      'expirationDate',\r\n      'creationDate',\r\n      'lastModificationDate',\r\n      'admissionDate',\r\n      'envenDate',\r\n    ];\r\n\r\n    const options: Intl.DateTimeFormatOptions = {\r\n      day: '2-digit',\r\n      month: '2-digit',\r\n      year: '2-digit',\r\n      hour: '2-digit',\r\n      minute: '2-digit',\r\n      timeZone: 'America/Argentina/Buenos_Aires',\r\n      hour12: false,\r\n    };\r\n\r\n    Object.keys(item).forEach((key) => {\r\n      if (dateKeys.includes(key) && item[key]) {\r\n        // Convertir el valor a una instancia de Date y formatear\r\n        const date = new Date(item[key]);\r\n        formattedItem[key] = new Intl.DateTimeFormat('es-AR', options)\r\n          .format(date)\r\n          .replace(',', '');\r\n      } else {\r\n        // Copiar el valor sin cambios\r\n        formattedItem[key] = item[key];\r\n      }\r\n    });\r\n    return formattedItem;\r\n  });\r\n}\r\n// Ordenar datos de la tabla\r\n\r\nexport function sortTableDataByColumn(\r\n  data: TableData[],\r\n  column: string,\r\n  direction: 'up' | 'down' | ''\r\n): TableData[] {\r\n  if (!column || direction === '') {\r\n    return data; // Sin columna o dirección vacía, no ordenar\r\n  }\r\n\r\n  // Determina el orden de clasificación basado en la dirección\r\n  const isAscending = direction === 'up';\r\n\r\n  return data.slice().sort((a, b) => {\r\n    if (a[column] === undefined || b[column] === undefined) {\r\n      return 0;\r\n    }\r\n\r\n    // Comparar valores, asumiendo que son números o cadenas\r\n    const aValue = a[column];\r\n    const bValue = b[column];\r\n\r\n    if (typeof aValue === 'string' && typeof bValue === 'string') {\r\n      return isAscending\r\n        ? aValue.localeCompare(bValue)\r\n        : bValue.localeCompare(aValue);\r\n    }\r\n\r\n    if (typeof aValue === 'number' && typeof bValue === 'number') {\r\n      return isAscending ? aValue - bValue : bValue - aValue;\r\n    }\r\n\r\n    return 0;\r\n  });\r\n}\r\n\r\nexport function filterTableData(\r\n  data: TableData[],\r\n  excludeColumns: string[],\r\n  filterValue: string\r\n): TableData[] {\r\n  if (!filterValue) {\r\n    return data; // Sin valor de filtro, no filtrar\r\n  }\r\n\r\n  const filter = filterValue.trim().toLowerCase();\r\n\r\n  return data.filter((item) => {\r\n    return Object.keys(item).some((key) => {\r\n      if (excludeColumns.includes(key)) {\r\n        return false;\r\n      }\r\n      const value = item[key];\r\n      if (typeof value === 'string') {\r\n        return value.toLowerCase().includes(filter);\r\n      }\r\n      return false;\r\n    });\r\n  });\r\n}\r\n","import { Component, Input, Output, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { CommonModule } from '@angular/common';\r\nimport { sortTableData, formatTableData, sortTableDataByColumn } from '../../../core/utils/table-data.utils';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { formatDate } from '../../../core/utils/mapping.utils';\r\n\r\n@Component({\r\n  selector: 'app-table',\r\n  standalone: true,\r\n  imports: [CommonModule, ReactiveFormsModule],\r\n  templateUrl: './table.component.html',\r\n  styleUrls: ['./table.component.scss']\r\n})\r\nexport class TableComponent implements OnChanges {\r\n  @Input() data: TableData[] = [];\r\n  @Input() columnsExcluded: string[] = [];\r\n  @Input() isTableReady: boolean = true;  \r\n  @Output() rowClicked: EventEmitter<TableData> = new EventEmitter<TableData>();\r\n\r\n  columnTranslataions: ColumnTranslations = {\r\n    id: 'ID',\r\n    name: 'Nombre',\r\n    surname: 'Apellido',\r\n    email: 'Correo',\r\n    phone: 'Teléfono',\r\n    role: 'Rol',\r\n    address: 'Dirección',\r\n    addres: 'Dirección',\r\n    cuit: 'CUIT',\r\n    description: 'Descripción',\r\n    category: 'Categoría',\r\n    quantity: 'Cantidad',\r\n    expirationDate: 'Fecha de vencimiento',\r\n    creationDate: 'Fecha de creación',\r\n    lastModificationDate: 'Última modificación',\r\n    admissionDate: 'Fecha de admisión',\r\n    unit: 'Unidad',\r\n    price: 'Precio',\r\n    cost: 'Precio',\r\n    expiration: 'Fecha de Vencimiento',\r\n    type: 'Tipo',\r\n    envenDate: 'Fecha',\r\n    title: 'Evento',\r\n  };\r\n\r\n  currentPage: number = 1;\r\n  itemsPerPage: number = 10;\r\n\r\n  noDataMessage: string = 'No hay elementos a mostrar';\r\n\r\n  sortStates: { [key: string]: 'up' | 'down' | '' } = {};\r\n  activeColumn: string | null = null;\r\n\r\n  ngOnInit(){\r\n    this.columnsExcluded.push('state');\r\n  }\r\n\r\n  ngOnChanges(changes: SimpleChanges) {\r\n    if (changes['data']) {\r\n      this.data = formatTableData(this.data);\r\n      this.data = sortTableData(this.data);\r\n    }\r\n  }\r\n\r\n  getColumns(): string[] {\r\n    if (this.data.length === 0) {\r\n      return [];\r\n    }\r\n    return Object.keys(this.data[0]).filter(column => !this.columnsExcluded.includes(column));\r\n  }\r\n\r\n  get paginatedData(): TableData[] {\r\n    const startIndex = (this.currentPage - 1) * this.itemsPerPage;\r\n    const endIndex = startIndex + this.itemsPerPage;\r\n    return this.data.slice(startIndex, endIndex);\r\n  }\r\n\r\n  get totalPages(): number {\r\n    return Math.ceil(this.data.length / this.itemsPerPage);\r\n  }\r\n\r\n  setPage(page: number) {\r\n    if (page >= 1 && page <= this.totalPages) {\r\n      this.currentPage = page;\r\n    }\r\n  }\r\n\r\n  getPageRange(): number[] {\r\n    const nearbyPages = [];\r\n    const maxNearby = 1;\r\n\r\n    let startPage = Math.max(1, this.currentPage - maxNearby);\r\n    let endPage = Math.min(this.totalPages, this.currentPage + maxNearby);\r\n\r\n    if (this.currentPage <= maxNearby + 1) {\r\n      endPage = Math.min(maxNearby * 2 + 1, this.totalPages);\r\n    }\r\n    if (this.currentPage >= this.totalPages - maxNearby) {\r\n      startPage = Math.max(this.totalPages - maxNearby * 2, 1);\r\n    }\r\n\r\n    for (let i = startPage; i <= endPage; i++) {\r\n      nearbyPages.push(i);\r\n    }\r\n    return nearbyPages;\r\n  }\r\n\r\n  onRowClick(item: TableData) {\r\n    this.rowClicked.emit(item);\r\n  }\r\n\r\n  translateColumn(column: string): string {\r\n    return this.columnTranslataions[column] || column;\r\n  }\r\n\r\n  onHeaderClick(column: string): void {\r\n    if (this.activeColumn === column) {\r\n      this.sortStates[column] = this.sortStates[column] === 'up' ? 'down' : 'up';\r\n      this.data = sortTableDataByColumn(this.data, column, this.sortStates[column]);\r\n    } else {\r\n      this.sortStates[this.activeColumn || ''] = '';\r\n      this.sortStates[column] = 'up';\r\n      this.activeColumn = column;\r\n    }\r\n  }\r\n\r\n  getSortIcon(column: string): string {\r\n    if (this.sortStates[column] === 'up') {\r\n      return 'bi bi-caret-up-fill';\r\n    } else if (this.sortStates[column] === 'down') {\r\n      return 'bi bi-caret-down-fill';\r\n    }\r\n    return '';\r\n  }\r\n\r\n  getAgeDifference(expirationDate: string): number {\r\n    const currentYear = new Date().getFullYear();\r\n    console.log(\"Current: \",expirationDate);\r\n    const aux = formatDate(expirationDate);\r\n    console.log(\"Aux: \",aux);\r\n    const expirationYear = new Date(expirationDate).getFullYear();\r\n    console.log(\"Gap: \",currentYear, expirationYear);\r\n    return expirationYear - currentYear;\r\n  }\r\n\r\n}\r\n\r\ninterface ColumnTranslations {\r\n  [key: string]: string;\r\n}\r\n","<!-- table.component.html -->\r\n<div class=\"table-container\">\r\n  <!-- Spinner de carga -->\r\n  <div *ngIf=\"!isTableReady\" class=\"spinner-container text-center\">\r\n    <div class=\"spinner-border\" role=\"status\">\r\n      <span class=\"visually-hidden\">Cargando..</span>\r\n    </div>\r\n  </div>\r\n\r\n  <!-- Mensaje de no hay datos -->\r\n  <div\r\n    *ngIf=\"isTableReady && data.length === 0\"\r\n    class=\"no-data-container text-center\"\r\n  >\r\n    <h4>{{ noDataMessage }}</h4>\r\n  </div>\r\n\r\n  <!-- Tabla y paginador -->\r\n  <div *ngIf=\"isTableReady && data.length > 0\" class=\"table-wrapper\">\r\n    <nav class=\"pagination-container\">\r\n      <ul class=\"pagination justify-content-center custom-pagination\">\r\n        <li class=\"page-item\" [class.disabled]=\"currentPage === 1\">\r\n          <a class=\"page-link\" (click)=\"setPage(currentPage - 1)\">\r\n            <i class=\"bi bi-chevron-left\"></i>\r\n          </a>\r\n        </li>\r\n\r\n        <li class=\"page-item\" *ngIf=\"currentPage > 2\">\r\n          <a class=\"page-link\" (click)=\"setPage(1)\">1</a>\r\n        </li>\r\n        <li class=\"page-item disabled\" *ngIf=\"currentPage > 3\">\r\n          <a class=\"page-link\">...</a>\r\n        </li>\r\n        <li\r\n          class=\"page-item\"\r\n          *ngFor=\"let page of getPageRange()\"\r\n          [class.active]=\"currentPage === page\"\r\n        >\r\n          <a class=\"page-link\" (click)=\"setPage(page)\">{{ page }}</a>\r\n        </li>\r\n        <li\r\n          class=\"page-item disabled\"\r\n          *ngIf=\"currentPage < totalPages - 2 && totalPages > 5\"\r\n        >\r\n          <a class=\"page-link\">...</a>\r\n        </li>\r\n        <li\r\n          class=\"page-item\"\r\n          *ngIf=\"currentPage < totalPages - 1 && totalPages > 3\"\r\n        >\r\n          <a class=\"page-link\" (click)=\"setPage(totalPages)\">{{\r\n            totalPages\r\n          }}</a>\r\n        </li>\r\n\r\n        <li class=\"page-item\" [class.disabled]=\"currentPage === totalPages\">\r\n          <a class=\"page-link\" (click)=\"setPage(currentPage + 1)\">\r\n            <i class=\"bi bi-chevron-right\"></i>\r\n          </a>\r\n        </li>\r\n      </ul>\r\n    </nav>\r\n\r\n    <table class=\"table table-custom\">\r\n      <thead>\r\n        <tr>\r\n          <th\r\n            *ngFor=\"let column of getColumns()\"\r\n            class=\"text-uppercase text-center\"\r\n          >\r\n            <a (click)=\"onHeaderClick(column)\">\r\n              {{ translateColumn(column) }}\r\n              <i\r\n                *ngIf=\"getSortIcon(column)\"\r\n                [ngClass]=\"getSortIcon(column)\"\r\n              ></i>\r\n            </a>\r\n          </th>\r\n        </tr>\r\n      </thead>\r\n      <tbody>\r\n        <tr *ngFor=\"let item of paginatedData\" (click)=\"onRowClick(item)\">\r\n          <td *ngFor=\"let column of getColumns()\" class=\"text-center\">\r\n            <!-- Comprobar si el valor es booleano -->\r\n            <ng-container *ngIf=\"item[column] === true; else falseIcon\">\r\n              <i class=\"bi bi-check-circle text-success\"></i>\r\n            </ng-container>\r\n            <ng-template #falseIcon>\r\n              <ng-container *ngIf=\"item[column] === false\">\r\n                <i class=\"bi bi-x-circle text-danger\"></i>\r\n              </ng-container>\r\n            </ng-template>\r\n\r\n            <!-- Mostrar expiration solo si la diferencia es menor a 60 años -->\r\n            <ng-container *ngIf=\"column === 'expiration'\">\r\n              exp = {{ item[column] }} \r\n              <div\r\n                *ngIf=\"getAgeDifference(item[column]) <= 60; else noExpiration\"\r\n              >\r\n                {{ item[column] | date : \"dd/MM/yyyy\" }}\r\n              </div>\r\n              <ng-template #noExpiration>\r\n                <div>-</div>\r\n              </ng-template>\r\n            </ng-container>\r\n\r\n            <!-- Mostrar valor normal si no es expiration -->\r\n            <ng-container *ngIf=\"column !== 'expiration'\">\r\n              <div *ngIf=\"column === 'cost'\">${{ item[column] }}</div>\r\n              <div *ngIf=\"column !== 'cost'\">\r\n                {{ item[column] }}\r\n              </div>\r\n            </ng-container>\r\n          </td>\r\n        </tr>\r\n        <!-- Filas vacías para completar hasta 10 filas -->\r\n        <tr\r\n          *ngFor=\"let _ of [].constructor(itemsPerPage - paginatedData.length)\"\r\n        >\r\n          <td *ngFor=\"let column of getColumns()\" class=\"text-center\"></td>\r\n        </tr>\r\n      </tbody>\r\n    </table>\r\n  </div>\r\n</div>\r\n","import { Component, Output, EventEmitter } from '@angular/core';\r\nimport { ReactiveFormsModule, FormControl } from '@angular/forms';\r\n\r\n@Component({\r\n  selector: 'app-search-bar',\r\n  standalone: true,\r\n  imports: [ReactiveFormsModule],\r\n  templateUrl: './search-bar.component.html',\r\n  styleUrls: ['./search-bar.component.scss'], // Asegúrate de que el nombre sea correcto\r\n})\r\nexport class SearchBarComponent {\r\n  @Output() search = new EventEmitter<string>();\r\n  searchControl = new FormControl('');\r\n\r\n  onFilter(): void {\r\n    const value = this.searchControl.value?.trim();\r\n    if (value !== undefined) {\r\n      if (this.isValid(value)) {\r\n        this.search.emit(value);\r\n      } else {\r\n        this.search.emit('');\r\n      }\r\n    }\r\n  }\r\n\r\n  // Manejar el evento de teclado\r\n  onKeyDown(event: KeyboardEvent): void {\r\n    if (event.key === 'Enter') {\r\n      this.onFilter();\r\n    }\r\n  }\r\n\r\n  private isValid(value: string): boolean {\r\n    const regex = /^[a-zA-Z0-9@. ]*$/;\r\n    return typeof value === 'string' && value.length > 0 && regex.test(value);\r\n  }\r\n}\r\n","<div class=\"search-container bg-fix\">\r\n    <span id=\"basic-addon1\">\r\n        <i class=\"bi bi-search search-icon text-white\"></i>\r\n    </span>\r\n    <input type=\"text\" class=\"form-control\" aria-label=\"Buscar\" aria-describedby=\"basic-addon1\" [formControl]=\"searchControl\" (keydown.enter)=\"onFilter()\">\r\n    <button class=\"btn btn-custom\" (click)=\"onFilter()\" >\r\n        <span class=\"filter-text\">BUSCAR</span>\r\n    </button>\r\n</div>\r\n","import { Component, EventEmitter, Output } from '@angular/core';\r\n\r\n@Component({\r\n  selector: 'app-decision-modal',\r\n  standalone: true,\r\n  imports: [],\r\n  templateUrl: './decision-modal.component.html',\r\n  styleUrl: './decision-modal.component.scss'\r\n})\r\nexport class DecisionModalComponent {\r\n  @Output() close = new EventEmitter<string>();\r\n\r\n  closeDecisionModal() {\r\n    this.close.emit('');\r\n  }\r\n\r\n  openAddInput() {\r\n    this.close.emit(\"addInput\");\r\n  }\r\n\r\n  openAddRawMaterial() {\r\n    this.close.emit(\"addRawMaterial\");\r\n  }\r\n\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content modal-content-custom\">\r\n      <div class=\"modal-header\">\r\n        <h5 class=\"modal-title\">Agregar Existencia</h5>\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn-close\"\r\n          aria-label=\"Close\"\r\n          (click)=\"closeDecisionModal()\"\r\n        ></button>\r\n      </div>\r\n      <div class=\"modal-body d-flex align-items-center justify-content-center\">\r\n        <div class=\"row w-100\">\r\n          <div class=\"col d-flex justify-content-center\">\r\n            <button class=\"btn btn-custom btn-lg\" (click)=\"openAddInput()\">Agregar Insumo</button>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-center\">\r\n            <button class=\"btn btn-custom btn-lg\" (click)=\"openAddRawMaterial()\">Agregar Materia Prima</button>\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</div>\r\n","export enum Units {\r\n    Kilogramos = 'Kg',\r\n    Gramos = 'g',\r\n    Milimetros = 'ml',\r\n    Litro = 'L',\r\n    Unidades = 'U'\r\n}\r\n  ","import { AbstractControl, ValidationErrors } from '@angular/forms';\r\nimport { FormArray, ValidatorFn } from '@angular/forms';\r\n\r\nexport function validarEmailFormat(email: string): boolean {\r\n  const regex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$/;\r\n  return regex.test(email);\r\n}\r\n\r\nexport function emailValidator(\r\n  control: AbstractControl\r\n): ValidationErrors | null {\r\n  const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$/;\r\n  const valid = emailRegex.test(control.value);\r\n  return valid ? null : { invalidEmail: true };\r\n}\r\n\r\nexport function phoneValidator(\r\n  control: AbstractControl\r\n): ValidationErrors | null {\r\n  const phoneRegex =\r\n    /^\\+?[0-9]{1,4}?[-.\\s]?(\\(?\\d{1,3}?\\)?[-.\\s]?\\d{1,4}[-.\\s]?\\d{1,4}[-.\\s]?\\d{1,9})$/;\r\n  const valid = phoneRegex.test(control.value);\r\n  return valid ? null : { invalidPhone: true };\r\n}\r\n\r\nexport function cuitValidator(): ValidatorFn {\r\n  return (control: AbstractControl): { [key: string]: any } | null => {\r\n    const cuit = control.value;\r\n\r\n    if (!cuit || cuit.length !== 11 || isNaN(cuit)) {\r\n      return { invalidCuit: true };\r\n    }\r\n\r\n    const multipliers = [5, 4, 3, 2, 7, 6, 5, 4, 3, 2];\r\n    let checksum = 0;\r\n\r\n    for (let i = 0; i < 10; i++) {\r\n      checksum += parseInt(cuit[i], 10) * multipliers[i];\r\n    }\r\n\r\n    const mod = checksum % 11;\r\n    const expectedDigit = mod === 0 ? 0 : mod === 1 ? 9 : 11 - mod;\r\n\r\n    if (expectedDigit !== parseInt(cuit[10], 10)) {\r\n      return { invalidCuit: true };\r\n    }\r\n\r\n    return null;\r\n  };\r\n}\r\n\r\nexport function decimalNumberValidator(\r\n  control: AbstractControl\r\n): ValidationErrors | null {\r\n  const value = control.value;\r\n  const valid =\r\n    /^\\d+([.,]\\d+)?$/.test(value) && parseFloat(value.replace(',', '.')) !== 0;\r\n  return valid ? null : { invalidQuantity: true };\r\n}\r\n\r\nexport function atLeastOneCheckedValidator(): ValidatorFn {\r\n  return (control: AbstractControl): { [key: string]: any } | null => {\r\n    const formArray = control as FormArray;\r\n    const hasValidControl = formArray.controls.some((group) => {\r\n      const selected = group.get('selected')?.value;\r\n      const quantity = group.get('quantity')?.value;\r\n      return selected && quantity != null && quantity > 0;\r\n    });\r\n    return hasValidControl ? null : { atLeastOneValidControl: true };\r\n  };\r\n}\r\n\r\n// Validador personalizado para confirmar contraseñas\r\nexport function matchPasswordValidator(): ValidatorFn {\r\n  return (formGroup: AbstractControl): ValidationErrors | null => {\r\n    const password = formGroup.get('password');\r\n    const confirmPassword = formGroup.get('confirmPassword');\r\n\r\n    if (\r\n      password &&\r\n      confirmPassword &&\r\n      password.value !== confirmPassword.value\r\n    ) {\r\n      return { passwordMismatch: true };\r\n    }\r\n    return null;\r\n  };\r\n}\r\n\r\nexport function conditionalRequiredValidator(\r\n  controlName: string,\r\n  dependentControlName: string\r\n): ValidatorFn {\r\n  return (formGroup: AbstractControl): { [key: string]: any } | null => {\r\n    const control = formGroup.get(controlName);\r\n    const dependentControl = formGroup.get(dependentControlName);\r\n\r\n    if (control && dependentControl && dependentControl.value) {\r\n      return control.value ? null : { required: true };\r\n    }\r\n    return null;\r\n  };\r\n}\r\n\r\n\r\nexport function priceValidator(totalCost: number): ValidatorFn {\r\n  return (control: AbstractControl): ValidationErrors | null => {\r\n    const price = control.value;\r\n    if (price <= 0 || price <= totalCost) {\r\n      return { priceInvalid: true };\r\n    }\r\n    return null;\r\n  };\r\n}\r\n\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpErrorResponse } from '@angular/common/http';\r\nimport { Observable, catchError, throwError} from 'rxjs';\r\nimport { handleError } from '../../utils/api-error-handler.utils';\r\nimport { environment } from '../../../../evironments/environment';\r\n@Injectable({\r\n  providedIn: 'root'\r\n})\r\nexport class InputsService {\r\n\r\n  private apiUrl = environment.apiUrl + '/api/Inputs';\r\n\r\n  constructor(private http: HttpClient) {}\r\n\r\n  getInputs(): Observable<any> {\r\n    return this.http.get<any>(this.apiUrl).pipe(catchError(handleError));\r\n  }\r\n\r\n  getInputById(id: number): Observable<any> {\r\n    return this.http.get<any>(`${this.apiUrl}/${id}`).pipe(catchError(handleError));\r\n  }\r\n  createInput(input: any): Observable<any> {\r\n    return this.http.post<any>(this.apiUrl, input).pipe(catchError(handleError));\r\n  }\r\n\r\n  updateInput(input: any): Observable<any> {\r\n    return this.http.put<any>(this.apiUrl, input).pipe(catchError(handleError));\r\n  }\r\n\r\n  deleteInput(id: number): Observable<any> {\r\n    return this.http.delete<any>(`${this.apiUrl}/${id}`).pipe(catchError(handleError));\r\n  }\r\n\r\n\r\n  //CUSTOM METHODS\r\n\r\n  getInputsTypes(): Observable<string[]> {\r\n    return this.http.get<string[]>(`${this.apiUrl}/getTypes`).pipe(catchError(handleError));\r\n  }\r\n\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpErrorResponse } from '@angular/common/http';\r\nimport { Observable, catchError, throwError} from 'rxjs';\r\nimport { handleError } from '../../utils/api-error-handler.utils';\r\nimport { environment } from '../../../../evironments/environment';\r\n\r\n@Injectable({\r\n  providedIn: 'root'\r\n})\r\nexport class RawMaterialsService {\r\n\r\n  private apiUrl = environment.apiUrl + '/api/RawMaterials';\r\n\r\n  constructor(private http: HttpClient) {}\r\n\r\n  getRawMaterials(): Observable<any> {\r\n    return this.http.get<any>(this.apiUrl).pipe(catchError(handleError));\r\n  }\r\n\r\n  getRawMaterialById(id: number): Observable<any> {\r\n    return this.http.get<any>(`${this.apiUrl}/${id}`).pipe(catchError(handleError));\r\n  }\r\n  createRawMaterial(rm: any): Observable<any> {\r\n    return this.http.post<any>(this.apiUrl, rm).pipe(catchError(handleError));\r\n  }\r\n\r\n  updateRawMaterial(rm: any): Observable<any> {\r\n    console.log(JSON.stringify(rm));\r\n    return this.http.put<any>(this.apiUrl, rm).pipe(catchError(handleError));\r\n  }\r\n\r\n  deleteRawMaterial(id: any): Observable<any> {\r\n    return this.http.delete<any>(`${this.apiUrl}/${id}`).pipe(catchError(handleError));\r\n  }\r\n\r\n\r\n  //CUSTOM METHODS\r\n\r\n  getRawMaterialsTypes(): Observable<string[]> {\r\n    return this.http.get<string[]>(`${this.apiUrl}/getTypes`).pipe(catchError(handleError));\r\n  }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { InputsService } from '../api/inputs.service';\r\nimport { RawMaterialsService } from '../api/rawmaterials.service';\r\nimport { forkJoin, Observable, map, catchError, BehaviorSubject, retryWhen, scan, delay, throwError} from 'rxjs';\r\nimport { TableData } from '../../interfaces/table-data';\r\n\r\n@Injectable({\r\n  providedIn: 'root'\r\n})\r\nexport class InventoryService {\r\n\r\n  private inputsTypesSubject: BehaviorSubject<string[]> = new BehaviorSubject<string[]>([]);\r\n  private rawMaterialTypesSubject: BehaviorSubject<string[]> = new BehaviorSubject<string[]>([]);\r\n\r\n  constructor(private InputsService: InputsService, private RawMaterialService: RawMaterialsService) { }\r\n\r\n\r\n\r\n  chargeInputsTypes(): void {\r\n    this.InputsService.getInputsTypes().subscribe(types => this.inputsTypesSubject.next(types));\r\n  }\r\n\r\n  chargeRawMaterialTypes(): void {\r\n    this.RawMaterialService.getRawMaterialsTypes().subscribe(types => this.rawMaterialTypesSubject.next(types));\r\n  }\r\n  \r\n  getInputsTypes(): Observable<string[]> {\r\n    return this.inputsTypesSubject.asObservable();\r\n  }\r\n\r\n  getRawMaterialTypes(): Observable<string[]> {\r\n    return this.rawMaterialTypesSubject.asObservable();\r\n  }\r\n\r\n  addInputsType(type: string): void {\r\n    this.inputsTypesSubject.pipe(\r\n      map(types => {\r\n        if (!types.includes(type)) {\r\n          types.push(type);\r\n          types.sort();\r\n          this.inputsTypesSubject.next(types); // Emit the updated list\r\n        }\r\n      })\r\n    ).subscribe(); // Make sure to subscribe to the observable\r\n  }\r\n\r\n  addRawMaterialType(type: string): void {\r\n    this.rawMaterialTypesSubject.pipe(\r\n      map(types => {\r\n        if (!types.includes(type)) {\r\n          types.push(type);\r\n          types.sort();\r\n          this.rawMaterialTypesSubject.next(types); // Emit the updated list\r\n        }\r\n      })\r\n    ).subscribe(); // Make sure to subscribe to the observable\r\n  }\r\n\r\n  getInventory(): Observable<TableData[]> {\r\n    const maxRetries = 5; // Número máximo de intentos\r\n    const retryDelay = 5000; // Retraso entre intentos (en milisegundos)\r\n  \r\n    return forkJoin({\r\n      inputs: this.InputsService.getInputs(),\r\n      rawMaterials: this.RawMaterialService.getRawMaterials()\r\n    }).pipe(\r\n      map(({ inputs, rawMaterials }) => {\r\n        // Si alguno es null, se convierte en un array vacío\r\n        const safeInputs = inputs || [];\r\n        const safeRawMaterials = rawMaterials || [];\r\n        return safeInputs.concat(safeRawMaterials).sort();\r\n      }),\r\n      retryWhen(errors =>\r\n        errors.pipe(\r\n          scan((retryCount, error) => {\r\n            if (retryCount >= maxRetries) {\r\n              throw error; // Si se excede el número de intentos, lanza el error\r\n            }\r\n            console.warn(`Retrying... (${retryCount + 1}/${maxRetries})`);\r\n            return retryCount + 1;\r\n          }, 0),\r\n          delay(retryDelay) // Espera un tiempo antes de reintentar\r\n        )\r\n      ),\r\n      catchError(err => {\r\n        console.error('Error fetching inventory', err);\r\n        return throwError(() => err); // Propaga el error final\r\n      })\r\n    );\r\n  }\r\n  \r\n}\r\n\r\n\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpErrorResponse } from '@angular/common/http';\r\nimport { Observable, catchError, throwError} from 'rxjs';\r\nimport { handleError } from '../../utils/api-error-handler.utils';\r\nimport { environment } from '../../../../evironments/environment';\r\n\r\n@Injectable({\r\n  providedIn: 'root'\r\n})\r\nexport class ProvidersService {\r\n\r\n  private apiUrl = environment.apiUrl + '/api/Providers';\r\n\r\n  constructor(private http: HttpClient) {}\r\n\r\n  getProviders(): Observable<any> {\r\n    return this.http.get<any>(this.apiUrl).pipe(catchError(handleError));\r\n  }\r\n\r\n  getProviderById(id: any): Observable<any> {\r\n    return this.http.get<any>(`${this.apiUrl}/${id}`).pipe(catchError(handleError));\r\n  }\r\n  createProvider(provider: any): Observable<any> {\r\n    return this.http.post<any>(this.apiUrl, provider).pipe(catchError(handleError));\r\n  }\r\n\r\n  updateProvider(provider: any): Observable<any> {\r\n    return this.http.put<any>(this.apiUrl, provider).pipe(catchError(handleError));\r\n  }\r\n\r\n  deleteProvider(id: any): Observable<any> {\r\n    return this.http.delete<any>(`${this.apiUrl}/${id}`).pipe(catchError(handleError));\r\n  }\r\n\r\n}\r\n","import { Component, EventEmitter, Output, OnInit } from '@angular/core';\r\nimport {\r\n  ReactiveFormsModule,\r\n  FormBuilder,\r\n  FormGroup,\r\n  Validators,\r\n} from '@angular/forms';\r\nimport { CommonModule } from '@angular/common';\r\nimport { Units } from '../../../shared/enums/units.enum';\r\nimport { decimalNumberValidator } from '../../../core/utils/validators';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { InputsService } from '../../../core/services/api/inputs.service';\r\nimport { ProvidersService } from '../../../core/services/api/providers.service';\r\nimport { InventoryService } from '../../../core/services/enums/inventory.service';\r\n\r\n@Component({\r\n  selector: 'app-add-input',\r\n  standalone: true,\r\n  imports: [CommonModule, ReactiveFormsModule],\r\n  templateUrl: './add-input.component.html',\r\n  styleUrl: './add-input.component.scss',\r\n})\r\nexport class AddInputComponent {\r\n  @Output() close = new EventEmitter<void>();\r\n  productForm: FormGroup;\r\n  addTypeForm: FormGroup;\r\n\r\n  providers: TableData[] = [];\r\n  units: string[] = [];\r\n  inventoryTypes: string[] = [];\r\n  addTypeModal: boolean = false;\r\n  isRawMaterial: boolean = false;\r\n  avaibleFreezed: boolean = false;\r\n\r\n  constructor(\r\n    private InputsService: InputsService,\r\n    private formBuilder: FormBuilder,\r\n    private InventoryService: InventoryService,\r\n    private providersService: ProvidersService\r\n  ) {\r\n    this.productForm = this.formBuilder.group({\r\n      name: ['', [Validators.required]],\r\n      type: ['', [Validators.required, Validators.pattern('^[a-zA-Z ]*$')]],\r\n      quantity: ['', [Validators.required, decimalNumberValidator]],\r\n      unit: ['', [Validators.required]],\r\n      cost: ['', [Validators.required, decimalNumberValidator]],\r\n      description: ['', [Validators.pattern(/^[a-zA-Z0-9À-ÿ\\s'_-]+$/)]],\r\n      provider: ['', [Validators.required]],\r\n    });\r\n    this.addTypeForm = this.formBuilder.group({\r\n      newType: ['', [Validators.required, Validators.pattern('^[a-zA-Z ]*$')]],\r\n    });\r\n  }\r\n\r\n  ngOnInit() {\r\n    this.InventoryService.chargeInputsTypes();\r\n    this.getProviders();\r\n    this.loadProductTypes();\r\n    this.units = Object.values(Units);\r\n  }\r\n\r\n  closeModal() {\r\n    this.close.emit();\r\n  }\r\n\r\n  openAddTypeModal() {\r\n    this.addTypeModal = true;\r\n  }\r\n\r\n  closeAddTypeModal() {\r\n    this.addTypeModal = false;\r\n  }\r\n\r\n  addType() {\r\n    if (this.addTypeForm.valid) {\r\n      const newType = this.addTypeForm.value.newType;\r\n      this.InventoryService.addInputsType(newType);\r\n      this.closeAddTypeModal();\r\n    } else {\r\n      console.error('Formulario de tipo inválido.');\r\n    }\r\n  }\r\n\r\n  onSubmit() {\r\n    //console.log('form', this.productForm);\r\n    if (this.productForm.valid) {\r\n      const providerId = this.productForm.get('provider')?.value;\r\n      //const selectedProvider = this.providers.find(provider => provider['id'] === providerId);\r\n      const selectedProvider = this.providers.find((provider) => {\r\n        return Number(provider['id']) === Number(providerId);\r\n      });\r\n      const input: TableData = {\r\n        name: this.productForm.get('name')?.value,\r\n        type: this.productForm.get('type')?.value,\r\n        quantity: this.productForm.get('quantity')?.value,\r\n        unit: this.productForm.get('unit')?.value,\r\n        cost: this.productForm.get('cost')?.value,\r\n        description: this.productForm.get('description')?.value || '',\r\n        provider: selectedProvider || {},\r\n      };\r\n      this.InputsService.createInput(input).subscribe(\r\n        () => {\r\n          //console.log('Insumo creado con éxito');\r\n          this.closeModal();\r\n        },\r\n        (error) => {\r\n          console.error('Error al crear el insumo', error);\r\n        }\r\n      );\r\n    }\r\n  }\r\n\r\n  private getProviders() {\r\n    this.providersService.getProviders().subscribe((res: any[]) => {\r\n      this.providers = res.sort((a, b) => a.name.localeCompare(b.name));\r\n    });\r\n  }\r\n\r\n  private loadProductTypes(): void {\r\n    this.InventoryService.getInputsTypes().subscribe((types) => {\r\n      this.inventoryTypes = types.sort((a, b) => a.localeCompare(b));\r\n    });\r\n  }\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content modal-content-custom\">\r\n      <div class=\"modal-header\">\r\n        <h5 class=\"modal-title\">Agregar Insumo</h5>\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn-close\"\r\n          aria-label=\"Close\"\r\n          (click)=\"closeModal()\"\r\n        ></button>\r\n      </div>\r\n      <form #aux=\"ngForm\" [formGroup]=\"productForm\" (ngSubmit)=\"onSubmit()\">\r\n        <div class=\"modal-body\">\r\n          <div class=\"row\">\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"name\">Nombre</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"name\"\r\n                      name=\"name\"\r\n                      formControlName=\"name\"\r\n                      placeholder=\"Nombre\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (productForm.get('name')?.dirty ||\r\n                            productForm.get('name')?.touched ||\r\n                            aux.submitted) &&\r\n                          productForm.get('name')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (productForm.get('name')?.invalid &&\r\n                          (productForm.get('name')?.dirty ||\r\n                            productForm.get('name')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"productForm.get('name')?.errors?.['required']\"\r\n                      >\r\n                        Nombre es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!productForm.get('name')?.errors?.['required'] && productForm.get('name')?.errors?.['pattern']\"\r\n                      >\r\n                        El nombre no debe contener números ni símbolos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"type\" class=\"mb-0\">Tipo</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <select\r\n                      id=\"type\"\r\n                      formControlName=\"type\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Type Selection\"\r\n                      placeholder=\"Seleccione un tipo\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (productForm.get('type')?.dirty ||\r\n                            productForm.get('type')?.touched ||\r\n                            aux.submitted) &&\r\n                          productForm.get('type')?.invalid\r\n                      }\"\r\n                    >\r\n                      <option value=\"\" disabled selected>\r\n                        Selecciona un tipo\r\n                      </option>\r\n                      <option\r\n                        *ngFor=\"let type of inventoryTypes\"\r\n                        [value]=\"type\"\r\n                      >\r\n                        {{ type }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <button\r\n                      type=\"button\"\r\n                      class=\"btn btn-custom\"\r\n                      (click)=\"openAddTypeModal()\"\r\n                    >\r\n                      Agregar Tipo\r\n                    </button>\r\n                  </div>\r\n                </div>\r\n                <div class=\"error-container\">\r\n                  <div\r\n                    *ngIf=\"aux.submitted && productForm.get('type')?.invalid\"\r\n                    class=\"text-danger mt-1\"\r\n                  >\r\n                    <div *ngIf=\"productForm.get('type')?.errors?.['required']\">\r\n                      Tipo es requerido.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"quantity\">Cantidad</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"quantity\"\r\n                      name=\"quantity\"\r\n                      formControlName=\"quantity\"\r\n                      placeholder=\"0000\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (productForm.get('quantity')?.dirty ||\r\n                            productForm.get('quantity')?.touched ||\r\n                            aux.submitted) &&\r\n                          productForm.get('quantity')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <label for=\"unit\">Unidad</label>\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <select\r\n                      id=\"unit\"\r\n                      formControlName=\"unit\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Unit Selection\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (productForm.get('unit')?.dirty ||\r\n                            productForm.get('unit')?.touched ||\r\n                            aux.submitted) &&\r\n                          productForm.get('unit')?.invalid\r\n                      }\"\r\n                    >\r\n                      <option value=\"\" disabled selected>...</option>\r\n                      <option *ngFor=\"let unit of units\" [value]=\"unit\">\r\n                        {{ unit }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                </div>\r\n                <div class=\"row error-container align-items-center\">\r\n                  <div\r\n                    class=\"col-8 text-danger\"\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (productForm.get('quantity')?.invalid &&\r\n                        (productForm.get('quantity')?.dirty ||\r\n                          productForm.get('quantity')?.touched))\r\n                    \"\r\n                  >\r\n                    <div\r\n                      *ngIf=\"productForm.get('quantity')?.errors?.['required']\"\r\n                    >\r\n                      Es necesario ingresar una cantidad.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"!productForm.get('quantity')?.errors?.['required'] && productForm.get('quantity')?.errors?.['invalidQuantity']\"\r\n                    >\r\n                      La cantidad debe ser un número válido mayor a 0.\r\n                    </div>\r\n                  </div>\r\n                  <div\r\n                    class=\"col text-danger\"\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (productForm.get('unit')?.invalid &&\r\n                        (productForm.get('unit')?.dirty ||\r\n                          productForm.get('unit')?.touched))\r\n                    \"\r\n                  >\r\n                    <div *ngIf=\"productForm.get('unit')?.errors?.['required']\">\r\n                      Ingrese una unidad.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"cost\">Precio Unitario</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <div class=\"input-group mb-3\">\r\n                      <span class=\"input-group-text\">$</span>\r\n                      <input\r\n                        type=\"text\"\r\n                        class=\"form-control\"\r\n                        id=\"cost\"\r\n                        name=\"cost\"\r\n                        formControlName=\"cost\"\r\n                        aria-label=\"Precio\"\r\n                        placeholder=\"00000.00\"\r\n                        [ngClass]=\"{\r\n                          'is-invalid':\r\n                            (productForm.get('cost')?.dirty ||\r\n                              productForm.get('cost')?.touched ||\r\n                              aux.submitted) &&\r\n                            productForm.get('cost')?.invalid\r\n                        }\"\r\n                      />\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (productForm.get('cost')?.invalid &&\r\n                          (productForm.get('cost')?.dirty ||\r\n                            productForm.get('cost')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"productForm.get('cost')?.errors?.['required']\"\r\n                      >\r\n                        Es necesario ingresar un Precio.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!productForm.get('cost')?.errors?.['required'] && productForm.get('cost')?.errors?.['invalidQuantity']\"\r\n                      >\r\n                        El Precio debe ser un número válido y mayor que cero.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"provider\">Proveedor</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <select\r\n                      id=\"provider\"\r\n                      formControlName=\"provider\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Provider Selection\"\r\n                      placeholder=\"Seleccione un proveedor\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (productForm.get('provider')?.dirty ||\r\n                            productForm.get('provider')?.touched ||\r\n                            aux.submitted) &&\r\n                          productForm.get('provider')?.invalid\r\n                      }\"\r\n                    >\r\n                      <option value=\"\" disabled selected>\r\n                        Seleccione un proveedor\r\n                      </option>\r\n                      <option\r\n                        *ngFor=\"let provider of providers\"\r\n                        [value]=\"provider['id']\"\r\n                      >\r\n                        {{ provider[\"name\"] }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        (aux.submitted &&\r\n                          productForm.get('provider')?.invalid) ||\r\n                        (productForm.get('provider')?.invalid &&\r\n                          (productForm.get('provider')?.dirty ||\r\n                            productForm.get('provider')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Se necesita un Provedor.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"form-group\">\r\n              <label for=\"desscription\">Descripcion</label>\r\n              <textarea\r\n                type=\"text\"\r\n                class=\"form-control desc\"\r\n                id=\"descripcion\"\r\n                name=\"description\"\r\n                formControlName=\"description\"\r\n                [ngClass]=\"{\r\n                  'is-invalid':\r\n                    (productForm.get('descripcion')?.dirty ||\r\n                      productForm.get('descripcion')?.touched ||\r\n                      aux.submitted) &&\r\n                    productForm.get('descripcion')?.invalid\r\n                }\"\r\n              >\r\n              </textarea>\r\n              <div class=\"error-container\">\r\n                <div\r\n                  *ngIf=\"\r\n                    productForm.get('description')?.invalid &&\r\n                    productForm.get('description')?.dirty &&\r\n                    productForm.get('description')?.value\r\n                  \"\r\n                  class=\"text-danger\"\r\n                >\r\n                  Descripcion no admite simbolos.\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"modal-footer justify-content-center\">\r\n          <button type=\"submit\" class=\"btn btn-custom\">GUARDAR</button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n<div\r\n  *ngIf=\"addTypeModal\"\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content\">\r\n      \r\n      <div class=\"modal-header\">\r\n        <h1 class=\"modal-title fs-5\" id=\"confirmDeleteModalLabel\">\r\n          Agregar Tipo\r\n        </h1>\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn-close\"\r\n          (click)=\"closeAddTypeModal()\"\r\n        ></button>\r\n      </div>\r\n      \r\n      <form #aux2=\"ngForm\" [formGroup]=\"addTypeForm\" (ngSubmit)=\"addType()\">\r\n        <div class=\"modal-body\">\r\n          <div class=\"form-group\">\r\n            <label for=\"newType\">Nuevo Tipo</label>\r\n            <input\r\n              type=\"text\"\r\n              class=\"form-control\"\r\n              id=\"newType\"\r\n              formControlName=\"newType\"\r\n              placeholder=\"Ingrese el nuevo tipo\"\r\n              [ngClass]=\"{\r\n                'is-invalid':\r\n                  (addTypeForm.get('newType')?.touched || aux2.submitted) &&\r\n                  addTypeForm.get('newType')?.invalid\r\n              }\"\r\n            />\r\n            <div\r\n              *ngIf=\"\r\n                (addTypeForm.get('newType')?.touched || aux2.submitted) &&\r\n                addTypeForm.get('newType')?.invalid\r\n              \"\r\n              class=\"text-danger mt-1\"\r\n            >\r\n              <div *ngIf=\"addTypeForm.get('newType')?.errors?.['required']\">\r\n                El tipo es requerido.\r\n              </div>\r\n              <div *ngIf=\"addTypeForm.get('newType')?.errors?.['pattern']\">\r\n                El tipo no debe contener números ni símbolos.\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        \r\n        <div class=\"modal-footer\">\r\n          <button\r\n            type=\"button\"\r\n            class=\"btn btn-secondary\"\r\n            (click)=\"closeAddTypeModal()\"\r\n          >\r\n            CANCELAR\r\n          </button>\r\n          <button type=\"submit\" class=\"btn btn-success\">\r\n            GUARDAR\r\n          </button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n","import { Component, EventEmitter, Output, OnInit } from '@angular/core';\r\nimport { ReactiveFormsModule,FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { CommonModule } from '@angular/common';\r\nimport { Units } from '../../../shared/enums/units.enum';\r\nimport { decimalNumberValidator } from '../../../core/utils/validators';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { RawMaterialsService } from '../../../core/services/api/rawmaterials.service';\r\nimport { ProvidersService } from '../../../core/services/api/providers.service';\r\nimport { InventoryService } from '../../../core/services/enums/inventory.service';\r\n\r\n@Component({\r\n  selector: 'app-add-raw-material',\r\n  standalone: true,\r\n  imports: [CommonModule, ReactiveFormsModule],\r\n  templateUrl: './add-raw-material.component.html',\r\n  styleUrl: './add-raw-material.component.scss'\r\n})\r\nexport class AddRawMaterialComponent {\r\n \r\n  @Output() close = new EventEmitter<void>();\r\n  productForm: FormGroup;\r\n  addTypeForm: FormGroup;\r\n  \r\n  providers: TableData[] = [];\r\n  units: string[] = [];\r\n  inventoryTypes: string[] = [];\r\n  addTypeModal: boolean = false;\r\n  isRawMaterial: boolean = false;\r\n  avaibleFreezed: boolean = false;\r\n\r\n  constructor(private RawMaterialsServices: RawMaterialsService, \r\n    private formBuilder: FormBuilder , private InventoryService: InventoryService,\r\n    private providersService: ProvidersService) {\r\n    this.productForm = this.formBuilder.group(\r\n      {\r\n        name: ['', [Validators.required]],\r\n        type: ['', [Validators.required, Validators.pattern('^[a-zA-Z ]*$')]],\r\n        quantity: ['', [Validators.required, decimalNumberValidator]],\r\n        unit: ['', [Validators.required]],\r\n        cost: ['', [Validators.required, decimalNumberValidator]],\r\n        description: ['', [Validators.pattern(/^[a-zA-Z0-9\\s]+$/) ]],\r\n        freezed: [false],\r\n        expirationDate: [{value: '', disabled: true}, [Validators.required]],\r\n        provider: ['', [Validators.required]],\r\n      }\r\n    )\r\n    this.addTypeForm = this.formBuilder.group(\r\n      {\r\n        newType: ['', [Validators.required, Validators.pattern('^[a-zA-Z ]*$')]],\r\n      }\r\n    )\r\n\r\n  }\r\n\r\n  ngOnInit() {\r\n    this.InventoryService.chargeRawMaterialTypes();\r\n    this.getProviders();\r\n    this.loadProductTypes();\r\n    this.units = Object.values(Units);\r\n    // Suscribirse a los cambios en el campo 'freezed'\r\n    this.productForm.get('freezed')?.valueChanges.subscribe(isFreezed => {\r\n      this.updateExpirationDateState(isFreezed);\r\n    });\r\n  }\r\n\r\n  closeModal() {\r\n    this.close.emit();\r\n  }\r\n\r\n  openAddTypeModal() {\r\n    this.addTypeModal = true;\r\n  }\r\n\r\n  closeAddTypeModal() {\r\n    this.addTypeModal = false;\r\n  }\r\n\r\n\r\n  addType() {\r\n    if (this.addTypeForm.valid) {\r\n      const newType = this.addTypeForm.value.newType;\r\n      this.InventoryService.addRawMaterialType(newType);\r\n      this.closeAddTypeModal();\r\n    } else {\r\n      console.error('Formulario de tipo inválido.');\r\n    }\r\n  }\r\n\r\n  onSubmit() {\r\n    const providerId = this.productForm.get('provider')?.value;\r\n    //const selectedProvider = this.providers.find(provider => provider['id'] === providerId);\r\n    const selectedProvider = this.providers.find(provider => {\r\n      return Number(provider['id']) === Number(providerId);\r\n    });\r\n    if (this.productForm.valid) {\r\n      const rawMaterial: TableData = {\r\n        name: this.productForm.get('name')?.value,\r\n        type: this.productForm.get('type')?.value,\r\n        quantity: this.productForm.get('quantity')?.value,\r\n        unit: this.productForm.get('unit')?.value,\r\n        cost: this.productForm.get('cost')?.value,\r\n        descripction: this.productForm.get('description')?.value || '',\r\n        freeze: this.productForm.get('freezed')?.value,\r\n        expirationDate: this.productForm.get('expirationDate')?.value || '',\r\n        provider: selectedProvider || {}\r\n      }\r\n      this.RawMaterialsServices.createRawMaterial(rawMaterial).subscribe(\r\n        () => {\r\n          this.closeModal();\r\n        },\r\n        (error) => {\r\n          console.error('Error al crear la materia prima', error);\r\n        });\r\n    }\r\n  }\r\n\r\n  private getProviders() {\r\n    this.providersService.getProviders().subscribe((res: any[]) => {\r\n      this.providers = res.sort((a, b) => a.name.localeCompare(b.name));\r\n    });\r\n  }\r\n\r\n  private loadProductTypes(): void {\r\n    this.InventoryService.getInputsTypes().subscribe((types) => {\r\n      this.inventoryTypes = types.sort((a, b) => a.localeCompare(b));\r\n    });\r\n  }\r\n\r\n  private updateExpirationDateState(isFreezed: boolean): void {\r\n    const expirationDateControl = this.productForm.get('expirationDate');\r\n    if (isFreezed) {\r\n      expirationDateControl?.enable();\r\n    } else {\r\n      expirationDateControl?.disable();\r\n    }\r\n  }\r\n\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content modal-content-custom\">\r\n      <div class=\"modal-header\">\r\n        <h5 class=\"modal-title\">Agregar Materia Prima</h5>\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn-close\"\r\n          aria-label=\"Close\"\r\n          (click)=\"closeModal()\"\r\n        ></button>\r\n      </div>\r\n      <form #aux=\"ngForm\" [formGroup]=\"productForm\" (ngSubmit)=\"onSubmit()\">\r\n        <div class=\"modal-body\">\r\n          <div class=\"row\">\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"name\">Nombre</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"name\"\r\n                      name=\"name\"\r\n                      formControlName=\"name\"\r\n                      placeholder=\"Nombre\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (productForm.get('name')?.dirty ||\r\n                            productForm.get('name')?.touched ||\r\n                            aux.submitted) &&\r\n                          productForm.get('name')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (productForm.get('name')?.invalid &&\r\n                          (productForm.get('name')?.dirty ||\r\n                            productForm.get('name')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"productForm.get('name')?.errors?.['required']\"\r\n                      >\r\n                        Nombre es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!productForm.get('name')?.errors?.['required'] && productForm.get('name')?.errors?.['pattern']\"\r\n                      >\r\n                        El nombre no debe contener números ni símbolos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"type\" class=\"mb-0\">Tipo</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <select\r\n                      id=\"type\"\r\n                      formControlName=\"type\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Type Selection\"\r\n                      placeholder=\"Seleccione un tipo\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (productForm.get('type')?.dirty ||\r\n                            productForm.get('type')?.touched ||\r\n                            aux.submitted) &&\r\n                          productForm.get('type')?.invalid\r\n                      }\"\r\n                    >\r\n                      <option value=\"\" disabled selected>\r\n                        Selecciona un tipo\r\n                      </option>\r\n                      <option\r\n                        *ngFor=\"let type of inventoryTypes\"\r\n                        [value]=\"type\"\r\n                      >\r\n                        {{ type }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <button\r\n                      type=\"button\"\r\n                      class=\"btn btn-custom\"\r\n                      (click)=\"openAddTypeModal()\"\r\n                    >\r\n                      Agregar Tipo\r\n                    </button>\r\n                  </div>\r\n                </div>\r\n                <div class=\"error-container\">\r\n                  <div\r\n                    *ngIf=\"aux.submitted && productForm.get('type')?.invalid\"\r\n                    class=\"text-danger mt-1\"\r\n                  >\r\n                    <div *ngIf=\"productForm.get('type')?.errors?.['required']\">\r\n                      Tipo es requerido.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"quantity\">Cantidad</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"quantity\"\r\n                      name=\"quantity\"\r\n                      formControlName=\"quantity\"\r\n                      placeholder=\"0000\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (productForm.get('quantity')?.dirty ||\r\n                            productForm.get('quantity')?.touched ||\r\n                            aux.submitted) &&\r\n                          productForm.get('quantity')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <label for=\"unit\">Unidad</label>\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <select\r\n                      id=\"unit\"\r\n                      formControlName=\"unit\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Unit Selection\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (productForm.get('unit')?.dirty ||\r\n                            productForm.get('unit')?.touched ||\r\n                            aux.submitted) &&\r\n                          productForm.get('unit')?.invalid\r\n                      }\"\r\n                    >\r\n                      <option value=\"\" disabled selected>...</option>\r\n                      <option *ngFor=\"let unit of units\" [value]=\"unit\">\r\n                        {{ unit }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                </div>\r\n                <div class=\"row error-container align-items-center\">\r\n                  <div\r\n                    class=\"col-8 text-danger\"\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (productForm.get('quantity')?.invalid &&\r\n                        (productForm.get('quantity')?.dirty ||\r\n                          productForm.get('quantity')?.touched))\r\n                    \"\r\n                  >\r\n                    <div\r\n                      *ngIf=\"productForm.get('quantity')?.errors?.['required']\"\r\n                    >\r\n                      Es necesario ingresar una cantidad.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"!productForm.get('quantity')?.errors?.['required'] && productForm.get('quantity')?.errors?.['invalidQuantity']\"\r\n                    >\r\n                      La cantidad debe ser un número válido mayor a 0.\r\n                    </div>\r\n                  </div>\r\n                  <div\r\n                    class=\"col text-danger\"\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (productForm.get('unit')?.invalid &&\r\n                        (productForm.get('unit')?.dirty ||\r\n                          productForm.get('unit')?.touched))\r\n                    \"\r\n                  >\r\n                    <div *ngIf=\"productForm.get('unit')?.errors?.['required']\">\r\n                      Ingrese una unidad.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"cost\">Precio Unitario</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <div class=\"input-group mb-3\">\r\n                      <span class=\"input-group-text\">$</span>\r\n                      <input\r\n                        type=\"text\"\r\n                        class=\"form-control\"\r\n                        id=\"cost\"\r\n                        name=\"cost\"\r\n                        formControlName=\"cost\"\r\n                        aria-label=\"Precio\"\r\n                        placeholder=\"00000.00\"\r\n                        [ngClass]=\"{\r\n                          'is-invalid':\r\n                            (productForm.get('cost')?.dirty ||\r\n                              productForm.get('cost')?.touched ||\r\n                              aux.submitted) &&\r\n                            productForm.get('cost')?.invalid\r\n                        }\"\r\n                      />\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (productForm.get('cost')?.invalid &&\r\n                          (productForm.get('cost')?.dirty ||\r\n                            productForm.get('cost')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"productForm.get('cost')?.errors?.['required']\"\r\n                      >\r\n                        Es necesario ingresar un Precio.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!productForm.get('cost')?.errors?.['required'] && productForm.get('cost')?.errors?.['invalidQuantity']\"\r\n                      >\r\n                        El Precio debe ser un número válido y mayor que cero.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-3\">\r\n                    <div\r\n                      class=\"form-check form-switch d-flex align-items-center\"\r\n                    >\r\n                      <label class=\"form-check-label me-3\" for=\"freezed\"\r\n                        >Freezar</label\r\n                      >\r\n                      <input\r\n                        class=\"form-check-input\"\r\n                        type=\"checkbox\"\r\n                        data-toggle=\"switchbutton\"\r\n                        id=\"freezed\"\r\n                        name=\"freezed\"\r\n                        formControlName=\"freezed\"\r\n                        checked\r\n                        data-onstyle=\"success\"\r\n                        [ngClass]=\"{\r\n                          'is-invalid':\r\n                            (productForm.get('checkbox')?.dirty ||\r\n                              productForm.get('checkbox')?.touched ||\r\n                              aux.submitted) &&\r\n                            productForm.get('checkbox')?.invalid\r\n                        }\"\r\n                      />\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"col-4\">\r\n                    <label for=\"expirationDate\">Fecha de Vencimiento:</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"datetime-local\"\r\n                      class=\"form-control\"\r\n                      id=\"expirationDate\"\r\n                      formControlName=\"expirationDate\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (productForm.get('expirationDate')?.dirty ||\r\n                            productForm.get('expirationDate')?.touched ||\r\n                            aux.submitted) &&\r\n                          productForm.get('expirationDate')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        productForm.get('expirationDate')?.invalid &&\r\n                        (productForm.get('expirationDate')?.dirty ||\r\n                          productForm.get('expirationDate')?.touched)\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Se necesita una Fecha de Vencimiento.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"provider\">Proveedor</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <select\r\n                      id=\"provider\"\r\n                      formControlName=\"provider\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Provider Selection\"\r\n                      placeholder=\"Seleccione un proveedor\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (productForm.get('provider')?.dirty ||\r\n                            productForm.get('provider')?.touched ||\r\n                            aux.submitted) &&\r\n                          productForm.get('provider')?.invalid\r\n                      }\"\r\n                    >\r\n                      <option value=\"\" disabled selected>\r\n                        Seleccione un proveedor\r\n                      </option>\r\n                      <option\r\n                        *ngFor=\"let provider of providers\"\r\n                        [value]=\"provider['id']\"\r\n                      >\r\n                        {{ provider[\"name\"] }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        (aux.submitted &&\r\n                          productForm.get('provider')?.invalid) ||\r\n                        (productForm.get('provider')?.invalid &&\r\n                          (productForm.get('provider')?.dirty ||\r\n                            productForm.get('provider')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Se necesita un Provedor.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"form-group\">\r\n              <label for=\"desscription\">Descripcion</label>\r\n              <textarea\r\n                type=\"text\"\r\n                class=\"form-control desc\"\r\n                id=\"descripcion\"\r\n                name=\"description\"\r\n                formControlName=\"description\"\r\n                [ngClass]=\"{\r\n                  'is-invalid':\r\n                    (productForm.get('descripcion')?.dirty ||\r\n                      productForm.get('descripcion')?.touched ||\r\n                      aux.submitted) &&\r\n                    productForm.get('descripcion')?.invalid\r\n                }\"\r\n              >\r\n              </textarea>\r\n              <div class=\"error-container\">\r\n                <div\r\n                  *ngIf=\"\r\n                    productForm.get('description')?.invalid &&\r\n                    productForm.get('description')?.dirty &&\r\n                    productForm.get('description')?.value\r\n                  \"\r\n                  class=\"text-danger\"\r\n                >\r\n                  Descripcion no admite simbolos.\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"modal-footer justify-content-center\">\r\n          <button type=\"submit\" class=\"btn btn-custom\">GUARDAR</button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n<div\r\n  *ngIf=\"addTypeModal\"\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content\">\r\n      \r\n      <div class=\"modal-header\">\r\n        <h1 class=\"modal-title fs-5\" id=\"confirmDeleteModalLabel\">\r\n          Agregar Tipo\r\n        </h1>\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn-close\"\r\n          (click)=\"closeAddTypeModal()\"\r\n        ></button>\r\n      </div>\r\n      \r\n      <form #aux2=\"ngForm\" [formGroup]=\"addTypeForm\" (ngSubmit)=\"addType()\">\r\n        <div class=\"modal-body\">\r\n          <div class=\"form-group\">\r\n            <label for=\"newType\">Nuevo Tipo</label>\r\n            <input\r\n              type=\"text\"\r\n              class=\"form-control\"\r\n              id=\"newType\"\r\n              formControlName=\"newType\"\r\n              placeholder=\"Ingrese el nuevo tipo\"\r\n              [ngClass]=\"{\r\n                'is-invalid':\r\n                  (addTypeForm.get('newType')?.touched || aux2.submitted) &&\r\n                  addTypeForm.get('newType')?.invalid\r\n              }\"\r\n            />\r\n            <div\r\n              *ngIf=\"\r\n                (addTypeForm.get('newType')?.touched || aux2.submitted) &&\r\n                addTypeForm.get('newType')?.invalid\r\n              \"\r\n              class=\"text-danger mt-1\"\r\n            >\r\n              <div *ngIf=\"addTypeForm.get('newType')?.errors?.['required']\">\r\n                El tipo es requerido.\r\n              </div>\r\n              <div *ngIf=\"addTypeForm.get('newType')?.errors?.['pattern']\">\r\n                El tipo no debe contener números ni símbolos.\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        \r\n        <div class=\"modal-footer\">\r\n          <button\r\n            type=\"button\"\r\n            class=\"btn btn-secondary\"\r\n            (click)=\"closeAddTypeModal()\"\r\n          >\r\n            CANCELAR\r\n          </button>\r\n          <button type=\"submit\" class=\"btn btn-success\">\r\n            GUARDAR\r\n          </button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n","import { Component, EventEmitter, Input, Output } from '@angular/core';\r\n\r\n\r\n@Component({\r\n  selector: 'app-delete-modal',\r\n  standalone: true,\r\n  imports: [],\r\n  templateUrl: './delete-modal.component.html',\r\n  styleUrl: './delete-modal.component.scss'\r\n})\r\nexport class DeleteModalComponent {\r\n  @Input() confirmDeleteModal: boolean = false;\r\n  @Input() headerMessage: string = '';\r\n  @Input() bodyMessage: string = '';\r\n  @Output() confirm = new EventEmitter<void>();\r\n  @Output() cancel = new EventEmitter<void>();\r\n\r\n  closeDeleteModal() {\r\n    this.cancel.emit();\r\n  }\r\n\r\n  deleteEntity() {\r\n    this.confirm.emit();\r\n  }\r\n\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content\">\r\n      <div class=\"modal-header \">\r\n        <h1 class=\"modal-title fs-5\" id=\"confirmDeleteModalLabel\">\r\n          {{ headerMessage }}\r\n        </h1>\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn-close\"\r\n          (click)=\"closeDeleteModal()\"\r\n        ></button>\r\n      </div>\r\n      <div class=\"modal-body\">\r\n        <p>{{ bodyMessage }}</p>\r\n      </div>\r\n      <div class=\"modal-footer\">\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn btn-secondary\"\r\n          (click)=\"closeDeleteModal()\"\r\n        >\r\n          CANCELAR\r\n        </button>\r\n        <button type=\"button\" class=\"btn btn-danger\" (click)=\"deleteEntity()\">\r\n          CONFIRMAR\r\n        </button>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</div>\r\n","import {\r\n  Component,\r\n  EventEmitter,\r\n  Output,\r\n  Input,\r\n  SimpleChanges,\r\n} from '@angular/core';\r\nimport {\r\n  ReactiveFormsModule,\r\n  FormBuilder,\r\n  FormGroup,\r\n  Validators,\r\n} from '@angular/forms';\r\nimport { CommonModule } from '@angular/common';\r\nimport { Units } from '../../../shared/enums/units.enum';\r\nimport {\r\n  decimalNumberValidator,\r\n  conditionalRequiredValidator,\r\n} from '../../../core/utils/validators';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { RawMaterialsService } from '../../../core/services/api/rawmaterials.service';\r\nimport { InventoryService } from '../../../core/services/enums/inventory.service';\r\nimport { ProvidersService } from '../../../core/services/api/providers.service';\r\nimport { DeleteModalComponent } from '../../../shared/components/delete-modal/delete-modal.component';\r\nimport { formatDate, formatDateString } from '../../../core/utils/mapping.utils';\r\n\r\n@Component({\r\n  selector: 'app-raw-material',\r\n  standalone: true,\r\n  imports: [ReactiveFormsModule, CommonModule, DeleteModalComponent],\r\n  templateUrl: './raw-material.component.html',\r\n  styleUrl: './raw-material.component.scss',\r\n})\r\nexport class RawMaterialComponent {\r\n  @Input() productInput: TableData = {};\r\n  @Output() close = new EventEmitter<void>();\r\n  productForm: FormGroup;\r\n  addTypeForm: FormGroup;\r\n\r\n  inventoryTypes: string[] = [];\r\n  inputsTypes: string[] = [];\r\n  units: string[] = [];\r\n  addTypeModal: boolean = false;\r\n\r\n  providers: TableData[] = [];\r\n\r\n  avaibleFreezed: boolean = false;\r\n  isToggled: boolean = false;\r\n  confirmDeleteModal: boolean = false;\r\n\r\n  constructor(\r\n    private RawMaterialsServices: RawMaterialsService,\r\n    private formBuilder: FormBuilder,\r\n    private InventoryService: InventoryService,\r\n    private ProvidersService: ProvidersService\r\n  ) {\r\n    this.productForm = this.formBuilder.group(\r\n      {\r\n        name: [{ value: '', disabled: !this.isToggled }, [Validators.required]],\r\n        type: [\r\n          { value: '', disabled: !this.isToggled },\r\n          [Validators.required, Validators.pattern('^[a-zA-Z ]*$')],\r\n        ],\r\n        quantity: [\r\n          { value: '', disabled: !this.isToggled },\r\n          [Validators.required],\r\n        ],\r\n        unit: [{ value: '', disabled: !this.isToggled }, [Validators.required]],\r\n        cost: [\r\n          { value: '', disabled: !this.isToggled },\r\n          [Validators.required, decimalNumberValidator],\r\n        ],\r\n        description: [\r\n          { value: '', disabled: !this.isToggled },\r\n          [Validators.pattern(/^[a-zA-Z0-9\\s]+$/)],\r\n        ],\r\n        freezed: [{ value: false, disabled: true }, [Validators.required]],\r\n        expirationDate: [{ value: '', disabled: true }],\r\n        provider: [\r\n          { value: '', disabled: !this.isToggled },\r\n          [Validators.required],\r\n        ],\r\n      },\r\n      {\r\n        validators: conditionalRequiredValidator('expirationDate', 'freezed'),\r\n      }\r\n    );\r\n    this.addTypeForm = this.formBuilder.group({\r\n      newType: ['', [Validators.required, Validators.pattern('^[a-zA-Z ]*$')]],\r\n    });\r\n  }\r\n\r\n  ngOnInit() {\r\n    //console.log('productInput', this.productInput);\r\n    this.InventoryService.chargeRawMaterialTypes();\r\n    this.getProviders();\r\n    this.loadProductTypes();\r\n    this.units = Object.values(Units);\r\n    this.productForm.get('type')?.valueChanges.subscribe(() => {\r\n      this.updateFreezedState();\r\n    });\r\n    this.productForm.get('freezed')?.valueChanges.subscribe((isFreezed) => {\r\n      this.updateExpirationDateState(isFreezed);\r\n    });\r\n  }\r\n\r\n  ngOnChanges(changes: SimpleChanges) {\r\n    if (changes['productInput'] && changes['productInput'].currentValue) {\r\n      //console.log(this.transformProductInput(this.productInput));\r\n      this.productForm.patchValue(this.transformProductInput(this.productInput));\r\n    }\r\n  }\r\n\r\n  toggleEditMode() {\r\n    this.isToggled = !this.isToggled;\r\n    if (this.isToggled) {\r\n      this.productForm.enable(); // Habilita todos los controles del formulario\r\n    } else {\r\n      this.productForm.disable(); // Deshabilita todos los controles del formulario\r\n    }\r\n    this.updateFreezedState();\r\n  }\r\n\r\n  closeModal() {\r\n    this.close.emit();\r\n  }\r\n\r\n  confirmDelete() {\r\n    this.confirmDeleteModal = true;\r\n  }\r\n\r\n  closeDeleteModal() {\r\n    this.confirmDeleteModal = false;\r\n  }\r\n\r\n  deleteProduct() {\r\n    //Call backend\r\n    this.RawMaterialsServices.deleteRawMaterial(\r\n      this.productInput['id']\r\n    ).subscribe(\r\n      () => {\r\n        this.closeModal();\r\n      },\r\n      (error) => {\r\n        console.error('Error al eliminar la materia prima', error);\r\n      }\r\n    );\r\n  }\r\n\r\n  openAddTypeModal() {\r\n    this.addTypeModal = true;\r\n  }\r\n\r\n  closeAddTypeModal() {\r\n    this.addTypeModal = false;\r\n  }\r\n\r\n\r\n  addType() {\r\n    if (this.addTypeForm.valid) {\r\n      const newType = this.addTypeForm.value.newType;\r\n      this.InventoryService.addRawMaterialType(newType);\r\n      this.closeAddTypeModal();\r\n    } else {\r\n      console.error('Formulario de tipo inválido.');\r\n    }\r\n  }\r\n\r\n  onSubmit() {\r\n    if (this.productForm.valid) {\r\n      const providerId = this.productForm.get('provider')?.value;\r\n      const selectedProvider = this.providers.find((provider) => {\r\n        return Number(provider['id']) === Number(providerId);\r\n      });\r\n      const rawMaterial: TableData = {\r\n        id: this.productInput['id'],\r\n        name: this.productForm.get('name')?.value,\r\n        type: this.productForm.get('type')?.value,\r\n        quantity: this.productForm.get('quantity')?.value,\r\n        unit: this.productForm.get('unit')?.value,\r\n        cost: this.productForm.get('cost')?.value,\r\n        descripction: this.productForm.get('description')?.value || '',\r\n        freeze: this.productForm.get('freezed')?.value,\r\n        expirationDate: this.productForm.get('expirationDate')?.value,\r\n        provider: selectedProvider || {},\r\n        admissionDate: formatDateString(this.productInput['admissionDate']),\r\n        lastModificationDate: formatDateString(this.productInput['lastModificationDate'])\r\n      }\r\n      this.RawMaterialsServices.updateRawMaterial(rawMaterial).subscribe(\r\n        () => {\r\n          this.closeModal();\r\n        },\r\n        (error) => {\r\n          console.error('Error al actualizar la materia prima', error);}\r\n      );\r\n    }\r\n  }\r\n\r\n  private transformProductInput(data: TableData): any {\r\n    return {\r\n      name: data['name'] ?? '',\r\n      type: data['type'] ?? '',\r\n      quantity: data['quantity'] ? String(data['quantity']) : '',\r\n      unit: data['unit'] ?? '',\r\n      cost: data['cost'] ? String(data['cost']) : '',\r\n      freezed: data['freeze'] ?? false,\r\n      expirationDate: formatDate(data['expirationDate']),\r\n      provider: data['provider'].id ?? '',\r\n    };\r\n  }\r\n\r\n  private getProviders() {\r\n    this.ProvidersService.getProviders().subscribe((res: any[]) => {\r\n      this.providers = res.sort((a, b) => a.name.localeCompare(b.name));\r\n    });\r\n  }\r\n\r\n  private loadProductTypes(): void {\r\n    this.InventoryService.getInputsTypes().subscribe((types) => {\r\n      this.inventoryTypes = types.sort((a, b) => a.localeCompare(b));\r\n    });\r\n  }\r\n\r\n  private updateExpirationDateState(isFreezed: boolean): void {\r\n    const expirationDateControl = this.productForm.get('expirationDate');\r\n    if (isFreezed) {\r\n      expirationDateControl?.enable();\r\n    } else {\r\n      expirationDateControl?.disable();\r\n    }\r\n  }\r\n  private updateFreezedState(): void {\r\n    const typeControl = this.productForm.get('type');\r\n    const freezedControl = this.productForm.get('freezed');\r\n\r\n    if (typeControl && freezedControl) {\r\n      const typeValue = typeControl.value;\r\n      const isTypeInInputs = this.inputsTypes.includes(typeValue);\r\n\r\n      // Deshabilitar el campo 'freezed' si el tipo está en inputsTypes, habilitar si no está en inputsTypes\r\n      if (isTypeInInputs) {\r\n        freezedControl.disable();\r\n        // También podemos establecer un valor predeterminado para 'freezed' cuando está deshabilitado\r\n        if (freezedControl.value) {\r\n          freezedControl.setValue(false);\r\n        }\r\n      } else {\r\n        freezedControl.enable();\r\n      }\r\n    }\r\n  }\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content modal-content-custom\">\r\n      <div\r\n        class=\"modal-header d-flex justify-content-center align-items-center\"\r\n      >\r\n        <div class=\"row w-100\">\r\n          <div class=\"col\">\r\n            <h5 class=\"modal-title\">Detalles Existencia</h5>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-center\">\r\n            <div class=\"form-check form-switch\">\r\n              <label class=\"form-check-label\" for=\"flexSwitchCheckDefault\"\r\n                >Editar</label\r\n              >\r\n              <input\r\n                class=\"form-check-input custom-switch\"\r\n                type=\"checkbox\"\r\n                id=\"flexSwitchCheckDefault\"\r\n                (change)=\"toggleEditMode()\"\r\n              />\r\n            </div>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-end\">\r\n            <button\r\n              type=\"button\"\r\n              class=\"btn-close\"\r\n              aria-label=\"Close\"\r\n              (click)=\"closeModal()\"\r\n            ></button>\r\n          </div>\r\n        </div>\r\n      </div>\r\n      <form #aux=\"ngForm\" [formGroup]=\"productForm\" (ngSubmit)=\"onSubmit()\">\r\n        <div class=\"modal-body\">\r\n          <div class=\"row\">\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"name\">Nombre</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"name\"\r\n                      name=\"name\"\r\n                      formControlName=\"name\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (productForm.get('name')?.invalid &&\r\n                          (productForm.get('name')?.dirty ||\r\n                            productForm.get('name')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"productForm.get('name')?.errors?.['required']\"\r\n                      >\r\n                        Nombre es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!productForm.get('name')?.errors?.['required'] && productForm.get('name')?.errors?.['pattern']\"\r\n                      >\r\n                        El nombre no debe contener números ni símbolos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"type\" class=\"mb-0\">Tipo</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <select\r\n                      id=\"type\"\r\n                      formControlName=\"type\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Type Selection\"\r\n                      placeholder=\"Seleccione un tipo\"\r\n                    >\r\n                      <option value=\"\" disabled selected>\r\n                        Selecciona un tipo\r\n                      </option>\r\n                      <option\r\n                        *ngFor=\"let type of inventoryTypes\"\r\n                        [value]=\"type\"\r\n                      >\r\n                        {{ type }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <button\r\n                      type=\"button\"\r\n                      class=\"btn btn-custom\"\r\n                      [disabled]=\"!isToggled\"\r\n                      (click)=\"openAddTypeModal()\"\r\n                    >\r\n                      Agregar Tipo\r\n                    </button>\r\n                  </div>\r\n                </div>\r\n                <div class=\"error-container\">\r\n                  <div\r\n                    *ngIf=\"aux.submitted && productForm.get('type')?.invalid\"\r\n                    class=\"text-danger mt-1\"\r\n                  >\r\n                    <div *ngIf=\"productForm.get('type')?.errors?.['required']\">\r\n                      Tipo es requerido.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"quantity\">Cantidad</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"number\"\r\n                      class=\"form-control\"\r\n                      id=\"quantity\"\r\n                      name=\"quantity\"\r\n                      formControlName=\"quantity\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <label for=\"unit\">Unidad</label>\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <select\r\n                      id=\"unit\"\r\n                      formControlName=\"unit\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Unit Selection\"\r\n                    >\r\n                      <option value=\"\" disabled selected>...</option>\r\n                      <option *ngFor=\"let unit of units\" [value]=\"unit\">\r\n                        {{ unit }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                </div>\r\n                <div class=\"row error-container align-items-center\">\r\n                  <div\r\n                    class=\"col-8 text-danger\"\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (productForm.get('quantity')?.invalid &&\r\n                        (productForm.get('quantity')?.dirty ||\r\n                          productForm.get('quantity')?.touched))\r\n                    \"\r\n                  >\r\n                    <div\r\n                      *ngIf=\"productForm.get('quantity')?.errors?.['required']\"\r\n                    >\r\n                      Es necesario ingresar una cantidad.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"!productForm.get('quantity')?.errors?.['required'] && productForm.get('quantity')?.errors?.['invalidQuantity']\"\r\n                    >\r\n                      La cantidad debe ser un número válido mayor a 0.\r\n                    </div>\r\n                  </div>\r\n                  <div\r\n                    class=\"col text-danger\"\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (productForm.get('unit')?.invalid &&\r\n                        (productForm.get('unit')?.dirty ||\r\n                          productForm.get('unit')?.touched))\r\n                    \"\r\n                  >\r\n                    <div *ngIf=\"productForm.get('unit')?.errors?.['required']\">\r\n                      Ingrese una unidad.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"cost\">Precio Unitario</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <div class=\"input-group mb-3\">\r\n                      <span class=\"input-group-text\">$</span>\r\n                      <input\r\n                        type=\"text\"\r\n                        class=\"form-control\"\r\n                        id=\"cost\"\r\n                        name=\"cost\"\r\n                        formControlName=\"cost\"\r\n                        aria-label=\"Costo\"\r\n                      />\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (productForm.get('cost')?.invalid &&\r\n                          (productForm.get('cost')?.dirty ||\r\n                            productForm.get('cost')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"productForm.get('cost')?.errors?.['required']\"\r\n                      >\r\n                        Es necesario ingresar un Precio.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!productForm.get('cost')?.errors?.['required'] && productForm.get('cost')?.errors?.['invalidQuantity']\"\r\n                      >\r\n                        El Precio debe ser un número válido y mayor que cero.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-3\">\r\n                    <div\r\n                      class=\"form-check form-switch d-flex align-items-center\"\r\n                    >\r\n                      <label class=\"form-check-label me-3\" for=\"freezed\"\r\n                        >Freezar</label\r\n                      >\r\n                      <input class=\"form-check-input\" type=\"checkbox\" data-toggle=\"switchbutton\" id=\"freezed\"\r\n                        name=\"freezed\" formControlName=\"freezed\" checked data-onstyle=\"success\" />\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"col-4\">\r\n                    <label for=\"expirationDate\">Fecha de Vencimiento:</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"datetime-local\"\r\n                      class=\"form-control\"\r\n                      id=\"expirationDate\"\r\n                      formControlName=\"expirationDate\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        productForm.get('expirationDate')?.invalid &&\r\n                        (productForm.get('expirationDate')?.dirty ||\r\n                          productForm.get('expirationDate')?.touched)\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Se necesita una Fecha de Vencimiento.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"expirationDate\">Proveedor</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <select\r\n                      id=\"provider\"\r\n                      formControlName=\"provider\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Provider Selection\"\r\n                    >\r\n                      <option value=\"\" disabled selected>...</option>\r\n                      <option *ngFor=\"let provider of providers\" [value]=\"provider['id']\">\r\n                        {{ provider['name']}}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        (aux.submitted && productForm.get('provider')?.invalid) ||\r\n                        (productForm.get('provider')?.invalid &&\r\n                          (productForm.get('provider')?.dirty ||\r\n                            productForm.get('provider')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Se necesita un Provedor.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"form-group\">\r\n              <label for=\"desscription\">Descripcion</label>\r\n              <textarea\r\n                type=\"text\"\r\n                class=\"form-control desc\"\r\n                id=\"descripcion\"\r\n                name=\"description\"\r\n                formControlName=\"description\"\r\n              >\r\n              </textarea>\r\n              <div class=\"error-container\">\r\n                <div\r\n                  *ngIf=\"\r\n                    productForm.get('description')?.invalid &&\r\n                    productForm.get('description')?.dirty &&\r\n                    productForm.get('description')?.value\r\n                  \"\r\n                  class=\"text-danger\"\r\n                >\r\n                  Descripcion no admite simbolos.\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"modal-footer justify-content-center\">\r\n          <button type=\"submit\" class=\"btn btn-custom\" [disabled]=\"!isToggled\">\r\n            GUARDAR\r\n          </button>\r\n          <button\r\n            type=\"button\"\r\n            class=\"btn btn-danger\"\r\n            (click)=\"confirmDelete()\"\r\n          >\r\n            BORRAR\r\n          </button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n<div\r\n  *ngIf=\"addTypeModal\"\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content\">\r\n      \r\n      <div class=\"modal-header\">\r\n        <h1 class=\"modal-title fs-5\" id=\"confirmDeleteModalLabel\">\r\n          Agregar Tipo\r\n        </h1>\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn-close\"\r\n          (click)=\"closeAddTypeModal()\"\r\n        ></button>\r\n      </div>\r\n      \r\n      <form #aux2=\"ngForm\" [formGroup]=\"addTypeForm\" (ngSubmit)=\"addType()\">\r\n        <div class=\"modal-body\">\r\n          <div class=\"form-group\">\r\n            <label for=\"newType\">Nuevo Tipo</label>\r\n            <input\r\n              type=\"text\"\r\n              class=\"form-control\"\r\n              id=\"newType\"\r\n              formControlName=\"newType\"\r\n              placeholder=\"Ingrese el nuevo tipo\"\r\n              [ngClass]=\"{\r\n                'is-invalid':\r\n                  (addTypeForm.get('newType')?.touched || aux2.submitted) &&\r\n                  addTypeForm.get('newType')?.invalid\r\n              }\"\r\n            />\r\n            <div\r\n              *ngIf=\"\r\n                (addTypeForm.get('newType')?.touched || aux2.submitted) &&\r\n                addTypeForm.get('newType')?.invalid\r\n              \"\r\n              class=\"text-danger mt-1\"\r\n            >\r\n              <div *ngIf=\"addTypeForm.get('newType')?.errors?.['required']\">\r\n                El tipo es requerido.\r\n              </div>\r\n              <div *ngIf=\"addTypeForm.get('newType')?.errors?.['pattern']\">\r\n                El tipo no debe contener números ni símbolos.\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        \r\n        <div class=\"modal-footer\">\r\n          <button\r\n            type=\"button\"\r\n            class=\"btn btn-secondary\"\r\n            (click)=\"closeAddTypeModal()\"\r\n          >\r\n            CANCELAR\r\n          </button>\r\n          <button type=\"submit\" class=\"btn btn-success\">\r\n            GUARDAR\r\n          </button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n\r\n<app-delete-modal\r\n  *ngIf=\"confirmDeleteModal\"\r\n  [headerMessage]=\"'Eliminar Proveedor'\"\r\n  [bodyMessage]=\"'¿Estás seguro que deseas borrar este Proveedor?'\"\r\n  (cancel)=\"closeDeleteModal()\"\r\n  (confirm)=\"deleteProduct()\"\r\n>\r\n</app-delete-modal>\r\n","import {\r\n  Component,\r\n  EventEmitter,\r\n  Output,\r\n  Input,\r\n  SimpleChanges,\r\n} from '@angular/core';\r\nimport {\r\n  ReactiveFormsModule,\r\n  FormBuilder,\r\n  FormGroup,\r\n  Validators,\r\n} from '@angular/forms';\r\nimport { CommonModule } from '@angular/common';\r\nimport { Units } from '../../../shared/enums/units.enum';\r\nimport {\r\n  decimalNumberValidator,\r\n  conditionalRequiredValidator,\r\n} from '../../../core/utils/validators';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { InputsService } from '../../../core/services/api/inputs.service';\r\nimport { InventoryService } from '../../../core/services/enums/inventory.service';\r\nimport { ProvidersService } from '../../../core/services/api/providers.service';\r\nimport { DeleteModalComponent } from '../../../shared/components/delete-modal/delete-modal.component';\r\nimport { formatDate, formatDateString } from '../../../core/utils/mapping.utils';\r\n@Component({\r\n  selector: 'app-inputs',\r\n  standalone: true,\r\n  imports: [ReactiveFormsModule, CommonModule, DeleteModalComponent],\r\n  templateUrl: './inputs.component.html',\r\n  styleUrl: './inputs.component.scss',\r\n})\r\nexport class InputsComponent {\r\n  @Input() productInput: TableData = {};\r\n  @Output() close = new EventEmitter<void>();\r\n  productForm: FormGroup;\r\n  addTypeForm: FormGroup;\r\n\r\n  inventoryTypes: string[] = [];\r\n  inputsTypes: string[] = [];\r\n  units: string[] = [];\r\n  addTypeModal: boolean = false;\r\n\r\n  providers: TableData[] = [];\r\n\r\n  avaibleFreezed: boolean = false;\r\n  isToggled: boolean = false;\r\n  confirmDeleteModal: boolean = false;\r\n\r\n  constructor(\r\n    private InputsService: InputsService,\r\n    private formBuilder: FormBuilder,\r\n    private InventoryService: InventoryService,\r\n    private ProvidersService: ProvidersService\r\n  ) {\r\n    this.productForm = this.formBuilder.group(\r\n      {\r\n        name: [{ value: '', disabled: !this.isToggled }, [Validators.required]],\r\n        type: [\r\n          { value: '', disabled: !this.isToggled },\r\n          [Validators.required, Validators.pattern('^[a-zA-Z ]*$')],\r\n        ],\r\n        quantity: [\r\n          { value: '', disabled: !this.isToggled },\r\n          [Validators.required],\r\n        ],\r\n        unit: [{ value: '', disabled: !this.isToggled }, [Validators.required]],\r\n        cost: [\r\n          { value: '', disabled: !this.isToggled },\r\n          [Validators.required, decimalNumberValidator],\r\n        ],\r\n        description: [\r\n          { value: '', disabled: !this.isToggled },\r\n          [Validators.pattern(/^[a-zA-Z0-9\\s]+$/)],\r\n        ],\r\n        provider: [\r\n          { value: '', disabled: !this.isToggled },\r\n          [Validators.required],\r\n        ],\r\n      },\r\n      {\r\n        validators: conditionalRequiredValidator('expirationDate', 'freezed'),\r\n      }\r\n    );\r\n    this.addTypeForm = this.formBuilder.group({\r\n      newType: ['', [Validators.required, Validators.pattern('^[a-zA-Z ]*$')]],\r\n    });\r\n  }\r\n\r\n  ngOnInit() {\r\n    this.InventoryService.chargeInputsTypes();\r\n    this.getProviders();\r\n    this.loadProductTypes();\r\n    this.InputsService.getInputsTypes().subscribe(\r\n      (types) => (this.inputsTypes = types)\r\n    );\r\n    this.units = Object.values(Units);\r\n  }\r\n\r\n  ngOnChanges(changes: SimpleChanges) {\r\n    if (changes['productInput'] && changes['productInput'].currentValue) {\r\n      //console.log(this.transformProductInput(this.productInput));\r\n      this.productForm.patchValue(\r\n        this.transformProductInput(this.productInput)\r\n      );\r\n    }\r\n  }\r\n\r\n  toggleEditMode() {\r\n    this.isToggled = !this.isToggled;\r\n    if (this.isToggled) {\r\n      this.productForm.enable(); // Habilita todos los controles del formulario\r\n    } else {\r\n      this.productForm.disable(); // Deshabilita todos los controles del formulario\r\n    }\r\n  }\r\n\r\n  closeModal() {\r\n    this.close.emit();\r\n  }\r\n\r\n  confirmDelete() {\r\n    this.confirmDeleteModal = true;\r\n  }\r\n\r\n  closeDeleteModal() {\r\n    this.confirmDeleteModal = false;\r\n  }\r\n\r\n  deleteProduct() {\r\n    //Call backend\r\n    /*console.log(\r\n      'Eliminando producto',\r\n      this.productForm.get('freezed')?.enabled,\r\n      !this.inputsTypes.includes(this.productForm.get('type')?.value)\r\n    );*/\r\n    this.InputsService.deleteInput(this.productInput['id']).subscribe(\r\n      () => {\r\n        //console.log('Insumo eliminado con éxito');\r\n        this.closeModal();\r\n      },\r\n      (error) => {\r\n        console.error('Error al eliminar el insumo', error);\r\n      }\r\n    );\r\n  }\r\n\r\n  //Type and Providers\r\n  openAddTypeModal() {\r\n    this.addTypeModal = true;\r\n  }\r\n\r\n  closeAddTypeModal() {\r\n    this.addTypeModal = false;\r\n  }\r\n\r\n  addType() {\r\n    if (this.addTypeForm.valid) {\r\n      const newType = this.addTypeForm.value.newType;\r\n      this.InventoryService.addInputsType(newType);\r\n      this.InventoryService.getInputsTypes().subscribe((types) => {\r\n        this.inventoryTypes = types; // Actualiza la lista en el componente\r\n        this.closeAddTypeModal();\r\n      });\r\n    } else {\r\n      console.log('Formulario de tipo inválido.');\r\n    }\r\n  }\r\n\r\n  onSubmit() {\r\n    if (this.productForm.valid) {\r\n      const providerId = this.productForm.get('provider')?.value;\r\n      const selectedProvider = this.providers.find((provider) => {\r\n        return Number(provider['id']) === Number(providerId);\r\n      });\r\n      //console.log('form', this.productForm);\r\n      const input: TableData = {\r\n        id: this.productInput['id'],\r\n        name: this.productForm.get('name')?.value,\r\n        type: this.productForm.get('type')?.value,\r\n        quantity: this.productForm.get('quantity')?.value,\r\n        unit: this.productForm.get('unit')?.value,\r\n        cost: this.productForm.get('cost')?.value,\r\n        description: this.productForm.get('description')?.value || '',\r\n        provider: selectedProvider || {},\r\n        admissionDate: formatDateString(this.productInput['admissionDate']),\r\n        lastModificationDate: formatDateString(this.productInput['lastModificationDate'])\r\n      }\r\n      this.InputsService.updateInput(input).subscribe(\r\n        () => {\r\n          //console.log('Insumo modificado con éxito');\r\n          this.closeModal();\r\n        },\r\n        (error) => {\r\n          console.error('Error al crear el insumo', error);\r\n        }\r\n      );\r\n    } else {\r\n      console.error('Formulario inválido');\r\n    }\r\n  }\r\n\r\n  private transformProductInput(data: TableData): any {\r\n    return {\r\n      name: data['name'] ?? '',\r\n      type: data['type'] ?? '',\r\n      quantity: data['quantity'] ? String(data['quantity']) : '',\r\n      unit: data['unit'] ?? '',\r\n      cost: data['cost'] ? String(data['cost']) : '',\r\n      freezed: data['freeze'] ?? false,\r\n      expirationDate: formatDate(data['expirationDate']),\r\n      provider: data['provider'].id ?? '',\r\n    };\r\n  }\r\n\r\n  private getProviders() {\r\n    this.ProvidersService.getProviders().subscribe((res: any[]) => {\r\n      this.providers = res.sort((a, b) => a.name.localeCompare(b.name));\r\n    });\r\n  }\r\n\r\n  private loadProductTypes(): void {\r\n    this.InventoryService.getInputsTypes().subscribe((types) => {\r\n      this.inventoryTypes = types.sort((a, b) => a.localeCompare(b));\r\n    });\r\n  }\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content modal-content-custom\">\r\n      <div\r\n        class=\"modal-header d-flex justify-content-center align-items-center\"\r\n      >\r\n        <div class=\"row w-100\">\r\n          <div class=\"col\">\r\n            <h5 class=\"modal-title\">Detalles Existencia</h5>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-center\">\r\n            <div class=\"form-check form-switch\">\r\n              <label class=\"form-check-label\" for=\"flexSwitchCheckDefault\"\r\n                >Editar</label\r\n              >\r\n              <input\r\n                class=\"form-check-input custom-switch\"\r\n                type=\"checkbox\"\r\n                id=\"flexSwitchCheckDefault\"\r\n                (change)=\"toggleEditMode()\"\r\n              />\r\n            </div>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-end\">\r\n            <button\r\n              type=\"button\"\r\n              class=\"btn-close\"\r\n              aria-label=\"Close\"\r\n              (click)=\"closeModal()\"\r\n            ></button>\r\n          </div>\r\n        </div>\r\n      </div>\r\n      <form #aux=\"ngForm\" [formGroup]=\"productForm\" (ngSubmit)=\"onSubmit()\">\r\n        <div class=\"modal-body\">\r\n          <div class=\"row\">\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"name\">Nombre</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"name\"\r\n                      name=\"name\"\r\n                      formControlName=\"name\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (productForm.get('name')?.invalid &&\r\n                          (productForm.get('name')?.dirty ||\r\n                            productForm.get('name')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"productForm.get('name')?.errors?.['required']\"\r\n                      >\r\n                        Nombre es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!productForm.get('name')?.errors?.['required'] && productForm.get('name')?.errors?.['pattern']\"\r\n                      >\r\n                        El nombre no debe contener números ni símbolos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"type\" class=\"mb-0\">Tipo</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <select\r\n                      id=\"type\"\r\n                      formControlName=\"type\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Type Selection\"\r\n                      placeholder=\"Seleccione un tipo\"\r\n                    >\r\n                      <option value=\"\" disabled selected>\r\n                        Selecciona un tipo\r\n                      </option>\r\n                      <option\r\n                        *ngFor=\"let type of inventoryTypes\"\r\n                        [value]=\"type\"\r\n                      >\r\n                        {{ type }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <button\r\n                      type=\"button\"\r\n                      class=\"btn btn-custom\"\r\n                      [disabled]=\"!isToggled\"\r\n                      (click)=\"openAddTypeModal()\"\r\n                    >\r\n                      Agregar Tipo\r\n                    </button>\r\n                  </div>\r\n                </div>\r\n                <div class=\"error-container\">\r\n                  <div\r\n                    *ngIf=\"aux.submitted && productForm.get('type')?.invalid\"\r\n                    class=\"text-danger mt-1\"\r\n                  >\r\n                    <div *ngIf=\"productForm.get('type')?.errors?.['required']\">\r\n                      Tipo es requerido.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"quantity\">Cantidad</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"number\"\r\n                      class=\"form-control\"\r\n                      id=\"quantity\"\r\n                      name=\"quantity\"\r\n                      formControlName=\"quantity\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <label for=\"unit\">Unidad</label>\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <select\r\n                      id=\"unit\"\r\n                      formControlName=\"unit\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Unit Selection\"\r\n                    >\r\n                      <option value=\"\" disabled selected>...</option>\r\n                      <option *ngFor=\"let unit of units\" [value]=\"unit\">\r\n                        {{ unit }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                </div>\r\n                <div class=\"row error-container align-items-center\">\r\n                  <div\r\n                    class=\"col-8 text-danger\"\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (productForm.get('quantity')?.invalid &&\r\n                        (productForm.get('quantity')?.dirty ||\r\n                          productForm.get('quantity')?.touched))\r\n                    \"\r\n                  >\r\n                    <div\r\n                      *ngIf=\"productForm.get('quantity')?.errors?.['required']\"\r\n                    >\r\n                      Es necesario ingresar una cantidad.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"!productForm.get('quantity')?.errors?.['required'] && productForm.get('quantity')?.errors?.['invalidQuantity']\"\r\n                    >\r\n                      La cantidad debe ser un número válido mayor a 0.\r\n                    </div>\r\n                  </div>\r\n                  <div\r\n                    class=\"col text-danger\"\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (productForm.get('unit')?.invalid &&\r\n                        (productForm.get('unit')?.dirty ||\r\n                          productForm.get('unit')?.touched))\r\n                    \"\r\n                  >\r\n                    <div *ngIf=\"productForm.get('unit')?.errors?.['required']\">\r\n                      Ingrese una unidad.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"cost\">Precio Unitario</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <div class=\"input-group mb-3\">\r\n                      <span class=\"input-group-text\">$</span>\r\n                      <input\r\n                        type=\"text\"\r\n                        class=\"form-control\"\r\n                        id=\"cost\"\r\n                        name=\"cost\"\r\n                        formControlName=\"cost\"\r\n                        aria-label=\"Costo\"\r\n                      />\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (productForm.get('cost')?.invalid &&\r\n                          (productForm.get('cost')?.dirty ||\r\n                            productForm.get('cost')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"productForm.get('cost')?.errors?.['required']\"\r\n                      >\r\n                        Es necesario ingresar un Precio.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!productForm.get('cost')?.errors?.['required'] && productForm.get('cost')?.errors?.['invalidQuantity']\"\r\n                      >\r\n                        El Precio debe ser un número válido y mayor que cero.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"expirationDate\">Proveedor</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <select\r\n                      id=\"provider\"\r\n                      formControlName=\"provider\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Provider Selection\"\r\n                    >\r\n                      <option value=\"\" disabled selected>...</option>\r\n                      <option\r\n                        *ngFor=\"let provider of providers\"\r\n                        [value]=\"provider['id']\"\r\n                      >\r\n                        {{ provider[\"name\"] }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        (aux.submitted &&\r\n                          productForm.get('provider')?.invalid) ||\r\n                        (productForm.get('provider')?.invalid &&\r\n                          (productForm.get('provider')?.dirty ||\r\n                            productForm.get('provider')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Se necesita un Provedor.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"form-group\">\r\n              <label for=\"desscription\">Descripcion</label>\r\n              <textarea\r\n                type=\"text\"\r\n                class=\"form-control desc\"\r\n                id=\"descripcion\"\r\n                name=\"description\"\r\n                formControlName=\"description\"\r\n              >\r\n              </textarea>\r\n              <div class=\"error-container\">\r\n                <div\r\n                  *ngIf=\"\r\n                    productForm.get('description')?.invalid &&\r\n                    productForm.get('description')?.dirty &&\r\n                    productForm.get('description')?.value\r\n                  \"\r\n                  class=\"text-danger\"\r\n                >\r\n                  Descripcion no admite simbolos.\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"modal-footer justify-content-center\">\r\n          <button type=\"submit\" class=\"btn btn-custom\" [disabled]=\"!isToggled\">\r\n            GUARDAR\r\n          </button>\r\n          <button\r\n            type=\"button\"\r\n            class=\"btn btn-danger\"\r\n            (click)=\"confirmDelete()\"\r\n          >\r\n            BORRAR\r\n          </button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n<div\r\n  *ngIf=\"addTypeModal\"\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content\">\r\n      \r\n      <div class=\"modal-header\">\r\n        <h1 class=\"modal-title fs-5\" id=\"confirmDeleteModalLabel\">\r\n          Agregar Tipo\r\n        </h1>\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn-close\"\r\n          (click)=\"closeAddTypeModal()\"\r\n        ></button>\r\n      </div>\r\n      \r\n      <form #aux2=\"ngForm\" [formGroup]=\"addTypeForm\" (ngSubmit)=\"addType()\">\r\n        <div class=\"modal-body\">\r\n          <div class=\"form-group\">\r\n            <label for=\"newType\">Nuevo Tipo</label>\r\n            <input\r\n              type=\"text\"\r\n              class=\"form-control\"\r\n              id=\"newType\"\r\n              formControlName=\"newType\"\r\n              placeholder=\"Ingrese el nuevo tipo\"\r\n              [ngClass]=\"{\r\n                'is-invalid':\r\n                  (addTypeForm.get('newType')?.touched || aux2.submitted) &&\r\n                  addTypeForm.get('newType')?.invalid\r\n              }\"\r\n            />\r\n            <div\r\n              *ngIf=\"\r\n                (addTypeForm.get('newType')?.touched || aux2.submitted) &&\r\n                addTypeForm.get('newType')?.invalid\r\n              \"\r\n              class=\"text-danger mt-1\"\r\n            >\r\n              <div *ngIf=\"addTypeForm.get('newType')?.errors?.['required']\">\r\n                El tipo es requerido.\r\n              </div>\r\n              <div *ngIf=\"addTypeForm.get('newType')?.errors?.['pattern']\">\r\n                El tipo no debe contener números ni símbolos.\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        \r\n        <div class=\"modal-footer\">\r\n          <button\r\n            type=\"button\"\r\n            class=\"btn btn-secondary\"\r\n            (click)=\"closeAddTypeModal()\"\r\n          >\r\n            CANCELAR\r\n          </button>\r\n          <button type=\"submit\" class=\"btn btn-success\">\r\n            GUARDAR\r\n          </button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n<app-delete-modal\r\n  *ngIf=\"confirmDeleteModal\"\r\n  [headerMessage]=\"'Eliminar Proveedor'\"\r\n  [bodyMessage]=\"'¿Estás seguro que deseas borrar este Proveedor?'\"\r\n  (cancel)=\"closeDeleteModal()\"\r\n  (confirm)=\"deleteProduct()\"\r\n>\r\n</app-delete-modal>\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { NavbarComponent } from '../../shared/components/navbar/navbar.component';\r\nimport { TableComponent } from '../../shared/components/table/table.component';\r\nimport { SearchBarComponent } from '../../shared/components/search-bar/search-bar.component';\r\nimport { TableData } from '../../core/interfaces/table-data';\r\nimport { CommonModule } from '@angular/common';\r\nimport { InventoryService } from '../../core/services/enums/inventory.service';\r\nimport { filterTableData } from '../../core/utils/table-data.utils';\r\nimport { DecisionModalComponent } from './decision-modal/decision-modal.component';\r\nimport { AddInputComponent } from './add-input/add-input.component';\r\nimport { AddRawMaterialComponent } from './add-raw-material/add-raw-material.component';\r\nimport { RawMaterialComponent } from './raw-material/raw-material.component';\r\nimport { InputsComponent } from './inputs/inputs.component';\r\n@Component({\r\n  selector: 'app-inventory',\r\n  standalone: true,\r\n  imports: [\r\n    NavbarComponent,\r\n    TableComponent,\r\n    SearchBarComponent,\r\n    CommonModule,\r\n    DecisionModalComponent,\r\n    AddInputComponent,\r\n    AddRawMaterialComponent,\r\n    RawMaterialComponent,\r\n    InputsComponent,\r\n  ],\r\n  templateUrl: './inventory.component.html',\r\n  styleUrl: './inventory.component.scss',\r\n})\r\nexport class InventoryComponent implements OnInit {\r\n  inputs: TableData[] = [];\r\n  backUpInputs: TableData[] = [];\r\n  editRawMaterialsModal: boolean = false;\r\n  editInputsModal: boolean = false;\r\n  inputsModal: boolean = false;\r\n  rawMaterialsModal: boolean = false;\r\n  decisionModal: boolean = false;\r\n  isLoading: boolean = false;\r\n  selectedProduct: any;\r\n\r\n  excludeColumns: string[] = [\r\n    'provider',\r\n    'description',\r\n    'batches',\r\n    'descripction',\r\n    'admissionDate',\r\n    'lastModificationDate',\r\n    'expirationDate',\r\n    'freeze',\r\n  ];\r\n\r\n  constructor(private inventoryService: InventoryService) {}\r\n\r\n  ngOnInit(): void {\r\n    this.getInventory();\r\n  }\r\n\r\n  openDecisionModal() {\r\n    this.decisionModal = true;\r\n  }\r\n\r\n  closeDecisionModal(aux: string) {\r\n    if (aux === 'addInput') {\r\n      this.openAddInputModal();\r\n    } else if (aux === 'addRawMaterial') {\r\n      this.openAddRawMaterialModal();\r\n    }\r\n    this.decisionModal = false;\r\n  }\r\n\r\n  openAddInputModal() {\r\n    this.inputsModal = true;\r\n  }\r\n\r\n  closeAddInputModal() {\r\n    this.getInventory();\r\n    this.inputsModal = false;\r\n  }\r\n  openAddRawMaterialModal() {\r\n    this.rawMaterialsModal = true;\r\n  }\r\n\r\n  closeAddRawMaterialModal() {\r\n    this.getInventory();\r\n    this.rawMaterialsModal = false;\r\n  }\r\n\r\n  onRowClicked(prov: TableData) {\r\n    this.selectedProduct = prov;\r\n    if(this.selectedProduct['freeze'] !== undefined) {\r\n      this.editRawMaterialsModal = true;\r\n    } else {\r\n      this.editInputsModal = true;\r\n    }\r\n  }\r\n\r\n  closeProductModal() {\r\n    this.getInventory();\r\n    this.editRawMaterialsModal = false;\r\n    this.editInputsModal = false;\r\n\r\n  }\r\n\r\n  handleSearch(value: string) {\r\n    this.inputs = this.backUpInputs;\r\n    this.inputs = filterTableData(this.inputs, this.excludeColumns, value);\r\n  }\r\n\r\n  private getInventory() {\r\n    this.inventoryService.getInventory().subscribe((res) => {\r\n      this.inputs = res;\r\n      this.backUpInputs = res;\r\n      this.isLoading = true;\r\n    });\r\n  }\r\n}\r\n","<app-navbar></app-navbar>\r\n<div class=\"container-fluid d-flex flex-column justify-content-center align-items-center vh-100\">\r\n    \r\n    <div class=\"col-flex justify-content-center align-items-center\">\r\n        <div class=\"row header-row\">\r\n            <div class=\"col\">\r\n                <h1 class=\"view-title\">Existencias</h1>\r\n            </div>\r\n            <div class=\"col\">\r\n               <app-search-bar (search)=\"handleSearch($event)\"></app-search-bar>\r\n            </div>\r\n            <div class=\"col d-flex justify-content-center\">\r\n                <button class=\"btn btn-custom\" (click)=\"openDecisionModal()\">AGREGAR EXISTENCIA</button>\r\n            </div>\r\n        </div>\r\n\r\n        <app-table [isTableReady]=\"isLoading\" [data]=\"inputs\" [columnsExcluded]=\"excludeColumns\" (rowClicked)=\"onRowClicked($event)\"></app-table>\r\n\r\n    </div>\r\n</div>\r\n\r\n\r\n\r\n<app-decision-modal *ngIf=\"decisionModal\" (close)=\"closeDecisionModal($event)\"></app-decision-modal>\r\n<app-add-input *ngIf=\"inputsModal\" (close)=\"closeAddInputModal()\"></app-add-input>\r\n<app-add-raw-material *ngIf=\"rawMaterialsModal\" (close)=\"closeAddRawMaterialModal()\"></app-add-raw-material>\r\n\r\n<app-raw-material *ngIf=\"editRawMaterialsModal\" [productInput]=\"selectedProduct\" (close)=\"closeProductModal()\"></app-raw-material>\r\n<app-inputs *ngIf=\"editInputsModal\" [productInput]=\"selectedProduct\" (close)=\"closeProductModal()\"></app-inputs>","import { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpErrorResponse } from '@angular/common/http';\r\nimport { Observable, catchError, throwError} from 'rxjs';\r\nimport { handleError } from '../../utils/api-error-handler.utils';\r\nimport { environment } from '../../../../evironments/environment';\r\n@Injectable({\r\n  providedIn: 'root'\r\n})\r\nexport class BatchesService {\r\n\r\n  private apiUrl = environment.apiUrl + '/api/batches';\r\n\r\n  constructor(private http: HttpClient) {}\r\n\r\n  getBatches(): Observable<any> {\r\n    return this.http.get<any>(this.apiUrl).pipe(catchError(handleError));\r\n  }\r\n\r\n  getBatchById(id: any): Observable<any> {\r\n    return this.http.get<any>(`${this.apiUrl}/getBy/${id}`).pipe(catchError(handleError));\r\n  }\r\n  createBatch(batch: any): Observable<any> {\r\n    return this.http.post<any>(this.apiUrl, batch).pipe(catchError(handleError));\r\n  }\r\n\r\n  updateBatch(batch: any): Observable<any> {\r\n    return this.http.put<any>(this.apiUrl, batch).pipe(catchError(handleError));\r\n  }\r\n\r\n  deleteBatch(id: any): Observable<any> {\r\n    return this.http.delete<any>(`${this.apiUrl}/${id}`).pipe(catchError(handleError));\r\n  }\r\n\r\n  getCategories(): Observable<string[]> {\r\n    return this.http.get<string[]>(`${this.apiUrl}/getCategories`).pipe(catchError(handleError));\r\n  }\r\n}\r\n","import { Component, EventEmitter, Output, Input, SimpleChanges, OnInit } from '@angular/core';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { CommonModule } from '@angular/common';\r\nimport { Units } from '../../../shared/enums/units.enum';\r\nimport { BatchesService } from '../../../core/services/api/batches.service';\r\nimport { Router } from '@angular/router';\r\nimport { DeleteModalComponent } from '../../../shared/components/delete-modal/delete-modal.component';\r\n\r\n@Component({\r\n  selector: 'app-view-batch',\r\n  standalone: true,\r\n  imports: [CommonModule, DeleteModalComponent],\r\n  templateUrl: './view-batch.component.html',\r\n  styleUrl: './view-batch.component.scss'\r\n})\r\nexport class ViewBatchComponent implements OnInit {\r\n  @Input() batch: TableData = {};\r\n  @Output() close = new EventEmitter<void>();\r\n\r\n  confirmDeleteModal=false;\r\n  batchIngredientsData: TableData[] = [];\r\n  batchInputsData: TableData[] = [];\r\n  constructor(private batchesService: BatchesService, private router: Router) {}\r\n\r\n  ngOnInit(): void {\r\n    this.getBatchIngredientsData();\r\n    this.getBatchInputsData();\r\n  }\r\n  closeModal(): void {\r\n    this.close.emit();\r\n  }\r\n\r\n  closeDeleteModal() {\r\n    this.confirmDeleteModal = false;\r\n  }\r\n\r\n  openDeleteModal() {\r\n    this.confirmDeleteModal = true;\r\n  }\r\n\r\n  deleteProduct(){\r\n    this.batchesService.deleteBatch(this.batch['id']).subscribe(() => {\r\n      this.closeModal();\r\n    });\r\n  }\r\n\r\n  goTo() {\r\n    this.router.navigate([`/production/${this.batch['id']}/modify`]);\r\n  }\r\n  \r\n  private getBatchIngredientsData(): void {\r\n    if (Array.isArray(this.batch['batchIngredients'])) {\r\n      // Dividir la cadena de batchIngredientsQuantity en un array de cantidades\r\n      /*const quantities = this.batch['batchIngredientsQuantity']\r\n        ? this.batch['batchIngredientsQuantity'].split(';')\r\n        : [];\r\n      */\r\n        const quantities = this.batch['batchIngredientsQuantity']\r\n        ? this.batch['batchIngredientsQuantity'].split(';').reduce((acc: { [key: string]: number }, pair: string) => {\r\n            const [id, quantity] = pair.split(','); // Separa el id del quantity\r\n            acc[id] = Number(quantity); // Asigna el quantity al id como clave\r\n            return acc;\r\n        }, {})\r\n        : {};\r\n    \r\n      // Mapear los ingredientes, asignando la cantidad correspondiente\r\n      this.batchIngredientsData = this.batch['batchIngredients'].map((ingredient: TableData) => {\r\n        const ingredientId = ingredient['id'];\r\n        return {\r\n          name: ingredient['name'],\r\n          // Asignar la cantidad correspondiente si existe, o usar la cantidad original del ingrediente\r\n          quantity: quantities[ingredientId] !== undefined ? quantities[ingredientId] : ingredient['quantity'],\r\n          unit: ingredient['unit'],\r\n          provider: ingredient['provider']?.name || 'N/A',\r\n        };\r\n      });\r\n    } else {\r\n      console.warn('No se encontraron ingredientes en los datos del lote.');\r\n    }\r\n  }\r\n\r\n\r\n  private getBatchInputsData(): void {\r\n    if (Array.isArray(this.batch['batchPackagingElements'])) {\r\n      // Dividir la cadena de batchPackagingElementsQuantity en un array de cantidades\r\n      /*const quantities = this.batch['batchPackagingElementsQuantity']\r\n        ? this.batch['batchPackagingElementsQuantity'].split(',')\r\n        : [];\r\n      */\r\n      const quantities = this.batch['batchPackagingElementsQuantity']\r\n        ? this.batch['batchPackagingElementsQuantity'].split(';').reduce((acc: { [key: string]: number }, pair: string) => {\r\n            const [id, quantity] = pair.split(','); // Separa el id del quantity\r\n            acc[id] = Number(quantity); // Asigna el quantity al id como clave\r\n            return acc;\r\n        }, {})\r\n        : {};\r\n      // Mapear los inputs, asignando la cantidad correspondiente\r\n      this.batchInputsData = this.batch['batchPackagingElements'].map((input: TableData, index: number) => {\r\n        return {\r\n          codInput: input['id'],\r\n          name: input['name'],\r\n          // Asignar la cantidad correspondiente si existe, o usar la cantidad original del input\r\n          quantity: quantities[index] || input['quantity'],\r\n          unit: input['unit'],\r\n          provider: input['provider']?.name || 'N/A',\r\n        };\r\n      });\r\n    } else {\r\n      console.warn('No se encontraron insumos en los datos del lote.');\r\n    }\r\n  }\r\n\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content modal-content-custom\">\r\n      <div\r\n        class=\"modal-header d-flex justify-content-center align-items-center\"\r\n      >\r\n        <div class=\"row w-100\">\r\n          <div class=\"col\">\r\n            <h5 class=\"modal-title\">Detalles Lote</h5>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-center\">\r\n            <button type=\"button\" class=\"btn btn-success me-2\" aria-label=\"edit\" (click)=\"goTo()\">Editar</button>\r\n            <button type=\"button\" class=\"btn btn-danger\" aria-label=\"delete\" (click)=\"openDeleteModal()\">Eliminar</button>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-end\">\r\n            <button\r\n              type=\"button\"\r\n              class=\"btn-close\"\r\n              aria-label=\"Close\"\r\n              (click)=\"closeModal()\"\r\n            ></button>\r\n          </div>\r\n        </div>\r\n      </div>\r\n      <div class=\"modal-body\">\r\n        <div class=\"row\">\r\n          <div class=\"col\">\r\n            <div class=\"row justify-content-between align-items-center mb-2\">\r\n              <label class=\"me-2\">Producto:</label>\r\n              <a>{{ batch[\"name\"] }}</a>\r\n            </div>\r\n            <div class=\"row align-items-center\">\r\n              <label>Categoria:</label>\r\n              <a>{{ batch[\"category\"] }}</a>\r\n            </div>\r\n            <div class=\"row align-items-center\">\r\n              <label>Cantidad:</label>\r\n              <a>{{ batch[\"quantity\"] }} {{ batch[\"unit\"] }}</a>\r\n            </div>\r\n            <div class=\"row align-items-center\">\r\n              <label>Vencimiento:</label>\r\n              <a>{{ batch[\"expiration\"] }}</a>\r\n            </div>\r\n            <div class=\"row align-items-center\">\r\n              <label>Fecha de Elebarocaion:</label>\r\n              <a>{{ batch[\"creationDate\"] }}</a>\r\n            </div>\r\n          </div>\r\n          <div class=\"col\">\r\n            <div class=\"row align-items-center\">\r\n              <label>Ingredientes:</label>\r\n              <div class=\"ingredients-container\">\r\n                <ul>\r\n                  <li *ngFor=\"let ingredient of batchIngredientsData\">\r\n                    {{ ingredient[\"name\"] }} - {{ ingredient[\"quantity\"] }} {{ ingredient[\"unit\"] }} - {{ ingredient[\"provider\"] }}\r\n                  </li>\r\n                </ul>\r\n              </div>\r\n            </div>\r\n          </div>\r\n          <div class=\"col\">\r\n            <div class=\"row align-items-center\">\r\n              <label>Insumos:</label>\r\n              <div class=\"ingredients-container\">\r\n                <ul>\r\n                  <li *ngFor=\"let input of batchInputsData\">\r\n                    {{ input[\"codInput\"] }} - {{ input[\"name\"] }} - {{ input[\"quantity\"] }} {{ input[\"unit\"] }} - {{input[\"provider\"]}}\r\n                  </li>\r\n                </ul>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>  \r\n      </div>\r\n      <div class=\"modal-footer justify-content-center\"></div>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n\r\n\r\n<app-delete-modal\r\n  *ngIf=\"confirmDeleteModal\"\r\n  [headerMessage]=\"'Eliminar Lote'\"\r\n  [bodyMessage]=\"'¿Estás seguro que deseas borrar este Lote?'\"\r\n  (cancel)=\"closeDeleteModal()\"\r\n  (confirm)=\"deleteProduct()\"\r\n>\r\n</app-delete-modal>\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpErrorResponse } from '@angular/common/http';\r\nimport { Observable, catchError, throwError} from 'rxjs';\r\nimport { handleError } from '../../utils/api-error-handler.utils';\r\nimport { environment } from '../../../../evironments/environment';\r\n@Injectable({\r\n  providedIn: 'root'\r\n})\r\nexport class SalesChannelsService {\r\n\r\n  private apiUrl = environment.apiUrl + '/api/SalesChannels';\r\n\r\n  constructor(private http: HttpClient) {}\r\n\r\n  getSalesChannels(): Observable<any> {\r\n    return this.http.get<any>(this.apiUrl).pipe(catchError(handleError));\r\n  }\r\n\r\n  getSaleChannelId(id: any): Observable<any> {\r\n    return this.http.get<any>(`${this.apiUrl}/${id}`).pipe(catchError(handleError));\r\n  }\r\n  createSaleChannel(sc: any): Observable<any> {\r\n    return this.http.post<any>(this.apiUrl, sc).pipe(catchError(handleError));\r\n  }\r\n\r\n  updateSaleChannel(sc: any): Observable<any> {\r\n    return this.http.put<any>(this.apiUrl, sc).pipe(catchError(handleError));\r\n  }\r\n\r\n  deleteSaleChannel(id: any): Observable<any> {\r\n    return this.http.delete<any>(`${this.apiUrl}/${id}`).pipe(catchError(handleError));\r\n  }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { Observable, catchError, map} from 'rxjs';\r\nimport { handleError } from '../../utils/api-error-handler.utils';\r\nimport { mapToTableData } from '../../utils/mapping.utils';\r\nimport { TableData } from '../../interfaces/table-data';\r\nimport { environment } from '../../../../evironments/environment';\r\n@Injectable({\r\n  providedIn: 'root'\r\n})\r\nexport class EventsService {\r\n\r\n  private apiUrl = environment.apiUrl + '/api/events';\r\n\r\n  constructor(private http: HttpClient) {}\r\n\r\n  getEvents(): Observable<TableData[]> {\r\n    return this.http.get<any[]>(this.apiUrl).pipe(map(data => mapToTableData(data)),catchError(handleError));\r\n  }\r\n\r\n  getEventById(id: any): Observable<TableData> {\r\n    return this.http.get<any>(`${this.apiUrl}/${id}`).pipe(map(data => mapToTableData(data)),catchError(handleError));\r\n  }\r\n\r\n  createEvent(event: any): Observable<any> {\r\n    return this.http.post<any>(this.apiUrl,event).pipe(catchError(handleError));\r\n  }\r\n}\r\n","import { Component, EventEmitter, Output, OnInit } from '@angular/core';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { DeleteModalComponent } from '../../../shared/components/delete-modal/delete-modal.component';\r\nimport { CommonModule } from '@angular/common';\r\nimport {\r\n  ReactiveFormsModule,\r\n  FormBuilder,\r\n  FormGroup,\r\n  Validators,\r\n  FormArray,\r\n  FormControl,\r\n} from '@angular/forms';\r\nimport { BatchesService } from '../../../core/services/api/batches.service';\r\nimport { SalesChannelsService } from '../../../core/services/api/saleschannels.service';\r\nimport { formatDate } from '../../../core/utils/mapping.utils';\r\nimport { AuthService } from '../../../core/services/auth/auth.service';\r\nimport { UsersService } from '../../../core/services/api/users.service';\r\nimport { priceValidator } from '../../../core/utils/validators';\r\nimport { EventsService } from '../../../core/services/api/events.service';\r\nimport { AbstractControl, ValidationErrors } from '@angular/forms';\r\n\r\n@Component({\r\n  selector: 'app-sell-batch',\r\n  standalone: true,\r\n  imports: [CommonModule, DeleteModalComponent, ReactiveFormsModule],\r\n  templateUrl: './sell-batch.component.html',\r\n  styleUrls: ['./sell-batch.component.scss'],\r\n})\r\nexport class SellBatchComponent implements OnInit {\r\n  @Output() close = new EventEmitter<void>();\r\n\r\n  confirmDeleteModal = false;\r\n  sellForm: FormGroup;\r\n  avaibleBatches: TableData[] = [];\r\n  customers: TableData[] = [];\r\n  maxQuantities: number[] = [];\r\n  totalCost = 0;\r\n  userId: any;\r\n\r\n  constructor(\r\n    private batchesService: BatchesService,\r\n    private fb: FormBuilder,\r\n    private salesChannelsService: SalesChannelsService,\r\n    private authService: AuthService,\r\n    private userService: UsersService,\r\n    private eventService: EventsService\r\n  ) {\r\n    this.sellForm = this.fb.group({\r\n      customer: ['', Validators.required],\r\n      items: this.fb.array([], { validators: uniqueBatchesValidator }),\r\n      price: [0, [Validators.required, priceValidator(this.totalCost)]],\r\n    });\r\n  }\r\n\r\n  ngOnInit(): void {\r\n    this.getClients();\r\n    this.getAvaibleBatches();\r\n    this.initializeRows(); // Initialize with one row and set max to five\r\n    this.userId = this.authService.getUserId();\r\n  }\r\n\r\n  closeModal(): void {\r\n    this.close.emit();\r\n  }\r\n\r\n  closeDeleteModal() {\r\n    this.confirmDeleteModal = false;\r\n  }\r\n\r\n  onSubmit(): void {\r\n    console.log(this.sellForm);\r\n    if (this.sellForm.valid) {\r\n      const formErrors = this.sellForm.get('items')?.errors;\r\n      if (formErrors?.['duplicateBatches']) {\r\n        console.error('No puedes seleccionar el mismo lote más de una vez.');\r\n        return; // Detiene el proceso de envío\r\n      }\r\n      const batchesId = this.items.controls.map((control) => {\r\n        return control.get('batchId')?.value;\r\n      });\r\n      const batchesQuantities = this.items.controls\r\n        .map((control) => control.get('quantity')?.value.toString())\r\n        .join(',');\r\n      const batches = this.avaibleBatches.filter((b) =>\r\n        batchesId.includes(b['id'])\r\n      );\r\n      const prices = batches.map((b) => b['price']);\r\n      const pricesString = prices.join(',');\r\n      const selectedBatches = batchesId.map((batchId) => {\r\n        return { id: batchId };\r\n      });\r\n      //console.log('Batches:', selectedBatches);\r\n      const descriptionParts = batches.map((batch, index) => {\r\n        const quantity = batchesQuantities[index];\r\n        return `${quantity} unit - ${batch['name']} (${batch['id']})`;\r\n      });\r\n\r\n      console.log('BatchesQuantities:', batchesQuantities);\r\n\r\n      const fullDescription = descriptionParts.join(', ');\r\n      const sellData = {\r\n        type: 'sales',\r\n        title: 'Venta',\r\n        description: fullDescription,\r\n        cost: this.sellForm.get('price')?.value,\r\n        saleChannel: { id: this.sellForm.get('customer')?.value },\r\n        user: { id: this.userId },\r\n        soldBatches: selectedBatches,\r\n        unitsPrice: pricesString,\r\n        quantities: batchesQuantities,\r\n      };\r\n      console.log('Sell data:', sellData);\r\n      console.log('JSON:', JSON.stringify(sellData));\r\n      console.log('Selcted Batches:', selectedBatches);\r\n      console.log('Batches Avaible:', this.avaibleBatches);\r\n      const bq = batchesQuantities.split(',');\r\n      console.log('Batches Quantities:', bq);\r\n      this.eventService.createEvent(sellData).subscribe((res) => {\r\n        const batchesToUpdate = this.avaibleBatches\r\n          .map((batch) => {\r\n            const selected = selectedBatches.find((b) => b.id === batch['id']);\r\n            console.log('Selected:', selected);\r\n            if (selected) {\r\n              console.log('selectedBatches.indexOf(selected)',selectedBatches.indexOf(selected),\r\n              'batchesQuantities[selectedBatches.indexOf(selected)]',batchesQuantities[selectedBatches.indexOf(selected)]);\r\n              batch['quantity'] -= parseInt(\r\n                bq[selectedBatches.indexOf(selected)],\r\n                10\r\n              );\r\n              delete batch['selected'];\r\n              console.log('Batch updated:', batch);\r\n              return this.batchesService.updateBatch(batch).toPromise();\r\n            }\r\n            return null;\r\n          })\r\n          .filter(Boolean);\r\n        Promise.all(batchesToUpdate).then(() => {\r\n          console.log('Batches updated');\r\n        });\r\n        this.closeModal();\r\n      });\r\n    }\r\n  }\r\n\r\n  addRow(): void {\r\n    this.items.push(\r\n      this.fb.group({\r\n        quantity: [0, Validators.required],\r\n        batchId: [null], // Almacena el ID del lote seleccionado\r\n      })\r\n    );\r\n    this.maxQuantities.push(0); // Initialize with default max quantity\r\n    //this.updateCost();\r\n  }\r\n\r\n  removeRow(index: number): void {\r\n    const removedBatchId = this.items.at(index).get('batchId')?.value;\r\n\r\n    // Desmarcar el lote seleccionado\r\n    if (removedBatchId) {\r\n      const removedBatch = this.avaibleBatches.find(\r\n        (b) => b['id'] === removedBatchId\r\n      );\r\n      if (removedBatch) {\r\n        removedBatch['selected'] = false;\r\n      }\r\n    }\r\n\r\n    this.items.removeAt(index);\r\n    this.maxQuantities.splice(index, 1);\r\n  }\r\n\r\n  onBatchChange(event: Event, index: number): void {\r\n    const target = event.target as HTMLSelectElement;\r\n    const batchId = parseInt(target.value, 10);\r\n\r\n    const batch = this.avaibleBatches.find((b) => b['id'] === batchId);\r\n    if (batch) {\r\n      this.maxQuantities[index] = batch['quantity'];\r\n      this.items.at(index).patchValue({ batchId });\r\n\r\n      // Marcar el lote seleccionado\r\n      batch['selected'] = true;\r\n\r\n      // Limpiar la selección del lote anterior si existía\r\n      const previousBatchId = this.items.at(index).get('batchId')?.value;\r\n      if (previousBatchId) {\r\n        const previousBatch = this.avaibleBatches.find(\r\n          (b) => b['id'] === previousBatchId\r\n        );\r\n        if (previousBatch) {\r\n          previousBatch['selected'] = false;\r\n        }\r\n      }\r\n\r\n      const quantityControl = this.items.at(index).get('quantity');\r\n      quantityControl?.setValidators([\r\n        Validators.required,\r\n        Validators.min(1),\r\n        Validators.max(this.maxQuantities[index]),\r\n      ]);\r\n      quantityControl?.updateValueAndValidity();\r\n    }\r\n  }\r\n\r\n  private getAvaibleBatches(): void {\r\n    this.batchesService.getBatches().subscribe((batches: TableData[]) => {\r\n      this.avaibleBatches = batches.sort((a, b) =>\r\n        a['name'].localeCompare(b['name'])\r\n      );\r\n    });\r\n  }\r\n\r\n  private getClients(): void {\r\n    this.salesChannelsService\r\n      .getSalesChannels()\r\n      .subscribe((clients: TableData[]) => {\r\n        this.customers = clients.sort((a, b) =>\r\n          a['name'].localeCompare(b['name'])\r\n        );\r\n      });\r\n  }\r\n\r\n  private initializeRows(): void {\r\n    this.items.clear();\r\n    this.maxQuantities = [];\r\n    this.items.push(\r\n      this.fb.group({\r\n        quantity: [0, Validators.required],\r\n        batchId: [null, Validators.required],\r\n      })\r\n    );\r\n    this.maxQuantities.push(0);\r\n  }\r\n\r\n  get items(): FormArray {\r\n    return this.sellForm.get('items') as FormArray;\r\n  }\r\n\r\n  get itemControls(): FormControl[] {\r\n    return this.items.controls as FormControl[];\r\n  }\r\n\r\n  // Método para obtener el control con verificación de tipo\r\n  getBatchIdControl(index: number): FormControl {\r\n    const control = this.items.at(index).get('batchId') as FormControl;\r\n    if (!control) {\r\n      console.error('Error!');\r\n      throw new Error(`Control 'batchId' not found at index ${index}`);\r\n    }\r\n    return control;\r\n  }\r\n\r\n  getQuantityControl(index: number): FormControl {\r\n    const control = this.items.at(index).get('quantity') as FormControl;\r\n    if (!control) {\r\n      console.error('Error!');\r\n      throw new Error(`Control 'batchId' not found at index ${index}`);\r\n    }\r\n    return control;\r\n  }\r\n\r\n  calculateCost(): void {\r\n    this.totalCost = 0; // Reinicia el costo total\r\n    this.items.controls.forEach((control) => {\r\n      const batchId = control.get('batchId')?.value;\r\n      const quantity = control.get('quantity')?.value;\r\n\r\n      if (batchId !== null && quantity !== null) {\r\n        const batch = this.avaibleBatches.find((b) => b['id'] === batchId);\r\n        if (batch) {\r\n          const batchPrice = batch['price'] || 2;\r\n          const batchQuantity = batch['quantity'] || 1;\r\n          const result = Math.round(batchPrice / batchQuantity);\r\n          this.totalCost += quantity *result;\r\n        }\r\n      }\r\n    });\r\n    this.updatePriceValidator();\r\n  }\r\n\r\n  updatePriceValidator(): void {\r\n    const priceControl = this.sellForm.get('price');\r\n    if (priceControl) {\r\n      // Actualiza los validadores del control con el nuevo valor de totalCost\r\n      priceControl.setValidators([\r\n        Validators.required,\r\n        Validators.min(this.totalCost),\r\n      ]);\r\n\r\n      // Recalcula la validez del control para aplicar los nuevos validadores\r\n      priceControl.updateValueAndValidity();\r\n    }\r\n  }\r\n\r\n  getDate(date: any): string {\r\n    return formatDate(date);\r\n  }\r\n}\r\ninterface BatchItem {\r\n  batchId: number; // o el tipo correcto si no es number\r\n}\r\n\r\nfunction uniqueBatchesValidator(\r\n  control: AbstractControl\r\n): ValidationErrors | null {\r\n  const items = control.value as BatchItem[]; // Define el tipo de 'items'\r\n  const batchIds = items.map((item: BatchItem) => item.batchId); // Especifica el tipo de 'item'\r\n  const hasDuplicates = new Set(batchIds).size !== batchIds.length;\r\n\r\n  return hasDuplicates ? { duplicateBatches: true } : null;\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content modal-content-custom\">\r\n      <div\r\n        class=\"modal-header d-flex justify-content-center align-items-center\"\r\n      >\r\n        <div class=\"row w-100\">\r\n          <div class=\"col\">\r\n            <h5 class=\"modal-title\">Vender Lote</h5>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-end\">\r\n            <button\r\n              type=\"button\"\r\n              class=\"btn-close\"\r\n              aria-label=\"Close\"\r\n              (click)=\"closeModal()\"\r\n            ></button>\r\n          </div>\r\n        </div>\r\n      </div>\r\n      <form\r\n        #aux=\"ngForm\"\r\n        [formGroup]=\"sellForm\"\r\n        class=\"w-100\"\r\n      >\r\n        <div class=\"modal-body\">\r\n          <div class=\"col\">\r\n            <div class=\"row mb-3\">\r\n              <div class=\"form-group d-flex align-items-center\">\r\n                <label>Comprador</label>\r\n                <select\r\n                  id=\"customer\"\r\n                  class=\"form-control ms-2\"\r\n                  formControlName=\"customer\"\r\n                  [ngClass]=\"{\r\n                    'is-invalid':\r\n                      (sellForm.get('customer')?.touched || aux.submitted) &&\r\n                      sellForm.get('customer')?.invalid\r\n                  }\"\r\n                >\r\n                  <option\r\n                    *ngFor=\"let customer of customers\"\r\n                    [value]=\"customer['id']\"\r\n                  >\r\n                    {{ customer[\"name\"] }}\r\n                  </option>\r\n                </select>\r\n              </div>\r\n              <div class=\"error-container\">\r\n                <div\r\n                  class=\"text-danger\"\r\n                  *ngIf=\"\r\n                    (sellForm.get('customer')?.touched || aux.submitted) &&\r\n                    sellForm.get('customer')?.invalid\r\n                  \"\r\n                >\r\n                  Seleccione un comprador\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"row\">\r\n              <div class=\"col d-flex\">\r\n                <div class=\"form-group w-100\">\r\n                  <div class=\"row align-items-center\">\r\n                    <div class=\"col\">\r\n                      <label>Lotes Disponibles</label>\r\n                    </div>\r\n                    <div class=\"col d-flex justify-content-end\">\r\n                      <button\r\n                        type=\"button\"\r\n                        class=\"btn btn-icon text-success\"\r\n                        (click)=\"addRow()\"\r\n                      >\r\n                        <i class=\"bi bi-plus-square-fill\"></i>\r\n                      </button>\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"row d-flex\">\r\n                    <div class=\"table-container\">\r\n                      <table class=\"table\">\r\n                        <thead>\r\n                          <tr>\r\n                            <th class=\"col-8\">Producto</th>\r\n                            <th class=\"col-3\">Cantidad</th>\r\n                            <th></th>\r\n                          </tr>\r\n                        </thead>\r\n                        <tbody class=\"tbody-container\">\r\n                          <tr\r\n                            *ngFor=\"let item of items.controls; let i = index\"\r\n                          >\r\n                            <td>\r\n                              <select\r\n                                class=\"form-control\"\r\n                                placeholder=\"Produccion\"\r\n                                (change)=\"onBatchChange($event, i)\"\r\n                                [formControl]=\"getBatchIdControl(i)\"\r\n                                [ngClass]=\"{\r\n                                  'is-invalid':\r\n                                    itemControls[i].invalid &&\r\n                                    (itemControls[i].touched || aux.submitted)\r\n                                }\"\r\n                              >\r\n                                <option\r\n                                  *ngFor=\"let batch of avaibleBatches\"\r\n                                  [value]=\"batch['id']\"\r\n                                  [disabled]=\"batch['selected']\"\r\n                                >\r\n                                  {{ batch[\"name\"] }} {{ batch[\"quantity\"] }}\r\n                                  {{ batch[\"unit\"] }} - VTO: {{ getDate(batch[\"expiration\"]) }}\r\n                                </option>\r\n                              </select>\r\n                            </td>\r\n                            <td>\r\n                              <input\r\n                                type=\"number\"\r\n                                class=\"form-control\"\r\n                                [formControl]=\"getQuantityControl(i)\"\r\n                                [max]=\"maxQuantities[i]\"\r\n                                [min]=\"1\"\r\n                                placeholder=\"Cantidad\"\r\n                                (change)=\"calculateCost()\"\r\n                                [ngClass]=\"{\r\n                                  'is-invalid':\r\n                                    itemControls[i].invalid &&\r\n                                    (itemControls[i].touched || aux.submitted)\r\n                                }\"\r\n                              />\r\n                              <div\r\n                                *ngIf=\"\r\n                                  itemControls[i].invalid &&\r\n                                  (itemControls[i].touched || aux.submitted)\r\n                                \"\r\n                                class=\"text-danger\"\r\n                              >\r\n                                <div *ngIf=\"itemControls[i].errors?.['min']\">\r\n                                  La cantidad mínima es 1.\r\n                                </div>\r\n                                <div *ngIf=\"itemControls[i].errors?.['max']\">\r\n                                  La cantidad máxima es {{ maxQuantities[i] }}.\r\n                                </div>\r\n                              </div>\r\n                              <div *ngIf=\"sellForm.get('items')?.errors?.['duplicateBatches']\" class=\"text-danger\">\r\n                                No puedes seleccionar el mismo lote más de una vez.\r\n                              </div>                              \r\n                            </td>\r\n                            <td style=\"text-align: center\">\r\n                              <div *ngIf=\"i > 0\">\r\n                                <button\r\n                                  class=\"btn btn-danger\"\r\n                                  (click)=\"removeRow(i)\"\r\n                                >\r\n                                  <i class=\"bi bi-trash\"></i>\r\n                                </button>\r\n                              </div>\r\n                            </td>\r\n                          </tr>\r\n                        </tbody>\r\n                      </table>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"row\">\r\n              <div class=\"col d-flex justify-content-center align-items-center\">\r\n                <label class=\"me-3\">Precio</label>\r\n                <div class=\"form-group\">\r\n                  <input\r\n                    type=\"number\"\r\n                    class=\"form-control\"\r\n                    formControlName=\"price\"\r\n                    placeholder=\"Precio\"\r\n                    [ngClass]=\"{\r\n                      'is-invalid':\r\n                        (sellForm.get('price')?.touched || aux.submitted) &&\r\n                        sellForm.get('price')?.invalid\r\n                    }\"\r\n                  />\r\n                </div>\r\n                <label class=\"ms-3 cost\">Costo: {{ totalCost }}</label>\r\n              </div>\r\n              <div class=\"col-12\">\r\n                <div class=\"error-container mt-2 text-center\">\r\n                  <div\r\n                    *ngIf=\"\r\n                      (sellForm.get('price')?.touched || aux.submitted) &&\r\n                      sellForm.get('price')?.invalid\r\n                    \"\r\n                    class=\"text-danger\"\r\n                  >\r\n                    El precio es requerido.\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            \r\n          </div>\r\n        </div>\r\n        <div class=\"modal-footer justify-content-center\">\r\n          <button\r\n            type=\"button\"\r\n            class=\"btn btn-secondary\"\r\n            (click)=\"closeModal()\"\r\n          >\r\n            Cancelar\r\n          </button>\r\n          <button type=\"submit\" class=\"btn btn-custom\" (click)=\"onSubmit()\">\r\n            Vender\r\n          </button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { NavbarComponent } from '../../shared/components/navbar/navbar.component';\r\nimport { TableComponent } from '../../shared/components/table/table.component';\r\nimport { SearchBarComponent } from '../../shared/components/search-bar/search-bar.component';\r\nimport { TableData } from '../../core/interfaces/table-data';\r\nimport { Router } from '@angular/router';\r\nimport { BatchesService } from '../../core/services/api/batches.service';\r\nimport { ViewBatchComponent } from './view-batch/view-batch.component';\r\nimport { CommonModule } from '@angular/common';\r\nimport { SellBatchComponent } from './sell-batch/sell-batch.component';\r\nimport { filterTableData } from '../../core/utils/table-data.utils';\r\n@Component({\r\n  selector: 'app-production',\r\n  standalone: true,\r\n  imports: [NavbarComponent, TableComponent, SearchBarComponent, \r\n    ViewBatchComponent, CommonModule, SellBatchComponent],\r\n  templateUrl: './production.component.html',\r\n  styleUrl: './production.component.scss'\r\n})\r\nexport class ProductionComponent implements OnInit{\r\n  batches: TableData[] = [];\r\n  backUpBatches: TableData[] = [];\r\n  excludedColumns: string[] = ['batchPackagingElementsQuantity','batchPackagingElements','batchIngredientsQuantity','batchIngredients','description','creationDate','lastModificationDate'];\r\n  selectedBatch: TableData = {};\r\n  openBatchModal: boolean = false;\r\n  openSellModal: boolean = false;\r\n\r\n  constructor(private route: Router, private batchesServices: BatchesService) {}\r\n\r\n  ngOnInit(): void {\r\n    this.getBatches();\r\n  }\r\n\r\n  goTo(){\r\n    this.route.navigate(['/production/add']);\r\n  }\r\n\r\n  onRowClicked(prov: TableData) {\r\n    this.selectedBatch = prov;\r\n    this.openBatchModal = true;\r\n  }\r\n\r\n  closeModal(): void {\r\n    this.getBatches();\r\n    this.openBatchModal = false;\r\n  }\r\n\r\n\r\n  openSellBatch(){\r\n    this.openSellModal = true;\r\n  }\r\n  \r\n  closeSellModal(){\r\n    this.getBatches();\r\n    this.openSellModal = false;\r\n  }\r\n\r\n  handleSearch(value: string) {\r\n    this.batches = this.backUpBatches;\r\n    this.batches = filterTableData(this.batches, this.excludedColumns, value);\r\n  }\r\n\r\n  private getBatches(): void {\r\n    this.batchesServices.getBatches().subscribe((data: any) => {\r\n      this.batches = data;\r\n      this.backUpBatches = data;\r\n    });\r\n    \r\n  }\r\n\r\n}\r\n","<app-navbar></app-navbar>\r\n<div class=\"container-fluid d-flex flex-column justify-content-center align-items-center vh-100\">\r\n    \r\n    <div class=\"col-flex justify-content-center align-items-center\">\r\n        <div class=\"row header-row\">\r\n            <div class=\"col\">\r\n                <h1 class=\"view-title\">Lotes</h1>\r\n            </div>\r\n            <div class=\"col\">\r\n               <app-search-bar (search)=\"handleSearch($event)\"></app-search-bar>\r\n            </div>\r\n            <div class=\"col d-flex justify-content-center\">\r\n                <button class=\"btn btn-custom\" (click)=\"openSellBatch()\">VENDER</button>\r\n            </div>\r\n            <div class=\"col d-flex justify-content-center\">\r\n                <button class=\"btn btn-custom\" (click)=\"goTo()\">AGREGAR LOTE</button>\r\n            </div>\r\n        </div>\r\n\r\n        <app-table [data]=\"batches\" [columnsExcluded]=\"excludedColumns\" (rowClicked)=\"onRowClicked($event)\"></app-table>\r\n\r\n    </div>\r\n</div>\r\n\r\n<app-view-batch [batch]=\"selectedBatch\" *ngIf=\"openBatchModal\" (close)=\"closeModal()\"></app-view-batch>\r\n\r\n<app-sell-batch *ngIf=\"openSellModal\" (close)=\"closeSellModal()\"></app-sell-batch>\r\n","import { Component, Input } from '@angular/core';\r\nimport { RecipeAbstraction } from '../../../core/interfaces/recipe-abstraction';\r\nimport { Router } from '@angular/router';\r\n\r\n@Component({\r\n  selector: 'app-card',\r\n  standalone: true,\r\n  imports: [],\r\n  templateUrl: './card.component.html',\r\n  styleUrl: './card.component.scss'\r\n})\r\nexport class CardComponent {\r\n  @Input() recipe: RecipeAbstraction | undefined;\r\n \r\n  constructor(private router: Router) { }\r\n  goTo(){\r\nthis.router.navigate(['/recipes', this.recipe?.id])  }\r\n}\r\n","<div class=\"card\">\r\n  <div class=\"card-body\">\r\n    <h4 class=\"card-title title-custom\">{{ recipe?.name }}</h4>\r\n    <div class=\"d-flex justify-content-end\">\r\n      <a (click)=\"goTo()\" class=\"btn text-white btn-custom\">VER RECETA</a>\r\n    </div>\r\n  </div>\r\n</div>\r\n","class ObjectUtils {\n  static isArray(value, empty = true) {\n    return Array.isArray(value) && (empty || value.length !== 0);\n  }\n  static isObject(value, empty = true) {\n    return typeof value === 'object' && !Array.isArray(value) && value != null && (empty || Object.keys(value).length !== 0);\n  }\n  static equals(obj1, obj2, field) {\n    if (field) return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.equalsByValue(obj1, obj2);\n  }\n  static equalsByValue(obj1, obj2) {\n    if (obj1 === obj2) return true;\n    if (obj1 && obj2 && typeof obj1 == 'object' && typeof obj2 == 'object') {\n      var arrA = Array.isArray(obj1),\n        arrB = Array.isArray(obj2),\n        i,\n        length,\n        key;\n      if (arrA && arrB) {\n        length = obj1.length;\n        if (length != obj2.length) return false;\n        for (i = length; i-- !== 0;) if (!this.equalsByValue(obj1[i], obj2[i])) return false;\n        return true;\n      }\n      if (arrA != arrB) return false;\n      var dateA = this.isDate(obj1),\n        dateB = this.isDate(obj2);\n      if (dateA != dateB) return false;\n      if (dateA && dateB) return obj1.getTime() == obj2.getTime();\n      var regexpA = obj1 instanceof RegExp,\n        regexpB = obj2 instanceof RegExp;\n      if (regexpA != regexpB) return false;\n      if (regexpA && regexpB) return obj1.toString() == obj2.toString();\n      var keys = Object.keys(obj1);\n      length = keys.length;\n      if (length !== Object.keys(obj2).length) return false;\n      for (i = length; i-- !== 0;) if (!Object.prototype.hasOwnProperty.call(obj2, keys[i])) return false;\n      for (i = length; i-- !== 0;) {\n        key = keys[i];\n        if (!this.equalsByValue(obj1[key], obj2[key])) return false;\n      }\n      return true;\n    }\n    return obj1 !== obj1 && obj2 !== obj2;\n  }\n  static resolveFieldData(data, field) {\n    if (data && field) {\n      if (this.isFunction(field)) {\n        return field(data);\n      } else if (field.indexOf('.') == -1) {\n        return data[field];\n      } else {\n        let fields = field.split('.');\n        let value = data;\n        for (let i = 0, len = fields.length; i < len; ++i) {\n          if (value == null) {\n            return null;\n          }\n          value = value[fields[i]];\n        }\n        return value;\n      }\n    } else {\n      return null;\n    }\n  }\n  static isFunction(obj) {\n    return !!(obj && obj.constructor && obj.call && obj.apply);\n  }\n  static reorderArray(value, from, to) {\n    let target;\n    if (value && from !== to) {\n      if (to >= value.length) {\n        to %= value.length;\n        from %= value.length;\n      }\n      value.splice(to, 0, value.splice(from, 1)[0]);\n    }\n  }\n  static insertIntoOrderedArray(item, index, arr, sourceArr) {\n    if (arr.length > 0) {\n      let injected = false;\n      for (let i = 0; i < arr.length; i++) {\n        let currentItemIndex = this.findIndexInList(arr[i], sourceArr);\n        if (currentItemIndex > index) {\n          arr.splice(i, 0, item);\n          injected = true;\n          break;\n        }\n      }\n      if (!injected) {\n        arr.push(item);\n      }\n    } else {\n      arr.push(item);\n    }\n  }\n  static findIndexInList(item, list) {\n    let index = -1;\n    if (list) {\n      for (let i = 0; i < list.length; i++) {\n        if (list[i] == item) {\n          index = i;\n          break;\n        }\n      }\n    }\n    return index;\n  }\n  static contains(value, list) {\n    if (value != null && list && list.length) {\n      for (let val of list) {\n        if (this.equals(value, val)) return true;\n      }\n    }\n    return false;\n  }\n  static removeAccents(str) {\n    if (str) {\n      str = str.normalize('NFKD').replace(/\\p{Diacritic}/gu, '');\n    }\n    return str;\n  }\n  static isDate(input) {\n    return Object.prototype.toString.call(input) === '[object Date]';\n  }\n  static isEmpty(value) {\n    return value === null || value === undefined || value === '' || Array.isArray(value) && value.length === 0 || !this.isDate(value) && typeof value === 'object' && Object.keys(value).length === 0;\n  }\n  static isNotEmpty(value) {\n    return !this.isEmpty(value);\n  }\n  static compare(value1, value2, locale, order = 1) {\n    let result = -1;\n    const emptyValue1 = this.isEmpty(value1);\n    const emptyValue2 = this.isEmpty(value2);\n    if (emptyValue1 && emptyValue2) result = 0;else if (emptyValue1) result = order;else if (emptyValue2) result = -order;else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2, locale, {\n      numeric: true\n    });else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;\n    return result;\n  }\n  static sort(value1, value2, order = 1, locale, nullSortOrder = 1) {\n    const result = ObjectUtils.compare(value1, value2, locale, order);\n    let finalSortOrder = order;\n    // nullSortOrder == 1 means Excel like sort nulls at bottom\n    if (ObjectUtils.isEmpty(value1) || ObjectUtils.isEmpty(value2)) {\n      finalSortOrder = nullSortOrder === 1 ? order : nullSortOrder;\n    }\n    return finalSortOrder * result;\n  }\n  static merge(obj1, obj2) {\n    if (obj1 == undefined && obj2 == undefined) {\n      return undefined;\n    } else if ((obj1 == undefined || typeof obj1 === 'object') && (obj2 == undefined || typeof obj2 === 'object')) {\n      return {\n        ...(obj1 || {}),\n        ...(obj2 || {})\n      };\n    } else if ((obj1 == undefined || typeof obj1 === 'string') && (obj2 == undefined || typeof obj2 === 'string')) {\n      return [obj1 || '', obj2 || ''].join(' ');\n    }\n    return obj2 || obj1;\n  }\n  static isPrintableCharacter(char = '') {\n    return this.isNotEmpty(char) && char.length === 1 && char.match(/\\S| /);\n  }\n  static getItemValue(obj, ...params) {\n    return this.isFunction(obj) ? obj(...params) : obj;\n  }\n  static findLastIndex(arr, callback) {\n    let index = -1;\n    if (this.isNotEmpty(arr)) {\n      try {\n        index = arr.findLastIndex(callback);\n      } catch {\n        index = arr.lastIndexOf([...arr].reverse().find(callback));\n      }\n    }\n    return index;\n  }\n  static findLast(arr, callback) {\n    let item;\n    if (this.isNotEmpty(arr)) {\n      try {\n        item = arr.findLast(callback);\n      } catch {\n        item = [...arr].reverse().find(callback);\n      }\n    }\n    return item;\n  }\n  static deepEquals(a, b) {\n    if (a === b) return true;\n    if (a && b && typeof a == 'object' && typeof b == 'object') {\n      var arrA = Array.isArray(a),\n        arrB = Array.isArray(b),\n        i,\n        length,\n        key;\n      if (arrA && arrB) {\n        length = a.length;\n        if (length != b.length) return false;\n        for (i = length; i-- !== 0;) if (!this.deepEquals(a[i], b[i])) return false;\n        return true;\n      }\n      if (arrA != arrB) return false;\n      var dateA = a instanceof Date,\n        dateB = b instanceof Date;\n      if (dateA != dateB) return false;\n      if (dateA && dateB) return a.getTime() == b.getTime();\n      var regexpA = a instanceof RegExp,\n        regexpB = b instanceof RegExp;\n      if (regexpA != regexpB) return false;\n      if (regexpA && regexpB) return a.toString() == b.toString();\n      var keys = Object.keys(a);\n      length = keys.length;\n      if (length !== Object.keys(b).length) return false;\n      for (i = length; i-- !== 0;) if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n      for (i = length; i-- !== 0;) {\n        key = keys[i];\n        if (!this.deepEquals(a[key], b[key])) return false;\n      }\n      return true;\n    }\n    return a !== a && b !== b;\n  }\n}\nvar lastId = 0;\nfunction UniqueComponentId(prefix = 'pn_id_') {\n  lastId++;\n  return `${prefix}${lastId}`;\n}\nfunction ZIndexUtils() {\n  let zIndexes = [];\n  const generateZIndex = (key, baseZIndex) => {\n    let lastZIndex = zIndexes.length > 0 ? zIndexes[zIndexes.length - 1] : {\n      key,\n      value: baseZIndex\n    };\n    let newZIndex = lastZIndex.value + (lastZIndex.key === key ? 0 : baseZIndex) + 2;\n    zIndexes.push({\n      key,\n      value: newZIndex\n    });\n    return newZIndex;\n  };\n  const revertZIndex = zIndex => {\n    zIndexes = zIndexes.filter(obj => obj.value !== zIndex);\n  };\n  const getCurrentZIndex = () => {\n    return zIndexes.length > 0 ? zIndexes[zIndexes.length - 1].value : 0;\n  };\n  const getZIndex = el => {\n    return el ? parseInt(el.style.zIndex, 10) || 0 : 0;\n  };\n  return {\n    get: getZIndex,\n    set: (key, el, baseZIndex) => {\n      if (el) {\n        el.style.zIndex = String(generateZIndex(key, baseZIndex));\n      }\n    },\n    clear: el => {\n      if (el) {\n        revertZIndex(getZIndex(el));\n        el.style.zIndex = '';\n      }\n    },\n    getCurrent: () => getCurrentZIndex()\n  };\n}\nvar zindexutils = ZIndexUtils();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ObjectUtils, UniqueComponentId, zindexutils as ZIndexUtils };\n","import * as i0 from '@angular/core';\nimport { Injectable, signal, Component, Directive, Input, NgModule } from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { ObjectUtils } from 'primeng/utils';\n\n/**\n * Type of the confirm event.\n */\nconst _c0 = [\"*\"];\nvar ConfirmEventType = /*#__PURE__*/function (ConfirmEventType) {\n  ConfirmEventType[ConfirmEventType[\"ACCEPT\"] = 0] = \"ACCEPT\";\n  ConfirmEventType[ConfirmEventType[\"REJECT\"] = 1] = \"REJECT\";\n  ConfirmEventType[ConfirmEventType[\"CANCEL\"] = 2] = \"CANCEL\";\n  return ConfirmEventType;\n}(ConfirmEventType || {});\n/**\n * Methods used in confirmation service.\n * @group Service\n */\nlet ConfirmationService = /*#__PURE__*/(() => {\n  class ConfirmationService {\n    requireConfirmationSource = new Subject();\n    acceptConfirmationSource = new Subject();\n    requireConfirmation$ = this.requireConfirmationSource.asObservable();\n    accept = this.acceptConfirmationSource.asObservable();\n    /**\n     * Callback to invoke on confirm.\n     * @param {Confirmation} confirmation - Represents a confirmation dialog configuration.\n     * @group Method\n     */\n    confirm(confirmation) {\n      this.requireConfirmationSource.next(confirmation);\n      return this;\n    }\n    /**\n     * Closes the dialog.\n     * @group Method\n     */\n    close() {\n      this.requireConfirmationSource.next(null);\n      return this;\n    }\n    /**\n     * Accepts the dialog.\n     * @group Method\n     */\n    onAccept() {\n      this.acceptConfirmationSource.next(null);\n    }\n    static ɵfac = function ConfirmationService_Factory(t) {\n      return new (t || ConfirmationService)();\n    };\n    static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n      token: ConfirmationService,\n      factory: ConfirmationService.ɵfac\n    });\n  }\n  return ConfirmationService;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet ContextMenuService = /*#__PURE__*/(() => {\n  class ContextMenuService {\n    activeItemKeyChange = new Subject();\n    activeItemKeyChange$ = this.activeItemKeyChange.asObservable();\n    activeItemKey;\n    changeKey(key) {\n      this.activeItemKey = key;\n      this.activeItemKeyChange.next(this.activeItemKey);\n    }\n    reset() {\n      this.activeItemKey = null;\n      this.activeItemKeyChange.next(this.activeItemKey);\n    }\n    static ɵfac = function ContextMenuService_Factory(t) {\n      return new (t || ContextMenuService)();\n    };\n    static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n      token: ContextMenuService,\n      factory: ContextMenuService.ɵfac\n    });\n  }\n  return ContextMenuService;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet FilterMatchMode = /*#__PURE__*/(() => {\n  class FilterMatchMode {\n    static STARTS_WITH = 'startsWith';\n    static CONTAINS = 'contains';\n    static NOT_CONTAINS = 'notContains';\n    static ENDS_WITH = 'endsWith';\n    static EQUALS = 'equals';\n    static NOT_EQUALS = 'notEquals';\n    static IN = 'in';\n    static LESS_THAN = 'lt';\n    static LESS_THAN_OR_EQUAL_TO = 'lte';\n    static GREATER_THAN = 'gt';\n    static GREATER_THAN_OR_EQUAL_TO = 'gte';\n    static BETWEEN = 'between';\n    static IS = 'is';\n    static IS_NOT = 'isNot';\n    static BEFORE = 'before';\n    static AFTER = 'after';\n    static DATE_IS = 'dateIs';\n    static DATE_IS_NOT = 'dateIsNot';\n    static DATE_BEFORE = 'dateBefore';\n    static DATE_AFTER = 'dateAfter';\n  }\n  return FilterMatchMode;\n})();\nlet FilterOperator = /*#__PURE__*/(() => {\n  class FilterOperator {\n    static AND = 'and';\n    static OR = 'or';\n  }\n  return FilterOperator;\n})();\nlet FilterService = /*#__PURE__*/(() => {\n  class FilterService {\n    filter(value, fields, filterValue, filterMatchMode, filterLocale) {\n      let filteredItems = [];\n      if (value) {\n        for (let item of value) {\n          for (let field of fields) {\n            let fieldValue = ObjectUtils.resolveFieldData(item, field);\n            if (this.filters[filterMatchMode](fieldValue, filterValue, filterLocale)) {\n              filteredItems.push(item);\n              break;\n            }\n          }\n        }\n      }\n      return filteredItems;\n    }\n    filters = {\n      startsWith: (value, filter, filterLocale) => {\n        if (filter === undefined || filter === null || filter.trim() === '') {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        let filterValue = ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);\n        let stringValue = ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale);\n        return stringValue.slice(0, filterValue.length) === filterValue;\n      },\n      contains: (value, filter, filterLocale) => {\n        if (filter === undefined || filter === null || typeof filter === 'string' && filter.trim() === '') {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        let filterValue = ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);\n        let stringValue = ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale);\n        return stringValue.indexOf(filterValue) !== -1;\n      },\n      notContains: (value, filter, filterLocale) => {\n        if (filter === undefined || filter === null || typeof filter === 'string' && filter.trim() === '') {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        let filterValue = ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);\n        let stringValue = ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale);\n        return stringValue.indexOf(filterValue) === -1;\n      },\n      endsWith: (value, filter, filterLocale) => {\n        if (filter === undefined || filter === null || filter.trim() === '') {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        let filterValue = ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);\n        let stringValue = ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale);\n        return stringValue.indexOf(filterValue, stringValue.length - filterValue.length) !== -1;\n      },\n      equals: (value, filter, filterLocale) => {\n        if (filter === undefined || filter === null || typeof filter === 'string' && filter.trim() === '') {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        if (value.getTime && filter.getTime) return value.getTime() === filter.getTime();else if (value == filter) return true;else return ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale) == ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);\n      },\n      notEquals: (value, filter, filterLocale) => {\n        if (filter === undefined || filter === null || typeof filter === 'string' && filter.trim() === '') {\n          return false;\n        }\n        if (value === undefined || value === null) {\n          return true;\n        }\n        if (value.getTime && filter.getTime) return value.getTime() !== filter.getTime();else if (value == filter) return false;else return ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale) != ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);\n      },\n      in: (value, filter) => {\n        if (filter === undefined || filter === null || filter.length === 0) {\n          return true;\n        }\n        for (let i = 0; i < filter.length; i++) {\n          if (ObjectUtils.equals(value, filter[i])) {\n            return true;\n          }\n        }\n        return false;\n      },\n      between: (value, filter) => {\n        if (filter == null || filter[0] == null || filter[1] == null) {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        if (value.getTime) return filter[0].getTime() <= value.getTime() && value.getTime() <= filter[1].getTime();else return filter[0] <= value && value <= filter[1];\n      },\n      lt: (value, filter, filterLocale) => {\n        if (filter === undefined || filter === null) {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        if (value.getTime && filter.getTime) return value.getTime() < filter.getTime();else return value < filter;\n      },\n      lte: (value, filter, filterLocale) => {\n        if (filter === undefined || filter === null) {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        if (value.getTime && filter.getTime) return value.getTime() <= filter.getTime();else return value <= filter;\n      },\n      gt: (value, filter, filterLocale) => {\n        if (filter === undefined || filter === null) {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        if (value.getTime && filter.getTime) return value.getTime() > filter.getTime();else return value > filter;\n      },\n      gte: (value, filter, filterLocale) => {\n        if (filter === undefined || filter === null) {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        if (value.getTime && filter.getTime) return value.getTime() >= filter.getTime();else return value >= filter;\n      },\n      is: (value, filter, filterLocale) => {\n        return this.filters.equals(value, filter, filterLocale);\n      },\n      isNot: (value, filter, filterLocale) => {\n        return this.filters.notEquals(value, filter, filterLocale);\n      },\n      before: (value, filter, filterLocale) => {\n        return this.filters.lt(value, filter, filterLocale);\n      },\n      after: (value, filter, filterLocale) => {\n        return this.filters.gt(value, filter, filterLocale);\n      },\n      dateIs: (value, filter) => {\n        if (filter === undefined || filter === null) {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        return value.toDateString() === filter.toDateString();\n      },\n      dateIsNot: (value, filter) => {\n        if (filter === undefined || filter === null) {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        return value.toDateString() !== filter.toDateString();\n      },\n      dateBefore: (value, filter) => {\n        if (filter === undefined || filter === null) {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        return value.getTime() < filter.getTime();\n      },\n      dateAfter: (value, filter) => {\n        if (filter === undefined || filter === null) {\n          return true;\n        }\n        if (value === undefined || value === null) {\n          return false;\n        }\n        const valueCopy = new Date(value);\n        valueCopy.setHours(0, 0, 0, 0);\n        return valueCopy.getTime() > filter.getTime();\n      }\n    };\n    register(rule, fn) {\n      this.filters[rule] = fn;\n    }\n    static ɵfac = function FilterService_Factory(t) {\n      return new (t || FilterService)();\n    };\n    static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n      token: FilterService,\n      factory: FilterService.ɵfac,\n      providedIn: 'root'\n    });\n  }\n  return FilterService;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Message service used in messages and toast components.\n * @group Service\n */\nlet MessageService = /*#__PURE__*/(() => {\n  class MessageService {\n    messageSource = new Subject();\n    clearSource = new Subject();\n    messageObserver = this.messageSource.asObservable();\n    clearObserver = this.clearSource.asObservable();\n    /**\n     * Inserts single message.\n     * @param {Message} message - Message to be added.\n     * @group Method\n     */\n    add(message) {\n      if (message) {\n        this.messageSource.next(message);\n      }\n    }\n    /**\n     * Inserts new messages.\n     * @param {Message[]} messages - Messages to be added.\n     * @group Method\n     */\n    addAll(messages) {\n      if (messages && messages.length) {\n        this.messageSource.next(messages);\n      }\n    }\n    /**\n     * Clears the message with the given key.\n     * @param {string} key - Key of the message to be cleared.\n     * @group Method\n     */\n    clear(key) {\n      this.clearSource.next(key || null);\n    }\n    static ɵfac = function MessageService_Factory(t) {\n      return new (t || MessageService)();\n    };\n    static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n      token: MessageService,\n      factory: MessageService.ɵfac\n    });\n  }\n  return MessageService;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet OverlayService = /*#__PURE__*/(() => {\n  class OverlayService {\n    clickSource = new Subject();\n    clickObservable = this.clickSource.asObservable();\n    add(event) {\n      if (event) {\n        this.clickSource.next(event);\n      }\n    }\n    static ɵfac = function OverlayService_Factory(t) {\n      return new (t || OverlayService)();\n    };\n    static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n      token: OverlayService,\n      factory: OverlayService.ɵfac,\n      providedIn: 'root'\n    });\n  }\n  return OverlayService;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet PrimeIcons = /*#__PURE__*/(() => {\n  class PrimeIcons {\n    static ADDRESS_BOOK = 'pi pi-address-book';\n    static ALIGN_CENTER = 'pi pi-align-center';\n    static ALIGN_JUSTIFY = 'pi pi-align-justify';\n    static ALIGN_LEFT = 'pi pi-align-left';\n    static ALIGN_RIGHT = 'pi pi-align-right';\n    static AMAZON = 'pi pi-amazon';\n    static ANDROID = 'pi pi-android';\n    static ANGLE_DOUBLE_DOWN = 'pi pi-angle-double-down';\n    static ANGLE_DOUBLE_LEFT = 'pi pi-angle-double-left';\n    static ANGLE_DOUBLE_RIGHT = 'pi pi-angle-double-right';\n    static ANGLE_DOUBLE_UP = 'pi pi-angle-double-up';\n    static ANGLE_DOWN = 'pi pi-angle-down';\n    static ANGLE_LEFT = 'pi pi-angle-left';\n    static ANGLE_RIGHT = 'pi pi-angle-right';\n    static ANGLE_UP = 'pi pi-angle-up';\n    static APPLE = 'pi pi-apple';\n    static ARROWS_ALT = 'pi pi-arrows-alt';\n    static ARROW_CIRCLE_DOWN = 'pi pi-arrow-circle-down';\n    static ARROW_CIRCLE_LEFT = 'pi pi-arrow-circle-left';\n    static ARROW_CIRCLE_RIGHT = 'pi pi-arrow-circle-right';\n    static ARROW_CIRCLE_UP = 'pi pi-arrow-circle-up';\n    static ARROW_DOWN = 'pi pi-arrow-down';\n    static ARROW_DOWN_LEFT = 'pi pi-arrow-down-left';\n    static ARROW_DOWN_LEFT_AND_ARROW_UP_RIGHT_TO_CENTER = 'pi pi-arrow-down-left-and-arrow-up-right-to-center';\n    static ARROW_DOWN_RIGHT = 'pi pi-arrow-down-right';\n    static ARROW_LEFT = 'pi pi-arrow-left';\n    static ARROW_RIGHT_ARROW_LEFT = 'pi pi-arrow-right-arrow-left';\n    static ARROW_RIGHT = 'pi pi-arrow-right';\n    static ARROW_UP = 'pi pi-arrow-up';\n    static ARROW_UP_LEFT = 'pi pi-arrow-up-left';\n    static ARROW_UP_RIGHT = 'pi pi-arrow-up-right';\n    static ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER = 'pi pi-arrow-up-right-and-arrow-down-left-from-center';\n    static ARROW_H = 'pi pi-arrows-h';\n    static ARROW_V = 'pi pi-arrows-v';\n    static ASTERIKS = 'pi pi-asteriks';\n    static AT = 'pi pi-at';\n    static BACKWARD = 'pi pi-backward';\n    static BAN = 'pi pi-ban';\n    static BARCODE = 'pi pi-barcode';\n    static BARS = 'pi pi-bars';\n    static BELL = 'pi pi-bell';\n    static BELL_SLASH = 'pi pi-bell-slash';\n    static BITCOIN = 'pi pi-bitcoin';\n    static BOLT = 'pi pi-bolt';\n    static BOOK = 'pi pi-book';\n    static BOOKMARK = 'pi pi-bookmark';\n    static BOOKMARK_FILL = 'pi pi-bookmark-fill';\n    static BOX = 'pi pi-box';\n    static BRIEFCASE = 'pi pi-briefcase';\n    static BUILDING = 'pi pi-building';\n    static BUILDING_COLUMNS = 'pi pi-building-columns';\n    static BULLSEYE = 'pi pi-bullseye';\n    static CALCULATOR = 'pi pi-calculator';\n    static CALENDAR = 'pi pi-calendar';\n    static CALENDAR_CLOCK = 'pi pi-calendar-clock';\n    static CALENDAR_MINUS = 'pi pi-calendar-minus';\n    static CALENDAR_PLUS = 'pi pi-calendar-plus';\n    static CALENDAR_TIMES = 'pi pi-calendar-times';\n    static CAMERA = 'pi pi-camera';\n    static CAR = 'pi pi-car';\n    static CARET_DOWN = 'pi pi-caret-down';\n    static CARET_LEFT = 'pi pi-caret-left';\n    static CARET_RIGHT = 'pi pi-caret-right';\n    static CARET_UP = 'pi pi-caret-up';\n    static CART_ARROW_DOWN = 'pi pi-cart-arrow-down';\n    static CART_MINUS = 'pi pi-cart-minus';\n    static CART_PLUS = 'pi pi-cart-plus';\n    static CHART_BAR = 'pi pi-chart-bar';\n    static CHART_LINE = 'pi pi-chart-line';\n    static CHART_PIE = 'pi pi-chart-pie';\n    static CHART_SCATTER = 'pi pi-chart-scatter';\n    static CHECK = 'pi pi-check';\n    static CHECK_CIRCLE = 'pi pi-check-circle';\n    static CHECK_SQUARE = 'pi pi-check-square';\n    static CHEVRON_CIRCLE_DOWN = 'pi pi-chevron-circle-down';\n    static CHEVRON_CIRCLE_LEFT = 'pi pi-chevron-circle-left';\n    static CHEVRON_CIRCLE_RIGHT = 'pi pi-chevron-circle-right';\n    static CHEVRON_CIRCLE_UP = 'pi pi-chevron-circle-up';\n    static CHEVRON_DOWN = 'pi pi-chevron-down';\n    static CHEVRON_LEFT = 'pi pi-chevron-left';\n    static CHEVRON_RIGHT = 'pi pi-chevron-right';\n    static CHEVRON_UP = 'pi pi-chevron-up';\n    static CIRCLE = 'pi pi-circle';\n    static CIRCLE_FILL = 'pi pi-circle-fill';\n    static CLIPBOARD = 'pi pi-clipboard';\n    static CLOCK = 'pi pi-clock';\n    static CLONE = 'pi pi-clone';\n    static CLOUD = 'pi pi-cloud';\n    static CLOUD_DOWNLOAD = 'pi pi-cloud-download';\n    static CLOUD_UPLOAD = 'pi pi-cloud-upload';\n    static CODE = 'pi pi-code';\n    static COG = 'pi pi-cog';\n    static COMMENT = 'pi pi-comment';\n    static COMMENTS = 'pi pi-comments';\n    static COMPASS = 'pi pi-compass';\n    static COPY = 'pi pi-copy';\n    static CREDIT_CARD = 'pi pi-credit-card';\n    static CROWN = 'pi pi-crown';\n    static DATABASE = 'pi pi-database';\n    static DESKTOP = 'pi pi-desktop';\n    static DELETE_LEFT = 'pi pi-delete-left';\n    static DIRECTIONS = 'pi pi-directions';\n    static DIRECTIONS_ALT = 'pi pi-directions-alt';\n    static DISCORD = 'pi pi-discord';\n    static DOLLAR = 'pi pi-dollar';\n    static DOWNLOAD = 'pi pi-download';\n    static EJECT = 'pi pi-eject';\n    static ELLIPSIS_H = 'pi pi-ellipsis-h';\n    static ELLIPSIS_V = 'pi pi-ellipsis-v';\n    static ENVELOPE = 'pi pi-envelope';\n    static EQUALS = 'pi pi-equals';\n    static ERASER = 'pi pi-eraser';\n    static ETHEREUM = 'pi pi-ethereum';\n    static EURO = 'pi pi-euro';\n    static EXCLAMATION_CIRCLE = 'pi pi-exclamation-circle';\n    static EXCLAMATION_TRIANGLE = 'pi pi-exclamation-triangle';\n    static EXPAND = 'pi pi-expand';\n    static EXTERNAL_LINK = 'pi pi-external-link';\n    static EYE = 'pi pi-eye';\n    static EYE_SLASH = 'pi pi-eye-slash';\n    static FACE_SMILE = 'pi pi-face-smile';\n    static FACEBOOK = 'pi pi-facebook';\n    static FAST_BACKWARD = 'pi pi-fast-backward';\n    static FAST_FORWARD = 'pi pi-fast-forward';\n    static FILE = 'pi pi-file';\n    static FILE_ARROW_UP = 'pi pi-file-arrow-up';\n    static FILE_CHECK = 'pi pi-file-check';\n    static FILE_EDIT = 'pi pi-file-edit';\n    static FILE_IMPORT = 'pi pi-file-import';\n    static FILE_PDF = 'pi pi-file-pdf';\n    static FILE_PLUS = 'pi pi-file-plus';\n    static FILE_EXCEL = 'pi pi-file-excel';\n    static FILE_EXPORT = 'pi pi-file-export';\n    static FILE_WORD = 'pi pi-file-word';\n    static FILTER = 'pi pi-filter';\n    static FILTER_FILL = 'pi pi-filter-fill';\n    static FILTER_SLASH = 'pi pi-filter-slash';\n    static FLAG = 'pi pi-flag';\n    static FLAG_FILL = 'pi pi-flag-fill';\n    static FOLDER = 'pi pi-folder';\n    static FOLDER_OPEN = 'pi pi-folder-open';\n    static FOLDER_PLUS = 'pi pi-folder-plus';\n    static FORWARD = 'pi pi-forward';\n    static GAUGE = 'pi pi-gauge';\n    static GIFT = 'pi pi-gift';\n    static GITHUB = 'pi pi-github';\n    static GLOBE = 'pi pi-globe';\n    static GOOGLE = 'pi pi-google';\n    static GRADUATION_CAP = 'pi pi-graduation-cap';\n    static HAMMER = 'pi pi-hammer';\n    static HASHTAG = 'pi pi-hashtag';\n    static HEADPHONES = 'pi pi-headphones';\n    static HEART = 'pi pi-heart';\n    static HEART_FILL = 'pi pi-heart-fill';\n    static HISTORY = 'pi pi-history';\n    static HOME = 'pi pi-home';\n    static HOURGLASS = 'pi pi-hourglass';\n    static ID_CARD = 'pi pi-id-card';\n    static IMAGE = 'pi pi-image';\n    static IMAGES = 'pi pi-images';\n    static INBOX = 'pi pi-inbox';\n    static INDIAN_RUPEE = 'pi pi-indian-rupee';\n    static INFO = 'pi pi-info';\n    static INFO_CIRCLE = 'pi pi-info-circle';\n    static INSTAGRAM = 'pi pi-instagram';\n    static KEY = 'pi pi-key';\n    static LANGUAGE = 'pi pi-language';\n    static LIGHTBULB = 'pi pi-lightbulb';\n    static LINK = 'pi pi-link';\n    static LINKEDIN = 'pi pi-linkedin';\n    static LIST = 'pi pi-list';\n    static LIST_CHECK = 'pi pi-list-check';\n    static LOCK = 'pi pi-lock';\n    static LOCK_OPEN = 'pi pi-lock-open';\n    static MAP = 'pi pi-map';\n    static MAP_MARKER = 'pi pi-map-marker';\n    static MARS = 'pi pi-mars';\n    static MEGAPHONE = 'pi pi-megaphone';\n    static MICROCHIP = 'pi pi-microchip';\n    static MICROCHIP_AI = 'pi pi-microchip-ai';\n    static MICROPHONE = 'pi pi-microphone';\n    static MICROSOFT = 'pi pi-microsoft';\n    static MINUS = 'pi pi-minus';\n    static MINUS_CIRCLE = 'pi pi-minus-circle';\n    static MOBILE = 'pi pi-mobile';\n    static MONEY_BILL = 'pi pi-money-bill';\n    static MOON = 'pi pi-moon';\n    static OBJECTS_COLUMN = 'pi pi-objects-column';\n    static PALETTE = 'pi pi-palette';\n    static PAPERCLIP = 'pi pi-paperclip';\n    static PAUSE = 'pi pi-pause';\n    static PAUSE_CIRCLE = 'pi pi-pause-circle';\n    static PAYPAL = 'pi pi-paypal';\n    static PEN_TO_SQUARE = 'pi pi-pen-to-square';\n    static PENCIL = 'pi pi-pencil';\n    static PERCENTAGE = 'pi pi-percentage';\n    static PHONE = 'pi pi-phone';\n    static PINTEREST = 'pi pi-pinterest';\n    static PLAY = 'pi pi-play';\n    static PLAY_CIRCLE = 'pi pi-play-circle';\n    static PLUS = 'pi pi-plus';\n    static PLUS_CIRCLE = 'pi pi-plus-circle';\n    static POUND = 'pi pi-pound';\n    static POWER_OFF = 'pi pi-power-off';\n    static PRIME = 'pi pi-prime';\n    static PRINT = 'pi pi-print';\n    static QRCODE = 'pi pi-qrcode';\n    static QUESTION = 'pi pi-question';\n    static QUESTION_CIRCLE = 'pi pi-question-circle';\n    static RECEIPT = 'pi pi-receipt';\n    static REDDIT = 'pi pi-reddit';\n    static REFRESH = 'pi pi-refresh';\n    static REPLAY = 'pi pi-replay';\n    static REPLY = 'pi pi-reply';\n    static SAVE = 'pi pi-save';\n    static SEARCH = 'pi pi-search';\n    static SEARCH_MINUS = 'pi pi-search-minus';\n    static SEARCH_PLUS = 'pi pi-search-plus';\n    static SEND = 'pi pi-send';\n    static SERVER = 'pi pi-server';\n    static SHARE_ALT = 'pi pi-share-alt';\n    static SHIELD = 'pi pi-shield';\n    static SHOP = 'pi pi-shop';\n    static SHOPPING_BAG = 'pi pi-shopping-bag';\n    static SHOPPING_CART = 'pi pi-shopping-cart';\n    static SIGN_IN = 'pi pi-sign-in';\n    static SIGN_OUT = 'pi pi-sign-out';\n    static SITEMAP = 'pi pi-sitemap';\n    static SLACK = 'pi pi-slack';\n    static SLIDERS_H = 'pi pi-sliders-h';\n    static SLIDERS_V = 'pi pi-sliders-v';\n    static SORT = 'pi pi-sort';\n    static SORT_ALPHA_DOWN = 'pi pi-sort-alpha-down';\n    static SORT_ALPHA_DOWN_ALT = 'pi pi-sort-alpha-down-alt';\n    static SORT_ALPHA_UP = 'pi pi-sort-alpha-up';\n    static SORT_ALPHA_UP_ALT = 'pi pi-sort-alpha-up-alt';\n    static SORT_ALT = 'pi pi-sort-alt';\n    static SORT_ALT_SLASH = 'pi pi-sort-alt-slash';\n    static SORT_AMOUNT_DOWN = 'pi pi-sort-amount-down';\n    static SORT_AMOUNT_DOWN_ALT = 'pi pi-sort-amount-down-alt';\n    static SORT_AMOUNT_UP = 'pi pi-sort-amount-up';\n    static SORT_AMOUNT_UP_ALT = 'pi pi-sort-amount-up-alt';\n    static SORT_DOWN = 'pi pi-sort-down';\n    static SORT_DOWN_FILL = 'pi pi-sort-down-fill';\n    static SORT_NUMERIC_DOWN = 'pi pi-sort-numeric-down';\n    static SORT_NUMERIC_DOWN_ALT = 'pi pi-sort-numeric-down-alt';\n    static SORT_NUMERIC_UP = 'pi pi-sort-numeric-up';\n    static SORT_NUMERIC_UP_ALT = 'pi pi-sort-numeric-up-alt';\n    static SORT_UP = 'pi pi-sort-up';\n    static SORT_UP_FILL = 'pi pi-sort-up-fill';\n    static SPARKLES = 'pi pi-sparkles';\n    static SPINNER = 'pi pi-spinner';\n    static SPINNER_DOTTED = 'pi pi-spinner-dotted';\n    static STAR = 'pi pi-star';\n    static STAR_FILL = 'pi pi-star-fill';\n    static STAR_HALF = 'pi pi-star-half';\n    static STAR_HALF_FILL = 'pi pi-star-half-fill';\n    static STEP_BACKWARD = 'pi pi-step-backward';\n    static STEP_BACKWARD_ALT = 'pi pi-step-backward-alt';\n    static STEP_FORWARD = 'pi pi-step-forward';\n    static STEP_FORWARD_ALT = 'pi pi-step-forward-alt';\n    static STOP = 'pi pi-stop';\n    static STOP_CIRCLE = 'pi pi-stop-circle';\n    static STOPWATCH = 'pi pi-stopwatch';\n    static SUN = 'pi pi-sun';\n    static SYNC = 'pi pi-sync';\n    static TABLE = 'pi pi-table';\n    static TABLET = 'pi pi-tablet';\n    static TAG = 'pi pi-tag';\n    static TAGS = 'pi pi-tags';\n    static TELEGRAM = 'pi pi-telegram';\n    static TH_LARGE = 'pi pi-th-large';\n    static THUMBS_DOWN = 'pi pi-thumbs-down';\n    static THUMBS_DOWN_FILL = 'pi pi-thumbs-down-fill';\n    static THUMBS_UP = 'pi pi-thumbs-up';\n    static THUMBS_UP_FILL = 'pi pi-thumbs-up-fill';\n    static THUMBTACK = 'pi pi-thumbtack';\n    static TICKET = 'pi pi-ticket';\n    static TIKTOK = 'pi pi-tiktok';\n    static TIMES = 'pi pi-times';\n    static TIMES_CIRCLE = 'pi pi-times-circle';\n    static TRASH = 'pi pi-trash';\n    static TROPHY = 'pi pi-trophy';\n    static TRUCK = 'pi pi-truck';\n    static TURKISH_LIRA = 'pi pi-turkish-lira';\n    static TWITCH = 'pi pi-twitch';\n    static TWITTER = 'pi pi-twitter';\n    static UNDO = 'pi pi-undo';\n    static UNLOCK = 'pi pi-unlock';\n    static UPLOAD = 'pi pi-upload';\n    static USER = 'pi pi-user';\n    static USER_EDIT = 'pi pi-user-edit';\n    static USER_MINUS = 'pi pi-user-minus';\n    static USER_PLUS = 'pi pi-user-plus';\n    static USERS = 'pi pi-users';\n    static VENUS = 'pi pi-venus';\n    static VERIFIED = 'pi pi-verified';\n    static VIDEO = 'pi pi-video';\n    static VIMEO = 'pi pi-vimeo';\n    static VOLUME_DOWN = 'pi pi-volume-down';\n    static VOLUME_OFF = 'pi pi-volume-off';\n    static VOLUME_UP = 'pi pi-volume-up';\n    static WALLET = 'pi pi-wallet';\n    static WAREHOUSE = 'pi pi-warehouse';\n    static WAVE_PULSE = 'pi pi-wave-pulse';\n    static WHATSAPP = 'pi pi-whatsapp';\n    static WIFI = 'pi pi-wifi';\n    static WINDOW_MAXIMIZE = 'pi pi-window-maximize';\n    static WINDOW_MINIMIZE = 'pi pi-window-minimize';\n    static WRENCH = 'pi pi-wrench';\n    static YOUTUBE = 'pi pi-youtube';\n  }\n  return PrimeIcons;\n})();\nlet PrimeNGConfig = /*#__PURE__*/(() => {\n  class PrimeNGConfig {\n    ripple = false;\n    inputStyle = signal('outlined');\n    overlayOptions = {};\n    csp = signal({\n      nonce: undefined\n    });\n    filterMatchModeOptions = {\n      text: [FilterMatchMode.STARTS_WITH, FilterMatchMode.CONTAINS, FilterMatchMode.NOT_CONTAINS, FilterMatchMode.ENDS_WITH, FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS],\n      numeric: [FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS, FilterMatchMode.LESS_THAN, FilterMatchMode.LESS_THAN_OR_EQUAL_TO, FilterMatchMode.GREATER_THAN, FilterMatchMode.GREATER_THAN_OR_EQUAL_TO],\n      date: [FilterMatchMode.DATE_IS, FilterMatchMode.DATE_IS_NOT, FilterMatchMode.DATE_BEFORE, FilterMatchMode.DATE_AFTER]\n    };\n    translation = {\n      startsWith: 'Starts with',\n      contains: 'Contains',\n      notContains: 'Not contains',\n      endsWith: 'Ends with',\n      equals: 'Equals',\n      notEquals: 'Not equals',\n      noFilter: 'No Filter',\n      lt: 'Less than',\n      lte: 'Less than or equal to',\n      gt: 'Greater than',\n      gte: 'Greater than or equal to',\n      is: 'Is',\n      isNot: 'Is not',\n      before: 'Before',\n      after: 'After',\n      dateIs: 'Date is',\n      dateIsNot: 'Date is not',\n      dateBefore: 'Date is before',\n      dateAfter: 'Date is after',\n      clear: 'Clear',\n      apply: 'Apply',\n      matchAll: 'Match All',\n      matchAny: 'Match Any',\n      addRule: 'Add Rule',\n      removeRule: 'Remove Rule',\n      accept: 'Yes',\n      reject: 'No',\n      choose: 'Choose',\n      upload: 'Upload',\n      cancel: 'Cancel',\n      pending: 'Pending',\n      fileSizeTypes: ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],\n      dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n      dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n      dayNamesMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n      monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],\n      monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n      chooseYear: 'Choose Year',\n      chooseMonth: 'Choose Month',\n      chooseDate: 'Choose Date',\n      prevDecade: 'Previous Decade',\n      nextDecade: 'Next Decade',\n      prevYear: 'Previous Year',\n      nextYear: 'Next Year',\n      prevMonth: 'Previous Month',\n      nextMonth: 'Next Month',\n      prevHour: 'Previous Hour',\n      nextHour: 'Next Hour',\n      prevMinute: 'Previous Minute',\n      nextMinute: 'Next Minute',\n      prevSecond: 'Previous Second',\n      nextSecond: 'Next Second',\n      am: 'am',\n      pm: 'pm',\n      dateFormat: 'mm/dd/yy',\n      firstDayOfWeek: 0,\n      today: 'Today',\n      weekHeader: 'Wk',\n      weak: 'Weak',\n      medium: 'Medium',\n      strong: 'Strong',\n      passwordPrompt: 'Enter a password',\n      emptyMessage: 'No results found',\n      searchMessage: '{0} results are available',\n      selectionMessage: '{0} items selected',\n      emptySelectionMessage: 'No selected item',\n      emptySearchMessage: 'No results found',\n      emptyFilterMessage: 'No results found',\n      aria: {\n        trueLabel: 'True',\n        falseLabel: 'False',\n        nullLabel: 'Not Selected',\n        star: '1 star',\n        stars: '{star} stars',\n        selectAll: 'All items selected',\n        unselectAll: 'All items unselected',\n        close: 'Close',\n        previous: 'Previous',\n        next: 'Next',\n        navigation: 'Navigation',\n        scrollTop: 'Scroll Top',\n        moveTop: 'Move Top',\n        moveUp: 'Move Up',\n        moveDown: 'Move Down',\n        moveBottom: 'Move Bottom',\n        moveToTarget: 'Move to Target',\n        moveToSource: 'Move to Source',\n        moveAllToTarget: 'Move All to Target',\n        moveAllToSource: 'Move All to Source',\n        pageLabel: '{page}',\n        firstPageLabel: 'First Page',\n        lastPageLabel: 'Last Page',\n        nextPageLabel: 'Next Page',\n        prevPageLabel: 'Previous Page',\n        rowsPerPageLabel: 'Rows per page',\n        previousPageLabel: 'Previous Page',\n        jumpToPageDropdownLabel: 'Jump to Page Dropdown',\n        jumpToPageInputLabel: 'Jump to Page Input',\n        selectRow: 'Row Selected',\n        unselectRow: 'Row Unselected',\n        expandRow: 'Row Expanded',\n        collapseRow: 'Row Collapsed',\n        showFilterMenu: 'Show Filter Menu',\n        hideFilterMenu: 'Hide Filter Menu',\n        filterOperator: 'Filter Operator',\n        filterConstraint: 'Filter Constraint',\n        editRow: 'Row Edit',\n        saveEdit: 'Save Edit',\n        cancelEdit: 'Cancel Edit',\n        listView: 'List View',\n        gridView: 'Grid View',\n        slide: 'Slide',\n        slideNumber: '{slideNumber}',\n        zoomImage: 'Zoom Image',\n        zoomIn: 'Zoom In',\n        zoomOut: 'Zoom Out',\n        rotateRight: 'Rotate Right',\n        rotateLeft: 'Rotate Left',\n        listLabel: 'Option List',\n        selectColor: 'Select a color',\n        removeLabel: 'Remove',\n        browseFiles: 'Browse Files',\n        maximizeLabel: 'Maximize'\n      }\n    };\n    zIndex = {\n      modal: 1100,\n      overlay: 1000,\n      menu: 1000,\n      tooltip: 1100\n    };\n    translationSource = new Subject();\n    translationObserver = this.translationSource.asObservable();\n    getTranslation(key) {\n      return this.translation[key];\n    }\n    setTranslation(value) {\n      this.translation = {\n        ...this.translation,\n        ...value\n      };\n      this.translationSource.next(this.translation);\n    }\n    static ɵfac = function PrimeNGConfig_Factory(t) {\n      return new (t || PrimeNGConfig)();\n    };\n    static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n      token: PrimeNGConfig,\n      factory: PrimeNGConfig.ɵfac,\n      providedIn: 'root'\n    });\n  }\n  return PrimeNGConfig;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet Header = /*#__PURE__*/(() => {\n  class Header {\n    static ɵfac = function Header_Factory(t) {\n      return new (t || Header)();\n    };\n    static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n      type: Header,\n      selectors: [[\"p-header\"]],\n      standalone: true,\n      features: [i0.ɵɵStandaloneFeature],\n      ngContentSelectors: _c0,\n      decls: 1,\n      vars: 0,\n      template: function Header_Template(rf, ctx) {\n        if (rf & 1) {\n          i0.ɵɵprojectionDef();\n          i0.ɵɵprojection(0);\n        }\n      },\n      encapsulation: 2\n    });\n  }\n  return Header;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet Footer = /*#__PURE__*/(() => {\n  class Footer {\n    static ɵfac = function Footer_Factory(t) {\n      return new (t || Footer)();\n    };\n    static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n      type: Footer,\n      selectors: [[\"p-footer\"]],\n      standalone: true,\n      features: [i0.ɵɵStandaloneFeature],\n      ngContentSelectors: _c0,\n      decls: 1,\n      vars: 0,\n      template: function Footer_Template(rf, ctx) {\n        if (rf & 1) {\n          i0.ɵɵprojectionDef();\n          i0.ɵɵprojection(0);\n        }\n      },\n      encapsulation: 2\n    });\n  }\n  return Footer;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet PrimeTemplate = /*#__PURE__*/(() => {\n  class PrimeTemplate {\n    template;\n    type;\n    name;\n    constructor(template) {\n      this.template = template;\n    }\n    getType() {\n      return this.name;\n    }\n    static ɵfac = function PrimeTemplate_Factory(t) {\n      return new (t || PrimeTemplate)(i0.ɵɵdirectiveInject(i0.TemplateRef));\n    };\n    static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n      type: PrimeTemplate,\n      selectors: [[\"\", \"pTemplate\", \"\"]],\n      inputs: {\n        type: \"type\",\n        name: [i0.ɵɵInputFlags.None, \"pTemplate\", \"name\"]\n      },\n      standalone: true\n    });\n  }\n  return PrimeTemplate;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet SharedModule = /*#__PURE__*/(() => {\n  class SharedModule {\n    static ɵfac = function SharedModule_Factory(t) {\n      return new (t || SharedModule)();\n    };\n    static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n      type: SharedModule\n    });\n    static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({});\n  }\n  return SharedModule;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TranslationKeys = /*#__PURE__*/(() => {\n  class TranslationKeys {\n    static STARTS_WITH = 'startsWith';\n    static CONTAINS = 'contains';\n    static NOT_CONTAINS = 'notContains';\n    static ENDS_WITH = 'endsWith';\n    static EQUALS = 'equals';\n    static NOT_EQUALS = 'notEquals';\n    static NO_FILTER = 'noFilter';\n    static LT = 'lt';\n    static LTE = 'lte';\n    static GT = 'gt';\n    static GTE = 'gte';\n    static IS = 'is';\n    static IS_NOT = 'isNot';\n    static BEFORE = 'before';\n    static AFTER = 'after';\n    static CLEAR = 'clear';\n    static APPLY = 'apply';\n    static MATCH_ALL = 'matchAll';\n    static MATCH_ANY = 'matchAny';\n    static ADD_RULE = 'addRule';\n    static REMOVE_RULE = 'removeRule';\n    static ACCEPT = 'accept';\n    static REJECT = 'reject';\n    static CHOOSE = 'choose';\n    static UPLOAD = 'upload';\n    static CANCEL = 'cancel';\n    static PENDING = 'pending';\n    static FILE_SIZE_TYPES = 'fileSizeTypes';\n    static DAY_NAMES = 'dayNames';\n    static DAY_NAMES_SHORT = 'dayNamesShort';\n    static DAY_NAMES_MIN = 'dayNamesMin';\n    static MONTH_NAMES = 'monthNames';\n    static MONTH_NAMES_SHORT = 'monthNamesShort';\n    static FIRST_DAY_OF_WEEK = 'firstDayOfWeek';\n    static TODAY = 'today';\n    static WEEK_HEADER = 'weekHeader';\n    static WEAK = 'weak';\n    static MEDIUM = 'medium';\n    static STRONG = 'strong';\n    static PASSWORD_PROMPT = 'passwordPrompt';\n    static EMPTY_MESSAGE = 'emptyMessage';\n    static EMPTY_FILTER_MESSAGE = 'emptyFilterMessage';\n    static SHOW_FILTER_MENU = 'showFilterMenu';\n    static HIDE_FILTER_MENU = 'hideFilterMenu';\n    static SELECTION_MESSAGE = 'selectionMessage';\n    static ARIA = 'aria';\n    static SELECT_COLOR = 'selectColor';\n    static BROWSE_FILES = 'browseFiles';\n  }\n  return TranslationKeys;\n})();\nlet TreeDragDropService = /*#__PURE__*/(() => {\n  class TreeDragDropService {\n    dragStartSource = new Subject();\n    dragStopSource = new Subject();\n    dragStart$ = this.dragStartSource.asObservable();\n    dragStop$ = this.dragStopSource.asObservable();\n    startDrag(event) {\n      this.dragStartSource.next(event);\n    }\n    stopDrag(event) {\n      this.dragStopSource.next(event);\n    }\n    static ɵfac = function TreeDragDropService_Factory(t) {\n      return new (t || TreeDragDropService)();\n    };\n    static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n      token: TreeDragDropService,\n      factory: TreeDragDropService.ɵfac\n    });\n  }\n  return TreeDragDropService;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ConfirmEventType, ConfirmationService, ContextMenuService, FilterMatchMode, FilterOperator, FilterService, Footer, Header, MessageService, OverlayService, PrimeIcons, PrimeNGConfig, PrimeTemplate, SharedModule, TranslationKeys, TreeDragDropService };\n","import * as i0 from '@angular/core';\nimport { booleanAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Input } from '@angular/core';\nimport { ObjectUtils } from 'primeng/utils';\nconst _c0 = [\"*\"];\nlet BaseIcon = /*#__PURE__*/(() => {\n  class BaseIcon {\n    label;\n    spin = false;\n    styleClass;\n    role;\n    ariaLabel;\n    ariaHidden;\n    ngOnInit() {\n      this.getAttributes();\n    }\n    getAttributes() {\n      const isLabelEmpty = ObjectUtils.isEmpty(this.label);\n      this.role = !isLabelEmpty ? 'img' : undefined;\n      this.ariaLabel = !isLabelEmpty ? this.label : undefined;\n      this.ariaHidden = isLabelEmpty;\n    }\n    getClassNames() {\n      return `p-icon ${this.styleClass ? this.styleClass + ' ' : ''}${this.spin ? 'p-icon-spin' : ''}`;\n    }\n    static ɵfac = function BaseIcon_Factory(t) {\n      return new (t || BaseIcon)();\n    };\n    static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n      type: BaseIcon,\n      selectors: [[\"ng-component\"]],\n      hostAttrs: [1, \"p-element\", \"p-icon-wrapper\"],\n      inputs: {\n        label: \"label\",\n        spin: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"spin\", \"spin\", booleanAttribute],\n        styleClass: \"styleClass\"\n      },\n      standalone: true,\n      features: [i0.ɵɵInputTransformsFeature, i0.ɵɵStandaloneFeature],\n      ngContentSelectors: _c0,\n      decls: 1,\n      vars: 0,\n      template: function BaseIcon_Template(rf, ctx) {\n        if (rf & 1) {\n          i0.ɵɵprojectionDef();\n          i0.ɵɵprojection(0);\n        }\n      },\n      encapsulation: 2,\n      changeDetection: 0\n    });\n  }\n  return BaseIcon;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BaseIcon };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nlet ChevronDownIcon = /*#__PURE__*/(() => {\n  class ChevronDownIcon extends BaseIcon {\n    static ɵfac = /* @__PURE__ */(() => {\n      let ɵChevronDownIcon_BaseFactory;\n      return function ChevronDownIcon_Factory(t) {\n        return (ɵChevronDownIcon_BaseFactory || (ɵChevronDownIcon_BaseFactory = i0.ɵɵgetInheritedFactory(ChevronDownIcon)))(t || ChevronDownIcon);\n      };\n    })();\n    static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n      type: ChevronDownIcon,\n      selectors: [[\"ChevronDownIcon\"]],\n      standalone: true,\n      features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n      decls: 2,\n      vars: 5,\n      consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"d\", \"M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z\", \"fill\", \"currentColor\"]],\n      template: function ChevronDownIcon_Template(rf, ctx) {\n        if (rf & 1) {\n          i0.ɵɵnamespaceSVG();\n          i0.ɵɵelementStart(0, \"svg\", 0);\n          i0.ɵɵelement(1, \"path\", 1);\n          i0.ɵɵelementEnd();\n        }\n        if (rf & 2) {\n          i0.ɵɵclassMap(ctx.getClassNames());\n          i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n        }\n      },\n      encapsulation: 2\n    });\n  }\n  return ChevronDownIcon;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ChevronDownIcon };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nlet ChevronLeftIcon = /*#__PURE__*/(() => {\n  class ChevronLeftIcon extends BaseIcon {\n    static ɵfac = /* @__PURE__ */(() => {\n      let ɵChevronLeftIcon_BaseFactory;\n      return function ChevronLeftIcon_Factory(t) {\n        return (ɵChevronLeftIcon_BaseFactory || (ɵChevronLeftIcon_BaseFactory = i0.ɵɵgetInheritedFactory(ChevronLeftIcon)))(t || ChevronLeftIcon);\n      };\n    })();\n    static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n      type: ChevronLeftIcon,\n      selectors: [[\"ChevronLeftIcon\"]],\n      standalone: true,\n      features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n      decls: 2,\n      vars: 5,\n      consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"d\", \"M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z\", \"fill\", \"currentColor\"]],\n      template: function ChevronLeftIcon_Template(rf, ctx) {\n        if (rf & 1) {\n          i0.ɵɵnamespaceSVG();\n          i0.ɵɵelementStart(0, \"svg\", 0);\n          i0.ɵɵelement(1, \"path\", 1);\n          i0.ɵɵelementEnd();\n        }\n        if (rf & 2) {\n          i0.ɵɵclassMap(ctx.getClassNames());\n          i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n        }\n      },\n      encapsulation: 2\n    });\n  }\n  return ChevronLeftIcon;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ChevronLeftIcon };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nlet ChevronRightIcon = /*#__PURE__*/(() => {\n  class ChevronRightIcon extends BaseIcon {\n    static ɵfac = /* @__PURE__ */(() => {\n      let ɵChevronRightIcon_BaseFactory;\n      return function ChevronRightIcon_Factory(t) {\n        return (ɵChevronRightIcon_BaseFactory || (ɵChevronRightIcon_BaseFactory = i0.ɵɵgetInheritedFactory(ChevronRightIcon)))(t || ChevronRightIcon);\n      };\n    })();\n    static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n      type: ChevronRightIcon,\n      selectors: [[\"ChevronRightIcon\"]],\n      standalone: true,\n      features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n      decls: 2,\n      vars: 5,\n      consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"d\", \"M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z\", \"fill\", \"currentColor\"]],\n      template: function ChevronRightIcon_Template(rf, ctx) {\n        if (rf & 1) {\n          i0.ɵɵnamespaceSVG();\n          i0.ɵɵelementStart(0, \"svg\", 0);\n          i0.ɵɵelement(1, \"path\", 1);\n          i0.ɵɵelementEnd();\n        }\n        if (rf & 2) {\n          i0.ɵɵclassMap(ctx.getClassNames());\n          i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n        }\n      },\n      encapsulation: 2\n    });\n  }\n  return ChevronRightIcon;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ChevronRightIcon };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nlet ChevronUpIcon = /*#__PURE__*/(() => {\n  class ChevronUpIcon extends BaseIcon {\n    static ɵfac = /* @__PURE__ */(() => {\n      let ɵChevronUpIcon_BaseFactory;\n      return function ChevronUpIcon_Factory(t) {\n        return (ɵChevronUpIcon_BaseFactory || (ɵChevronUpIcon_BaseFactory = i0.ɵɵgetInheritedFactory(ChevronUpIcon)))(t || ChevronUpIcon);\n      };\n    })();\n    static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n      type: ChevronUpIcon,\n      selectors: [[\"ChevronUpIcon\"]],\n      standalone: true,\n      features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n      decls: 2,\n      vars: 5,\n      consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"d\", \"M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z\", \"fill\", \"currentColor\"]],\n      template: function ChevronUpIcon_Template(rf, ctx) {\n        if (rf & 1) {\n          i0.ɵɵnamespaceSVG();\n          i0.ɵɵelementStart(0, \"svg\", 0);\n          i0.ɵɵelement(1, \"path\", 1);\n          i0.ɵɵelementEnd();\n        }\n        if (rf & 2) {\n          i0.ɵɵclassMap(ctx.getClassNames());\n          i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n        }\n      },\n      encapsulation: 2\n    });\n  }\n  return ChevronUpIcon;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ChevronUpIcon };\n","/**\n * @dynamic is for runtime initializing DomHandler.browser\n *\n * If delete below comment, we can see this error message:\n *  Metadata collected contains an error that will be reported at runtime:\n *  Only initialized variables and constants can be referenced\n *  because the value of this variable is needed by the template compiler.\n */\n// @dynamic\nlet DomHandler = /*#__PURE__*/(() => {\n  class DomHandler {\n    static zindex = 1000;\n    static calculatedScrollbarWidth = null;\n    static calculatedScrollbarHeight = null;\n    static browser;\n    static addClass(element, className) {\n      if (element && className) {\n        if (element.classList) element.classList.add(className);else element.className += ' ' + className;\n      }\n    }\n    static addMultipleClasses(element, className) {\n      if (element && className) {\n        if (element.classList) {\n          let styles = className.trim().split(' ');\n          for (let i = 0; i < styles.length; i++) {\n            element.classList.add(styles[i]);\n          }\n        } else {\n          let styles = className.split(' ');\n          for (let i = 0; i < styles.length; i++) {\n            element.className += ' ' + styles[i];\n          }\n        }\n      }\n    }\n    static removeClass(element, className) {\n      if (element && className) {\n        if (element.classList) element.classList.remove(className);else element.className = element.className.replace(new RegExp('(^|\\\\b)' + className.split(' ').join('|') + '(\\\\b|$)', 'gi'), ' ');\n      }\n    }\n    static removeMultipleClasses(element, classNames) {\n      if (element && classNames) {\n        [classNames].flat().filter(Boolean).forEach(cNames => cNames.split(' ').forEach(className => this.removeClass(element, className)));\n      }\n    }\n    static hasClass(element, className) {\n      if (element && className) {\n        if (element.classList) return element.classList.contains(className);else return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);\n      }\n      return false;\n    }\n    static siblings(element) {\n      return Array.prototype.filter.call(element.parentNode.children, function (child) {\n        return child !== element;\n      });\n    }\n    static find(element, selector) {\n      return Array.from(element.querySelectorAll(selector));\n    }\n    static findSingle(element, selector) {\n      return this.isElement(element) ? element.querySelector(selector) : null;\n    }\n    static index(element) {\n      let children = element.parentNode.childNodes;\n      let num = 0;\n      for (var i = 0; i < children.length; i++) {\n        if (children[i] == element) return num;\n        if (children[i].nodeType == 1) num++;\n      }\n      return -1;\n    }\n    static indexWithinGroup(element, attributeName) {\n      let children = element.parentNode ? element.parentNode.childNodes : [];\n      let num = 0;\n      for (var i = 0; i < children.length; i++) {\n        if (children[i] == element) return num;\n        if (children[i].attributes && children[i].attributes[attributeName] && children[i].nodeType == 1) num++;\n      }\n      return -1;\n    }\n    static appendOverlay(overlay, target, appendTo = 'self') {\n      if (appendTo !== 'self' && overlay && target) {\n        this.appendChild(overlay, target);\n      }\n    }\n    static alignOverlay(overlay, target, appendTo = 'self', calculateMinWidth = true) {\n      if (overlay && target) {\n        if (calculateMinWidth) {\n          overlay.style.minWidth = `${DomHandler.getOuterWidth(target)}px`;\n        }\n        if (appendTo === 'self') {\n          this.relativePosition(overlay, target);\n        } else {\n          this.absolutePosition(overlay, target);\n        }\n      }\n    }\n    static relativePosition(element, target, gutter = true) {\n      const getClosestRelativeElement = el => {\n        if (!el) return;\n        return getComputedStyle(el).getPropertyValue('position') === 'relative' ? el : getClosestRelativeElement(el.parentElement);\n      };\n      const elementDimensions = element.offsetParent ? {\n        width: element.offsetWidth,\n        height: element.offsetHeight\n      } : this.getHiddenElementDimensions(element);\n      const targetHeight = target.offsetHeight ?? target.getBoundingClientRect().height;\n      const targetOffset = target.getBoundingClientRect();\n      const windowScrollTop = this.getWindowScrollTop();\n      const windowScrollLeft = this.getWindowScrollLeft();\n      const viewport = this.getViewport();\n      const relativeElement = getClosestRelativeElement(element);\n      const relativeElementOffset = relativeElement?.getBoundingClientRect() || {\n        top: -1 * windowScrollTop,\n        left: -1 * windowScrollLeft\n      };\n      let top, left;\n      if (targetOffset.top + targetHeight + elementDimensions.height > viewport.height) {\n        top = targetOffset.top - relativeElementOffset.top - elementDimensions.height;\n        element.style.transformOrigin = 'bottom';\n        if (targetOffset.top + top < 0) {\n          top = -1 * targetOffset.top;\n        }\n      } else {\n        top = targetHeight + targetOffset.top - relativeElementOffset.top;\n        element.style.transformOrigin = 'top';\n      }\n      const horizontalOverflow = targetOffset.left + elementDimensions.width - viewport.width;\n      const targetLeftOffsetInSpaceOfRelativeElement = targetOffset.left - relativeElementOffset.left;\n      if (elementDimensions.width > viewport.width) {\n        // element wider then viewport and cannot fit on screen (align at left side of viewport)\n        left = (targetOffset.left - relativeElementOffset.left) * -1;\n      } else if (horizontalOverflow > 0) {\n        // element wider then viewport but can be fit on screen (align at right side of viewport)\n        left = targetLeftOffsetInSpaceOfRelativeElement - horizontalOverflow;\n      } else {\n        // element fits on screen (align with target)\n        left = targetOffset.left - relativeElementOffset.left;\n      }\n      element.style.top = top + 'px';\n      element.style.left = left + 'px';\n      gutter && (element.style.marginTop = origin === 'bottom' ? 'calc(var(--p-anchor-gutter) * -1)' : 'calc(var(--p-anchor-gutter))');\n    }\n    static absolutePosition(element, target, gutter = true) {\n      const elementDimensions = element.offsetParent ? {\n        width: element.offsetWidth,\n        height: element.offsetHeight\n      } : this.getHiddenElementDimensions(element);\n      const elementOuterHeight = elementDimensions.height;\n      const elementOuterWidth = elementDimensions.width;\n      const targetOuterHeight = target.offsetHeight ?? target.getBoundingClientRect().height;\n      const targetOuterWidth = target.offsetWidth ?? target.getBoundingClientRect().width;\n      const targetOffset = target.getBoundingClientRect();\n      const windowScrollTop = this.getWindowScrollTop();\n      const windowScrollLeft = this.getWindowScrollLeft();\n      const viewport = this.getViewport();\n      let top, left;\n      if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {\n        top = targetOffset.top + windowScrollTop - elementOuterHeight;\n        element.style.transformOrigin = 'bottom';\n        if (top < 0) {\n          top = windowScrollTop;\n        }\n      } else {\n        top = targetOuterHeight + targetOffset.top + windowScrollTop;\n        element.style.transformOrigin = 'top';\n      }\n      if (targetOffset.left + elementOuterWidth > viewport.width) left = Math.max(0, targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth);else left = targetOffset.left + windowScrollLeft;\n      element.style.top = top + 'px';\n      element.style.left = left + 'px';\n      gutter && (element.style.marginTop = origin === 'bottom' ? 'calc(var(--p-anchor-gutter) * -1)' : 'calc(var(--p-anchor-gutter))');\n    }\n    static getParents(element, parents = []) {\n      return element['parentNode'] === null ? parents : this.getParents(element.parentNode, parents.concat([element.parentNode]));\n    }\n    static getScrollableParents(element) {\n      let scrollableParents = [];\n      if (element) {\n        let parents = this.getParents(element);\n        const overflowRegex = /(auto|scroll)/;\n        const overflowCheck = node => {\n          let styleDeclaration = window['getComputedStyle'](node, null);\n          return overflowRegex.test(styleDeclaration.getPropertyValue('overflow')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowX')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowY'));\n        };\n        for (let parent of parents) {\n          let scrollSelectors = parent.nodeType === 1 && parent.dataset['scrollselectors'];\n          if (scrollSelectors) {\n            let selectors = scrollSelectors.split(',');\n            for (let selector of selectors) {\n              let el = this.findSingle(parent, selector);\n              if (el && overflowCheck(el)) {\n                scrollableParents.push(el);\n              }\n            }\n          }\n          if (parent.nodeType !== 9 && overflowCheck(parent)) {\n            scrollableParents.push(parent);\n          }\n        }\n      }\n      return scrollableParents;\n    }\n    static getHiddenElementOuterHeight(element) {\n      element.style.visibility = 'hidden';\n      element.style.display = 'block';\n      let elementHeight = element.offsetHeight;\n      element.style.display = 'none';\n      element.style.visibility = 'visible';\n      return elementHeight;\n    }\n    static getHiddenElementOuterWidth(element) {\n      element.style.visibility = 'hidden';\n      element.style.display = 'block';\n      let elementWidth = element.offsetWidth;\n      element.style.display = 'none';\n      element.style.visibility = 'visible';\n      return elementWidth;\n    }\n    static getHiddenElementDimensions(element) {\n      let dimensions = {};\n      element.style.visibility = 'hidden';\n      element.style.display = 'block';\n      dimensions.width = element.offsetWidth;\n      dimensions.height = element.offsetHeight;\n      element.style.display = 'none';\n      element.style.visibility = 'visible';\n      return dimensions;\n    }\n    static scrollInView(container, item) {\n      let borderTopValue = getComputedStyle(container).getPropertyValue('borderTopWidth');\n      let borderTop = borderTopValue ? parseFloat(borderTopValue) : 0;\n      let paddingTopValue = getComputedStyle(container).getPropertyValue('paddingTop');\n      let paddingTop = paddingTopValue ? parseFloat(paddingTopValue) : 0;\n      let containerRect = container.getBoundingClientRect();\n      let itemRect = item.getBoundingClientRect();\n      let offset = itemRect.top + document.body.scrollTop - (containerRect.top + document.body.scrollTop) - borderTop - paddingTop;\n      let scroll = container.scrollTop;\n      let elementHeight = container.clientHeight;\n      let itemHeight = this.getOuterHeight(item);\n      if (offset < 0) {\n        container.scrollTop = scroll + offset;\n      } else if (offset + itemHeight > elementHeight) {\n        container.scrollTop = scroll + offset - elementHeight + itemHeight;\n      }\n    }\n    static fadeIn(element, duration) {\n      element.style.opacity = 0;\n      let last = +new Date();\n      let opacity = 0;\n      let tick = function () {\n        opacity = +element.style.opacity.replace(',', '.') + (new Date().getTime() - last) / duration;\n        element.style.opacity = opacity;\n        last = +new Date();\n        if (+opacity < 1) {\n          window.requestAnimationFrame && requestAnimationFrame(tick) || setTimeout(tick, 16);\n        }\n      };\n      tick();\n    }\n    static fadeOut(element, ms) {\n      var opacity = 1,\n        interval = 50,\n        duration = ms,\n        gap = interval / duration;\n      let fading = setInterval(() => {\n        opacity = opacity - gap;\n        if (opacity <= 0) {\n          opacity = 0;\n          clearInterval(fading);\n        }\n        element.style.opacity = opacity;\n      }, interval);\n    }\n    static getWindowScrollTop() {\n      let doc = document.documentElement;\n      return (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);\n    }\n    static getWindowScrollLeft() {\n      let doc = document.documentElement;\n      return (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0);\n    }\n    static matches(element, selector) {\n      var p = Element.prototype;\n      var f = p['matches'] || p.webkitMatchesSelector || p['mozMatchesSelector'] || p['msMatchesSelector'] || function (s) {\n        return [].indexOf.call(document.querySelectorAll(s), this) !== -1;\n      };\n      return f.call(element, selector);\n    }\n    static getOuterWidth(el, margin) {\n      let width = el.offsetWidth;\n      if (margin) {\n        let style = getComputedStyle(el);\n        width += parseFloat(style.marginLeft) + parseFloat(style.marginRight);\n      }\n      return width;\n    }\n    static getHorizontalPadding(el) {\n      let style = getComputedStyle(el);\n      return parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);\n    }\n    static getHorizontalMargin(el) {\n      let style = getComputedStyle(el);\n      return parseFloat(style.marginLeft) + parseFloat(style.marginRight);\n    }\n    static innerWidth(el) {\n      let width = el.offsetWidth;\n      let style = getComputedStyle(el);\n      width += parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);\n      return width;\n    }\n    static width(el) {\n      let width = el.offsetWidth;\n      let style = getComputedStyle(el);\n      width -= parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);\n      return width;\n    }\n    static getInnerHeight(el) {\n      let height = el.offsetHeight;\n      let style = getComputedStyle(el);\n      height += parseFloat(style.paddingTop) + parseFloat(style.paddingBottom);\n      return height;\n    }\n    static getOuterHeight(el, margin) {\n      let height = el.offsetHeight;\n      if (margin) {\n        let style = getComputedStyle(el);\n        height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);\n      }\n      return height;\n    }\n    static getHeight(el) {\n      let height = el.offsetHeight;\n      let style = getComputedStyle(el);\n      height -= parseFloat(style.paddingTop) + parseFloat(style.paddingBottom) + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);\n      return height;\n    }\n    static getWidth(el) {\n      let width = el.offsetWidth;\n      let style = getComputedStyle(el);\n      width -= parseFloat(style.paddingLeft) + parseFloat(style.paddingRight) + parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth);\n      return width;\n    }\n    static getViewport() {\n      let win = window,\n        d = document,\n        e = d.documentElement,\n        g = d.getElementsByTagName('body')[0],\n        w = win.innerWidth || e.clientWidth || g.clientWidth,\n        h = win.innerHeight || e.clientHeight || g.clientHeight;\n      return {\n        width: w,\n        height: h\n      };\n    }\n    static getOffset(el) {\n      var rect = el.getBoundingClientRect();\n      return {\n        top: rect.top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0),\n        left: rect.left + (window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0)\n      };\n    }\n    static replaceElementWith(element, replacementElement) {\n      let parentNode = element.parentNode;\n      if (!parentNode) throw `Can't replace element`;\n      return parentNode.replaceChild(replacementElement, element);\n    }\n    static getUserAgent() {\n      if (navigator && this.isClient()) {\n        return navigator.userAgent;\n      }\n    }\n    static isIE() {\n      var ua = window.navigator.userAgent;\n      var msie = ua.indexOf('MSIE ');\n      if (msie > 0) {\n        // IE 10 or older => return version number\n        return true;\n      }\n      var trident = ua.indexOf('Trident/');\n      if (trident > 0) {\n        // IE 11 => return version number\n        var rv = ua.indexOf('rv:');\n        return true;\n      }\n      var edge = ua.indexOf('Edge/');\n      if (edge > 0) {\n        // Edge (IE 12+) => return version number\n        return true;\n      }\n      // other browser\n      return false;\n    }\n    static isIOS() {\n      return /iPad|iPhone|iPod/.test(navigator.userAgent) && !window['MSStream'];\n    }\n    static isAndroid() {\n      return /(android)/i.test(navigator.userAgent);\n    }\n    static isTouchDevice() {\n      return 'ontouchstart' in window || navigator.maxTouchPoints > 0;\n    }\n    static appendChild(element, target) {\n      if (this.isElement(target)) target.appendChild(element);else if (target && target.el && target.el.nativeElement) target.el.nativeElement.appendChild(element);else throw 'Cannot append ' + target + ' to ' + element;\n    }\n    static removeChild(element, target) {\n      if (this.isElement(target)) target.removeChild(element);else if (target.el && target.el.nativeElement) target.el.nativeElement.removeChild(element);else throw 'Cannot remove ' + element + ' from ' + target;\n    }\n    static removeElement(element) {\n      if (!('remove' in Element.prototype)) element.parentNode.removeChild(element);else element.remove();\n    }\n    static isElement(obj) {\n      return typeof HTMLElement === 'object' ? obj instanceof HTMLElement : obj && typeof obj === 'object' && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === 'string';\n    }\n    static calculateScrollbarWidth(el) {\n      if (el) {\n        let style = getComputedStyle(el);\n        return el.offsetWidth - el.clientWidth - parseFloat(style.borderLeftWidth) - parseFloat(style.borderRightWidth);\n      } else {\n        if (this.calculatedScrollbarWidth !== null) return this.calculatedScrollbarWidth;\n        let scrollDiv = document.createElement('div');\n        scrollDiv.className = 'p-scrollbar-measure';\n        document.body.appendChild(scrollDiv);\n        let scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n        document.body.removeChild(scrollDiv);\n        this.calculatedScrollbarWidth = scrollbarWidth;\n        return scrollbarWidth;\n      }\n    }\n    static calculateScrollbarHeight() {\n      if (this.calculatedScrollbarHeight !== null) return this.calculatedScrollbarHeight;\n      let scrollDiv = document.createElement('div');\n      scrollDiv.className = 'p-scrollbar-measure';\n      document.body.appendChild(scrollDiv);\n      let scrollbarHeight = scrollDiv.offsetHeight - scrollDiv.clientHeight;\n      document.body.removeChild(scrollDiv);\n      this.calculatedScrollbarWidth = scrollbarHeight;\n      return scrollbarHeight;\n    }\n    static invokeElementMethod(element, methodName, args) {\n      element[methodName].apply(element, args);\n    }\n    static clearSelection() {\n      if (window.getSelection) {\n        if (window.getSelection().empty) {\n          window.getSelection().empty();\n        } else if (window.getSelection().removeAllRanges && window.getSelection().rangeCount > 0 && window.getSelection().getRangeAt(0).getClientRects().length > 0) {\n          window.getSelection().removeAllRanges();\n        }\n      } else if (document['selection'] && document['selection'].empty) {\n        try {\n          document['selection'].empty();\n        } catch (error) {\n          //ignore IE bug\n        }\n      }\n    }\n    static getBrowser() {\n      if (!this.browser) {\n        let matched = this.resolveUserAgent();\n        this.browser = {};\n        if (matched.browser) {\n          this.browser[matched.browser] = true;\n          this.browser['version'] = matched.version;\n        }\n        if (this.browser['chrome']) {\n          this.browser['webkit'] = true;\n        } else if (this.browser['webkit']) {\n          this.browser['safari'] = true;\n        }\n      }\n      return this.browser;\n    }\n    static resolveUserAgent() {\n      let ua = navigator.userAgent.toLowerCase();\n      let match = /(chrome)[ \\/]([\\w.]+)/.exec(ua) || /(webkit)[ \\/]([\\w.]+)/.exec(ua) || /(opera)(?:.*version|)[ \\/]([\\w.]+)/.exec(ua) || /(msie) ([\\w.]+)/.exec(ua) || ua.indexOf('compatible') < 0 && /(mozilla)(?:.*? rv:([\\w.]+)|)/.exec(ua) || [];\n      return {\n        browser: match[1] || '',\n        version: match[2] || '0'\n      };\n    }\n    static isInteger(value) {\n      if (Number.isInteger) {\n        return Number.isInteger(value);\n      } else {\n        return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;\n      }\n    }\n    static isHidden(element) {\n      return !element || element.offsetParent === null;\n    }\n    static isVisible(element) {\n      return element && element.offsetParent != null;\n    }\n    static isExist(element) {\n      return element !== null && typeof element !== 'undefined' && element.nodeName && element.parentNode;\n    }\n    static focus(element, options) {\n      element && document.activeElement !== element && element.focus(options);\n    }\n    static getFocusableSelectorString(selector = '') {\n      return `button:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n        [href][clientHeight][clientWidth]:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n        input:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n        select:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n        textarea:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n        [tabIndex]:not([tabIndex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n        [contenteditable]:not([tabIndex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n        .p-inputtext:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n        .p-button:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector}`;\n    }\n    static getFocusableElements(element, selector = '') {\n      let focusableElements = this.find(element, this.getFocusableSelectorString(selector));\n      let visibleFocusableElements = [];\n      for (let focusableElement of focusableElements) {\n        const computedStyle = getComputedStyle(focusableElement);\n        if (this.isVisible(focusableElement) && computedStyle.display != 'none' && computedStyle.visibility != 'hidden') visibleFocusableElements.push(focusableElement);\n      }\n      return visibleFocusableElements;\n    }\n    static getFocusableElement(element, selector = '') {\n      let focusableElement = this.findSingle(element, this.getFocusableSelectorString(selector));\n      if (focusableElement) {\n        const computedStyle = getComputedStyle(focusableElement);\n        if (this.isVisible(focusableElement) && computedStyle.display != 'none' && computedStyle.visibility != 'hidden') return focusableElement;\n      }\n      return null;\n    }\n    static getFirstFocusableElement(element, selector = '') {\n      const focusableElements = this.getFocusableElements(element, selector);\n      return focusableElements.length > 0 ? focusableElements[0] : null;\n    }\n    static getLastFocusableElement(element, selector) {\n      const focusableElements = this.getFocusableElements(element, selector);\n      return focusableElements.length > 0 ? focusableElements[focusableElements.length - 1] : null;\n    }\n    static getNextFocusableElement(element, reverse = false) {\n      const focusableElements = DomHandler.getFocusableElements(element);\n      let index = 0;\n      if (focusableElements && focusableElements.length > 0) {\n        const focusedIndex = focusableElements.indexOf(focusableElements[0].ownerDocument.activeElement);\n        if (reverse) {\n          if (focusedIndex == -1 || focusedIndex === 0) {\n            index = focusableElements.length - 1;\n          } else {\n            index = focusedIndex - 1;\n          }\n        } else if (focusedIndex != -1 && focusedIndex !== focusableElements.length - 1) {\n          index = focusedIndex + 1;\n        }\n      }\n      return focusableElements[index];\n    }\n    static generateZIndex() {\n      this.zindex = this.zindex || 999;\n      return ++this.zindex;\n    }\n    static getSelection() {\n      if (window.getSelection) return window.getSelection().toString();else if (document.getSelection) return document.getSelection().toString();else if (document['selection']) return document['selection'].createRange().text;\n      return null;\n    }\n    static getTargetElement(target, el) {\n      if (!target) return null;\n      switch (target) {\n        case 'document':\n          return document;\n        case 'window':\n          return window;\n        case '@next':\n          return el?.nextElementSibling;\n        case '@prev':\n          return el?.previousElementSibling;\n        case '@parent':\n          return el?.parentElement;\n        case '@grandparent':\n          return el?.parentElement.parentElement;\n        default:\n          const type = typeof target;\n          if (type === 'string') {\n            return document.querySelector(target);\n          } else if (type === 'object' && target.hasOwnProperty('nativeElement')) {\n            return this.isExist(target.nativeElement) ? target.nativeElement : undefined;\n          }\n          const isFunction = obj => !!(obj && obj.constructor && obj.call && obj.apply);\n          const element = isFunction(target) ? target() : target;\n          return element && element.nodeType === 9 || this.isExist(element) ? element : null;\n      }\n    }\n    static isClient() {\n      return !!(typeof window !== 'undefined' && window.document && window.document.createElement);\n    }\n    static getAttribute(element, name) {\n      if (element) {\n        const value = element.getAttribute(name);\n        if (!isNaN(value)) {\n          return +value;\n        }\n        if (value === 'true' || value === 'false') {\n          return value === 'true';\n        }\n        return value;\n      }\n      return undefined;\n    }\n    static calculateBodyScrollbarWidth() {\n      return window.innerWidth - document.documentElement.offsetWidth;\n    }\n    static blockBodyScroll(className = 'p-overflow-hidden') {\n      document.body.style.setProperty('--scrollbar-width', this.calculateBodyScrollbarWidth() + 'px');\n      this.addClass(document.body, className);\n    }\n    static unblockBodyScroll(className = 'p-overflow-hidden') {\n      document.body.style.removeProperty('--scrollbar-width');\n      this.removeClass(document.body, className);\n    }\n    static createElement(type, attributes = {}, ...children) {\n      if (type) {\n        const element = document.createElement(type);\n        this.setAttributes(element, attributes);\n        element.append(...children);\n        return element;\n      }\n      return undefined;\n    }\n    static setAttribute(element, attribute = '', value) {\n      if (this.isElement(element) && value !== null && value !== undefined) {\n        element.setAttribute(attribute, value);\n      }\n    }\n    static setAttributes(element, attributes = {}) {\n      if (this.isElement(element)) {\n        const computedStyles = (rule, value) => {\n          const styles = element?.$attrs?.[rule] ? [element?.$attrs?.[rule]] : [];\n          return [value].flat().reduce((cv, v) => {\n            if (v !== null && v !== undefined) {\n              const type = typeof v;\n              if (type === 'string' || type === 'number') {\n                cv.push(v);\n              } else if (type === 'object') {\n                const _cv = Array.isArray(v) ? computedStyles(rule, v) : Object.entries(v).map(([_k, _v]) => rule === 'style' && (!!_v || _v === 0) ? `${_k.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase()}:${_v}` : !!_v ? _k : undefined);\n                cv = _cv.length ? cv.concat(_cv.filter(c => !!c)) : cv;\n              }\n            }\n            return cv;\n          }, styles);\n        };\n        Object.entries(attributes).forEach(([key, value]) => {\n          if (value !== undefined && value !== null) {\n            const matchedEvent = key.match(/^on(.+)/);\n            if (matchedEvent) {\n              element.addEventListener(matchedEvent[1].toLowerCase(), value);\n            } else if (key === 'pBind') {\n              this.setAttributes(element, value);\n            } else {\n              value = key === 'class' ? [...new Set(computedStyles('class', value))].join(' ').trim() : key === 'style' ? computedStyles('style', value).join(';').trim() : value;\n              (element.$attrs = element.$attrs || {}) && (element.$attrs[key] = value);\n              element.setAttribute(key, value);\n            }\n          }\n        });\n      }\n    }\n    static isFocusableElement(element, selector = '') {\n      return this.isElement(element) ? element.matches(`button:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n                [href][clientHeight][clientWidth]:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n                input:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n                select:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n                textarea:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n                [tabIndex]:not([tabIndex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector},\n                [contenteditable]:not([tabIndex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])${selector}`) : false;\n    }\n  }\n  return DomHandler;\n})();\nclass ConnectedOverlayScrollHandler {\n  element;\n  listener;\n  scrollableParents;\n  constructor(element, listener = () => {}) {\n    this.element = element;\n    this.listener = listener;\n  }\n  bindScrollListener() {\n    this.scrollableParents = DomHandler.getScrollableParents(this.element);\n    for (let i = 0; i < this.scrollableParents.length; i++) {\n      this.scrollableParents[i].addEventListener('scroll', this.listener);\n    }\n  }\n  unbindScrollListener() {\n    if (this.scrollableParents) {\n      for (let i = 0; i < this.scrollableParents.length; i++) {\n        this.scrollableParents[i].removeEventListener('scroll', this.listener);\n      }\n    }\n  }\n  destroy() {\n    this.unbindScrollListener();\n    this.element = null;\n    this.listener = null;\n    this.scrollableParents = null;\n  }\n}\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ConnectedOverlayScrollHandler, DomHandler };\n","import { isPlatformBrowser, DOCUMENT } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { PLATFORM_ID, Directive, Inject, Optional, NgModule } from '@angular/core';\nimport { DomHandler } from 'primeng/dom';\nimport * as i1 from 'primeng/api';\n\n/**\n * Ripple directive adds ripple effect to the host element.\n * @group Components\n */\nlet Ripple = /*#__PURE__*/(() => {\n  class Ripple {\n    document;\n    platformId;\n    renderer;\n    el;\n    zone;\n    config;\n    constructor(document, platformId, renderer, el, zone, config) {\n      this.document = document;\n      this.platformId = platformId;\n      this.renderer = renderer;\n      this.el = el;\n      this.zone = zone;\n      this.config = config;\n    }\n    animationListener;\n    mouseDownListener;\n    timeout;\n    ngAfterViewInit() {\n      if (isPlatformBrowser(this.platformId)) {\n        if (this.config && this.config.ripple) {\n          this.zone.runOutsideAngular(() => {\n            this.create();\n            this.mouseDownListener = this.renderer.listen(this.el.nativeElement, 'mousedown', this.onMouseDown.bind(this));\n          });\n        }\n      }\n    }\n    onMouseDown(event) {\n      let ink = this.getInk();\n      if (!ink || this.document.defaultView?.getComputedStyle(ink, null).display === 'none') {\n        return;\n      }\n      DomHandler.removeClass(ink, 'p-ink-active');\n      if (!DomHandler.getHeight(ink) && !DomHandler.getWidth(ink)) {\n        let d = Math.max(DomHandler.getOuterWidth(this.el.nativeElement), DomHandler.getOuterHeight(this.el.nativeElement));\n        ink.style.height = d + 'px';\n        ink.style.width = d + 'px';\n      }\n      let offset = DomHandler.getOffset(this.el.nativeElement);\n      let x = event.pageX - offset.left + this.document.body.scrollTop - DomHandler.getWidth(ink) / 2;\n      let y = event.pageY - offset.top + this.document.body.scrollLeft - DomHandler.getHeight(ink) / 2;\n      this.renderer.setStyle(ink, 'top', y + 'px');\n      this.renderer.setStyle(ink, 'left', x + 'px');\n      DomHandler.addClass(ink, 'p-ink-active');\n      this.timeout = setTimeout(() => {\n        let ink = this.getInk();\n        if (ink) {\n          DomHandler.removeClass(ink, 'p-ink-active');\n        }\n      }, 401);\n    }\n    getInk() {\n      const children = this.el.nativeElement.children;\n      for (let i = 0; i < children.length; i++) {\n        if (typeof children[i].className === 'string' && children[i].className.indexOf('p-ink') !== -1) {\n          return children[i];\n        }\n      }\n      return null;\n    }\n    resetInk() {\n      let ink = this.getInk();\n      if (ink) {\n        DomHandler.removeClass(ink, 'p-ink-active');\n      }\n    }\n    onAnimationEnd(event) {\n      if (this.timeout) {\n        clearTimeout(this.timeout);\n      }\n      DomHandler.removeClass(event.currentTarget, 'p-ink-active');\n    }\n    create() {\n      let ink = this.renderer.createElement('span');\n      this.renderer.addClass(ink, 'p-ink');\n      this.renderer.appendChild(this.el.nativeElement, ink);\n      this.renderer.setAttribute(ink, 'aria-hidden', 'true');\n      this.renderer.setAttribute(ink, 'role', 'presentation');\n      if (!this.animationListener) {\n        this.animationListener = this.renderer.listen(ink, 'animationend', this.onAnimationEnd.bind(this));\n      }\n    }\n    remove() {\n      let ink = this.getInk();\n      if (ink) {\n        this.mouseDownListener && this.mouseDownListener();\n        this.animationListener && this.animationListener();\n        this.mouseDownListener = null;\n        this.animationListener = null;\n        DomHandler.removeElement(ink);\n      }\n    }\n    ngOnDestroy() {\n      if (this.config && this.config.ripple) {\n        this.remove();\n      }\n    }\n    static ɵfac = function Ripple_Factory(t) {\n      return new (t || Ripple)(i0.ɵɵdirectiveInject(DOCUMENT), i0.ɵɵdirectiveInject(PLATFORM_ID), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i1.PrimeNGConfig, 8));\n    };\n    static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n      type: Ripple,\n      selectors: [[\"\", \"pRipple\", \"\"]],\n      hostAttrs: [1, \"p-ripple\", \"p-element\"],\n      standalone: true\n    });\n  }\n  return Ripple;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet RippleModule = /*#__PURE__*/(() => {\n  class RippleModule {\n    static ɵfac = function RippleModule_Factory(t) {\n      return new (t || RippleModule)();\n    };\n    static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n      type: RippleModule\n    });\n    static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({});\n  }\n  return RippleModule;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { Ripple, RippleModule };\n","import * as i2 from '@angular/common';\nimport { isPlatformBrowser, DOCUMENT, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { EventEmitter, PLATFORM_ID, booleanAttribute, numberAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Inject, Input, Output, ViewChild, ContentChild, ContentChildren, NgModule } from '@angular/core';\nimport * as i1 from 'primeng/api';\nimport { Header, Footer, PrimeTemplate, SharedModule } from 'primeng/api';\nimport { ChevronDownIcon } from 'primeng/icons/chevrondown';\nimport { ChevronLeftIcon } from 'primeng/icons/chevronleft';\nimport { ChevronRightIcon } from 'primeng/icons/chevronright';\nimport { ChevronUpIcon } from 'primeng/icons/chevronup';\nimport * as i3 from 'primeng/ripple';\nimport { RippleModule } from 'primeng/ripple';\nimport { UniqueComponentId } from 'primeng/utils';\nimport { DomHandler } from 'primeng/dom';\n\n/**\n * Carousel is a content slider featuring various customization options.\n * @group Components\n */\nconst _c0 = [\"itemsContainer\"];\nconst _c1 = [\"indicatorContent\"];\nconst _c2 = [[[\"p-header\"]], [[\"p-footer\"]]];\nconst _c3 = [\"p-header\", \"p-footer\"];\nconst _c4 = (a0, a1) => ({\n  \"p-carousel p-component\": true,\n  \"p-carousel-vertical\": a0,\n  \"p-carousel-horizontal\": a1\n});\nconst _c5 = a0 => ({\n  height: a0\n});\nconst _c6 = a0 => ({\n  \"p-carousel-prev p-link\": true,\n  \"p-disabled\": a0\n});\nconst _c7 = (a0, a1, a2) => ({\n  \"p-carousel-item p-carousel-item-cloned\": true,\n  \"p-carousel-item-active\": a0,\n  \"p-carousel-item-start\": a1,\n  \"p-carousel-item-end\": a2\n});\nconst _c8 = a0 => ({\n  $implicit: a0\n});\nconst _c9 = (a0, a1, a2) => ({\n  \"p-carousel-item\": true,\n  \"p-carousel-item-active\": a0,\n  \"p-carousel-item-start\": a1,\n  \"p-carousel-item-end\": a2\n});\nconst _c10 = a0 => ({\n  \"p-carousel-next p-link\": true,\n  \"p-disabled\": a0\n});\nconst _c11 = a0 => ({\n  \"p-carousel-indicator\": true,\n  \"p-highlight\": a0\n});\nfunction Carousel_div_1_ng_container_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainer(0);\n  }\n}\nfunction Carousel_div_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\", 12);\n    i0.ɵɵprojection(1);\n    i0.ɵɵtemplate(2, Carousel_div_1_ng_container_2_Template, 1, 0, \"ng-container\", 13);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const ctx_r1 = i0.ɵɵnextContext();\n    i0.ɵɵadvance(2);\n    i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.headerTemplate);\n  }\n}\nfunction Carousel_button_4_ng_container_1_ChevronLeftIcon_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"ChevronLeftIcon\", 18);\n  }\n  if (rf & 2) {\n    i0.ɵɵproperty(\"styleClass\", \"carousel-prev-icon\");\n  }\n}\nfunction Carousel_button_4_ng_container_1_ChevronUpIcon_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"ChevronUpIcon\", 18);\n  }\n  if (rf & 2) {\n    i0.ɵɵproperty(\"styleClass\", \"carousel-prev-icon\");\n  }\n}\nfunction Carousel_button_4_ng_container_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainerStart(0);\n    i0.ɵɵtemplate(1, Carousel_button_4_ng_container_1_ChevronLeftIcon_1_Template, 1, 1, \"ChevronLeftIcon\", 17)(2, Carousel_button_4_ng_container_1_ChevronUpIcon_2_Template, 1, 1, \"ChevronUpIcon\", 17);\n    i0.ɵɵelementContainerEnd();\n  }\n  if (rf & 2) {\n    const ctx_r1 = i0.ɵɵnextContext(2);\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngIf\", !ctx_r1.isVertical());\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngIf\", ctx_r1.isVertical());\n  }\n}\nfunction Carousel_button_4_span_2_1_ng_template_0_Template(rf, ctx) {}\nfunction Carousel_button_4_span_2_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵtemplate(0, Carousel_button_4_span_2_1_ng_template_0_Template, 0, 0, \"ng-template\");\n  }\n}\nfunction Carousel_button_4_span_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"span\", 19);\n    i0.ɵɵtemplate(1, Carousel_button_4_span_2_1_Template, 1, 0, null, 13);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const ctx_r1 = i0.ɵɵnextContext(2);\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.previousIconTemplate);\n  }\n}\nfunction Carousel_button_4_Template(rf, ctx) {\n  if (rf & 1) {\n    const _r3 = i0.ɵɵgetCurrentView();\n    i0.ɵɵelementStart(0, \"button\", 14);\n    i0.ɵɵlistener(\"click\", function Carousel_button_4_Template_button_click_0_listener($event) {\n      i0.ɵɵrestoreView(_r3);\n      const ctx_r1 = i0.ɵɵnextContext();\n      return i0.ɵɵresetView(ctx_r1.navBackward($event));\n    });\n    i0.ɵɵtemplate(1, Carousel_button_4_ng_container_1_Template, 3, 2, \"ng-container\", 15)(2, Carousel_button_4_span_2_Template, 2, 1, \"span\", 16);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const ctx_r1 = i0.ɵɵnextContext();\n    i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction1(5, _c6, ctx_r1.isBackwardNavDisabled()))(\"disabled\", ctx_r1.isBackwardNavDisabled());\n    i0.ɵɵattribute(\"aria-label\", ctx_r1.ariaPrevButtonLabel());\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngIf\", !ctx_r1.previousIconTemplate);\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngIf\", ctx_r1.previousIconTemplate);\n  }\n}\nfunction Carousel_div_8_ng_container_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainer(0);\n  }\n}\nfunction Carousel_div_8_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\", 4);\n    i0.ɵɵtemplate(1, Carousel_div_8_ng_container_1_Template, 1, 0, \"ng-container\", 20);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const item_r4 = ctx.$implicit;\n    const index_r5 = ctx.index;\n    const ctx_r1 = i0.ɵɵnextContext();\n    i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction3(6, _c7, ctx_r1.totalShiftedItems * -1 === ctx_r1.value.length, 0 === index_r5, ctx_r1.clonedItemsForStarting.length - 1 === index_r5));\n    i0.ɵɵattribute(\"aria-hidden\", !(ctx_r1.totalShiftedItems * -1 === ctx_r1.value.length))(\"aria-label\", ctx_r1.ariaSlideNumber(index_r5))(\"aria-roledescription\", ctx_r1.ariaSlideLabel());\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.itemTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(10, _c8, item_r4));\n  }\n}\nfunction Carousel_div_9_ng_container_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainer(0);\n  }\n}\nfunction Carousel_div_9_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\", 4);\n    i0.ɵɵtemplate(1, Carousel_div_9_ng_container_1_Template, 1, 0, \"ng-container\", 20);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const item_r6 = ctx.$implicit;\n    const index_r7 = ctx.index;\n    const ctx_r1 = i0.ɵɵnextContext();\n    i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction3(6, _c9, ctx_r1.firstIndex() <= index_r7 && ctx_r1.lastIndex() >= index_r7, ctx_r1.firstIndex() === index_r7, ctx_r1.lastIndex() === index_r7));\n    i0.ɵɵattribute(\"aria-hidden\", !(ctx_r1.totalShiftedItems * -1 === ctx_r1.value.length))(\"aria-label\", ctx_r1.ariaSlideNumber(index_r7))(\"aria-roledescription\", ctx_r1.ariaSlideLabel());\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.itemTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(10, _c8, item_r6));\n  }\n}\nfunction Carousel_div_10_ng_container_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainer(0);\n  }\n}\nfunction Carousel_div_10_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\", 4);\n    i0.ɵɵtemplate(1, Carousel_div_10_ng_container_1_Template, 1, 0, \"ng-container\", 20);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const item_r8 = ctx.$implicit;\n    const index_r9 = ctx.index;\n    const ctx_r1 = i0.ɵɵnextContext();\n    i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction3(3, _c7, ctx_r1.totalShiftedItems * -1 === ctx_r1.numVisible, 0 === index_r9, ctx_r1.clonedItemsForFinishing.length - 1 === index_r9));\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.itemTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(7, _c8, item_r8));\n  }\n}\nfunction Carousel_button_11_ng_container_1_ChevronRightIcon_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"ChevronRightIcon\", 18);\n  }\n  if (rf & 2) {\n    i0.ɵɵproperty(\"styleClass\", \"carousel-prev-icon\");\n  }\n}\nfunction Carousel_button_11_ng_container_1_ChevronDownIcon_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"ChevronDownIcon\", 18);\n  }\n  if (rf & 2) {\n    i0.ɵɵproperty(\"styleClass\", \"carousel-prev-icon\");\n  }\n}\nfunction Carousel_button_11_ng_container_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainerStart(0);\n    i0.ɵɵtemplate(1, Carousel_button_11_ng_container_1_ChevronRightIcon_1_Template, 1, 1, \"ChevronRightIcon\", 17)(2, Carousel_button_11_ng_container_1_ChevronDownIcon_2_Template, 1, 1, \"ChevronDownIcon\", 17);\n    i0.ɵɵelementContainerEnd();\n  }\n  if (rf & 2) {\n    const ctx_r1 = i0.ɵɵnextContext(2);\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngIf\", !ctx_r1.isVertical());\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngIf\", ctx_r1.isVertical());\n  }\n}\nfunction Carousel_button_11_span_2_1_ng_template_0_Template(rf, ctx) {}\nfunction Carousel_button_11_span_2_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵtemplate(0, Carousel_button_11_span_2_1_ng_template_0_Template, 0, 0, \"ng-template\");\n  }\n}\nfunction Carousel_button_11_span_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"span\", 19);\n    i0.ɵɵtemplate(1, Carousel_button_11_span_2_1_Template, 1, 0, null, 13);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const ctx_r1 = i0.ɵɵnextContext(2);\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.nextIconTemplate);\n  }\n}\nfunction Carousel_button_11_Template(rf, ctx) {\n  if (rf & 1) {\n    const _r10 = i0.ɵɵgetCurrentView();\n    i0.ɵɵelementStart(0, \"button\", 14);\n    i0.ɵɵlistener(\"click\", function Carousel_button_11_Template_button_click_0_listener($event) {\n      i0.ɵɵrestoreView(_r10);\n      const ctx_r1 = i0.ɵɵnextContext();\n      return i0.ɵɵresetView(ctx_r1.navForward($event));\n    });\n    i0.ɵɵtemplate(1, Carousel_button_11_ng_container_1_Template, 3, 2, \"ng-container\", 15)(2, Carousel_button_11_span_2_Template, 2, 1, \"span\", 16);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const ctx_r1 = i0.ɵɵnextContext();\n    i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction1(5, _c10, ctx_r1.isForwardNavDisabled()))(\"disabled\", ctx_r1.isForwardNavDisabled());\n    i0.ɵɵattribute(\"aria-label\", ctx_r1.ariaNextButtonLabel());\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngIf\", !ctx_r1.nextIconTemplate);\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngIf\", ctx_r1.nextIconTemplate);\n  }\n}\nfunction Carousel_ul_12_li_2_Template(rf, ctx) {\n  if (rf & 1) {\n    const _r12 = i0.ɵɵgetCurrentView();\n    i0.ɵɵelementStart(0, \"li\", 4)(1, \"button\", 22);\n    i0.ɵɵlistener(\"click\", function Carousel_ul_12_li_2_Template_button_click_1_listener($event) {\n      const i_r13 = i0.ɵɵrestoreView(_r12).index;\n      const ctx_r1 = i0.ɵɵnextContext(2);\n      return i0.ɵɵresetView(ctx_r1.onDotClick($event, i_r13));\n    });\n    i0.ɵɵelementEnd()();\n  }\n  if (rf & 2) {\n    const i_r13 = ctx.index;\n    const ctx_r1 = i0.ɵɵnextContext(2);\n    i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction1(9, _c11, ctx_r1._page === i_r13));\n    i0.ɵɵattribute(\"data-pc-section\", \"indicator\");\n    i0.ɵɵadvance();\n    i0.ɵɵclassMap(ctx_r1.indicatorStyleClass);\n    i0.ɵɵproperty(\"ngClass\", \"p-link\")(\"ngStyle\", ctx_r1.indicatorStyle)(\"tabindex\", ctx_r1._page === i_r13 ? 0 : -1);\n    i0.ɵɵattribute(\"aria-label\", ctx_r1.ariaPageLabel(i_r13 + 1))(\"aria-current\", ctx_r1._page === i_r13 ? \"page\" : undefined);\n  }\n}\nfunction Carousel_ul_12_Template(rf, ctx) {\n  if (rf & 1) {\n    const _r11 = i0.ɵɵgetCurrentView();\n    i0.ɵɵelementStart(0, \"ul\", 21, 1);\n    i0.ɵɵlistener(\"keydown\", function Carousel_ul_12_Template_ul_keydown_0_listener($event) {\n      i0.ɵɵrestoreView(_r11);\n      const ctx_r1 = i0.ɵɵnextContext();\n      return i0.ɵɵresetView(ctx_r1.onIndicatorKeydown($event));\n    });\n    i0.ɵɵtemplate(2, Carousel_ul_12_li_2_Template, 2, 11, \"li\", 9);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const ctx_r1 = i0.ɵɵnextContext();\n    i0.ɵɵclassMap(ctx_r1.indicatorsContentClass);\n    i0.ɵɵproperty(\"ngClass\", \"p-carousel-indicators p-reset\")(\"ngStyle\", ctx_r1.indicatorsContentStyle);\n    i0.ɵɵadvance(2);\n    i0.ɵɵproperty(\"ngForOf\", ctx_r1.totalDotsArray());\n  }\n}\nfunction Carousel_div_13_ng_container_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainer(0);\n  }\n}\nfunction Carousel_div_13_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\", 23);\n    i0.ɵɵprojection(1, 1);\n    i0.ɵɵtemplate(2, Carousel_div_13_ng_container_2_Template, 1, 0, \"ng-container\", 13);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const ctx_r1 = i0.ɵɵnextContext();\n    i0.ɵɵadvance(2);\n    i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.footerTemplate);\n  }\n}\nlet Carousel = /*#__PURE__*/(() => {\n  class Carousel {\n    el;\n    zone;\n    cd;\n    renderer;\n    document;\n    platformId;\n    config;\n    /**\n     * Index of the first item.\n     * @defaultValue 0\n     * @group Props\n     */\n    get page() {\n      return this._page;\n    }\n    set page(val) {\n      if (this.isCreated && val !== this._page) {\n        if (this.autoplayInterval) {\n          this.stopAutoplay();\n        }\n        if (val > this._page && val <= this.totalDots() - 1) {\n          this.step(-1, val);\n        } else if (val < this._page) {\n          this.step(1, val);\n        }\n      }\n      this._page = val;\n    }\n    /**\n     * Number of items per page.\n     * @defaultValue 1\n     * @group Props\n     */\n    get numVisible() {\n      return this._numVisible;\n    }\n    set numVisible(val) {\n      this._numVisible = val;\n    }\n    /**\n     * Number of items to scroll.\n     * @defaultValue 1\n     * @group Props\n     */\n    get numScroll() {\n      return this._numVisible;\n    }\n    set numScroll(val) {\n      this._numScroll = val;\n    }\n    /**\n     * An array of options for responsive design.\n     * @see {CarouselResponsiveOptions}\n     * @group Props\n     */\n    responsiveOptions;\n    /**\n     * Specifies the layout of the component.\n     * @group Props\n     */\n    orientation = 'horizontal';\n    /**\n     * Height of the viewport in vertical layout.\n     * @group Props\n     */\n    verticalViewPortHeight = '300px';\n    /**\n     * Style class of main content.\n     * @group Props\n     */\n    contentClass = '';\n    /**\n     * Style class of the indicator items.\n     * @group Props\n     */\n    indicatorsContentClass = '';\n    /**\n     * Inline style of the indicator items.\n     * @group Props\n     */\n    indicatorsContentStyle;\n    /**\n     * Style class of the indicators.\n     * @group Props\n     */\n    indicatorStyleClass = '';\n    /**\n     * Style of the indicators.\n     * @group Props\n     */\n    indicatorStyle;\n    /**\n     * An array of objects to display.\n     * @defaultValue null\n     * @group Props\n     */\n    get value() {\n      return this._value;\n    }\n    set value(val) {\n      this._value = val;\n    }\n    /**\n     * Defines if scrolling would be infinite.\n     * @group Props\n     */\n    circular = false;\n    /**\n     * Whether to display indicator container.\n     * @group Props\n     */\n    showIndicators = true;\n    /**\n     * Whether to display navigation buttons in container.\n     * @group Props\n     */\n    showNavigators = true;\n    /**\n     * Time in milliseconds to scroll items automatically.\n     * @group Props\n     */\n    autoplayInterval = 0;\n    /**\n     * Inline style of the component.\n     * @group Props\n     */\n    style;\n    /**\n     * Style class of the viewport container.\n     * @group Props\n     */\n    styleClass;\n    /**\n     * Callback to invoke after scroll.\n     * @param {CarouselPageEvent} event - Custom page event.\n     * @group Emits\n     */\n    onPage = new EventEmitter();\n    itemsContainer;\n    indicatorContent;\n    headerFacet;\n    footerFacet;\n    templates;\n    _numVisible = 1;\n    _numScroll = 1;\n    _oldNumScroll = 0;\n    prevState = {\n      numScroll: 0,\n      numVisible: 0,\n      value: []\n    };\n    defaultNumScroll = 1;\n    defaultNumVisible = 1;\n    _page = 0;\n    _value;\n    carouselStyle;\n    id;\n    totalShiftedItems;\n    isRemainingItemsAdded = false;\n    animationTimeout;\n    translateTimeout;\n    remainingItems = 0;\n    _items;\n    startPos;\n    documentResizeListener;\n    clonedItemsForStarting;\n    clonedItemsForFinishing;\n    allowAutoplay;\n    interval;\n    isCreated;\n    swipeThreshold = 20;\n    itemTemplate;\n    headerTemplate;\n    footerTemplate;\n    previousIconTemplate;\n    nextIconTemplate;\n    window;\n    constructor(el, zone, cd, renderer, document, platformId, config) {\n      this.el = el;\n      this.zone = zone;\n      this.cd = cd;\n      this.renderer = renderer;\n      this.document = document;\n      this.platformId = platformId;\n      this.config = config;\n      this.totalShiftedItems = this.page * this.numScroll * -1;\n      this.window = this.document.defaultView;\n    }\n    ngOnChanges(simpleChange) {\n      if (isPlatformBrowser(this.platformId)) {\n        if (simpleChange.value) {\n          if (this.circular && this._value) {\n            this.setCloneItems();\n          }\n        }\n        if (this.isCreated) {\n          if (simpleChange.numVisible) {\n            if (this.responsiveOptions) {\n              this.defaultNumVisible = this.numVisible;\n            }\n            if (this.isCircular()) {\n              this.setCloneItems();\n            }\n            this.createStyle();\n            this.calculatePosition();\n          }\n          if (simpleChange.numScroll) {\n            if (this.responsiveOptions) {\n              this.defaultNumScroll = this.numScroll;\n            }\n          }\n        }\n      }\n      this.cd.markForCheck();\n    }\n    ngAfterContentInit() {\n      this.id = UniqueComponentId();\n      if (isPlatformBrowser(this.platformId)) {\n        this.allowAutoplay = !!this.autoplayInterval;\n        if (this.circular) {\n          this.setCloneItems();\n        }\n        if (this.responsiveOptions) {\n          this.defaultNumScroll = this._numScroll;\n          this.defaultNumVisible = this._numVisible;\n        }\n        this.createStyle();\n        this.calculatePosition();\n        if (this.responsiveOptions) {\n          this.bindDocumentListeners();\n        }\n      }\n      this.templates?.forEach(item => {\n        switch (item.getType()) {\n          case 'item':\n            this.itemTemplate = item.template;\n            break;\n          case 'header':\n            this.headerTemplate = item.template;\n            break;\n          case 'footer':\n            this.footerTemplate = item.template;\n            break;\n          case 'previousicon':\n            this.previousIconTemplate = item.template;\n            break;\n          case 'nexticon':\n            this.nextIconTemplate = item.template;\n            break;\n          default:\n            this.itemTemplate = item.template;\n            break;\n        }\n      });\n      this.cd.detectChanges();\n    }\n    ngAfterContentChecked() {\n      if (isPlatformBrowser(this.platformId)) {\n        const isCircular = this.isCircular();\n        let totalShiftedItems = this.totalShiftedItems;\n        if (this.value && this.itemsContainer && (this.prevState.numScroll !== this._numScroll || this.prevState.numVisible !== this._numVisible || this.prevState.value.length !== this.value.length)) {\n          if (this.autoplayInterval) {\n            this.stopAutoplay(false);\n          }\n          this.remainingItems = (this.value.length - this._numVisible) % this._numScroll;\n          let page = this._page;\n          if (this.totalDots() !== 0 && page >= this.totalDots()) {\n            page = this.totalDots() - 1;\n            this._page = page;\n            this.onPage.emit({\n              page: this.page\n            });\n          }\n          totalShiftedItems = page * this._numScroll * -1;\n          if (isCircular) {\n            totalShiftedItems -= this._numVisible;\n          }\n          if (page === this.totalDots() - 1 && this.remainingItems > 0) {\n            totalShiftedItems += -1 * this.remainingItems + this._numScroll;\n            this.isRemainingItemsAdded = true;\n          } else {\n            this.isRemainingItemsAdded = false;\n          }\n          if (totalShiftedItems !== this.totalShiftedItems) {\n            this.totalShiftedItems = totalShiftedItems;\n          }\n          this._oldNumScroll = this._numScroll;\n          this.prevState.numScroll = this._numScroll;\n          this.prevState.numVisible = this._numVisible;\n          this.prevState.value = [...this._value];\n          if (this.totalDots() > 0 && this.itemsContainer.nativeElement) {\n            this.itemsContainer.nativeElement.style.transform = this.isVertical() ? `translate3d(0, ${totalShiftedItems * (100 / this._numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100 / this._numVisible)}%, 0, 0)`;\n          }\n          this.isCreated = true;\n          if (this.autoplayInterval && this.isAutoplay()) {\n            this.startAutoplay();\n          }\n        }\n        if (isCircular) {\n          if (this.page === 0) {\n            totalShiftedItems = -1 * this._numVisible;\n          } else if (totalShiftedItems === 0) {\n            totalShiftedItems = -1 * this.value.length;\n            if (this.remainingItems > 0) {\n              this.isRemainingItemsAdded = true;\n            }\n          }\n          if (totalShiftedItems !== this.totalShiftedItems) {\n            this.totalShiftedItems = totalShiftedItems;\n          }\n        }\n      }\n    }\n    createStyle() {\n      if (!this.carouselStyle) {\n        this.carouselStyle = this.renderer.createElement('style');\n        this.carouselStyle.type = 'text/css';\n        DomHandler.setAttribute(this.carouselStyle, 'nonce', this.config?.csp()?.nonce);\n        this.renderer.appendChild(this.document.head, this.carouselStyle);\n      }\n      let innerHTML = `\n            #${this.id} .p-carousel-item {\n\t\t\t\tflex: 1 0 ${100 / this.numVisible}%\n\t\t\t}\n        `;\n      if (this.responsiveOptions) {\n        this.responsiveOptions.sort((data1, data2) => {\n          const value1 = data1.breakpoint;\n          const value2 = data2.breakpoint;\n          let result = null;\n          if (value1 == null && value2 != null) result = -1;else if (value1 != null && value2 == null) result = 1;else if (value1 == null && value2 == null) result = 0;else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2, undefined, {\n            numeric: true\n          });else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;\n          return -1 * result;\n        });\n        for (let i = 0; i < this.responsiveOptions.length; i++) {\n          let res = this.responsiveOptions[i];\n          innerHTML += `\n                    @media screen and (max-width: ${res.breakpoint}) {\n                        #${this.id} .p-carousel-item {\n                            flex: 1 0 ${100 / res.numVisible}%\n                        }\n                    }\n                `;\n        }\n      }\n      this.carouselStyle.innerHTML = innerHTML;\n    }\n    calculatePosition() {\n      if (this.responsiveOptions) {\n        let matchedResponsiveData = {\n          numVisible: this.defaultNumVisible,\n          numScroll: this.defaultNumScroll\n        };\n        if (typeof window !== 'undefined') {\n          let windowWidth = window.innerWidth;\n          for (let i = 0; i < this.responsiveOptions.length; i++) {\n            let res = this.responsiveOptions[i];\n            if (parseInt(res.breakpoint, 10) >= windowWidth) {\n              matchedResponsiveData = res;\n            }\n          }\n        }\n        if (this._numScroll !== matchedResponsiveData.numScroll) {\n          let page = this._page;\n          page = Math.floor(page * this._numScroll / matchedResponsiveData.numScroll);\n          let totalShiftedItems = matchedResponsiveData.numScroll * this.page * -1;\n          if (this.isCircular()) {\n            totalShiftedItems -= matchedResponsiveData.numVisible;\n          }\n          this.totalShiftedItems = totalShiftedItems;\n          this._numScroll = matchedResponsiveData.numScroll;\n          this._page = page;\n          this.onPage.emit({\n            page: this.page\n          });\n        }\n        if (this._numVisible !== matchedResponsiveData.numVisible) {\n          this._numVisible = matchedResponsiveData.numVisible;\n          this.setCloneItems();\n        }\n        this.cd.markForCheck();\n      }\n    }\n    setCloneItems() {\n      this.clonedItemsForStarting = [];\n      this.clonedItemsForFinishing = [];\n      if (this.isCircular()) {\n        this.clonedItemsForStarting.push(...this.value.slice(-1 * this._numVisible));\n        this.clonedItemsForFinishing.push(...this.value.slice(0, this._numVisible));\n      }\n    }\n    firstIndex() {\n      return this.isCircular() ? -1 * (this.totalShiftedItems + this.numVisible) : this.totalShiftedItems * -1;\n    }\n    lastIndex() {\n      return this.firstIndex() + this.numVisible - 1;\n    }\n    totalDots() {\n      return this.value?.length ? Math.ceil((this.value.length - this._numVisible) / this._numScroll) + 1 : 0;\n    }\n    totalDotsArray() {\n      const totalDots = this.totalDots();\n      return totalDots <= 0 ? [] : Array(totalDots).fill(0);\n    }\n    isVertical() {\n      return this.orientation === 'vertical';\n    }\n    isCircular() {\n      return this.circular && this.value && this.value.length >= this.numVisible;\n    }\n    isAutoplay() {\n      return this.autoplayInterval && this.allowAutoplay;\n    }\n    isForwardNavDisabled() {\n      return this.isEmpty() || this._page >= this.totalDots() - 1 && !this.isCircular();\n    }\n    isBackwardNavDisabled() {\n      return this.isEmpty() || this._page <= 0 && !this.isCircular();\n    }\n    isEmpty() {\n      return !this.value || this.value.length === 0;\n    }\n    navForward(e, index) {\n      if (this.isCircular() || this._page < this.totalDots() - 1) {\n        this.step(-1, index);\n      }\n      if (this.autoplayInterval) {\n        this.stopAutoplay();\n      }\n      if (e && e.cancelable) {\n        e.preventDefault();\n      }\n    }\n    navBackward(e, index) {\n      if (this.isCircular() || this._page !== 0) {\n        this.step(1, index);\n      }\n      if (this.autoplayInterval) {\n        this.stopAutoplay();\n      }\n      if (e && e.cancelable) {\n        e.preventDefault();\n      }\n    }\n    onDotClick(e, index) {\n      let page = this._page;\n      if (this.autoplayInterval) {\n        this.stopAutoplay();\n      }\n      if (index > page) {\n        this.navForward(e, index);\n      } else if (index < page) {\n        this.navBackward(e, index);\n      }\n    }\n    onIndicatorKeydown(event) {\n      switch (event.code) {\n        case 'ArrowRight':\n          this.onRightKey();\n          break;\n        case 'ArrowLeft':\n          this.onLeftKey();\n          break;\n      }\n    }\n    onRightKey() {\n      const indicators = [...DomHandler.find(this.indicatorContent.nativeElement, '[data-pc-section=\"indicator\"]')];\n      const activeIndex = this.findFocusedIndicatorIndex();\n      this.changedFocusedIndicator(activeIndex, activeIndex + 1 === indicators.length ? indicators.length - 1 : activeIndex + 1);\n    }\n    onLeftKey() {\n      const activeIndex = this.findFocusedIndicatorIndex();\n      this.changedFocusedIndicator(activeIndex, activeIndex - 1 <= 0 ? 0 : activeIndex - 1);\n    }\n    onHomeKey() {\n      const activeIndex = this.findFocusedIndicatorIndex();\n      this.changedFocusedIndicator(activeIndex, 0);\n    }\n    onEndKey() {\n      const indicators = [...DomHandler.find(this.indicatorContent.nativeElement, '[data-pc-section=\"indicator\"]r')];\n      const activeIndex = this.findFocusedIndicatorIndex();\n      this.changedFocusedIndicator(activeIndex, indicators.length - 1);\n    }\n    onTabKey() {\n      const indicators = [...DomHandler.find(this.indicatorContent.nativeElement, '[data-pc-section=\"indicator\"]')];\n      const highlightedIndex = indicators.findIndex(ind => DomHandler.getAttribute(ind, 'data-p-highlight') === true);\n      const activeIndicator = DomHandler.findSingle(this.indicatorContent.nativeElement, '[data-pc-section=\"indicator\"] > button[tabindex=\"0\"]');\n      const activeIndex = indicators.findIndex(ind => ind === activeIndicator.parentElement);\n      indicators[activeIndex].children[0].tabIndex = '-1';\n      indicators[highlightedIndex].children[0].tabIndex = '0';\n    }\n    findFocusedIndicatorIndex() {\n      const indicators = [...DomHandler.find(this.indicatorContent.nativeElement, '[data-pc-section=\"indicator\"]')];\n      const activeIndicator = DomHandler.findSingle(this.indicatorContent.nativeElement, '[data-pc-section=\"indicator\"] > button[tabindex=\"0\"]');\n      return indicators.findIndex(ind => ind === activeIndicator.parentElement);\n    }\n    changedFocusedIndicator(prevInd, nextInd) {\n      const indicators = [...DomHandler.find(this.indicatorContent.nativeElement, '[data-pc-section=\"indicator\"]')];\n      indicators[prevInd].children[0].tabIndex = '-1';\n      indicators[nextInd].children[0].tabIndex = '0';\n      indicators[nextInd].children[0].focus();\n    }\n    step(dir, page) {\n      let totalShiftedItems = this.totalShiftedItems;\n      const isCircular = this.isCircular();\n      if (page != null) {\n        totalShiftedItems = this._numScroll * page * -1;\n        if (isCircular) {\n          totalShiftedItems -= this._numVisible;\n        }\n        this.isRemainingItemsAdded = false;\n      } else {\n        totalShiftedItems += this._numScroll * dir;\n        if (this.isRemainingItemsAdded) {\n          totalShiftedItems += this.remainingItems - this._numScroll * dir;\n          this.isRemainingItemsAdded = false;\n        }\n        let originalShiftedItems = isCircular ? totalShiftedItems + this._numVisible : totalShiftedItems;\n        page = Math.abs(Math.floor(originalShiftedItems / this._numScroll));\n      }\n      if (isCircular && this.page === this.totalDots() - 1 && dir === -1) {\n        totalShiftedItems = -1 * (this.value.length + this._numVisible);\n        page = 0;\n      } else if (isCircular && this.page === 0 && dir === 1) {\n        totalShiftedItems = 0;\n        page = this.totalDots() - 1;\n      } else if (page === this.totalDots() - 1 && this.remainingItems > 0) {\n        totalShiftedItems += this.remainingItems * -1 - this._numScroll * dir;\n        this.isRemainingItemsAdded = true;\n      }\n      if (this.itemsContainer) {\n        this.itemsContainer.nativeElement.style.transform = this.isVertical() ? `translate3d(0, ${totalShiftedItems * (100 / this._numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100 / this._numVisible)}%, 0, 0)`;\n        this.itemsContainer.nativeElement.style.transition = 'transform 500ms ease 0s';\n      }\n      this.totalShiftedItems = totalShiftedItems;\n      this._page = page;\n      this.onPage.emit({\n        page: this.page\n      });\n      this.cd.markForCheck();\n    }\n    startAutoplay() {\n      this.interval = setInterval(() => {\n        if (this.totalDots() > 0) {\n          if (this.page === this.totalDots() - 1) {\n            this.step(-1, 0);\n          } else {\n            this.step(-1, this.page + 1);\n          }\n        }\n      }, this.autoplayInterval);\n      this.allowAutoplay = true;\n      this.cd.markForCheck();\n    }\n    stopAutoplay(changeAllow = true) {\n      if (this.interval) {\n        clearInterval(this.interval);\n        this.interval = undefined;\n        if (changeAllow) {\n          this.allowAutoplay = false;\n        }\n      }\n      this.cd.markForCheck();\n    }\n    isPlaying() {\n      return !!this.interval;\n    }\n    onTransitionEnd() {\n      if (this.itemsContainer) {\n        this.itemsContainer.nativeElement.style.transition = '';\n        if ((this.page === 0 || this.page === this.totalDots() - 1) && this.isCircular()) {\n          this.itemsContainer.nativeElement.style.transform = this.isVertical() ? `translate3d(0, ${this.totalShiftedItems * (100 / this._numVisible)}%, 0)` : `translate3d(${this.totalShiftedItems * (100 / this._numVisible)}%, 0, 0)`;\n        }\n      }\n    }\n    onTouchStart(e) {\n      let touchobj = e.changedTouches[0];\n      this.startPos = {\n        x: touchobj.pageX,\n        y: touchobj.pageY\n      };\n    }\n    onTouchMove(e) {\n      if (e.cancelable) {\n        e.preventDefault();\n      }\n    }\n    onTouchEnd(e) {\n      let touchobj = e.changedTouches[0];\n      if (this.isVertical()) {\n        this.changePageOnTouch(e, touchobj.pageY - this.startPos.y);\n      } else {\n        this.changePageOnTouch(e, touchobj.pageX - this.startPos.x);\n      }\n    }\n    changePageOnTouch(e, diff) {\n      if (Math.abs(diff) > this.swipeThreshold) {\n        if (diff < 0) {\n          this.navForward(e);\n        } else {\n          this.navBackward(e);\n        }\n      }\n    }\n    ariaPrevButtonLabel() {\n      return this.config.translation.aria ? this.config.translation.aria.prevPageLabel : undefined;\n    }\n    ariaSlideLabel() {\n      return this.config.translation.aria ? this.config.translation.aria.slide : undefined;\n    }\n    ariaNextButtonLabel() {\n      return this.config.translation.aria ? this.config.translation.aria.nextPageLabel : undefined;\n    }\n    ariaSlideNumber(value) {\n      return this.config.translation.aria ? this.config.translation.aria.slideNumber.replace(/{slideNumber}/g, value) : undefined;\n    }\n    ariaPageLabel(value) {\n      return this.config.translation.aria ? this.config.translation.aria.pageLabel.replace(/{page}/g, value) : undefined;\n    }\n    bindDocumentListeners() {\n      if (isPlatformBrowser(this.platformId)) {\n        if (!this.documentResizeListener) {\n          this.documentResizeListener = this.renderer.listen(this.window, 'resize', event => {\n            this.calculatePosition();\n          });\n        }\n      }\n    }\n    unbindDocumentListeners() {\n      if (isPlatformBrowser(this.platformId)) {\n        if (this.documentResizeListener) {\n          this.documentResizeListener();\n          this.documentResizeListener = null;\n        }\n      }\n    }\n    ngOnDestroy() {\n      if (this.responsiveOptions) {\n        this.unbindDocumentListeners();\n      }\n      if (this.autoplayInterval) {\n        this.stopAutoplay();\n      }\n    }\n    static ɵfac = function Carousel_Factory(t) {\n      return new (t || Carousel)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(DOCUMENT), i0.ɵɵdirectiveInject(PLATFORM_ID), i0.ɵɵdirectiveInject(i1.PrimeNGConfig));\n    };\n    static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n      type: Carousel,\n      selectors: [[\"p-carousel\"]],\n      contentQueries: function Carousel_ContentQueries(rf, ctx, dirIndex) {\n        if (rf & 1) {\n          i0.ɵɵcontentQuery(dirIndex, Header, 5);\n          i0.ɵɵcontentQuery(dirIndex, Footer, 5);\n          i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);\n        }\n        if (rf & 2) {\n          let _t;\n          i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerFacet = _t.first);\n          i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.footerFacet = _t.first);\n          i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);\n        }\n      },\n      viewQuery: function Carousel_Query(rf, ctx) {\n        if (rf & 1) {\n          i0.ɵɵviewQuery(_c0, 5);\n          i0.ɵɵviewQuery(_c1, 5);\n        }\n        if (rf & 2) {\n          let _t;\n          i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.itemsContainer = _t.first);\n          i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.indicatorContent = _t.first);\n        }\n      },\n      hostAttrs: [1, \"p-element\"],\n      inputs: {\n        page: \"page\",\n        numVisible: \"numVisible\",\n        numScroll: \"numScroll\",\n        responsiveOptions: \"responsiveOptions\",\n        orientation: \"orientation\",\n        verticalViewPortHeight: \"verticalViewPortHeight\",\n        contentClass: \"contentClass\",\n        indicatorsContentClass: \"indicatorsContentClass\",\n        indicatorsContentStyle: \"indicatorsContentStyle\",\n        indicatorStyleClass: \"indicatorStyleClass\",\n        indicatorStyle: \"indicatorStyle\",\n        value: \"value\",\n        circular: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"circular\", \"circular\", booleanAttribute],\n        showIndicators: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"showIndicators\", \"showIndicators\", booleanAttribute],\n        showNavigators: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"showNavigators\", \"showNavigators\", booleanAttribute],\n        autoplayInterval: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"autoplayInterval\", \"autoplayInterval\", numberAttribute],\n        style: \"style\",\n        styleClass: \"styleClass\"\n      },\n      outputs: {\n        onPage: \"onPage\"\n      },\n      features: [i0.ɵɵInputTransformsFeature, i0.ɵɵNgOnChangesFeature],\n      ngContentSelectors: _c3,\n      decls: 14,\n      vars: 23,\n      consts: [[\"itemsContainer\", \"\"], [\"indicatorContent\", \"\"], [\"role\", \"region\", 3, \"ngClass\", \"ngStyle\"], [\"class\", \"p-carousel-header\", 4, \"ngIf\"], [3, \"ngClass\"], [1, \"p-carousel-container\"], [\"type\", \"button\", \"pRipple\", \"\", 3, \"ngClass\", \"disabled\", \"click\", 4, \"ngIf\"], [1, \"p-carousel-items-content\", 3, \"touchend\", \"touchstart\", \"touchmove\", \"ngStyle\"], [1, \"p-carousel-items-container\", 3, \"transitionend\"], [3, \"ngClass\", 4, \"ngFor\", \"ngForOf\"], [3, \"ngClass\", \"class\", \"ngStyle\", \"keydown\", 4, \"ngIf\"], [\"class\", \"p-carousel-footer\", 4, \"ngIf\"], [1, \"p-carousel-header\"], [4, \"ngTemplateOutlet\"], [\"type\", \"button\", \"pRipple\", \"\", 3, \"click\", \"ngClass\", \"disabled\"], [4, \"ngIf\"], [\"class\", \"p-carousel-prev-icon\", 4, \"ngIf\"], [3, \"styleClass\", 4, \"ngIf\"], [3, \"styleClass\"], [1, \"p-carousel-prev-icon\"], [4, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"], [3, \"keydown\", \"ngClass\", \"ngStyle\"], [\"type\", \"button\", 3, \"click\", \"ngClass\", \"ngStyle\", \"tabindex\"], [1, \"p-carousel-footer\"]],\n      template: function Carousel_Template(rf, ctx) {\n        if (rf & 1) {\n          const _r1 = i0.ɵɵgetCurrentView();\n          i0.ɵɵprojectionDef(_c2);\n          i0.ɵɵelementStart(0, \"div\", 2);\n          i0.ɵɵtemplate(1, Carousel_div_1_Template, 3, 1, \"div\", 3);\n          i0.ɵɵelementStart(2, \"div\", 4)(3, \"div\", 5);\n          i0.ɵɵtemplate(4, Carousel_button_4_Template, 3, 7, \"button\", 6);\n          i0.ɵɵelementStart(5, \"div\", 7);\n          i0.ɵɵlistener(\"touchend\", function Carousel_Template_div_touchend_5_listener($event) {\n            i0.ɵɵrestoreView(_r1);\n            return i0.ɵɵresetView(ctx.onTouchEnd($event));\n          })(\"touchstart\", function Carousel_Template_div_touchstart_5_listener($event) {\n            i0.ɵɵrestoreView(_r1);\n            return i0.ɵɵresetView(ctx.onTouchStart($event));\n          })(\"touchmove\", function Carousel_Template_div_touchmove_5_listener($event) {\n            i0.ɵɵrestoreView(_r1);\n            return i0.ɵɵresetView(ctx.onTouchMove($event));\n          });\n          i0.ɵɵelementStart(6, \"div\", 8, 0);\n          i0.ɵɵlistener(\"transitionend\", function Carousel_Template_div_transitionend_6_listener() {\n            i0.ɵɵrestoreView(_r1);\n            return i0.ɵɵresetView(ctx.onTransitionEnd());\n          });\n          i0.ɵɵtemplate(8, Carousel_div_8_Template, 2, 12, \"div\", 9)(9, Carousel_div_9_Template, 2, 12, \"div\", 9)(10, Carousel_div_10_Template, 2, 9, \"div\", 9);\n          i0.ɵɵelementEnd()();\n          i0.ɵɵtemplate(11, Carousel_button_11_Template, 3, 7, \"button\", 6);\n          i0.ɵɵelementEnd();\n          i0.ɵɵtemplate(12, Carousel_ul_12_Template, 3, 5, \"ul\", 10);\n          i0.ɵɵelementEnd();\n          i0.ɵɵtemplate(13, Carousel_div_13_Template, 3, 1, \"div\", 11);\n          i0.ɵɵelementEnd();\n        }\n        if (rf & 2) {\n          i0.ɵɵclassMap(ctx.styleClass);\n          i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction2(18, _c4, ctx.isVertical(), !ctx.isVertical()))(\"ngStyle\", ctx.style);\n          i0.ɵɵattribute(\"id\", ctx.id);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngIf\", ctx.headerFacet || ctx.headerTemplate);\n          i0.ɵɵadvance();\n          i0.ɵɵclassMap(ctx.contentClass);\n          i0.ɵɵproperty(\"ngClass\", \"p-carousel-content\");\n          i0.ɵɵadvance();\n          i0.ɵɵattribute(\"aria-live\", ctx.allowAutoplay ? \"polite\" : \"off\");\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngIf\", ctx.showNavigators);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngStyle\", i0.ɵɵpureFunction1(21, _c5, ctx.isVertical() ? ctx.verticalViewPortHeight : \"auto\"));\n          i0.ɵɵadvance(3);\n          i0.ɵɵproperty(\"ngForOf\", ctx.clonedItemsForStarting);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngForOf\", ctx.value);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngForOf\", ctx.clonedItemsForFinishing);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngIf\", ctx.showNavigators);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngIf\", ctx.showIndicators);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngIf\", ctx.footerFacet || ctx.footerTemplate);\n        }\n      },\n      dependencies: () => [i2.NgClass, i2.NgForOf, i2.NgIf, i2.NgTemplateOutlet, i2.NgStyle, i3.Ripple, ChevronRightIcon, ChevronLeftIcon, ChevronDownIcon, ChevronUpIcon],\n      styles: [\"@layer primeng{.p-carousel{display:flex;flex-direction:column}.p-carousel-content{display:flex;flex-direction:column;overflow:auto}.p-carousel-prev,.p-carousel-next{align-self:center;flex-grow:0;flex-shrink:0;display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-carousel-container{display:flex;flex-direction:row}.p-carousel-items-content{overflow:hidden;width:100%}.p-carousel-items-container{display:flex;flex-direction:row}.p-carousel-indicators{display:flex;flex-direction:row;justify-content:center;flex-wrap:wrap}.p-carousel-indicator>button{display:flex;align-items:center;justify-content:center}.p-carousel-vertical .p-carousel-container{flex-direction:column}.p-carousel-vertical .p-carousel-items-container{flex-direction:column;height:100%}.p-items-hidden .p-carousel-item{visibility:hidden}.p-items-hidden .p-carousel-item.p-carousel-item-active{visibility:visible}}\\n\"],\n      encapsulation: 2,\n      changeDetection: 0\n    });\n  }\n  return Carousel;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet CarouselModule = /*#__PURE__*/(() => {\n  class CarouselModule {\n    static ɵfac = function CarouselModule_Factory(t) {\n      return new (t || CarouselModule)();\n    };\n    static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n      type: CarouselModule\n    });\n    static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n      imports: [CommonModule, SharedModule, RippleModule, ChevronRightIcon, ChevronLeftIcon, ChevronDownIcon, ChevronUpIcon, CommonModule, SharedModule]\n    });\n  }\n  return CarouselModule;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { Carousel, CarouselModule };\n","import { DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { inject, PLATFORM_ID, ElementRef, booleanAttribute, Directive, Input, NgModule } from '@angular/core';\nimport { DomHandler } from 'primeng/dom';\n\n/**\n * AutoFocus manages focus on focusable element on load.\n * @group Components\n */\nlet AutoFocus = /*#__PURE__*/(() => {\n  class AutoFocus {\n    /**\n     * When present, it specifies that the component should automatically get focus on load.\n     * @group Props\n     */\n    autofocus = false;\n    focused = false;\n    platformId = inject(PLATFORM_ID);\n    document = inject(DOCUMENT);\n    host = inject(ElementRef);\n    ngAfterContentChecked() {\n      // This sets the `attr.autofocus` which is different than the Input `autofocus` attribute.\n      if (this.autofocus === false) {\n        this.host.nativeElement.removeAttribute('autofocus');\n      } else {\n        this.host.nativeElement.setAttribute('autofocus', true);\n      }\n      if (!this.focused) {\n        this.autoFocus();\n      }\n    }\n    ngAfterViewChecked() {\n      if (!this.focused) {\n        this.autoFocus();\n      }\n    }\n    autoFocus() {\n      if (isPlatformBrowser(this.platformId) && this.autofocus) {\n        setTimeout(() => {\n          const focusableElements = DomHandler.getFocusableElements(this.host?.nativeElement);\n          if (focusableElements.length === 0) {\n            this.host.nativeElement.focus();\n          }\n          if (focusableElements.length > 0) {\n            focusableElements[0].focus();\n          }\n          this.focused = true;\n        });\n      }\n    }\n    static ɵfac = function AutoFocus_Factory(t) {\n      return new (t || AutoFocus)();\n    };\n    static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n      type: AutoFocus,\n      selectors: [[\"\", \"pAutoFocus\", \"\"]],\n      hostAttrs: [1, \"p-element\"],\n      inputs: {\n        autofocus: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"autofocus\", \"autofocus\", booleanAttribute]\n      },\n      standalone: true,\n      features: [i0.ɵɵInputTransformsFeature]\n    });\n  }\n  return AutoFocus;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet AutoFocusModule = /*#__PURE__*/(() => {\n  class AutoFocusModule {\n    static ɵfac = function AutoFocusModule_Factory(t) {\n      return new (t || AutoFocusModule)();\n    };\n    static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n      type: AutoFocusModule\n    });\n    static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({});\n  }\n  return AutoFocusModule;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AutoFocus, AutoFocusModule };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nimport { UniqueComponentId } from 'primeng/utils';\nlet SpinnerIcon = /*#__PURE__*/(() => {\n  class SpinnerIcon extends BaseIcon {\n    pathId;\n    ngOnInit() {\n      this.pathId = 'url(#' + UniqueComponentId() + ')';\n    }\n    static ɵfac = /* @__PURE__ */(() => {\n      let ɵSpinnerIcon_BaseFactory;\n      return function SpinnerIcon_Factory(t) {\n        return (ɵSpinnerIcon_BaseFactory || (ɵSpinnerIcon_BaseFactory = i0.ɵɵgetInheritedFactory(SpinnerIcon)))(t || SpinnerIcon);\n      };\n    })();\n    static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n      type: SpinnerIcon,\n      selectors: [[\"SpinnerIcon\"]],\n      standalone: true,\n      features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n      decls: 6,\n      vars: 7,\n      consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"d\", \"M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z\", \"fill\", \"currentColor\"], [3, \"id\"], [\"width\", \"14\", \"height\", \"14\", \"fill\", \"white\"]],\n      template: function SpinnerIcon_Template(rf, ctx) {\n        if (rf & 1) {\n          i0.ɵɵnamespaceSVG();\n          i0.ɵɵelementStart(0, \"svg\", 0)(1, \"g\");\n          i0.ɵɵelement(2, \"path\", 1);\n          i0.ɵɵelementEnd();\n          i0.ɵɵelementStart(3, \"defs\")(4, \"clipPath\", 2);\n          i0.ɵɵelement(5, \"rect\", 3);\n          i0.ɵɵelementEnd()()();\n        }\n        if (rf & 2) {\n          i0.ɵɵclassMap(ctx.getClassNames());\n          i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n          i0.ɵɵadvance();\n          i0.ɵɵattribute(\"clip-path\", ctx.pathId);\n          i0.ɵɵadvance(3);\n          i0.ɵɵproperty(\"id\", ctx.pathId);\n        }\n      },\n      encapsulation: 2\n    });\n  }\n  return SpinnerIcon;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { SpinnerIcon };\n","import { DOCUMENT, NgIf, NgTemplateOutlet, NgStyle, NgClass } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { booleanAttribute, Directive, Inject, Input, EventEmitter, numberAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Output, ContentChildren, NgModule } from '@angular/core';\nimport { PrimeTemplate, SharedModule } from 'primeng/api';\nimport { AutoFocus } from 'primeng/autofocus';\nimport { DomHandler } from 'primeng/dom';\nimport { SpinnerIcon } from 'primeng/icons/spinner';\nimport { Ripple } from 'primeng/ripple';\nimport { ObjectUtils } from 'primeng/utils';\nconst _c0 = [\"*\"];\nconst _c1 = a0 => ({\n  class: a0\n});\nfunction Button_ng_container_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainer(0);\n  }\n}\nfunction Button_ng_container_3_ng_container_1_span_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"span\", 8);\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext(3);\n    i0.ɵɵproperty(\"ngClass\", ctx_r0.iconClass());\n    i0.ɵɵattribute(\"aria-hidden\", true)(\"data-pc-section\", \"loadingicon\");\n  }\n}\nfunction Button_ng_container_3_ng_container_1_SpinnerIcon_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"SpinnerIcon\", 9);\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext(3);\n    i0.ɵɵproperty(\"styleClass\", ctx_r0.spinnerIconClass())(\"spin\", true);\n    i0.ɵɵattribute(\"aria-hidden\", true)(\"data-pc-section\", \"loadingicon\");\n  }\n}\nfunction Button_ng_container_3_ng_container_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainerStart(0);\n    i0.ɵɵtemplate(1, Button_ng_container_3_ng_container_1_span_1_Template, 1, 3, \"span\", 6)(2, Button_ng_container_3_ng_container_1_SpinnerIcon_2_Template, 1, 4, \"SpinnerIcon\", 7);\n    i0.ɵɵelementContainerEnd();\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext(2);\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngIf\", ctx_r0.loadingIcon);\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngIf\", !ctx_r0.loadingIcon);\n  }\n}\nfunction Button_ng_container_3_2_ng_template_0_Template(rf, ctx) {}\nfunction Button_ng_container_3_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵtemplate(0, Button_ng_container_3_2_ng_template_0_Template, 0, 0, \"ng-template\", 10);\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext(2);\n    i0.ɵɵproperty(\"ngIf\", ctx_r0.loadingIconTemplate);\n  }\n}\nfunction Button_ng_container_3_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainerStart(0);\n    i0.ɵɵtemplate(1, Button_ng_container_3_ng_container_1_Template, 3, 2, \"ng-container\", 2)(2, Button_ng_container_3_2_Template, 1, 1, null, 5);\n    i0.ɵɵelementContainerEnd();\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext();\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngIf\", !ctx_r0.loadingIconTemplate);\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.loadingIconTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(3, _c1, ctx_r0.iconClass()));\n  }\n}\nfunction Button_ng_container_4_span_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"span\", 8);\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext(2);\n    i0.ɵɵproperty(\"ngClass\", ctx_r0.iconClass());\n    i0.ɵɵattribute(\"data-pc-section\", \"icon\");\n  }\n}\nfunction Button_ng_container_4_2_ng_template_0_Template(rf, ctx) {}\nfunction Button_ng_container_4_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵtemplate(0, Button_ng_container_4_2_ng_template_0_Template, 0, 0, \"ng-template\", 10);\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext(2);\n    i0.ɵɵproperty(\"ngIf\", !ctx_r0.icon && ctx_r0.iconTemplate);\n  }\n}\nfunction Button_ng_container_4_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainerStart(0);\n    i0.ɵɵtemplate(1, Button_ng_container_4_span_1_Template, 1, 2, \"span\", 6)(2, Button_ng_container_4_2_Template, 1, 1, null, 5);\n    i0.ɵɵelementContainerEnd();\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext();\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngIf\", ctx_r0.icon && !ctx_r0.iconTemplate);\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.iconTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(3, _c1, ctx_r0.iconClass()));\n  }\n}\nfunction Button_span_5_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"span\", 11);\n    i0.ɵɵtext(1);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext();\n    i0.ɵɵattribute(\"aria-hidden\", ctx_r0.icon && !ctx_r0.label)(\"data-pc-section\", \"label\");\n    i0.ɵɵadvance();\n    i0.ɵɵtextInterpolate(ctx_r0.label);\n  }\n}\nfunction Button_span_6_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"span\", 8);\n    i0.ɵɵtext(1);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext();\n    i0.ɵɵclassMap(ctx_r0.badgeClass);\n    i0.ɵɵproperty(\"ngClass\", ctx_r0.badgeStyleClass());\n    i0.ɵɵattribute(\"data-pc-section\", \"badge\");\n    i0.ɵɵadvance();\n    i0.ɵɵtextInterpolate(ctx_r0.badge);\n  }\n}\nconst INTERNAL_BUTTON_CLASSES = {\n  button: 'p-button',\n  component: 'p-component',\n  iconOnly: 'p-button-icon-only',\n  disabled: 'p-disabled',\n  loading: 'p-button-loading',\n  labelOnly: 'p-button-loading-label-only'\n};\n/**\n * Button directive is an extension to button component.\n * @group Components\n */\nlet ButtonDirective = /*#__PURE__*/(() => {\n  class ButtonDirective {\n    el;\n    document;\n    /**\n     * Position of the icon.\n     * @group Props\n     */\n    iconPos = 'left';\n    /**\n     * Uses to pass attributes to the loading icon's DOM element.\n     * @group Props\n     */\n    loadingIcon;\n    /**\n     * Text of the button.\n     * @group Props\n     */\n    get label() {\n      return this._label;\n    }\n    set label(val) {\n      this._label = val;\n      if (this.initialized) {\n        this.updateLabel();\n        this.updateIcon();\n        this.setStyleClass();\n      }\n    }\n    /**\n     * Name of the icon.\n     * @group Props\n     */\n    get icon() {\n      return this._icon;\n    }\n    set icon(val) {\n      this._icon = val;\n      if (this.initialized) {\n        this.updateIcon();\n        this.setStyleClass();\n      }\n    }\n    /**\n     * Whether the button is in loading state.\n     * @group Props\n     */\n    get loading() {\n      return this._loading;\n    }\n    set loading(val) {\n      this._loading = val;\n      if (this.initialized) {\n        this.updateIcon();\n        this.setStyleClass();\n      }\n    }\n    /**\n     * Defines the style of the button.\n     * @group Props\n     */\n    severity;\n    /**\n     * Add a shadow to indicate elevation.\n     * @group Props\n     */\n    raised = false;\n    /**\n     * Add a circular border radius to the button.\n     * @group Props\n     */\n    rounded = false;\n    /**\n     * Add a textual class to the button without a background initially.\n     * @group Props\n     */\n    text = false;\n    /**\n     * Add a border class without a background initially.\n     * @group Props\n     */\n    outlined = false;\n    /**\n     * Defines the size of the button.\n     * @group Props\n     */\n    size = null;\n    /**\n     * Add a plain textual class to the button without a background initially.\n     * @group Props\n     */\n    plain = false;\n    _label;\n    _icon;\n    _loading = false;\n    initialized;\n    get htmlElement() {\n      return this.el.nativeElement;\n    }\n    _internalClasses = Object.values(INTERNAL_BUTTON_CLASSES);\n    constructor(el, document) {\n      this.el = el;\n      this.document = document;\n    }\n    ngAfterViewInit() {\n      DomHandler.addMultipleClasses(this.htmlElement, this.getStyleClass().join(' '));\n      this.createIcon();\n      this.createLabel();\n      this.initialized = true;\n    }\n    getStyleClass() {\n      const styleClass = [INTERNAL_BUTTON_CLASSES.button, INTERNAL_BUTTON_CLASSES.component];\n      if (this.icon && !this.label && ObjectUtils.isEmpty(this.htmlElement.textContent)) {\n        styleClass.push(INTERNAL_BUTTON_CLASSES.iconOnly);\n      }\n      if (this.loading) {\n        styleClass.push(INTERNAL_BUTTON_CLASSES.disabled, INTERNAL_BUTTON_CLASSES.loading);\n        if (!this.icon && this.label) {\n          styleClass.push(INTERNAL_BUTTON_CLASSES.labelOnly);\n        }\n        if (this.icon && !this.label && !ObjectUtils.isEmpty(this.htmlElement.textContent)) {\n          styleClass.push(INTERNAL_BUTTON_CLASSES.iconOnly);\n        }\n      }\n      if (this.text) {\n        styleClass.push('p-button-text');\n      }\n      if (this.severity) {\n        styleClass.push(`p-button-${this.severity}`);\n      }\n      if (this.plain) {\n        styleClass.push('p-button-plain');\n      }\n      if (this.raised) {\n        styleClass.push('p-button-raised');\n      }\n      if (this.size) {\n        styleClass.push(`p-button-${this.size}`);\n      }\n      if (this.outlined) {\n        styleClass.push('p-button-outlined');\n      }\n      if (this.rounded) {\n        styleClass.push('p-button-rounded');\n      }\n      if (this.size === 'small') {\n        styleClass.push('p-button-sm');\n      }\n      if (this.size === 'large') {\n        styleClass.push('p-button-lg');\n      }\n      return styleClass;\n    }\n    setStyleClass() {\n      const styleClass = this.getStyleClass();\n      this.htmlElement.classList.remove(...this._internalClasses);\n      this.htmlElement.classList.add(...styleClass);\n    }\n    createLabel() {\n      const created = DomHandler.findSingle(this.htmlElement, '.p-button-label');\n      if (!created && this.label) {\n        let labelElement = this.document.createElement('span');\n        if (this.icon && !this.label) {\n          labelElement.setAttribute('aria-hidden', 'true');\n        }\n        labelElement.className = 'p-button-label';\n        labelElement.appendChild(this.document.createTextNode(this.label));\n        this.htmlElement.appendChild(labelElement);\n      }\n    }\n    createIcon() {\n      const created = DomHandler.findSingle(this.htmlElement, '.p-button-icon');\n      if (!created && (this.icon || this.loading)) {\n        let iconElement = this.document.createElement('span');\n        iconElement.className = 'p-button-icon';\n        iconElement.setAttribute('aria-hidden', 'true');\n        let iconPosClass = this.label ? 'p-button-icon-' + this.iconPos : null;\n        if (iconPosClass) {\n          DomHandler.addClass(iconElement, iconPosClass);\n        }\n        let iconClass = this.getIconClass();\n        if (iconClass) {\n          DomHandler.addMultipleClasses(iconElement, iconClass);\n        }\n        this.htmlElement.insertBefore(iconElement, this.htmlElement.firstChild);\n      }\n    }\n    updateLabel() {\n      let labelElement = DomHandler.findSingle(this.htmlElement, '.p-button-label');\n      if (!this.label) {\n        labelElement && this.htmlElement.removeChild(labelElement);\n        return;\n      }\n      labelElement ? labelElement.textContent = this.label : this.createLabel();\n    }\n    updateIcon() {\n      let iconElement = DomHandler.findSingle(this.htmlElement, '.p-button-icon');\n      let labelElement = DomHandler.findSingle(this.htmlElement, '.p-button-label');\n      if (iconElement) {\n        if (this.iconPos) {\n          iconElement.className = 'p-button-icon ' + (labelElement ? 'p-button-icon-' + this.iconPos : '') + ' ' + this.getIconClass();\n        } else {\n          iconElement.className = 'p-button-icon ' + this.getIconClass();\n        }\n      } else {\n        this.createIcon();\n      }\n    }\n    getIconClass() {\n      return this.loading ? 'p-button-loading-icon pi-spin ' + (this.loadingIcon ?? 'pi pi-spinner') : this.icon || 'p-hidden';\n    }\n    ngOnDestroy() {\n      this.initialized = false;\n    }\n    static ɵfac = function ButtonDirective_Factory(t) {\n      return new (t || ButtonDirective)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(DOCUMENT));\n    };\n    static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n      type: ButtonDirective,\n      selectors: [[\"\", \"pButton\", \"\"]],\n      hostAttrs: [1, \"p-element\"],\n      inputs: {\n        iconPos: \"iconPos\",\n        loadingIcon: \"loadingIcon\",\n        label: \"label\",\n        icon: \"icon\",\n        loading: \"loading\",\n        severity: \"severity\",\n        raised: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"raised\", \"raised\", booleanAttribute],\n        rounded: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"rounded\", \"rounded\", booleanAttribute],\n        text: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"text\", \"text\", booleanAttribute],\n        outlined: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"outlined\", \"outlined\", booleanAttribute],\n        size: \"size\",\n        plain: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"plain\", \"plain\", booleanAttribute]\n      },\n      standalone: true,\n      features: [i0.ɵɵInputTransformsFeature]\n    });\n  }\n  return ButtonDirective;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Button is an extension to standard button element with icons and theming.\n * @group Components\n */\nlet Button = /*#__PURE__*/(() => {\n  class Button {\n    el;\n    /**\n     * Type of the button.\n     * @group Props\n     */\n    type = 'button';\n    /**\n     * Position of the icon.\n     * @group Props\n     */\n    iconPos = 'left';\n    /**\n     * Name of the icon.\n     * @group Props\n     */\n    icon;\n    /**\n     * Value of the badge.\n     * @group Props\n     */\n    badge;\n    /**\n     * Uses to pass attributes to the label's DOM element.\n     * @group Props\n     */\n    label;\n    /**\n     * When present, it specifies that the component should be disabled.\n     * @group Props\n     */\n    disabled;\n    /**\n     * Whether the button is in loading state.\n     * @group Props\n     */\n    loading = false;\n    /**\n     * Icon to display in loading state.\n     * @group Props\n     */\n    loadingIcon;\n    /**\n     * Add a shadow to indicate elevation.\n     * @group Props\n     */\n    raised = false;\n    /**\n     * Add a circular border radius to the button.\n     * @group Props\n     */\n    rounded = false;\n    /**\n     * Add a textual class to the button without a background initially.\n     * @group Props\n     */\n    text = false;\n    /**\n     * Add a plain textual class to the button without a background initially.\n     * @group Props\n     */\n    plain = false;\n    /**\n     * Defines the style of the button.\n     * @group Props\n     */\n    severity;\n    /**\n     * Add a border class without a background initially.\n     * @group Props\n     */\n    outlined = false;\n    /**\n     * Add a link style to the button.\n     * @group Props\n     */\n    link = false;\n    /**\n     * Add a tabindex to the button.\n     * @group Props\n     */\n    tabindex;\n    /**\n     * Defines the size of the button.\n     * @group Props\n     */\n    size;\n    /**\n     * Inline style of the element.\n     * @group Props\n     */\n    style;\n    /**\n     * Class of the element.\n     * @group Props\n     */\n    styleClass;\n    /**\n     * Style class of the badge.\n     * @group Props\n     */\n    badgeClass;\n    /**\n     * Used to define a string that autocomplete attribute the current element.\n     * @group Props\n     */\n    ariaLabel;\n    /**\n     * When present, it specifies that the component should automatically get focus on load.\n     * @group Props\n     */\n    autofocus;\n    /**\n     * Callback to execute when button is clicked.\n     * This event is intended to be used with the <p-button> component. Using a regular <button> element, use (click).\n     * @param {MouseEvent} event - Mouse event.\n     * @group Emits\n     */\n    onClick = new EventEmitter();\n    /**\n     * Callback to execute when button is focused.\n     * This event is intended to be used with the <p-button> component. Using a regular <button> element, use (focus).\n     * @param {FocusEvent} event - Focus event.\n     * @group Emits\n     */\n    onFocus = new EventEmitter();\n    /**\n     * Callback to execute when button loses focus.\n     * This event is intended to be used with the <p-button> component. Using a regular <button> element, use (blur).\n     * @param {FocusEvent} event - Focus event.\n     * @group Emits\n     */\n    onBlur = new EventEmitter();\n    contentTemplate;\n    loadingIconTemplate;\n    iconTemplate;\n    templates;\n    constructor(el) {\n      this.el = el;\n    }\n    spinnerIconClass() {\n      return Object.entries(this.iconClass()).filter(([, value]) => !!value).reduce((acc, [key]) => acc + ` ${key}`, 'p-button-loading-icon');\n    }\n    iconClass() {\n      const iconClasses = {\n        'p-button-icon': true,\n        'p-button-icon-left': this.iconPos === 'left' && this.label,\n        'p-button-icon-right': this.iconPos === 'right' && this.label,\n        'p-button-icon-top': this.iconPos === 'top' && this.label,\n        'p-button-icon-bottom': this.iconPos === 'bottom' && this.label\n      };\n      if (this.loading) {\n        iconClasses[`p-button-loading-icon pi-spin ${this.loadingIcon ?? ''}`] = true;\n      } else if (this.icon) {\n        iconClasses[this.icon] = true;\n      }\n      return iconClasses;\n    }\n    get buttonClass() {\n      return {\n        'p-button p-component': true,\n        'p-button-icon-only': (this.icon || this.iconTemplate || this.loadingIcon || this.loadingIconTemplate) && !this.label,\n        'p-button-vertical': (this.iconPos === 'top' || this.iconPos === 'bottom') && this.label,\n        'p-disabled': this.disabled || this.loading,\n        'p-button-loading': this.loading,\n        'p-button-loading-label-only': this.loading && !this.icon && this.label && !this.loadingIcon && this.iconPos === 'left',\n        'p-button-link': this.link,\n        [`p-button-${this.severity}`]: this.severity,\n        'p-button-raised': this.raised,\n        'p-button-rounded': this.rounded,\n        'p-button-text': this.text,\n        'p-button-outlined': this.outlined,\n        'p-button-sm': this.size === 'small',\n        'p-button-lg': this.size === 'large',\n        'p-button-plain': this.plain,\n        [`${this.styleClass}`]: this.styleClass\n      };\n    }\n    ngAfterContentInit() {\n      this.templates?.forEach(item => {\n        switch (item.getType()) {\n          case 'content':\n            this.contentTemplate = item.template;\n            break;\n          case 'icon':\n            this.iconTemplate = item.template;\n            break;\n          case 'loadingicon':\n            this.loadingIconTemplate = item.template;\n            break;\n          default:\n            this.contentTemplate = item.template;\n            break;\n        }\n      });\n    }\n    badgeStyleClass() {\n      return {\n        'p-badge p-component': true,\n        'p-badge-no-gutter': this.badge && String(this.badge).length === 1\n      };\n    }\n    static ɵfac = function Button_Factory(t) {\n      return new (t || Button)(i0.ɵɵdirectiveInject(i0.ElementRef));\n    };\n    static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n      type: Button,\n      selectors: [[\"p-button\"]],\n      contentQueries: function Button_ContentQueries(rf, ctx, dirIndex) {\n        if (rf & 1) {\n          i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);\n        }\n        if (rf & 2) {\n          let _t;\n          i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);\n        }\n      },\n      hostAttrs: [1, \"p-element\"],\n      inputs: {\n        type: \"type\",\n        iconPos: \"iconPos\",\n        icon: \"icon\",\n        badge: \"badge\",\n        label: \"label\",\n        disabled: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"disabled\", \"disabled\", booleanAttribute],\n        loading: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"loading\", \"loading\", booleanAttribute],\n        loadingIcon: \"loadingIcon\",\n        raised: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"raised\", \"raised\", booleanAttribute],\n        rounded: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"rounded\", \"rounded\", booleanAttribute],\n        text: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"text\", \"text\", booleanAttribute],\n        plain: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"plain\", \"plain\", booleanAttribute],\n        severity: \"severity\",\n        outlined: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"outlined\", \"outlined\", booleanAttribute],\n        link: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"link\", \"link\", booleanAttribute],\n        tabindex: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"tabindex\", \"tabindex\", numberAttribute],\n        size: \"size\",\n        style: \"style\",\n        styleClass: \"styleClass\",\n        badgeClass: \"badgeClass\",\n        ariaLabel: \"ariaLabel\",\n        autofocus: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"autofocus\", \"autofocus\", booleanAttribute]\n      },\n      outputs: {\n        onClick: \"onClick\",\n        onFocus: \"onFocus\",\n        onBlur: \"onBlur\"\n      },\n      standalone: true,\n      features: [i0.ɵɵInputTransformsFeature, i0.ɵɵStandaloneFeature],\n      ngContentSelectors: _c0,\n      decls: 7,\n      vars: 14,\n      consts: [[\"pRipple\", \"\", \"pAutoFocus\", \"\", 3, \"click\", \"focus\", \"blur\", \"ngStyle\", \"disabled\", \"ngClass\", \"autofocus\"], [4, \"ngTemplateOutlet\"], [4, \"ngIf\"], [\"class\", \"p-button-label\", 4, \"ngIf\"], [3, \"ngClass\", \"class\", 4, \"ngIf\"], [4, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"], [3, \"ngClass\", 4, \"ngIf\"], [3, \"styleClass\", \"spin\", 4, \"ngIf\"], [3, \"ngClass\"], [3, \"styleClass\", \"spin\"], [3, \"ngIf\"], [1, \"p-button-label\"]],\n      template: function Button_Template(rf, ctx) {\n        if (rf & 1) {\n          i0.ɵɵprojectionDef();\n          i0.ɵɵelementStart(0, \"button\", 0);\n          i0.ɵɵlistener(\"click\", function Button_Template_button_click_0_listener($event) {\n            return ctx.onClick.emit($event);\n          })(\"focus\", function Button_Template_button_focus_0_listener($event) {\n            return ctx.onFocus.emit($event);\n          })(\"blur\", function Button_Template_button_blur_0_listener($event) {\n            return ctx.onBlur.emit($event);\n          });\n          i0.ɵɵprojection(1);\n          i0.ɵɵtemplate(2, Button_ng_container_2_Template, 1, 0, \"ng-container\", 1)(3, Button_ng_container_3_Template, 3, 5, \"ng-container\", 2)(4, Button_ng_container_4_Template, 3, 5, \"ng-container\", 2)(5, Button_span_5_Template, 2, 3, \"span\", 3)(6, Button_span_6_Template, 2, 5, \"span\", 4);\n          i0.ɵɵelementEnd();\n        }\n        if (rf & 2) {\n          i0.ɵɵproperty(\"ngStyle\", ctx.style)(\"disabled\", ctx.disabled || ctx.loading)(\"ngClass\", ctx.buttonClass)(\"autofocus\", ctx.autofocus);\n          i0.ɵɵattribute(\"type\", ctx.type)(\"aria-label\", ctx.ariaLabel)(\"data-pc-name\", \"button\")(\"data-pc-section\", \"root\")(\"tabindex\", ctx.tabindex);\n          i0.ɵɵadvance(2);\n          i0.ɵɵproperty(\"ngTemplateOutlet\", ctx.contentTemplate);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngIf\", ctx.loading);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngIf\", !ctx.loading);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngIf\", !ctx.contentTemplate && ctx.label);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngIf\", !ctx.contentTemplate && ctx.badge);\n        }\n      },\n      dependencies: [NgIf, NgTemplateOutlet, NgStyle, NgClass, Ripple, AutoFocus, SpinnerIcon],\n      encapsulation: 2,\n      changeDetection: 0\n    });\n  }\n  return Button;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet ButtonModule = /*#__PURE__*/(() => {\n  class ButtonModule {\n    static ɵfac = function ButtonModule_Factory(t) {\n      return new (t || ButtonModule)();\n    };\n    static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n      type: ButtonModule\n    });\n    static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n      imports: [Button, SharedModule]\n    });\n  }\n  return ButtonModule;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { Button, ButtonDirective, ButtonModule };\n","import * as i1 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { booleanAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, ContentChildren, NgModule } from '@angular/core';\nimport { PrimeTemplate, SharedModule } from 'primeng/api';\n\n/**\n * Tag component is used to categorize content.\n * @group Components\n */\nconst _c0 = [\"*\"];\nfunction Tag_ng_container_2_span_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelement(0, \"span\", 5);\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext(2);\n    i0.ɵɵproperty(\"ngClass\", ctx_r0.icon);\n  }\n}\nfunction Tag_ng_container_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainerStart(0);\n    i0.ɵɵtemplate(1, Tag_ng_container_2_span_1_Template, 1, 1, \"span\", 4);\n    i0.ɵɵelementContainerEnd();\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext();\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngIf\", ctx_r0.icon);\n  }\n}\nfunction Tag_span_3_1_ng_template_0_Template(rf, ctx) {}\nfunction Tag_span_3_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵtemplate(0, Tag_span_3_1_ng_template_0_Template, 0, 0, \"ng-template\");\n  }\n}\nfunction Tag_span_3_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"span\", 6);\n    i0.ɵɵtemplate(1, Tag_span_3_1_Template, 1, 0, null, 7);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext();\n    i0.ɵɵadvance();\n    i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.iconTemplate);\n  }\n}\nlet Tag = /*#__PURE__*/(() => {\n  class Tag {\n    cd;\n    /**\n     * Inline style of the component.\n     * @group Props\n     */\n    get style() {\n      return this._style;\n    }\n    set style(value) {\n      this._style = value;\n      this.cd.markForCheck();\n    }\n    /**\n     * Style class of the component.\n     * @group Props\n     */\n    styleClass;\n    /**\n     * Severity type of the tag.\n     * @group Props\n     */\n    severity;\n    /**\n     * Value to display inside the tag.\n     * @group Props\n     */\n    value;\n    /**\n     * Icon of the tag to display next to the value.\n     * @group Props\n     * @deprecated since 15.4.2. Use 'icon' template.\n     */\n    icon;\n    /**\n     * Whether the corners of the tag are rounded.\n     * @group Props\n     */\n    rounded;\n    templates;\n    iconTemplate;\n    _style;\n    ngAfterContentInit() {\n      this.templates?.forEach(item => {\n        switch (item.getType()) {\n          case 'icon':\n            this.iconTemplate = item.template;\n            break;\n        }\n      });\n    }\n    constructor(cd) {\n      this.cd = cd;\n    }\n    containerClass() {\n      return {\n        'p-tag p-component': true,\n        [`p-tag-${this.severity}`]: this.severity,\n        'p-tag-rounded': this.rounded\n      };\n    }\n    static ɵfac = function Tag_Factory(t) {\n      return new (t || Tag)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n    };\n    static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n      type: Tag,\n      selectors: [[\"p-tag\"]],\n      contentQueries: function Tag_ContentQueries(rf, ctx, dirIndex) {\n        if (rf & 1) {\n          i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);\n        }\n        if (rf & 2) {\n          let _t;\n          i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);\n        }\n      },\n      hostAttrs: [1, \"p-element\"],\n      inputs: {\n        style: \"style\",\n        styleClass: \"styleClass\",\n        severity: \"severity\",\n        value: \"value\",\n        icon: \"icon\",\n        rounded: [i0.ɵɵInputFlags.HasDecoratorInputTransform, \"rounded\", \"rounded\", booleanAttribute]\n      },\n      features: [i0.ɵɵInputTransformsFeature],\n      ngContentSelectors: _c0,\n      decls: 6,\n      vars: 7,\n      consts: [[3, \"ngClass\", \"ngStyle\"], [4, \"ngIf\"], [\"class\", \"p-tag-icon\", 4, \"ngIf\"], [1, \"p-tag-value\"], [\"class\", \"p-tag-icon\", 3, \"ngClass\", 4, \"ngIf\"], [1, \"p-tag-icon\", 3, \"ngClass\"], [1, \"p-tag-icon\"], [4, \"ngTemplateOutlet\"]],\n      template: function Tag_Template(rf, ctx) {\n        if (rf & 1) {\n          i0.ɵɵprojectionDef();\n          i0.ɵɵelementStart(0, \"span\", 0);\n          i0.ɵɵprojection(1);\n          i0.ɵɵtemplate(2, Tag_ng_container_2_Template, 2, 1, \"ng-container\", 1)(3, Tag_span_3_Template, 2, 1, \"span\", 2);\n          i0.ɵɵelementStart(4, \"span\", 3);\n          i0.ɵɵtext(5);\n          i0.ɵɵelementEnd()();\n        }\n        if (rf & 2) {\n          i0.ɵɵclassMap(ctx.styleClass);\n          i0.ɵɵproperty(\"ngClass\", ctx.containerClass())(\"ngStyle\", ctx.style);\n          i0.ɵɵadvance(2);\n          i0.ɵɵproperty(\"ngIf\", !ctx.iconTemplate);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngIf\", ctx.iconTemplate);\n          i0.ɵɵadvance(2);\n          i0.ɵɵtextInterpolate(ctx.value);\n        }\n      },\n      dependencies: [i1.NgClass, i1.NgIf, i1.NgTemplateOutlet, i1.NgStyle],\n      styles: [\"@layer primeng{.p-tag{display:inline-flex;align-items:center;justify-content:center}.p-tag-icon,.p-tag-value,.p-tag-icon.pi{line-height:1.5}.p-tag.p-tag-rounded{border-radius:10rem}}\\n\"],\n      encapsulation: 2,\n      changeDetection: 0\n    });\n  }\n  return Tag;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TagModule = /*#__PURE__*/(() => {\n  class TagModule {\n    static ɵfac = function TagModule_Factory(t) {\n      return new (t || TagModule)();\n    };\n    static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n      type: TagModule\n    });\n    static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n      imports: [CommonModule, SharedModule, SharedModule]\n    });\n  }\n  return TagModule;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { Tag, TagModule };\n","import { Component, OnInit, Input } from '@angular/core';\r\nimport { CardComponent } from '../card/card.component';\r\nimport { CarouselModule } from 'primeng/carousel';\r\nimport { ButtonModule } from 'primeng/button';\r\nimport { TagModule } from 'primeng/tag';\r\nimport { RecipeAbstraction } from '../../../core/interfaces/recipe-abstraction';\r\n@Component({\r\n  selector: 'app-carousel',\r\n  standalone: true,\r\n  imports: [CardComponent, CarouselModule, ButtonModule, TagModule],\r\n  templateUrl: './carousel.component.html',\r\n  styleUrl: './carousel.component.scss',\r\n})\r\nexport class CarouselComponent implements OnInit{\r\n  @Input() recipes: RecipeAbstraction[] = [];\r\n\r\n    private currentIndex: number = 0;\r\n    responsiveOptions: any[] | undefined;\r\n\r\n    constructor() {}\r\n\r\n    ngOnInit() {\r\n        this.responsiveOptions = [\r\n            {\r\n                breakpoint: '1199px',\r\n                numVisible: 1,\r\n                numScroll: 1\r\n            },\r\n            {\r\n                breakpoint: '991px',\r\n                numVisible: 2,\r\n                numScroll: 1\r\n            },\r\n            {\r\n                breakpoint: '767px',\r\n                numVisible: 1,\r\n                numScroll: 1\r\n            }\r\n        ];\r\n    }\r\n\r\n    logToConsole(m: any):void {\r\n        console.log(\"i:\"+m);\r\n    }\r\n\r\n    getIndex(): number {\r\n      const currentIndex = this.currentIndex;\r\n      this.currentIndex = (this.currentIndex + 1) % this.recipes.length; // Incrementar el índice\r\n      return currentIndex;\r\n    }\r\n    \r\n}\r\n","<div *ngIf=\"recipes.length<6\">\r\n  <p-carousel\r\n  [value]=\"recipes\"\r\n  [circular]=\"true\"\r\n  [numVisible]=\"3\"\r\n  [numScroll]=\"2\"\r\n  [responsiveOptions]=\"responsiveOptions\"\r\n  [showIndicators]=\"false\"\r\n>\r\n  <ng-template let-product pTemplate=\"item\">\r\n    <div class=\"col\" >\r\n      <div class=\"row col-margin\">\r\n        <div class=\"carousel-item\" >  \r\n          <div *ngFor=\"let recipe of recipes; let i = index\">\r\n            <app-card [recipe]=\"recipes[i]\"></app-card>\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </div>\r\n  </ng-template>\r\n</p-carousel>\r\n</div>\r\n<div *ngIf=\"recipes.length>=6\" class=\"card\">\r\n  <p-carousel\r\n    [value]=\"recipes\"\r\n    [circular]=\"true\"\r\n    [numVisible]=\"3\"\r\n    [numScroll]=\"1\"\r\n    [responsiveOptions]=\"responsiveOptions\"\r\n    [showIndicators]=\"false\"\r\n  >\r\n    <ng-template let-product pTemplate=\"item\">\r\n      <div class=\"col\" >\r\n        <div class=\"row col-margin\">\r\n          <div class=\"carousel-item\" >        \r\n            <app-card [recipe]=\"recipes[getIndex()]\"></app-card>\r\n          </div>\r\n        </div>\r\n        <div class=\"row col-margin\">\r\n            <div class=\"carousel-item\">             \r\n              <app-card [recipe]=\"recipes[getIndex()]\"></app-card>\r\n            </div>\r\n          </div>\r\n      </div>\r\n    </ng-template>\r\n  </p-carousel>\r\n</div>\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpErrorResponse } from '@angular/common/http';\r\nimport { Observable, catchError, throwError} from 'rxjs';\r\nimport { handleError } from '../../utils/api-error-handler.utils';\r\nimport { environment } from '../../../../evironments/environment';\r\n\r\n@Injectable({\r\n  providedIn: 'root'\r\n})\r\nexport class RecipesService {\r\n\r\n  private apiUrl = environment.apiUrl + '/api/Recipes';\r\n\r\n  constructor(private http: HttpClient) {}\r\n\r\n  getRecipes(): Observable<any> {\r\n    return this.http.get<any>(this.apiUrl).pipe(catchError(handleError));\r\n  }\r\n\r\n  getRecipeById(id: any): Observable<any> {\r\n    return this.http.get<any>(`${this.apiUrl}/${id}`).pipe(catchError(handleError));\r\n  }\r\n  createRecipe(recipe: any): Observable<any> {\r\n    return this.http.post<any>(this.apiUrl, recipe).pipe(catchError(handleError));\r\n  }\r\n\r\n  updateRecipe(recipe: any): Observable<any> {\r\n    return this.http.put<any>(this.apiUrl, recipe).pipe(catchError(handleError));\r\n  }\r\n\r\n  deleteRecipe(id: any): Observable<any> {\r\n    return this.http.delete<any>(`${this.apiUrl}/${id}`).pipe(catchError(handleError));\r\n  }\r\n\r\n}\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { NavbarComponent } from '../../shared/components/navbar/navbar.component';\r\nimport { SearchBarComponent } from '../../shared/components/search-bar/search-bar.component';\r\nimport { CardComponent } from './card/card.component';\r\nimport { CarouselComponent } from './carousel/carousel.component';\r\nimport { RecipeAbstraction } from '../../core/interfaces/recipe-abstraction';\r\nimport { RecipesService } from '../../core/services/api/recipes.service';\r\nimport { CommonModule } from '@angular/common';\r\nimport { Router } from '@angular/router';\r\nimport { filterTableData } from '../../core/utils/table-data.utils';\r\nimport { TableData } from '../../core/interfaces/table-data';\r\n\r\n@Component({\r\n  selector: 'app-recipes',\r\n  standalone: true,\r\n  imports: [NavbarComponent, SearchBarComponent, CardComponent, CarouselComponent, CommonModule],\r\n  templateUrl: './recipes.component.html',\r\n  styleUrl: './recipes.component.scss'\r\n})\r\nexport class RecipesComponent implements OnInit{\r\n  recipes: RecipeAbstraction[] = [];\r\n  backUpRecipes: RecipeAbstraction[] = [];\r\n  excludedColumns: string[] = [];\r\n  constructor(private recipeService: RecipesService,  private router: Router) {\r\n    this.getRecipes();\r\n  }\r\n\r\n  ngOnInit(): void {\r\n    this.getRecipes();\r\n  }\r\n\r\n  goTo(): void {\r\n    this.router.navigate(['/recipes/add']);\r\n  }\r\n\r\n  handleSearch(value: string) {\r\n    this.recipes = this.backUpRecipes;\r\n    this.recipes = filterRecipeData(this.recipes, this.excludedColumns, value);\r\n    console.log(this.recipes);\r\n  }\r\n\r\n  private getRecipes(): void {\r\n    this.recipeService.getRecipes().subscribe((res) => {\r\n      this.recipes = res;\r\n      this.backUpRecipes = res;\r\n    });\r\n  }\r\n}\r\n\r\nfunction filterRecipeData(\r\n  data: RecipeAbstraction[],\r\n  excludeColumns: string[],\r\n  filterValue: string\r\n): RecipeAbstraction[] {\r\n  if (!filterValue) {\r\n    return data; // Sin valor de filtro, no filtrar\r\n  }\r\n\r\n  const filter = filterValue.trim().toLowerCase();\r\n\r\n  return data.filter((item) => {\r\n    return Object.keys(item).some((key) => {\r\n      if (excludeColumns.includes(key)) {\r\n        return false;\r\n      }\r\n      const value = item[key as keyof RecipeAbstraction];\r\n      if (typeof value === 'string') {\r\n        return value.toLowerCase().includes(filter);\r\n      }\r\n      return false;\r\n    });\r\n  });\r\n}","<app-navbar></app-navbar>\r\n<div\r\n  class=\"container-fluid d-flex flex-column justify-content-center align-items-center vh-100\"\r\n>\r\n  <div class=\"col-flex justify-content-center align-items-center\">\r\n    <div class=\"container custom-container justify-content-center\">\r\n      <div class=\"row header-row\">\r\n        <div class=\"col\">\r\n          <h1 class=\"view-title\">Recetario</h1>\r\n        </div>\r\n        <div class=\"col\">\r\n          <app-search-bar (search)=\"handleSearch($event)\"></app-search-bar>\r\n        </div>\r\n        <div class=\"col\">\r\n          <button class=\"btn btn-custom\" (click)=\"goTo()\">NUEVA RECETA</button>\r\n        </div>\r\n      </div>\r\n      <div class=\"container justify-content-center align-items-center\">\r\n        <div *ngIf=\"recipes.length === 0\" class=\"row\">\r\n          <div class=\"no-recipe-container\">\r\n            <h2 class=\"text-center\">No hay recetas disponibles</h2>\r\n          </div>\r\n        </div>\r\n        <div *ngIf=\"recipes.length > 0\" class=\"row\">\r\n          <app-carousel [recipes]=\"recipes\"> </app-carousel>\r\n        </div>\r\n      </div>\r\n      <!--app-carousel [recipes]=\"recipes\"> </app-carousel-->\r\n    </div>  \r\n</div>\r\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { CommonModule } from '@angular/common';\r\nimport { UsersService } from '../../../core/services/api/users.service';\r\nimport { SalesChannelsService } from '../../../core/services/api/saleschannels.service';\r\n@Component({\r\n  selector: 'app-event',\r\n  standalone: true,\r\n  imports: [CommonModule],\r\n  templateUrl: './event.component.html',\r\n  styleUrl: './event.component.scss'\r\n})\r\nexport class EventComponent {\r\n  @Input() event: TableData = {};\r\n  @Output() closeEventModal = new EventEmitter<void>();\r\n\r\n  labelTranslation: ColumnTranslations = {\r\n    id: 'ID',\r\n    title: 'Título',\r\n    description: 'Descripción',\r\n    envenDate: 'Fecha',\r\n    user: 'Usuario',\r\n    cost: 'Monto',\r\n    saleChannel: 'Cliente',\r\n  };\r\n\r\n  userData: TableData = {};\r\n  isSale: boolean = false;\r\n  elements: string[] =[];\r\n  splitElementsResult: { leftColumn: string[], rightColumn: string[] } = { leftColumn: [], rightColumn: [] };\r\n\r\n\r\n  constructor(private userService: UsersService, private salesChannelService: SalesChannelsService) {\r\n    \r\n  }\r\n\r\n  ngOnInit() {\r\n    console.log(this.event['title']);\r\n    if(this.event['title'] === \"Venta\"){\r\n      this.isSale = true;\r\n      this.formatDescription();\r\n      console.log(this.elements);\r\n      this.splitElements();\r\n      console.log('Left: ',this.splitElementsResult.leftColumn);\r\n      console.log('Right: ',this.splitElementsResult.rightColumn);\r\n    }\r\n  }\r\n  closeModal() {\r\n    this.closeEventModal.emit();\r\n  }\r\n\r\n  objectKeys(obj: TableData): string[] {\r\n    return Object.keys(obj).filter(key => key !== 'soldBatches' && key !== 'unitsPrice' && key !== 'quantities' && key !== 'description');\r\n  }\r\n  \r\n\r\n  splitKeys(): { leftColumn: string[], rightColumn: string[] } {\r\n    const keys = this.objectKeys(this.event);\r\n    const middleIndex = Math.ceil(keys.length / 2);\r\n    return {\r\n      leftColumn: keys.slice(0, middleIndex),\r\n      rightColumn: keys.slice(middleIndex)\r\n    };\r\n  }\r\n\r\n  translateLabel(column: string): string {\r\n    return this.labelTranslation[column] || column;\r\n  }\r\n\r\n  splitElements(): void {\r\n    const middleIndex = Math.ceil(this.elements.length / 2);\r\n    this.splitElementsResult = {\r\n      leftColumn: this.elements.slice(0, middleIndex),\r\n      rightColumn: this.elements.slice(middleIndex),\r\n    };\r\n  }\r\n\r\n  private formatDescription(){\r\n    this.elements = this.event['description'].split(',');\r\n  }\r\n}\r\n\r\ninterface ColumnTranslations {\r\n  [key: string]: string;\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content modal-content-main\">\r\n      <div\r\n        class=\"modal-header d-flex justify-content-center align-items-center\"\r\n      >\r\n        <h5 class=\"modal-title\">Detalles Evento</h5>\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn-close\"\r\n          aria-label=\"Close\"\r\n          (click)=\"closeModal()\"\r\n        ></button>\r\n      </div>\r\n      <div class=\"modal-body\">\r\n        <div class=\"row\">\r\n          <!-- Columna Izquierda -->\r\n          <div class=\"col\">\r\n            <div *ngFor=\"let key of splitKeys().leftColumn\" class=\"p-2\">\r\n              <div class=\"row row-custom\">\r\n                <div class=\"col-3\">\r\n                  <h3>{{ translateLabel(key) }}:</h3>\r\n                </div>\r\n                <div class=\"col\">\r\n                  <span class=\"data\">{{ event[key] }}</span>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n          <!-- Columna Derecha -->\r\n          <div class=\"col\">\r\n            <div *ngFor=\"let key of splitKeys().rightColumn\" class=\"p-2\">\r\n              <div class=\"row row-custom\">\r\n                <div class=\"col-3\">\r\n                  <h3>{{ translateLabel(key) }}:</h3>\r\n                </div>\r\n                <div class=\"col\">\r\n                  <span *ngIf=\"key === 'user'\" class=\"data\"\r\n                    >{{ event[key][\"name\"] }} {{ event[key][\"surname\"] }} ({{\r\n                      event[key][\"id\"]\r\n                    }})</span\r\n                  >\r\n                  <span *ngIf=\"key === 'saleChannel'\" class=\"data\">{{\r\n                    event[key][\"name\"]\r\n                  }}</span>\r\n                  <span\r\n                    *ngIf=\"key !== 'user' && key !== 'saleChannel'\"\r\n                    class=\"data\"\r\n                  >\r\n                    <div *ngIf=\"key === 'cost'\">${{ event[key] }}</div>\r\n                    <div *ngIf=\"key !== 'cost'\">{{ event[key] }}</div>\r\n                  </span>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n          <div class=\"row\">\r\n            <div class=\"custom-container\">\r\n              <h3 class=\"p-2\">Descripción:</h3>\r\n              <div *ngIf=\"isSale\">\r\n                <div class=\"col p-2\">\r\n                  <ul class=\"p-2\">\r\n                    <!-- Primera columna de elementos -->\r\n                    <li\r\n                      *ngFor=\"let element of splitElementsResult.leftColumn\"\r\n                      class=\"p-2\"\r\n                    >\r\n                      <span>{{ element }}</span>\r\n                    </li>\r\n                  </ul>\r\n                  <ul class=\"p-2\">\r\n                    <!-- Segunda columna de elementos -->\r\n                    <li\r\n                      *ngFor=\"let element of splitElementsResult.rightColumn\"\r\n                      class=\"p-2\"\r\n                    >\r\n                      <span>{{ element }}</span>\r\n                    </li>\r\n                  </ul>\r\n                </div>\r\n              </div>\r\n              <div *ngIf=\"!isSale\">\r\n                <div class=\"col\">\r\n                  <span class=\"p-2\">{{ event[\"description\"] }}</span>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n          <div class=\"modal-footer justify-content-center\">\r\n            <button type=\"button\" class=\"btn btn-custom\" (click)=\"closeModal()\">\r\n              CERRAR\r\n            </button>\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</div>\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { NavbarComponent } from '../../shared/components/navbar/navbar.component';\r\nimport { TableComponent } from '../../shared/components/table/table.component';\r\nimport { TableData } from '../../core/interfaces/table-data';\r\nimport { EventComponent } from './event/event.component';\r\nimport { EventsService } from '../../core/services/api/events.service';\r\nimport { CommonModule } from '@angular/common';\r\n@Component({\r\n  selector: 'app-history',\r\n  standalone: true,\r\n  imports: [NavbarComponent , TableComponent, EventComponent, CommonModule],\r\n  templateUrl: './history.component.html',\r\n  styleUrl: './history.component.scss'\r\n})\r\n\r\nexport class HistoryComponent implements OnInit {\r\n\r\n  selectedEvent: TableData = {};\r\n  openEventModal: boolean = false;\r\n  movements: TableData[] = [];\r\n  excludeColumns: string[] = ['user','description','soldBatches', 'quantities','unitsPrice','saleChannel','cost'];\r\n\r\n  constructor(private eventsService: EventsService) {}\r\n  \r\n  ngOnInit(): void {\r\n    this.getMovements();\r\n  }\r\n\r\n  onRowClicked(event: TableData) {\r\n    this.selectedEvent = event;\r\n    this.openEventModal = true;\r\n  }\r\n\r\n  closeEventModal() {\r\n    this.openEventModal = false;\r\n  }\r\n\r\n  private getMovements() {\r\n    this.eventsService.getEvents().subscribe((movements: TableData[]) => {\r\n      this.movements = movements;\r\n    });\r\n  }\r\n}\r\n","<app-navbar></app-navbar>\r\n<div class=\"container-fluid d-flex flex-column justify-content-center align-items-center vh-100\">\r\n    \r\n    <div class=\"col-flex justify-content-center align-items-center\">\r\n        <div class=\"row header-row\">\r\n            <div class=\"col\">\r\n                <h1 class=\"view-title\">ULTIMOS MOVIMIENTOS</h1>\r\n            </div>\r\n            <div class=\"col d-flex justify-content-end\">\r\n                <button class=\"btn btn-custom\">BUSQUEDA AVANZADA</button>\r\n            </div>\r\n        </div>\r\n\r\n        <app-table [data]=\"movements\" [columnsExcluded]=\"excludeColumns\" (rowClicked)=\"onRowClicked($event)\"></app-table>\r\n\r\n    </div>\r\n</div>\r\n\r\n<app-event *ngIf=\"openEventModal\" [event]=\"selectedEvent\" (closeEventModal)=\"closeEventModal()\"></app-event>","import { Component, EventEmitter, Output } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { UsersService } from '../../../core/services/api/users.service';\r\nimport { ReactiveFormsModule, FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { emailValidator, phoneValidator } from '../../../core/utils/validators';\r\nimport { matchPasswordValidator } from '../../../core/utils/validators';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\n@Component({\r\n  selector: 'app-add-user',\r\n  standalone: true,\r\n  imports: [ReactiveFormsModule, CommonModule],\r\n  templateUrl: './add-user.component.html',\r\n  styleUrl: './add-user.component.scss'\r\n})\r\nexport class AddUserComponent {\r\n  @Output() closeModalEvent = new EventEmitter<void>();\r\n  userForm: FormGroup;\r\n  confirmPassword: string = '';\r\n  fatalError: boolean = false;\r\n  fatalErrorMessage: string = 'Hubo un error al intentar crear el usuario. Por favor, intente nuevamente.';\r\n\r\n  constructor(private userService: UsersService, private formBuilder: FormBuilder) {\r\n    this.userForm = this.formBuilder.group({\r\n      email: ['', [Validators.required, emailValidator]],\r\n      name: ['', [Validators.required,  Validators.pattern(\"^[a-zA-ZÀ-ÿ'\\\\- ]+$\"),]],\r\n      surname: ['', [Validators.required,  Validators.pattern(\"^[a-zA-ZÀ-ÿ'\\\\- ]+$\"),]],\r\n      phone: ['', [Validators.required, phoneValidator]],\r\n      password: ['', Validators.required],\r\n      confirmPassword: ['', Validators.required],\r\n      role: ['', Validators.required]\r\n    }, { validator: matchPasswordValidator() });\r\n  }\r\n\r\n  closeModal() {\r\n    this.closeModalEvent.emit();\r\n  }\r\n\r\n\r\n  onSubmit() {\r\n    if (this.userForm.valid) {\r\n      this.fatalError = false;\r\n      const user: TableData = {\r\n        name: this.userForm.get('name')?.value,\r\n        surname: this.userForm.get('surname')?.value,\r\n        email: this.userForm.get('email')?.value,\r\n        phone: this.userForm.get('phone')?.value,\r\n        password: this.userForm.get('password')?.value ||'', // Password is optional\r\n        role: this.userForm.get('role')?.value\r\n      };\r\n      //Call to backend\r\n      this.userService.createUser(user).subscribe(() => {\r\n        this.closeModalEvent.emit(); // Cerrar el modal\r\n      });\r\n    }\r\n    else {\r\n      this.fatalError = true;\r\n    }\r\n  }\r\n}\r\n","<div class=\"modal modal-bg fade show\" tabindex=\"-1\" style=\"display: block\" aria-modal=\"true\" role=\"dialog\">\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content\">\r\n      <div class=\"modal-header\">\r\n        <h5 class=\"modal-title\">Agregar Usuario</h5>\r\n        <button type=\"button\" class=\"btn-close\" aria-label=\"Close\" (click)=\"closeModal()\"></button>\r\n      </div>\r\n      <form #aux=\"ngForm\" [formGroup]=\"userForm\" (ngSubmit)=\"onSubmit()\">\r\n        <div class=\"modal-body\">\r\n          <div class=\"row\">\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"email\">Email</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input type=\"email\" class=\"form-control\" id=\"email\" name=\"email\" formControlName=\"email\"\r\n                      [ngClass]=\"{ 'is-invalid': (userForm.get('email')?.dirty || userForm.get('email')?.touched || aux.submitted) && userForm.get('email')?.invalid }\" />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\" aux.submitted || (userForm.get('email')?.invalid && (userForm.get('email')?.dirty || userForm.get('email')?.touched))\"\r\n                      class=\"text-danger\">\r\n                      <div *ngIf=\"userForm.get('email')?.errors?.['required']\">Email es requerido.</div>\r\n                      <div\r\n                        *ngIf=\"!userForm.get('email')?.errors?.['required'] && (userForm.get('email')?.errors?.['email'] ||userForm.get('email')?.errors?.['invalidEmail'])\">\r\n                        Formato de email inválido.</div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"name\">Nombre</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input type=\"text\" class=\"form-control\" id=\"name\" name=\"name\" formControlName=\"name\"\r\n                      [ngClass]=\"{ 'is-invalid': (userForm.get('name')?.dirty || userForm.get('name')?.touched || aux.submitted) && userForm.get('name')?.invalid }\" />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"aux.submitted || userForm.get('name')?.invalid && (userForm.get('name')?.dirty || userForm.get('name')?.touched)\"\r\n                      class=\"text-danger\">\r\n                      <div *ngIf=\"userForm.get('name')?.errors?.['required']\">Nombre es requerido.</div>\r\n                      <div\r\n                        *ngIf=\"!userForm.get('name')?.errors?.['required'] && userForm.get('name')?.errors?.['pattern']\">\r\n                        El nombre no debe contener números ni símbolos.</div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"surname\">Apellido</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input type=\"text\" class=\"form-control\" id=\"surname\" name=\"surname\" formControlName=\"surname\"\r\n                      [ngClass]=\"{ 'is-invalid': (userForm.get('surname')?.dirty || userForm.get('surname')?.touched || aux.submitted) && userForm.get('surname')?.invalid }\" />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"aux.submitted || userForm.get('surname')?.invalid && (userForm.get('surname')?.dirty || userForm.get('surname')?.touched)\"\r\n                      class=\"text-danger\">\r\n                      <div *ngIf=\"userForm.get('surname')?.errors?.['required']\">Apellido es requerido.</div>\r\n                      <div\r\n                        *ngIf=\"!userForm.get('surname')?.errors?.['required'] && userForm.get('surname')?.errors?.['pattern']\">\r\n                        El apellido no debe contener números ni símbolos.</div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"phone\">Teléfono</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input type=\"number\" class=\"form-control\" id=\"phone\" name=\"phone\" formControlName=\"phone\"\r\n                      [ngClass]=\"{ 'is-invalid': (userForm.get('phone')?.dirty || userForm.get('phone')?.touched || aux.submitted) && userForm.get('phone')?.invalid }\" />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"(userForm.get('phone')?.invalid && (userForm.get('phone')?.dirty || userForm.get('phone')?.touched)) || (aux.submitted && userForm.get('phone')?.invalid)\"\r\n                      class=\"text-danger\">\r\n                      <div *ngIf=\"userForm.get('phone')?.errors?.['required']\">Teléfono es requerido.</div>\r\n                      <div *ngIf=\"!userForm.get('phone')?.errors?.['required'] && userForm.get('phone')?.errors?.['invalidPhone']\">Formato de teléfono inválido.</div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-5\">\r\n                    <label for=\"password\">Contraseña</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input type=\"password\" class=\"form-control\" id=\"password\" name=\"password\" formControlName=\"password\"\r\n                      [ngClass]=\"{ 'is-invalid': (userForm.get('password')?.dirty || userForm.get('password')?.touched || aux.submitted) && userForm.get('password')?.invalid }\" />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"(userForm.get('password')?.invalid && (userForm.get('password')?.dirty || userForm.get('password')?.touched)) || (aux.submitted && userForm.get('password')?.invalid)\"\r\n                      class=\"text-danger\">\r\n                      Contraseña es requerida.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-5\">\r\n                    <label for=\"confirmPassword\">Confirmar Contraseña</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input type=\"password\" class=\"form-control\" id=\"confirmPassword\" formControlName=\"confirmPassword\"\r\n                      [ngClass]=\"{ 'is-invalid': (userForm.get('confirmPassword')?.dirty || userForm.get('confirmPassword')?.touched || aux.submitted) && userForm.get('confirmPassword')?.invalid }\" />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"(userForm.get('confirmPassword')?.invalid && (userForm.get('confirmPassword')?.dirty || userForm.get('confirmPassword')?.touched)) || (aux.submitted && userForm.get('confirmPassword')?.invalid)\"\r\n                      class=\"text-danger\">\r\n                      Confirmar Contraseña es requerida.\r\n                    </div>\r\n                    <!-- Mostrar error si las contraseñas no coinciden -->\r\n                    <div\r\n                      *ngIf=\"userForm.hasError('passwordMismatch') && (userForm.get('confirmPassword')?.dirty || userForm.get('confirmPassword')?.touched)\"\r\n                      class=\"text-danger\">\r\n                      Las contraseñas no coinciden.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <label for=\"role\">Rol:</label>\r\n                <div class=\"d-flex flex-column align-items-center\">\r\n                  <div class=\"form-check\">\r\n                    <input class=\"form-check-input\" type=\"radio\" id=\"roleAdmin\" name=\"role\" value=\"Admin\"\r\n                      formControlName=\"role\"\r\n                      [ngClass]=\"{ 'is-invalid': (userForm.get('role')?.dirty || userForm.get('role')?.touched || aux.submitted) && userForm.get('role')?.invalid }\" />\r\n                    <label class=\"form-check-label\" for=\"roleAdmin\">Admin</label>\r\n                  </div>\r\n                  <div class=\"form-check\">\r\n                    <input class=\"form-check-input\" type=\"radio\" id=\"roleUser\" name=\"role\" value=\"User\"\r\n                      formControlName=\"role\"\r\n                      [ngClass]=\"{ 'is-invalid': (userForm.get('role')?.dirty || userForm.get('role')?.touched || aux.submitted) && userForm.get('role')?.invalid }\" />\r\n                    <label class=\"form-check-label\" for=\"roleUser\">User</label>\r\n                  </div>\r\n                </div>\r\n                <div class=\"error-container\">\r\n                  <div\r\n                    *ngIf=\"(userForm.get('role')?.invalid && (userForm.get('role')?.dirty || userForm.get('role')?.touched)) || (aux.submitted && userForm.get('role')?.invalid)\"\r\n                    class=\"text-danger\">\r\n                    Rol es requerido.\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"modal-footer justify-content-center\">\r\n          <button type=\"submit\" class=\"btn btn-custom\">GUARDAR</button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>","import { Component, EventEmitter, Input, Output, OnChanges, SimpleChanges } from '@angular/core';\r\nimport { User } from '../../../core/interfaces/entities/user';\r\nimport { ReactiveFormsModule, FormBuilder, FormGroup, Validators, AbstractControl, ValidationErrors, FormsModule } from '@angular/forms';\r\nimport { CommonModule } from '@angular/common';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { UsersService } from '../../../core/services/api/users.service';\r\nimport { phoneValidator, emailValidator, matchPasswordValidator } from '../../../core/utils/validators';\r\nimport { DeleteModalComponent } from '../../../shared/components/delete-modal/delete-modal.component';\r\nimport { AuthService } from '../../../core/services/auth/auth.service';\r\n@Component({\r\n  selector: 'app-user',\r\n  standalone: true,\r\n  imports: [ReactiveFormsModule, CommonModule, FormsModule, DeleteModalComponent],\r\n  templateUrl: './user.component.html',\r\n  styleUrls: ['./user.component.scss']\r\n})\r\nexport class UserComponent implements OnChanges {\r\n  @Input() userInput: TableData = {};\r\n  @Output() closeUserModalEvent = new EventEmitter<void>();\r\n\r\n  userForm: FormGroup;\r\n  isToggled: boolean = false;\r\n  confirmDeleteModal: boolean = false;\r\n  myId: any;\r\n\r\n  constructor(private UsersService: UsersService, private fb: FormBuilder, private AuthService: AuthService) { \r\n    this.userForm = this.fb.group({\r\n      email: [{ value: '', disabled: !this.isToggled }, [Validators.required, emailValidator]],\r\n      name: [{ value: '', disabled: !this.isToggled }, [Validators.required,  Validators.pattern(\"^[a-zA-ZÀ-ÿ'\\\\- ]+$\"),]],\r\n      surname: [{ value: '', disabled: !this.isToggled }, [Validators.required,  Validators.pattern(\"^[a-zA-ZÀ-ÿ'\\\\- ]+$\"),]],\r\n      phone: [{ value: '', disabled: !this.isToggled }, [Validators.required, phoneValidator]],\r\n      password: [{ value: '', disabled: !this.isToggled }],\r\n      confirmPassword: [{ value: '', disabled: !this.isToggled }],\r\n      role: [{ value: '', disabled: !this.isToggled }, Validators.required]\r\n    },{ validator: matchPasswordValidator() });\r\n  }\r\n\r\n  ngOnInit(){\r\n    this.myId = this.AuthService.getUserId();\r\n  }\r\n\r\n  ngOnChanges(changes: SimpleChanges) {\r\n    if (changes['userInput'] && changes['userInput'].currentValue) {\r\n      const user = this.transformUserInput(this.userInput);\r\n      this.userForm.patchValue(user);\r\n      this.userForm.get('role')?.setValue(user.role);\r\n    }\r\n  }\r\n\r\n  toggleEditMode() {\r\n    this.isToggled = !this.isToggled;\r\n    if (this.isToggled) {\r\n      this.userForm.enable(); // Habilita todos los controles del formulario\r\n    } else {\r\n      this.userForm.disable(); // Deshabilita todos los controles del formulario\r\n    }\r\n  }\r\n\r\n  closeModal() {\r\n    this.closeUserModalEvent.emit();\r\n  }\r\n\r\n  onSubmit() {\r\n    if (this.userForm.valid) {;\r\n      const userToSave: TableData = {\r\n        id: this.userInput['id'],\r\n        name: this.userForm.get('name')?.value,\r\n        surname: this.userForm.get('surname')?.value,\r\n        email: this.userForm.get('email')?.value,\r\n        phone: this.userForm.get('phone')?.value,\r\n        role: this.userForm.get('role')?.value,\r\n        password: this.userForm.get('password')?.value || this.userInput['password'] // La contraseña es opcional\r\n      };\r\n      //console.log('User to save:', userToSave);\r\n      // Call backend\r\n      this.UsersService.updateUser(userToSave).subscribe(\r\n        () => {\r\n          this.closeUserModalEvent.emit();\r\n        }\r\n      );\r\n    } else {\r\n      this.userForm.markAllAsTouched();\r\n    }\r\n  }\r\n\r\n  confirmDelete() {\r\n    this.confirmDeleteModal = true;\r\n  }\r\n\r\n  closeDeleteModal() {\r\n    this.confirmDeleteModal = false;\r\n  }\r\n\r\n  deleteUser() {\r\n    //Call backend\r\n    //console.log('User to delete:', this.userInput['id']);\r\n    this.UsersService.deleteUser(this.userInput['id']).subscribe(\r\n      response => {\r\n        // Aquí puedes manejar la respuesta si es necesario\r\n        //console.log('Usuario eliminado:', response);\r\n        // Cerrar el modal de confirmación de eliminación\r\n        this.confirmDeleteModal = false;\r\n        // Emitir el evento para cerrar el modal del usuario\r\n        this.closeUserModalEvent.emit();\r\n      },\r\n      error => {\r\n        // Aquí puedes manejar cualquier error que ocurra durante la eliminación\r\n        console.error('Error al eliminar el usuario:', error);\r\n      }\r\n    );\r\n  }\r\n\r\n  isMe(){\r\n    return this.userInput['id'] === this.myId;\r\n  }\r\n  private transformUserInput(data: TableData): User {\r\n    //console.log('Data:', data);\r\n    return {\r\n      id: data['id'],\r\n      name: data['name'] ?? '',\r\n      surname: data['surname'] ?? '',\r\n      email: data['email'] ?? '',\r\n      phone: data['phone'] ?? '',\r\n      password: '',  // No mostramos la contraseña\r\n      role: data['role'] ?? ''\r\n    };\r\n  }\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content modal-content-main\">\r\n      <div\r\n        class=\"modal-header d-flex justify-content-center align-items-center\"\r\n      >\r\n        <div class=\"row w-100\">\r\n          <div class=\"col\">\r\n            <h5 class=\"modal-title\">Detalles Usuario</h5>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-center\">\r\n            <div class=\"form-check form-switch\">\r\n              <label class=\"form-check-label\" for=\"flexSwitchCheckDefault\"\r\n                >Editar</label\r\n              >\r\n              <input\r\n                class=\"form-check-input custom-switch\"\r\n                type=\"checkbox\"\r\n                id=\"flexSwitchCheckDefault\"\r\n                (change)=\"toggleEditMode()\"\r\n              />\r\n            </div>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-end\">\r\n            <button\r\n              type=\"button\"\r\n              class=\"btn-close\"\r\n              aria-label=\"Close\"\r\n              (click)=\"closeModal()\"\r\n            ></button>\r\n          </div>\r\n        </div>\r\n      </div>\r\n      <form #aux=\"ngForm\" [formGroup]=\"userForm\" (ngSubmit)=\"onSubmit()\">\r\n        <div class=\"modal-body\">\r\n          <div class=\"row\">\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"email\">Email</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"email\"\r\n                      class=\"form-control\"\r\n                      id=\"email\"\r\n                      name=\"email\"\r\n                      formControlName=\"email\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('email')?.dirty ||\r\n                            userForm.get('email')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('email')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (userForm.get('email')?.invalid &&\r\n                          (userForm.get('email')?.dirty ||\r\n                            userForm.get('email')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div *ngIf=\"userForm.get('email')?.errors?.['required']\">\r\n                        Email es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!userForm.get('email')?.errors?.['required'] && (userForm.get('email')?.errors?.['email'] ||userForm.get('email')?.errors?.['invalidEmail'])\"\r\n                      >\r\n                        Formato de email inválido.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"name\">Nombre</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"name\"\r\n                      name=\"name\"\r\n                      formControlName=\"name\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('name')?.dirty ||\r\n                            userForm.get('name')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('name')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (userForm.get('name')?.invalid &&\r\n                          (userForm.get('name')?.dirty ||\r\n                            userForm.get('name')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div *ngIf=\"userForm.get('name')?.errors?.['required']\">\r\n                        Nombre es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!userForm.get('name')?.errors?.['required'] && userForm.get('name')?.errors?.['pattern']\"\r\n                      >\r\n                        El nombre no debe contener números ni símbolos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"surname\">Apellido</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"surname\"\r\n                      name=\"surname\"\r\n                      formControlName=\"surname\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('surname')?.dirty ||\r\n                            userForm.get('surname')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('surname')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (userForm.get('surname')?.invalid &&\r\n                          (userForm.get('surname')?.dirty ||\r\n                            userForm.get('surname')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"userForm.get('surname')?.errors?.['required']\"\r\n                      >\r\n                        Apellido es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!userForm.get('surname')?.errors?.['required'] && userForm.get('surname')?.errors?.['pattern']\"\r\n                      >\r\n                        El apellido no debe contener números ni símbolos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"phone\">Teléfono</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"phone\"\r\n                      name=\"phone\"\r\n                      formControlName=\"phone\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('phone')?.dirty ||\r\n                            userForm.get('phone')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('phone')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        (userForm.get('phone')?.invalid &&\r\n                          (userForm.get('phone')?.dirty ||\r\n                            userForm.get('phone')?.touched)) ||\r\n                        (aux.submitted && userForm.get('phone')?.invalid)\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div *ngIf=\"userForm.get('phone')?.errors?.['required']\">\r\n                        Teléfono es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"userForm.get('phone')?.errors?.['invalidPhone']\"\r\n                      >\r\n                        Formato de teléfono inválido.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-5\">\r\n                    <label for=\"password\">Contraseña</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"password\"\r\n                      class=\"form-control\"\r\n                      id=\"password\"\r\n                      name=\"password\"\r\n                      formControlName=\"password\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('password')?.dirty ||\r\n                            userForm.get('password')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('password')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        userForm.get('password')?.value &&\r\n                        userForm.get('password')?.invalid &&\r\n                        (userForm.get('password')?.dirty ||\r\n                          userForm.get('password')?.touched ||\r\n                          aux.submitted)\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Ingrese una contraseña válida.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-5\">\r\n                    <label for=\"confirmPassword\">Confirmar Contraseña</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"password\"\r\n                      class=\"form-control\"\r\n                      id=\"confirmPassword\"\r\n                      formControlName=\"confirmPassword\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('confirmPassword')?.dirty ||\r\n                            userForm.get('confirmPassword')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('confirmPassword')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div *ngIf=\"userForm.get('password')?.value\">\r\n                      <div\r\n                        *ngIf=\"\r\n                          !userForm.get('confirmPassword')?.value &&\r\n                          (aux.submitted ||\r\n                            (userForm.get('confirmPassword')?.dirty &&\r\n                            userForm.get('confirmPassword')?.touched))\r\n                        \"\r\n                        class=\"text-danger\"\r\n                      >\r\n                        Confirmar Contraseña es requerida.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"userForm.get('confirmPassword')?.value && userForm.hasError('passwordMismatch') && (aux.submitted || userForm.get('confirmPassword')?.dirty || userForm.get('confirmPassword')?.touched)\"\r\n                        class=\"text-danger\"\r\n                      >\r\n                        Las contraseñas no coinciden.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <label for=\"role\">Rol:</label>\r\n                <div class=\"d-flex flex-column align-items-center\">\r\n                  <div class=\"form-check\">\r\n                    <input\r\n                      class=\"form-check-input\"\r\n                      type=\"radio\"\r\n                      id=\"roleAdmin\"\r\n                      name=\"role\"\r\n                      value=\"Admin\"\r\n                      formControlName=\"role\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('role')?.dirty ||\r\n                            userForm.get('role')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('role')?.invalid\r\n                      }\"\r\n                    />\r\n                    <label class=\"form-check-label\" for=\"roleAdmin\"\r\n                      >Admin</label\r\n                    >\r\n                  </div>\r\n                  <div class=\"form-check\">\r\n                    <input\r\n                      class=\"form-check-input\"\r\n                      type=\"radio\"\r\n                      id=\"roleUser\"\r\n                      name=\"role\"\r\n                      value=\"User\"\r\n                      formControlName=\"role\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('role')?.dirty ||\r\n                            userForm.get('role')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('role')?.invalid\r\n                      }\"\r\n                    />\r\n                    <label class=\"form-check-label\" for=\"roleUser\">User</label>\r\n                  </div>\r\n                </div>\r\n                <div class=\"error-container\">\r\n                  <div\r\n                    *ngIf=\"\r\n                      (userForm.get('role')?.invalid &&\r\n                        (userForm.get('role')?.dirty ||\r\n                          userForm.get('role')?.touched)) ||\r\n                      (aux.submitted && userForm.get('role')?.invalid)\r\n                    \"\r\n                    class=\"text-danger\"\r\n                  >\r\n                    Rol es requerido.\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"modal-footer justify-content-center\">\r\n          <button type=\"submit\" class=\"btn btn-custom\">GUARDAR</button>\r\n          <button *ngIf=\"!isMe()\" type=\"button\" class=\"btn btn-danger\" (click)=\"confirmDelete()\">Eliminar</button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n\r\n<app-delete-modal\r\n  *ngIf=\"confirmDeleteModal\"\r\n  [headerMessage]=\"'Eliminar Usuario'\"\r\n  [bodyMessage]=\"'¿Estás seguro que deseas borrar este Usuario?'\"\r\n  (cancel)=\"closeDeleteModal()\"\r\n  (confirm)=\"deleteUser()\"\r\n/>  \r\n","import { Component, OnInit, } from '@angular/core';\r\nimport { NavbarComponent } from '../../shared/components/navbar/navbar.component';\r\nimport { TableData } from '../../core/interfaces/table-data';\r\nimport { TableComponent } from '../../shared/components/table/table.component';\r\nimport { SearchBarComponent } from '../../shared/components/search-bar/search-bar.component';\r\nimport { AddUserComponent } from './add-user/add-user.component';\r\nimport { CommonModule } from '@angular/common';\r\nimport { UserComponent } from './user/user.component';\r\nimport { UsersService } from '../../core/services/api/users.service';\r\nimport { filterTableData } from '../../core/utils/table-data.utils';\r\n\r\n@Component({\r\n  selector: 'app-users',\r\n  standalone: true,\r\n  imports: [NavbarComponent, TableComponent, SearchBarComponent, \r\n            AddUserComponent, CommonModule, UserComponent],\r\n  templateUrl: './users.component.html',\r\n  styleUrl: './users.component.scss'\r\n})\r\nexport class UsersComponent implements OnInit{\r\n\r\n  columnsExcluded: string[] = ['transactions','password'];\r\n\r\n  backUpUsers: TableData[] = [];\r\n  users: TableData[] = [];\r\n  addUserModal: boolean = false;\r\n  openUserModal: boolean = false;\r\n  selectedUser: any;\r\n\r\n  constructor(private UsersService: UsersService) { }\r\n\r\n  ngOnInit(): void {\r\n    this.getUsers();\r\n  }\r\n\r\n\r\n  openAddUserModal() {\r\n    this.addUserModal = true;\r\n  }\r\n  closeAddUserModal() {\r\n    this.getUsers();\r\n    this.addUserModal = false;\r\n  }\r\n\r\n\r\n  onRowClicked(user: TableData) {\r\n    this.selectedUser = user;\r\n    this.openUserModal = true;\r\n  }\r\n\r\n  closeUserModal() {\r\n    this.getUsers();\r\n    this.openUserModal = false;\r\n  }\r\n\r\n  handleSearch(value: string) {\r\n    this.users = this.backUpUsers;\r\n    this.users = filterTableData(this.users, this.columnsExcluded, value);\r\n  }\r\n\r\n  private getUsers() {\r\n    this.UsersService.getUsers().subscribe((data: any) => {\r\n      this.backUpUsers = data;\r\n      this.users = data;\r\n    });\r\n  }\r\n\r\n  \r\n}\r\n","<app-navbar></app-navbar>\r\n<div class=\"container-fluid d-flex flex-column justify-content-center align-items-center vh-100\">\r\n    \r\n    <div class=\"col-flex justify-content-center align-items-center\">\r\n        <div class=\"row header-row\">\r\n            <div class=\"col\">\r\n                <h1 class=\"view-title\">Usuarios</h1>\r\n            </div>\r\n            <div class=\"col\">\r\n               <app-search-bar (search)=\"handleSearch($event)\"></app-search-bar>\r\n            </div>\r\n            <div class=\"col d-flex justify-content-center\">\r\n                <a type=\"button\" class=\"btn btn-custom\"  (click)=\"openAddUserModal()\">AGREGAR USUARIO</a>\r\n            </div>\r\n        </div>\r\n\r\n        <app-table [data]=\"users\" [columnsExcluded]=\"columnsExcluded\" (rowClicked)=\"onRowClicked($event)\"></app-table>\r\n\r\n    </div>\r\n</div>\r\n\r\n\r\n<app-add-user *ngIf=\"addUserModal\"  (closeModalEvent)=\"closeAddUserModal()\"></app-add-user>\r\n<app-user *ngIf=\"openUserModal\" [userInput]=\"selectedUser\" (closeUserModalEvent)=\"closeUserModal()\"></app-user>","import { Component, EventEmitter, Output } from '@angular/core';\r\nimport {\r\n  ReactiveFormsModule,\r\n  FormBuilder,\r\n  FormGroup,\r\n  Validators,\r\n} from '@angular/forms';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ProvidersService } from '../../../core/services/api/providers.service';\r\nimport {\r\n  emailValidator,\r\n  phoneValidator,\r\n  cuitValidator,\r\n} from '../../../core/utils/validators';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\n\r\n@Component({\r\n  selector: 'app-add-provider',\r\n  standalone: true,\r\n  imports: [ReactiveFormsModule, CommonModule],\r\n  templateUrl: './add-provider.component.html',\r\n  styleUrl: './add-provider.component.scss',\r\n})\r\nexport class AddProviderComponent {\r\n  @Output() closeModalEvent = new EventEmitter<void>();\r\n  providerForm: FormGroup;\r\n\r\n  provider: TableData = {};\r\n\r\n  constructor(\r\n    private providersService: ProvidersService,\r\n    private formBuilder: FormBuilder\r\n  ) {\r\n    this.providerForm = this.formBuilder.group({\r\n      name: ['', [Validators.required,  Validators.pattern('^[a-zA-ZÀ-ÿ0-9 ]*$')]],\r\n      email: ['', [Validators.required, emailValidator]],\r\n      phone: ['', [phoneValidator]],\r\n      cuit: ['', [Validators.required, cuitValidator]],\r\n      cp: ['', [Validators.required,  Validators.pattern('^(?!0000)[0-9]{4}$')]], // Ejemplo para un CP de 4-6 dígitos\r\n      address: ['', [Validators.required]],\r\n      line2: [''],\r\n      description: [''],\r\n    });\r\n  }\r\n\r\n  closeModal() {\r\n    this.closeModalEvent.emit();\r\n  }\r\n\r\n  onSubmit() {\r\n    if (this.providerForm.valid) {\r\n      const fullAddress = `${this.providerForm.get('cp')?.value}|${\r\n        this.providerForm.get('address')?.value\r\n      }|${this.providerForm.get('line2')?.value}`\r\n        .trim()\r\n        .replace(/|\\s*$/, '');\r\n      this.provider = {\r\n        name: this.providerForm.get('name')?.value,\r\n        email: this.providerForm.get('email')?.value,\r\n        phone: this.providerForm.get('phone')?.value,\r\n        cuit: this.providerForm.get('cuit')?.value,\r\n        address: fullAddress,\r\n        description: this.providerForm.get('description')?.value || '',\r\n      };\r\n      //Call to backend\r\n      this.providersService.createProvider(this.provider).subscribe(\r\n        (response) => {\r\n          this.closeModal();\r\n        },\r\n        (error) => {\r\n          console.error('Error al crear el proveedor:', error);\r\n        }\r\n      );\r\n    } else {\r\n      console.error('Formulario inválido. Revise los campos.');\r\n    }\r\n  }\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content\">\r\n      <div class=\"modal-header\">\r\n        <h5 class=\"modal-title\">Agregar Proveedor</h5>\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn-close\"\r\n          aria-label=\"Close\"\r\n          (click)=\"closeModal()\"\r\n        ></button>\r\n      </div>\r\n      <form\r\n        #aux=\"ngForm\"\r\n        [formGroup]=\"providerForm\"\r\n        (ngSubmit)=\"onSubmit()\"\r\n        noValidate\r\n      >\r\n        <div class=\"modal-body\">\r\n          <div class=\"row\">\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"name\" class=\"title\">Nombre</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"name\"\r\n                      name=\"name\"\r\n                      formControlName=\"name\"\r\n                      placeholder=\"Nombre\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('name')?.dirty ||\r\n                            providerForm.get('name')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('name')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"(aux.submitted || providerForm.get('name')?.dirty || providerForm.get('name')?.touched) && providerForm.get('name')?.invalid\"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div *ngIf=\"providerForm.get('name')?.errors?.['required']\">\r\n                        Nombre es requerido.\r\n                      </div>\r\n                      <div *ngIf=\"providerForm.get('name')?.errors?.['pattern']\">\r\n                        El nombre no debe contener números ni símbolos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>              \r\n             \r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-1\">\r\n                    <label for=\"email\" class=\"title\">Email</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"email\"\r\n                      class=\"form-control\"\r\n                      id=\"email\"\r\n                      name=\"email\"\r\n                      formControlName=\"email\"\r\n                      placeholder=\"Correo electrónico\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('email')?.dirty ||\r\n                            providerForm.get('email')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('email')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (providerForm.get('email')?.invalid &&\r\n                          (providerForm.get('email')?.dirty ||\r\n                            providerForm.get('email')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"providerForm.get('email')?.errors?.['required']\"\r\n                      >\r\n                        Email es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!providerForm.get('email')?.errors?.['required'] && (providerForm.get('email')?.errors?.['email'] || providerForm.get('email')?.errors?.['invalidEmail'])\"\r\n                      >\r\n                        Formato de email inválido.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"phone\" class=\"title\">Teléfono</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"number\"\r\n                      class=\"form-control\"\r\n                      id=\"phone\"\r\n                      name=\"phone\"\r\n                      formControlName=\"phone\"\r\n                      placeholder=\"Teléfono\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('phone')?.dirty ||\r\n                            providerForm.get('phone')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('phone')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        (providerForm.get('phone')?.invalid &&\r\n                          (providerForm.get('phone')?.dirty ||\r\n                          providerForm.get('phone')?.touched)) ||\r\n                        (aux.submitted && providerForm.get('phone')?.invalid)\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div *ngIf=\"providerForm.get('phone')?.errors?.['required']\">\r\n                        Teléfono es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"providerForm.get('phone')?.errors?.['invalidPhone']\"\r\n                      >\r\n                        Formato de teléfono inválido.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"cuit\" class=\"title\">CUIT</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"number\"\r\n                      class=\"form-control\"\r\n                      id=\"cuit\"\r\n                      name=\"cuit\"\r\n                      formControlName=\"cuit\"\r\n                      placeholder=\"000000000000\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('cuit')?.dirty ||\r\n                            providerForm.get('cuit')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('cuit')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (providerForm.get('cuit')?.invalid &&\r\n                          (providerForm.get('cuit')?.dirty ||\r\n                            providerForm.get('cuit')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"providerForm.get('cuit')?.errors?.['required']\"\r\n                      >\r\n                        CUIT es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!providerForm.get('cuit')?.errors?.['required'] && providerForm.get('cuit')?.errors?.['pattern']\"\r\n                      >\r\n                        El CUIT no debe contener letras ni símbolos, y debe\r\n                        contener 11 digitos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"col\">\r\n              <div class=\"form-group\">\r\n                <div class=\"row align-items-center py-2\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"address\" class=\"title\">Direccion</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"address\"\r\n                      formControlName=\"address\"\r\n                      placeholder=\"Direccion\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('address')?.dirty ||\r\n                            providerForm.get('address')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('address')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        (aux.submitted && providerForm.get('address')?.invalid) ||\r\n                        (providerForm.get('address')?.invalid &&\r\n                          (providerForm.get('address')?.dirty ||\r\n                            providerForm.get('address')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Se necesita una direccion.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-1\">\r\n                    <label for=\"cp\" class=\"title\">CP</label>\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"cp\"\r\n                      name=\"cp\"\r\n                      formControlName=\"cp\"\r\n                      placeholder=\"0000\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('cp')?.dirty ||\r\n                            providerForm.get('cp')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('cp')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <label for=\"line2\" class=\"title\">Notas</label>\r\n                  </div>\r\n                  <div class=\"col-7\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"line2\"\r\n                      formControlName=\"line2\"\r\n                      placeholder=\"Entre calles 00 y 00\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('line2')?.dirty ||\r\n                            providerForm.get('line2')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('line2')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        providerForm.get('line2')?.invalid &&\r\n                        (providerForm.get('line2')?.dirty ||\r\n                          providerForm.get('line2')?.touched)\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Revise las notas.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"\r\n                        (aux.submitted && providerForm.get('cp')?.invalid) ||\r\n                        (providerForm.get('cp')?.invalid &&\r\n                          (providerForm.get('cp')?.dirty ||\r\n                            providerForm.get('cp')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      CP es requerido.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group\">\r\n                <label\r\n                  for=\"description\"\r\n                  class=\"title\"\r\n                  style=\"padding-bottom: 0.3rem\"\r\n                  >Descripción</label\r\n                >\r\n                <textarea\r\n                  class=\"form-control desc\"\r\n                  id=\"description\"\r\n                  name=\"description\"\r\n                  formControlName=\"description\"\r\n                  maxlength=\"200\"\r\n                  [ngClass]=\"{\r\n                    'is-invalid':\r\n                      (providerForm.get('description')?.dirty ||\r\n                        providerForm.get('description')?.touched ||\r\n                        aux.submitted) &&\r\n                      providerForm.get('description')?.invalid\r\n                  }\"\r\n                >\r\n                </textarea>\r\n                <div class=\"error-container\">\r\n                  <div\r\n                    *ngIf=\"\r\n                      providerForm.get('description')?.invalid &&\r\n                      (providerForm.get('description')?.dirty ||\r\n                        providerForm.get('description')?.touched)\r\n                    \"\r\n                    class=\"text-danger\"\r\n                  >\r\n                    Descripción no admite símbolos.\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"modal-footer justify-content-center\">\r\n          <button type=\"submit\" class=\"btn btn-custom\">GUARDAR</button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n","import { Component, EventEmitter, Input, Output, OnChanges, SimpleChanges } from '@angular/core';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { ReactiveFormsModule, FormBuilder, FormGroup, Validators, AbstractControl, ValidationErrors, FormsModule } from '@angular/forms';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ProvidersService } from '../../../core/services/api/providers.service';\r\nimport { phoneValidator, emailValidator, cuitValidator } from '../../../core/utils/validators';\r\nimport { DeleteModalComponent } from '../../../shared/components/delete-modal/delete-modal.component';\r\n@Component({\r\n  selector: 'app-provider',\r\n  standalone: true,\r\n  imports: [ReactiveFormsModule, CommonModule, FormsModule, DeleteModalComponent],\r\n  templateUrl: './provider.component.html',\r\n  styleUrl: './provider.component.scss'\r\n})\r\nexport class ProviderComponent {\r\n  @Input() providerInput: TableData = {};\r\n  @Output() closeProviderModalEvent = new EventEmitter<void>();\r\n\r\n  providerForm: FormGroup;\r\n  isToggled: boolean = false;\r\n  confirmDeleteModal: boolean = false;\r\n\r\n  constructor(private providersService: ProvidersService, private fb: FormBuilder) {\r\n    this.providerForm = this.fb.group({\r\n      name: [{ value: '', disabled: !this.isToggled }, [Validators.required,  Validators.pattern('^[a-zA-ZÀ-ÿ0-9 ]*$')]],\r\n      email: [{ value: '', disabled: !this.isToggled }, [Validators.required, emailValidator]],\r\n      phone: [{ value: '', disabled: !this.isToggled }, [Validators.required, phoneValidator]],\r\n      cuit: [{ value: '', disabled: !this.isToggled }, [Validators.required, cuitValidator]],\r\n      cp: [{ value: '', disabled: !this.isToggled }, [Validators.required, Validators.pattern('^(?!0000)[0-9]{4}$')]],\r\n      address: [{ value: '', disabled: !this.isToggled },[Validators.required]],\r\n      line2: [{ value: '', disabled: !this.isToggled }],\r\n      description: [{ value: '', disabled: !this.isToggled }]\r\n    });\r\n  }\r\n\r\n  ngOnChanges(changes: SimpleChanges) {\r\n    if (changes['providerInput'] && changes['providerInput'].currentValue) {\r\n      //console.log(this.transformProviderInput(this.providerInput));\r\n      this.providerForm.patchValue(this.transformProviderInput(this.providerInput));\r\n    }\r\n  }\r\n\r\n  toggleEditMode() {\r\n    this.isToggled = !this.isToggled;\r\n    if (this.isToggled) {\r\n      this.providerForm.enable(); // Habilita todos los controles del formulario\r\n    } else {\r\n      this.providerForm.disable(); // Deshabilita todos los controles del formulario\r\n    }\r\n  }\r\n \r\n  provider: any;\r\n  onSubmit() {\r\n    //console.log(this.providerForm);\r\n    if (this.providerForm.valid) {\r\n      const fullAddress = `${this.providerForm.get('cp')?.value}|${\r\n        this.providerForm.get('address')?.value\r\n      }|${this.providerForm.get('line2')?.value}`\r\n        .trim()\r\n        .replace(/|\\s*$/, '');\r\n      this.provider = {\r\n        id: this.providerInput['id'],\r\n        name: this.providerForm.get('name')?.value,\r\n        email: this.providerForm.get('email')?.value,\r\n        phone: this.providerForm.get('phone')?.value,\r\n        cuit: this.providerForm.get('cuit')?.value,\r\n        address: fullAddress,\r\n        description: this.providerForm.get('description')?.value || '' \r\n      };\r\n      //Call to backend\r\n      this.providersService.updateProvider(this.provider).subscribe(\r\n        (response) => {\r\n          //console.log('Proveedor actualizado:', response);\r\n          this.closeModal();\r\n        },\r\n        (error) => {\r\n          console.error('Error al actualizar el proveedor:', error);\r\n        }\r\n      );\r\n    } else {\r\n      this.providerForm.markAllAsTouched();\r\n    }\r\n  }\r\n\r\n  closeModal() {\r\n    this.closeProviderModalEvent.emit();\r\n  }\r\n\r\n  confirmDelete() {\r\n    this.confirmDeleteModal = true;\r\n  }\r\n\r\n  closeDeleteModal() {\r\n    this.confirmDeleteModal = false;\r\n  }\r\n\r\n  deleteProvider() {\r\n    //Call backend\r\n    this.providersService.deleteProvider(this.providerInput['id']).subscribe(\r\n      (response) => {\r\n        //console.log('Proveedor eliminado:', response);\r\n        this.confirmDeleteModal = false;\r\n        this.closeModal();\r\n      },\r\n      (error) => {\r\n        console.error('Error al eliminar el proveedor:', error);\r\n      }\r\n    );\r\n    \r\n  }\r\n\r\n  \r\n  private transformProviderInput(data: TableData): any {\r\n    const [cp = '', address = '', line2 = ''] = data['address']?.split('|') || [];\r\n    return {\r\n      id: data['id'] ?? null,\r\n      name: data['name'] ?? '',\r\n      email: data['email'] ?? '',\r\n      phone: data['phone'] ?? '',\r\n      cuit: data['cuit'] ?? '',\r\n      cp: cp.trim(),\r\n      address: address.trim(),\r\n      line2: line2.trim(),\r\n      description: data['description']\r\n    };\r\n  }\r\n\r\n\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content modal-content-main\">\r\n      <div\r\n        class=\"modal-header d-flex justify-content-center align-items-center\"\r\n      >\r\n        <div class=\"row w-100\">\r\n          <div class=\"col\">\r\n            <h5 class=\"modal-title\">Detalles Proveedor</h5>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-center\">\r\n            <div class=\"form-check form-switch\">\r\n              <label class=\"form-check-label\" for=\"flexSwitchCheckDefault\"\r\n                >Editar</label\r\n              >\r\n              <input\r\n                class=\"form-check-input custom-switch\"\r\n                type=\"checkbox\"\r\n                id=\"flexSwitchCheckDefault\"\r\n                (change)=\"toggleEditMode()\"\r\n              />\r\n            </div>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-end\">\r\n            <button\r\n              type=\"button\"\r\n              class=\"btn-close\"\r\n              aria-label=\"Close\"\r\n              (click)=\"closeModal()\"\r\n            ></button>\r\n          </div>\r\n        </div>\r\n      </div>\r\n      <form\r\n        #aux=\"ngForm\"\r\n        [formGroup]=\"providerForm\"\r\n        (ngSubmit)=\"onSubmit()\"\r\n        noValidate\r\n      >\r\n        <div class=\"modal-body\">\r\n          <div class=\"row\">\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"name\" class=\"title\">Nombre</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"name\"\r\n                      name=\"name\"\r\n                      formControlName=\"name\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('name')?.dirty ||\r\n                            providerForm.get('name')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('name')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (providerForm.get('name')?.invalid &&\r\n                          (providerForm.get('name')?.dirty ||\r\n                            providerForm.get('name')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"providerForm.get('name')?.errors?.['required']\"\r\n                      >\r\n                        Nombre es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!providerForm.get('name')?.errors?.['required'] && providerForm.get('name')?.errors?.['pattern']\"\r\n                      >\r\n                        El nombre no debe contener números ni símbolos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-1\">\r\n                    <label for=\"email\" class=\"title\">Email</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"email\"\r\n                      class=\"form-control\"\r\n                      id=\"email\"\r\n                      name=\"email\"\r\n                      formControlName=\"email\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('email')?.dirty ||\r\n                            providerForm.get('email')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('email')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (providerForm.get('email')?.invalid &&\r\n                          (providerForm.get('email')?.dirty ||\r\n                            providerForm.get('email')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"providerForm.get('email')?.errors?.['required']\"\r\n                      >\r\n                        Email es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!providerForm.get('email')?.errors?.['required'] && (providerForm.get('email')?.errors?.['email'] || providerForm.get('email')?.errors?.['invalidEmail'])\"\r\n                      >\r\n                        Formato de email inválido.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"phone\" class=\"title\">Teléfono</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"number\"\r\n                      class=\"form-control\"\r\n                      id=\"phone\"\r\n                      name=\"phone\"\r\n                      formControlName=\"phone\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('phone')?.dirty ||\r\n                            providerForm.get('phone')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('phone')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        (aux.submitted && providerForm.get('phone')?.invalid) ||\r\n                        (providerForm.get('phone')?.invalid &&\r\n                          (providerForm.get('phone')?.dirty ||\r\n                            providerForm.get('phone')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Teléfono es requerido.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"cuit\" class=\"title\">CUIT</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"number\"\r\n                      class=\"form-control\"\r\n                      id=\"cuit\"\r\n                      name=\"cuit\"\r\n                      formControlName=\"cuit\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('cuit')?.dirty ||\r\n                            providerForm.get('cuit')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('cuit')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (providerForm.get('cuit')?.invalid &&\r\n                          (providerForm.get('cuit')?.dirty ||\r\n                            providerForm.get('cuit')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"providerForm.get('cuit')?.errors?.['required']\"\r\n                      >\r\n                        CUIT es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!providerForm.get('cuit')?.errors?.['required'] && providerForm.get('cuit')?.errors?.['pattern']\"\r\n                      >\r\n                        El CUIT no debe contener letras ni símbolos, y debe\r\n                        contener 11 digitos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"col\">\r\n              <div class=\"form-group\">\r\n                <div class=\"row align-items-center py-2\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"address\" class=\"title\">Direccion</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"address\"\r\n                      formControlName=\"address\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('address')?.dirty ||\r\n                            providerForm.get('address')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('address')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        (aux.submitted &&\r\n                          providerForm.get('address')?.invalid) ||\r\n                        (providerForm.get('address')?.invalid &&\r\n                          (providerForm.get('address')?.dirty ||\r\n                            providerForm.get('address')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Se necesita una direccion.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-1\">\r\n                    <label for=\"cp\" class=\"title\">CP</label>\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"cp\"\r\n                      name=\"cp\"\r\n                      formControlName=\"cp\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('cp')?.dirty ||\r\n                            providerForm.get('cp')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('cp')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <label for=\"line2\" class=\"title\">Notas</label>\r\n                  </div>\r\n                  <div class=\"col-7\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"line2\"\r\n                      formControlName=\"line2\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (providerForm.get('line2')?.dirty ||\r\n                            providerForm.get('linea2')?.touched ||\r\n                            aux.submitted) &&\r\n                          providerForm.get('linea2')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        providerForm.get('line2')?.invalid &&\r\n                        (providerForm.get('line2')?.dirty ||\r\n                          providerForm.get('line2')?.touched)\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Revise las notas.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"\r\n                        (aux.submitted && providerForm.get('cp')?.invalid) ||\r\n                        (providerForm.get('cp')?.invalid &&\r\n                          (providerForm.get('cp')?.dirty ||\r\n                            providerForm.get('cp')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      CP es requerido.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group\">\r\n                <label\r\n                  for=\"description\"\r\n                  class=\"title\"\r\n                  style=\"padding-bottom: 0.3rem\"\r\n                  >Descripción</label\r\n                >\r\n                <textarea\r\n                  class=\"form-control desc\"\r\n                  id=\"description\"\r\n                  name=\"description\"\r\n                  formControlName=\"description\"\r\n                  maxlength=\"200\"\r\n                  [ngClass]=\"{\r\n                    'is-invalid':\r\n                      (providerForm.get('description')?.dirty ||\r\n                        providerForm.get('description')?.touched ||\r\n                        aux.submitted) &&\r\n                      providerForm.get('description')?.invalid\r\n                  }\"\r\n                >\r\n                </textarea>\r\n                <div class=\"error-container\">\r\n                  <div\r\n                    *ngIf=\"\r\n                      providerForm.get('description')?.invalid &&\r\n                      (providerForm.get('description')?.dirty ||\r\n                        providerForm.get('description')?.touched)\r\n                    \"\r\n                    class=\"text-danger\"\r\n                  >\r\n                    Descripción no admite símbolos.\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"modal-footer justify-content-center\">\r\n          <button type=\"submit\" class=\"btn btn-custom\" [disabled]=\"!isToggled\">\r\n            GUARDAR\r\n          </button>\r\n          <button\r\n            type=\"button\"\r\n            class=\"btn btn-danger\"\r\n            (click)=\"confirmDelete()\"\r\n          >\r\n            BORRAR\r\n          </button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n\r\n<app-delete-modal\r\n  *ngIf=\"confirmDeleteModal\"\r\n  [headerMessage]=\"'Eliminar Proveedor'\"\r\n  [bodyMessage]=\"'¿Estás seguro que deseas borrar este Proveedor?'\"\r\n  (cancel)=\"closeDeleteModal()\"\r\n  (confirm)=\"deleteProvider()\"\r\n>\r\n</app-delete-modal>\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { NavbarComponent } from '../../shared/components/navbar/navbar.component';\r\nimport { TableComponent } from '../../shared/components/table/table.component';\r\nimport { SearchBarComponent } from '../../shared/components/search-bar/search-bar.component';\r\nimport { TableData } from '../../core/interfaces/table-data';\r\nimport { ProvidersService } from '../../core/services/api/providers.service';\r\nimport { AddProviderComponent } from './add-provider/add-provider.component';\r\nimport { ProviderComponent } from './provider/provider.component';\r\nimport { ProductionComponent } from \"../production/production.component\";\r\nimport { CommonModule } from '@angular/common';\r\nimport { filterTableData } from '../../core/utils/table-data.utils';\r\n\r\n@Component({\r\n  selector: 'app-providers',\r\n  standalone: true,\r\n  imports: [CommonModule, NavbarComponent, TableComponent, SearchBarComponent, AddProviderComponent, ProviderComponent, ProductionComponent],\r\n  templateUrl: './providers.component.html',\r\n  styleUrl: './providers.component.scss'\r\n})\r\nexport class ProvidersComponent implements OnInit {\r\n\r\n  //Call to backend\r\n  //providers = this.ProvidersService.getProviders();\r\n\r\n  providers: TableData[] = [];\r\n  backUpProviders: TableData[] = [];\r\n\r\n  addProviderModal: boolean = false;\r\n  openProviderModal: boolean = false;\r\n  selectedProvider: any;\r\n\r\n  exportColumns: string[] = ['description','cuit'];\r\n  constructor(private ProvidersService: ProvidersService) { }\r\n\r\n  ngOnInit(): void {\r\n    this.getProviders();\r\n  }\r\n\r\n  openAddProviderModal() {\r\n    this.addProviderModal = true;\r\n  }\r\n  closeAddProviderModal() {\r\n    this.getProviders();\r\n    this.addProviderModal = false;\r\n  }\r\n  onRowClicked(prov: TableData) {\r\n    this.selectedProvider = prov;\r\n    this.openProviderModal = true;\r\n  }\r\n\r\n  handleSearch(value: string) {\r\n    this.providers = this.backUpProviders;\r\n    this.providers = filterTableData(this.providers, this.exportColumns, value);\r\n  }\r\n\r\n  closeProviderModal() {\r\n    this.getProviders();\r\n    this.openProviderModal = false;\r\n  }\r\n\r\n\r\n  private getProviders() {\r\n    this.ProvidersService.getProviders().subscribe((res: any) => {\r\n      this.backUpProviders = res;\r\n      this.providers = res;\r\n    });\r\n  }\r\n}\r\n","<app-navbar></app-navbar>\r\n<div class=\"container-fluid d-flex flex-column justify-content-center align-items-center vh-100\">\r\n    \r\n    <div class=\"col-flex justify-content-center align-items-center\">\r\n        <div class=\"row header-row\">\r\n            <div class=\"col\">\r\n                <h1 class=\"view-title\">Poveedores</h1>\r\n            </div>\r\n            <div class=\"col\">\r\n               <app-search-bar (search)=\"handleSearch($event)\"></app-search-bar>\r\n            </div>\r\n            <div class=\"col d-flex justify-content-center\">\r\n                <button class=\"btn btn-custom\" (click)=\"openAddProviderModal()\">AGREGAR PROVEEDOR</button>\r\n            </div>\r\n        </div>\r\n\r\n        <app-table [data]=\"providers\" [columnsExcluded]=\"exportColumns\" (rowClicked)=\"onRowClicked($event)\"></app-table>\r\n\r\n    </div>\r\n</div>\r\n\r\n<app-add-provider *ngIf=\"addProviderModal\"  (closeModalEvent)=\"closeAddProviderModal()\"></app-add-provider>\r\n<app-provider *ngIf=\"openProviderModal\" [providerInput]=\"selectedProvider\" (closeProviderModalEvent)=\"closeProviderModal()\"></app-provider>","import { Component, EventEmitter, output, Output } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ReactiveFormsModule, FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { emailValidator, phoneValidator, cuitValidator } from '../../../core/utils/validators';\r\nimport { SalesChannelsService } from '../../../core/services/api/saleschannels.service';\r\n\r\n@Component({\r\n  selector: 'app-add-client',\r\n  standalone: true,\r\n  imports: [CommonModule, ReactiveFormsModule],\r\n  templateUrl: './add-client.component.html',\r\n  styleUrl: './add-client.component.scss'\r\n})\r\nexport class AddClientComponent {\r\n  @Output() closeModalEvent = new EventEmitter<void>();\r\n  clientForm: FormGroup;\r\n  confirmPassword: string = '';\r\n\r\n  constructor(private salesChannelService: SalesChannelsService, private formBuilder: FormBuilder) {\r\n    this.clientForm = this.formBuilder.group({\r\n      name: ['', [Validators.required,  Validators.pattern('^[a-zA-ZÀ-ÿ0-9 ]*$')]],\r\n      cuit: ['', [Validators.required, cuitValidator]],\r\n      email: ['', [Validators.required, emailValidator]],\r\n      phone: ['', [Validators.required, phoneValidator]],\r\n      cp: ['', [Validators.required, Validators.pattern('^(?!0000)[0-9]{4}$')]], // Ejemplo para un CP de 4-6 dígitos\r\n      address: ['', [Validators.required]],\r\n      line2: [''],\r\n    });\r\n  }\r\n\r\n  closeModal() {\r\n    this.closeModalEvent.emit();\r\n  }\r\n\r\n  onSubmit() {\r\n    if (this.clientForm.valid) {\r\n      const fullAddress = this.clientForm.get('cp')?.value +'|'+ this.clientForm.get('address')?.value + '|' + this.clientForm.get('line2')?.value;\r\n      const sc ={\r\n        name: this.clientForm.get('name')?.value,  \r\n        cuit: this.clientForm.get('cuit')?.value,\r\n        email: this.clientForm.get('email')?.value,\r\n        phone: this.clientForm.get('phone')?.value,\r\n        addres: fullAddress\r\n      }\r\n      //Call to backend\r\n    this.salesChannelService.createSaleChannel(sc).subscribe(\r\n      (response) => {\r\n        this.closeModalEvent.emit(); // Cerrar el modal\r\n      },\r\n      (error) => {\r\n        console.error('Error al crear el canal de venta:', error);\r\n      }\r\n    );\r\n    }\r\n    else {\r\n      this.clientForm.markAllAsTouched();\r\n      console.error('Formulario inválido. Revise los campos.');\r\n    }\r\n    \r\n  }\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content\">\r\n      <div class=\"modal-header\">\r\n        <h5 class=\"modal-title\">Agregar Cliente</h5>\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn-close\"\r\n          aria-label=\"Close\"\r\n          (click)=\"closeModal()\"\r\n        ></button>\r\n      </div>\r\n      <form #aux=\"ngForm\" [formGroup]=\"clientForm\" (ngSubmit)=\"onSubmit()\">\r\n        <div class=\"modal-body\">\r\n          <div class=\"row\">\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"form-group row-container\">\r\n                    <div class=\"row align-items-center\">\r\n                      <div class=\"col-2\">\r\n                        <label for=\"name\">Nombre</label>\r\n                      </div>\r\n                      <div class=\"col\">\r\n                        <input\r\n                          type=\"text\"\r\n                          class=\"form-control\"\r\n                          id=\"name\"\r\n                          name=\"name\"\r\n                          formControlName=\"name\"\r\n                          [ngClass]=\"{\r\n                            'is-invalid':\r\n                              (clientForm.get('name')?.dirty ||\r\n                                clientForm.get('name')?.touched ||\r\n                                aux.submitted) &&\r\n                              clientForm.get('name')?.invalid\r\n                          }\"\r\n                        />\r\n                      </div>\r\n                      <div class=\"error-container\">\r\n                        <div\r\n                          *ngIf=\"\r\n                            aux.submitted ||\r\n                            (clientForm.get('name')?.invalid &&\r\n                              (clientForm.get('name')?.dirty ||\r\n                                clientForm.get('name')?.touched))\r\n                          \"\r\n                          class=\"text-danger\"\r\n                        >\r\n                          <div\r\n                            *ngIf=\"clientForm.get('name')?.errors?.['required']\"\r\n                          >\r\n                            Nombre es requerido.\r\n                          </div>\r\n                          <div\r\n                            *ngIf=\"!clientForm.get('name')?.errors?.['required'] && clientForm.get('name')?.errors?.['pattern']\"\r\n                          >\r\n                            El nombre no debe contener números ni símbolos.\r\n                          </div>\r\n                        </div>\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"col-1\">\r\n                    <label for=\"email\">Email</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"email\"\r\n                      class=\"form-control\"\r\n                      id=\"email\"\r\n                      name=\"email\"\r\n                      formControlName=\"email\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (clientForm.get('email')?.dirty ||\r\n                            clientForm.get('email')?.touched ||\r\n                            aux.submitted) &&\r\n                          clientForm.get('email')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (clientForm.get('email')?.invalid &&\r\n                          (clientForm.get('email')?.dirty ||\r\n                            clientForm.get('email')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"clientForm.get('email')?.errors?.['required']\"\r\n                      >\r\n                        Email es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!clientForm.get('email')?.errors?.['required'] && (clientForm.get('email')?.errors?.['email'] ||clientForm.get('email')?.errors?.['invalidEmail'])\"\r\n                      >\r\n                        Formato de email inválido.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"surname\">CUIT</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"number\"\r\n                      class=\"form-control\"\r\n                      id=\"cuit\"\r\n                      name=\"cuit\"\r\n                      formControlName=\"cuit\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (clientForm.get('cuit')?.dirty ||\r\n                            clientForm.get('cuit')?.touched ||\r\n                            aux.submitted) &&\r\n                          clientForm.get('cuit')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (clientForm.get('cuit')?.invalid &&\r\n                          (clientForm.get('cuit')?.dirty ||\r\n                            clientForm.get('cuit')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div *ngIf=\"clientForm.get('cuit')?.errors?.['required']\">\r\n                        El CUIT es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!clientForm.get('cuit')?.errors?.['required'] && clientForm.get('cuit')?.errors?.['pattern']\"\r\n                      >\r\n                        El cuit debe no debe contener simbolos ni letras, y una\r\n                        longitude de 17 digitos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"phone\">Teléfono</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"number\"\r\n                      class=\"form-control\"\r\n                      id=\"phone\"\r\n                      name=\"telefono\"\r\n                      formControlName=\"phone\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (clientForm.get('phone')?.dirty ||\r\n                            clientForm.get('phone')?.touched ||\r\n                            aux.submitted) &&\r\n                          clientForm.get('phone')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        (aux.submitted && clientForm.get('phone')?.invalid) ||\r\n                        (clientForm.get('phone')?.invalid &&\r\n                          (clientForm.get('phone')?.dirty ||\r\n                            clientForm.get('phone')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Teléfono es requerido.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"address\" class=\"title\">Direccion</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"address\"\r\n                      formControlName=\"address\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (clientForm.get('address')?.dirty ||\r\n                            clientForm.get('address')?.touched ||\r\n                            aux.submitted) &&\r\n                          clientForm.get('address')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                      (aux.submitted && clientForm.get('address')?.invalid) ||\r\n                        (clientForm.get('address')?.invalid &&\r\n                          (clientForm.get('address')?.dirty ||\r\n                            clientForm.get('address')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Se necesita una direccion.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-1\">\r\n                    <label for=\"cp\" class=\"title\">CP</label>\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"cp\"\r\n                      name=\"cp\"\r\n                      formControlName=\"cp\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (clientForm.get('cp')?.dirty ||\r\n                            clientForm.get('cp')?.touched ||\r\n                            aux.submitted) &&\r\n                          clientForm.get('cp')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <label for=\"line2\" class=\"title\">Notas</label>\r\n                  </div>\r\n                  <div class=\"col-7\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"line2\"\r\n                      formControlName=\"line2\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (clientForm.get('line2')?.dirty ||\r\n                            clientForm.get('linea2')?.touched ||\r\n                            aux.submitted) &&\r\n                          clientForm.get('linea2')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        clientForm.get('line2')?.invalid &&\r\n                        (clientForm.get('line2')?.dirty ||\r\n                          clientForm.get('line2')?.touched)\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Revise las notas.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"\r\n                      (aux.submitted && clientForm.get('cp')?.invalid) ||\r\n                        (clientForm.get('cp')?.invalid &&\r\n                          (clientForm.get('cp')?.dirty ||\r\n                            clientForm.get('cp')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      CP es requerido.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"modal-footer justify-content-center\">\r\n          <button type=\"submit\" class=\"btn btn-custom\">GUARDAR</button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n","import { Component, EventEmitter, Input, Output, SimpleChanges } from '@angular/core';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { ReactiveFormsModule, FormBuilder, FormGroup, Validators, AbstractControl, ValidationErrors, FormsModule } from '@angular/forms';\r\nimport { CommonModule } from '@angular/common';\r\nimport { SalesChannelsService } from '../../../core/services/api/saleschannels.service';\r\nimport { emailValidator, phoneValidator, cuitValidator } from '../../../core/utils/validators';\r\nimport { DeleteModalComponent } from '../../../shared/components/delete-modal/delete-modal.component';\r\n@Component({\r\n  selector: 'app-client',\r\n  standalone: true,\r\n  imports: [CommonModule, ReactiveFormsModule, DeleteModalComponent],\r\n  templateUrl: './client.component.html',\r\n  styleUrl: './client.component.scss'\r\n})\r\nexport class ClientComponent {\r\n  @Input() clientInput: TableData = {};\r\n  @Output() closeClientModalEvent = new EventEmitter<void>();\r\n\r\n  clientForm: FormGroup;\r\n  isToggled: boolean = false;\r\n  confirmDeleteModal: boolean = false;\r\n\r\n  constructor(private salesChannelService: SalesChannelsService, private formBuilder: FormBuilder) {\r\n    this.clientForm = this.formBuilder.group({\r\n      name: [{ value: '', disabled: !this.isToggled }, [Validators.required,  Validators.pattern('^[a-zA-ZÀ-ÿ0-9 ]*$')]],\r\n      cuit: [{ value: '', disabled: !this.isToggled }, [Validators.required, cuitValidator]],\r\n      email: [{ value: '', disabled: !this.isToggled }, [Validators.required, emailValidator]],\r\n      phone: [{ value: '', disabled: !this.isToggled }, [Validators.required, phoneValidator]],\r\n      cp: [{ value: '', disabled: !this.isToggled }, [Validators.required, Validators.pattern('^(?!0000)[0-9]{4}$')]], // Ejemplo para un CP de 4-6 dígitos\r\n      address: [{ value: '', disabled: !this.isToggled }, [Validators.required]],\r\n      line2: [{ value: '', disabled: !this.isToggled }],\r\n    });\r\n  }\r\n\r\n  ngOnChanges(changes: SimpleChanges) {\r\n    if (changes['clientInput'] && changes['clientInput'].currentValue) {\r\n      this.clientForm.patchValue(this.transformClientInput(this.clientInput));\r\n    }\r\n  }\r\n\r\n  toggleEditMode() {\r\n    this.isToggled = !this.isToggled;\r\n    if (this.isToggled) {\r\n      this.clientForm.enable(); // Habilita todos los controles del formulario\r\n    } else {\r\n      this.clientForm.disable(); // Deshabilita todos los controles del formulario\r\n    }\r\n  }\r\n \r\n  onSubmit() {\r\n    if (this.clientForm.valid) {\r\n      const cp = this.clientForm.get('cp')?.value;\r\n      const direccion = this.clientForm.get('address')?.value;\r\n      const linea2 = this.clientForm.get('line2')?.value; \r\n      const fullAddress = `${cp}|${direccion}|${linea2}`.trim().replace(/|\\s*$/, '');\r\n      const saleChannel = {\r\n        id: this.clientInput['id'],\r\n        name: this.clientForm.get('name')?.value,\r\n        email: this.clientForm.get('email')?.value,\r\n        phone: this.clientForm.get('phone')?.value,\r\n        cuit: this.clientForm.get('cuit')?.value,\r\n        addres: fullAddress,\r\n      };\r\n      //Call to backend\r\n      this.salesChannelService.updateSaleChannel(saleChannel).subscribe(\r\n        () => {\r\n          this.closeClientModalEvent.emit();\r\n        }\r\n      );\r\n    } else {\r\n      this.clientForm.markAllAsTouched();\r\n    }\r\n  }\r\n\r\n  \r\n  closeModal() {\r\n    this.closeClientModalEvent.emit();\r\n  }\r\n\r\n  confirmDelete() {\r\n    this.confirmDeleteModal = true;\r\n  }\r\n\r\n  closeDeleteModal() {\r\n    this.confirmDeleteModal = false;\r\n  }\r\n\r\n  deleteClient() {\r\n    //Call backend\r\n    this.salesChannelService.deleteSaleChannel(this.clientInput['id']).subscribe(\r\n      () => {\r\n        this.closeClientModalEvent.emit();\r\n      }\r\n    );\r\n    \r\n  }\r\n\r\n  private transformClientInput(data: TableData): any {\r\n    const [cp = '', address = '', line2 = ''] = data['addres']?.split('|') || [];\r\n\r\n    return {\r\n      id: data['id'] ?? null,\r\n      name: data['name'] ?? '',\r\n      email: data['email'] ?? '',\r\n      phone: data['phone'] ?? '',\r\n      cuit: data['cuit'] ?? '',\r\n      cp: cp.trim(),\r\n      address: address.trim(),\r\n      line2: line2.trim(),\r\n    };\r\n  }\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content modal-content-main\">\r\n      <div\r\n        class=\"modal-header d-flex justify-content-center align-items-center\"\r\n      >\r\n        <div class=\"row w-100\">\r\n          <div class=\"col\">\r\n            <h5 class=\"modal-title\">Detalles Proveedor</h5>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-center\">\r\n            <div class=\"form-check form-switch\">\r\n              <label class=\"form-check-label\" for=\"flexSwitchCheckDefault\"\r\n                >Editar</label\r\n              >\r\n              <input\r\n                class=\"form-check-input custom-switch\"\r\n                type=\"checkbox\"\r\n                id=\"flexSwitchCheckDefault\"\r\n                (change)=\"toggleEditMode()\"\r\n              />\r\n            </div>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-end\">\r\n            <button\r\n              type=\"button\"\r\n              class=\"btn-close\"\r\n              aria-label=\"Close\"\r\n              (click)=\"closeModal()\"\r\n            ></button>\r\n          </div>\r\n        </div>\r\n      </div>\r\n      <form #aux=\"ngForm\" [formGroup]=\"clientForm\" (ngSubmit)=\"onSubmit()\">\r\n        <div class=\"modal-body\">\r\n          <div class=\"row\">\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"form-group row-container\">\r\n                    <div class=\"row align-items-center\">\r\n                      <div class=\"col-2\">\r\n                        <label for=\"name\">Nombre</label>\r\n                      </div>\r\n                      <div class=\"col\">\r\n                        <input\r\n                          type=\"text\"\r\n                          class=\"form-control\"\r\n                          id=\"name\"\r\n                          name=\"name\"\r\n                          formControlName=\"name\"\r\n                          [ngClass]=\"{\r\n                            'is-invalid':\r\n                              (clientForm.get('name')?.dirty ||\r\n                                clientForm.get('name')?.touched ||\r\n                                aux.submitted) &&\r\n                              clientForm.get('name')?.invalid\r\n                          }\"\r\n                        />\r\n                      </div>\r\n                      <div class=\"error-container\">\r\n                        <div\r\n                          *ngIf=\"\r\n                            aux.submitted ||\r\n                            (clientForm.get('name')?.invalid &&\r\n                              (clientForm.get('name')?.dirty ||\r\n                                clientForm.get('name')?.touched))\r\n                          \"\r\n                          class=\"text-danger\"\r\n                        >\r\n                          <div\r\n                            *ngIf=\"clientForm.get('name')?.errors?.['required']\"\r\n                          >\r\n                            Nombre es requerido.\r\n                          </div>\r\n                          <div\r\n                            *ngIf=\"!clientForm.get('name')?.errors?.['required'] && clientForm.get('name')?.errors?.['pattern']\"\r\n                          >\r\n                            El nombre no debe contener números ni símbolos.\r\n                          </div>\r\n                        </div>\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                  <div class=\"col-1\">\r\n                    <label for=\"email\">Email</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"email\"\r\n                      class=\"form-control\"\r\n                      id=\"email\"\r\n                      name=\"email\"\r\n                      formControlName=\"email\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (clientForm.get('email')?.dirty ||\r\n                            clientForm.get('email')?.touched ||\r\n                            aux.submitted) &&\r\n                          clientForm.get('email')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (clientForm.get('email')?.invalid &&\r\n                          (clientForm.get('email')?.dirty ||\r\n                            clientForm.get('email')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"clientForm.get('email')?.errors?.['required']\"\r\n                      >\r\n                        Email es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!clientForm.get('email')?.errors?.['required'] && (clientForm.get('email')?.errors?.['email'] ||clientForm.get('email')?.errors?.['invalidEmail'])\"\r\n                      >\r\n                        Formato de email inválido.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"surname\">CUIT</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"number\"\r\n                      class=\"form-control\"\r\n                      id=\"cuit\"\r\n                      name=\"cuit\"\r\n                      formControlName=\"cuit\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (clientForm.get('cuit')?.dirty ||\r\n                            clientForm.get('cuit')?.touched ||\r\n                            aux.submitted) &&\r\n                          clientForm.get('cuit')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (clientForm.get('cuit')?.invalid &&\r\n                          (clientForm.get('cuit')?.dirty ||\r\n                            clientForm.get('cuit')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div *ngIf=\"clientForm.get('cuit')?.errors?.['required']\">\r\n                        El CUIT es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!clientForm.get('cuit')?.errors?.['required'] && clientForm.get('cuit')?.errors?.['pattern']\"\r\n                      >\r\n                        El cuit debe no debe contener simbolos ni letras, y una\r\n                        longitude de 17 digitos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"phone\">Teléfono</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"phone\"\r\n                      name=\"telefono\"\r\n                      formControlName=\"phone\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (clientForm.get('phone')?.dirty ||\r\n                            clientForm.get('phone')?.touched ||\r\n                            aux.submitted) &&\r\n                          clientForm.get('phone')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        (aux.submitted  && clientForm.get('phones')?.invalid)||\r\n                        (clientForm.get('phone')?.invalid &&\r\n                          (clientForm.get('phone')?.dirty ||\r\n                            clientForm.get('phone')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Teléfono es requerido.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"address\" class=\"title\">Direccion</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"address\"\r\n                      formControlName=\"address\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (clientForm.get('address')?.dirty ||\r\n                            clientForm.get('address')?.touched ||\r\n                            aux.submitted) &&\r\n                          clientForm.get('address')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        (aux.submitted  && clientForm.get('address')?.invalid)||\r\n                        (clientForm.get('address')?.invalid &&\r\n                          (clientForm.get('address')?.dirty ||\r\n                            clientForm.get('address')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Se necesita una direccion.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-1\">\r\n                    <label for=\"cp\" class=\"title\">CP</label>\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"cp\"\r\n                      name=\"cp\"\r\n                      formControlName=\"cp\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (clientForm.get('cp')?.dirty ||\r\n                            clientForm.get('cp')?.touched ||\r\n                            aux.submitted) &&\r\n                          clientForm.get('cp')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <label for=\"line2\" class=\"title\">Notas</label>\r\n                  </div>\r\n                  <div class=\"col-7\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"line2\"\r\n                      formControlName=\"line2\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (clientForm.get('line2')?.dirty ||\r\n                            clientForm.get('linea2')?.touched ||\r\n                            aux.submitted) &&\r\n                          clientForm.get('linea2')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        clientForm.get('line2')?.invalid &&\r\n                        (clientForm.get('line2')?.dirty ||\r\n                          clientForm.get('line2')?.touched)\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Revise las notas.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"\r\n                        (aux.submitted && clientForm.get('cp')?.invalid) ||\r\n                        (clientForm.get('cp')?.invalid &&\r\n                          (clientForm.get('cp')?.dirty ||\r\n                            clientForm.get('cp')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      CP es requerido.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"modal-footer justify-content-center\">\r\n          <button type=\"submit\" class=\"btn btn-custom\" [disabled]=\"!isToggled\">\r\n            GUARDAR\r\n          </button>\r\n          <button\r\n            type=\"button\"\r\n            class=\"btn btn-danger\"\r\n            (click)=\"confirmDelete()\"\r\n          >\r\n            BORRAR\r\n          </button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n<app-delete-modal\r\n  *ngIf=\"confirmDeleteModal\"\r\n  [headerMessage]=\"'Eliminar Cliente'\"\r\n  [bodyMessage]=\"'¿Estás seguro que deseas borrar este Cliente?'\"\r\n  (cancel)=\"closeDeleteModal()\"\r\n  (confirm)=\"deleteClient()\"\r\n/>  ","import { Injectable } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { Observable, catchError, map} from 'rxjs';\r\nimport { handleError } from '../../utils/api-error-handler.utils';\r\nimport { TableData } from '../../interfaces/table-data';\r\nimport { mapToTableData } from '../../utils/mapping.utils';\r\nimport { environment } from '../../../../evironments/environment';\r\n\r\n@Injectable({\r\n  providedIn: 'root'\r\n})\r\nexport class ClientsService {\r\n\r\n  private apiUrl = environment.apiUrl + '/api/SalesChannels';\r\n\r\n  constructor(private http: HttpClient) {}\r\n\r\n  getClients(): Observable<TableData[]> {\r\n    return this.http.get<any[]>(this.apiUrl).pipe(map(data => mapToTableData(data)),catchError(handleError));\r\n  }\r\n\r\n  getClientById(id: number): Observable<any> {\r\n    return this.http.get<any>(`${this.apiUrl}/${id}`).pipe(map(data => mapToTableData(data)),catchError(handleError));\r\n  }\r\n  createClient(client: any): Observable<any> {\r\n    return this.http.post<any>(this.apiUrl, client).pipe(catchError(handleError));\r\n  }\r\n\r\n  updateClient(client: any): Observable<any> {\r\n    return this.http.put<any>(this.apiUrl, client).pipe(catchError(handleError));\r\n  }\r\n\r\n  deleteClient(id: number): Observable<any> {\r\n    return this.http.delete<any>(`${this.apiUrl}/${id}`).pipe(catchError(handleError));\r\n  }\r\n\r\n\r\n}\r\n","import { Component,  OnInit } from '@angular/core';\r\nimport { NavbarComponent } from '../../shared/components/navbar/navbar.component';\r\nimport { TableComponent } from '../../shared/components/table/table.component';\r\nimport { SearchBarComponent } from '../../shared/components/search-bar/search-bar.component';\r\nimport { TableData } from '../../core/interfaces/table-data';\r\nimport { AddClientComponent } from './add-client/add-client.component';\r\nimport { ClientComponent} from './client/client.component';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ClientsService } from '../../core/services/api/clients.service';\r\nimport { filterTableData } from '../../core/utils/table-data.utils';\r\n\r\n@Component({\r\n  selector: 'app-clients',\r\n  standalone: true,\r\n  imports: [NavbarComponent, TableComponent, SearchBarComponent, AddClientComponent, ClientComponent, CommonModule],\r\n  templateUrl: './clients.component.html',\r\n  styleUrl: './clients.component.scss'\r\n})\r\nexport class ClientsComponent implements OnInit {\r\n\r\n  clients: TableData[] = [];\r\n  backUpClients: TableData[] = [];\r\n  //Modales\r\n  addClientModal: boolean = false;\r\n  openClientModal: boolean = false;\r\n  selectedClient: any;\r\n  exportColumns: string[] = ['description','cuit'];\r\n\r\n  constructor(private ClientsService: ClientsService) { }\r\n\r\n\r\n  ngOnInit(): void {\r\n    this.getClients();\r\n  }\r\n\r\n  openAddClientModal() {\r\n    this.addClientModal = true;\r\n  }\r\n  closeAddClientModal() {\r\n    this.getClients();\r\n    this.addClientModal = false;\r\n  }\r\n\r\n  onRowClicked(user: TableData) {\r\n    this.selectedClient = user;\r\n    this.openClientModal = true;\r\n  }\r\n\r\n  closeClientModal() {\r\n    this.getClients();\r\n    this.openClientModal = false;\r\n  }\r\n\r\n  handleSearch(value: string) {\r\n    this.clients = this.backUpClients;\r\n    this.clients = filterTableData(this.clients, this.exportColumns, value);\r\n  }\r\n\r\n  private getClients() {\r\n    this.ClientsService.getClients().subscribe((data: any) => {\r\n      this.clients = data;\r\n      this.backUpClients = data;\r\n    });\r\n  }\r\n  \r\n}\r\n","<app-navbar></app-navbar>\r\n<div class=\"container-fluid d-flex flex-column justify-content-center align-items-center vh-100\">\r\n    \r\n    <div class=\"col-flex justify-content-center align-items-center\">\r\n        <div class=\"row header-row\">\r\n            <div class=\"col\">\r\n                <h1 class=\"view-title\">Clientes</h1>\r\n            </div>\r\n            <div class=\"col\">\r\n               <app-search-bar (search)=\"handleSearch($event)\"></app-search-bar>\r\n            </div>\r\n            <div class=\"col d-flex justify-content-center\">\r\n                <button class=\"btn btn-custom\" (click)=\"openAddClientModal()\">AGREGAR CLIENTE</button>\r\n            </div>\r\n        </div>\r\n\r\n        <app-table [data]=\"clients\" (rowClicked)=\"onRowClicked($event)\"></app-table>\r\n\r\n    </div>\r\n</div>\r\n\r\n<app-add-client *ngIf=\"addClientModal\"  (closeModalEvent)=\"closeAddClientModal()\"></app-add-client>\r\n<app-client *ngIf=\"openClientModal\" [clientInput]=\"selectedClient\" (closeClientModalEvent)=\"closeClientModal()\"></app-client>","import * as i1 from '@angular/common';\nimport { isPlatformServer, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { forwardRef, EventEmitter, afterNextRender, PLATFORM_ID, Component, ChangeDetectionStrategy, ViewEncapsulation, Inject, Input, Output, ContentChildren, ContentChild, NgModule } from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { Header, PrimeTemplate, SharedModule } from 'primeng/api';\nimport { DomHandler } from 'primeng/dom';\nconst _c0 = [[[\"p-header\"]]];\nconst _c1 = [\"p-header\"];\nfunction Editor_div_1_ng_container_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementContainer(0);\n  }\n}\nfunction Editor_div_1_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\", 3);\n    i0.ɵɵprojection(1);\n    i0.ɵɵtemplate(2, Editor_div_1_ng_container_2_Template, 1, 0, \"ng-container\", 4);\n    i0.ɵɵelementEnd();\n  }\n  if (rf & 2) {\n    const ctx_r0 = i0.ɵɵnextContext();\n    i0.ɵɵadvance(2);\n    i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.headerTemplate);\n  }\n}\nfunction Editor_div_2_Template(rf, ctx) {\n  if (rf & 1) {\n    i0.ɵɵelementStart(0, \"div\", 3)(1, \"span\", 5)(2, \"select\", 6)(3, \"option\", 7);\n    i0.ɵɵtext(4, \"Heading\");\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementStart(5, \"option\", 8);\n    i0.ɵɵtext(6, \"Subheading\");\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementStart(7, \"option\", 9);\n    i0.ɵɵtext(8, \"Normal\");\n    i0.ɵɵelementEnd()();\n    i0.ɵɵelementStart(9, \"select\", 10)(10, \"option\", 9);\n    i0.ɵɵtext(11, \"Sans Serif\");\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementStart(12, \"option\", 11);\n    i0.ɵɵtext(13, \"Serif\");\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementStart(14, \"option\", 12);\n    i0.ɵɵtext(15, \"Monospace\");\n    i0.ɵɵelementEnd()()();\n    i0.ɵɵelementStart(16, \"span\", 5);\n    i0.ɵɵelement(17, \"button\", 13)(18, \"button\", 14)(19, \"button\", 15);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementStart(20, \"span\", 5);\n    i0.ɵɵelement(21, \"select\", 16)(22, \"select\", 17);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementStart(23, \"span\", 5);\n    i0.ɵɵelement(24, \"button\", 18)(25, \"button\", 19);\n    i0.ɵɵelementStart(26, \"select\", 20);\n    i0.ɵɵelement(27, \"option\", 9);\n    i0.ɵɵelementStart(28, \"option\", 21);\n    i0.ɵɵtext(29, \"center\");\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementStart(30, \"option\", 22);\n    i0.ɵɵtext(31, \"right\");\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementStart(32, \"option\", 23);\n    i0.ɵɵtext(33, \"justify\");\n    i0.ɵɵelementEnd()()();\n    i0.ɵɵelementStart(34, \"span\", 5);\n    i0.ɵɵelement(35, \"button\", 24)(36, \"button\", 25)(37, \"button\", 26);\n    i0.ɵɵelementEnd();\n    i0.ɵɵelementStart(38, \"span\", 5);\n    i0.ɵɵelement(39, \"button\", 27);\n    i0.ɵɵelementEnd()();\n  }\n}\nconst EDITOR_VALUE_ACCESSOR = {\n  provide: NG_VALUE_ACCESSOR,\n  useExisting: forwardRef(() => Editor),\n  multi: true\n};\n/**\n * Editor groups a collection of contents in tabs.\n * @group Components\n */\nlet Editor = /*#__PURE__*/(() => {\n  class Editor {\n    el;\n    platformId;\n    /**\n     * Inline style of the container.\n     * @group Props\n     */\n    style;\n    /**\n     * Style class of the container.\n     * @group Props\n     */\n    styleClass;\n    /**\n     * Placeholder text to show when editor is empty.\n     * @group Props\n     */\n    placeholder;\n    /**\n     * Whitelist of formats to display, see here for available options.\n     * @group Props\n     */\n    formats;\n    /**\n     * Modules configuration of Editor, see here for available options.\n     * @group Props\n     */\n    modules;\n    /**\n     * DOM Element or a CSS selector for a DOM Element, within which the editor’s p elements (i.e. tooltips, etc.) should be confined. Currently, it only considers left and right boundaries.\n     * @group Props\n     */\n    bounds;\n    /**\n     * DOM Element or a CSS selector for a DOM Element, specifying which container has the scrollbars (i.e. overflow-y: auto), if is has been changed from the default ql-editor with custom CSS. Necessary to fix scroll jumping bugs when Quill is set to auto grow its height, and another ancestor container is responsible from the scrolling..\n     * @group Props\n     */\n    scrollingContainer;\n    /**\n     * Shortcut for debug. Note debug is a static method and will affect other instances of Quill editors on the page. Only warning and error messages are enabled by default.\n     * @group Props\n     */\n    debug;\n    /**\n     * Whether to instantiate the editor to read-only mode.\n     * @group Props\n     */\n    get readonly() {\n      return this._readonly;\n    }\n    set readonly(val) {\n      this._readonly = val;\n      if (this.quill) {\n        if (this._readonly) this.quill.disable();else this.quill.enable();\n      }\n    }\n    /**\n     * Callback to invoke when the quill modules are loaded.\n     * @param {EditorInitEvent} event - custom event.\n     * @group Emits\n     */\n    onInit = new EventEmitter();\n    /**\n     * Callback to invoke when text of editor changes.\n     * @param {EditorTextChangeEvent} event - custom event.\n     * @group Emits\n     */\n    onTextChange = new EventEmitter();\n    /**\n     * Callback to invoke when selection of the text changes.\n     * @param {EditorSelectionChangeEvent} event - custom event.\n     * @group Emits\n     */\n    onSelectionChange = new EventEmitter();\n    templates;\n    toolbar;\n    value;\n    delayedCommand = null;\n    _readonly = false;\n    onModelChange = () => {};\n    onModelTouched = () => {};\n    quill;\n    dynamicQuill;\n    headerTemplate;\n    get isAttachedQuillEditorToDOM() {\n      return this.quillElements?.editorElement?.isConnected;\n    }\n    quillElements;\n    constructor(el, platformId) {\n      this.el = el;\n      this.platformId = platformId;\n      /**\n       * Read or write the DOM once, when initializing non-Angular (Quill) library.\n       */\n      afterNextRender(() => {\n        this.initQuillElements();\n        this.initQuillEditor();\n      });\n    }\n    ngAfterContentInit() {\n      this.templates.forEach(item => {\n        switch (item.getType()) {\n          case 'header':\n            this.headerTemplate = item.template;\n            break;\n        }\n      });\n    }\n    writeValue(value) {\n      this.value = value;\n      if (this.quill) {\n        if (value) {\n          const command = () => {\n            this.quill.setContents(this.quill.clipboard.convert(this.dynamicQuill.version.startsWith('2') ? {\n              html: this.value\n            } : this.value));\n          };\n          if (this.isAttachedQuillEditorToDOM) {\n            command();\n          } else {\n            this.delayedCommand = command;\n          }\n        } else {\n          const command = () => {\n            this.quill.setText('');\n          };\n          if (this.isAttachedQuillEditorToDOM) {\n            command();\n          } else {\n            this.delayedCommand = command;\n          }\n        }\n      }\n    }\n    registerOnChange(fn) {\n      this.onModelChange = fn;\n    }\n    registerOnTouched(fn) {\n      this.onModelTouched = fn;\n    }\n    getQuill() {\n      return this.quill;\n    }\n    initQuillEditor() {\n      if (isPlatformServer(this.platformId)) {\n        return;\n      }\n      /**\n       * Importing Quill at top level, throws `document is undefined` error during when\n       * building for SSR, so this dynamically loads quill when it's in browser module.\n       */\n      if (!this.dynamicQuill) {\n        import('quill').then(quillModule => {\n          this.dynamicQuill = quillModule.default;\n          this.createQuillEditor();\n        }).catch(e => console.error(e.message));\n      } else {\n        this.createQuillEditor();\n      }\n    }\n    createQuillEditor() {\n      this.initQuillElements();\n      const {\n        toolbarElement,\n        editorElement\n      } = this.quillElements;\n      let defaultModule = {\n        toolbar: toolbarElement\n      };\n      let modules = this.modules ? {\n        ...defaultModule,\n        ...this.modules\n      } : defaultModule;\n      this.quill = new this.dynamicQuill(editorElement, {\n        modules: modules,\n        placeholder: this.placeholder,\n        readOnly: this.readonly,\n        theme: 'snow',\n        formats: this.formats,\n        bounds: this.bounds,\n        debug: this.debug,\n        scrollingContainer: this.scrollingContainer\n      });\n      const isQuill2 = this.dynamicQuill.version.startsWith('2');\n      if (this.value) {\n        this.quill.setContents(this.quill.clipboard.convert(isQuill2 ? {\n          html: this.value\n        } : this.value));\n      }\n      this.quill.on('text-change', (delta, oldContents, source) => {\n        if (source === 'user') {\n          let html = isQuill2 ? this.quill.getSemanticHTML() : DomHandler.findSingle(editorElement, '.ql-editor').innerHTML;\n          let text = this.quill.getText().trim();\n          if (html === '<p><br></p>') {\n            html = null;\n          }\n          this.onTextChange.emit({\n            htmlValue: html,\n            textValue: text,\n            delta: delta,\n            source: source\n          });\n          this.onModelChange(html);\n          this.onModelTouched();\n        }\n      });\n      this.quill.on('selection-change', (range, oldRange, source) => {\n        this.onSelectionChange.emit({\n          range: range,\n          oldRange: oldRange,\n          source: source\n        });\n      });\n      this.onInit.emit({\n        editor: this.quill\n      });\n    }\n    initQuillElements() {\n      if (!this.quillElements) {\n        this.quillElements = {\n          editorElement: DomHandler.findSingle(this.el.nativeElement, 'div.p-editor-content'),\n          toolbarElement: DomHandler.findSingle(this.el.nativeElement, 'div.p-editor-toolbar')\n        };\n      }\n    }\n    static ɵfac = function Editor_Factory(t) {\n      return new (t || Editor)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(PLATFORM_ID));\n    };\n    static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n      type: Editor,\n      selectors: [[\"p-editor\"]],\n      contentQueries: function Editor_ContentQueries(rf, ctx, dirIndex) {\n        if (rf & 1) {\n          i0.ɵɵcontentQuery(dirIndex, Header, 5);\n          i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);\n        }\n        if (rf & 2) {\n          let _t;\n          i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.toolbar = _t.first);\n          i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);\n        }\n      },\n      hostAttrs: [1, \"p-element\"],\n      inputs: {\n        style: \"style\",\n        styleClass: \"styleClass\",\n        placeholder: \"placeholder\",\n        formats: \"formats\",\n        modules: \"modules\",\n        bounds: \"bounds\",\n        scrollingContainer: \"scrollingContainer\",\n        debug: \"debug\",\n        readonly: \"readonly\"\n      },\n      outputs: {\n        onInit: \"onInit\",\n        onTextChange: \"onTextChange\",\n        onSelectionChange: \"onSelectionChange\"\n      },\n      features: [i0.ɵɵProvidersFeature([EDITOR_VALUE_ACCESSOR])],\n      ngContentSelectors: _c1,\n      decls: 4,\n      vars: 6,\n      consts: [[3, \"ngClass\"], [\"class\", \"p-editor-toolbar\", 4, \"ngIf\"], [1, \"p-editor-content\", 3, \"ngStyle\"], [1, \"p-editor-toolbar\"], [4, \"ngTemplateOutlet\"], [1, \"ql-formats\"], [1, \"ql-header\"], [\"value\", \"1\"], [\"value\", \"2\"], [\"selected\", \"\"], [1, \"ql-font\"], [\"value\", \"serif\"], [\"value\", \"monospace\"], [\"aria-label\", \"Bold\", \"type\", \"button\", 1, \"ql-bold\"], [\"aria-label\", \"Italic\", \"type\", \"button\", 1, \"ql-italic\"], [\"aria-label\", \"Underline\", \"type\", \"button\", 1, \"ql-underline\"], [1, \"ql-color\"], [1, \"ql-background\"], [\"value\", \"ordered\", \"aria-label\", \"Ordered List\", \"type\", \"button\", 1, \"ql-list\"], [\"value\", \"bullet\", \"aria-label\", \"Unordered List\", \"type\", \"button\", 1, \"ql-list\"], [1, \"ql-align\"], [\"value\", \"center\"], [\"value\", \"right\"], [\"value\", \"justify\"], [\"aria-label\", \"Insert Link\", \"type\", \"button\", 1, \"ql-link\"], [\"aria-label\", \"Insert Image\", \"type\", \"button\", 1, \"ql-image\"], [\"aria-label\", \"Insert Code Block\", \"type\", \"button\", 1, \"ql-code-block\"], [\"aria-label\", \"Remove Styles\", \"type\", \"button\", 1, \"ql-clean\"]],\n      template: function Editor_Template(rf, ctx) {\n        if (rf & 1) {\n          i0.ɵɵprojectionDef(_c0);\n          i0.ɵɵelementStart(0, \"div\", 0);\n          i0.ɵɵtemplate(1, Editor_div_1_Template, 3, 1, \"div\", 1)(2, Editor_div_2_Template, 40, 0, \"div\", 1);\n          i0.ɵɵelement(3, \"div\", 2);\n          i0.ɵɵelementEnd();\n        }\n        if (rf & 2) {\n          i0.ɵɵclassMap(ctx.styleClass);\n          i0.ɵɵproperty(\"ngClass\", \"p-editor-container\");\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngIf\", ctx.toolbar || ctx.headerTemplate);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngIf\", !ctx.toolbar && !ctx.headerTemplate);\n          i0.ɵɵadvance();\n          i0.ɵɵproperty(\"ngStyle\", ctx.style);\n        }\n      },\n      dependencies: [i1.NgClass, i1.NgIf, i1.NgTemplateOutlet, i1.NgStyle],\n      styles: [\".p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item{width:auto;height:auto}\\n\"],\n      encapsulation: 2,\n      changeDetection: 0\n    });\n  }\n  return Editor;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet EditorModule = /*#__PURE__*/(() => {\n  class EditorModule {\n    static ɵfac = function EditorModule_Factory(t) {\n      return new (t || EditorModule)();\n    };\n    static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n      type: EditorModule\n    });\n    static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n      imports: [CommonModule, SharedModule]\n    });\n  }\n  return EditorModule;\n})();\n(() => {\n  (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { EDITOR_VALUE_ACCESSOR, Editor, EditorModule };\n","import { Component } from '@angular/core';\r\nimport { NavbarComponent } from '../../../shared/components/navbar/navbar.component';\r\nimport {\r\n  ReactiveFormsModule,\r\n  FormBuilder,\r\n  Validators,\r\n  FormGroup,\r\n} from '@angular/forms';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormArray } from '@angular/forms';\r\nimport { Units } from '../../../shared/enums/units.enum';\r\nimport { EditorModule } from 'primeng/editor';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { RecipesService } from '../../../core/services/api/recipes.service';\r\nimport { Router } from '@angular/router';\r\n@Component({\r\n  selector: 'app-add-recipe',\r\n  standalone: true,\r\n  imports: [NavbarComponent, CommonModule, ReactiveFormsModule, EditorModule],\r\n  templateUrl: './add-recipe.component.html',\r\n  styleUrl: './add-recipe.component.scss',\r\n})\r\nexport class AddRecipeComponent {\r\n  units: string[] = [];\r\n  recipeForm: FormGroup;\r\n\r\n  // Configuración del toolbar personalizada\r\n  toolbar = [\r\n    ['bold', 'italic', 'underline', 'strike'],\r\n    ['blockquote', 'code-block'],\r\n    [{ list: 'ordered' }, { list: 'bullet' }],\r\n    [{ header: 1 }, { header: 2 }],\r\n    [{ align: [] }],\r\n    ['link', 'clean'],\r\n  ];\r\n\r\n  constructor(private formBuilder: FormBuilder, private recipesService: RecipesService, private router: Router) {\r\n    this.recipeForm = this.formBuilder.group({\r\n      name: ['', [Validators.required,  Validators.pattern('^[a-zA-Z0-9 ]*$')]],\r\n      procedure: ['', [Validators.required]],\r\n      ingredients: this.formBuilder.array([this.createIngredientFormGroup()]),\r\n      inputs: this.formBuilder.array([this.createInputsFormGroup()]),\r\n    });\r\n  }\r\n\r\n  ngOnInit() {\r\n    this.units = Object.values(Units);\r\n  }\r\n\r\n  createIngredientFormGroup(): FormGroup {\r\n    return this.formBuilder.group({\r\n      name: ['', [Validators.required, Validators.pattern('^[a-zA-Z ]*$')]],\r\n      quantity: ['', [Validators.required, Validators.pattern('^[0-9]*$')]],\r\n      unit: ['', [Validators.required]],\r\n    });\r\n  }\r\n\r\n  createInputsFormGroup(): FormGroup {\r\n    return this.formBuilder.group({\r\n      name: ['', [Validators.required, Validators.pattern('^[a-zA-Z0-9 ]*$')\r\n      ]],\r\n      quantity: ['', [Validators.required, Validators.pattern('^[0-9]*$')]],\r\n      unit: ['', [Validators.required]],\r\n    });\r\n  }\r\n\r\n  get ingredients(): FormArray {\r\n    return this.recipeForm.get('ingredients') as FormArray;\r\n  }\r\n\r\n  addIngredient() {\r\n    this.ingredients.push(this.createIngredientFormGroup());\r\n  }\r\n\r\n  removeIngredient(index: number) {\r\n    this.ingredients.removeAt(index);\r\n  }\r\n\r\n  get inputs(): FormArray {\r\n    return this.recipeForm.get('inputs') as FormArray;\r\n  }\r\n  addInput() {\r\n    this.inputs.push(this.createIngredientFormGroup());\r\n  }\r\n\r\n  removeInput(index: number) {\r\n    this.inputs.removeAt(index);\r\n  }\r\n\r\n  onSubmit() {\r\n    console.log(this.recipeForm);\r\n    if (this.recipeForm.valid) {\r\n      const ingredientList = this.recipeForm\r\n        .get('ingredients')\r\n        ?.value.map((ingredient: any) => {\r\n          return `${ingredient.name},${ingredient.quantity},${ingredient.unit}`;\r\n        })\r\n        .join(';'); // Concatenar con ';'\r\n      console.log(ingredientList);\r\n\r\n      // Obtener y transformar la lista de insumos\r\n      const inputsList = this.recipeForm\r\n        .get('inputs')\r\n        ?.value.map((input: any) => {\r\n          return `${input.name},${input.quantity},${input.unit}`;\r\n        })\r\n        .join(';'); // Concatenar con ';'\r\n      console.log(inputsList);\r\n\r\n      const recipe: TableData = {\r\n        name: this.recipeForm.get('name')?.value,\r\n        description: this.recipeForm.get('procedure')?.value,\r\n        recipeIngredients: ingredientList,\r\n        recipePackagingElements: inputsList,\r\n      };\r\n      this.recipesService.createRecipe(recipe).subscribe(\r\n        (response) => {\r\n          console.log(response);\r\n          this.router.navigate(['/recipes']);\r\n        },\r\n        (error) => {\r\n          console.error(error);\r\n        }\r\n      );\r\n    }\r\n  }\r\n}\r\n","<app-navbar></app-navbar>\r\n<div class=\"container-fluid d-flex flex-column justify-content-center align-items-center vh-100\">\r\n  <div class=\"row justify-content-center align-items-center w-100\">\r\n    <div class=\"col-10 col-main\">\r\n      <form #aux=\"ngForm\" [formGroup]=\"recipeForm\" (ngSubmit)=\"onSubmit()\" class=\"w-100\">\r\n        <div class=\"row header-row mb-4\">\r\n          <div class=\"col\">\r\n            <h1 class=\"view-title\">Nueva Receta</h1>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-end\">\r\n            <button type=\"submit\" class=\"btn btn-custom\">GUARDAR</button>\r\n          </div>\r\n        </div>\r\n        <div class=\"row custom-row\">\r\n          <div class=\"row mb-3 align-items-center\">\r\n            <div class=\"col-3\">\r\n              <label for=\"name\" class=\"title\">Nombre</label>\r\n            </div>\r\n            <div class=\"col-6\">\r\n              <input type=\"text\" class=\"form-control\" id=\"name\" name=\"name\" formControlName=\"name\"\r\n                [ngClass]=\"{ 'is-invalid': (recipeForm.get('name')?.dirty || recipeForm.get('name')?.touched || aux.submitted) && recipeForm.get('name')?.invalid }\" />\r\n              <div class=\"error-container\">\r\n                <div\r\n                  *ngIf=\"aux.submitted || recipeForm.get('name')?.invalid && (recipeForm.get('name')?.dirty || recipeForm.get('name')?.touched)\"\r\n                  class=\"text-danger\">\r\n                  <div *ngIf=\"recipeForm.get('name')?.errors?.['required']\">Nombre es requerido.</div>\r\n                  <div *ngIf=\"!recipeForm.get('name')?.errors?.['required'] && recipeForm.get('name')?.errors?.['pattern']\">\r\n                    El nombre no debe contener números ni símbolos.\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"col-3 d-flex justify-content-end\">\r\n              <button type=\"button\" class=\"btn btn-secondary\">Subir Imagen</button>\r\n            </div>\r\n          </div>\r\n          <div class=\"row align-items-center py-2\">\r\n            <!-- Columna Izquierda: Ingredientes -->\r\n            <div class=\"col-md-6\">\r\n              <div class=\"form-group\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col\">\r\n                    <label class=\"title\">Ingredientes</label>\r\n                  </div>\r\n                  <div class=\"col d-flex justify-content-end\">\r\n                    <button type=\"button\" class=\"btn btn-icon text-success\" (click)=\"addIngredient()\"><i\r\n                        class=\"bi bi-plus-square-fill\"></i></button>\r\n                  </div>\r\n                </div>\r\n                <div formArrayName=\"ingredients\" class=\"adder-container\">\r\n                  <div *ngFor=\"let ingredient of ingredients.controls; let i = index\" [formGroupName]=\"i\"\r\n                    class=\"form-group adder-row\">\r\n                    <div class=\"row align-items-center\">\r\n                      <div class=\"col\">\r\n                        <input id=\"ingredient-name-{{i}}\" formControlName=\"name\" class=\"form-control\"\r\n                          placeholder=\"Nombre del ingrediente\"\r\n                          [ngClass]=\"{ 'is-invalid': (ingredient.get('name')?.dirty || ingredient.get('name')?.touched || aux.submitted) && ingredient.get('name')?.invalid }\" />\r\n                      </div>\r\n                      <div class=\"col-2\">\r\n                        <input type=\"number\" id=\"ingredient-quantity-{{i}}\" formControlName=\"quantity\"\r\n                          class=\"form-control\" placeholder=\"Cantidad\"\r\n                          [ngClass]=\"{ 'is-invalid': (ingredient.get('quantity')?.dirty || ingredient.get('quantity')?.touched || aux.submitted) && ingredient.get('quantity')?.invalid }\" />\r\n                      </div>\r\n                      <div class=\"col-2\">\r\n                        <select id=\"ingredient-unit-{{i}}\" formControlName=\"unit\" class=\"form-select me-2\"\r\n                          aria-label=\"Unit Selection\"\r\n                          [ngClass]=\"{ 'is-invalid': (ingredient.get('unit')?.dirty || ingredient.get('unit')?.touched || aux.submitted) && ingredient.get('unit')?.invalid }\">\r\n                          <option value=\"\" disabled selected>...</option>\r\n                          <option *ngFor=\"let unit of units\" [value]=\"unit\">\r\n                            {{ unit }}\r\n                          </option>\r\n                        </select>\r\n                      </div>\r\n                      <div class=\"col-2\">\r\n                        <div *ngIf=\"i !== 0\">\r\n                          <button type=\"button\" class=\"btn btn-icon text-danger\" (click)=\"removeIngredient(i)\">\r\n                            <i class=\"bi bi-x-square-fill\"></i>\r\n                          </button>\r\n                        </div>\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <!-- Columna Derecha: Insumos -->\r\n            <div class=\"col-md-6\">\r\n              <div class=\"form-group\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col\">\r\n                    <label class=\"title\">Insumos</label>\r\n                  </div>\r\n                  <div class=\"col d-flex justify-content-end\">\r\n                    <button type=\"button\" class=\"btn btn-icon text-success\" (click)=\"addInput()\"><i\r\n                        class=\"bi bi-plus-square-fill\"></i></button>\r\n                  </div>\r\n                </div>\r\n                <div formArrayName=\"inputs\" class=\"adder-container\">\r\n                  <div *ngFor=\"let input of inputs.controls; let j = index\" [formGroupName]=\"j\"\r\n                    class=\"form-group adder-row\">\r\n                    <div class=\"row align-items-center\">\r\n                      <div class=\"col\">\r\n                        <input id=\"inputs-name-{{j}}\" formControlName=\"name\" class=\"form-control\"\r\n                          placeholder=\"Nombre del insumo\"\r\n                          [ngClass]=\"{ 'is-invalid': (input.get('name')?.dirty || input.get('name')?.touched || aux.submitted) && input.get('name')?.invalid }\" />\r\n\r\n                      </div>\r\n                      <div class=\"col-3\">\r\n                        <input id=\"inputs-quantity-{{j}}\" formControlName=\"quantity\" class=\"form-control\"\r\n                          placeholder=\"Cantidad\"\r\n                          [ngClass]=\"{ 'is-invalid': (input.get('quantity')?.dirty || input.get('quantity')?.touched || aux.submitted) && input.get('quantity')?.invalid }\" />\r\n                      </div>\r\n                      <div class=\"col-2\">\r\n                        <select id=\"inputs-unit-{{j}}\" formControlName=\"unit\" class=\"form-select me-2\"\r\n                          aria-label=\"Unit Selection\"\r\n                          [ngClass]=\"{ 'is-invalid': (input.get('unit')?.dirty || input.get('unit')?.touched || aux.submitted) && input.get('unit')?.invalid }\">\r\n                          <option value=\"\" disabled selected>...</option>\r\n                          <option *ngFor=\"let unit of units\" [value]=\"unit\">\r\n                            {{ unit }}\r\n                          </option>\r\n                        </select>\r\n                      </div>\r\n                      <div class=\"col-2\">\r\n                        <div *ngIf=\"j !== 0\">\r\n                          <button type=\"button\" class=\"btn btn-icon text-danger\" (click)=\"removeInput(j)\">\r\n                            <i class=\"bi bi-x-square-fill\"></i>\r\n                          </button>\r\n                        </div>\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n          <hr />\r\n          <div class=\"form-group\">\r\n            <label class=\"title\">Procedimiento</label>\r\n            <p-editor formControlName=\"procedure\" class=\"form-control p-editor-custom\"\r\n                      [style]=\"{ height: '240px' }\"\r\n                      [ngClass]=\"{ 'is-invalid': (recipeForm.get('procedure')?.dirty || recipeForm.get('procedure')?.touched || aux.submitted) && recipeForm.get('procedure')?.invalid }\">\r\n                      <ng-template pTemplate=\"header\">\r\n                        <span class=\"ql-formats\">\r\n                          <select class=\"ql-header\" aria-label=\"Select header\">\r\n                            <option selected></option>\r\n                            <option value=\"1\">Heading 1</option>\r\n                            <option value=\"2\">Heading 2</option>\r\n                            <option value=\"3\">Heading 3</option>\r\n                          </select>\r\n                          <select class=\"ql-font\" aria-label=\"Select font\">\r\n                            <option selected></option>\r\n                            <option value=\"serif\">Serif</option>\r\n                            <option value=\"monospace\">Monospace</option>\r\n                          </select>\r\n                          <button class=\"ql-bold\" aria-label=\"Bold\"></button>\r\n                          <button class=\"ql-italic\" aria-label=\"Italic\"></button>\r\n                          <button class=\"ql-underline\" aria-label=\"Underline\"></button>\r\n                          <select class=\"ql-align\" aria-label=\"Select align\">\r\n                            <option selected></option>\r\n                            <option value=\"center\">Center</option>\r\n                            <option value=\"right\">Right</option>\r\n                            <option value=\"justify\">Justify</option>\r\n                          </select>\r\n                          <button class=\"ql-list\" value=\"ordered\" aria-label=\"Ordered list\"></button>\r\n                          <button class=\"ql-list\" value=\"bullet\" aria-label=\"Bullet list\"></button>\r\n                          <button class=\"ql-link\" aria-label=\"Insert link\"></button>\r\n                        </span>\r\n                      </ng-template>\r\n                    </p-editor>\r\n            <div class=\"error-container\">\r\n              <div *ngIf=\"aux.submitted || recipeForm.get('procedure')?.invalid && (recipeForm.get('procedure')?.dirty || recipeForm.get('procedure')?.touched)\"\r\n                   class=\"text-danger\">\r\n                <div *ngIf=\"recipeForm.get('procedure')?.errors?.['required']\">Procedimiento es requerido.</div>\r\n                <div *ngIf=\"!recipeForm.get('procedure')?.errors?.['required'] && recipeForm.get('procedure')?.errors?.['pattern']\">\r\n                  Es necesario agregar un procedimiento.\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>","import { Component, OnInit } from '@angular/core';\r\nimport { NavbarComponent } from '../../../shared/components/navbar/navbar.component';\r\nimport { ReactiveFormsModule, FormBuilder, Validators, FormGroup } from '@angular/forms';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormArray } from '@angular/forms';\r\nimport { Units } from '../../../shared/enums/units.enum';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { RecipesService } from '../../../core/services/api/recipes.service';\r\nimport { EditorModule } from 'primeng/editor';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { Router } from '@angular/router';\r\n@Component({\r\n  selector: 'app-view-recipe',\r\n  standalone: true,\r\n  imports: [CommonModule, ReactiveFormsModule, NavbarComponent,EditorModule],\r\n  templateUrl: './modify-recipe.component.html',\r\n  styleUrl: './modify-recipe.component.scss'\r\n})\r\nexport class ModifyRecipeComponent implements OnInit {\r\n  id: number = 0;\r\n  units: string[] = [];\r\n  recipe: any;\r\n\r\n  recipeForm: FormGroup;\r\n  constructor(private formBuilder: FormBuilder, private route: ActivatedRoute, \r\n    private recipeService: RecipesService, private router: Router) { \r\n    this.recipeForm = this.formBuilder.group({\r\n      name: ['', [Validators.required, Validators.pattern('[a-zA-Z ]*')]],\r\n      procedure: ['', [Validators.required]],\r\n      ingredients: this.formBuilder.array([this.createIngredientFormGroup()]),\r\n      inputs: this.formBuilder.array([this.createInputsFormGroup()]),\r\n    });\r\n  }\r\n\r\n  ngOnInit() {\r\n    this.id = +(this.route.snapshot.paramMap.get('id') ?? 0);\r\n    if(this.id !== 0){\r\n      this.recipe = this.recipeService.getRecipeById(this.id).subscribe(\r\n        (recipe: any) => {\r\n          this.recipe = recipe;\r\n          this.patchForm();\r\n    });\r\n      \r\n    }\r\n    this.units = Object.values(Units);\r\n  }\r\n\r\n  createIngredientFormGroup(): FormGroup {\r\n    return this.formBuilder.group({\r\n      name: ['', [Validators.required, Validators.pattern('^[a-zA-Z ]*$')]],\r\n      quantity: ['', [Validators.required, Validators.pattern('^[0-9]*$')]],\r\n      unit: ['', [Validators.required]]\r\n    });\r\n  }\r\n  \r\n  createInputsFormGroup(): FormGroup {\r\n    return this.formBuilder.group({\r\n      name: ['', [Validators.required, Validators.pattern('^[a-zA-Z ]*$')]],\r\n      quantity: ['', [Validators.required, Validators.pattern('^[0-9]*$')]],\r\n      unit: ['', [Validators.required]]\r\n    });\r\n  }\r\n\r\n\r\n  get ingredients(): FormArray {\r\n    return this.recipeForm.get('ingredients') as FormArray;\r\n  }\r\n\r\n  addIngredient() {\r\n    this.ingredients.push(this.createIngredientFormGroup());\r\n  }\r\n\r\n  removeIngredient(index: number) {\r\n    this.ingredients.removeAt(index);\r\n  }\r\n\r\n  get inputs(): FormArray {\r\n    return this.recipeForm.get('inputs') as FormArray;\r\n  }\r\n  addInput() {\r\n    this.inputs.push(this.createIngredientFormGroup());\r\n  }\r\n\r\n  removeInput(index: number) {\r\n    this.inputs.removeAt(index);\r\n  }\r\n\r\n  onSubmit() {\r\n    if(this.recipeForm.valid){\r\n      console.log(this.recipeForm.value);\r\n      const ingredientList = this.recipeForm\r\n        .get('ingredients')\r\n        ?.value.map((ingredient: any) => {\r\n          return `${ingredient.name},${ingredient.quantity},${ingredient.unit}`;\r\n        })\r\n        .join(';'); // Concatenar con ';'\r\n      console.log(ingredientList);\r\n\r\n      // Obtener y transformar la lista de insumos\r\n      const inputsList = this.recipeForm\r\n        .get('inputs')\r\n        ?.value.map((input: any) => {\r\n          return `${input.name},${input.quantity},${input.unit}`;\r\n        })\r\n        .join(';'); // Concatenar con ';'\r\n      console.log(inputsList);\r\n      const recipe: TableData = {\r\n        id: this.id,\r\n        name: this.recipeForm.get('name')?.value,\r\n        description: this.recipeForm.get('procedure')?.value,\r\n        recipeIngredients: ingredientList,\r\n        recipePackagingElements: inputsList,\r\n      };\r\n      this.recipeService.updateRecipe(recipe).subscribe(\r\n        (response) => {\r\n          console.log(response);\r\n          this.router.navigate(['/recipes']);\r\n        },\r\n        (error) => {\r\n          console.error(error);\r\n        }\r\n      );\r\n    }\r\n    \r\n  }\r\n\r\n\r\n  private patchForm() {\r\n    // Rellena los campos básicos\r\n    this.recipeForm.patchValue({\r\n      name: this.recipe['name'],\r\n      procedure: this.recipe['description']\r\n    });\r\n  \r\n    // Limpia los FormArrays antes de agregar nuevos elementos\r\n    this.ingredients.clear();\r\n    this.inputs.clear();\r\n  \r\n    // Obtén los ingredientes y agrégales al FormArray\r\n    const ingredients = parseList(this.recipe['recipeIngredients']);\r\n    ingredients.forEach((ingredient: Argument) => {\r\n      this.ingredients.push(this.formBuilder.group({\r\n        name: ingredient.name,\r\n        quantity: ingredient.quantity,\r\n        unit: ingredient.unit\r\n      }));\r\n    });\r\n  \r\n    // Obtén los inputs y agrégales al FormArray\r\n    const inputs = parseList(this.recipe['recipePackagingElements']);\r\n    inputs.forEach((input: Argument) => {\r\n      this.inputs.push(this.formBuilder.group({\r\n        name: input.name,\r\n        quantity: input.quantity,\r\n        unit: input.unit\r\n      }));\r\n    });\r\n  }\r\n  \r\n}\r\n\r\n\r\ninterface Argument{\r\n  name: string;\r\n  quantity: string;\r\n  unit: string;\r\n}\r\n\r\nfunction parseList(list: string): Argument[] {\r\n  if (!list) return [];\r\n  \r\n  // Asegúrate de que la cadena no tenga espacios innecesarios alrededor\r\n  const parsedList = list.split(';').filter(item => item.trim() !== '');\r\n  const args: Argument[] = parsedList.map((element: string) => {\r\n    const [name, quantity, unit] = element.split(',');\r\n    if (!name || !quantity || !unit) {\r\n      console.error(`Invalid format: ${element}`);\r\n      return { name: '', quantity: '', unit: '' };\r\n    }\r\n    return {\r\n      name: name.trim(),\r\n      quantity: quantity.trim(),\r\n      unit: unit.trim()\r\n    };\r\n  });\r\n  return args;\r\n}","<app-navbar></app-navbar>\r\n<div class=\"container-fluid d-flex flex-column justify-content-center align-items-center vh-100\">\r\n  <div class=\"row justify-content-center align-items-center w-100\">\r\n    <div class=\"col-10 col-main\">\r\n      <form #aux=\"ngForm\" [formGroup]=\"recipeForm\" (ngSubmit)=\"onSubmit()\" class=\"w-100\">\r\n        <div class=\"row header-row mb-4\">\r\n          <div class=\"col\">\r\n            <h1 class=\"view-title\">Modificar Receta</h1>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-end\">\r\n            <button type=\"submit\" class=\"btn btn-custom\">GUARDAR</button>\r\n          </div>\r\n        </div>\r\n        <div class=\"row custom-row\">\r\n          <div class=\"row\">\r\n            <div class=\"form-group\">\r\n              <div class=\"row align-items-center mb-3\">\r\n                <div class=\"col-3\">\r\n                  <label for=\"name\" class=\"title\">Nombre</label>\r\n                </div>\r\n                <div class=\"col\">\r\n                  <input type=\"text\" class=\"form-control\" id=\"name\" name=\"name\" formControlName=\"name\"\r\n                    [ngClass]=\"{ 'is-invalid': (recipeForm.get('name')?.dirty || recipeForm.get('name')?.touched || aux.submitted) && recipeForm.get('name')?.invalid }\" />\r\n                  <div class=\"error-container\">\r\n                    <div *ngIf=\"aux.submitted || recipeForm.get('name')?.invalid && (recipeForm.get('name')?.dirty || recipeForm.get('name')?.touched)\"\r\n                      class=\"text-danger\">\r\n                      <div *ngIf=\"recipeForm.get('name')?.errors?.['required']\">Nombre es requerido.</div>\r\n                      <div *ngIf=\"!recipeForm.get('name')?.errors?.['required'] && recipeForm.get('name')?.errors?.['pattern']\">\r\n                        El nombre no debe contener números ni símbolos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n          <div class=\"row align-items-center py-2\">\r\n            <!-- Columna Izquierda: Ingredientes -->\r\n            <div class=\"col-md-6\">\r\n              <div class=\"form-group\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col\">\r\n                    <label class=\"title\">Ingredientes</label>\r\n                  </div>\r\n                  <div class=\"col d-flex justify-content-end\">\r\n                    <button type=\"button\" class=\"btn btn-icon text-success\" (click)=\"addIngredient()\"><i class=\"bi bi-plus-square-fill\"></i></button>\r\n                  </div>\r\n                </div>\r\n                <div formArrayName=\"ingredients\" class=\"adder-container\">\r\n                  <div *ngFor=\"let ingredient of ingredients.controls; let i = index\" [formGroupName]=\"i\" class=\"form-group adder-row\">\r\n                    <div class=\"row align-items-center\">\r\n                      <div class=\"col\">\r\n                        <input id=\"ingredient-name-{{i}}\" formControlName=\"name\" class=\"form-control\" placeholder=\"Nombre del ingrediente\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"{ 'is-invalid': (ingredient.get('name')?.dirty || ingredient.get('name')?.touched || aux.submitted) && ingredient.get('name')?.invalid }\"/>\r\n                      </div>\r\n                      <div class=\"col-2\">\r\n                        <input type=\"number\" id=\"ingredient-quantity-{{i}}\" formControlName=\"quantity\" class=\"form-control\" placeholder=\"Cantidad\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"{ 'is-invalid': (ingredient.get('quantity')?.dirty || ingredient.get('quantity')?.touched || aux.submitted) && ingredient.get('quantity')?.invalid }\" />\r\n                      </div>\r\n                      <div class=\"col-2\">\r\n                        <select id=\"ingredient-unit-{{i}}\" formControlName=\"unit\" class=\"form-select me-2\" aria-label=\"Unit Selection\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"{ 'is-invalid': (ingredient.get('unit')?.dirty || ingredient.get('unit')?.touched || aux.submitted) && ingredient.get('unit')?.invalid }\">\r\n                          <option value=\"\" disabled selected>...</option>\r\n                          <option *ngFor=\"let unit of units\" [value]=\"unit\">\r\n                            {{ unit }}\r\n                          </option>\r\n                        </select>\r\n                      </div>\r\n                      <div class=\"col-2\">\r\n                        <div *ngIf=\"i !== 0\">\r\n                          <button type=\"button\" class=\"btn btn-icon text-danger\" (click)=\"removeIngredient(i)\">\r\n                            <i class=\"bi bi-x-square-fill\"></i>\r\n                          </button>\r\n                        </div>\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <!-- Columna Derecha: Insumos -->\r\n            <div class=\"col-md-6\">\r\n              <div class=\"form-group\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col\">\r\n                    <label class=\"title\">Insumos</label>\r\n                  </div>\r\n                  <div class=\"col d-flex justify-content-end\">\r\n                    <button type=\"button\" class=\"btn btn-icon text-success\" (click)=\"addInput()\"><i class=\"bi bi-plus-square-fill\"></i></button>\r\n                  </div>\r\n                </div>\r\n                <div formArrayName=\"inputs\" class=\"adder-container\">\r\n                  <div *ngFor=\"let input of inputs.controls; let j = index\" [formGroupName]=\"j\" class=\"form-group adder-row\">\r\n                    <div class=\"row align-items-center\">\r\n                      <div class=\"col\">\r\n                        <input id=\"inputs-name-{{j}}\" formControlName=\"name\" class=\"form-control\" placeholder=\"Nombre del insumo\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"{ 'is-invalid': (input.get('name')?.dirty || input.get('name')?.touched || aux.submitted) && input.get('name')?.invalid }\" />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n                      </div>\r\n                      <div class=\"col-3\">\r\n                        <input id=\"inputs-quantity-{{j}}\" formControlName=\"quantity\" class=\"form-control\" placeholder=\"Cantidad\" \r\n\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"{ 'is-invalid': (input.get('quantity')?.dirty || input.get('quantity')?.touched || aux.submitted) && input.get('quantity')?.invalid }\" />\r\n                      </div>\r\n                      <div class=\"col-2\">\r\n                        <select id=\"inputs-unit-{{j}}\" formControlName=\"unit\" class=\"form-select me-2\" aria-label=\"Unit Selection\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"{ 'is-invalid': (input.get('unit')?.dirty || input.get('unit')?.touched || aux.submitted) && input.get('unit')?.invalid }\" >\r\n                          <option value=\"\" disabled selected>...</option>\r\n                          <option *ngFor=\"let unit of units\" [value]=\"unit\">\r\n                            {{ unit }}\r\n                          </option>\r\n                        </select>\r\n                      </div>\r\n                      <div class=\"col-2\">\r\n                        <div *ngIf=\"j !== 0\">\r\n                          <button type=\"button\" class=\"btn btn-icon text-danger\" (click)=\"removeInput(j)\">\r\n                            <i class=\"bi bi-x-square-fill\"></i>\r\n                          </button>\r\n                        </div>\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n          <hr/>\r\n          <div class=\"form-group\">\r\n            <label class=\"title\">Procedimiento</label>\r\n            <!--textarea id=\"procedure\" name=\"procedure\" formControlName=\"procedure\" class=\"form-control\" rows=\"10\"\r\n\t\t\t\t\t\t[ngClass]=\"{ 'is-invalid': (recipeForm.get('procedure')?.dirty || recipeForm.get('procedure')?.touched || aux.submitted) && recipeForm.get('procedure')?.invalid }\" ></textarea-->\r\n            <p-editor formControlName=\"procedure\" class=\"form-control p-editor-custom\"\r\n                      [style]=\"{ height: '240px' }\"\r\n                      [ngClass]=\"{ 'is-invalid': (recipeForm.get('procedure')?.dirty || recipeForm.get('procedure')?.touched || aux.submitted) && recipeForm.get('procedure')?.invalid }\">\r\n                      <ng-template pTemplate=\"header\">\r\n                        <span class=\"ql-formats\">\r\n                          <select class=\"ql-header\" aria-label=\"Select header\">\r\n                            <option selected></option>\r\n                            <option value=\"1\">Heading 1</option>\r\n                            <option value=\"2\">Heading 2</option>\r\n                            <option value=\"3\">Heading 3</option>\r\n                          </select>\r\n                          <select class=\"ql-font\" aria-label=\"Select font\">\r\n                            <option selected></option>\r\n                            <option value=\"serif\">Serif</option>\r\n                            <option value=\"monospace\">Monospace</option>\r\n                          </select>\r\n                          <button class=\"ql-bold\" aria-label=\"Bold\"></button>\r\n                          <button class=\"ql-italic\" aria-label=\"Italic\"></button>\r\n                          <button class=\"ql-underline\" aria-label=\"Underline\"></button>\r\n                          <select class=\"ql-align\" aria-label=\"Select align\">\r\n                            <option selected></option>\r\n                            <option value=\"center\">Center</option>\r\n                            <option value=\"right\">Right</option>\r\n                            <option value=\"justify\">Justify</option>\r\n                          </select>\r\n                          <button class=\"ql-list\" value=\"ordered\" aria-label=\"Ordered list\"></button>\r\n                          <button class=\"ql-list\" value=\"bullet\" aria-label=\"Bullet list\"></button>\r\n                          <button class=\"ql-link\" aria-label=\"Insert link\"></button>\r\n                        </span>\r\n                      </ng-template>\r\n                    </p-editor>\r\n\t\t\t\t\t\t<div class=\"error-container\">\r\n\t\t\t\t\t\t\t<div *ngIf=\"aux.submitted || recipeForm.get('procedure')?.invalid && (recipeForm.get('procedure')?.dirty || recipeForm.get('procedure')?.touched)\"\r\n\t\t\t\t\t\t\t\tclass=\"text-danger\">\r\n\t\t\t\t\t\t\t\t<div *ngIf=\"recipeForm.get('procedure')?.errors?.['required']\">Procedimiento es requerido.</div>\r\n\t\t\t\t\t\t\t\t<div *ngIf=\"!recipeForm.get('procedure')?.errors?.['required'] && recipeForm.get('procedure')?.errors?.['pattern']\">\r\n\t\t\t\t\t\t\t\t\t\tEs necesario agregar un procedimiento.\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({\r\n  name: 'newLinewToBr',\r\n  standalone: true\r\n})\r\nexport class NewLinewToBrPipe implements PipeTransform {\r\n\r\n  transform(value: string): string {\r\n    if(!value) return value;\r\n    return value.replace(/\\n/g, '<br>');\r\n  }\r\n\r\n}\r\n","/** @license\n *\n * jsPDF - PDF Document creation from JavaScript\n * Version 2.5.1 Built on 2022-01-28T15:37:57.791Z\n *                      CommitID 00000000\n *\n * Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF\n *               2015-2021 yWorks GmbH, http://www.yworks.com\n *               2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX\n *               2016-2018 Aras Abbasi <aras.abbasi@gmail.com>\n *               2010 Aaron Spike, https://github.com/acspike\n *               2012 Willow Systems Corporation, https://github.com/willowsystems\n *               2012 Pablo Hess, https://github.com/pablohess\n *               2012 Florian Jenett, https://github.com/fjenett\n *               2013 Warren Weckesser, https://github.com/warrenweckesser\n *               2013 Youssef Beddad, https://github.com/lifof\n *               2013 Lee Driscoll, https://github.com/lsdriscoll\n *               2013 Stefan Slonevskiy, https://github.com/stefslon\n *               2013 Jeremy Morel, https://github.com/jmorel\n *               2013 Christoph Hartmann, https://github.com/chris-rock\n *               2014 Juan Pablo Gaviria, https://github.com/juanpgaviria\n *               2014 James Makes, https://github.com/dollaruw\n *               2014 Diego Casorran, https://github.com/diegocr\n *               2014 Steven Spungin, https://github.com/Flamenco\n *               2014 Kenneth Glassey, https://github.com/Gavvers\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * \"Software\"), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modify, merge, publish,\n * distribute, sublicense, and/or sell copies of the Software, and to\n * permit persons to whom the Software is furnished to do so, subject to\n * the following conditions:\n *\n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n *\n * Contributor(s):\n *    siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,\n *    kim3er, mfo, alnorth, Flamenco\n */\n\nimport t from \"@babel/runtime/helpers/typeof\";\nimport { zlibSync as e, unzlibSync as r } from \"fflate\";\nvar n = function () {\n  return \"undefined\" != typeof window ? window : \"undefined\" != typeof global ? global : \"undefined\" != typeof self ? self : this;\n}();\nfunction i() {\n  n.console && \"function\" == typeof n.console.log && n.console.log.apply(n.console, arguments);\n}\nvar a = {\n  log: i,\n  warn: function (t) {\n    n.console && (\"function\" == typeof n.console.warn ? n.console.warn.apply(n.console, arguments) : i.call(null, arguments));\n  },\n  error: function (t) {\n    n.console && (\"function\" == typeof n.console.error ? n.console.error.apply(n.console, arguments) : i(t));\n  }\n};\nfunction o(t, e, r) {\n  var n = new XMLHttpRequest();\n  n.open(\"GET\", t), n.responseType = \"blob\", n.onload = function () {\n    l(n.response, e, r);\n  }, n.onerror = function () {\n    a.error(\"could not download file\");\n  }, n.send();\n}\nfunction s(t) {\n  var e = new XMLHttpRequest();\n  e.open(\"HEAD\", t, !1);\n  try {\n    e.send();\n  } catch (t) {}\n  return e.status >= 200 && e.status <= 299;\n}\nfunction c(t) {\n  try {\n    t.dispatchEvent(new MouseEvent(\"click\"));\n  } catch (r) {\n    var e = document.createEvent(\"MouseEvents\");\n    e.initMouseEvent(\"click\", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), t.dispatchEvent(e);\n  }\n}\nvar u,\n  h,\n  l = n.saveAs || (\"object\" !== (\"undefined\" == typeof window ? \"undefined\" : t(window)) || window !== n ? function () {} : \"undefined\" != typeof HTMLAnchorElement && \"download\" in HTMLAnchorElement.prototype ? function (t, e, r) {\n    var i = n.URL || n.webkitURL,\n      a = document.createElement(\"a\");\n    e = e || t.name || \"download\", a.download = e, a.rel = \"noopener\", \"string\" == typeof t ? (a.href = t, a.origin !== location.origin ? s(a.href) ? o(t, e, r) : c(a, a.target = \"_blank\") : c(a)) : (a.href = i.createObjectURL(t), setTimeout(function () {\n      i.revokeObjectURL(a.href);\n    }, 4e4), setTimeout(function () {\n      c(a);\n    }, 0));\n  } : \"msSaveOrOpenBlob\" in navigator ? function (e, r, n) {\n    if (r = r || e.name || \"download\", \"string\" == typeof e) {\n      if (s(e)) o(e, r, n);else {\n        var i = document.createElement(\"a\");\n        i.href = e, i.target = \"_blank\", setTimeout(function () {\n          c(i);\n        });\n      }\n    } else navigator.msSaveOrOpenBlob(function (e, r) {\n      return void 0 === r ? r = {\n        autoBom: !1\n      } : \"object\" !== t(r) && (a.warn(\"Deprecated: Expected third argument to be a object\"), r = {\n        autoBom: !r\n      }), r.autoBom && /^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type) ? new Blob([String.fromCharCode(65279), e], {\n        type: e.type\n      }) : e;\n    }(e, n), r);\n  } : function (e, r, i, a) {\n    if ((a = a || open(\"\", \"_blank\")) && (a.document.title = a.document.body.innerText = \"downloading...\"), \"string\" == typeof e) return o(e, r, i);\n    var s = \"application/octet-stream\" === e.type,\n      c = /constructor/i.test(n.HTMLElement) || n.safari,\n      u = /CriOS\\/[\\d]+/.test(navigator.userAgent);\n    if ((u || s && c) && \"object\" === (\"undefined\" == typeof FileReader ? \"undefined\" : t(FileReader))) {\n      var h = new FileReader();\n      h.onloadend = function () {\n        var t = h.result;\n        t = u ? t : t.replace(/^data:[^;]*;/, \"data:attachment/file;\"), a ? a.location.href = t : location = t, a = null;\n      }, h.readAsDataURL(e);\n    } else {\n      var l = n.URL || n.webkitURL,\n        f = l.createObjectURL(e);\n      a ? a.location = f : location.href = f, a = null, setTimeout(function () {\n        l.revokeObjectURL(f);\n      }, 4e4);\n    }\n  });\n/**\n * A class to parse color values\n * @author Stoyan Stefanov <sstoo@gmail.com>\n * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}\n * @license Use it if you like it\n */\nfunction f(t) {\n  var e;\n  t = t || \"\", this.ok = !1, \"#\" == t.charAt(0) && (t = t.substr(1, 6));\n  t = {\n    aliceblue: \"f0f8ff\",\n    antiquewhite: \"faebd7\",\n    aqua: \"00ffff\",\n    aquamarine: \"7fffd4\",\n    azure: \"f0ffff\",\n    beige: \"f5f5dc\",\n    bisque: \"ffe4c4\",\n    black: \"000000\",\n    blanchedalmond: \"ffebcd\",\n    blue: \"0000ff\",\n    blueviolet: \"8a2be2\",\n    brown: \"a52a2a\",\n    burlywood: \"deb887\",\n    cadetblue: \"5f9ea0\",\n    chartreuse: \"7fff00\",\n    chocolate: \"d2691e\",\n    coral: \"ff7f50\",\n    cornflowerblue: \"6495ed\",\n    cornsilk: \"fff8dc\",\n    crimson: \"dc143c\",\n    cyan: \"00ffff\",\n    darkblue: \"00008b\",\n    darkcyan: \"008b8b\",\n    darkgoldenrod: \"b8860b\",\n    darkgray: \"a9a9a9\",\n    darkgreen: \"006400\",\n    darkkhaki: \"bdb76b\",\n    darkmagenta: \"8b008b\",\n    darkolivegreen: \"556b2f\",\n    darkorange: \"ff8c00\",\n    darkorchid: \"9932cc\",\n    darkred: \"8b0000\",\n    darksalmon: \"e9967a\",\n    darkseagreen: \"8fbc8f\",\n    darkslateblue: \"483d8b\",\n    darkslategray: \"2f4f4f\",\n    darkturquoise: \"00ced1\",\n    darkviolet: \"9400d3\",\n    deeppink: \"ff1493\",\n    deepskyblue: \"00bfff\",\n    dimgray: \"696969\",\n    dodgerblue: \"1e90ff\",\n    feldspar: \"d19275\",\n    firebrick: \"b22222\",\n    floralwhite: \"fffaf0\",\n    forestgreen: \"228b22\",\n    fuchsia: \"ff00ff\",\n    gainsboro: \"dcdcdc\",\n    ghostwhite: \"f8f8ff\",\n    gold: \"ffd700\",\n    goldenrod: \"daa520\",\n    gray: \"808080\",\n    green: \"008000\",\n    greenyellow: \"adff2f\",\n    honeydew: \"f0fff0\",\n    hotpink: \"ff69b4\",\n    indianred: \"cd5c5c\",\n    indigo: \"4b0082\",\n    ivory: \"fffff0\",\n    khaki: \"f0e68c\",\n    lavender: \"e6e6fa\",\n    lavenderblush: \"fff0f5\",\n    lawngreen: \"7cfc00\",\n    lemonchiffon: \"fffacd\",\n    lightblue: \"add8e6\",\n    lightcoral: \"f08080\",\n    lightcyan: \"e0ffff\",\n    lightgoldenrodyellow: \"fafad2\",\n    lightgrey: \"d3d3d3\",\n    lightgreen: \"90ee90\",\n    lightpink: \"ffb6c1\",\n    lightsalmon: \"ffa07a\",\n    lightseagreen: \"20b2aa\",\n    lightskyblue: \"87cefa\",\n    lightslateblue: \"8470ff\",\n    lightslategray: \"778899\",\n    lightsteelblue: \"b0c4de\",\n    lightyellow: \"ffffe0\",\n    lime: \"00ff00\",\n    limegreen: \"32cd32\",\n    linen: \"faf0e6\",\n    magenta: \"ff00ff\",\n    maroon: \"800000\",\n    mediumaquamarine: \"66cdaa\",\n    mediumblue: \"0000cd\",\n    mediumorchid: \"ba55d3\",\n    mediumpurple: \"9370d8\",\n    mediumseagreen: \"3cb371\",\n    mediumslateblue: \"7b68ee\",\n    mediumspringgreen: \"00fa9a\",\n    mediumturquoise: \"48d1cc\",\n    mediumvioletred: \"c71585\",\n    midnightblue: \"191970\",\n    mintcream: \"f5fffa\",\n    mistyrose: \"ffe4e1\",\n    moccasin: \"ffe4b5\",\n    navajowhite: \"ffdead\",\n    navy: \"000080\",\n    oldlace: \"fdf5e6\",\n    olive: \"808000\",\n    olivedrab: \"6b8e23\",\n    orange: \"ffa500\",\n    orangered: \"ff4500\",\n    orchid: \"da70d6\",\n    palegoldenrod: \"eee8aa\",\n    palegreen: \"98fb98\",\n    paleturquoise: \"afeeee\",\n    palevioletred: \"d87093\",\n    papayawhip: \"ffefd5\",\n    peachpuff: \"ffdab9\",\n    peru: \"cd853f\",\n    pink: \"ffc0cb\",\n    plum: \"dda0dd\",\n    powderblue: \"b0e0e6\",\n    purple: \"800080\",\n    red: \"ff0000\",\n    rosybrown: \"bc8f8f\",\n    royalblue: \"4169e1\",\n    saddlebrown: \"8b4513\",\n    salmon: \"fa8072\",\n    sandybrown: \"f4a460\",\n    seagreen: \"2e8b57\",\n    seashell: \"fff5ee\",\n    sienna: \"a0522d\",\n    silver: \"c0c0c0\",\n    skyblue: \"87ceeb\",\n    slateblue: \"6a5acd\",\n    slategray: \"708090\",\n    snow: \"fffafa\",\n    springgreen: \"00ff7f\",\n    steelblue: \"4682b4\",\n    tan: \"d2b48c\",\n    teal: \"008080\",\n    thistle: \"d8bfd8\",\n    tomato: \"ff6347\",\n    turquoise: \"40e0d0\",\n    violet: \"ee82ee\",\n    violetred: \"d02090\",\n    wheat: \"f5deb3\",\n    white: \"ffffff\",\n    whitesmoke: \"f5f5f5\",\n    yellow: \"ffff00\",\n    yellowgreen: \"9acd32\"\n  }[t = (t = t.replace(/ /g, \"\")).toLowerCase()] || t;\n  for (var r = [{\n      re: /^rgb\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})\\)$/,\n      example: [\"rgb(123, 234, 45)\", \"rgb(255,234,245)\"],\n      process: function (t) {\n        return [parseInt(t[1]), parseInt(t[2]), parseInt(t[3])];\n      }\n    }, {\n      re: /^(\\w{2})(\\w{2})(\\w{2})$/,\n      example: [\"#00ff00\", \"336699\"],\n      process: function (t) {\n        return [parseInt(t[1], 16), parseInt(t[2], 16), parseInt(t[3], 16)];\n      }\n    }, {\n      re: /^(\\w{1})(\\w{1})(\\w{1})$/,\n      example: [\"#fb0\", \"f0f\"],\n      process: function (t) {\n        return [parseInt(t[1] + t[1], 16), parseInt(t[2] + t[2], 16), parseInt(t[3] + t[3], 16)];\n      }\n    }], n = 0; n < r.length; n++) {\n    var i = r[n].re,\n      a = r[n].process,\n      o = i.exec(t);\n    o && (e = a(o), this.r = e[0], this.g = e[1], this.b = e[2], this.ok = !0);\n  }\n  this.r = this.r < 0 || isNaN(this.r) ? 0 : this.r > 255 ? 255 : this.r, this.g = this.g < 0 || isNaN(this.g) ? 0 : this.g > 255 ? 255 : this.g, this.b = this.b < 0 || isNaN(this.b) ? 0 : this.b > 255 ? 255 : this.b, this.toRGB = function () {\n    return \"rgb(\" + this.r + \", \" + this.g + \", \" + this.b + \")\";\n  }, this.toHex = function () {\n    var t = this.r.toString(16),\n      e = this.g.toString(16),\n      r = this.b.toString(16);\n    return 1 == t.length && (t = \"0\" + t), 1 == e.length && (e = \"0\" + e), 1 == r.length && (r = \"0\" + r), \"#\" + t + e + r;\n  };\n}\n/**\n * @license\n * Joseph Myers does not specify a particular license for his work.\n *\n * Author: Joseph Myers\n * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js\n *\n * Modified by: Owen Leong\n */\nfunction d(t, e) {\n  var r = t[0],\n    n = t[1],\n    i = t[2],\n    a = t[3];\n  r = g(r, n, i, a, e[0], 7, -680876936), a = g(a, r, n, i, e[1], 12, -389564586), i = g(i, a, r, n, e[2], 17, 606105819), n = g(n, i, a, r, e[3], 22, -1044525330), r = g(r, n, i, a, e[4], 7, -176418897), a = g(a, r, n, i, e[5], 12, 1200080426), i = g(i, a, r, n, e[6], 17, -1473231341), n = g(n, i, a, r, e[7], 22, -45705983), r = g(r, n, i, a, e[8], 7, 1770035416), a = g(a, r, n, i, e[9], 12, -1958414417), i = g(i, a, r, n, e[10], 17, -42063), n = g(n, i, a, r, e[11], 22, -1990404162), r = g(r, n, i, a, e[12], 7, 1804603682), a = g(a, r, n, i, e[13], 12, -40341101), i = g(i, a, r, n, e[14], 17, -1502002290), r = m(r, n = g(n, i, a, r, e[15], 22, 1236535329), i, a, e[1], 5, -165796510), a = m(a, r, n, i, e[6], 9, -1069501632), i = m(i, a, r, n, e[11], 14, 643717713), n = m(n, i, a, r, e[0], 20, -373897302), r = m(r, n, i, a, e[5], 5, -701558691), a = m(a, r, n, i, e[10], 9, 38016083), i = m(i, a, r, n, e[15], 14, -660478335), n = m(n, i, a, r, e[4], 20, -405537848), r = m(r, n, i, a, e[9], 5, 568446438), a = m(a, r, n, i, e[14], 9, -1019803690), i = m(i, a, r, n, e[3], 14, -187363961), n = m(n, i, a, r, e[8], 20, 1163531501), r = m(r, n, i, a, e[13], 5, -1444681467), a = m(a, r, n, i, e[2], 9, -51403784), i = m(i, a, r, n, e[7], 14, 1735328473), r = v(r, n = m(n, i, a, r, e[12], 20, -1926607734), i, a, e[5], 4, -378558), a = v(a, r, n, i, e[8], 11, -2022574463), i = v(i, a, r, n, e[11], 16, 1839030562), n = v(n, i, a, r, e[14], 23, -35309556), r = v(r, n, i, a, e[1], 4, -1530992060), a = v(a, r, n, i, e[4], 11, 1272893353), i = v(i, a, r, n, e[7], 16, -155497632), n = v(n, i, a, r, e[10], 23, -1094730640), r = v(r, n, i, a, e[13], 4, 681279174), a = v(a, r, n, i, e[0], 11, -358537222), i = v(i, a, r, n, e[3], 16, -722521979), n = v(n, i, a, r, e[6], 23, 76029189), r = v(r, n, i, a, e[9], 4, -640364487), a = v(a, r, n, i, e[12], 11, -421815835), i = v(i, a, r, n, e[15], 16, 530742520), r = b(r, n = v(n, i, a, r, e[2], 23, -995338651), i, a, e[0], 6, -198630844), a = b(a, r, n, i, e[7], 10, 1126891415), i = b(i, a, r, n, e[14], 15, -1416354905), n = b(n, i, a, r, e[5], 21, -57434055), r = b(r, n, i, a, e[12], 6, 1700485571), a = b(a, r, n, i, e[3], 10, -1894986606), i = b(i, a, r, n, e[10], 15, -1051523), n = b(n, i, a, r, e[1], 21, -2054922799), r = b(r, n, i, a, e[8], 6, 1873313359), a = b(a, r, n, i, e[15], 10, -30611744), i = b(i, a, r, n, e[6], 15, -1560198380), n = b(n, i, a, r, e[13], 21, 1309151649), r = b(r, n, i, a, e[4], 6, -145523070), a = b(a, r, n, i, e[11], 10, -1120210379), i = b(i, a, r, n, e[2], 15, 718787259), n = b(n, i, a, r, e[9], 21, -343485551), t[0] = _(r, t[0]), t[1] = _(n, t[1]), t[2] = _(i, t[2]), t[3] = _(a, t[3]);\n}\nfunction p(t, e, r, n, i, a) {\n  return e = _(_(e, t), _(n, a)), _(e << i | e >>> 32 - i, r);\n}\nfunction g(t, e, r, n, i, a, o) {\n  return p(e & r | ~e & n, t, e, i, a, o);\n}\nfunction m(t, e, r, n, i, a, o) {\n  return p(e & n | r & ~n, t, e, i, a, o);\n}\nfunction v(t, e, r, n, i, a, o) {\n  return p(e ^ r ^ n, t, e, i, a, o);\n}\nfunction b(t, e, r, n, i, a, o) {\n  return p(r ^ (e | ~n), t, e, i, a, o);\n}\nfunction y(t) {\n  var e,\n    r = t.length,\n    n = [1732584193, -271733879, -1732584194, 271733878];\n  for (e = 64; e <= t.length; e += 64) d(n, w(t.substring(e - 64, e)));\n  t = t.substring(e - 64);\n  var i = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\n  for (e = 0; e < t.length; e++) i[e >> 2] |= t.charCodeAt(e) << (e % 4 << 3);\n  if (i[e >> 2] |= 128 << (e % 4 << 3), e > 55) for (d(n, i), e = 0; e < 16; e++) i[e] = 0;\n  return i[14] = 8 * r, d(n, i), n;\n}\nfunction w(t) {\n  var e,\n    r = [];\n  for (e = 0; e < 64; e += 4) r[e >> 2] = t.charCodeAt(e) + (t.charCodeAt(e + 1) << 8) + (t.charCodeAt(e + 2) << 16) + (t.charCodeAt(e + 3) << 24);\n  return r;\n}\nu = n.atob.bind(n), h = n.btoa.bind(n);\nvar N = \"0123456789abcdef\".split(\"\");\nfunction L(t) {\n  for (var e = \"\", r = 0; r < 4; r++) e += N[t >> 8 * r + 4 & 15] + N[t >> 8 * r & 15];\n  return e;\n}\nfunction A(t) {\n  return String.fromCharCode((255 & t) >> 0, (65280 & t) >> 8, (16711680 & t) >> 16, (4278190080 & t) >> 24);\n}\nfunction x(t) {\n  return y(t).map(A).join(\"\");\n}\nvar S = \"5d41402abc4b2a76b9719d911017c592\" != function (t) {\n  for (var e = 0; e < t.length; e++) t[e] = L(t[e]);\n  return t.join(\"\");\n}(y(\"hello\"));\nfunction _(t, e) {\n  if (S) {\n    var r = (65535 & t) + (65535 & e);\n    return (t >> 16) + (e >> 16) + (r >> 16) << 16 | 65535 & r;\n  }\n  return t + e & 4294967295;\n}\n/**\n * @license\n * FPDF is released under a permissive license: there is no usage restriction.\n * You may embed it freely in your application (commercial or not), with or\n * without modifications.\n *\n * Reference: http://www.fpdf.org/en/script/script37.php\n */\nfunction P(t, e) {\n  var r, n, i, a;\n  if (t !== r) {\n    for (var o = (i = t, a = 1 + (256 / t.length >> 0), new Array(a + 1).join(i)), s = [], c = 0; c < 256; c++) s[c] = c;\n    var u = 0;\n    for (c = 0; c < 256; c++) {\n      var h = s[c];\n      u = (u + h + o.charCodeAt(c)) % 256, s[c] = s[u], s[u] = h;\n    }\n    r = t, n = s;\n  } else s = n;\n  var l = e.length,\n    f = 0,\n    d = 0,\n    p = \"\";\n  for (c = 0; c < l; c++) d = (d + (h = s[f = (f + 1) % 256])) % 256, s[f] = s[d], s[d] = h, o = s[(s[f] + s[d]) % 256], p += String.fromCharCode(e.charCodeAt(c) ^ o);\n  return p;\n}\n/**\n * @license\n * Licensed under the MIT License.\n * http://opensource.org/licenses/mit-license\n * Author: Owen Leong (@owenl131)\n * Date: 15 Oct 2020\n * References:\n * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt\n * https://github.com/foliojs/pdfkit/blob/master/lib/security.js\n * http://www.fpdf.org/en/script/script37.php\n */\nvar k = {\n  print: 4,\n  modify: 8,\n  copy: 16,\n  \"annot-forms\": 32\n};\nfunction I(t, e, r, n) {\n  this.v = 1, this.r = 2;\n  var i = 192;\n  t.forEach(function (t) {\n    if (void 0 !== k.perm) throw new Error(\"Invalid permission: \" + t);\n    i += k[t];\n  }), this.padding = \"(¿N^NuŠAd\\0NVÿú\u0001\\b..\\0¶Ðh>€/\\f©þdSiz\";\n  var a = (e + this.padding).substr(0, 32),\n    o = (r + this.padding).substr(0, 32);\n  this.O = this.processOwnerPassword(a, o), this.P = -(1 + (255 ^ i)), this.encryptionKey = x(a + this.O + this.lsbFirstWord(this.P) + this.hexToBytes(n)).substr(0, 5), this.U = P(this.encryptionKey, this.padding);\n}\nfunction F(t) {\n  if (/[^\\u0000-\\u00ff]/.test(t)) throw new Error(\"Invalid PDF Name Object: \" + t + \", Only accept ASCII characters.\");\n  for (var e = \"\", r = t.length, n = 0; n < r; n++) {\n    var i = t.charCodeAt(n);\n    if (i < 33 || 35 === i || 37 === i || 40 === i || 41 === i || 47 === i || 60 === i || 62 === i || 91 === i || 93 === i || 123 === i || 125 === i || i > 126) e += \"#\" + (\"0\" + i.toString(16)).slice(-2);else e += t[n];\n  }\n  return e;\n}\nfunction C(e) {\n  if (\"object\" !== t(e)) throw new Error(\"Invalid Context passed to initialize PubSub (jsPDF-module)\");\n  var r = {};\n  this.subscribe = function (t, e, n) {\n    if (n = n || !1, \"string\" != typeof t || \"function\" != typeof e || \"boolean\" != typeof n) throw new Error(\"Invalid arguments passed to PubSub.subscribe (jsPDF-module)\");\n    r.hasOwnProperty(t) || (r[t] = {});\n    var i = Math.random().toString(35);\n    return r[t][i] = [e, !!n], i;\n  }, this.unsubscribe = function (t) {\n    for (var e in r) if (r[e][t]) return delete r[e][t], 0 === Object.keys(r[e]).length && delete r[e], !0;\n    return !1;\n  }, this.publish = function (t) {\n    if (r.hasOwnProperty(t)) {\n      var i = Array.prototype.slice.call(arguments, 1),\n        o = [];\n      for (var s in r[t]) {\n        var c = r[t][s];\n        try {\n          c[0].apply(e, i);\n        } catch (t) {\n          n.console && a.error(\"jsPDF PubSub Error\", t.message, t);\n        }\n        c[1] && o.push(s);\n      }\n      o.length && o.forEach(this.unsubscribe);\n    }\n  }, this.getTopics = function () {\n    return r;\n  };\n}\nfunction j(t) {\n  if (!(this instanceof j)) return new j(t);\n  var e = \"opacity,stroke-opacity\".split(\",\");\n  for (var r in t) t.hasOwnProperty(r) && e.indexOf(r) >= 0 && (this[r] = t[r]);\n  this.id = \"\", this.objectNumber = -1;\n}\nfunction O(t, e) {\n  this.gState = t, this.matrix = e, this.id = \"\", this.objectNumber = -1;\n}\nfunction B(t, e, r, n, i) {\n  if (!(this instanceof B)) return new B(t, e, r, n, i);\n  this.type = \"axial\" === t ? 2 : 3, this.coords = e, this.colors = r, O.call(this, n, i);\n}\nfunction M(t, e, r, n, i) {\n  if (!(this instanceof M)) return new M(t, e, r, n, i);\n  this.boundingBox = t, this.xStep = e, this.yStep = r, this.stream = \"\", this.cloneIndex = 0, O.call(this, n, i);\n}\nfunction E(e) {\n  var r,\n    i = \"string\" == typeof arguments[0] ? arguments[0] : \"p\",\n    o = arguments[1],\n    s = arguments[2],\n    c = arguments[3],\n    u = [],\n    d = 1,\n    p = 16,\n    g = \"S\",\n    m = null;\n  \"object\" === t(e = e || {}) && (i = e.orientation, o = e.unit || o, s = e.format || s, c = e.compress || e.compressPdf || c, null !== (m = e.encryption || null) && (m.userPassword = m.userPassword || \"\", m.ownerPassword = m.ownerPassword || \"\", m.userPermissions = m.userPermissions || []), d = \"number\" == typeof e.userUnit ? Math.abs(e.userUnit) : 1, void 0 !== e.precision && (r = e.precision), void 0 !== e.floatPrecision && (p = e.floatPrecision), g = e.defaultPathOperation || \"S\"), u = e.filters || (!0 === c ? [\"FlateEncode\"] : u), o = o || \"mm\", i = (\"\" + (i || \"P\")).toLowerCase();\n  var v = e.putOnlyUsedFonts || !1,\n    b = {},\n    y = {\n      internal: {},\n      __private__: {}\n    };\n  y.__private__.PubSub = C;\n  var w = \"1.3\",\n    N = y.__private__.getPdfVersion = function () {\n      return w;\n    };\n  y.__private__.setPdfVersion = function (t) {\n    w = t;\n  };\n  var L = {\n    a0: [2383.94, 3370.39],\n    a1: [1683.78, 2383.94],\n    a2: [1190.55, 1683.78],\n    a3: [841.89, 1190.55],\n    a4: [595.28, 841.89],\n    a5: [419.53, 595.28],\n    a6: [297.64, 419.53],\n    a7: [209.76, 297.64],\n    a8: [147.4, 209.76],\n    a9: [104.88, 147.4],\n    a10: [73.7, 104.88],\n    b0: [2834.65, 4008.19],\n    b1: [2004.09, 2834.65],\n    b2: [1417.32, 2004.09],\n    b3: [1000.63, 1417.32],\n    b4: [708.66, 1000.63],\n    b5: [498.9, 708.66],\n    b6: [354.33, 498.9],\n    b7: [249.45, 354.33],\n    b8: [175.75, 249.45],\n    b9: [124.72, 175.75],\n    b10: [87.87, 124.72],\n    c0: [2599.37, 3676.54],\n    c1: [1836.85, 2599.37],\n    c2: [1298.27, 1836.85],\n    c3: [918.43, 1298.27],\n    c4: [649.13, 918.43],\n    c5: [459.21, 649.13],\n    c6: [323.15, 459.21],\n    c7: [229.61, 323.15],\n    c8: [161.57, 229.61],\n    c9: [113.39, 161.57],\n    c10: [79.37, 113.39],\n    dl: [311.81, 623.62],\n    letter: [612, 792],\n    \"government-letter\": [576, 756],\n    legal: [612, 1008],\n    \"junior-legal\": [576, 360],\n    ledger: [1224, 792],\n    tabloid: [792, 1224],\n    \"credit-card\": [153, 243]\n  };\n  y.__private__.getPageFormats = function () {\n    return L;\n  };\n  var A = y.__private__.getPageFormat = function (t) {\n    return L[t];\n  };\n  s = s || \"a4\";\n  var x = {\n      COMPAT: \"compat\",\n      ADVANCED: \"advanced\"\n    },\n    S = x.COMPAT;\n  function _() {\n    this.saveGraphicsState(), lt(new Vt(_t, 0, 0, -_t, 0, Rr() * _t).toString() + \" cm\"), this.setFontSize(this.getFontSize() / _t), g = \"n\", S = x.ADVANCED;\n  }\n  function P() {\n    this.restoreGraphicsState(), g = \"S\", S = x.COMPAT;\n  }\n  var k = y.__private__.combineFontStyleAndFontWeight = function (t, e) {\n    if (\"bold\" == t && \"normal\" == e || \"bold\" == t && 400 == e || \"normal\" == t && \"italic\" == e || \"bold\" == t && \"italic\" == e) throw new Error(\"Invalid Combination of fontweight and fontstyle\");\n    return e && (t = 400 == e || \"normal\" === e ? \"italic\" === t ? \"italic\" : \"normal\" : 700 != e && \"bold\" !== e || \"normal\" !== t ? (700 == e ? \"bold\" : e) + \"\" + t : \"bold\"), t;\n  };\n  y.advancedAPI = function (t) {\n    var e = S === x.COMPAT;\n    return e && _.call(this), \"function\" != typeof t || (t(this), e && P.call(this)), this;\n  }, y.compatAPI = function (t) {\n    var e = S === x.ADVANCED;\n    return e && P.call(this), \"function\" != typeof t || (t(this), e && _.call(this)), this;\n  }, y.isAdvancedAPI = function () {\n    return S === x.ADVANCED;\n  };\n  var O,\n    q = function (t) {\n      if (S !== x.ADVANCED) throw new Error(t + \" is only available in 'advanced' API mode. You need to call advancedAPI() first.\");\n    },\n    D = y.roundToPrecision = y.__private__.roundToPrecision = function (t, e) {\n      var n = r || e;\n      if (isNaN(t) || isNaN(n)) throw new Error(\"Invalid argument passed to jsPDF.roundToPrecision\");\n      return t.toFixed(n).replace(/0+$/, \"\");\n    };\n  O = y.hpf = y.__private__.hpf = \"number\" == typeof p ? function (t) {\n    if (isNaN(t)) throw new Error(\"Invalid argument passed to jsPDF.hpf\");\n    return D(t, p);\n  } : \"smart\" === p ? function (t) {\n    if (isNaN(t)) throw new Error(\"Invalid argument passed to jsPDF.hpf\");\n    return D(t, t > -1 && t < 1 ? 16 : 5);\n  } : function (t) {\n    if (isNaN(t)) throw new Error(\"Invalid argument passed to jsPDF.hpf\");\n    return D(t, 16);\n  };\n  var R = y.f2 = y.__private__.f2 = function (t) {\n      if (isNaN(t)) throw new Error(\"Invalid argument passed to jsPDF.f2\");\n      return D(t, 2);\n    },\n    T = y.__private__.f3 = function (t) {\n      if (isNaN(t)) throw new Error(\"Invalid argument passed to jsPDF.f3\");\n      return D(t, 3);\n    },\n    U = y.scale = y.__private__.scale = function (t) {\n      if (isNaN(t)) throw new Error(\"Invalid argument passed to jsPDF.scale\");\n      return S === x.COMPAT ? t * _t : S === x.ADVANCED ? t : void 0;\n    },\n    z = function (t) {\n      return S === x.COMPAT ? Rr() - t : S === x.ADVANCED ? t : void 0;\n    },\n    H = function (t) {\n      return U(z(t));\n    };\n  y.__private__.setPrecision = y.setPrecision = function (t) {\n    \"number\" == typeof parseInt(t, 10) && (r = parseInt(t, 10));\n  };\n  var W,\n    V = \"00000000000000000000000000000000\",\n    G = y.__private__.getFileId = function () {\n      return V;\n    },\n    Y = y.__private__.setFileId = function (t) {\n      return V = void 0 !== t && /^[a-fA-F0-9]{32}$/.test(t) ? t.toUpperCase() : V.split(\"\").map(function () {\n        return \"ABCDEF0123456789\".charAt(Math.floor(16 * Math.random()));\n      }).join(\"\"), null !== m && (Ye = new I(m.userPermissions, m.userPassword, m.ownerPassword, V)), V;\n    };\n  y.setFileId = function (t) {\n    return Y(t), this;\n  }, y.getFileId = function () {\n    return G();\n  };\n  var J = y.__private__.convertDateToPDFDate = function (t) {\n      var e = t.getTimezoneOffset(),\n        r = e < 0 ? \"+\" : \"-\",\n        n = Math.floor(Math.abs(e / 60)),\n        i = Math.abs(e % 60),\n        a = [r, Q(n), \"'\", Q(i), \"'\"].join(\"\");\n      return [\"D:\", t.getFullYear(), Q(t.getMonth() + 1), Q(t.getDate()), Q(t.getHours()), Q(t.getMinutes()), Q(t.getSeconds()), a].join(\"\");\n    },\n    X = y.__private__.convertPDFDateToDate = function (t) {\n      var e = parseInt(t.substr(2, 4), 10),\n        r = parseInt(t.substr(6, 2), 10) - 1,\n        n = parseInt(t.substr(8, 2), 10),\n        i = parseInt(t.substr(10, 2), 10),\n        a = parseInt(t.substr(12, 2), 10),\n        o = parseInt(t.substr(14, 2), 10);\n      return new Date(e, r, n, i, a, o, 0);\n    },\n    K = y.__private__.setCreationDate = function (t) {\n      var e;\n      if (void 0 === t && (t = new Date()), t instanceof Date) e = J(t);else {\n        if (!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\\+0[0-9]|\\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(t)) throw new Error(\"Invalid argument passed to jsPDF.setCreationDate\");\n        e = t;\n      }\n      return W = e;\n    },\n    Z = y.__private__.getCreationDate = function (t) {\n      var e = W;\n      return \"jsDate\" === t && (e = X(W)), e;\n    };\n  y.setCreationDate = function (t) {\n    return K(t), this;\n  }, y.getCreationDate = function (t) {\n    return Z(t);\n  };\n  var $,\n    Q = y.__private__.padd2 = function (t) {\n      return (\"0\" + parseInt(t)).slice(-2);\n    },\n    tt = y.__private__.padd2Hex = function (t) {\n      return (\"00\" + (t = t.toString())).substr(t.length);\n    },\n    et = 0,\n    rt = [],\n    nt = [],\n    it = 0,\n    at = [],\n    ot = [],\n    st = !1,\n    ct = nt,\n    ut = function () {\n      et = 0, it = 0, nt = [], rt = [], at = [], Qt = Kt(), te = Kt();\n    };\n  y.__private__.setCustomOutputDestination = function (t) {\n    st = !0, ct = t;\n  };\n  var ht = function (t) {\n    st || (ct = t);\n  };\n  y.__private__.resetCustomOutputDestination = function () {\n    st = !1, ct = nt;\n  };\n  var lt = y.__private__.out = function (t) {\n      return t = t.toString(), it += t.length + 1, ct.push(t), ct;\n    },\n    ft = y.__private__.write = function (t) {\n      return lt(1 === arguments.length ? t.toString() : Array.prototype.join.call(arguments, \" \"));\n    },\n    dt = y.__private__.getArrayBuffer = function (t) {\n      for (var e = t.length, r = new ArrayBuffer(e), n = new Uint8Array(r); e--;) n[e] = t.charCodeAt(e);\n      return r;\n    },\n    pt = [[\"Helvetica\", \"helvetica\", \"normal\", \"WinAnsiEncoding\"], [\"Helvetica-Bold\", \"helvetica\", \"bold\", \"WinAnsiEncoding\"], [\"Helvetica-Oblique\", \"helvetica\", \"italic\", \"WinAnsiEncoding\"], [\"Helvetica-BoldOblique\", \"helvetica\", \"bolditalic\", \"WinAnsiEncoding\"], [\"Courier\", \"courier\", \"normal\", \"WinAnsiEncoding\"], [\"Courier-Bold\", \"courier\", \"bold\", \"WinAnsiEncoding\"], [\"Courier-Oblique\", \"courier\", \"italic\", \"WinAnsiEncoding\"], [\"Courier-BoldOblique\", \"courier\", \"bolditalic\", \"WinAnsiEncoding\"], [\"Times-Roman\", \"times\", \"normal\", \"WinAnsiEncoding\"], [\"Times-Bold\", \"times\", \"bold\", \"WinAnsiEncoding\"], [\"Times-Italic\", \"times\", \"italic\", \"WinAnsiEncoding\"], [\"Times-BoldItalic\", \"times\", \"bolditalic\", \"WinAnsiEncoding\"], [\"ZapfDingbats\", \"zapfdingbats\", \"normal\", null], [\"Symbol\", \"symbol\", \"normal\", null]];\n  y.__private__.getStandardFonts = function () {\n    return pt;\n  };\n  var gt = e.fontSize || 16;\n  y.__private__.setFontSize = y.setFontSize = function (t) {\n    return gt = S === x.ADVANCED ? t / _t : t, this;\n  };\n  var mt,\n    vt = y.__private__.getFontSize = y.getFontSize = function () {\n      return S === x.COMPAT ? gt : gt * _t;\n    },\n    bt = e.R2L || !1;\n  y.__private__.setR2L = y.setR2L = function (t) {\n    return bt = t, this;\n  }, y.__private__.getR2L = y.getR2L = function () {\n    return bt;\n  };\n  var yt,\n    wt = y.__private__.setZoomMode = function (t) {\n      var e = [void 0, null, \"fullwidth\", \"fullheight\", \"fullpage\", \"original\"];\n      if (/^(?:\\d+\\.\\d*|\\d*\\.\\d+|\\d+)%$/.test(t)) mt = t;else if (isNaN(t)) {\n        if (-1 === e.indexOf(t)) throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. \"' + t + '\" is not recognized.');\n        mt = t;\n      } else mt = parseInt(t, 10);\n    };\n  y.__private__.getZoomMode = function () {\n    return mt;\n  };\n  var Nt,\n    Lt = y.__private__.setPageMode = function (t) {\n      if (-1 == [void 0, null, \"UseNone\", \"UseOutlines\", \"UseThumbs\", \"FullScreen\"].indexOf(t)) throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. \"' + t + '\" is not recognized.');\n      yt = t;\n    };\n  y.__private__.getPageMode = function () {\n    return yt;\n  };\n  var At = y.__private__.setLayoutMode = function (t) {\n    if (-1 == [void 0, null, \"continuous\", \"single\", \"twoleft\", \"tworight\", \"two\"].indexOf(t)) throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. \"' + t + '\" is not recognized.');\n    Nt = t;\n  };\n  y.__private__.getLayoutMode = function () {\n    return Nt;\n  }, y.__private__.setDisplayMode = y.setDisplayMode = function (t, e, r) {\n    return wt(t), At(e), Lt(r), this;\n  };\n  var xt = {\n    title: \"\",\n    subject: \"\",\n    author: \"\",\n    keywords: \"\",\n    creator: \"\"\n  };\n  y.__private__.getDocumentProperty = function (t) {\n    if (-1 === Object.keys(xt).indexOf(t)) throw new Error(\"Invalid argument passed to jsPDF.getDocumentProperty\");\n    return xt[t];\n  }, y.__private__.getDocumentProperties = function () {\n    return xt;\n  }, y.__private__.setDocumentProperties = y.setProperties = y.setDocumentProperties = function (t) {\n    for (var e in xt) xt.hasOwnProperty(e) && t[e] && (xt[e] = t[e]);\n    return this;\n  }, y.__private__.setDocumentProperty = function (t, e) {\n    if (-1 === Object.keys(xt).indexOf(t)) throw new Error(\"Invalid arguments passed to jsPDF.setDocumentProperty\");\n    return xt[t] = e;\n  };\n  var St,\n    _t,\n    Pt,\n    kt,\n    It,\n    Ft = {},\n    Ct = {},\n    jt = [],\n    Ot = {},\n    Bt = {},\n    Mt = {},\n    Et = {},\n    qt = null,\n    Dt = 0,\n    Rt = [],\n    Tt = new C(y),\n    Ut = e.hotfixes || [],\n    zt = {},\n    Ht = {},\n    Wt = [],\n    Vt = function t(e, r, n, i, a, o) {\n      if (!(this instanceof t)) return new t(e, r, n, i, a, o);\n      isNaN(e) && (e = 1), isNaN(r) && (r = 0), isNaN(n) && (n = 0), isNaN(i) && (i = 1), isNaN(a) && (a = 0), isNaN(o) && (o = 0), this._matrix = [e, r, n, i, a, o];\n    };\n  Object.defineProperty(Vt.prototype, \"sx\", {\n    get: function () {\n      return this._matrix[0];\n    },\n    set: function (t) {\n      this._matrix[0] = t;\n    }\n  }), Object.defineProperty(Vt.prototype, \"shy\", {\n    get: function () {\n      return this._matrix[1];\n    },\n    set: function (t) {\n      this._matrix[1] = t;\n    }\n  }), Object.defineProperty(Vt.prototype, \"shx\", {\n    get: function () {\n      return this._matrix[2];\n    },\n    set: function (t) {\n      this._matrix[2] = t;\n    }\n  }), Object.defineProperty(Vt.prototype, \"sy\", {\n    get: function () {\n      return this._matrix[3];\n    },\n    set: function (t) {\n      this._matrix[3] = t;\n    }\n  }), Object.defineProperty(Vt.prototype, \"tx\", {\n    get: function () {\n      return this._matrix[4];\n    },\n    set: function (t) {\n      this._matrix[4] = t;\n    }\n  }), Object.defineProperty(Vt.prototype, \"ty\", {\n    get: function () {\n      return this._matrix[5];\n    },\n    set: function (t) {\n      this._matrix[5] = t;\n    }\n  }), Object.defineProperty(Vt.prototype, \"a\", {\n    get: function () {\n      return this._matrix[0];\n    },\n    set: function (t) {\n      this._matrix[0] = t;\n    }\n  }), Object.defineProperty(Vt.prototype, \"b\", {\n    get: function () {\n      return this._matrix[1];\n    },\n    set: function (t) {\n      this._matrix[1] = t;\n    }\n  }), Object.defineProperty(Vt.prototype, \"c\", {\n    get: function () {\n      return this._matrix[2];\n    },\n    set: function (t) {\n      this._matrix[2] = t;\n    }\n  }), Object.defineProperty(Vt.prototype, \"d\", {\n    get: function () {\n      return this._matrix[3];\n    },\n    set: function (t) {\n      this._matrix[3] = t;\n    }\n  }), Object.defineProperty(Vt.prototype, \"e\", {\n    get: function () {\n      return this._matrix[4];\n    },\n    set: function (t) {\n      this._matrix[4] = t;\n    }\n  }), Object.defineProperty(Vt.prototype, \"f\", {\n    get: function () {\n      return this._matrix[5];\n    },\n    set: function (t) {\n      this._matrix[5] = t;\n    }\n  }), Object.defineProperty(Vt.prototype, \"rotation\", {\n    get: function () {\n      return Math.atan2(this.shx, this.sx);\n    }\n  }), Object.defineProperty(Vt.prototype, \"scaleX\", {\n    get: function () {\n      return this.decompose().scale.sx;\n    }\n  }), Object.defineProperty(Vt.prototype, \"scaleY\", {\n    get: function () {\n      return this.decompose().scale.sy;\n    }\n  }), Object.defineProperty(Vt.prototype, \"isIdentity\", {\n    get: function () {\n      return 1 === this.sx && 0 === this.shy && 0 === this.shx && 1 === this.sy && 0 === this.tx && 0 === this.ty;\n    }\n  }), Vt.prototype.join = function (t) {\n    return [this.sx, this.shy, this.shx, this.sy, this.tx, this.ty].map(O).join(t);\n  }, Vt.prototype.multiply = function (t) {\n    var e = t.sx * this.sx + t.shy * this.shx,\n      r = t.sx * this.shy + t.shy * this.sy,\n      n = t.shx * this.sx + t.sy * this.shx,\n      i = t.shx * this.shy + t.sy * this.sy,\n      a = t.tx * this.sx + t.ty * this.shx + this.tx,\n      o = t.tx * this.shy + t.ty * this.sy + this.ty;\n    return new Vt(e, r, n, i, a, o);\n  }, Vt.prototype.decompose = function () {\n    var t = this.sx,\n      e = this.shy,\n      r = this.shx,\n      n = this.sy,\n      i = this.tx,\n      a = this.ty,\n      o = Math.sqrt(t * t + e * e),\n      s = (t /= o) * r + (e /= o) * n;\n    r -= t * s, n -= e * s;\n    var c = Math.sqrt(r * r + n * n);\n    return s /= c, t * (n /= c) < e * (r /= c) && (t = -t, e = -e, s = -s, o = -o), {\n      scale: new Vt(o, 0, 0, c, 0, 0),\n      translate: new Vt(1, 0, 0, 1, i, a),\n      rotate: new Vt(t, e, -e, t, 0, 0),\n      skew: new Vt(1, 0, s, 1, 0, 0)\n    };\n  }, Vt.prototype.toString = function (t) {\n    return this.join(\" \");\n  }, Vt.prototype.inversed = function () {\n    var t = this.sx,\n      e = this.shy,\n      r = this.shx,\n      n = this.sy,\n      i = this.tx,\n      a = this.ty,\n      o = 1 / (t * n - e * r),\n      s = n * o,\n      c = -e * o,\n      u = -r * o,\n      h = t * o;\n    return new Vt(s, c, u, h, -s * i - u * a, -c * i - h * a);\n  }, Vt.prototype.applyToPoint = function (t) {\n    var e = t.x * this.sx + t.y * this.shx + this.tx,\n      r = t.x * this.shy + t.y * this.sy + this.ty;\n    return new Cr(e, r);\n  }, Vt.prototype.applyToRectangle = function (t) {\n    var e = this.applyToPoint(t),\n      r = this.applyToPoint(new Cr(t.x + t.w, t.y + t.h));\n    return new jr(e.x, e.y, r.x - e.x, r.y - e.y);\n  }, Vt.prototype.clone = function () {\n    var t = this.sx,\n      e = this.shy,\n      r = this.shx,\n      n = this.sy,\n      i = this.tx,\n      a = this.ty;\n    return new Vt(t, e, r, n, i, a);\n  }, y.Matrix = Vt;\n  var Gt = y.matrixMult = function (t, e) {\n      return e.multiply(t);\n    },\n    Yt = new Vt(1, 0, 0, 1, 0, 0);\n  y.unitMatrix = y.identityMatrix = Yt;\n  var Jt = function (t, e) {\n    if (!Bt[t]) {\n      var r = (e instanceof B ? \"Sh\" : \"P\") + (Object.keys(Ot).length + 1).toString(10);\n      e.id = r, Bt[t] = r, Ot[r] = e, Tt.publish(\"addPattern\", e);\n    }\n  };\n  y.ShadingPattern = B, y.TilingPattern = M, y.addShadingPattern = function (t, e) {\n    return q(\"addShadingPattern()\"), Jt(t, e), this;\n  }, y.beginTilingPattern = function (t) {\n    q(\"beginTilingPattern()\"), Br(t.boundingBox[0], t.boundingBox[1], t.boundingBox[2] - t.boundingBox[0], t.boundingBox[3] - t.boundingBox[1], t.matrix);\n  }, y.endTilingPattern = function (t, e) {\n    q(\"endTilingPattern()\"), e.stream = ot[$].join(\"\\n\"), Jt(t, e), Tt.publish(\"endTilingPattern\", e), Wt.pop().restore();\n  };\n  var Xt = y.__private__.newObject = function () {\n      var t = Kt();\n      return Zt(t, !0), t;\n    },\n    Kt = y.__private__.newObjectDeferred = function () {\n      return et++, rt[et] = function () {\n        return it;\n      }, et;\n    },\n    Zt = function (t, e) {\n      return e = \"boolean\" == typeof e && e, rt[t] = it, e && lt(t + \" 0 obj\"), t;\n    },\n    $t = y.__private__.newAdditionalObject = function () {\n      var t = {\n        objId: Kt(),\n        content: \"\"\n      };\n      return at.push(t), t;\n    },\n    Qt = Kt(),\n    te = Kt(),\n    ee = y.__private__.decodeColorString = function (t) {\n      var e = t.split(\" \");\n      if (2 !== e.length || \"g\" !== e[1] && \"G\" !== e[1]) {\n        if (5 === e.length && (\"k\" === e[4] || \"K\" === e[4])) {\n          e = [(1 - e[0]) * (1 - e[3]), (1 - e[1]) * (1 - e[3]), (1 - e[2]) * (1 - e[3]), \"r\"];\n        }\n      } else {\n        var r = parseFloat(e[0]);\n        e = [r, r, r, \"r\"];\n      }\n      for (var n = \"#\", i = 0; i < 3; i++) n += (\"0\" + Math.floor(255 * parseFloat(e[i])).toString(16)).slice(-2);\n      return n;\n    },\n    re = y.__private__.encodeColorString = function (e) {\n      var r;\n      \"string\" == typeof e && (e = {\n        ch1: e\n      });\n      var n = e.ch1,\n        i = e.ch2,\n        a = e.ch3,\n        o = e.ch4,\n        s = \"draw\" === e.pdfColorType ? [\"G\", \"RG\", \"K\"] : [\"g\", \"rg\", \"k\"];\n      if (\"string\" == typeof n && \"#\" !== n.charAt(0)) {\n        var c = new f(n);\n        if (c.ok) n = c.toHex();else if (!/^\\d*\\.?\\d*$/.test(n)) throw new Error('Invalid color \"' + n + '\" passed to jsPDF.encodeColorString.');\n      }\n      if (\"string\" == typeof n && /^#[0-9A-Fa-f]{3}$/.test(n) && (n = \"#\" + n[1] + n[1] + n[2] + n[2] + n[3] + n[3]), \"string\" == typeof n && /^#[0-9A-Fa-f]{6}$/.test(n)) {\n        var u = parseInt(n.substr(1), 16);\n        n = u >> 16 & 255, i = u >> 8 & 255, a = 255 & u;\n      }\n      if (void 0 === i || void 0 === o && n === i && i === a) {\n        if (\"string\" == typeof n) r = n + \" \" + s[0];else switch (e.precision) {\n          case 2:\n            r = R(n / 255) + \" \" + s[0];\n            break;\n          case 3:\n          default:\n            r = T(n / 255) + \" \" + s[0];\n        }\n      } else if (void 0 === o || \"object\" === t(o)) {\n        if (o && !isNaN(o.a) && 0 === o.a) return r = [\"1.\", \"1.\", \"1.\", s[1]].join(\" \");\n        if (\"string\" == typeof n) r = [n, i, a, s[1]].join(\" \");else switch (e.precision) {\n          case 2:\n            r = [R(n / 255), R(i / 255), R(a / 255), s[1]].join(\" \");\n            break;\n          default:\n          case 3:\n            r = [T(n / 255), T(i / 255), T(a / 255), s[1]].join(\" \");\n        }\n      } else if (\"string\" == typeof n) r = [n, i, a, o, s[2]].join(\" \");else switch (e.precision) {\n        case 2:\n          r = [R(n), R(i), R(a), R(o), s[2]].join(\" \");\n          break;\n        case 3:\n        default:\n          r = [T(n), T(i), T(a), T(o), s[2]].join(\" \");\n      }\n      return r;\n    },\n    ne = y.__private__.getFilters = function () {\n      return u;\n    },\n    ie = y.__private__.putStream = function (t) {\n      var e = (t = t || {}).data || \"\",\n        r = t.filters || ne(),\n        n = t.alreadyAppliedFilters || [],\n        i = t.addLength1 || !1,\n        a = e.length,\n        o = t.objectId,\n        s = function (t) {\n          return t;\n        };\n      if (null !== m && void 0 === o) throw new Error(\"ObjectId must be passed to putStream for file encryption\");\n      null !== m && (s = Ye.encryptor(o, 0));\n      var c = {};\n      !0 === r && (r = [\"FlateEncode\"]);\n      var u = t.additionalKeyValues || [],\n        h = (c = void 0 !== E.API.processDataByFilters ? E.API.processDataByFilters(e, r) : {\n          data: e,\n          reverseChain: []\n        }).reverseChain + (Array.isArray(n) ? n.join(\" \") : n.toString());\n      if (0 !== c.data.length && (u.push({\n        key: \"Length\",\n        value: c.data.length\n      }), !0 === i && u.push({\n        key: \"Length1\",\n        value: a\n      })), 0 != h.length) if (h.split(\"/\").length - 1 == 1) u.push({\n        key: \"Filter\",\n        value: h\n      });else {\n        u.push({\n          key: \"Filter\",\n          value: \"[\" + h + \"]\"\n        });\n        for (var l = 0; l < u.length; l += 1) if (\"DecodeParms\" === u[l].key) {\n          for (var f = [], d = 0; d < c.reverseChain.split(\"/\").length - 1; d += 1) f.push(\"null\");\n          f.push(u[l].value), u[l].value = \"[\" + f.join(\" \") + \"]\";\n        }\n      }\n      lt(\"<<\");\n      for (var p = 0; p < u.length; p++) lt(\"/\" + u[p].key + \" \" + u[p].value);\n      lt(\">>\"), 0 !== c.data.length && (lt(\"stream\"), lt(s(c.data)), lt(\"endstream\"));\n    },\n    ae = y.__private__.putPage = function (t) {\n      var e = t.number,\n        r = t.data,\n        n = t.objId,\n        i = t.contentsObjId;\n      Zt(n, !0), lt(\"<</Type /Page\"), lt(\"/Parent \" + t.rootDictionaryObjId + \" 0 R\"), lt(\"/Resources \" + t.resourceDictionaryObjId + \" 0 R\"), lt(\"/MediaBox [\" + parseFloat(O(t.mediaBox.bottomLeftX)) + \" \" + parseFloat(O(t.mediaBox.bottomLeftY)) + \" \" + O(t.mediaBox.topRightX) + \" \" + O(t.mediaBox.topRightY) + \"]\"), null !== t.cropBox && lt(\"/CropBox [\" + O(t.cropBox.bottomLeftX) + \" \" + O(t.cropBox.bottomLeftY) + \" \" + O(t.cropBox.topRightX) + \" \" + O(t.cropBox.topRightY) + \"]\"), null !== t.bleedBox && lt(\"/BleedBox [\" + O(t.bleedBox.bottomLeftX) + \" \" + O(t.bleedBox.bottomLeftY) + \" \" + O(t.bleedBox.topRightX) + \" \" + O(t.bleedBox.topRightY) + \"]\"), null !== t.trimBox && lt(\"/TrimBox [\" + O(t.trimBox.bottomLeftX) + \" \" + O(t.trimBox.bottomLeftY) + \" \" + O(t.trimBox.topRightX) + \" \" + O(t.trimBox.topRightY) + \"]\"), null !== t.artBox && lt(\"/ArtBox [\" + O(t.artBox.bottomLeftX) + \" \" + O(t.artBox.bottomLeftY) + \" \" + O(t.artBox.topRightX) + \" \" + O(t.artBox.topRightY) + \"]\"), \"number\" == typeof t.userUnit && 1 !== t.userUnit && lt(\"/UserUnit \" + t.userUnit), Tt.publish(\"putPage\", {\n        objId: n,\n        pageContext: Rt[e],\n        pageNumber: e,\n        page: r\n      }), lt(\"/Contents \" + i + \" 0 R\"), lt(\">>\"), lt(\"endobj\");\n      var a = r.join(\"\\n\");\n      return S === x.ADVANCED && (a += \"\\nQ\"), Zt(i, !0), ie({\n        data: a,\n        filters: ne(),\n        objectId: i\n      }), lt(\"endobj\"), n;\n    },\n    oe = y.__private__.putPages = function () {\n      var t,\n        e,\n        r = [];\n      for (t = 1; t <= Dt; t++) Rt[t].objId = Kt(), Rt[t].contentsObjId = Kt();\n      for (t = 1; t <= Dt; t++) r.push(ae({\n        number: t,\n        data: ot[t],\n        objId: Rt[t].objId,\n        contentsObjId: Rt[t].contentsObjId,\n        mediaBox: Rt[t].mediaBox,\n        cropBox: Rt[t].cropBox,\n        bleedBox: Rt[t].bleedBox,\n        trimBox: Rt[t].trimBox,\n        artBox: Rt[t].artBox,\n        userUnit: Rt[t].userUnit,\n        rootDictionaryObjId: Qt,\n        resourceDictionaryObjId: te\n      }));\n      Zt(Qt, !0), lt(\"<</Type /Pages\");\n      var n = \"/Kids [\";\n      for (e = 0; e < Dt; e++) n += r[e] + \" 0 R \";\n      lt(n + \"]\"), lt(\"/Count \" + Dt), lt(\">>\"), lt(\"endobj\"), Tt.publish(\"postPutPages\");\n    },\n    se = function (t) {\n      Tt.publish(\"putFont\", {\n        font: t,\n        out: lt,\n        newObject: Xt,\n        putStream: ie\n      }), !0 !== t.isAlreadyPutted && (t.objectNumber = Xt(), lt(\"<<\"), lt(\"/Type /Font\"), lt(\"/BaseFont /\" + F(t.postScriptName)), lt(\"/Subtype /Type1\"), \"string\" == typeof t.encoding && lt(\"/Encoding /\" + t.encoding), lt(\"/FirstChar 32\"), lt(\"/LastChar 255\"), lt(\">>\"), lt(\"endobj\"));\n    },\n    ce = function () {\n      for (var t in Ft) Ft.hasOwnProperty(t) && (!1 === v || !0 === v && b.hasOwnProperty(t)) && se(Ft[t]);\n    },\n    ue = function (t) {\n      t.objectNumber = Xt();\n      var e = [];\n      e.push({\n        key: \"Type\",\n        value: \"/XObject\"\n      }), e.push({\n        key: \"Subtype\",\n        value: \"/Form\"\n      }), e.push({\n        key: \"BBox\",\n        value: \"[\" + [O(t.x), O(t.y), O(t.x + t.width), O(t.y + t.height)].join(\" \") + \"]\"\n      }), e.push({\n        key: \"Matrix\",\n        value: \"[\" + t.matrix.toString() + \"]\"\n      });\n      var r = t.pages[1].join(\"\\n\");\n      ie({\n        data: r,\n        additionalKeyValues: e,\n        objectId: t.objectNumber\n      }), lt(\"endobj\");\n    },\n    he = function () {\n      for (var t in zt) zt.hasOwnProperty(t) && ue(zt[t]);\n    },\n    le = function (t, e) {\n      var r,\n        n = [],\n        i = 1 / (e - 1);\n      for (r = 0; r < 1; r += i) n.push(r);\n      if (n.push(1), 0 != t[0].offset) {\n        var a = {\n          offset: 0,\n          color: t[0].color\n        };\n        t.unshift(a);\n      }\n      if (1 != t[t.length - 1].offset) {\n        var o = {\n          offset: 1,\n          color: t[t.length - 1].color\n        };\n        t.push(o);\n      }\n      for (var s = \"\", c = 0, u = 0; u < n.length; u++) {\n        for (r = n[u]; r > t[c + 1].offset;) c++;\n        var h = t[c].offset,\n          l = (r - h) / (t[c + 1].offset - h),\n          f = t[c].color,\n          d = t[c + 1].color;\n        s += tt(Math.round((1 - l) * f[0] + l * d[0]).toString(16)) + tt(Math.round((1 - l) * f[1] + l * d[1]).toString(16)) + tt(Math.round((1 - l) * f[2] + l * d[2]).toString(16));\n      }\n      return s.trim();\n    },\n    fe = function (t, e) {\n      e || (e = 21);\n      var r = Xt(),\n        n = le(t.colors, e),\n        i = [];\n      i.push({\n        key: \"FunctionType\",\n        value: \"0\"\n      }), i.push({\n        key: \"Domain\",\n        value: \"[0.0 1.0]\"\n      }), i.push({\n        key: \"Size\",\n        value: \"[\" + e + \"]\"\n      }), i.push({\n        key: \"BitsPerSample\",\n        value: \"8\"\n      }), i.push({\n        key: \"Range\",\n        value: \"[0.0 1.0 0.0 1.0 0.0 1.0]\"\n      }), i.push({\n        key: \"Decode\",\n        value: \"[0.0 1.0 0.0 1.0 0.0 1.0]\"\n      }), ie({\n        data: n,\n        additionalKeyValues: i,\n        alreadyAppliedFilters: [\"/ASCIIHexDecode\"],\n        objectId: r\n      }), lt(\"endobj\"), t.objectNumber = Xt(), lt(\"<< /ShadingType \" + t.type), lt(\"/ColorSpace /DeviceRGB\");\n      var a = \"/Coords [\" + O(parseFloat(t.coords[0])) + \" \" + O(parseFloat(t.coords[1])) + \" \";\n      2 === t.type ? a += O(parseFloat(t.coords[2])) + \" \" + O(parseFloat(t.coords[3])) : a += O(parseFloat(t.coords[2])) + \" \" + O(parseFloat(t.coords[3])) + \" \" + O(parseFloat(t.coords[4])) + \" \" + O(parseFloat(t.coords[5])), lt(a += \"]\"), t.matrix && lt(\"/Matrix [\" + t.matrix.toString() + \"]\"), lt(\"/Function \" + r + \" 0 R\"), lt(\"/Extend [true true]\"), lt(\">>\"), lt(\"endobj\");\n    },\n    de = function (t, e) {\n      var r = Kt(),\n        n = Xt();\n      e.push({\n        resourcesOid: r,\n        objectOid: n\n      }), t.objectNumber = n;\n      var i = [];\n      i.push({\n        key: \"Type\",\n        value: \"/Pattern\"\n      }), i.push({\n        key: \"PatternType\",\n        value: \"1\"\n      }), i.push({\n        key: \"PaintType\",\n        value: \"1\"\n      }), i.push({\n        key: \"TilingType\",\n        value: \"1\"\n      }), i.push({\n        key: \"BBox\",\n        value: \"[\" + t.boundingBox.map(O).join(\" \") + \"]\"\n      }), i.push({\n        key: \"XStep\",\n        value: O(t.xStep)\n      }), i.push({\n        key: \"YStep\",\n        value: O(t.yStep)\n      }), i.push({\n        key: \"Resources\",\n        value: r + \" 0 R\"\n      }), t.matrix && i.push({\n        key: \"Matrix\",\n        value: \"[\" + t.matrix.toString() + \"]\"\n      }), ie({\n        data: t.stream,\n        additionalKeyValues: i,\n        objectId: t.objectNumber\n      }), lt(\"endobj\");\n    },\n    pe = function (t) {\n      var e;\n      for (e in Ot) Ot.hasOwnProperty(e) && (Ot[e] instanceof B ? fe(Ot[e]) : Ot[e] instanceof M && de(Ot[e], t));\n    },\n    ge = function (t) {\n      for (var e in t.objectNumber = Xt(), lt(\"<<\"), t) switch (e) {\n        case \"opacity\":\n          lt(\"/ca \" + R(t[e]));\n          break;\n        case \"stroke-opacity\":\n          lt(\"/CA \" + R(t[e]));\n      }\n      lt(\">>\"), lt(\"endobj\");\n    },\n    me = function () {\n      var t;\n      for (t in Mt) Mt.hasOwnProperty(t) && ge(Mt[t]);\n    },\n    ve = function () {\n      for (var t in lt(\"/XObject <<\"), zt) zt.hasOwnProperty(t) && zt[t].objectNumber >= 0 && lt(\"/\" + t + \" \" + zt[t].objectNumber + \" 0 R\");\n      Tt.publish(\"putXobjectDict\"), lt(\">>\");\n    },\n    be = function () {\n      Ye.oid = Xt(), lt(\"<<\"), lt(\"/Filter /Standard\"), lt(\"/V \" + Ye.v), lt(\"/R \" + Ye.r), lt(\"/U <\" + Ye.toHexString(Ye.U) + \">\"), lt(\"/O <\" + Ye.toHexString(Ye.O) + \">\"), lt(\"/P \" + Ye.P), lt(\">>\"), lt(\"endobj\");\n    },\n    ye = function () {\n      for (var t in lt(\"/Font <<\"), Ft) Ft.hasOwnProperty(t) && (!1 === v || !0 === v && b.hasOwnProperty(t)) && lt(\"/\" + t + \" \" + Ft[t].objectNumber + \" 0 R\");\n      lt(\">>\");\n    },\n    we = function () {\n      if (Object.keys(Ot).length > 0) {\n        for (var t in lt(\"/Shading <<\"), Ot) Ot.hasOwnProperty(t) && Ot[t] instanceof B && Ot[t].objectNumber >= 0 && lt(\"/\" + t + \" \" + Ot[t].objectNumber + \" 0 R\");\n        Tt.publish(\"putShadingPatternDict\"), lt(\">>\");\n      }\n    },\n    Ne = function (t) {\n      if (Object.keys(Ot).length > 0) {\n        for (var e in lt(\"/Pattern <<\"), Ot) Ot.hasOwnProperty(e) && Ot[e] instanceof y.TilingPattern && Ot[e].objectNumber >= 0 && Ot[e].objectNumber < t && lt(\"/\" + e + \" \" + Ot[e].objectNumber + \" 0 R\");\n        Tt.publish(\"putTilingPatternDict\"), lt(\">>\");\n      }\n    },\n    Le = function () {\n      if (Object.keys(Mt).length > 0) {\n        var t;\n        for (t in lt(\"/ExtGState <<\"), Mt) Mt.hasOwnProperty(t) && Mt[t].objectNumber >= 0 && lt(\"/\" + t + \" \" + Mt[t].objectNumber + \" 0 R\");\n        Tt.publish(\"putGStateDict\"), lt(\">>\");\n      }\n    },\n    Ae = function (t) {\n      Zt(t.resourcesOid, !0), lt(\"<<\"), lt(\"/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]\"), ye(), we(), Ne(t.objectOid), Le(), ve(), lt(\">>\"), lt(\"endobj\");\n    },\n    xe = function () {\n      var t = [];\n      ce(), me(), he(), pe(t), Tt.publish(\"putResources\"), t.forEach(Ae), Ae({\n        resourcesOid: te,\n        objectOid: Number.MAX_SAFE_INTEGER\n      }), Tt.publish(\"postPutResources\");\n    },\n    Se = function () {\n      Tt.publish(\"putAdditionalObjects\");\n      for (var t = 0; t < at.length; t++) {\n        var e = at[t];\n        Zt(e.objId, !0), lt(e.content), lt(\"endobj\");\n      }\n      Tt.publish(\"postPutAdditionalObjects\");\n    },\n    _e = function (t) {\n      Ct[t.fontName] = Ct[t.fontName] || {}, Ct[t.fontName][t.fontStyle] = t.id;\n    },\n    Pe = function (t, e, r, n, i) {\n      var a = {\n        id: \"F\" + (Object.keys(Ft).length + 1).toString(10),\n        postScriptName: t,\n        fontName: e,\n        fontStyle: r,\n        encoding: n,\n        isStandardFont: i || !1,\n        metadata: {}\n      };\n      return Tt.publish(\"addFont\", {\n        font: a,\n        instance: this\n      }), Ft[a.id] = a, _e(a), a.id;\n    },\n    ke = function (t) {\n      for (var e = 0, r = pt.length; e < r; e++) {\n        var n = Pe.call(this, t[e][0], t[e][1], t[e][2], pt[e][3], !0);\n        !1 === v && (b[n] = !0);\n        var i = t[e][0].split(\"-\");\n        _e({\n          id: n,\n          fontName: i[0],\n          fontStyle: i[1] || \"\"\n        });\n      }\n      Tt.publish(\"addFonts\", {\n        fonts: Ft,\n        dictionary: Ct\n      });\n    },\n    Ie = function (t) {\n      return t.foo = function () {\n        try {\n          return t.apply(this, arguments);\n        } catch (t) {\n          var e = t.stack || \"\";\n          ~e.indexOf(\" at \") && (e = e.split(\" at \")[1]);\n          var r = \"Error in function \" + e.split(\"\\n\")[0].split(\"<\")[0] + \": \" + t.message;\n          if (!n.console) throw new Error(r);\n          n.console.error(r, t), n.alert && alert(r);\n        }\n      }, t.foo.bar = t, t.foo;\n    },\n    Fe = function (t, e) {\n      var r, n, i, a, o, s, c, u, h;\n      if (i = (e = e || {}).sourceEncoding || \"Unicode\", o = e.outputEncoding, (e.autoencode || o) && Ft[St].metadata && Ft[St].metadata[i] && Ft[St].metadata[i].encoding && (a = Ft[St].metadata[i].encoding, !o && Ft[St].encoding && (o = Ft[St].encoding), !o && a.codePages && (o = a.codePages[0]), \"string\" == typeof o && (o = a[o]), o)) {\n        for (c = !1, s = [], r = 0, n = t.length; r < n; r++) (u = o[t.charCodeAt(r)]) ? s.push(String.fromCharCode(u)) : s.push(t[r]), s[r].charCodeAt(0) >> 8 && (c = !0);\n        t = s.join(\"\");\n      }\n      for (r = t.length; void 0 === c && 0 !== r;) t.charCodeAt(r - 1) >> 8 && (c = !0), r--;\n      if (!c) return t;\n      for (s = e.noBOM ? [] : [254, 255], r = 0, n = t.length; r < n; r++) {\n        if ((h = (u = t.charCodeAt(r)) >> 8) >> 8) throw new Error(\"Character at position \" + r + \" of string '\" + t + \"' exceeds 16bits. Cannot be encoded into UCS-2 BE\");\n        s.push(h), s.push(u - (h << 8));\n      }\n      return String.fromCharCode.apply(void 0, s);\n    },\n    Ce = y.__private__.pdfEscape = y.pdfEscape = function (t, e) {\n      return Fe(t, e).replace(/\\\\/g, \"\\\\\\\\\").replace(/\\(/g, \"\\\\(\").replace(/\\)/g, \"\\\\)\");\n    },\n    je = y.__private__.beginPage = function (t) {\n      ot[++Dt] = [], Rt[Dt] = {\n        objId: 0,\n        contentsObjId: 0,\n        userUnit: Number(d),\n        artBox: null,\n        bleedBox: null,\n        cropBox: null,\n        trimBox: null,\n        mediaBox: {\n          bottomLeftX: 0,\n          bottomLeftY: 0,\n          topRightX: Number(t[0]),\n          topRightY: Number(t[1])\n        }\n      }, Me(Dt), ht(ot[$]);\n    },\n    Oe = function (t, e) {\n      var r, n, o;\n      switch (i = e || i, \"string\" == typeof t && (r = A(t.toLowerCase()), Array.isArray(r) && (n = r[0], o = r[1])), Array.isArray(t) && (n = t[0] * _t, o = t[1] * _t), isNaN(n) && (n = s[0], o = s[1]), (n > 14400 || o > 14400) && (a.warn(\"A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400\"), n = Math.min(14400, n), o = Math.min(14400, o)), s = [n, o], i.substr(0, 1)) {\n        case \"l\":\n          o > n && (s = [o, n]);\n          break;\n        case \"p\":\n          n > o && (s = [o, n]);\n      }\n      je(s), pr(fr), lt(Lr), 0 !== kr && lt(kr + \" J\"), 0 !== Ir && lt(Ir + \" j\"), Tt.publish(\"addPage\", {\n        pageNumber: Dt\n      });\n    },\n    Be = function (t) {\n      t > 0 && t <= Dt && (ot.splice(t, 1), Rt.splice(t, 1), Dt--, $ > Dt && ($ = Dt), this.setPage($));\n    },\n    Me = function (t) {\n      t > 0 && t <= Dt && ($ = t);\n    },\n    Ee = y.__private__.getNumberOfPages = y.getNumberOfPages = function () {\n      return ot.length - 1;\n    },\n    qe = function (t, e, r) {\n      var n,\n        i = void 0;\n      return r = r || {}, t = void 0 !== t ? t : Ft[St].fontName, e = void 0 !== e ? e : Ft[St].fontStyle, n = t.toLowerCase(), void 0 !== Ct[n] && void 0 !== Ct[n][e] ? i = Ct[n][e] : void 0 !== Ct[t] && void 0 !== Ct[t][e] ? i = Ct[t][e] : !1 === r.disableWarning && a.warn(\"Unable to look up font label for font '\" + t + \"', '\" + e + \"'. Refer to getFontList() for available fonts.\"), i || r.noFallback || null == (i = Ct.times[e]) && (i = Ct.times.normal), i;\n    },\n    De = y.__private__.putInfo = function () {\n      var t = Xt(),\n        e = function (t) {\n          return t;\n        };\n      for (var r in null !== m && (e = Ye.encryptor(t, 0)), lt(\"<<\"), lt(\"/Producer (\" + Ce(e(\"jsPDF \" + E.version)) + \")\"), xt) xt.hasOwnProperty(r) && xt[r] && lt(\"/\" + r.substr(0, 1).toUpperCase() + r.substr(1) + \" (\" + Ce(e(xt[r])) + \")\");\n      lt(\"/CreationDate (\" + Ce(e(W)) + \")\"), lt(\">>\"), lt(\"endobj\");\n    },\n    Re = y.__private__.putCatalog = function (t) {\n      var e = (t = t || {}).rootDictionaryObjId || Qt;\n      switch (Xt(), lt(\"<<\"), lt(\"/Type /Catalog\"), lt(\"/Pages \" + e + \" 0 R\"), mt || (mt = \"fullwidth\"), mt) {\n        case \"fullwidth\":\n          lt(\"/OpenAction [3 0 R /FitH null]\");\n          break;\n        case \"fullheight\":\n          lt(\"/OpenAction [3 0 R /FitV null]\");\n          break;\n        case \"fullpage\":\n          lt(\"/OpenAction [3 0 R /Fit]\");\n          break;\n        case \"original\":\n          lt(\"/OpenAction [3 0 R /XYZ null null 1]\");\n          break;\n        default:\n          var r = \"\" + mt;\n          \"%\" === r.substr(r.length - 1) && (mt = parseInt(mt) / 100), \"number\" == typeof mt && lt(\"/OpenAction [3 0 R /XYZ null null \" + R(mt) + \"]\");\n      }\n      switch (Nt || (Nt = \"continuous\"), Nt) {\n        case \"continuous\":\n          lt(\"/PageLayout /OneColumn\");\n          break;\n        case \"single\":\n          lt(\"/PageLayout /SinglePage\");\n          break;\n        case \"two\":\n        case \"twoleft\":\n          lt(\"/PageLayout /TwoColumnLeft\");\n          break;\n        case \"tworight\":\n          lt(\"/PageLayout /TwoColumnRight\");\n      }\n      yt && lt(\"/PageMode /\" + yt), Tt.publish(\"putCatalog\"), lt(\">>\"), lt(\"endobj\");\n    },\n    Te = y.__private__.putTrailer = function () {\n      lt(\"trailer\"), lt(\"<<\"), lt(\"/Size \" + (et + 1)), lt(\"/Root \" + et + \" 0 R\"), lt(\"/Info \" + (et - 1) + \" 0 R\"), null !== m && lt(\"/Encrypt \" + Ye.oid + \" 0 R\"), lt(\"/ID [ <\" + V + \"> <\" + V + \"> ]\"), lt(\">>\");\n    },\n    Ue = y.__private__.putHeader = function () {\n      lt(\"%PDF-\" + w), lt(\"%ºß¬à\");\n    },\n    ze = y.__private__.putXRef = function () {\n      var t = \"0000000000\";\n      lt(\"xref\"), lt(\"0 \" + (et + 1)), lt(\"0000000000 65535 f \");\n      for (var e = 1; e <= et; e++) {\n        \"function\" == typeof rt[e] ? lt((t + rt[e]()).slice(-10) + \" 00000 n \") : void 0 !== rt[e] ? lt((t + rt[e]).slice(-10) + \" 00000 n \") : lt(\"0000000000 00000 n \");\n      }\n    },\n    He = y.__private__.buildDocument = function () {\n      ut(), ht(nt), Tt.publish(\"buildDocument\"), Ue(), oe(), Se(), xe(), null !== m && be(), De(), Re();\n      var t = it;\n      return ze(), Te(), lt(\"startxref\"), lt(\"\" + t), lt(\"%%EOF\"), ht(ot[$]), nt.join(\"\\n\");\n    },\n    We = y.__private__.getBlob = function (t) {\n      return new Blob([dt(t)], {\n        type: \"application/pdf\"\n      });\n    },\n    Ve = y.output = y.__private__.output = Ie(function (t, e) {\n      switch (\"string\" == typeof (e = e || {}) ? e = {\n        filename: e\n      } : e.filename = e.filename || \"generated.pdf\", t) {\n        case void 0:\n          return He();\n        case \"save\":\n          y.save(e.filename);\n          break;\n        case \"arraybuffer\":\n          return dt(He());\n        case \"blob\":\n          return We(He());\n        case \"bloburi\":\n        case \"bloburl\":\n          if (void 0 !== n.URL && \"function\" == typeof n.URL.createObjectURL) return n.URL && n.URL.createObjectURL(We(He())) || void 0;\n          a.warn(\"bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.\");\n          break;\n        case \"datauristring\":\n        case \"dataurlstring\":\n          var r = \"\",\n            i = He();\n          try {\n            r = h(i);\n          } catch (t) {\n            r = h(unescape(encodeURIComponent(i)));\n          }\n          return \"data:application/pdf;filename=\" + e.filename + \";base64,\" + r;\n        case \"pdfobjectnewwindow\":\n          if (\"[object Window]\" === Object.prototype.toString.call(n)) {\n            var o = \"https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js\",\n              s = ' integrity=\"sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==\" crossorigin=\"anonymous\"';\n            e.pdfObjectUrl && (o = e.pdfObjectUrl, s = \"\");\n            var c = '<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src=\"' + o + '\"' + s + '><\\/script><script >PDFObject.embed(\"' + this.output(\"dataurlstring\") + '\", ' + JSON.stringify(e) + \");<\\/script></body></html>\",\n              u = n.open();\n            return null !== u && u.document.write(c), u;\n          }\n          throw new Error(\"The option pdfobjectnewwindow just works in a browser-environment.\");\n        case \"pdfjsnewwindow\":\n          if (\"[object Window]\" === Object.prototype.toString.call(n)) {\n            var l = '<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id=\"pdfViewer\" src=\"' + (e.pdfJsUrl || \"examples/PDF.js/web/viewer.html\") + \"?file=&downloadName=\" + e.filename + '\" width=\"500px\" height=\"400px\" /></body></html>',\n              f = n.open();\n            if (null !== f) {\n              f.document.write(l);\n              var d = this;\n              f.document.documentElement.querySelector(\"#pdfViewer\").onload = function () {\n                f.document.title = e.filename, f.document.documentElement.querySelector(\"#pdfViewer\").contentWindow.PDFViewerApplication.open(d.output(\"bloburl\"));\n              };\n            }\n            return f;\n          }\n          throw new Error(\"The option pdfjsnewwindow just works in a browser-environment.\");\n        case \"dataurlnewwindow\":\n          if (\"[object Window]\" !== Object.prototype.toString.call(n)) throw new Error(\"The option dataurlnewwindow just works in a browser-environment.\");\n          var p = '<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src=\"' + this.output(\"datauristring\", e) + '\"></iframe></body></html>',\n            g = n.open();\n          if (null !== g && (g.document.write(p), g.document.title = e.filename), g || \"undefined\" == typeof safari) return g;\n          break;\n        case \"datauri\":\n        case \"dataurl\":\n          return n.document.location.href = this.output(\"datauristring\", e);\n        default:\n          return null;\n      }\n    }),\n    Ge = function (t) {\n      return !0 === Array.isArray(Ut) && Ut.indexOf(t) > -1;\n    };\n  switch (o) {\n    case \"pt\":\n      _t = 1;\n      break;\n    case \"mm\":\n      _t = 72 / 25.4;\n      break;\n    case \"cm\":\n      _t = 72 / 2.54;\n      break;\n    case \"in\":\n      _t = 72;\n      break;\n    case \"px\":\n      _t = 1 == Ge(\"px_scaling\") ? .75 : 96 / 72;\n      break;\n    case \"pc\":\n    case \"em\":\n      _t = 12;\n      break;\n    case \"ex\":\n      _t = 6;\n      break;\n    default:\n      if (\"number\" != typeof o) throw new Error(\"Invalid unit: \" + o);\n      _t = o;\n  }\n  var Ye = null;\n  K(), Y();\n  var Je = function (t) {\n      return null !== m ? Ye.encryptor(t, 0) : function (t) {\n        return t;\n      };\n    },\n    Xe = y.__private__.getPageInfo = y.getPageInfo = function (t) {\n      if (isNaN(t) || t % 1 != 0) throw new Error(\"Invalid argument passed to jsPDF.getPageInfo\");\n      return {\n        objId: Rt[t].objId,\n        pageNumber: t,\n        pageContext: Rt[t]\n      };\n    },\n    Ke = y.__private__.getPageInfoByObjId = function (t) {\n      if (isNaN(t) || t % 1 != 0) throw new Error(\"Invalid argument passed to jsPDF.getPageInfoByObjId\");\n      for (var e in Rt) if (Rt[e].objId === t) break;\n      return Xe(e);\n    },\n    Ze = y.__private__.getCurrentPageInfo = y.getCurrentPageInfo = function () {\n      return {\n        objId: Rt[$].objId,\n        pageNumber: $,\n        pageContext: Rt[$]\n      };\n    };\n  y.addPage = function () {\n    return Oe.apply(this, arguments), this;\n  }, y.setPage = function () {\n    return Me.apply(this, arguments), ht.call(this, ot[$]), this;\n  }, y.insertPage = function (t) {\n    return this.addPage(), this.movePage($, t), this;\n  }, y.movePage = function (t, e) {\n    var r, n;\n    if (t > e) {\n      r = ot[t], n = Rt[t];\n      for (var i = t; i > e; i--) ot[i] = ot[i - 1], Rt[i] = Rt[i - 1];\n      ot[e] = r, Rt[e] = n, this.setPage(e);\n    } else if (t < e) {\n      r = ot[t], n = Rt[t];\n      for (var a = t; a < e; a++) ot[a] = ot[a + 1], Rt[a] = Rt[a + 1];\n      ot[e] = r, Rt[e] = n, this.setPage(e);\n    }\n    return this;\n  }, y.deletePage = function () {\n    return Be.apply(this, arguments), this;\n  }, y.__private__.text = y.text = function (e, r, n, i, a) {\n    var o,\n      s,\n      c,\n      u,\n      h,\n      l,\n      f,\n      d,\n      p,\n      g = (i = i || {}).scope || this;\n    if (\"number\" == typeof e && \"number\" == typeof r && (\"string\" == typeof n || Array.isArray(n))) {\n      var m = n;\n      n = r, r = e, e = m;\n    }\n    if (arguments[3] instanceof Vt == !1 ? (c = arguments[4], u = arguments[5], \"object\" === t(f = arguments[3]) && null !== f || (\"string\" == typeof c && (u = c, c = null), \"string\" == typeof f && (u = f, f = null), \"number\" == typeof f && (c = f, f = null), i = {\n      flags: f,\n      angle: c,\n      align: u\n    })) : (q(\"The transform parameter of text() with a Matrix value\"), p = a), isNaN(r) || isNaN(n) || null == e) throw new Error(\"Invalid arguments passed to jsPDF.text\");\n    if (0 === e.length) return g;\n    var v = \"\",\n      y = !1,\n      w = \"number\" == typeof i.lineHeightFactor ? i.lineHeightFactor : lr,\n      N = g.internal.scaleFactor;\n    function L(t) {\n      return t = t.split(\"\\t\").join(Array(i.TabLen || 9).join(\" \")), Ce(t, f);\n    }\n    function A(t) {\n      for (var e, r = t.concat(), n = [], i = r.length; i--;) \"string\" == typeof (e = r.shift()) ? n.push(e) : Array.isArray(t) && (1 === e.length || void 0 === e[1] && void 0 === e[2]) ? n.push(e[0]) : n.push([e[0], e[1], e[2]]);\n      return n;\n    }\n    function _(t, e) {\n      var r;\n      if (\"string\" == typeof t) r = e(t)[0];else if (Array.isArray(t)) {\n        for (var n, i, a = t.concat(), o = [], s = a.length; s--;) \"string\" == typeof (n = a.shift()) ? o.push(e(n)[0]) : Array.isArray(n) && \"string\" == typeof n[0] && (i = e(n[0], n[1], n[2]), o.push([i[0], i[1], i[2]]));\n        r = o;\n      }\n      return r;\n    }\n    var P = !1,\n      k = !0;\n    if (\"string\" == typeof e) P = !0;else if (Array.isArray(e)) {\n      var I = e.concat();\n      s = [];\n      for (var F, C = I.length; C--;) (\"string\" != typeof (F = I.shift()) || Array.isArray(F) && \"string\" != typeof F[0]) && (k = !1);\n      P = k;\n    }\n    if (!1 === P) throw new Error('Type of text must be string or Array. \"' + e + '\" is not recognized.');\n    \"string\" == typeof e && (e = e.match(/[\\r?\\n]/) ? e.split(/\\r\\n|\\r|\\n/g) : [e]);\n    var j = gt / g.internal.scaleFactor,\n      B = j * (w - 1);\n    switch (i.baseline) {\n      case \"bottom\":\n        n -= B;\n        break;\n      case \"top\":\n        n += j - B;\n        break;\n      case \"hanging\":\n        n += j - 2 * B;\n        break;\n      case \"middle\":\n        n += j / 2 - B;\n    }\n    if ((l = i.maxWidth || 0) > 0 && (\"string\" == typeof e ? e = g.splitTextToSize(e, l) : \"[object Array]\" === Object.prototype.toString.call(e) && (e = e.reduce(function (t, e) {\n      return t.concat(g.splitTextToSize(e, l));\n    }, []))), o = {\n      text: e,\n      x: r,\n      y: n,\n      options: i,\n      mutex: {\n        pdfEscape: Ce,\n        activeFontKey: St,\n        fonts: Ft,\n        activeFontSize: gt\n      }\n    }, Tt.publish(\"preProcessText\", o), e = o.text, c = (i = o.options).angle, p instanceof Vt == !1 && c && \"number\" == typeof c) {\n      c *= Math.PI / 180, 0 === i.rotationDirection && (c = -c), S === x.ADVANCED && (c = -c);\n      var M = Math.cos(c),\n        E = Math.sin(c);\n      p = new Vt(M, E, -E, M, 0, 0);\n    } else c && c instanceof Vt && (p = c);\n    S !== x.ADVANCED || p || (p = Yt), void 0 !== (h = i.charSpace || _r) && (v += O(U(h)) + \" Tc\\n\", this.setCharSpace(this.getCharSpace() || 0)), void 0 !== (d = i.horizontalScale) && (v += O(100 * d) + \" Tz\\n\");\n    i.lang;\n    var D = -1,\n      R = void 0 !== i.renderingMode ? i.renderingMode : i.stroke,\n      T = g.internal.getCurrentPageInfo().pageContext;\n    switch (R) {\n      case 0:\n      case !1:\n      case \"fill\":\n        D = 0;\n        break;\n      case 1:\n      case !0:\n      case \"stroke\":\n        D = 1;\n        break;\n      case 2:\n      case \"fillThenStroke\":\n        D = 2;\n        break;\n      case 3:\n      case \"invisible\":\n        D = 3;\n        break;\n      case 4:\n      case \"fillAndAddForClipping\":\n        D = 4;\n        break;\n      case 5:\n      case \"strokeAndAddPathForClipping\":\n        D = 5;\n        break;\n      case 6:\n      case \"fillThenStrokeAndAddToPathForClipping\":\n        D = 6;\n        break;\n      case 7:\n      case \"addToPathForClipping\":\n        D = 7;\n    }\n    var z = void 0 !== T.usedRenderingMode ? T.usedRenderingMode : -1;\n    -1 !== D ? v += D + \" Tr\\n\" : -1 !== z && (v += \"0 Tr\\n\"), -1 !== D && (T.usedRenderingMode = D), u = i.align || \"left\";\n    var H,\n      W = gt * w,\n      V = g.internal.pageSize.getWidth(),\n      G = Ft[St];\n    h = i.charSpace || _r, l = i.maxWidth || 0, f = Object.assign({\n      autoencode: !0,\n      noBOM: !0\n    }, i.flags);\n    var Y = [];\n    if (\"[object Array]\" === Object.prototype.toString.call(e)) {\n      var J;\n      s = A(e), \"left\" !== u && (H = s.map(function (t) {\n        return g.getStringUnitWidth(t, {\n          font: G,\n          charSpace: h,\n          fontSize: gt,\n          doKerning: !1\n        }) * gt / N;\n      }));\n      var X,\n        K = 0;\n      if (\"right\" === u) {\n        r -= H[0], e = [], C = s.length;\n        for (var Z = 0; Z < C; Z++) 0 === Z ? (X = br(r), J = yr(n)) : (X = U(K - H[Z]), J = -W), e.push([s[Z], X, J]), K = H[Z];\n      } else if (\"center\" === u) {\n        r -= H[0] / 2, e = [], C = s.length;\n        for (var $ = 0; $ < C; $++) 0 === $ ? (X = br(r), J = yr(n)) : (X = U((K - H[$]) / 2), J = -W), e.push([s[$], X, J]), K = H[$];\n      } else if (\"left\" === u) {\n        e = [], C = s.length;\n        for (var Q = 0; Q < C; Q++) e.push(s[Q]);\n      } else {\n        if (\"justify\" !== u) throw new Error('Unrecognized alignment option, use \"left\", \"center\", \"right\" or \"justify\".');\n        e = [], C = s.length, l = 0 !== l ? l : V;\n        for (var tt = 0; tt < C; tt++) J = 0 === tt ? yr(n) : -W, X = 0 === tt ? br(r) : 0, tt < C - 1 ? Y.push(O(U((l - H[tt]) / (s[tt].split(\" \").length - 1)))) : Y.push(0), e.push([s[tt], X, J]);\n      }\n    }\n    var et = \"boolean\" == typeof i.R2L ? i.R2L : bt;\n    !0 === et && (e = _(e, function (t, e, r) {\n      return [t.split(\"\").reverse().join(\"\"), e, r];\n    })), o = {\n      text: e,\n      x: r,\n      y: n,\n      options: i,\n      mutex: {\n        pdfEscape: Ce,\n        activeFontKey: St,\n        fonts: Ft,\n        activeFontSize: gt\n      }\n    }, Tt.publish(\"postProcessText\", o), e = o.text, y = o.mutex.isHex || !1;\n    var rt = Ft[St].encoding;\n    \"WinAnsiEncoding\" !== rt && \"StandardEncoding\" !== rt || (e = _(e, function (t, e, r) {\n      return [L(t), e, r];\n    })), s = A(e), e = [];\n    for (var nt, it, at, ot = 0, st = 1, ct = Array.isArray(s[0]) ? st : ot, ut = \"\", ht = function (t, e, r) {\n        var n = \"\";\n        return r instanceof Vt ? (r = \"number\" == typeof i.angle ? Gt(r, new Vt(1, 0, 0, 1, t, e)) : Gt(new Vt(1, 0, 0, 1, t, e), r), S === x.ADVANCED && (r = Gt(new Vt(1, 0, 0, -1, 0, 0), r)), n = r.join(\" \") + \" Tm\\n\") : n = O(t) + \" \" + O(e) + \" Td\\n\", n;\n      }, ft = 0; ft < s.length; ft++) {\n      switch (ut = \"\", ct) {\n        case st:\n          at = (y ? \"<\" : \"(\") + s[ft][0] + (y ? \">\" : \")\"), nt = parseFloat(s[ft][1]), it = parseFloat(s[ft][2]);\n          break;\n        case ot:\n          at = (y ? \"<\" : \"(\") + s[ft] + (y ? \">\" : \")\"), nt = br(r), it = yr(n);\n      }\n      void 0 !== Y && void 0 !== Y[ft] && (ut = Y[ft] + \" Tw\\n\"), 0 === ft ? e.push(ut + ht(nt, it, p) + at) : ct === ot ? e.push(ut + at) : ct === st && e.push(ut + ht(nt, it, p) + at);\n    }\n    e = ct === ot ? e.join(\" Tj\\nT* \") : e.join(\" Tj\\n\"), e += \" Tj\\n\";\n    var dt = \"BT\\n/\";\n    return dt += St + \" \" + gt + \" Tf\\n\", dt += O(gt * w) + \" TL\\n\", dt += xr + \"\\n\", dt += v, dt += e, lt(dt += \"ET\"), b[St] = !0, g;\n  };\n  var $e = y.__private__.clip = y.clip = function (t) {\n    return lt(\"evenodd\" === t ? \"W*\" : \"W\"), this;\n  };\n  y.clipEvenOdd = function () {\n    return $e(\"evenodd\");\n  }, y.__private__.discardPath = y.discardPath = function () {\n    return lt(\"n\"), this;\n  };\n  var Qe = y.__private__.isValidStyle = function (t) {\n    var e = !1;\n    return -1 !== [void 0, null, \"S\", \"D\", \"F\", \"DF\", \"FD\", \"f\", \"f*\", \"B\", \"B*\", \"n\"].indexOf(t) && (e = !0), e;\n  };\n  y.__private__.setDefaultPathOperation = y.setDefaultPathOperation = function (t) {\n    return Qe(t) && (g = t), this;\n  };\n  var tr = y.__private__.getStyle = y.getStyle = function (t) {\n      var e = g;\n      switch (t) {\n        case \"D\":\n        case \"S\":\n          e = \"S\";\n          break;\n        case \"F\":\n          e = \"f\";\n          break;\n        case \"FD\":\n        case \"DF\":\n          e = \"B\";\n          break;\n        case \"f\":\n        case \"f*\":\n        case \"B\":\n        case \"B*\":\n          e = t;\n      }\n      return e;\n    },\n    er = y.close = function () {\n      return lt(\"h\"), this;\n    };\n  y.stroke = function () {\n    return lt(\"S\"), this;\n  }, y.fill = function (t) {\n    return rr(\"f\", t), this;\n  }, y.fillEvenOdd = function (t) {\n    return rr(\"f*\", t), this;\n  }, y.fillStroke = function (t) {\n    return rr(\"B\", t), this;\n  }, y.fillStrokeEvenOdd = function (t) {\n    return rr(\"B*\", t), this;\n  };\n  var rr = function (e, r) {\n      \"object\" === t(r) ? ar(r, e) : lt(e);\n    },\n    nr = function (t) {\n      null === t || S === x.ADVANCED && void 0 === t || (t = tr(t), lt(t));\n    };\n  function ir(t, e, r, n, i) {\n    var a = new M(e || this.boundingBox, r || this.xStep, n || this.yStep, this.gState, i || this.matrix);\n    a.stream = this.stream;\n    var o = t + \"$$\" + this.cloneIndex++ + \"$$\";\n    return Jt(o, a), a;\n  }\n  var ar = function (t, e) {\n      var r = Bt[t.key],\n        n = Ot[r];\n      if (n instanceof B) lt(\"q\"), lt(or(e)), n.gState && y.setGState(n.gState), lt(t.matrix.toString() + \" cm\"), lt(\"/\" + r + \" sh\"), lt(\"Q\");else if (n instanceof M) {\n        var i = new Vt(1, 0, 0, -1, 0, Rr());\n        t.matrix && (i = i.multiply(t.matrix || Yt), r = ir.call(n, t.key, t.boundingBox, t.xStep, t.yStep, i).id), lt(\"q\"), lt(\"/Pattern cs\"), lt(\"/\" + r + \" scn\"), n.gState && y.setGState(n.gState), lt(e), lt(\"Q\");\n      }\n    },\n    or = function (t) {\n      switch (t) {\n        case \"f\":\n        case \"F\":\n          return \"W n\";\n        case \"f*\":\n          return \"W* n\";\n        case \"B\":\n          return \"W S\";\n        case \"B*\":\n          return \"W* S\";\n        case \"S\":\n          return \"W S\";\n        case \"n\":\n          return \"W n\";\n      }\n    },\n    sr = y.moveTo = function (t, e) {\n      return lt(O(U(t)) + \" \" + O(H(e)) + \" m\"), this;\n    },\n    cr = y.lineTo = function (t, e) {\n      return lt(O(U(t)) + \" \" + O(H(e)) + \" l\"), this;\n    },\n    ur = y.curveTo = function (t, e, r, n, i, a) {\n      return lt([O(U(t)), O(H(e)), O(U(r)), O(H(n)), O(U(i)), O(H(a)), \"c\"].join(\" \")), this;\n    };\n  y.__private__.line = y.line = function (t, e, r, n, i) {\n    if (isNaN(t) || isNaN(e) || isNaN(r) || isNaN(n) || !Qe(i)) throw new Error(\"Invalid arguments passed to jsPDF.line\");\n    return S === x.COMPAT ? this.lines([[r - t, n - e]], t, e, [1, 1], i || \"S\") : this.lines([[r - t, n - e]], t, e, [1, 1]).stroke();\n  }, y.__private__.lines = y.lines = function (t, e, r, n, i, a) {\n    var o, s, c, u, h, l, f, d, p, g, m, v;\n    if (\"number\" == typeof t && (v = r, r = e, e = t, t = v), n = n || [1, 1], a = a || !1, isNaN(e) || isNaN(r) || !Array.isArray(t) || !Array.isArray(n) || !Qe(i) || \"boolean\" != typeof a) throw new Error(\"Invalid arguments passed to jsPDF.lines\");\n    for (sr(e, r), o = n[0], s = n[1], u = t.length, g = e, m = r, c = 0; c < u; c++) 2 === (h = t[c]).length ? (g = h[0] * o + g, m = h[1] * s + m, cr(g, m)) : (l = h[0] * o + g, f = h[1] * s + m, d = h[2] * o + g, p = h[3] * s + m, g = h[4] * o + g, m = h[5] * s + m, ur(l, f, d, p, g, m));\n    return a && er(), nr(i), this;\n  }, y.path = function (t) {\n    for (var e = 0; e < t.length; e++) {\n      var r = t[e],\n        n = r.c;\n      switch (r.op) {\n        case \"m\":\n          sr(n[0], n[1]);\n          break;\n        case \"l\":\n          cr(n[0], n[1]);\n          break;\n        case \"c\":\n          ur.apply(this, n);\n          break;\n        case \"h\":\n          er();\n      }\n    }\n    return this;\n  }, y.__private__.rect = y.rect = function (t, e, r, n, i) {\n    if (isNaN(t) || isNaN(e) || isNaN(r) || isNaN(n) || !Qe(i)) throw new Error(\"Invalid arguments passed to jsPDF.rect\");\n    return S === x.COMPAT && (n = -n), lt([O(U(t)), O(H(e)), O(U(r)), O(U(n)), \"re\"].join(\" \")), nr(i), this;\n  }, y.__private__.triangle = y.triangle = function (t, e, r, n, i, a, o) {\n    if (isNaN(t) || isNaN(e) || isNaN(r) || isNaN(n) || isNaN(i) || isNaN(a) || !Qe(o)) throw new Error(\"Invalid arguments passed to jsPDF.triangle\");\n    return this.lines([[r - t, n - e], [i - r, a - n], [t - i, e - a]], t, e, [1, 1], o, !0), this;\n  }, y.__private__.roundedRect = y.roundedRect = function (t, e, r, n, i, a, o) {\n    if (isNaN(t) || isNaN(e) || isNaN(r) || isNaN(n) || isNaN(i) || isNaN(a) || !Qe(o)) throw new Error(\"Invalid arguments passed to jsPDF.roundedRect\");\n    var s = 4 / 3 * (Math.SQRT2 - 1);\n    return i = Math.min(i, .5 * r), a = Math.min(a, .5 * n), this.lines([[r - 2 * i, 0], [i * s, 0, i, a - a * s, i, a], [0, n - 2 * a], [0, a * s, -i * s, a, -i, a], [2 * i - r, 0], [-i * s, 0, -i, -a * s, -i, -a], [0, 2 * a - n], [0, -a * s, i * s, -a, i, -a]], t + i, e, [1, 1], o, !0), this;\n  }, y.__private__.ellipse = y.ellipse = function (t, e, r, n, i) {\n    if (isNaN(t) || isNaN(e) || isNaN(r) || isNaN(n) || !Qe(i)) throw new Error(\"Invalid arguments passed to jsPDF.ellipse\");\n    var a = 4 / 3 * (Math.SQRT2 - 1) * r,\n      o = 4 / 3 * (Math.SQRT2 - 1) * n;\n    return sr(t + r, e), ur(t + r, e - o, t + a, e - n, t, e - n), ur(t - a, e - n, t - r, e - o, t - r, e), ur(t - r, e + o, t - a, e + n, t, e + n), ur(t + a, e + n, t + r, e + o, t + r, e), nr(i), this;\n  }, y.__private__.circle = y.circle = function (t, e, r, n) {\n    if (isNaN(t) || isNaN(e) || isNaN(r) || !Qe(n)) throw new Error(\"Invalid arguments passed to jsPDF.circle\");\n    return this.ellipse(t, e, r, r, n);\n  }, y.setFont = function (t, e, r) {\n    return r && (e = k(e, r)), St = qe(t, e, {\n      disableWarning: !1\n    }), this;\n  };\n  var hr = y.__private__.getFont = y.getFont = function () {\n    return Ft[qe.apply(y, arguments)];\n  };\n  y.__private__.getFontList = y.getFontList = function () {\n    var t,\n      e,\n      r = {};\n    for (t in Ct) if (Ct.hasOwnProperty(t)) for (e in r[t] = [], Ct[t]) Ct[t].hasOwnProperty(e) && r[t].push(e);\n    return r;\n  }, y.addFont = function (t, e, r, n, i) {\n    var a = [\"StandardEncoding\", \"MacRomanEncoding\", \"Identity-H\", \"WinAnsiEncoding\"];\n    return arguments[3] && -1 !== a.indexOf(arguments[3]) ? i = arguments[3] : arguments[3] && -1 == a.indexOf(arguments[3]) && (r = k(r, n)), i = i || \"Identity-H\", Pe.call(this, t, e, r, i);\n  };\n  var lr,\n    fr = e.lineWidth || .200025,\n    dr = y.__private__.getLineWidth = y.getLineWidth = function () {\n      return fr;\n    },\n    pr = y.__private__.setLineWidth = y.setLineWidth = function (t) {\n      return fr = t, lt(O(U(t)) + \" w\"), this;\n    };\n  y.__private__.setLineDash = E.API.setLineDash = E.API.setLineDashPattern = function (t, e) {\n    if (t = t || [], e = e || 0, isNaN(e) || !Array.isArray(t)) throw new Error(\"Invalid arguments passed to jsPDF.setLineDash\");\n    return t = t.map(function (t) {\n      return O(U(t));\n    }).join(\" \"), e = O(U(e)), lt(\"[\" + t + \"] \" + e + \" d\"), this;\n  };\n  var gr = y.__private__.getLineHeight = y.getLineHeight = function () {\n    return gt * lr;\n  };\n  y.__private__.getLineHeight = y.getLineHeight = function () {\n    return gt * lr;\n  };\n  var mr = y.__private__.setLineHeightFactor = y.setLineHeightFactor = function (t) {\n      return \"number\" == typeof (t = t || 1.15) && (lr = t), this;\n    },\n    vr = y.__private__.getLineHeightFactor = y.getLineHeightFactor = function () {\n      return lr;\n    };\n  mr(e.lineHeight);\n  var br = y.__private__.getHorizontalCoordinate = function (t) {\n      return U(t);\n    },\n    yr = y.__private__.getVerticalCoordinate = function (t) {\n      return S === x.ADVANCED ? t : Rt[$].mediaBox.topRightY - Rt[$].mediaBox.bottomLeftY - U(t);\n    },\n    wr = y.__private__.getHorizontalCoordinateString = y.getHorizontalCoordinateString = function (t) {\n      return O(br(t));\n    },\n    Nr = y.__private__.getVerticalCoordinateString = y.getVerticalCoordinateString = function (t) {\n      return O(yr(t));\n    },\n    Lr = e.strokeColor || \"0 G\";\n  y.__private__.getStrokeColor = y.getDrawColor = function () {\n    return ee(Lr);\n  }, y.__private__.setStrokeColor = y.setDrawColor = function (t, e, r, n) {\n    return Lr = re({\n      ch1: t,\n      ch2: e,\n      ch3: r,\n      ch4: n,\n      pdfColorType: \"draw\",\n      precision: 2\n    }), lt(Lr), this;\n  };\n  var Ar = e.fillColor || \"0 g\";\n  y.__private__.getFillColor = y.getFillColor = function () {\n    return ee(Ar);\n  }, y.__private__.setFillColor = y.setFillColor = function (t, e, r, n) {\n    return Ar = re({\n      ch1: t,\n      ch2: e,\n      ch3: r,\n      ch4: n,\n      pdfColorType: \"fill\",\n      precision: 2\n    }), lt(Ar), this;\n  };\n  var xr = e.textColor || \"0 g\",\n    Sr = y.__private__.getTextColor = y.getTextColor = function () {\n      return ee(xr);\n    };\n  y.__private__.setTextColor = y.setTextColor = function (t, e, r, n) {\n    return xr = re({\n      ch1: t,\n      ch2: e,\n      ch3: r,\n      ch4: n,\n      pdfColorType: \"text\",\n      precision: 3\n    }), this;\n  };\n  var _r = e.charSpace,\n    Pr = y.__private__.getCharSpace = y.getCharSpace = function () {\n      return parseFloat(_r || 0);\n    };\n  y.__private__.setCharSpace = y.setCharSpace = function (t) {\n    if (isNaN(t)) throw new Error(\"Invalid argument passed to jsPDF.setCharSpace\");\n    return _r = t, this;\n  };\n  var kr = 0;\n  y.CapJoinStyles = {\n    0: 0,\n    butt: 0,\n    but: 0,\n    miter: 0,\n    1: 1,\n    round: 1,\n    rounded: 1,\n    circle: 1,\n    2: 2,\n    projecting: 2,\n    project: 2,\n    square: 2,\n    bevel: 2\n  }, y.__private__.setLineCap = y.setLineCap = function (t) {\n    var e = y.CapJoinStyles[t];\n    if (void 0 === e) throw new Error(\"Line cap style of '\" + t + \"' is not recognized. See or extend .CapJoinStyles property for valid styles\");\n    return kr = e, lt(e + \" J\"), this;\n  };\n  var Ir = 0;\n  y.__private__.setLineJoin = y.setLineJoin = function (t) {\n    var e = y.CapJoinStyles[t];\n    if (void 0 === e) throw new Error(\"Line join style of '\" + t + \"' is not recognized. See or extend .CapJoinStyles property for valid styles\");\n    return Ir = e, lt(e + \" j\"), this;\n  }, y.__private__.setLineMiterLimit = y.__private__.setMiterLimit = y.setLineMiterLimit = y.setMiterLimit = function (t) {\n    if (t = t || 0, isNaN(t)) throw new Error(\"Invalid argument passed to jsPDF.setLineMiterLimit\");\n    return lt(O(U(t)) + \" M\"), this;\n  }, y.GState = j, y.setGState = function (t) {\n    (t = \"string\" == typeof t ? Mt[Et[t]] : Fr(null, t)).equals(qt) || (lt(\"/\" + t.id + \" gs\"), qt = t);\n  };\n  var Fr = function (t, e) {\n    if (!t || !Et[t]) {\n      var r = !1;\n      for (var n in Mt) if (Mt.hasOwnProperty(n) && Mt[n].equals(e)) {\n        r = !0;\n        break;\n      }\n      if (r) e = Mt[n];else {\n        var i = \"GS\" + (Object.keys(Mt).length + 1).toString(10);\n        Mt[i] = e, e.id = i;\n      }\n      return t && (Et[t] = e.id), Tt.publish(\"addGState\", e), e;\n    }\n  };\n  y.addGState = function (t, e) {\n    return Fr(t, e), this;\n  }, y.saveGraphicsState = function () {\n    return lt(\"q\"), jt.push({\n      key: St,\n      size: gt,\n      color: xr\n    }), this;\n  }, y.restoreGraphicsState = function () {\n    lt(\"Q\");\n    var t = jt.pop();\n    return St = t.key, gt = t.size, xr = t.color, qt = null, this;\n  }, y.setCurrentTransformationMatrix = function (t) {\n    return lt(t.toString() + \" cm\"), this;\n  }, y.comment = function (t) {\n    return lt(\"#\" + t), this;\n  };\n  var Cr = function (t, e) {\n      var r = t || 0;\n      Object.defineProperty(this, \"x\", {\n        enumerable: !0,\n        get: function () {\n          return r;\n        },\n        set: function (t) {\n          isNaN(t) || (r = parseFloat(t));\n        }\n      });\n      var n = e || 0;\n      Object.defineProperty(this, \"y\", {\n        enumerable: !0,\n        get: function () {\n          return n;\n        },\n        set: function (t) {\n          isNaN(t) || (n = parseFloat(t));\n        }\n      });\n      var i = \"pt\";\n      return Object.defineProperty(this, \"type\", {\n        enumerable: !0,\n        get: function () {\n          return i;\n        },\n        set: function (t) {\n          i = t.toString();\n        }\n      }), this;\n    },\n    jr = function (t, e, r, n) {\n      Cr.call(this, t, e), this.type = \"rect\";\n      var i = r || 0;\n      Object.defineProperty(this, \"w\", {\n        enumerable: !0,\n        get: function () {\n          return i;\n        },\n        set: function (t) {\n          isNaN(t) || (i = parseFloat(t));\n        }\n      });\n      var a = n || 0;\n      return Object.defineProperty(this, \"h\", {\n        enumerable: !0,\n        get: function () {\n          return a;\n        },\n        set: function (t) {\n          isNaN(t) || (a = parseFloat(t));\n        }\n      }), this;\n    },\n    Or = function () {\n      this.page = Dt, this.currentPage = $, this.pages = ot.slice(0), this.pagesContext = Rt.slice(0), this.x = Pt, this.y = kt, this.matrix = It, this.width = qr($), this.height = Rr($), this.outputDestination = ct, this.id = \"\", this.objectNumber = -1;\n    };\n  Or.prototype.restore = function () {\n    Dt = this.page, $ = this.currentPage, Rt = this.pagesContext, ot = this.pages, Pt = this.x, kt = this.y, It = this.matrix, Dr($, this.width), Tr($, this.height), ct = this.outputDestination;\n  };\n  var Br = function (t, e, r, n, i) {\n      Wt.push(new Or()), Dt = $ = 0, ot = [], Pt = t, kt = e, It = i, je([r, n]);\n    },\n    Mr = function (t) {\n      if (Ht[t]) Wt.pop().restore();else {\n        var e = new Or(),\n          r = \"Xo\" + (Object.keys(zt).length + 1).toString(10);\n        e.id = r, Ht[t] = r, zt[r] = e, Tt.publish(\"addFormObject\", e), Wt.pop().restore();\n      }\n    };\n  for (var Er in y.beginFormObject = function (t, e, r, n, i) {\n    return Br(t, e, r, n, i), this;\n  }, y.endFormObject = function (t) {\n    return Mr(t), this;\n  }, y.doFormObject = function (t, e) {\n    var r = zt[Ht[t]];\n    return lt(\"q\"), lt(e.toString() + \" cm\"), lt(\"/\" + r.id + \" Do\"), lt(\"Q\"), this;\n  }, y.getFormObject = function (t) {\n    var e = zt[Ht[t]];\n    return {\n      x: e.x,\n      y: e.y,\n      width: e.width,\n      height: e.height,\n      matrix: e.matrix\n    };\n  }, y.save = function (t, e) {\n    return t = t || \"generated.pdf\", (e = e || {}).returnPromise = e.returnPromise || !1, !1 === e.returnPromise ? (l(We(He()), t), \"function\" == typeof l.unload && n.setTimeout && setTimeout(l.unload, 911), this) : new Promise(function (e, r) {\n      try {\n        var i = l(We(He()), t);\n        \"function\" == typeof l.unload && n.setTimeout && setTimeout(l.unload, 911), e(i);\n      } catch (t) {\n        r(t.message);\n      }\n    });\n  }, E.API) E.API.hasOwnProperty(Er) && (\"events\" === Er && E.API.events.length ? function (t, e) {\n    var r, n, i;\n    for (i = e.length - 1; -1 !== i; i--) r = e[i][0], n = e[i][1], t.subscribe.apply(t, [r].concat(\"function\" == typeof n ? [n] : n));\n  }(Tt, E.API.events) : y[Er] = E.API[Er]);\n  var qr = y.getPageWidth = function (t) {\n      return (Rt[t = t || $].mediaBox.topRightX - Rt[t].mediaBox.bottomLeftX) / _t;\n    },\n    Dr = y.setPageWidth = function (t, e) {\n      Rt[t].mediaBox.topRightX = e * _t + Rt[t].mediaBox.bottomLeftX;\n    },\n    Rr = y.getPageHeight = function (t) {\n      return (Rt[t = t || $].mediaBox.topRightY - Rt[t].mediaBox.bottomLeftY) / _t;\n    },\n    Tr = y.setPageHeight = function (t, e) {\n      Rt[t].mediaBox.topRightY = e * _t + Rt[t].mediaBox.bottomLeftY;\n    };\n  return y.internal = {\n    pdfEscape: Ce,\n    getStyle: tr,\n    getFont: hr,\n    getFontSize: vt,\n    getCharSpace: Pr,\n    getTextColor: Sr,\n    getLineHeight: gr,\n    getLineHeightFactor: vr,\n    getLineWidth: dr,\n    write: ft,\n    getHorizontalCoordinate: br,\n    getVerticalCoordinate: yr,\n    getCoordinateString: wr,\n    getVerticalCoordinateString: Nr,\n    collections: {},\n    newObject: Xt,\n    newAdditionalObject: $t,\n    newObjectDeferred: Kt,\n    newObjectDeferredBegin: Zt,\n    getFilters: ne,\n    putStream: ie,\n    events: Tt,\n    scaleFactor: _t,\n    pageSize: {\n      getWidth: function () {\n        return qr($);\n      },\n      setWidth: function (t) {\n        Dr($, t);\n      },\n      getHeight: function () {\n        return Rr($);\n      },\n      setHeight: function (t) {\n        Tr($, t);\n      }\n    },\n    encryptionOptions: m,\n    encryption: Ye,\n    getEncryptor: Je,\n    output: Ve,\n    getNumberOfPages: Ee,\n    pages: ot,\n    out: lt,\n    f2: R,\n    f3: T,\n    getPageInfo: Xe,\n    getPageInfoByObjId: Ke,\n    getCurrentPageInfo: Ze,\n    getPDFVersion: N,\n    Point: Cr,\n    Rectangle: jr,\n    Matrix: Vt,\n    hasHotfix: Ge\n  }, Object.defineProperty(y.internal.pageSize, \"width\", {\n    get: function () {\n      return qr($);\n    },\n    set: function (t) {\n      Dr($, t);\n    },\n    enumerable: !0,\n    configurable: !0\n  }), Object.defineProperty(y.internal.pageSize, \"height\", {\n    get: function () {\n      return Rr($);\n    },\n    set: function (t) {\n      Tr($, t);\n    },\n    enumerable: !0,\n    configurable: !0\n  }), ke.call(y, pt), St = \"F1\", Oe(s, i), Tt.publish(\"initialized\"), y;\n}\nI.prototype.lsbFirstWord = function (t) {\n  return String.fromCharCode(t >> 0 & 255, t >> 8 & 255, t >> 16 & 255, t >> 24 & 255);\n}, I.prototype.toHexString = function (t) {\n  return t.split(\"\").map(function (t) {\n    return (\"0\" + (255 & t.charCodeAt(0)).toString(16)).slice(-2);\n  }).join(\"\");\n}, I.prototype.hexToBytes = function (t) {\n  for (var e = [], r = 0; r < t.length; r += 2) e.push(String.fromCharCode(parseInt(t.substr(r, 2), 16)));\n  return e.join(\"\");\n}, I.prototype.processOwnerPassword = function (t, e) {\n  return P(x(e).substr(0, 5), t);\n}, I.prototype.encryptor = function (t, e) {\n  var r = x(this.encryptionKey + String.fromCharCode(255 & t, t >> 8 & 255, t >> 16 & 255, 255 & e, e >> 8 & 255)).substr(0, 10);\n  return function (t) {\n    return P(r, t);\n  };\n}, j.prototype.equals = function (e) {\n  var r,\n    n = \"id,objectNumber,equals\";\n  if (!e || t(e) !== t(this)) return !1;\n  var i = 0;\n  for (r in this) if (!(n.indexOf(r) >= 0)) {\n    if (this.hasOwnProperty(r) && !e.hasOwnProperty(r)) return !1;\n    if (this[r] !== e[r]) return !1;\n    i++;\n  }\n  for (r in e) e.hasOwnProperty(r) && n.indexOf(r) < 0 && i--;\n  return 0 === i;\n}, E.API = {\n  events: []\n}, E.version = \"2.5.1\";\nvar q = E.API,\n  D = 1,\n  R = function (t) {\n    return t.replace(/\\\\/g, \"\\\\\\\\\").replace(/\\(/g, \"\\\\(\").replace(/\\)/g, \"\\\\)\");\n  },\n  T = function (t) {\n    return t.replace(/\\\\\\\\/g, \"\\\\\").replace(/\\\\\\(/g, \"(\").replace(/\\\\\\)/g, \")\");\n  },\n  U = function (t) {\n    return t.toFixed(2);\n  },\n  z = function (t) {\n    return t.toFixed(5);\n  };\nq.__acroform__ = {};\nvar H = function (t, e) {\n    t.prototype = Object.create(e.prototype), t.prototype.constructor = t;\n  },\n  W = function (t) {\n    return t * D;\n  },\n  V = function (t) {\n    var e = new ut(),\n      r = At.internal.getHeight(t) || 0,\n      n = At.internal.getWidth(t) || 0;\n    return e.BBox = [0, 0, Number(U(n)), Number(U(r))], e;\n  },\n  G = q.__acroform__.setBit = function (t, e) {\n    if (t = t || 0, e = e || 0, isNaN(t) || isNaN(e)) throw new Error(\"Invalid arguments passed to jsPDF.API.__acroform__.setBit\");\n    return t |= 1 << e;\n  },\n  Y = q.__acroform__.clearBit = function (t, e) {\n    if (t = t || 0, e = e || 0, isNaN(t) || isNaN(e)) throw new Error(\"Invalid arguments passed to jsPDF.API.__acroform__.clearBit\");\n    return t &= ~(1 << e);\n  },\n  J = q.__acroform__.getBit = function (t, e) {\n    if (isNaN(t) || isNaN(e)) throw new Error(\"Invalid arguments passed to jsPDF.API.__acroform__.getBit\");\n    return 0 == (t & 1 << e) ? 0 : 1;\n  },\n  X = q.__acroform__.getBitForPdf = function (t, e) {\n    if (isNaN(t) || isNaN(e)) throw new Error(\"Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf\");\n    return J(t, e - 1);\n  },\n  K = q.__acroform__.setBitForPdf = function (t, e) {\n    if (isNaN(t) || isNaN(e)) throw new Error(\"Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf\");\n    return G(t, e - 1);\n  },\n  Z = q.__acroform__.clearBitForPdf = function (t, e) {\n    if (isNaN(t) || isNaN(e)) throw new Error(\"Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf\");\n    return Y(t, e - 1);\n  },\n  $ = q.__acroform__.calculateCoordinates = function (t, e) {\n    var r = e.internal.getHorizontalCoordinate,\n      n = e.internal.getVerticalCoordinate,\n      i = t[0],\n      a = t[1],\n      o = t[2],\n      s = t[3],\n      c = {};\n    return c.lowerLeft_X = r(i) || 0, c.lowerLeft_Y = n(a + s) || 0, c.upperRight_X = r(i + o) || 0, c.upperRight_Y = n(a) || 0, [Number(U(c.lowerLeft_X)), Number(U(c.lowerLeft_Y)), Number(U(c.upperRight_X)), Number(U(c.upperRight_Y))];\n  },\n  Q = function (t) {\n    if (t.appearanceStreamContent) return t.appearanceStreamContent;\n    if (t.V || t.DV) {\n      var e = [],\n        r = t._V || t.DV,\n        n = tt(t, r),\n        i = t.scope.internal.getFont(t.fontName, t.fontStyle).id;\n      e.push(\"/Tx BMC\"), e.push(\"q\"), e.push(\"BT\"), e.push(t.scope.__private__.encodeColorString(t.color)), e.push(\"/\" + i + \" \" + U(n.fontSize) + \" Tf\"), e.push(\"1 0 0 1 0 0 Tm\"), e.push(n.text), e.push(\"ET\"), e.push(\"Q\"), e.push(\"EMC\");\n      var a = V(t);\n      return a.scope = t.scope, a.stream = e.join(\"\\n\"), a;\n    }\n  },\n  tt = function (t, e) {\n    var r = 0 === t.fontSize ? t.maxFontSize : t.fontSize,\n      n = {\n        text: \"\",\n        fontSize: \"\"\n      },\n      i = (e = \")\" == (e = \"(\" == e.substr(0, 1) ? e.substr(1) : e).substr(e.length - 1) ? e.substr(0, e.length - 1) : e).split(\" \");\n    i = t.multiline ? i.map(function (t) {\n      return t.split(\"\\n\");\n    }) : i.map(function (t) {\n      return [t];\n    });\n    var a = r,\n      o = At.internal.getHeight(t) || 0;\n    o = o < 0 ? -o : o;\n    var s = At.internal.getWidth(t) || 0;\n    s = s < 0 ? -s : s;\n    var c = function (e, r, n) {\n      if (e + 1 < i.length) {\n        var a = r + \" \" + i[e + 1][0];\n        return et(a, t, n).width <= s - 4;\n      }\n      return !1;\n    };\n    a++;\n    t: for (; a > 0;) {\n      e = \"\", a--;\n      var u,\n        h,\n        l = et(\"3\", t, a).height,\n        f = t.multiline ? o - a : (o - l) / 2,\n        d = f += 2,\n        p = 0,\n        g = 0,\n        m = 0;\n      if (a <= 0) {\n        e = \"(...) Tj\\n\", e += \"% Width of Text: \" + et(e, t, a = 12).width + \", FieldWidth:\" + s + \"\\n\";\n        break;\n      }\n      for (var v = \"\", b = 0, y = 0; y < i.length; y++) if (i.hasOwnProperty(y)) {\n        var w = !1;\n        if (1 !== i[y].length && m !== i[y].length - 1) {\n          if ((l + 2) * (b + 2) + 2 > o) continue t;\n          v += i[y][m], w = !0, g = y, y--;\n        } else {\n          v = \" \" == (v += i[y][m] + \" \").substr(v.length - 1) ? v.substr(0, v.length - 1) : v;\n          var N = parseInt(y),\n            L = c(N, v, a),\n            A = y >= i.length - 1;\n          if (L && !A) {\n            v += \" \", m = 0;\n            continue;\n          }\n          if (L || A) {\n            if (A) g = N;else if (t.multiline && (l + 2) * (b + 2) + 2 > o) continue t;\n          } else {\n            if (!t.multiline) continue t;\n            if ((l + 2) * (b + 2) + 2 > o) continue t;\n            g = N;\n          }\n        }\n        for (var x = \"\", S = p; S <= g; S++) {\n          var _ = i[S];\n          if (t.multiline) {\n            if (S === g) {\n              x += _[m] + \" \", m = (m + 1) % _.length;\n              continue;\n            }\n            if (S === p) {\n              x += _[_.length - 1] + \" \";\n              continue;\n            }\n          }\n          x += _[0] + \" \";\n        }\n        switch (x = \" \" == x.substr(x.length - 1) ? x.substr(0, x.length - 1) : x, h = et(x, t, a).width, t.textAlign) {\n          case \"right\":\n            u = s - h - 2;\n            break;\n          case \"center\":\n            u = (s - h) / 2;\n            break;\n          case \"left\":\n          default:\n            u = 2;\n        }\n        e += U(u) + \" \" + U(d) + \" Td\\n\", e += \"(\" + R(x) + \") Tj\\n\", e += -U(u) + \" 0 Td\\n\", d = -(a + 2), h = 0, p = w ? g : g + 1, b++, v = \"\";\n      } else ;\n      break;\n    }\n    return n.text = e, n.fontSize = a, n;\n  },\n  et = function (t, e, r) {\n    var n = e.scope.internal.getFont(e.fontName, e.fontStyle),\n      i = e.scope.getStringUnitWidth(t, {\n        font: n,\n        fontSize: parseFloat(r),\n        charSpace: 0\n      }) * parseFloat(r);\n    return {\n      height: e.scope.getStringUnitWidth(\"3\", {\n        font: n,\n        fontSize: parseFloat(r),\n        charSpace: 0\n      }) * parseFloat(r) * 1.5,\n      width: i\n    };\n  },\n  rt = {\n    fields: [],\n    xForms: [],\n    acroFormDictionaryRoot: null,\n    printedOut: !1,\n    internal: null,\n    isInitialized: !1\n  },\n  nt = function (t, e) {\n    var r = {\n      type: \"reference\",\n      object: t\n    };\n    void 0 === e.internal.getPageInfo(t.page).pageContext.annotations.find(function (t) {\n      return t.type === r.type && t.object === r.object;\n    }) && e.internal.getPageInfo(t.page).pageContext.annotations.push(r);\n  },\n  it = function (e, r) {\n    for (var n in e) if (e.hasOwnProperty(n)) {\n      var i = n,\n        a = e[n];\n      r.internal.newObjectDeferredBegin(a.objId, !0), \"object\" === t(a) && \"function\" == typeof a.putStream && a.putStream(), delete e[i];\n    }\n  },\n  at = function (e, r) {\n    if (r.scope = e, void 0 !== e.internal && (void 0 === e.internal.acroformPlugin || !1 === e.internal.acroformPlugin.isInitialized)) {\n      if (lt.FieldNum = 0, e.internal.acroformPlugin = JSON.parse(JSON.stringify(rt)), e.internal.acroformPlugin.acroFormDictionaryRoot) throw new Error(\"Exception while creating AcroformDictionary\");\n      D = e.internal.scaleFactor, e.internal.acroformPlugin.acroFormDictionaryRoot = new ht(), e.internal.acroformPlugin.acroFormDictionaryRoot.scope = e, e.internal.acroformPlugin.acroFormDictionaryRoot._eventID = e.internal.events.subscribe(\"postPutResources\", function () {\n        !function (t) {\n          t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID), delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID, t.internal.acroformPlugin.printedOut = !0;\n        }(e);\n      }), e.internal.events.subscribe(\"buildDocument\", function () {\n        !function (t) {\n          t.internal.acroformPlugin.acroFormDictionaryRoot.objId = void 0;\n          var e = t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;\n          for (var r in e) if (e.hasOwnProperty(r)) {\n            var n = e[r];\n            n.objId = void 0, n.hasAnnotation && nt(n, t);\n          }\n        }(e);\n      }), e.internal.events.subscribe(\"putCatalog\", function () {\n        !function (t) {\n          if (void 0 === t.internal.acroformPlugin.acroFormDictionaryRoot) throw new Error(\"putCatalogCallback: Root missing.\");\n          t.internal.write(\"/AcroForm \" + t.internal.acroformPlugin.acroFormDictionaryRoot.objId + \" 0 R\");\n        }(e);\n      }), e.internal.events.subscribe(\"postPutPages\", function (r) {\n        !function (e, r) {\n          var n = !e;\n          for (var i in e || (r.internal.newObjectDeferredBegin(r.internal.acroformPlugin.acroFormDictionaryRoot.objId, !0), r.internal.acroformPlugin.acroFormDictionaryRoot.putStream()), e = e || r.internal.acroformPlugin.acroFormDictionaryRoot.Kids) if (e.hasOwnProperty(i)) {\n            var a = e[i],\n              o = [],\n              s = a.Rect;\n            if (a.Rect && (a.Rect = $(a.Rect, r)), r.internal.newObjectDeferredBegin(a.objId, !0), a.DA = At.createDefaultAppearanceStream(a), \"object\" === t(a) && \"function\" == typeof a.getKeyValueListForStream && (o = a.getKeyValueListForStream()), a.Rect = s, a.hasAppearanceStream && !a.appearanceStreamContent) {\n              var c = Q(a);\n              o.push({\n                key: \"AP\",\n                value: \"<</N \" + c + \">>\"\n              }), r.internal.acroformPlugin.xForms.push(c);\n            }\n            if (a.appearanceStreamContent) {\n              var u = \"\";\n              for (var h in a.appearanceStreamContent) if (a.appearanceStreamContent.hasOwnProperty(h)) {\n                var l = a.appearanceStreamContent[h];\n                if (u += \"/\" + h + \" \", u += \"<<\", Object.keys(l).length >= 1 || Array.isArray(l)) {\n                  for (var i in l) if (l.hasOwnProperty(i)) {\n                    var f = l[i];\n                    \"function\" == typeof f && (f = f.call(r, a)), u += \"/\" + i + \" \" + f + \" \", r.internal.acroformPlugin.xForms.indexOf(f) >= 0 || r.internal.acroformPlugin.xForms.push(f);\n                  }\n                } else \"function\" == typeof (f = l) && (f = f.call(r, a)), u += \"/\" + i + \" \" + f, r.internal.acroformPlugin.xForms.indexOf(f) >= 0 || r.internal.acroformPlugin.xForms.push(f);\n                u += \">>\";\n              }\n              o.push({\n                key: \"AP\",\n                value: \"<<\\n\" + u + \">>\"\n              });\n            }\n            r.internal.putStream({\n              additionalKeyValues: o,\n              objectId: a.objId\n            }), r.internal.out(\"endobj\");\n          }\n          n && it(r.internal.acroformPlugin.xForms, r);\n        }(r, e);\n      }), e.internal.acroformPlugin.isInitialized = !0;\n    }\n  },\n  ot = q.__acroform__.arrayToPdfArray = function (e, r, n) {\n    var i = function (t) {\n      return t;\n    };\n    if (Array.isArray(e)) {\n      for (var a = \"[\", o = 0; o < e.length; o++) switch (0 !== o && (a += \" \"), t(e[o])) {\n        case \"boolean\":\n        case \"number\":\n        case \"object\":\n          a += e[o].toString();\n          break;\n        case \"string\":\n          \"/\" !== e[o].substr(0, 1) ? (void 0 !== r && n && (i = n.internal.getEncryptor(r)), a += \"(\" + R(i(e[o].toString())) + \")\") : a += e[o].toString();\n      }\n      return a += \"]\";\n    }\n    throw new Error(\"Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray\");\n  };\nvar st = function (t, e, r) {\n    var n = function (t) {\n      return t;\n    };\n    return void 0 !== e && r && (n = r.internal.getEncryptor(e)), (t = t || \"\").toString(), t = \"(\" + R(n(t)) + \")\";\n  },\n  ct = function () {\n    this._objId = void 0, this._scope = void 0, Object.defineProperty(this, \"objId\", {\n      get: function () {\n        if (void 0 === this._objId) {\n          if (void 0 === this.scope) return;\n          this._objId = this.scope.internal.newObjectDeferred();\n        }\n        return this._objId;\n      },\n      set: function (t) {\n        this._objId = t;\n      }\n    }), Object.defineProperty(this, \"scope\", {\n      value: this._scope,\n      writable: !0\n    });\n  };\nct.prototype.toString = function () {\n  return this.objId + \" 0 R\";\n}, ct.prototype.putStream = function () {\n  var t = this.getKeyValueListForStream();\n  this.scope.internal.putStream({\n    data: this.stream,\n    additionalKeyValues: t,\n    objectId: this.objId\n  }), this.scope.internal.out(\"endobj\");\n}, ct.prototype.getKeyValueListForStream = function () {\n  var t = [],\n    e = Object.getOwnPropertyNames(this).filter(function (t) {\n      return \"content\" != t && \"appearanceStreamContent\" != t && \"scope\" != t && \"objId\" != t && \"_\" != t.substring(0, 1);\n    });\n  for (var r in e) if (!1 === Object.getOwnPropertyDescriptor(this, e[r]).configurable) {\n    var n = e[r],\n      i = this[n];\n    i && (Array.isArray(i) ? t.push({\n      key: n,\n      value: ot(i, this.objId, this.scope)\n    }) : i instanceof ct ? (i.scope = this.scope, t.push({\n      key: n,\n      value: i.objId + \" 0 R\"\n    })) : \"function\" != typeof i && t.push({\n      key: n,\n      value: i\n    }));\n  }\n  return t;\n};\nvar ut = function () {\n  ct.call(this), Object.defineProperty(this, \"Type\", {\n    value: \"/XObject\",\n    configurable: !1,\n    writable: !0\n  }), Object.defineProperty(this, \"Subtype\", {\n    value: \"/Form\",\n    configurable: !1,\n    writable: !0\n  }), Object.defineProperty(this, \"FormType\", {\n    value: 1,\n    configurable: !1,\n    writable: !0\n  });\n  var t,\n    e = [];\n  Object.defineProperty(this, \"BBox\", {\n    configurable: !1,\n    get: function () {\n      return e;\n    },\n    set: function (t) {\n      e = t;\n    }\n  }), Object.defineProperty(this, \"Resources\", {\n    value: \"2 0 R\",\n    configurable: !1,\n    writable: !0\n  }), Object.defineProperty(this, \"stream\", {\n    enumerable: !1,\n    configurable: !0,\n    set: function (e) {\n      t = e.trim();\n    },\n    get: function () {\n      return t || null;\n    }\n  });\n};\nH(ut, ct);\nvar ht = function () {\n  ct.call(this);\n  var t,\n    e = [];\n  Object.defineProperty(this, \"Kids\", {\n    enumerable: !1,\n    configurable: !0,\n    get: function () {\n      return e.length > 0 ? e : void 0;\n    }\n  }), Object.defineProperty(this, \"Fields\", {\n    enumerable: !1,\n    configurable: !1,\n    get: function () {\n      return e;\n    }\n  }), Object.defineProperty(this, \"DA\", {\n    enumerable: !1,\n    configurable: !1,\n    get: function () {\n      if (t) {\n        var e = function (t) {\n          return t;\n        };\n        return this.scope && (e = this.scope.internal.getEncryptor(this.objId)), \"(\" + R(e(t)) + \")\";\n      }\n    },\n    set: function (e) {\n      t = e;\n    }\n  });\n};\nH(ht, ct);\nvar lt = function t() {\n  ct.call(this);\n  var e = 4;\n  Object.defineProperty(this, \"F\", {\n    enumerable: !1,\n    configurable: !1,\n    get: function () {\n      return e;\n    },\n    set: function (t) {\n      if (isNaN(t)) throw new Error('Invalid value \"' + t + '\" for attribute F supplied.');\n      e = t;\n    }\n  }), Object.defineProperty(this, \"showWhenPrinted\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(e, 3));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.F = K(e, 3) : this.F = Z(e, 3);\n    }\n  });\n  var r = 0;\n  Object.defineProperty(this, \"Ff\", {\n    enumerable: !1,\n    configurable: !1,\n    get: function () {\n      return r;\n    },\n    set: function (t) {\n      if (isNaN(t)) throw new Error('Invalid value \"' + t + '\" for attribute Ff supplied.');\n      r = t;\n    }\n  });\n  var n = [];\n  Object.defineProperty(this, \"Rect\", {\n    enumerable: !1,\n    configurable: !1,\n    get: function () {\n      if (0 !== n.length) return n;\n    },\n    set: function (t) {\n      n = void 0 !== t ? t : [];\n    }\n  }), Object.defineProperty(this, \"x\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return !n || isNaN(n[0]) ? 0 : n[0];\n    },\n    set: function (t) {\n      n[0] = t;\n    }\n  }), Object.defineProperty(this, \"y\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return !n || isNaN(n[1]) ? 0 : n[1];\n    },\n    set: function (t) {\n      n[1] = t;\n    }\n  }), Object.defineProperty(this, \"width\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return !n || isNaN(n[2]) ? 0 : n[2];\n    },\n    set: function (t) {\n      n[2] = t;\n    }\n  }), Object.defineProperty(this, \"height\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return !n || isNaN(n[3]) ? 0 : n[3];\n    },\n    set: function (t) {\n      n[3] = t;\n    }\n  });\n  var i = \"\";\n  Object.defineProperty(this, \"FT\", {\n    enumerable: !0,\n    configurable: !1,\n    get: function () {\n      return i;\n    },\n    set: function (t) {\n      switch (t) {\n        case \"/Btn\":\n        case \"/Tx\":\n        case \"/Ch\":\n        case \"/Sig\":\n          i = t;\n          break;\n        default:\n          throw new Error('Invalid value \"' + t + '\" for attribute FT supplied.');\n      }\n    }\n  });\n  var a = null;\n  Object.defineProperty(this, \"T\", {\n    enumerable: !0,\n    configurable: !1,\n    get: function () {\n      if (!a || a.length < 1) {\n        if (this instanceof yt) return;\n        a = \"FieldObject\" + t.FieldNum++;\n      }\n      var e = function (t) {\n        return t;\n      };\n      return this.scope && (e = this.scope.internal.getEncryptor(this.objId)), \"(\" + R(e(a)) + \")\";\n    },\n    set: function (t) {\n      a = t.toString();\n    }\n  }), Object.defineProperty(this, \"fieldName\", {\n    configurable: !0,\n    enumerable: !0,\n    get: function () {\n      return a;\n    },\n    set: function (t) {\n      a = t;\n    }\n  });\n  var o = \"helvetica\";\n  Object.defineProperty(this, \"fontName\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return o;\n    },\n    set: function (t) {\n      o = t;\n    }\n  });\n  var s = \"normal\";\n  Object.defineProperty(this, \"fontStyle\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return s;\n    },\n    set: function (t) {\n      s = t;\n    }\n  });\n  var c = 0;\n  Object.defineProperty(this, \"fontSize\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return c;\n    },\n    set: function (t) {\n      c = t;\n    }\n  });\n  var u = void 0;\n  Object.defineProperty(this, \"maxFontSize\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return void 0 === u ? 50 / D : u;\n    },\n    set: function (t) {\n      u = t;\n    }\n  });\n  var h = \"black\";\n  Object.defineProperty(this, \"color\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return h;\n    },\n    set: function (t) {\n      h = t;\n    }\n  });\n  var l = \"/F1 0 Tf 0 g\";\n  Object.defineProperty(this, \"DA\", {\n    enumerable: !0,\n    configurable: !1,\n    get: function () {\n      if (!(!l || this instanceof yt || this instanceof Nt)) return st(l, this.objId, this.scope);\n    },\n    set: function (t) {\n      t = t.toString(), l = t;\n    }\n  });\n  var f = null;\n  Object.defineProperty(this, \"DV\", {\n    enumerable: !1,\n    configurable: !1,\n    get: function () {\n      if (f) return this instanceof mt == !1 ? st(f, this.objId, this.scope) : f;\n    },\n    set: function (t) {\n      t = t.toString(), f = this instanceof mt == !1 ? \"(\" === t.substr(0, 1) ? T(t.substr(1, t.length - 2)) : T(t) : t;\n    }\n  }), Object.defineProperty(this, \"defaultValue\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return this instanceof mt == !0 ? T(f.substr(1, f.length - 1)) : f;\n    },\n    set: function (t) {\n      t = t.toString(), f = this instanceof mt == !0 ? \"/\" + t : t;\n    }\n  });\n  var d = null;\n  Object.defineProperty(this, \"_V\", {\n    enumerable: !1,\n    configurable: !1,\n    get: function () {\n      if (d) return d;\n    },\n    set: function (t) {\n      this.V = t;\n    }\n  }), Object.defineProperty(this, \"V\", {\n    enumerable: !1,\n    configurable: !1,\n    get: function () {\n      if (d) return this instanceof mt == !1 ? st(d, this.objId, this.scope) : d;\n    },\n    set: function (t) {\n      t = t.toString(), d = this instanceof mt == !1 ? \"(\" === t.substr(0, 1) ? T(t.substr(1, t.length - 2)) : T(t) : t;\n    }\n  }), Object.defineProperty(this, \"value\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return this instanceof mt == !0 ? T(d.substr(1, d.length - 1)) : d;\n    },\n    set: function (t) {\n      t = t.toString(), d = this instanceof mt == !0 ? \"/\" + t : t;\n    }\n  }), Object.defineProperty(this, \"hasAnnotation\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return this.Rect;\n    }\n  }), Object.defineProperty(this, \"Type\", {\n    enumerable: !0,\n    configurable: !1,\n    get: function () {\n      return this.hasAnnotation ? \"/Annot\" : null;\n    }\n  }), Object.defineProperty(this, \"Subtype\", {\n    enumerable: !0,\n    configurable: !1,\n    get: function () {\n      return this.hasAnnotation ? \"/Widget\" : null;\n    }\n  });\n  var p,\n    g = !1;\n  Object.defineProperty(this, \"hasAppearanceStream\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return g;\n    },\n    set: function (t) {\n      t = Boolean(t), g = t;\n    }\n  }), Object.defineProperty(this, \"page\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      if (p) return p;\n    },\n    set: function (t) {\n      p = t;\n    }\n  }), Object.defineProperty(this, \"readOnly\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 1));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 1) : this.Ff = Z(this.Ff, 1);\n    }\n  }), Object.defineProperty(this, \"required\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 2));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 2) : this.Ff = Z(this.Ff, 2);\n    }\n  }), Object.defineProperty(this, \"noExport\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 3));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 3) : this.Ff = Z(this.Ff, 3);\n    }\n  });\n  var m = null;\n  Object.defineProperty(this, \"Q\", {\n    enumerable: !0,\n    configurable: !1,\n    get: function () {\n      if (null !== m) return m;\n    },\n    set: function (t) {\n      if (-1 === [0, 1, 2].indexOf(t)) throw new Error('Invalid value \"' + t + '\" for attribute Q supplied.');\n      m = t;\n    }\n  }), Object.defineProperty(this, \"textAlign\", {\n    get: function () {\n      var t;\n      switch (m) {\n        case 0:\n        default:\n          t = \"left\";\n          break;\n        case 1:\n          t = \"center\";\n          break;\n        case 2:\n          t = \"right\";\n      }\n      return t;\n    },\n    configurable: !0,\n    enumerable: !0,\n    set: function (t) {\n      switch (t) {\n        case \"right\":\n        case 2:\n          m = 2;\n          break;\n        case \"center\":\n        case 1:\n          m = 1;\n          break;\n        case \"left\":\n        case 0:\n        default:\n          m = 0;\n      }\n    }\n  });\n};\nH(lt, ct);\nvar ft = function () {\n  lt.call(this), this.FT = \"/Ch\", this.V = \"()\", this.fontName = \"zapfdingbats\";\n  var t = 0;\n  Object.defineProperty(this, \"TI\", {\n    enumerable: !0,\n    configurable: !1,\n    get: function () {\n      return t;\n    },\n    set: function (e) {\n      t = e;\n    }\n  }), Object.defineProperty(this, \"topIndex\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return t;\n    },\n    set: function (e) {\n      t = e;\n    }\n  });\n  var e = [];\n  Object.defineProperty(this, \"Opt\", {\n    enumerable: !0,\n    configurable: !1,\n    get: function () {\n      return ot(e, this.objId, this.scope);\n    },\n    set: function (t) {\n      var r, n;\n      n = [], \"string\" == typeof (r = t) && (n = function (t, e, r) {\n        r || (r = 1);\n        for (var n, i = []; n = e.exec(t);) i.push(n[r]);\n        return i;\n      }(r, /\\((.*?)\\)/g)), e = n;\n    }\n  }), this.getOptions = function () {\n    return e;\n  }, this.setOptions = function (t) {\n    e = t, this.sort && e.sort();\n  }, this.addOption = function (t) {\n    t = (t = t || \"\").toString(), e.push(t), this.sort && e.sort();\n  }, this.removeOption = function (t, r) {\n    for (r = r || !1, t = (t = t || \"\").toString(); -1 !== e.indexOf(t) && (e.splice(e.indexOf(t), 1), !1 !== r););\n  }, Object.defineProperty(this, \"combo\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 18));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 18) : this.Ff = Z(this.Ff, 18);\n    }\n  }), Object.defineProperty(this, \"edit\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 19));\n    },\n    set: function (t) {\n      !0 === this.combo && (!0 === Boolean(t) ? this.Ff = K(this.Ff, 19) : this.Ff = Z(this.Ff, 19));\n    }\n  }), Object.defineProperty(this, \"sort\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 20));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? (this.Ff = K(this.Ff, 20), e.sort()) : this.Ff = Z(this.Ff, 20);\n    }\n  }), Object.defineProperty(this, \"multiSelect\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 22));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 22) : this.Ff = Z(this.Ff, 22);\n    }\n  }), Object.defineProperty(this, \"doNotSpellCheck\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 23));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 23) : this.Ff = Z(this.Ff, 23);\n    }\n  }), Object.defineProperty(this, \"commitOnSelChange\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 27));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 27) : this.Ff = Z(this.Ff, 27);\n    }\n  }), this.hasAppearanceStream = !1;\n};\nH(ft, lt);\nvar dt = function () {\n  ft.call(this), this.fontName = \"helvetica\", this.combo = !1;\n};\nH(dt, ft);\nvar pt = function () {\n  dt.call(this), this.combo = !0;\n};\nH(pt, dt);\nvar gt = function () {\n  pt.call(this), this.edit = !0;\n};\nH(gt, pt);\nvar mt = function () {\n  lt.call(this), this.FT = \"/Btn\", Object.defineProperty(this, \"noToggleToOff\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 15));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 15) : this.Ff = Z(this.Ff, 15);\n    }\n  }), Object.defineProperty(this, \"radio\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 16));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 16) : this.Ff = Z(this.Ff, 16);\n    }\n  }), Object.defineProperty(this, \"pushButton\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 17));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 17) : this.Ff = Z(this.Ff, 17);\n    }\n  }), Object.defineProperty(this, \"radioIsUnison\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 26));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 26) : this.Ff = Z(this.Ff, 26);\n    }\n  });\n  var e,\n    r = {};\n  Object.defineProperty(this, \"MK\", {\n    enumerable: !1,\n    configurable: !1,\n    get: function () {\n      var t = function (t) {\n        return t;\n      };\n      if (this.scope && (t = this.scope.internal.getEncryptor(this.objId)), 0 !== Object.keys(r).length) {\n        var e,\n          n = [];\n        for (e in n.push(\"<<\"), r) n.push(\"/\" + e + \" (\" + R(t(r[e])) + \")\");\n        return n.push(\">>\"), n.join(\"\\n\");\n      }\n    },\n    set: function (e) {\n      \"object\" === t(e) && (r = e);\n    }\n  }), Object.defineProperty(this, \"caption\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return r.CA || \"\";\n    },\n    set: function (t) {\n      \"string\" == typeof t && (r.CA = t);\n    }\n  }), Object.defineProperty(this, \"AS\", {\n    enumerable: !1,\n    configurable: !1,\n    get: function () {\n      return e;\n    },\n    set: function (t) {\n      e = t;\n    }\n  }), Object.defineProperty(this, \"appearanceState\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return e.substr(1, e.length - 1);\n    },\n    set: function (t) {\n      e = \"/\" + t;\n    }\n  });\n};\nH(mt, lt);\nvar vt = function () {\n  mt.call(this), this.pushButton = !0;\n};\nH(vt, mt);\nvar bt = function () {\n  mt.call(this), this.radio = !0, this.pushButton = !1;\n  var t = [];\n  Object.defineProperty(this, \"Kids\", {\n    enumerable: !0,\n    configurable: !1,\n    get: function () {\n      return t;\n    },\n    set: function (e) {\n      t = void 0 !== e ? e : [];\n    }\n  });\n};\nH(bt, mt);\nvar yt = function () {\n  var e, r;\n  lt.call(this), Object.defineProperty(this, \"Parent\", {\n    enumerable: !1,\n    configurable: !1,\n    get: function () {\n      return e;\n    },\n    set: function (t) {\n      e = t;\n    }\n  }), Object.defineProperty(this, \"optionName\", {\n    enumerable: !1,\n    configurable: !0,\n    get: function () {\n      return r;\n    },\n    set: function (t) {\n      r = t;\n    }\n  });\n  var n,\n    i = {};\n  Object.defineProperty(this, \"MK\", {\n    enumerable: !1,\n    configurable: !1,\n    get: function () {\n      var t = function (t) {\n        return t;\n      };\n      this.scope && (t = this.scope.internal.getEncryptor(this.objId));\n      var e,\n        r = [];\n      for (e in r.push(\"<<\"), i) r.push(\"/\" + e + \" (\" + R(t(i[e])) + \")\");\n      return r.push(\">>\"), r.join(\"\\n\");\n    },\n    set: function (e) {\n      \"object\" === t(e) && (i = e);\n    }\n  }), Object.defineProperty(this, \"caption\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return i.CA || \"\";\n    },\n    set: function (t) {\n      \"string\" == typeof t && (i.CA = t);\n    }\n  }), Object.defineProperty(this, \"AS\", {\n    enumerable: !1,\n    configurable: !1,\n    get: function () {\n      return n;\n    },\n    set: function (t) {\n      n = t;\n    }\n  }), Object.defineProperty(this, \"appearanceState\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return n.substr(1, n.length - 1);\n    },\n    set: function (t) {\n      n = \"/\" + t;\n    }\n  }), this.caption = \"l\", this.appearanceState = \"Off\", this._AppearanceType = At.RadioButton.Circle, this.appearanceStreamContent = this._AppearanceType.createAppearanceStream(this.optionName);\n};\nH(yt, lt), bt.prototype.setAppearance = function (t) {\n  if (!(\"createAppearanceStream\" in t) || !(\"getCA\" in t)) throw new Error(\"Couldn't assign Appearance to RadioButton. Appearance was Invalid!\");\n  for (var e in this.Kids) if (this.Kids.hasOwnProperty(e)) {\n    var r = this.Kids[e];\n    r.appearanceStreamContent = t.createAppearanceStream(r.optionName), r.caption = t.getCA();\n  }\n}, bt.prototype.createOption = function (t) {\n  var e = new yt();\n  return e.Parent = this, e.optionName = t, this.Kids.push(e), xt.call(this.scope, e), e;\n};\nvar wt = function () {\n  mt.call(this), this.fontName = \"zapfdingbats\", this.caption = \"3\", this.appearanceState = \"On\", this.value = \"On\", this.textAlign = \"center\", this.appearanceStreamContent = At.CheckBox.createAppearanceStream();\n};\nH(wt, mt);\nvar Nt = function () {\n  lt.call(this), this.FT = \"/Tx\", Object.defineProperty(this, \"multiline\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 13));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 13) : this.Ff = Z(this.Ff, 13);\n    }\n  }), Object.defineProperty(this, \"fileSelect\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 21));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 21) : this.Ff = Z(this.Ff, 21);\n    }\n  }), Object.defineProperty(this, \"doNotSpellCheck\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 23));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 23) : this.Ff = Z(this.Ff, 23);\n    }\n  }), Object.defineProperty(this, \"doNotScroll\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 24));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 24) : this.Ff = Z(this.Ff, 24);\n    }\n  }), Object.defineProperty(this, \"comb\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 25));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 25) : this.Ff = Z(this.Ff, 25);\n    }\n  }), Object.defineProperty(this, \"richText\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 26));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 26) : this.Ff = Z(this.Ff, 26);\n    }\n  });\n  var t = null;\n  Object.defineProperty(this, \"MaxLen\", {\n    enumerable: !0,\n    configurable: !1,\n    get: function () {\n      return t;\n    },\n    set: function (e) {\n      t = e;\n    }\n  }), Object.defineProperty(this, \"maxLength\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return t;\n    },\n    set: function (e) {\n      Number.isInteger(e) && (t = e);\n    }\n  }), Object.defineProperty(this, \"hasAppearanceStream\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return this.V || this.DV;\n    }\n  });\n};\nH(Nt, lt);\nvar Lt = function () {\n  Nt.call(this), Object.defineProperty(this, \"password\", {\n    enumerable: !0,\n    configurable: !0,\n    get: function () {\n      return Boolean(X(this.Ff, 14));\n    },\n    set: function (t) {\n      !0 === Boolean(t) ? this.Ff = K(this.Ff, 14) : this.Ff = Z(this.Ff, 14);\n    }\n  }), this.password = !0;\n};\nH(Lt, Nt);\nvar At = {\n  CheckBox: {\n    createAppearanceStream: function () {\n      return {\n        N: {\n          On: At.CheckBox.YesNormal\n        },\n        D: {\n          On: At.CheckBox.YesPushDown,\n          Off: At.CheckBox.OffPushDown\n        }\n      };\n    },\n    YesPushDown: function (t) {\n      var e = V(t);\n      e.scope = t.scope;\n      var r = [],\n        n = t.scope.internal.getFont(t.fontName, t.fontStyle).id,\n        i = t.scope.__private__.encodeColorString(t.color),\n        a = tt(t, t.caption);\n      return r.push(\"0.749023 g\"), r.push(\"0 0 \" + U(At.internal.getWidth(t)) + \" \" + U(At.internal.getHeight(t)) + \" re\"), r.push(\"f\"), r.push(\"BMC\"), r.push(\"q\"), r.push(\"0 0 1 rg\"), r.push(\"/\" + n + \" \" + U(a.fontSize) + \" Tf \" + i), r.push(\"BT\"), r.push(a.text), r.push(\"ET\"), r.push(\"Q\"), r.push(\"EMC\"), e.stream = r.join(\"\\n\"), e;\n    },\n    YesNormal: function (t) {\n      var e = V(t);\n      e.scope = t.scope;\n      var r = t.scope.internal.getFont(t.fontName, t.fontStyle).id,\n        n = t.scope.__private__.encodeColorString(t.color),\n        i = [],\n        a = At.internal.getHeight(t),\n        o = At.internal.getWidth(t),\n        s = tt(t, t.caption);\n      return i.push(\"1 g\"), i.push(\"0 0 \" + U(o) + \" \" + U(a) + \" re\"), i.push(\"f\"), i.push(\"q\"), i.push(\"0 0 1 rg\"), i.push(\"0 0 \" + U(o - 1) + \" \" + U(a - 1) + \" re\"), i.push(\"W\"), i.push(\"n\"), i.push(\"0 g\"), i.push(\"BT\"), i.push(\"/\" + r + \" \" + U(s.fontSize) + \" Tf \" + n), i.push(s.text), i.push(\"ET\"), i.push(\"Q\"), e.stream = i.join(\"\\n\"), e;\n    },\n    OffPushDown: function (t) {\n      var e = V(t);\n      e.scope = t.scope;\n      var r = [];\n      return r.push(\"0.749023 g\"), r.push(\"0 0 \" + U(At.internal.getWidth(t)) + \" \" + U(At.internal.getHeight(t)) + \" re\"), r.push(\"f\"), e.stream = r.join(\"\\n\"), e;\n    }\n  },\n  RadioButton: {\n    Circle: {\n      createAppearanceStream: function (t) {\n        var e = {\n          D: {\n            Off: At.RadioButton.Circle.OffPushDown\n          },\n          N: {}\n        };\n        return e.N[t] = At.RadioButton.Circle.YesNormal, e.D[t] = At.RadioButton.Circle.YesPushDown, e;\n      },\n      getCA: function () {\n        return \"l\";\n      },\n      YesNormal: function (t) {\n        var e = V(t);\n        e.scope = t.scope;\n        var r = [],\n          n = At.internal.getWidth(t) <= At.internal.getHeight(t) ? At.internal.getWidth(t) / 4 : At.internal.getHeight(t) / 4;\n        n = Number((.9 * n).toFixed(5));\n        var i = At.internal.Bezier_C,\n          a = Number((n * i).toFixed(5));\n        return r.push(\"q\"), r.push(\"1 0 0 1 \" + z(At.internal.getWidth(t) / 2) + \" \" + z(At.internal.getHeight(t) / 2) + \" cm\"), r.push(n + \" 0 m\"), r.push(n + \" \" + a + \" \" + a + \" \" + n + \" 0 \" + n + \" c\"), r.push(\"-\" + a + \" \" + n + \" -\" + n + \" \" + a + \" -\" + n + \" 0 c\"), r.push(\"-\" + n + \" -\" + a + \" -\" + a + \" -\" + n + \" 0 -\" + n + \" c\"), r.push(a + \" -\" + n + \" \" + n + \" -\" + a + \" \" + n + \" 0 c\"), r.push(\"f\"), r.push(\"Q\"), e.stream = r.join(\"\\n\"), e;\n      },\n      YesPushDown: function (t) {\n        var e = V(t);\n        e.scope = t.scope;\n        var r = [],\n          n = At.internal.getWidth(t) <= At.internal.getHeight(t) ? At.internal.getWidth(t) / 4 : At.internal.getHeight(t) / 4;\n        n = Number((.9 * n).toFixed(5));\n        var i = Number((2 * n).toFixed(5)),\n          a = Number((i * At.internal.Bezier_C).toFixed(5)),\n          o = Number((n * At.internal.Bezier_C).toFixed(5));\n        return r.push(\"0.749023 g\"), r.push(\"q\"), r.push(\"1 0 0 1 \" + z(At.internal.getWidth(t) / 2) + \" \" + z(At.internal.getHeight(t) / 2) + \" cm\"), r.push(i + \" 0 m\"), r.push(i + \" \" + a + \" \" + a + \" \" + i + \" 0 \" + i + \" c\"), r.push(\"-\" + a + \" \" + i + \" -\" + i + \" \" + a + \" -\" + i + \" 0 c\"), r.push(\"-\" + i + \" -\" + a + \" -\" + a + \" -\" + i + \" 0 -\" + i + \" c\"), r.push(a + \" -\" + i + \" \" + i + \" -\" + a + \" \" + i + \" 0 c\"), r.push(\"f\"), r.push(\"Q\"), r.push(\"0 g\"), r.push(\"q\"), r.push(\"1 0 0 1 \" + z(At.internal.getWidth(t) / 2) + \" \" + z(At.internal.getHeight(t) / 2) + \" cm\"), r.push(n + \" 0 m\"), r.push(n + \" \" + o + \" \" + o + \" \" + n + \" 0 \" + n + \" c\"), r.push(\"-\" + o + \" \" + n + \" -\" + n + \" \" + o + \" -\" + n + \" 0 c\"), r.push(\"-\" + n + \" -\" + o + \" -\" + o + \" -\" + n + \" 0 -\" + n + \" c\"), r.push(o + \" -\" + n + \" \" + n + \" -\" + o + \" \" + n + \" 0 c\"), r.push(\"f\"), r.push(\"Q\"), e.stream = r.join(\"\\n\"), e;\n      },\n      OffPushDown: function (t) {\n        var e = V(t);\n        e.scope = t.scope;\n        var r = [],\n          n = At.internal.getWidth(t) <= At.internal.getHeight(t) ? At.internal.getWidth(t) / 4 : At.internal.getHeight(t) / 4;\n        n = Number((.9 * n).toFixed(5));\n        var i = Number((2 * n).toFixed(5)),\n          a = Number((i * At.internal.Bezier_C).toFixed(5));\n        return r.push(\"0.749023 g\"), r.push(\"q\"), r.push(\"1 0 0 1 \" + z(At.internal.getWidth(t) / 2) + \" \" + z(At.internal.getHeight(t) / 2) + \" cm\"), r.push(i + \" 0 m\"), r.push(i + \" \" + a + \" \" + a + \" \" + i + \" 0 \" + i + \" c\"), r.push(\"-\" + a + \" \" + i + \" -\" + i + \" \" + a + \" -\" + i + \" 0 c\"), r.push(\"-\" + i + \" -\" + a + \" -\" + a + \" -\" + i + \" 0 -\" + i + \" c\"), r.push(a + \" -\" + i + \" \" + i + \" -\" + a + \" \" + i + \" 0 c\"), r.push(\"f\"), r.push(\"Q\"), e.stream = r.join(\"\\n\"), e;\n      }\n    },\n    Cross: {\n      createAppearanceStream: function (t) {\n        var e = {\n          D: {\n            Off: At.RadioButton.Cross.OffPushDown\n          },\n          N: {}\n        };\n        return e.N[t] = At.RadioButton.Cross.YesNormal, e.D[t] = At.RadioButton.Cross.YesPushDown, e;\n      },\n      getCA: function () {\n        return \"8\";\n      },\n      YesNormal: function (t) {\n        var e = V(t);\n        e.scope = t.scope;\n        var r = [],\n          n = At.internal.calculateCross(t);\n        return r.push(\"q\"), r.push(\"1 1 \" + U(At.internal.getWidth(t) - 2) + \" \" + U(At.internal.getHeight(t) - 2) + \" re\"), r.push(\"W\"), r.push(\"n\"), r.push(U(n.x1.x) + \" \" + U(n.x1.y) + \" m\"), r.push(U(n.x2.x) + \" \" + U(n.x2.y) + \" l\"), r.push(U(n.x4.x) + \" \" + U(n.x4.y) + \" m\"), r.push(U(n.x3.x) + \" \" + U(n.x3.y) + \" l\"), r.push(\"s\"), r.push(\"Q\"), e.stream = r.join(\"\\n\"), e;\n      },\n      YesPushDown: function (t) {\n        var e = V(t);\n        e.scope = t.scope;\n        var r = At.internal.calculateCross(t),\n          n = [];\n        return n.push(\"0.749023 g\"), n.push(\"0 0 \" + U(At.internal.getWidth(t)) + \" \" + U(At.internal.getHeight(t)) + \" re\"), n.push(\"f\"), n.push(\"q\"), n.push(\"1 1 \" + U(At.internal.getWidth(t) - 2) + \" \" + U(At.internal.getHeight(t) - 2) + \" re\"), n.push(\"W\"), n.push(\"n\"), n.push(U(r.x1.x) + \" \" + U(r.x1.y) + \" m\"), n.push(U(r.x2.x) + \" \" + U(r.x2.y) + \" l\"), n.push(U(r.x4.x) + \" \" + U(r.x4.y) + \" m\"), n.push(U(r.x3.x) + \" \" + U(r.x3.y) + \" l\"), n.push(\"s\"), n.push(\"Q\"), e.stream = n.join(\"\\n\"), e;\n      },\n      OffPushDown: function (t) {\n        var e = V(t);\n        e.scope = t.scope;\n        var r = [];\n        return r.push(\"0.749023 g\"), r.push(\"0 0 \" + U(At.internal.getWidth(t)) + \" \" + U(At.internal.getHeight(t)) + \" re\"), r.push(\"f\"), e.stream = r.join(\"\\n\"), e;\n      }\n    }\n  },\n  createDefaultAppearanceStream: function (t) {\n    var e = t.scope.internal.getFont(t.fontName, t.fontStyle).id,\n      r = t.scope.__private__.encodeColorString(t.color);\n    return \"/\" + e + \" \" + t.fontSize + \" Tf \" + r;\n  }\n};\nAt.internal = {\n  Bezier_C: .551915024494,\n  calculateCross: function (t) {\n    var e = At.internal.getWidth(t),\n      r = At.internal.getHeight(t),\n      n = Math.min(e, r);\n    return {\n      x1: {\n        x: (e - n) / 2,\n        y: (r - n) / 2 + n\n      },\n      x2: {\n        x: (e - n) / 2 + n,\n        y: (r - n) / 2\n      },\n      x3: {\n        x: (e - n) / 2,\n        y: (r - n) / 2\n      },\n      x4: {\n        x: (e - n) / 2 + n,\n        y: (r - n) / 2 + n\n      }\n    };\n  }\n}, At.internal.getWidth = function (e) {\n  var r = 0;\n  return \"object\" === t(e) && (r = W(e.Rect[2])), r;\n}, At.internal.getHeight = function (e) {\n  var r = 0;\n  return \"object\" === t(e) && (r = W(e.Rect[3])), r;\n};\nvar xt = q.addField = function (t) {\n  if (at(this, t), !(t instanceof lt)) throw new Error(\"Invalid argument passed to jsPDF.addField.\");\n  var e;\n  return (e = t).scope.internal.acroformPlugin.printedOut && (e.scope.internal.acroformPlugin.printedOut = !1, e.scope.internal.acroformPlugin.acroFormDictionaryRoot = null), e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e), t.page = t.scope.internal.getCurrentPageInfo().pageNumber, this;\n};\nq.AcroFormChoiceField = ft, q.AcroFormListBox = dt, q.AcroFormComboBox = pt, q.AcroFormEditBox = gt, q.AcroFormButton = mt, q.AcroFormPushButton = vt, q.AcroFormRadioButton = bt, q.AcroFormCheckBox = wt, q.AcroFormTextField = Nt, q.AcroFormPasswordField = Lt, q.AcroFormAppearance = At, q.AcroForm = {\n  ChoiceField: ft,\n  ListBox: dt,\n  ComboBox: pt,\n  EditBox: gt,\n  Button: mt,\n  PushButton: vt,\n  RadioButton: bt,\n  CheckBox: wt,\n  TextField: Nt,\n  PasswordField: Lt,\n  Appearance: At\n}, E.AcroForm = {\n  ChoiceField: ft,\n  ListBox: dt,\n  ComboBox: pt,\n  EditBox: gt,\n  Button: mt,\n  PushButton: vt,\n  RadioButton: bt,\n  CheckBox: wt,\n  TextField: Nt,\n  PasswordField: Lt,\n  Appearance: At\n};\nvar St = E.AcroForm;\nfunction _t(t) {\n  return t.reduce(function (t, e, r) {\n    return t[e] = r, t;\n  }, {});\n}\n!function (e) {\n  e.__addimage__ = {};\n  var r = \"UNKNOWN\",\n    n = {\n      PNG: [[137, 80, 78, 71]],\n      TIFF: [[77, 77, 0, 42], [73, 73, 42, 0]],\n      JPEG: [[255, 216, 255, 224, void 0, void 0, 74, 70, 73, 70, 0], [255, 216, 255, 225, void 0, void 0, 69, 120, 105, 102, 0, 0], [255, 216, 255, 219], [255, 216, 255, 238]],\n      JPEG2000: [[0, 0, 0, 12, 106, 80, 32, 32]],\n      GIF87a: [[71, 73, 70, 56, 55, 97]],\n      GIF89a: [[71, 73, 70, 56, 57, 97]],\n      WEBP: [[82, 73, 70, 70, void 0, void 0, void 0, void 0, 87, 69, 66, 80]],\n      BMP: [[66, 77], [66, 65], [67, 73], [67, 80], [73, 67], [80, 84]]\n    },\n    i = e.__addimage__.getImageFileTypeByImageData = function (t, e) {\n      var i,\n        a,\n        o,\n        s,\n        c,\n        u = r;\n      if (\"RGBA\" === (e = e || r) || void 0 !== t.data && t.data instanceof Uint8ClampedArray && \"height\" in t && \"width\" in t) return \"RGBA\";\n      if (x(t)) for (c in n) for (o = n[c], i = 0; i < o.length; i += 1) {\n        for (s = !0, a = 0; a < o[i].length; a += 1) if (void 0 !== o[i][a] && o[i][a] !== t[a]) {\n          s = !1;\n          break;\n        }\n        if (!0 === s) {\n          u = c;\n          break;\n        }\n      } else for (c in n) for (o = n[c], i = 0; i < o.length; i += 1) {\n        for (s = !0, a = 0; a < o[i].length; a += 1) if (void 0 !== o[i][a] && o[i][a] !== t.charCodeAt(a)) {\n          s = !1;\n          break;\n        }\n        if (!0 === s) {\n          u = c;\n          break;\n        }\n      }\n      return u === r && e !== r && (u = e), u;\n    },\n    a = function t(e) {\n      for (var r = this.internal.write, n = this.internal.putStream, i = (0, this.internal.getFilters)(); -1 !== i.indexOf(\"FlateEncode\");) i.splice(i.indexOf(\"FlateEncode\"), 1);\n      e.objectId = this.internal.newObject();\n      var a = [];\n      if (a.push({\n        key: \"Type\",\n        value: \"/XObject\"\n      }), a.push({\n        key: \"Subtype\",\n        value: \"/Image\"\n      }), a.push({\n        key: \"Width\",\n        value: e.width\n      }), a.push({\n        key: \"Height\",\n        value: e.height\n      }), e.colorSpace === b.INDEXED ? a.push({\n        key: \"ColorSpace\",\n        value: \"[/Indexed /DeviceRGB \" + (e.palette.length / 3 - 1) + \" \" + (\"sMask\" in e && void 0 !== e.sMask ? e.objectId + 2 : e.objectId + 1) + \" 0 R]\"\n      }) : (a.push({\n        key: \"ColorSpace\",\n        value: \"/\" + e.colorSpace\n      }), e.colorSpace === b.DEVICE_CMYK && a.push({\n        key: \"Decode\",\n        value: \"[1 0 1 0 1 0 1 0]\"\n      })), a.push({\n        key: \"BitsPerComponent\",\n        value: e.bitsPerComponent\n      }), \"decodeParameters\" in e && void 0 !== e.decodeParameters && a.push({\n        key: \"DecodeParms\",\n        value: \"<<\" + e.decodeParameters + \">>\"\n      }), \"transparency\" in e && Array.isArray(e.transparency)) {\n        for (var o = \"\", s = 0, c = e.transparency.length; s < c; s++) o += e.transparency[s] + \" \" + e.transparency[s] + \" \";\n        a.push({\n          key: \"Mask\",\n          value: \"[\" + o + \"]\"\n        });\n      }\n      void 0 !== e.sMask && a.push({\n        key: \"SMask\",\n        value: e.objectId + 1 + \" 0 R\"\n      });\n      var u = void 0 !== e.filter ? [\"/\" + e.filter] : void 0;\n      if (n({\n        data: e.data,\n        additionalKeyValues: a,\n        alreadyAppliedFilters: u,\n        objectId: e.objectId\n      }), r(\"endobj\"), \"sMask\" in e && void 0 !== e.sMask) {\n        var h = \"/Predictor \" + e.predictor + \" /Colors 1 /BitsPerComponent \" + e.bitsPerComponent + \" /Columns \" + e.width,\n          l = {\n            width: e.width,\n            height: e.height,\n            colorSpace: \"DeviceGray\",\n            bitsPerComponent: e.bitsPerComponent,\n            decodeParameters: h,\n            data: e.sMask\n          };\n        \"filter\" in e && (l.filter = e.filter), t.call(this, l);\n      }\n      if (e.colorSpace === b.INDEXED) {\n        var f = this.internal.newObject();\n        n({\n          data: _(new Uint8Array(e.palette)),\n          objectId: f\n        }), r(\"endobj\");\n      }\n    },\n    o = function () {\n      var t = this.internal.collections.addImage_images;\n      for (var e in t) a.call(this, t[e]);\n    },\n    s = function () {\n      var t,\n        e = this.internal.collections.addImage_images,\n        r = this.internal.write;\n      for (var n in e) r(\"/I\" + (t = e[n]).index, t.objectId, \"0\", \"R\");\n    },\n    c = function () {\n      this.internal.collections.addImage_images || (this.internal.collections.addImage_images = {}, this.internal.events.subscribe(\"putResources\", o), this.internal.events.subscribe(\"putXobjectDict\", s));\n    },\n    h = function () {\n      var t = this.internal.collections.addImage_images;\n      return c.call(this), t;\n    },\n    l = function () {\n      return Object.keys(this.internal.collections.addImage_images).length;\n    },\n    f = function (t) {\n      return \"function\" == typeof e[\"process\" + t.toUpperCase()];\n    },\n    d = function (e) {\n      return \"object\" === t(e) && 1 === e.nodeType;\n    },\n    p = function (t, r) {\n      if (\"IMG\" === t.nodeName && t.hasAttribute(\"src\")) {\n        var n = \"\" + t.getAttribute(\"src\");\n        if (0 === n.indexOf(\"data:image/\")) return u(unescape(n).split(\"base64,\").pop());\n        var i = e.loadFile(n, !0);\n        if (void 0 !== i) return i;\n      }\n      if (\"CANVAS\" === t.nodeName) {\n        if (0 === t.width || 0 === t.height) throw new Error(\"Given canvas must have data. Canvas width: \" + t.width + \", height: \" + t.height);\n        var a;\n        switch (r) {\n          case \"PNG\":\n            a = \"image/png\";\n            break;\n          case \"WEBP\":\n            a = \"image/webp\";\n            break;\n          case \"JPEG\":\n          case \"JPG\":\n          default:\n            a = \"image/jpeg\";\n        }\n        return u(t.toDataURL(a, 1).split(\"base64,\").pop());\n      }\n    },\n    g = function (t) {\n      var e = this.internal.collections.addImage_images;\n      if (e) for (var r in e) if (t === e[r].alias) return e[r];\n    },\n    m = function (t, e, r) {\n      return t || e || (t = -96, e = -96), t < 0 && (t = -1 * r.width * 72 / t / this.internal.scaleFactor), e < 0 && (e = -1 * r.height * 72 / e / this.internal.scaleFactor), 0 === t && (t = e * r.width / r.height), 0 === e && (e = t * r.height / r.width), [t, e];\n    },\n    v = function (t, e, r, n, i, a) {\n      var o = m.call(this, r, n, i),\n        s = this.internal.getCoordinateString,\n        c = this.internal.getVerticalCoordinateString,\n        u = h.call(this);\n      if (r = o[0], n = o[1], u[i.index] = i, a) {\n        a *= Math.PI / 180;\n        var l = Math.cos(a),\n          f = Math.sin(a),\n          d = function (t) {\n            return t.toFixed(4);\n          },\n          p = [d(l), d(f), d(-1 * f), d(l), 0, 0, \"cm\"];\n      }\n      this.internal.write(\"q\"), a ? (this.internal.write([1, \"0\", \"0\", 1, s(t), c(e + n), \"cm\"].join(\" \")), this.internal.write(p.join(\" \")), this.internal.write([s(r), \"0\", \"0\", s(n), \"0\", \"0\", \"cm\"].join(\" \"))) : this.internal.write([s(r), \"0\", \"0\", s(n), s(t), c(e + n), \"cm\"].join(\" \")), this.isAdvancedAPI() && this.internal.write([1, 0, 0, -1, 0, 0, \"cm\"].join(\" \")), this.internal.write(\"/I\" + i.index + \" Do\"), this.internal.write(\"Q\");\n    },\n    b = e.color_spaces = {\n      DEVICE_RGB: \"DeviceRGB\",\n      DEVICE_GRAY: \"DeviceGray\",\n      DEVICE_CMYK: \"DeviceCMYK\",\n      CAL_GREY: \"CalGray\",\n      CAL_RGB: \"CalRGB\",\n      LAB: \"Lab\",\n      ICC_BASED: \"ICCBased\",\n      INDEXED: \"Indexed\",\n      PATTERN: \"Pattern\",\n      SEPARATION: \"Separation\",\n      DEVICE_N: \"DeviceN\"\n    };\n  e.decode = {\n    DCT_DECODE: \"DCTDecode\",\n    FLATE_DECODE: \"FlateDecode\",\n    LZW_DECODE: \"LZWDecode\",\n    JPX_DECODE: \"JPXDecode\",\n    JBIG2_DECODE: \"JBIG2Decode\",\n    ASCII85_DECODE: \"ASCII85Decode\",\n    ASCII_HEX_DECODE: \"ASCIIHexDecode\",\n    RUN_LENGTH_DECODE: \"RunLengthDecode\",\n    CCITT_FAX_DECODE: \"CCITTFaxDecode\"\n  };\n  var y = e.image_compression = {\n      NONE: \"NONE\",\n      FAST: \"FAST\",\n      MEDIUM: \"MEDIUM\",\n      SLOW: \"SLOW\"\n    },\n    w = e.__addimage__.sHashCode = function (t) {\n      var e,\n        r,\n        n = 0;\n      if (\"string\" == typeof t) for (r = t.length, e = 0; e < r; e++) n = (n << 5) - n + t.charCodeAt(e), n |= 0;else if (x(t)) for (r = t.byteLength / 2, e = 0; e < r; e++) n = (n << 5) - n + t[e], n |= 0;\n      return n;\n    },\n    N = e.__addimage__.validateStringAsBase64 = function (t) {\n      (t = t || \"\").toString().trim();\n      var e = !0;\n      return 0 === t.length && (e = !1), t.length % 4 != 0 && (e = !1), !1 === /^[A-Za-z0-9+/]+$/.test(t.substr(0, t.length - 2)) && (e = !1), !1 === /^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(t.substr(-2)) && (e = !1), e;\n    },\n    L = e.__addimage__.extractImageFromDataUrl = function (t) {\n      var e = (t = t || \"\").split(\"base64,\"),\n        r = null;\n      if (2 === e.length) {\n        var n = /^data:(\\w*\\/\\w*);*(charset=(?!charset=)[\\w=-]*)*;*$/.exec(e[0]);\n        Array.isArray(n) && (r = {\n          mimeType: n[1],\n          charset: n[2],\n          data: e[1]\n        });\n      }\n      return r;\n    },\n    A = e.__addimage__.supportsArrayBuffer = function () {\n      return \"undefined\" != typeof ArrayBuffer && \"undefined\" != typeof Uint8Array;\n    };\n  e.__addimage__.isArrayBuffer = function (t) {\n    return A() && t instanceof ArrayBuffer;\n  };\n  var x = e.__addimage__.isArrayBufferView = function (t) {\n      return A() && \"undefined\" != typeof Uint32Array && (t instanceof Int8Array || t instanceof Uint8Array || \"undefined\" != typeof Uint8ClampedArray && t instanceof Uint8ClampedArray || t instanceof Int16Array || t instanceof Uint16Array || t instanceof Int32Array || t instanceof Uint32Array || t instanceof Float32Array || t instanceof Float64Array);\n    },\n    S = e.__addimage__.binaryStringToUint8Array = function (t) {\n      for (var e = t.length, r = new Uint8Array(e), n = 0; n < e; n++) r[n] = t.charCodeAt(n);\n      return r;\n    },\n    _ = e.__addimage__.arrayBufferToBinaryString = function (t) {\n      for (var e = \"\", r = x(t) ? t : new Uint8Array(t), n = 0; n < r.length; n += 8192) e += String.fromCharCode.apply(null, r.subarray(n, n + 8192));\n      return e;\n    };\n  e.addImage = function () {\n    var e, n, i, a, o, s, u, h, l;\n    if (\"number\" == typeof arguments[1] ? (n = r, i = arguments[1], a = arguments[2], o = arguments[3], s = arguments[4], u = arguments[5], h = arguments[6], l = arguments[7]) : (n = arguments[1], i = arguments[2], a = arguments[3], o = arguments[4], s = arguments[5], u = arguments[6], h = arguments[7], l = arguments[8]), \"object\" === t(e = arguments[0]) && !d(e) && \"imageData\" in e) {\n      var f = e;\n      e = f.imageData, n = f.format || n || r, i = f.x || i || 0, a = f.y || a || 0, o = f.w || f.width || o, s = f.h || f.height || s, u = f.alias || u, h = f.compression || h, l = f.rotation || f.angle || l;\n    }\n    var p = this.internal.getFilters();\n    if (void 0 === h && -1 !== p.indexOf(\"FlateEncode\") && (h = \"SLOW\"), isNaN(i) || isNaN(a)) throw new Error(\"Invalid coordinates passed to jsPDF.addImage\");\n    c.call(this);\n    var g = P.call(this, e, n, u, h);\n    return v.call(this, i, a, o, s, g, l), this;\n  };\n  var P = function (t, n, a, o) {\n      var s, c, u;\n      if (\"string\" == typeof t && i(t) === r) {\n        t = unescape(t);\n        var h = k(t, !1);\n        (\"\" !== h || void 0 !== (h = e.loadFile(t, !0))) && (t = h);\n      }\n      if (d(t) && (t = p(t, n)), n = i(t, n), !f(n)) throw new Error(\"addImage does not support files of type '\" + n + \"', please ensure that a plugin for '\" + n + \"' support is added.\");\n      if ((null == (u = a) || 0 === u.length) && (a = function (t) {\n        return \"string\" == typeof t || x(t) ? w(t) : x(t.data) ? w(t.data) : null;\n      }(t)), (s = g.call(this, a)) || (A() && (t instanceof Uint8Array || \"RGBA\" === n || (c = t, t = S(t))), s = this[\"process\" + n.toUpperCase()](t, l.call(this), a, function (t) {\n        return t && \"string\" == typeof t && (t = t.toUpperCase()), t in e.image_compression ? t : y.NONE;\n      }(o), c)), !s) throw new Error(\"An unknown error occurred whilst processing the image.\");\n      return s;\n    },\n    k = e.__addimage__.convertBase64ToBinaryString = function (t, e) {\n      var r;\n      e = \"boolean\" != typeof e || e;\n      var n,\n        i = \"\";\n      if (\"string\" == typeof t) {\n        n = null !== (r = L(t)) ? r.data : t;\n        try {\n          i = u(n);\n        } catch (t) {\n          if (e) throw N(n) ? new Error(\"atob-Error in jsPDF.convertBase64ToBinaryString \" + t.message) : new Error(\"Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString \");\n        }\n      }\n      return i;\n    };\n  e.getImageProperties = function (t) {\n    var n,\n      a,\n      o = \"\";\n    if (d(t) && (t = p(t)), \"string\" == typeof t && i(t) === r && (\"\" === (o = k(t, !1)) && (o = e.loadFile(t) || \"\"), t = o), a = i(t), !f(a)) throw new Error(\"addImage does not support files of type '\" + a + \"', please ensure that a plugin for '\" + a + \"' support is added.\");\n    if (!A() || t instanceof Uint8Array || (t = S(t)), !(n = this[\"process\" + a.toUpperCase()](t))) throw new Error(\"An unknown error occurred whilst processing the image\");\n    return n.fileType = a, n;\n  };\n}(E.API),\n/**\n * @license\n * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv\n *\n * Licensed under the MIT License.\n * http://opensource.org/licenses/mit-license\n */\nfunction (t) {\n  var e = function (t) {\n    if (void 0 !== t && \"\" != t) return !0;\n  };\n  E.API.events.push([\"addPage\", function (t) {\n    this.internal.getPageInfo(t.pageNumber).pageContext.annotations = [];\n  }]), t.events.push([\"putPage\", function (t) {\n    for (var r, n, i, a = this.internal.getCoordinateString, o = this.internal.getVerticalCoordinateString, s = this.internal.getPageInfoByObjId(t.objId), c = t.pageContext.annotations, u = !1, h = 0; h < c.length && !u; h++) switch ((r = c[h]).type) {\n      case \"link\":\n        (e(r.options.url) || e(r.options.pageNumber)) && (u = !0);\n        break;\n      case \"reference\":\n      case \"text\":\n      case \"freetext\":\n        u = !0;\n    }\n    if (0 != u) {\n      this.internal.write(\"/Annots [\");\n      for (var l = 0; l < c.length; l++) {\n        r = c[l];\n        var f = this.internal.pdfEscape,\n          d = this.internal.getEncryptor(t.objId);\n        switch (r.type) {\n          case \"reference\":\n            this.internal.write(\" \" + r.object.objId + \" 0 R \");\n            break;\n          case \"text\":\n            var p = this.internal.newAdditionalObject(),\n              g = this.internal.newAdditionalObject(),\n              m = this.internal.getEncryptor(p.objId),\n              v = r.title || \"Note\";\n            i = \"<</Type /Annot /Subtype /Text \" + (n = \"/Rect [\" + a(r.bounds.x) + \" \" + o(r.bounds.y + r.bounds.h) + \" \" + a(r.bounds.x + r.bounds.w) + \" \" + o(r.bounds.y) + \"] \") + \"/Contents (\" + f(m(r.contents)) + \")\", i += \" /Popup \" + g.objId + \" 0 R\", i += \" /P \" + s.objId + \" 0 R\", i += \" /T (\" + f(m(v)) + \") >>\", p.content = i;\n            var b = p.objId + \" 0 R\";\n            i = \"<</Type /Annot /Subtype /Popup \" + (n = \"/Rect [\" + a(r.bounds.x + 30) + \" \" + o(r.bounds.y + r.bounds.h) + \" \" + a(r.bounds.x + r.bounds.w + 30) + \" \" + o(r.bounds.y) + \"] \") + \" /Parent \" + b, r.open && (i += \" /Open true\"), i += \" >>\", g.content = i, this.internal.write(p.objId, \"0 R\", g.objId, \"0 R\");\n            break;\n          case \"freetext\":\n            n = \"/Rect [\" + a(r.bounds.x) + \" \" + o(r.bounds.y) + \" \" + a(r.bounds.x + r.bounds.w) + \" \" + o(r.bounds.y + r.bounds.h) + \"] \";\n            var y = r.color || \"#000000\";\n            i = \"<</Type /Annot /Subtype /FreeText \" + n + \"/Contents (\" + f(d(r.contents)) + \")\", i += \" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#\" + y + \")\", i += \" /Border [0 0 0]\", i += \" >>\", this.internal.write(i);\n            break;\n          case \"link\":\n            if (r.options.name) {\n              var w = this.annotations._nameMap[r.options.name];\n              r.options.pageNumber = w.page, r.options.top = w.y;\n            } else r.options.top || (r.options.top = 0);\n            if (n = \"/Rect [\" + r.finalBounds.x + \" \" + r.finalBounds.y + \" \" + r.finalBounds.w + \" \" + r.finalBounds.h + \"] \", i = \"\", r.options.url) i = \"<</Type /Annot /Subtype /Link \" + n + \"/Border [0 0 0] /A <</S /URI /URI (\" + f(d(r.options.url)) + \") >>\";else if (r.options.pageNumber) {\n              switch (i = \"<</Type /Annot /Subtype /Link \" + n + \"/Border [0 0 0] /Dest [\" + this.internal.getPageInfo(r.options.pageNumber).objId + \" 0 R\", r.options.magFactor = r.options.magFactor || \"XYZ\", r.options.magFactor) {\n                case \"Fit\":\n                  i += \" /Fit]\";\n                  break;\n                case \"FitH\":\n                  i += \" /FitH \" + r.options.top + \"]\";\n                  break;\n                case \"FitV\":\n                  r.options.left = r.options.left || 0, i += \" /FitV \" + r.options.left + \"]\";\n                  break;\n                case \"XYZ\":\n                default:\n                  var N = o(r.options.top);\n                  r.options.left = r.options.left || 0, void 0 === r.options.zoom && (r.options.zoom = 0), i += \" /XYZ \" + r.options.left + \" \" + N + \" \" + r.options.zoom + \"]\";\n              }\n            }\n            \"\" != i && (i += \" >>\", this.internal.write(i));\n        }\n      }\n      this.internal.write(\"]\");\n    }\n  }]), t.createAnnotation = function (t) {\n    var e = this.internal.getCurrentPageInfo();\n    switch (t.type) {\n      case \"link\":\n        this.link(t.bounds.x, t.bounds.y, t.bounds.w, t.bounds.h, t);\n        break;\n      case \"text\":\n      case \"freetext\":\n        e.pageContext.annotations.push(t);\n    }\n  }, t.link = function (t, e, r, n, i) {\n    var a = this.internal.getCurrentPageInfo(),\n      o = this.internal.getCoordinateString,\n      s = this.internal.getVerticalCoordinateString;\n    a.pageContext.annotations.push({\n      finalBounds: {\n        x: o(t),\n        y: s(e),\n        w: o(t + r),\n        h: s(e + n)\n      },\n      options: i,\n      type: \"link\"\n    });\n  }, t.textWithLink = function (t, e, r, n) {\n    var i,\n      a,\n      o = this.getTextWidth(t),\n      s = this.internal.getLineHeight() / this.internal.scaleFactor;\n    if (void 0 !== n.maxWidth) {\n      a = n.maxWidth;\n      var c = this.splitTextToSize(t, a).length;\n      i = Math.ceil(s * c);\n    } else a = o, i = s;\n    return this.text(t, e, r, n), r += .2 * s, \"center\" === n.align && (e -= o / 2), \"right\" === n.align && (e -= o), this.link(e, r - s, a, i, n), o;\n  }, t.getTextWidth = function (t) {\n    var e = this.internal.getFontSize();\n    return this.getStringUnitWidth(t) * e / this.internal.scaleFactor;\n  };\n}(E.API),\n/**\n * @license\n * Copyright (c) 2017 Aras Abbasi\n *\n * Licensed under the MIT License.\n * http://opensource.org/licenses/mit-license\n */\nfunction (t) {\n  var e = {\n      1569: [65152],\n      1570: [65153, 65154],\n      1571: [65155, 65156],\n      1572: [65157, 65158],\n      1573: [65159, 65160],\n      1574: [65161, 65162, 65163, 65164],\n      1575: [65165, 65166],\n      1576: [65167, 65168, 65169, 65170],\n      1577: [65171, 65172],\n      1578: [65173, 65174, 65175, 65176],\n      1579: [65177, 65178, 65179, 65180],\n      1580: [65181, 65182, 65183, 65184],\n      1581: [65185, 65186, 65187, 65188],\n      1582: [65189, 65190, 65191, 65192],\n      1583: [65193, 65194],\n      1584: [65195, 65196],\n      1585: [65197, 65198],\n      1586: [65199, 65200],\n      1587: [65201, 65202, 65203, 65204],\n      1588: [65205, 65206, 65207, 65208],\n      1589: [65209, 65210, 65211, 65212],\n      1590: [65213, 65214, 65215, 65216],\n      1591: [65217, 65218, 65219, 65220],\n      1592: [65221, 65222, 65223, 65224],\n      1593: [65225, 65226, 65227, 65228],\n      1594: [65229, 65230, 65231, 65232],\n      1601: [65233, 65234, 65235, 65236],\n      1602: [65237, 65238, 65239, 65240],\n      1603: [65241, 65242, 65243, 65244],\n      1604: [65245, 65246, 65247, 65248],\n      1605: [65249, 65250, 65251, 65252],\n      1606: [65253, 65254, 65255, 65256],\n      1607: [65257, 65258, 65259, 65260],\n      1608: [65261, 65262],\n      1609: [65263, 65264, 64488, 64489],\n      1610: [65265, 65266, 65267, 65268],\n      1649: [64336, 64337],\n      1655: [64477],\n      1657: [64358, 64359, 64360, 64361],\n      1658: [64350, 64351, 64352, 64353],\n      1659: [64338, 64339, 64340, 64341],\n      1662: [64342, 64343, 64344, 64345],\n      1663: [64354, 64355, 64356, 64357],\n      1664: [64346, 64347, 64348, 64349],\n      1667: [64374, 64375, 64376, 64377],\n      1668: [64370, 64371, 64372, 64373],\n      1670: [64378, 64379, 64380, 64381],\n      1671: [64382, 64383, 64384, 64385],\n      1672: [64392, 64393],\n      1676: [64388, 64389],\n      1677: [64386, 64387],\n      1678: [64390, 64391],\n      1681: [64396, 64397],\n      1688: [64394, 64395],\n      1700: [64362, 64363, 64364, 64365],\n      1702: [64366, 64367, 64368, 64369],\n      1705: [64398, 64399, 64400, 64401],\n      1709: [64467, 64468, 64469, 64470],\n      1711: [64402, 64403, 64404, 64405],\n      1713: [64410, 64411, 64412, 64413],\n      1715: [64406, 64407, 64408, 64409],\n      1722: [64414, 64415],\n      1723: [64416, 64417, 64418, 64419],\n      1726: [64426, 64427, 64428, 64429],\n      1728: [64420, 64421],\n      1729: [64422, 64423, 64424, 64425],\n      1733: [64480, 64481],\n      1734: [64473, 64474],\n      1735: [64471, 64472],\n      1736: [64475, 64476],\n      1737: [64482, 64483],\n      1739: [64478, 64479],\n      1740: [64508, 64509, 64510, 64511],\n      1744: [64484, 64485, 64486, 64487],\n      1746: [64430, 64431],\n      1747: [64432, 64433]\n    },\n    r = {\n      65247: {\n        65154: 65269,\n        65156: 65271,\n        65160: 65273,\n        65166: 65275\n      },\n      65248: {\n        65154: 65270,\n        65156: 65272,\n        65160: 65274,\n        65166: 65276\n      },\n      65165: {\n        65247: {\n          65248: {\n            65258: 65010\n          }\n        }\n      },\n      1617: {\n        1612: 64606,\n        1613: 64607,\n        1614: 64608,\n        1615: 64609,\n        1616: 64610\n      }\n    },\n    n = {\n      1612: 64606,\n      1613: 64607,\n      1614: 64608,\n      1615: 64609,\n      1616: 64610\n    },\n    i = [1570, 1571, 1573, 1575];\n  t.__arabicParser__ = {};\n  var a = t.__arabicParser__.isInArabicSubstitutionA = function (t) {\n      return void 0 !== e[t.charCodeAt(0)];\n    },\n    o = t.__arabicParser__.isArabicLetter = function (t) {\n      return \"string\" == typeof t && /^[\\u0600-\\u06FF\\u0750-\\u077F\\u08A0-\\u08FF\\uFB50-\\uFDFF\\uFE70-\\uFEFF]+$/.test(t);\n    },\n    s = t.__arabicParser__.isArabicEndLetter = function (t) {\n      return o(t) && a(t) && e[t.charCodeAt(0)].length <= 2;\n    },\n    c = t.__arabicParser__.isArabicAlfLetter = function (t) {\n      return o(t) && i.indexOf(t.charCodeAt(0)) >= 0;\n    };\n  t.__arabicParser__.arabicLetterHasIsolatedForm = function (t) {\n    return o(t) && a(t) && e[t.charCodeAt(0)].length >= 1;\n  };\n  var u = t.__arabicParser__.arabicLetterHasFinalForm = function (t) {\n    return o(t) && a(t) && e[t.charCodeAt(0)].length >= 2;\n  };\n  t.__arabicParser__.arabicLetterHasInitialForm = function (t) {\n    return o(t) && a(t) && e[t.charCodeAt(0)].length >= 3;\n  };\n  var h = t.__arabicParser__.arabicLetterHasMedialForm = function (t) {\n      return o(t) && a(t) && 4 == e[t.charCodeAt(0)].length;\n    },\n    l = t.__arabicParser__.resolveLigatures = function (t) {\n      var e = 0,\n        n = r,\n        i = \"\",\n        a = 0;\n      for (e = 0; e < t.length; e += 1) void 0 !== n[t.charCodeAt(e)] ? (a++, \"number\" == typeof (n = n[t.charCodeAt(e)]) && (i += String.fromCharCode(n), n = r, a = 0), e === t.length - 1 && (n = r, i += t.charAt(e - (a - 1)), e -= a - 1, a = 0)) : (n = r, i += t.charAt(e - a), e -= a, a = 0);\n      return i;\n    };\n  t.__arabicParser__.isArabicDiacritic = function (t) {\n    return void 0 !== t && void 0 !== n[t.charCodeAt(0)];\n  };\n  var f = t.__arabicParser__.getCorrectForm = function (t, e, r) {\n      return o(t) ? !1 === a(t) ? -1 : !u(t) || !o(e) && !o(r) || !o(r) && s(e) || s(t) && !o(e) || s(t) && c(e) || s(t) && s(e) ? 0 : h(t) && o(e) && !s(e) && o(r) && u(r) ? 3 : s(t) || !o(r) ? 1 : 2 : -1;\n    },\n    d = function (t) {\n      var r = 0,\n        n = 0,\n        i = 0,\n        a = \"\",\n        s = \"\",\n        c = \"\",\n        u = (t = t || \"\").split(\"\\\\s+\"),\n        h = [];\n      for (r = 0; r < u.length; r += 1) {\n        for (h.push(\"\"), n = 0; n < u[r].length; n += 1) a = u[r][n], s = u[r][n - 1], c = u[r][n + 1], o(a) ? (i = f(a, s, c), h[r] += -1 !== i ? String.fromCharCode(e[a.charCodeAt(0)][i]) : a) : h[r] += a;\n        h[r] = l(h[r]);\n      }\n      return h.join(\" \");\n    },\n    p = t.__arabicParser__.processArabic = t.processArabic = function () {\n      var t,\n        e = \"string\" == typeof arguments[0] ? arguments[0] : arguments[0].text,\n        r = [];\n      if (Array.isArray(e)) {\n        var n = 0;\n        for (r = [], n = 0; n < e.length; n += 1) Array.isArray(e[n]) ? r.push([d(e[n][0]), e[n][1], e[n][2]]) : r.push([d(e[n])]);\n        t = r;\n      } else t = d(e);\n      return \"string\" == typeof arguments[0] ? t : (arguments[0].text = t, arguments[0]);\n    };\n  t.events.push([\"preProcessText\", p]);\n}(E.API), E.API.autoPrint = function (t) {\n  var e;\n  switch ((t = t || {}).variant = t.variant || \"non-conform\", t.variant) {\n    case \"javascript\":\n      this.addJS(\"print({});\");\n      break;\n    case \"non-conform\":\n    default:\n      this.internal.events.subscribe(\"postPutResources\", function () {\n        e = this.internal.newObject(), this.internal.out(\"<<\"), this.internal.out(\"/S /Named\"), this.internal.out(\"/Type /Action\"), this.internal.out(\"/N /Print\"), this.internal.out(\">>\"), this.internal.out(\"endobj\");\n      }), this.internal.events.subscribe(\"putCatalog\", function () {\n        this.internal.out(\"/OpenAction \" + e + \" 0 R\");\n      });\n  }\n  return this;\n},\n/**\n * @license\n * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv\n *\n * Licensed under the MIT License.\n * http://opensource.org/licenses/mit-license\n */\nfunction (t) {\n  var e = function () {\n    var t = void 0;\n    Object.defineProperty(this, \"pdf\", {\n      get: function () {\n        return t;\n      },\n      set: function (e) {\n        t = e;\n      }\n    });\n    var e = 150;\n    Object.defineProperty(this, \"width\", {\n      get: function () {\n        return e;\n      },\n      set: function (t) {\n        e = isNaN(t) || !1 === Number.isInteger(t) || t < 0 ? 150 : t, this.getContext(\"2d\").pageWrapXEnabled && (this.getContext(\"2d\").pageWrapX = e + 1);\n      }\n    });\n    var r = 300;\n    Object.defineProperty(this, \"height\", {\n      get: function () {\n        return r;\n      },\n      set: function (t) {\n        r = isNaN(t) || !1 === Number.isInteger(t) || t < 0 ? 300 : t, this.getContext(\"2d\").pageWrapYEnabled && (this.getContext(\"2d\").pageWrapY = r + 1);\n      }\n    });\n    var n = [];\n    Object.defineProperty(this, \"childNodes\", {\n      get: function () {\n        return n;\n      },\n      set: function (t) {\n        n = t;\n      }\n    });\n    var i = {};\n    Object.defineProperty(this, \"style\", {\n      get: function () {\n        return i;\n      },\n      set: function (t) {\n        i = t;\n      }\n    }), Object.defineProperty(this, \"parentNode\", {});\n  };\n  e.prototype.getContext = function (t, e) {\n    var r;\n    if (\"2d\" !== (t = t || \"2d\")) return null;\n    for (r in e) this.pdf.context2d.hasOwnProperty(r) && (this.pdf.context2d[r] = e[r]);\n    return this.pdf.context2d._canvas = this, this.pdf.context2d;\n  }, e.prototype.toDataURL = function () {\n    throw new Error(\"toDataURL is not implemented.\");\n  }, t.events.push([\"initialized\", function () {\n    this.canvas = new e(), this.canvas.pdf = this;\n  }]);\n}(E.API), function (e) {\n  var r = {\n      left: 0,\n      top: 0,\n      bottom: 0,\n      right: 0\n    },\n    n = !1,\n    i = function () {\n      void 0 === this.internal.__cell__ && (this.internal.__cell__ = {}, this.internal.__cell__.padding = 3, this.internal.__cell__.headerFunction = void 0, this.internal.__cell__.margins = Object.assign({}, r), this.internal.__cell__.margins.width = this.getPageWidth(), a.call(this));\n    },\n    a = function () {\n      this.internal.__cell__.lastCell = new o(), this.internal.__cell__.pages = 1;\n    },\n    o = function () {\n      var t = arguments[0];\n      Object.defineProperty(this, \"x\", {\n        enumerable: !0,\n        get: function () {\n          return t;\n        },\n        set: function (e) {\n          t = e;\n        }\n      });\n      var e = arguments[1];\n      Object.defineProperty(this, \"y\", {\n        enumerable: !0,\n        get: function () {\n          return e;\n        },\n        set: function (t) {\n          e = t;\n        }\n      });\n      var r = arguments[2];\n      Object.defineProperty(this, \"width\", {\n        enumerable: !0,\n        get: function () {\n          return r;\n        },\n        set: function (t) {\n          r = t;\n        }\n      });\n      var n = arguments[3];\n      Object.defineProperty(this, \"height\", {\n        enumerable: !0,\n        get: function () {\n          return n;\n        },\n        set: function (t) {\n          n = t;\n        }\n      });\n      var i = arguments[4];\n      Object.defineProperty(this, \"text\", {\n        enumerable: !0,\n        get: function () {\n          return i;\n        },\n        set: function (t) {\n          i = t;\n        }\n      });\n      var a = arguments[5];\n      Object.defineProperty(this, \"lineNumber\", {\n        enumerable: !0,\n        get: function () {\n          return a;\n        },\n        set: function (t) {\n          a = t;\n        }\n      });\n      var o = arguments[6];\n      return Object.defineProperty(this, \"align\", {\n        enumerable: !0,\n        get: function () {\n          return o;\n        },\n        set: function (t) {\n          o = t;\n        }\n      }), this;\n    };\n  o.prototype.clone = function () {\n    return new o(this.x, this.y, this.width, this.height, this.text, this.lineNumber, this.align);\n  }, o.prototype.toArray = function () {\n    return [this.x, this.y, this.width, this.height, this.text, this.lineNumber, this.align];\n  }, e.setHeaderFunction = function (t) {\n    return i.call(this), this.internal.__cell__.headerFunction = \"function\" == typeof t ? t : void 0, this;\n  }, e.getTextDimensions = function (t, e) {\n    i.call(this);\n    var r = (e = e || {}).fontSize || this.getFontSize(),\n      n = e.font || this.getFont(),\n      a = e.scaleFactor || this.internal.scaleFactor,\n      o = 0,\n      s = 0,\n      c = 0,\n      u = this;\n    if (!Array.isArray(t) && \"string\" != typeof t) {\n      if (\"number\" != typeof t) throw new Error(\"getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.\");\n      t = String(t);\n    }\n    var h = e.maxWidth;\n    h > 0 ? \"string\" == typeof t ? t = this.splitTextToSize(t, h) : \"[object Array]\" === Object.prototype.toString.call(t) && (t = t.reduce(function (t, e) {\n      return t.concat(u.splitTextToSize(e, h));\n    }, [])) : t = Array.isArray(t) ? t : [t];\n    for (var l = 0; l < t.length; l++) o < (c = this.getStringUnitWidth(t[l], {\n      font: n\n    }) * r) && (o = c);\n    return 0 !== o && (s = t.length), {\n      w: o /= a,\n      h: Math.max((s * r * this.getLineHeightFactor() - r * (this.getLineHeightFactor() - 1)) / a, 0)\n    };\n  }, e.cellAddPage = function () {\n    i.call(this), this.addPage();\n    var t = this.internal.__cell__.margins || r;\n    return this.internal.__cell__.lastCell = new o(t.left, t.top, void 0, void 0), this.internal.__cell__.pages += 1, this;\n  };\n  var s = e.cell = function () {\n    var t;\n    t = arguments[0] instanceof o ? arguments[0] : new o(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]), i.call(this);\n    var e = this.internal.__cell__.lastCell,\n      a = this.internal.__cell__.padding,\n      s = this.internal.__cell__.margins || r,\n      c = this.internal.__cell__.tableHeaderRow,\n      u = this.internal.__cell__.printHeaders;\n    return void 0 !== e.lineNumber && (e.lineNumber === t.lineNumber ? (t.x = (e.x || 0) + (e.width || 0), t.y = e.y || 0) : e.y + e.height + t.height + s.bottom > this.getPageHeight() ? (this.cellAddPage(), t.y = s.top, u && c && (this.printHeaderRow(t.lineNumber, !0), t.y += c[0].height)) : t.y = e.y + e.height || t.y), void 0 !== t.text[0] && (this.rect(t.x, t.y, t.width, t.height, !0 === n ? \"FD\" : void 0), \"right\" === t.align ? this.text(t.text, t.x + t.width - a, t.y + a, {\n      align: \"right\",\n      baseline: \"top\"\n    }) : \"center\" === t.align ? this.text(t.text, t.x + t.width / 2, t.y + a, {\n      align: \"center\",\n      baseline: \"top\",\n      maxWidth: t.width - a - a\n    }) : this.text(t.text, t.x + a, t.y + a, {\n      align: \"left\",\n      baseline: \"top\",\n      maxWidth: t.width - a - a\n    })), this.internal.__cell__.lastCell = t, this;\n  };\n  e.table = function (e, n, u, h, l) {\n    if (i.call(this), !u) throw new Error(\"No data for PDF table.\");\n    var f,\n      d,\n      p,\n      g,\n      m = [],\n      v = [],\n      b = [],\n      y = {},\n      w = {},\n      N = [],\n      L = [],\n      A = (l = l || {}).autoSize || !1,\n      x = !1 !== l.printHeaders,\n      S = l.css && void 0 !== l.css[\"font-size\"] ? 16 * l.css[\"font-size\"] : l.fontSize || 12,\n      _ = l.margins || Object.assign({\n        width: this.getPageWidth()\n      }, r),\n      P = \"number\" == typeof l.padding ? l.padding : 3,\n      k = l.headerBackgroundColor || \"#c8c8c8\",\n      I = l.headerTextColor || \"#000\";\n    if (a.call(this), this.internal.__cell__.printHeaders = x, this.internal.__cell__.margins = _, this.internal.__cell__.table_font_size = S, this.internal.__cell__.padding = P, this.internal.__cell__.headerBackgroundColor = k, this.internal.__cell__.headerTextColor = I, this.setFontSize(S), null == h) v = m = Object.keys(u[0]), b = m.map(function () {\n      return \"left\";\n    });else if (Array.isArray(h) && \"object\" === t(h[0])) for (m = h.map(function (t) {\n      return t.name;\n    }), v = h.map(function (t) {\n      return t.prompt || t.name || \"\";\n    }), b = h.map(function (t) {\n      return t.align || \"left\";\n    }), f = 0; f < h.length; f += 1) w[h[f].name] = h[f].width * (19.049976 / 25.4);else Array.isArray(h) && \"string\" == typeof h[0] && (v = m = h, b = m.map(function () {\n      return \"left\";\n    }));\n    if (A || Array.isArray(h) && \"string\" == typeof h[0]) for (f = 0; f < m.length; f += 1) {\n      for (y[g = m[f]] = u.map(function (t) {\n        return t[g];\n      }), this.setFont(void 0, \"bold\"), N.push(this.getTextDimensions(v[f], {\n        fontSize: this.internal.__cell__.table_font_size,\n        scaleFactor: this.internal.scaleFactor\n      }).w), d = y[g], this.setFont(void 0, \"normal\"), p = 0; p < d.length; p += 1) N.push(this.getTextDimensions(d[p], {\n        fontSize: this.internal.__cell__.table_font_size,\n        scaleFactor: this.internal.scaleFactor\n      }).w);\n      w[g] = Math.max.apply(null, N) + P + P, N = [];\n    }\n    if (x) {\n      var F = {};\n      for (f = 0; f < m.length; f += 1) F[m[f]] = {}, F[m[f]].text = v[f], F[m[f]].align = b[f];\n      var C = c.call(this, F, w);\n      L = m.map(function (t) {\n        return new o(e, n, w[t], C, F[t].text, void 0, F[t].align);\n      }), this.setTableHeaderRow(L), this.printHeaderRow(1, !1);\n    }\n    var j = h.reduce(function (t, e) {\n      return t[e.name] = e.align, t;\n    }, {});\n    for (f = 0; f < u.length; f += 1) {\n      \"rowStart\" in l && l.rowStart instanceof Function && l.rowStart({\n        row: f,\n        data: u[f]\n      }, this);\n      var O = c.call(this, u[f], w);\n      for (p = 0; p < m.length; p += 1) {\n        var B = u[f][m[p]];\n        \"cellStart\" in l && l.cellStart instanceof Function && l.cellStart({\n          row: f,\n          col: p,\n          data: B\n        }, this), s.call(this, new o(e, n, w[m[p]], O, B, f + 2, j[m[p]]));\n      }\n    }\n    return this.internal.__cell__.table_x = e, this.internal.__cell__.table_y = n, this;\n  };\n  var c = function (t, e) {\n    var r = this.internal.__cell__.padding,\n      n = this.internal.__cell__.table_font_size,\n      i = this.internal.scaleFactor;\n    return Object.keys(t).map(function (n) {\n      var i = t[n];\n      return this.splitTextToSize(i.hasOwnProperty(\"text\") ? i.text : i, e[n] - r - r);\n    }, this).map(function (t) {\n      return this.getLineHeightFactor() * t.length * n / i + r + r;\n    }, this).reduce(function (t, e) {\n      return Math.max(t, e);\n    }, 0);\n  };\n  e.setTableHeaderRow = function (t) {\n    i.call(this), this.internal.__cell__.tableHeaderRow = t;\n  }, e.printHeaderRow = function (t, e) {\n    if (i.call(this), !this.internal.__cell__.tableHeaderRow) throw new Error(\"Property tableHeaderRow does not exist.\");\n    var r;\n    if (n = !0, \"function\" == typeof this.internal.__cell__.headerFunction) {\n      var a = this.internal.__cell__.headerFunction(this, this.internal.__cell__.pages);\n      this.internal.__cell__.lastCell = new o(a[0], a[1], a[2], a[3], void 0, -1);\n    }\n    this.setFont(void 0, \"bold\");\n    for (var c = [], u = 0; u < this.internal.__cell__.tableHeaderRow.length; u += 1) {\n      r = this.internal.__cell__.tableHeaderRow[u].clone(), e && (r.y = this.internal.__cell__.margins.top || 0, c.push(r)), r.lineNumber = t;\n      var h = this.getTextColor();\n      this.setTextColor(this.internal.__cell__.headerTextColor), this.setFillColor(this.internal.__cell__.headerBackgroundColor), s.call(this, r), this.setTextColor(h);\n    }\n    c.length > 0 && this.setTableHeaderRow(c), this.setFont(void 0, \"normal\"), n = !1;\n  };\n}(E.API);\nvar Pt = {\n    italic: [\"italic\", \"oblique\", \"normal\"],\n    oblique: [\"oblique\", \"italic\", \"normal\"],\n    normal: [\"normal\", \"oblique\", \"italic\"]\n  },\n  kt = [\"ultra-condensed\", \"extra-condensed\", \"condensed\", \"semi-condensed\", \"normal\", \"semi-expanded\", \"expanded\", \"extra-expanded\", \"ultra-expanded\"],\n  It = _t(kt),\n  Ft = [100, 200, 300, 400, 500, 600, 700, 800, 900],\n  Ct = _t(Ft);\nfunction jt(t) {\n  var e = t.family.replace(/\"|'/g, \"\").toLowerCase(),\n    r = function (t) {\n      return Pt[t = t || \"normal\"] ? t : \"normal\";\n    }(t.style),\n    n = function (t) {\n      if (!t) return 400;\n      if (\"number\" == typeof t) return t >= 100 && t <= 900 && t % 100 == 0 ? t : 400;\n      if (/^\\d00$/.test(t)) return parseInt(t);\n      switch (t) {\n        case \"bold\":\n          return 700;\n        case \"normal\":\n        default:\n          return 400;\n      }\n    }(t.weight),\n    i = function (t) {\n      return \"number\" == typeof It[t = t || \"normal\"] ? t : \"normal\";\n    }(t.stretch);\n  return {\n    family: e,\n    style: r,\n    weight: n,\n    stretch: i,\n    src: t.src || [],\n    ref: t.ref || {\n      name: e,\n      style: [i, r, n].join(\" \")\n    }\n  };\n}\nfunction Ot(t, e, r, n) {\n  var i;\n  for (i = r; i >= 0 && i < e.length; i += n) if (t[e[i]]) return t[e[i]];\n  for (i = r; i >= 0 && i < e.length; i -= n) if (t[e[i]]) return t[e[i]];\n}\nvar Bt = {\n    \"sans-serif\": \"helvetica\",\n    fixed: \"courier\",\n    monospace: \"courier\",\n    terminal: \"courier\",\n    cursive: \"times\",\n    fantasy: \"times\",\n    serif: \"times\"\n  },\n  Mt = {\n    caption: \"times\",\n    icon: \"times\",\n    menu: \"times\",\n    \"message-box\": \"times\",\n    \"small-caption\": \"times\",\n    \"status-bar\": \"times\"\n  };\nfunction Et(t) {\n  return [t.stretch, t.style, t.weight, t.family].join(\" \");\n}\nfunction qt(t, e, r) {\n  for (var n = (r = r || {}).defaultFontFamily || \"times\", i = Object.assign({}, Bt, r.genericFontFamilies || {}), a = null, o = null, s = 0; s < e.length; ++s) if (i[(a = jt(e[s])).family] && (a.family = i[a.family]), t.hasOwnProperty(a.family)) {\n    o = t[a.family];\n    break;\n  }\n  if (!(o = o || t[n])) throw new Error(\"Could not find a font-family for the rule '\" + Et(a) + \"' and default family '\" + n + \"'.\");\n  if (o = function (t, e) {\n    if (e[t]) return e[t];\n    var r = It[t],\n      n = r <= It.normal ? -1 : 1,\n      i = Ot(e, kt, r, n);\n    if (!i) throw new Error(\"Could not find a matching font-stretch value for \" + t);\n    return i;\n  }(a.stretch, o), o = function (t, e) {\n    if (e[t]) return e[t];\n    for (var r = Pt[t], n = 0; n < r.length; ++n) if (e[r[n]]) return e[r[n]];\n    throw new Error(\"Could not find a matching font-style for \" + t);\n  }(a.style, o), !(o = function (t, e) {\n    if (e[t]) return e[t];\n    if (400 === t && e[500]) return e[500];\n    if (500 === t && e[400]) return e[400];\n    var r = Ct[t],\n      n = Ot(e, Ft, r, t < 400 ? -1 : 1);\n    if (!n) throw new Error(\"Could not find a matching font-weight for value \" + t);\n    return n;\n  }(a.weight, o))) throw new Error(\"Failed to resolve a font for the rule '\" + Et(a) + \"'.\");\n  return o;\n}\nfunction Dt(t) {\n  return t.trimLeft();\n}\nfunction Rt(t, e) {\n  for (var r = 0; r < t.length;) {\n    if (t.charAt(r) === e) return [t.substring(0, r), t.substring(r + 1)];\n    r += 1;\n  }\n  return null;\n}\nfunction Tt(t) {\n  var e = t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);\n  return null === e ? null : [e[0], t.substring(e[0].length)];\n}\nvar Ut,\n  zt,\n  Ht,\n  Wt = [\"times\"];\n!function (e) {\n  var r,\n    n,\n    i,\n    o,\n    s,\n    c,\n    u,\n    h,\n    l,\n    d = function (t) {\n      return t = t || {}, this.isStrokeTransparent = t.isStrokeTransparent || !1, this.strokeOpacity = t.strokeOpacity || 1, this.strokeStyle = t.strokeStyle || \"#000000\", this.fillStyle = t.fillStyle || \"#000000\", this.isFillTransparent = t.isFillTransparent || !1, this.fillOpacity = t.fillOpacity || 1, this.font = t.font || \"10px sans-serif\", this.textBaseline = t.textBaseline || \"alphabetic\", this.textAlign = t.textAlign || \"left\", this.lineWidth = t.lineWidth || 1, this.lineJoin = t.lineJoin || \"miter\", this.lineCap = t.lineCap || \"butt\", this.path = t.path || [], this.transform = void 0 !== t.transform ? t.transform.clone() : new h(), this.globalCompositeOperation = t.globalCompositeOperation || \"normal\", this.globalAlpha = t.globalAlpha || 1, this.clip_path = t.clip_path || [], this.currentPoint = t.currentPoint || new c(), this.miterLimit = t.miterLimit || 10, this.lastPoint = t.lastPoint || new c(), this.lineDashOffset = t.lineDashOffset || 0, this.lineDash = t.lineDash || [], this.margin = t.margin || [0, 0, 0, 0], this.prevPageLastElemOffset = t.prevPageLastElemOffset || 0, this.ignoreClearRect = \"boolean\" != typeof t.ignoreClearRect || t.ignoreClearRect, this;\n    };\n  e.events.push([\"initialized\", function () {\n    this.context2d = new p(this), r = this.internal.f2, n = this.internal.getCoordinateString, i = this.internal.getVerticalCoordinateString, o = this.internal.getHorizontalCoordinate, s = this.internal.getVerticalCoordinate, c = this.internal.Point, u = this.internal.Rectangle, h = this.internal.Matrix, l = new d();\n  }]);\n  var p = function (t) {\n    Object.defineProperty(this, \"canvas\", {\n      get: function () {\n        return {\n          parentNode: !1,\n          style: !1\n        };\n      }\n    });\n    var e = t;\n    Object.defineProperty(this, \"pdf\", {\n      get: function () {\n        return e;\n      }\n    });\n    var r = !1;\n    Object.defineProperty(this, \"pageWrapXEnabled\", {\n      get: function () {\n        return r;\n      },\n      set: function (t) {\n        r = Boolean(t);\n      }\n    });\n    var n = !1;\n    Object.defineProperty(this, \"pageWrapYEnabled\", {\n      get: function () {\n        return n;\n      },\n      set: function (t) {\n        n = Boolean(t);\n      }\n    });\n    var i = 0;\n    Object.defineProperty(this, \"posX\", {\n      get: function () {\n        return i;\n      },\n      set: function (t) {\n        isNaN(t) || (i = t);\n      }\n    });\n    var a = 0;\n    Object.defineProperty(this, \"posY\", {\n      get: function () {\n        return a;\n      },\n      set: function (t) {\n        isNaN(t) || (a = t);\n      }\n    }), Object.defineProperty(this, \"margin\", {\n      get: function () {\n        return l.margin;\n      },\n      set: function (t) {\n        var e;\n        \"number\" == typeof t ? e = [t, t, t, t] : ((e = new Array(4))[0] = t[0], e[1] = t.length >= 2 ? t[1] : e[0], e[2] = t.length >= 3 ? t[2] : e[0], e[3] = t.length >= 4 ? t[3] : e[1]), l.margin = e;\n      }\n    });\n    var o = !1;\n    Object.defineProperty(this, \"autoPaging\", {\n      get: function () {\n        return o;\n      },\n      set: function (t) {\n        o = t;\n      }\n    });\n    var s = 0;\n    Object.defineProperty(this, \"lastBreak\", {\n      get: function () {\n        return s;\n      },\n      set: function (t) {\n        s = t;\n      }\n    });\n    var c = [];\n    Object.defineProperty(this, \"pageBreaks\", {\n      get: function () {\n        return c;\n      },\n      set: function (t) {\n        c = t;\n      }\n    }), Object.defineProperty(this, \"ctx\", {\n      get: function () {\n        return l;\n      },\n      set: function (t) {\n        t instanceof d && (l = t);\n      }\n    }), Object.defineProperty(this, \"path\", {\n      get: function () {\n        return l.path;\n      },\n      set: function (t) {\n        l.path = t;\n      }\n    });\n    var u = [];\n    Object.defineProperty(this, \"ctxStack\", {\n      get: function () {\n        return u;\n      },\n      set: function (t) {\n        u = t;\n      }\n    }), Object.defineProperty(this, \"fillStyle\", {\n      get: function () {\n        return this.ctx.fillStyle;\n      },\n      set: function (t) {\n        var e;\n        e = g(t), this.ctx.fillStyle = e.style, this.ctx.isFillTransparent = 0 === e.a, this.ctx.fillOpacity = e.a, this.pdf.setFillColor(e.r, e.g, e.b, {\n          a: e.a\n        }), this.pdf.setTextColor(e.r, e.g, e.b, {\n          a: e.a\n        });\n      }\n    }), Object.defineProperty(this, \"strokeStyle\", {\n      get: function () {\n        return this.ctx.strokeStyle;\n      },\n      set: function (t) {\n        var e = g(t);\n        this.ctx.strokeStyle = e.style, this.ctx.isStrokeTransparent = 0 === e.a, this.ctx.strokeOpacity = e.a, 0 === e.a ? this.pdf.setDrawColor(255, 255, 255) : (e.a, this.pdf.setDrawColor(e.r, e.g, e.b));\n      }\n    }), Object.defineProperty(this, \"lineCap\", {\n      get: function () {\n        return this.ctx.lineCap;\n      },\n      set: function (t) {\n        -1 !== [\"butt\", \"round\", \"square\"].indexOf(t) && (this.ctx.lineCap = t, this.pdf.setLineCap(t));\n      }\n    }), Object.defineProperty(this, \"lineWidth\", {\n      get: function () {\n        return this.ctx.lineWidth;\n      },\n      set: function (t) {\n        isNaN(t) || (this.ctx.lineWidth = t, this.pdf.setLineWidth(t));\n      }\n    }), Object.defineProperty(this, \"lineJoin\", {\n      get: function () {\n        return this.ctx.lineJoin;\n      },\n      set: function (t) {\n        -1 !== [\"bevel\", \"round\", \"miter\"].indexOf(t) && (this.ctx.lineJoin = t, this.pdf.setLineJoin(t));\n      }\n    }), Object.defineProperty(this, \"miterLimit\", {\n      get: function () {\n        return this.ctx.miterLimit;\n      },\n      set: function (t) {\n        isNaN(t) || (this.ctx.miterLimit = t, this.pdf.setMiterLimit(t));\n      }\n    }), Object.defineProperty(this, \"textBaseline\", {\n      get: function () {\n        return this.ctx.textBaseline;\n      },\n      set: function (t) {\n        this.ctx.textBaseline = t;\n      }\n    }), Object.defineProperty(this, \"textAlign\", {\n      get: function () {\n        return this.ctx.textAlign;\n      },\n      set: function (t) {\n        -1 !== [\"right\", \"end\", \"center\", \"left\", \"start\"].indexOf(t) && (this.ctx.textAlign = t);\n      }\n    });\n    var h = null;\n    function f(t, e) {\n      if (null === h) {\n        var r = function (t) {\n          var e = [];\n          return Object.keys(t).forEach(function (r) {\n            t[r].forEach(function (t) {\n              var n = null;\n              switch (t) {\n                case \"bold\":\n                  n = {\n                    family: r,\n                    weight: \"bold\"\n                  };\n                  break;\n                case \"italic\":\n                  n = {\n                    family: r,\n                    style: \"italic\"\n                  };\n                  break;\n                case \"bolditalic\":\n                  n = {\n                    family: r,\n                    weight: \"bold\",\n                    style: \"italic\"\n                  };\n                  break;\n                case \"\":\n                case \"normal\":\n                  n = {\n                    family: r\n                  };\n              }\n              null !== n && (n.ref = {\n                name: r,\n                style: t\n              }, e.push(n));\n            });\n          }), e;\n        }(t.getFontList());\n        h = function (t) {\n          for (var e = {}, r = 0; r < t.length; ++r) {\n            var n = jt(t[r]),\n              i = n.family,\n              a = n.stretch,\n              o = n.style,\n              s = n.weight;\n            e[i] = e[i] || {}, e[i][a] = e[i][a] || {}, e[i][a][o] = e[i][a][o] || {}, e[i][a][o][s] = n;\n          }\n          return e;\n        }(r.concat(e));\n      }\n      return h;\n    }\n    var p = null;\n    Object.defineProperty(this, \"fontFaces\", {\n      get: function () {\n        return p;\n      },\n      set: function (t) {\n        h = null, p = t;\n      }\n    }), Object.defineProperty(this, \"font\", {\n      get: function () {\n        return this.ctx.font;\n      },\n      set: function (t) {\n        var e;\n        if (this.ctx.font = t, null !== (e = /^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))(?:\\s*\\/\\s*(normal|[.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])))?\\s*([-_,\\\"\\'\\sa-z]+?)\\s*$/i.exec(t))) {\n          var r = e[1],\n            n = (e[2], e[3]),\n            i = e[4],\n            a = (e[5], e[6]),\n            o = /^([.\\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(i)[2];\n          i = \"px\" === o ? Math.floor(parseFloat(i) * this.pdf.internal.scaleFactor) : \"em\" === o ? Math.floor(parseFloat(i) * this.pdf.getFontSize()) : Math.floor(parseFloat(i) * this.pdf.internal.scaleFactor), this.pdf.setFontSize(i);\n          var s = function (t) {\n            var e,\n              r,\n              n = [],\n              i = t.trim();\n            if (\"\" === i) return Wt;\n            if (i in Mt) return [Mt[i]];\n            for (; \"\" !== i;) {\n              switch (r = null, e = (i = Dt(i)).charAt(0)) {\n                case '\"':\n                case \"'\":\n                  r = Rt(i.substring(1), e);\n                  break;\n                default:\n                  r = Tt(i);\n              }\n              if (null === r) return Wt;\n              if (n.push(r[0]), \"\" !== (i = Dt(r[1])) && \",\" !== i.charAt(0)) return Wt;\n              i = i.replace(/^,/, \"\");\n            }\n            return n;\n          }(a);\n          if (this.fontFaces) {\n            var c = qt(f(this.pdf, this.fontFaces), s.map(function (t) {\n              return {\n                family: t,\n                stretch: \"normal\",\n                weight: n,\n                style: r\n              };\n            }));\n            this.pdf.setFont(c.ref.name, c.ref.style);\n          } else {\n            var u = \"\";\n            (\"bold\" === n || parseInt(n, 10) >= 700 || \"bold\" === r) && (u = \"bold\"), \"italic\" === r && (u += \"italic\"), 0 === u.length && (u = \"normal\");\n            for (var h = \"\", l = {\n                arial: \"Helvetica\",\n                Arial: \"Helvetica\",\n                verdana: \"Helvetica\",\n                Verdana: \"Helvetica\",\n                helvetica: \"Helvetica\",\n                Helvetica: \"Helvetica\",\n                \"sans-serif\": \"Helvetica\",\n                fixed: \"Courier\",\n                monospace: \"Courier\",\n                terminal: \"Courier\",\n                cursive: \"Times\",\n                fantasy: \"Times\",\n                serif: \"Times\"\n              }, d = 0; d < s.length; d++) {\n              if (void 0 !== this.pdf.internal.getFont(s[d], u, {\n                noFallback: !0,\n                disableWarning: !0\n              })) {\n                h = s[d];\n                break;\n              }\n              if (\"bolditalic\" === u && void 0 !== this.pdf.internal.getFont(s[d], \"bold\", {\n                noFallback: !0,\n                disableWarning: !0\n              })) h = s[d], u = \"bold\";else if (void 0 !== this.pdf.internal.getFont(s[d], \"normal\", {\n                noFallback: !0,\n                disableWarning: !0\n              })) {\n                h = s[d], u = \"normal\";\n                break;\n              }\n            }\n            if (\"\" === h) for (var p = 0; p < s.length; p++) if (l[s[p]]) {\n              h = l[s[p]];\n              break;\n            }\n            h = \"\" === h ? \"Times\" : h, this.pdf.setFont(h, u);\n          }\n        }\n      }\n    }), Object.defineProperty(this, \"globalCompositeOperation\", {\n      get: function () {\n        return this.ctx.globalCompositeOperation;\n      },\n      set: function (t) {\n        this.ctx.globalCompositeOperation = t;\n      }\n    }), Object.defineProperty(this, \"globalAlpha\", {\n      get: function () {\n        return this.ctx.globalAlpha;\n      },\n      set: function (t) {\n        this.ctx.globalAlpha = t;\n      }\n    }), Object.defineProperty(this, \"lineDashOffset\", {\n      get: function () {\n        return this.ctx.lineDashOffset;\n      },\n      set: function (t) {\n        this.ctx.lineDashOffset = t, T.call(this);\n      }\n    }), Object.defineProperty(this, \"lineDash\", {\n      get: function () {\n        return this.ctx.lineDash;\n      },\n      set: function (t) {\n        this.ctx.lineDash = t, T.call(this);\n      }\n    }), Object.defineProperty(this, \"ignoreClearRect\", {\n      get: function () {\n        return this.ctx.ignoreClearRect;\n      },\n      set: function (t) {\n        this.ctx.ignoreClearRect = Boolean(t);\n      }\n    });\n  };\n  p.prototype.setLineDash = function (t) {\n    this.lineDash = t;\n  }, p.prototype.getLineDash = function () {\n    return this.lineDash.length % 2 ? this.lineDash.concat(this.lineDash) : this.lineDash.slice();\n  }, p.prototype.fill = function () {\n    A.call(this, \"fill\", !1);\n  }, p.prototype.stroke = function () {\n    A.call(this, \"stroke\", !1);\n  }, p.prototype.beginPath = function () {\n    this.path = [{\n      type: \"begin\"\n    }];\n  }, p.prototype.moveTo = function (t, e) {\n    if (isNaN(t) || isNaN(e)) throw a.error(\"jsPDF.context2d.moveTo: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.moveTo\");\n    var r = this.ctx.transform.applyToPoint(new c(t, e));\n    this.path.push({\n      type: \"mt\",\n      x: r.x,\n      y: r.y\n    }), this.ctx.lastPoint = new c(t, e);\n  }, p.prototype.closePath = function () {\n    var e = new c(0, 0),\n      r = 0;\n    for (r = this.path.length - 1; -1 !== r; r--) if (\"begin\" === this.path[r].type && \"object\" === t(this.path[r + 1]) && \"number\" == typeof this.path[r + 1].x) {\n      e = new c(this.path[r + 1].x, this.path[r + 1].y);\n      break;\n    }\n    this.path.push({\n      type: \"close\"\n    }), this.ctx.lastPoint = new c(e.x, e.y);\n  }, p.prototype.lineTo = function (t, e) {\n    if (isNaN(t) || isNaN(e)) throw a.error(\"jsPDF.context2d.lineTo: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.lineTo\");\n    var r = this.ctx.transform.applyToPoint(new c(t, e));\n    this.path.push({\n      type: \"lt\",\n      x: r.x,\n      y: r.y\n    }), this.ctx.lastPoint = new c(r.x, r.y);\n  }, p.prototype.clip = function () {\n    this.ctx.clip_path = JSON.parse(JSON.stringify(this.path)), A.call(this, null, !0);\n  }, p.prototype.quadraticCurveTo = function (t, e, r, n) {\n    if (isNaN(r) || isNaN(n) || isNaN(t) || isNaN(e)) throw a.error(\"jsPDF.context2d.quadraticCurveTo: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.quadraticCurveTo\");\n    var i = this.ctx.transform.applyToPoint(new c(r, n)),\n      o = this.ctx.transform.applyToPoint(new c(t, e));\n    this.path.push({\n      type: \"qct\",\n      x1: o.x,\n      y1: o.y,\n      x: i.x,\n      y: i.y\n    }), this.ctx.lastPoint = new c(i.x, i.y);\n  }, p.prototype.bezierCurveTo = function (t, e, r, n, i, o) {\n    if (isNaN(i) || isNaN(o) || isNaN(t) || isNaN(e) || isNaN(r) || isNaN(n)) throw a.error(\"jsPDF.context2d.bezierCurveTo: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.bezierCurveTo\");\n    var s = this.ctx.transform.applyToPoint(new c(i, o)),\n      u = this.ctx.transform.applyToPoint(new c(t, e)),\n      h = this.ctx.transform.applyToPoint(new c(r, n));\n    this.path.push({\n      type: \"bct\",\n      x1: u.x,\n      y1: u.y,\n      x2: h.x,\n      y2: h.y,\n      x: s.x,\n      y: s.y\n    }), this.ctx.lastPoint = new c(s.x, s.y);\n  }, p.prototype.arc = function (t, e, r, n, i, o) {\n    if (isNaN(t) || isNaN(e) || isNaN(r) || isNaN(n) || isNaN(i)) throw a.error(\"jsPDF.context2d.arc: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.arc\");\n    if (o = Boolean(o), !this.ctx.transform.isIdentity) {\n      var s = this.ctx.transform.applyToPoint(new c(t, e));\n      t = s.x, e = s.y;\n      var u = this.ctx.transform.applyToPoint(new c(0, r)),\n        h = this.ctx.transform.applyToPoint(new c(0, 0));\n      r = Math.sqrt(Math.pow(u.x - h.x, 2) + Math.pow(u.y - h.y, 2));\n    }\n    Math.abs(i - n) >= 2 * Math.PI && (n = 0, i = 2 * Math.PI), this.path.push({\n      type: \"arc\",\n      x: t,\n      y: e,\n      radius: r,\n      startAngle: n,\n      endAngle: i,\n      counterclockwise: o\n    });\n  }, p.prototype.arcTo = function (t, e, r, n, i) {\n    throw new Error(\"arcTo not implemented.\");\n  }, p.prototype.rect = function (t, e, r, n) {\n    if (isNaN(t) || isNaN(e) || isNaN(r) || isNaN(n)) throw a.error(\"jsPDF.context2d.rect: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.rect\");\n    this.moveTo(t, e), this.lineTo(t + r, e), this.lineTo(t + r, e + n), this.lineTo(t, e + n), this.lineTo(t, e), this.lineTo(t + r, e), this.lineTo(t, e);\n  }, p.prototype.fillRect = function (t, e, r, n) {\n    if (isNaN(t) || isNaN(e) || isNaN(r) || isNaN(n)) throw a.error(\"jsPDF.context2d.fillRect: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.fillRect\");\n    if (!m.call(this)) {\n      var i = {};\n      \"butt\" !== this.lineCap && (i.lineCap = this.lineCap, this.lineCap = \"butt\"), \"miter\" !== this.lineJoin && (i.lineJoin = this.lineJoin, this.lineJoin = \"miter\"), this.beginPath(), this.rect(t, e, r, n), this.fill(), i.hasOwnProperty(\"lineCap\") && (this.lineCap = i.lineCap), i.hasOwnProperty(\"lineJoin\") && (this.lineJoin = i.lineJoin);\n    }\n  }, p.prototype.strokeRect = function (t, e, r, n) {\n    if (isNaN(t) || isNaN(e) || isNaN(r) || isNaN(n)) throw a.error(\"jsPDF.context2d.strokeRect: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.strokeRect\");\n    v.call(this) || (this.beginPath(), this.rect(t, e, r, n), this.stroke());\n  }, p.prototype.clearRect = function (t, e, r, n) {\n    if (isNaN(t) || isNaN(e) || isNaN(r) || isNaN(n)) throw a.error(\"jsPDF.context2d.clearRect: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.clearRect\");\n    this.ignoreClearRect || (this.fillStyle = \"#ffffff\", this.fillRect(t, e, r, n));\n  }, p.prototype.save = function (t) {\n    t = \"boolean\" != typeof t || t;\n    for (var e = this.pdf.internal.getCurrentPageInfo().pageNumber, r = 0; r < this.pdf.internal.getNumberOfPages(); r++) this.pdf.setPage(r + 1), this.pdf.internal.out(\"q\");\n    if (this.pdf.setPage(e), t) {\n      this.ctx.fontSize = this.pdf.internal.getFontSize();\n      var n = new d(this.ctx);\n      this.ctxStack.push(this.ctx), this.ctx = n;\n    }\n  }, p.prototype.restore = function (t) {\n    t = \"boolean\" != typeof t || t;\n    for (var e = this.pdf.internal.getCurrentPageInfo().pageNumber, r = 0; r < this.pdf.internal.getNumberOfPages(); r++) this.pdf.setPage(r + 1), this.pdf.internal.out(\"Q\");\n    this.pdf.setPage(e), t && 0 !== this.ctxStack.length && (this.ctx = this.ctxStack.pop(), this.fillStyle = this.ctx.fillStyle, this.strokeStyle = this.ctx.strokeStyle, this.font = this.ctx.font, this.lineCap = this.ctx.lineCap, this.lineWidth = this.ctx.lineWidth, this.lineJoin = this.ctx.lineJoin, this.lineDash = this.ctx.lineDash, this.lineDashOffset = this.ctx.lineDashOffset);\n  }, p.prototype.toDataURL = function () {\n    throw new Error(\"toDataUrl not implemented.\");\n  };\n  var g = function (t) {\n      var e, r, n, i;\n      if (!0 === t.isCanvasGradient && (t = t.getColor()), !t) return {\n        r: 0,\n        g: 0,\n        b: 0,\n        a: 0,\n        style: t\n      };\n      if (/transparent|rgba\\s*\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*0+\\s*\\)/.test(t)) e = 0, r = 0, n = 0, i = 0;else {\n        var a = /rgb\\s*\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*\\)/.exec(t);\n        if (null !== a) e = parseInt(a[1]), r = parseInt(a[2]), n = parseInt(a[3]), i = 1;else if (null !== (a = /rgba\\s*\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*([\\d.]+)\\s*\\)/.exec(t))) e = parseInt(a[1]), r = parseInt(a[2]), n = parseInt(a[3]), i = parseFloat(a[4]);else {\n          if (i = 1, \"string\" == typeof t && \"#\" !== t.charAt(0)) {\n            var o = new f(t);\n            t = o.ok ? o.toHex() : \"#000000\";\n          }\n          4 === t.length ? (e = t.substring(1, 2), e += e, r = t.substring(2, 3), r += r, n = t.substring(3, 4), n += n) : (e = t.substring(1, 3), r = t.substring(3, 5), n = t.substring(5, 7)), e = parseInt(e, 16), r = parseInt(r, 16), n = parseInt(n, 16);\n        }\n      }\n      return {\n        r: e,\n        g: r,\n        b: n,\n        a: i,\n        style: t\n      };\n    },\n    m = function () {\n      return this.ctx.isFillTransparent || 0 == this.globalAlpha;\n    },\n    v = function () {\n      return Boolean(this.ctx.isStrokeTransparent || 0 == this.globalAlpha);\n    };\n  p.prototype.fillText = function (t, e, r, n) {\n    if (isNaN(e) || isNaN(r) || \"string\" != typeof t) throw a.error(\"jsPDF.context2d.fillText: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.fillText\");\n    if (n = isNaN(n) ? void 0 : n, !m.call(this)) {\n      var i = q(this.ctx.transform.rotation),\n        o = this.ctx.transform.scaleX;\n      C.call(this, {\n        text: t,\n        x: e,\n        y: r,\n        scale: o,\n        angle: i,\n        align: this.textAlign,\n        maxWidth: n\n      });\n    }\n  }, p.prototype.strokeText = function (t, e, r, n) {\n    if (isNaN(e) || isNaN(r) || \"string\" != typeof t) throw a.error(\"jsPDF.context2d.strokeText: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.strokeText\");\n    if (!v.call(this)) {\n      n = isNaN(n) ? void 0 : n;\n      var i = q(this.ctx.transform.rotation),\n        o = this.ctx.transform.scaleX;\n      C.call(this, {\n        text: t,\n        x: e,\n        y: r,\n        scale: o,\n        renderingMode: \"stroke\",\n        angle: i,\n        align: this.textAlign,\n        maxWidth: n\n      });\n    }\n  }, p.prototype.measureText = function (t) {\n    if (\"string\" != typeof t) throw a.error(\"jsPDF.context2d.measureText: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.measureText\");\n    var e = this.pdf,\n      r = this.pdf.internal.scaleFactor,\n      n = e.internal.getFontSize(),\n      i = e.getStringUnitWidth(t) * n / e.internal.scaleFactor,\n      o = function (t) {\n        var e = (t = t || {}).width || 0;\n        return Object.defineProperty(this, \"width\", {\n          get: function () {\n            return e;\n          }\n        }), this;\n      };\n    return new o({\n      width: i *= Math.round(96 * r / 72 * 1e4) / 1e4\n    });\n  }, p.prototype.scale = function (t, e) {\n    if (isNaN(t) || isNaN(e)) throw a.error(\"jsPDF.context2d.scale: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.scale\");\n    var r = new h(t, 0, 0, e, 0, 0);\n    this.ctx.transform = this.ctx.transform.multiply(r);\n  }, p.prototype.rotate = function (t) {\n    if (isNaN(t)) throw a.error(\"jsPDF.context2d.rotate: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.rotate\");\n    var e = new h(Math.cos(t), Math.sin(t), -Math.sin(t), Math.cos(t), 0, 0);\n    this.ctx.transform = this.ctx.transform.multiply(e);\n  }, p.prototype.translate = function (t, e) {\n    if (isNaN(t) || isNaN(e)) throw a.error(\"jsPDF.context2d.translate: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.translate\");\n    var r = new h(1, 0, 0, 1, t, e);\n    this.ctx.transform = this.ctx.transform.multiply(r);\n  }, p.prototype.transform = function (t, e, r, n, i, o) {\n    if (isNaN(t) || isNaN(e) || isNaN(r) || isNaN(n) || isNaN(i) || isNaN(o)) throw a.error(\"jsPDF.context2d.transform: Invalid arguments\", arguments), new Error(\"Invalid arguments passed to jsPDF.context2d.transform\");\n    var s = new h(t, e, r, n, i, o);\n    this.ctx.transform = this.ctx.transform.multiply(s);\n  }, p.prototype.setTransform = function (t, e, r, n, i, a) {\n    t = isNaN(t) ? 1 : t, e = isNaN(e) ? 0 : e, r = isNaN(r) ? 0 : r, n = isNaN(n) ? 1 : n, i = isNaN(i) ? 0 : i, a = isNaN(a) ? 0 : a, this.ctx.transform = new h(t, e, r, n, i, a);\n  };\n  var b = function () {\n    return this.margin[0] > 0 || this.margin[1] > 0 || this.margin[2] > 0 || this.margin[3] > 0;\n  };\n  p.prototype.drawImage = function (t, e, r, n, i, a, o, s, c) {\n    var l = this.pdf.getImageProperties(t),\n      f = 1,\n      d = 1,\n      p = 1,\n      g = 1;\n    void 0 !== n && void 0 !== s && (p = s / n, g = c / i, f = l.width / n * s / n, d = l.height / i * c / i), void 0 === a && (a = e, o = r, e = 0, r = 0), void 0 !== n && void 0 === s && (s = n, c = i), void 0 === n && void 0 === s && (s = l.width, c = l.height);\n    for (var m, v = this.ctx.transform.decompose(), w = q(v.rotate.shx), A = new h(), S = (A = (A = (A = A.multiply(v.translate)).multiply(v.skew)).multiply(v.scale)).applyToRectangle(new u(a - e * p, o - r * g, n * f, i * d)), _ = y.call(this, S), P = [], k = 0; k < _.length; k += 1) -1 === P.indexOf(_[k]) && P.push(_[k]);\n    if (L(P), this.autoPaging) for (var I = P[0], F = P[P.length - 1], C = I; C < F + 1; C++) {\n      this.pdf.setPage(C);\n      var j = this.pdf.internal.pageSize.width - this.margin[3] - this.margin[1],\n        O = 1 === C ? this.posY + this.margin[0] : this.margin[0],\n        B = this.pdf.internal.pageSize.height - this.posY - this.margin[0] - this.margin[2],\n        M = this.pdf.internal.pageSize.height - this.margin[0] - this.margin[2],\n        E = 1 === C ? 0 : B + (C - 2) * M;\n      if (0 !== this.ctx.clip_path.length) {\n        var D = this.path;\n        m = JSON.parse(JSON.stringify(this.ctx.clip_path)), this.path = N(m, this.posX + this.margin[3], -E + O + this.ctx.prevPageLastElemOffset), x.call(this, \"fill\", !0), this.path = D;\n      }\n      var R = JSON.parse(JSON.stringify(S));\n      R = N([R], this.posX + this.margin[3], -E + O + this.ctx.prevPageLastElemOffset)[0];\n      var T = (C > I || C < F) && b.call(this);\n      T && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], j, M, null).clip().discardPath()), this.pdf.addImage(t, \"JPEG\", R.x, R.y, R.w, R.h, null, null, w), T && this.pdf.restoreGraphicsState();\n    } else this.pdf.addImage(t, \"JPEG\", S.x, S.y, S.w, S.h, null, null, w);\n  };\n  var y = function (t, e, r) {\n      var n = [];\n      e = e || this.pdf.internal.pageSize.width, r = r || this.pdf.internal.pageSize.height - this.margin[0] - this.margin[2];\n      var i = this.posY + this.ctx.prevPageLastElemOffset;\n      switch (t.type) {\n        default:\n        case \"mt\":\n        case \"lt\":\n          n.push(Math.floor((t.y + i) / r) + 1);\n          break;\n        case \"arc\":\n          n.push(Math.floor((t.y + i - t.radius) / r) + 1), n.push(Math.floor((t.y + i + t.radius) / r) + 1);\n          break;\n        case \"qct\":\n          var a = D(this.ctx.lastPoint.x, this.ctx.lastPoint.y, t.x1, t.y1, t.x, t.y);\n          n.push(Math.floor((a.y + i) / r) + 1), n.push(Math.floor((a.y + a.h + i) / r) + 1);\n          break;\n        case \"bct\":\n          var o = R(this.ctx.lastPoint.x, this.ctx.lastPoint.y, t.x1, t.y1, t.x2, t.y2, t.x, t.y);\n          n.push(Math.floor((o.y + i) / r) + 1), n.push(Math.floor((o.y + o.h + i) / r) + 1);\n          break;\n        case \"rect\":\n          n.push(Math.floor((t.y + i) / r) + 1), n.push(Math.floor((t.y + t.h + i) / r) + 1);\n      }\n      for (var s = 0; s < n.length; s += 1) for (; this.pdf.internal.getNumberOfPages() < n[s];) w.call(this);\n      return n;\n    },\n    w = function () {\n      var t = this.fillStyle,\n        e = this.strokeStyle,\n        r = this.font,\n        n = this.lineCap,\n        i = this.lineWidth,\n        a = this.lineJoin;\n      this.pdf.addPage(), this.fillStyle = t, this.strokeStyle = e, this.font = r, this.lineCap = n, this.lineWidth = i, this.lineJoin = a;\n    },\n    N = function (t, e, r) {\n      for (var n = 0; n < t.length; n++) switch (t[n].type) {\n        case \"bct\":\n          t[n].x2 += e, t[n].y2 += r;\n        case \"qct\":\n          t[n].x1 += e, t[n].y1 += r;\n        case \"mt\":\n        case \"lt\":\n        case \"arc\":\n        default:\n          t[n].x += e, t[n].y += r;\n      }\n      return t;\n    },\n    L = function (t) {\n      return t.sort(function (t, e) {\n        return t - e;\n      });\n    },\n    A = function (t, e) {\n      for (var r, n, i = this.fillStyle, a = this.strokeStyle, o = this.lineCap, s = this.lineWidth, c = Math.abs(s * this.ctx.transform.scaleX), u = this.lineJoin, h = JSON.parse(JSON.stringify(this.path)), l = JSON.parse(JSON.stringify(this.path)), f = [], d = 0; d < l.length; d++) if (void 0 !== l[d].x) for (var p = y.call(this, l[d]), g = 0; g < p.length; g += 1) -1 === f.indexOf(p[g]) && f.push(p[g]);\n      for (var m = 0; m < f.length; m++) for (; this.pdf.internal.getNumberOfPages() < f[m];) w.call(this);\n      if (L(f), this.autoPaging) for (var v = f[0], A = f[f.length - 1], S = v; S < A + 1; S++) {\n        this.pdf.setPage(S), this.fillStyle = i, this.strokeStyle = a, this.lineCap = o, this.lineWidth = c, this.lineJoin = u;\n        var _ = this.pdf.internal.pageSize.width - this.margin[3] - this.margin[1],\n          P = 1 === S ? this.posY + this.margin[0] : this.margin[0],\n          k = this.pdf.internal.pageSize.height - this.posY - this.margin[0] - this.margin[2],\n          I = this.pdf.internal.pageSize.height - this.margin[0] - this.margin[2],\n          F = 1 === S ? 0 : k + (S - 2) * I;\n        if (0 !== this.ctx.clip_path.length) {\n          var C = this.path;\n          r = JSON.parse(JSON.stringify(this.ctx.clip_path)), this.path = N(r, this.posX + this.margin[3], -F + P + this.ctx.prevPageLastElemOffset), x.call(this, t, !0), this.path = C;\n        }\n        if (n = JSON.parse(JSON.stringify(h)), this.path = N(n, this.posX + this.margin[3], -F + P + this.ctx.prevPageLastElemOffset), !1 === e || 0 === S) {\n          var j = (S > v || S < A) && b.call(this);\n          j && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], _, I, null).clip().discardPath()), x.call(this, t, e), j && this.pdf.restoreGraphicsState();\n        }\n        this.lineWidth = s;\n      } else this.lineWidth = c, x.call(this, t, e), this.lineWidth = s;\n      this.path = h;\n    },\n    x = function (t, e) {\n      if ((\"stroke\" !== t || e || !v.call(this)) && (\"stroke\" === t || e || !m.call(this))) {\n        for (var r, n, i = [], a = this.path, o = 0; o < a.length; o++) {\n          var s = a[o];\n          switch (s.type) {\n            case \"begin\":\n              i.push({\n                begin: !0\n              });\n              break;\n            case \"close\":\n              i.push({\n                close: !0\n              });\n              break;\n            case \"mt\":\n              i.push({\n                start: s,\n                deltas: [],\n                abs: []\n              });\n              break;\n            case \"lt\":\n              var c = i.length;\n              if (a[o - 1] && !isNaN(a[o - 1].x) && (r = [s.x - a[o - 1].x, s.y - a[o - 1].y], c > 0)) for (; c >= 0; c--) if (!0 !== i[c - 1].close && !0 !== i[c - 1].begin) {\n                i[c - 1].deltas.push(r), i[c - 1].abs.push(s);\n                break;\n              }\n              break;\n            case \"bct\":\n              r = [s.x1 - a[o - 1].x, s.y1 - a[o - 1].y, s.x2 - a[o - 1].x, s.y2 - a[o - 1].y, s.x - a[o - 1].x, s.y - a[o - 1].y], i[i.length - 1].deltas.push(r);\n              break;\n            case \"qct\":\n              var u = a[o - 1].x + 2 / 3 * (s.x1 - a[o - 1].x),\n                h = a[o - 1].y + 2 / 3 * (s.y1 - a[o - 1].y),\n                l = s.x + 2 / 3 * (s.x1 - s.x),\n                f = s.y + 2 / 3 * (s.y1 - s.y),\n                d = s.x,\n                p = s.y;\n              r = [u - a[o - 1].x, h - a[o - 1].y, l - a[o - 1].x, f - a[o - 1].y, d - a[o - 1].x, p - a[o - 1].y], i[i.length - 1].deltas.push(r);\n              break;\n            case \"arc\":\n              i.push({\n                deltas: [],\n                abs: [],\n                arc: !0\n              }), Array.isArray(i[i.length - 1].abs) && i[i.length - 1].abs.push(s);\n          }\n        }\n        n = e ? null : \"stroke\" === t ? \"stroke\" : \"fill\";\n        for (var g = !1, b = 0; b < i.length; b++) if (i[b].arc) for (var y = i[b].abs, w = 0; w < y.length; w++) {\n          var N = y[w];\n          \"arc\" === N.type ? P.call(this, N.x, N.y, N.radius, N.startAngle, N.endAngle, N.counterclockwise, void 0, e, !g) : j.call(this, N.x, N.y), g = !0;\n        } else if (!0 === i[b].close) this.pdf.internal.out(\"h\"), g = !1;else if (!0 !== i[b].begin) {\n          var L = i[b].start.x,\n            A = i[b].start.y;\n          O.call(this, i[b].deltas, L, A), g = !0;\n        }\n        n && k.call(this, n), e && I.call(this);\n      }\n    },\n    S = function (t) {\n      var e = this.pdf.internal.getFontSize() / this.pdf.internal.scaleFactor,\n        r = e * (this.pdf.internal.getLineHeightFactor() - 1);\n      switch (this.ctx.textBaseline) {\n        case \"bottom\":\n          return t - r;\n        case \"top\":\n          return t + e - r;\n        case \"hanging\":\n          return t + e - 2 * r;\n        case \"middle\":\n          return t + e / 2 - r;\n        case \"ideographic\":\n          return t;\n        case \"alphabetic\":\n        default:\n          return t;\n      }\n    },\n    _ = function (t) {\n      return t + this.pdf.internal.getFontSize() / this.pdf.internal.scaleFactor * (this.pdf.internal.getLineHeightFactor() - 1);\n    };\n  p.prototype.createLinearGradient = function () {\n    var t = function () {};\n    return t.colorStops = [], t.addColorStop = function (t, e) {\n      this.colorStops.push([t, e]);\n    }, t.getColor = function () {\n      return 0 === this.colorStops.length ? \"#000000\" : this.colorStops[0][1];\n    }, t.isCanvasGradient = !0, t;\n  }, p.prototype.createPattern = function () {\n    return this.createLinearGradient();\n  }, p.prototype.createRadialGradient = function () {\n    return this.createLinearGradient();\n  };\n  var P = function (t, e, r, n, i, a, o, s, c) {\n      for (var u = M.call(this, r, n, i, a), h = 0; h < u.length; h++) {\n        var l = u[h];\n        0 === h && (c ? F.call(this, l.x1 + t, l.y1 + e) : j.call(this, l.x1 + t, l.y1 + e)), B.call(this, t, e, l.x2, l.y2, l.x3, l.y3, l.x4, l.y4);\n      }\n      s ? I.call(this) : k.call(this, o);\n    },\n    k = function (t) {\n      switch (t) {\n        case \"stroke\":\n          this.pdf.internal.out(\"S\");\n          break;\n        case \"fill\":\n          this.pdf.internal.out(\"f\");\n      }\n    },\n    I = function () {\n      this.pdf.clip(), this.pdf.discardPath();\n    },\n    F = function (t, e) {\n      this.pdf.internal.out(n(t) + \" \" + i(e) + \" m\");\n    },\n    C = function (t) {\n      var e;\n      switch (t.align) {\n        case \"right\":\n        case \"end\":\n          e = \"right\";\n          break;\n        case \"center\":\n          e = \"center\";\n          break;\n        case \"left\":\n        case \"start\":\n        default:\n          e = \"left\";\n      }\n      var r = this.pdf.getTextDimensions(t.text),\n        n = S.call(this, t.y),\n        i = _.call(this, n) - r.h,\n        a = this.ctx.transform.applyToPoint(new c(t.x, n)),\n        o = this.ctx.transform.decompose(),\n        s = new h();\n      s = (s = (s = s.multiply(o.translate)).multiply(o.skew)).multiply(o.scale);\n      for (var l, f, d, p = this.ctx.transform.applyToRectangle(new u(t.x, n, r.w, r.h)), g = s.applyToRectangle(new u(t.x, i, r.w, r.h)), m = y.call(this, g), v = [], w = 0; w < m.length; w += 1) -1 === v.indexOf(m[w]) && v.push(m[w]);\n      if (L(v), this.autoPaging) for (var A = v[0], P = v[v.length - 1], k = A; k < P + 1; k++) {\n        this.pdf.setPage(k);\n        var I = 1 === k ? this.posY + this.margin[0] : this.margin[0],\n          F = this.pdf.internal.pageSize.height - this.posY - this.margin[0] - this.margin[2],\n          C = this.pdf.internal.pageSize.height - this.margin[2],\n          j = C - this.margin[0],\n          O = this.pdf.internal.pageSize.width - this.margin[1],\n          B = O - this.margin[3],\n          M = 1 === k ? 0 : F + (k - 2) * j;\n        if (0 !== this.ctx.clip_path.length) {\n          var E = this.path;\n          l = JSON.parse(JSON.stringify(this.ctx.clip_path)), this.path = N(l, this.posX + this.margin[3], -1 * M + I), x.call(this, \"fill\", !0), this.path = E;\n        }\n        var q = N([JSON.parse(JSON.stringify(g))], this.posX + this.margin[3], -M + I + this.ctx.prevPageLastElemOffset)[0];\n        t.scale >= .01 && (f = this.pdf.internal.getFontSize(), this.pdf.setFontSize(f * t.scale), d = this.lineWidth, this.lineWidth = d * t.scale);\n        var D = \"text\" !== this.autoPaging;\n        if (D || q.y + q.h <= C) {\n          if (D || q.y >= I && q.x <= O) {\n            var R = D ? t.text : this.pdf.splitTextToSize(t.text, t.maxWidth || O - q.x)[0],\n              T = N([JSON.parse(JSON.stringify(p))], this.posX + this.margin[3], -M + I + this.ctx.prevPageLastElemOffset)[0],\n              U = D && (k > A || k < P) && b.call(this);\n            U && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], B, j, null).clip().discardPath()), this.pdf.text(R, T.x, T.y, {\n              angle: t.angle,\n              align: e,\n              renderingMode: t.renderingMode\n            }), U && this.pdf.restoreGraphicsState();\n          }\n        } else q.y < C && (this.ctx.prevPageLastElemOffset += C - q.y);\n        t.scale >= .01 && (this.pdf.setFontSize(f), this.lineWidth = d);\n      } else t.scale >= .01 && (f = this.pdf.internal.getFontSize(), this.pdf.setFontSize(f * t.scale), d = this.lineWidth, this.lineWidth = d * t.scale), this.pdf.text(t.text, a.x + this.posX, a.y + this.posY, {\n        angle: t.angle,\n        align: e,\n        renderingMode: t.renderingMode,\n        maxWidth: t.maxWidth\n      }), t.scale >= .01 && (this.pdf.setFontSize(f), this.lineWidth = d);\n    },\n    j = function (t, e, r, a) {\n      r = r || 0, a = a || 0, this.pdf.internal.out(n(t + r) + \" \" + i(e + a) + \" l\");\n    },\n    O = function (t, e, r) {\n      return this.pdf.lines(t, e, r, null, null);\n    },\n    B = function (t, e, n, i, a, c, u, h) {\n      this.pdf.internal.out([r(o(n + t)), r(s(i + e)), r(o(a + t)), r(s(c + e)), r(o(u + t)), r(s(h + e)), \"c\"].join(\" \"));\n    },\n    M = function (t, e, r, n) {\n      for (var i = 2 * Math.PI, a = Math.PI / 2; e > r;) e -= i;\n      var o = Math.abs(r - e);\n      o < i && n && (o = i - o);\n      for (var s = [], c = n ? -1 : 1, u = e; o > 1e-5;) {\n        var h = u + c * Math.min(o, a);\n        s.push(E.call(this, t, u, h)), o -= Math.abs(h - u), u = h;\n      }\n      return s;\n    },\n    E = function (t, e, r) {\n      var n = (r - e) / 2,\n        i = t * Math.cos(n),\n        a = t * Math.sin(n),\n        o = i,\n        s = -a,\n        c = o * o + s * s,\n        u = c + o * i + s * a,\n        h = 4 / 3 * (Math.sqrt(2 * c * u) - u) / (o * a - s * i),\n        l = o - h * s,\n        f = s + h * o,\n        d = l,\n        p = -f,\n        g = n + e,\n        m = Math.cos(g),\n        v = Math.sin(g);\n      return {\n        x1: t * Math.cos(e),\n        y1: t * Math.sin(e),\n        x2: l * m - f * v,\n        y2: l * v + f * m,\n        x3: d * m - p * v,\n        y3: d * v + p * m,\n        x4: t * Math.cos(r),\n        y4: t * Math.sin(r)\n      };\n    },\n    q = function (t) {\n      return 180 * t / Math.PI;\n    },\n    D = function (t, e, r, n, i, a) {\n      var o = t + .5 * (r - t),\n        s = e + .5 * (n - e),\n        c = i + .5 * (r - i),\n        h = a + .5 * (n - a),\n        l = Math.min(t, i, o, c),\n        f = Math.max(t, i, o, c),\n        d = Math.min(e, a, s, h),\n        p = Math.max(e, a, s, h);\n      return new u(l, d, f - l, p - d);\n    },\n    R = function (t, e, r, n, i, a, o, s) {\n      var c,\n        h,\n        l,\n        f,\n        d,\n        p,\n        g,\n        m,\n        v,\n        b,\n        y,\n        w,\n        N,\n        L,\n        A = r - t,\n        x = n - e,\n        S = i - r,\n        _ = a - n,\n        P = o - i,\n        k = s - a;\n      for (h = 0; h < 41; h++) v = (g = (l = t + (c = h / 40) * A) + c * ((d = r + c * S) - l)) + c * (d + c * (i + c * P - d) - g), b = (m = (f = e + c * x) + c * ((p = n + c * _) - f)) + c * (p + c * (a + c * k - p) - m), 0 == h ? (y = v, w = b, N = v, L = b) : (y = Math.min(y, v), w = Math.min(w, b), N = Math.max(N, v), L = Math.max(L, b));\n      return new u(Math.round(y), Math.round(w), Math.round(N - y), Math.round(L - w));\n    },\n    T = function () {\n      if (this.prevLineDash || this.ctx.lineDash.length || this.ctx.lineDashOffset) {\n        var t,\n          e,\n          r = (t = this.ctx.lineDash, e = this.ctx.lineDashOffset, JSON.stringify({\n            lineDash: t,\n            lineDashOffset: e\n          }));\n        this.prevLineDash !== r && (this.pdf.setLineDash(this.ctx.lineDash, this.ctx.lineDashOffset), this.prevLineDash = r);\n      }\n    };\n}(E.API),\n/**\n * @license\n * jsPDF filters PlugIn\n * Copyright (c) 2014 Aras Abbasi\n *\n * Licensed under the MIT License.\n * http://opensource.org/licenses/mit-license\n */\nfunction (t) {\n  var r = function (t) {\n      var e, r, n, i, a, o, s, c, u, h;\n      for (/[^\\x00-\\xFF]/.test(t), r = [], n = 0, i = (t += e = \"\\0\\0\\0\\0\".slice(t.length % 4 || 4)).length; i > n; n += 4) 0 !== (a = (t.charCodeAt(n) << 24) + (t.charCodeAt(n + 1) << 16) + (t.charCodeAt(n + 2) << 8) + t.charCodeAt(n + 3)) ? (o = (a = ((a = ((a = ((a = (a - (h = a % 85)) / 85) - (u = a % 85)) / 85) - (c = a % 85)) / 85) - (s = a % 85)) / 85) % 85, r.push(o + 33, s + 33, c + 33, u + 33, h + 33)) : r.push(122);\n      return function (t, e) {\n        for (var r = e; r > 0; r--) t.pop();\n      }(r, e.length), String.fromCharCode.apply(String, r) + \"~>\";\n    },\n    n = function (t) {\n      var e,\n        r,\n        n,\n        i,\n        a,\n        o = String,\n        s = \"length\",\n        c = 255,\n        u = \"charCodeAt\",\n        h = \"slice\",\n        l = \"replace\";\n      for (t[h](-2), t = t[h](0, -2)[l](/\\s/g, \"\")[l](\"z\", \"!!!!!\"), n = [], i = 0, a = (t += e = \"uuuuu\"[h](t[s] % 5 || 5))[s]; a > i; i += 5) r = 52200625 * (t[u](i) - 33) + 614125 * (t[u](i + 1) - 33) + 7225 * (t[u](i + 2) - 33) + 85 * (t[u](i + 3) - 33) + (t[u](i + 4) - 33), n.push(c & r >> 24, c & r >> 16, c & r >> 8, c & r);\n      return function (t, e) {\n        for (var r = e; r > 0; r--) t.pop();\n      }(n, e[s]), o.fromCharCode.apply(o, n);\n    },\n    i = function (t) {\n      var e = new RegExp(/^([0-9A-Fa-f]{2})+$/);\n      if (-1 !== (t = t.replace(/\\s/g, \"\")).indexOf(\">\") && (t = t.substr(0, t.indexOf(\">\"))), t.length % 2 && (t += \"0\"), !1 === e.test(t)) return \"\";\n      for (var r = \"\", n = 0; n < t.length; n += 2) r += String.fromCharCode(\"0x\" + (t[n] + t[n + 1]));\n      return r;\n    },\n    a = function (t) {\n      for (var r = new Uint8Array(t.length), n = t.length; n--;) r[n] = t.charCodeAt(n);\n      return t = (r = e(r)).reduce(function (t, e) {\n        return t + String.fromCharCode(e);\n      }, \"\");\n    };\n  t.processDataByFilters = function (t, e) {\n    var o = 0,\n      s = t || \"\",\n      c = [];\n    for (\"string\" == typeof (e = e || []) && (e = [e]), o = 0; o < e.length; o += 1) switch (e[o]) {\n      case \"ASCII85Decode\":\n      case \"/ASCII85Decode\":\n        s = n(s), c.push(\"/ASCII85Encode\");\n        break;\n      case \"ASCII85Encode\":\n      case \"/ASCII85Encode\":\n        s = r(s), c.push(\"/ASCII85Decode\");\n        break;\n      case \"ASCIIHexDecode\":\n      case \"/ASCIIHexDecode\":\n        s = i(s), c.push(\"/ASCIIHexEncode\");\n        break;\n      case \"ASCIIHexEncode\":\n      case \"/ASCIIHexEncode\":\n        s = s.split(\"\").map(function (t) {\n          return (\"0\" + t.charCodeAt().toString(16)).slice(-2);\n        }).join(\"\") + \">\", c.push(\"/ASCIIHexDecode\");\n        break;\n      case \"FlateEncode\":\n      case \"/FlateEncode\":\n        s = a(s), c.push(\"/FlateDecode\");\n        break;\n      default:\n        throw new Error('The filter: \"' + e[o] + '\" is not implemented');\n    }\n    return {\n      data: s,\n      reverseChain: c.reverse().join(\" \")\n    };\n  };\n}(E.API),\n/**\n * @license\n * jsPDF fileloading PlugIn\n * Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)\n *\n * Licensed under the MIT License.\n * http://opensource.org/licenses/mit-license\n */\nfunction (t) {\n  t.loadFile = function (t, e, r) {\n    return function (t, e, r) {\n      e = !1 !== e, r = \"function\" == typeof r ? r : function () {};\n      var n = void 0;\n      try {\n        n = function (t, e, r) {\n          var n = new XMLHttpRequest(),\n            i = 0,\n            a = function (t) {\n              var e = t.length,\n                r = [],\n                n = String.fromCharCode;\n              for (i = 0; i < e; i += 1) r.push(n(255 & t.charCodeAt(i)));\n              return r.join(\"\");\n            };\n          if (n.open(\"GET\", t, !e), n.overrideMimeType(\"text/plain; charset=x-user-defined\"), !1 === e && (n.onload = function () {\n            200 === n.status ? r(a(this.responseText)) : r(void 0);\n          }), n.send(null), e && 200 === n.status) return a(n.responseText);\n        }(t, e, r);\n      } catch (t) {}\n      return n;\n    }(t, e, r);\n  }, t.loadImageFile = t.loadFile;\n}(E.API), function (e) {\n  function r() {\n    return (n.html2canvas ? Promise.resolve(n.html2canvas) : import(\"html2canvas\")).catch(function (t) {\n      return Promise.reject(new Error(\"Could not load html2canvas: \" + t));\n    }).then(function (t) {\n      return t.default ? t.default : t;\n    });\n  }\n  function i() {\n    return (n.DOMPurify ? Promise.resolve(n.DOMPurify) : import(\"dompurify\")).catch(function (t) {\n      return Promise.reject(new Error(\"Could not load dompurify: \" + t));\n    }).then(function (t) {\n      return t.default ? t.default : t;\n    });\n  }\n  var a = function (e) {\n      var r = t(e);\n      return \"undefined\" === r ? \"undefined\" : \"string\" === r || e instanceof String ? \"string\" : \"number\" === r || e instanceof Number ? \"number\" : \"function\" === r || e instanceof Function ? \"function\" : e && e.constructor === Array ? \"array\" : e && 1 === e.nodeType ? \"element\" : \"object\" === r ? \"object\" : \"unknown\";\n    },\n    o = function (t, e) {\n      var r = document.createElement(t);\n      for (var n in e.className && (r.className = e.className), e.innerHTML && e.dompurify && (r.innerHTML = e.dompurify.sanitize(e.innerHTML)), e.style) r.style[n] = e.style[n];\n      return r;\n    },\n    s = function t(e) {\n      var r = Object.assign(t.convert(Promise.resolve()), JSON.parse(JSON.stringify(t.template))),\n        n = t.convert(Promise.resolve(), r);\n      return n = (n = n.setProgress(1, t, 1, [t])).set(e);\n    };\n  (s.prototype = Object.create(Promise.prototype)).constructor = s, s.convert = function (t, e) {\n    return t.__proto__ = e || s.prototype, t;\n  }, s.template = {\n    prop: {\n      src: null,\n      container: null,\n      overlay: null,\n      canvas: null,\n      img: null,\n      pdf: null,\n      pageSize: null,\n      callback: function () {}\n    },\n    progress: {\n      val: 0,\n      state: null,\n      n: 0,\n      stack: []\n    },\n    opt: {\n      filename: \"file.pdf\",\n      margin: [0, 0, 0, 0],\n      enableLinks: !0,\n      x: 0,\n      y: 0,\n      html2canvas: {},\n      jsPDF: {},\n      backgroundColor: \"transparent\"\n    }\n  }, s.prototype.from = function (t, e) {\n    return this.then(function () {\n      switch (e = e || function (t) {\n        switch (a(t)) {\n          case \"string\":\n            return \"string\";\n          case \"element\":\n            return \"canvas\" === t.nodeName.toLowerCase() ? \"canvas\" : \"element\";\n          default:\n            return \"unknown\";\n        }\n      }(t)) {\n        case \"string\":\n          return this.then(i).then(function (e) {\n            return this.set({\n              src: o(\"div\", {\n                innerHTML: t,\n                dompurify: e\n              })\n            });\n          });\n        case \"element\":\n          return this.set({\n            src: t\n          });\n        case \"canvas\":\n          return this.set({\n            canvas: t\n          });\n        case \"img\":\n          return this.set({\n            img: t\n          });\n        default:\n          return this.error(\"Unknown source type.\");\n      }\n    });\n  }, s.prototype.to = function (t) {\n    switch (t) {\n      case \"container\":\n        return this.toContainer();\n      case \"canvas\":\n        return this.toCanvas();\n      case \"img\":\n        return this.toImg();\n      case \"pdf\":\n        return this.toPdf();\n      default:\n        return this.error(\"Invalid target.\");\n    }\n  }, s.prototype.toContainer = function () {\n    return this.thenList([function () {\n      return this.prop.src || this.error(\"Cannot duplicate - no source HTML.\");\n    }, function () {\n      return this.prop.pageSize || this.setPageSize();\n    }]).then(function () {\n      var t = {\n          position: \"relative\",\n          display: \"inline-block\",\n          width: (\"number\" != typeof this.opt.width || isNaN(this.opt.width) || \"number\" != typeof this.opt.windowWidth || isNaN(this.opt.windowWidth) ? Math.max(this.prop.src.clientWidth, this.prop.src.scrollWidth, this.prop.src.offsetWidth) : this.opt.windowWidth) + \"px\",\n          left: 0,\n          right: 0,\n          top: 0,\n          margin: \"auto\",\n          backgroundColor: this.opt.backgroundColor\n        },\n        e = function t(e, r) {\n          for (var n = 3 === e.nodeType ? document.createTextNode(e.nodeValue) : e.cloneNode(!1), i = e.firstChild; i; i = i.nextSibling) !0 !== r && 1 === i.nodeType && \"SCRIPT\" === i.nodeName || n.appendChild(t(i, r));\n          return 1 === e.nodeType && (\"CANVAS\" === e.nodeName ? (n.width = e.width, n.height = e.height, n.getContext(\"2d\").drawImage(e, 0, 0)) : \"TEXTAREA\" !== e.nodeName && \"SELECT\" !== e.nodeName || (n.value = e.value), n.addEventListener(\"load\", function () {\n            n.scrollTop = e.scrollTop, n.scrollLeft = e.scrollLeft;\n          }, !0)), n;\n        }(this.prop.src, this.opt.html2canvas.javascriptEnabled);\n      \"BODY\" === e.tagName && (t.height = Math.max(document.body.scrollHeight, document.body.offsetHeight, document.documentElement.clientHeight, document.documentElement.scrollHeight, document.documentElement.offsetHeight) + \"px\"), this.prop.overlay = o(\"div\", {\n        className: \"html2pdf__overlay\",\n        style: {\n          position: \"fixed\",\n          overflow: \"hidden\",\n          zIndex: 1e3,\n          left: \"-100000px\",\n          right: 0,\n          bottom: 0,\n          top: 0\n        }\n      }), this.prop.container = o(\"div\", {\n        className: \"html2pdf__container\",\n        style: t\n      }), this.prop.container.appendChild(e), this.prop.container.firstChild.appendChild(o(\"div\", {\n        style: {\n          clear: \"both\",\n          border: \"0 none transparent\",\n          margin: 0,\n          padding: 0,\n          height: 0\n        }\n      })), this.prop.container.style.float = \"none\", this.prop.overlay.appendChild(this.prop.container), document.body.appendChild(this.prop.overlay), this.prop.container.firstChild.style.position = \"relative\", this.prop.container.height = Math.max(this.prop.container.firstChild.clientHeight, this.prop.container.firstChild.scrollHeight, this.prop.container.firstChild.offsetHeight) + \"px\";\n    });\n  }, s.prototype.toCanvas = function () {\n    var t = [function () {\n      return document.body.contains(this.prop.container) || this.toContainer();\n    }];\n    return this.thenList(t).then(r).then(function (t) {\n      var e = Object.assign({}, this.opt.html2canvas);\n      return delete e.onrendered, t(this.prop.container, e);\n    }).then(function (t) {\n      (this.opt.html2canvas.onrendered || function () {})(t), this.prop.canvas = t, document.body.removeChild(this.prop.overlay);\n    });\n  }, s.prototype.toContext2d = function () {\n    var t = [function () {\n      return document.body.contains(this.prop.container) || this.toContainer();\n    }];\n    return this.thenList(t).then(r).then(function (t) {\n      var e = this.opt.jsPDF,\n        r = this.opt.fontFaces,\n        n = \"number\" != typeof this.opt.width || isNaN(this.opt.width) || \"number\" != typeof this.opt.windowWidth || isNaN(this.opt.windowWidth) ? 1 : this.opt.width / this.opt.windowWidth,\n        i = Object.assign({\n          async: !0,\n          allowTaint: !0,\n          scale: n,\n          scrollX: this.opt.scrollX || 0,\n          scrollY: this.opt.scrollY || 0,\n          backgroundColor: \"#ffffff\",\n          imageTimeout: 15e3,\n          logging: !0,\n          proxy: null,\n          removeContainer: !0,\n          foreignObjectRendering: !1,\n          useCORS: !1\n        }, this.opt.html2canvas);\n      if (delete i.onrendered, e.context2d.autoPaging = void 0 === this.opt.autoPaging || this.opt.autoPaging, e.context2d.posX = this.opt.x, e.context2d.posY = this.opt.y, e.context2d.margin = this.opt.margin, e.context2d.fontFaces = r, r) for (var a = 0; a < r.length; ++a) {\n        var o = r[a],\n          s = o.src.find(function (t) {\n            return \"truetype\" === t.format;\n          });\n        s && e.addFont(s.url, o.ref.name, o.ref.style);\n      }\n      return i.windowHeight = i.windowHeight || 0, i.windowHeight = 0 == i.windowHeight ? Math.max(this.prop.container.clientHeight, this.prop.container.scrollHeight, this.prop.container.offsetHeight) : i.windowHeight, e.context2d.save(!0), t(this.prop.container, i);\n    }).then(function (t) {\n      this.opt.jsPDF.context2d.restore(!0), (this.opt.html2canvas.onrendered || function () {})(t), this.prop.canvas = t, document.body.removeChild(this.prop.overlay);\n    });\n  }, s.prototype.toImg = function () {\n    return this.thenList([function () {\n      return this.prop.canvas || this.toCanvas();\n    }]).then(function () {\n      var t = this.prop.canvas.toDataURL(\"image/\" + this.opt.image.type, this.opt.image.quality);\n      this.prop.img = document.createElement(\"img\"), this.prop.img.src = t;\n    });\n  }, s.prototype.toPdf = function () {\n    return this.thenList([function () {\n      return this.toContext2d();\n    }]).then(function () {\n      this.prop.pdf = this.prop.pdf || this.opt.jsPDF;\n    });\n  }, s.prototype.output = function (t, e, r) {\n    return \"img\" === (r = r || \"pdf\").toLowerCase() || \"image\" === r.toLowerCase() ? this.outputImg(t, e) : this.outputPdf(t, e);\n  }, s.prototype.outputPdf = function (t, e) {\n    return this.thenList([function () {\n      return this.prop.pdf || this.toPdf();\n    }]).then(function () {\n      return this.prop.pdf.output(t, e);\n    });\n  }, s.prototype.outputImg = function (t) {\n    return this.thenList([function () {\n      return this.prop.img || this.toImg();\n    }]).then(function () {\n      switch (t) {\n        case void 0:\n        case \"img\":\n          return this.prop.img;\n        case \"datauristring\":\n        case \"dataurlstring\":\n          return this.prop.img.src;\n        case \"datauri\":\n        case \"dataurl\":\n          return document.location.href = this.prop.img.src;\n        default:\n          throw 'Image output type \"' + t + '\" is not supported.';\n      }\n    });\n  }, s.prototype.save = function (t) {\n    return this.thenList([function () {\n      return this.prop.pdf || this.toPdf();\n    }]).set(t ? {\n      filename: t\n    } : null).then(function () {\n      this.prop.pdf.save(this.opt.filename);\n    });\n  }, s.prototype.doCallback = function () {\n    return this.thenList([function () {\n      return this.prop.pdf || this.toPdf();\n    }]).then(function () {\n      this.prop.callback(this.prop.pdf);\n    });\n  }, s.prototype.set = function (t) {\n    if (\"object\" !== a(t)) return this;\n    var e = Object.keys(t || {}).map(function (e) {\n      if (e in s.template.prop) return function () {\n        this.prop[e] = t[e];\n      };\n      switch (e) {\n        case \"margin\":\n          return this.setMargin.bind(this, t.margin);\n        case \"jsPDF\":\n          return function () {\n            return this.opt.jsPDF = t.jsPDF, this.setPageSize();\n          };\n        case \"pageSize\":\n          return this.setPageSize.bind(this, t.pageSize);\n        default:\n          return function () {\n            this.opt[e] = t[e];\n          };\n      }\n    }, this);\n    return this.then(function () {\n      return this.thenList(e);\n    });\n  }, s.prototype.get = function (t, e) {\n    return this.then(function () {\n      var r = t in s.template.prop ? this.prop[t] : this.opt[t];\n      return e ? e(r) : r;\n    });\n  }, s.prototype.setMargin = function (t) {\n    return this.then(function () {\n      switch (a(t)) {\n        case \"number\":\n          t = [t, t, t, t];\n        case \"array\":\n          if (2 === t.length && (t = [t[0], t[1], t[0], t[1]]), 4 === t.length) break;\n        default:\n          return this.error(\"Invalid margin array.\");\n      }\n      this.opt.margin = t;\n    }).then(this.setPageSize);\n  }, s.prototype.setPageSize = function (t) {\n    function e(t, e) {\n      return Math.floor(t * e / 72 * 96);\n    }\n    return this.then(function () {\n      (t = t || E.getPageSize(this.opt.jsPDF)).hasOwnProperty(\"inner\") || (t.inner = {\n        width: t.width - this.opt.margin[1] - this.opt.margin[3],\n        height: t.height - this.opt.margin[0] - this.opt.margin[2]\n      }, t.inner.px = {\n        width: e(t.inner.width, t.k),\n        height: e(t.inner.height, t.k)\n      }, t.inner.ratio = t.inner.height / t.inner.width), this.prop.pageSize = t;\n    });\n  }, s.prototype.setProgress = function (t, e, r, n) {\n    return null != t && (this.progress.val = t), null != e && (this.progress.state = e), null != r && (this.progress.n = r), null != n && (this.progress.stack = n), this.progress.ratio = this.progress.val / this.progress.state, this;\n  }, s.prototype.updateProgress = function (t, e, r, n) {\n    return this.setProgress(t ? this.progress.val + t : null, e || null, r ? this.progress.n + r : null, n ? this.progress.stack.concat(n) : null);\n  }, s.prototype.then = function (t, e) {\n    var r = this;\n    return this.thenCore(t, e, function (t, e) {\n      return r.updateProgress(null, null, 1, [t]), Promise.prototype.then.call(this, function (e) {\n        return r.updateProgress(null, t), e;\n      }).then(t, e).then(function (t) {\n        return r.updateProgress(1), t;\n      });\n    });\n  }, s.prototype.thenCore = function (t, e, r) {\n    r = r || Promise.prototype.then;\n    t && (t = t.bind(this)), e && (e = e.bind(this));\n    var n = -1 !== Promise.toString().indexOf(\"[native code]\") && \"Promise\" === Promise.name ? this : s.convert(Object.assign({}, this), Promise.prototype),\n      i = r.call(n, t, e);\n    return s.convert(i, this.__proto__);\n  }, s.prototype.thenExternal = function (t, e) {\n    return Promise.prototype.then.call(this, t, e);\n  }, s.prototype.thenList = function (t) {\n    var e = this;\n    return t.forEach(function (t) {\n      e = e.thenCore(t);\n    }), e;\n  }, s.prototype.catch = function (t) {\n    t && (t = t.bind(this));\n    var e = Promise.prototype.catch.call(this, t);\n    return s.convert(e, this);\n  }, s.prototype.catchExternal = function (t) {\n    return Promise.prototype.catch.call(this, t);\n  }, s.prototype.error = function (t) {\n    return this.then(function () {\n      throw new Error(t);\n    });\n  }, s.prototype.using = s.prototype.set, s.prototype.saveAs = s.prototype.save, s.prototype.export = s.prototype.output, s.prototype.run = s.prototype.then, E.getPageSize = function (e, r, n) {\n    if (\"object\" === t(e)) {\n      var i = e;\n      e = i.orientation, r = i.unit || r, n = i.format || n;\n    }\n    r = r || \"mm\", n = n || \"a4\", e = (\"\" + (e || \"P\")).toLowerCase();\n    var a,\n      o = (\"\" + n).toLowerCase(),\n      s = {\n        a0: [2383.94, 3370.39],\n        a1: [1683.78, 2383.94],\n        a2: [1190.55, 1683.78],\n        a3: [841.89, 1190.55],\n        a4: [595.28, 841.89],\n        a5: [419.53, 595.28],\n        a6: [297.64, 419.53],\n        a7: [209.76, 297.64],\n        a8: [147.4, 209.76],\n        a9: [104.88, 147.4],\n        a10: [73.7, 104.88],\n        b0: [2834.65, 4008.19],\n        b1: [2004.09, 2834.65],\n        b2: [1417.32, 2004.09],\n        b3: [1000.63, 1417.32],\n        b4: [708.66, 1000.63],\n        b5: [498.9, 708.66],\n        b6: [354.33, 498.9],\n        b7: [249.45, 354.33],\n        b8: [175.75, 249.45],\n        b9: [124.72, 175.75],\n        b10: [87.87, 124.72],\n        c0: [2599.37, 3676.54],\n        c1: [1836.85, 2599.37],\n        c2: [1298.27, 1836.85],\n        c3: [918.43, 1298.27],\n        c4: [649.13, 918.43],\n        c5: [459.21, 649.13],\n        c6: [323.15, 459.21],\n        c7: [229.61, 323.15],\n        c8: [161.57, 229.61],\n        c9: [113.39, 161.57],\n        c10: [79.37, 113.39],\n        dl: [311.81, 623.62],\n        letter: [612, 792],\n        \"government-letter\": [576, 756],\n        legal: [612, 1008],\n        \"junior-legal\": [576, 360],\n        ledger: [1224, 792],\n        tabloid: [792, 1224],\n        \"credit-card\": [153, 243]\n      };\n    switch (r) {\n      case \"pt\":\n        a = 1;\n        break;\n      case \"mm\":\n        a = 72 / 25.4;\n        break;\n      case \"cm\":\n        a = 72 / 2.54;\n        break;\n      case \"in\":\n        a = 72;\n        break;\n      case \"px\":\n        a = .75;\n        break;\n      case \"pc\":\n      case \"em\":\n        a = 12;\n        break;\n      case \"ex\":\n        a = 6;\n        break;\n      default:\n        throw \"Invalid unit: \" + r;\n    }\n    var c,\n      u = 0,\n      h = 0;\n    if (s.hasOwnProperty(o)) u = s[o][1] / a, h = s[o][0] / a;else try {\n      u = n[1], h = n[0];\n    } catch (t) {\n      throw new Error(\"Invalid format: \" + n);\n    }\n    if (\"p\" === e || \"portrait\" === e) e = \"p\", h > u && (c = h, h = u, u = c);else {\n      if (\"l\" !== e && \"landscape\" !== e) throw \"Invalid orientation: \" + e;\n      e = \"l\", u > h && (c = h, h = u, u = c);\n    }\n    return {\n      width: h,\n      height: u,\n      unit: r,\n      k: a,\n      orientation: e\n    };\n  }, e.html = function (t, e) {\n    (e = e || {}).callback = e.callback || function () {}, e.html2canvas = e.html2canvas || {}, e.html2canvas.canvas = e.html2canvas.canvas || this.canvas, e.jsPDF = e.jsPDF || this, e.fontFaces = e.fontFaces ? e.fontFaces.map(jt) : null;\n    var r = new s(e);\n    return e.worker ? r : r.from(t).doCallback();\n  };\n}(E.API), E.API.addJS = function (t) {\n  return Ht = t, this.internal.events.subscribe(\"postPutResources\", function () {\n    Ut = this.internal.newObject(), this.internal.out(\"<<\"), this.internal.out(\"/Names [(EmbeddedJS) \" + (Ut + 1) + \" 0 R]\"), this.internal.out(\">>\"), this.internal.out(\"endobj\"), zt = this.internal.newObject(), this.internal.out(\"<<\"), this.internal.out(\"/S /JavaScript\"), this.internal.out(\"/JS (\" + Ht + \")\"), this.internal.out(\">>\"), this.internal.out(\"endobj\");\n  }), this.internal.events.subscribe(\"putCatalog\", function () {\n    void 0 !== Ut && void 0 !== zt && this.internal.out(\"/Names <</JavaScript \" + Ut + \" 0 R>>\");\n  }), this;\n},\n/**\n * @license\n * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv\n *\n * Licensed under the MIT License.\n * http://opensource.org/licenses/mit-license\n */\nfunction (t) {\n  var e;\n  t.events.push([\"postPutResources\", function () {\n    var t = this,\n      r = /^(\\d+) 0 obj$/;\n    if (this.outline.root.children.length > 0) for (var n = t.outline.render().split(/\\r\\n/), i = 0; i < n.length; i++) {\n      var a = n[i],\n        o = r.exec(a);\n      if (null != o) {\n        var s = o[1];\n        t.internal.newObjectDeferredBegin(s, !1);\n      }\n      t.internal.write(a);\n    }\n    if (this.outline.createNamedDestinations) {\n      var c = this.internal.pages.length,\n        u = [];\n      for (i = 0; i < c; i++) {\n        var h = t.internal.newObject();\n        u.push(h);\n        var l = t.internal.getPageInfo(i + 1);\n        t.internal.write(\"<< /D[\" + l.objId + \" 0 R /XYZ null null null]>> endobj\");\n      }\n      var f = t.internal.newObject();\n      t.internal.write(\"<< /Names [ \");\n      for (i = 0; i < u.length; i++) t.internal.write(\"(page_\" + (i + 1) + \")\" + u[i] + \" 0 R\");\n      t.internal.write(\" ] >>\", \"endobj\"), e = t.internal.newObject(), t.internal.write(\"<< /Dests \" + f + \" 0 R\"), t.internal.write(\">>\", \"endobj\");\n    }\n  }]), t.events.push([\"putCatalog\", function () {\n    this.outline.root.children.length > 0 && (this.internal.write(\"/Outlines\", this.outline.makeRef(this.outline.root)), this.outline.createNamedDestinations && this.internal.write(\"/Names \" + e + \" 0 R\"));\n  }]), t.events.push([\"initialized\", function () {\n    var t = this;\n    t.outline = {\n      createNamedDestinations: !1,\n      root: {\n        children: []\n      }\n    }, t.outline.add = function (t, e, r) {\n      var n = {\n        title: e,\n        options: r,\n        children: []\n      };\n      return null == t && (t = this.root), t.children.push(n), n;\n    }, t.outline.render = function () {\n      return this.ctx = {}, this.ctx.val = \"\", this.ctx.pdf = t, this.genIds_r(this.root), this.renderRoot(this.root), this.renderItems(this.root), this.ctx.val;\n    }, t.outline.genIds_r = function (e) {\n      e.id = t.internal.newObjectDeferred();\n      for (var r = 0; r < e.children.length; r++) this.genIds_r(e.children[r]);\n    }, t.outline.renderRoot = function (t) {\n      this.objStart(t), this.line(\"/Type /Outlines\"), t.children.length > 0 && (this.line(\"/First \" + this.makeRef(t.children[0])), this.line(\"/Last \" + this.makeRef(t.children[t.children.length - 1]))), this.line(\"/Count \" + this.count_r({\n        count: 0\n      }, t)), this.objEnd();\n    }, t.outline.renderItems = function (e) {\n      for (var r = this.ctx.pdf.internal.getVerticalCoordinateString, n = 0; n < e.children.length; n++) {\n        var i = e.children[n];\n        this.objStart(i), this.line(\"/Title \" + this.makeString(i.title)), this.line(\"/Parent \" + this.makeRef(e)), n > 0 && this.line(\"/Prev \" + this.makeRef(e.children[n - 1])), n < e.children.length - 1 && this.line(\"/Next \" + this.makeRef(e.children[n + 1])), i.children.length > 0 && (this.line(\"/First \" + this.makeRef(i.children[0])), this.line(\"/Last \" + this.makeRef(i.children[i.children.length - 1])));\n        var a = this.count = this.count_r({\n          count: 0\n        }, i);\n        if (a > 0 && this.line(\"/Count \" + a), i.options && i.options.pageNumber) {\n          var o = t.internal.getPageInfo(i.options.pageNumber);\n          this.line(\"/Dest [\" + o.objId + \" 0 R /XYZ 0 \" + r(0) + \" 0]\");\n        }\n        this.objEnd();\n      }\n      for (var s = 0; s < e.children.length; s++) this.renderItems(e.children[s]);\n    }, t.outline.line = function (t) {\n      this.ctx.val += t + \"\\r\\n\";\n    }, t.outline.makeRef = function (t) {\n      return t.id + \" 0 R\";\n    }, t.outline.makeString = function (e) {\n      return \"(\" + t.internal.pdfEscape(e) + \")\";\n    }, t.outline.objStart = function (t) {\n      this.ctx.val += \"\\r\\n\" + t.id + \" 0 obj\\r\\n<<\\r\\n\";\n    }, t.outline.objEnd = function () {\n      this.ctx.val += \">> \\r\\nendobj\\r\\n\";\n    }, t.outline.count_r = function (t, e) {\n      for (var r = 0; r < e.children.length; r++) t.count++, this.count_r(t, e.children[r]);\n      return t.count;\n    };\n  }]);\n}(E.API),\n/**\n * @license\n *\n * Licensed under the MIT License.\n * http://opensource.org/licenses/mit-license\n */\nfunction (t) {\n  var e = [192, 193, 194, 195, 196, 197, 198, 199];\n  t.processJPEG = function (t, r, n, i, a, o) {\n    var s,\n      c = this.decode.DCT_DECODE,\n      u = null;\n    if (\"string\" == typeof t || this.__addimage__.isArrayBuffer(t) || this.__addimage__.isArrayBufferView(t)) {\n      switch (t = a || t, t = this.__addimage__.isArrayBuffer(t) ? new Uint8Array(t) : t, (s = function (t) {\n        for (var r, n = 256 * t.charCodeAt(4) + t.charCodeAt(5), i = t.length, a = {\n            width: 0,\n            height: 0,\n            numcomponents: 1\n          }, o = 4; o < i; o += 2) {\n          if (o += n, -1 !== e.indexOf(t.charCodeAt(o + 1))) {\n            r = 256 * t.charCodeAt(o + 5) + t.charCodeAt(o + 6), a = {\n              width: 256 * t.charCodeAt(o + 7) + t.charCodeAt(o + 8),\n              height: r,\n              numcomponents: t.charCodeAt(o + 9)\n            };\n            break;\n          }\n          n = 256 * t.charCodeAt(o + 2) + t.charCodeAt(o + 3);\n        }\n        return a;\n      }(t = this.__addimage__.isArrayBufferView(t) ? this.__addimage__.arrayBufferToBinaryString(t) : t)).numcomponents) {\n        case 1:\n          o = this.color_spaces.DEVICE_GRAY;\n          break;\n        case 4:\n          o = this.color_spaces.DEVICE_CMYK;\n          break;\n        case 3:\n          o = this.color_spaces.DEVICE_RGB;\n      }\n      u = {\n        data: t,\n        width: s.width,\n        height: s.height,\n        colorSpace: o,\n        bitsPerComponent: 8,\n        filter: c,\n        index: r,\n        alias: n\n      };\n    }\n    return u;\n  };\n}(E.API);\nvar Vt,\n  Gt,\n  Yt,\n  Jt,\n  Xt,\n  Kt = function () {\n    var t, e, i;\n    function a(t) {\n      var e, r, n, i, a, o, s, c, u, h, l, f, d, p;\n      for (this.data = t, this.pos = 8, this.palette = [], this.imgData = [], this.transparency = {}, this.animation = null, this.text = {}, o = null;;) {\n        switch (e = this.readUInt32(), u = function () {\n          var t, e;\n          for (e = [], t = 0; t < 4; ++t) e.push(String.fromCharCode(this.data[this.pos++]));\n          return e;\n        }.call(this).join(\"\")) {\n          case \"IHDR\":\n            this.width = this.readUInt32(), this.height = this.readUInt32(), this.bits = this.data[this.pos++], this.colorType = this.data[this.pos++], this.compressionMethod = this.data[this.pos++], this.filterMethod = this.data[this.pos++], this.interlaceMethod = this.data[this.pos++];\n            break;\n          case \"acTL\":\n            this.animation = {\n              numFrames: this.readUInt32(),\n              numPlays: this.readUInt32() || 1 / 0,\n              frames: []\n            };\n            break;\n          case \"PLTE\":\n            this.palette = this.read(e);\n            break;\n          case \"fcTL\":\n            o && this.animation.frames.push(o), this.pos += 4, o = {\n              width: this.readUInt32(),\n              height: this.readUInt32(),\n              xOffset: this.readUInt32(),\n              yOffset: this.readUInt32()\n            }, a = this.readUInt16(), i = this.readUInt16() || 100, o.delay = 1e3 * a / i, o.disposeOp = this.data[this.pos++], o.blendOp = this.data[this.pos++], o.data = [];\n            break;\n          case \"IDAT\":\n          case \"fdAT\":\n            for (\"fdAT\" === u && (this.pos += 4, e -= 4), t = (null != o ? o.data : void 0) || this.imgData, f = 0; 0 <= e ? f < e : f > e; 0 <= e ? ++f : --f) t.push(this.data[this.pos++]);\n            break;\n          case \"tRNS\":\n            switch (this.transparency = {}, this.colorType) {\n              case 3:\n                if (n = this.palette.length / 3, this.transparency.indexed = this.read(e), this.transparency.indexed.length > n) throw new Error(\"More transparent colors than palette size\");\n                if ((h = n - this.transparency.indexed.length) > 0) for (d = 0; 0 <= h ? d < h : d > h; 0 <= h ? ++d : --d) this.transparency.indexed.push(255);\n                break;\n              case 0:\n                this.transparency.grayscale = this.read(e)[0];\n                break;\n              case 2:\n                this.transparency.rgb = this.read(e);\n            }\n            break;\n          case \"tEXt\":\n            s = (l = this.read(e)).indexOf(0), c = String.fromCharCode.apply(String, l.slice(0, s)), this.text[c] = String.fromCharCode.apply(String, l.slice(s + 1));\n            break;\n          case \"IEND\":\n            return o && this.animation.frames.push(o), this.colors = function () {\n              switch (this.colorType) {\n                case 0:\n                case 3:\n                case 4:\n                  return 1;\n                case 2:\n                case 6:\n                  return 3;\n              }\n            }.call(this), this.hasAlphaChannel = 4 === (p = this.colorType) || 6 === p, r = this.colors + (this.hasAlphaChannel ? 1 : 0), this.pixelBitlength = this.bits * r, this.colorSpace = function () {\n              switch (this.colors) {\n                case 1:\n                  return \"DeviceGray\";\n                case 3:\n                  return \"DeviceRGB\";\n              }\n            }.call(this), void (this.imgData = new Uint8Array(this.imgData));\n          default:\n            this.pos += e;\n        }\n        if (this.pos += 4, this.pos > this.data.length) throw new Error(\"Incomplete or corrupt PNG file\");\n      }\n    }\n    a.prototype.read = function (t) {\n      var e, r;\n      for (r = [], e = 0; 0 <= t ? e < t : e > t; 0 <= t ? ++e : --e) r.push(this.data[this.pos++]);\n      return r;\n    }, a.prototype.readUInt32 = function () {\n      return this.data[this.pos++] << 24 | this.data[this.pos++] << 16 | this.data[this.pos++] << 8 | this.data[this.pos++];\n    }, a.prototype.readUInt16 = function () {\n      return this.data[this.pos++] << 8 | this.data[this.pos++];\n    }, a.prototype.decodePixels = function (t) {\n      var e = this.pixelBitlength / 8,\n        n = new Uint8Array(this.width * this.height * e),\n        i = 0,\n        a = this;\n      if (null == t && (t = this.imgData), 0 === t.length) return new Uint8Array(0);\n      function o(r, o, s, c) {\n        var u,\n          h,\n          l,\n          f,\n          d,\n          p,\n          g,\n          m,\n          v,\n          b,\n          y,\n          w,\n          N,\n          L,\n          A,\n          x,\n          S,\n          _,\n          P,\n          k,\n          I,\n          F = Math.ceil((a.width - r) / s),\n          C = Math.ceil((a.height - o) / c),\n          j = a.width == F && a.height == C;\n        for (L = e * F, w = j ? n : new Uint8Array(L * C), p = t.length, N = 0, h = 0; N < C && i < p;) {\n          switch (t[i++]) {\n            case 0:\n              for (f = S = 0; S < L; f = S += 1) w[h++] = t[i++];\n              break;\n            case 1:\n              for (f = _ = 0; _ < L; f = _ += 1) u = t[i++], d = f < e ? 0 : w[h - e], w[h++] = (u + d) % 256;\n              break;\n            case 2:\n              for (f = P = 0; P < L; f = P += 1) u = t[i++], l = (f - f % e) / e, A = N && w[(N - 1) * L + l * e + f % e], w[h++] = (A + u) % 256;\n              break;\n            case 3:\n              for (f = k = 0; k < L; f = k += 1) u = t[i++], l = (f - f % e) / e, d = f < e ? 0 : w[h - e], A = N && w[(N - 1) * L + l * e + f % e], w[h++] = (u + Math.floor((d + A) / 2)) % 256;\n              break;\n            case 4:\n              for (f = I = 0; I < L; f = I += 1) u = t[i++], l = (f - f % e) / e, d = f < e ? 0 : w[h - e], 0 === N ? A = x = 0 : (A = w[(N - 1) * L + l * e + f % e], x = l && w[(N - 1) * L + (l - 1) * e + f % e]), g = d + A - x, m = Math.abs(g - d), b = Math.abs(g - A), y = Math.abs(g - x), v = m <= b && m <= y ? d : b <= y ? A : x, w[h++] = (u + v) % 256;\n              break;\n            default:\n              throw new Error(\"Invalid filter algorithm: \" + t[i - 1]);\n          }\n          if (!j) {\n            var O = ((o + N * c) * a.width + r) * e,\n              B = N * L;\n            for (f = 0; f < F; f += 1) {\n              for (var M = 0; M < e; M += 1) n[O++] = w[B++];\n              O += (s - 1) * e;\n            }\n          }\n          N++;\n        }\n      }\n      return t = r(t), 1 == a.interlaceMethod ? (o(0, 0, 8, 8), o(4, 0, 8, 8), o(0, 4, 4, 8), o(2, 0, 4, 4), o(0, 2, 2, 4), o(1, 0, 2, 2), o(0, 1, 1, 2)) : o(0, 0, 1, 1), n;\n    }, a.prototype.decodePalette = function () {\n      var t, e, r, n, i, a, o, s, c;\n      for (r = this.palette, a = this.transparency.indexed || [], i = new Uint8Array((a.length || 0) + r.length), n = 0, t = 0, e = o = 0, s = r.length; o < s; e = o += 3) i[n++] = r[e], i[n++] = r[e + 1], i[n++] = r[e + 2], i[n++] = null != (c = a[t++]) ? c : 255;\n      return i;\n    }, a.prototype.copyToImageData = function (t, e) {\n      var r, n, i, a, o, s, c, u, h, l, f;\n      if (n = this.colors, h = null, r = this.hasAlphaChannel, this.palette.length && (h = null != (f = this._decodedPalette) ? f : this._decodedPalette = this.decodePalette(), n = 4, r = !0), u = (i = t.data || t).length, o = h || e, a = s = 0, 1 === n) for (; a < u;) c = h ? 4 * e[a / 4] : s, l = o[c++], i[a++] = l, i[a++] = l, i[a++] = l, i[a++] = r ? o[c++] : 255, s = c;else for (; a < u;) c = h ? 4 * e[a / 4] : s, i[a++] = o[c++], i[a++] = o[c++], i[a++] = o[c++], i[a++] = r ? o[c++] : 255, s = c;\n    }, a.prototype.decode = function () {\n      var t;\n      return t = new Uint8Array(this.width * this.height * 4), this.copyToImageData(t, this.decodePixels()), t;\n    };\n    var o = function () {\n      if (\"[object Window]\" === Object.prototype.toString.call(n)) {\n        try {\n          e = n.document.createElement(\"canvas\"), i = e.getContext(\"2d\");\n        } catch (t) {\n          return !1;\n        }\n        return !0;\n      }\n      return !1;\n    };\n    return o(), t = function (t) {\n      var r;\n      if (!0 === o()) return i.width = t.width, i.height = t.height, i.clearRect(0, 0, t.width, t.height), i.putImageData(t, 0, 0), (r = new Image()).src = e.toDataURL(), r;\n      throw new Error(\"This method requires a Browser with Canvas-capability.\");\n    }, a.prototype.decodeFrames = function (e) {\n      var r, n, i, a, o, s, c, u;\n      if (this.animation) {\n        for (u = [], n = o = 0, s = (c = this.animation.frames).length; o < s; n = ++o) r = c[n], i = e.createImageData(r.width, r.height), a = this.decodePixels(new Uint8Array(r.data)), this.copyToImageData(i, a), r.imageData = i, u.push(r.image = t(i));\n        return u;\n      }\n    }, a.prototype.renderFrame = function (t, e) {\n      var r, n, i;\n      return r = (n = this.animation.frames)[e], i = n[e - 1], 0 === e && t.clearRect(0, 0, this.width, this.height), 1 === (null != i ? i.disposeOp : void 0) ? t.clearRect(i.xOffset, i.yOffset, i.width, i.height) : 2 === (null != i ? i.disposeOp : void 0) && t.putImageData(i.imageData, i.xOffset, i.yOffset), 0 === r.blendOp && t.clearRect(r.xOffset, r.yOffset, r.width, r.height), t.drawImage(r.image, r.xOffset, r.yOffset);\n    }, a.prototype.animate = function (t) {\n      var e,\n        r,\n        n,\n        i,\n        a,\n        o,\n        s = this;\n      return r = 0, o = this.animation, i = o.numFrames, n = o.frames, a = o.numPlays, (e = function () {\n        var o, c;\n        if (o = r++ % i, c = n[o], s.renderFrame(t, o), i > 1 && r / i < a) return s.animation._timeout = setTimeout(e, c.delay);\n      })();\n    }, a.prototype.stopAnimation = function () {\n      var t;\n      return clearTimeout(null != (t = this.animation) ? t._timeout : void 0);\n    }, a.prototype.render = function (t) {\n      var e, r;\n      return t._png && t._png.stopAnimation(), t._png = this, t.width = this.width, t.height = this.height, e = t.getContext(\"2d\"), this.animation ? (this.decodeFrames(e), this.animate(e)) : (r = e.createImageData(this.width, this.height), this.copyToImageData(r, this.decodePixels()), e.putImageData(r, 0, 0));\n    }, a;\n  }();\n/**\n * @license\n *\n * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * \"Software\"), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modify, merge, publish,\n * distribute, sublicense, and/or sell copies of the Software, and to\n * permit persons to whom the Software is furnished to do so, subject to\n * the following conditions:\n *\n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n * ====================================================================\n */\n/**\n * @license\n * (c) Dean McNamee <dean@gmail.com>, 2013.\n *\n * https://github.com/deanm/omggif\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n *\n * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,\n * including animation and compression.  It does not rely on any specific\n * underlying system, so should run in the browser, Node, or Plask.\n */\nfunction Zt(t) {\n  var e = 0;\n  if (71 !== t[e++] || 73 !== t[e++] || 70 !== t[e++] || 56 !== t[e++] || 56 != (t[e++] + 1 & 253) || 97 !== t[e++]) throw new Error(\"Invalid GIF 87a/89a header.\");\n  var r = t[e++] | t[e++] << 8,\n    n = t[e++] | t[e++] << 8,\n    i = t[e++],\n    a = i >> 7,\n    o = 1 << (7 & i) + 1;\n  t[e++];\n  t[e++];\n  var s = null,\n    c = null;\n  a && (s = e, c = o, e += 3 * o);\n  var u = !0,\n    h = [],\n    l = 0,\n    f = null,\n    d = 0,\n    p = null;\n  for (this.width = r, this.height = n; u && e < t.length;) switch (t[e++]) {\n    case 33:\n      switch (t[e++]) {\n        case 255:\n          if (11 !== t[e] || 78 == t[e + 1] && 69 == t[e + 2] && 84 == t[e + 3] && 83 == t[e + 4] && 67 == t[e + 5] && 65 == t[e + 6] && 80 == t[e + 7] && 69 == t[e + 8] && 50 == t[e + 9] && 46 == t[e + 10] && 48 == t[e + 11] && 3 == t[e + 12] && 1 == t[e + 13] && 0 == t[e + 16]) e += 14, p = t[e++] | t[e++] << 8, e++;else for (e += 12;;) {\n            if (!((P = t[e++]) >= 0)) throw Error(\"Invalid block size\");\n            if (0 === P) break;\n            e += P;\n          }\n          break;\n        case 249:\n          if (4 !== t[e++] || 0 !== t[e + 4]) throw new Error(\"Invalid graphics extension block.\");\n          var g = t[e++];\n          l = t[e++] | t[e++] << 8, f = t[e++], 0 == (1 & g) && (f = null), d = g >> 2 & 7, e++;\n          break;\n        case 254:\n          for (;;) {\n            if (!((P = t[e++]) >= 0)) throw Error(\"Invalid block size\");\n            if (0 === P) break;\n            e += P;\n          }\n          break;\n        default:\n          throw new Error(\"Unknown graphic control label: 0x\" + t[e - 1].toString(16));\n      }\n      break;\n    case 44:\n      var m = t[e++] | t[e++] << 8,\n        v = t[e++] | t[e++] << 8,\n        b = t[e++] | t[e++] << 8,\n        y = t[e++] | t[e++] << 8,\n        w = t[e++],\n        N = w >> 6 & 1,\n        L = 1 << (7 & w) + 1,\n        A = s,\n        x = c,\n        S = !1;\n      if (w >> 7) {\n        S = !0;\n        A = e, x = L, e += 3 * L;\n      }\n      var _ = e;\n      for (e++;;) {\n        var P;\n        if (!((P = t[e++]) >= 0)) throw Error(\"Invalid block size\");\n        if (0 === P) break;\n        e += P;\n      }\n      h.push({\n        x: m,\n        y: v,\n        width: b,\n        height: y,\n        has_local_palette: S,\n        palette_offset: A,\n        palette_size: x,\n        data_offset: _,\n        data_length: e - _,\n        transparent_index: f,\n        interlaced: !!N,\n        delay: l,\n        disposal: d\n      });\n      break;\n    case 59:\n      u = !1;\n      break;\n    default:\n      throw new Error(\"Unknown gif block: 0x\" + t[e - 1].toString(16));\n  }\n  this.numFrames = function () {\n    return h.length;\n  }, this.loopCount = function () {\n    return p;\n  }, this.frameInfo = function (t) {\n    if (t < 0 || t >= h.length) throw new Error(\"Frame index out of range.\");\n    return h[t];\n  }, this.decodeAndBlitFrameBGRA = function (e, n) {\n    var i = this.frameInfo(e),\n      a = i.width * i.height,\n      o = new Uint8Array(a);\n    $t(t, i.data_offset, o, a);\n    var s = i.palette_offset,\n      c = i.transparent_index;\n    null === c && (c = 256);\n    var u = i.width,\n      h = r - u,\n      l = u,\n      f = 4 * (i.y * r + i.x),\n      d = 4 * ((i.y + i.height) * r + i.x),\n      p = f,\n      g = 4 * h;\n    !0 === i.interlaced && (g += 4 * r * 7);\n    for (var m = 8, v = 0, b = o.length; v < b; ++v) {\n      var y = o[v];\n      if (0 === l && (l = u, (p += g) >= d && (g = 4 * h + 4 * r * (m - 1), p = f + (u + h) * (m << 1), m >>= 1)), y === c) p += 4;else {\n        var w = t[s + 3 * y],\n          N = t[s + 3 * y + 1],\n          L = t[s + 3 * y + 2];\n        n[p++] = L, n[p++] = N, n[p++] = w, n[p++] = 255;\n      }\n      --l;\n    }\n  }, this.decodeAndBlitFrameRGBA = function (e, n) {\n    var i = this.frameInfo(e),\n      a = i.width * i.height,\n      o = new Uint8Array(a);\n    $t(t, i.data_offset, o, a);\n    var s = i.palette_offset,\n      c = i.transparent_index;\n    null === c && (c = 256);\n    var u = i.width,\n      h = r - u,\n      l = u,\n      f = 4 * (i.y * r + i.x),\n      d = 4 * ((i.y + i.height) * r + i.x),\n      p = f,\n      g = 4 * h;\n    !0 === i.interlaced && (g += 4 * r * 7);\n    for (var m = 8, v = 0, b = o.length; v < b; ++v) {\n      var y = o[v];\n      if (0 === l && (l = u, (p += g) >= d && (g = 4 * h + 4 * r * (m - 1), p = f + (u + h) * (m << 1), m >>= 1)), y === c) p += 4;else {\n        var w = t[s + 3 * y],\n          N = t[s + 3 * y + 1],\n          L = t[s + 3 * y + 2];\n        n[p++] = w, n[p++] = N, n[p++] = L, n[p++] = 255;\n      }\n      --l;\n    }\n  };\n}\nfunction $t(t, e, r, n) {\n  for (var i = t[e++], o = 1 << i, s = o + 1, c = s + 1, u = i + 1, h = (1 << u) - 1, l = 0, f = 0, d = 0, p = t[e++], g = new Int32Array(4096), m = null;;) {\n    for (; l < 16 && 0 !== p;) f |= t[e++] << l, l += 8, 1 === p ? p = t[e++] : --p;\n    if (l < u) break;\n    var v = f & h;\n    if (f >>= u, l -= u, v !== o) {\n      if (v === s) break;\n      for (var b = v < c ? v : m, y = 0, w = b; w > o;) w = g[w] >> 8, ++y;\n      var N = w;\n      if (d + y + (b !== v ? 1 : 0) > n) return void a.log(\"Warning, gif stream longer than expected.\");\n      r[d++] = N;\n      var L = d += y;\n      for (b !== v && (r[d++] = N), w = b; y--;) w = g[w], r[--L] = 255 & w, w >>= 8;\n      null !== m && c < 4096 && (g[c++] = m << 8 | N, c >= h + 1 && u < 12 && (++u, h = h << 1 | 1)), m = v;\n    } else c = s + 1, h = (1 << (u = i + 1)) - 1, m = null;\n  }\n  return d !== n && a.log(\"Warning, gif stream shorter than expected.\"), r;\n}\n/**\n * @license\n  Copyright (c) 2008, Adobe Systems Incorporated\n  All rights reserved.\n\n  Redistribution and use in source and binary forms, with or without \n  modification, are permitted provided that the following conditions are\n  met:\n\n  * Redistributions of source code must retain the above copyright notice, \n    this list of conditions and the following disclaimer.\n  \n  * Redistributions in binary form must reproduce the above copyright\n    notice, this list of conditions and the following disclaimer in the \n    documentation and/or other materials provided with the distribution.\n  \n  * Neither the name of Adobe Systems Incorporated nor the names of its \n    contributors may be used to endorse or promote products derived from \n    this software without specific prior written permission.\n\n  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS\n  IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\n  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR \n  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\n  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\nfunction Qt(t) {\n  var e,\n    r,\n    n,\n    i,\n    a,\n    o = Math.floor,\n    s = new Array(64),\n    c = new Array(64),\n    u = new Array(64),\n    h = new Array(64),\n    l = new Array(65535),\n    f = new Array(65535),\n    d = new Array(64),\n    p = new Array(64),\n    g = [],\n    m = 0,\n    v = 7,\n    b = new Array(64),\n    y = new Array(64),\n    w = new Array(64),\n    N = new Array(256),\n    L = new Array(2048),\n    A = [0, 1, 5, 6, 14, 15, 27, 28, 2, 4, 7, 13, 16, 26, 29, 42, 3, 8, 12, 17, 25, 30, 41, 43, 9, 11, 18, 24, 31, 40, 44, 53, 10, 19, 23, 32, 39, 45, 52, 54, 20, 22, 33, 38, 46, 51, 55, 60, 21, 34, 37, 47, 50, 56, 59, 61, 35, 36, 48, 49, 57, 58, 62, 63],\n    x = [0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0],\n    S = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],\n    _ = [0, 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 125],\n    P = [1, 2, 3, 0, 4, 17, 5, 18, 33, 49, 65, 6, 19, 81, 97, 7, 34, 113, 20, 50, 129, 145, 161, 8, 35, 66, 177, 193, 21, 82, 209, 240, 36, 51, 98, 114, 130, 9, 10, 22, 23, 24, 25, 26, 37, 38, 39, 40, 41, 42, 52, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250],\n    k = [0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0],\n    I = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],\n    F = [0, 0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 1, 2, 119],\n    C = [0, 1, 2, 3, 17, 4, 5, 33, 49, 6, 18, 65, 81, 7, 97, 113, 19, 34, 50, 129, 8, 20, 66, 145, 161, 177, 193, 9, 35, 51, 82, 240, 21, 98, 114, 209, 10, 22, 36, 52, 225, 37, 241, 23, 24, 25, 26, 38, 39, 40, 41, 42, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 130, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 226, 227, 228, 229, 230, 231, 232, 233, 234, 242, 243, 244, 245, 246, 247, 248, 249, 250];\n  function j(t, e) {\n    for (var r = 0, n = 0, i = new Array(), a = 1; a <= 16; a++) {\n      for (var o = 1; o <= t[a]; o++) i[e[n]] = [], i[e[n]][0] = r, i[e[n]][1] = a, n++, r++;\n      r *= 2;\n    }\n    return i;\n  }\n  function O(t) {\n    for (var e = t[0], r = t[1] - 1; r >= 0;) e & 1 << r && (m |= 1 << v), r--, --v < 0 && (255 == m ? (B(255), B(0)) : B(m), v = 7, m = 0);\n  }\n  function B(t) {\n    g.push(t);\n  }\n  function M(t) {\n    B(t >> 8 & 255), B(255 & t);\n  }\n  function E(t, e, r, n, i) {\n    for (var a, o = i[0], s = i[240], c = function (t, e) {\n        var r,\n          n,\n          i,\n          a,\n          o,\n          s,\n          c,\n          u,\n          h,\n          l,\n          f = 0;\n        for (h = 0; h < 8; ++h) {\n          r = t[f], n = t[f + 1], i = t[f + 2], a = t[f + 3], o = t[f + 4], s = t[f + 5], c = t[f + 6];\n          var p = r + (u = t[f + 7]),\n            g = r - u,\n            m = n + c,\n            v = n - c,\n            b = i + s,\n            y = i - s,\n            w = a + o,\n            N = a - o,\n            L = p + w,\n            A = p - w,\n            x = m + b,\n            S = m - b;\n          t[f] = L + x, t[f + 4] = L - x;\n          var _ = .707106781 * (S + A);\n          t[f + 2] = A + _, t[f + 6] = A - _;\n          var P = .382683433 * ((L = N + y) - (S = v + g)),\n            k = .5411961 * L + P,\n            I = 1.306562965 * S + P,\n            F = .707106781 * (x = y + v),\n            C = g + F,\n            j = g - F;\n          t[f + 5] = j + k, t[f + 3] = j - k, t[f + 1] = C + I, t[f + 7] = C - I, f += 8;\n        }\n        for (f = 0, h = 0; h < 8; ++h) {\n          r = t[f], n = t[f + 8], i = t[f + 16], a = t[f + 24], o = t[f + 32], s = t[f + 40], c = t[f + 48];\n          var O = r + (u = t[f + 56]),\n            B = r - u,\n            M = n + c,\n            E = n - c,\n            q = i + s,\n            D = i - s,\n            R = a + o,\n            T = a - o,\n            U = O + R,\n            z = O - R,\n            H = M + q,\n            W = M - q;\n          t[f] = U + H, t[f + 32] = U - H;\n          var V = .707106781 * (W + z);\n          t[f + 16] = z + V, t[f + 48] = z - V;\n          var G = .382683433 * ((U = T + D) - (W = E + B)),\n            Y = .5411961 * U + G,\n            J = 1.306562965 * W + G,\n            X = .707106781 * (H = D + E),\n            K = B + X,\n            Z = B - X;\n          t[f + 40] = Z + Y, t[f + 24] = Z - Y, t[f + 8] = K + J, t[f + 56] = K - J, f++;\n        }\n        for (h = 0; h < 64; ++h) l = t[h] * e[h], d[h] = l > 0 ? l + .5 | 0 : l - .5 | 0;\n        return d;\n      }(t, e), u = 0; u < 64; ++u) p[A[u]] = c[u];\n    var h = p[0] - r;\n    r = p[0], 0 == h ? O(n[0]) : (O(n[f[a = 32767 + h]]), O(l[a]));\n    for (var g = 63; g > 0 && 0 == p[g];) g--;\n    if (0 == g) return O(o), r;\n    for (var m, v = 1; v <= g;) {\n      for (var b = v; 0 == p[v] && v <= g;) ++v;\n      var y = v - b;\n      if (y >= 16) {\n        m = y >> 4;\n        for (var w = 1; w <= m; ++w) O(s);\n        y &= 15;\n      }\n      a = 32767 + p[v], O(i[(y << 4) + f[a]]), O(l[a]), v++;\n    }\n    return 63 != g && O(o), r;\n  }\n  function q(t) {\n    (t = Math.min(Math.max(t, 1), 100), a != t) && (!function (t) {\n      for (var e = [16, 11, 10, 16, 24, 40, 51, 61, 12, 12, 14, 19, 26, 58, 60, 55, 14, 13, 16, 24, 40, 57, 69, 56, 14, 17, 22, 29, 51, 87, 80, 62, 18, 22, 37, 56, 68, 109, 103, 77, 24, 35, 55, 64, 81, 104, 113, 92, 49, 64, 78, 87, 103, 121, 120, 101, 72, 92, 95, 98, 112, 100, 103, 99], r = 0; r < 64; r++) {\n        var n = o((e[r] * t + 50) / 100);\n        n = Math.min(Math.max(n, 1), 255), s[A[r]] = n;\n      }\n      for (var i = [17, 18, 24, 47, 99, 99, 99, 99, 18, 21, 26, 66, 99, 99, 99, 99, 24, 26, 56, 99, 99, 99, 99, 99, 47, 66, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99], a = 0; a < 64; a++) {\n        var l = o((i[a] * t + 50) / 100);\n        l = Math.min(Math.max(l, 1), 255), c[A[a]] = l;\n      }\n      for (var f = [1, 1.387039845, 1.306562965, 1.175875602, 1, .785694958, .5411961, .275899379], d = 0, p = 0; p < 8; p++) for (var g = 0; g < 8; g++) u[d] = 1 / (s[A[d]] * f[p] * f[g] * 8), h[d] = 1 / (c[A[d]] * f[p] * f[g] * 8), d++;\n    }(t < 50 ? Math.floor(5e3 / t) : Math.floor(200 - 2 * t)), a = t);\n  }\n  this.encode = function (t, a) {\n    a && q(a), g = new Array(), m = 0, v = 7, M(65496), M(65504), M(16), B(74), B(70), B(73), B(70), B(0), B(1), B(1), B(0), M(1), M(1), B(0), B(0), function () {\n      M(65499), M(132), B(0);\n      for (var t = 0; t < 64; t++) B(s[t]);\n      B(1);\n      for (var e = 0; e < 64; e++) B(c[e]);\n    }(), function (t, e) {\n      M(65472), M(17), B(8), M(e), M(t), B(3), B(1), B(17), B(0), B(2), B(17), B(1), B(3), B(17), B(1);\n    }(t.width, t.height), function () {\n      M(65476), M(418), B(0);\n      for (var t = 0; t < 16; t++) B(x[t + 1]);\n      for (var e = 0; e <= 11; e++) B(S[e]);\n      B(16);\n      for (var r = 0; r < 16; r++) B(_[r + 1]);\n      for (var n = 0; n <= 161; n++) B(P[n]);\n      B(1);\n      for (var i = 0; i < 16; i++) B(k[i + 1]);\n      for (var a = 0; a <= 11; a++) B(I[a]);\n      B(17);\n      for (var o = 0; o < 16; o++) B(F[o + 1]);\n      for (var s = 0; s <= 161; s++) B(C[s]);\n    }(), M(65498), M(12), B(3), B(1), B(0), B(2), B(17), B(3), B(17), B(0), B(63), B(0);\n    var o = 0,\n      l = 0,\n      f = 0;\n    m = 0, v = 7, this.encode.displayName = \"_encode_\";\n    for (var d, p, N, A, j, D, R, T, U, z = t.data, H = t.width, W = t.height, V = 4 * H, G = 0; G < W;) {\n      for (d = 0; d < V;) {\n        for (j = V * G + d, R = -1, T = 0, U = 0; U < 64; U++) D = j + (T = U >> 3) * V + (R = 4 * (7 & U)), G + T >= W && (D -= V * (G + 1 + T - W)), d + R >= V && (D -= d + R - V + 4), p = z[D++], N = z[D++], A = z[D++], b[U] = (L[p] + L[N + 256 >> 0] + L[A + 512 >> 0] >> 16) - 128, y[U] = (L[p + 768 >> 0] + L[N + 1024 >> 0] + L[A + 1280 >> 0] >> 16) - 128, w[U] = (L[p + 1280 >> 0] + L[N + 1536 >> 0] + L[A + 1792 >> 0] >> 16) - 128;\n        o = E(b, u, o, e, n), l = E(y, h, l, r, i), f = E(w, h, f, r, i), d += 32;\n      }\n      G += 8;\n    }\n    if (v >= 0) {\n      var Y = [];\n      Y[1] = v + 1, Y[0] = (1 << v + 1) - 1, O(Y);\n    }\n    return M(65497), new Uint8Array(g);\n  }, t = t || 50, function () {\n    for (var t = String.fromCharCode, e = 0; e < 256; e++) N[e] = t(e);\n  }(), e = j(x, S), r = j(k, I), n = j(_, P), i = j(F, C), function () {\n    for (var t = 1, e = 2, r = 1; r <= 15; r++) {\n      for (var n = t; n < e; n++) f[32767 + n] = r, l[32767 + n] = [], l[32767 + n][1] = r, l[32767 + n][0] = n;\n      for (var i = -(e - 1); i <= -t; i++) f[32767 + i] = r, l[32767 + i] = [], l[32767 + i][1] = r, l[32767 + i][0] = e - 1 + i;\n      t <<= 1, e <<= 1;\n    }\n  }(), function () {\n    for (var t = 0; t < 256; t++) L[t] = 19595 * t, L[t + 256 >> 0] = 38470 * t, L[t + 512 >> 0] = 7471 * t + 32768, L[t + 768 >> 0] = -11059 * t, L[t + 1024 >> 0] = -21709 * t, L[t + 1280 >> 0] = 32768 * t + 8421375, L[t + 1536 >> 0] = -27439 * t, L[t + 1792 >> 0] = -5329 * t;\n  }(), q(t);\n}\n/**\n * @license\n * Copyright (c) 2017 Aras Abbasi\n *\n * Licensed under the MIT License.\n * http://opensource.org/licenses/mit-license\n */\nfunction te(t, e) {\n  if (this.pos = 0, this.buffer = t, this.datav = new DataView(t.buffer), this.is_with_alpha = !!e, this.bottom_up = !0, this.flag = String.fromCharCode(this.buffer[0]) + String.fromCharCode(this.buffer[1]), this.pos += 2, -1 === [\"BM\", \"BA\", \"CI\", \"CP\", \"IC\", \"PT\"].indexOf(this.flag)) throw new Error(\"Invalid BMP File\");\n  this.parseHeader(), this.parseBGR();\n}\nfunction ee(t) {\n  function e(t) {\n    if (!t) throw Error(\"assert :P\");\n  }\n  function r(t, e, r) {\n    for (var n = 0; 4 > n; n++) if (t[e + n] != r.charCodeAt(n)) return !0;\n    return !1;\n  }\n  function n(t, e, r, n, i) {\n    for (var a = 0; a < i; a++) t[e + a] = r[n + a];\n  }\n  function i(t, e, r, n) {\n    for (var i = 0; i < n; i++) t[e + i] = r;\n  }\n  function a(t) {\n    return new Int32Array(t);\n  }\n  function o(t, e) {\n    for (var r = [], n = 0; n < t; n++) r.push(new e());\n    return r;\n  }\n  function s(t, e) {\n    var r = [];\n    return function t(r, n, i) {\n      for (var a = i[n], o = 0; o < a && (r.push(i.length > n + 1 ? [] : new e()), !(i.length < n + 1)); o++) t(r[o], n + 1, i);\n    }(r, 0, t), r;\n  }\n  var c = function () {\n    var t = this;\n    function c(t, e) {\n      for (var r = 1 << e - 1 >>> 0; t & r;) r >>>= 1;\n      return r ? (t & r - 1) + r : t;\n    }\n    function u(t, r, n, i, a) {\n      e(!(i % n));\n      do {\n        t[r + (i -= n)] = a;\n      } while (0 < i);\n    }\n    function h(t, r, n, i, o) {\n      if (e(2328 >= o), 512 >= o) var s = a(512);else if (null == (s = a(o))) return 0;\n      return function (t, r, n, i, o, s) {\n        var h,\n          f,\n          d = r,\n          p = 1 << n,\n          g = a(16),\n          m = a(16);\n        for (e(0 != o), e(null != i), e(null != t), e(0 < n), f = 0; f < o; ++f) {\n          if (15 < i[f]) return 0;\n          ++g[i[f]];\n        }\n        if (g[0] == o) return 0;\n        for (m[1] = 0, h = 1; 15 > h; ++h) {\n          if (g[h] > 1 << h) return 0;\n          m[h + 1] = m[h] + g[h];\n        }\n        for (f = 0; f < o; ++f) h = i[f], 0 < i[f] && (s[m[h]++] = f);\n        if (1 == m[15]) return (i = new l()).g = 0, i.value = s[0], u(t, d, 1, p, i), p;\n        var v,\n          b = -1,\n          y = p - 1,\n          w = 0,\n          N = 1,\n          L = 1,\n          A = 1 << n;\n        for (f = 0, h = 1, o = 2; h <= n; ++h, o <<= 1) {\n          if (N += L <<= 1, 0 > (L -= g[h])) return 0;\n          for (; 0 < g[h]; --g[h]) (i = new l()).g = h, i.value = s[f++], u(t, d + w, o, A, i), w = c(w, h);\n        }\n        for (h = n + 1, o = 2; 15 >= h; ++h, o <<= 1) {\n          if (N += L <<= 1, 0 > (L -= g[h])) return 0;\n          for (; 0 < g[h]; --g[h]) {\n            if (i = new l(), (w & y) != b) {\n              for (d += A, v = 1 << (b = h) - n; 15 > b && !(0 >= (v -= g[b]));) ++b, v <<= 1;\n              p += A = 1 << (v = b - n), t[r + (b = w & y)].g = v + n, t[r + b].value = d - r - b;\n            }\n            i.g = h - n, i.value = s[f++], u(t, d + (w >> n), o, A, i), w = c(w, h);\n          }\n        }\n        return N != 2 * m[15] - 1 ? 0 : p;\n      }(t, r, n, i, o, s);\n    }\n    function l() {\n      this.value = this.g = 0;\n    }\n    function f() {\n      this.value = this.g = 0;\n    }\n    function d() {\n      this.G = o(5, l), this.H = a(5), this.jc = this.Qb = this.qb = this.nd = 0, this.pd = o(Dr, f);\n    }\n    function p(t, r, n, i) {\n      e(null != t), e(null != r), e(2147483648 > i), t.Ca = 254, t.I = 0, t.b = -8, t.Ka = 0, t.oa = r, t.pa = n, t.Jd = r, t.Yc = n + i, t.Zc = 4 <= i ? n + i - 4 + 1 : n, _(t);\n    }\n    function g(t, e) {\n      for (var r = 0; 0 < e--;) r |= k(t, 128) << e;\n      return r;\n    }\n    function m(t, e) {\n      var r = g(t, e);\n      return P(t) ? -r : r;\n    }\n    function v(t, r, n, i) {\n      var a,\n        o = 0;\n      for (e(null != t), e(null != r), e(4294967288 > i), t.Sb = i, t.Ra = 0, t.u = 0, t.h = 0, 4 < i && (i = 4), a = 0; a < i; ++a) o += r[n + a] << 8 * a;\n      t.Ra = o, t.bb = i, t.oa = r, t.pa = n;\n    }\n    function b(t) {\n      for (; 8 <= t.u && t.bb < t.Sb;) t.Ra >>>= 8, t.Ra += t.oa[t.pa + t.bb] << Ur - 8 >>> 0, ++t.bb, t.u -= 8;\n      A(t) && (t.h = 1, t.u = 0);\n    }\n    function y(t, r) {\n      if (e(0 <= r), !t.h && r <= Tr) {\n        var n = L(t) & Rr[r];\n        return t.u += r, b(t), n;\n      }\n      return t.h = 1, t.u = 0;\n    }\n    function w() {\n      this.b = this.Ca = this.I = 0, this.oa = [], this.pa = 0, this.Jd = [], this.Yc = 0, this.Zc = [], this.Ka = 0;\n    }\n    function N() {\n      this.Ra = 0, this.oa = [], this.h = this.u = this.bb = this.Sb = this.pa = 0;\n    }\n    function L(t) {\n      return t.Ra >>> (t.u & Ur - 1) >>> 0;\n    }\n    function A(t) {\n      return e(t.bb <= t.Sb), t.h || t.bb == t.Sb && t.u > Ur;\n    }\n    function x(t, e) {\n      t.u = e, t.h = A(t);\n    }\n    function S(t) {\n      t.u >= zr && (e(t.u >= zr), b(t));\n    }\n    function _(t) {\n      e(null != t && null != t.oa), t.pa < t.Zc ? (t.I = (t.oa[t.pa++] | t.I << 8) >>> 0, t.b += 8) : (e(null != t && null != t.oa), t.pa < t.Yc ? (t.b += 8, t.I = t.oa[t.pa++] | t.I << 8) : t.Ka ? t.b = 0 : (t.I <<= 8, t.b += 8, t.Ka = 1));\n    }\n    function P(t) {\n      return g(t, 1);\n    }\n    function k(t, e) {\n      var r = t.Ca;\n      0 > t.b && _(t);\n      var n = t.b,\n        i = r * e >>> 8,\n        a = (t.I >>> n > i) + 0;\n      for (a ? (r -= i, t.I -= i + 1 << n >>> 0) : r = i + 1, n = r, i = 0; 256 <= n;) i += 8, n >>= 8;\n      return n = 7 ^ i + Hr[n], t.b -= n, t.Ca = (r << n) - 1, a;\n    }\n    function I(t, e, r) {\n      t[e + 0] = r >> 24 & 255, t[e + 1] = r >> 16 & 255, t[e + 2] = r >> 8 & 255, t[e + 3] = r >> 0 & 255;\n    }\n    function F(t, e) {\n      return t[e + 0] << 0 | t[e + 1] << 8;\n    }\n    function C(t, e) {\n      return F(t, e) | t[e + 2] << 16;\n    }\n    function j(t, e) {\n      return F(t, e) | F(t, e + 2) << 16;\n    }\n    function O(t, r) {\n      var n = 1 << r;\n      return e(null != t), e(0 < r), t.X = a(n), null == t.X ? 0 : (t.Mb = 32 - r, t.Xa = r, 1);\n    }\n    function B(t, r) {\n      e(null != t), e(null != r), e(t.Xa == r.Xa), n(r.X, 0, t.X, 0, 1 << r.Xa);\n    }\n    function M() {\n      this.X = [], this.Xa = this.Mb = 0;\n    }\n    function E(t, r, n, i) {\n      e(null != n), e(null != i);\n      var a = n[0],\n        o = i[0];\n      return 0 == a && (a = (t * o + r / 2) / r), 0 == o && (o = (r * a + t / 2) / t), 0 >= a || 0 >= o ? 0 : (n[0] = a, i[0] = o, 1);\n    }\n    function q(t, e) {\n      return t + (1 << e) - 1 >>> e;\n    }\n    function D(t, e) {\n      return ((4278255360 & t) + (4278255360 & e) >>> 0 & 4278255360) + ((16711935 & t) + (16711935 & e) >>> 0 & 16711935) >>> 0;\n    }\n    function R(e, r) {\n      t[r] = function (r, n, i, a, o, s, c) {\n        var u;\n        for (u = 0; u < o; ++u) {\n          var h = t[e](s[c + u - 1], i, a + u);\n          s[c + u] = D(r[n + u], h);\n        }\n      };\n    }\n    function T() {\n      this.ud = this.hd = this.jd = 0;\n    }\n    function U(t, e) {\n      return ((4278124286 & (t ^ e)) >>> 1) + (t & e) >>> 0;\n    }\n    function z(t) {\n      return 0 <= t && 256 > t ? t : 0 > t ? 0 : 255 < t ? 255 : void 0;\n    }\n    function H(t, e) {\n      return z(t + (t - e + .5 >> 1));\n    }\n    function W(t, e, r) {\n      return Math.abs(e - r) - Math.abs(t - r);\n    }\n    function V(t, e, r, n, i, a, o) {\n      for (n = a[o - 1], r = 0; r < i; ++r) a[o + r] = n = D(t[e + r], n);\n    }\n    function G(t, e, r, n, i) {\n      var a;\n      for (a = 0; a < r; ++a) {\n        var o = t[e + a],\n          s = o >> 8 & 255,\n          c = 16711935 & (c = (c = 16711935 & o) + ((s << 16) + s));\n        n[i + a] = (4278255360 & o) + c >>> 0;\n      }\n    }\n    function Y(t, e) {\n      e.jd = t >> 0 & 255, e.hd = t >> 8 & 255, e.ud = t >> 16 & 255;\n    }\n    function J(t, e, r, n, i, a) {\n      var o;\n      for (o = 0; o < n; ++o) {\n        var s = e[r + o],\n          c = s >>> 8,\n          u = s,\n          h = 255 & (h = (h = s >>> 16) + ((t.jd << 24 >> 24) * (c << 24 >> 24) >>> 5));\n        u = 255 & (u = (u = u + ((t.hd << 24 >> 24) * (c << 24 >> 24) >>> 5)) + ((t.ud << 24 >> 24) * (h << 24 >> 24) >>> 5));\n        i[a + o] = (4278255360 & s) + (h << 16) + u;\n      }\n    }\n    function X(e, r, n, i, a) {\n      t[r] = function (t, e, r, n, o, s, c, u, h) {\n        for (n = c; n < u; ++n) for (c = 0; c < h; ++c) o[s++] = a(r[i(t[e++])]);\n      }, t[e] = function (e, r, o, s, c, u, h) {\n        var l = 8 >> e.b,\n          f = e.Ea,\n          d = e.K[0],\n          p = e.w;\n        if (8 > l) for (e = (1 << e.b) - 1, p = (1 << l) - 1; r < o; ++r) {\n          var g,\n            m = 0;\n          for (g = 0; g < f; ++g) g & e || (m = i(s[c++])), u[h++] = a(d[m & p]), m >>= l;\n        } else t[\"VP8LMapColor\" + n](s, c, d, p, u, h, r, o, f);\n      };\n    }\n    function K(t, e, r, n, i) {\n      for (r = e + r; e < r;) {\n        var a = t[e++];\n        n[i++] = a >> 16 & 255, n[i++] = a >> 8 & 255, n[i++] = a >> 0 & 255;\n      }\n    }\n    function Z(t, e, r, n, i) {\n      for (r = e + r; e < r;) {\n        var a = t[e++];\n        n[i++] = a >> 16 & 255, n[i++] = a >> 8 & 255, n[i++] = a >> 0 & 255, n[i++] = a >> 24 & 255;\n      }\n    }\n    function $(t, e, r, n, i) {\n      for (r = e + r; e < r;) {\n        var a = (o = t[e++]) >> 16 & 240 | o >> 12 & 15,\n          o = o >> 0 & 240 | o >> 28 & 15;\n        n[i++] = a, n[i++] = o;\n      }\n    }\n    function Q(t, e, r, n, i) {\n      for (r = e + r; e < r;) {\n        var a = (o = t[e++]) >> 16 & 248 | o >> 13 & 7,\n          o = o >> 5 & 224 | o >> 3 & 31;\n        n[i++] = a, n[i++] = o;\n      }\n    }\n    function tt(t, e, r, n, i) {\n      for (r = e + r; e < r;) {\n        var a = t[e++];\n        n[i++] = a >> 0 & 255, n[i++] = a >> 8 & 255, n[i++] = a >> 16 & 255;\n      }\n    }\n    function et(t, e, r, i, a, o) {\n      if (0 == o) for (r = e + r; e < r;) I(i, ((o = t[e++])[0] >> 24 | o[1] >> 8 & 65280 | o[2] << 8 & 16711680 | o[3] << 24) >>> 0), a += 32;else n(i, a, t, e, r);\n    }\n    function rt(e, r) {\n      t[r][0] = t[e + \"0\"], t[r][1] = t[e + \"1\"], t[r][2] = t[e + \"2\"], t[r][3] = t[e + \"3\"], t[r][4] = t[e + \"4\"], t[r][5] = t[e + \"5\"], t[r][6] = t[e + \"6\"], t[r][7] = t[e + \"7\"], t[r][8] = t[e + \"8\"], t[r][9] = t[e + \"9\"], t[r][10] = t[e + \"10\"], t[r][11] = t[e + \"11\"], t[r][12] = t[e + \"12\"], t[r][13] = t[e + \"13\"], t[r][14] = t[e + \"0\"], t[r][15] = t[e + \"0\"];\n    }\n    function nt(t) {\n      return t == Hn || t == Wn || t == Vn || t == Gn;\n    }\n    function it() {\n      this.eb = [], this.size = this.A = this.fb = 0;\n    }\n    function at() {\n      this.y = [], this.f = [], this.ea = [], this.F = [], this.Tc = this.Ed = this.Cd = this.Fd = this.lb = this.Db = this.Ab = this.fa = this.J = this.W = this.N = this.O = 0;\n    }\n    function ot() {\n      this.Rd = this.height = this.width = this.S = 0, this.f = {}, this.f.RGBA = new it(), this.f.kb = new at(), this.sd = null;\n    }\n    function st() {\n      this.width = [0], this.height = [0], this.Pd = [0], this.Qd = [0], this.format = [0];\n    }\n    function ct() {\n      this.Id = this.fd = this.Md = this.hb = this.ib = this.da = this.bd = this.cd = this.j = this.v = this.Da = this.Sd = this.ob = 0;\n    }\n    function ut(t) {\n      return alert(\"todo:WebPSamplerProcessPlane\"), t.T;\n    }\n    function ht(t, e) {\n      var r = t.T,\n        i = e.ba.f.RGBA,\n        a = i.eb,\n        o = i.fb + t.ka * i.A,\n        s = vi[e.ba.S],\n        c = t.y,\n        u = t.O,\n        h = t.f,\n        l = t.N,\n        f = t.ea,\n        d = t.W,\n        p = e.cc,\n        g = e.dc,\n        m = e.Mc,\n        v = e.Nc,\n        b = t.ka,\n        y = t.ka + t.T,\n        w = t.U,\n        N = w + 1 >> 1;\n      for (0 == b ? s(c, u, null, null, h, l, f, d, h, l, f, d, a, o, null, null, w) : (s(e.ec, e.fc, c, u, p, g, m, v, h, l, f, d, a, o - i.A, a, o, w), ++r); b + 2 < y; b += 2) p = h, g = l, m = f, v = d, l += t.Rc, d += t.Rc, o += 2 * i.A, s(c, (u += 2 * t.fa) - t.fa, c, u, p, g, m, v, h, l, f, d, a, o - i.A, a, o, w);\n      return u += t.fa, t.j + y < t.o ? (n(e.ec, e.fc, c, u, w), n(e.cc, e.dc, h, l, N), n(e.Mc, e.Nc, f, d, N), r--) : 1 & y || s(c, u, null, null, h, l, f, d, h, l, f, d, a, o + i.A, null, null, w), r;\n    }\n    function lt(t, r, n) {\n      var i = t.F,\n        a = [t.J];\n      if (null != i) {\n        var o = t.U,\n          s = r.ba.S,\n          c = s == Tn || s == Vn;\n        r = r.ba.f.RGBA;\n        var u = [0],\n          h = t.ka;\n        u[0] = t.T, t.Kb && (0 == h ? --u[0] : (--h, a[0] -= t.width), t.j + t.ka + t.T == t.o && (u[0] = t.o - t.j - h));\n        var l = r.eb;\n        h = r.fb + h * r.A;\n        t = Sn(i, a[0], t.width, o, u, l, h + (c ? 0 : 3), r.A), e(n == u), t && nt(s) && An(l, h, c, o, u, r.A);\n      }\n      return 0;\n    }\n    function ft(t) {\n      var e = t.ma,\n        r = e.ba.S,\n        n = 11 > r,\n        i = r == qn || r == Rn || r == Tn || r == Un || 12 == r || nt(r);\n      if (e.memory = null, e.Ib = null, e.Jb = null, e.Nd = null, !Mr(e.Oa, t, i ? 11 : 12)) return 0;\n      if (i && nt(r) && br(), t.da) alert(\"todo:use_scaling\");else {\n        if (n) {\n          if (e.Ib = ut, t.Kb) {\n            if (r = t.U + 1 >> 1, e.memory = a(t.U + 2 * r), null == e.memory) return 0;\n            e.ec = e.memory, e.fc = 0, e.cc = e.ec, e.dc = e.fc + t.U, e.Mc = e.cc, e.Nc = e.dc + r, e.Ib = ht, br();\n          }\n        } else alert(\"todo:EmitYUV\");\n        i && (e.Jb = lt, n && mr());\n      }\n      if (n && !Ci) {\n        for (t = 0; 256 > t; ++t) ji[t] = 89858 * (t - 128) + _i >> Si, Mi[t] = -22014 * (t - 128) + _i, Bi[t] = -45773 * (t - 128), Oi[t] = 113618 * (t - 128) + _i >> Si;\n        for (t = Pi; t < ki; ++t) e = 76283 * (t - 16) + _i >> Si, Ei[t - Pi] = Vt(e, 255), qi[t - Pi] = Vt(e + 8 >> 4, 15);\n        Ci = 1;\n      }\n      return 1;\n    }\n    function dt(t) {\n      var r = t.ma,\n        n = t.U,\n        i = t.T;\n      return e(!(1 & t.ka)), 0 >= n || 0 >= i ? 0 : (n = r.Ib(t, r), null != r.Jb && r.Jb(t, r, n), r.Dc += n, 1);\n    }\n    function pt(t) {\n      t.ma.memory = null;\n    }\n    function gt(t, e, r, n) {\n      return 47 != y(t, 8) ? 0 : (e[0] = y(t, 14) + 1, r[0] = y(t, 14) + 1, n[0] = y(t, 1), 0 != y(t, 3) ? 0 : !t.h);\n    }\n    function mt(t, e) {\n      if (4 > t) return t + 1;\n      var r = t - 2 >> 1;\n      return (2 + (1 & t) << r) + y(e, r) + 1;\n    }\n    function vt(t, e) {\n      return 120 < e ? e - 120 : 1 <= (r = ((r = $n[e - 1]) >> 4) * t + (8 - (15 & r))) ? r : 1;\n      var r;\n    }\n    function bt(t, e, r) {\n      var n = L(r),\n        i = t[e += 255 & n].g - 8;\n      return 0 < i && (x(r, r.u + 8), n = L(r), e += t[e].value, e += n & (1 << i) - 1), x(r, r.u + t[e].g), t[e].value;\n    }\n    function yt(t, r, n) {\n      return n.g += t.g, n.value += t.value << r >>> 0, e(8 >= n.g), t.g;\n    }\n    function wt(t, r, n) {\n      var i = t.xc;\n      return e((r = 0 == i ? 0 : t.vc[t.md * (n >> i) + (r >> i)]) < t.Wb), t.Ya[r];\n    }\n    function Nt(t, r, i, a) {\n      var o = t.ab,\n        s = t.c * r,\n        c = t.C;\n      r = c + r;\n      var u = i,\n        h = a;\n      for (a = t.Ta, i = t.Ua; 0 < o--;) {\n        var l = t.gc[o],\n          f = c,\n          d = r,\n          p = u,\n          g = h,\n          m = (h = a, u = i, l.Ea);\n        switch (e(f < d), e(d <= l.nc), l.hc) {\n          case 2:\n            Gr(p, g, (d - f) * m, h, u);\n            break;\n          case 0:\n            var v = f,\n              b = d,\n              y = h,\n              w = u,\n              N = (_ = l).Ea;\n            0 == v && (Wr(p, g, null, null, 1, y, w), V(p, g + 1, 0, 0, N - 1, y, w + 1), g += N, w += N, ++v);\n            for (var L = 1 << _.b, A = L - 1, x = q(N, _.b), S = _.K, _ = _.w + (v >> _.b) * x; v < b;) {\n              var P = S,\n                k = _,\n                I = 1;\n              for (Vr(p, g, y, w - N, 1, y, w); I < N;) {\n                var F = (I & ~A) + L;\n                F > N && (F = N), (0, Zr[P[k++] >> 8 & 15])(p, g + +I, y, w + I - N, F - I, y, w + I), I = F;\n              }\n              g += N, w += N, ++v & A || (_ += x);\n            }\n            d != l.nc && n(h, u - m, h, u + (d - f - 1) * m, m);\n            break;\n          case 1:\n            for (m = p, b = g, N = (p = l.Ea) - (w = p & ~(y = (g = 1 << l.b) - 1)), v = q(p, l.b), L = l.K, l = l.w + (f >> l.b) * v; f < d;) {\n              for (A = L, x = l, S = new T(), _ = b + w, P = b + p; b < _;) Y(A[x++], S), $r(S, m, b, g, h, u), b += g, u += g;\n              b < P && (Y(A[x++], S), $r(S, m, b, N, h, u), b += N, u += N), ++f & y || (l += v);\n            }\n            break;\n          case 3:\n            if (p == h && g == u && 0 < l.b) {\n              for (b = h, p = m = u + (d - f) * m - (w = (d - f) * q(l.Ea, l.b)), g = h, y = u, v = [], w = (N = w) - 1; 0 <= w; --w) v[w] = g[y + w];\n              for (w = N - 1; 0 <= w; --w) b[p + w] = v[w];\n              Yr(l, f, d, h, m, h, u);\n            } else Yr(l, f, d, p, g, h, u);\n        }\n        u = a, h = i;\n      }\n      h != i && n(a, i, u, h, s);\n    }\n    function Lt(t, r) {\n      var n = t.V,\n        i = t.Ba + t.c * t.C,\n        a = r - t.C;\n      if (e(r <= t.l.o), e(16 >= a), 0 < a) {\n        var o = t.l,\n          s = t.Ta,\n          c = t.Ua,\n          u = o.width;\n        if (Nt(t, a, n, i), a = c = [c], e((n = t.C) < (i = r)), e(o.v < o.va), i > o.o && (i = o.o), n < o.j) {\n          var h = o.j - n;\n          n = o.j;\n          a[0] += h * u;\n        }\n        if (n >= i ? n = 0 : (a[0] += 4 * o.v, o.ka = n - o.j, o.U = o.va - o.v, o.T = i - n, n = 1), n) {\n          if (c = c[0], 11 > (n = t.ca).S) {\n            var l = n.f.RGBA,\n              f = (i = n.S, a = o.U, o = o.T, h = l.eb, l.A),\n              d = o;\n            for (l = l.fb + t.Ma * l.A; 0 < d--;) {\n              var p = s,\n                g = c,\n                m = a,\n                v = h,\n                b = l;\n              switch (i) {\n                case En:\n                  Qr(p, g, m, v, b);\n                  break;\n                case qn:\n                  tn(p, g, m, v, b);\n                  break;\n                case Hn:\n                  tn(p, g, m, v, b), An(v, b, 0, m, 1, 0);\n                  break;\n                case Dn:\n                  nn(p, g, m, v, b);\n                  break;\n                case Rn:\n                  et(p, g, m, v, b, 1);\n                  break;\n                case Wn:\n                  et(p, g, m, v, b, 1), An(v, b, 0, m, 1, 0);\n                  break;\n                case Tn:\n                  et(p, g, m, v, b, 0);\n                  break;\n                case Vn:\n                  et(p, g, m, v, b, 0), An(v, b, 1, m, 1, 0);\n                  break;\n                case Un:\n                  en(p, g, m, v, b);\n                  break;\n                case Gn:\n                  en(p, g, m, v, b), xn(v, b, m, 1, 0);\n                  break;\n                case zn:\n                  rn(p, g, m, v, b);\n                  break;\n                default:\n                  e(0);\n              }\n              c += u, l += f;\n            }\n            t.Ma += o;\n          } else alert(\"todo:EmitRescaledRowsYUVA\");\n          e(t.Ma <= n.height);\n        }\n      }\n      t.C = r, e(t.C <= t.i);\n    }\n    function At(t) {\n      var e;\n      if (0 < t.ua) return 0;\n      for (e = 0; e < t.Wb; ++e) {\n        var r = t.Ya[e].G,\n          n = t.Ya[e].H;\n        if (0 < r[1][n[1] + 0].g || 0 < r[2][n[2] + 0].g || 0 < r[3][n[3] + 0].g) return 0;\n      }\n      return 1;\n    }\n    function xt(t, r, n, i, a, o) {\n      if (0 != t.Z) {\n        var s = t.qd,\n          c = t.rd;\n        for (e(null != mi[t.Z]); r < n; ++r) mi[t.Z](s, c, i, a, i, a, o), s = i, c = a, a += o;\n        t.qd = s, t.rd = c;\n      }\n    }\n    function St(t, r) {\n      var n = t.l.ma,\n        i = 0 == n.Z || 1 == n.Z ? t.l.j : t.C;\n      i = t.C < i ? i : t.C;\n      if (e(r <= t.l.o), r > i) {\n        var a = t.l.width,\n          o = n.ca,\n          s = n.tb + a * i,\n          c = t.V,\n          u = t.Ba + t.c * i,\n          h = t.gc;\n        e(1 == t.ab), e(3 == h[0].hc), Xr(h[0], i, r, c, u, o, s), xt(n, i, r, o, s, a);\n      }\n      t.C = t.Ma = r;\n    }\n    function _t(t, r, n, i, a, o, s) {\n      var c = t.$ / i,\n        u = t.$ % i,\n        h = t.m,\n        l = t.s,\n        f = n + t.$,\n        d = f;\n      a = n + i * a;\n      var p = n + i * o,\n        g = 280 + l.ua,\n        m = t.Pb ? c : 16777216,\n        v = 0 < l.ua ? l.Wa : null,\n        b = l.wc,\n        y = f < p ? wt(l, u, c) : null;\n      e(t.C < o), e(p <= a);\n      var w = !1;\n      t: for (;;) {\n        for (; w || f < p;) {\n          var N = 0;\n          if (c >= m) {\n            var _ = f - n;\n            e((m = t).Pb), m.wd = m.m, m.xd = _, 0 < m.s.ua && B(m.s.Wa, m.s.vb), m = c + ti;\n          }\n          if (u & b || (y = wt(l, u, c)), e(null != y), y.Qb && (r[f] = y.qb, w = !0), !w) if (S(h), y.jc) {\n            N = h, _ = r;\n            var P = f,\n              k = y.pd[L(N) & Dr - 1];\n            e(y.jc), 256 > k.g ? (x(N, N.u + k.g), _[P] = k.value, N = 0) : (x(N, N.u + k.g - 256), e(256 <= k.value), N = k.value), 0 == N && (w = !0);\n          } else N = bt(y.G[0], y.H[0], h);\n          if (h.h) break;\n          if (w || 256 > N) {\n            if (!w) if (y.nd) r[f] = (y.qb | N << 8) >>> 0;else {\n              if (S(h), w = bt(y.G[1], y.H[1], h), S(h), _ = bt(y.G[2], y.H[2], h), P = bt(y.G[3], y.H[3], h), h.h) break;\n              r[f] = (P << 24 | w << 16 | N << 8 | _) >>> 0;\n            }\n            if (w = !1, ++f, ++u >= i && (u = 0, ++c, null != s && c <= o && !(c % 16) && s(t, c), null != v)) for (; d < f;) N = r[d++], v.X[(506832829 * N & 4294967295) >>> v.Mb] = N;\n          } else if (280 > N) {\n            if (N = mt(N - 256, h), _ = bt(y.G[4], y.H[4], h), S(h), _ = vt(i, _ = mt(_, h)), h.h) break;\n            if (f - n < _ || a - f < N) break t;\n            for (P = 0; P < N; ++P) r[f + P] = r[f + P - _];\n            for (f += N, u += N; u >= i;) u -= i, ++c, null != s && c <= o && !(c % 16) && s(t, c);\n            if (e(f <= a), u & b && (y = wt(l, u, c)), null != v) for (; d < f;) N = r[d++], v.X[(506832829 * N & 4294967295) >>> v.Mb] = N;\n          } else {\n            if (!(N < g)) break t;\n            for (w = N - 280, e(null != v); d < f;) N = r[d++], v.X[(506832829 * N & 4294967295) >>> v.Mb] = N;\n            N = f, e(!(w >>> (_ = v).Xa)), r[N] = _.X[w], w = !0;\n          }\n          w || e(h.h == A(h));\n        }\n        if (t.Pb && h.h && f < a) e(t.m.h), t.a = 5, t.m = t.wd, t.$ = t.xd, 0 < t.s.ua && B(t.s.vb, t.s.Wa);else {\n          if (h.h) break t;\n          null != s && s(t, c > o ? o : c), t.a = 0, t.$ = f - n;\n        }\n        return 1;\n      }\n      return t.a = 3, 0;\n    }\n    function Pt(t) {\n      e(null != t), t.vc = null, t.yc = null, t.Ya = null;\n      var r = t.Wa;\n      null != r && (r.X = null), t.vb = null, e(null != t);\n    }\n    function kt() {\n      var e = new or();\n      return null == e ? null : (e.a = 0, e.xb = gi, rt(\"Predictor\", \"VP8LPredictors\"), rt(\"Predictor\", \"VP8LPredictors_C\"), rt(\"PredictorAdd\", \"VP8LPredictorsAdd\"), rt(\"PredictorAdd\", \"VP8LPredictorsAdd_C\"), Gr = G, $r = J, Qr = K, tn = Z, en = $, rn = Q, nn = tt, t.VP8LMapColor32b = Jr, t.VP8LMapColor8b = Kr, e);\n    }\n    function It(t, r, n, s, c) {\n      var u = 1,\n        f = [t],\n        p = [r],\n        g = s.m,\n        m = s.s,\n        v = null,\n        b = 0;\n      t: for (;;) {\n        if (n) for (; u && y(g, 1);) {\n          var w = f,\n            N = p,\n            A = s,\n            _ = 1,\n            P = A.m,\n            k = A.gc[A.ab],\n            I = y(P, 2);\n          if (A.Oc & 1 << I) u = 0;else {\n            switch (A.Oc |= 1 << I, k.hc = I, k.Ea = w[0], k.nc = N[0], k.K = [null], ++A.ab, e(4 >= A.ab), I) {\n              case 0:\n              case 1:\n                k.b = y(P, 3) + 2, _ = It(q(k.Ea, k.b), q(k.nc, k.b), 0, A, k.K), k.K = k.K[0];\n                break;\n              case 3:\n                var F,\n                  C = y(P, 8) + 1,\n                  j = 16 < C ? 0 : 4 < C ? 1 : 2 < C ? 2 : 3;\n                if (w[0] = q(k.Ea, j), k.b = j, F = _ = It(C, 1, 0, A, k.K)) {\n                  var B,\n                    M = C,\n                    E = k,\n                    R = 1 << (8 >> E.b),\n                    T = a(R);\n                  if (null == T) F = 0;else {\n                    var U = E.K[0],\n                      z = E.w;\n                    for (T[0] = E.K[0][0], B = 1; B < 1 * M; ++B) T[B] = D(U[z + B], T[B - 1]);\n                    for (; B < 4 * R; ++B) T[B] = 0;\n                    E.K[0] = null, E.K[0] = T, F = 1;\n                  }\n                }\n                _ = F;\n                break;\n              case 2:\n                break;\n              default:\n                e(0);\n            }\n            u = _;\n          }\n        }\n        if (f = f[0], p = p[0], u && y(g, 1) && !(u = 1 <= (b = y(g, 4)) && 11 >= b)) {\n          s.a = 3;\n          break t;\n        }\n        var H;\n        if (H = u) e: {\n          var W,\n            V,\n            G,\n            Y = s,\n            J = f,\n            X = p,\n            K = b,\n            Z = n,\n            $ = Y.m,\n            Q = Y.s,\n            tt = [null],\n            et = 1,\n            rt = 0,\n            nt = Qn[K];\n          r: for (;;) {\n            if (Z && y($, 1)) {\n              var it = y($, 3) + 2,\n                at = q(J, it),\n                ot = q(X, it),\n                st = at * ot;\n              if (!It(at, ot, 0, Y, tt)) break r;\n              for (tt = tt[0], Q.xc = it, W = 0; W < st; ++W) {\n                var ct = tt[W] >> 8 & 65535;\n                tt[W] = ct, ct >= et && (et = ct + 1);\n              }\n            }\n            if ($.h) break r;\n            for (V = 0; 5 > V; ++V) {\n              var ut = Xn[V];\n              !V && 0 < K && (ut += 1 << K), rt < ut && (rt = ut);\n            }\n            var ht = o(et * nt, l),\n              lt = et,\n              ft = o(lt, d);\n            if (null == ft) var dt = null;else e(65536 >= lt), dt = ft;\n            var pt = a(rt);\n            if (null == dt || null == pt || null == ht) {\n              Y.a = 1;\n              break r;\n            }\n            var gt = ht;\n            for (W = G = 0; W < et; ++W) {\n              var mt = dt[W],\n                vt = mt.G,\n                bt = mt.H,\n                wt = 0,\n                Nt = 1,\n                Lt = 0;\n              for (V = 0; 5 > V; ++V) {\n                ut = Xn[V], vt[V] = gt, bt[V] = G, !V && 0 < K && (ut += 1 << K);\n                n: {\n                  var At,\n                    xt = ut,\n                    St = Y,\n                    kt = pt,\n                    Ft = gt,\n                    Ct = G,\n                    jt = 0,\n                    Ot = St.m,\n                    Bt = y(Ot, 1);\n                  if (i(kt, 0, 0, xt), Bt) {\n                    var Mt = y(Ot, 1) + 1,\n                      Et = y(Ot, 1),\n                      qt = y(Ot, 0 == Et ? 1 : 8);\n                    kt[qt] = 1, 2 == Mt && (kt[qt = y(Ot, 8)] = 1);\n                    var Dt = 1;\n                  } else {\n                    var Rt = a(19),\n                      Tt = y(Ot, 4) + 4;\n                    if (19 < Tt) {\n                      St.a = 3;\n                      var Ut = 0;\n                      break n;\n                    }\n                    for (At = 0; At < Tt; ++At) Rt[Zn[At]] = y(Ot, 3);\n                    var zt = void 0,\n                      Ht = void 0,\n                      Wt = St,\n                      Vt = Rt,\n                      Gt = xt,\n                      Yt = kt,\n                      Jt = 0,\n                      Xt = Wt.m,\n                      Kt = 8,\n                      Zt = o(128, l);\n                    i: for (; h(Zt, 0, 7, Vt, 19);) {\n                      if (y(Xt, 1)) {\n                        var $t = 2 + 2 * y(Xt, 3);\n                        if ((zt = 2 + y(Xt, $t)) > Gt) break i;\n                      } else zt = Gt;\n                      for (Ht = 0; Ht < Gt && zt--;) {\n                        S(Xt);\n                        var Qt = Zt[0 + (127 & L(Xt))];\n                        x(Xt, Xt.u + Qt.g);\n                        var te = Qt.value;\n                        if (16 > te) Yt[Ht++] = te, 0 != te && (Kt = te);else {\n                          var ee = 16 == te,\n                            re = te - 16,\n                            ne = Jn[re],\n                            ie = y(Xt, Yn[re]) + ne;\n                          if (Ht + ie > Gt) break i;\n                          for (var ae = ee ? Kt : 0; 0 < ie--;) Yt[Ht++] = ae;\n                        }\n                      }\n                      Jt = 1;\n                      break i;\n                    }\n                    Jt || (Wt.a = 3), Dt = Jt;\n                  }\n                  (Dt = Dt && !Ot.h) && (jt = h(Ft, Ct, 8, kt, xt)), Dt && 0 != jt ? Ut = jt : (St.a = 3, Ut = 0);\n                }\n                if (0 == Ut) break r;\n                if (Nt && 1 == Kn[V] && (Nt = 0 == gt[G].g), wt += gt[G].g, G += Ut, 3 >= V) {\n                  var oe,\n                    se = pt[0];\n                  for (oe = 1; oe < ut; ++oe) pt[oe] > se && (se = pt[oe]);\n                  Lt += se;\n                }\n              }\n              if (mt.nd = Nt, mt.Qb = 0, Nt && (mt.qb = (vt[3][bt[3] + 0].value << 24 | vt[1][bt[1] + 0].value << 16 | vt[2][bt[2] + 0].value) >>> 0, 0 == wt && 256 > vt[0][bt[0] + 0].value && (mt.Qb = 1, mt.qb += vt[0][bt[0] + 0].value << 8)), mt.jc = !mt.Qb && 6 > Lt, mt.jc) {\n                var ce,\n                  ue = mt;\n                for (ce = 0; ce < Dr; ++ce) {\n                  var he = ce,\n                    le = ue.pd[he],\n                    fe = ue.G[0][ue.H[0] + he];\n                  256 <= fe.value ? (le.g = fe.g + 256, le.value = fe.value) : (le.g = 0, le.value = 0, he >>= yt(fe, 8, le), he >>= yt(ue.G[1][ue.H[1] + he], 16, le), he >>= yt(ue.G[2][ue.H[2] + he], 0, le), yt(ue.G[3][ue.H[3] + he], 24, le));\n                }\n              }\n            }\n            Q.vc = tt, Q.Wb = et, Q.Ya = dt, Q.yc = ht, H = 1;\n            break e;\n          }\n          H = 0;\n        }\n        if (!(u = H)) {\n          s.a = 3;\n          break t;\n        }\n        if (0 < b) {\n          if (m.ua = 1 << b, !O(m.Wa, b)) {\n            s.a = 1, u = 0;\n            break t;\n          }\n        } else m.ua = 0;\n        var de = s,\n          pe = f,\n          ge = p,\n          me = de.s,\n          ve = me.xc;\n        if (de.c = pe, de.i = ge, me.md = q(pe, ve), me.wc = 0 == ve ? -1 : (1 << ve) - 1, n) {\n          s.xb = pi;\n          break t;\n        }\n        if (null == (v = a(f * p))) {\n          s.a = 1, u = 0;\n          break t;\n        }\n        u = (u = _t(s, v, 0, f, p, p, null)) && !g.h;\n        break t;\n      }\n      return u ? (null != c ? c[0] = v : (e(null == v), e(n)), s.$ = 0, n || Pt(m)) : Pt(m), u;\n    }\n    function Ft(t, r) {\n      var n = t.c * t.i,\n        i = n + r + 16 * r;\n      return e(t.c <= r), t.V = a(i), null == t.V ? (t.Ta = null, t.Ua = 0, t.a = 1, 0) : (t.Ta = t.V, t.Ua = t.Ba + n + r, 1);\n    }\n    function Ct(t, r) {\n      var n = t.C,\n        i = r - n,\n        a = t.V,\n        o = t.Ba + t.c * n;\n      for (e(r <= t.l.o); 0 < i;) {\n        var s = 16 < i ? 16 : i,\n          c = t.l.ma,\n          u = t.l.width,\n          h = u * s,\n          l = c.ca,\n          f = c.tb + u * n,\n          d = t.Ta,\n          p = t.Ua;\n        Nt(t, s, a, o), _n(d, p, l, f, h), xt(c, n, n + s, l, f, u), i -= s, a += s * t.c, n += s;\n      }\n      e(n == r), t.C = t.Ma = r;\n    }\n    function jt() {\n      this.ub = this.yd = this.td = this.Rb = 0;\n    }\n    function Ot() {\n      this.Kd = this.Ld = this.Ud = this.Td = this.i = this.c = 0;\n    }\n    function Bt() {\n      this.Fb = this.Bb = this.Cb = 0, this.Zb = a(4), this.Lb = a(4);\n    }\n    function Mt() {\n      this.Yb = function () {\n        var t = [];\n        return function t(e, r, n) {\n          for (var i = n[r], a = 0; a < i && (e.push(n.length > r + 1 ? [] : 0), !(n.length < r + 1)); a++) t(e[a], r + 1, n);\n        }(t, 0, [3, 11]), t;\n      }();\n    }\n    function Et() {\n      this.jb = a(3), this.Wc = s([4, 8], Mt), this.Xc = s([4, 17], Mt);\n    }\n    function qt() {\n      this.Pc = this.wb = this.Tb = this.zd = 0, this.vd = new a(4), this.od = new a(4);\n    }\n    function Dt() {\n      this.ld = this.La = this.dd = this.tc = 0;\n    }\n    function Rt() {\n      this.Na = this.la = 0;\n    }\n    function Tt() {\n      this.Sc = [0, 0], this.Eb = [0, 0], this.Qc = [0, 0], this.ia = this.lc = 0;\n    }\n    function Ut() {\n      this.ad = a(384), this.Za = 0, this.Ob = a(16), this.$b = this.Ad = this.ia = this.Gc = this.Hc = this.Dd = 0;\n    }\n    function zt() {\n      this.uc = this.M = this.Nb = 0, this.wa = Array(new Dt()), this.Y = 0, this.ya = Array(new Ut()), this.aa = 0, this.l = new Gt();\n    }\n    function Ht() {\n      this.y = a(16), this.f = a(8), this.ea = a(8);\n    }\n    function Wt() {\n      this.cb = this.a = 0, this.sc = \"\", this.m = new w(), this.Od = new jt(), this.Kc = new Ot(), this.ed = new qt(), this.Qa = new Bt(), this.Ic = this.$c = this.Aa = 0, this.D = new zt(), this.Xb = this.Va = this.Hb = this.zb = this.yb = this.Ub = this.za = 0, this.Jc = o(8, w), this.ia = 0, this.pb = o(4, Tt), this.Pa = new Et(), this.Bd = this.kc = 0, this.Ac = [], this.Bc = 0, this.zc = [0, 0, 0, 0], this.Gd = Array(new Ht()), this.Hd = 0, this.rb = Array(new Rt()), this.sb = 0, this.wa = Array(new Dt()), this.Y = 0, this.oc = [], this.pc = 0, this.sa = [], this.ta = 0, this.qa = [], this.ra = 0, this.Ha = [], this.B = this.R = this.Ia = 0, this.Ec = [], this.M = this.ja = this.Vb = this.Fc = 0, this.ya = Array(new Ut()), this.L = this.aa = 0, this.gd = s([4, 2], Dt), this.ga = null, this.Fa = [], this.Cc = this.qc = this.P = 0, this.Gb = [], this.Uc = 0, this.mb = [], this.nb = 0, this.rc = [], this.Ga = this.Vc = 0;\n    }\n    function Vt(t, e) {\n      return 0 > t ? 0 : t > e ? e : t;\n    }\n    function Gt() {\n      this.T = this.U = this.ka = this.height = this.width = 0, this.y = [], this.f = [], this.ea = [], this.Rc = this.fa = this.W = this.N = this.O = 0, this.ma = \"void\", this.put = \"VP8IoPutHook\", this.ac = \"VP8IoSetupHook\", this.bc = \"VP8IoTeardownHook\", this.ha = this.Kb = 0, this.data = [], this.hb = this.ib = this.da = this.o = this.j = this.va = this.v = this.Da = this.ob = this.w = 0, this.F = [], this.J = 0;\n    }\n    function Yt() {\n      var t = new Wt();\n      return null != t && (t.a = 0, t.sc = \"OK\", t.cb = 0, t.Xb = 0, ni || (ni = Zt)), t;\n    }\n    function Jt(t, e, r) {\n      return 0 == t.a && (t.a = e, t.sc = r, t.cb = 0), 0;\n    }\n    function Xt(t, e, r) {\n      return 3 <= r && 157 == t[e + 0] && 1 == t[e + 1] && 42 == t[e + 2];\n    }\n    function Kt(t, r) {\n      if (null == t) return 0;\n      if (t.a = 0, t.sc = \"OK\", null == r) return Jt(t, 2, \"null VP8Io passed to VP8GetHeaders()\");\n      var n = r.data,\n        a = r.w,\n        o = r.ha;\n      if (4 > o) return Jt(t, 7, \"Truncated header.\");\n      var s = n[a + 0] | n[a + 1] << 8 | n[a + 2] << 16,\n        c = t.Od;\n      if (c.Rb = !(1 & s), c.td = s >> 1 & 7, c.yd = s >> 4 & 1, c.ub = s >> 5, 3 < c.td) return Jt(t, 3, \"Incorrect keyframe parameters.\");\n      if (!c.yd) return Jt(t, 4, \"Frame not displayable.\");\n      a += 3, o -= 3;\n      var u = t.Kc;\n      if (c.Rb) {\n        if (7 > o) return Jt(t, 7, \"cannot parse picture header\");\n        if (!Xt(n, a, o)) return Jt(t, 3, \"Bad code word\");\n        u.c = 16383 & (n[a + 4] << 8 | n[a + 3]), u.Td = n[a + 4] >> 6, u.i = 16383 & (n[a + 6] << 8 | n[a + 5]), u.Ud = n[a + 6] >> 6, a += 7, o -= 7, t.za = u.c + 15 >> 4, t.Ub = u.i + 15 >> 4, r.width = u.c, r.height = u.i, r.Da = 0, r.j = 0, r.v = 0, r.va = r.width, r.o = r.height, r.da = 0, r.ib = r.width, r.hb = r.height, r.U = r.width, r.T = r.height, i((s = t.Pa).jb, 0, 255, s.jb.length), e(null != (s = t.Qa)), s.Cb = 0, s.Bb = 0, s.Fb = 1, i(s.Zb, 0, 0, s.Zb.length), i(s.Lb, 0, 0, s.Lb);\n      }\n      if (c.ub > o) return Jt(t, 7, \"bad partition length\");\n      p(s = t.m, n, a, c.ub), a += c.ub, o -= c.ub, c.Rb && (u.Ld = P(s), u.Kd = P(s)), u = t.Qa;\n      var h,\n        l = t.Pa;\n      if (e(null != s), e(null != u), u.Cb = P(s), u.Cb) {\n        if (u.Bb = P(s), P(s)) {\n          for (u.Fb = P(s), h = 0; 4 > h; ++h) u.Zb[h] = P(s) ? m(s, 7) : 0;\n          for (h = 0; 4 > h; ++h) u.Lb[h] = P(s) ? m(s, 6) : 0;\n        }\n        if (u.Bb) for (h = 0; 3 > h; ++h) l.jb[h] = P(s) ? g(s, 8) : 255;\n      } else u.Bb = 0;\n      if (s.Ka) return Jt(t, 3, \"cannot parse segment header\");\n      if ((u = t.ed).zd = P(s), u.Tb = g(s, 6), u.wb = g(s, 3), u.Pc = P(s), u.Pc && P(s)) {\n        for (l = 0; 4 > l; ++l) P(s) && (u.vd[l] = m(s, 6));\n        for (l = 0; 4 > l; ++l) P(s) && (u.od[l] = m(s, 6));\n      }\n      if (t.L = 0 == u.Tb ? 0 : u.zd ? 1 : 2, s.Ka) return Jt(t, 3, \"cannot parse filter header\");\n      var f = o;\n      if (o = h = a, a = h + f, u = f, t.Xb = (1 << g(t.m, 2)) - 1, f < 3 * (l = t.Xb)) n = 7;else {\n        for (h += 3 * l, u -= 3 * l, f = 0; f < l; ++f) {\n          var d = n[o + 0] | n[o + 1] << 8 | n[o + 2] << 16;\n          d > u && (d = u), p(t.Jc[+f], n, h, d), h += d, u -= d, o += 3;\n        }\n        p(t.Jc[+l], n, h, u), n = h < a ? 0 : 5;\n      }\n      if (0 != n) return Jt(t, n, \"cannot parse partitions\");\n      for (n = g(h = t.m, 7), o = P(h) ? m(h, 4) : 0, a = P(h) ? m(h, 4) : 0, u = P(h) ? m(h, 4) : 0, l = P(h) ? m(h, 4) : 0, h = P(h) ? m(h, 4) : 0, f = t.Qa, d = 0; 4 > d; ++d) {\n        if (f.Cb) {\n          var v = f.Zb[d];\n          f.Fb || (v += n);\n        } else {\n          if (0 < d) {\n            t.pb[d] = t.pb[0];\n            continue;\n          }\n          v = n;\n        }\n        var b = t.pb[d];\n        b.Sc[0] = ei[Vt(v + o, 127)], b.Sc[1] = ri[Vt(v + 0, 127)], b.Eb[0] = 2 * ei[Vt(v + a, 127)], b.Eb[1] = 101581 * ri[Vt(v + u, 127)] >> 16, 8 > b.Eb[1] && (b.Eb[1] = 8), b.Qc[0] = ei[Vt(v + l, 117)], b.Qc[1] = ri[Vt(v + h, 127)], b.lc = v + h;\n      }\n      if (!c.Rb) return Jt(t, 4, \"Not a key frame.\");\n      for (P(s), c = t.Pa, n = 0; 4 > n; ++n) {\n        for (o = 0; 8 > o; ++o) for (a = 0; 3 > a; ++a) for (u = 0; 11 > u; ++u) l = k(s, ui[n][o][a][u]) ? g(s, 8) : si[n][o][a][u], c.Wc[n][o].Yb[a][u] = l;\n        for (o = 0; 17 > o; ++o) c.Xc[n][o] = c.Wc[n][hi[o]];\n      }\n      return t.kc = P(s), t.kc && (t.Bd = g(s, 8)), t.cb = 1;\n    }\n    function Zt(t, e, r, n, i, a, o) {\n      var s = e[i].Yb[r];\n      for (r = 0; 16 > i; ++i) {\n        if (!k(t, s[r + 0])) return i;\n        for (; !k(t, s[r + 1]);) if (s = e[++i].Yb[0], r = 0, 16 == i) return 16;\n        var c = e[i + 1].Yb;\n        if (k(t, s[r + 2])) {\n          var u = t,\n            h = 0;\n          if (k(u, (f = s)[(l = r) + 3])) {\n            if (k(u, f[l + 6])) {\n              for (s = 0, l = 2 * (h = k(u, f[l + 8])) + (f = k(u, f[l + 9 + h])), h = 0, f = ii[l]; f[s]; ++s) h += h + k(u, f[s]);\n              h += 3 + (8 << l);\n            } else k(u, f[l + 7]) ? (h = 7 + 2 * k(u, 165), h += k(u, 145)) : h = 5 + k(u, 159);\n          } else h = k(u, f[l + 4]) ? 3 + k(u, f[l + 5]) : 2;\n          s = c[2];\n        } else h = 1, s = c[1];\n        c = o + ai[i], 0 > (u = t).b && _(u);\n        var l,\n          f = u.b,\n          d = (l = u.Ca >> 1) - (u.I >> f) >> 31;\n        --u.b, u.Ca += d, u.Ca |= 1, u.I -= (l + 1 & d) << f, a[c] = ((h ^ d) - d) * n[(0 < i) + 0];\n      }\n      return 16;\n    }\n    function $t(t) {\n      var e = t.rb[t.sb - 1];\n      e.la = 0, e.Na = 0, i(t.zc, 0, 0, t.zc.length), t.ja = 0;\n    }\n    function Qt(t, r) {\n      if (null == t) return 0;\n      if (null == r) return Jt(t, 2, \"NULL VP8Io parameter in VP8Decode().\");\n      if (!t.cb && !Kt(t, r)) return 0;\n      if (e(t.cb), null == r.ac || r.ac(r)) {\n        r.ob && (t.L = 0);\n        var s = Ri[t.L];\n        if (2 == t.L ? (t.yb = 0, t.zb = 0) : (t.yb = r.v - s >> 4, t.zb = r.j - s >> 4, 0 > t.yb && (t.yb = 0), 0 > t.zb && (t.zb = 0)), t.Va = r.o + 15 + s >> 4, t.Hb = r.va + 15 + s >> 4, t.Hb > t.za && (t.Hb = t.za), t.Va > t.Ub && (t.Va = t.Ub), 0 < t.L) {\n          var c = t.ed;\n          for (s = 0; 4 > s; ++s) {\n            var u;\n            if (t.Qa.Cb) {\n              var h = t.Qa.Lb[s];\n              t.Qa.Fb || (h += c.Tb);\n            } else h = c.Tb;\n            for (u = 0; 1 >= u; ++u) {\n              var l = t.gd[s][u],\n                f = h;\n              if (c.Pc && (f += c.vd[0], u && (f += c.od[0])), 0 < (f = 0 > f ? 0 : 63 < f ? 63 : f)) {\n                var d = f;\n                0 < c.wb && (d = 4 < c.wb ? d >> 2 : d >> 1) > 9 - c.wb && (d = 9 - c.wb), 1 > d && (d = 1), l.dd = d, l.tc = 2 * f + d, l.ld = 40 <= f ? 2 : 15 <= f ? 1 : 0;\n              } else l.tc = 0;\n              l.La = u;\n            }\n          }\n        }\n        s = 0;\n      } else Jt(t, 6, \"Frame setup failed\"), s = t.a;\n      if (s = 0 == s) {\n        if (s) {\n          t.$c = 0, 0 < t.Aa || (t.Ic = Ui);\n          t: {\n            s = t.Ic;\n            c = 4 * (d = t.za);\n            var p = 32 * d,\n              g = d + 1,\n              m = 0 < t.L ? d * (0 < t.Aa ? 2 : 1) : 0,\n              v = (2 == t.Aa ? 2 : 1) * d;\n            if ((l = c + 832 + (u = 3 * (16 * s + Ri[t.L]) / 2 * p) + (h = null != t.Fa && 0 < t.Fa.length ? t.Kc.c * t.Kc.i : 0)) != l) s = 0;else {\n              if (l > t.Vb) {\n                if (t.Vb = 0, t.Ec = a(l), t.Fc = 0, null == t.Ec) {\n                  s = Jt(t, 1, \"no memory during frame initialization.\");\n                  break t;\n                }\n                t.Vb = l;\n              }\n              l = t.Ec, f = t.Fc, t.Ac = l, t.Bc = f, f += c, t.Gd = o(p, Ht), t.Hd = 0, t.rb = o(g + 1, Rt), t.sb = 1, t.wa = m ? o(m, Dt) : null, t.Y = 0, t.D.Nb = 0, t.D.wa = t.wa, t.D.Y = t.Y, 0 < t.Aa && (t.D.Y += d), e(!0), t.oc = l, t.pc = f, f += 832, t.ya = o(v, Ut), t.aa = 0, t.D.ya = t.ya, t.D.aa = t.aa, 2 == t.Aa && (t.D.aa += d), t.R = 16 * d, t.B = 8 * d, d = (p = Ri[t.L]) * t.R, p = p / 2 * t.B, t.sa = l, t.ta = f + d, t.qa = t.sa, t.ra = t.ta + 16 * s * t.R + p, t.Ha = t.qa, t.Ia = t.ra + 8 * s * t.B + p, t.$c = 0, f += u, t.mb = h ? l : null, t.nb = h ? f : null, e(f + h <= t.Fc + t.Vb), $t(t), i(t.Ac, t.Bc, 0, c), s = 1;\n            }\n          }\n          if (s) {\n            if (r.ka = 0, r.y = t.sa, r.O = t.ta, r.f = t.qa, r.N = t.ra, r.ea = t.Ha, r.Vd = t.Ia, r.fa = t.R, r.Rc = t.B, r.F = null, r.J = 0, !Cn) {\n              for (s = -255; 255 >= s; ++s) Pn[255 + s] = 0 > s ? -s : s;\n              for (s = -1020; 1020 >= s; ++s) kn[1020 + s] = -128 > s ? -128 : 127 < s ? 127 : s;\n              for (s = -112; 112 >= s; ++s) In[112 + s] = -16 > s ? -16 : 15 < s ? 15 : s;\n              for (s = -255; 510 >= s; ++s) Fn[255 + s] = 0 > s ? 0 : 255 < s ? 255 : s;\n              Cn = 1;\n            }\n            an = ue, on = ae, cn = oe, un = se, hn = ce, sn = ie, ln = Je, fn = Xe, dn = $e, pn = Qe, gn = Ke, mn = Ze, vn = tr, bn = er, yn = ze, wn = He, Nn = We, Ln = Ve, fi[0] = xe, fi[1] = le, fi[2] = Le, fi[3] = Ae, fi[4] = Se, fi[5] = Pe, fi[6] = _e, fi[7] = ke, fi[8] = Fe, fi[9] = Ie, li[0] = ve, li[1] = de, li[2] = pe, li[3] = ge, li[4] = be, li[5] = ye, li[6] = we, di[0] = Be, di[1] = fe, di[2] = Ce, di[3] = je, di[4] = Ee, di[5] = Me, di[6] = qe, s = 1;\n          } else s = 0;\n        }\n        s && (s = function (t, r) {\n          for (t.M = 0; t.M < t.Va; ++t.M) {\n            var o,\n              s = t.Jc[t.M & t.Xb],\n              c = t.m,\n              u = t;\n            for (o = 0; o < u.za; ++o) {\n              var h = c,\n                l = u,\n                f = l.Ac,\n                d = l.Bc + 4 * o,\n                p = l.zc,\n                g = l.ya[l.aa + o];\n              if (l.Qa.Bb ? g.$b = k(h, l.Pa.jb[0]) ? 2 + k(h, l.Pa.jb[2]) : k(h, l.Pa.jb[1]) : g.$b = 0, l.kc && (g.Ad = k(h, l.Bd)), g.Za = !k(h, 145) + 0, g.Za) {\n                var m = g.Ob,\n                  v = 0;\n                for (l = 0; 4 > l; ++l) {\n                  var b,\n                    y = p[0 + l];\n                  for (b = 0; 4 > b; ++b) {\n                    y = ci[f[d + b]][y];\n                    for (var w = oi[k(h, y[0])]; 0 < w;) w = oi[2 * w + k(h, y[w])];\n                    y = -w, f[d + b] = y;\n                  }\n                  n(m, v, f, d, 4), v += 4, p[0 + l] = y;\n                }\n              } else y = k(h, 156) ? k(h, 128) ? 1 : 3 : k(h, 163) ? 2 : 0, g.Ob[0] = y, i(f, d, y, 4), i(p, 0, y, 4);\n              g.Dd = k(h, 142) ? k(h, 114) ? k(h, 183) ? 1 : 3 : 2 : 0;\n            }\n            if (u.m.Ka) return Jt(t, 7, \"Premature end-of-partition0 encountered.\");\n            for (; t.ja < t.za; ++t.ja) {\n              if (u = s, h = (c = t).rb[c.sb - 1], f = c.rb[c.sb + c.ja], o = c.ya[c.aa + c.ja], d = c.kc ? o.Ad : 0) h.la = f.la = 0, o.Za || (h.Na = f.Na = 0), o.Hc = 0, o.Gc = 0, o.ia = 0;else {\n                var N, L;\n                h = f, f = u, d = c.Pa.Xc, p = c.ya[c.aa + c.ja], g = c.pb[p.$b];\n                if (l = p.ad, m = 0, v = c.rb[c.sb - 1], y = b = 0, i(l, m, 0, 384), p.Za) var A = 0,\n                  x = d[3];else {\n                  w = a(16);\n                  var S = h.Na + v.Na;\n                  if (S = ni(f, d[1], S, g.Eb, 0, w, 0), h.Na = v.Na = (0 < S) + 0, 1 < S) an(w, 0, l, m);else {\n                    var _ = w[0] + 3 >> 3;\n                    for (w = 0; 256 > w; w += 16) l[m + w] = _;\n                  }\n                  A = 1, x = d[0];\n                }\n                var P = 15 & h.la,\n                  I = 15 & v.la;\n                for (w = 0; 4 > w; ++w) {\n                  var F = 1 & I;\n                  for (_ = L = 0; 4 > _; ++_) P = P >> 1 | (F = (S = ni(f, x, S = F + (1 & P), g.Sc, A, l, m)) > A) << 7, L = L << 2 | (3 < S ? 3 : 1 < S ? 2 : 0 != l[m + 0]), m += 16;\n                  P >>= 4, I = I >> 1 | F << 7, b = (b << 8 | L) >>> 0;\n                }\n                for (x = P, A = I >> 4, N = 0; 4 > N; N += 2) {\n                  for (L = 0, P = h.la >> 4 + N, I = v.la >> 4 + N, w = 0; 2 > w; ++w) {\n                    for (F = 1 & I, _ = 0; 2 > _; ++_) S = F + (1 & P), P = P >> 1 | (F = 0 < (S = ni(f, d[2], S, g.Qc, 0, l, m))) << 3, L = L << 2 | (3 < S ? 3 : 1 < S ? 2 : 0 != l[m + 0]), m += 16;\n                    P >>= 2, I = I >> 1 | F << 5;\n                  }\n                  y |= L << 4 * N, x |= P << 4 << N, A |= (240 & I) << N;\n                }\n                h.la = x, v.la = A, p.Hc = b, p.Gc = y, p.ia = 43690 & y ? 0 : g.ia, d = !(b | y);\n              }\n              if (0 < c.L && (c.wa[c.Y + c.ja] = c.gd[o.$b][o.Za], c.wa[c.Y + c.ja].La |= !d), u.Ka) return Jt(t, 7, \"Premature end-of-file encountered.\");\n            }\n            if ($t(t), c = r, u = 1, o = (s = t).D, h = 0 < s.L && s.M >= s.zb && s.M <= s.Va, 0 == s.Aa) t: {\n              if (o.M = s.M, o.uc = h, Or(s, o), u = 1, o = (L = s.D).Nb, h = (y = Ri[s.L]) * s.R, f = y / 2 * s.B, w = 16 * o * s.R, _ = 8 * o * s.B, d = s.sa, p = s.ta - h + w, g = s.qa, l = s.ra - f + _, m = s.Ha, v = s.Ia - f + _, I = 0 == (P = L.M), b = P >= s.Va - 1, 2 == s.Aa && Or(s, L), L.uc) for (F = (S = s).D.M, e(S.D.uc), L = S.yb; L < S.Hb; ++L) {\n                A = L, x = F;\n                var C = (j = (U = S).D).Nb;\n                N = U.R;\n                var j = j.wa[j.Y + A],\n                  O = U.sa,\n                  B = U.ta + 16 * C * N + 16 * A,\n                  M = j.dd,\n                  E = j.tc;\n                if (0 != E) if (e(3 <= E), 1 == U.L) 0 < A && wn(O, B, N, E + 4), j.La && Ln(O, B, N, E), 0 < x && yn(O, B, N, E + 4), j.La && Nn(O, B, N, E);else {\n                  var q = U.B,\n                    D = U.qa,\n                    R = U.ra + 8 * C * q + 8 * A,\n                    T = U.Ha,\n                    U = U.Ia + 8 * C * q + 8 * A;\n                  C = j.ld;\n                  0 < A && (fn(O, B, N, E + 4, M, C), pn(D, R, T, U, q, E + 4, M, C)), j.La && (mn(O, B, N, E, M, C), bn(D, R, T, U, q, E, M, C)), 0 < x && (ln(O, B, N, E + 4, M, C), dn(D, R, T, U, q, E + 4, M, C)), j.La && (gn(O, B, N, E, M, C), vn(D, R, T, U, q, E, M, C));\n                }\n              }\n              if (s.ia && alert(\"todo:DitherRow\"), null != c.put) {\n                if (L = 16 * P, P = 16 * (P + 1), I ? (c.y = s.sa, c.O = s.ta + w, c.f = s.qa, c.N = s.ra + _, c.ea = s.Ha, c.W = s.Ia + _) : (L -= y, c.y = d, c.O = p, c.f = g, c.N = l, c.ea = m, c.W = v), b || (P -= y), P > c.o && (P = c.o), c.F = null, c.J = null, null != s.Fa && 0 < s.Fa.length && L < P && (c.J = lr(s, c, L, P - L), c.F = s.mb, null == c.F && 0 == c.F.length)) {\n                  u = Jt(s, 3, \"Could not decode alpha data.\");\n                  break t;\n                }\n                L < c.j && (y = c.j - L, L = c.j, e(!(1 & y)), c.O += s.R * y, c.N += s.B * (y >> 1), c.W += s.B * (y >> 1), null != c.F && (c.J += c.width * y)), L < P && (c.O += c.v, c.N += c.v >> 1, c.W += c.v >> 1, null != c.F && (c.J += c.v), c.ka = L - c.j, c.U = c.va - c.v, c.T = P - L, u = c.put(c));\n              }\n              o + 1 != s.Ic || b || (n(s.sa, s.ta - h, d, p + 16 * s.R, h), n(s.qa, s.ra - f, g, l + 8 * s.B, f), n(s.Ha, s.Ia - f, m, v + 8 * s.B, f));\n            }\n            if (!u) return Jt(t, 6, \"Output aborted.\");\n          }\n          return 1;\n        }(t, r)), null != r.bc && r.bc(r), s &= 1;\n      }\n      return s ? (t.cb = 0, s) : 0;\n    }\n    function te(t, e, r, n, i) {\n      i = t[e + r + 32 * n] + (i >> 3), t[e + r + 32 * n] = -256 & i ? 0 > i ? 0 : 255 : i;\n    }\n    function ee(t, e, r, n, i, a) {\n      te(t, e, 0, r, n + i), te(t, e, 1, r, n + a), te(t, e, 2, r, n - a), te(t, e, 3, r, n - i);\n    }\n    function re(t) {\n      return (20091 * t >> 16) + t;\n    }\n    function ne(t, e, r, n) {\n      var i,\n        o = 0,\n        s = a(16);\n      for (i = 0; 4 > i; ++i) {\n        var c = t[e + 0] + t[e + 8],\n          u = t[e + 0] - t[e + 8],\n          h = (35468 * t[e + 4] >> 16) - re(t[e + 12]),\n          l = re(t[e + 4]) + (35468 * t[e + 12] >> 16);\n        s[o + 0] = c + l, s[o + 1] = u + h, s[o + 2] = u - h, s[o + 3] = c - l, o += 4, e++;\n      }\n      for (i = o = 0; 4 > i; ++i) c = (t = s[o + 0] + 4) + s[o + 8], u = t - s[o + 8], h = (35468 * s[o + 4] >> 16) - re(s[o + 12]), te(r, n, 0, 0, c + (l = re(s[o + 4]) + (35468 * s[o + 12] >> 16))), te(r, n, 1, 0, u + h), te(r, n, 2, 0, u - h), te(r, n, 3, 0, c - l), o++, n += 32;\n    }\n    function ie(t, e, r, n) {\n      var i = t[e + 0] + 4,\n        a = 35468 * t[e + 4] >> 16,\n        o = re(t[e + 4]),\n        s = 35468 * t[e + 1] >> 16;\n      ee(r, n, 0, i + o, t = re(t[e + 1]), s), ee(r, n, 1, i + a, t, s), ee(r, n, 2, i - a, t, s), ee(r, n, 3, i - o, t, s);\n    }\n    function ae(t, e, r, n, i) {\n      ne(t, e, r, n), i && ne(t, e + 16, r, n + 4);\n    }\n    function oe(t, e, r, n) {\n      on(t, e + 0, r, n, 1), on(t, e + 32, r, n + 128, 1);\n    }\n    function se(t, e, r, n) {\n      var i;\n      for (t = t[e + 0] + 4, i = 0; 4 > i; ++i) for (e = 0; 4 > e; ++e) te(r, n, e, i, t);\n    }\n    function ce(t, e, r, n) {\n      t[e + 0] && un(t, e + 0, r, n), t[e + 16] && un(t, e + 16, r, n + 4), t[e + 32] && un(t, e + 32, r, n + 128), t[e + 48] && un(t, e + 48, r, n + 128 + 4);\n    }\n    function ue(t, e, r, n) {\n      var i,\n        o = a(16);\n      for (i = 0; 4 > i; ++i) {\n        var s = t[e + 0 + i] + t[e + 12 + i],\n          c = t[e + 4 + i] + t[e + 8 + i],\n          u = t[e + 4 + i] - t[e + 8 + i],\n          h = t[e + 0 + i] - t[e + 12 + i];\n        o[0 + i] = s + c, o[8 + i] = s - c, o[4 + i] = h + u, o[12 + i] = h - u;\n      }\n      for (i = 0; 4 > i; ++i) s = (t = o[0 + 4 * i] + 3) + o[3 + 4 * i], c = o[1 + 4 * i] + o[2 + 4 * i], u = o[1 + 4 * i] - o[2 + 4 * i], h = t - o[3 + 4 * i], r[n + 0] = s + c >> 3, r[n + 16] = h + u >> 3, r[n + 32] = s - c >> 3, r[n + 48] = h - u >> 3, n += 64;\n    }\n    function he(t, e, r) {\n      var n,\n        i = e - 32,\n        a = Bn,\n        o = 255 - t[i - 1];\n      for (n = 0; n < r; ++n) {\n        var s,\n          c = a,\n          u = o + t[e - 1];\n        for (s = 0; s < r; ++s) t[e + s] = c[u + t[i + s]];\n        e += 32;\n      }\n    }\n    function le(t, e) {\n      he(t, e, 4);\n    }\n    function fe(t, e) {\n      he(t, e, 8);\n    }\n    function de(t, e) {\n      he(t, e, 16);\n    }\n    function pe(t, e) {\n      var r;\n      for (r = 0; 16 > r; ++r) n(t, e + 32 * r, t, e - 32, 16);\n    }\n    function ge(t, e) {\n      var r;\n      for (r = 16; 0 < r; --r) i(t, e, t[e - 1], 16), e += 32;\n    }\n    function me(t, e, r) {\n      var n;\n      for (n = 0; 16 > n; ++n) i(e, r + 32 * n, t, 16);\n    }\n    function ve(t, e) {\n      var r,\n        n = 16;\n      for (r = 0; 16 > r; ++r) n += t[e - 1 + 32 * r] + t[e + r - 32];\n      me(n >> 5, t, e);\n    }\n    function be(t, e) {\n      var r,\n        n = 8;\n      for (r = 0; 16 > r; ++r) n += t[e - 1 + 32 * r];\n      me(n >> 4, t, e);\n    }\n    function ye(t, e) {\n      var r,\n        n = 8;\n      for (r = 0; 16 > r; ++r) n += t[e + r - 32];\n      me(n >> 4, t, e);\n    }\n    function we(t, e) {\n      me(128, t, e);\n    }\n    function Ne(t, e, r) {\n      return t + 2 * e + r + 2 >> 2;\n    }\n    function Le(t, e) {\n      var r,\n        i = e - 32;\n      i = new Uint8Array([Ne(t[i - 1], t[i + 0], t[i + 1]), Ne(t[i + 0], t[i + 1], t[i + 2]), Ne(t[i + 1], t[i + 2], t[i + 3]), Ne(t[i + 2], t[i + 3], t[i + 4])]);\n      for (r = 0; 4 > r; ++r) n(t, e + 32 * r, i, 0, i.length);\n    }\n    function Ae(t, e) {\n      var r = t[e - 1],\n        n = t[e - 1 + 32],\n        i = t[e - 1 + 64],\n        a = t[e - 1 + 96];\n      I(t, e + 0, 16843009 * Ne(t[e - 1 - 32], r, n)), I(t, e + 32, 16843009 * Ne(r, n, i)), I(t, e + 64, 16843009 * Ne(n, i, a)), I(t, e + 96, 16843009 * Ne(i, a, a));\n    }\n    function xe(t, e) {\n      var r,\n        n = 4;\n      for (r = 0; 4 > r; ++r) n += t[e + r - 32] + t[e - 1 + 32 * r];\n      for (n >>= 3, r = 0; 4 > r; ++r) i(t, e + 32 * r, n, 4);\n    }\n    function Se(t, e) {\n      var r = t[e - 1 + 0],\n        n = t[e - 1 + 32],\n        i = t[e - 1 + 64],\n        a = t[e - 1 - 32],\n        o = t[e + 0 - 32],\n        s = t[e + 1 - 32],\n        c = t[e + 2 - 32],\n        u = t[e + 3 - 32];\n      t[e + 0 + 96] = Ne(n, i, t[e - 1 + 96]), t[e + 1 + 96] = t[e + 0 + 64] = Ne(r, n, i), t[e + 2 + 96] = t[e + 1 + 64] = t[e + 0 + 32] = Ne(a, r, n), t[e + 3 + 96] = t[e + 2 + 64] = t[e + 1 + 32] = t[e + 0 + 0] = Ne(o, a, r), t[e + 3 + 64] = t[e + 2 + 32] = t[e + 1 + 0] = Ne(s, o, a), t[e + 3 + 32] = t[e + 2 + 0] = Ne(c, s, o), t[e + 3 + 0] = Ne(u, c, s);\n    }\n    function _e(t, e) {\n      var r = t[e + 1 - 32],\n        n = t[e + 2 - 32],\n        i = t[e + 3 - 32],\n        a = t[e + 4 - 32],\n        o = t[e + 5 - 32],\n        s = t[e + 6 - 32],\n        c = t[e + 7 - 32];\n      t[e + 0 + 0] = Ne(t[e + 0 - 32], r, n), t[e + 1 + 0] = t[e + 0 + 32] = Ne(r, n, i), t[e + 2 + 0] = t[e + 1 + 32] = t[e + 0 + 64] = Ne(n, i, a), t[e + 3 + 0] = t[e + 2 + 32] = t[e + 1 + 64] = t[e + 0 + 96] = Ne(i, a, o), t[e + 3 + 32] = t[e + 2 + 64] = t[e + 1 + 96] = Ne(a, o, s), t[e + 3 + 64] = t[e + 2 + 96] = Ne(o, s, c), t[e + 3 + 96] = Ne(s, c, c);\n    }\n    function Pe(t, e) {\n      var r = t[e - 1 + 0],\n        n = t[e - 1 + 32],\n        i = t[e - 1 + 64],\n        a = t[e - 1 - 32],\n        o = t[e + 0 - 32],\n        s = t[e + 1 - 32],\n        c = t[e + 2 - 32],\n        u = t[e + 3 - 32];\n      t[e + 0 + 0] = t[e + 1 + 64] = a + o + 1 >> 1, t[e + 1 + 0] = t[e + 2 + 64] = o + s + 1 >> 1, t[e + 2 + 0] = t[e + 3 + 64] = s + c + 1 >> 1, t[e + 3 + 0] = c + u + 1 >> 1, t[e + 0 + 96] = Ne(i, n, r), t[e + 0 + 64] = Ne(n, r, a), t[e + 0 + 32] = t[e + 1 + 96] = Ne(r, a, o), t[e + 1 + 32] = t[e + 2 + 96] = Ne(a, o, s), t[e + 2 + 32] = t[e + 3 + 96] = Ne(o, s, c), t[e + 3 + 32] = Ne(s, c, u);\n    }\n    function ke(t, e) {\n      var r = t[e + 0 - 32],\n        n = t[e + 1 - 32],\n        i = t[e + 2 - 32],\n        a = t[e + 3 - 32],\n        o = t[e + 4 - 32],\n        s = t[e + 5 - 32],\n        c = t[e + 6 - 32],\n        u = t[e + 7 - 32];\n      t[e + 0 + 0] = r + n + 1 >> 1, t[e + 1 + 0] = t[e + 0 + 64] = n + i + 1 >> 1, t[e + 2 + 0] = t[e + 1 + 64] = i + a + 1 >> 1, t[e + 3 + 0] = t[e + 2 + 64] = a + o + 1 >> 1, t[e + 0 + 32] = Ne(r, n, i), t[e + 1 + 32] = t[e + 0 + 96] = Ne(n, i, a), t[e + 2 + 32] = t[e + 1 + 96] = Ne(i, a, o), t[e + 3 + 32] = t[e + 2 + 96] = Ne(a, o, s), t[e + 3 + 64] = Ne(o, s, c), t[e + 3 + 96] = Ne(s, c, u);\n    }\n    function Ie(t, e) {\n      var r = t[e - 1 + 0],\n        n = t[e - 1 + 32],\n        i = t[e - 1 + 64],\n        a = t[e - 1 + 96];\n      t[e + 0 + 0] = r + n + 1 >> 1, t[e + 2 + 0] = t[e + 0 + 32] = n + i + 1 >> 1, t[e + 2 + 32] = t[e + 0 + 64] = i + a + 1 >> 1, t[e + 1 + 0] = Ne(r, n, i), t[e + 3 + 0] = t[e + 1 + 32] = Ne(n, i, a), t[e + 3 + 32] = t[e + 1 + 64] = Ne(i, a, a), t[e + 3 + 64] = t[e + 2 + 64] = t[e + 0 + 96] = t[e + 1 + 96] = t[e + 2 + 96] = t[e + 3 + 96] = a;\n    }\n    function Fe(t, e) {\n      var r = t[e - 1 + 0],\n        n = t[e - 1 + 32],\n        i = t[e - 1 + 64],\n        a = t[e - 1 + 96],\n        o = t[e - 1 - 32],\n        s = t[e + 0 - 32],\n        c = t[e + 1 - 32],\n        u = t[e + 2 - 32];\n      t[e + 0 + 0] = t[e + 2 + 32] = r + o + 1 >> 1, t[e + 0 + 32] = t[e + 2 + 64] = n + r + 1 >> 1, t[e + 0 + 64] = t[e + 2 + 96] = i + n + 1 >> 1, t[e + 0 + 96] = a + i + 1 >> 1, t[e + 3 + 0] = Ne(s, c, u), t[e + 2 + 0] = Ne(o, s, c), t[e + 1 + 0] = t[e + 3 + 32] = Ne(r, o, s), t[e + 1 + 32] = t[e + 3 + 64] = Ne(n, r, o), t[e + 1 + 64] = t[e + 3 + 96] = Ne(i, n, r), t[e + 1 + 96] = Ne(a, i, n);\n    }\n    function Ce(t, e) {\n      var r;\n      for (r = 0; 8 > r; ++r) n(t, e + 32 * r, t, e - 32, 8);\n    }\n    function je(t, e) {\n      var r;\n      for (r = 0; 8 > r; ++r) i(t, e, t[e - 1], 8), e += 32;\n    }\n    function Oe(t, e, r) {\n      var n;\n      for (n = 0; 8 > n; ++n) i(e, r + 32 * n, t, 8);\n    }\n    function Be(t, e) {\n      var r,\n        n = 8;\n      for (r = 0; 8 > r; ++r) n += t[e + r - 32] + t[e - 1 + 32 * r];\n      Oe(n >> 4, t, e);\n    }\n    function Me(t, e) {\n      var r,\n        n = 4;\n      for (r = 0; 8 > r; ++r) n += t[e + r - 32];\n      Oe(n >> 3, t, e);\n    }\n    function Ee(t, e) {\n      var r,\n        n = 4;\n      for (r = 0; 8 > r; ++r) n += t[e - 1 + 32 * r];\n      Oe(n >> 3, t, e);\n    }\n    function qe(t, e) {\n      Oe(128, t, e);\n    }\n    function De(t, e, r) {\n      var n = t[e - r],\n        i = t[e + 0],\n        a = 3 * (i - n) + jn[1020 + t[e - 2 * r] - t[e + r]],\n        o = On[112 + (a + 4 >> 3)];\n      t[e - r] = Bn[255 + n + On[112 + (a + 3 >> 3)]], t[e + 0] = Bn[255 + i - o];\n    }\n    function Re(t, e, r, n) {\n      var i = t[e + 0],\n        a = t[e + r];\n      return Mn[255 + t[e - 2 * r] - t[e - r]] > n || Mn[255 + a - i] > n;\n    }\n    function Te(t, e, r, n) {\n      return 4 * Mn[255 + t[e - r] - t[e + 0]] + Mn[255 + t[e - 2 * r] - t[e + r]] <= n;\n    }\n    function Ue(t, e, r, n, i) {\n      var a = t[e - 3 * r],\n        o = t[e - 2 * r],\n        s = t[e - r],\n        c = t[e + 0],\n        u = t[e + r],\n        h = t[e + 2 * r],\n        l = t[e + 3 * r];\n      return 4 * Mn[255 + s - c] + Mn[255 + o - u] > n ? 0 : Mn[255 + t[e - 4 * r] - a] <= i && Mn[255 + a - o] <= i && Mn[255 + o - s] <= i && Mn[255 + l - h] <= i && Mn[255 + h - u] <= i && Mn[255 + u - c] <= i;\n    }\n    function ze(t, e, r, n) {\n      var i = 2 * n + 1;\n      for (n = 0; 16 > n; ++n) Te(t, e + n, r, i) && De(t, e + n, r);\n    }\n    function He(t, e, r, n) {\n      var i = 2 * n + 1;\n      for (n = 0; 16 > n; ++n) Te(t, e + n * r, 1, i) && De(t, e + n * r, 1);\n    }\n    function We(t, e, r, n) {\n      var i;\n      for (i = 3; 0 < i; --i) ze(t, e += 4 * r, r, n);\n    }\n    function Ve(t, e, r, n) {\n      var i;\n      for (i = 3; 0 < i; --i) He(t, e += 4, r, n);\n    }\n    function Ge(t, e, r, n, i, a, o, s) {\n      for (a = 2 * a + 1; 0 < i--;) {\n        if (Ue(t, e, r, a, o)) if (Re(t, e, r, s)) De(t, e, r);else {\n          var c = t,\n            u = e,\n            h = r,\n            l = c[u - 2 * h],\n            f = c[u - h],\n            d = c[u + 0],\n            p = c[u + h],\n            g = c[u + 2 * h],\n            m = 27 * (b = jn[1020 + 3 * (d - f) + jn[1020 + l - p]]) + 63 >> 7,\n            v = 18 * b + 63 >> 7,\n            b = 9 * b + 63 >> 7;\n          c[u - 3 * h] = Bn[255 + c[u - 3 * h] + b], c[u - 2 * h] = Bn[255 + l + v], c[u - h] = Bn[255 + f + m], c[u + 0] = Bn[255 + d - m], c[u + h] = Bn[255 + p - v], c[u + 2 * h] = Bn[255 + g - b];\n        }\n        e += n;\n      }\n    }\n    function Ye(t, e, r, n, i, a, o, s) {\n      for (a = 2 * a + 1; 0 < i--;) {\n        if (Ue(t, e, r, a, o)) if (Re(t, e, r, s)) De(t, e, r);else {\n          var c = t,\n            u = e,\n            h = r,\n            l = c[u - h],\n            f = c[u + 0],\n            d = c[u + h],\n            p = On[112 + ((g = 3 * (f - l)) + 4 >> 3)],\n            g = On[112 + (g + 3 >> 3)],\n            m = p + 1 >> 1;\n          c[u - 2 * h] = Bn[255 + c[u - 2 * h] + m], c[u - h] = Bn[255 + l + g], c[u + 0] = Bn[255 + f - p], c[u + h] = Bn[255 + d - m];\n        }\n        e += n;\n      }\n    }\n    function Je(t, e, r, n, i, a) {\n      Ge(t, e, r, 1, 16, n, i, a);\n    }\n    function Xe(t, e, r, n, i, a) {\n      Ge(t, e, 1, r, 16, n, i, a);\n    }\n    function Ke(t, e, r, n, i, a) {\n      var o;\n      for (o = 3; 0 < o; --o) Ye(t, e += 4 * r, r, 1, 16, n, i, a);\n    }\n    function Ze(t, e, r, n, i, a) {\n      var o;\n      for (o = 3; 0 < o; --o) Ye(t, e += 4, 1, r, 16, n, i, a);\n    }\n    function $e(t, e, r, n, i, a, o, s) {\n      Ge(t, e, i, 1, 8, a, o, s), Ge(r, n, i, 1, 8, a, o, s);\n    }\n    function Qe(t, e, r, n, i, a, o, s) {\n      Ge(t, e, 1, i, 8, a, o, s), Ge(r, n, 1, i, 8, a, o, s);\n    }\n    function tr(t, e, r, n, i, a, o, s) {\n      Ye(t, e + 4 * i, i, 1, 8, a, o, s), Ye(r, n + 4 * i, i, 1, 8, a, o, s);\n    }\n    function er(t, e, r, n, i, a, o, s) {\n      Ye(t, e + 4, 1, i, 8, a, o, s), Ye(r, n + 4, 1, i, 8, a, o, s);\n    }\n    function rr() {\n      this.ba = new ot(), this.ec = [], this.cc = [], this.Mc = [], this.Dc = this.Nc = this.dc = this.fc = 0, this.Oa = new ct(), this.memory = 0, this.Ib = \"OutputFunc\", this.Jb = \"OutputAlphaFunc\", this.Nd = \"OutputRowFunc\";\n    }\n    function nr() {\n      this.data = [], this.offset = this.kd = this.ha = this.w = 0, this.na = [], this.xa = this.gb = this.Ja = this.Sa = this.P = 0;\n    }\n    function ir() {\n      this.nc = this.Ea = this.b = this.hc = 0, this.K = [], this.w = 0;\n    }\n    function ar() {\n      this.ua = 0, this.Wa = new M(), this.vb = new M(), this.md = this.xc = this.wc = 0, this.vc = [], this.Wb = 0, this.Ya = new d(), this.yc = new l();\n    }\n    function or() {\n      this.xb = this.a = 0, this.l = new Gt(), this.ca = new ot(), this.V = [], this.Ba = 0, this.Ta = [], this.Ua = 0, this.m = new N(), this.Pb = 0, this.wd = new N(), this.Ma = this.$ = this.C = this.i = this.c = this.xd = 0, this.s = new ar(), this.ab = 0, this.gc = o(4, ir), this.Oc = 0;\n    }\n    function sr() {\n      this.Lc = this.Z = this.$a = this.i = this.c = 0, this.l = new Gt(), this.ic = 0, this.ca = [], this.tb = 0, this.qd = null, this.rd = 0;\n    }\n    function cr(t, e, r, n, i, a, o) {\n      for (t = null == t ? 0 : t[e + 0], e = 0; e < o; ++e) i[a + e] = t + r[n + e] & 255, t = i[a + e];\n    }\n    function ur(t, e, r, n, i, a, o) {\n      var s;\n      if (null == t) cr(null, null, r, n, i, a, o);else for (s = 0; s < o; ++s) i[a + s] = t[e + s] + r[n + s] & 255;\n    }\n    function hr(t, e, r, n, i, a, o) {\n      if (null == t) cr(null, null, r, n, i, a, o);else {\n        var s,\n          c = t[e + 0],\n          u = c,\n          h = c;\n        for (s = 0; s < o; ++s) u = h + (c = t[e + s]) - u, h = r[n + s] + (-256 & u ? 0 > u ? 0 : 255 : u) & 255, u = c, i[a + s] = h;\n      }\n    }\n    function lr(t, r, i, o) {\n      var s = r.width,\n        c = r.o;\n      if (e(null != t && null != r), 0 > i || 0 >= o || i + o > c) return null;\n      if (!t.Cc) {\n        if (null == t.ga) {\n          var u;\n          if (t.ga = new sr(), (u = null == t.ga) || (u = r.width * r.o, e(0 == t.Gb.length), t.Gb = a(u), t.Uc = 0, null == t.Gb ? u = 0 : (t.mb = t.Gb, t.nb = t.Uc, t.rc = null, u = 1), u = !u), !u) {\n            u = t.ga;\n            var h = t.Fa,\n              l = t.P,\n              f = t.qc,\n              d = t.mb,\n              p = t.nb,\n              g = l + 1,\n              m = f - 1,\n              b = u.l;\n            if (e(null != h && null != d && null != r), mi[0] = null, mi[1] = cr, mi[2] = ur, mi[3] = hr, u.ca = d, u.tb = p, u.c = r.width, u.i = r.height, e(0 < u.c && 0 < u.i), 1 >= f) r = 0;else if (u.$a = h[l + 0] >> 0 & 3, u.Z = h[l + 0] >> 2 & 3, u.Lc = h[l + 0] >> 4 & 3, l = h[l + 0] >> 6 & 3, 0 > u.$a || 1 < u.$a || 4 <= u.Z || 1 < u.Lc || l) r = 0;else if (b.put = dt, b.ac = ft, b.bc = pt, b.ma = u, b.width = r.width, b.height = r.height, b.Da = r.Da, b.v = r.v, b.va = r.va, b.j = r.j, b.o = r.o, u.$a) t: {\n              e(1 == u.$a), r = kt();\n              e: for (;;) {\n                if (null == r) {\n                  r = 0;\n                  break t;\n                }\n                if (e(null != u), u.mc = r, r.c = u.c, r.i = u.i, r.l = u.l, r.l.ma = u, r.l.width = u.c, r.l.height = u.i, r.a = 0, v(r.m, h, g, m), !It(u.c, u.i, 1, r, null)) break e;\n                if (1 == r.ab && 3 == r.gc[0].hc && At(r.s) ? (u.ic = 1, h = r.c * r.i, r.Ta = null, r.Ua = 0, r.V = a(h), r.Ba = 0, null == r.V ? (r.a = 1, r = 0) : r = 1) : (u.ic = 0, r = Ft(r, u.c)), !r) break e;\n                r = 1;\n                break t;\n              }\n              u.mc = null, r = 0;\n            } else r = m >= u.c * u.i;\n            u = !r;\n          }\n          if (u) return null;\n          1 != t.ga.Lc ? t.Ga = 0 : o = c - i;\n        }\n        e(null != t.ga), e(i + o <= c);\n        t: {\n          if (r = (h = t.ga).c, c = h.l.o, 0 == h.$a) {\n            if (g = t.rc, m = t.Vc, b = t.Fa, l = t.P + 1 + i * r, f = t.mb, d = t.nb + i * r, e(l <= t.P + t.qc), 0 != h.Z) for (e(null != mi[h.Z]), u = 0; u < o; ++u) mi[h.Z](g, m, b, l, f, d, r), g = f, m = d, d += r, l += r;else for (u = 0; u < o; ++u) n(f, d, b, l, r), g = f, m = d, d += r, l += r;\n            t.rc = g, t.Vc = m;\n          } else {\n            if (e(null != h.mc), r = i + o, e(null != (u = h.mc)), e(r <= u.i), u.C >= r) r = 1;else if (h.ic || mr(), h.ic) {\n              h = u.V, g = u.Ba, m = u.c;\n              var y = u.i,\n                w = (b = 1, l = u.$ / m, f = u.$ % m, d = u.m, p = u.s, u.$),\n                N = m * y,\n                L = m * r,\n                x = p.wc,\n                _ = w < L ? wt(p, f, l) : null;\n              e(w <= N), e(r <= y), e(At(p));\n              e: for (;;) {\n                for (; !d.h && w < L;) {\n                  if (f & x || (_ = wt(p, f, l)), e(null != _), S(d), 256 > (y = bt(_.G[0], _.H[0], d))) h[g + w] = y, ++w, ++f >= m && (f = 0, ++l <= r && !(l % 16) && St(u, l));else {\n                    if (!(280 > y)) {\n                      b = 0;\n                      break e;\n                    }\n                    y = mt(y - 256, d);\n                    var P,\n                      k = bt(_.G[4], _.H[4], d);\n                    if (S(d), !(w >= (k = vt(m, k = mt(k, d))) && N - w >= y)) {\n                      b = 0;\n                      break e;\n                    }\n                    for (P = 0; P < y; ++P) h[g + w + P] = h[g + w + P - k];\n                    for (w += y, f += y; f >= m;) f -= m, ++l <= r && !(l % 16) && St(u, l);\n                    w < L && f & x && (_ = wt(p, f, l));\n                  }\n                  e(d.h == A(d));\n                }\n                St(u, l > r ? r : l);\n                break e;\n              }\n              !b || d.h && w < N ? (b = 0, u.a = d.h ? 5 : 3) : u.$ = w, r = b;\n            } else r = _t(u, u.V, u.Ba, u.c, u.i, r, Ct);\n            if (!r) {\n              o = 0;\n              break t;\n            }\n          }\n          i + o >= c && (t.Cc = 1), o = 1;\n        }\n        if (!o) return null;\n        if (t.Cc && (null != (o = t.ga) && (o.mc = null), t.ga = null, 0 < t.Ga)) return alert(\"todo:WebPDequantizeLevels\"), null;\n      }\n      return t.nb + i * s;\n    }\n    function fr(t, e, r, n, i, a) {\n      for (; 0 < i--;) {\n        var o,\n          s = t,\n          c = e + (r ? 1 : 0),\n          u = t,\n          h = e + (r ? 0 : 3);\n        for (o = 0; o < n; ++o) {\n          var l = u[h + 4 * o];\n          255 != l && (l *= 32897, s[c + 4 * o + 0] = s[c + 4 * o + 0] * l >> 23, s[c + 4 * o + 1] = s[c + 4 * o + 1] * l >> 23, s[c + 4 * o + 2] = s[c + 4 * o + 2] * l >> 23);\n        }\n        e += a;\n      }\n    }\n    function dr(t, e, r, n, i) {\n      for (; 0 < n--;) {\n        var a;\n        for (a = 0; a < r; ++a) {\n          var o = t[e + 2 * a + 0],\n            s = 15 & (u = t[e + 2 * a + 1]),\n            c = 4369 * s,\n            u = (240 & u | u >> 4) * c >> 16;\n          t[e + 2 * a + 0] = (240 & o | o >> 4) * c >> 16 & 240 | (15 & o | o << 4) * c >> 16 >> 4 & 15, t[e + 2 * a + 1] = 240 & u | s;\n        }\n        e += i;\n      }\n    }\n    function pr(t, e, r, n, i, a, o, s) {\n      var c,\n        u,\n        h = 255;\n      for (u = 0; u < i; ++u) {\n        for (c = 0; c < n; ++c) {\n          var l = t[e + c];\n          a[o + 4 * c] = l, h &= l;\n        }\n        e += r, o += s;\n      }\n      return 255 != h;\n    }\n    function gr(t, e, r, n, i) {\n      var a;\n      for (a = 0; a < i; ++a) r[n + a] = t[e + a] >> 8;\n    }\n    function mr() {\n      An = fr, xn = dr, Sn = pr, _n = gr;\n    }\n    function vr(r, n, i) {\n      t[r] = function (t, r, a, o, s, c, u, h, l, f, d, p, g, m, v, b, y) {\n        var w,\n          N = y - 1 >> 1,\n          L = s[c + 0] | u[h + 0] << 16,\n          A = l[f + 0] | d[p + 0] << 16;\n        e(null != t);\n        var x = 3 * L + A + 131074 >> 2;\n        for (n(t[r + 0], 255 & x, x >> 16, g, m), null != a && (x = 3 * A + L + 131074 >> 2, n(a[o + 0], 255 & x, x >> 16, v, b)), w = 1; w <= N; ++w) {\n          var S = s[c + w] | u[h + w] << 16,\n            _ = l[f + w] | d[p + w] << 16,\n            P = L + S + A + _ + 524296,\n            k = P + 2 * (S + A) >> 3;\n          x = k + L >> 1, L = (P = P + 2 * (L + _) >> 3) + S >> 1, n(t[r + 2 * w - 1], 255 & x, x >> 16, g, m + (2 * w - 1) * i), n(t[r + 2 * w - 0], 255 & L, L >> 16, g, m + (2 * w - 0) * i), null != a && (x = P + A >> 1, L = k + _ >> 1, n(a[o + 2 * w - 1], 255 & x, x >> 16, v, b + (2 * w - 1) * i), n(a[o + 2 * w + 0], 255 & L, L >> 16, v, b + (2 * w + 0) * i)), L = S, A = _;\n        }\n        1 & y || (x = 3 * L + A + 131074 >> 2, n(t[r + y - 1], 255 & x, x >> 16, g, m + (y - 1) * i), null != a && (x = 3 * A + L + 131074 >> 2, n(a[o + y - 1], 255 & x, x >> 16, v, b + (y - 1) * i)));\n      };\n    }\n    function br() {\n      vi[En] = bi, vi[qn] = wi, vi[Dn] = yi, vi[Rn] = Ni, vi[Tn] = Li, vi[Un] = Ai, vi[zn] = xi, vi[Hn] = wi, vi[Wn] = Ni, vi[Vn] = Li, vi[Gn] = Ai;\n    }\n    function yr(t) {\n      return t & ~Fi ? 0 > t ? 0 : 255 : t >> Ii;\n    }\n    function wr(t, e) {\n      return yr((19077 * t >> 8) + (26149 * e >> 8) - 14234);\n    }\n    function Nr(t, e, r) {\n      return yr((19077 * t >> 8) - (6419 * e >> 8) - (13320 * r >> 8) + 8708);\n    }\n    function Lr(t, e) {\n      return yr((19077 * t >> 8) + (33050 * e >> 8) - 17685);\n    }\n    function Ar(t, e, r, n, i) {\n      n[i + 0] = wr(t, r), n[i + 1] = Nr(t, e, r), n[i + 2] = Lr(t, e);\n    }\n    function xr(t, e, r, n, i) {\n      n[i + 0] = Lr(t, e), n[i + 1] = Nr(t, e, r), n[i + 2] = wr(t, r);\n    }\n    function Sr(t, e, r, n, i) {\n      var a = Nr(t, e, r);\n      e = a << 3 & 224 | Lr(t, e) >> 3, n[i + 0] = 248 & wr(t, r) | a >> 5, n[i + 1] = e;\n    }\n    function _r(t, e, r, n, i) {\n      var a = 240 & Lr(t, e) | 15;\n      n[i + 0] = 240 & wr(t, r) | Nr(t, e, r) >> 4, n[i + 1] = a;\n    }\n    function Pr(t, e, r, n, i) {\n      n[i + 0] = 255, Ar(t, e, r, n, i + 1);\n    }\n    function kr(t, e, r, n, i) {\n      xr(t, e, r, n, i), n[i + 3] = 255;\n    }\n    function Ir(t, e, r, n, i) {\n      Ar(t, e, r, n, i), n[i + 3] = 255;\n    }\n    function Vt(t, e) {\n      return 0 > t ? 0 : t > e ? e : t;\n    }\n    function Fr(e, r, n) {\n      t[e] = function (t, e, i, a, o, s, c, u, h) {\n        for (var l = u + (-2 & h) * n; u != l;) r(t[e + 0], i[a + 0], o[s + 0], c, u), r(t[e + 1], i[a + 0], o[s + 0], c, u + n), e += 2, ++a, ++s, u += 2 * n;\n        1 & h && r(t[e + 0], i[a + 0], o[s + 0], c, u);\n      };\n    }\n    function Cr(t, e, r) {\n      return 0 == r ? 0 == t ? 0 == e ? 6 : 5 : 0 == e ? 4 : 0 : r;\n    }\n    function jr(t, e, r, n, i) {\n      switch (t >>> 30) {\n        case 3:\n          on(e, r, n, i, 0);\n          break;\n        case 2:\n          sn(e, r, n, i);\n          break;\n        case 1:\n          un(e, r, n, i);\n      }\n    }\n    function Or(t, e) {\n      var r,\n        a,\n        o = e.M,\n        s = e.Nb,\n        c = t.oc,\n        u = t.pc + 40,\n        h = t.oc,\n        l = t.pc + 584,\n        f = t.oc,\n        d = t.pc + 600;\n      for (r = 0; 16 > r; ++r) c[u + 32 * r - 1] = 129;\n      for (r = 0; 8 > r; ++r) h[l + 32 * r - 1] = 129, f[d + 32 * r - 1] = 129;\n      for (0 < o ? c[u - 1 - 32] = h[l - 1 - 32] = f[d - 1 - 32] = 129 : (i(c, u - 32 - 1, 127, 21), i(h, l - 32 - 1, 127, 9), i(f, d - 32 - 1, 127, 9)), a = 0; a < t.za; ++a) {\n        var p = e.ya[e.aa + a];\n        if (0 < a) {\n          for (r = -1; 16 > r; ++r) n(c, u + 32 * r - 4, c, u + 32 * r + 12, 4);\n          for (r = -1; 8 > r; ++r) n(h, l + 32 * r - 4, h, l + 32 * r + 4, 4), n(f, d + 32 * r - 4, f, d + 32 * r + 4, 4);\n        }\n        var g = t.Gd,\n          m = t.Hd + a,\n          v = p.ad,\n          b = p.Hc;\n        if (0 < o && (n(c, u - 32, g[m].y, 0, 16), n(h, l - 32, g[m].f, 0, 8), n(f, d - 32, g[m].ea, 0, 8)), p.Za) {\n          var y = c,\n            w = u - 32 + 16;\n          for (0 < o && (a >= t.za - 1 ? i(y, w, g[m].y[15], 4) : n(y, w, g[m + 1].y, 0, 4)), r = 0; 4 > r; r++) y[w + 128 + r] = y[w + 256 + r] = y[w + 384 + r] = y[w + 0 + r];\n          for (r = 0; 16 > r; ++r, b <<= 2) y = c, w = u + Di[r], fi[p.Ob[r]](y, w), jr(b, v, 16 * +r, y, w);\n        } else if (y = Cr(a, o, p.Ob[0]), li[y](c, u), 0 != b) for (r = 0; 16 > r; ++r, b <<= 2) jr(b, v, 16 * +r, c, u + Di[r]);\n        for (r = p.Gc, y = Cr(a, o, p.Dd), di[y](h, l), di[y](f, d), b = v, y = h, w = l, 255 & (p = r >> 0) && (170 & p ? cn(b, 256, y, w) : hn(b, 256, y, w)), p = f, b = d, 255 & (r >>= 8) && (170 & r ? cn(v, 320, p, b) : hn(v, 320, p, b)), o < t.Ub - 1 && (n(g[m].y, 0, c, u + 480, 16), n(g[m].f, 0, h, l + 224, 8), n(g[m].ea, 0, f, d + 224, 8)), r = 8 * s * t.B, g = t.sa, m = t.ta + 16 * a + 16 * s * t.R, v = t.qa, p = t.ra + 8 * a + r, b = t.Ha, y = t.Ia + 8 * a + r, r = 0; 16 > r; ++r) n(g, m + r * t.R, c, u + 32 * r, 16);\n        for (r = 0; 8 > r; ++r) n(v, p + r * t.B, h, l + 32 * r, 8), n(b, y + r * t.B, f, d + 32 * r, 8);\n      }\n    }\n    function Br(t, n, i, a, o, s, c, u, h) {\n      var l = [0],\n        f = [0],\n        d = 0,\n        p = null != h ? h.kd : 0,\n        g = null != h ? h : new nr();\n      if (null == t || 12 > i) return 7;\n      g.data = t, g.w = n, g.ha = i, n = [n], i = [i], g.gb = [g.gb];\n      t: {\n        var m = n,\n          b = i,\n          y = g.gb;\n        if (e(null != t), e(null != b), e(null != y), y[0] = 0, 12 <= b[0] && !r(t, m[0], \"RIFF\")) {\n          if (r(t, m[0] + 8, \"WEBP\")) {\n            y = 3;\n            break t;\n          }\n          var w = j(t, m[0] + 4);\n          if (12 > w || 4294967286 < w) {\n            y = 3;\n            break t;\n          }\n          if (p && w > b[0] - 8) {\n            y = 7;\n            break t;\n          }\n          y[0] = w, m[0] += 12, b[0] -= 12;\n        }\n        y = 0;\n      }\n      if (0 != y) return y;\n      for (w = 0 < g.gb[0], i = i[0];;) {\n        t: {\n          var L = t;\n          b = n, y = i;\n          var A = l,\n            x = f,\n            S = m = [0];\n          if ((k = d = [d])[0] = 0, 8 > y[0]) y = 7;else {\n            if (!r(L, b[0], \"VP8X\")) {\n              if (10 != j(L, b[0] + 4)) {\n                y = 3;\n                break t;\n              }\n              if (18 > y[0]) {\n                y = 7;\n                break t;\n              }\n              var _ = j(L, b[0] + 8),\n                P = 1 + C(L, b[0] + 12);\n              if (2147483648 <= P * (L = 1 + C(L, b[0] + 15))) {\n                y = 3;\n                break t;\n              }\n              null != S && (S[0] = _), null != A && (A[0] = P), null != x && (x[0] = L), b[0] += 18, y[0] -= 18, k[0] = 1;\n            }\n            y = 0;\n          }\n        }\n        if (d = d[0], m = m[0], 0 != y) return y;\n        if (b = !!(2 & m), !w && d) return 3;\n        if (null != s && (s[0] = !!(16 & m)), null != c && (c[0] = b), null != u && (u[0] = 0), c = l[0], m = f[0], d && b && null == h) {\n          y = 0;\n          break;\n        }\n        if (4 > i) {\n          y = 7;\n          break;\n        }\n        if (w && d || !w && !d && !r(t, n[0], \"ALPH\")) {\n          i = [i], g.na = [g.na], g.P = [g.P], g.Sa = [g.Sa];\n          t: {\n            _ = t, y = n, w = i;\n            var k = g.gb;\n            A = g.na, x = g.P, S = g.Sa;\n            P = 22, e(null != _), e(null != w), L = y[0];\n            var I = w[0];\n            for (e(null != A), e(null != S), A[0] = null, x[0] = null, S[0] = 0;;) {\n              if (y[0] = L, w[0] = I, 8 > I) {\n                y = 7;\n                break t;\n              }\n              var F = j(_, L + 4);\n              if (4294967286 < F) {\n                y = 3;\n                break t;\n              }\n              var O = 8 + F + 1 & -2;\n              if (P += O, 0 < k && P > k) {\n                y = 3;\n                break t;\n              }\n              if (!r(_, L, \"VP8 \") || !r(_, L, \"VP8L\")) {\n                y = 0;\n                break t;\n              }\n              if (I[0] < O) {\n                y = 7;\n                break t;\n              }\n              r(_, L, \"ALPH\") || (A[0] = _, x[0] = L + 8, S[0] = F), L += O, I -= O;\n            }\n          }\n          if (i = i[0], g.na = g.na[0], g.P = g.P[0], g.Sa = g.Sa[0], 0 != y) break;\n        }\n        i = [i], g.Ja = [g.Ja], g.xa = [g.xa];\n        t: if (k = t, y = n, w = i, A = g.gb[0], x = g.Ja, S = g.xa, _ = y[0], L = !r(k, _, \"VP8 \"), P = !r(k, _, \"VP8L\"), e(null != k), e(null != w), e(null != x), e(null != S), 8 > w[0]) y = 7;else {\n          if (L || P) {\n            if (k = j(k, _ + 4), 12 <= A && k > A - 12) {\n              y = 3;\n              break t;\n            }\n            if (p && k > w[0] - 8) {\n              y = 7;\n              break t;\n            }\n            x[0] = k, y[0] += 8, w[0] -= 8, S[0] = P;\n          } else S[0] = 5 <= w[0] && 47 == k[_ + 0] && !(k[_ + 4] >> 5), x[0] = w[0];\n          y = 0;\n        }\n        if (i = i[0], g.Ja = g.Ja[0], g.xa = g.xa[0], n = n[0], 0 != y) break;\n        if (4294967286 < g.Ja) return 3;\n        if (null == u || b || (u[0] = g.xa ? 2 : 1), c = [c], m = [m], g.xa) {\n          if (5 > i) {\n            y = 7;\n            break;\n          }\n          u = c, p = m, b = s, null == t || 5 > i ? t = 0 : 5 <= i && 47 == t[n + 0] && !(t[n + 4] >> 5) ? (w = [0], k = [0], A = [0], v(x = new N(), t, n, i), gt(x, w, k, A) ? (null != u && (u[0] = w[0]), null != p && (p[0] = k[0]), null != b && (b[0] = A[0]), t = 1) : t = 0) : t = 0;\n        } else {\n          if (10 > i) {\n            y = 7;\n            break;\n          }\n          u = m, null == t || 10 > i || !Xt(t, n + 3, i - 3) ? t = 0 : (p = t[n + 0] | t[n + 1] << 8 | t[n + 2] << 16, b = 16383 & (t[n + 7] << 8 | t[n + 6]), t = 16383 & (t[n + 9] << 8 | t[n + 8]), 1 & p || 3 < (p >> 1 & 7) || !(p >> 4 & 1) || p >> 5 >= g.Ja || !b || !t ? t = 0 : (c && (c[0] = b), u && (u[0] = t), t = 1));\n        }\n        if (!t) return 3;\n        if (c = c[0], m = m[0], d && (l[0] != c || f[0] != m)) return 3;\n        null != h && (h[0] = g, h.offset = n - h.w, e(4294967286 > n - h.w), e(h.offset == h.ha - i));\n        break;\n      }\n      return 0 == y || 7 == y && d && null == h ? (null != s && (s[0] |= null != g.na && 0 < g.na.length), null != a && (a[0] = c), null != o && (o[0] = m), 0) : y;\n    }\n    function Mr(t, e, r) {\n      var n = e.width,\n        i = e.height,\n        a = 0,\n        o = 0,\n        s = n,\n        c = i;\n      if (e.Da = null != t && 0 < t.Da, e.Da && (s = t.cd, c = t.bd, a = t.v, o = t.j, 11 > r || (a &= -2, o &= -2), 0 > a || 0 > o || 0 >= s || 0 >= c || a + s > n || o + c > i)) return 0;\n      if (e.v = a, e.j = o, e.va = a + s, e.o = o + c, e.U = s, e.T = c, e.da = null != t && 0 < t.da, e.da) {\n        if (!E(s, c, r = [t.ib], a = [t.hb])) return 0;\n        e.ib = r[0], e.hb = a[0];\n      }\n      return e.ob = null != t && t.ob, e.Kb = null == t || !t.Sd, e.da && (e.ob = e.ib < 3 * n / 4 && e.hb < 3 * i / 4, e.Kb = 0), 1;\n    }\n    function Er(t) {\n      if (null == t) return 2;\n      if (11 > t.S) {\n        var e = t.f.RGBA;\n        e.fb += (t.height - 1) * e.A, e.A = -e.A;\n      } else e = t.f.kb, t = t.height, e.O += (t - 1) * e.fa, e.fa = -e.fa, e.N += (t - 1 >> 1) * e.Ab, e.Ab = -e.Ab, e.W += (t - 1 >> 1) * e.Db, e.Db = -e.Db, null != e.F && (e.J += (t - 1) * e.lb, e.lb = -e.lb);\n      return 0;\n    }\n    function qr(t, e, r, n) {\n      if (null == n || 0 >= t || 0 >= e) return 2;\n      if (null != r) {\n        if (r.Da) {\n          var i = r.cd,\n            o = r.bd,\n            s = -2 & r.v,\n            c = -2 & r.j;\n          if (0 > s || 0 > c || 0 >= i || 0 >= o || s + i > t || c + o > e) return 2;\n          t = i, e = o;\n        }\n        if (r.da) {\n          if (!E(t, e, i = [r.ib], o = [r.hb])) return 2;\n          t = i[0], e = o[0];\n        }\n      }\n      n.width = t, n.height = e;\n      t: {\n        var u = n.width,\n          h = n.height;\n        if (t = n.S, 0 >= u || 0 >= h || !(t >= En && 13 > t)) t = 2;else {\n          if (0 >= n.Rd && null == n.sd) {\n            s = o = i = e = 0;\n            var l = (c = u * zi[t]) * h;\n            if (11 > t || (o = (h + 1) / 2 * (e = (u + 1) / 2), 12 == t && (s = (i = u) * h)), null == (h = a(l + 2 * o + s))) {\n              t = 1;\n              break t;\n            }\n            n.sd = h, 11 > t ? ((u = n.f.RGBA).eb = h, u.fb = 0, u.A = c, u.size = l) : ((u = n.f.kb).y = h, u.O = 0, u.fa = c, u.Fd = l, u.f = h, u.N = 0 + l, u.Ab = e, u.Cd = o, u.ea = h, u.W = 0 + l + o, u.Db = e, u.Ed = o, 12 == t && (u.F = h, u.J = 0 + l + 2 * o), u.Tc = s, u.lb = i);\n          }\n          if (e = 1, i = n.S, o = n.width, s = n.height, i >= En && 13 > i) {\n            if (11 > i) t = n.f.RGBA, e &= (c = Math.abs(t.A)) * (s - 1) + o <= t.size, e &= c >= o * zi[i], e &= null != t.eb;else {\n              t = n.f.kb, c = (o + 1) / 2, l = (s + 1) / 2, u = Math.abs(t.fa);\n              h = Math.abs(t.Ab);\n              var f = Math.abs(t.Db),\n                d = Math.abs(t.lb),\n                p = d * (s - 1) + o;\n              e &= u * (s - 1) + o <= t.Fd, e &= h * (l - 1) + c <= t.Cd, e = (e &= f * (l - 1) + c <= t.Ed) & u >= o & h >= c & f >= c, e &= null != t.y, e &= null != t.f, e &= null != t.ea, 12 == i && (e &= d >= o, e &= p <= t.Tc, e &= null != t.F);\n            }\n          } else e = 0;\n          t = e ? 0 : 2;\n        }\n      }\n      return 0 != t || null != r && r.fd && (t = Er(n)), t;\n    }\n    var Dr = 64,\n      Rr = [0, 1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535, 131071, 262143, 524287, 1048575, 2097151, 4194303, 8388607, 16777215],\n      Tr = 24,\n      Ur = 32,\n      zr = 8,\n      Hr = [0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7];\n    R(\"Predictor0\", \"PredictorAdd0\"), t.Predictor0 = function () {\n      return 4278190080;\n    }, t.Predictor1 = function (t) {\n      return t;\n    }, t.Predictor2 = function (t, e, r) {\n      return e[r + 0];\n    }, t.Predictor3 = function (t, e, r) {\n      return e[r + 1];\n    }, t.Predictor4 = function (t, e, r) {\n      return e[r - 1];\n    }, t.Predictor5 = function (t, e, r) {\n      return U(U(t, e[r + 1]), e[r + 0]);\n    }, t.Predictor6 = function (t, e, r) {\n      return U(t, e[r - 1]);\n    }, t.Predictor7 = function (t, e, r) {\n      return U(t, e[r + 0]);\n    }, t.Predictor8 = function (t, e, r) {\n      return U(e[r - 1], e[r + 0]);\n    }, t.Predictor9 = function (t, e, r) {\n      return U(e[r + 0], e[r + 1]);\n    }, t.Predictor10 = function (t, e, r) {\n      return U(U(t, e[r - 1]), U(e[r + 0], e[r + 1]));\n    }, t.Predictor11 = function (t, e, r) {\n      var n = e[r + 0];\n      return 0 >= W(n >> 24 & 255, t >> 24 & 255, (e = e[r - 1]) >> 24 & 255) + W(n >> 16 & 255, t >> 16 & 255, e >> 16 & 255) + W(n >> 8 & 255, t >> 8 & 255, e >> 8 & 255) + W(255 & n, 255 & t, 255 & e) ? n : t;\n    }, t.Predictor12 = function (t, e, r) {\n      var n = e[r + 0];\n      return (z((t >> 24 & 255) + (n >> 24 & 255) - ((e = e[r - 1]) >> 24 & 255)) << 24 | z((t >> 16 & 255) + (n >> 16 & 255) - (e >> 16 & 255)) << 16 | z((t >> 8 & 255) + (n >> 8 & 255) - (e >> 8 & 255)) << 8 | z((255 & t) + (255 & n) - (255 & e))) >>> 0;\n    }, t.Predictor13 = function (t, e, r) {\n      var n = e[r - 1];\n      return (H((t = U(t, e[r + 0])) >> 24 & 255, n >> 24 & 255) << 24 | H(t >> 16 & 255, n >> 16 & 255) << 16 | H(t >> 8 & 255, n >> 8 & 255) << 8 | H(t >> 0 & 255, n >> 0 & 255)) >>> 0;\n    };\n    var Wr = t.PredictorAdd0;\n    t.PredictorAdd1 = V, R(\"Predictor2\", \"PredictorAdd2\"), R(\"Predictor3\", \"PredictorAdd3\"), R(\"Predictor4\", \"PredictorAdd4\"), R(\"Predictor5\", \"PredictorAdd5\"), R(\"Predictor6\", \"PredictorAdd6\"), R(\"Predictor7\", \"PredictorAdd7\"), R(\"Predictor8\", \"PredictorAdd8\"), R(\"Predictor9\", \"PredictorAdd9\"), R(\"Predictor10\", \"PredictorAdd10\"), R(\"Predictor11\", \"PredictorAdd11\"), R(\"Predictor12\", \"PredictorAdd12\"), R(\"Predictor13\", \"PredictorAdd13\");\n    var Vr = t.PredictorAdd2;\n    X(\"ColorIndexInverseTransform\", \"MapARGB\", \"32b\", function (t) {\n      return t >> 8 & 255;\n    }, function (t) {\n      return t;\n    }), X(\"VP8LColorIndexInverseTransformAlpha\", \"MapAlpha\", \"8b\", function (t) {\n      return t;\n    }, function (t) {\n      return t >> 8 & 255;\n    });\n    var Gr,\n      Yr = t.ColorIndexInverseTransform,\n      Jr = t.MapARGB,\n      Xr = t.VP8LColorIndexInverseTransformAlpha,\n      Kr = t.MapAlpha,\n      Zr = t.VP8LPredictorsAdd = [];\n    Zr.length = 16, (t.VP8LPredictors = []).length = 16, (t.VP8LPredictorsAdd_C = []).length = 16, (t.VP8LPredictors_C = []).length = 16;\n    var $r,\n      Qr,\n      tn,\n      en,\n      rn,\n      nn,\n      an,\n      on,\n      sn,\n      cn,\n      un,\n      hn,\n      ln,\n      fn,\n      dn,\n      pn,\n      gn,\n      mn,\n      vn,\n      bn,\n      yn,\n      wn,\n      Nn,\n      Ln,\n      An,\n      xn,\n      Sn,\n      _n,\n      Pn = a(511),\n      kn = a(2041),\n      In = a(225),\n      Fn = a(767),\n      Cn = 0,\n      jn = kn,\n      On = In,\n      Bn = Fn,\n      Mn = Pn,\n      En = 0,\n      qn = 1,\n      Dn = 2,\n      Rn = 3,\n      Tn = 4,\n      Un = 5,\n      zn = 6,\n      Hn = 7,\n      Wn = 8,\n      Vn = 9,\n      Gn = 10,\n      Yn = [2, 3, 7],\n      Jn = [3, 3, 11],\n      Xn = [280, 256, 256, 256, 40],\n      Kn = [0, 1, 1, 1, 0],\n      Zn = [17, 18, 0, 1, 2, 3, 4, 5, 16, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],\n      $n = [24, 7, 23, 25, 40, 6, 39, 41, 22, 26, 38, 42, 56, 5, 55, 57, 21, 27, 54, 58, 37, 43, 72, 4, 71, 73, 20, 28, 53, 59, 70, 74, 36, 44, 88, 69, 75, 52, 60, 3, 87, 89, 19, 29, 86, 90, 35, 45, 68, 76, 85, 91, 51, 61, 104, 2, 103, 105, 18, 30, 102, 106, 34, 46, 84, 92, 67, 77, 101, 107, 50, 62, 120, 1, 119, 121, 83, 93, 17, 31, 100, 108, 66, 78, 118, 122, 33, 47, 117, 123, 49, 63, 99, 109, 82, 94, 0, 116, 124, 65, 79, 16, 32, 98, 110, 48, 115, 125, 81, 95, 64, 114, 126, 97, 111, 80, 113, 127, 96, 112],\n      Qn = [2954, 2956, 2958, 2962, 2970, 2986, 3018, 3082, 3212, 3468, 3980, 5004],\n      ti = 8,\n      ei = [4, 5, 6, 7, 8, 9, 10, 10, 11, 12, 13, 14, 15, 16, 17, 17, 18, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 25, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 91, 93, 95, 96, 98, 100, 101, 102, 104, 106, 108, 110, 112, 114, 116, 118, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 143, 145, 148, 151, 154, 157],\n      ri = [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 119, 122, 125, 128, 131, 134, 137, 140, 143, 146, 149, 152, 155, 158, 161, 164, 167, 170, 173, 177, 181, 185, 189, 193, 197, 201, 205, 209, 213, 217, 221, 225, 229, 234, 239, 245, 249, 254, 259, 264, 269, 274, 279, 284],\n      ni = null,\n      ii = [[173, 148, 140, 0], [176, 155, 140, 135, 0], [180, 157, 141, 134, 130, 0], [254, 254, 243, 230, 196, 177, 153, 140, 133, 130, 129, 0]],\n      ai = [0, 1, 4, 8, 5, 2, 3, 6, 9, 12, 13, 10, 7, 11, 14, 15],\n      oi = [-0, 1, -1, 2, -2, 3, 4, 6, -3, 5, -4, -5, -6, 7, -7, 8, -8, -9],\n      si = [[[[128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128]], [[253, 136, 254, 255, 228, 219, 128, 128, 128, 128, 128], [189, 129, 242, 255, 227, 213, 255, 219, 128, 128, 128], [106, 126, 227, 252, 214, 209, 255, 255, 128, 128, 128]], [[1, 98, 248, 255, 236, 226, 255, 255, 128, 128, 128], [181, 133, 238, 254, 221, 234, 255, 154, 128, 128, 128], [78, 134, 202, 247, 198, 180, 255, 219, 128, 128, 128]], [[1, 185, 249, 255, 243, 255, 128, 128, 128, 128, 128], [184, 150, 247, 255, 236, 224, 128, 128, 128, 128, 128], [77, 110, 216, 255, 236, 230, 128, 128, 128, 128, 128]], [[1, 101, 251, 255, 241, 255, 128, 128, 128, 128, 128], [170, 139, 241, 252, 236, 209, 255, 255, 128, 128, 128], [37, 116, 196, 243, 228, 255, 255, 255, 128, 128, 128]], [[1, 204, 254, 255, 245, 255, 128, 128, 128, 128, 128], [207, 160, 250, 255, 238, 128, 128, 128, 128, 128, 128], [102, 103, 231, 255, 211, 171, 128, 128, 128, 128, 128]], [[1, 152, 252, 255, 240, 255, 128, 128, 128, 128, 128], [177, 135, 243, 255, 234, 225, 128, 128, 128, 128, 128], [80, 129, 211, 255, 194, 224, 128, 128, 128, 128, 128]], [[1, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [246, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [255, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128]]], [[[198, 35, 237, 223, 193, 187, 162, 160, 145, 155, 62], [131, 45, 198, 221, 172, 176, 220, 157, 252, 221, 1], [68, 47, 146, 208, 149, 167, 221, 162, 255, 223, 128]], [[1, 149, 241, 255, 221, 224, 255, 255, 128, 128, 128], [184, 141, 234, 253, 222, 220, 255, 199, 128, 128, 128], [81, 99, 181, 242, 176, 190, 249, 202, 255, 255, 128]], [[1, 129, 232, 253, 214, 197, 242, 196, 255, 255, 128], [99, 121, 210, 250, 201, 198, 255, 202, 128, 128, 128], [23, 91, 163, 242, 170, 187, 247, 210, 255, 255, 128]], [[1, 200, 246, 255, 234, 255, 128, 128, 128, 128, 128], [109, 178, 241, 255, 231, 245, 255, 255, 128, 128, 128], [44, 130, 201, 253, 205, 192, 255, 255, 128, 128, 128]], [[1, 132, 239, 251, 219, 209, 255, 165, 128, 128, 128], [94, 136, 225, 251, 218, 190, 255, 255, 128, 128, 128], [22, 100, 174, 245, 186, 161, 255, 199, 128, 128, 128]], [[1, 182, 249, 255, 232, 235, 128, 128, 128, 128, 128], [124, 143, 241, 255, 227, 234, 128, 128, 128, 128, 128], [35, 77, 181, 251, 193, 211, 255, 205, 128, 128, 128]], [[1, 157, 247, 255, 236, 231, 255, 255, 128, 128, 128], [121, 141, 235, 255, 225, 227, 255, 255, 128, 128, 128], [45, 99, 188, 251, 195, 217, 255, 224, 128, 128, 128]], [[1, 1, 251, 255, 213, 255, 128, 128, 128, 128, 128], [203, 1, 248, 255, 255, 128, 128, 128, 128, 128, 128], [137, 1, 177, 255, 224, 255, 128, 128, 128, 128, 128]]], [[[253, 9, 248, 251, 207, 208, 255, 192, 128, 128, 128], [175, 13, 224, 243, 193, 185, 249, 198, 255, 255, 128], [73, 17, 171, 221, 161, 179, 236, 167, 255, 234, 128]], [[1, 95, 247, 253, 212, 183, 255, 255, 128, 128, 128], [239, 90, 244, 250, 211, 209, 255, 255, 128, 128, 128], [155, 77, 195, 248, 188, 195, 255, 255, 128, 128, 128]], [[1, 24, 239, 251, 218, 219, 255, 205, 128, 128, 128], [201, 51, 219, 255, 196, 186, 128, 128, 128, 128, 128], [69, 46, 190, 239, 201, 218, 255, 228, 128, 128, 128]], [[1, 191, 251, 255, 255, 128, 128, 128, 128, 128, 128], [223, 165, 249, 255, 213, 255, 128, 128, 128, 128, 128], [141, 124, 248, 255, 255, 128, 128, 128, 128, 128, 128]], [[1, 16, 248, 255, 255, 128, 128, 128, 128, 128, 128], [190, 36, 230, 255, 236, 255, 128, 128, 128, 128, 128], [149, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128]], [[1, 226, 255, 128, 128, 128, 128, 128, 128, 128, 128], [247, 192, 255, 128, 128, 128, 128, 128, 128, 128, 128], [240, 128, 255, 128, 128, 128, 128, 128, 128, 128, 128]], [[1, 134, 252, 255, 255, 128, 128, 128, 128, 128, 128], [213, 62, 250, 255, 255, 128, 128, 128, 128, 128, 128], [55, 93, 255, 128, 128, 128, 128, 128, 128, 128, 128]], [[128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128]]], [[[202, 24, 213, 235, 186, 191, 220, 160, 240, 175, 255], [126, 38, 182, 232, 169, 184, 228, 174, 255, 187, 128], [61, 46, 138, 219, 151, 178, 240, 170, 255, 216, 128]], [[1, 112, 230, 250, 199, 191, 247, 159, 255, 255, 128], [166, 109, 228, 252, 211, 215, 255, 174, 128, 128, 128], [39, 77, 162, 232, 172, 180, 245, 178, 255, 255, 128]], [[1, 52, 220, 246, 198, 199, 249, 220, 255, 255, 128], [124, 74, 191, 243, 183, 193, 250, 221, 255, 255, 128], [24, 71, 130, 219, 154, 170, 243, 182, 255, 255, 128]], [[1, 182, 225, 249, 219, 240, 255, 224, 128, 128, 128], [149, 150, 226, 252, 216, 205, 255, 171, 128, 128, 128], [28, 108, 170, 242, 183, 194, 254, 223, 255, 255, 128]], [[1, 81, 230, 252, 204, 203, 255, 192, 128, 128, 128], [123, 102, 209, 247, 188, 196, 255, 233, 128, 128, 128], [20, 95, 153, 243, 164, 173, 255, 203, 128, 128, 128]], [[1, 222, 248, 255, 216, 213, 128, 128, 128, 128, 128], [168, 175, 246, 252, 235, 205, 255, 255, 128, 128, 128], [47, 116, 215, 255, 211, 212, 255, 255, 128, 128, 128]], [[1, 121, 236, 253, 212, 214, 255, 255, 128, 128, 128], [141, 84, 213, 252, 201, 202, 255, 219, 128, 128, 128], [42, 80, 160, 240, 162, 185, 255, 205, 128, 128, 128]], [[1, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [244, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [238, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128]]]],\n      ci = [[[231, 120, 48, 89, 115, 113, 120, 152, 112], [152, 179, 64, 126, 170, 118, 46, 70, 95], [175, 69, 143, 80, 85, 82, 72, 155, 103], [56, 58, 10, 171, 218, 189, 17, 13, 152], [114, 26, 17, 163, 44, 195, 21, 10, 173], [121, 24, 80, 195, 26, 62, 44, 64, 85], [144, 71, 10, 38, 171, 213, 144, 34, 26], [170, 46, 55, 19, 136, 160, 33, 206, 71], [63, 20, 8, 114, 114, 208, 12, 9, 226], [81, 40, 11, 96, 182, 84, 29, 16, 36]], [[134, 183, 89, 137, 98, 101, 106, 165, 148], [72, 187, 100, 130, 157, 111, 32, 75, 80], [66, 102, 167, 99, 74, 62, 40, 234, 128], [41, 53, 9, 178, 241, 141, 26, 8, 107], [74, 43, 26, 146, 73, 166, 49, 23, 157], [65, 38, 105, 160, 51, 52, 31, 115, 128], [104, 79, 12, 27, 217, 255, 87, 17, 7], [87, 68, 71, 44, 114, 51, 15, 186, 23], [47, 41, 14, 110, 182, 183, 21, 17, 194], [66, 45, 25, 102, 197, 189, 23, 18, 22]], [[88, 88, 147, 150, 42, 46, 45, 196, 205], [43, 97, 183, 117, 85, 38, 35, 179, 61], [39, 53, 200, 87, 26, 21, 43, 232, 171], [56, 34, 51, 104, 114, 102, 29, 93, 77], [39, 28, 85, 171, 58, 165, 90, 98, 64], [34, 22, 116, 206, 23, 34, 43, 166, 73], [107, 54, 32, 26, 51, 1, 81, 43, 31], [68, 25, 106, 22, 64, 171, 36, 225, 114], [34, 19, 21, 102, 132, 188, 16, 76, 124], [62, 18, 78, 95, 85, 57, 50, 48, 51]], [[193, 101, 35, 159, 215, 111, 89, 46, 111], [60, 148, 31, 172, 219, 228, 21, 18, 111], [112, 113, 77, 85, 179, 255, 38, 120, 114], [40, 42, 1, 196, 245, 209, 10, 25, 109], [88, 43, 29, 140, 166, 213, 37, 43, 154], [61, 63, 30, 155, 67, 45, 68, 1, 209], [100, 80, 8, 43, 154, 1, 51, 26, 71], [142, 78, 78, 16, 255, 128, 34, 197, 171], [41, 40, 5, 102, 211, 183, 4, 1, 221], [51, 50, 17, 168, 209, 192, 23, 25, 82]], [[138, 31, 36, 171, 27, 166, 38, 44, 229], [67, 87, 58, 169, 82, 115, 26, 59, 179], [63, 59, 90, 180, 59, 166, 93, 73, 154], [40, 40, 21, 116, 143, 209, 34, 39, 175], [47, 15, 16, 183, 34, 223, 49, 45, 183], [46, 17, 33, 183, 6, 98, 15, 32, 183], [57, 46, 22, 24, 128, 1, 54, 17, 37], [65, 32, 73, 115, 28, 128, 23, 128, 205], [40, 3, 9, 115, 51, 192, 18, 6, 223], [87, 37, 9, 115, 59, 77, 64, 21, 47]], [[104, 55, 44, 218, 9, 54, 53, 130, 226], [64, 90, 70, 205, 40, 41, 23, 26, 57], [54, 57, 112, 184, 5, 41, 38, 166, 213], [30, 34, 26, 133, 152, 116, 10, 32, 134], [39, 19, 53, 221, 26, 114, 32, 73, 255], [31, 9, 65, 234, 2, 15, 1, 118, 73], [75, 32, 12, 51, 192, 255, 160, 43, 51], [88, 31, 35, 67, 102, 85, 55, 186, 85], [56, 21, 23, 111, 59, 205, 45, 37, 192], [55, 38, 70, 124, 73, 102, 1, 34, 98]], [[125, 98, 42, 88, 104, 85, 117, 175, 82], [95, 84, 53, 89, 128, 100, 113, 101, 45], [75, 79, 123, 47, 51, 128, 81, 171, 1], [57, 17, 5, 71, 102, 57, 53, 41, 49], [38, 33, 13, 121, 57, 73, 26, 1, 85], [41, 10, 67, 138, 77, 110, 90, 47, 114], [115, 21, 2, 10, 102, 255, 166, 23, 6], [101, 29, 16, 10, 85, 128, 101, 196, 26], [57, 18, 10, 102, 102, 213, 34, 20, 43], [117, 20, 15, 36, 163, 128, 68, 1, 26]], [[102, 61, 71, 37, 34, 53, 31, 243, 192], [69, 60, 71, 38, 73, 119, 28, 222, 37], [68, 45, 128, 34, 1, 47, 11, 245, 171], [62, 17, 19, 70, 146, 85, 55, 62, 70], [37, 43, 37, 154, 100, 163, 85, 160, 1], [63, 9, 92, 136, 28, 64, 32, 201, 85], [75, 15, 9, 9, 64, 255, 184, 119, 16], [86, 6, 28, 5, 64, 255, 25, 248, 1], [56, 8, 17, 132, 137, 255, 55, 116, 128], [58, 15, 20, 82, 135, 57, 26, 121, 40]], [[164, 50, 31, 137, 154, 133, 25, 35, 218], [51, 103, 44, 131, 131, 123, 31, 6, 158], [86, 40, 64, 135, 148, 224, 45, 183, 128], [22, 26, 17, 131, 240, 154, 14, 1, 209], [45, 16, 21, 91, 64, 222, 7, 1, 197], [56, 21, 39, 155, 60, 138, 23, 102, 213], [83, 12, 13, 54, 192, 255, 68, 47, 28], [85, 26, 85, 85, 128, 128, 32, 146, 171], [18, 11, 7, 63, 144, 171, 4, 4, 246], [35, 27, 10, 146, 174, 171, 12, 26, 128]], [[190, 80, 35, 99, 180, 80, 126, 54, 45], [85, 126, 47, 87, 176, 51, 41, 20, 32], [101, 75, 128, 139, 118, 146, 116, 128, 85], [56, 41, 15, 176, 236, 85, 37, 9, 62], [71, 30, 17, 119, 118, 255, 17, 18, 138], [101, 38, 60, 138, 55, 70, 43, 26, 142], [146, 36, 19, 30, 171, 255, 97, 27, 20], [138, 45, 61, 62, 219, 1, 81, 188, 64], [32, 41, 20, 117, 151, 142, 20, 21, 163], [112, 19, 12, 61, 195, 128, 48, 4, 24]]],\n      ui = [[[[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[176, 246, 255, 255, 255, 255, 255, 255, 255, 255, 255], [223, 241, 252, 255, 255, 255, 255, 255, 255, 255, 255], [249, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 244, 252, 255, 255, 255, 255, 255, 255, 255, 255], [234, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [253, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 246, 254, 255, 255, 255, 255, 255, 255, 255, 255], [239, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 248, 254, 255, 255, 255, 255, 255, 255, 255, 255], [251, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [251, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 253, 255, 254, 255, 255, 255, 255, 255, 255], [250, 255, 254, 255, 254, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]], [[[217, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [225, 252, 241, 253, 255, 255, 254, 255, 255, 255, 255], [234, 250, 241, 250, 253, 255, 253, 254, 255, 255, 255]], [[255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [223, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [238, 253, 254, 254, 255, 255, 255, 255, 255, 255, 255]], [[255, 248, 254, 255, 255, 255, 255, 255, 255, 255, 255], [249, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 255, 255, 255, 255, 255, 255, 255, 255, 255], [247, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [252, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [253, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 253, 255, 255, 255, 255, 255, 255, 255, 255], [250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]], [[[186, 251, 250, 255, 255, 255, 255, 255, 255, 255, 255], [234, 251, 244, 254, 255, 255, 255, 255, 255, 255, 255], [251, 251, 243, 253, 254, 255, 254, 255, 255, 255, 255]], [[255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [236, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [251, 253, 253, 254, 254, 255, 255, 255, 255, 255, 255]], [[255, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [254, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]], [[[248, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [250, 254, 252, 254, 255, 255, 255, 255, 255, 255, 255], [248, 254, 249, 253, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255], [246, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255], [252, 254, 251, 254, 254, 255, 255, 255, 255, 255, 255]], [[255, 254, 252, 255, 255, 255, 255, 255, 255, 255, 255], [248, 254, 253, 255, 255, 255, 255, 255, 255, 255, 255], [253, 255, 254, 254, 255, 255, 255, 255, 255, 255, 255]], [[255, 251, 254, 255, 255, 255, 255, 255, 255, 255, 255], [245, 251, 254, 255, 255, 255, 255, 255, 255, 255, 255], [253, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 251, 253, 255, 255, 255, 255, 255, 255, 255, 255], [252, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 252, 255, 255, 255, 255, 255, 255, 255, 255, 255], [249, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 253, 255, 255, 255, 255, 255, 255, 255, 255], [250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]]],\n      hi = [0, 1, 2, 3, 6, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 0],\n      li = [],\n      fi = [],\n      di = [],\n      pi = 1,\n      gi = 2,\n      mi = [],\n      vi = [];\n    vr(\"UpsampleRgbLinePair\", Ar, 3), vr(\"UpsampleBgrLinePair\", xr, 3), vr(\"UpsampleRgbaLinePair\", Ir, 4), vr(\"UpsampleBgraLinePair\", kr, 4), vr(\"UpsampleArgbLinePair\", Pr, 4), vr(\"UpsampleRgba4444LinePair\", _r, 2), vr(\"UpsampleRgb565LinePair\", Sr, 2);\n    var bi = t.UpsampleRgbLinePair,\n      yi = t.UpsampleBgrLinePair,\n      wi = t.UpsampleRgbaLinePair,\n      Ni = t.UpsampleBgraLinePair,\n      Li = t.UpsampleArgbLinePair,\n      Ai = t.UpsampleRgba4444LinePair,\n      xi = t.UpsampleRgb565LinePair,\n      Si = 16,\n      _i = 1 << Si - 1,\n      Pi = -227,\n      ki = 482,\n      Ii = 6,\n      Fi = (256 << Ii) - 1,\n      Ci = 0,\n      ji = a(256),\n      Oi = a(256),\n      Bi = a(256),\n      Mi = a(256),\n      Ei = a(ki - Pi),\n      qi = a(ki - Pi);\n    Fr(\"YuvToRgbRow\", Ar, 3), Fr(\"YuvToBgrRow\", xr, 3), Fr(\"YuvToRgbaRow\", Ir, 4), Fr(\"YuvToBgraRow\", kr, 4), Fr(\"YuvToArgbRow\", Pr, 4), Fr(\"YuvToRgba4444Row\", _r, 2), Fr(\"YuvToRgb565Row\", Sr, 2);\n    var Di = [0, 4, 8, 12, 128, 132, 136, 140, 256, 260, 264, 268, 384, 388, 392, 396],\n      Ri = [0, 2, 8],\n      Ti = [8, 7, 6, 4, 4, 2, 2, 2, 1, 1, 1, 1],\n      Ui = 1;\n    this.WebPDecodeRGBA = function (t, r, n, i, a) {\n      var o = qn,\n        s = new rr(),\n        c = new ot();\n      s.ba = c, c.S = o, c.width = [c.width], c.height = [c.height];\n      var u = c.width,\n        h = c.height,\n        l = new st();\n      if (null == l || null == t) var f = 2;else e(null != l), f = Br(t, r, n, l.width, l.height, l.Pd, l.Qd, l.format, null);\n      if (0 != f ? u = 0 : (null != u && (u[0] = l.width[0]), null != h && (h[0] = l.height[0]), u = 1), u) {\n        c.width = c.width[0], c.height = c.height[0], null != i && (i[0] = c.width), null != a && (a[0] = c.height);\n        t: {\n          if (i = new Gt(), (a = new nr()).data = t, a.w = r, a.ha = n, a.kd = 1, r = [0], e(null != a), (0 == (t = Br(a.data, a.w, a.ha, null, null, null, r, null, a)) || 7 == t) && r[0] && (t = 4), 0 == (r = t)) {\n            if (e(null != s), i.data = a.data, i.w = a.w + a.offset, i.ha = a.ha - a.offset, i.put = dt, i.ac = ft, i.bc = pt, i.ma = s, a.xa) {\n              if (null == (t = kt())) {\n                s = 1;\n                break t;\n              }\n              if (function (t, r) {\n                var n = [0],\n                  i = [0],\n                  a = [0];\n                e: for (;;) {\n                  if (null == t) return 0;\n                  if (null == r) return t.a = 2, 0;\n                  if (t.l = r, t.a = 0, v(t.m, r.data, r.w, r.ha), !gt(t.m, n, i, a)) {\n                    t.a = 3;\n                    break e;\n                  }\n                  if (t.xb = gi, r.width = n[0], r.height = i[0], !It(n[0], i[0], 1, t, null)) break e;\n                  return 1;\n                }\n                return e(0 != t.a), 0;\n              }(t, i)) {\n                if (i = 0 == (r = qr(i.width, i.height, s.Oa, s.ba))) {\n                  e: {\n                    i = t;\n                    r: for (;;) {\n                      if (null == i) {\n                        i = 0;\n                        break e;\n                      }\n                      if (e(null != i.s.yc), e(null != i.s.Ya), e(0 < i.s.Wb), e(null != (n = i.l)), e(null != (a = n.ma)), 0 != i.xb) {\n                        if (i.ca = a.ba, i.tb = a.tb, e(null != i.ca), !Mr(a.Oa, n, Rn)) {\n                          i.a = 2;\n                          break r;\n                        }\n                        if (!Ft(i, n.width)) break r;\n                        if (n.da) break r;\n                        if ((n.da || nt(i.ca.S)) && mr(), 11 > i.ca.S || (alert(\"todo:WebPInitConvertARGBToYUV\"), null != i.ca.f.kb.F && mr()), i.Pb && 0 < i.s.ua && null == i.s.vb.X && !O(i.s.vb, i.s.Wa.Xa)) {\n                          i.a = 1;\n                          break r;\n                        }\n                        i.xb = 0;\n                      }\n                      if (!_t(i, i.V, i.Ba, i.c, i.i, n.o, Lt)) break r;\n                      a.Dc = i.Ma, i = 1;\n                      break e;\n                    }\n                    e(0 != i.a), i = 0;\n                  }\n                  i = !i;\n                }\n                i && (r = t.a);\n              } else r = t.a;\n            } else {\n              if (null == (t = new Yt())) {\n                s = 1;\n                break t;\n              }\n              if (t.Fa = a.na, t.P = a.P, t.qc = a.Sa, Kt(t, i)) {\n                if (0 == (r = qr(i.width, i.height, s.Oa, s.ba))) {\n                  if (t.Aa = 0, n = s.Oa, e(null != (a = t)), null != n) {\n                    if (0 < (u = 0 > (u = n.Md) ? 0 : 100 < u ? 255 : 255 * u / 100)) {\n                      for (h = l = 0; 4 > h; ++h) 12 > (f = a.pb[h]).lc && (f.ia = u * Ti[0 > f.lc ? 0 : f.lc] >> 3), l |= f.ia;\n                      l && (alert(\"todo:VP8InitRandom\"), a.ia = 1);\n                    }\n                    a.Ga = n.Id, 100 < a.Ga ? a.Ga = 100 : 0 > a.Ga && (a.Ga = 0);\n                  }\n                  Qt(t, i) || (r = t.a);\n                }\n              } else r = t.a;\n            }\n            0 == r && null != s.Oa && s.Oa.fd && (r = Er(s.ba));\n          }\n          s = r;\n        }\n        o = 0 != s ? null : 11 > o ? c.f.RGBA.eb : c.f.kb.y;\n      } else o = null;\n      return o;\n    };\n    var zi = [3, 4, 3, 4, 4, 2, 2, 4, 4, 4, 2, 1, 1];\n  };\n  function u(t, e) {\n    for (var r = \"\", n = 0; n < 4; n++) r += String.fromCharCode(t[e++]);\n    return r;\n  }\n  function h(t, e) {\n    return (t[e + 0] << 0 | t[e + 1] << 8 | t[e + 2] << 16) >>> 0;\n  }\n  function l(t, e) {\n    return (t[e + 0] << 0 | t[e + 1] << 8 | t[e + 2] << 16 | t[e + 3] << 24) >>> 0;\n  }\n  new c();\n  var f = [0],\n    d = [0],\n    p = [],\n    g = new c(),\n    m = t,\n    v = function (t, e) {\n      var r = {},\n        n = 0,\n        i = !1,\n        a = 0,\n        o = 0;\n      if (r.frames = [], !\n      /** @license\n         * Copyright (c) 2017 Dominik Homberger\n        Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n        The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n        THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n        https://webpjs.appspot.com\n        WebPRiffParser dominikhlbg@gmail.com\n        */\n      function (t, e, r, n) {\n        for (var i = 0; i < n; i++) if (t[e + i] != r.charCodeAt(i)) return !0;\n        return !1;\n      }(t, e, \"RIFF\", 4)) {\n        var s, c;\n        l(t, e += 4);\n        for (e += 8; e < t.length;) {\n          var f = u(t, e),\n            d = l(t, e += 4);\n          e += 4;\n          var p = d + (1 & d);\n          switch (f) {\n            case \"VP8 \":\n            case \"VP8L\":\n              void 0 === r.frames[n] && (r.frames[n] = {});\n              (v = r.frames[n]).src_off = i ? o : e - 8, v.src_size = a + d + 8, n++, i && (i = !1, a = 0, o = 0);\n              break;\n            case \"VP8X\":\n              (v = r.header = {}).feature_flags = t[e];\n              var g = e + 4;\n              v.canvas_width = 1 + h(t, g);\n              g += 3;\n              v.canvas_height = 1 + h(t, g);\n              g += 3;\n              break;\n            case \"ALPH\":\n              i = !0, a = p + 8, o = e - 8;\n              break;\n            case \"ANIM\":\n              (v = r.header).bgcolor = l(t, e);\n              g = e + 4;\n              v.loop_count = (s = t)[(c = g) + 0] << 0 | s[c + 1] << 8;\n              g += 2;\n              break;\n            case \"ANMF\":\n              var m, v;\n              (v = r.frames[n] = {}).offset_x = 2 * h(t, e), e += 3, v.offset_y = 2 * h(t, e), e += 3, v.width = 1 + h(t, e), e += 3, v.height = 1 + h(t, e), e += 3, v.duration = h(t, e), e += 3, m = t[e++], v.dispose = 1 & m, v.blend = m >> 1 & 1;\n          }\n          \"ANMF\" != f && (e += p);\n        }\n        return r;\n      }\n    }(m, 0);\n  v.response = m, v.rgbaoutput = !0, v.dataurl = !1;\n  var b = v.header ? v.header : null,\n    y = v.frames ? v.frames : null;\n  if (b) {\n    b.loop_counter = b.loop_count, f = [b.canvas_height], d = [b.canvas_width];\n    for (var w = 0; w < y.length && 0 != y[w].blend; w++);\n  }\n  var N = y[0],\n    L = g.WebPDecodeRGBA(m, N.src_off, N.src_size, d, f);\n  N.rgba = L, N.imgwidth = d[0], N.imgheight = f[0];\n  for (var A = 0; A < d[0] * f[0] * 4; A++) p[A] = L[A];\n  return this.width = d, this.height = f, this.data = p, this;\n}\n!function (t) {\n  var r = function () {\n      return \"function\" == typeof e;\n    },\n    n = function (r, n, a, h) {\n      var l = 4,\n        f = s;\n      switch (h) {\n        case t.image_compression.FAST:\n          l = 1, f = o;\n          break;\n        case t.image_compression.MEDIUM:\n          l = 6, f = c;\n          break;\n        case t.image_compression.SLOW:\n          l = 9, f = u;\n      }\n      r = i(r, n, a, f);\n      var d = e(r, {\n        level: l\n      });\n      return t.__addimage__.arrayBufferToBinaryString(d);\n    },\n    i = function (t, e, r, n) {\n      for (var i, a, o, s = t.length / e, c = new Uint8Array(t.length + s), u = l(), h = 0; h < s; h += 1) {\n        if (o = h * e, i = t.subarray(o, o + e), n) c.set(n(i, r, a), o + h);else {\n          for (var d, p = u.length, g = []; d < p; d += 1) g[d] = u[d](i, r, a);\n          var m = f(g.concat());\n          c.set(g[m], o + h);\n        }\n        a = i;\n      }\n      return c;\n    },\n    a = function (t) {\n      var e = Array.apply([], t);\n      return e.unshift(0), e;\n    },\n    o = function (t, e) {\n      var r,\n        n = [],\n        i = t.length;\n      n[0] = 1;\n      for (var a = 0; a < i; a += 1) r = t[a - e] || 0, n[a + 1] = t[a] - r + 256 & 255;\n      return n;\n    },\n    s = function (t, e, r) {\n      var n,\n        i = [],\n        a = t.length;\n      i[0] = 2;\n      for (var o = 0; o < a; o += 1) n = r && r[o] || 0, i[o + 1] = t[o] - n + 256 & 255;\n      return i;\n    },\n    c = function (t, e, r) {\n      var n,\n        i,\n        a = [],\n        o = t.length;\n      a[0] = 3;\n      for (var s = 0; s < o; s += 1) n = t[s - e] || 0, i = r && r[s] || 0, a[s + 1] = t[s] + 256 - (n + i >>> 1) & 255;\n      return a;\n    },\n    u = function (t, e, r) {\n      var n,\n        i,\n        a,\n        o,\n        s = [],\n        c = t.length;\n      s[0] = 4;\n      for (var u = 0; u < c; u += 1) n = t[u - e] || 0, i = r && r[u] || 0, a = r && r[u - e] || 0, o = h(n, i, a), s[u + 1] = t[u] - o + 256 & 255;\n      return s;\n    },\n    h = function (t, e, r) {\n      if (t === e && e === r) return t;\n      var n = Math.abs(e - r),\n        i = Math.abs(t - r),\n        a = Math.abs(t + e - r - r);\n      return n <= i && n <= a ? t : i <= a ? e : r;\n    },\n    l = function () {\n      return [a, o, s, c, u];\n    },\n    f = function (t) {\n      var e = t.map(function (t) {\n        return t.reduce(function (t, e) {\n          return t + Math.abs(e);\n        }, 0);\n      });\n      return e.indexOf(Math.min.apply(null, e));\n    };\n  t.processPNG = function (e, i, a, o) {\n    var s,\n      c,\n      u,\n      h,\n      l,\n      f,\n      d,\n      p,\n      g,\n      m,\n      v,\n      b,\n      y,\n      w,\n      N,\n      L = this.decode.FLATE_DECODE,\n      A = \"\";\n    if (this.__addimage__.isArrayBuffer(e) && (e = new Uint8Array(e)), this.__addimage__.isArrayBufferView(e)) {\n      if (e = (u = new Kt(e)).imgData, c = u.bits, s = u.colorSpace, l = u.colors, -1 !== [4, 6].indexOf(u.colorType)) {\n        if (8 === u.bits) {\n          g = (p = 32 == u.pixelBitlength ? new Uint32Array(u.decodePixels().buffer) : 16 == u.pixelBitlength ? new Uint16Array(u.decodePixels().buffer) : new Uint8Array(u.decodePixels().buffer)).length, v = new Uint8Array(g * u.colors), m = new Uint8Array(g);\n          var x,\n            S = u.pixelBitlength - u.bits;\n          for (w = 0, N = 0; w < g; w++) {\n            for (y = p[w], x = 0; x < S;) v[N++] = y >>> x & 255, x += u.bits;\n            m[w] = y >>> x & 255;\n          }\n        }\n        if (16 === u.bits) {\n          g = (p = new Uint32Array(u.decodePixels().buffer)).length, v = new Uint8Array(g * (32 / u.pixelBitlength) * u.colors), m = new Uint8Array(g * (32 / u.pixelBitlength)), b = u.colors > 1, w = 0, N = 0;\n          for (var _ = 0; w < g;) y = p[w++], v[N++] = y >>> 0 & 255, b && (v[N++] = y >>> 16 & 255, y = p[w++], v[N++] = y >>> 0 & 255), m[_++] = y >>> 16 & 255;\n          c = 8;\n        }\n        o !== t.image_compression.NONE && r() ? (e = n(v, u.width * u.colors, u.colors, o), d = n(m, u.width, 1, o)) : (e = v, d = m, L = void 0);\n      }\n      if (3 === u.colorType && (s = this.color_spaces.INDEXED, f = u.palette, u.transparency.indexed)) {\n        var P = u.transparency.indexed,\n          k = 0;\n        for (w = 0, g = P.length; w < g; ++w) k += P[w];\n        if ((k /= 255) === g - 1 && -1 !== P.indexOf(0)) h = [P.indexOf(0)];else if (k !== g) {\n          for (p = u.decodePixels(), m = new Uint8Array(p.length), w = 0, g = p.length; w < g; w++) m[w] = P[p[w]];\n          d = n(m, u.width, 1);\n        }\n      }\n      var I = function (e) {\n        var r;\n        switch (e) {\n          case t.image_compression.FAST:\n            r = 11;\n            break;\n          case t.image_compression.MEDIUM:\n            r = 13;\n            break;\n          case t.image_compression.SLOW:\n            r = 14;\n            break;\n          default:\n            r = 12;\n        }\n        return r;\n      }(o);\n      return L === this.decode.FLATE_DECODE && (A = \"/Predictor \" + I + \" \"), A += \"/Colors \" + l + \" /BitsPerComponent \" + c + \" /Columns \" + u.width, (this.__addimage__.isArrayBuffer(e) || this.__addimage__.isArrayBufferView(e)) && (e = this.__addimage__.arrayBufferToBinaryString(e)), (d && this.__addimage__.isArrayBuffer(d) || this.__addimage__.isArrayBufferView(d)) && (d = this.__addimage__.arrayBufferToBinaryString(d)), {\n        alias: a,\n        data: e,\n        index: i,\n        filter: L,\n        decodeParameters: A,\n        transparency: h,\n        palette: f,\n        sMask: d,\n        predictor: I,\n        width: u.width,\n        height: u.height,\n        bitsPerComponent: c,\n        colorSpace: s\n      };\n    }\n  };\n}(E.API), function (t) {\n  t.processGIF89A = function (e, r, n, i) {\n    var a = new Zt(e),\n      o = a.width,\n      s = a.height,\n      c = [];\n    a.decodeAndBlitFrameRGBA(0, c);\n    var u = {\n        data: c,\n        width: o,\n        height: s\n      },\n      h = new Qt(100).encode(u, 100);\n    return t.processJPEG.call(this, h, r, n, i);\n  }, t.processGIF87A = t.processGIF89A;\n}(E.API), te.prototype.parseHeader = function () {\n  if (this.fileSize = this.datav.getUint32(this.pos, !0), this.pos += 4, this.reserved = this.datav.getUint32(this.pos, !0), this.pos += 4, this.offset = this.datav.getUint32(this.pos, !0), this.pos += 4, this.headerSize = this.datav.getUint32(this.pos, !0), this.pos += 4, this.width = this.datav.getUint32(this.pos, !0), this.pos += 4, this.height = this.datav.getInt32(this.pos, !0), this.pos += 4, this.planes = this.datav.getUint16(this.pos, !0), this.pos += 2, this.bitPP = this.datav.getUint16(this.pos, !0), this.pos += 2, this.compress = this.datav.getUint32(this.pos, !0), this.pos += 4, this.rawSize = this.datav.getUint32(this.pos, !0), this.pos += 4, this.hr = this.datav.getUint32(this.pos, !0), this.pos += 4, this.vr = this.datav.getUint32(this.pos, !0), this.pos += 4, this.colors = this.datav.getUint32(this.pos, !0), this.pos += 4, this.importantColors = this.datav.getUint32(this.pos, !0), this.pos += 4, 16 === this.bitPP && this.is_with_alpha && (this.bitPP = 15), this.bitPP < 15) {\n    var t = 0 === this.colors ? 1 << this.bitPP : this.colors;\n    this.palette = new Array(t);\n    for (var e = 0; e < t; e++) {\n      var r = this.datav.getUint8(this.pos++, !0),\n        n = this.datav.getUint8(this.pos++, !0),\n        i = this.datav.getUint8(this.pos++, !0),\n        a = this.datav.getUint8(this.pos++, !0);\n      this.palette[e] = {\n        red: i,\n        green: n,\n        blue: r,\n        quad: a\n      };\n    }\n  }\n  this.height < 0 && (this.height *= -1, this.bottom_up = !1);\n}, te.prototype.parseBGR = function () {\n  this.pos = this.offset;\n  try {\n    var t = \"bit\" + this.bitPP,\n      e = this.width * this.height * 4;\n    this.data = new Uint8Array(e), this[t]();\n  } catch (t) {\n    a.log(\"bit decode error:\" + t);\n  }\n}, te.prototype.bit1 = function () {\n  var t,\n    e = Math.ceil(this.width / 8),\n    r = e % 4;\n  for (t = this.height - 1; t >= 0; t--) {\n    for (var n = this.bottom_up ? t : this.height - 1 - t, i = 0; i < e; i++) for (var a = this.datav.getUint8(this.pos++, !0), o = n * this.width * 4 + 8 * i * 4, s = 0; s < 8 && 8 * i + s < this.width; s++) {\n      var c = this.palette[a >> 7 - s & 1];\n      this.data[o + 4 * s] = c.blue, this.data[o + 4 * s + 1] = c.green, this.data[o + 4 * s + 2] = c.red, this.data[o + 4 * s + 3] = 255;\n    }\n    0 !== r && (this.pos += 4 - r);\n  }\n}, te.prototype.bit4 = function () {\n  for (var t = Math.ceil(this.width / 2), e = t % 4, r = this.height - 1; r >= 0; r--) {\n    for (var n = this.bottom_up ? r : this.height - 1 - r, i = 0; i < t; i++) {\n      var a = this.datav.getUint8(this.pos++, !0),\n        o = n * this.width * 4 + 2 * i * 4,\n        s = a >> 4,\n        c = 15 & a,\n        u = this.palette[s];\n      if (this.data[o] = u.blue, this.data[o + 1] = u.green, this.data[o + 2] = u.red, this.data[o + 3] = 255, 2 * i + 1 >= this.width) break;\n      u = this.palette[c], this.data[o + 4] = u.blue, this.data[o + 4 + 1] = u.green, this.data[o + 4 + 2] = u.red, this.data[o + 4 + 3] = 255;\n    }\n    0 !== e && (this.pos += 4 - e);\n  }\n}, te.prototype.bit8 = function () {\n  for (var t = this.width % 4, e = this.height - 1; e >= 0; e--) {\n    for (var r = this.bottom_up ? e : this.height - 1 - e, n = 0; n < this.width; n++) {\n      var i = this.datav.getUint8(this.pos++, !0),\n        a = r * this.width * 4 + 4 * n;\n      if (i < this.palette.length) {\n        var o = this.palette[i];\n        this.data[a] = o.red, this.data[a + 1] = o.green, this.data[a + 2] = o.blue, this.data[a + 3] = 255;\n      } else this.data[a] = 255, this.data[a + 1] = 255, this.data[a + 2] = 255, this.data[a + 3] = 255;\n    }\n    0 !== t && (this.pos += 4 - t);\n  }\n}, te.prototype.bit15 = function () {\n  for (var t = this.width % 3, e = parseInt(\"11111\", 2), r = this.height - 1; r >= 0; r--) {\n    for (var n = this.bottom_up ? r : this.height - 1 - r, i = 0; i < this.width; i++) {\n      var a = this.datav.getUint16(this.pos, !0);\n      this.pos += 2;\n      var o = (a & e) / e * 255 | 0,\n        s = (a >> 5 & e) / e * 255 | 0,\n        c = (a >> 10 & e) / e * 255 | 0,\n        u = a >> 15 ? 255 : 0,\n        h = n * this.width * 4 + 4 * i;\n      this.data[h] = c, this.data[h + 1] = s, this.data[h + 2] = o, this.data[h + 3] = u;\n    }\n    this.pos += t;\n  }\n}, te.prototype.bit16 = function () {\n  for (var t = this.width % 3, e = parseInt(\"11111\", 2), r = parseInt(\"111111\", 2), n = this.height - 1; n >= 0; n--) {\n    for (var i = this.bottom_up ? n : this.height - 1 - n, a = 0; a < this.width; a++) {\n      var o = this.datav.getUint16(this.pos, !0);\n      this.pos += 2;\n      var s = (o & e) / e * 255 | 0,\n        c = (o >> 5 & r) / r * 255 | 0,\n        u = (o >> 11) / e * 255 | 0,\n        h = i * this.width * 4 + 4 * a;\n      this.data[h] = u, this.data[h + 1] = c, this.data[h + 2] = s, this.data[h + 3] = 255;\n    }\n    this.pos += t;\n  }\n}, te.prototype.bit24 = function () {\n  for (var t = this.height - 1; t >= 0; t--) {\n    for (var e = this.bottom_up ? t : this.height - 1 - t, r = 0; r < this.width; r++) {\n      var n = this.datav.getUint8(this.pos++, !0),\n        i = this.datav.getUint8(this.pos++, !0),\n        a = this.datav.getUint8(this.pos++, !0),\n        o = e * this.width * 4 + 4 * r;\n      this.data[o] = a, this.data[o + 1] = i, this.data[o + 2] = n, this.data[o + 3] = 255;\n    }\n    this.pos += this.width % 4;\n  }\n}, te.prototype.bit32 = function () {\n  for (var t = this.height - 1; t >= 0; t--) for (var e = this.bottom_up ? t : this.height - 1 - t, r = 0; r < this.width; r++) {\n    var n = this.datav.getUint8(this.pos++, !0),\n      i = this.datav.getUint8(this.pos++, !0),\n      a = this.datav.getUint8(this.pos++, !0),\n      o = this.datav.getUint8(this.pos++, !0),\n      s = e * this.width * 4 + 4 * r;\n    this.data[s] = a, this.data[s + 1] = i, this.data[s + 2] = n, this.data[s + 3] = o;\n  }\n}, te.prototype.getData = function () {\n  return this.data;\n},\n/**\n * @license\n * Copyright (c) 2018 Aras Abbasi\n *\n * Licensed under the MIT License.\n * http://opensource.org/licenses/mit-license\n */\nfunction (t) {\n  t.processBMP = function (e, r, n, i) {\n    var a = new te(e, !1),\n      o = a.width,\n      s = a.height,\n      c = {\n        data: a.getData(),\n        width: o,\n        height: s\n      },\n      u = new Qt(100).encode(c, 100);\n    return t.processJPEG.call(this, u, r, n, i);\n  };\n}(E.API), ee.prototype.getData = function () {\n  return this.data;\n},\n/**\n * @license\n * Copyright (c) 2019 Aras Abbasi\n *\n * Licensed under the MIT License.\n * http://opensource.org/licenses/mit-license\n */\nfunction (t) {\n  t.processWEBP = function (e, r, n, i) {\n    var a = new ee(e, !1),\n      o = a.width,\n      s = a.height,\n      c = {\n        data: a.getData(),\n        width: o,\n        height: s\n      },\n      u = new Qt(100).encode(c, 100);\n    return t.processJPEG.call(this, u, r, n, i);\n  };\n}(E.API), E.API.processRGBA = function (t, e, r) {\n  for (var n = t.data, i = n.length, a = new Uint8Array(i / 4 * 3), o = new Uint8Array(i / 4), s = 0, c = 0, u = 0; u < i; u += 4) {\n    var h = n[u],\n      l = n[u + 1],\n      f = n[u + 2],\n      d = n[u + 3];\n    a[s++] = h, a[s++] = l, a[s++] = f, o[c++] = d;\n  }\n  var p = this.__addimage__.arrayBufferToBinaryString(a);\n  return {\n    alpha: this.__addimage__.arrayBufferToBinaryString(o),\n    data: p,\n    index: e,\n    alias: r,\n    colorSpace: \"DeviceRGB\",\n    bitsPerComponent: 8,\n    width: t.width,\n    height: t.height\n  };\n}, E.API.setLanguage = function (t) {\n  return void 0 === this.internal.languageSettings && (this.internal.languageSettings = {}, this.internal.languageSettings.isSubscribed = !1), void 0 !== {\n    af: \"Afrikaans\",\n    sq: \"Albanian\",\n    ar: \"Arabic (Standard)\",\n    \"ar-DZ\": \"Arabic (Algeria)\",\n    \"ar-BH\": \"Arabic (Bahrain)\",\n    \"ar-EG\": \"Arabic (Egypt)\",\n    \"ar-IQ\": \"Arabic (Iraq)\",\n    \"ar-JO\": \"Arabic (Jordan)\",\n    \"ar-KW\": \"Arabic (Kuwait)\",\n    \"ar-LB\": \"Arabic (Lebanon)\",\n    \"ar-LY\": \"Arabic (Libya)\",\n    \"ar-MA\": \"Arabic (Morocco)\",\n    \"ar-OM\": \"Arabic (Oman)\",\n    \"ar-QA\": \"Arabic (Qatar)\",\n    \"ar-SA\": \"Arabic (Saudi Arabia)\",\n    \"ar-SY\": \"Arabic (Syria)\",\n    \"ar-TN\": \"Arabic (Tunisia)\",\n    \"ar-AE\": \"Arabic (U.A.E.)\",\n    \"ar-YE\": \"Arabic (Yemen)\",\n    an: \"Aragonese\",\n    hy: \"Armenian\",\n    as: \"Assamese\",\n    ast: \"Asturian\",\n    az: \"Azerbaijani\",\n    eu: \"Basque\",\n    be: \"Belarusian\",\n    bn: \"Bengali\",\n    bs: \"Bosnian\",\n    br: \"Breton\",\n    bg: \"Bulgarian\",\n    my: \"Burmese\",\n    ca: \"Catalan\",\n    ch: \"Chamorro\",\n    ce: \"Chechen\",\n    zh: \"Chinese\",\n    \"zh-HK\": \"Chinese (Hong Kong)\",\n    \"zh-CN\": \"Chinese (PRC)\",\n    \"zh-SG\": \"Chinese (Singapore)\",\n    \"zh-TW\": \"Chinese (Taiwan)\",\n    cv: \"Chuvash\",\n    co: \"Corsican\",\n    cr: \"Cree\",\n    hr: \"Croatian\",\n    cs: \"Czech\",\n    da: \"Danish\",\n    nl: \"Dutch (Standard)\",\n    \"nl-BE\": \"Dutch (Belgian)\",\n    en: \"English\",\n    \"en-AU\": \"English (Australia)\",\n    \"en-BZ\": \"English (Belize)\",\n    \"en-CA\": \"English (Canada)\",\n    \"en-IE\": \"English (Ireland)\",\n    \"en-JM\": \"English (Jamaica)\",\n    \"en-NZ\": \"English (New Zealand)\",\n    \"en-PH\": \"English (Philippines)\",\n    \"en-ZA\": \"English (South Africa)\",\n    \"en-TT\": \"English (Trinidad & Tobago)\",\n    \"en-GB\": \"English (United Kingdom)\",\n    \"en-US\": \"English (United States)\",\n    \"en-ZW\": \"English (Zimbabwe)\",\n    eo: \"Esperanto\",\n    et: \"Estonian\",\n    fo: \"Faeroese\",\n    fj: \"Fijian\",\n    fi: \"Finnish\",\n    fr: \"French (Standard)\",\n    \"fr-BE\": \"French (Belgium)\",\n    \"fr-CA\": \"French (Canada)\",\n    \"fr-FR\": \"French (France)\",\n    \"fr-LU\": \"French (Luxembourg)\",\n    \"fr-MC\": \"French (Monaco)\",\n    \"fr-CH\": \"French (Switzerland)\",\n    fy: \"Frisian\",\n    fur: \"Friulian\",\n    gd: \"Gaelic (Scots)\",\n    \"gd-IE\": \"Gaelic (Irish)\",\n    gl: \"Galacian\",\n    ka: \"Georgian\",\n    de: \"German (Standard)\",\n    \"de-AT\": \"German (Austria)\",\n    \"de-DE\": \"German (Germany)\",\n    \"de-LI\": \"German (Liechtenstein)\",\n    \"de-LU\": \"German (Luxembourg)\",\n    \"de-CH\": \"German (Switzerland)\",\n    el: \"Greek\",\n    gu: \"Gujurati\",\n    ht: \"Haitian\",\n    he: \"Hebrew\",\n    hi: \"Hindi\",\n    hu: \"Hungarian\",\n    is: \"Icelandic\",\n    id: \"Indonesian\",\n    iu: \"Inuktitut\",\n    ga: \"Irish\",\n    it: \"Italian (Standard)\",\n    \"it-CH\": \"Italian (Switzerland)\",\n    ja: \"Japanese\",\n    kn: \"Kannada\",\n    ks: \"Kashmiri\",\n    kk: \"Kazakh\",\n    km: \"Khmer\",\n    ky: \"Kirghiz\",\n    tlh: \"Klingon\",\n    ko: \"Korean\",\n    \"ko-KP\": \"Korean (North Korea)\",\n    \"ko-KR\": \"Korean (South Korea)\",\n    la: \"Latin\",\n    lv: \"Latvian\",\n    lt: \"Lithuanian\",\n    lb: \"Luxembourgish\",\n    mk: \"North Macedonia\",\n    ms: \"Malay\",\n    ml: \"Malayalam\",\n    mt: \"Maltese\",\n    mi: \"Maori\",\n    mr: \"Marathi\",\n    mo: \"Moldavian\",\n    nv: \"Navajo\",\n    ng: \"Ndonga\",\n    ne: \"Nepali\",\n    no: \"Norwegian\",\n    nb: \"Norwegian (Bokmal)\",\n    nn: \"Norwegian (Nynorsk)\",\n    oc: \"Occitan\",\n    or: \"Oriya\",\n    om: \"Oromo\",\n    fa: \"Persian\",\n    \"fa-IR\": \"Persian/Iran\",\n    pl: \"Polish\",\n    pt: \"Portuguese\",\n    \"pt-BR\": \"Portuguese (Brazil)\",\n    pa: \"Punjabi\",\n    \"pa-IN\": \"Punjabi (India)\",\n    \"pa-PK\": \"Punjabi (Pakistan)\",\n    qu: \"Quechua\",\n    rm: \"Rhaeto-Romanic\",\n    ro: \"Romanian\",\n    \"ro-MO\": \"Romanian (Moldavia)\",\n    ru: \"Russian\",\n    \"ru-MO\": \"Russian (Moldavia)\",\n    sz: \"Sami (Lappish)\",\n    sg: \"Sango\",\n    sa: \"Sanskrit\",\n    sc: \"Sardinian\",\n    sd: \"Sindhi\",\n    si: \"Singhalese\",\n    sr: \"Serbian\",\n    sk: \"Slovak\",\n    sl: \"Slovenian\",\n    so: \"Somani\",\n    sb: \"Sorbian\",\n    es: \"Spanish\",\n    \"es-AR\": \"Spanish (Argentina)\",\n    \"es-BO\": \"Spanish (Bolivia)\",\n    \"es-CL\": \"Spanish (Chile)\",\n    \"es-CO\": \"Spanish (Colombia)\",\n    \"es-CR\": \"Spanish (Costa Rica)\",\n    \"es-DO\": \"Spanish (Dominican Republic)\",\n    \"es-EC\": \"Spanish (Ecuador)\",\n    \"es-SV\": \"Spanish (El Salvador)\",\n    \"es-GT\": \"Spanish (Guatemala)\",\n    \"es-HN\": \"Spanish (Honduras)\",\n    \"es-MX\": \"Spanish (Mexico)\",\n    \"es-NI\": \"Spanish (Nicaragua)\",\n    \"es-PA\": \"Spanish (Panama)\",\n    \"es-PY\": \"Spanish (Paraguay)\",\n    \"es-PE\": \"Spanish (Peru)\",\n    \"es-PR\": \"Spanish (Puerto Rico)\",\n    \"es-ES\": \"Spanish (Spain)\",\n    \"es-UY\": \"Spanish (Uruguay)\",\n    \"es-VE\": \"Spanish (Venezuela)\",\n    sx: \"Sutu\",\n    sw: \"Swahili\",\n    sv: \"Swedish\",\n    \"sv-FI\": \"Swedish (Finland)\",\n    \"sv-SV\": \"Swedish (Sweden)\",\n    ta: \"Tamil\",\n    tt: \"Tatar\",\n    te: \"Teluga\",\n    th: \"Thai\",\n    tig: \"Tigre\",\n    ts: \"Tsonga\",\n    tn: \"Tswana\",\n    tr: \"Turkish\",\n    tk: \"Turkmen\",\n    uk: \"Ukrainian\",\n    hsb: \"Upper Sorbian\",\n    ur: \"Urdu\",\n    ve: \"Venda\",\n    vi: \"Vietnamese\",\n    vo: \"Volapuk\",\n    wa: \"Walloon\",\n    cy: \"Welsh\",\n    xh: \"Xhosa\",\n    ji: \"Yiddish\",\n    zu: \"Zulu\"\n  }[t] && (this.internal.languageSettings.languageCode = t, !1 === this.internal.languageSettings.isSubscribed && (this.internal.events.subscribe(\"putCatalog\", function () {\n    this.internal.write(\"/Lang (\" + this.internal.languageSettings.languageCode + \")\");\n  }), this.internal.languageSettings.isSubscribed = !0)), this;\n}, Vt = E.API, Gt = Vt.getCharWidthsArray = function (e, r) {\n  var n,\n    i,\n    a = (r = r || {}).font || this.internal.getFont(),\n    o = r.fontSize || this.internal.getFontSize(),\n    s = r.charSpace || this.internal.getCharSpace(),\n    c = r.widths ? r.widths : a.metadata.Unicode.widths,\n    u = c.fof ? c.fof : 1,\n    h = r.kerning ? r.kerning : a.metadata.Unicode.kerning,\n    l = h.fof ? h.fof : 1,\n    f = !1 !== r.doKerning,\n    d = 0,\n    p = e.length,\n    g = 0,\n    m = c[0] || u,\n    v = [];\n  for (n = 0; n < p; n++) i = e.charCodeAt(n), \"function\" == typeof a.metadata.widthOfString ? v.push((a.metadata.widthOfGlyph(a.metadata.characterToGlyph(i)) + s * (1e3 / o) || 0) / 1e3) : (d = f && \"object\" === t(h[i]) && !isNaN(parseInt(h[i][g], 10)) ? h[i][g] / l : 0, v.push((c[i] || m) / u + d)), g = i;\n  return v;\n}, Yt = Vt.getStringUnitWidth = function (t, e) {\n  var r = (e = e || {}).fontSize || this.internal.getFontSize(),\n    n = e.font || this.internal.getFont(),\n    i = e.charSpace || this.internal.getCharSpace();\n  return Vt.processArabic && (t = Vt.processArabic(t)), \"function\" == typeof n.metadata.widthOfString ? n.metadata.widthOfString(t, r, i) / r : Gt.apply(this, arguments).reduce(function (t, e) {\n    return t + e;\n  }, 0);\n}, Jt = function (t, e, r, n) {\n  for (var i = [], a = 0, o = t.length, s = 0; a !== o && s + e[a] < r;) s += e[a], a++;\n  i.push(t.slice(0, a));\n  var c = a;\n  for (s = 0; a !== o;) s + e[a] > n && (i.push(t.slice(c, a)), s = 0, c = a), s += e[a], a++;\n  return c !== a && i.push(t.slice(c, a)), i;\n}, Xt = function (t, e, r) {\n  r || (r = {});\n  var n,\n    i,\n    a,\n    o,\n    s,\n    c,\n    u,\n    h = [],\n    l = [h],\n    f = r.textIndent || 0,\n    d = 0,\n    p = 0,\n    g = t.split(\" \"),\n    m = Gt.apply(this, [\" \", r])[0];\n  if (c = -1 === r.lineIndent ? g[0].length + 2 : r.lineIndent || 0) {\n    var v = Array(c).join(\" \"),\n      b = [];\n    g.map(function (t) {\n      (t = t.split(/\\s*\\n/)).length > 1 ? b = b.concat(t.map(function (t, e) {\n        return (e && t.length ? \"\\n\" : \"\") + t;\n      })) : b.push(t[0]);\n    }), g = b, c = Yt.apply(this, [v, r]);\n  }\n  for (a = 0, o = g.length; a < o; a++) {\n    var y = 0;\n    if (n = g[a], c && \"\\n\" == n[0] && (n = n.substr(1), y = 1), f + d + (p = (i = Gt.apply(this, [n, r])).reduce(function (t, e) {\n      return t + e;\n    }, 0)) > e || y) {\n      if (p > e) {\n        for (s = Jt.apply(this, [n, i, e - (f + d), e]), h.push(s.shift()), h = [s.pop()]; s.length;) l.push([s.shift()]);\n        p = i.slice(n.length - (h[0] ? h[0].length : 0)).reduce(function (t, e) {\n          return t + e;\n        }, 0);\n      } else h = [n];\n      l.push(h), f = p + c, d = m;\n    } else h.push(n), f += d + p, d = m;\n  }\n  return u = c ? function (t, e) {\n    return (e ? v : \"\") + t.join(\" \");\n  } : function (t) {\n    return t.join(\" \");\n  }, l.map(u);\n}, Vt.splitTextToSize = function (t, e, r) {\n  var n,\n    i = (r = r || {}).fontSize || this.internal.getFontSize(),\n    a = function (t) {\n      if (t.widths && t.kerning) return {\n        widths: t.widths,\n        kerning: t.kerning\n      };\n      var e = this.internal.getFont(t.fontName, t.fontStyle);\n      return e.metadata.Unicode ? {\n        widths: e.metadata.Unicode.widths || {\n          0: 1\n        },\n        kerning: e.metadata.Unicode.kerning || {}\n      } : {\n        font: e.metadata,\n        fontSize: this.internal.getFontSize(),\n        charSpace: this.internal.getCharSpace()\n      };\n    }.call(this, r);\n  n = Array.isArray(t) ? t : String(t).split(/\\r?\\n/);\n  var o = 1 * this.internal.scaleFactor * e / i;\n  a.textIndent = r.textIndent ? 1 * r.textIndent * this.internal.scaleFactor / i : 0, a.lineIndent = r.lineIndent;\n  var s,\n    c,\n    u = [];\n  for (s = 0, c = n.length; s < c; s++) u = u.concat(Xt.apply(this, [n[s], o, a]));\n  return u;\n}, function (e) {\n  e.__fontmetrics__ = e.__fontmetrics__ || {};\n  for (var r = \"klmnopqrstuvwxyz\", n = {}, i = {}, a = 0; a < r.length; a++) n[r[a]] = \"0123456789abcdef\"[a], i[\"0123456789abcdef\"[a]] = r[a];\n  var o = function (t) {\n      return \"0x\" + parseInt(t, 10).toString(16);\n    },\n    s = e.__fontmetrics__.compress = function (e) {\n      var r,\n        n,\n        a,\n        c,\n        u = [\"{\"];\n      for (var h in e) {\n        if (r = e[h], isNaN(parseInt(h, 10)) ? n = \"'\" + h + \"'\" : (h = parseInt(h, 10), n = (n = o(h).slice(2)).slice(0, -1) + i[n.slice(-1)]), \"number\" == typeof r) r < 0 ? (a = o(r).slice(3), c = \"-\") : (a = o(r).slice(2), c = \"\"), a = c + a.slice(0, -1) + i[a.slice(-1)];else {\n          if (\"object\" !== t(r)) throw new Error(\"Don't know what to do with value type \" + t(r) + \".\");\n          a = s(r);\n        }\n        u.push(n + a);\n      }\n      return u.push(\"}\"), u.join(\"\");\n    },\n    c = e.__fontmetrics__.uncompress = function (t) {\n      if (\"string\" != typeof t) throw new Error(\"Invalid argument passed to uncompress.\");\n      for (var e, r, i, a, o = {}, s = 1, c = o, u = [], h = \"\", l = \"\", f = t.length - 1, d = 1; d < f; d += 1) \"'\" == (a = t[d]) ? e ? (i = e.join(\"\"), e = void 0) : e = [] : e ? e.push(a) : \"{\" == a ? (u.push([c, i]), c = {}, i = void 0) : \"}\" == a ? ((r = u.pop())[0][r[1]] = c, i = void 0, c = r[0]) : \"-\" == a ? s = -1 : void 0 === i ? n.hasOwnProperty(a) ? (h += n[a], i = parseInt(h, 16) * s, s = 1, h = \"\") : h += a : n.hasOwnProperty(a) ? (l += n[a], c[i] = parseInt(l, 16) * s, s = 1, i = void 0, l = \"\") : l += a;\n      return o;\n    },\n    u = {\n      codePages: [\"WinAnsiEncoding\"],\n      WinAnsiEncoding: c(\"{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}\")\n    },\n    h = {\n      Unicode: {\n        Courier: u,\n        \"Courier-Bold\": u,\n        \"Courier-BoldOblique\": u,\n        \"Courier-Oblique\": u,\n        Helvetica: u,\n        \"Helvetica-Bold\": u,\n        \"Helvetica-BoldOblique\": u,\n        \"Helvetica-Oblique\": u,\n        \"Times-Roman\": u,\n        \"Times-Bold\": u,\n        \"Times-BoldItalic\": u,\n        \"Times-Italic\": u\n      }\n    },\n    l = {\n      Unicode: {\n        \"Courier-Oblique\": c(\"{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}\"),\n        \"Times-BoldItalic\": c(\"{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}\"),\n        \"Helvetica-Bold\": c(\"{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}\"),\n        Courier: c(\"{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}\"),\n        \"Courier-BoldOblique\": c(\"{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}\"),\n        \"Times-Bold\": c(\"{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}\"),\n        Symbol: c(\"{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}\"),\n        Helvetica: c(\"{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}\"),\n        \"Helvetica-BoldOblique\": c(\"{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}\"),\n        ZapfDingbats: c(\"{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}\"),\n        \"Courier-Bold\": c(\"{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}\"),\n        \"Times-Italic\": c(\"{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3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qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}\"),\n        \"Times-Roman\": c(\"{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}\"),\n        \"Helvetica-Oblique\": c(\"{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}\")\n      }\n    };\n  e.events.push([\"addFont\", function (t) {\n    var e = t.font,\n      r = l.Unicode[e.postScriptName];\n    r && (e.metadata.Unicode = {}, e.metadata.Unicode.widths = r.widths, e.metadata.Unicode.kerning = r.kerning);\n    var n = h.Unicode[e.postScriptName];\n    n && (e.metadata.Unicode.encoding = n, e.encoding = n.codePages[0]);\n  }]);\n}(E.API),\n/**\n * @license\n * Licensed under the MIT License.\n * http://opensource.org/licenses/mit-license\n */\nfunction (t) {\n  var e = function (t) {\n    for (var e = t.length, r = new Uint8Array(e), n = 0; n < e; n++) r[n] = t.charCodeAt(n);\n    return r;\n  };\n  t.API.events.push([\"addFont\", function (r) {\n    var n = void 0,\n      i = r.font,\n      a = r.instance;\n    if (!i.isStandardFont) {\n      if (void 0 === a) throw new Error(\"Font does not exist in vFS, import fonts or remove declaration doc.addFont('\" + i.postScriptName + \"').\");\n      if (\"string\" != typeof (n = !1 === a.existsFileInVFS(i.postScriptName) ? a.loadFile(i.postScriptName) : a.getFileFromVFS(i.postScriptName))) throw new Error(\"Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('\" + i.postScriptName + \"').\");\n      !function (r, n) {\n        n = /^\\x00\\x01\\x00\\x00/.test(n) ? e(n) : e(u(n)), r.metadata = t.API.TTFFont.open(n), r.metadata.Unicode = r.metadata.Unicode || {\n          encoding: {},\n          kerning: {},\n          widths: []\n        }, r.metadata.glyIdsUsed = [0];\n      }(i, n);\n    }\n  }]);\n}(E),\n/** @license\n * Copyright (c) 2012 Willow Systems Corporation, https://github.com/willowsystems\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * \"Software\"), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modify, merge, publish,\n * distribute, sublicense, and/or sell copies of the Software, and to\n * permit persons to whom the Software is furnished to do so, subject to\n * the following conditions:\n *\n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n * ====================================================================\n */\nfunction (t) {\n  function e() {\n    return (n.canvg ? Promise.resolve(n.canvg) : import(\"canvg\")).catch(function (t) {\n      return Promise.reject(new Error(\"Could not load canvg: \" + t));\n    }).then(function (t) {\n      return t.default ? t.default : t;\n    });\n  }\n  E.API.addSvgAsImage = function (t, r, n, i, o, s, c, u) {\n    if (isNaN(r) || isNaN(n)) throw a.error(\"jsPDF.addSvgAsImage: Invalid coordinates\", arguments), new Error(\"Invalid coordinates passed to jsPDF.addSvgAsImage\");\n    if (isNaN(i) || isNaN(o)) throw a.error(\"jsPDF.addSvgAsImage: Invalid measurements\", arguments), new Error(\"Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage\");\n    var h = document.createElement(\"canvas\");\n    h.width = i, h.height = o;\n    var l = h.getContext(\"2d\");\n    l.fillStyle = \"#fff\", l.fillRect(0, 0, h.width, h.height);\n    var f = {\n        ignoreMouse: !0,\n        ignoreAnimation: !0,\n        ignoreDimensions: !0\n      },\n      d = this;\n    return e().then(function (e) {\n      return e.fromString(l, t, f);\n    }, function () {\n      return Promise.reject(new Error(\"Could not load canvg.\"));\n    }).then(function (t) {\n      return t.render(f);\n    }).then(function () {\n      d.addImage(h.toDataURL(\"image/jpeg\", 1), r, n, i, o, c, u);\n    });\n  };\n}(), E.API.putTotalPages = function (t) {\n  var e,\n    r = 0;\n  parseInt(this.internal.getFont().id.substr(1), 10) < 15 ? (e = new RegExp(t, \"g\"), r = this.internal.getNumberOfPages()) : (e = new RegExp(this.pdfEscape16(t, this.internal.getFont()), \"g\"), r = this.pdfEscape16(this.internal.getNumberOfPages() + \"\", this.internal.getFont()));\n  for (var n = 1; n <= this.internal.getNumberOfPages(); n++) for (var i = 0; i < this.internal.pages[n].length; i++) this.internal.pages[n][i] = this.internal.pages[n][i].replace(e, r);\n  return this;\n}, E.API.viewerPreferences = function (e, r) {\n  var n;\n  e = e || {}, r = r || !1;\n  var i,\n    a,\n    o,\n    s = {\n      HideToolbar: {\n        defaultValue: !1,\n        value: !1,\n        type: \"boolean\",\n        explicitSet: !1,\n        valueSet: [!0, !1],\n        pdfVersion: 1.3\n      },\n      HideMenubar: {\n        defaultValue: !1,\n        value: !1,\n        type: \"boolean\",\n        explicitSet: !1,\n        valueSet: [!0, !1],\n        pdfVersion: 1.3\n      },\n      HideWindowUI: {\n        defaultValue: !1,\n        value: !1,\n        type: \"boolean\",\n        explicitSet: !1,\n        valueSet: [!0, !1],\n        pdfVersion: 1.3\n      },\n      FitWindow: {\n        defaultValue: !1,\n        value: !1,\n        type: \"boolean\",\n        explicitSet: !1,\n        valueSet: [!0, !1],\n        pdfVersion: 1.3\n      },\n      CenterWindow: {\n        defaultValue: !1,\n        value: !1,\n        type: \"boolean\",\n        explicitSet: !1,\n        valueSet: [!0, !1],\n        pdfVersion: 1.3\n      },\n      DisplayDocTitle: {\n        defaultValue: !1,\n        value: !1,\n        type: \"boolean\",\n        explicitSet: !1,\n        valueSet: [!0, !1],\n        pdfVersion: 1.4\n      },\n      NonFullScreenPageMode: {\n        defaultValue: \"UseNone\",\n        value: \"UseNone\",\n        type: \"name\",\n        explicitSet: !1,\n        valueSet: [\"UseNone\", \"UseOutlines\", \"UseThumbs\", \"UseOC\"],\n        pdfVersion: 1.3\n      },\n      Direction: {\n        defaultValue: \"L2R\",\n        value: \"L2R\",\n        type: \"name\",\n        explicitSet: !1,\n        valueSet: [\"L2R\", \"R2L\"],\n        pdfVersion: 1.3\n      },\n      ViewArea: {\n        defaultValue: \"CropBox\",\n        value: \"CropBox\",\n        type: \"name\",\n        explicitSet: !1,\n        valueSet: [\"MediaBox\", \"CropBox\", \"TrimBox\", \"BleedBox\", \"ArtBox\"],\n        pdfVersion: 1.4\n      },\n      ViewClip: {\n        defaultValue: \"CropBox\",\n        value: \"CropBox\",\n        type: \"name\",\n        explicitSet: !1,\n        valueSet: [\"MediaBox\", \"CropBox\", \"TrimBox\", \"BleedBox\", \"ArtBox\"],\n        pdfVersion: 1.4\n      },\n      PrintArea: {\n        defaultValue: \"CropBox\",\n        value: \"CropBox\",\n        type: \"name\",\n        explicitSet: !1,\n        valueSet: [\"MediaBox\", \"CropBox\", \"TrimBox\", \"BleedBox\", \"ArtBox\"],\n        pdfVersion: 1.4\n      },\n      PrintClip: {\n        defaultValue: \"CropBox\",\n        value: \"CropBox\",\n        type: \"name\",\n        explicitSet: !1,\n        valueSet: [\"MediaBox\", \"CropBox\", \"TrimBox\", \"BleedBox\", \"ArtBox\"],\n        pdfVersion: 1.4\n      },\n      PrintScaling: {\n        defaultValue: \"AppDefault\",\n        value: \"AppDefault\",\n        type: \"name\",\n        explicitSet: !1,\n        valueSet: [\"AppDefault\", \"None\"],\n        pdfVersion: 1.6\n      },\n      Duplex: {\n        defaultValue: \"\",\n        value: \"none\",\n        type: \"name\",\n        explicitSet: !1,\n        valueSet: [\"Simplex\", \"DuplexFlipShortEdge\", \"DuplexFlipLongEdge\", \"none\"],\n        pdfVersion: 1.7\n      },\n      PickTrayByPDFSize: {\n        defaultValue: !1,\n        value: !1,\n        type: \"boolean\",\n        explicitSet: !1,\n        valueSet: [!0, !1],\n        pdfVersion: 1.7\n      },\n      PrintPageRange: {\n        defaultValue: \"\",\n        value: \"\",\n        type: \"array\",\n        explicitSet: !1,\n        valueSet: null,\n        pdfVersion: 1.7\n      },\n      NumCopies: {\n        defaultValue: 1,\n        value: 1,\n        type: \"integer\",\n        explicitSet: !1,\n        valueSet: null,\n        pdfVersion: 1.7\n      }\n    },\n    c = Object.keys(s),\n    u = [],\n    h = 0,\n    l = 0,\n    f = 0;\n  function d(t, e) {\n    var r,\n      n = !1;\n    for (r = 0; r < t.length; r += 1) t[r] === e && (n = !0);\n    return n;\n  }\n  if (void 0 === this.internal.viewerpreferences && (this.internal.viewerpreferences = {}, this.internal.viewerpreferences.configuration = JSON.parse(JSON.stringify(s)), this.internal.viewerpreferences.isSubscribed = !1), n = this.internal.viewerpreferences.configuration, \"reset\" === e || !0 === r) {\n    var p = c.length;\n    for (f = 0; f < p; f += 1) n[c[f]].value = n[c[f]].defaultValue, n[c[f]].explicitSet = !1;\n  }\n  if (\"object\" === t(e)) for (a in e) if (o = e[a], d(c, a) && void 0 !== o) {\n    if (\"boolean\" === n[a].type && \"boolean\" == typeof o) n[a].value = o;else if (\"name\" === n[a].type && d(n[a].valueSet, o)) n[a].value = o;else if (\"integer\" === n[a].type && Number.isInteger(o)) n[a].value = o;else if (\"array\" === n[a].type) {\n      for (h = 0; h < o.length; h += 1) if (i = !0, 1 === o[h].length && \"number\" == typeof o[h][0]) u.push(String(o[h] - 1));else if (o[h].length > 1) {\n        for (l = 0; l < o[h].length; l += 1) \"number\" != typeof o[h][l] && (i = !1);\n        !0 === i && u.push([o[h][0] - 1, o[h][1] - 1].join(\" \"));\n      }\n      n[a].value = \"[\" + u.join(\" \") + \"]\";\n    } else n[a].value = n[a].defaultValue;\n    n[a].explicitSet = !0;\n  }\n  return !1 === this.internal.viewerpreferences.isSubscribed && (this.internal.events.subscribe(\"putCatalog\", function () {\n    var t,\n      e = [];\n    for (t in n) !0 === n[t].explicitSet && (\"name\" === n[t].type ? e.push(\"/\" + t + \" /\" + n[t].value) : e.push(\"/\" + t + \" \" + n[t].value));\n    0 !== e.length && this.internal.write(\"/ViewerPreferences\\n<<\\n\" + e.join(\"\\n\") + \"\\n>>\");\n  }), this.internal.viewerpreferences.isSubscribed = !0), this.internal.viewerpreferences.configuration = n, this;\n},\n/** ====================================================================\n * @license\n * jsPDF XMP metadata plugin\n * Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * \"Software\"), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modify, merge, publish,\n * distribute, sublicense, and/or sell copies of the Software, and to\n * permit persons to whom the Software is furnished to do so, subject to\n * the following conditions:\n *\n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n * ====================================================================\n */\nfunction (t) {\n  var e = function () {\n      var t = '<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"><rdf:Description rdf:about=\"\" xmlns:jspdf=\"' + this.internal.__metadata__.namespaceuri + '\"><jspdf:metadata>',\n        e = unescape(encodeURIComponent('<x:xmpmeta xmlns:x=\"adobe:ns:meta/\">')),\n        r = unescape(encodeURIComponent(t)),\n        n = unescape(encodeURIComponent(this.internal.__metadata__.metadata)),\n        i = unescape(encodeURIComponent(\"</jspdf:metadata></rdf:Description></rdf:RDF>\")),\n        a = unescape(encodeURIComponent(\"</x:xmpmeta>\")),\n        o = r.length + n.length + i.length + e.length + a.length;\n      this.internal.__metadata__.metadata_object_number = this.internal.newObject(), this.internal.write(\"<< /Type /Metadata /Subtype /XML /Length \" + o + \" >>\"), this.internal.write(\"stream\"), this.internal.write(e + r + n + i + a), this.internal.write(\"endstream\"), this.internal.write(\"endobj\");\n    },\n    r = function () {\n      this.internal.__metadata__.metadata_object_number && this.internal.write(\"/Metadata \" + this.internal.__metadata__.metadata_object_number + \" 0 R\");\n    };\n  t.addMetadata = function (t, n) {\n    return void 0 === this.internal.__metadata__ && (this.internal.__metadata__ = {\n      metadata: t,\n      namespaceuri: n || \"http://jspdf.default.namespaceuri/\"\n    }, this.internal.events.subscribe(\"putCatalog\", r), this.internal.events.subscribe(\"postPutResources\", e)), this;\n  };\n}(E.API), function (t) {\n  var e = t.API,\n    r = e.pdfEscape16 = function (t, e) {\n      for (var r, n = e.metadata.Unicode.widths, i = [\"\", \"0\", \"00\", \"000\", \"0000\"], a = [\"\"], o = 0, s = t.length; o < s; ++o) {\n        if (r = e.metadata.characterToGlyph(t.charCodeAt(o)), e.metadata.glyIdsUsed.push(r), e.metadata.toUnicode[r] = t.charCodeAt(o), -1 == n.indexOf(r) && (n.push(r), n.push([parseInt(e.metadata.widthOfGlyph(r), 10)])), \"0\" == r) return a.join(\"\");\n        r = r.toString(16), a.push(i[4 - r.length], r);\n      }\n      return a.join(\"\");\n    },\n    n = function (t) {\n      var e, r, n, i, a, o, s;\n      for (a = \"/CIDInit /ProcSet findresource begin\\n12 dict begin\\nbegincmap\\n/CIDSystemInfo <<\\n  /Registry (Adobe)\\n  /Ordering (UCS)\\n  /Supplement 0\\n>> def\\n/CMapName /Adobe-Identity-UCS def\\n/CMapType 2 def\\n1 begincodespacerange\\n<0000><ffff>\\nendcodespacerange\", n = [], o = 0, s = (r = Object.keys(t).sort(function (t, e) {\n        return t - e;\n      })).length; o < s; o++) e = r[o], n.length >= 100 && (a += \"\\n\" + n.length + \" beginbfchar\\n\" + n.join(\"\\n\") + \"\\nendbfchar\", n = []), void 0 !== t[e] && null !== t[e] && \"function\" == typeof t[e].toString && (i = (\"0000\" + t[e].toString(16)).slice(-4), e = (\"0000\" + (+e).toString(16)).slice(-4), n.push(\"<\" + e + \"><\" + i + \">\"));\n      return n.length && (a += \"\\n\" + n.length + \" beginbfchar\\n\" + n.join(\"\\n\") + \"\\nendbfchar\\n\"), a += \"endcmap\\nCMapName currentdict /CMap defineresource pop\\nend\\nend\";\n    };\n  e.events.push([\"putFont\", function (e) {\n    !function (e) {\n      var r = e.font,\n        i = e.out,\n        a = e.newObject,\n        o = e.putStream;\n      if (r.metadata instanceof t.API.TTFFont && \"Identity-H\" === r.encoding) {\n        for (var s = r.metadata.Unicode.widths, c = r.metadata.subset.encode(r.metadata.glyIdsUsed, 1), u = \"\", h = 0; h < c.length; h++) u += String.fromCharCode(c[h]);\n        var l = a();\n        o({\n          data: u,\n          addLength1: !0,\n          objectId: l\n        }), i(\"endobj\");\n        var f = a();\n        o({\n          data: n(r.metadata.toUnicode),\n          addLength1: !0,\n          objectId: f\n        }), i(\"endobj\");\n        var d = a();\n        i(\"<<\"), i(\"/Type /FontDescriptor\"), i(\"/FontName /\" + F(r.fontName)), i(\"/FontFile2 \" + l + \" 0 R\"), i(\"/FontBBox \" + t.API.PDFObject.convert(r.metadata.bbox)), i(\"/Flags \" + r.metadata.flags), i(\"/StemV \" + r.metadata.stemV), i(\"/ItalicAngle \" + r.metadata.italicAngle), i(\"/Ascent \" + r.metadata.ascender), i(\"/Descent \" + r.metadata.decender), i(\"/CapHeight \" + r.metadata.capHeight), i(\">>\"), i(\"endobj\");\n        var p = a();\n        i(\"<<\"), i(\"/Type /Font\"), i(\"/BaseFont /\" + F(r.fontName)), i(\"/FontDescriptor \" + d + \" 0 R\"), i(\"/W \" + t.API.PDFObject.convert(s)), i(\"/CIDToGIDMap /Identity\"), i(\"/DW 1000\"), i(\"/Subtype /CIDFontType2\"), i(\"/CIDSystemInfo\"), i(\"<<\"), i(\"/Supplement 0\"), i(\"/Registry (Adobe)\"), i(\"/Ordering (\" + r.encoding + \")\"), i(\">>\"), i(\">>\"), i(\"endobj\"), r.objectNumber = a(), i(\"<<\"), i(\"/Type /Font\"), i(\"/Subtype /Type0\"), i(\"/ToUnicode \" + f + \" 0 R\"), i(\"/BaseFont /\" + F(r.fontName)), i(\"/Encoding /\" + r.encoding), i(\"/DescendantFonts [\" + p + \" 0 R]\"), i(\">>\"), i(\"endobj\"), r.isAlreadyPutted = !0;\n      }\n    }(e);\n  }]);\n  e.events.push([\"putFont\", function (e) {\n    !function (e) {\n      var r = e.font,\n        i = e.out,\n        a = e.newObject,\n        o = e.putStream;\n      if (r.metadata instanceof t.API.TTFFont && \"WinAnsiEncoding\" === r.encoding) {\n        for (var s = r.metadata.rawData, c = \"\", u = 0; u < s.length; u++) c += String.fromCharCode(s[u]);\n        var h = a();\n        o({\n          data: c,\n          addLength1: !0,\n          objectId: h\n        }), i(\"endobj\");\n        var l = a();\n        o({\n          data: n(r.metadata.toUnicode),\n          addLength1: !0,\n          objectId: l\n        }), i(\"endobj\");\n        var f = a();\n        i(\"<<\"), i(\"/Descent \" + r.metadata.decender), i(\"/CapHeight \" + r.metadata.capHeight), i(\"/StemV \" + r.metadata.stemV), i(\"/Type /FontDescriptor\"), i(\"/FontFile2 \" + h + \" 0 R\"), i(\"/Flags 96\"), i(\"/FontBBox \" + t.API.PDFObject.convert(r.metadata.bbox)), i(\"/FontName /\" + F(r.fontName)), i(\"/ItalicAngle \" + r.metadata.italicAngle), i(\"/Ascent \" + r.metadata.ascender), i(\">>\"), i(\"endobj\"), r.objectNumber = a();\n        for (var d = 0; d < r.metadata.hmtx.widths.length; d++) r.metadata.hmtx.widths[d] = parseInt(r.metadata.hmtx.widths[d] * (1e3 / r.metadata.head.unitsPerEm));\n        i(\"<</Subtype/TrueType/Type/Font/ToUnicode \" + l + \" 0 R/BaseFont/\" + F(r.fontName) + \"/FontDescriptor \" + f + \" 0 R/Encoding/\" + r.encoding + \" /FirstChar 29 /LastChar 255 /Widths \" + t.API.PDFObject.convert(r.metadata.hmtx.widths) + \">>\"), i(\"endobj\"), r.isAlreadyPutted = !0;\n      }\n    }(e);\n  }]);\n  var i = function (t) {\n    var e,\n      n = t.text || \"\",\n      i = t.x,\n      a = t.y,\n      o = t.options || {},\n      s = t.mutex || {},\n      c = s.pdfEscape,\n      u = s.activeFontKey,\n      h = s.fonts,\n      l = u,\n      f = \"\",\n      d = 0,\n      p = \"\",\n      g = h[l].encoding;\n    if (\"Identity-H\" !== h[l].encoding) return {\n      text: n,\n      x: i,\n      y: a,\n      options: o,\n      mutex: s\n    };\n    for (p = n, l = u, Array.isArray(n) && (p = n[0]), d = 0; d < p.length; d += 1) h[l].metadata.hasOwnProperty(\"cmap\") && (e = h[l].metadata.cmap.unicode.codeMap[p[d].charCodeAt(0)]), e || p[d].charCodeAt(0) < 256 && h[l].metadata.hasOwnProperty(\"Unicode\") ? f += p[d] : f += \"\";\n    var m = \"\";\n    return parseInt(l.slice(1)) < 14 || \"WinAnsiEncoding\" === g ? m = c(f, l).split(\"\").map(function (t) {\n      return t.charCodeAt(0).toString(16);\n    }).join(\"\") : \"Identity-H\" === g && (m = r(f, h[l])), s.isHex = !0, {\n      text: m,\n      x: i,\n      y: a,\n      options: o,\n      mutex: s\n    };\n  };\n  e.events.push([\"postProcessText\", function (t) {\n    var e = t.text || \"\",\n      r = [],\n      n = {\n        text: e,\n        x: t.x,\n        y: t.y,\n        options: t.options,\n        mutex: t.mutex\n      };\n    if (Array.isArray(e)) {\n      var a = 0;\n      for (a = 0; a < e.length; a += 1) Array.isArray(e[a]) && 3 === e[a].length ? r.push([i(Object.assign({}, n, {\n        text: e[a][0]\n      })).text, e[a][1], e[a][2]]) : r.push(i(Object.assign({}, n, {\n        text: e[a]\n      })).text);\n      t.text = r;\n    } else t.text = i(Object.assign({}, n, {\n      text: e\n    })).text;\n  }]);\n}(E),\n/**\n * @license\n * jsPDF virtual FileSystem functionality\n *\n * Licensed under the MIT License.\n * http://opensource.org/licenses/mit-license\n */\nfunction (t) {\n  var e = function () {\n    return void 0 === this.internal.vFS && (this.internal.vFS = {}), !0;\n  };\n  t.existsFileInVFS = function (t) {\n    return e.call(this), void 0 !== this.internal.vFS[t];\n  }, t.addFileToVFS = function (t, r) {\n    return e.call(this), this.internal.vFS[t] = r, this;\n  }, t.getFileFromVFS = function (t) {\n    return e.call(this), void 0 !== this.internal.vFS[t] ? this.internal.vFS[t] : null;\n  };\n}(E.API),\n/**\n * @license\n * Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)\n * MIT License\n */\nfunction (t) {\n  t.__bidiEngine__ = t.prototype.__bidiEngine__ = function (t) {\n    var r,\n      n,\n      i,\n      a,\n      o,\n      s,\n      c,\n      u = e,\n      h = [[0, 3, 0, 1, 0, 0, 0], [0, 3, 0, 1, 2, 2, 0], [0, 3, 0, 17, 2, 0, 1], [0, 3, 5, 5, 4, 1, 0], [0, 3, 21, 21, 4, 0, 1], [0, 3, 5, 5, 4, 2, 0]],\n      l = [[2, 0, 1, 1, 0, 1, 0], [2, 0, 1, 1, 0, 2, 0], [2, 0, 2, 1, 3, 2, 0], [2, 0, 2, 33, 3, 1, 1]],\n      f = {\n        L: 0,\n        R: 1,\n        EN: 2,\n        AN: 3,\n        N: 4,\n        B: 5,\n        S: 6\n      },\n      d = {\n        0: 0,\n        5: 1,\n        6: 2,\n        7: 3,\n        32: 4,\n        251: 5,\n        254: 6,\n        255: 7\n      },\n      p = [\"(\", \")\", \"(\", \"<\", \">\", \"<\", \"[\", \"]\", \"[\", \"{\", \"}\", \"{\", \"«\", \"»\", \"«\", \"‹\", \"›\", \"‹\", \"⁅\", \"⁆\", \"⁅\", \"⁽\", \"⁾\", \"⁽\", \"₍\", \"₎\", \"₍\", \"≤\", \"≥\", \"≤\", \"〈\", \"〉\", \"〈\", \"﹙\", \"﹚\", \"﹙\", \"﹛\", \"﹜\", \"﹛\", \"﹝\", \"﹞\", \"﹝\", \"﹤\", \"﹥\", \"﹤\"],\n      g = new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),\n      m = !1,\n      v = 0;\n    this.__bidiEngine__ = {};\n    var b = function (t) {\n        var e = t.charCodeAt(),\n          r = e >> 8,\n          n = d[r];\n        return void 0 !== n ? u[256 * n + (255 & e)] : 252 === r || 253 === r ? \"AL\" : g.test(r) ? \"L\" : 8 === r ? \"R\" : \"N\";\n      },\n      y = function (t) {\n        for (var e, r = 0; r < t.length; r++) {\n          if (\"L\" === (e = b(t.charAt(r)))) return !1;\n          if (\"R\" === e) return !0;\n        }\n        return !1;\n      },\n      w = function (t, e, o, s) {\n        var c,\n          u,\n          h,\n          l,\n          f = e[s];\n        switch (f) {\n          case \"L\":\n          case \"R\":\n            m = !1;\n            break;\n          case \"N\":\n          case \"AN\":\n            break;\n          case \"EN\":\n            m && (f = \"AN\");\n            break;\n          case \"AL\":\n            m = !0, f = \"R\";\n            break;\n          case \"WS\":\n            f = \"N\";\n            break;\n          case \"CS\":\n            s < 1 || s + 1 >= e.length || \"EN\" !== (c = o[s - 1]) && \"AN\" !== c || \"EN\" !== (u = e[s + 1]) && \"AN\" !== u ? f = \"N\" : m && (u = \"AN\"), f = u === c ? u : \"N\";\n            break;\n          case \"ES\":\n            f = \"EN\" === (c = s > 0 ? o[s - 1] : \"B\") && s + 1 < e.length && \"EN\" === e[s + 1] ? \"EN\" : \"N\";\n            break;\n          case \"ET\":\n            if (s > 0 && \"EN\" === o[s - 1]) {\n              f = \"EN\";\n              break;\n            }\n            if (m) {\n              f = \"N\";\n              break;\n            }\n            for (h = s + 1, l = e.length; h < l && \"ET\" === e[h];) h++;\n            f = h < l && \"EN\" === e[h] ? \"EN\" : \"N\";\n            break;\n          case \"NSM\":\n            if (i && !a) {\n              for (l = e.length, h = s + 1; h < l && \"NSM\" === e[h];) h++;\n              if (h < l) {\n                var d = t[s],\n                  p = d >= 1425 && d <= 2303 || 64286 === d;\n                if (c = e[h], p && (\"R\" === c || \"AL\" === c)) {\n                  f = \"R\";\n                  break;\n                }\n              }\n            }\n            f = s < 1 || \"B\" === (c = e[s - 1]) ? \"N\" : o[s - 1];\n            break;\n          case \"B\":\n            m = !1, r = !0, f = v;\n            break;\n          case \"S\":\n            n = !0, f = \"N\";\n            break;\n          case \"LRE\":\n          case \"RLE\":\n          case \"LRO\":\n          case \"RLO\":\n          case \"PDF\":\n            m = !1;\n            break;\n          case \"BN\":\n            f = \"N\";\n        }\n        return f;\n      },\n      N = function (t, e, r) {\n        var n = t.split(\"\");\n        return r && L(n, r, {\n          hiLevel: v\n        }), n.reverse(), e && e.reverse(), n.join(\"\");\n      },\n      L = function (t, e, i) {\n        var a,\n          o,\n          s,\n          c,\n          u,\n          d = -1,\n          p = t.length,\n          g = 0,\n          y = [],\n          N = v ? l : h,\n          L = [];\n        for (m = !1, r = !1, n = !1, o = 0; o < p; o++) L[o] = b(t[o]);\n        for (s = 0; s < p; s++) {\n          if (u = g, y[s] = w(t, L, y, s), a = 240 & (g = N[u][f[y[s]]]), g &= 15, e[s] = c = N[g][5], a > 0) if (16 === a) {\n            for (o = d; o < s; o++) e[o] = 1;\n            d = -1;\n          } else d = -1;\n          if (N[g][6]) -1 === d && (d = s);else if (d > -1) {\n            for (o = d; o < s; o++) e[o] = c;\n            d = -1;\n          }\n          \"B\" === L[s] && (e[s] = 0), i.hiLevel |= c;\n        }\n        n && function (t, e, r) {\n          for (var n = 0; n < r; n++) if (\"S\" === t[n]) {\n            e[n] = v;\n            for (var i = n - 1; i >= 0 && \"WS\" === t[i]; i--) e[i] = v;\n          }\n        }(L, e, p);\n      },\n      A = function (t, e, n, i, a) {\n        if (!(a.hiLevel < t)) {\n          if (1 === t && 1 === v && !r) return e.reverse(), void (n && n.reverse());\n          for (var o, s, c, u, h = e.length, l = 0; l < h;) {\n            if (i[l] >= t) {\n              for (c = l + 1; c < h && i[c] >= t;) c++;\n              for (u = l, s = c - 1; u < s; u++, s--) o = e[u], e[u] = e[s], e[s] = o, n && (o = n[u], n[u] = n[s], n[s] = o);\n              l = c;\n            }\n            l++;\n          }\n        }\n      },\n      x = function (t, e, r) {\n        var n = t.split(\"\"),\n          i = {\n            hiLevel: v\n          };\n        return r || (r = []), L(n, r, i), function (t, e, r) {\n          if (0 !== r.hiLevel && c) for (var n, i = 0; i < t.length; i++) 1 === e[i] && (n = p.indexOf(t[i])) >= 0 && (t[i] = p[n + 1]);\n        }(n, r, i), A(2, n, e, r, i), A(1, n, e, r, i), n.join(\"\");\n      };\n    return this.__bidiEngine__.doBidiReorder = function (t, e, r) {\n      if (function (t, e) {\n        if (e) for (var r = 0; r < t.length; r++) e[r] = r;\n        void 0 === a && (a = y(t)), void 0 === s && (s = y(t));\n      }(t, e), i || !o || s) {\n        if (i && o && a ^ s) v = a ? 1 : 0, t = N(t, e, r);else if (!i && o && s) v = a ? 1 : 0, t = x(t, e, r), t = N(t, e);else if (!i || a || o || s) {\n          if (i && !o && a ^ s) t = N(t, e), a ? (v = 0, t = x(t, e, r)) : (v = 1, t = x(t, e, r), t = N(t, e));else if (i && a && !o && s) v = 1, t = x(t, e, r), t = N(t, e);else if (!i && !o && a ^ s) {\n            var n = c;\n            a ? (v = 1, t = x(t, e, r), v = 0, c = !1, t = x(t, e, r), c = n) : (v = 0, t = x(t, e, r), t = N(t, e), v = 1, c = !1, t = x(t, e, r), c = n, t = N(t, e));\n          }\n        } else v = 0, t = x(t, e, r);\n      } else v = a ? 1 : 0, t = x(t, e, r);\n      return t;\n    }, this.__bidiEngine__.setOptions = function (t) {\n      t && (i = t.isInputVisual, o = t.isOutputVisual, a = t.isInputRtl, s = t.isOutputRtl, c = t.isSymmetricSwapping);\n    }, this.__bidiEngine__.setOptions(t), this.__bidiEngine__;\n  };\n  var e = [\"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"S\", \"B\", \"S\", \"WS\", \"B\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"B\", \"B\", \"B\", \"S\", \"WS\", \"N\", \"N\", \"ET\", \"ET\", \"ET\", \"N\", \"N\", \"N\", \"N\", \"N\", \"ES\", \"CS\", \"ES\", \"CS\", \"CS\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"CS\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"N\", \"N\", \"N\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"B\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"CS\", \"N\", \"ET\", \"ET\", \"ET\", \"ET\", \"N\", \"N\", \"N\", \"N\", \"L\", \"N\", \"N\", \"BN\", \"N\", \"N\", \"ET\", \"ET\", \"EN\", \"EN\", \"N\", \"L\", \"N\", \"N\", \"N\", \"EN\", \"L\", \"N\", \"N\", \"N\", \"N\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"L\", \"N\", \"N\", \"N\", \"N\", \"N\", \"ET\", \"N\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"R\", \"NSM\", \"R\", \"NSM\", \"NSM\", \"R\", \"NSM\", \"NSM\", \"R\", \"NSM\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"N\", \"N\", \"N\", \"N\", \"N\", \"R\", \"R\", \"R\", \"R\", \"R\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"AN\", \"AN\", \"AN\", \"AN\", \"AN\", \"AN\", \"N\", \"N\", \"AL\", \"ET\", \"ET\", \"AL\", \"CS\", \"AL\", \"N\", \"N\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"AL\", \"AL\", \"N\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"AN\", \"AN\", \"AN\", \"AN\", \"AN\", \"AN\", \"AN\", \"AN\", \"AN\", \"AN\", \"ET\", \"AN\", \"AN\", \"AL\", \"AL\", \"AL\", \"NSM\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"AN\", \"N\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"AL\", \"AL\", \"NSM\", \"NSM\", \"N\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"AL\", \"AL\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"N\", \"AL\", \"AL\", \"NSM\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"N\", \"N\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"AL\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"R\", \"R\", \"N\", \"N\", \"N\", \"N\", \"R\", \"N\", \"N\", \"N\", \"N\", \"N\", \"WS\", \"WS\", \"WS\", \"WS\", \"WS\", \"WS\", \"WS\", \"WS\", \"WS\", \"WS\", \"WS\", \"BN\", \"BN\", \"BN\", \"L\", \"R\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"WS\", \"B\", \"LRE\", \"RLE\", \"PDF\", \"LRO\", \"RLO\", \"CS\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"CS\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"WS\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"N\", \"LRI\", \"RLI\", \"FSI\", \"PDI\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"BN\", \"EN\", \"L\", \"N\", \"N\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"ES\", \"ES\", \"N\", \"N\", \"N\", \"L\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"ES\", \"ES\", \"N\", \"N\", \"N\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"N\", \"N\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"ET\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"N\", \"N\", \"N\", \"N\", \"R\", \"NSM\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"ES\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"N\", \"R\", \"R\", \"R\", \"R\", \"R\", \"N\", \"R\", \"N\", \"R\", \"R\", \"N\", \"R\", \"R\", \"N\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"R\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"NSM\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"CS\", \"N\", \"CS\", \"N\", \"N\", \"CS\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"ET\", \"N\", \"N\", \"ES\", \"ES\", \"N\", \"N\", \"N\", \"N\", \"N\", \"ET\", \"ET\", \"N\", \"N\", \"N\", \"N\", \"N\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"N\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"AL\", \"N\", \"N\", \"BN\", \"N\", \"N\", \"N\", \"ET\", \"ET\", \"ET\", \"N\", \"N\", \"N\", \"N\", \"N\", \"ES\", \"CS\", \"ES\", \"CS\", \"CS\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"EN\", \"CS\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"N\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"N\", \"L\", \"L\", \"L\", \"L\", \"L\", \"L\", \"N\", \"N\", \"L\", \"L\", \"L\", \"N\", \"N\", \"N\", \"ET\", \"ET\", \"N\", \"N\", \"N\", \"ET\", \"ET\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\", \"N\"],\n    r = new t.__bidiEngine__({\n      isInputVisual: !0\n    });\n  t.API.events.push([\"postProcessText\", function (t) {\n    var e = t.text,\n      n = (t.x, t.y, t.options || {}),\n      i = (t.mutex, n.lang, []);\n    if (n.isInputVisual = \"boolean\" != typeof n.isInputVisual || n.isInputVisual, r.setOptions(n), \"[object Array]\" === Object.prototype.toString.call(e)) {\n      var a = 0;\n      for (i = [], a = 0; a < e.length; a += 1) \"[object Array]\" === Object.prototype.toString.call(e[a]) ? i.push([r.doBidiReorder(e[a][0]), e[a][1], e[a][2]]) : i.push([r.doBidiReorder(e[a])]);\n      t.text = i;\n    } else t.text = r.doBidiReorder(e);\n    r.setOptions({\n      isInputVisual: !0\n    });\n  }]);\n}(E), E.API.TTFFont = function () {\n  function t(t) {\n    var e;\n    if (this.rawData = t, e = this.contents = new ne(t), this.contents.pos = 4, \"ttcf\" === e.readString(4)) throw new Error(\"TTCF not supported.\");\n    e.pos = 0, this.parse(), this.subset = new Le(this), this.registerTTF();\n  }\n  return t.open = function (e) {\n    return new t(e);\n  }, t.prototype.parse = function () {\n    return this.directory = new ie(this.contents), this.head = new se(this), this.name = new pe(this), this.cmap = new ue(this), this.toUnicode = {}, this.hhea = new he(this), this.maxp = new ge(this), this.hmtx = new me(this), this.post = new fe(this), this.os2 = new le(this), this.loca = new Ne(this), this.glyf = new be(this), this.ascender = this.os2.exists && this.os2.ascender || this.hhea.ascender, this.decender = this.os2.exists && this.os2.decender || this.hhea.decender, this.lineGap = this.os2.exists && this.os2.lineGap || this.hhea.lineGap, this.bbox = [this.head.xMin, this.head.yMin, this.head.xMax, this.head.yMax];\n  }, t.prototype.registerTTF = function () {\n    var t, e, r, n, i;\n    if (this.scaleFactor = 1e3 / this.head.unitsPerEm, this.bbox = function () {\n      var e, r, n, i;\n      for (i = [], e = 0, r = (n = this.bbox).length; e < r; e++) t = n[e], i.push(Math.round(t * this.scaleFactor));\n      return i;\n    }.call(this), this.stemV = 0, this.post.exists ? (r = 255 & (n = this.post.italic_angle), 0 != (32768 & (e = n >> 16)) && (e = -(1 + (65535 ^ e))), this.italicAngle = +(e + \".\" + r)) : this.italicAngle = 0, this.ascender = Math.round(this.ascender * this.scaleFactor), this.decender = Math.round(this.decender * this.scaleFactor), this.lineGap = Math.round(this.lineGap * this.scaleFactor), this.capHeight = this.os2.exists && this.os2.capHeight || this.ascender, this.xHeight = this.os2.exists && this.os2.xHeight || 0, this.familyClass = (this.os2.exists && this.os2.familyClass || 0) >> 8, this.isSerif = 1 === (i = this.familyClass) || 2 === i || 3 === i || 4 === i || 5 === i || 7 === i, this.isScript = 10 === this.familyClass, this.flags = 0, this.post.isFixedPitch && (this.flags |= 1), this.isSerif && (this.flags |= 2), this.isScript && (this.flags |= 8), 0 !== this.italicAngle && (this.flags |= 64), this.flags |= 32, !this.cmap.unicode) throw new Error(\"No unicode cmap for font\");\n  }, t.prototype.characterToGlyph = function (t) {\n    var e;\n    return (null != (e = this.cmap.unicode) ? e.codeMap[t] : void 0) || 0;\n  }, t.prototype.widthOfGlyph = function (t) {\n    var e;\n    return e = 1e3 / this.head.unitsPerEm, this.hmtx.forGlyph(t).advance * e;\n  }, t.prototype.widthOfString = function (t, e, r) {\n    var n, i, a, o;\n    for (a = 0, i = 0, o = (t = \"\" + t).length; 0 <= o ? i < o : i > o; i = 0 <= o ? ++i : --i) n = t.charCodeAt(i), a += this.widthOfGlyph(this.characterToGlyph(n)) + r * (1e3 / e) || 0;\n    return a * (e / 1e3);\n  }, t.prototype.lineHeight = function (t, e) {\n    var r;\n    return null == e && (e = !1), r = e ? this.lineGap : 0, (this.ascender + r - this.decender) / 1e3 * t;\n  }, t;\n}();\nvar re,\n  ne = function () {\n    function t(t) {\n      this.data = null != t ? t : [], this.pos = 0, this.length = this.data.length;\n    }\n    return t.prototype.readByte = function () {\n      return this.data[this.pos++];\n    }, t.prototype.writeByte = function (t) {\n      return this.data[this.pos++] = t;\n    }, t.prototype.readUInt32 = function () {\n      return 16777216 * this.readByte() + (this.readByte() << 16) + (this.readByte() << 8) + this.readByte();\n    }, t.prototype.writeUInt32 = function (t) {\n      return this.writeByte(t >>> 24 & 255), this.writeByte(t >> 16 & 255), this.writeByte(t >> 8 & 255), this.writeByte(255 & t);\n    }, t.prototype.readInt32 = function () {\n      var t;\n      return (t = this.readUInt32()) >= 2147483648 ? t - 4294967296 : t;\n    }, t.prototype.writeInt32 = function (t) {\n      return t < 0 && (t += 4294967296), this.writeUInt32(t);\n    }, t.prototype.readUInt16 = function () {\n      return this.readByte() << 8 | this.readByte();\n    }, t.prototype.writeUInt16 = function (t) {\n      return this.writeByte(t >> 8 & 255), this.writeByte(255 & t);\n    }, t.prototype.readInt16 = function () {\n      var t;\n      return (t = this.readUInt16()) >= 32768 ? t - 65536 : t;\n    }, t.prototype.writeInt16 = function (t) {\n      return t < 0 && (t += 65536), this.writeUInt16(t);\n    }, t.prototype.readString = function (t) {\n      var e, r;\n      for (r = [], e = 0; 0 <= t ? e < t : e > t; e = 0 <= t ? ++e : --e) r[e] = String.fromCharCode(this.readByte());\n      return r.join(\"\");\n    }, t.prototype.writeString = function (t) {\n      var e, r, n;\n      for (n = [], e = 0, r = t.length; 0 <= r ? e < r : e > r; e = 0 <= r ? ++e : --e) n.push(this.writeByte(t.charCodeAt(e)));\n      return n;\n    }, t.prototype.readShort = function () {\n      return this.readInt16();\n    }, t.prototype.writeShort = function (t) {\n      return this.writeInt16(t);\n    }, t.prototype.readLongLong = function () {\n      var t, e, r, n, i, a, o, s;\n      return t = this.readByte(), e = this.readByte(), r = this.readByte(), n = this.readByte(), i = this.readByte(), a = this.readByte(), o = this.readByte(), s = this.readByte(), 128 & t ? -1 * (72057594037927940 * (255 ^ t) + 281474976710656 * (255 ^ e) + 1099511627776 * (255 ^ r) + 4294967296 * (255 ^ n) + 16777216 * (255 ^ i) + 65536 * (255 ^ a) + 256 * (255 ^ o) + (255 ^ s) + 1) : 72057594037927940 * t + 281474976710656 * e + 1099511627776 * r + 4294967296 * n + 16777216 * i + 65536 * a + 256 * o + s;\n    }, t.prototype.writeLongLong = function (t) {\n      var e, r;\n      return e = Math.floor(t / 4294967296), r = 4294967295 & t, this.writeByte(e >> 24 & 255), this.writeByte(e >> 16 & 255), this.writeByte(e >> 8 & 255), this.writeByte(255 & e), this.writeByte(r >> 24 & 255), this.writeByte(r >> 16 & 255), this.writeByte(r >> 8 & 255), this.writeByte(255 & r);\n    }, t.prototype.readInt = function () {\n      return this.readInt32();\n    }, t.prototype.writeInt = function (t) {\n      return this.writeInt32(t);\n    }, t.prototype.read = function (t) {\n      var e, r;\n      for (e = [], r = 0; 0 <= t ? r < t : r > t; r = 0 <= t ? ++r : --r) e.push(this.readByte());\n      return e;\n    }, t.prototype.write = function (t) {\n      var e, r, n, i;\n      for (i = [], r = 0, n = t.length; r < n; r++) e = t[r], i.push(this.writeByte(e));\n      return i;\n    }, t;\n  }(),\n  ie = function () {\n    var t;\n    function e(t) {\n      var e, r, n;\n      for (this.scalarType = t.readInt(), this.tableCount = t.readShort(), this.searchRange = t.readShort(), this.entrySelector = t.readShort(), this.rangeShift = t.readShort(), this.tables = {}, r = 0, n = this.tableCount; 0 <= n ? r < n : r > n; r = 0 <= n ? ++r : --r) e = {\n        tag: t.readString(4),\n        checksum: t.readInt(),\n        offset: t.readInt(),\n        length: t.readInt()\n      }, this.tables[e.tag] = e;\n    }\n    return e.prototype.encode = function (e) {\n      var r, n, i, a, o, s, c, u, h, l, f, d, p;\n      for (p in f = Object.keys(e).length, s = Math.log(2), h = 16 * Math.floor(Math.log(f) / s), a = Math.floor(h / s), u = 16 * f - h, (n = new ne()).writeInt(this.scalarType), n.writeShort(f), n.writeShort(h), n.writeShort(a), n.writeShort(u), i = 16 * f, c = n.pos + i, o = null, d = [], e) for (l = e[p], n.writeString(p), n.writeInt(t(l)), n.writeInt(c), n.writeInt(l.length), d = d.concat(l), \"head\" === p && (o = c), c += l.length; c % 4;) d.push(0), c++;\n      return n.write(d), r = 2981146554 - t(n.data), n.pos = o + 8, n.writeUInt32(r), n.data;\n    }, t = function (t) {\n      var e, r, n, i;\n      for (t = ve.call(t); t.length % 4;) t.push(0);\n      for (n = new ne(t), r = 0, e = 0, i = t.length; e < i; e = e += 4) r += n.readUInt32();\n      return 4294967295 & r;\n    }, e;\n  }(),\n  ae = {}.hasOwnProperty,\n  oe = function (t, e) {\n    for (var r in e) ae.call(e, r) && (t[r] = e[r]);\n    function n() {\n      this.constructor = t;\n    }\n    return n.prototype = e.prototype, t.prototype = new n(), t.__super__ = e.prototype, t;\n  };\nre = function () {\n  function t(t) {\n    var e;\n    this.file = t, e = this.file.directory.tables[this.tag], this.exists = !!e, e && (this.offset = e.offset, this.length = e.length, this.parse(this.file.contents));\n  }\n  return t.prototype.parse = function () {}, t.prototype.encode = function () {}, t.prototype.raw = function () {\n    return this.exists ? (this.file.contents.pos = this.offset, this.file.contents.read(this.length)) : null;\n  }, t;\n}();\nvar se = function (t) {\n    function e() {\n      return e.__super__.constructor.apply(this, arguments);\n    }\n    return oe(e, re), e.prototype.tag = \"head\", e.prototype.parse = function (t) {\n      return t.pos = this.offset, this.version = t.readInt(), this.revision = t.readInt(), this.checkSumAdjustment = t.readInt(), this.magicNumber = t.readInt(), this.flags = t.readShort(), this.unitsPerEm = t.readShort(), this.created = t.readLongLong(), this.modified = t.readLongLong(), this.xMin = t.readShort(), this.yMin = t.readShort(), this.xMax = t.readShort(), this.yMax = t.readShort(), this.macStyle = t.readShort(), this.lowestRecPPEM = t.readShort(), this.fontDirectionHint = t.readShort(), this.indexToLocFormat = t.readShort(), this.glyphDataFormat = t.readShort();\n    }, e.prototype.encode = function (t) {\n      var e;\n      return (e = new ne()).writeInt(this.version), e.writeInt(this.revision), e.writeInt(this.checkSumAdjustment), e.writeInt(this.magicNumber), e.writeShort(this.flags), e.writeShort(this.unitsPerEm), e.writeLongLong(this.created), e.writeLongLong(this.modified), e.writeShort(this.xMin), e.writeShort(this.yMin), e.writeShort(this.xMax), e.writeShort(this.yMax), e.writeShort(this.macStyle), e.writeShort(this.lowestRecPPEM), e.writeShort(this.fontDirectionHint), e.writeShort(t), e.writeShort(this.glyphDataFormat), e.data;\n    }, e;\n  }(),\n  ce = function () {\n    function t(t, e) {\n      var r, n, i, a, o, s, c, u, h, l, f, d, p, g, m, v, b;\n      switch (this.platformID = t.readUInt16(), this.encodingID = t.readShort(), this.offset = e + t.readInt(), h = t.pos, t.pos = this.offset, this.format = t.readUInt16(), this.length = t.readUInt16(), this.language = t.readUInt16(), this.isUnicode = 3 === this.platformID && 1 === this.encodingID && 4 === this.format || 0 === this.platformID && 4 === this.format, this.codeMap = {}, this.format) {\n        case 0:\n          for (s = 0; s < 256; ++s) this.codeMap[s] = t.readByte();\n          break;\n        case 4:\n          for (f = t.readUInt16(), l = f / 2, t.pos += 6, i = function () {\n            var e, r;\n            for (r = [], s = e = 0; 0 <= l ? e < l : e > l; s = 0 <= l ? ++e : --e) r.push(t.readUInt16());\n            return r;\n          }(), t.pos += 2, p = function () {\n            var e, r;\n            for (r = [], s = e = 0; 0 <= l ? e < l : e > l; s = 0 <= l ? ++e : --e) r.push(t.readUInt16());\n            return r;\n          }(), c = function () {\n            var e, r;\n            for (r = [], s = e = 0; 0 <= l ? e < l : e > l; s = 0 <= l ? ++e : --e) r.push(t.readUInt16());\n            return r;\n          }(), u = function () {\n            var e, r;\n            for (r = [], s = e = 0; 0 <= l ? e < l : e > l; s = 0 <= l ? ++e : --e) r.push(t.readUInt16());\n            return r;\n          }(), n = (this.length - t.pos + this.offset) / 2, o = function () {\n            var e, r;\n            for (r = [], s = e = 0; 0 <= n ? e < n : e > n; s = 0 <= n ? ++e : --e) r.push(t.readUInt16());\n            return r;\n          }(), s = m = 0, b = i.length; m < b; s = ++m) for (g = i[s], r = v = d = p[s]; d <= g ? v <= g : v >= g; r = d <= g ? ++v : --v) 0 === u[s] ? a = r + c[s] : 0 !== (a = o[u[s] / 2 + (r - d) - (l - s)] || 0) && (a += c[s]), this.codeMap[r] = 65535 & a;\n      }\n      t.pos = h;\n    }\n    return t.encode = function (t, e) {\n      var r, n, i, a, o, s, c, u, h, l, f, d, p, g, m, v, b, y, w, N, L, A, x, S, _, P, k, I, F, C, j, O, B, M, E, q, D, R, T, U, z, H, W, V, G, Y;\n      switch (I = new ne(), a = Object.keys(t).sort(function (t, e) {\n        return t - e;\n      }), e) {\n        case \"macroman\":\n          for (p = 0, g = function () {\n            var t = [];\n            for (d = 0; d < 256; ++d) t.push(0);\n            return t;\n          }(), v = {\n            0: 0\n          }, i = {}, F = 0, B = a.length; F < B; F++) null == v[W = t[n = a[F]]] && (v[W] = ++p), i[n] = {\n            old: t[n],\n            new: v[t[n]]\n          }, g[n] = v[t[n]];\n          return I.writeUInt16(1), I.writeUInt16(0), I.writeUInt32(12), I.writeUInt16(0), I.writeUInt16(262), I.writeUInt16(0), I.write(g), {\n            charMap: i,\n            subtable: I.data,\n            maxGlyphID: p + 1\n          };\n        case \"unicode\":\n          for (P = [], h = [], b = 0, v = {}, r = {}, m = c = null, C = 0, M = a.length; C < M; C++) null == v[w = t[n = a[C]]] && (v[w] = ++b), r[n] = {\n            old: w,\n            new: v[w]\n          }, o = v[w] - n, null != m && o === c || (m && h.push(m), P.push(n), c = o), m = n;\n          for (m && h.push(m), h.push(65535), P.push(65535), S = 2 * (x = P.length), A = 2 * Math.pow(Math.log(x) / Math.LN2, 2), l = Math.log(A / 2) / Math.LN2, L = 2 * x - A, s = [], N = [], f = [], d = j = 0, E = P.length; j < E; d = ++j) {\n            if (_ = P[d], u = h[d], 65535 === _) {\n              s.push(0), N.push(0);\n              break;\n            }\n            if (_ - (k = r[_].new) >= 32768) for (s.push(0), N.push(2 * (f.length + x - d)), n = O = _; _ <= u ? O <= u : O >= u; n = _ <= u ? ++O : --O) f.push(r[n].new);else s.push(k - _), N.push(0);\n          }\n          for (I.writeUInt16(3), I.writeUInt16(1), I.writeUInt32(12), I.writeUInt16(4), I.writeUInt16(16 + 8 * x + 2 * f.length), I.writeUInt16(0), I.writeUInt16(S), I.writeUInt16(A), I.writeUInt16(l), I.writeUInt16(L), z = 0, q = h.length; z < q; z++) n = h[z], I.writeUInt16(n);\n          for (I.writeUInt16(0), H = 0, D = P.length; H < D; H++) n = P[H], I.writeUInt16(n);\n          for (V = 0, R = s.length; V < R; V++) o = s[V], I.writeUInt16(o);\n          for (G = 0, T = N.length; G < T; G++) y = N[G], I.writeUInt16(y);\n          for (Y = 0, U = f.length; Y < U; Y++) p = f[Y], I.writeUInt16(p);\n          return {\n            charMap: r,\n            subtable: I.data,\n            maxGlyphID: b + 1\n          };\n      }\n    }, t;\n  }(),\n  ue = function (t) {\n    function e() {\n      return e.__super__.constructor.apply(this, arguments);\n    }\n    return oe(e, re), e.prototype.tag = \"cmap\", e.prototype.parse = function (t) {\n      var e, r, n;\n      for (t.pos = this.offset, this.version = t.readUInt16(), n = t.readUInt16(), this.tables = [], this.unicode = null, r = 0; 0 <= n ? r < n : r > n; r = 0 <= n ? ++r : --r) e = new ce(t, this.offset), this.tables.push(e), e.isUnicode && null == this.unicode && (this.unicode = e);\n      return !0;\n    }, e.encode = function (t, e) {\n      var r, n;\n      return null == e && (e = \"macroman\"), r = ce.encode(t, e), (n = new ne()).writeUInt16(0), n.writeUInt16(1), r.table = n.data.concat(r.subtable), r;\n    }, e;\n  }(),\n  he = function (t) {\n    function e() {\n      return e.__super__.constructor.apply(this, arguments);\n    }\n    return oe(e, re), e.prototype.tag = \"hhea\", e.prototype.parse = function (t) {\n      return t.pos = this.offset, this.version = t.readInt(), this.ascender = t.readShort(), this.decender = t.readShort(), this.lineGap = t.readShort(), this.advanceWidthMax = t.readShort(), this.minLeftSideBearing = t.readShort(), this.minRightSideBearing = t.readShort(), this.xMaxExtent = t.readShort(), this.caretSlopeRise = t.readShort(), this.caretSlopeRun = t.readShort(), this.caretOffset = t.readShort(), t.pos += 8, this.metricDataFormat = t.readShort(), this.numberOfMetrics = t.readUInt16();\n    }, e;\n  }(),\n  le = function (t) {\n    function e() {\n      return e.__super__.constructor.apply(this, arguments);\n    }\n    return oe(e, re), e.prototype.tag = \"OS/2\", e.prototype.parse = function (t) {\n      if (t.pos = this.offset, this.version = t.readUInt16(), this.averageCharWidth = t.readShort(), this.weightClass = t.readUInt16(), this.widthClass = t.readUInt16(), this.type = t.readShort(), this.ySubscriptXSize = t.readShort(), this.ySubscriptYSize = t.readShort(), this.ySubscriptXOffset = t.readShort(), this.ySubscriptYOffset = t.readShort(), this.ySuperscriptXSize = t.readShort(), this.ySuperscriptYSize = t.readShort(), this.ySuperscriptXOffset = t.readShort(), this.ySuperscriptYOffset = t.readShort(), this.yStrikeoutSize = t.readShort(), this.yStrikeoutPosition = t.readShort(), this.familyClass = t.readShort(), this.panose = function () {\n        var e, r;\n        for (r = [], e = 0; e < 10; ++e) r.push(t.readByte());\n        return r;\n      }(), this.charRange = function () {\n        var e, r;\n        for (r = [], e = 0; e < 4; ++e) r.push(t.readInt());\n        return r;\n      }(), this.vendorID = t.readString(4), this.selection = t.readShort(), this.firstCharIndex = t.readShort(), this.lastCharIndex = t.readShort(), this.version > 0 && (this.ascent = t.readShort(), this.descent = t.readShort(), this.lineGap = t.readShort(), this.winAscent = t.readShort(), this.winDescent = t.readShort(), this.codePageRange = function () {\n        var e, r;\n        for (r = [], e = 0; e < 2; e = ++e) r.push(t.readInt());\n        return r;\n      }(), this.version > 1)) return this.xHeight = t.readShort(), this.capHeight = t.readShort(), this.defaultChar = t.readShort(), this.breakChar = t.readShort(), this.maxContext = t.readShort();\n    }, e;\n  }(),\n  fe = function (t) {\n    function e() {\n      return e.__super__.constructor.apply(this, arguments);\n    }\n    return oe(e, re), e.prototype.tag = \"post\", e.prototype.parse = function (t) {\n      var e, r, n;\n      switch (t.pos = this.offset, this.format = t.readInt(), this.italicAngle = t.readInt(), this.underlinePosition = t.readShort(), this.underlineThickness = t.readShort(), this.isFixedPitch = t.readInt(), this.minMemType42 = t.readInt(), this.maxMemType42 = t.readInt(), this.minMemType1 = t.readInt(), this.maxMemType1 = t.readInt(), this.format) {\n        case 65536:\n          break;\n        case 131072:\n          var i;\n          for (r = t.readUInt16(), this.glyphNameIndex = [], i = 0; 0 <= r ? i < r : i > r; i = 0 <= r ? ++i : --i) this.glyphNameIndex.push(t.readUInt16());\n          for (this.names = [], n = []; t.pos < this.offset + this.length;) e = t.readByte(), n.push(this.names.push(t.readString(e)));\n          return n;\n        case 151552:\n          return r = t.readUInt16(), this.offsets = t.read(r);\n        case 196608:\n          break;\n        case 262144:\n          return this.map = function () {\n            var e, r, n;\n            for (n = [], i = e = 0, r = this.file.maxp.numGlyphs; 0 <= r ? e < r : e > r; i = 0 <= r ? ++e : --e) n.push(t.readUInt32());\n            return n;\n          }.call(this);\n      }\n    }, e;\n  }(),\n  de = function (t, e) {\n    this.raw = t, this.length = t.length, this.platformID = e.platformID, this.encodingID = e.encodingID, this.languageID = e.languageID;\n  },\n  pe = function (t) {\n    function e() {\n      return e.__super__.constructor.apply(this, arguments);\n    }\n    return oe(e, re), e.prototype.tag = \"name\", e.prototype.parse = function (t) {\n      var e, r, n, i, a, o, s, c, u, h, l;\n      for (t.pos = this.offset, t.readShort(), e = t.readShort(), o = t.readShort(), r = [], i = 0; 0 <= e ? i < e : i > e; i = 0 <= e ? ++i : --i) r.push({\n        platformID: t.readShort(),\n        encodingID: t.readShort(),\n        languageID: t.readShort(),\n        nameID: t.readShort(),\n        length: t.readShort(),\n        offset: this.offset + o + t.readShort()\n      });\n      for (s = {}, i = u = 0, h = r.length; u < h; i = ++u) n = r[i], t.pos = n.offset, c = t.readString(n.length), a = new de(c, n), null == s[l = n.nameID] && (s[l] = []), s[n.nameID].push(a);\n      this.strings = s, this.copyright = s[0], this.fontFamily = s[1], this.fontSubfamily = s[2], this.uniqueSubfamily = s[3], this.fontName = s[4], this.version = s[5];\n      try {\n        this.postscriptName = s[6][0].raw.replace(/[\\x00-\\x19\\x80-\\xff]/g, \"\");\n      } catch (t) {\n        this.postscriptName = s[4][0].raw.replace(/[\\x00-\\x19\\x80-\\xff]/g, \"\");\n      }\n      return this.trademark = s[7], this.manufacturer = s[8], this.designer = s[9], this.description = s[10], this.vendorUrl = s[11], this.designerUrl = s[12], this.license = s[13], this.licenseUrl = s[14], this.preferredFamily = s[15], this.preferredSubfamily = s[17], this.compatibleFull = s[18], this.sampleText = s[19];\n    }, e;\n  }(),\n  ge = function (t) {\n    function e() {\n      return e.__super__.constructor.apply(this, arguments);\n    }\n    return oe(e, re), e.prototype.tag = \"maxp\", e.prototype.parse = function (t) {\n      return t.pos = this.offset, this.version = t.readInt(), this.numGlyphs = t.readUInt16(), this.maxPoints = t.readUInt16(), this.maxContours = t.readUInt16(), this.maxCompositePoints = t.readUInt16(), this.maxComponentContours = t.readUInt16(), this.maxZones = t.readUInt16(), this.maxTwilightPoints = t.readUInt16(), this.maxStorage = t.readUInt16(), this.maxFunctionDefs = t.readUInt16(), this.maxInstructionDefs = t.readUInt16(), this.maxStackElements = t.readUInt16(), this.maxSizeOfInstructions = t.readUInt16(), this.maxComponentElements = t.readUInt16(), this.maxComponentDepth = t.readUInt16();\n    }, e;\n  }(),\n  me = function (t) {\n    function e() {\n      return e.__super__.constructor.apply(this, arguments);\n    }\n    return oe(e, re), e.prototype.tag = \"hmtx\", e.prototype.parse = function (t) {\n      var e, r, n, i, a, o, s;\n      for (t.pos = this.offset, this.metrics = [], e = 0, o = this.file.hhea.numberOfMetrics; 0 <= o ? e < o : e > o; e = 0 <= o ? ++e : --e) this.metrics.push({\n        advance: t.readUInt16(),\n        lsb: t.readInt16()\n      });\n      for (n = this.file.maxp.numGlyphs - this.file.hhea.numberOfMetrics, this.leftSideBearings = function () {\n        var r, i;\n        for (i = [], e = r = 0; 0 <= n ? r < n : r > n; e = 0 <= n ? ++r : --r) i.push(t.readInt16());\n        return i;\n      }(), this.widths = function () {\n        var t, e, r, n;\n        for (n = [], t = 0, e = (r = this.metrics).length; t < e; t++) i = r[t], n.push(i.advance);\n        return n;\n      }.call(this), r = this.widths[this.widths.length - 1], s = [], e = a = 0; 0 <= n ? a < n : a > n; e = 0 <= n ? ++a : --a) s.push(this.widths.push(r));\n      return s;\n    }, e.prototype.forGlyph = function (t) {\n      return t in this.metrics ? this.metrics[t] : {\n        advance: this.metrics[this.metrics.length - 1].advance,\n        lsb: this.leftSideBearings[t - this.metrics.length]\n      };\n    }, e;\n  }(),\n  ve = [].slice,\n  be = function (t) {\n    function e() {\n      return e.__super__.constructor.apply(this, arguments);\n    }\n    return oe(e, re), e.prototype.tag = \"glyf\", e.prototype.parse = function () {\n      return this.cache = {};\n    }, e.prototype.glyphFor = function (t) {\n      var e, r, n, i, a, o, s, c, u, h;\n      return t in this.cache ? this.cache[t] : (i = this.file.loca, e = this.file.contents, r = i.indexOf(t), 0 === (n = i.lengthOf(t)) ? this.cache[t] = null : (e.pos = this.offset + r, a = (o = new ne(e.read(n))).readShort(), c = o.readShort(), h = o.readShort(), s = o.readShort(), u = o.readShort(), this.cache[t] = -1 === a ? new we(o, c, h, s, u) : new ye(o, a, c, h, s, u), this.cache[t]));\n    }, e.prototype.encode = function (t, e, r) {\n      var n, i, a, o, s;\n      for (a = [], i = [], o = 0, s = e.length; o < s; o++) n = t[e[o]], i.push(a.length), n && (a = a.concat(n.encode(r)));\n      return i.push(a.length), {\n        table: a,\n        offsets: i\n      };\n    }, e;\n  }(),\n  ye = function () {\n    function t(t, e, r, n, i, a) {\n      this.raw = t, this.numberOfContours = e, this.xMin = r, this.yMin = n, this.xMax = i, this.yMax = a, this.compound = !1;\n    }\n    return t.prototype.encode = function () {\n      return this.raw.data;\n    }, t;\n  }(),\n  we = function () {\n    function t(t, e, r, n, i) {\n      var a, o;\n      for (this.raw = t, this.xMin = e, this.yMin = r, this.xMax = n, this.yMax = i, this.compound = !0, this.glyphIDs = [], this.glyphOffsets = [], a = this.raw; o = a.readShort(), this.glyphOffsets.push(a.pos), this.glyphIDs.push(a.readUInt16()), 32 & o;) a.pos += 1 & o ? 4 : 2, 128 & o ? a.pos += 8 : 64 & o ? a.pos += 4 : 8 & o && (a.pos += 2);\n    }\n    return 1, 8, 32, 64, 128, t.prototype.encode = function () {\n      var t, e, r;\n      for (e = new ne(ve.call(this.raw.data)), t = 0, r = this.glyphIDs.length; t < r; ++t) e.pos = this.glyphOffsets[t];\n      return e.data;\n    }, t;\n  }(),\n  Ne = function (t) {\n    function e() {\n      return e.__super__.constructor.apply(this, arguments);\n    }\n    return oe(e, re), e.prototype.tag = \"loca\", e.prototype.parse = function (t) {\n      var e, r;\n      return t.pos = this.offset, e = this.file.head.indexToLocFormat, this.offsets = 0 === e ? function () {\n        var e, n;\n        for (n = [], r = 0, e = this.length; r < e; r += 2) n.push(2 * t.readUInt16());\n        return n;\n      }.call(this) : function () {\n        var e, n;\n        for (n = [], r = 0, e = this.length; r < e; r += 4) n.push(t.readUInt32());\n        return n;\n      }.call(this);\n    }, e.prototype.indexOf = function (t) {\n      return this.offsets[t];\n    }, e.prototype.lengthOf = function (t) {\n      return this.offsets[t + 1] - this.offsets[t];\n    }, e.prototype.encode = function (t, e) {\n      for (var r = new Uint32Array(this.offsets.length), n = 0, i = 0, a = 0; a < r.length; ++a) if (r[a] = n, i < e.length && e[i] == a) {\n        ++i, r[a] = n;\n        var o = this.offsets[a],\n          s = this.offsets[a + 1] - o;\n        s > 0 && (n += s);\n      }\n      for (var c = new Array(4 * r.length), u = 0; u < r.length; ++u) c[4 * u + 3] = 255 & r[u], c[4 * u + 2] = (65280 & r[u]) >> 8, c[4 * u + 1] = (16711680 & r[u]) >> 16, c[4 * u] = (4278190080 & r[u]) >> 24;\n      return c;\n    }, e;\n  }(),\n  Le = function () {\n    function t(t) {\n      this.font = t, this.subset = {}, this.unicodes = {}, this.next = 33;\n    }\n    return t.prototype.generateCmap = function () {\n      var t, e, r, n, i;\n      for (e in n = this.font.cmap.tables[0].codeMap, t = {}, i = this.subset) r = i[e], t[e] = n[r];\n      return t;\n    }, t.prototype.glyphsFor = function (t) {\n      var e, r, n, i, a, o, s;\n      for (n = {}, a = 0, o = t.length; a < o; a++) n[i = t[a]] = this.font.glyf.glyphFor(i);\n      for (i in e = [], n) (null != (r = n[i]) ? r.compound : void 0) && e.push.apply(e, r.glyphIDs);\n      if (e.length > 0) for (i in s = this.glyphsFor(e)) r = s[i], n[i] = r;\n      return n;\n    }, t.prototype.encode = function (t, e) {\n      var r, n, i, a, o, s, c, u, h, l, f, d, p, g, m;\n      for (n in r = ue.encode(this.generateCmap(), \"unicode\"), a = this.glyphsFor(t), f = {\n        0: 0\n      }, m = r.charMap) f[(s = m[n]).old] = s.new;\n      for (d in l = r.maxGlyphID, a) d in f || (f[d] = l++);\n      return u = function (t) {\n        var e, r;\n        for (e in r = {}, t) r[t[e]] = e;\n        return r;\n      }(f), h = Object.keys(u).sort(function (t, e) {\n        return t - e;\n      }), p = function () {\n        var t, e, r;\n        for (r = [], t = 0, e = h.length; t < e; t++) o = h[t], r.push(u[o]);\n        return r;\n      }(), i = this.font.glyf.encode(a, p, f), c = this.font.loca.encode(i.offsets, p), g = {\n        cmap: this.font.cmap.raw(),\n        glyf: i.table,\n        loca: c,\n        hmtx: this.font.hmtx.raw(),\n        hhea: this.font.hhea.raw(),\n        maxp: this.font.maxp.raw(),\n        post: this.font.post.raw(),\n        name: this.font.name.raw(),\n        head: this.font.head.encode(e)\n      }, this.font.os2.exists && (g[\"OS/2\"] = this.font.os2.raw()), this.font.directory.encode(g);\n    }, t;\n  }();\nE.API.PDFObject = function () {\n  var t;\n  function e() {}\n  return t = function (t, e) {\n    return (Array(e + 1).join(\"0\") + t).slice(-e);\n  }, e.convert = function (r) {\n    var n, i, a, o;\n    if (Array.isArray(r)) return \"[\" + function () {\n      var t, i, a;\n      for (a = [], t = 0, i = r.length; t < i; t++) n = r[t], a.push(e.convert(n));\n      return a;\n    }().join(\" \") + \"]\";\n    if (\"string\" == typeof r) return \"/\" + r;\n    if (null != r ? r.isString : void 0) return \"(\" + r + \")\";\n    if (r instanceof Date) return \"(D:\" + t(r.getUTCFullYear(), 4) + t(r.getUTCMonth(), 2) + t(r.getUTCDate(), 2) + t(r.getUTCHours(), 2) + t(r.getUTCMinutes(), 2) + t(r.getUTCSeconds(), 2) + \"Z)\";\n    if (\"[object Object]\" === {}.toString.call(r)) {\n      for (i in a = [\"<<\"], r) o = r[i], a.push(\"/\" + i + \" \" + e.convert(o));\n      return a.push(\">>\"), a.join(\"\\n\");\n    }\n    return \"\" + r;\n  }, e;\n}();\nexport default E;\nexport { St as AcroForm, At as AcroFormAppearance, mt as AcroFormButton, wt as AcroFormCheckBox, ft as AcroFormChoiceField, pt as AcroFormComboBox, gt as AcroFormEditBox, dt as AcroFormListBox, Lt as AcroFormPasswordField, vt as AcroFormPushButton, bt as AcroFormRadioButton, Nt as AcroFormTextField, j as GState, B as ShadingPattern, M as TilingPattern, E as jsPDF };\n","// DEFLATE is a complex format; to read this code, you should probably check the RFC first:\n// https://tools.ietf.org/html/rfc1951\n// You may also wish to take a look at the guide I made about this program:\n// https://gist.github.com/101arrowz/253f31eb5abc3d9275ab943003ffecad\n// Much of the following code is similar to that of UZIP.js:\n// https://github.com/photopea/UZIP.js\n// Many optimizations have been made, so the bundle size is ultimately smaller but performance is similar.\n// Sometimes 0 will appear where -1 would be more appropriate. This is because using a uint\n// is better for memory in most engines (I *think*).\n// Mediocre shim\nvar Worker;\nvar workerAdd = \";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global\";\ntry {\n  Worker = require('worker_threads').Worker;\n} catch (e) {}\nvar wk = Worker ? function (c, _, msg, transfer, cb) {\n  var done = false;\n  var w = new Worker(c + workerAdd, {\n    eval: true\n  }).on('error', function (e) {\n    return cb(e, null);\n  }).on('message', function (m) {\n    return cb(null, m);\n  }).on('exit', function (c) {\n    if (c && !done) cb(new Error('exited with code ' + c), null);\n  });\n  w.postMessage(msg, transfer);\n  w.terminate = function () {\n    done = true;\n    return Worker.prototype.terminate.call(w);\n  };\n  return w;\n} : function (_, __, ___, ____, cb) {\n  setImmediate(function () {\n    return cb(new Error('async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)'), null);\n  });\n  var NOP = function () {};\n  return {\n    terminate: NOP,\n    postMessage: NOP\n  };\n};\n\n// aliases for shorter compressed code (most minifers don't do this)\nvar u8 = Uint8Array,\n  u16 = Uint16Array,\n  u32 = Uint32Array;\n// fixed length extra bits\nvar fleb = new u8([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, /* unused */0, 0, /* impossible */0]);\n// fixed distance extra bits\n// see fleb note\nvar fdeb = new u8([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, /* unused */0, 0]);\n// code length index map\nvar clim = new u8([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]);\n// get base, reverse index map from extra bits\nvar freb = function (eb, start) {\n  var b = new u16(31);\n  for (var i = 0; i < 31; ++i) {\n    b[i] = start += 1 << eb[i - 1];\n  }\n  // numbers here are at max 18 bits\n  var r = new u32(b[30]);\n  for (var i = 1; i < 30; ++i) {\n    for (var j = b[i]; j < b[i + 1]; ++j) {\n      r[j] = j - b[i] << 5 | i;\n    }\n  }\n  return [b, r];\n};\nvar _a = freb(fleb, 2),\n  fl = _a[0],\n  revfl = _a[1];\n// we can ignore the fact that the other numbers are wrong; they never happen anyway\nfl[28] = 258, revfl[258] = 28;\nvar _b = freb(fdeb, 0),\n  fd = _b[0],\n  revfd = _b[1];\n// map of value to reverse (assuming 16 bits)\nvar rev = new u16(32768);\nfor (var i = 0; i < 32768; ++i) {\n  // reverse table algorithm from SO\n  var x = (i & 0xAAAA) >>> 1 | (i & 0x5555) << 1;\n  x = (x & 0xCCCC) >>> 2 | (x & 0x3333) << 2;\n  x = (x & 0xF0F0) >>> 4 | (x & 0x0F0F) << 4;\n  rev[i] = ((x & 0xFF00) >>> 8 | (x & 0x00FF) << 8) >>> 1;\n}\n// create huffman tree from u8 \"map\": index -> code length for code index\n// mb (max bits) must be at most 15\n// TODO: optimize/split up?\nvar hMap = function (cd, mb, r) {\n  var s = cd.length;\n  // index\n  var i = 0;\n  // u16 \"map\": index -> # of codes with bit length = index\n  var l = new u16(mb);\n  // length of cd must be 288 (total # of codes)\n  for (; i < s; ++i) ++l[cd[i] - 1];\n  // u16 \"map\": index -> minimum code for bit length = index\n  var le = new u16(mb);\n  for (i = 0; i < mb; ++i) {\n    le[i] = le[i - 1] + l[i - 1] << 1;\n  }\n  var co;\n  if (r) {\n    // u16 \"map\": index -> number of actual bits, symbol for code\n    co = new u16(1 << mb);\n    // bits to remove for reverser\n    var rvb = 15 - mb;\n    for (i = 0; i < s; ++i) {\n      // ignore 0 lengths\n      if (cd[i]) {\n        // num encoding both symbol and bits read\n        var sv = i << 4 | cd[i];\n        // free bits\n        var r_1 = mb - cd[i];\n        // start value\n        var v = le[cd[i] - 1]++ << r_1;\n        // m is end value\n        for (var m = v | (1 << r_1) - 1; v <= m; ++v) {\n          // every 16 bit value starting with the code yields the same result\n          co[rev[v] >>> rvb] = sv;\n        }\n      }\n    }\n  } else {\n    co = new u16(s);\n    for (i = 0; i < s; ++i) co[i] = rev[le[cd[i] - 1]++] >>> 15 - cd[i];\n  }\n  return co;\n};\n// fixed length tree\nvar flt = new u8(288);\nfor (var i = 0; i < 144; ++i) flt[i] = 8;\nfor (var i = 144; i < 256; ++i) flt[i] = 9;\nfor (var i = 256; i < 280; ++i) flt[i] = 7;\nfor (var i = 280; i < 288; ++i) flt[i] = 8;\n// fixed distance tree\nvar fdt = new u8(32);\nfor (var i = 0; i < 32; ++i) fdt[i] = 5;\n// fixed length map\nvar flm = /*#__PURE__*/hMap(flt, 9, 0),\n  flrm = /*#__PURE__*/hMap(flt, 9, 1);\n// fixed distance map\nvar fdm = /*#__PURE__*/hMap(fdt, 5, 0),\n  fdrm = /*#__PURE__*/hMap(fdt, 5, 1);\n// find max of array\nvar max = function (a) {\n  var m = a[0];\n  for (var i = 1; i < a.length; ++i) {\n    if (a[i] > m) m = a[i];\n  }\n  return m;\n};\n// read d, starting at bit p and mask with m\nvar bits = function (d, p, m) {\n  var o = p / 8 >> 0;\n  return (d[o] | d[o + 1] << 8) >>> (p & 7) & m;\n};\n// read d, starting at bit p continuing for at least 16 bits\nvar bits16 = function (d, p) {\n  var o = p / 8 >> 0;\n  return (d[o] | d[o + 1] << 8 | d[o + 2] << 16) >>> (p & 7);\n};\n// get end of byte\nvar shft = function (p) {\n  return (p / 8 >> 0) + (p & 7 && 1);\n};\n// typed array slice - allows garbage collector to free original reference,\n// while being more compatible than .slice\nvar slc = function (v, s, e) {\n  if (s == null || s < 0) s = 0;\n  if (e == null || e > v.length) e = v.length;\n  // can't use .constructor in case user-supplied\n  var n = new (v instanceof u16 ? u16 : v instanceof u32 ? u32 : u8)(e - s);\n  n.set(v.subarray(s, e));\n  return n;\n};\n// expands raw DEFLATE data\nvar inflt = function (dat, buf, st) {\n  // source length\n  var sl = dat.length;\n  // have to estimate size\n  var noBuf = !buf || st;\n  // no state\n  var noSt = !st || st.i;\n  if (!st) st = {};\n  // Assumes roughly 33% compression ratio average\n  if (!buf) buf = new u8(sl * 3);\n  // ensure buffer can fit at least l elements\n  var cbuf = function (l) {\n    var bl = buf.length;\n    // need to increase size to fit\n    if (l > bl) {\n      // Double or set to necessary, whichever is greater\n      var nbuf = new u8(Math.max(bl * 2, l));\n      nbuf.set(buf);\n      buf = nbuf;\n    }\n  };\n  //  last chunk         bitpos           bytes\n  var final = st.f || 0,\n    pos = st.p || 0,\n    bt = st.b || 0,\n    lm = st.l,\n    dm = st.d,\n    lbt = st.m,\n    dbt = st.n;\n  // total bits\n  var tbts = sl * 8;\n  do {\n    if (!lm) {\n      // BFINAL - this is only 1 when last chunk is next\n      st.f = final = bits(dat, pos, 1);\n      // type: 0 = no compression, 1 = fixed huffman, 2 = dynamic huffman\n      var type = bits(dat, pos + 1, 3);\n      pos += 3;\n      if (!type) {\n        // go to end of byte boundary\n        var s = shft(pos) + 4,\n          l = dat[s - 4] | dat[s - 3] << 8,\n          t = s + l;\n        if (t > sl) {\n          if (noSt) throw 'unexpected EOF';\n          break;\n        }\n        // ensure size\n        if (noBuf) cbuf(bt + l);\n        // Copy over uncompressed data\n        buf.set(dat.subarray(s, t), bt);\n        // Get new bitpos, update byte count\n        st.b = bt += l, st.p = pos = t * 8;\n        continue;\n      } else if (type == 1) lm = flrm, dm = fdrm, lbt = 9, dbt = 5;else if (type == 2) {\n        //  literal                            lengths\n        var hLit = bits(dat, pos, 31) + 257,\n          hcLen = bits(dat, pos + 10, 15) + 4;\n        var tl = hLit + bits(dat, pos + 5, 31) + 1;\n        pos += 14;\n        // length+distance tree\n        var ldt = new u8(tl);\n        // code length tree\n        var clt = new u8(19);\n        for (var i = 0; i < hcLen; ++i) {\n          // use index map to get real code\n          clt[clim[i]] = bits(dat, pos + i * 3, 7);\n        }\n        pos += hcLen * 3;\n        // code lengths bits\n        var clb = max(clt),\n          clbmsk = (1 << clb) - 1;\n        if (!noSt && pos + tl * (clb + 7) > tbts) break;\n        // code lengths map\n        var clm = hMap(clt, clb, 1);\n        for (var i = 0; i < tl;) {\n          var r = clm[bits(dat, pos, clbmsk)];\n          // bits read\n          pos += r & 15;\n          // symbol\n          var s = r >>> 4;\n          // code length to copy\n          if (s < 16) {\n            ldt[i++] = s;\n          } else {\n            //  copy   count\n            var c = 0,\n              n = 0;\n            if (s == 16) n = 3 + bits(dat, pos, 3), pos += 2, c = ldt[i - 1];else if (s == 17) n = 3 + bits(dat, pos, 7), pos += 3;else if (s == 18) n = 11 + bits(dat, pos, 127), pos += 7;\n            while (n--) ldt[i++] = c;\n          }\n        }\n        //    length tree                 distance tree\n        var lt = ldt.subarray(0, hLit),\n          dt = ldt.subarray(hLit);\n        // max length bits\n        lbt = max(lt);\n        // max dist bits\n        dbt = max(dt);\n        lm = hMap(lt, lbt, 1);\n        dm = hMap(dt, dbt, 1);\n      } else throw 'invalid block type';\n      if (pos > tbts) throw 'unexpected EOF';\n    }\n    // Make sure the buffer can hold this + the largest possible addition\n    // Maximum chunk size (practically, theoretically infinite) is 2^17;\n    if (noBuf) cbuf(bt + 131072);\n    var lms = (1 << lbt) - 1,\n      dms = (1 << dbt) - 1;\n    var mxa = lbt + dbt + 18;\n    while (noSt || pos + mxa < tbts) {\n      // bits read, code\n      var c = lm[bits16(dat, pos) & lms],\n        sym = c >>> 4;\n      pos += c & 15;\n      if (pos > tbts) throw 'unexpected EOF';\n      if (!c) throw 'invalid length/literal';\n      if (sym < 256) buf[bt++] = sym;else if (sym == 256) {\n        lm = null;\n        break;\n      } else {\n        var add = sym - 254;\n        // no extra bits needed if less\n        if (sym > 264) {\n          // index\n          var i = sym - 257,\n            b = fleb[i];\n          add = bits(dat, pos, (1 << b) - 1) + fl[i];\n          pos += b;\n        }\n        // dist\n        var d = dm[bits16(dat, pos) & dms],\n          dsym = d >>> 4;\n        if (!d) throw 'invalid distance';\n        pos += d & 15;\n        var dt = fd[dsym];\n        if (dsym > 3) {\n          var b = fdeb[dsym];\n          dt += bits16(dat, pos) & (1 << b) - 1, pos += b;\n        }\n        if (pos > tbts) throw 'unexpected EOF';\n        if (noBuf) cbuf(bt + 131072);\n        var end = bt + add;\n        for (; bt < end; bt += 4) {\n          buf[bt] = buf[bt - dt];\n          buf[bt + 1] = buf[bt + 1 - dt];\n          buf[bt + 2] = buf[bt + 2 - dt];\n          buf[bt + 3] = buf[bt + 3 - dt];\n        }\n        bt = end;\n      }\n    }\n    st.l = lm, st.p = pos, st.b = bt;\n    if (lm) final = 1, st.m = lbt, st.d = dm, st.n = dbt;\n  } while (!final);\n  return bt == buf.length ? buf : slc(buf, 0, bt);\n};\n// starting at p, write the minimum number of bits that can hold v to d\nvar wbits = function (d, p, v) {\n  v <<= p & 7;\n  var o = p / 8 >> 0;\n  d[o] |= v;\n  d[o + 1] |= v >>> 8;\n};\n// starting at p, write the minimum number of bits (>8) that can hold v to d\nvar wbits16 = function (d, p, v) {\n  v <<= p & 7;\n  var o = p / 8 >> 0;\n  d[o] |= v;\n  d[o + 1] |= v >>> 8;\n  d[o + 2] |= v >>> 16;\n};\n// creates code lengths from a frequency table\nvar hTree = function (d, mb) {\n  // Need extra info to make a tree\n  var t = [];\n  for (var i = 0; i < d.length; ++i) {\n    if (d[i]) t.push({\n      s: i,\n      f: d[i]\n    });\n  }\n  var s = t.length;\n  var t2 = t.slice();\n  if (!s) return [new u8(0), 0];\n  if (s == 1) {\n    var v = new u8(t[0].s + 1);\n    v[t[0].s] = 1;\n    return [v, 1];\n  }\n  t.sort(function (a, b) {\n    return a.f - b.f;\n  });\n  // after i2 reaches last ind, will be stopped\n  // freq must be greater than largest possible number of symbols\n  t.push({\n    s: -1,\n    f: 25001\n  });\n  var l = t[0],\n    r = t[1],\n    i0 = 0,\n    i1 = 1,\n    i2 = 2;\n  t[0] = {\n    s: -1,\n    f: l.f + r.f,\n    l: l,\n    r: r\n  };\n  // efficient algorithm from UZIP.js\n  // i0 is lookbehind, i2 is lookahead - after processing two low-freq\n  // symbols that combined have high freq, will start processing i2 (high-freq,\n  // non-composite) symbols instead\n  // see https://reddit.com/r/photopea/comments/ikekht/uzipjs_questions/\n  while (i1 != s - 1) {\n    l = t[t[i0].f < t[i2].f ? i0++ : i2++];\n    r = t[i0 != i1 && t[i0].f < t[i2].f ? i0++ : i2++];\n    t[i1++] = {\n      s: -1,\n      f: l.f + r.f,\n      l: l,\n      r: r\n    };\n  }\n  var maxSym = t2[0].s;\n  for (var i = 1; i < s; ++i) {\n    if (t2[i].s > maxSym) maxSym = t2[i].s;\n  }\n  // code lengths\n  var tr = new u16(maxSym + 1);\n  // max bits in tree\n  var mbt = ln(t[i1 - 1], tr, 0);\n  if (mbt > mb) {\n    // more algorithms from UZIP.js\n    // TODO: find out how this code works (debt)\n    //  ind    debt\n    var i = 0,\n      dt = 0;\n    //    left            cost\n    var lft = mbt - mb,\n      cst = 1 << lft;\n    t2.sort(function (a, b) {\n      return tr[b.s] - tr[a.s] || a.f - b.f;\n    });\n    for (; i < s; ++i) {\n      var i2_1 = t2[i].s;\n      if (tr[i2_1] > mb) {\n        dt += cst - (1 << mbt - tr[i2_1]);\n        tr[i2_1] = mb;\n      } else break;\n    }\n    dt >>>= lft;\n    while (dt > 0) {\n      var i2_2 = t2[i].s;\n      if (tr[i2_2] < mb) dt -= 1 << mb - tr[i2_2]++ - 1;else ++i;\n    }\n    for (; i >= 0 && dt; --i) {\n      var i2_3 = t2[i].s;\n      if (tr[i2_3] == mb) {\n        --tr[i2_3];\n        ++dt;\n      }\n    }\n    mbt = mb;\n  }\n  return [new u8(tr), mbt];\n};\n// get the max length and assign length codes\nvar ln = function (n, l, d) {\n  return n.s == -1 ? Math.max(ln(n.l, l, d + 1), ln(n.r, l, d + 1)) : l[n.s] = d;\n};\n// length codes generation\nvar lc = function (c) {\n  var s = c.length;\n  // Note that the semicolon was intentional\n  while (s && !c[--s]);\n  var cl = new u16(++s);\n  //  ind      num         streak\n  var cli = 0,\n    cln = c[0],\n    cls = 1;\n  var w = function (v) {\n    cl[cli++] = v;\n  };\n  for (var i = 1; i <= s; ++i) {\n    if (c[i] == cln && i != s) ++cls;else {\n      if (!cln && cls > 2) {\n        for (; cls > 138; cls -= 138) w(32754);\n        if (cls > 2) {\n          w(cls > 10 ? cls - 11 << 5 | 28690 : cls - 3 << 5 | 12305);\n          cls = 0;\n        }\n      } else if (cls > 3) {\n        w(cln), --cls;\n        for (; cls > 6; cls -= 6) w(8304);\n        if (cls > 2) w(cls - 3 << 5 | 8208), cls = 0;\n      }\n      while (cls--) w(cln);\n      cls = 1;\n      cln = c[i];\n    }\n  }\n  return [cl.subarray(0, cli), s];\n};\n// calculate the length of output from tree, code lengths\nvar clen = function (cf, cl) {\n  var l = 0;\n  for (var i = 0; i < cl.length; ++i) l += cf[i] * cl[i];\n  return l;\n};\n// writes a fixed block\n// returns the new bit pos\nvar wfblk = function (out, pos, dat) {\n  // no need to write 00 as type: TypedArray defaults to 0\n  var s = dat.length;\n  var o = shft(pos + 2);\n  out[o] = s & 255;\n  out[o + 1] = s >>> 8;\n  out[o + 2] = out[o] ^ 255;\n  out[o + 3] = out[o + 1] ^ 255;\n  for (var i = 0; i < s; ++i) out[o + i + 4] = dat[i];\n  return (o + 4 + s) * 8;\n};\n// writes a block\nvar wblk = function (dat, out, final, syms, lf, df, eb, li, bs, bl, p) {\n  wbits(out, p++, final);\n  ++lf[256];\n  var _a = hTree(lf, 15),\n    dlt = _a[0],\n    mlb = _a[1];\n  var _b = hTree(df, 15),\n    ddt = _b[0],\n    mdb = _b[1];\n  var _c = lc(dlt),\n    lclt = _c[0],\n    nlc = _c[1];\n  var _d = lc(ddt),\n    lcdt = _d[0],\n    ndc = _d[1];\n  var lcfreq = new u16(19);\n  for (var i = 0; i < lclt.length; ++i) lcfreq[lclt[i] & 31]++;\n  for (var i = 0; i < lcdt.length; ++i) lcfreq[lcdt[i] & 31]++;\n  var _e = hTree(lcfreq, 7),\n    lct = _e[0],\n    mlcb = _e[1];\n  var nlcc = 19;\n  for (; nlcc > 4 && !lct[clim[nlcc - 1]]; --nlcc);\n  var flen = bl + 5 << 3;\n  var ftlen = clen(lf, flt) + clen(df, fdt) + eb;\n  var dtlen = clen(lf, dlt) + clen(df, ddt) + eb + 14 + 3 * nlcc + clen(lcfreq, lct) + (2 * lcfreq[16] + 3 * lcfreq[17] + 7 * lcfreq[18]);\n  if (flen <= ftlen && flen <= dtlen) return wfblk(out, p, dat.subarray(bs, bs + bl));\n  var lm, ll, dm, dl;\n  wbits(out, p, 1 + (dtlen < ftlen)), p += 2;\n  if (dtlen < ftlen) {\n    lm = hMap(dlt, mlb, 0), ll = dlt, dm = hMap(ddt, mdb, 0), dl = ddt;\n    var llm = hMap(lct, mlcb, 0);\n    wbits(out, p, nlc - 257);\n    wbits(out, p + 5, ndc - 1);\n    wbits(out, p + 10, nlcc - 4);\n    p += 14;\n    for (var i = 0; i < nlcc; ++i) wbits(out, p + 3 * i, lct[clim[i]]);\n    p += 3 * nlcc;\n    var lcts = [lclt, lcdt];\n    for (var it = 0; it < 2; ++it) {\n      var clct = lcts[it];\n      for (var i = 0; i < clct.length; ++i) {\n        var len = clct[i] & 31;\n        wbits(out, p, llm[len]), p += lct[len];\n        if (len > 15) wbits(out, p, clct[i] >>> 5 & 127), p += clct[i] >>> 12;\n      }\n    }\n  } else {\n    lm = flm, ll = flt, dm = fdm, dl = fdt;\n  }\n  for (var i = 0; i < li; ++i) {\n    if (syms[i] > 255) {\n      var len = syms[i] >>> 18 & 31;\n      wbits16(out, p, lm[len + 257]), p += ll[len + 257];\n      if (len > 7) wbits(out, p, syms[i] >>> 23 & 31), p += fleb[len];\n      var dst = syms[i] & 31;\n      wbits16(out, p, dm[dst]), p += dl[dst];\n      if (dst > 3) wbits16(out, p, syms[i] >>> 5 & 8191), p += fdeb[dst];\n    } else {\n      wbits16(out, p, lm[syms[i]]), p += ll[syms[i]];\n    }\n  }\n  wbits16(out, p, lm[256]);\n  return p + ll[256];\n};\n// deflate options (nice << 13) | chain\nvar deo = /*#__PURE__*/new u32([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]);\n// empty\nvar et = /*#__PURE__*/new u8(0);\n// compresses data into a raw DEFLATE buffer\nvar dflt = function (dat, lvl, plvl, pre, post, lst) {\n  var s = dat.length;\n  var o = new u8(pre + s + 5 * (1 + Math.floor(s / 7000)) + post);\n  // writing to this writes to the output buffer\n  var w = o.subarray(pre, o.length - post);\n  var pos = 0;\n  if (!lvl || s < 8) {\n    for (var i = 0; i <= s; i += 65535) {\n      // end\n      var e = i + 65535;\n      if (e < s) {\n        // write full block\n        pos = wfblk(w, pos, dat.subarray(i, e));\n      } else {\n        // write final block\n        w[i] = lst;\n        pos = wfblk(w, pos, dat.subarray(i, s));\n      }\n    }\n  } else {\n    var opt = deo[lvl - 1];\n    var n = opt >>> 13,\n      c = opt & 8191;\n    var msk_1 = (1 << plvl) - 1;\n    //    prev 2-byte val map    curr 2-byte val map\n    var prev = new u16(32768),\n      head = new u16(msk_1 + 1);\n    var bs1_1 = Math.ceil(plvl / 3),\n      bs2_1 = 2 * bs1_1;\n    var hsh = function (i) {\n      return (dat[i] ^ dat[i + 1] << bs1_1 ^ dat[i + 2] << bs2_1) & msk_1;\n    };\n    // 24576 is an arbitrary number of maximum symbols per block\n    // 424 buffer for last block\n    var syms = new u32(25000);\n    // length/literal freq   distance freq\n    var lf = new u16(288),\n      df = new u16(32);\n    //  l/lcnt  exbits  index  l/lind  waitdx  bitpos\n    var lc_1 = 0,\n      eb = 0,\n      i = 0,\n      li = 0,\n      wi = 0,\n      bs = 0;\n    for (; i < s; ++i) {\n      // hash value\n      var hv = hsh(i);\n      // index mod 32768\n      var imod = i & 32767;\n      // previous index with this value\n      var pimod = head[hv];\n      prev[imod] = pimod;\n      head[hv] = imod;\n      // We always should modify head and prev, but only add symbols if\n      // this data is not yet processed (\"wait\" for wait index)\n      if (wi <= i) {\n        // bytes remaining\n        var rem = s - i;\n        if ((lc_1 > 7000 || li > 24576) && rem > 423) {\n          pos = wblk(dat, w, 0, syms, lf, df, eb, li, bs, i - bs, pos);\n          li = lc_1 = eb = 0, bs = i;\n          for (var j = 0; j < 286; ++j) lf[j] = 0;\n          for (var j = 0; j < 30; ++j) df[j] = 0;\n        }\n        //  len    dist   chain\n        var l = 2,\n          d = 0,\n          ch_1 = c,\n          dif = imod - pimod & 32767;\n        if (rem > 2 && hv == hsh(i - dif)) {\n          var maxn = Math.min(n, rem) - 1;\n          var maxd = Math.min(32767, i);\n          // max possible length\n          // not capped at dif because decompressors implement \"rolling\" index population\n          var ml = Math.min(258, rem);\n          while (dif <= maxd && --ch_1 && imod != pimod) {\n            if (dat[i + l] == dat[i + l - dif]) {\n              var nl = 0;\n              for (; nl < ml && dat[i + nl] == dat[i + nl - dif]; ++nl);\n              if (nl > l) {\n                l = nl, d = dif;\n                // break out early when we reach \"nice\" (we are satisfied enough)\n                if (nl > maxn) break;\n                // now, find the rarest 2-byte sequence within this\n                // length of literals and search for that instead.\n                // Much faster than just using the start\n                var mmd = Math.min(dif, nl - 2);\n                var md = 0;\n                for (var j = 0; j < mmd; ++j) {\n                  var ti = i - dif + j + 32768 & 32767;\n                  var pti = prev[ti];\n                  var cd = ti - pti + 32768 & 32767;\n                  if (cd > md) md = cd, pimod = ti;\n                }\n              }\n            }\n            // check the previous match\n            imod = pimod, pimod = prev[imod];\n            dif += imod - pimod + 32768 & 32767;\n          }\n        }\n        // d will be nonzero only when a match was found\n        if (d) {\n          // store both dist and len data in one Uint32\n          // Make sure this is recognized as a len/dist with 28th bit (2^28)\n          syms[li++] = 268435456 | revfl[l] << 18 | revfd[d];\n          var lin = revfl[l] & 31,\n            din = revfd[d] & 31;\n          eb += fleb[lin] + fdeb[din];\n          ++lf[257 + lin];\n          ++df[din];\n          wi = i + l;\n          ++lc_1;\n        } else {\n          syms[li++] = dat[i];\n          ++lf[dat[i]];\n        }\n      }\n    }\n    pos = wblk(dat, w, lst, syms, lf, df, eb, li, bs, i - bs, pos);\n    // this is the easiest way to avoid needing to maintain state\n    if (!lst) pos = wfblk(w, pos, et);\n  }\n  return slc(o, 0, pre + shft(pos) + post);\n};\n// CRC32 table\nvar crct = /*#__PURE__*/function () {\n  var t = new u32(256);\n  for (var i = 0; i < 256; ++i) {\n    var c = i,\n      k = 9;\n    while (--k) c = (c & 1 && 0xEDB88320) ^ c >>> 1;\n    t[i] = c;\n  }\n  return t;\n}();\n// CRC32\nvar crc = function () {\n  var c = 0xFFFFFFFF;\n  return {\n    p: function (d) {\n      // closures have awful performance\n      var cr = c;\n      for (var i = 0; i < d.length; ++i) cr = crct[cr & 255 ^ d[i]] ^ cr >>> 8;\n      c = cr;\n    },\n    d: function () {\n      return c ^ 0xFFFFFFFF;\n    }\n  };\n};\n// Alder32\nvar adler = function () {\n  var a = 1,\n    b = 0;\n  return {\n    p: function (d) {\n      // closures have awful performance\n      var n = a,\n        m = b;\n      var l = d.length;\n      for (var i = 0; i != l;) {\n        var e = Math.min(i + 5552, l);\n        for (; i < e; ++i) n += d[i], m += n;\n        n %= 65521, m %= 65521;\n      }\n      a = n, b = m;\n    },\n    d: function () {\n      return (a >>> 8 << 16 | (b & 255) << 8 | b >>> 8) + ((a & 255) << 23) * 2;\n    }\n  };\n};\n;\n// deflate with opts\nvar dopt = function (dat, opt, pre, post, st) {\n  return dflt(dat, opt.level == null ? 6 : opt.level, opt.mem == null ? Math.ceil(Math.max(8, Math.min(13, Math.log(dat.length))) * 1.5) : 12 + opt.mem, pre, post, !st);\n};\n// Walmart object spread\nvar mrg = function (a, b) {\n  var o = {};\n  for (var k in a) o[k] = a[k];\n  for (var k in b) o[k] = b[k];\n  return o;\n};\n// worker clone\n// This is possibly the craziest part of the entire codebase, despite how simple it may seem.\n// The only parameter to this function is a closure that returns an array of variables outside of the function scope.\n// We're going to try to figure out the variable names used in the closure as strings because that is crucial for workerization.\n// We will return an object mapping of true variable name to value (basically, the current scope as a JS object).\n// The reason we can't just use the original variable names is minifiers mangling the toplevel scope.\n// This took me three weeks to figure out how to do.\nvar wcln = function (fn, fnStr, td) {\n  var dt = fn();\n  var st = fn.toString();\n  var ks = st.slice(st.indexOf('[') + 1, st.lastIndexOf(']')).replace(/ /g, '').split(',');\n  for (var i = 0; i < dt.length; ++i) {\n    var v = dt[i],\n      k = ks[i];\n    if (typeof v == 'function') {\n      fnStr += ';' + k + '=';\n      var st_1 = v.toString();\n      if (v.prototype) {\n        // for global objects\n        if (st_1.indexOf('[native code]') != -1) {\n          var spInd = st_1.indexOf(' ', 8) + 1;\n          fnStr += st_1.slice(spInd, st_1.indexOf('(', spInd));\n        } else {\n          fnStr += st_1;\n          for (var t in v.prototype) fnStr += ';' + k + '.prototype.' + t + '=' + v.prototype[t].toString();\n        }\n      } else fnStr += st_1;\n    } else td[k] = v;\n  }\n  return [fnStr, td];\n};\nvar ch = [];\n// clone bufs\nvar cbfs = function (v) {\n  var tl = [];\n  for (var k in v) {\n    if (v[k] instanceof u8 || v[k] instanceof u16 || v[k] instanceof u32) tl.push((v[k] = new v[k].constructor(v[k])).buffer);\n  }\n  return tl;\n};\n// use a worker to execute code\nvar wrkr = function (fns, init, id, cb) {\n  var _a;\n  if (!ch[id]) {\n    var fnStr = '',\n      td_1 = {},\n      m = fns.length - 1;\n    for (var i = 0; i < m; ++i) _a = wcln(fns[i], fnStr, td_1), fnStr = _a[0], td_1 = _a[1];\n    ch[id] = wcln(fns[m], fnStr, td_1);\n  }\n  var td = mrg({}, ch[id][1]);\n  return wk(ch[id][0] + ';onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage=' + init.toString() + '}', id, td, cbfs(td), cb);\n};\n// base async inflate fn\nvar bInflt = function () {\n  return [u8, u16, u32, fleb, fdeb, clim, fl, fd, flrm, fdrm, rev, hMap, max, bits, bits16, shft, slc, inflt, inflateSync, pbf, gu8];\n};\nvar bDflt = function () {\n  return [u8, u16, u32, fleb, fdeb, clim, revfl, revfd, flm, flt, fdm, fdt, rev, deo, et, hMap, wbits, wbits16, hTree, ln, lc, clen, wfblk, wblk, shft, slc, dflt, dopt, deflateSync, pbf];\n};\n// gzip extra\nvar gze = function () {\n  return [gzh, gzhl, wbytes, crc, crct];\n};\n// gunzip extra\nvar guze = function () {\n  return [gzs, gzl];\n};\n// zlib extra\nvar zle = function () {\n  return [zlh, wbytes, adler];\n};\n// unzlib extra\nvar zule = function () {\n  return [zlv];\n};\n// post buf\nvar pbf = function (msg) {\n  return postMessage(msg, [msg.buffer]);\n};\n// get u8\nvar gu8 = function (o) {\n  return o && o.size && new u8(o.size);\n};\n// async helper\nvar cbify = function (dat, opts, fns, init, id, cb) {\n  var w = wrkr(fns, init, id, function (err, dat) {\n    w.terminate();\n    cb(err, dat);\n  });\n  if (!opts.consume) dat = new u8(dat);\n  w.postMessage([dat, opts], [dat.buffer]);\n  return function () {\n    w.terminate();\n  };\n};\n// auto stream\nvar astrm = function (strm) {\n  strm.ondata = function (dat, final) {\n    return postMessage([dat, final], [dat.buffer]);\n  };\n  return function (ev) {\n    return strm.push(ev.data[0], ev.data[1]);\n  };\n};\n// async stream attach\nvar astrmify = function (fns, strm, opts, init, id) {\n  var t;\n  var w = wrkr(fns, init, id, function (err, dat) {\n    if (err) w.terminate(), strm.ondata.call(strm, err);else {\n      if (dat[1]) w.terminate();\n      strm.ondata.call(strm, err, dat[0], dat[1]);\n    }\n  });\n  w.postMessage(opts);\n  strm.push = function (d, f) {\n    if (t) throw 'stream finished';\n    if (!strm.ondata) throw 'no stream handler';\n    w.postMessage([d, t = f], [d.buffer]);\n  };\n  strm.terminate = function () {\n    w.terminate();\n  };\n};\n// read 2 bytes\nvar b2 = function (d, b) {\n  return d[b] | d[b + 1] << 8;\n};\n// read 4 bytes\nvar b4 = function (d, b) {\n  return (d[b] | d[b + 1] << 8 | d[b + 2] << 16) + (d[b + 3] << 23) * 2;\n};\n// write bytes\nvar wbytes = function (d, b, v) {\n  for (; v; ++b) d[b] = v, v >>>= 8;\n};\n// gzip header\nvar gzh = function (c, o) {\n  var fn = o.filename;\n  c[0] = 31, c[1] = 139, c[2] = 8, c[8] = o.level < 2 ? 4 : o.level == 9 ? 2 : 0, c[9] = 3; // assume Unix\n  if (o.mtime != 0) wbytes(c, 4, Math.floor(new Date(o.mtime || Date.now()) / 1000));\n  if (fn) {\n    c[3] = 8;\n    for (var i = 0; i <= fn.length; ++i) c[i + 10] = fn.charCodeAt(i);\n  }\n};\n// gzip footer: -8 to -4 = CRC, -4 to -0 is length\n// gzip start\nvar gzs = function (d) {\n  if (d[0] != 31 || d[1] != 139 || d[2] != 8) throw 'invalid gzip data';\n  var flg = d[3];\n  var st = 10;\n  if (flg & 4) st += d[10] | (d[11] << 8) + 2;\n  for (var zs = (flg >> 3 & 1) + (flg >> 4 & 1); zs > 0; zs -= !d[st++]);\n  return st + (flg & 2);\n};\n// gzip length\nvar gzl = function (d) {\n  var l = d.length;\n  return (d[l - 4] | d[l - 3] << 8 | d[l - 2] << 16) + 2 * (d[l - 1] << 23);\n};\n// gzip header length\nvar gzhl = function (o) {\n  return 10 + (o.filename && o.filename.length + 1 || 0);\n};\n// zlib header\nvar zlh = function (c, o) {\n  var lv = o.level,\n    fl = lv == 0 ? 0 : lv < 6 ? 1 : lv == 9 ? 3 : 2;\n  c[0] = 120, c[1] = fl << 6 | (fl ? 32 - 2 * fl : 1);\n};\n// zlib valid\nvar zlv = function (d) {\n  if ((d[0] & 15) != 8 || d[0] >>> 4 > 7 || (d[0] << 8 | d[1]) % 31) throw 'invalid zlib data';\n  if (d[1] & 32) throw 'invalid zlib data: preset dictionaries not supported';\n};\nfunction AsyncCmpStrm(opts, cb) {\n  if (!cb && typeof opts == 'function') cb = opts, opts = {};\n  this.ondata = cb;\n  return opts;\n}\n// zlib footer: -4 to -0 is Adler32\n/**\n * Streaming DEFLATE compression\n */\nvar Deflate = /*#__PURE__*/function () {\n  function Deflate(opts, cb) {\n    if (!cb && typeof opts == 'function') cb = opts, opts = {};\n    this.ondata = cb;\n    this.o = opts || {};\n  }\n  Deflate.prototype.p = function (c, f) {\n    this.ondata(dopt(c, this.o, 0, 0, !f), f);\n  };\n  /**\n   * Pushes a chunk to be deflated\n   * @param chunk The chunk to push\n   * @param final Whether this is the last chunk\n   */\n  Deflate.prototype.push = function (chunk, final) {\n    if (this.d) throw 'stream finished';\n    if (!this.ondata) throw 'no stream handler';\n    this.d = final;\n    this.p(chunk, final || false);\n  };\n  return Deflate;\n}();\nexport { Deflate };\n/**\n * Asynchronous streaming DEFLATE compression\n */\nvar AsyncDeflate = /*#__PURE__*/function () {\n  function AsyncDeflate(opts, cb) {\n    astrmify([bDflt, function () {\n      return [astrm, Deflate];\n    }], this, AsyncCmpStrm.call(this, opts, cb), function (ev) {\n      var strm = new Deflate(ev.data);\n      onmessage = astrm(strm);\n    }, 6);\n  }\n  return AsyncDeflate;\n}();\nexport { AsyncDeflate };\nexport function deflate(data, opts, cb) {\n  if (!cb) cb = opts, opts = {};\n  if (typeof cb != 'function') throw 'no callback';\n  return cbify(data, opts, [bDflt], function (ev) {\n    return pbf(deflateSync(ev.data[0], ev.data[1]));\n  }, 0, cb);\n}\n/**\n * Compresses data with DEFLATE without any wrapper\n * @param data The data to compress\n * @param opts The compression options\n * @returns The deflated version of the data\n */\nexport function deflateSync(data, opts) {\n  if (opts === void 0) {\n    opts = {};\n  }\n  return dopt(data, opts, 0, 0);\n}\n/**\n * Streaming DEFLATE decompression\n */\nvar Inflate = /*#__PURE__*/function () {\n  /**\n   * Creates an inflation stream\n   * @param cb The callback to call whenever data is inflated\n   */\n  function Inflate(cb) {\n    this.s = {};\n    this.p = new u8(0);\n    this.ondata = cb;\n  }\n  Inflate.prototype.e = function (c) {\n    if (this.d) throw 'stream finished';\n    if (!this.ondata) throw 'no stream handler';\n    var l = this.p.length;\n    var n = new u8(l + c.length);\n    n.set(this.p), n.set(c, l), this.p = n;\n  };\n  Inflate.prototype.c = function (final) {\n    this.d = this.s.i = final || false;\n    var bts = this.s.b;\n    var dt = inflt(this.p, this.o, this.s);\n    this.ondata(slc(dt, bts, this.s.b), this.d);\n    this.o = slc(dt, this.s.b - 32768), this.s.b = this.o.length;\n    this.p = slc(this.p, this.s.p / 8 >> 0), this.s.p &= 7;\n  };\n  /**\n   * Pushes a chunk to be inflated\n   * @param chunk The chunk to push\n   * @param final Whether this is the final chunk\n   */\n  Inflate.prototype.push = function (chunk, final) {\n    this.e(chunk), this.c(final);\n  };\n  return Inflate;\n}();\nexport { Inflate };\n/**\n * Asynchronous streaming DEFLATE decompression\n */\nvar AsyncInflate = /*#__PURE__*/function () {\n  /**\n   * Creates an asynchronous inflation stream\n   * @param cb The callback to call whenever data is deflated\n   */\n  function AsyncInflate(cb) {\n    this.ondata = cb;\n    astrmify([bInflt, function () {\n      return [astrm, Inflate];\n    }], this, 0, function () {\n      var strm = new Inflate();\n      onmessage = astrm(strm);\n    }, 7);\n  }\n  return AsyncInflate;\n}();\nexport { AsyncInflate };\nexport function inflate(data, opts, cb) {\n  if (!cb) cb = opts, opts = {};\n  if (typeof cb != 'function') throw 'no callback';\n  return cbify(data, opts, [bInflt], function (ev) {\n    return pbf(inflateSync(ev.data[0], gu8(ev.data[1])));\n  }, 1, cb);\n}\n/**\n * Expands DEFLATE data with no wrapper\n * @param data The data to decompress\n * @param out Where to write the data. Saves memory if you know the decompressed size and provide an output buffer of that length.\n * @returns The decompressed version of the data\n */\nexport function inflateSync(data, out) {\n  return inflt(data, out);\n}\n// before you yell at me for not just using extends, my reason is that TS inheritance is hard to workerize.\n/**\n * Streaming GZIP compression\n */\nvar Gzip = /*#__PURE__*/function () {\n  function Gzip(opts, cb) {\n    this.c = crc();\n    this.l = 0;\n    this.v = 1;\n    Deflate.call(this, opts, cb);\n  }\n  /**\n   * Pushes a chunk to be GZIPped\n   * @param chunk The chunk to push\n   * @param final Whether this is the last chunk\n   */\n  Gzip.prototype.push = function (chunk, final) {\n    Deflate.prototype.push.call(this, chunk, final);\n  };\n  Gzip.prototype.p = function (c, f) {\n    this.c.p(c);\n    this.l += c.length;\n    var raw = dopt(c, this.o, this.v && gzhl(this.o), f && 8, !f);\n    if (this.v) gzh(raw, this.o), this.v = 0;\n    if (f) wbytes(raw, raw.length - 8, this.c.d()), wbytes(raw, raw.length - 4, this.l);\n    this.ondata(raw, f);\n  };\n  return Gzip;\n}();\nexport { Gzip };\n/**\n * Asynchronous streaming GZIP compression\n */\nvar AsyncGzip = /*#__PURE__*/function () {\n  function AsyncGzip(opts, cb) {\n    astrmify([bDflt, gze, function () {\n      return [astrm, Deflate, Gzip];\n    }], this, AsyncCmpStrm.call(this, opts, cb), function (ev) {\n      var strm = new Gzip(ev.data);\n      onmessage = astrm(strm);\n    }, 8);\n  }\n  return AsyncGzip;\n}();\nexport { AsyncGzip };\nexport function gzip(data, opts, cb) {\n  if (!cb) cb = opts, opts = {};\n  if (typeof cb != 'function') throw 'no callback';\n  return cbify(data, opts, [bDflt, gze, function () {\n    return [gzipSync];\n  }], function (ev) {\n    return pbf(gzipSync(ev.data[0], ev.data[1]));\n  }, 2, cb);\n}\n/**\n * Compresses data with GZIP\n * @param data The data to compress\n * @param opts The compression options\n * @returns The gzipped version of the data\n */\nexport function gzipSync(data, opts) {\n  if (opts === void 0) {\n    opts = {};\n  }\n  var c = crc(),\n    l = data.length;\n  c.p(data);\n  var d = dopt(data, opts, gzhl(opts), 8),\n    s = d.length;\n  return gzh(d, opts), wbytes(d, s - 8, c.d()), wbytes(d, s - 4, l), d;\n}\n/**\n * Streaming GZIP decompression\n */\nvar Gunzip = /*#__PURE__*/function () {\n  /**\n   * Creates a GUNZIP stream\n   * @param cb The callback to call whenever data is inflated\n   */\n  function Gunzip(cb) {\n    this.v = 1;\n    Inflate.call(this, cb);\n  }\n  /**\n   * Pushes a chunk to be GUNZIPped\n   * @param chunk The chunk to push\n   * @param final Whether this is the last chunk\n   */\n  Gunzip.prototype.push = function (chunk, final) {\n    Inflate.prototype.e.call(this, chunk);\n    if (this.v) {\n      var s = gzs(this.p);\n      if (s >= this.p.length && !final) return;\n      this.p = this.p.subarray(s), this.v = 0;\n    }\n    if (final) {\n      if (this.p.length < 8) throw 'invalid gzip stream';\n      this.p = this.p.subarray(0, -8);\n    }\n    // necessary to prevent TS from using the closure value\n    // This allows for workerization to function correctly\n    Inflate.prototype.c.call(this, final);\n  };\n  return Gunzip;\n}();\nexport { Gunzip };\n/**\n * Asynchronous streaming GZIP decompression\n */\nvar AsyncGunzip = /*#__PURE__*/function () {\n  /**\n   * Creates an asynchronous GUNZIP stream\n   * @param cb The callback to call whenever data is deflated\n   */\n  function AsyncGunzip(cb) {\n    this.ondata = cb;\n    astrmify([bInflt, guze, function () {\n      return [astrm, Inflate, Gunzip];\n    }], this, 0, function () {\n      var strm = new Gunzip();\n      onmessage = astrm(strm);\n    }, 9);\n  }\n  return AsyncGunzip;\n}();\nexport { AsyncGunzip };\nexport function gunzip(data, opts, cb) {\n  if (!cb) cb = opts, opts = {};\n  if (typeof cb != 'function') throw 'no callback';\n  return cbify(data, opts, [bInflt, guze, function () {\n    return [gunzipSync];\n  }], function (ev) {\n    return pbf(gunzipSync(ev.data[0]));\n  }, 3, cb);\n}\n/**\n * Expands GZIP data\n * @param data The data to decompress\n * @param out Where to write the data. GZIP already encodes the output size, so providing this doesn't save memory.\n * @returns The decompressed version of the data\n */\nexport function gunzipSync(data, out) {\n  return inflt(data.subarray(gzs(data), -8), out || new u8(gzl(data)));\n}\n/**\n * Streaming Zlib compression\n */\nvar Zlib = /*#__PURE__*/function () {\n  function Zlib(opts, cb) {\n    this.c = adler();\n    this.v = 1;\n    Deflate.call(this, opts, cb);\n  }\n  /**\n   * Pushes a chunk to be zlibbed\n   * @param chunk The chunk to push\n   * @param final Whether this is the last chunk\n   */\n  Zlib.prototype.push = function (chunk, final) {\n    Deflate.prototype.push.call(this, chunk, final);\n  };\n  Zlib.prototype.p = function (c, f) {\n    this.c.p(c);\n    var raw = dopt(c, this.o, this.v && 2, f && 4, !f);\n    if (this.v) zlh(raw, this.o), this.v = 0;\n    if (f) wbytes(raw, raw.length - 4, this.c.d());\n    this.ondata(raw, f);\n  };\n  return Zlib;\n}();\nexport { Zlib };\n/**\n * Asynchronous streaming Zlib compression\n */\nvar AsyncZlib = /*#__PURE__*/function () {\n  function AsyncZlib(opts, cb) {\n    astrmify([bDflt, zle, function () {\n      return [astrm, Deflate, Zlib];\n    }], this, AsyncCmpStrm.call(this, opts, cb), function (ev) {\n      var strm = new Zlib(ev.data);\n      onmessage = astrm(strm);\n    }, 10);\n  }\n  return AsyncZlib;\n}();\nexport { AsyncZlib };\nexport function zlib(data, opts, cb) {\n  if (!cb) cb = opts, opts = {};\n  if (typeof cb != 'function') throw 'no callback';\n  return cbify(data, opts, [bDflt, zle, function () {\n    return [zlibSync];\n  }], function (ev) {\n    return pbf(zlibSync(ev.data[0], ev.data[1]));\n  }, 4, cb);\n}\n/**\n * Compress data with Zlib\n * @param data The data to compress\n * @param opts The compression options\n * @returns The zlib-compressed version of the data\n */\nexport function zlibSync(data, opts) {\n  if (opts === void 0) {\n    opts = {};\n  }\n  var a = adler();\n  a.p(data);\n  var d = dopt(data, opts, 2, 4);\n  return zlh(d, opts), wbytes(d, d.length - 4, a.d()), d;\n}\n/**\n * Streaming Zlib decompression\n */\nvar Unzlib = /*#__PURE__*/function () {\n  /**\n   * Creates a Zlib decompression stream\n   * @param cb The callback to call whenever data is inflated\n   */\n  function Unzlib(cb) {\n    this.v = 1;\n    Inflate.call(this, cb);\n  }\n  /**\n   * Pushes a chunk to be unzlibbed\n   * @param chunk The chunk to push\n   * @param final Whether this is the last chunk\n   */\n  Unzlib.prototype.push = function (chunk, final) {\n    Inflate.prototype.e.call(this, chunk);\n    if (this.v) {\n      if (this.p.length < 2 && !final) return;\n      this.p = this.p.subarray(2), this.v = 0;\n    }\n    if (final) {\n      if (this.p.length < 4) throw 'invalid zlib stream';\n      this.p = this.p.subarray(0, -4);\n    }\n    // necessary to prevent TS from using the closure value\n    // This allows for workerization to function correctly\n    Inflate.prototype.c.call(this, final);\n  };\n  return Unzlib;\n}();\nexport { Unzlib };\n/**\n * Asynchronous streaming Zlib decompression\n */\nvar AsyncUnzlib = /*#__PURE__*/function () {\n  /**\n   * Creates an asynchronous Zlib decompression stream\n   * @param cb The callback to call whenever data is deflated\n   */\n  function AsyncUnzlib(cb) {\n    this.ondata = cb;\n    astrmify([bInflt, zule, function () {\n      return [astrm, Inflate, Unzlib];\n    }], this, 0, function () {\n      var strm = new Unzlib();\n      onmessage = astrm(strm);\n    }, 11);\n  }\n  return AsyncUnzlib;\n}();\nexport { AsyncUnzlib };\nexport function unzlib(data, opts, cb) {\n  if (!cb) cb = opts, opts = {};\n  if (typeof cb != 'function') throw 'no callback';\n  return cbify(data, opts, [bInflt, zule, function () {\n    return [unzlibSync];\n  }], function (ev) {\n    return pbf(unzlibSync(ev.data[0], gu8(ev.data[1])));\n  }, 5, cb);\n}\n/**\n * Expands Zlib data\n * @param data The data to decompress\n * @param out Where to write the data. Saves memory if you know the decompressed size and provide an output buffer of that length.\n * @returns The decompressed version of the data\n */\nexport function unzlibSync(data, out) {\n  return inflt((zlv(data), data.subarray(2, -4)), out);\n}\n// Default algorithm for compression (used because having a known output size allows faster decompression)\nexport { gzip as compress, AsyncGzip as AsyncCompress };\n// Default algorithm for compression (used because having a known output size allows faster decompression)\nexport { gzipSync as compressSync, Gzip as Compress };\n/**\n * Streaming GZIP, Zlib, or raw DEFLATE decompression\n */\nvar Decompress = /*#__PURE__*/function () {\n  /**\n   * Creates a decompression stream\n   * @param cb The callback to call whenever data is decompressed\n   */\n  function Decompress(cb) {\n    this.G = Gunzip;\n    this.I = Inflate;\n    this.Z = Unzlib;\n    this.ondata = cb;\n  }\n  /**\n   * Pushes a chunk to be decompressed\n   * @param chunk The chunk to push\n   * @param final Whether this is the last chunk\n   */\n  Decompress.prototype.push = function (chunk, final) {\n    if (!this.ondata) throw 'no stream handler';\n    if (!this.s) {\n      if (this.p && this.p.length) {\n        var n = new u8(this.p.length + chunk.length);\n        n.set(this.p), n.set(chunk, this.p.length);\n      } else this.p = chunk;\n      if (this.p.length > 2) {\n        var _this_1 = this;\n        var cb = function () {\n          _this_1.ondata.apply(_this_1, arguments);\n        };\n        this.s = this.p[0] == 31 && this.p[1] == 139 && this.p[2] == 8 ? new this.G(cb) : (this.p[0] & 15) != 8 || this.p[0] >> 4 > 7 || (this.p[0] << 8 | this.p[1]) % 31 ? new this.I(cb) : new this.Z(cb);\n        this.s.push(this.p, final);\n        this.p = null;\n      }\n    } else this.s.push(chunk, final);\n  };\n  return Decompress;\n}();\nexport { Decompress };\n/**\n * Asynchronous streaming GZIP, Zlib, or raw DEFLATE decompression\n */\nvar AsyncDecompress = /*#__PURE__*/function () {\n  /**\n  * Creates an asynchronous decompression stream\n  * @param cb The callback to call whenever data is decompressed\n  */\n  function AsyncDecompress(cb) {\n    this.G = AsyncGunzip;\n    this.I = AsyncInflate;\n    this.Z = AsyncUnzlib;\n    this.ondata = cb;\n  }\n  /**\n   * Pushes a chunk to be decompressed\n   * @param chunk The chunk to push\n   * @param final Whether this is the last chunk\n   */\n  AsyncDecompress.prototype.push = function (chunk, final) {\n    Decompress.prototype.push.call(this, chunk, final);\n  };\n  return AsyncDecompress;\n}();\nexport { AsyncDecompress };\nexport function decompress(data, opts, cb) {\n  if (!cb) cb = opts, opts = {};\n  if (typeof cb != 'function') throw 'no callback';\n  return data[0] == 31 && data[1] == 139 && data[2] == 8 ? gunzip(data, opts, cb) : (data[0] & 15) != 8 || data[0] >> 4 > 7 || (data[0] << 8 | data[1]) % 31 ? inflate(data, opts, cb) : unzlib(data, opts, cb);\n}\n/**\n * Expands compressed GZIP, Zlib, or raw DEFLATE data, automatically detecting the format\n * @param data The data to decompress\n * @param out Where to write the data. Saves memory if you know the decompressed size and provide an output buffer of that length.\n * @returns The decompressed version of the data\n */\nexport function decompressSync(data, out) {\n  return data[0] == 31 && data[1] == 139 && data[2] == 8 ? gunzipSync(data, out) : (data[0] & 15) != 8 || data[0] >> 4 > 7 || (data[0] << 8 | data[1]) % 31 ? inflateSync(data, out) : unzlibSync(data, out);\n}\n// flatten a directory structure\nvar fltn = function (d, p, t, o) {\n  for (var k in d) {\n    var val = d[k],\n      n = p + k;\n    if (val instanceof u8) t[n] = [val, o];else if (Array.isArray(val)) t[n] = [val[0], mrg(o, val[1])];else fltn(val, n + '/', t, o);\n  }\n};\n/**\n * Converts a string into a Uint8Array for use with compression/decompression methods\n * @param str The string to encode\n * @param latin1 Whether or not to interpret the data as Latin-1. This should\n *               not need to be true unless decoding a binary string.\n * @returns The string encoded in UTF-8/Latin-1 binary\n */\nexport function strToU8(str, latin1) {\n  var l = str.length;\n  if (!latin1 && typeof TextEncoder != 'undefined') return new TextEncoder().encode(str);\n  var ar = new u8(str.length + (str.length >>> 1));\n  var ai = 0;\n  var w = function (v) {\n    ar[ai++] = v;\n  };\n  for (var i = 0; i < l; ++i) {\n    if (ai + 5 > ar.length) {\n      var n = new u8(ai + 8 + (l - i << 1));\n      n.set(ar);\n      ar = n;\n    }\n    var c = str.charCodeAt(i);\n    if (c < 128 || latin1) w(c);else if (c < 2048) w(192 | c >>> 6), w(128 | c & 63);else if (c > 55295 && c < 57344) c = 65536 + (c & 1023 << 10) | str.charCodeAt(++i) & 1023, w(240 | c >>> 18), w(128 | c >>> 12 & 63), w(128 | c >>> 6 & 63), w(128 | c & 63);else w(224 | c >>> 12), w(128 | c >>> 6 & 63), w(128 | c & 63);\n  }\n  return slc(ar, 0, ai);\n}\n/**\n * Converts a Uint8Array to a string\n * @param dat The data to decode to string\n * @param latin1 Whether or not to interpret the data as Latin-1. This should\n *               not need to be true unless encoding to binary string.\n * @returns The original UTF-8/Latin-1 string\n */\nexport function strFromU8(dat, latin1) {\n  var r = '';\n  if (!latin1 && typeof TextDecoder != 'undefined') return new TextDecoder().decode(dat);\n  for (var i = 0; i < dat.length;) {\n    var c = dat[i++];\n    if (c < 128 || latin1) r += String.fromCharCode(c);else if (c < 224) r += String.fromCharCode((c & 31) << 6 | dat[i++] & 63);else if (c < 240) r += String.fromCharCode((c & 15) << 12 | (dat[i++] & 63) << 6 | dat[i++] & 63);else c = ((c & 15) << 18 | (dat[i++] & 63) << 12 | (dat[i++] & 63) << 6 | dat[i++] & 63) - 65536, r += String.fromCharCode(55296 | c >> 10, 56320 | c & 1023);\n  }\n  return r;\n}\n;\n// skip local zip header\nvar slzh = function (d, b) {\n  return b + 30 + b2(d, b + 26) + b2(d, b + 28);\n};\n// read zip header\nvar zh = function (d, b, z) {\n  var fnl = b2(d, b + 28),\n    fn = strFromU8(d.subarray(b + 46, b + 46 + fnl), !(b2(d, b + 8) & 2048)),\n    es = b + 46 + fnl;\n  var _a = z ? z64e(d, es) : [b4(d, b + 20), b4(d, b + 24), b4(d, b + 42)],\n    sc = _a[0],\n    su = _a[1],\n    off = _a[2];\n  return [b2(d, b + 10), sc, su, fn, es + b2(d, b + 30) + b2(d, b + 32), off];\n};\n// read zip64 extra field\nvar z64e = function (d, b) {\n  for (; b2(d, b) != 1; b += 4 + b2(d, b + 2));\n  return [b4(d, b + 12), b4(d, b + 4), b4(d, b + 20)];\n};\n// write zip header\nvar wzh = function (d, b, c, cmp, su, fn, u, o, ce, t) {\n  var fl = fn.length,\n    l = cmp.length;\n  wbytes(d, b, ce != null ? 0x2014B50 : 0x4034B50), b += 4;\n  if (ce != null) d[b] = 20, b += 2;\n  d[b] = 20, b += 2; // spec compliance? what's that?\n  d[b++] = t == 8 && (o.level == 1 ? 6 : o.level < 6 ? 4 : o.level == 9 ? 2 : 0), d[b++] = u && 8;\n  d[b] = t, b += 2;\n  var dt = new Date(o.mtime || Date.now()),\n    y = dt.getFullYear() - 1980;\n  if (y < 0 || y > 119) throw 'date not in range 1980-2099';\n  wbytes(d, b, (y << 24) * 2 | dt.getMonth() + 1 << 21 | dt.getDate() << 16 | dt.getHours() << 11 | dt.getMinutes() << 5 | dt.getSeconds() >>> 1);\n  b += 4;\n  wbytes(d, b, c);\n  wbytes(d, b + 4, l);\n  wbytes(d, b + 8, su);\n  wbytes(d, b + 12, fl), b += 16; // skip extra field, comment\n  if (ce != null) wbytes(d, b += 10, ce), b += 4;\n  d.set(fn, b);\n  b += fl;\n  if (ce == null) d.set(cmp, b);\n};\n// write zip footer (end of central directory)\nvar wzf = function (o, b, c, d, e) {\n  wbytes(o, b, 0x6054B50); // skip disk\n  wbytes(o, b + 8, c);\n  wbytes(o, b + 10, c);\n  wbytes(o, b + 12, d);\n  wbytes(o, b + 16, e);\n};\nexport function zip(data, opts, cb) {\n  if (!cb) cb = opts, opts = {};\n  if (typeof cb != 'function') throw 'no callback';\n  var r = {};\n  fltn(data, '', r, opts);\n  var k = Object.keys(r);\n  var lft = k.length,\n    o = 0,\n    tot = 0;\n  var slft = lft,\n    files = new Array(lft);\n  var term = [];\n  var tAll = function () {\n    for (var i = 0; i < term.length; ++i) term[i]();\n  };\n  var cbf = function () {\n    var out = new u8(tot + 22),\n      oe = o,\n      cdl = tot - o;\n    tot = 0;\n    for (var i = 0; i < slft; ++i) {\n      var f = files[i];\n      try {\n        wzh(out, tot, f.c, f.d, f.m, f.n, f.u, f.p, null, f.t);\n        wzh(out, o, f.c, f.d, f.m, f.n, f.u, f.p, tot, f.t), o += 46 + f.n.length, tot += 30 + f.n.length + f.d.length;\n      } catch (e) {\n        return cb(e, null);\n      }\n    }\n    wzf(out, o, files.length, cdl, oe);\n    cb(null, out);\n  };\n  if (!lft) cbf();\n  var _loop_1 = function (i) {\n    var fn = k[i];\n    var _a = r[fn],\n      file = _a[0],\n      p = _a[1];\n    var c = crc(),\n      m = file.length;\n    c.p(file);\n    var n = strToU8(fn),\n      s = n.length;\n    var t = p.level == 0 ? 0 : 8;\n    var cbl = function (e, d) {\n      if (e) {\n        tAll();\n        cb(e, null);\n      } else {\n        var l = d.length;\n        files[i] = {\n          t: t,\n          d: d,\n          m: m,\n          c: c.d(),\n          u: fn.length != l,\n          n: n,\n          p: p\n        };\n        o += 30 + s + l;\n        tot += 76 + 2 * s + l;\n        if (! --lft) cbf();\n      }\n    };\n    if (n.length > 65535) cbl('filename too long', null);\n    if (!t) cbl(null, file);else if (m < 160000) {\n      try {\n        cbl(null, deflateSync(file, p));\n      } catch (e) {\n        cbl(e, null);\n      }\n    } else term.push(deflate(file, p, cbl));\n  };\n  // Cannot use lft because it can decrease\n  for (var i = 0; i < slft; ++i) {\n    _loop_1(i);\n  }\n  return tAll;\n}\n/**\n * Synchronously creates a ZIP file. Prefer using `zip` for better performance\n * with more than one file.\n * @param data The directory structure for the ZIP archive\n * @param opts The main options, merged with per-file options\n * @returns The generated ZIP archive\n */\nexport function zipSync(data, opts) {\n  if (opts === void 0) {\n    opts = {};\n  }\n  var r = {};\n  var files = [];\n  fltn(data, '', r, opts);\n  var o = 0;\n  var tot = 0;\n  for (var fn in r) {\n    var _a = r[fn],\n      file = _a[0],\n      p = _a[1];\n    var t = p.level == 0 ? 0 : 8;\n    var n = strToU8(fn),\n      s = n.length;\n    if (n.length > 65535) throw 'filename too long';\n    var d = t ? deflateSync(file, p) : file,\n      l = d.length;\n    var c = crc();\n    c.p(file);\n    files.push({\n      t: t,\n      d: d,\n      m: file.length,\n      c: c.d(),\n      u: fn.length != s,\n      n: n,\n      o: o,\n      p: p\n    });\n    o += 30 + s + l;\n    tot += 76 + 2 * s + l;\n  }\n  var out = new u8(tot + 22),\n    oe = o,\n    cdl = tot - o;\n  for (var i = 0; i < files.length; ++i) {\n    var f = files[i];\n    wzh(out, f.o, f.c, f.d, f.m, f.n, f.u, f.p, null, f.t);\n    wzh(out, o, f.c, f.d, f.m, f.n, f.u, f.p, f.o, f.t), o += 46 + f.n.length;\n  }\n  wzf(out, o, files.length, cdl, oe);\n  return out;\n}\n/**\n * Asynchronously decompresses a ZIP archive\n * @param data The raw compressed ZIP file\n * @param cb The callback to call with the decompressed files\n * @returns A function that can be used to immediately terminate the unzipping\n */\nexport function unzip(data, cb) {\n  if (typeof cb != 'function') throw 'no callback';\n  var term = [];\n  var tAll = function () {\n    for (var i = 0; i < term.length; ++i) term[i]();\n  };\n  var files = {};\n  var e = data.length - 22;\n  for (; b4(data, e) != 0x6054B50; --e) {\n    if (!e || data.length - e > 65558) {\n      cb('invalid zip file', null);\n      return;\n    }\n  }\n  ;\n  var lft = b2(data, e + 8);\n  if (!lft) cb(null, {});\n  var c = lft;\n  var o = b4(data, e + 16);\n  var z = o == 4294967295;\n  if (z) {\n    e = b4(data, e - 12);\n    if (b4(data, e) != 0x6064B50) throw 'invalid zip file';\n    c = lft = b4(data, e + 32);\n    o = b4(data, e + 48);\n  }\n  var _loop_2 = function (i) {\n    var _a = zh(data, o, z),\n      c_1 = _a[0],\n      sc = _a[1],\n      su = _a[2],\n      fn = _a[3],\n      no = _a[4],\n      off = _a[5],\n      b = slzh(data, off);\n    o = no;\n    var cbl = function (e, d) {\n      if (e) {\n        tAll();\n        cb(e, null);\n      } else {\n        files[fn] = d;\n        if (! --lft) cb(null, files);\n      }\n    };\n    if (!c_1) cbl(null, slc(data, b, b + sc));else if (c_1 == 8) {\n      var infl = data.subarray(b, b + sc);\n      if (sc < 320000) {\n        try {\n          cbl(null, inflateSync(infl, new u8(su)));\n        } catch (e) {\n          cbl(e, null);\n        }\n      } else term.push(inflate(infl, {\n        size: su\n      }, cbl));\n    } else cbl('unknown compression type ' + c_1, null);\n  };\n  for (var i = 0; i < c; ++i) {\n    _loop_2(i);\n  }\n  return tAll;\n}\n/**\n * Synchronously decompresses a ZIP archive. Prefer using `unzip` for better\n * performance with more than one file.\n * @param data The raw compressed ZIP file\n * @returns The decompressed files\n */\nexport function unzipSync(data) {\n  var files = {};\n  var e = data.length - 22;\n  for (; b4(data, e) != 0x6054B50; --e) {\n    if (!e || data.length - e > 65558) throw 'invalid zip file';\n  }\n  ;\n  var c = b2(data, e + 8);\n  if (!c) return {};\n  var o = b4(data, e + 16);\n  var z = o == 4294967295;\n  if (z) {\n    e = b4(data, e - 12);\n    if (b4(data, e) != 0x6064B50) throw 'invalid zip file';\n    c = b4(data, e + 32);\n    o = b4(data, e + 48);\n  }\n  for (var i = 0; i < c; ++i) {\n    var _a = zh(data, o, z),\n      c_2 = _a[0],\n      sc = _a[1],\n      su = _a[2],\n      fn = _a[3],\n      no = _a[4],\n      off = _a[5],\n      b = slzh(data, off);\n    o = no;\n    if (!c_2) files[fn] = slc(data, b, b + sc);else if (c_2 == 8) files[fn] = inflateSync(data.subarray(b, b + sc), new u8(su));else throw 'unknown compression type ' + c_2;\n  }\n  return files;\n}","import { Component, OnInit } from '@angular/core';\r\nimport { NavbarComponent } from '../../../shared/components/navbar/navbar.component';\r\nimport { RecipesService } from '../../../core/services/api/recipes.service';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { Router } from '@angular/router';\r\nimport { NewLinewToBrPipe } from '../../../core/pipes/new-linew-to-br.pipe';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { jsPDF } from 'jspdf';\r\nimport html2canvas from 'html2canvas';\r\nimport { parse } from 'path';\r\n@Component({\r\n  selector: 'app-view-recipe',\r\n  standalone: true,\r\n  imports: [NavbarComponent, CommonModule, NewLinewToBrPipe],\r\n  templateUrl: './view-recipe.component.html',\r\n  styleUrl: './view-recipe.component.scss',\r\n})\r\nexport class ViewRecipeComponent implements OnInit {\r\n  id: number = 0;\r\n  recipe: TableData = {};\r\n\r\n  leftColumnIngredients: Argument[] = [];\r\n  rightColumnIngredients: Argument[] = [];\r\n  leftColumnInputs: Argument[] = [];\r\n  rightColumnInputs: Argument[] = [];\r\n\r\n  constructor(\r\n    private route: ActivatedRoute,\r\n    private recipeService: RecipesService,\r\n    private router: Router\r\n  ) {}\r\n\r\n  ngOnInit(): void {\r\n    this.id = +(this.route.snapshot.paramMap.get('id') ?? 0);\r\n    if (this.id !== 0) {\r\n      this.recipeService.getRecipeById(this.id).subscribe(\r\n        (res) => {\r\n          (this.recipe = res), this.splitIngredients(), this.splitInputs();\r\n        },\r\n        (error) => console.error(error)\r\n      );\r\n    }\r\n    //console.log(this.recipe);\r\n  }\r\n\r\n  goTo() {\r\n    this.router.navigate(['/recipes', this.id, 'modify']);\r\n  }\r\n\r\n  deleteRecipe() {\r\n    this.recipeService.deleteRecipe(this.id).subscribe(\r\n      (res) => {\r\n        this.router.navigate(['/recipes']);\r\n      },\r\n      (error) => console.error(error)\r\n    );\r\n  }\r\n\r\n  generatePDF() {\r\n    const doc = new jsPDF();\r\n    let yPosition = 10;\r\n  \r\n    // Título de la receta\r\n    doc.setFontSize(18);\r\n    doc.text(this.recipe['name'], 10, yPosition);\r\n  \r\n    // Sección de Ingredientes\r\n    yPosition += 20;\r\n    doc.setFontSize(14);\r\n    doc.text('Ingredientes:', 10, yPosition);\r\n    yPosition += 10;\r\n  \r\n    // Listar los ingredientes\r\n    doc.setFontSize(12);\r\n    parseList(this.recipe['recipeIngredients']).forEach((ing: any) => {\r\n      doc.text(`- ${ing.name}: ${ing.quantity} ${ing.unit}`, 10, yPosition);\r\n      yPosition += 10;\r\n    });\r\n  \r\n    // Sección de Insumos\r\n    yPosition += 5;\r\n    doc.setFontSize(14);\r\n    doc.text('Insumos:', 10, yPosition);\r\n    yPosition += 10;\r\n  \r\n    // Listar los insumos\r\n    doc.setFontSize(12);\r\n    parseList(this.recipe['recipePackagingElements']).forEach((ins: any) => {\r\n      doc.text(`- ${ins.name}: ${ins.quantity} ${ins.unit}`, 10, yPosition);\r\n      yPosition += 10;\r\n    });\r\n  \r\n    // Sección de Procedimiento\r\n    yPosition += 10;\r\n    doc.setFontSize(14);\r\n    doc.text('Procedimiento', 10, yPosition);\r\n    yPosition += 10;\r\n  \r\n    // Convertir HTML a texto plano\r\n    const procedureText = this.convertHTMLToText(this.recipe['description']);\r\n    const procedureLines = doc.splitTextToSize(procedureText, 180);\r\n  \r\n    // Agregar las líneas de procedimiento al PDF\r\n    procedureLines.forEach((line: string) => {\r\n      doc.text(line, 10, yPosition);\r\n      yPosition += 10;\r\n    });\r\n  \r\n    // Genera y descarga el PDF\r\n    doc.save(`${this.recipe['name']}.pdf`);\r\n  }\r\n  \r\n  // Función para convertir HTML en texto plano\r\n  convertHTMLToText(html: string): string {\r\n    const tempDiv = document.createElement('div');\r\n    tempDiv.innerHTML = html;\r\n  \r\n    // Reemplazar los <br> con saltos de línea\r\n    const replaceBreaks = (node: ChildNode) => {\r\n      if (node.nodeName === 'BR') {\r\n        return '\\n';\r\n      }\r\n      return node.textContent || '';\r\n    };\r\n  \r\n    // Reemplazar las etiquetas de lista con viñetas\r\n    const replaceLists = (node: ChildNode) => {\r\n      if (node.nodeName === 'LI') {\r\n        return `• ${node.textContent?.trim()}\\n`;\r\n      }\r\n      return node.textContent || '';\r\n    };\r\n  \r\n    // Extraer texto del HTML, respetando las etiquetas relevantes\r\n    let text = Array.from(tempDiv.childNodes)\r\n      .map((node) => {\r\n        if (node.nodeName === 'BR') {\r\n          return replaceBreaks(node);\r\n        } else if (node.nodeName === 'UL' || node.nodeName === 'OL') {\r\n          return Array.from(node.childNodes).map(replaceLists).join('');\r\n        } else if (node.nodeName === 'P') {\r\n          return `${node.textContent?.trim()}\\n\\n`;\r\n        }\r\n        return node.textContent || '';\r\n      })\r\n      .join('');\r\n  \r\n    return text.trim();\r\n  }\r\n  \r\n\r\n  private splitIngredients() {\r\n    if (this.recipe && this.recipe['recipeIngredients']) {\r\n      let toggle: boolean = true;\r\n      const ingredients = parseList(this.recipe['recipeIngredients']);\r\n      ingredients.forEach((element: Argument) => {\r\n        if (toggle) {\r\n          this.leftColumnIngredients.push(element);\r\n        } else {\r\n          this.rightColumnIngredients.push(element);\r\n        }\r\n        toggle = !toggle;\r\n      });\r\n    } else {\r\n      console.error('Ingredients are undefined or not an array');\r\n    }\r\n  }\r\n\r\n  private splitInputs() {\r\n    if (this.recipe && this.recipe['recipePackagingElements']) {\r\n      let toggle: boolean = true;\r\n      const packages = parseList(this.recipe['recipePackagingElements']);\r\n      packages.forEach((element: Argument) => {\r\n        if (toggle) {\r\n          this.leftColumnInputs.push(element);\r\n        } else {\r\n          this.rightColumnInputs.push(element);\r\n        }\r\n        toggle = !toggle;\r\n      });\r\n    } else {\r\n      console.error('Inpusts are undefined or not an array');\r\n    }\r\n  }\r\n}\r\n\r\ninterface Argument {\r\n  name: string;\r\n  quantity: string;\r\n  unit: string;\r\n}\r\n\r\nfunction parseList(list: string): Argument[] {\r\n  if (!list) return [];\r\n\r\n  // Asegúrate de que la cadena no tenga espacios innecesarios alrededor\r\n  const parsedList = list.split(';').filter((item) => item.trim() !== '');\r\n  const args: Argument[] = parsedList.map((element: string) => {\r\n    const [name, quantity, unit] = element.split(',');\r\n    if (!name || !quantity || !unit) {\r\n      console.error(`Invalid format: ${element}`);\r\n      return { name: '', quantity: '', unit: '' };\r\n    }\r\n    return {\r\n      name: name.trim(),\r\n      quantity: quantity.trim(),\r\n      unit: unit.trim(),\r\n    };\r\n  });\r\n  return args;\r\n}\r\n","<app-navbar></app-navbar>\r\n<div\r\n  class=\"container-fluid d-flex flex-column justify-content-center align-items-center vh-100\"\r\n>\r\n  <div class=\"row justify-content-center align-items-center w-100\">\r\n    <div class=\"col-8 col-main\">\r\n      <div class=\"row header-row mb-4 align-items-center\">\r\n        <div class=\"col\">\r\n          <h1 class=\"view-title\">{{ recipe[\"name\"] }}</h1>\r\n        </div>\r\n        <div class=\"col d-flex justify-content-center\">\r\n          <button type=\"button\" class=\"btn btn-custom\" (click)=\"generatePDF()\">\r\n            <i class=\"bi bi-file-arrow-down-fill\"></i> PDF\r\n          </button>\r\n        </div>\r\n\r\n        <div class=\"col d-flex justify-content-end\">\r\n          <button type=\"button\" (click)=\"goTo()\" class=\"btn btn-custom\">\r\n            EDITAR\r\n          </button>\r\n          <button type=\"button\" (click)=\"deleteRecipe()\" class=\"btn btn-custom\">\r\n            ELIMINAR\r\n          </button>\r\n        </div>\r\n      </div>\r\n      <div class=\"col custom-col\">\r\n        <div class=\"row px-2 mb-4\">\r\n          <div class=\"col\">\r\n            <label class=\"subtitle\"> INGREDIENTES </label>\r\n            <div class=\"row\">\r\n              <div class=\"col\">\r\n                <div *ngFor=\"let ingredient of leftColumnIngredients\">\r\n                  <li>\r\n                    {{ ingredient.name }} {{ ingredient.quantity\r\n                    }}{{ ingredient.unit }}\r\n                  </li>\r\n                </div>\r\n              </div>\r\n              <div class=\"col\">\r\n                <div *ngFor=\"let ingredient of rightColumnIngredients\">\r\n                  <li>\r\n                    {{ ingredient.name }} {{ ingredient.quantity\r\n                    }}{{ ingredient.unit }}\r\n                  </li>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n          <div class=\"col\">\r\n            <label class=\"subtitle\"> Insumos </label>\r\n            <div class=\"row\">\r\n              <div class=\"col\">\r\n                <div *ngFor=\"let input of leftColumnInputs\">\r\n                  <li>{{ input.name }} {{ input.quantity }}{{ input.unit }}</li>\r\n                </div>\r\n              </div>\r\n              <div class=\"col\">\r\n                <div *ngFor=\"let input of rightColumnInputs\">\r\n                  <li>{{ input.name }} {{ input.quantity }}{{ input.unit }}</li>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"row\">\r\n          <label class=\"subtitle\"> Procedimiento </label>\r\n          <div class=\"procedure\">\r\n            <div [innerHTML]=\"recipe['description'] | newLinewToBr\"></div>\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</div>\r\n","import { Injectable } from '@angular/core';\r\nimport { BatchesService } from '../api/batches.service';\r\nimport { TableData } from '../../interfaces/table-data';\r\nimport { Observable,  BehaviorSubject, map } from 'rxjs';\r\n@Injectable({\r\n  providedIn: 'root'\r\n})\r\nexport class CategoriesService {\r\n\r\n  private batchCategories: BehaviorSubject<string[]> = new BehaviorSubject<string[]>([]);\r\n  constructor(private batchesService: BatchesService) { }\r\n\r\n  chargeCategories(): void {\r\n    this.batchesService.getCategories().subscribe({\r\n      next: (res) => {\r\n        if (Array.isArray(res)) {\r\n          this.batchCategories.next(res); // Actualiza el BehaviorSubject con los datos recibidos\r\n        } else {\r\n          console.error('Unexpected response format', res);\r\n        }\r\n      },\r\n      error: err => {\r\n        console.error('Error fetching categories', err);\r\n      }\r\n    });\r\n  }\r\n\r\n  getCategories(): Observable<string[]> {\r\n    return this.batchCategories.asObservable();\r\n  }\r\n\r\n  addCategory(category: string): void {\r\n   this.batchCategories.pipe(\r\n      map(categories => {\r\n        if (!categories.includes(category)) {\r\n          categories.push(category);\r\n          categories.sort();\r\n          this.batchCategories.next(categories); // Emit the updated list\r\n        }\r\n      })\r\n    ).subscribe(); // Asegúrate de suscribirte al observable\r\n  }\r\n\r\n \r\n}\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { NavbarComponent } from '../../../shared/components/navbar/navbar.component';\r\nimport { CommonModule } from '@angular/common';\r\nimport {\r\n  ReactiveFormsModule,\r\n  FormBuilder,\r\n  Validators,\r\n  FormGroup,\r\n  FormArray,\r\n} from '@angular/forms';\r\nimport { Units } from '../../../shared/enums/units.enum';\r\nimport { CategoriesService } from '../../../core/services/enums/categories.service';\r\nimport { RawMaterialsService } from '../../../core/services/api/rawmaterials.service';\r\nimport { InputsService } from '../../../core/services/api/inputs.service';\r\nimport { EditorModule } from 'primeng/editor';\r\nimport { atLeastOneCheckedValidator } from '../../../core/utils/validators';\r\nimport { BatchesService } from '../../../core/services/api/batches.service';\r\nimport { Router } from '@angular/router';\r\n@Component({\r\n  selector: 'app-add-batch',\r\n  standalone: true,\r\n  imports: [CommonModule, NavbarComponent, ReactiveFormsModule, EditorModule],\r\n  templateUrl: './add-batch.component.html',\r\n  styleUrl: './add-batch.component.scss',\r\n})\r\nexport class AddBatchComponent implements OnInit {\r\n  batchForm: FormGroup;\r\n  addCategoryForm: FormGroup;\r\n  categories: string[] = [];\r\n  units: string[] = [];\r\n  minDate: string = '';\r\n  addCategoryModal: boolean = false;\r\n\r\n  avaibleRawMaterials: any[] = [];\r\n  avaibleInputs: any[] = [];\r\n  totalCost = 0;\r\n  constructor(\r\n    private formbuild: FormBuilder,\r\n    private CategoriesService: CategoriesService,\r\n    private RawMaterialsService: RawMaterialsService,\r\n    private InputsService: InputsService,\r\n    private BatchesService: BatchesService,\r\n    private router: Router\r\n  ) {\r\n    this.batchForm = this.formbuild.group({\r\n      name: ['', [Validators.required, Validators.pattern('[a-zA-Z ]*')]],\r\n      category: ['', [Validators.required]],\r\n      quantity: ['', [Validators.required, Validators.pattern('[0-9]*')]],\r\n      unit: ['', [Validators.required]],\r\n      expirationDate: [''],\r\n      description: [''],\r\n      price: [0, [Validators.required, Validators.min(1)]],\r\n      ingredients: this.formbuild.array([], {\r\n        validators: atLeastOneCheckedValidator(),\r\n      }),\r\n      packages: this.formbuild.array([], {\r\n        validators: atLeastOneCheckedValidator(),\r\n      }),\r\n    });\r\n    this.addCategoryForm = this.formbuild.group({\r\n      newCategory: [\r\n        '',\r\n        [Validators.required, Validators.pattern('[a-zA-Z ]*')],\r\n      ],\r\n    });\r\n  }\r\n\r\n  ngOnInit(): void {\r\n    this.CategoriesService.chargeCategories();\r\n    this.getCategories();\r\n    this.units = Object.values(Units);\r\n    const now = new Date();\r\n    this.minDate = now.toISOString().slice(0, 16);\r\n    this.getRawMaterials();\r\n    this.getInputs();\r\n  }\r\n\r\n  addCategory(): void {\r\n    if (this.addCategoryForm.valid) {\r\n      this.categories.push(this.addCategoryForm.value.newCategory);\r\n      this.addCategoryForm.reset();\r\n      this.addCategoryModal = false;\r\n    } else {\r\n      console.log('Formulario de categoria inválido.');\r\n    }\r\n  }\r\n\r\n  onSubmit(): void {\r\n    console.log(this.batchForm);\r\n    if (this.batchForm.valid) {\r\n      const selectedIngredientControls =\r\n        this.batchForm.get('ingredients')?.value;\r\n      const selectedIngredientIds = selectedIngredientControls\r\n        .filter((ingredient: any) => ingredient.selected)\r\n        .map((ingredient: any) => ingredient.id);\r\n\r\n      const ingredients = this.avaibleRawMaterials.filter((material: any) =>\r\n        selectedIngredientIds.includes(material.id)\r\n      );\r\n\r\n      const selectedInputControls = this.batchForm.get('packages')?.value;\r\n      const selectedInputIds = selectedInputControls\r\n        .filter((input: any) => input.selected)\r\n        .map((input: any) => input.id);\r\n\r\n      const inputs = this.avaibleInputs.filter((material: any) =>\r\n        selectedInputIds.includes(material.id)\r\n      );\r\n\r\n      const futureDate = new Date();\r\n      futureDate.setFullYear(futureDate.getFullYear() + 70);\r\n\r\n      const batch = {\r\n        name: this.batchForm.get('name')?.value,\r\n        category: this.batchForm.get('category')?.value,\r\n        quantity: this.batchForm.get('quantity')?.value,\r\n        unit: this.batchForm.get('unit')?.value,\r\n        expiration: this.batchForm.get('expirationDate')?.value || futureDate,\r\n        description: this.batchForm.get('description')?.value || '',\r\n        batchIngredients: ingredients,\r\n        batchIngredientsQuantity: selectedIngredientControls\r\n          .filter((ingredient: any) => ingredient.selected)\r\n          .map((ingredient: any) => `${ingredient.id},${ingredient.quantity}`)\r\n          .join(';'),\r\n        batchPackagingElements: inputs,\r\n        batchPackagingElementsQuantity: selectedInputControls\r\n          .filter((input: any) => input.selected)\r\n          .map((input: any) => `${input.id},${input.quantity}`)\r\n          .join(';'),\r\n        price: this.batchForm.get('price')?.value,\r\n      };\r\n\r\n      console.log('Batch: ', JSON.stringify(batch));\r\n\r\n      this.BatchesService.createBatch(batch).subscribe(\r\n        (data) => {\r\n          console.log('Lote creado correctamente.');\r\n\r\n          // Actualizar solo los ingredientes seleccionados\r\n          const ingredientUpdatePromises = ingredients\r\n            .map((ingredient: any) => {\r\n              const selectedControl = selectedIngredientControls.find(\r\n                (control: any) => control.id === ingredient.id\r\n              );\r\n              if (selectedControl) {\r\n                ingredient.quantity -= selectedControl.quantity;\r\n                console.log('Ingredient post update: ', ingredient);\r\n                return this.RawMaterialsService.updateRawMaterial(\r\n                  ingredient\r\n                ).toPromise();\r\n              }\r\n              return null; // Retornar null si no hay ingrediente seleccionado\r\n            })\r\n            .filter(Boolean); // Filtrar los nulls\r\n\r\n          // Actualizar solo los empaques seleccionados\r\n          const inputUpdatePromises = inputs\r\n            .map((input: any) => {\r\n              const selectedControl = selectedInputControls.find(\r\n                (control: any) => control.id === input.id\r\n              );\r\n              if (selectedControl) {\r\n                input.quantity -= selectedControl.quantity;\r\n                console.log('Input post update: ', input);\r\n                return this.InputsService.updateInput(input).toPromise();\r\n              }\r\n              return null; // Retornar null si no hay empaque seleccionado\r\n            })\r\n            .filter(Boolean); // Filtrar los nulls\r\n\r\n          Promise.all([...ingredientUpdatePromises, ...inputUpdatePromises])\r\n            .then(() => {\r\n              console.log('Todos los materiales actualizados correctamente.');\r\n            })\r\n            .catch((error) => {\r\n              console.error('Error al actualizar materiales: ', error);\r\n            });\r\n\r\n          this.router.navigate(['/production']);\r\n        },\r\n        (error) => {\r\n          console.error(error);\r\n        }\r\n      );\r\n    } else {\r\n      console.log('Formulario de lote inválido.');\r\n    }\r\n  }\r\n\r\n  openAddCategoryModal() {\r\n    this.addCategoryModal = true;\r\n  }\r\n\r\n  closeAddCategoryModal() {\r\n    this.addCategoryModal = false;\r\n  }\r\n\r\n  get selectedIngredients(): FormArray {\r\n    return this.batchForm.get('ingredients') as FormArray;\r\n  }\r\n\r\n  private addRawMaterialControls(): void {\r\n    this.avaibleRawMaterials.forEach((material) => {\r\n      this.selectedIngredients.push(\r\n        this.formbuild.group({\r\n          id: [material.id],\r\n          name: [material.name],\r\n          selected: [false],\r\n          quantity: [\r\n            null,\r\n            [Validators.min(1), Validators.max(material.availableQuantity)],\r\n          ],\r\n        })\r\n      );\r\n    });\r\n  }\r\n  private getRawMaterials(): any {\r\n    this.RawMaterialsService.getRawMaterials().subscribe(\r\n      (data: any[]) => {\r\n        this.avaibleRawMaterials = data.sort((a, b) =>\r\n          a.name.localeCompare(b.name)\r\n        );\r\n        this.addRawMaterialControls();\r\n      },\r\n      (error) => {\r\n        console.error(error);\r\n      }\r\n    );\r\n  }\r\n\r\n  openRMFilters() {}\r\n\r\n  get selectedInputs(): FormArray {\r\n    return this.batchForm.get('packages') as FormArray;\r\n  }\r\n\r\n  private addInputsControls(): void {\r\n    this.avaibleInputs.forEach((material) => {\r\n      this.selectedInputs.push(\r\n        this.formbuild.group({\r\n          id: [material.id],\r\n          name: [material.name],\r\n          selected: [false],\r\n          quantity: [\r\n            null,\r\n            [Validators.min(1), Validators.max(material.availableQuantity)],\r\n          ],\r\n        })\r\n      );\r\n    });\r\n  }\r\n\r\n  private getInputs(): any {\r\n    this.InputsService.getInputs().subscribe(\r\n      (data: any[]) => {\r\n        this.avaibleInputs = data.sort((a, b) => a.name.localeCompare(b.name));\r\n        this.addInputsControls();\r\n      },\r\n      (error) => {\r\n        console.error(error);\r\n      }\r\n    );\r\n  }\r\n\r\n  openIFilters() {}\r\n\r\n  private getCategories(): void {\r\n    this.CategoriesService.getCategories().subscribe(\r\n      (data) => {\r\n        this.categories = data.sort((a, b) => a.localeCompare(b));\r\n      },\r\n      (error) => {\r\n        console.error(error);\r\n      }\r\n    );\r\n  }\r\n\r\n  calculateCost(): void {\r\n    this.totalCost = 0; // Reinicia el costo total\r\n    this.batchForm.get('ingredients')?.value.forEach((ingredient: any) => {\r\n      console.log(ingredient);\r\n      if (ingredient.selected) {\r\n        const rawMaterial = this.avaibleRawMaterials.find((material) => {\r\n          console.log(material.id, ingredient.id);\r\n          console.log(material.id === ingredient.id);\r\n          material.id === ingredient.id;\r\n          return material.id === ingredient.id;\r\n        });\r\n        console.log(rawMaterial, rawMaterial.cost);\r\n        if (rawMaterial) {\r\n          this.totalCost += ingredient.quantity * rawMaterial.cost;\r\n        }\r\n      }\r\n    });\r\n    // Calcular el costo de los empaques seleccionados\r\n    this.batchForm.get('packages')?.value.forEach((input: any) => {\r\n      if (input.selected) {\r\n        const packagingMaterial = this.avaibleInputs.find((material) => {\r\n          material.id === input.id;\r\n          return material.id === input.id;\r\n        });\r\n        if (packagingMaterial) {\r\n          this.totalCost += input.quantity * packagingMaterial.cost;\r\n        }\r\n      }\r\n    });\r\n\r\n    this.updatePriceValidator();\r\n  }\r\n\r\n  updatePriceValidator(): void {\r\n    const priceControl = this.batchForm.get('price');\r\n    if (priceControl) {\r\n      // Actualiza los validadores del control con el nuevo valor de totalCost\r\n      priceControl.setValidators([\r\n        Validators.required,\r\n        Validators.min(this.totalCost),\r\n      ]);\r\n\r\n      // Recalcula la validez del control para aplicar los nuevos validadores\r\n      priceControl.updateValueAndValidity();\r\n    }\r\n  }\r\n}\r\n","<app-navbar></app-navbar>\r\n<div\r\n  class=\"container-fluid d-flex flex-column justify-content-center align-items-center vh-100\"\r\n>\r\n  <div class=\"row justify-content-center align-items-center w-100\">\r\n    <div class=\"col-10 col-main\">\r\n      <form\r\n        #aux=\"ngForm\"\r\n        [formGroup]=\"batchForm\"\r\n        (ngSubmit)=\"onSubmit()\"\r\n        class=\"w-100\"\r\n      >\r\n        <div class=\"row header-row mb-4\">\r\n          <div class=\"col\">\r\n            <h1 class=\"view-title\">Nuevo Lote</h1>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-end\">\r\n            <button type=\"submit\" class=\"btn btn-custom\">GUARDAR</button>\r\n          </div>\r\n        </div>\r\n        <div class=\"row custom-row\">\r\n          <div class=\"col-5\">\r\n            <div class=\"form-group\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-3\">\r\n                    <label class=\"subtitle\" for=\"name\">Nombre</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"name\"\r\n                      name=\"name\"\r\n                      formControlName=\"name\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (batchForm.get('name')?.dirty ||\r\n                            batchForm.get('name')?.touched ||\r\n                            aux.submitted) &&\r\n                          batchForm.get('name')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (batchForm.get('name')?.invalid &&\r\n                          (batchForm.get('name')?.dirty ||\r\n                            batchForm.get('name')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div *ngIf=\"batchForm.get('name')?.errors?.['required']\">\r\n                        Nombre es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!batchForm.get('name')?.errors?.['required'] && batchForm.get('name')?.errors?.['pattern']\"\r\n                      >\r\n                        El nombre no debe contener números ni símbolos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-3\">\r\n                    <label for=\"category\" class=\"mb-0 subtitle\"\r\n                      >Categoria</label\r\n                    >\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <select\r\n                      id=\"category\"\r\n                      formControlName=\"category\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"category Selection\"\r\n                      placeholder=\"Seleccione un tipo\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (batchForm.get('category')?.dirty ||\r\n                            batchForm.get('category')?.touched ||\r\n                            aux.submitted) &&\r\n                          batchForm.get('category')?.invalid\r\n                      }\"\r\n                    >\r\n                      <option value=\"\" disabled selected>\r\n                        Selecciona una Categoria\r\n                      </option>\r\n                      <option *ngFor=\"let c of categories\" [value]=\"c\">\r\n                        {{ c }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                  <div class=\"col-2 d-flex justify-content-end\">\r\n                    <button\r\n                      type=\"button\"\r\n                      class=\"btn btn-custom\"\r\n                      (click)=\"openAddCategoryModal()\"\r\n                    >\r\n                      <i class=\"bi bi-plus-square-fill\"></i>\r\n                    </button>\r\n                  </div>\r\n                </div>\r\n                <div class=\"error-container\">\r\n                  <div\r\n                    *ngIf=\"aux.submitted && batchForm.get('category')?.invalid\"\r\n                    class=\"text-danger mt-1\"\r\n                  >\r\n                    <div\r\n                      *ngIf=\"batchForm.get('category')?.errors?.['required']\"\r\n                    >\r\n                      La Categoria es necesaria.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-3\">\r\n                    <label class=\"subtitle\" for=\"quantity\">Cantidad</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"quantity\"\r\n                      name=\"quantity\"\r\n                      formControlName=\"quantity\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (batchForm.get('quantity')?.dirty ||\r\n                            batchForm.get('quantity')?.touched ||\r\n                            aux.submitted) &&\r\n                          batchForm.get('quantity')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <label class=\"subtitle\" for=\"unit\">Unidad</label>\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <select\r\n                      id=\"unit\"\r\n                      formControlName=\"unit\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Unit Selection\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (batchForm.get('unit')?.dirty ||\r\n                            batchForm.get('unit')?.touched ||\r\n                            aux.submitted) &&\r\n                          batchForm.get('unit')?.invalid\r\n                      }\"\r\n                    >\r\n                      <option value=\"\" disabled selected>...</option>\r\n                      <option *ngFor=\"let unit of units\" [value]=\"unit\">\r\n                        {{ unit }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                </div>\r\n                <div class=\"row error-container align-items-center\">\r\n                  <div\r\n                    class=\"col-8 text-danger\"\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (batchForm.get('quantity')?.invalid &&\r\n                        (batchForm.get('quantity')?.dirty ||\r\n                          batchForm.get('quantity')?.touched))\r\n                    \"\r\n                  >\r\n                    <div\r\n                      *ngIf=\"batchForm.get('quantity')?.errors?.['required']\"\r\n                    >\r\n                      Es necesario ingresar una cantidad.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"!batchForm.get('quantity')?.errors?.['required'] && batchForm.get('quantity')?.errors?.['invalidQuantity']\"\r\n                    >\r\n                      La cantidad debe ser un número válido mayor a 0.\r\n                    </div>\r\n                  </div>\r\n                  <div\r\n                    class=\"col text-danger\"\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (batchForm.get('unit')?.invalid &&\r\n                        (batchForm.get('unit')?.dirty ||\r\n                          batchForm.get('unit')?.touched))\r\n                    \"\r\n                  >\r\n                    <div *ngIf=\"batchForm.get('unit')?.errors?.['required']\">\r\n                      Ingrese una unidad.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col\">\r\n                    <label class=\"subtitle\" for=\"expirationDate\"\r\n                      >Fecha de Vencimiento:</label\r\n                    >\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"datetime-local\"\r\n                      class=\"form-control\"\r\n                      id=\"expirationDate\"\r\n                      formControlName=\"expirationDate\"\r\n                      [attr.min]=\"minDate\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (batchForm.get('expirationDate')?.dirty ||\r\n                            batchForm.get('expirationDate')?.touched ||\r\n                            aux.submitted) &&\r\n                          batchForm.get('expirationDate')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted &&\r\n                        batchForm.get('expirationDate')?.invalid &&\r\n                        (batchForm.get('expirationDate')?.dirty ||\r\n                          batchForm.get('expirationDate')?.touched)\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Se necesita una Fecha de Vencimiento.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-3\">\r\n                    <label class=\"subtitle\" for=\"quantity\">Precio</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"number\"\r\n                      class=\"form-control\"\r\n                      id=\"price\"\r\n                      name=\"price\"\r\n                      formControlName=\"price\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (batchForm.get('price')?.dirty ||\r\n                            batchForm.get('price')?.touched ||\r\n                            aux.submitted) &&\r\n                          batchForm.get('price')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <label class=\"subtitle\" for=\"unit\">Costo</label>\r\n                  </div>\r\n                  <div class=\"col-2 cost\">\r\n                    {{ totalCost }}\r\n                  </div>\r\n                </div>\r\n                <div class=\"error-container\">\r\n                  <div\r\n                    *ngIf=\"\r\n                      (batchForm.get('price')?.dirty ||\r\n                        batchForm.get('price')?.touched ||\r\n                        aux.submitted) &&\r\n                      batchForm.get('price')?.invalid\r\n                    \"\r\n                    class=\"text-danger\"\r\n                  >\r\n                    El Precio debe ser igual o mayor al costo\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n          <div class=\"col col-border\">\r\n            <div class=\"row align-items-center\">\r\n              <div class=\"col\">\r\n                <label class=\"subtitle\">Ingredientes</label>\r\n              </div>\r\n              <div class=\"col d-flex justify-content-end\">\r\n                <button\r\n                  type=\"button\"\r\n                  class=\"btn btn-custom\"\r\n                  (click)=\"openRMFilters()\"\r\n                >\r\n                  <i class=\"bi bi-filter-square-fill\"></i>\r\n                </button>\r\n              </div>\r\n            </div>\r\n            <div formArrayName=\"ingredients\" class=\"ingredient-list\">\r\n              <div\r\n                *ngFor=\"\r\n                  let materialControl of selectedIngredients.controls;\r\n                  let i = index\r\n                \"\r\n                [formGroupName]=\"i\"\r\n                class=\"ingredient-item\"\r\n              >\r\n                <div class=\"form-check\">\r\n                  <input\r\n                    type=\"checkbox\"\r\n                    class=\"form-check-input\"\r\n                    formControlName=\"selected\"\r\n                    id=\"material-{{ i }}\"\r\n                  />\r\n                  <label class=\"form-check-label\" for=\"material-{{ i }}\">\r\n                    {{ avaibleRawMaterials[i].name }} (Disponible:\r\n                    {{ avaibleRawMaterials[i].quantity }}\r\n                    {{ avaibleRawMaterials[i].unit }})\r\n                  </label>\r\n                </div>\r\n                <div\r\n                  *ngIf=\"materialControl.get('selected')?.value\"\r\n                  class=\"form-group\"\r\n                >\r\n                  <label for=\"quantity-{{ i }}\">Cantidad:</label>\r\n                  <input\r\n                    type=\"number\"\r\n                    class=\"form-control\"\r\n                    formControlName=\"quantity\"\r\n                    id=\"quantity-{{ i }}\"\r\n                    (change)=\"calculateCost()\"\r\n                    [ngClass]=\"{\r\n                      'is-invalid':\r\n                        (batchForm.get('quantity')?.dirty ||\r\n                          batchForm.get('quantity')?.touched ||\r\n                          aux.submitted) &&\r\n                        batchForm.get('quantity')?.invalid\r\n                    }\"\r\n                  />\r\n                  <div\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (materialControl.get('quantity')?.invalid &&\r\n                        (materialControl.get('quantity')?.dirty ||\r\n                          materialControl.get('quantity')?.touched))\r\n                    \"\r\n                    class=\"text-danger\"\r\n                  >\r\n                    <div\r\n                      *ngIf=\"materialControl.get('quantity')?.errors?.['min']\"\r\n                    >\r\n                      La cantidad mínima es 1.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"materialControl.get('quantity')?.errors?.['max']\"\r\n                    >\r\n                      La cantidad máxima es\r\n                      {{ avaibleRawMaterials[i].quantity }}.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div\r\n              *ngIf=\"\r\n                (aux.submitted && batchForm.get('ingredients')?.invalid) ||\r\n                (batchForm.get('ingredients')?.touched &&\r\n                  batchForm.get('ingredients')?.invalid)\r\n              \"\r\n              class=\"text-danger mt-2\"\r\n            >\r\n              Debe seleccionarse al menos un ingrediente.\r\n            </div>\r\n          </div>\r\n\r\n          <div class=\"col col-border\">\r\n            <div class=\"row align-items-center\">\r\n              <div class=\"col\">\r\n                <label class=\"subtitle\">Insumos</label>\r\n              </div>\r\n              <div class=\"col d-flex justify-content-end\">\r\n                <button\r\n                  type=\"button\"\r\n                  class=\"btn btn-custom\"\r\n                  (click)=\"openIFilters()\"\r\n                >\r\n                  <i class=\"bi bi-filter-square-fill\"></i>\r\n                </button>\r\n              </div>\r\n            </div>\r\n            <div formArrayName=\"packages\" class=\"ingredient-list\">\r\n              <div\r\n                *ngFor=\"\r\n                  let materialControl of selectedInputs.controls;\r\n                  let i = index\r\n                \"\r\n                [formGroupName]=\"i\"\r\n                class=\"ingredient-item\"\r\n              >\r\n                <div class=\"form-check\">\r\n                  <input\r\n                    type=\"checkbox\"\r\n                    class=\"form-check-input\"\r\n                    formControlName=\"selected\"\r\n                    id=\"material-{{ i }}\"\r\n                  />\r\n                  <label class=\"form-check-label\" for=\"material-{{ i }}\">\r\n                    {{ avaibleInputs[i].name }} (Disponible:\r\n                    {{ avaibleInputs[i].quantity }} {{ avaibleInputs[i].unit }})\r\n                  </label>\r\n                </div>\r\n                <div\r\n                  *ngIf=\"materialControl.get('selected')?.value\"\r\n                  class=\"form-group\"\r\n                >\r\n                  <label for=\"quantity-{{ i }}\">Cantidad:</label>\r\n                  <input\r\n                    type=\"number\"\r\n                    class=\"form-control\"\r\n                    formControlName=\"quantity\"\r\n                    id=\"quantity-{{ i }}\"\r\n                    (change)=\"calculateCost()\"\r\n                    [ngClass]=\"{\r\n                      'is-invalid':\r\n                        (batchForm.get('quantity')?.dirty ||\r\n                          batchForm.get('quantity')?.touched ||\r\n                          aux.submitted) &&\r\n                        batchForm.get('quantity')?.invalid\r\n                    }\"\r\n                  />\r\n                  <div\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (materialControl.get('quantity')?.invalid &&\r\n                        (materialControl.get('quantity')?.dirty ||\r\n                          materialControl.get('quantity')?.touched))\r\n                    \"\r\n                    class=\"text-danger\"\r\n                  >\r\n                    <div\r\n                      *ngIf=\"materialControl.get('quantity')?.errors?.['min']\"\r\n                    >\r\n                      La cantidad mínima es 1.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"materialControl.get('quantity')?.errors?.['max']\"\r\n                    >\r\n                      La cantidad máxima es {{ avaibleInputs[i].quantity }}.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div\r\n              *ngIf=\"\r\n                (aux.submitted && batchForm.get('packages')?.invalid) ||\r\n                (batchForm.get('packages')?.touched &&\r\n                  batchForm.get('packages')?.invalid)\r\n              \"\r\n              class=\"text-danger mt-2\"\r\n            >\r\n              Debe seleccionarse al menos un insumo.\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"row custom-row\">\r\n          <hr />\r\n          <div class=\"col\">\r\n            <div class=\"form-group\">\r\n              <label class=\"subtitle\" for=\"description\">Descripción</label>\r\n              <!--textarea class=\"form-control\" id=\"description\" name=\"description\"\r\n\t\t\t\t\t\t\t\tformControlName=\"description\"></textarea-->\r\n              <p-editor\r\n                id=\"description\"\r\n                name=\"description\"\r\n                formControlName=\"description\"\r\n                class=\"form-control p-editor-custom\"\r\n                [style]=\"{ height: '240px' }\"\r\n                [ngClass]=\"{\r\n                  'is-invalid':\r\n                    (batchForm.get('description')?.dirty ||\r\n                      batchForm.get('description')?.touched ||\r\n                      aux.submitted) &&\r\n                    batchForm.get('description')?.invalid\r\n                }\"\r\n              >\r\n                <ng-template pTemplate=\"header\">\r\n                  <span class=\"ql-formats\">\r\n                    <select class=\"ql-header\" aria-label=\"Select header\">\r\n                      <option selected></option>\r\n                      <option value=\"1\">Heading 1</option>\r\n                      <option value=\"2\">Heading 2</option>\r\n                      <option value=\"3\">Heading 3</option>\r\n                    </select>\r\n                    <select class=\"ql-font\" aria-label=\"Select font\">\r\n                      <option selected></option>\r\n                      <option value=\"serif\">Serif</option>\r\n                      <option value=\"monospace\">Monospace</option>\r\n                    </select>\r\n                    <button class=\"ql-bold\" aria-label=\"Bold\"></button>\r\n                    <button class=\"ql-italic\" aria-label=\"Italic\"></button>\r\n                    <button\r\n                      class=\"ql-underline\"\r\n                      aria-label=\"Underline\"\r\n                    ></button>\r\n                    <select class=\"ql-align\" aria-label=\"Select align\">\r\n                      <option selected></option>\r\n                      <option value=\"center\">Center</option>\r\n                      <option value=\"right\">Right</option>\r\n                      <option value=\"justify\">Justify</option>\r\n                    </select>\r\n                    <button\r\n                      class=\"ql-list\"\r\n                      value=\"ordered\"\r\n                      aria-label=\"Ordered list\"\r\n                    ></button>\r\n                    <button\r\n                      class=\"ql-list\"\r\n                      value=\"bullet\"\r\n                      aria-label=\"Bullet list\"\r\n                    ></button>\r\n                    <button class=\"ql-link\" aria-label=\"Insert link\"></button>\r\n                  </span>\r\n                </ng-template>\r\n              </p-editor>\r\n            </div>\r\n            <div class=\"error-container\">\r\n              <div\r\n                *ngIf=\"\r\n                  (aux.submitted && batchForm.get('description')?.invalid) ||\r\n                  (batchForm.get('description')?.invalid &&\r\n                    (batchForm.get('description')?.dirty ||\r\n                      batchForm.get('description')?.touched))\r\n                \"\r\n                class=\"text-danger\"\r\n              >\r\n                Descripción es requerida.\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n<!-- Add Category Modal -->\r\n\r\n<div\r\n  *ngIf=\"addCategoryModal\"\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content\">\r\n      <div class=\"modal-header\">\r\n        <h1 class=\"modal-title fs-5\" id=\"confirmDeleteModalLabel\">\r\n          Agregar Tipo\r\n        </h1>\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn-close\"\r\n          (click)=\"closeAddCategoryModal()\"\r\n        ></button>\r\n      </div>\r\n      <div class=\"modal-body\">\r\n        <form [formGroup]=\"addCategoryForm\" (ngSubmit)=\"addCategory()\">\r\n          <div class=\"form-group\">\r\n            <label for=\"newCategory\">Nuevo Tipo</label>\r\n            <input\r\n              type=\"text\"\r\n              class=\"form-control\"\r\n              id=\"newCategory\"\r\n              formControlName=\"newCategory\"\r\n              placeholder=\"Ingrese el nuevo tipo\"\r\n            />\r\n            <div\r\n              *ngIf=\"\r\n                addCategoryForm.get('newCategory')?.invalid &&\r\n                (addCategoryForm.get('newCategory')?.dirty ||\r\n                  addCategoryForm.get('newType')?.touched)\r\n              \"\r\n              class=\"text-danger mt-1\"\r\n            >\r\n              <div\r\n                *ngIf=\"addCategoryForm.get('newCategory')?.errors?.['required']\"\r\n              >\r\n                La categoria es requerida.\r\n              </div>\r\n              <div\r\n                *ngIf=\"addCategoryForm.get('newCategory')?.errors?.['pattern']\"\r\n              >\r\n                La categoria no debe contener números ni símbolos.\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </form>\r\n      </div>\r\n      <div class=\"modal-footer\">\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn btn-secondary\"\r\n          (click)=\"closeAddCategoryModal()\"\r\n        >\r\n          CANCELAR\r\n        </button>\r\n        <button type=\"submit\" class=\"btn btn-success\" (click)=\"addCategory()\">\r\n          GUARDAR\r\n        </button>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</div>\r\n2\r\n","import { CanActivateFn } from '@angular/router';\r\nimport { inject } from '@angular/core';\r\nimport { AuthService } from '../services/auth/auth.service';\r\nimport { Router } from '@angular/router';\r\n\r\nexport const AuthGuard: CanActivateFn = (route, state) => {\r\n  const authService = inject(AuthService);\r\n  const router = inject(Router);\r\n  if (authService.isLoggedIn()) {\r\n    return true;\r\n  } else {\r\n    router.navigate(['/']);\r\n    return false;\r\n  }\r\n};\r\n","import { Component, input, OnInit } from '@angular/core';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { CommonModule } from '@angular/common';\r\nimport {\r\n  ReactiveFormsModule,\r\n  FormBuilder,\r\n  FormGroup,\r\n  Validators,\r\n  FormArray,\r\n} from '@angular/forms';\r\nimport { NavbarComponent } from '../../../shared/components/navbar/navbar.component';\r\nimport { Units } from '../../../shared/enums/units.enum';\r\nimport { CategoriesService } from '../../../core/services/enums/categories.service';\r\nimport { RawMaterialsService } from '../../../core/services/api/rawmaterials.service';\r\nimport { InputsService } from '../../../core/services/api/inputs.service';\r\nimport { EditorModule } from 'primeng/editor';\r\nimport { atLeastOneCheckedValidator } from '../../../core/utils/validators';\r\nimport { BatchesService } from '../../../core/services/api/batches.service';\r\nimport {\r\n  formatDate,\r\n  formatDateString,\r\n} from '../../../core/utils/mapping.utils';\r\nimport { TableData } from '../../../core/interfaces/table-data';\r\nimport { Cons, last } from 'rxjs';\r\n@Component({\r\n  selector: 'app-modify-batch',\r\n  standalone: true,\r\n  imports: [CommonModule, ReactiveFormsModule, NavbarComponent, EditorModule],\r\n  templateUrl: './modify-batch.component.html',\r\n  styleUrl: './modify-batch.component.scss',\r\n})\r\nexport class ModifyBatchComponent implements OnInit {\r\n  batchId: number = 0;\r\n  batchForm: FormGroup;\r\n  addCategoryForm: FormGroup;\r\n  batch: TableData = {};\r\n  categories: string[] = [];\r\n  units: string[] = [];\r\n  minDate: string = '';\r\n  addCategoryModal: boolean = false;\r\n  ad: any;\r\n  lmd: any;\r\n\r\n  avaibleRawMaterials: any[] = [];\r\n  avaibleInputs: any[] = [];\r\n\r\n  preSelectedIngredients: element[] = [];\r\n  preSelectedIngredientsQuantity: any[] = [];\r\n  preSelectedInputs: element[] = [];\r\n  totalCost: number = 0;\r\n  constructor(\r\n    private formbuild: FormBuilder,\r\n    private CategoriesService: CategoriesService,\r\n    private RawMaterialsService: RawMaterialsService,\r\n    private InputsService: InputsService,\r\n    private BatchesService: BatchesService,\r\n    private router: Router,\r\n    private activeRoute: ActivatedRoute\r\n  ) {\r\n    this.batchForm = this.formbuild.group({\r\n      name: ['', [Validators.required, Validators.pattern('[a-zA-Z ]*')]],\r\n      category: ['', [Validators.required]],\r\n      quantity: ['', [Validators.required, Validators.pattern('[0-9]*')]],\r\n      unit: ['', [Validators.required]],\r\n      expirationDate: [''],\r\n      description: [''],\r\n      price: [0, [Validators.required, Validators.min(this.totalCost)]],\r\n      ingredients: this.formbuild.array([], {\r\n        validators: atLeastOneCheckedValidator(),\r\n      }),\r\n      packages: this.formbuild.array([], {\r\n        validators: atLeastOneCheckedValidator(),\r\n      }),\r\n    });\r\n    this.addCategoryForm = this.formbuild.group({\r\n      newCategory: [\r\n        '',\r\n        [Validators.required, Validators.pattern('[a-zA-Z ]*')],\r\n      ],\r\n    });\r\n  }\r\n\r\n  ngOnInit(): void {\r\n    this.getBatch();\r\n    this.getRawMaterials();\r\n    this.getInputs();\r\n    this.CategoriesService.chargeCategories();\r\n    this.getCategories();\r\n    this.units = Object.values(Units);\r\n    const now = new Date();\r\n    this.minDate = now.toISOString().slice(0, 16); // Formato YYYY-MM-DDTHH:MM\r\n\r\n    console.log('Preselected Ingredients: ', this.preSelectedIngredients);\r\n    console.log('Preselected Inputs: ', this.preSelectedInputs);\r\n  }\r\n\r\n  addCategory(): void {\r\n    if (this.addCategoryForm.valid) {\r\n      this.categories.push(this.addCategoryForm.value.newCategory);\r\n      this.addCategoryForm.reset();\r\n      this.addCategoryModal = false;\r\n    } else {\r\n      console.log('Formulario de categoria inválido.');\r\n    }\r\n  }\r\n\r\n \r\n  onSubmit(): void {\r\n    console.log(this.batchForm);\r\n    if (this.batchForm.valid) {\r\n      const selectedIngredientControls =\r\n        this.batchForm.get('ingredients')?.value;\r\n      //console.log('FSelected Ingredients: ', selectedIngredientControls);\r\n      const selectedInputControls = this.batchForm.get('packages')?.value;\r\n      //console.log('FSelected Inputs: ', selectedInputControls);\r\n\r\n      const selectedIngredientIds = selectedIngredientControls\r\n        .filter((ingredient: any) => ingredient.selected)\r\n        .map((ingredient: any) => ingredient.id);\r\n      //console.log('FSelected Ingredients: ', selectedIngredientIds);\r\n      const selectedInputIds = selectedInputControls\r\n        .filter((input: any) => input.selected)\r\n        .map((input: any) => input.id);\r\n      //console.log('FSelected Inputs: ', selectedInputIds);\r\n      // Ingredientes y empaques seleccionados y deseleccionados\r\n      const updatedIngredients = this.avaibleRawMaterials.filter(\r\n        (material: any) => selectedIngredientIds.includes(material.id)\r\n      );\r\n      //console.log('FUpdated Ingredients: ', updatedIngredients);\r\n      const updatedInputs = this.avaibleInputs.filter((material: any) =>\r\n        selectedInputIds.includes(material.id)\r\n      );\r\n      //console.log('FUpdated Inputs: ', updatedInputs);\r\n\r\n      const ingredientsQuantity = selectedIngredientControls\r\n        .filter((ingredient: any) => ingredient.selected)\r\n        .map((ingredient: any) => `${ingredient.id},${ingredient.quantity}`)\r\n        .join(';');\r\n      //console.log('IngredientesQ: ', ingredientsQuantity);\r\n      const inputsQuantity = selectedInputControls\r\n        .filter((input: any) => input.selected)\r\n        .map((input: any) => `${input.id},${input.quantity}`)\r\n        .join(';');\r\n      //console.log('EmpaquesQ: ', inputsQuantity)\r\n      // Lote actualizado\r\n      const batch = {\r\n        id: this.batchId,\r\n        name: this.batchForm.get('name')?.value,\r\n        category: this.batchForm.get('category')?.value,\r\n        quantity: this.batchForm.get('quantity')?.value,\r\n        unit: this.batchForm.get('unit')?.value,\r\n        expiration: this.batchForm.get('expirationDate')?.value,\r\n        creationDate: this.ad,\r\n        lastModificationDate: this.lmd,\r\n        description: this.batchForm.get('description')?.value || '',\r\n        batchIngredients: updatedIngredients,\r\n        batchIngredientsQuantity: ingredientsQuantity,\r\n        batchPackagingElements: updatedInputs,\r\n        batchPackagingElementsQuantity: inputsQuantity,\r\n        price: this.batchForm.get('price')?.value,\r\n      };\r\n      console.log('Batch: ', batch);\r\n\r\n      console.log('BatchJS: ', JSON.stringify(batch));\r\n\r\n      this.BatchesService.updateBatch(batch).subscribe(\r\n        (data) => {\r\n          console.log('Lote creado correctamente.');\r\n\r\n          // Promesas para actualizar ingredientes seleccionados\r\n          const ingredientUpdatePromises = this.updateSelectedIngredients(\r\n            selectedIngredientControls\r\n          );\r\n\r\n          // Promesas para actualizar empaques seleccionados\r\n          const inputUpdatePromises = this.updateSelectedInputs(\r\n            selectedInputControls\r\n          );\r\n\r\n          // Promesas para restaurar stock de ingredientes deseleccionados\r\n          const ingredientRestorePromises = this.restoreDeselectedIngredients(\r\n            selectedIngredientControls\r\n          );\r\n\r\n          // Promesas para restaurar stock de empaques deseleccionados\r\n          const inputRestorePromises = this.restoreDeselectedInputs(\r\n            selectedInputControls\r\n          );\r\n\r\n          // Ejecutar todas las promesas\r\n          Promise.all([\r\n            ...ingredientUpdatePromises,\r\n            ...inputUpdatePromises,\r\n            ...ingredientRestorePromises,\r\n            ...inputRestorePromises,\r\n          ])\r\n            .then(() => {\r\n              console.log('Todos los materiales actualizados correctamente.');\r\n            })\r\n            .catch((error) => {\r\n              console.error('Error al actualizar materiales: ', error);\r\n            });\r\n\r\n          this.router.navigate(['/production']);\r\n        },\r\n        (error) => {\r\n          console.error(error);\r\n        }\r\n      );\r\n    } else {\r\n      console.log('Formulario de lote inválido.');\r\n    }\r\n  }\r\n\r\n  updateSelectedIngredients(selectedIngredientControls: any[]): Promise<any>[] {\r\n    return selectedIngredientControls.map((field: any) => {\r\n      const ingredient = this.avaibleRawMaterials.find(\r\n        (material) => material.id === field.id\r\n      );\r\n      console.log('Selected Ingredient: ', field);\r\n      console.log('Ingredient base: ', ingredient);\r\n      const originalQuantity = Number(\r\n        this.preSelectedIngredients[field.id] || 0\r\n      );\r\n      console.log('Original Quantity: ', originalQuantity);\r\n      if (ingredient) {\r\n        const newQuantity = Number(field.quantity);\r\n        console.log('New Quantity: ', newQuantity);\r\n        if (newQuantity !== originalQuantity) {\r\n          const difference = newQuantity - originalQuantity;\r\n          console.log('Difference: ', difference);\r\n          if (difference > 0) {\r\n            // Restar diferencia al stock\r\n            ingredient.quantity -= difference;\r\n          } else {\r\n            // Sumar diferencia al stock\r\n            ingredient.quantity += Math.abs(difference);\r\n          }\r\n          console.log('New Ingredient Quantity: ', ingredient.quantity);\r\n          return this.RawMaterialsService.updateRawMaterial(\r\n            ingredient\r\n          ).toPromise();\r\n        }\r\n      }\r\n      return Promise.resolve(null);\r\n    });\r\n  }\r\n\r\n  updateSelectedInputs(selectedInputControls: any[]): Promise<any>[] {\r\n    return selectedInputControls.map((field: any) => {\r\n      const input = this.avaibleInputs.find(\r\n        (material) => material.id === field.id\r\n      );\r\n      const originalQuantity = Number(this.preSelectedInputs[field.id] || 0);\r\n\r\n      if (input) {\r\n        const newQuantity = Number(field.quantity);\r\n\r\n        if (newQuantity !== originalQuantity) {\r\n          const difference = newQuantity - originalQuantity;\r\n\r\n          if (difference > 0) {\r\n            // Restar diferencia al stock\r\n            input.quantity -= difference;\r\n          } else {\r\n            // Sumar diferencia al stock\r\n            input.quantity += Math.abs(difference);\r\n          }\r\n\r\n          return this.InputsService.updateInput(input).toPromise();\r\n        }\r\n      }\r\n      return Promise.resolve(null);\r\n    });\r\n  }\r\n\r\n  restoreDeselectedIngredients(\r\n    selectedIngredientControls: any[]\r\n  ): Promise<any>[] {\r\n    return this.avaibleRawMaterials\r\n      .filter(\r\n        (material: any) =>\r\n          !selectedIngredientControls.find(\r\n            (control: any) => control.id === material.id\r\n          )\r\n      )\r\n      .map((deselected: any) => {\r\n        const originalQuantity =\r\n          this.preSelectedIngredients[deselected.id] || 0;\r\n        deselected.quantity += originalQuantity;\r\n        return this.RawMaterialsService.updateRawMaterial(\r\n          deselected\r\n        ).toPromise();\r\n      });\r\n  }\r\n\r\n  restoreDeselectedInputs(selectedInputControls: any[]): Promise<any>[] {\r\n    return this.avaibleInputs\r\n      .filter(\r\n        (material: any) =>\r\n          !selectedInputControls.find(\r\n            (control: any) => control.id === material.id\r\n          )\r\n      )\r\n      .map((deselected: any) => {\r\n        const originalQuantity = this.preSelectedInputs[deselected.id] || 0;\r\n        deselected.quantity += originalQuantity;\r\n        return this.InputsService.updateInput(deselected).toPromise();\r\n      });\r\n  }\r\n\r\n  openAddCategoryModal() {\r\n    this.addCategoryModal = true;\r\n  }\r\n\r\n  closeAddCategoryModal() {\r\n    this.addCategoryModal = false;\r\n  }\r\n\r\n  get selectedIngredients(): FormArray {\r\n    return this.batchForm.get('ingredients') as FormArray;\r\n  }\r\n\r\n  private addRawMaterialControls(): void {\r\n    while (this.selectedIngredients.length) {\r\n      this.selectedIngredients.removeAt(0);\r\n    } // Asegúrate de eliminar controles antiguos\r\n\r\n    this.avaibleRawMaterials.forEach((material) => {\r\n      this.selectedIngredients.push(\r\n        this.formbuild.group({\r\n          id: [material.id],\r\n          name: [material.name],\r\n          selected: [false],\r\n          quantity: [\r\n            null,\r\n            [Validators.min(1), Validators.max(material.availableQuantity)],\r\n          ],\r\n        })\r\n      );\r\n    });\r\n  }\r\n\r\n  openRMFilters() {}\r\n\r\n  get selectedInputs(): FormArray {\r\n    return this.batchForm.get('packages') as FormArray;\r\n  }\r\n\r\n  private addInputsControls(): void {\r\n    while (this.selectedInputs.length) {\r\n      this.selectedInputs.removeAt(0);\r\n    }\r\n    this.avaibleInputs.forEach((material) => {\r\n      this.selectedInputs.push(\r\n        this.formbuild.group({\r\n          id: [material.id],\r\n          name: [material.name],\r\n          selected: [false],\r\n          quantity: [\r\n            null,\r\n            [Validators.min(1), Validators.max(material.availableQuantity)],\r\n          ],\r\n        })\r\n      );\r\n    });\r\n  }\r\n\r\n  openIFilters() {}\r\n\r\n  private getCategories(): void {\r\n    this.CategoriesService.getCategories().subscribe(\r\n      (data) => {\r\n        this.categories = data.sort((a, b) => a.localeCompare(b));\r\n      },\r\n      (error) => {\r\n        console.error(error);\r\n      }\r\n    );\r\n  }\r\n\r\n  private getBatch(): void {\r\n    this.batchId = +(this.activeRoute.snapshot.paramMap.get('id') ?? 0);\r\n    this.BatchesService.getBatchById(this.batchId).subscribe(\r\n      (res) => {\r\n        console.log(res);\r\n        this.batch = res as TableData;\r\n        console.log(this.batch);\r\n        // Patch general batch data\r\n        this.batchForm.patchValue({\r\n          name: res.name,\r\n          category: res.category,\r\n          quantity: res.quantity,\r\n          unit: res.unit,\r\n          expirationDate: formatDate(res.expiration),\r\n          description: res.description,\r\n          price: res.price,\r\n        });\r\n        this.ad = res.creationDate;\r\n        this.lmd = res.lastModificationDate;\r\n\r\n        // Convert quantities from string to array\r\n        /*const ingredientQuantities = res.batchIngredientsQuantity\r\n          .split(',')\r\n          .map((q: string) => parseFloat(q));\r\n        const packagingQuantities = res.batchPackagingElementsQuantity\r\n          .split(',')\r\n          .map((q: string) => parseFloat(q));\r\n        */\r\n        const ingredientQuantities = res.batchIngredientsQuantity\r\n          .split(';')\r\n          .reduce((acc: { [key: string]: number }, pair: string) => {\r\n            const [id, quantity] = pair.split(','); // separate id and quantity\r\n            acc[id] = parseFloat(quantity); // store id as key and quantity as value\r\n            return acc;\r\n          }, {});\r\n\r\n        const packagingQuantities = res.batchPackagingElementsQuantity\r\n          .split(';')\r\n          .reduce((acc: { [key: string]: number }, pair: string) => {\r\n            const [id, quantity] = pair.split(','); // separate id and quantity\r\n            acc[id] = parseFloat(quantity); // store id as key and quantity as value\r\n            return acc;\r\n          }, {});\r\n\r\n        this.totalCost = res.price;\r\n        // Patch ingredients FormArray with batchIngredients and ingredientQuantities\r\n        this.getRawMaterials().then(() => {\r\n          const ingredientsArray = this.batchForm.get(\r\n            'ingredients'\r\n          ) as FormArray;\r\n          /*res.batchIngredients.forEach((ingredient: any, index: number) => {\r\n            const control = ingredientsArray.controls.find(\r\n              (ctrl) => ctrl.value.id === ingredient.id\r\n            );\r\n            if (control) {\r\n              control.patchValue({\r\n                selected: true,\r\n                quantity:\r\n                  ingredientQuantities[index] !== undefined\r\n                    ? ingredientQuantities[index]\r\n                    : null,\r\n              });\r\n              this.preSelectedIngredients[ingredient.id] =\r\n                ingredientQuantities[index];\r\n            }\r\n          }*/\r\n          res.batchIngredients.forEach((ingredient: any) =>\r\n          {\r\n            const control = ingredientsArray.controls.find((ctrl) => ctrl.value.id === ingredient.id);\r\n            if(control){\r\n              control.patchValue({\r\n                selected: true,\r\n                quantity: ingredientQuantities[ingredient.id] !== undefined ? ingredientQuantities[ingredient.id] : null,\r\n              });\r\n              this.preSelectedIngredients[ingredient.id] = ingredientQuantities[ingredient.id];\r\n            }\r\n          });\r\n        });\r\n\r\n        // Patch packages FormArray with batchPackagingElements and packagingQuantities\r\n        this.getInputs().then(() => {\r\n          const packagesArray = this.batchForm.get('packages') as FormArray;\r\n          /*res.batchPackagingElements.forEach(\r\n            (packaging: any, index: number) => {\r\n              const control = packagesArray.controls.find(\r\n                (ctrl) => ctrl.value.id === packaging.id\r\n              );\r\n              if (control) {\r\n                control.patchValue({\r\n                  selected: true,\r\n                  quantity:\r\n                    packagingQuantities[index] !== undefined\r\n                      ? packagingQuantities[index]\r\n                      : null,\r\n                });\r\n                this.preSelectedInputs[packaging.id] =\r\n                  packagingQuantities[index];\r\n              }\r\n            }*/\r\n          res.batchPackagingElements.forEach((packaging: any) => {\r\n            const control = packagesArray.controls.find((ctrl) => ctrl.value.id === packaging.id);\r\n            if(control){\r\n              control.patchValue({\r\n                selected: true,\r\n                quantity: packagingQuantities[packaging.id] !== undefined ? packagingQuantities[packaging.id] : null,\r\n              });\r\n              this.preSelectedInputs[packaging.id] = packagingQuantities[packaging.id];\r\n            }\r\n          }\r\n          );\r\n        });\r\n      },\r\n      (error) => {\r\n        console.error(error);\r\n      }\r\n    );\r\n  }\r\n\r\n  private getRawMaterials(): Promise<void> {\r\n    return new Promise((resolve, reject) => {\r\n      this.RawMaterialsService.getRawMaterials().subscribe(\r\n        (data: any[]) => {\r\n          this.avaibleRawMaterials = data.sort((a, b) => a.name.localeCompare(b.name));\r\n          this.addRawMaterialControls();\r\n          resolve();\r\n        },\r\n        (error) => {\r\n          console.error(error);\r\n          reject(error);\r\n        }\r\n      );\r\n    });\r\n  }\r\n  private getInputs(): Promise<void> {\r\n    return new Promise((resolve, reject) => {\r\n      this.InputsService.getInputs().subscribe(\r\n        (data: any[]) => {\r\n          this.avaibleInputs = data.sort((a, b) => a.name.localeCompare(b.name));\r\n          this.addInputsControls();\r\n          resolve();\r\n        },\r\n        (error) => {\r\n          console.error(error);\r\n          reject(error);\r\n        }\r\n      );\r\n    });\r\n  }\r\n  /*\r\n  private updateElement(\r\n    element: any,\r\n    actualQuantity: any,\r\n    oldQuantity: any\r\n  ): any {\r\n    if (oldQuantity === actualQuantity) {\r\n      return element.quantity;\r\n    }\r\n    if (actualQuantity > oldQuantity) {\r\n      return (element.quantity -= actualQuantity - oldQuantity);\r\n    } else {\r\n      if (actualQuantity < oldQuantity) {\r\n        return (element.quantity += oldQuantity - actualQuantity);\r\n      }\r\n    }\r\n  }\r\n    **/\r\n  private updateElement(\r\n    stock: any,\r\n    actualQuantity: any,\r\n    oldQuantity: any\r\n  ): number {\r\n    if (oldQuantity === actualQuantity) {\r\n      return stock.quantity;\r\n    } else if (actualQuantity > oldQuantity) {\r\n      return stock.quantity - (actualQuantity - oldQuantity);\r\n    } else {\r\n      return stock.quantity + (oldQuantity - actualQuantity);\r\n    }\r\n  }\r\n\r\n  calculateCost(): void {\r\n    this.totalCost = 0; // Reinicia el costo total\r\n    this.batchForm.get('ingredients')?.value.forEach((ingredient: any) => {\r\n      console.log(ingredient);\r\n      if (ingredient.selected) {\r\n        const rawMaterial = this.avaibleRawMaterials.find((material) => {\r\n          console.log(material.id, ingredient.id);\r\n          console.log(material.id === ingredient.id);\r\n          material.id === ingredient.id;\r\n          return material.id === ingredient.id;\r\n        });\r\n        console.log(rawMaterial, rawMaterial.cost);\r\n        if (rawMaterial) {\r\n          this.totalCost += ingredient.quantity * rawMaterial.cost;\r\n        }\r\n      }\r\n    });\r\n    // Calcular el costo de los empaques seleccionados\r\n    this.batchForm.get('packages')?.value.forEach((input: any) => {\r\n      if (input.selected) {\r\n        const packagingMaterial = this.avaibleInputs.find((material) => {\r\n          material.id === input.id;\r\n          return material.id === input.id;\r\n        });\r\n        if (packagingMaterial) {\r\n          this.totalCost += input.quantity * packagingMaterial.cost;\r\n        }\r\n      }\r\n    });\r\n\r\n    this.updatePriceValidator();\r\n  }\r\n\r\n  updatePriceValidator(): void {\r\n    const priceControl = this.batchForm.get('price');\r\n    if (priceControl) {\r\n      // Actualiza los validadores del control con el nuevo valor de totalCost\r\n      priceControl.setValidators([\r\n        Validators.required,\r\n        Validators.min(this.totalCost),\r\n      ]);\r\n\r\n      // Recalcula la validez del control para aplicar los nuevos validadores\r\n      priceControl.updateValueAndValidity();\r\n    }\r\n  }\r\n}\r\n\r\ninterface element {\r\n  [key: number]: number;\r\n}\r\n","<app-navbar></app-navbar>\r\n<div\r\n  class=\"container-fluid d-flex flex-column justify-content-center align-items-center vh-100\"\r\n>\r\n  <div class=\"row justify-content-center align-items-center w-100\">\r\n    <div class=\"col-10 col-main\">\r\n      <form\r\n        #aux=\"ngForm\"\r\n        [formGroup]=\"batchForm\"\r\n        (ngSubmit)=\"onSubmit()\"\r\n        class=\"w-100\"\r\n      >\r\n        <div class=\"row header-row mb-4\">\r\n          <div class=\"col\">\r\n            <h1 class=\"view-title\">Modificar Lote</h1>\r\n          </div>\r\n          <div class=\"col d-flex justify-content-end\">\r\n            <button type=\"submit\" class=\"btn btn-custom\">GUARDAR</button>\r\n          </div>\r\n        </div>\r\n        <div class=\"row custom-row\">\r\n          <div class=\"col-5\">\r\n            <div class=\"form-group\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-3\">\r\n                    <label class=\"subtitle\" for=\"name\">Nombre</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"name\"\r\n                      name=\"name\"\r\n                      formControlName=\"name\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (batchForm.get('name')?.dirty ||\r\n                            batchForm.get('name')?.touched ||\r\n                            aux.submitted) &&\r\n                          batchForm.get('name')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (batchForm.get('name')?.invalid &&\r\n                          (batchForm.get('name')?.dirty ||\r\n                            batchForm.get('name')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div *ngIf=\"batchForm.get('name')?.errors?.['required']\">\r\n                        Nombre es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!batchForm.get('name')?.errors?.['required'] && batchForm.get('name')?.errors?.['pattern']\"\r\n                      >\r\n                        El nombre no debe contener números ni símbolos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-3\">\r\n                    <label for=\"category\" class=\"mb-0 subtitle\"\r\n                      >Categoria</label\r\n                    >\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <select\r\n                      id=\"category\"\r\n                      formControlName=\"category\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"category Selection\"\r\n                      placeholder=\"Seleccione un tipo\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (batchForm.get('category')?.dirty ||\r\n                            batchForm.get('category')?.touched ||\r\n                            aux.submitted) &&\r\n                          batchForm.get('category')?.invalid\r\n                      }\"\r\n                    >\r\n                      <option value=\"\" disabled selected>\r\n                        Selecciona una Categoria\r\n                      </option>\r\n                      <option *ngFor=\"let c of categories\" [value]=\"c\">\r\n                        {{ c }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                  <div class=\"col-2 d-flex justify-content-end\">\r\n                    <button\r\n                      type=\"button\"\r\n                      class=\"btn btn-custom\"\r\n                      (click)=\"openAddCategoryModal()\"\r\n                    >\r\n                      <i class=\"bi bi-plus-square-fill\"></i>\r\n                    </button>\r\n                  </div>\r\n                </div>\r\n                <div class=\"error-container\">\r\n                  <div\r\n                    *ngIf=\"aux.submitted && batchForm.get('category')?.invalid\"\r\n                    class=\"text-danger mt-1\"\r\n                  >\r\n                    <div\r\n                      *ngIf=\"batchForm.get('category')?.errors?.['required']\"\r\n                    >\r\n                      La Categoria es necesaria.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-3\">\r\n                    <label class=\"subtitle\" for=\"quantity\">Cantidad</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"quantity\"\r\n                      name=\"quantity\"\r\n                      formControlName=\"quantity\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (batchForm.get('quantity')?.dirty ||\r\n                            batchForm.get('quantity')?.touched ||\r\n                            aux.submitted) &&\r\n                          batchForm.get('quantity')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <label class=\"subtitle\" for=\"unit\">Unidad</label>\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <select\r\n                      id=\"unit\"\r\n                      formControlName=\"unit\"\r\n                      class=\"form-select me-2\"\r\n                      aria-label=\"Unit Selection\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (batchForm.get('unit')?.dirty ||\r\n                            batchForm.get('unit')?.touched ||\r\n                            aux.submitted) &&\r\n                          batchForm.get('unit')?.invalid\r\n                      }\"\r\n                    >\r\n                      <option value=\"\" disabled selected>...</option>\r\n                      <option *ngFor=\"let unit of units\" [value]=\"unit\">\r\n                        {{ unit }}\r\n                      </option>\r\n                    </select>\r\n                  </div>\r\n                </div>\r\n                <div class=\"row error-container align-items-center\">\r\n                  <div\r\n                    class=\"col-8 text-danger\"\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (batchForm.get('quantity')?.invalid &&\r\n                        (batchForm.get('quantity')?.dirty ||\r\n                          batchForm.get('quantity')?.touched))\r\n                    \"\r\n                  >\r\n                    <div\r\n                      *ngIf=\"batchForm.get('quantity')?.errors?.['required']\"\r\n                    >\r\n                      Es necesario ingresar una cantidad.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"!batchForm.get('quantity')?.errors?.['required'] && batchForm.get('quantity')?.errors?.['invalidQuantity']\"\r\n                    >\r\n                      La cantidad debe ser un número válido mayor a 0.\r\n                    </div>\r\n                  </div>\r\n                  <div\r\n                    class=\"col text-danger\"\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (batchForm.get('unit')?.invalid &&\r\n                        (batchForm.get('unit')?.dirty ||\r\n                          batchForm.get('unit')?.touched))\r\n                    \"\r\n                  >\r\n                    <div *ngIf=\"batchForm.get('unit')?.errors?.['required']\">\r\n                      Ingrese una unidad.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col\">\r\n                    <label class=\"subtitle\" for=\"expirationDate\"\r\n                      >Fecha de Vencimiento:</label\r\n                    >\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"datetime-local\"\r\n                      class=\"form-control\"\r\n                      id=\"expirationDate\"\r\n                      formControlName=\"expirationDate\"\r\n                      [attr.min]=\"minDate\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (batchForm.get('expirationDate')?.dirty ||\r\n                            batchForm.get('expirationDate')?.touched ||\r\n                            aux.submitted) &&\r\n                          batchForm.get('expirationDate')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted &&\r\n                        batchForm.get('expirationDate')?.invalid &&\r\n                          (batchForm.get('expirationDate')?.dirty ||\r\n                            batchForm.get('expirationDate')?.touched)\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Se necesita una Fecha de Vencimiento.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-3\">\r\n                    <label class=\"subtitle\" for=\"quantity\">Precio</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"number\"\r\n                      class=\"form-control\"\r\n                      id=\"price\"\r\n                      name=\"price\"\r\n                      formControlName=\"price\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (batchForm.get('price')?.dirty ||\r\n                            batchForm.get('price')?.touched ||\r\n                            aux.submitted) &&\r\n                          batchForm.get('price')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"col-2\">\r\n                    <label class=\"subtitle\" for=\"unit\">Costo</label>\r\n                  </div>\r\n                  <div class=\"col-2 cost\">\r\n                    {{ totalCost }}\r\n                  </div>\r\n                </div>\r\n                <div class=\"error-container\">\r\n                  <div\r\n                    *ngIf=\"\r\n                      (batchForm.get('price')?.dirty ||\r\n                        batchForm.get('price')?.touched ||\r\n                        aux.submitted) &&\r\n                      batchForm.get('price')?.invalid\r\n                    \"\r\n                    class=\"text-danger\"\r\n                  >\r\n                    El Precio debe ser igual o mayor al costo\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n          <div class=\"col col-border\">\r\n            <div class=\"row align-items-center\">\r\n              <div class=\"col\">\r\n                <label class=\"subtitle\">Ingredientes</label>\r\n              </div>\r\n              <div class=\"col d-flex justify-content-end\">\r\n                <button\r\n                  type=\"button\"\r\n                  class=\"btn btn-custom\"\r\n                  (click)=\"openRMFilters()\"\r\n                >\r\n                  <i class=\"bi bi-filter-square-fill\"></i>\r\n                </button>\r\n              </div>\r\n            </div>\r\n            <div formArrayName=\"ingredients\" class=\"ingredient-list\">\r\n              <div\r\n                *ngFor=\"\r\n                  let materialControl of selectedIngredients.controls;\r\n                  let i = index\r\n                \"\r\n                [formGroupName]=\"i\"\r\n                class=\"ingredient-item\"\r\n              >\r\n                <div class=\"form-check\">\r\n                  <input\r\n                    type=\"checkbox\"\r\n                    class=\"form-check-input\"\r\n                    formControlName=\"selected\"\r\n                    id=\"material-{{ i }}\"\r\n                  />\r\n                  <label class=\"form-check-label\" for=\"material-{{ i }}\">\r\n                    {{ avaibleRawMaterials[i].name }} (Disponible:\r\n                    {{ avaibleRawMaterials[i].quantity }}\r\n                    {{ avaibleRawMaterials[i].unit }})\r\n                  </label>\r\n                </div>\r\n                <div\r\n                  *ngIf=\"materialControl.get('selected')?.value\"\r\n                  class=\"form-group\"\r\n                >\r\n                  <label for=\"quantity-{{ i }}\">Cantidad:</label>\r\n                  <input\r\n                    type=\"number\"\r\n                    class=\"form-control\"\r\n                    formControlName=\"quantity\"\r\n                    id=\"quantity-{{ i }}\"\r\n                    (change)=\"calculateCost()\"\r\n                    [ngClass]=\"{\r\n                      'is-invalid':\r\n                        (batchForm.get('quantity')?.dirty ||\r\n                          batchForm.get('quantity')?.touched ||\r\n                          aux.submitted) &&\r\n                        batchForm.get('quantity')?.invalid\r\n                    }\"\r\n                  />\r\n                  <div\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (materialControl.get('quantity')?.invalid &&\r\n                        (materialControl.get('quantity')?.dirty ||\r\n                          materialControl.get('quantity')?.touched))\r\n                    \"\r\n                    class=\"text-danger\"\r\n                  >\r\n                    <div\r\n                      *ngIf=\"materialControl.get('quantity')?.errors?.['min']\"\r\n                    >\r\n                      La cantidad mínima es 1.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"materialControl.get('quantity')?.errors?.['max']\"\r\n                    >\r\n                      La cantidad máxima es\r\n                      {{ avaibleRawMaterials[i].quantity }}.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div\r\n              *ngIf=\"\r\n                (aux.submitted && batchForm.get('ingredients')?.invalid) ||\r\n                (batchForm.get('ingredients')?.touched &&\r\n                  batchForm.get('ingredients')?.invalid)\r\n              \"\r\n              class=\"text-danger mt-2\"\r\n            >\r\n              Debe seleccionarse al menos un ingrediente.\r\n            </div>\r\n          </div>\r\n\r\n          <div class=\"col col-border\">\r\n            <div class=\"row align-items-center\">\r\n              <div class=\"col\">\r\n                <label class=\"subtitle\">Insumos</label>\r\n              </div>\r\n              <div class=\"col d-flex justify-content-end\">\r\n                <button\r\n                  type=\"button\"\r\n                  class=\"btn btn-custom\"\r\n                  (click)=\"openIFilters()\"\r\n                >\r\n                  <i class=\"bi bi-filter-square-fill\"></i>\r\n                </button>\r\n              </div>\r\n            </div>\r\n            <div formArrayName=\"packages\" class=\"ingredient-list\">\r\n              <div\r\n                *ngFor=\"\r\n                  let materialControl of selectedInputs.controls;\r\n                  let i = index\r\n                \"\r\n                [formGroupName]=\"i\"\r\n                class=\"ingredient-item\"\r\n              >\r\n                <div class=\"form-check\">\r\n                  <input\r\n                    type=\"checkbox\"\r\n                    class=\"form-check-input\"\r\n                    formControlName=\"selected\"\r\n                    id=\"material-{{ i }}\"\r\n                  />\r\n                  <label class=\"form-check-label\" for=\"material-{{ i }}\">\r\n                    {{ avaibleInputs[i].name }} (Disponible:\r\n                    {{ avaibleInputs[i].quantity }} {{ avaibleInputs[i].unit }})\r\n                  </label>\r\n                </div>\r\n                <div\r\n                  *ngIf=\"materialControl.get('selected')?.value\"\r\n                  class=\"form-group\"\r\n                >\r\n                  <label for=\"quantity-{{ i }}\">Cantidad:</label>\r\n                  <input\r\n                    type=\"number\"\r\n                    class=\"form-control\"\r\n                    formControlName=\"quantity\"\r\n                    id=\"quantity-{{ i }}\"\r\n                    (change)=\"calculateCost()\"\r\n                    [ngClass]=\"{\r\n                      'is-invalid':\r\n                        (batchForm.get('quantity')?.dirty ||\r\n                          batchForm.get('quantity')?.touched ||\r\n                          aux.submitted) &&\r\n                        batchForm.get('quantity')?.invalid\r\n                    }\"\r\n                  />\r\n                  <div\r\n                    *ngIf=\"\r\n                      aux.submitted ||\r\n                      (materialControl.get('quantity')?.invalid &&\r\n                        (materialControl.get('quantity')?.dirty ||\r\n                          materialControl.get('quantity')?.touched))\r\n                    \"\r\n                    class=\"text-danger\"\r\n                  >\r\n                    <div\r\n                      *ngIf=\"materialControl.get('quantity')?.errors?.['min']\"\r\n                    >\r\n                      La cantidad mínima es 1.\r\n                    </div>\r\n                    <div\r\n                      *ngIf=\"materialControl.get('quantity')?.errors?.['max']\"\r\n                    >\r\n                      La cantidad máxima es {{ avaibleInputs[i].quantity }}.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div\r\n              *ngIf=\"\r\n                (aux.submitted && batchForm.get('packages')?.invalid) ||\r\n                (batchForm.get('packages')?.touched &&\r\n                  batchForm.get('packages')?.invalid)\r\n              \"\r\n              class=\"text-danger mt-2\"\r\n            >\r\n              Debe seleccionarse al menos un insumo.\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"row custom-row\">\r\n          <hr />\r\n          <div class=\"col\">\r\n            <div class=\"form-group\">\r\n              <label class=\"subtitle\" for=\"description\">Descripción</label>\r\n              <!--textarea class=\"form-control\" id=\"description\" name=\"description\"\r\n\t\t\t\t\t\t\t\tformControlName=\"description\"></textarea-->\r\n              <p-editor\r\n                id=\"description\"\r\n                name=\"description\"\r\n                formControlName=\"description\"\r\n                class=\"form-control p-editor-custom\"\r\n                [style]=\"{ height: '240px' }\"\r\n                [ngClass]=\"{\r\n                  'is-invalid':\r\n                    (batchForm.get('description')?.dirty ||\r\n                      batchForm.get('description')?.touched ||\r\n                      aux.submitted) &&\r\n                    batchForm.get('description')?.invalid\r\n                }\"\r\n              >\r\n                <ng-template pTemplate=\"header\">\r\n                  <span class=\"ql-formats\">\r\n                    <select class=\"ql-header\" aria-label=\"Select header\">\r\n                      <option selected></option>\r\n                      <option value=\"1\">Heading 1</option>\r\n                      <option value=\"2\">Heading 2</option>\r\n                      <option value=\"3\">Heading 3</option>\r\n                    </select>\r\n                    <select class=\"ql-font\" aria-label=\"Select font\">\r\n                      <option selected></option>\r\n                      <option value=\"serif\">Serif</option>\r\n                      <option value=\"monospace\">Monospace</option>\r\n                    </select>\r\n                    <button class=\"ql-bold\" aria-label=\"Bold\"></button>\r\n                    <button class=\"ql-italic\" aria-label=\"Italic\"></button>\r\n                    <button\r\n                      class=\"ql-underline\"\r\n                      aria-label=\"Underline\"\r\n                    ></button>\r\n                    <select class=\"ql-align\" aria-label=\"Select align\">\r\n                      <option selected></option>\r\n                      <option value=\"center\">Center</option>\r\n                      <option value=\"right\">Right</option>\r\n                      <option value=\"justify\">Justify</option>\r\n                    </select>\r\n                    <button\r\n                      class=\"ql-list\"\r\n                      value=\"ordered\"\r\n                      aria-label=\"Ordered list\"\r\n                    ></button>\r\n                    <button\r\n                      class=\"ql-list\"\r\n                      value=\"bullet\"\r\n                      aria-label=\"Bullet list\"\r\n                    ></button>\r\n                    <button class=\"ql-link\" aria-label=\"Insert link\"></button>\r\n                  </span>\r\n                </ng-template>\r\n              </p-editor>\r\n            </div>\r\n            <div class=\"error-container\">\r\n              <div\r\n                *ngIf=\"\r\n                  (aux.submitted && batchForm.get('description')?.invalid) ||\r\n                  (batchForm.get('description')?.invalid &&\r\n                    (batchForm.get('description')?.dirty ||\r\n                      batchForm.get('description')?.touched))\r\n                \"\r\n                class=\"text-danger\"\r\n              >\r\n                Descripción es requerida.\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n<!-- Add Category Modal -->\r\n\r\n<div\r\n  *ngIf=\"addCategoryModal\"\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content\">\r\n      <div class=\"modal-header\">\r\n        <h1 class=\"modal-title fs-5\" id=\"confirmDeleteModalLabel\">\r\n          Agregar Tipo\r\n        </h1>\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn-close\"\r\n          (click)=\"closeAddCategoryModal()\"\r\n        ></button>\r\n      </div>\r\n      <div class=\"modal-body\">\r\n        <form [formGroup]=\"addCategoryForm\" (ngSubmit)=\"addCategory()\">\r\n          <div class=\"form-group\">\r\n            <label for=\"newCategory\">Nuevo Tipo</label>\r\n            <input\r\n              type=\"text\"\r\n              class=\"form-control\"\r\n              id=\"newCategory\"\r\n              formControlName=\"newCategory\"\r\n              placeholder=\"Ingrese el nuevo tipo\"\r\n            />\r\n            <div\r\n              *ngIf=\"\r\n                addCategoryForm.get('newCategory')?.invalid &&\r\n                (addCategoryForm.get('newCategory')?.dirty ||\r\n                  addCategoryForm.get('newType')?.touched)\r\n              \"\r\n              class=\"text-danger mt-1\"\r\n            >\r\n              <div\r\n                *ngIf=\"addCategoryForm.get('newCategory')?.errors?.['required']\"\r\n              >\r\n                La categoria es requerida.\r\n              </div>\r\n              <div\r\n                *ngIf=\"addCategoryForm.get('newCategory')?.errors?.['pattern']\"\r\n              >\r\n                La categoria no debe contener números ni símbolos.\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </form>\r\n      </div>\r\n      <div class=\"modal-footer\">\r\n        <button\r\n          type=\"button\"\r\n          class=\"btn btn-secondary\"\r\n          (click)=\"closeAddCategoryModal()\"\r\n        >\r\n          CANCELAR\r\n        </button>\r\n        <button type=\"submit\" class=\"btn btn-success\" (click)=\"addCategory()\">\r\n          GUARDAR\r\n        </button>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</div>\r\n","/*import {\r\n  ActivatedRouteSnapshot,\r\n  CanActivate,\r\n  RouterStateSnapshot,\r\n} from '@angular/router';\r\nimport { Injectable } from '@angular/core';\r\nimport { AuthService } from '../services/auth/auth.service';\r\nimport { Router } from '@angular/router';\r\n\r\n@Injectable({\r\n  providedIn: 'root',\r\n})\r\nexport class allReadyLogGuard implements CanActivate {\r\n  constructor(private authService: AuthService, private router: Router) {}\r\n\r\n  canActivate(\r\n    route: ActivatedRouteSnapshot,\r\n    state: RouterStateSnapshot\r\n  ): boolean {\r\n    if (this.authService.isLoggedIn()) {\r\n      this.router.navigate(['/home']);\r\n      return false;\r\n    } else {\r\n      return true;\r\n    }\r\n  }\r\n}\r\n*/\r\n\r\nimport { CanActivateFn } from '@angular/router';\r\nimport { inject } from '@angular/core';\r\nimport { AuthService } from '../services/auth/auth.service';\r\nimport { Router } from '@angular/router';\r\n\r\nexport const allReadyLogGuard: CanActivateFn = (route, state) => {\r\n  const authService = inject(AuthService);\r\n  const router = inject(Router);\r\n\r\n  if (authService.isLoggedIn()) {\r\n    router.navigate(['/home']);\r\n    return false;\r\n  } else {\r\n    return true;\r\n  }\r\n};\r\n","import { CommonModule, } from '@angular/common';\r\nimport { Component, Output, EventEmitter, Input, OnInit } from '@angular/core';\r\nimport { ReactiveFormsModule, FormBuilder, FormGroup, Validators, FormsModule } from '@angular/forms';\r\nimport { TableData } from '../../../../core/interfaces/table-data';\r\nimport { emailValidator, matchPasswordValidator, phoneValidator } from '../../../../core/utils/validators';\r\nimport { User } from '../../../../core/interfaces/entities/user';\r\nimport { UsersService } from '../../../../core/services/api/users.service';\r\n@Component({\r\n  selector: 'app-edit-profile-modal',\r\n  standalone: true,\r\n  imports: [CommonModule, ReactiveFormsModule, FormsModule],\r\n  templateUrl: './edit-profile-modal.component.html',\r\n  styleUrl: './edit-profile-modal.component.scss'\r\n})\r\nexport class EditProfileModalComponent implements OnInit {\r\n  @Input() userInput: TableData = {};\r\n  @Output() close = new EventEmitter<void>();\r\n\r\n  userForm: FormGroup;\r\n\r\n  constructor(private fb: FormBuilder, private UsersService: UsersService) {\r\n    this.userForm = this.fb.group({\r\n      email: [ '', [Validators.required, emailValidator]],\r\n      name: [{ value: ''}, [Validators.required,  Validators.pattern('[a-zA-Z ]*')]],\r\n      surname: [{ value: ''}, [Validators.required, Validators.pattern('[a-zA-Z ]*')]],\r\n      phone: ['', [Validators.required, phoneValidator]],\r\n      password: [''],\r\n      confirmPassword: [''],\r\n      role: ['', Validators.required]\r\n    },{ validator: matchPasswordValidator() });\r\n  }\r\n\r\n  ngOnInit(): void {\r\n    const user = this.transformUserInput(this.userInput);\r\n    this.userForm.patchValue(user);\r\n  }\r\n\r\n  onSubmit() {\r\n    if (this.userForm.valid) {\r\n      let pass = this.userInput['password'];\r\n      if (this.userForm.get('password')?.value !== '') {\r\n        pass = this.userForm.get('password')?.value;\r\n      }\r\n      const userToSave: TableData = {\r\n        id: this.userInput['id'],\r\n        name: this.userForm.get('name')?.value,\r\n        surname: this.userForm.get('surname')?.value,\r\n        email: this.userForm.get('email')?.value,\r\n        phone: this.userForm.get('phone')?.value,\r\n        role: this.userForm.get('role')?.value,\r\n        password: pass\r\n      };\r\n      console.log('User to save:', userToSave);\r\n      // Call backend\r\n      this.UsersService.updateUser(userToSave).subscribe(\r\n        () => {\r\n          this.close.emit();\r\n        }\r\n      );\r\n    } else {\r\n      this.userForm.markAllAsTouched();\r\n    }\r\n  }\r\n\r\n  closeModal() {\r\n    this.close.emit();\r\n  }\r\n\r\n  private transformUserInput(data: TableData): User {\r\n    console.log('Data:', data);\r\n    return {\r\n      id: data['id'],\r\n      name: data['name'] ?? '',\r\n      surname: data['surname'] ?? '',\r\n      email: data['email'] ?? '',\r\n      phone: data['phone'] ?? '',\r\n      password: '',  // No mostramos la contraseña\r\n      role: data['role'] ?? ''\r\n    };\r\n  }\r\n}\r\n","<div\r\n  class=\"modal modal-bg fade show\"\r\n  tabindex=\"-1\"\r\n  style=\"display: block\"\r\n  aria-modal=\"true\"\r\n  role=\"dialog\"\r\n>\r\n  <div class=\"modal-dialog\">\r\n    <div class=\"modal-content modal-content-main\">\r\n      <div\r\n        class=\"modal-header d-flex justify-content-center align-items-center\"\r\n      >\r\n        <div class=\"row w-100\">\r\n          <div class=\"col\">\r\n            <h5 class=\"modal-title\">Editar Perfil</h5>\r\n          </div>\r\n\r\n          <div class=\"col d-flex justify-content-end\">\r\n            <button\r\n              type=\"button\"\r\n              class=\"btn-close\"\r\n              aria-label=\"Close\"\r\n              (click)=\"closeModal()\"\r\n            ></button>\r\n          </div>\r\n        </div>\r\n      </div>\r\n      <form #aux=\"ngForm\" [formGroup]=\"userForm\" (ngSubmit)=\"onSubmit()\">\r\n        <div class=\"modal-body\">\r\n          <div class=\"row\">\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-1\">\r\n                    <label for=\"email\">Email</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"email\"\r\n                      class=\"form-control\"\r\n                      id=\"email\"\r\n                      name=\"email\"\r\n                      formControlName=\"email\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('email')?.dirty ||\r\n                            userForm.get('email')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('email')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (userForm.get('email')?.invalid &&\r\n                          (userForm.get('email')?.dirty ||\r\n                            userForm.get('email')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div *ngIf=\"userForm.get('email')?.errors?.['required']\">\r\n                        Email es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!userForm.get('email')?.errors?.['required'] && (userForm.get('email')?.errors?.['email'] ||userForm.get('email')?.errors?.['invalidEmail'])\"\r\n                      >\r\n                        Formato de email inválido.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"name\">Nombre</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"name\"\r\n                      name=\"name\"\r\n                      formControlName=\"name\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('name')?.dirty ||\r\n                            userForm.get('name')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('name')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (userForm.get('name')?.invalid &&\r\n                          (userForm.get('name')?.dirty ||\r\n                            userForm.get('name')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div *ngIf=\"userForm.get('name')?.errors?.['required']\">\r\n                        Nombre es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!userForm.get('name')?.errors?.['required'] && userForm.get('name')?.errors?.['pattern']\"\r\n                      >\r\n                        El nombre no debe contener números ni símbolos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"surname\">Apellido</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"surname\"\r\n                      name=\"surname\"\r\n                      formControlName=\"surname\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('surname')?.dirty ||\r\n                            userForm.get('surname')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('surname')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        aux.submitted ||\r\n                        (userForm.get('surname')?.invalid &&\r\n                          (userForm.get('surname')?.dirty ||\r\n                            userForm.get('surname')?.touched))\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div\r\n                        *ngIf=\"userForm.get('surname')?.errors?.['required']\"\r\n                      >\r\n                        Apellido es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"!userForm.get('surname')?.errors?.['required'] && userForm.get('surname')?.errors?.['pattern']\"\r\n                      >\r\n                        El apellido no debe contener números ni símbolos.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"phone\">Teléfono</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"text\"\r\n                      class=\"form-control\"\r\n                      id=\"phone\"\r\n                      name=\"phone\"\r\n                      formControlName=\"phone\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('phone')?.dirty ||\r\n                            userForm.get('phone')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('phone')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        (userForm.get('phone')?.invalid &&\r\n                          (userForm.get('phone')?.dirty ||\r\n                            userForm.get('phone')?.touched)) ||\r\n                        (aux.submitted && userForm.get('phone')?.invalid)\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      <div *ngIf=\"userForm.get('phone')?.errors?.['required']\">\r\n                        Teléfono es requerido.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"userForm.get('phone')?.errors?.['invalidPhone']\"\r\n                      >\r\n                        Formato de teléfono inválido.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n            <div class=\"col\">\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-2\">\r\n                    <label for=\"password\">Contraseña</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"password\"\r\n                      class=\"form-control\"\r\n                      id=\"password\"\r\n                      name=\"password\"\r\n                      formControlName=\"password\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('password')?.dirty ||\r\n                            userForm.get('password')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('password')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div\r\n                      *ngIf=\"\r\n                        userForm.get('password')?.value &&\r\n                        userForm.get('password')?.invalid &&\r\n                        (userForm.get('password')?.dirty ||\r\n                          userForm.get('password')?.touched ||\r\n                          aux.submitted)\r\n                      \"\r\n                      class=\"text-danger\"\r\n                    >\r\n                      Ingrese una contraseña válida.\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <div class=\"row align-items-center\">\r\n                  <div class=\"col-4\">\r\n                    <label for=\"confirmPassword\">Confirmar Contraseña</label>\r\n                  </div>\r\n                  <div class=\"col\">\r\n                    <input\r\n                      type=\"password\"\r\n                      class=\"form-control\"\r\n                      id=\"confirmPassword\"\r\n                      formControlName=\"confirmPassword\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('confirmPassword')?.dirty ||\r\n                            userForm.get('confirmPassword')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('confirmPassword')?.invalid\r\n                      }\"\r\n                    />\r\n                  </div>\r\n                  <div class=\"error-container\">\r\n                    <div *ngIf=\"userForm.get('password')?.value\">\r\n                      <div\r\n                        *ngIf=\"\r\n                          !userForm.get('confirmPassword')?.value &&\r\n                          (aux.submitted ||\r\n                            (userForm.get('confirmPassword')?.dirty &&\r\n                              userForm.get('confirmPassword')?.touched))\r\n                        \"\r\n                        class=\"text-danger\"\r\n                      >\r\n                        Confirmar Contraseña es requerida.\r\n                      </div>\r\n                      <div\r\n                        *ngIf=\"\r\n                          userForm.get('confirmPassword')?.value &&\r\n                          userForm.hasError('passwordMismatch') &&\r\n                          (aux.submitted ||\r\n                            userForm.get('confirmPassword')?.dirty ||\r\n                            userForm.get('confirmPassword')?.touched)\r\n                        \"\r\n                        class=\"text-danger\"\r\n                      >\r\n                        Las contraseñas no coinciden.\r\n                      </div>\r\n                    </div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n              <div class=\"form-group row-container\">\r\n                <label for=\"role\">Rol:</label>\r\n                <div class=\"d-flex flex-column align-items-center\">\r\n                  <div class=\"form-check\">\r\n                    <input\r\n                      class=\"form-check-input\"\r\n                      type=\"radio\"\r\n                      id=\"roleAdmin\"\r\n                      name=\"role\"\r\n                      value=\"Admin\"\r\n                      formControlName=\"role\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('role')?.dirty ||\r\n                            userForm.get('role')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('role')?.invalid\r\n                      }\"\r\n                    />\r\n                    <label class=\"form-check-label\" for=\"roleAdmin\"\r\n                      >Admin</label\r\n                    >\r\n                  </div>\r\n                  <div class=\"form-check\">\r\n                    <input\r\n                      class=\"form-check-input\"\r\n                      type=\"radio\"\r\n                      id=\"roleUser\"\r\n                      name=\"role\"\r\n                      value=\"User\"\r\n                      formControlName=\"role\"\r\n                      [ngClass]=\"{\r\n                        'is-invalid':\r\n                          (userForm.get('role')?.dirty ||\r\n                            userForm.get('role')?.touched ||\r\n                            aux.submitted) &&\r\n                          userForm.get('role')?.invalid\r\n                      }\"\r\n                    />\r\n                    <label class=\"form-check-label\" for=\"roleUser\">User</label>\r\n                  </div>\r\n                </div>\r\n                <div class=\"error-container\">\r\n                  <div\r\n                    *ngIf=\"\r\n                      (userForm.get('role')?.invalid &&\r\n                        (userForm.get('role')?.dirty ||\r\n                          userForm.get('role')?.touched)) ||\r\n                      (aux.submitted && userForm.get('role')?.invalid)\r\n                    \"\r\n                    class=\"text-danger\"\r\n                  >\r\n                    Rol es requerido.\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"modal-footer justify-content-center\">\r\n          <button type=\"submit\" class=\"btn btn-custom\">GUARDAR</button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { NavbarComponent } from '../../shared/components/navbar/navbar.component';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { CommonModule } from '@angular/common';\r\nimport { UsersService } from '../../core/services/api/users.service';\r\nimport { AuthService } from '../../core/services/auth/auth.service';\r\nimport { EditProfileModalComponent } from './editProfile/edit-profile-modal/edit-profile-modal.component';\r\n\r\n@Component({\r\n  selector: 'app-profile',\r\n  standalone: true,\r\n  imports: [NavbarComponent, ReactiveFormsModule, CommonModule, EditProfileModalComponent],\r\n  templateUrl: './profile.component.html',\r\n  styleUrl: './profile.component.scss',\r\n})\r\nexport class ProfileComponent implements OnInit {\r\n  \r\n  userId: any;\r\n  user: any = {};\r\n  openEditProfileModal: boolean = false;\r\n\r\n  constructor(\r\n    private authService: AuthService,\r\n    private userService: UsersService\r\n  ) {}\r\n\r\n  ngOnInit(): void {\r\n    this.userId = this.authService.getUserId();\r\n    //console.log('UserId: ', this.userId);\r\n    if(this.userId){\r\n      this.getData();\r\n    }\r\n    \r\n  }\r\n\r\n  openUserModal(): void {\r\n    this.openEditProfileModal = true;\r\n  }\r\n\r\n  closeUserModal(): void {\r\n    this.getData();\r\n    this.openEditProfileModal = false;\r\n    \r\n  }\r\n\r\n  private getData(): void {\r\n    this.userService.getUsersById(this.userId).subscribe((data: any) => {\r\n      this.user = data\r\n    });\r\n  }\r\n}\r\n","<app-navbar></app-navbar>\r\n<div\r\n  class=\"container-fluid d-flex flex-column justify-content-center align-items-center vh-100\"\r\n>\r\n  <div class=\"col-flex justify-content-center align-items-center\">\r\n    <div class=\"row header-row\">\r\n      <div class=\"col\">\r\n        <h1 class=\"view-title\">Mi Perfil</h1>\r\n      </div>\r\n\r\n      <div class=\"col d-flex justify-content-end\">\r\n        <a type=\"button\" class=\"btn btn-custom\" (click)=\"openUserModal()\"\r\n          >EDITAR</a\r\n        >\r\n      </div>\r\n    </div>\r\n    <div class=\"card \">\r\n      <div class=\"card-body\">\r\n        <div class=\"row mb-3\">\r\n          <div class=\"col\">\r\n            <label class=\"subtitle\">Nombre:</label>\r\n          </div>\r\n          <div class=\"col\">\r\n            <p class=\"card-text\">{{ user[\"name\"] }}</p>\r\n          </div>\r\n        </div>\r\n\r\n        <div class=\"row mb-3\">\r\n          <div class=\"col\">\r\n            <label class=\"subtitle\">Apellido:</label>\r\n          </div>\r\n          <div class=\"col\">\r\n            <p class=\"card-text\">{{ user[\"surname\"] }}</p>\r\n          </div>\r\n        </div>\r\n\r\n        <div class=\"row mb-3\">\r\n          <div class=\"col\">\r\n            <label class=\"subtitle\">Teléfono:</label>\r\n          </div>\r\n          <div class=\"col\">\r\n            <p class=\"card-text\">{{ user[\"phone\"] }}</p>\r\n          </div>\r\n        </div>\r\n\r\n        <div class=\"row\">\r\n          <div class=\"col\">\r\n            <label class=\"subtitle\">Email:</label>\r\n          </div>\r\n          <div class=\"col\">\r\n            <p class=\"card-text\">{{ user[\"email\"] }}</p>\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n<app-edit-profile-modal\r\n  *ngIf=\"openEditProfileModal\"\r\n  [userInput]=\"user\"\r\n  (close)=\"closeUserModal()\"\r\n></app-edit-profile-modal>","import { Routes } from '@angular/router';\r\nimport { LoginComponent } from './views/login/login.component';\r\nimport { HomeComponent } from './views/home/home.component';\r\nimport { InventoryComponent } from './views/inventory/inventory.component';\r\nimport { ProductionComponent } from './views/production/production.component';\r\nimport { RecipesComponent } from './views/recipes/recipes.component';\r\nimport { HistoryComponent } from './views/history/history.component';\r\nimport { UsersComponent } from './views/users/users.component';\r\nimport { ProvidersComponent } from './views/providers/providers.component';\r\nimport { ClientsComponent } from './views/clients/clients.component';\r\nimport { AddRecipeComponent } from './views/recipes/add-recipe/add-recipe.component';\r\nimport { ModifyRecipeComponent } from './views/recipes/modify-recipe/modify-recipe.component';\r\nimport { ViewRecipeComponent } from './views/recipes/view-recipe/view-recipe.component';\r\nimport { AddBatchComponent } from './views/production/add-batch/add-batch.component';\r\nimport { ViewBatchComponent } from './views/production/view-batch/view-batch.component';\r\n\r\nimport { AuthGuard } from './core/guards/auth.guard';\r\nimport { ModifyBatchComponent } from './views/production/modify-batch/modify-batch.component';\r\nimport { allReadyLogGuard } from './core/guards/all-ready-log.guard';\r\nimport { ProfileComponent } from './views/profile/profile.component';\r\n\r\n\r\nexport const routes: Routes = [\r\n    { path: '', component: LoginComponent, canActivate: [allReadyLogGuard], pathMatch: 'full' },\r\n    { path: 'home', component: HomeComponent, canActivate: [AuthGuard]},\r\n    { path: 'inventory', component: InventoryComponent, canActivate: [AuthGuard]},\r\n    { path: 'production', component: ProductionComponent, canActivate: [AuthGuard]},\r\n    { path: 'production/add', component: AddBatchComponent, canActivate: [AuthGuard]},\r\n    { path: 'production/:id', component: ViewBatchComponent, canActivate: [AuthGuard]},\r\n    { path: 'production/:id/modify', component: ModifyBatchComponent, canActivate: [AuthGuard]},\r\n    { path: 'recipes', component: RecipesComponent, canActivate: [AuthGuard]},\r\n    { path: 'recipes/add', component: AddRecipeComponent, canActivate: [AuthGuard]},\r\n    { path: 'recipes/:id', component: ViewRecipeComponent, canActivate: [AuthGuard]},\r\n    { path: 'recipes/:id/modify', component: ModifyRecipeComponent, canActivate: [AuthGuard]},\r\n    { path: 'history', component: HistoryComponent, canActivate: [AuthGuard]},\r\n    { path: 'users', component: UsersComponent, canActivate: [AuthGuard]},\r\n    { path: 'providers', component: ProvidersComponent, canActivate: [AuthGuard]},\r\n    { path: 'clients', component: ClientsComponent, canActivate: [AuthGuard]},\r\n    { path: 'profile', component: ProfileComponent, canActivate: [AuthGuard]},\r\n    { path: '**', redirectTo: '' }\r\n];\r\n","import { HttpInterceptorFn } from '@angular/common/http';\r\nimport { inject } from '@angular/core';\r\nimport { AuthService } from '../services/auth/auth.service';\r\nexport const authInterceptor: HttpInterceptorFn = (req, next) => {\r\n  const authService = inject(AuthService);\r\n  if (req.url.includes('/login')) {\r\n    return next(req);\r\n  }\r\n\r\n  const token = authService.getToken();\r\n  if (token) {\r\n    const authReq = req.clone({\r\n      setHeaders: {\r\n        Authorization: `Bearer ${token}`,\r\n      },\r\n    });\r\n    return next(authReq);\r\n  }\r\n  return next(req);\r\n};\r\n","import { ApplicationConfig } from '@angular/core';\r\nimport { provideRouter } from '@angular/router';\r\nimport {\r\n  provideHttpClient,\r\n  withFetch,\r\n  HTTP_INTERCEPTORS,\r\n  withInterceptors,\r\n} from '@angular/common/http';\r\n\r\nimport { routes } from './app.routes';\r\nimport { provideClientHydration } from '@angular/platform-browser';\r\nimport { authInterceptor } from './core/token/auth.interceptor';\r\n\r\nexport const appConfig: ApplicationConfig = {\r\n  providers: [\r\n    provideRouter(routes),\r\n    provideClientHydration(),\r\n    provideHttpClient(withFetch(), withInterceptors([authInterceptor])),\r\n  ],\r\n};\r\n","import { mergeApplicationConfig, ApplicationConfig } from '@angular/core';\r\nimport { provideServerRendering } from '@angular/platform-server';\r\nimport { appConfig } from './app.config';\r\n\r\nconst serverConfig: ApplicationConfig = {\r\n  providers: [\r\n    provideServerRendering()\r\n  ]\r\n};\r\n\r\nexport const config = mergeApplicationConfig(appConfig, serverConfig);\r\n","import { bootstrapApplication } from '@angular/platform-browser';\r\nimport { AppComponent } from './app/app.component';\r\nimport { config } from './app/app.config.server';\r\n\r\nconst bootstrap = () => bootstrapApplication(AppComponent, config);\r\n\r\nexport default bootstrap;\r\n"],"mappings":";gkCAUA,IAAaA,IAAY,IAAA,CAAnB,IAAOA,EAAP,MAAOA,CAAY,CAPzBC,aAAA,CAQE,KAAAC,MAAQ,0DADGF,EAAY,uBAAZA,EAAYG,UAAA,CAAA,CAAA,UAAA,CAAA,EAAAC,WAAA,GAAAC,SAAA,CAAAC,EAAA,EAAAC,MAAA,EAAAC,KAAA,EAAAC,SAAA,SAAAC,EAAAC,EAAA,CAAAD,EAAA,GCTzBE,EAAA,EAAA,eAAA,iBDKYC,EAAY,CAAA,CAAA,EAIlB,IAAOb,EAAPc,SAAOd,CAAY,GAAA,EESzB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EAAIC,GAAiB,CAACC,EAAe,CAAC,CAAC,CAAC,GCbvE,IAAMC,GAAkC,CACtCC,UAAW,CACTC,GAAsB,CAAE,GAIfC,GAASC,GAAuBC,GAAWL,EAAY,ECNpE,IAAMM,GAAYA,IAAMC,GAAqBC,GAAcC,EAAM,EAEjEC,GAAeJ","names":["AppComponent","constructor","title","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","template","rf","ctx","ɵɵelement","RouterOutlet","_AppComponent","BaseControlValueAccessor","_BaseControlValueAccessor","_renderer","_elementRef","_","key","value","fn","isDisabled","t","ɵɵdirectiveInject","Renderer2","ElementRef","ɵɵdefineDirective","BuiltInControlValueAccessor","_BuiltInControlValueAccessor","ɵBuiltInControlValueAccessor_BaseFactory","ɵɵgetInheritedFactory","ɵɵInheritDefinitionFeature","NG_VALUE_ACCESSOR","InjectionToken","CHECKBOX_VALUE_ACCESSOR","forwardRef","CheckboxControlValueAccessor","_CheckboxControlValueAccessor","ɵCheckboxControlValueAccessor_BaseFactory","rf","ctx","ɵɵlistener","$event","ɵɵProvidersFeature","DEFAULT_VALUE_ACCESSOR","DefaultValueAccessor","_isAndroid","userAgent","getDOM","COMPOSITION_BUFFER_MODE","_DefaultValueAccessor","renderer","elementRef","_compositionMode","normalizedValue","isEmptyInputValue","hasValidLength","NG_VALIDATORS","NG_ASYNC_VALIDATORS","EMAIL_REGEXP","Validators","min","minValidator","max","maxValidator","control","requiredValidator","requiredTrueValidator","emailValidator","minLength","minLengthValidator","maxLength","maxLengthValidator","pattern","patternValidator","nullValidator","validators","compose","composeAsync","regex","regexStr","isPresent","o","toObservable","isPromise","from","mergeErrors","arrayOfErrors","res","errors","__spreadValues","executeValidators","validator","isValidatorFn","normalizeValidators","c","presentValidators","composeValidators","observables","forkJoin","map","composeAsyncValidators","mergeValidators","controlValidators","dirValidator","getControlValidators","getControlAsyncValidators","makeValidatorsArray","hasValidator","addValidators","currentValidators","current","v","removeValidators","AbstractControlDirective","errorCode","path","ControlContainer","NgControl","AbstractControlStatus","cd","ngControlStatusHost","ngGroupStatusHost","__spreadProps","NgControlStatus","_NgControlStatus","ɵɵclassProp","NgControlStatusGroup","_NgControlStatusGroup","VALID","INVALID","PENDING","DISABLED","pickValidators","validatorOrOpts","isOptionsObj","coerceToValidator","validator","composeValidators","pickAsyncValidators","asyncValidator","coerceToAsyncValidator","composeAsyncValidators","assertControlPresent","parent","isGroup","key","controls","RuntimeError","assertAllValuesPresent","control","value","_","AbstractControl","validators","asyncValidators","validatorFn","asyncValidatorFn","addValidators","removeValidators","hasValidator","opts","skipPristineCheck","__spreadProps","__spreadValues","changeFn","ctrl","emitEvent","obs","toObservable","errors","path","currPath","name","errorCode","x","EventEmitter","status","fn","onlySelf","parentDirty","FormGroup","options","controlName","acc","subtreeUpdated","updated","child","cb","condition","initValue","res","FormRecord","FormGroup","CALL_SET_DISABLED_STATE","InjectionToken","setDisabledStateDefault","controlPath","name","parent","setUpControl","control","dir","callSetDisabledState","setUpValidators","setUpViewChangePipeline","setUpModelChangePipeline","setUpBlurPipeline","setUpDisabledChangeHandler","cleanUpControl","validateControlPresenceOnChange","noop","cleanUpValidators","registerOnValidatorChange","validators","onChange","validator","onDisabledChange","isDisabled","getControlValidators","mergeValidators","asyncValidators","getControlAsyncValidators","onValidatorChange","isControlUpdated","updatedValidators","updatedAsyncValidators","asyncValidator","newValue","updateControl","emitModelEvent","setUpFormContainer","cleanUpFormContainer","isPropertyUpdated","changes","viewModel","change","isBuiltInAccessor","valueAccessor","BuiltInControlValueAccessor","syncPendingControls","form","directives","dir","control","selectValueAccessor","valueAccessors","defaultAccessor","builtinAccessor","customAccessor","v","DefaultValueAccessor","removeListItem$1","list","el","index","removeListItem","list","el","index","isFormControlState","formState","FormControl","AbstractControl","validatorOrOpts","asyncValidator","pickValidators","pickAsyncValidators","isOptionsObj","value","options","changeFn","condition","fn","cb","isFormControl","control","FormControl","AbstractFormGroupDirective","_AbstractFormGroupDirective","ControlContainer","controlPath","ɵAbstractFormGroupDirective_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineDirective","ɵɵInheritDefinitionFeature","ɵNgNoValidate","_ɵNgNoValidate","t","ɵɵdefineDirective","NUMBER_VALUE_ACCESSOR","NG_VALUE_ACCESSOR","forwardRef","NumberValueAccessor","_NumberValueAccessor","BuiltInControlValueAccessor","value","normalizedValue","fn","ɵNumberValueAccessor_BaseFactory","ɵɵgetInheritedFactory","rf","ctx","ɵɵlistener","$event","ɵɵProvidersFeature","ɵɵInheritDefinitionFeature","RADIO_VALUE_ACCESSOR","RadioControlValueAccessor","RadioControlRegistry","_RadioControlRegistry","control","accessor","i","c","controlPair","t","ɵɵdefineInjectable","RadioControlValueAccessor","_RadioControlValueAccessor","BuiltInControlValueAccessor","renderer","elementRef","_registry","_injector","inject","CALL_SET_DISABLED_STATE","setDisabledStateDefault","NgControl","value","fn","isDisabled","ɵɵdirectiveInject","Renderer2","ElementRef","Injector","ɵɵdefineDirective","rf","ctx","ɵɵlistener","ɵɵProvidersFeature","RADIO_VALUE_ACCESSOR","ɵɵInheritDefinitionFeature","NG_MODEL_WITH_FORM_CONTROL_WARNING","InjectionToken","formControlBinding","NgControl","forwardRef","FormControlDirective","_FormControlDirective","isDisabled","validators","asyncValidators","valueAccessors","_ngModelWarningConfig","callSetDisabledState","EventEmitter","selectValueAccessor","changes","previousForm","cleanUpControl","setUpControl","isPropertyUpdated","newValue","t","ɵɵdirectiveInject","NG_VALIDATORS","NG_ASYNC_VALIDATORS","NG_VALUE_ACCESSOR","CALL_SET_DISABLED_STATE","ɵɵdefineDirective","InputFlags","ɵɵProvidersFeature","ɵɵInheritDefinitionFeature","ɵɵNgOnChangesFeature","formDirectiveProvider","ControlContainer","FormGroupDirective","_FormGroupDirective","cleanUpValidators","dir","ctrl","removeListItem$1","value","$event","syncPendingControls","oldCtrl","newCtrl","isFormControl","setUpFormContainer","cleanUpFormContainer","setUpValidators","rf","ctx","ɵɵlistener","formGroupNameProvider","FormGroupName","_FormGroupName","AbstractFormGroupDirective","parent","_hasInvalidParent","formArrayNameProvider","FormArrayName","_FormArrayName","controlPath","controlNameBinding","FormControlName","_FormControlName","SELECT_VALUE_ACCESSOR","SelectControlValueAccessor","_buildValueString$1","id","_extractId$1","valueString","_SelectControlValueAccessor","BuiltInControlValueAccessor","fn","ɵSelectControlValueAccessor_BaseFactory","ɵɵgetInheritedFactory","NgSelectOption","_NgSelectOption","_element","_renderer","_select","ElementRef","Renderer2","SELECT_MULTIPLE_VALUE_ACCESSOR","SelectMultipleControlValueAccessor","_buildValueString","_extractId","SelectMultipleControlValueAccessor","_SelectMultipleControlValueAccessor","BuiltInControlValueAccessor","fn","value","optionSelectedStateSetter","ids","v","opt","o","element","selected","selectedOptions","options","i","val","id","valueString","_extractId","ɵSelectMultipleControlValueAccessor_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineDirective","rf","ctx","ɵɵlistener","$event","ɵɵProvidersFeature","SELECT_MULTIPLE_VALUE_ACCESSOR","ɵɵInheritDefinitionFeature","ɵNgSelectMultipleOption","_ɵNgSelectMultipleOption","_element","_renderer","_select","_buildValueString","ɵɵdirectiveInject","ElementRef","Renderer2","toInteger","toFloat","AbstractValidatorDirective","_AbstractValidatorDirective","nullValidator","changes","input","control","ɵɵNgOnChangesFeature","MAX_VALIDATOR","NG_VALIDATORS","forwardRef","MaxValidator","_MaxValidator","max","maxValidator","ɵMaxValidator_BaseFactory","ɵɵattribute","MIN_VALIDATOR","MinValidator","_MinValidator","min","minValidator","ɵMinValidator_BaseFactory","MAX_LENGTH_VALIDATOR","NG_VALIDATORS","forwardRef","MaxLengthValidator","_MaxLengthValidator","AbstractValidatorDirective","input","toInteger","maxlength","maxLengthValidator","ɵMaxLengthValidator_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineDirective","rf","ctx","ɵɵattribute","ɵɵProvidersFeature","ɵɵInheritDefinitionFeature","ɵInternalFormsSharedModule","_ɵInternalFormsSharedModule","t","ɵɵdefineNgModule","ɵɵdefineInjector","FormArray","AbstractControl","controls","validatorOrOpts","asyncValidator","pickValidators","pickAsyncValidators","index","control","options","adjustedIndex","value","assertAllValuesPresent","newValue","assertControlPresent","subtreeUpdated","updated","child","cb","condition","name","isAbstractControlOptions","options","FormBuilder","_FormBuilder","nnfb","controls","reducedControls","newOptions","FormGroup","FormRecord","formState","validatorOrOpts","asyncValidator","FormControl","__spreadProps","__spreadValues","createdControls","c","FormArray","controlName","AbstractControl","value","validator","t","ɵɵdefineInjectable","FormsModule","_FormsModule","opts","CALL_SET_DISABLED_STATE","setDisabledStateDefault","t","ɵɵdefineNgModule","ɵɵdefineInjector","ɵInternalFormsSharedModule","ReactiveFormsModule","_ReactiveFormsModule","NG_MODEL_WITH_FORM_CONTROL_WARNING","environment","production","apiUrl","globalVar","AuthService","constructor","http","apiUrl","environment","logIn","email","password","rememberMe","post","pipe","map","response","token","JWT","string","payload","decodeToken","role","userId","id","console","log","clearStorageItems","setStorageItems","clearSessionItems","setSessionItems","success","catchError","error","errorMsg","status","of","message","logOut","isLoggedIn","getStorageItem","getSessionItem","getUserRole","getUserId","getToken","localStorage","setItem","e","sessionStorage","removeItem","key","getItem","JSON","parse","atob","split","ɵɵinject","HttpClient","factory","ɵfac","providedIn","_AuthService","LoginComponent","constructor","authService","router","formBuilder","error","loginForm","group","email","Validators","required","password","rememberMe","onLogin","valid","value","logIn","subscribe","result","success","navigate","message","ɵɵdirectiveInject","AuthService","Router","FormBuilder","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵlistener","i0","ɵɵrestoreView","_r1","ɵɵresetView","ɵɵtext","ɵɵadvance","ɵɵproperty","ɵɵpureFunction1","_c0","tmp_2_0","get","dirty","touched","aux_r2","submitted","invalid","tmp_3_0","tmp_4_0","tmp_5_0","ɵɵtextInterpolate","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","CheckboxControlValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","CommonModule","NgClass","styles","_LoginComponent","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","NavbarComponent","constructor","authService","router","isAdmin","ngOnInit","getUserRole","logout","logOut","navigate","ɵɵdirectiveInject","AuthService","Router","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelement","ɵɵtemplate","NavbarComponent_div_22_Template","ɵɵlistener","ɵɵadvance","ɵɵproperty","CommonModule","NgIf","RouterModule","RouterLink","RouterLinkActive","styles","_NavbarComponent","handleError","error","errorMessage","throwError","Error","mapToTableData","data","map","item","tableDataItem","key","mapToUser","id","name","surname","email","phone","password","role","formatDate","date","dateObj","Date","year","getFullYear","month","String","getMonth","padStart","day","getDate","hours","getHours","minutes","getMinutes","formatDateString","input","datePart","timePart","split","Number","fullYear","toISOString","slice","UsersService","constructor","http","apiUrl","environment","getUsers","get","pipe","map","data","mapToTableData","catchError","handleError","getUsersById","id","mapToUser","createUser","user","post","updateUser","put","deleteUser","delete","ɵɵinject","HttpClient","factory","ɵfac","providedIn","_UsersService","HomeComponent","constructor","UsersService","AuthService","user","ngOnInit","id","getUserId","getUsersById","subscribe","ɵɵdirectiveInject","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelement","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate2","NavbarComponent","styles","_HomeComponent","sortTableData","dataArray","map","data","orderedData","order","forEach","key","Object","keys","formatTableData","item","formattedItem","dateKeys","options","day","month","year","hour","minute","timeZone","hour12","includes","date","Date","Intl","DateTimeFormat","format","replace","sortTableDataByColumn","column","direction","isAscending","slice","sort","a","b","undefined","aValue","bValue","localeCompare","filterTableData","excludeColumns","filterValue","filter","trim","toLowerCase","some","value","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate","ctx_r0","noDataMessage","ɵɵlistener","ɵɵrestoreView","_r3","ɵɵnextContext","ɵɵresetView","setPage","page_r5","_r4","$implicit","ɵɵclassProp","currentPage","_r6","totalPages","ɵɵelement","ɵɵproperty","getSortIcon","column_r8","_r7","onHeaderClick","ɵɵtemplate","TableComponent_div_3_th_17_i_3_Template","ɵɵtextInterpolate1","translateColumn","ɵɵelementContainerStart","TableComponent_div_3_tr_19_td_1_ng_template_2_ng_container_0_Template","item_r10","column_r11","ɵɵpipeBind2","TableComponent_div_3_tr_19_td_1_ng_container_4_div_2_Template","TableComponent_div_3_tr_19_td_1_ng_container_4_ng_template_3_Template","ɵɵtemplateRefExtractor","getAgeDifference","noExpiration_r12","TableComponent_div_3_tr_19_td_1_ng_container_5_div_1_Template","TableComponent_div_3_tr_19_td_1_ng_container_5_div_2_Template","TableComponent_div_3_tr_19_td_1_ng_container_1_Template","TableComponent_div_3_tr_19_td_1_ng_template_2_Template","TableComponent_div_3_tr_19_td_1_ng_container_4_Template","TableComponent_div_3_tr_19_td_1_ng_container_5_Template","falseIcon_r13","_r9","onRowClick","TableComponent_div_3_tr_19_td_1_Template","getColumns","TableComponent_div_3_tr_20_td_1_Template","_r2","TableComponent_div_3_li_6_Template","TableComponent_div_3_li_7_Template","TableComponent_div_3_li_8_Template","TableComponent_div_3_li_9_Template","TableComponent_div_3_li_10_Template","TableComponent_div_3_th_17_Template","TableComponent_div_3_tr_19_Template","TableComponent_div_3_tr_20_Template","getPageRange","paginatedData","ɵɵpureFunction0","_c0","constructor","itemsPerPage","length","TableComponent","data","columnsExcluded","isTableReady","rowClicked","EventEmitter","columnTranslataions","id","name","surname","email","phone","role","address","addres","cuit","description","category","quantity","expirationDate","creationDate","lastModificationDate","admissionDate","unit","price","cost","expiration","type","envenDate","title","sortStates","activeColumn","ngOnInit","push","ngOnChanges","changes","formatTableData","sortTableData","Object","keys","filter","column","includes","startIndex","endIndex","slice","Math","ceil","page","nearbyPages","startPage","max","maxNearby","endPage","min","i","item","emit","sortTableDataByColumn","currentYear","Date","getFullYear","console","log","aux","formatDate","expirationYear","selectors","inputs","outputs","standalone","features","ɵɵNgOnChangesFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","TableComponent_div_1_Template","TableComponent_div_2_Template","TableComponent_div_3_Template","CommonModule","NgClass","NgForOf","NgIf","DatePipe","ReactiveFormsModule","styles","_TableComponent","SearchBarComponent","constructor","search","EventEmitter","searchControl","FormControl","onFilter","value","trim","undefined","isValid","emit","onKeyDown","event","key","regex","length","test","selectors","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵlistener","ɵɵtext","ɵɵadvance","ɵɵproperty","ReactiveFormsModule","DefaultValueAccessor","NgControlStatus","FormControlDirective","styles","_SearchBarComponent","DecisionModalComponent","constructor","close","EventEmitter","closeDecisionModal","emit","openAddInput","openAddRawMaterial","selectors","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵlistener","_DecisionModalComponent","Units","emailValidator","control","test","value","invalidEmail","phoneValidator","invalidPhone","cuitValidator","cuit","length","isNaN","invalidCuit","multipliers","checksum","i","parseInt","mod","decimalNumberValidator","parseFloat","replace","invalidQuantity","atLeastOneCheckedValidator","controls","some","group","selected","get","quantity","atLeastOneValidControl","matchPasswordValidator","formGroup","password","confirmPassword","passwordMismatch","conditionalRequiredValidator","controlName","dependentControlName","dependentControl","required","priceValidator","totalCost","price","priceInvalid","InputsService","constructor","http","apiUrl","environment","getInputs","get","pipe","catchError","handleError","getInputById","id","createInput","input","post","updateInput","put","deleteInput","delete","getInputsTypes","ɵɵinject","HttpClient","factory","ɵfac","providedIn","_InputsService","RawMaterialsService","constructor","http","apiUrl","environment","getRawMaterials","get","pipe","catchError","handleError","getRawMaterialById","id","createRawMaterial","rm","post","updateRawMaterial","console","log","JSON","stringify","put","deleteRawMaterial","delete","getRawMaterialsTypes","ɵɵinject","HttpClient","factory","ɵfac","providedIn","_RawMaterialsService","InventoryService","constructor","InputsService","RawMaterialService","inputsTypesSubject","BehaviorSubject","rawMaterialTypesSubject","chargeInputsTypes","getInputsTypes","subscribe","types","next","chargeRawMaterialTypes","getRawMaterialsTypes","asObservable","getRawMaterialTypes","addInputsType","type","pipe","map","includes","push","sort","addRawMaterialType","getInventory","forkJoin","inputs","getInputs","rawMaterials","getRawMaterials","safeInputs","safeRawMaterials","concat","retryWhen","errors","scan","retryCount","error","maxRetries","console","warn","delay","retryDelay","catchError","err","throwError","ɵɵinject","RawMaterialsService","factory","ɵfac","providedIn","_InventoryService","ProvidersService","constructor","http","apiUrl","environment","getProviders","get","pipe","catchError","handleError","getProviderById","id","createProvider","provider","post","updateProvider","put","deleteProvider","delete","ɵɵinject","HttpClient","factory","ɵfac","providedIn","_ProvidersService","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","AddInputComponent_div_20_div_1_Template","AddInputComponent_div_20_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","productForm","get","errors","tmp_3_0","type_r3","ɵɵtextInterpolate1","AddInputComponent_div_35_div_1_Template","unit_r4","AddInputComponent_div_52_div_1_Template","AddInputComponent_div_52_div_2_Template","AddInputComponent_div_53_div_1_Template","AddInputComponent_div_66_div_1_Template","AddInputComponent_div_66_div_2_Template","provider_r5","AddInputComponent_div_89_div_14_div_1_Template","AddInputComponent_div_89_div_14_div_2_Template","tmp_4_0","addTypeForm","tmp_5_0","ɵɵlistener","ɵɵrestoreView","_r6","ɵɵnextContext","ɵɵresetView","closeAddTypeModal","addType","ɵɵelement","AddInputComponent_div_89_div_14_Template","ɵɵpureFunction1","_c0","touched","aux2_r7","submitted","invalid","AddInputComponent","constructor","InputsService","formBuilder","InventoryService","providersService","close","EventEmitter","providers","units","inventoryTypes","addTypeModal","isRawMaterial","avaibleFreezed","group","name","Validators","required","type","pattern","quantity","decimalNumberValidator","unit","cost","description","provider","newType","ngOnInit","chargeInputsTypes","getProviders","loadProductTypes","Object","values","Units","closeModal","emit","openAddTypeModal","valid","value","addInputsType","console","error","onSubmit","providerId","selectedProvider","find","Number","input","createInput","subscribe","res","sort","a","b","localeCompare","getInputsTypes","types","ɵɵdirectiveInject","FormBuilder","ProvidersService","selectors","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","i0","_r1","AddInputComponent_div_20_Template","AddInputComponent_option_30_Template","AddInputComponent_div_35_Template","AddInputComponent_option_50_Template","AddInputComponent_div_52_Template","AddInputComponent_div_53_Template","AddInputComponent_div_66_Template","AddInputComponent_option_76_Template","AddInputComponent_div_78_Template","AddInputComponent_div_85_Template","AddInputComponent_div_89_Template","dirty","aux_r8","tmp_6_0","tmp_7_0","tmp_8_0","tmp_10_0","tmp_11_0","tmp_12_0","tmp_13_0","tmp_14_0","tmp_16_0","tmp_17_0","tmp_18_0","CommonModule","NgClass","NgForOf","NgIf","ReactiveFormsModule","ɵNgNoValidate","NgSelectOption","ɵNgSelectMultipleOption","DefaultValueAccessor","SelectControlValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","styles","_AddInputComponent","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","AddRawMaterialComponent_div_20_div_1_Template","AddRawMaterialComponent_div_20_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","productForm","get","errors","tmp_3_0","type_r3","ɵɵtextInterpolate1","AddRawMaterialComponent_div_35_div_1_Template","unit_r4","AddRawMaterialComponent_div_52_div_1_Template","AddRawMaterialComponent_div_52_div_2_Template","AddRawMaterialComponent_div_53_div_1_Template","AddRawMaterialComponent_div_66_div_1_Template","AddRawMaterialComponent_div_66_div_2_Template","provider_r5","AddRawMaterialComponent_div_103_div_14_div_1_Template","AddRawMaterialComponent_div_103_div_14_div_2_Template","tmp_4_0","addTypeForm","tmp_5_0","ɵɵlistener","ɵɵrestoreView","_r6","ɵɵnextContext","ɵɵresetView","closeAddTypeModal","addType","ɵɵelement","AddRawMaterialComponent_div_103_div_14_Template","ɵɵpureFunction1","_c0","touched","aux2_r7","submitted","invalid","AddRawMaterialComponent","constructor","RawMaterialsServices","formBuilder","InventoryService","providersService","close","EventEmitter","providers","units","inventoryTypes","addTypeModal","isRawMaterial","avaibleFreezed","group","name","Validators","required","type","pattern","quantity","decimalNumberValidator","unit","cost","description","freezed","expirationDate","value","disabled","provider","newType","ngOnInit","chargeRawMaterialTypes","getProviders","loadProductTypes","Object","values","Units","valueChanges","subscribe","isFreezed","updateExpirationDateState","closeModal","emit","openAddTypeModal","valid","addRawMaterialType","console","error","onSubmit","providerId","selectedProvider","find","Number","rawMaterial","descripction","freeze","createRawMaterial","res","sort","a","b","localeCompare","getInputsTypes","types","expirationDateControl","enable","disable","ɵɵdirectiveInject","RawMaterialsService","FormBuilder","ProvidersService","selectors","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","i0","_r1","AddRawMaterialComponent_div_20_Template","AddRawMaterialComponent_option_30_Template","AddRawMaterialComponent_div_35_Template","AddRawMaterialComponent_option_50_Template","AddRawMaterialComponent_div_52_Template","AddRawMaterialComponent_div_53_Template","AddRawMaterialComponent_div_66_Template","AddRawMaterialComponent_div_80_Template","AddRawMaterialComponent_option_90_Template","AddRawMaterialComponent_div_92_Template","AddRawMaterialComponent_div_99_Template","AddRawMaterialComponent_div_103_Template","dirty","aux_r8","tmp_6_0","tmp_7_0","tmp_8_0","tmp_10_0","tmp_11_0","tmp_12_0","tmp_13_0","tmp_14_0","tmp_15_0","tmp_16_0","tmp_17_0","tmp_19_0","tmp_20_0","tmp_21_0","CommonModule","NgClass","NgForOf","NgIf","ReactiveFormsModule","ɵNgNoValidate","NgSelectOption","ɵNgSelectMultipleOption","DefaultValueAccessor","CheckboxControlValueAccessor","SelectControlValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","styles","_AddRawMaterialComponent","DeleteModalComponent","constructor","confirmDeleteModal","headerMessage","bodyMessage","confirm","EventEmitter","cancel","closeDeleteModal","emit","deleteEntity","selectors","inputs","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵlistener","ɵɵadvance","ɵɵtextInterpolate1","ɵɵtextInterpolate","_DeleteModalComponent","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","RawMaterialComponent_div_28_div_1_Template","RawMaterialComponent_div_28_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","productForm","get","errors","tmp_3_0","type_r3","ɵɵtextInterpolate1","RawMaterialComponent_div_43_div_1_Template","unit_r4","RawMaterialComponent_div_60_div_1_Template","RawMaterialComponent_div_60_div_2_Template","RawMaterialComponent_div_61_div_1_Template","RawMaterialComponent_div_74_div_1_Template","RawMaterialComponent_div_74_div_2_Template","provider_r5","RawMaterialComponent_div_113_div_14_div_1_Template","RawMaterialComponent_div_113_div_14_div_2_Template","tmp_4_0","addTypeForm","tmp_5_0","ɵɵlistener","ɵɵrestoreView","_r6","ɵɵnextContext","ɵɵresetView","closeAddTypeModal","addType","ɵɵelement","RawMaterialComponent_div_113_div_14_Template","ɵɵpureFunction1","_c0","touched","aux2_r7","submitted","invalid","_r8","closeDeleteModal","deleteProduct","RawMaterialComponent","constructor","RawMaterialsServices","formBuilder","InventoryService","ProvidersService","productInput","close","EventEmitter","inventoryTypes","inputsTypes","units","addTypeModal","providers","avaibleFreezed","isToggled","confirmDeleteModal","group","name","value","disabled","Validators","required","type","pattern","quantity","unit","cost","decimalNumberValidator","description","freezed","expirationDate","provider","validators","conditionalRequiredValidator","newType","ngOnInit","chargeRawMaterialTypes","getProviders","loadProductTypes","Object","values","Units","valueChanges","subscribe","updateFreezedState","isFreezed","updateExpirationDateState","ngOnChanges","changes","currentValue","patchValue","transformProductInput","toggleEditMode","enable","disable","closeModal","emit","confirmDelete","deleteRawMaterial","error","console","openAddTypeModal","valid","addRawMaterialType","onSubmit","providerId","selectedProvider","find","Number","rawMaterial","id","descripction","freeze","admissionDate","formatDateString","lastModificationDate","updateRawMaterial","data","String","formatDate","res","sort","a","b","localeCompare","getInputsTypes","types","expirationDateControl","typeControl","freezedControl","typeValue","includes","setValue","ɵɵdirectiveInject","RawMaterialsService","FormBuilder","selectors","inputs","outputs","standalone","features","ɵɵNgOnChangesFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","i0","_r1","RawMaterialComponent_div_28_Template","RawMaterialComponent_option_38_Template","RawMaterialComponent_div_43_Template","RawMaterialComponent_option_58_Template","RawMaterialComponent_div_60_Template","RawMaterialComponent_div_61_Template","RawMaterialComponent_div_74_Template","RawMaterialComponent_div_88_Template","RawMaterialComponent_option_98_Template","RawMaterialComponent_div_100_Template","RawMaterialComponent_div_107_Template","RawMaterialComponent_div_113_Template","RawMaterialComponent_app_delete_modal_114_Template","aux_r9","dirty","tmp_7_0","tmp_8_0","tmp_9_0","tmp_10_0","tmp_12_0","tmp_13_0","ReactiveFormsModule","ɵNgNoValidate","NgSelectOption","ɵNgSelectMultipleOption","DefaultValueAccessor","NumberValueAccessor","CheckboxControlValueAccessor","SelectControlValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","CommonModule","NgClass","NgForOf","NgIf","DeleteModalComponent","styles","_RawMaterialComponent","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","InputsComponent_div_28_div_1_Template","InputsComponent_div_28_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","productForm","get","errors","tmp_3_0","type_r3","ɵɵtextInterpolate1","InputsComponent_div_43_div_1_Template","unit_r4","InputsComponent_div_60_div_1_Template","InputsComponent_div_60_div_2_Template","InputsComponent_div_61_div_1_Template","InputsComponent_div_74_div_1_Template","InputsComponent_div_74_div_2_Template","provider_r5","InputsComponent_div_99_div_14_div_1_Template","InputsComponent_div_99_div_14_div_2_Template","tmp_4_0","addTypeForm","tmp_5_0","ɵɵlistener","ɵɵrestoreView","_r6","ɵɵnextContext","ɵɵresetView","closeAddTypeModal","addType","ɵɵelement","InputsComponent_div_99_div_14_Template","ɵɵpureFunction1","_c0","touched","aux2_r7","submitted","invalid","_r8","closeDeleteModal","deleteProduct","InputsComponent","constructor","InputsService","formBuilder","InventoryService","ProvidersService","productInput","close","EventEmitter","inventoryTypes","inputsTypes","units","addTypeModal","providers","avaibleFreezed","isToggled","confirmDeleteModal","group","name","value","disabled","Validators","required","type","pattern","quantity","unit","cost","decimalNumberValidator","description","provider","validators","conditionalRequiredValidator","newType","ngOnInit","chargeInputsTypes","getProviders","loadProductTypes","getInputsTypes","subscribe","types","Object","values","Units","ngOnChanges","changes","currentValue","patchValue","transformProductInput","toggleEditMode","enable","disable","closeModal","emit","confirmDelete","deleteInput","error","console","openAddTypeModal","valid","addInputsType","log","onSubmit","providerId","selectedProvider","find","Number","input","id","admissionDate","formatDateString","lastModificationDate","updateInput","data","String","freezed","expirationDate","formatDate","res","sort","a","b","localeCompare","ɵɵdirectiveInject","FormBuilder","selectors","inputs","outputs","standalone","features","ɵɵNgOnChangesFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","i0","_r1","InputsComponent_div_28_Template","InputsComponent_option_38_Template","InputsComponent_div_43_Template","InputsComponent_option_58_Template","InputsComponent_div_60_Template","InputsComponent_div_61_Template","InputsComponent_div_74_Template","InputsComponent_option_84_Template","InputsComponent_div_86_Template","InputsComponent_div_93_Template","InputsComponent_div_99_Template","InputsComponent_app_delete_modal_100_Template","aux_r9","dirty","tmp_7_0","tmp_8_0","tmp_9_0","tmp_11_0","tmp_12_0","ReactiveFormsModule","ɵNgNoValidate","NgSelectOption","ɵNgSelectMultipleOption","DefaultValueAccessor","NumberValueAccessor","SelectControlValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","CommonModule","NgClass","NgForOf","NgIf","DeleteModalComponent","styles","_InputsComponent","ɵɵelementStart","ɵɵlistener","$event","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","closeDecisionModal","ɵɵelementEnd","_r3","closeAddInputModal","_r4","closeAddRawMaterialModal","_r5","closeProductModal","ɵɵproperty","selectedProduct","_r6","InventoryComponent","constructor","inventoryService","inputs","backUpInputs","editRawMaterialsModal","editInputsModal","inputsModal","rawMaterialsModal","decisionModal","isLoading","excludeColumns","ngOnInit","getInventory","openDecisionModal","aux","openAddInputModal","openAddRawMaterialModal","onRowClicked","prov","undefined","handleSearch","value","filterTableData","subscribe","res","ɵɵdirectiveInject","InventoryService","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelement","ɵɵtext","ɵɵtemplate","InventoryComponent_app_decision_modal_13_Template","InventoryComponent_app_add_input_14_Template","InventoryComponent_app_add_raw_material_15_Template","InventoryComponent_app_raw_material_16_Template","InventoryComponent_app_inputs_17_Template","ɵɵadvance","NavbarComponent","TableComponent","SearchBarComponent","CommonModule","NgIf","DecisionModalComponent","AddInputComponent","AddRawMaterialComponent","RawMaterialComponent","InputsComponent","styles","_InventoryComponent","BatchesService","constructor","http","apiUrl","environment","getBatches","get","pipe","catchError","handleError","getBatchById","id","createBatch","batch","post","updateBatch","put","deleteBatch","delete","getCategories","ɵɵinject","HttpClient","factory","ɵfac","providedIn","_BatchesService","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate4","ingredient_r1","ɵɵtextInterpolate5","input_r2","ɵɵlistener","ɵɵrestoreView","_r3","ctx_r3","ɵɵnextContext","ɵɵresetView","closeDeleteModal","deleteProduct","ɵɵproperty","ViewBatchComponent","constructor","batchesService","router","batch","close","EventEmitter","confirmDeleteModal","batchIngredientsData","batchInputsData","ngOnInit","getBatchIngredientsData","getBatchInputsData","closeModal","emit","openDeleteModal","deleteBatch","subscribe","goTo","navigate","Array","isArray","quantities","split","reduce","acc","pair","id","quantity","Number","map","ingredient","ingredientId","name","undefined","unit","provider","console","warn","input","index","codInput","ɵɵdirectiveInject","BatchesService","Router","selectors","inputs","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵtemplate","ViewBatchComponent_li_49_Template","ViewBatchComponent_li_56_Template","ɵɵelement","ViewBatchComponent_app_delete_modal_58_Template","ɵɵtextInterpolate","ɵɵtextInterpolate2","CommonModule","NgForOf","NgIf","DeleteModalComponent","styles","_ViewBatchComponent","SalesChannelsService","constructor","http","apiUrl","environment","getSalesChannels","get","pipe","catchError","handleError","getSaleChannelId","id","createSaleChannel","sc","post","updateSaleChannel","put","deleteSaleChannel","delete","ɵɵinject","HttpClient","factory","ɵfac","providedIn","_SalesChannelsService","EventsService","constructor","http","apiUrl","environment","getEvents","get","pipe","map","data","mapToTableData","catchError","handleError","getEventById","id","createEvent","event","post","ɵɵinject","HttpClient","factory","ɵfac","providedIn","_EventsService","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵproperty","customer_r2","ɵɵadvance","ɵɵtextInterpolate1","batch_r6","ɵɵtextInterpolate4","ctx_r4","getDate","maxQuantities","i_r4","ɵɵtemplate","SellBatchComponent_tr_43_div_6_div_1_Template","SellBatchComponent_tr_43_div_6_div_2_Template","itemControls","errors","ɵɵlistener","ɵɵrestoreView","_r7","ɵɵnextContext","index","ɵɵresetView","removeRow","ɵɵelement","$event","_r3","onBatchChange","SellBatchComponent_tr_43_option_3_Template","calculateCost","SellBatchComponent_tr_43_div_6_Template","SellBatchComponent_tr_43_div_7_Template","SellBatchComponent_tr_43_div_9_Template","getBatchIdControl","ɵɵpureFunction1","_c0","invalid","touched","aux_r8","submitted","avaibleBatches","getQuantityControl","tmp_12_0","sellForm","get","SellBatchComponent","constructor","batchesService","fb","salesChannelsService","authService","userService","eventService","close","EventEmitter","confirmDeleteModal","customers","totalCost","group","customer","Validators","required","items","array","validators","uniqueBatchesValidator","price","priceValidator","ngOnInit","getClients","getAvaibleBatches","initializeRows","userId","getUserId","closeModal","emit","closeDeleteModal","onSubmit","console","log","valid","error","batchesId","controls","map","control","value","batchesQuantities","toString","join","batches","filter","b","includes","pricesString","selectedBatches","batchId","id","descriptionParts","batch","sellData","type","title","description","cost","saleChannel","user","soldBatches","unitsPrice","quantities","JSON","stringify","bq","split","createEvent","subscribe","res","batchesToUpdate","selected","find","indexOf","parseInt","updateBatch","toPromise","Boolean","Promise","all","then","addRow","push","quantity","removedBatchId","at","removedBatch","removeAt","splice","event","target","patchValue","previousBatchId","previousBatch","quantityControl","setValidators","min","max","updateValueAndValidity","getBatches","sort","a","localeCompare","getSalesChannels","clients","clear","Error","forEach","batchPrice","batchQuantity","result","Math","round","updatePriceValidator","priceControl","date","formatDate","ɵɵdirectiveInject","BatchesService","FormBuilder","SalesChannelsService","AuthService","UsersService","EventsService","selectors","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","i0","_r1","SellBatchComponent_option_19_Template","SellBatchComponent_div_21_Template","SellBatchComponent_tr_43_Template","SellBatchComponent_div_54_Template","tmp_2_0","tmp_4_0","tmp_6_0","tmp_8_0","CommonModule","NgClass","NgForOf","NgIf","ReactiveFormsModule","ɵNgNoValidate","NgSelectOption","ɵNgSelectMultipleOption","DefaultValueAccessor","NumberValueAccessor","SelectControlValueAccessor","NgControlStatus","NgControlStatusGroup","MinValidator","MaxValidator","FormControlDirective","FormGroupDirective","FormControlName","styles","_SellBatchComponent","batchIds","item","Set","size","length","duplicateBatches","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","closeModal","ɵɵelementEnd","ɵɵproperty","selectedBatch","_r3","closeSellModal","ProductionComponent","constructor","route","batchesServices","batches","backUpBatches","excludedColumns","openBatchModal","openSellModal","ngOnInit","getBatches","goTo","navigate","onRowClicked","prov","openSellBatch","handleSearch","value","filterTableData","subscribe","data","ɵɵdirectiveInject","Router","BatchesService","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelement","ɵɵtext","$event","ɵɵtemplate","ProductionComponent_app_view_batch_16_Template","ProductionComponent_app_sell_batch_17_Template","ɵɵadvance","NavbarComponent","TableComponent","SearchBarComponent","ViewBatchComponent","CommonModule","NgIf","SellBatchComponent","styles","_ProductionComponent","CardComponent","constructor","router","goTo","navigate","recipe","id","ɵɵdirectiveInject","Router","selectors","inputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵlistener","ɵɵadvance","ɵɵtextInterpolate","name","_CardComponent","ObjectUtils","_ObjectUtils","value","empty","obj1","obj2","field","arrA","arrB","i","length","key","dateA","dateB","regexpA","regexpB","keys","data","fields","len","obj","from","to","target","item","index","arr","sourceArr","injected","list","val","str","input","value1","value2","locale","order","result","emptyValue1","emptyValue2","nullSortOrder","finalSortOrder","__spreadValues","char","params","callback","a","b","lastId","UniqueComponentId","prefix","ZIndexUtils","zIndexes","generateZIndex","baseZIndex","lastZIndex","newZIndex","revertZIndex","zIndex","getCurrentZIndex","getZIndex","el","zindexutils","_c0","FilterMatchMode","PrimeNGConfig","signal","FilterMatchMode","Subject","key","value","__spreadValues","t","ɵɵdefineInjectable","Header","ɵɵdefineComponent","ɵɵStandaloneFeature","_c0","rf","ctx","ɵɵprojectionDef","ɵɵprojection","Footer","PrimeTemplate","template","ɵɵdirectiveInject","TemplateRef","ɵɵdefineDirective","InputFlags","SharedModule","ɵɵdefineNgModule","ɵɵdefineInjector","_c0","BaseIcon","isLabelEmpty","ObjectUtils","t","ɵɵdefineComponent","InputFlags","booleanAttribute","ɵɵInputTransformsFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵprojectionDef","ɵɵprojection","ChevronDownIcon","BaseIcon","ɵChevronDownIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","ChevronLeftIcon","BaseIcon","ɵChevronLeftIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","ChevronRightIcon","BaseIcon","ɵChevronRightIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","ChevronUpIcon","BaseIcon","ɵChevronUpIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","DomHandler","element","className","styles","i","classNames","cNames","child","selector","children","num","attributeName","overlay","target","appendTo","calculateMinWidth","gutter","getClosestRelativeElement","el","elementDimensions","targetHeight","targetOffset","windowScrollTop","windowScrollLeft","viewport","relativeElementOffset","top","left","horizontalOverflow","targetLeftOffsetInSpaceOfRelativeElement","elementOuterHeight","elementOuterWidth","targetOuterHeight","targetOuterWidth","parents","scrollableParents","overflowRegex","overflowCheck","node","styleDeclaration","parent","scrollSelectors","selectors","elementHeight","elementWidth","dimensions","container","item","borderTopValue","borderTop","paddingTopValue","paddingTop","containerRect","offset","scroll","itemHeight","duration","last","opacity","tick","ms","interval","gap","fading","doc","p","f","s","margin","width","style","height","win","d","e","g","w","h","rect","replacementElement","parentNode","ua","msie","trident","rv","edge","obj","scrollDiv","scrollbarWidth","scrollbarHeight","methodName","args","matched","match","value","options","focusableElements","visibleFocusableElements","focusableElement","computedStyle","reverse","index","focusedIndex","type","name","attributes","attribute","computedStyles","rule","cv","v","_cv","_k","_v","c","key","matchedEvent","Ripple","document","platformId","renderer","el","zone","config","isPlatformBrowser","event","ink","DomHandler","offset","x","y","children","i","t","ɵɵdirectiveInject","DOCUMENT","PLATFORM_ID","Renderer2","ElementRef","NgZone","PrimeNGConfig","ɵɵdefineDirective","RippleModule","ɵɵdefineNgModule","ɵɵdefineInjector","_c0","_c1","_c2","_c3","_c4","a0","a1","_c5","_c6","_c7","a2","_c8","_c9","_c10","_c11","Carousel_div_1_ng_container_2_Template","rf","ctx","ɵɵelementContainer","Carousel_div_1_Template","ɵɵelementStart","ɵɵprojection","ɵɵtemplate","ɵɵelementEnd","ctx_r1","ɵɵnextContext","ɵɵadvance","ɵɵproperty","Carousel_button_4_ng_container_1_ChevronLeftIcon_1_Template","ɵɵelement","Carousel_button_4_ng_container_1_ChevronUpIcon_2_Template","Carousel_button_4_ng_container_1_Template","ɵɵelementContainerStart","ɵɵelementContainerEnd","Carousel_button_4_span_2_1_ng_template_0_Template","Carousel_button_4_span_2_1_Template","Carousel_button_4_span_2_Template","Carousel_button_4_Template","_r3","ɵɵgetCurrentView","ɵɵlistener","$event","ɵɵrestoreView","ɵɵresetView","ɵɵpureFunction1","ɵɵattribute","Carousel_div_8_ng_container_1_Template","Carousel_div_8_Template","item_r4","index_r5","ɵɵpureFunction3","Carousel_div_9_ng_container_1_Template","Carousel_div_9_Template","item_r6","index_r7","Carousel_div_10_ng_container_1_Template","Carousel_div_10_Template","item_r8","index_r9","Carousel_button_11_ng_container_1_ChevronRightIcon_1_Template","Carousel_button_11_ng_container_1_ChevronDownIcon_2_Template","Carousel_button_11_ng_container_1_Template","Carousel_button_11_span_2_1_ng_template_0_Template","Carousel_button_11_span_2_1_Template","Carousel_button_11_span_2_Template","Carousel_button_11_Template","_r10","Carousel_ul_12_li_2_Template","_r12","i_r13","ɵɵclassMap","Carousel_ul_12_Template","_r11","Carousel_div_13_ng_container_2_Template","Carousel_div_13_Template","Carousel","val","EventEmitter","el","zone","cd","renderer","document","platformId","config","simpleChange","isPlatformBrowser","UniqueComponentId","item","isCircular","totalShiftedItems","page","DomHandler","innerHTML","data1","data2","value1","value2","result","i","res","matchedResponsiveData","windowWidth","totalDots","e","index","event","indicators","activeIndex","highlightedIndex","ind","activeIndicator","prevInd","nextInd","dir","originalShiftedItems","changeAllow","touchobj","diff","value","t","ɵɵdirectiveInject","ElementRef","NgZone","ChangeDetectorRef","Renderer2","DOCUMENT","PLATFORM_ID","PrimeNGConfig","ɵɵdefineComponent","dirIndex","ɵɵcontentQuery","Header","Footer","PrimeTemplate","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵviewQuery","InputFlags","booleanAttribute","numberAttribute","ɵɵInputTransformsFeature","ɵɵNgOnChangesFeature","_r1","ɵɵprojectionDef","ɵɵpureFunction2","NgClass","NgForOf","NgIf","NgTemplateOutlet","NgStyle","Ripple","ChevronRightIcon","ChevronLeftIcon","ChevronDownIcon","ChevronUpIcon","CarouselModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","SharedModule","RippleModule","AutoFocus","inject","PLATFORM_ID","DOCUMENT","ElementRef","isPlatformBrowser","focusableElements","DomHandler","t","ɵɵdefineDirective","InputFlags","booleanAttribute","ɵɵInputTransformsFeature","SpinnerIcon","BaseIcon","UniqueComponentId","ɵSpinnerIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","ɵɵadvance","ɵɵproperty","_c0","_c1","a0","Button_ng_container_2_Template","rf","ctx","ɵɵelementContainer","Button_ng_container_3_ng_container_1_span_1_Template","ɵɵelement","ctx_r0","ɵɵnextContext","ɵɵproperty","ɵɵattribute","Button_ng_container_3_ng_container_1_SpinnerIcon_2_Template","Button_ng_container_3_ng_container_1_Template","ɵɵelementContainerStart","ɵɵtemplate","ɵɵelementContainerEnd","ɵɵadvance","Button_ng_container_3_2_ng_template_0_Template","Button_ng_container_3_2_Template","Button_ng_container_3_Template","ɵɵpureFunction1","Button_ng_container_4_span_1_Template","Button_ng_container_4_2_ng_template_0_Template","Button_ng_container_4_2_Template","Button_ng_container_4_Template","Button_span_5_Template","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtextInterpolate","Button_span_6_Template","ɵɵclassMap","Button","EventEmitter","el","value","acc","key","iconClasses","item","t","ɵɵdirectiveInject","ElementRef","ɵɵdefineComponent","rf","ctx","dirIndex","ɵɵcontentQuery","PrimeTemplate","_t","ɵɵqueryRefresh","ɵɵloadQuery","InputFlags","booleanAttribute","numberAttribute","ɵɵInputTransformsFeature","ɵɵStandaloneFeature","_c0","ɵɵprojectionDef","ɵɵelementStart","ɵɵlistener","$event","ɵɵprojection","ɵɵtemplate","Button_ng_container_2_Template","Button_ng_container_3_Template","Button_ng_container_4_Template","Button_span_5_Template","Button_span_6_Template","ɵɵelementEnd","ɵɵproperty","ɵɵattribute","ɵɵadvance","NgIf","NgTemplateOutlet","NgStyle","NgClass","Ripple","AutoFocus","SpinnerIcon","ButtonModule","ɵɵdefineNgModule","ɵɵdefineInjector","SharedModule","TagModule","t","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","SharedModule","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵadvance","ɵɵproperty","ctx_r1","recipes","i_r1","ɵɵtemplate","CarouselComponent_div_0_ng_template_2_div_3_Template","CarouselComponent_div_0_ng_template_2_Template","responsiveOptions","getIndex","CarouselComponent_div_1_ng_template_2_Template","CarouselComponent","constructor","currentIndex","ngOnInit","breakpoint","numVisible","numScroll","logToConsole","m","console","log","length","selectors","inputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","CarouselComponent_div_0_Template","CarouselComponent_div_1_Template","CardComponent","CarouselModule","NgForOf","NgIf","Carousel","PrimeTemplate","ButtonModule","TagModule","styles","_CarouselComponent","RecipesService","constructor","http","apiUrl","environment","getRecipes","get","pipe","catchError","handleError","getRecipeById","id","createRecipe","recipe","post","updateRecipe","put","deleteRecipe","delete","ɵɵinject","HttpClient","factory","ɵfac","providedIn","_RecipesService","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵelement","ɵɵadvance","ɵɵproperty","ctx_r0","recipes","RecipesComponent","constructor","recipeService","router","backUpRecipes","excludedColumns","getRecipes","ngOnInit","goTo","navigate","handleSearch","value","filterRecipeData","console","log","subscribe","res","ɵɵdirectiveInject","RecipesService","Router","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵlistener","$event","ɵɵtemplate","RecipesComponent_div_14_Template","RecipesComponent_div_15_Template","length","NavbarComponent","SearchBarComponent","CarouselComponent","CommonModule","NgIf","styles","_RecipesComponent","data","excludeColumns","filterValue","filter","trim","toLowerCase","item","Object","keys","some","key","includes","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate1","ctx_r1","translateLabel","key_r1","ɵɵtextInterpolate","event","ɵɵtextInterpolate3","key_r3","ɵɵtemplate","EventComponent_div_12_span_8_div_1_Template","EventComponent_div_12_span_8_div_2_Template","ɵɵproperty","EventComponent_div_12_span_6_Template","EventComponent_div_12_span_7_Template","EventComponent_div_12_span_8_Template","element_r4","element_r5","EventComponent_div_17_li_3_Template","EventComponent_div_17_li_5_Template","splitElementsResult","leftColumn","rightColumn","EventComponent","constructor","userService","salesChannelService","closeEventModal","EventEmitter","labelTranslation","id","title","description","envenDate","user","cost","saleChannel","userData","isSale","elements","ngOnInit","console","log","formatDescription","splitElements","closeModal","emit","objectKeys","obj","Object","keys","filter","key","splitKeys","middleIndex","Math","ceil","length","slice","column","split","ɵɵdirectiveInject","UsersService","SalesChannelsService","selectors","inputs","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵlistener","EventComponent_div_10_Template","EventComponent_div_12_Template","EventComponent_div_17_Template","EventComponent_div_18_Template","CommonModule","NgForOf","NgIf","styles","_EventComponent","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","closeEventModal","ɵɵelementEnd","ɵɵproperty","selectedEvent","HistoryComponent","constructor","eventsService","openEventModal","movements","excludeColumns","ngOnInit","getMovements","onRowClicked","event","getEvents","subscribe","ɵɵdirectiveInject","EventsService","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelement","ɵɵtext","$event","ɵɵtemplate","HistoryComponent_app_event_11_Template","ɵɵadvance","NavbarComponent","TableComponent","EventComponent","CommonModule","NgIf","styles","_HistoryComponent","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","AddUserComponent_div_20_div_1_Template","AddUserComponent_div_20_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","userForm","get","errors","tmp_3_0","AddUserComponent_div_29_div_1_Template","AddUserComponent_div_29_div_2_Template","AddUserComponent_div_38_div_1_Template","AddUserComponent_div_38_div_2_Template","AddUserComponent_div_47_div_1_Template","AddUserComponent_div_47_div_2_Template","AddUserComponent","constructor","userService","formBuilder","closeModalEvent","EventEmitter","confirmPassword","fatalError","fatalErrorMessage","group","email","Validators","required","emailValidator","name","pattern","surname","phone","phoneValidator","password","role","validator","matchPasswordValidator","closeModal","emit","onSubmit","valid","user","value","createUser","subscribe","ɵɵdirectiveInject","UsersService","FormBuilder","selectors","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵlistener","i0","ɵɵrestoreView","_r1","ɵɵresetView","ɵɵelement","AddUserComponent_div_20_Template","AddUserComponent_div_29_Template","AddUserComponent_div_38_Template","AddUserComponent_div_47_Template","AddUserComponent_div_57_Template","AddUserComponent_div_66_Template","AddUserComponent_div_67_Template","AddUserComponent_div_81_Template","ɵɵpureFunction1","_c0","dirty","touched","aux_r3","submitted","invalid","tmp_4_0","tmp_5_0","tmp_6_0","tmp_7_0","tmp_8_0","tmp_9_0","tmp_10_0","tmp_11_0","tmp_12_0","tmp_13_0","hasError","tmp_14_0","tmp_15_0","tmp_16_0","tmp_17_0","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NumberValueAccessor","RadioControlValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","CommonModule","NgClass","NgIf","styles","_AddUserComponent","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","UserComponent_div_28_div_1_Template","UserComponent_div_28_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","userForm","get","errors","tmp_3_0","UserComponent_div_37_div_1_Template","UserComponent_div_37_div_2_Template","UserComponent_div_46_div_1_Template","UserComponent_div_46_div_2_Template","UserComponent_div_55_div_1_Template","UserComponent_div_55_div_2_Template","UserComponent_div_74_div_1_Template","UserComponent_div_74_div_2_Template","value","aux_r3","submitted","dirty","touched","hasError","ɵɵlistener","ɵɵrestoreView","_r4","ɵɵnextContext","ɵɵresetView","confirmDelete","_r5","closeDeleteModal","deleteUser","UserComponent","constructor","UsersService","fb","AuthService","userInput","closeUserModalEvent","EventEmitter","isToggled","confirmDeleteModal","group","email","disabled","Validators","required","emailValidator","name","pattern","surname","phone","phoneValidator","password","confirmPassword","role","validator","matchPasswordValidator","ngOnInit","myId","getUserId","ngOnChanges","changes","currentValue","user","transformUserInput","patchValue","setValue","toggleEditMode","enable","disable","closeModal","emit","onSubmit","valid","userToSave","id","updateUser","subscribe","markAllAsTouched","response","error","console","isMe","data","ɵɵdirectiveInject","FormBuilder","selectors","inputs","outputs","standalone","features","ɵɵNgOnChangesFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","i0","_r1","ɵɵelement","UserComponent_div_28_Template","UserComponent_div_37_Template","UserComponent_div_46_Template","UserComponent_div_55_Template","UserComponent_div_65_Template","UserComponent_div_74_Template","UserComponent_div_88_Template","UserComponent_button_92_Template","UserComponent_app_delete_modal_93_Template","ɵɵpureFunction1","_c0","invalid","tmp_4_0","tmp_5_0","tmp_6_0","tmp_7_0","tmp_8_0","tmp_9_0","tmp_10_0","tmp_11_0","tmp_12_0","tmp_13_0","tmp_14_0","tmp_15_0","tmp_16_0","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","RadioControlValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","CommonModule","NgClass","NgIf","FormsModule","DeleteModalComponent","styles","_UserComponent","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","closeAddUserModal","ɵɵelementEnd","_r3","closeUserModal","ɵɵproperty","selectedUser","UsersComponent","constructor","UsersService","columnsExcluded","backUpUsers","users","addUserModal","openUserModal","ngOnInit","getUsers","openAddUserModal","onRowClicked","user","handleSearch","value","filterTableData","subscribe","data","ɵɵdirectiveInject","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelement","ɵɵtext","$event","ɵɵtemplate","UsersComponent_app_add_user_13_Template","UsersComponent_app_user_14_Template","ɵɵadvance","NavbarComponent","TableComponent","SearchBarComponent","AddUserComponent","CommonModule","NgIf","UserComponent","styles","_UsersComponent","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","AddProviderComponent_div_20_div_1_Template","AddProviderComponent_div_20_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","providerForm","get","errors","tmp_3_0","AddProviderComponent_div_29_div_1_Template","AddProviderComponent_div_29_div_2_Template","AddProviderComponent_div_38_div_1_Template","AddProviderComponent_div_38_div_2_Template","AddProviderComponent_div_47_div_1_Template","AddProviderComponent_div_47_div_2_Template","AddProviderComponent","constructor","providersService","formBuilder","closeModalEvent","EventEmitter","provider","group","name","Validators","required","pattern","email","emailValidator","phone","phoneValidator","cuit","cuitValidator","cp","address","line2","description","closeModal","emit","onSubmit","valid","fullAddress","value","trim","replace","createProvider","subscribe","response","error","console","ɵɵdirectiveInject","ProvidersService","FormBuilder","selectors","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵlistener","i0","ɵɵrestoreView","_r1","ɵɵresetView","ɵɵelement","AddProviderComponent_div_20_Template","AddProviderComponent_div_29_Template","AddProviderComponent_div_38_Template","AddProviderComponent_div_47_Template","AddProviderComponent_div_57_Template","AddProviderComponent_div_71_Template","AddProviderComponent_div_72_Template","AddProviderComponent_div_79_Template","ɵɵpureFunction1","_c0","dirty","touched","aux_r3","submitted","invalid","tmp_4_0","tmp_5_0","tmp_6_0","tmp_7_0","tmp_8_0","tmp_9_0","tmp_10_0","tmp_11_0","tmp_12_0","tmp_13_0","tmp_14_0","tmp_15_0","tmp_16_0","tmp_17_0","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NumberValueAccessor","NgControlStatus","NgControlStatusGroup","MaxLengthValidator","FormGroupDirective","FormControlName","CommonModule","NgClass","NgIf","styles","_AddProviderComponent","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","ProviderComponent_div_28_div_1_Template","ProviderComponent_div_28_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","providerForm","get","errors","tmp_3_0","ProviderComponent_div_37_div_1_Template","ProviderComponent_div_37_div_2_Template","ProviderComponent_div_55_div_1_Template","ProviderComponent_div_55_div_2_Template","ɵɵlistener","ɵɵrestoreView","_r3","ɵɵnextContext","ɵɵresetView","closeDeleteModal","deleteProvider","ProviderComponent","constructor","providersService","fb","providerInput","closeProviderModalEvent","EventEmitter","isToggled","confirmDeleteModal","group","name","value","disabled","Validators","required","pattern","email","emailValidator","phone","phoneValidator","cuit","cuitValidator","cp","address","line2","description","ngOnChanges","changes","currentValue","patchValue","transformProviderInput","toggleEditMode","enable","disable","onSubmit","valid","fullAddress","trim","replace","provider","id","updateProvider","subscribe","response","closeModal","error","console","markAllAsTouched","emit","confirmDelete","data","split","ɵɵdirectiveInject","ProvidersService","FormBuilder","selectors","inputs","outputs","standalone","features","ɵɵNgOnChangesFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","i0","_r1","ɵɵelement","ProviderComponent_div_28_Template","ProviderComponent_div_37_Template","ProviderComponent_div_46_Template","ProviderComponent_div_55_Template","ProviderComponent_div_65_Template","ProviderComponent_div_79_Template","ProviderComponent_div_80_Template","ProviderComponent_div_87_Template","ProviderComponent_app_delete_modal_93_Template","ɵɵpureFunction1","_c0","dirty","touched","aux_r4","submitted","invalid","tmp_4_0","tmp_5_0","tmp_6_0","tmp_7_0","tmp_8_0","tmp_9_0","tmp_10_0","tmp_11_0","tmp_12_0","tmp_13_0","tmp_14_0","tmp_15_0","tmp_16_0","tmp_17_0","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NumberValueAccessor","NgControlStatus","NgControlStatusGroup","MaxLengthValidator","FormGroupDirective","FormControlName","CommonModule","NgClass","NgIf","FormsModule","DeleteModalComponent","styles","_ProviderComponent","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","closeAddProviderModal","ɵɵelementEnd","_r3","closeProviderModal","ɵɵproperty","selectedProvider","ProvidersComponent","constructor","ProvidersService","providers","backUpProviders","addProviderModal","openProviderModal","exportColumns","ngOnInit","getProviders","openAddProviderModal","onRowClicked","prov","handleSearch","value","filterTableData","subscribe","res","ɵɵdirectiveInject","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelement","ɵɵtext","$event","ɵɵtemplate","ProvidersComponent_app_add_provider_13_Template","ProvidersComponent_app_provider_14_Template","ɵɵadvance","CommonModule","NgIf","NavbarComponent","TableComponent","SearchBarComponent","AddProviderComponent","ProviderComponent","styles","_ProvidersComponent","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","AddClientComponent_div_22_div_1_Template","AddClientComponent_div_22_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","clientForm","get","errors","tmp_3_0","AddClientComponent_div_29_div_1_Template","AddClientComponent_div_29_div_2_Template","AddClientComponent_div_38_div_1_Template","AddClientComponent_div_38_div_2_Template","AddClientComponent","constructor","salesChannelService","formBuilder","closeModalEvent","EventEmitter","confirmPassword","group","name","Validators","required","pattern","cuit","cuitValidator","email","emailValidator","phone","phoneValidator","cp","address","line2","closeModal","emit","onSubmit","valid","fullAddress","value","sc","addres","createSaleChannel","subscribe","response","error","console","markAllAsTouched","ɵɵdirectiveInject","SalesChannelsService","FormBuilder","selectors","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵlistener","i0","ɵɵrestoreView","_r1","ɵɵresetView","ɵɵelement","AddClientComponent_div_22_Template","AddClientComponent_div_29_Template","AddClientComponent_div_38_Template","AddClientComponent_div_48_Template","AddClientComponent_div_57_Template","AddClientComponent_div_71_Template","AddClientComponent_div_72_Template","ɵɵpureFunction1","_c0","dirty","touched","aux_r3","submitted","invalid","tmp_4_0","tmp_5_0","tmp_6_0","tmp_7_0","tmp_8_0","tmp_9_0","tmp_10_0","tmp_11_0","tmp_12_0","tmp_13_0","tmp_14_0","tmp_15_0","CommonModule","NgClass","NgIf","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NumberValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","styles","_AddClientComponent","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","ClientComponent_div_30_div_1_Template","ClientComponent_div_30_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","clientForm","get","errors","tmp_3_0","ClientComponent_div_37_div_1_Template","ClientComponent_div_37_div_2_Template","ClientComponent_div_46_div_1_Template","ClientComponent_div_46_div_2_Template","ɵɵlistener","ɵɵrestoreView","_r3","ɵɵnextContext","ɵɵresetView","closeDeleteModal","deleteClient","ClientComponent","constructor","salesChannelService","formBuilder","clientInput","closeClientModalEvent","EventEmitter","isToggled","confirmDeleteModal","group","name","value","disabled","Validators","required","pattern","cuit","cuitValidator","email","emailValidator","phone","phoneValidator","cp","address","line2","ngOnChanges","changes","currentValue","patchValue","transformClientInput","toggleEditMode","enable","disable","onSubmit","valid","direccion","linea2","fullAddress","trim","replace","saleChannel","id","addres","updateSaleChannel","subscribe","emit","markAllAsTouched","closeModal","confirmDelete","deleteSaleChannel","data","split","ɵɵdirectiveInject","SalesChannelsService","FormBuilder","selectors","inputs","outputs","standalone","features","ɵɵNgOnChangesFeature","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","i0","_r1","ɵɵelement","ClientComponent_div_30_Template","ClientComponent_div_37_Template","ClientComponent_div_46_Template","ClientComponent_div_56_Template","ClientComponent_div_65_Template","ClientComponent_div_79_Template","ClientComponent_div_80_Template","ClientComponent_app_delete_modal_86_Template","ɵɵpureFunction1","_c0","dirty","touched","aux_r4","submitted","invalid","tmp_4_0","tmp_5_0","tmp_6_0","tmp_7_0","tmp_8_0","tmp_9_0","tmp_10_0","tmp_11_0","tmp_12_0","tmp_13_0","tmp_14_0","tmp_15_0","CommonModule","NgClass","NgIf","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","NumberValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","DeleteModalComponent","styles","_ClientComponent","ClientsService","constructor","http","apiUrl","environment","getClients","get","pipe","map","data","mapToTableData","catchError","handleError","getClientById","id","createClient","client","post","updateClient","put","deleteClient","delete","ɵɵinject","HttpClient","factory","ɵfac","providedIn","_ClientsService","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","closeAddClientModal","ɵɵelementEnd","_r3","closeClientModal","ɵɵproperty","selectedClient","ClientsComponent","constructor","ClientsService","clients","backUpClients","addClientModal","openClientModal","exportColumns","ngOnInit","getClients","openAddClientModal","onRowClicked","user","handleSearch","value","filterTableData","subscribe","data","ɵɵdirectiveInject","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelement","ɵɵtext","$event","ɵɵtemplate","ClientsComponent_app_add_client_13_Template","ClientsComponent_app_client_14_Template","ɵɵadvance","NavbarComponent","TableComponent","SearchBarComponent","AddClientComponent","ClientComponent","CommonModule","NgIf","styles","_ClientsComponent","_c0","_c1","Editor_div_1_ng_container_2_Template","rf","ctx","ɵɵelementContainer","Editor_div_1_Template","ɵɵelementStart","ɵɵprojection","ɵɵtemplate","ɵɵelementEnd","ctx_r0","ɵɵnextContext","ɵɵadvance","ɵɵproperty","Editor_div_2_Template","ɵɵtext","ɵɵelement","EDITOR_VALUE_ACCESSOR","NG_VALUE_ACCESSOR","forwardRef","Editor","val","EventEmitter","el","platformId","afterNextRender","item","value","command","fn","isPlatformServer","quillModule","e","toolbarElement","editorElement","defaultModule","modules","__spreadValues","isQuill2","delta","oldContents","source","html","DomHandler","text","range","oldRange","t","ɵɵdirectiveInject","ElementRef","PLATFORM_ID","ɵɵdefineComponent","dirIndex","ɵɵcontentQuery","Header","PrimeTemplate","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵProvidersFeature","ɵɵprojectionDef","ɵɵclassMap","NgClass","NgIf","NgTemplateOutlet","NgStyle","EditorModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","SharedModule","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","AddRecipeComponent_div_21_div_1_Template","AddRecipeComponent_div_21_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","recipeForm","get","errors","tmp_3_0","unit_r3","ɵɵtextInterpolate1","ɵɵlistener","ɵɵrestoreView","_r4","i_r5","ɵɵnextContext","index","ɵɵresetView","removeIngredient","ɵɵelement","AddRecipeComponent_div_36_option_10_Template","AddRecipeComponent_div_36_div_12_Template","ɵɵpropertyInterpolate1","ɵɵpureFunction1","_c0","tmp_6_0","ingredient_r6","dirty","touched","aux_r7","submitted","invalid","tmp_8_0","tmp_10_0","units","unit_r8","_r9","j_r10","removeInput","AddRecipeComponent_div_47_option_10_Template","AddRecipeComponent_div_47_div_12_Template","input_r11","AddRecipeComponent_div_55_div_1_Template","AddRecipeComponent_div_55_div_2_Template","AddRecipeComponent","constructor","formBuilder","recipesService","router","toolbar","list","header","align","group","name","Validators","required","pattern","procedure","ingredients","array","createIngredientFormGroup","inputs","createInputsFormGroup","ngOnInit","Object","values","Units","quantity","unit","addIngredient","push","removeAt","addInput","onSubmit","console","log","valid","ingredientList","value","map","ingredient","join","inputsList","input","recipe","description","recipeIngredients","recipePackagingElements","createRecipe","subscribe","response","navigate","error","ɵɵdirectiveInject","FormBuilder","RecipesService","Router","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","i0","_r1","AddRecipeComponent_div_21_Template","AddRecipeComponent_div_36_Template","AddRecipeComponent_div_47_Template","AddRecipeComponent_ng_template_53_Template","AddRecipeComponent_div_55_Template","controls","ɵɵstyleMap","ɵɵpureFunction0","_c1","tmp_7_0","NavbarComponent","CommonModule","NgClass","NgForOf","NgIf","ReactiveFormsModule","ɵNgNoValidate","NgSelectOption","ɵNgSelectMultipleOption","DefaultValueAccessor","NumberValueAccessor","SelectControlValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","FormGroupName","FormArrayName","EditorModule","Editor","PrimeTemplate","styles","_AddRecipeComponent","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","ModifyRecipeComponent_div_23_div_1_Template","ModifyRecipeComponent_div_23_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","recipeForm","get","errors","tmp_3_0","unit_r3","ɵɵtextInterpolate1","ɵɵlistener","ɵɵrestoreView","_r4","i_r5","ɵɵnextContext","index","ɵɵresetView","removeIngredient","ɵɵelement","ModifyRecipeComponent_div_35_option_10_Template","ModifyRecipeComponent_div_35_div_12_Template","ɵɵpropertyInterpolate1","ɵɵpureFunction1","_c0","tmp_6_0","ingredient_r6","dirty","touched","aux_r7","submitted","invalid","tmp_8_0","tmp_10_0","units","unit_r8","_r9","j_r10","removeInput","ModifyRecipeComponent_div_46_option_10_Template","ModifyRecipeComponent_div_46_div_12_Template","input_r11","ModifyRecipeComponent_div_54_div_1_Template","ModifyRecipeComponent_div_54_div_2_Template","ModifyRecipeComponent","constructor","formBuilder","route","recipeService","router","id","group","name","Validators","required","pattern","procedure","ingredients","array","createIngredientFormGroup","inputs","createInputsFormGroup","ngOnInit","snapshot","paramMap","recipe","getRecipeById","subscribe","patchForm","Object","values","Units","quantity","unit","addIngredient","push","removeAt","addInput","onSubmit","valid","console","log","value","ingredientList","map","ingredient","join","inputsList","input","description","recipeIngredients","recipePackagingElements","updateRecipe","response","navigate","error","patchValue","clear","parseList","forEach","ɵɵdirectiveInject","FormBuilder","ActivatedRoute","RecipesService","Router","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","i0","_r1","ModifyRecipeComponent_div_23_Template","ModifyRecipeComponent_div_35_Template","ModifyRecipeComponent_div_46_Template","ModifyRecipeComponent_ng_template_52_Template","ModifyRecipeComponent_div_54_Template","controls","ɵɵstyleMap","ɵɵpureFunction0","_c1","tmp_7_0","CommonModule","NgClass","NgForOf","NgIf","ReactiveFormsModule","ɵNgNoValidate","NgSelectOption","ɵNgSelectMultipleOption","DefaultValueAccessor","NumberValueAccessor","SelectControlValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","FormGroupName","FormArrayName","NavbarComponent","EditorModule","Editor","PrimeTemplate","styles","_ModifyRecipeComponent","list","split","filter","item","trim","element","NewLinewToBrPipe","transform","value","replace","pure","standalone","_NewLinewToBrPipe","import_typeof","Worker","Worker","u8","u16","u32","fleb","fdeb","clim","freb","eb","start","b","i","r","j","_a","fl","revfl","_b","fd","revfd","rev","x","hMap","cd","mb","s","l","le","co","rvb","sv","r_1","v","m","flt","fdt","flm","flrm","fdm","fdrm","max","a","bits","d","p","o","bits16","shft","slc","e","n","inflt","dat","buf","st","sl","noBuf","noSt","cbuf","bl","nbuf","final","pos","bt","lm","dm","lbt","dbt","tbts","type","hLit","hcLen","tl","ldt","clt","clb","clbmsk","clm","c","lt","dt","t","lms","dms","mxa","sym","add","dsym","end","wbits","wbits16","hTree","t2","i0","i1","i2","maxSym","tr","mbt","ln","lft","cst","i2_1","i2_2","i2_3","lc","cl","cli","cln","cls","w","clen","cf","wfblk","out","wblk","syms","lf","df","li","bs","dlt","mlb","ddt","mdb","_c","lclt","nlc","_d","lcdt","ndc","lcfreq","_e","lct","mlcb","nlcc","flen","ftlen","dtlen","ll","dl","llm","lcts","it","clct","len","dst","deo","et","dflt","lvl","plvl","pre","post","lst","opt","msk_1","prev","head","bs1_1","bs2_1","hsh","lc_1","wi","hv","imod","pimod","rem","ch_1","dif","maxn","maxd","ml","nl","mmd","md","ti","pti","lin","din","adler","a","b","d","n","m","l","i","e","dopt","dat","opt","pre","post","st","dflt","wbytes","d","b","v","zlh","c","o","lv","fl","zlv","d","zlibSync","data","opts","a","adler","d","dopt","zlh","wbytes","unzlibSync","data","out","inflt","zlv","n","i","a","o","e","r","l","s","c","u","h","t","f","d","g","m","v","b","_","p","y","w","N","L","A","x","S","P","k","I","F","C","j","O","B","M","E","lt","Vt","_t","Rr","q","D","R","T","U","z","H","W","V","G","Y","Ye","J","Q","X","K","Z","$","tt","et","rt","nt","it","at","ot","st","ct","ut","Qt","Kt","te","ht","ft","dt","pt","gt","mt","vt","bt","yt","wt","Nt","Lt","At","xt","St","Pt","kt","It","Ft","Ct","jt","Ot","Bt","Mt","Et","qt","Dt","Rt","Tt","Ut","zt","Ht","Wt","Cr","jr","Gt","Yt","Jt","Br","Xt","Zt","$t","ee","re","ne","ie","ae","oe","se","ce","ue","he","le","fe","de","pe","ge","me","ve","be","ye","we","Ne","Le","Ae","xe","Se","_e","Pe","ke","Ie","Fe","Ce","je","Me","Oe","pr","fr","Lr","kr","Ir","Be","Ee","qe","De","Re","Te","Ue","ze","He","We","Ve","Ge","Je","Xe","Ke","Ze","lr","_r","br","yr","xr","$e","Qe","tr","er","rr","ar","nr","ir","or","sr","cr","ur","hr","dr","gr","mr","vr","wr","Nr","Ar","Sr","Pr","Fr","Or","qr","Dr","Tr","Mr","Er","zlibSync","unzlibSync","Ur","zr","Hr","Hn","Wn","Vn","Gn","vi","Tn","Sn","An","qn","Rn","Un","Ci","ji","_i","Si","Mi","Bi","Oi","Pi","ki","Ei","qi","$n","Gr","Wr","Vr","Zr","$r","Yr","En","Qr","tn","Dn","nn","en","xn","zn","rn","mi","Xr","ti","gi","Jr","Kr","Qn","Xn","Zn","Jn","Yn","Kn","pi","_n","ni","ei","ri","ui","si","hi","ii","ai","Ri","Ui","Cn","Pn","kn","In","Fn","an","on","cn","un","hn","sn","ln","fn","dn","pn","gn","mn","vn","bn","yn","wn","Nn","Ln","fi","li","di","ci","oi","Bn","jn","On","Mn","bi","wi","yi","Ni","Li","Ai","xi","Fi","Ii","Di","zi","Ti","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵtextInterpolate3","ingredient_r1","name","quantity","unit","ingredient_r2","input_r3","input_r4","ViewRecipeComponent","constructor","route","recipeService","router","id","recipe","leftColumnIngredients","rightColumnIngredients","leftColumnInputs","rightColumnInputs","ngOnInit","snapshot","paramMap","get","getRecipeById","subscribe","res","splitIngredients","splitInputs","error","console","goTo","navigate","deleteRecipe","generatePDF","doc","jsPDF","yPosition","setFontSize","text","parseList","forEach","ing","ins","procedureText","convertHTMLToText","splitTextToSize","line","save","html","tempDiv","document","createElement","innerHTML","replaceBreaks","node","nodeName","textContent","replaceLists","trim","Array","from","childNodes","map","join","toggle","element","push","ɵɵdirectiveInject","ActivatedRoute","RecipesService","Router","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelement","ɵɵlistener","ɵɵtemplate","ViewRecipeComponent_div_24_Template","ViewRecipeComponent_div_26_Template","ViewRecipeComponent_div_32_Template","ViewRecipeComponent_div_34_Template","ɵɵtextInterpolate","ɵɵproperty","ɵɵpipeBind1","ɵɵsanitizeHtml","NavbarComponent","CommonModule","NgForOf","NewLinewToBrPipe","styles","_ViewRecipeComponent","list","split","filter","item","CategoriesService","constructor","batchesService","batchCategories","BehaviorSubject","chargeCategories","getCategories","subscribe","next","res","Array","isArray","console","error","err","asObservable","addCategory","category","pipe","map","categories","includes","push","sort","ɵɵinject","BatchesService","factory","ɵfac","providedIn","_CategoriesService","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","AddBatchComponent_div_24_div_1_Template","AddBatchComponent_div_24_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","batchForm","get","errors","tmp_3_0","c_r3","ɵɵtextInterpolate1","AddBatchComponent_div_39_div_1_Template","unit_r4","AddBatchComponent_div_56_div_1_Template","AddBatchComponent_div_56_div_2_Template","AddBatchComponent_div_57_div_1_Template","avaibleRawMaterials","i_r6","quantity","AddBatchComponent_div_90_div_5_div_4_div_1_Template","AddBatchComponent_div_90_div_5_div_4_div_2_Template","tmp_6_0","materialControl_r7","tmp_7_0","ɵɵlistener","ɵɵrestoreView","_r5","ɵɵnextContext","ɵɵresetView","calculateCost","AddBatchComponent_div_90_div_5_div_4_Template","ɵɵpropertyInterpolate1","ɵɵpureFunction1","_c0","dirty","touched","aux_r9","submitted","invalid","tmp_8_0","ɵɵelement","AddBatchComponent_div_90_div_5_Template","ɵɵtextInterpolate3","name","unit","value","avaibleInputs","i_r11","AddBatchComponent_div_101_div_5_div_4_div_1_Template","AddBatchComponent_div_101_div_5_div_4_div_2_Template","materialControl_r12","_r10","AddBatchComponent_div_101_div_5_div_4_Template","AddBatchComponent_div_101_div_5_Template","AddBatchComponent_div_113_div_13_div_1_Template","AddBatchComponent_div_113_div_13_div_2_Template","addCategoryForm","tmp_4_0","_r14","closeAddCategoryModal","addCategory","AddBatchComponent_div_113_div_13_Template","AddBatchComponent","constructor","formbuild","CategoriesService","RawMaterialsService","InputsService","BatchesService","router","categories","units","minDate","addCategoryModal","totalCost","group","Validators","required","pattern","category","expirationDate","description","price","min","ingredients","array","validators","atLeastOneCheckedValidator","packages","newCategory","ngOnInit","chargeCategories","getCategories","Object","values","Units","now","Date","toISOString","slice","getRawMaterials","getInputs","valid","push","reset","console","log","onSubmit","selectedIngredientControls","selectedIngredientIds","filter","ingredient","selected","map","id","material","includes","selectedInputControls","selectedInputIds","input","inputs","futureDate","setFullYear","getFullYear","batch","expiration","batchIngredients","batchIngredientsQuantity","join","batchPackagingElements","batchPackagingElementsQuantity","JSON","stringify","createBatch","subscribe","data","ingredientUpdatePromises","selectedControl","find","control","updateRawMaterial","toPromise","Boolean","inputUpdatePromises","updateInput","Promise","all","then","catch","error","navigate","openAddCategoryModal","selectedIngredients","addRawMaterialControls","forEach","max","availableQuantity","sort","a","b","localeCompare","openRMFilters","selectedInputs","addInputsControls","openIFilters","rawMaterial","cost","packagingMaterial","updatePriceValidator","priceControl","setValidators","updateValueAndValidity","ɵɵdirectiveInject","FormBuilder","Router","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","i0","_r1","AddBatchComponent_div_24_Template","AddBatchComponent_option_34_Template","AddBatchComponent_div_39_Template","AddBatchComponent_option_54_Template","AddBatchComponent_div_56_Template","AddBatchComponent_div_57_Template","AddBatchComponent_div_66_Template","AddBatchComponent_div_80_Template","AddBatchComponent_div_90_Template","AddBatchComponent_div_91_Template","AddBatchComponent_div_101_Template","AddBatchComponent_div_102_Template","AddBatchComponent_ng_template_110_Template","AddBatchComponent_div_112_Template","AddBatchComponent_div_113_Template","tmp_10_0","tmp_11_0","tmp_12_0","tmp_14_0","tmp_15_0","tmp_17_0","controls","tmp_19_0","tmp_21_0","ɵɵstyleMap","ɵɵpureFunction0","_c1","tmp_23_0","tmp_24_0","CommonModule","NgClass","NgForOf","NgIf","NavbarComponent","ReactiveFormsModule","ɵNgNoValidate","NgSelectOption","ɵNgSelectMultipleOption","DefaultValueAccessor","NumberValueAccessor","CheckboxControlValueAccessor","SelectControlValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","FormGroupName","FormArrayName","EditorModule","Editor","PrimeTemplate","styles","_AddBatchComponent","AuthGuard","route","state","authService","inject","AuthService","router","Router","isLoggedIn","navigate","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","ModifyBatchComponent_div_24_div_1_Template","ModifyBatchComponent_div_24_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","batchForm","get","errors","tmp_3_0","c_r3","ɵɵtextInterpolate1","ModifyBatchComponent_div_39_div_1_Template","unit_r4","ModifyBatchComponent_div_56_div_1_Template","ModifyBatchComponent_div_56_div_2_Template","ModifyBatchComponent_div_57_div_1_Template","avaibleRawMaterials","i_r6","quantity","ModifyBatchComponent_div_90_div_5_div_4_div_1_Template","ModifyBatchComponent_div_90_div_5_div_4_div_2_Template","tmp_6_0","materialControl_r7","tmp_7_0","ɵɵlistener","ɵɵrestoreView","_r5","ɵɵnextContext","ɵɵresetView","calculateCost","ModifyBatchComponent_div_90_div_5_div_4_Template","ɵɵpropertyInterpolate1","ɵɵpureFunction1","_c0","dirty","touched","aux_r9","submitted","invalid","tmp_8_0","ɵɵelement","ModifyBatchComponent_div_90_div_5_Template","ɵɵtextInterpolate3","name","unit","value","avaibleInputs","i_r11","ModifyBatchComponent_div_101_div_5_div_4_div_1_Template","ModifyBatchComponent_div_101_div_5_div_4_div_2_Template","materialControl_r12","_r10","ModifyBatchComponent_div_101_div_5_div_4_Template","ModifyBatchComponent_div_101_div_5_Template","ModifyBatchComponent_div_113_div_13_div_1_Template","ModifyBatchComponent_div_113_div_13_div_2_Template","addCategoryForm","tmp_4_0","_r14","closeAddCategoryModal","addCategory","ModifyBatchComponent_div_113_div_13_Template","ModifyBatchComponent","constructor","formbuild","CategoriesService","RawMaterialsService","InputsService","BatchesService","router","activeRoute","batchId","batch","categories","units","minDate","addCategoryModal","preSelectedIngredients","preSelectedIngredientsQuantity","preSelectedInputs","totalCost","group","Validators","required","pattern","category","expirationDate","description","price","min","ingredients","array","validators","atLeastOneCheckedValidator","packages","newCategory","ngOnInit","getBatch","getRawMaterials","getInputs","chargeCategories","getCategories","Object","values","Units","now","Date","toISOString","slice","console","log","valid","push","reset","onSubmit","selectedIngredientControls","selectedInputControls","selectedIngredientIds","filter","ingredient","selected","map","id","selectedInputIds","input","updatedIngredients","material","includes","updatedInputs","ingredientsQuantity","join","inputsQuantity","expiration","creationDate","ad","lastModificationDate","lmd","batchIngredients","batchIngredientsQuantity","batchPackagingElements","batchPackagingElementsQuantity","JSON","stringify","updateBatch","subscribe","data","ingredientUpdatePromises","updateSelectedIngredients","inputUpdatePromises","updateSelectedInputs","ingredientRestorePromises","restoreDeselectedIngredients","inputRestorePromises","restoreDeselectedInputs","Promise","all","then","catch","error","navigate","field","find","originalQuantity","Number","newQuantity","difference","Math","abs","updateRawMaterial","toPromise","resolve","updateInput","control","deselected","openAddCategoryModal","selectedIngredients","addRawMaterialControls","length","removeAt","forEach","max","availableQuantity","openRMFilters","selectedInputs","addInputsControls","openIFilters","sort","a","b","localeCompare","snapshot","paramMap","getBatchById","res","patchValue","formatDate","ingredientQuantities","split","reduce","acc","pair","parseFloat","packagingQuantities","ingredientsArray","controls","ctrl","undefined","packagesArray","packaging","reject","updateElement","stock","actualQuantity","oldQuantity","rawMaterial","cost","packagingMaterial","updatePriceValidator","priceControl","setValidators","updateValueAndValidity","ɵɵdirectiveInject","FormBuilder","Router","ActivatedRoute","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","i0","_r1","ModifyBatchComponent_div_24_Template","ModifyBatchComponent_option_34_Template","ModifyBatchComponent_div_39_Template","ModifyBatchComponent_option_54_Template","ModifyBatchComponent_div_56_Template","ModifyBatchComponent_div_57_Template","ModifyBatchComponent_div_66_Template","ModifyBatchComponent_div_80_Template","ModifyBatchComponent_div_90_Template","ModifyBatchComponent_div_91_Template","ModifyBatchComponent_div_101_Template","ModifyBatchComponent_div_102_Template","ModifyBatchComponent_ng_template_110_Template","ModifyBatchComponent_div_112_Template","ModifyBatchComponent_div_113_Template","tmp_10_0","tmp_11_0","tmp_12_0","tmp_14_0","tmp_15_0","tmp_17_0","tmp_19_0","tmp_21_0","ɵɵstyleMap","ɵɵpureFunction0","_c1","tmp_23_0","tmp_24_0","CommonModule","NgClass","NgForOf","NgIf","ReactiveFormsModule","ɵNgNoValidate","NgSelectOption","ɵNgSelectMultipleOption","DefaultValueAccessor","NumberValueAccessor","CheckboxControlValueAccessor","SelectControlValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","FormGroupName","FormArrayName","NavbarComponent","EditorModule","Editor","PrimeTemplate","styles","_ModifyBatchComponent","allReadyLogGuard","route","state","authService","inject","AuthService","router","Router","isLoggedIn","navigate","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtemplate","EditProfileModalComponent_div_23_div_1_Template","EditProfileModalComponent_div_23_div_2_Template","ɵɵadvance","ɵɵproperty","tmp_2_0","ctx_r1","userForm","get","errors","tmp_3_0","EditProfileModalComponent_div_32_div_1_Template","EditProfileModalComponent_div_32_div_2_Template","EditProfileModalComponent_div_41_div_1_Template","EditProfileModalComponent_div_41_div_2_Template","EditProfileModalComponent_div_50_div_1_Template","EditProfileModalComponent_div_50_div_2_Template","EditProfileModalComponent_div_69_div_1_Template","EditProfileModalComponent_div_69_div_2_Template","value","aux_r3","submitted","dirty","touched","hasError","EditProfileModalComponent","constructor","fb","UsersService","userInput","close","EventEmitter","group","email","Validators","required","emailValidator","name","pattern","surname","phone","phoneValidator","password","confirmPassword","role","validator","matchPasswordValidator","ngOnInit","user","transformUserInput","patchValue","onSubmit","valid","pass","userToSave","id","console","log","updateUser","subscribe","emit","markAllAsTouched","closeModal","data","ɵɵdirectiveInject","FormBuilder","selectors","inputs","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵlistener","i0","ɵɵrestoreView","_r1","ɵɵresetView","ɵɵelement","EditProfileModalComponent_div_23_Template","EditProfileModalComponent_div_32_Template","EditProfileModalComponent_div_41_Template","EditProfileModalComponent_div_50_Template","EditProfileModalComponent_div_60_Template","EditProfileModalComponent_div_69_Template","EditProfileModalComponent_div_83_Template","ɵɵpureFunction1","_c0","invalid","tmp_4_0","tmp_5_0","tmp_6_0","tmp_7_0","tmp_8_0","tmp_9_0","tmp_10_0","tmp_11_0","tmp_12_0","tmp_13_0","tmp_14_0","tmp_15_0","tmp_16_0","CommonModule","NgClass","NgIf","ReactiveFormsModule","ɵNgNoValidate","DefaultValueAccessor","RadioControlValueAccessor","NgControlStatus","NgControlStatusGroup","FormGroupDirective","FormControlName","FormsModule","styles","_EditProfileModalComponent","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","closeUserModal","ɵɵelementEnd","ɵɵproperty","user","ProfileComponent","constructor","authService","userService","openEditProfileModal","ngOnInit","userId","getUserId","getData","openUserModal","getUsersById","subscribe","data","ɵɵdirectiveInject","AuthService","UsersService","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelement","ɵɵtext","ɵɵtemplate","ProfileComponent_app_edit_profile_modal_40_Template","ɵɵadvance","ɵɵtextInterpolate","NavbarComponent","ReactiveFormsModule","CommonModule","NgIf","EditProfileModalComponent","styles","_ProfileComponent","routes","path","component","LoginComponent","canActivate","allReadyLogGuard","pathMatch","HomeComponent","AuthGuard","InventoryComponent","ProductionComponent","AddBatchComponent","ViewBatchComponent","ModifyBatchComponent","RecipesComponent","AddRecipeComponent","ViewRecipeComponent","ModifyRecipeComponent","HistoryComponent","UsersComponent","ProvidersComponent","ClientsComponent","ProfileComponent","redirectTo","authInterceptor","req","next","authService","inject","AuthService","url","includes","token","getToken","authReq","clone","setHeaders","Authorization","appConfig","providers","provideRouter","routes","provideClientHydration","provideHttpClient","withFetch","withInterceptors","authInterceptor","serverConfig","providers","provideServerRendering","config","mergeApplicationConfig","appConfig","bootstrap","bootstrapApplication","AppComponent","config","main_server_default"],"x_google_ignoreList":[2,50,51,52,53,54,55,56,57,58,59,60,61,62,63,92,98,99]}
\ No newline at end of file
diff --git a/src/main/webapp/server/index.server.html b/src/main/webapp/server/index.server.html
index 9f1b961..61dc71e 100644
--- a/src/main/webapp/server/index.server.html
+++ b/src/main/webapp/server/index.server.html
@@ -9,5 +9,5 @@
 <link rel="stylesheet" href="styles-2YMZZOXN.css"><link rel="modulepreload" href="chunk-7P57MJ5M.js"><link rel="modulepreload" href="chunk-NAAU5XYX.js"></head>
 <body>
   <app-root></app-root>
-<script src="polyfills-FEUDNLVJ.js" type="module"></script><script src="scripts-7Z5T4CMR.js" defer></script><script src="main-YAAPIBWJ.js" type="module"></script></body>
+<script src="polyfills-FEUDNLVJ.js" type="module"></script><script src="scripts-7Z5T4CMR.js" defer></script><script src="main-4GNIG5GO.js" type="module"></script></body>
 </html>
diff --git a/src/main/webapp/server/main.server.mjs b/src/main/webapp/server/main.server.mjs
index 845cf01..f79c49d 100644
--- a/src/main/webapp/server/main.server.mjs
+++ b/src/main/webapp/server/main.server.mjs
@@ -1,3 +1,3 @@
 import './polyfills.server.mjs';
-import{a}from"./chunk-DHOUB3RY.mjs";import"./chunk-GGVUNLYZ.mjs";import"./chunk-GATFG3FK.mjs";import"./chunk-VAPKEZCW.mjs";export{a as default};
+import{a}from"./chunk-H47QWUUI.mjs";import"./chunk-GGVUNLYZ.mjs";import"./chunk-GATFG3FK.mjs";import"./chunk-VAPKEZCW.mjs";export{a as default};
 //# sourceMappingURL=main.server.mjs.map
diff --git a/src/main/webapp/server/server.mjs b/src/main/webapp/server/server.mjs
index e972462..cafabea 100644
--- a/src/main/webapp/server/server.mjs
+++ b/src/main/webapp/server/server.mjs
@@ -1,5 +1,5 @@
 import './polyfills.server.mjs';
-import{a as Bl}from"./chunk-DHOUB3RY.mjs";import{Pa as jl,gb as Ml,hb as Dl,ib as Fl}from"./chunk-GGVUNLYZ.mjs";import"./chunk-GATFG3FK.mjs";import{a as $,b as Re,c as y,d as Ds,e as h,f as Kx,g as Je,h as ie}from"./chunk-VAPKEZCW.mjs";var Nt=h((dT,gp)=>{"use strict";gp.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}});var mo=h((vq,fo)=>{"use strict";var Hp=process.argv||[],Ki=process.env,hy=!("NO_COLOR"in Ki||Hp.includes("--no-color"))&&("FORCE_COLOR"in Ki||Hp.includes("--color")||process.platform==="win32"||y!=null&&y("tty").isatty(1)&&Ki.TERM!=="dumb"||"CI"in Ki),vy=(t,e,r=t)=>n=>{let i=""+n,a=i.indexOf(e,t.length);return~a?t+by(i,e,r,a)+e:t+i+e},by=(t,e,r,n)=>{let i="",a=0;do i+=t.substring(a,n)+r,a=n+e.length,n=t.indexOf(e,a);while(~n);return i+t.substring(a)},Gp=(t=hy)=>{let e=t?vy:()=>String;return{isColorSupported:t,reset:e("\x1B[0m","\x1B[0m"),bold:e("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:e("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:e("\x1B[3m","\x1B[23m"),underline:e("\x1B[4m","\x1B[24m"),inverse:e("\x1B[7m","\x1B[27m"),hidden:e("\x1B[8m","\x1B[28m"),strikethrough:e("\x1B[9m","\x1B[29m"),black:e("\x1B[30m","\x1B[39m"),red:e("\x1B[31m","\x1B[39m"),green:e("\x1B[32m","\x1B[39m"),yellow:e("\x1B[33m","\x1B[39m"),blue:e("\x1B[34m","\x1B[39m"),magenta:e("\x1B[35m","\x1B[39m"),cyan:e("\x1B[36m","\x1B[39m"),white:e("\x1B[37m","\x1B[39m"),gray:e("\x1B[90m","\x1B[39m"),bgBlack:e("\x1B[40m","\x1B[49m"),bgRed:e("\x1B[41m","\x1B[49m"),bgGreen:e("\x1B[42m","\x1B[49m"),bgYellow:e("\x1B[43m","\x1B[49m"),bgBlue:e("\x1B[44m","\x1B[49m"),bgMagenta:e("\x1B[45m","\x1B[49m"),bgCyan:e("\x1B[46m","\x1B[49m"),bgWhite:e("\x1B[47m","\x1B[49m")}};fo.exports=Gp();fo.exports.createColors=Gp});var ho=h((gq,Wp)=>{"use strict";var ea=/[\t\n\f\r "#'()/;[\\\]{}]/g,ta=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,gy=/.[\r\n"'(/\\]/,Vp=/[\da-f]/i;Wp.exports=function(e,r={}){let n=e.css.valueOf(),i=r.ignoreErrors,a,s,o,c,u,l,p,f,d,m,v=n.length,b=0,x=[],k=[];function A(){return b}function q(N){throw e.error("Unclosed "+N,b)}function O(){return k.length===0&&b>=v}function _(N){if(k.length)return k.pop();if(b>=v)return;let X=N?N.ignoreUnclosed:!1;switch(a=n.charCodeAt(b),a){case 10:case 32:case 9:case 13:case 12:{s=b;do s+=1,a=n.charCodeAt(s);while(a===32||a===10||a===9||a===13||a===12);m=["space",n.slice(b,s)],b=s-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let Y=String.fromCharCode(a);m=[Y,Y,b];break}case 40:{if(f=x.length?x.pop()[1]:"",d=n.charCodeAt(b+1),f==="url"&&d!==39&&d!==34&&d!==32&&d!==10&&d!==9&&d!==12&&d!==13){s=b;do{if(l=!1,s=n.indexOf(")",s+1),s===-1)if(i||X){s=b;break}else q("bracket");for(p=s;n.charCodeAt(p-1)===92;)p-=1,l=!l}while(l);m=["brackets",n.slice(b,s+1),b,s],b=s}else s=n.indexOf(")",b+1),c=n.slice(b,s+1),s===-1||gy.test(c)?m=["(","(",b]:(m=["brackets",c,b,s],b=s);break}case 39:case 34:{o=a===39?"'":'"',s=b;do{if(l=!1,s=n.indexOf(o,s+1),s===-1)if(i||X){s=b+1;break}else q("string");for(p=s;n.charCodeAt(p-1)===92;)p-=1,l=!l}while(l);m=["string",n.slice(b,s+1),b,s],b=s;break}case 64:{ea.lastIndex=b+1,ea.test(n),ea.lastIndex===0?s=n.length-1:s=ea.lastIndex-2,m=["at-word",n.slice(b,s+1),b,s],b=s;break}case 92:{for(s=b,u=!0;n.charCodeAt(s+1)===92;)s+=1,u=!u;if(a=n.charCodeAt(s+1),u&&a!==47&&a!==32&&a!==10&&a!==9&&a!==13&&a!==12&&(s+=1,Vp.test(n.charAt(s)))){for(;Vp.test(n.charAt(s+1));)s+=1;n.charCodeAt(s+1)===32&&(s+=1)}m=["word",n.slice(b,s+1),b,s],b=s;break}default:{a===47&&n.charCodeAt(b+1)===42?(s=n.indexOf("*/",b+2)+1,s===0&&(i||X?s=n.length:q("comment")),m=["comment",n.slice(b,s+1),b,s],b=s):(ta.lastIndex=b+1,ta.test(n),ta.lastIndex===0?s=n.length-1:s=ta.lastIndex-2,m=["word",n.slice(b,s+1),b,s],x.push(m),b=s);break}}return b++,m}function re(N){k.push(N)}return{back:re,endOfFile:O,nextToken:_,position:A}}});var vo=h((xq,Zp)=>{"use strict";var xe=mo(),xy=ho(),Xp;function yy(t){Xp=t}var wy={";":xe.yellow,":":xe.yellow,"(":xe.cyan,")":xe.cyan,"[":xe.yellow,"]":xe.yellow,"{":xe.yellow,"}":xe.yellow,"at-word":xe.cyan,brackets:xe.cyan,call:xe.cyan,class:xe.yellow,comment:xe.gray,hash:xe.magenta,string:xe.green};function Ey([t,e],r){if(t==="word"){if(e[0]===".")return"class";if(e[0]==="#")return"hash"}if(!r.endOfFile()){let n=r.nextToken();if(r.back(n),n[0]==="brackets"||n[0]==="(")return"call"}return t}function Qp(t){let e=xy(new Xp(t),{ignoreErrors:!0}),r="";for(;!e.endOfFile();){let n=e.nextToken(),i=wy[Ey(n,e)];i?r+=n[1].split(/\r?\n/).map(a=>i(a)).join(`
+import{a as Bl}from"./chunk-H47QWUUI.mjs";import{Pa as jl,gb as Ml,hb as Dl,ib as Fl}from"./chunk-GGVUNLYZ.mjs";import"./chunk-GATFG3FK.mjs";import{a as $,b as Re,c as y,d as Ds,e as h,f as Kx,g as Je,h as ie}from"./chunk-VAPKEZCW.mjs";var Nt=h((dT,gp)=>{"use strict";gp.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}});var mo=h((vq,fo)=>{"use strict";var Hp=process.argv||[],Ki=process.env,hy=!("NO_COLOR"in Ki||Hp.includes("--no-color"))&&("FORCE_COLOR"in Ki||Hp.includes("--color")||process.platform==="win32"||y!=null&&y("tty").isatty(1)&&Ki.TERM!=="dumb"||"CI"in Ki),vy=(t,e,r=t)=>n=>{let i=""+n,a=i.indexOf(e,t.length);return~a?t+by(i,e,r,a)+e:t+i+e},by=(t,e,r,n)=>{let i="",a=0;do i+=t.substring(a,n)+r,a=n+e.length,n=t.indexOf(e,a);while(~n);return i+t.substring(a)},Gp=(t=hy)=>{let e=t?vy:()=>String;return{isColorSupported:t,reset:e("\x1B[0m","\x1B[0m"),bold:e("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:e("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:e("\x1B[3m","\x1B[23m"),underline:e("\x1B[4m","\x1B[24m"),inverse:e("\x1B[7m","\x1B[27m"),hidden:e("\x1B[8m","\x1B[28m"),strikethrough:e("\x1B[9m","\x1B[29m"),black:e("\x1B[30m","\x1B[39m"),red:e("\x1B[31m","\x1B[39m"),green:e("\x1B[32m","\x1B[39m"),yellow:e("\x1B[33m","\x1B[39m"),blue:e("\x1B[34m","\x1B[39m"),magenta:e("\x1B[35m","\x1B[39m"),cyan:e("\x1B[36m","\x1B[39m"),white:e("\x1B[37m","\x1B[39m"),gray:e("\x1B[90m","\x1B[39m"),bgBlack:e("\x1B[40m","\x1B[49m"),bgRed:e("\x1B[41m","\x1B[49m"),bgGreen:e("\x1B[42m","\x1B[49m"),bgYellow:e("\x1B[43m","\x1B[49m"),bgBlue:e("\x1B[44m","\x1B[49m"),bgMagenta:e("\x1B[45m","\x1B[49m"),bgCyan:e("\x1B[46m","\x1B[49m"),bgWhite:e("\x1B[47m","\x1B[49m")}};fo.exports=Gp();fo.exports.createColors=Gp});var ho=h((gq,Wp)=>{"use strict";var ea=/[\t\n\f\r "#'()/;[\\\]{}]/g,ta=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,gy=/.[\r\n"'(/\\]/,Vp=/[\da-f]/i;Wp.exports=function(e,r={}){let n=e.css.valueOf(),i=r.ignoreErrors,a,s,o,c,u,l,p,f,d,m,v=n.length,b=0,x=[],k=[];function A(){return b}function q(N){throw e.error("Unclosed "+N,b)}function O(){return k.length===0&&b>=v}function _(N){if(k.length)return k.pop();if(b>=v)return;let X=N?N.ignoreUnclosed:!1;switch(a=n.charCodeAt(b),a){case 10:case 32:case 9:case 13:case 12:{s=b;do s+=1,a=n.charCodeAt(s);while(a===32||a===10||a===9||a===13||a===12);m=["space",n.slice(b,s)],b=s-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let Y=String.fromCharCode(a);m=[Y,Y,b];break}case 40:{if(f=x.length?x.pop()[1]:"",d=n.charCodeAt(b+1),f==="url"&&d!==39&&d!==34&&d!==32&&d!==10&&d!==9&&d!==12&&d!==13){s=b;do{if(l=!1,s=n.indexOf(")",s+1),s===-1)if(i||X){s=b;break}else q("bracket");for(p=s;n.charCodeAt(p-1)===92;)p-=1,l=!l}while(l);m=["brackets",n.slice(b,s+1),b,s],b=s}else s=n.indexOf(")",b+1),c=n.slice(b,s+1),s===-1||gy.test(c)?m=["(","(",b]:(m=["brackets",c,b,s],b=s);break}case 39:case 34:{o=a===39?"'":'"',s=b;do{if(l=!1,s=n.indexOf(o,s+1),s===-1)if(i||X){s=b+1;break}else q("string");for(p=s;n.charCodeAt(p-1)===92;)p-=1,l=!l}while(l);m=["string",n.slice(b,s+1),b,s],b=s;break}case 64:{ea.lastIndex=b+1,ea.test(n),ea.lastIndex===0?s=n.length-1:s=ea.lastIndex-2,m=["at-word",n.slice(b,s+1),b,s],b=s;break}case 92:{for(s=b,u=!0;n.charCodeAt(s+1)===92;)s+=1,u=!u;if(a=n.charCodeAt(s+1),u&&a!==47&&a!==32&&a!==10&&a!==9&&a!==13&&a!==12&&(s+=1,Vp.test(n.charAt(s)))){for(;Vp.test(n.charAt(s+1));)s+=1;n.charCodeAt(s+1)===32&&(s+=1)}m=["word",n.slice(b,s+1),b,s],b=s;break}default:{a===47&&n.charCodeAt(b+1)===42?(s=n.indexOf("*/",b+2)+1,s===0&&(i||X?s=n.length:q("comment")),m=["comment",n.slice(b,s+1),b,s],b=s):(ta.lastIndex=b+1,ta.test(n),ta.lastIndex===0?s=n.length-1:s=ta.lastIndex-2,m=["word",n.slice(b,s+1),b,s],x.push(m),b=s);break}}return b++,m}function re(N){k.push(N)}return{back:re,endOfFile:O,nextToken:_,position:A}}});var vo=h((xq,Zp)=>{"use strict";var xe=mo(),xy=ho(),Xp;function yy(t){Xp=t}var wy={";":xe.yellow,":":xe.yellow,"(":xe.cyan,")":xe.cyan,"[":xe.yellow,"]":xe.yellow,"{":xe.yellow,"}":xe.yellow,"at-word":xe.cyan,brackets:xe.cyan,call:xe.cyan,class:xe.yellow,comment:xe.gray,hash:xe.magenta,string:xe.green};function Ey([t,e],r){if(t==="word"){if(e[0]===".")return"class";if(e[0]==="#")return"hash"}if(!r.endOfFile()){let n=r.nextToken();if(r.back(n),n[0]==="brackets"||n[0]==="(")return"call"}return t}function Qp(t){let e=xy(new Xp(t),{ignoreErrors:!0}),r="";for(;!e.endOfFile();){let n=e.nextToken(),i=wy[Ey(n,e)];i?r+=n[1].split(/\r?\n/).map(a=>i(a)).join(`
 `):r+=n[1]}return r}Qp.registerInput=yy;Zp.exports=Qp});var ra=h((yq,Kp)=>{"use strict";var Jp=mo(),Yp=vo(),vn=class t extends Error{constructor(e,r,n,i,a,s){super(e),this.name="CssSyntaxError",this.reason=e,a&&(this.file=a),i&&(this.source=i),s&&(this.plugin=s),typeof r<"u"&&typeof n<"u"&&(typeof r=="number"?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let r=this.source;e==null&&(e=Jp.isColorSupported),Yp&&e&&(r=Yp(r));let n=r.split(/\r?\n/),i=Math.max(this.line-3,0),a=Math.min(this.line+2,n.length),s=String(a).length,o,c;if(e){let{bold:u,gray:l,red:p}=Jp.createColors(!0);o=f=>u(p(f)),c=f=>l(f)}else o=c=u=>u;return n.slice(i,a).map((u,l)=>{let p=i+1+l,f=" "+(" "+p).slice(-s)+" | ";if(p===this.line){let d=c(f.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+c(f)+u+`
  `+d+o("^")}return" "+c(f)+u}).join(`
 `)}toString(){let e=this.showSourceCode();return e&&(e=`
diff --git a/src/main/webapp/users/index.html b/src/main/webapp/users/index.html
index dd70e8f..9520dc8 100644
--- a/src/main/webapp/users/index.html
+++ b/src/main/webapp/users/index.html
@@ -10,6 +10,6 @@
 /*# sourceMappingURL=login.component-V4GLU5XR.css.map */</style></head>
 <body><!--nghm-->
   <app-root _nghost-ng-c3984273398 ng-version="17.3.11" ngh="1" ng-server-context="ssg"><router-outlet _ngcontent-ng-c3984273398></router-outlet><app-login _nghost-ng-c1255512367 ngh="0"><div _ngcontent-ng-c1255512367 class="container-fluid vh-100 d-flex flex-column justify-content-center align-items-center login-background" style="overflow: hidden;"><div _ngcontent-ng-c1255512367 class="logo-container mb-5"><img _ngcontent-ng-c1255512367 src="assets/logo_salacomunitaria.svg" alt="Logo principal" class="img-fluid logo-principal"></div><div _ngcontent-ng-c1255512367 class="login-container col-12 col-md-8 col-lg-8 col-xl-4"><form _ngcontent-ng-c1255512367 novalidate class="login-form p-4 shadow ng-untouched ng-pristine ng-invalid"><div _ngcontent-ng-c1255512367 class="input-group mb-3"><span _ngcontent-ng-c1255512367 class="input-group-text text-white align-items-center justify-content-center"><i _ngcontent-ng-c1255512367 class="bi bi-envelope"></i></span><input _ngcontent-ng-c1255512367 type="email" id="email" formcontrolname="email" placeholder="Ingrese su email" aria-label="Email" class="form-control login-input text-white ng-untouched ng-pristine ng-invalid" value></div><div _ngcontent-ng-c1255512367 class="input-group mb-3"><span _ngcontent-ng-c1255512367 class="input-group-text text-white align-items-center justify-content-center"><i _ngcontent-ng-c1255512367 class="bi bi-lock"></i></span><input _ngcontent-ng-c1255512367 type="password" id="password" formcontrolname="password" placeholder="Ingrese su contraseña" aria-label="Contraseña" class="form-control login-input text-white ng-untouched ng-pristine ng-invalid" value></div><button _ngcontent-ng-c1255512367 type="submit" class="btn login-btn w-100 text-white"> LOGIN </button><div _ngcontent-ng-c1255512367 class="error-container"><span _ngcontent-ng-c1255512367 class="error-message"><!--ngetn--></span></div><div _ngcontent-ng-c1255512367 class="form-check"><input _ngcontent-ng-c1255512367 type="checkbox" id="rememberMe" formcontrolname="rememberMe" class="form-check-input ng-untouched ng-pristine ng-valid"><label _ngcontent-ng-c1255512367 for="rememberMe" class="form-check-label">Recordarme</label></div></form></div><footer _ngcontent-ng-c1255512367 class="footer mt-auto py-3 w-100"><div _ngcontent-ng-c1255512367 class="container d-flex justify-content-center align-items-center footer-container"><img _ngcontent-ng-c1255512367 src="assets/logo_informatica.png" alt="Logo facultad Informatica" class="logo-footer mx-2"><div _ngcontent-ng-c1255512367 class="vr"></div><img _ngcontent-ng-c1255512367 src="assets/logo_unlp.png" alt="Logo UNLP" class="logo-footer mx-2"><div _ngcontent-ng-c1255512367 class="vr"></div><img _ngcontent-ng-c1255512367 src="assets/logo_veterinaria.png" alt="Logo facultad Veterinaria" class="logo-footer mx-2"></div></footer></div></app-login><!----></app-root>
-<script src="polyfills-FEUDNLVJ.js" type="module"></script><script src="scripts-7Z5T4CMR.js" defer></script><script src="main-YAAPIBWJ.js" type="module"></script>
+<script src="polyfills-FEUDNLVJ.js" type="module"></script><script src="scripts-7Z5T4CMR.js" defer></script><script src="main-4GNIG5GO.js" type="module"></script>
 
 <script id="ng-state" type="application/json">{"__nghData__":[{},{"c":{"0":[{"i":"c1255512367","r":1}]}}]}</script></body></html>
\ No newline at end of file
-- 
GitLab