angular-datatables-v20 20.0.0 → 20.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist/lib/fesm2022/angular-datatables.mjs → fesm2022/angular-datatables-v20.mjs} +8 -8
- package/fesm2022/angular-datatables-v20.mjs.map +1 -0
- package/package.json +21 -71
- package/.angular/cache/20.1.0/angular-webpack/65daa0f8064df52205f2e588026866c7db45460f/0.pack +0 -0
- package/.angular/cache/20.1.0/angular-webpack/65daa0f8064df52205f2e588026866c7db45460f/index.pack +0 -0
- package/.angular/cache/20.1.0/babel-webpack/0012666ab9d46ce3.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/005245170d6a809e.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/02466157c02071a4.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/02949ac12a679e48.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/030c0ddf38c7c964.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/03400cac921ef95c.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/03830d87b17ff3a3.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/03d69c7d93289025.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/0408951c845cd207.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/04eaeb033969e5fe.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/05528ca6fb0d661f.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/05b435cf78824e17.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/06543ac8d6894481.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/077c218f1eb65b2c.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/08cb29cbfb3f88cd.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/091b18f1f40e4856.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/09462a3542adb955.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/09afdf2641fd04bc.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/09d43d5102c7d424.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/0b17d5d2ae99e6d8.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/0c00e206246cee39.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/0c2fa9b8409c06ec.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/0d6f8d71f5ea8802.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/0eb7ed8eac353807.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/0edcbc95dc7d8f49.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/106d70882da45568.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/10915a557e410679.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/1286bc327980d1f1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/13220c4efb3e0d7a.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/14ba40ae586daf7b.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/14c45dbaf8998f8c.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/14dd6bede11094b7.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/1634559e44da6c73.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/172f80de50a487f8.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/1858912add0f17cd.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/187a7ec7b2d78abf.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/18965baa3fb000a7.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/1925f1635c9caa6e.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/1942544ed79f6850.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/1ab6eda1333777f1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/1be370c47d54f208.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/1d5e19d13931bf2c.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/1e5c73ee1631ad0d.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/1ec23595d767d52c.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/1eebc570ddd780d5.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/1f5581849900af79.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/1f6125b924016d01.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/207f42ce7344d8e5.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/20a40f97c48b7098.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/2208dcfa7dc7a976.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/233767e1f0773ac7.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/23843cbf15f060ac.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/243ee1e3ee28469e.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/2886c59e2cc4c090.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/288bf00a7759473c.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/291276cea2b712ee.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/292c52728a5ab556.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/2a471461faad3462.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/2ac3104e4edbf3c9.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/2b2bbedddbdf764e.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/2ba7e52d9ea164b1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/2c812d19bef086b6.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/2c8dc30608e43cde.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/2d83786f7977fe4a.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/2dde654f610ff9d8.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/2ed0ff8be47eb552.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/2ed92e7bad47d978.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/32121fb576c45aed.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/343b62eb3f7a52d3.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/345157c66408a841.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/35384116e5208ee7.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/3700cf1bc5fbe6a9.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/371dad8bd2a4e103.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/378ead037f8ba0b9.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/378f5178404a17b3.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/37bf88ed0b3205fd.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/38dbae36d6f64215.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/3a271f255035b6d7.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/3b88e6cef8d88a54.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/3c57869ed5ceacd3.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/3c82e4f79e74ccee.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/3ca750d36bba20c2.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/3cf5784a5df0c1ac.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/3d5c3c3536611aa8.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/41a4f7ad5cf70285.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/42dede0524864742.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/43e6ae28da88b5b0.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/4520d0ba2af790b6.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/45c93390fd241526.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/473d6795bd3dd4b4.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/478e4f68135b3ef1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/47d3a19cc2042b3c.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/482b30f0ddae15ae.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/4880532085f23e54.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/48ca9259e044310d.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/49961540dc409cbd.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/4b06625bf947efb0.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/4c328fc20034cc57.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/4d101b6daeea9efd.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/4e10df3ca4861296.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/4e1a1d1a75004118.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/4fc5c2de0aa0aca0.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/500912330c4f8f96.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/5068e8a7c17bfc63.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/50c071b2060d149f.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/522c2a523ad4c3e3.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/52b22a4170704754.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/531f7490ee796b39.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/555ee869a813b980.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/55c3ed28351788a4.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/56c6c8fa591806c5.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/57a218a0fc1dbbb0.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/58ec5c19fd2d039d.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/59f3704bfa1ce36c.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/5e03779d23d4cfb0.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/5e1ab312f4e19acd.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/5ff63af37343fea5.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/61d0b03723e01a7c.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/61d3a1fe471596b9.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/6300b6f6d16c5ec3.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/6356d51cb7af94a4.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/639f8f3fb49c601e.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/63d0a786e2affc3f.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/694ddfa0ee04b4e8.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/696ce79d8d597778.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/6e12a55ff672bfd0.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/6e32f48fefbbbede.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/6e66fef001acdf84.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/6f0cfc15aa53ecb5.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/704bf8c666f9e53f.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/70f2132b4b30d9f4.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/720277d7535677fa.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/721a4855191022e2.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/72790756b1612201.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/72d1f6f7252072cf.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/75e1448d5bfa90e7.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/76b1dce08831b6f3.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/774fe17f320772d1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/77c86503be60062d.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/78b6e2101afd2749.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/7914ac13a4f614cb.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/7952304f3e4b879d.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/7ac2319ee97edc16.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/7ad834e7eb1cf434.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/7b14e52c82558257.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/7c36ba06d9e4eb30.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/7d5164221117c7a4.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/7e9f9e5400097de6.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/7ed0439532266fb1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/7f2c2e0f9979fbb1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/7f3fa30670f24d88.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/80ab941d9fcf80d7.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/819ce6264e0883ac.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/84255d7be077dff8.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/8426f2fd3a6efd0a.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/84ab054d5682f08c.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/85227e238ea29ab4.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/85b1d09c0b6e37b7.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/860a101284cadb63.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/8666091d0cbe78c1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/86cdb6979822c14e.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/872676761970fc14.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/8943a1cb93b53c14.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/89a40bd7cda83705.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/8a2da8aecaba1e78.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/8bc3f32dce81a26b.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/8ca4432e1e5d6d8e.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/8d088fb012ab56e9.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/8e29a112da8a44f1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/8eeec51dc000c75b.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/8f3856479799b76b.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/900c3bb650e6ba32.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/918c43b8c6821992.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/92f923eabe0abc68.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/94078d1a52fd8ba8.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/947b7af316ca192f.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/952dc76bb0535502.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/9639c3a761341e1a.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/9819e9b9f75ed550.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/982bf63f3a15dbec.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/9872aedb4caea05d.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/9898aba7144a4867.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/98d67f512c2a6f85.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/98e214a54b446303.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/9ad17f0c32de2372.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/9badf91f906ea20d.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/9baed7f84b66a10a.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/9bee003523d6dde4.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/9bf413825fc29f8f.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/9db0135a206239b0.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/9f29566c0be78d19.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/9ffc4017c3f39454.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/a1793f3d6f818ada.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/a1ac8b544a45673f.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/a3152e49d6b91df8.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/a3330e8bd87e75b3.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/a46adbe0866b4f50.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/a4e97e843808e337.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/a5b634bdd3eb03d9.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/a5f6b3f09644232d.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/a63a6ce9d58f1c53.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/a70b2210366c6124.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/a7f29e2dcda4e8c2.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/a9d94d2f3680f588.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/aa2d4f683efbf6c0.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/aa6a791df8ab914e.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/abd1cdee8649f63f.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ac135990df27ef84.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ac5164ca58e1c076.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ac5b7970f1eb172c.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ad659d2c1cca8ad8.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ada5b9f0076e93b2.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ae39a3934617ba8a.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ae70c040bd645184.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/b0ddd26f5dd753d7.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/b0eb02ac2a3bcde1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/b1049c05a94ffeb5.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/b2984fa59f40fd09.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/b2e830ac7ba2195c.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/b370bc15d48a81fd.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/b424ea40cc6f76b1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/b5a63cd718db5b94.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/b61d262cb7b3d8a3.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/b64e4db2db3f845b.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/bacf8341fedffcca.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/bd1cd73503e8f498.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/bd2be7f59789d6a5.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/bda724dde140e142.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/bed5b0f75ea3fdf1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/bf1541781679c49f.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/c06b75731476f374.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/c0fccac74d002507.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/c15f1fdcd4df34f7.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/c514070af29e7e40.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/c733ad8f144911bf.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/c7497c5ab48be082.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/c828c1ebec07840f.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/c853bdafe1561f87.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/c8edf4367fe44457.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/c91f5b6e57b7d854.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/c95d768acd0a6557.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/cad60b925a39332e.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/cccce85813ee08f7.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/cf5d541f91bf2ef5.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/d10f45a994eebb91.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/d19b9628459e7cab.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/d230bf02fb475b47.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/d26b6439742fedf6.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/d3e572827ba0ea3c.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/d58e353a6b1b3064.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/d5a352d948bb8d3d.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/d741a5b650472b6b.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/d780bd279d68f22f.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/d7d20580a8767e7a.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/dc961d2355a41eb1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/dca4eb1623c40036.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/dd553484f726b4ca.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/de219c27dc4ada1b.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/de30f17241cf33da.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/de7ed0dd55447c20.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/dfd3fbc9eb837ab8.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/e02f049ed358918e.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/e0cca04f3d06a6e8.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/e102d0d993ca8dd4.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/e201ee06bad8063a.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/e22e7eebc908b00d.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/e32b6e7f2ed18d66.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/e525567937cf9853.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/e670d9b7834fe48d.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/e6919a85f59374ff.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/e6cf4cb75779296a.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/e846843347a59ab1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/e8ef44d8620e9c69.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/eac7806682b74ff1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/eba62857582d4c0a.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ebc4e01f6cb28088.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ebd0e66ed0794ce6.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ebf47df371580685.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ec20ee99ca7aa203.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ec32a846bf02be62.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ed62010e049cddca.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/eff4d61f5015c709.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/eff8f0a1d27bef19.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/efff5ec656c449b4.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/f022f6633a2fa31a.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/f03d979bfb303a74.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/f1d78a04d3b14b62.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/f1f475348625c93f.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/f2495f11120f68dd.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/f3e3b3a5165a5f5d.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/f46e0ae8c885ae50.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/f494b30f193ca5da.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/f4f802d2bfffa86e.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/f711b9992da9c363.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/f810d38830794790.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/f91346f33cbb1c66.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/f9201834a2fff34d.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/fa6e1713b18c0dc1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/fc59352b42e22266.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/fcba4592f339db6e.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/fdd2932239f195be.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/fe2fd88635eb7ede.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/feba6e5b80aa2b32.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ff5e0454f71fb45c.json +0 -1
- package/.angular/cache/20.1.0/ng-packagr/edf767c561f9d035522773ac2f5e224ff75e3296ee2908a27a8f98705f380801 +0 -1
- package/.angular/cache/20.1.0/ng-packagr/tsbuildinfo/angular-datatables.tsbuildinfo +0 -1
- package/LICENSE +0 -21
- package/README.md +0 -30
- package/angular.json +0 -213
- package/dist/lib/fesm2022/angular-datatables.mjs.map +0 -1
- package/lib/ng-package.prod.json +0 -9
- package/lib/package.json +0 -35
- package/lib/schematics/src/collection.json +0 -11
- package/lib/schematics/src/ng-add/schema.json +0 -41
- package/lib/tsconfig.lib.json +0 -18
- package/lib/tsconfig.lib.prod.json +0 -12
- /package/{dist/lib/index.d.ts → index.d.ts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"export const config = {\n onUnhandledError: null,\n onStoppedNotification: null,\n Promise: undefined,\n useDeprecatedSynchronousErrorHandling: false,\n useDeprecatedNextContext: false\n};\n//# sourceMappingURL=config.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"/**\n * @license Angular v20.1.0\n * (c) 2010-2025 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 * If set, called after a producer `ReactiveNode` is created.\n */\nlet postProducerCreatedFn = null;\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 kind: 'unknown',\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 producerMarkClean(node);\n return;\n }\n node.producerRecomputeValue(node);\n // After recomputing the value, we're no longer dirty.\n producerMarkClean(node);\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}\nfunction producerMarkClean(node) {\n node.dirty = false;\n node.lastCleanEpoch = epoch;\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 if (node.liveConsumerNode.length === 0 && isConsumerNode(node)) {\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 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 && isConsumerNode(node)) {\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}\nfunction isConsumerNode(node) {\n return node.producerNode !== undefined;\n}\nfunction runPostProducerCreatedFn(node) {\n postProducerCreatedFn?.(node);\n}\nfunction setPostProducerCreatedFn(fn) {\n const prev = postProducerCreatedFn;\n postProducerCreatedFn = fn;\n return prev;\n}\n\n/**\n * Create a computed signal which derives a reactive value from an expression.\n */\nfunction createComputed(computation, equal) {\n const node = Object.create(COMPUTED_NODE);\n node.computation = computation;\n if (equal !== undefined) {\n node.equal = equal;\n }\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 if (typeof ngDevMode !== 'undefined' && ngDevMode) {\n const debugName = node.debugName ? ' (' + node.debugName + ')' : '';\n computed.toString = () => `[Computed${debugName}: ${node.value}]`;\n }\n runPostProducerCreatedFn(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 kind: 'computed',\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(typeof ngDevMode !== 'undefined' && ngDevMode ? 'Detected cycle in computations.' : '');\n }\n const oldValue = node.value;\n node.value = COMPUTING;\n const prevConsumer = consumerBeforeComputation(node);\n let newValue;\n let wasEqual = false;\n try {\n newValue = node.computation();\n // We want to mark this node as errored if calling `equal` throws; however, we don't want\n // to track any reactive reads inside `equal`.\n setActiveConsumer(null);\n wasEqual = oldValue !== UNSET && oldValue !== ERRORED && newValue !== ERRORED && node.equal(oldValue, newValue);\n } catch (err) {\n newValue = ERRORED;\n node.error = err;\n } finally {\n consumerAfterComputation(node, prevConsumer);\n }\n if (wasEqual) {\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(node) {\n throwInvalidWriteToSignalErrorFn(node);\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 * Creates a `Signal` getter, setter, and updater function.\n */\nfunction createSignal(initialValue, equal) {\n const node = Object.create(SIGNAL_NODE);\n node.value = initialValue;\n if (equal !== undefined) {\n node.equal = equal;\n }\n const getter = () => signalGetFn(node);\n getter[SIGNAL] = node;\n if (typeof ngDevMode !== 'undefined' && ngDevMode) {\n const debugName = node.debugName ? ' (' + node.debugName + ')' : '';\n getter.toString = () => `[Signal${debugName}: ${node.value}]`;\n }\n runPostProducerCreatedFn(node);\n const set = newValue => signalSetFn(node, newValue);\n const update = updateFn => signalUpdateFn(node, updateFn);\n return [getter, set, update];\n}\nfunction setPostSignalSetFn(fn) {\n const prev = postSignalSetFn;\n postSignalSetFn = fn;\n return prev;\n}\nfunction signalGetFn(node) {\n producerAccessed(node);\n return node.value;\n}\nfunction signalSetFn(node, newValue) {\n if (!producerUpdatesAllowed()) {\n throwInvalidWriteToSignalError(node);\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(node);\n }\n signalSetFn(node, updater(node.value));\n}\nfunction runPostSignalSetFn(node) {\n postSignalSetFn?.(node);\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 kind: 'signal'\n };\n})();\nfunction signalValueChanged(node) {\n node.version++;\n producerIncrementEpoch();\n producerNotifyConsumers(node);\n postSignalSetFn?.(node);\n}\nexport { COMPUTING, ERRORED, REACTIVE_NODE, SIGNAL, SIGNAL_NODE, UNSET, consumerAfterComputation, consumerBeforeComputation, consumerDestroy, consumerMarkDirty, consumerPollProducersForChange, createComputed, createSignal, defaultEquals, getActiveConsumer, isInNotificationPhase, isReactive, producerAccessed, producerIncrementEpoch, producerMarkClean, producerNotifyConsumers, producerUpdateValueVersion, producerUpdatesAllowed, runPostProducerCreatedFn, runPostSignalSetFn, setActiveConsumer, setPostProducerCreatedFn, setPostSignalSetFn, setThrowInvalidWriteToSignalError, signalGetFn, signalSetFn, signalUpdateFn };\n//# sourceMappingURL=signal.mjs.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { asyncScheduler } from '../scheduler/async';\nimport { defaultThrottleConfig, throttle } from './throttle';\nimport { timer } from '../observable/timer';\nexport function throttleTime(duration, scheduler = asyncScheduler, config = defaultThrottleConfig) {\n const duration$ = timer(duration, scheduler);\n return throttle(() => duration$, config);\n}\n//# sourceMappingURL=throttleTime.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"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//# sourceMappingURL=isAsyncIterable.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { TemplateRef } from '@angular/core';\nimport { Subject } from 'rxjs';\nimport * as i0 from \"@angular/core\";\nconst _c0 = [\"demoNg\"];\nfunction UsingNgTemplateRefComponent_ng_template_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"blockquote\");\n i0.ɵɵtext(1, \"Please click on Action button\");\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(2, \"p\", 3);\n i0.ɵɵtext(3, \"You clicked on: \");\n i0.ɵɵelementStart(4, \"strong\");\n i0.ɵɵtext(5);\n i0.ɵɵelementEnd()();\n i0.ɵɵelement(6, \"br\")(7, \"table\", 4);\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵadvance(5);\n i0.ɵɵtextInterpolate(ctx_r0.message);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"dtOptions\", ctx_r0.dtOptions)(\"dtTrigger\", ctx_r0.dtTrigger);\n }\n}\nfunction UsingNgTemplateRefComponent_ng_template_3_Template(rf, ctx) {\n if (rf & 1) {\n const _r2 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"app-demo-ng-template-ref\", 5);\n i0.ɵɵlistener(\"emitter\", function UsingNgTemplateRefComponent_ng_template_3_Template_app_demo_ng_template_ref_emitter_0_listener($event) {\n const emitter_r3 = i0.ɵɵrestoreView(_r2).captureEvents;\n return i0.ɵɵresetView(emitter_r3($event));\n });\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const data_r4 = ctx.adtData;\n i0.ɵɵproperty(\"data\", data_r4);\n }\n}\nexport let UsingNgTemplateRefComponent = /*#__PURE__*/(() => {\n class UsingNgTemplateRefComponent {\n constructor() {\n this.pageTitle = 'Using Angular TemplateRef';\n this.mdIntro = 'assets/docs/advanced/using-ng-template-ref/intro.md';\n this.mdHTML = 'assets/docs/advanced/using-ng-template-ref/source-html.md';\n this.mdTS = 'assets/docs/advanced/using-ng-template-ref/source-ts.md';\n this.dtOptions = {};\n this.dtTrigger = new Subject();\n this.message = '';\n }\n ngOnInit() {\n // use setTimeout as a hack to ensure the `demoNg` is usable in the datatables rowCallback function\n setTimeout(() => {\n const self = this;\n this.dtOptions = {\n ajax: 'data/data.json',\n columns: [{\n title: 'ID',\n data: 'id'\n }, {\n title: 'First name',\n data: 'firstName'\n }, {\n title: 'Last name',\n data: 'lastName'\n }, {\n title: 'Actions',\n data: null,\n defaultContent: '',\n ngTemplateRef: {\n ref: this.demoNg,\n context: {\n // needed for capturing events inside <ng-template>\n captureEvents: self.onCaptureEvent.bind(self)\n }\n }\n }]\n };\n });\n }\n ngAfterViewInit() {\n setTimeout(() => {\n // race condition fails unit tests if dtOptions isn't sent with dtTrigger\n this.dtTrigger.next(this.dtOptions);\n }, 200);\n }\n onCaptureEvent(event) {\n this.message = `Event '${event.cmd}' with data '${JSON.stringify(event.data)}`;\n }\n ngOnDestroy() {\n // Do not forget to unsubscribe the event\n this.dtTrigger.unsubscribe();\n }\n static #_ = this.ɵfac = function UsingNgTemplateRefComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || UsingNgTemplateRefComponent)();\n };\n static #_2 = this.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n type: UsingNgTemplateRefComponent,\n selectors: [[\"app-using-ng-template-ref\"]],\n viewQuery: function UsingNgTemplateRefComponent_Query(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵviewQuery(_c0, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.demoNg = _t.first);\n }\n },\n standalone: false,\n decls: 5,\n vars: 5,\n consts: [[\"preview\", \"\"], [\"demoNg\", \"\"], [3, \"pageTitle\", \"mdIntro\", \"mdHTML\", \"mdTSV1\", \"template\"], [1, \"text-danger\"], [\"datatable\", \"\", 1, \"row-border\", \"hover\", 3, \"dtOptions\", \"dtTrigger\"], [3, \"emitter\", \"data\"]],\n template: function UsingNgTemplateRefComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, UsingNgTemplateRefComponent_ng_template_0_Template, 8, 3, \"ng-template\", null, 0, i0.ɵɵtemplateRefExtractor);\n i0.ɵɵelement(2, \"app-base-demo\", 2);\n i0.ɵɵtemplate(3, UsingNgTemplateRefComponent_ng_template_3_Template, 1, 1, \"ng-template\", null, 1, i0.ɵɵtemplateRefExtractor);\n }\n if (rf & 2) {\n const preview_r5 = i0.ɵɵreference(1);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"pageTitle\", ctx.pageTitle)(\"mdIntro\", ctx.mdIntro)(\"mdHTML\", ctx.mdHTML)(\"mdTSV1\", ctx.mdTS)(\"template\", preview_r5);\n }\n },\n encapsulation: 2\n });\n }\n return UsingNgTemplateRefComponent;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { AsyncAction } from './AsyncAction';\nexport class QueueAction extends AsyncAction {\n constructor(scheduler, work) {\n super(scheduler, work);\n this.scheduler = scheduler;\n this.work = work;\n }\n schedule(state, delay = 0) {\n if (delay > 0) {\n return super.schedule(state, delay);\n }\n this.delay = delay;\n this.state = state;\n this.scheduler.flush(this);\n return this;\n }\n execute(state, delay) {\n return delay > 0 || this.closed ? super.execute(state, delay) : this._execute(state, delay);\n }\n requestAsyncId(scheduler, id, delay = 0) {\n if (delay != null && delay > 0 || delay == null && this.delay > 0) {\n return super.requestAsyncId(scheduler, id, delay);\n }\n return scheduler.flush(this);\n }\n}\n//# sourceMappingURL=QueueAction.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { innerFrom } from '../observable/innerFrom';\nimport { executeSchedule } from '../util/executeSchedule';\nimport { OperatorSubscriber } from './OperatorSubscriber';\nexport function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalTeardown) {\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(new OperatorSubscriber(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(new OperatorSubscriber(subscriber, outerNext, () => {\n isComplete = true;\n checkComplete();\n }));\n return () => {\n additionalTeardown === null || additionalTeardown === void 0 ? void 0 : additionalTeardown();\n };\n}\n//# sourceMappingURL=mergeInternals.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { operate } from '../util/lift';\nimport { createFind } from './find';\nexport function findIndex(predicate, thisArg) {\n return operate(createFind(predicate, thisArg, 'index'));\n}\n//# sourceMappingURL=findIndex.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import _asyncToGenerator from \"/Applications/XAMPP/xamppfiles/htdocs/bungemtandao/angular-datatables/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\n/**\n * @license Angular v20.1.0\n * (c) 2010-2025 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport { inject, ErrorHandler, DestroyRef, RuntimeError, formatRuntimeError, assertNotInReactiveContext, assertInInjectionContext, Injector, ViewContext, ChangeDetectionScheduler, EffectScheduler, setInjectorProfilerContext, emitEffectCreatedEvent, EFFECTS, NodeInjectorDestroyRef, FLAGS, markAncestorsForTraversal, noop, setIsRefreshingViews, signalAsReadonlyFn, PendingTasks, signal } from './root_effect_scheduler.mjs';\nimport { setActiveConsumer, createComputed, SIGNAL, consumerDestroy, REACTIVE_NODE, isInNotificationPhase, consumerPollProducersForChange, consumerBeforeComputation, consumerAfterComputation } from './signal.mjs';\nimport { untracked as untracked$1, createLinkedSignal, linkedSignalSetFn, linkedSignalUpdateFn } from './untracked.mjs';\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 * @publicAPI\n */\nclass OutputEmitterRef {\n destroyed = false;\n listeners = null;\n errorHandler = /*#__PURE__*/inject(ErrorHandler, {\n optional: true\n });\n /** @internal */\n destroyRef = /*#__PURE__*/inject(DestroyRef);\n constructor() {\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 console.warn(formatRuntimeError(953 /* RuntimeErrorCode.OUTPUT_REF_DESTROYED */, ngDevMode && 'Unexpected emit for destroyed `OutputRef`. ' + 'The owning directive/component is destroyed.'));\n return;\n }\n if (this.listeners === null) {\n return;\n }\n const previousConsumer = setActiveConsumer(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(previousConsumer);\n }\n }\n}\n/** Gets the owning `DestroyRef` for the given output. */\nfunction getOutputDestroyRef(ref) {\n return ref.destroyRef;\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 return untracked$1(nonReactiveReadsFn);\n}\n\n/**\n * Create a computed `Signal` which derives a reactive value from an expression.\n */\nfunction computed(computation, options) {\n const getter = createComputed(computation, options?.equal);\n if (ngDevMode) {\n getter.toString = () => `[Computed: ${getter()}]`;\n getter[SIGNAL].debugName = options?.debugName;\n }\n return getter;\n}\nclass EffectRefImpl {\n [SIGNAL];\n constructor(node) {\n this[SIGNAL] = node;\n }\n destroy() {\n this[SIGNAL].destroy();\n }\n}\n/**\n * Registers an \"effect\" that will be scheduled & executed whenever the signals that it reads\n * changes.\n *\n * Angular has two different kinds of effect: component effects and root effects. Component effects\n * are created when `effect()` is called from a component, directive, or within a service of a\n * component/directive. Root effects are created when `effect()` is called from outside the\n * component tree, such as in a root service.\n *\n * The two effect types differ in their timing. Component effects run as a component lifecycle\n * event during Angular's synchronization (change detection) process, and can safely read input\n * signals or create/destroy views that depend on component state. Root effects run as microtasks\n * and have no connection to the component tree or change detection.\n *\n * `effect()` must be run in injection context, unless the `injector` option is manually specified.\n *\n * @publicApi 20.0\n */\nfunction effect(effectFn, options) {\n ngDevMode && assertNotInReactiveContext(effect, 'Call `effect` outside of a reactive context. For example, schedule the ' + 'effect inside the component constructor.');\n if (ngDevMode && !options?.injector) {\n assertInInjectionContext(effect);\n }\n if (ngDevMode && options?.allowSignalWrites !== undefined) {\n console.warn(`The 'allowSignalWrites' flag is deprecated and no longer impacts effect() (writes are always allowed)`);\n }\n const injector = options?.injector ?? inject(Injector);\n let destroyRef = options?.manualCleanup !== true ? injector.get(DestroyRef) : null;\n let node;\n const viewContext = injector.get(ViewContext, null, {\n optional: true\n });\n const notifier = injector.get(ChangeDetectionScheduler);\n if (viewContext !== null) {\n // This effect was created in the context of a view, and will be associated with the view.\n node = createViewEffect(viewContext.view, notifier, effectFn);\n if (destroyRef instanceof NodeInjectorDestroyRef && destroyRef._lView === viewContext.view) {\n // The effect is being created in the same view as the `DestroyRef` references, so it will be\n // automatically destroyed without the need for an explicit `DestroyRef` registration.\n destroyRef = null;\n }\n } else {\n // This effect was created outside the context of a view, and will be scheduled independently.\n node = createRootEffect(effectFn, injector.get(EffectScheduler), notifier);\n }\n node.injector = injector;\n if (destroyRef !== null) {\n // If we need to register for cleanup, do that here.\n node.onDestroyFn = destroyRef.onDestroy(() => node.destroy());\n }\n const effectRef = new EffectRefImpl(node);\n if (ngDevMode) {\n node.debugName = options?.debugName ?? '';\n const prevInjectorProfilerContext = setInjectorProfilerContext({\n injector,\n token: null\n });\n try {\n emitEffectCreatedEvent(effectRef);\n } finally {\n setInjectorProfilerContext(prevInjectorProfilerContext);\n }\n }\n return effectRef;\n}\nconst BASE_EFFECT_NODE = /* @__PURE__ */(() => ({\n ...REACTIVE_NODE,\n consumerIsAlwaysLive: true,\n consumerAllowSignalWrites: true,\n dirty: true,\n hasRun: false,\n cleanupFns: undefined,\n zone: null,\n kind: 'effect',\n onDestroyFn: noop,\n run() {\n this.dirty = false;\n if (ngDevMode && isInNotificationPhase()) {\n throw new Error(`Schedulers cannot synchronously execute watches while scheduling.`);\n }\n if (this.hasRun && !consumerPollProducersForChange(this)) {\n return;\n }\n this.hasRun = true;\n const registerCleanupFn = cleanupFn => (this.cleanupFns ??= []).push(cleanupFn);\n const prevNode = consumerBeforeComputation(this);\n // We clear `setIsRefreshingViews` so that `markForCheck()` within the body of an effect will\n // cause CD to reach the component in question.\n const prevRefreshingViews = setIsRefreshingViews(false);\n try {\n this.maybeCleanup();\n this.fn(registerCleanupFn);\n } finally {\n setIsRefreshingViews(prevRefreshingViews);\n consumerAfterComputation(this, prevNode);\n }\n },\n maybeCleanup() {\n if (!this.cleanupFns?.length) {\n return;\n }\n const prevConsumer = setActiveConsumer(null);\n try {\n // Attempt to run the cleanup functions. Regardless of failure or success, we consider\n // cleanup \"completed\" and clear the list for the next run of the effect. Note that an error\n // from the cleanup function will still crash the current run of the effect.\n while (this.cleanupFns.length) {\n this.cleanupFns.pop()();\n }\n } finally {\n this.cleanupFns = [];\n setActiveConsumer(prevConsumer);\n }\n }\n}))();\nconst ROOT_EFFECT_NODE = /* @__PURE__ */(() => ({\n ...BASE_EFFECT_NODE,\n consumerMarkedDirty() {\n this.scheduler.schedule(this);\n this.notifier.notify(12 /* NotificationSource.RootEffect */);\n },\n destroy() {\n consumerDestroy(this);\n this.onDestroyFn();\n this.maybeCleanup();\n this.scheduler.remove(this);\n }\n}))();\nconst VIEW_EFFECT_NODE = /* @__PURE__ */(() => ({\n ...BASE_EFFECT_NODE,\n consumerMarkedDirty() {\n this.view[FLAGS] |= 8192 /* LViewFlags.HasChildViewsToRefresh */;\n markAncestorsForTraversal(this.view);\n this.notifier.notify(13 /* NotificationSource.ViewEffect */);\n },\n destroy() {\n consumerDestroy(this);\n this.onDestroyFn();\n this.maybeCleanup();\n this.view[EFFECTS]?.delete(this);\n }\n}))();\nfunction createViewEffect(view, notifier, fn) {\n const node = Object.create(VIEW_EFFECT_NODE);\n node.view = view;\n node.zone = typeof Zone !== 'undefined' ? Zone.current : null;\n node.notifier = notifier;\n node.fn = fn;\n view[EFFECTS] ??= new Set();\n view[EFFECTS].add(node);\n node.consumerMarkedDirty(node);\n return node;\n}\nfunction createRootEffect(fn, scheduler, notifier) {\n const node = Object.create(ROOT_EFFECT_NODE);\n node.fn = fn;\n node.scheduler = scheduler;\n node.notifier = notifier;\n node.zone = typeof Zone !== 'undefined' ? Zone.current : null;\n node.scheduler.add(node);\n node.notifier.notify(12 /* NotificationSource.RootEffect */);\n return node;\n}\nconst identityFn = v => v;\nfunction linkedSignal(optionsOrComputation, options) {\n if (typeof optionsOrComputation === 'function') {\n const getter = createLinkedSignal(optionsOrComputation, identityFn, options?.equal);\n return upgradeLinkedSignalGetter(getter);\n } else {\n const getter = createLinkedSignal(optionsOrComputation.source, optionsOrComputation.computation, optionsOrComputation.equal);\n return upgradeLinkedSignalGetter(getter);\n }\n}\nfunction upgradeLinkedSignalGetter(getter) {\n if (ngDevMode) {\n getter.toString = () => `[LinkedSignal: ${getter()}]`;\n }\n const node = getter[SIGNAL];\n const upgradedGetter = getter;\n upgradedGetter.set = newValue => linkedSignalSetFn(node, newValue);\n upgradedGetter.update = updateFn => linkedSignalUpdateFn(node, updateFn);\n upgradedGetter.asReadonly = signalAsReadonlyFn.bind(getter);\n return upgradedGetter;\n}\n\n/**\n * Whether a `Resource.value()` should throw an error when the resource is in the error state.\n *\n * This internal flag is being used to gradually roll out this behavior.\n */\nconst RESOURCE_VALUE_THROWS_ERRORS_DEFAULT = true;\nfunction resource(options) {\n if (ngDevMode && !options?.injector) {\n assertInInjectionContext(resource);\n }\n const oldNameForParams = options.request;\n const params = options.params ?? oldNameForParams ?? (() => null);\n return new ResourceImpl(params, getLoader(options), options.defaultValue, options.equal ? wrapEqualityFn(options.equal) : undefined, options.injector ?? inject(Injector), RESOURCE_VALUE_THROWS_ERRORS_DEFAULT);\n}\n/**\n * Base class which implements `.value` as a `WritableSignal` by delegating `.set` and `.update`.\n */\nclass BaseWritableResource {\n value;\n constructor(value) {\n this.value = value;\n this.value.set = this.set.bind(this);\n this.value.update = this.update.bind(this);\n this.value.asReadonly = signalAsReadonlyFn;\n }\n isError = /*#__PURE__*/computed(() => this.status() === 'error');\n update(updateFn) {\n this.set(updateFn(untracked(this.value)));\n }\n isLoading = /*#__PURE__*/computed(() => this.status() === 'loading' || this.status() === 'reloading');\n hasValue() {\n // Note: we specifically read `isError()` instead of `status()` here to avoid triggering\n // reactive consumers which read `hasValue()`. This way, if `hasValue()` is used inside of an\n // effect, it doesn't cause the effect to rerun on every status change.\n if (this.isError()) {\n return false;\n }\n return this.value() !== undefined;\n }\n asReadonly() {\n return this;\n }\n}\n/**\n * Implementation for `resource()` which uses a `linkedSignal` to manage the resource's state.\n */\nclass ResourceImpl extends BaseWritableResource {\n loaderFn;\n equal;\n pendingTasks;\n /**\n * The current state of the resource. Status, value, and error are derived from this.\n */\n state;\n /**\n * Combines the current request with a reload counter which allows the resource to be reloaded on\n * imperative command.\n */\n extRequest;\n effectRef;\n pendingController;\n resolvePendingTask = undefined;\n destroyed = false;\n unregisterOnDestroy;\n constructor(request, loaderFn, defaultValue, equal, injector, throwErrorsFromValue = RESOURCE_VALUE_THROWS_ERRORS_DEFAULT) {\n super(\n // Feed a computed signal for the value to `BaseWritableResource`, which will upgrade it to a\n // `WritableSignal` that delegates to `ResourceImpl.set`.\n computed(() => {\n const streamValue = this.state().stream?.();\n if (!streamValue) {\n return defaultValue;\n }\n // Prevents `hasValue()` from throwing an error when a reload happened in the error state\n if (this.state().status === 'loading' && this.error()) {\n return defaultValue;\n }\n if (!isResolved(streamValue)) {\n if (throwErrorsFromValue) {\n throw new ResourceValueError(this.error());\n } else {\n return defaultValue;\n }\n }\n return streamValue.value;\n }, {\n equal\n }));\n this.loaderFn = loaderFn;\n this.equal = equal;\n // Extend `request()` to include a writable reload signal.\n this.extRequest = linkedSignal({\n source: request,\n computation: request => ({\n request,\n reload: 0\n })\n });\n // The main resource state is managed in a `linkedSignal`, which allows the resource to change\n // state instantaneously when the request signal changes.\n this.state = linkedSignal({\n // Whenever the request changes,\n source: this.extRequest,\n // Compute the state of the resource given a change in status.\n computation: (extRequest, previous) => {\n const status = extRequest.request === undefined ? 'idle' : 'loading';\n if (!previous) {\n return {\n extRequest,\n status,\n previousStatus: 'idle',\n stream: undefined\n };\n } else {\n return {\n extRequest,\n status,\n previousStatus: projectStatusOfState(previous.value),\n // If the request hasn't changed, keep the previous stream.\n stream: previous.value.extRequest.request === extRequest.request ? previous.value.stream : undefined\n };\n }\n }\n });\n this.effectRef = effect(this.loadEffect.bind(this), {\n injector,\n manualCleanup: true\n });\n this.pendingTasks = injector.get(PendingTasks);\n // Cancel any pending request when the resource itself is destroyed.\n this.unregisterOnDestroy = injector.get(DestroyRef).onDestroy(() => this.destroy());\n }\n status = /*#__PURE__*/computed(() => projectStatusOfState(this.state()));\n error = /*#__PURE__*/computed(() => {\n const stream = this.state().stream?.();\n return stream && !isResolved(stream) ? stream.error : undefined;\n });\n /**\n * Called either directly via `WritableResource.set` or via `.value.set()`.\n */\n set(value) {\n if (this.destroyed) {\n return;\n }\n const error = untracked(this.error);\n const state = untracked(this.state);\n if (!error) {\n const current = untracked(this.value);\n if (state.status === 'local' && (this.equal ? this.equal(current, value) : current === value)) {\n return;\n }\n }\n // Enter Local state with the user-defined value.\n this.state.set({\n extRequest: state.extRequest,\n status: 'local',\n previousStatus: 'local',\n stream: signal({\n value\n })\n });\n // We're departing from whatever state the resource was in previously, so cancel any in-progress\n // loading operations.\n this.abortInProgressLoad();\n }\n reload() {\n // We don't want to restart in-progress loads.\n const {\n status\n } = untracked(this.state);\n if (status === 'idle' || status === 'loading') {\n return false;\n }\n // Increment the request reload to trigger the `state` linked signal to switch us to `Reload`\n this.extRequest.update(({\n request,\n reload\n }) => ({\n request,\n reload: reload + 1\n }));\n return true;\n }\n destroy() {\n this.destroyed = true;\n this.unregisterOnDestroy();\n this.effectRef.destroy();\n this.abortInProgressLoad();\n // Destroyed resources enter Idle state.\n this.state.set({\n extRequest: {\n request: undefined,\n reload: 0\n },\n status: 'idle',\n previousStatus: 'idle',\n stream: undefined\n });\n }\n loadEffect() {\n var _this = this;\n return _asyncToGenerator(function* () {\n const extRequest = _this.extRequest();\n // Capture the previous status before any state transitions. Note that this is `untracked` since\n // we do not want the effect to depend on the state of the resource, only on the request.\n const {\n status: currentStatus,\n previousStatus\n } = untracked(_this.state);\n if (extRequest.request === undefined) {\n // Nothing to load (and we should already be in a non-loading state).\n return;\n } else if (currentStatus !== 'loading') {\n // We're not in a loading or reloading state, so this loading request is stale.\n return;\n }\n // Cancel any previous loading attempts.\n _this.abortInProgressLoad();\n // Capturing _this_ load's pending task in a local variable is important here. We may attempt to\n // resolve it twice:\n //\n // 1. when the loading function promise resolves/rejects\n // 2. when cancelling the loading operation\n //\n // After the loading operation is cancelled, `this.resolvePendingTask` no longer represents this\n // particular task, but this `await` may eventually resolve/reject. Thus, when we cancel in\n // response to (1) below, we need to cancel the locally saved task.\n let resolvePendingTask = _this.resolvePendingTask = _this.pendingTasks.add();\n const {\n signal: abortSignal\n } = _this.pendingController = new AbortController();\n try {\n // The actual loading is run through `untracked` - only the request side of `resource` is\n // reactive. This avoids any confusion with signals tracking or not tracking depending on\n // which side of the `await` they are.\n const stream = yield untracked(() => {\n return _this.loaderFn({\n params: extRequest.request,\n // TODO(alxhub): cleanup after g3 removal of `request` alias.\n request: extRequest.request,\n abortSignal,\n previous: {\n status: previousStatus\n }\n });\n });\n // If this request has been aborted, or the current request no longer\n // matches this load, then we should ignore this resolution.\n if (abortSignal.aborted || untracked(_this.extRequest) !== extRequest) {\n return;\n }\n _this.state.set({\n extRequest,\n status: 'resolved',\n previousStatus: 'resolved',\n stream\n });\n } catch (err) {\n if (abortSignal.aborted || untracked(_this.extRequest) !== extRequest) {\n return;\n }\n _this.state.set({\n extRequest,\n status: 'resolved',\n previousStatus: 'error',\n stream: signal({\n error: encapsulateResourceError(err)\n })\n });\n } finally {\n // Resolve the pending task now that the resource has a value.\n resolvePendingTask?.();\n resolvePendingTask = undefined;\n }\n })();\n }\n abortInProgressLoad() {\n untracked(() => this.pendingController?.abort());\n this.pendingController = undefined;\n // Once the load is aborted, we no longer want to block stability on its resolution.\n this.resolvePendingTask?.();\n this.resolvePendingTask = undefined;\n }\n}\n/**\n * Wraps an equality function to handle either value being `undefined`.\n */\nfunction wrapEqualityFn(equal) {\n return (a, b) => a === undefined || b === undefined ? a === b : equal(a, b);\n}\nfunction getLoader(options) {\n if (isStreamingResourceOptions(options)) {\n return options.stream;\n }\n return /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(function* (params) {\n try {\n return signal({\n value: yield options.loader(params)\n });\n } catch (err) {\n return signal({\n error: encapsulateResourceError(err)\n });\n }\n });\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }();\n}\nfunction isStreamingResourceOptions(options) {\n return !!options.stream;\n}\n/**\n * Project from a state with `ResourceInternalStatus` to the user-facing `ResourceStatus`\n */\nfunction projectStatusOfState(state) {\n switch (state.status) {\n case 'loading':\n return state.extRequest.reload === 0 ? 'loading' : 'reloading';\n case 'resolved':\n return isResolved(state.stream()) ? 'resolved' : 'error';\n default:\n return state.status;\n }\n}\nfunction isResolved(state) {\n return state.error === undefined;\n}\nfunction encapsulateResourceError(error) {\n if (error instanceof Error) {\n return error;\n }\n return new ResourceWrappedError(error);\n}\nclass ResourceValueError extends Error {\n constructor(error) {\n super(ngDevMode ? `Resource is currently in an error state (see Error.cause for details): ${error.message}` : error.message, {\n cause: error\n });\n }\n}\nclass ResourceWrappedError extends Error {\n constructor(error) {\n super(ngDevMode ? `Resource returned an error that's not an Error instance: ${String(error)}. Check this error's .cause for the actual error.` : String(error), {\n cause: error\n });\n }\n}\nexport { OutputEmitterRef, ResourceImpl, computed, effect, encapsulateResourceError, getOutputDestroyRef, linkedSignal, resource, untracked };\n//# sourceMappingURL=resource.mjs.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import _asyncToGenerator from \"/Applications/XAMPP/xamppfiles/htdocs/bungemtandao/angular-datatables/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\n/**\n * @license Angular v20.1.0\n * (c) 2010-2025 Google LLC. https://angular.io/\n * License: MIT\n */\n\nexport { AsyncPipe, CommonModule, CurrencyPipe, DATE_PIPE_DEFAULT_OPTIONS, DATE_PIPE_DEFAULT_TIMEZONE, DatePipe, DecimalPipe, FormStyle, FormatWidth, HashLocationStrategy, I18nPluralPipe, I18nSelectPipe, JsonPipe, KeyValuePipe, LowerCasePipe, NgClass, NgComponentOutlet, NgForOf as NgFor, NgForOf, NgForOfContext, NgIf, NgIfContext, NgLocaleLocalization, NgLocalization, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, NumberFormatStyle, NumberSymbol, PercentPipe, Plural, SlicePipe, TitleCasePipe, TranslationWidth, UpperCasePipe, WeekDay, 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 } from './common_module.mjs';\nimport * as i0 from '@angular/core';\nimport { ɵregisterLocaleData as _registerLocaleData, Version, ɵɵdefineInjectable as __defineInjectable, inject, DOCUMENT, ɵformatRuntimeError as _formatRuntimeError, InjectionToken, ɵRuntimeError as _RuntimeError, Injectable, ɵIMAGE_CONFIG as _IMAGE_CONFIG, Renderer2, ElementRef, Injector, DestroyRef, ɵperformanceMarkFeature as _performanceMarkFeature, NgZone, ApplicationRef, numberAttribute, booleanAttribute, Directive, Input, ɵIMAGE_CONFIG_DEFAULTS as _IMAGE_CONFIG_DEFAULTS, ɵunwrapSafeValue as _unwrapSafeValue, ChangeDetectorRef } from '@angular/core';\nexport { DOCUMENT, ɵIMAGE_CONFIG as IMAGE_CONFIG } from '@angular/core';\nexport { XhrFactory, parseCookieValue as ɵparseCookieValue } from './xhr.mjs';\nexport { APP_BASE_HREF, BrowserPlatformLocation, LOCATION_INITIALIZED, Location, LocationStrategy, PathLocationStrategy, PlatformLocation, DomAdapter as ɵDomAdapter, getDOM as ɵgetDOM, normalizeQueryParams as ɵnormalizeQueryParams, setRootDomAdapter as ɵsetRootDomAdapter } from './location.mjs';\nexport { PlatformNavigation as ɵPlatformNavigation } from './platform_navigation.mjs';\nimport 'rxjs';\n\n/**\n * Register global data to be used internally by Angular. See the\n * [\"I18n guide\"](guide/i18n/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}\nconst PLATFORM_BROWSER_ID = 'browser';\nconst PLATFORM_SERVER_ID = 'server';\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/**\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('20.1.0');\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 ɵprov = /** @pureOrBreakMyCode */ /* @__PURE__ */__defineInjectable({\n token: ViewportScroller,\n providedIn: 'root',\n factory: () => typeof ngServerMode !== 'undefined' && ngServerMode ? new NullViewportScroller() : new BrowserViewportScroller(inject(DOCUMENT), window)\n });\n }\n return ViewportScroller;\n})();\n/**\n * Manages the scroll position for a browser window.\n */\nclass BrowserViewportScroller {\n document;\n window;\n offset = () => [0, 0];\n constructor(document, window) {\n this.document = document;\n this.window = window;\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, options) {\n this.window.scrollTo({\n ...options,\n left: position[0],\n top: position[1]\n });\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, options) {\n const elSelected = findAnchorFromDocument(this.document, target);\n if (elSelected) {\n this.scrollToElement(elSelected, options);\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 try {\n this.window.history.scrollRestoration = scrollRestoration;\n } catch {\n console.warn(_formatRuntimeError(2400 /* RuntimeErrorCode.SCROLL_RESTORATION_UNSUPPORTED */, ngDevMode && 'Failed to set `window.history.scrollRestoration`. ' + 'This may occur when:\\n' + '• The script is running inside a sandboxed iframe\\n' + '• The window is partially navigated or inactive\\n' + '• The script is executed in an untrusted or special context (e.g., test runners, browser extensions, or content previews)\\n' + 'Scroll position may not be preserved across navigation.'));\n }\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, options) {\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({\n ...options,\n left: left - offset[0],\n top: top - offset[1]\n });\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 * 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 if (config.loaderParams?.['rounded']) {\n params += `,r_max`;\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 // Map of full image URLs -> original `ngSrc` values.\n images = new Map();\n window = inject(DOCUMENT).defaultView;\n observer = null;\n constructor() {\n assertDevMode('LCP checker');\n if ((typeof ngServerMode === 'undefined' || !ngServerMode) && typeof PerformanceObserver !== 'undefined') {\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 if (!this.observer) return;\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 ɵfac = function LCPImageObserver_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || LCPImageObserver)();\n };\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: LCPImageObserver,\n factory: LCPImageObserver.ɵfac,\n providedIn: 'root'\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 * ```ts\n * {provide: PRECONNECT_CHECK_BLOCKLIST, useValue: 'https://your-domain.com'}\n * ```\n *\n * or:\n *\n * ```ts\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 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 preconnectLinks = null;\n /*\n * Keep track of all already seen origin URLs to avoid repeating the same check.\n */\n alreadySeen = new Set();\n window = this.document.defaultView;\n blocklist = new Set(INTERNAL_PRECONNECT_CHECK_BLOCKLIST);\n constructor() {\n assertDevMode('preconnect link checker');\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 (typeof ngServerMode !== 'undefined' && ngServerMode) 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 links = this.document.querySelectorAll('link[rel=preconnect]');\n for (const 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 ɵfac = function PreconnectLinkChecker_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || PreconnectLinkChecker)();\n };\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: PreconnectLinkChecker,\n factory: PreconnectLinkChecker.ɵfac,\n providedIn: 'root'\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(typeof ngDevMode === 'undefined' || ngDevMode ? '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 preloadedImages = inject(PRELOADED_IMAGES);\n document = inject(DOCUMENT);\n errorShown = false;\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 && !this.errorShown && this.preloadedImages.size >= DEFAULT_PRELOADED_IMAGES_LIMIT) {\n this.errorShown = true;\n console.warn(_formatRuntimeError(2961 /* RuntimeErrorCode.TOO_MANY_PRELOADED_IMAGES */, `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 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 ɵfac = function PreloadLinkCreator_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || PreloadLinkCreator)();\n };\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: PreloadLinkCreator,\n factory: PreloadLinkCreator.ɵfac,\n providedIn: 'root'\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 * Placeholder dimension (height or width) limit in pixels. Angular produces a warning\n * when this limit is crossed.\n */\nconst PLACEHOLDER_DIMENSION_LIMIT = 1000;\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 * Threshold for the PRIORITY_TRUE_COUNT\n */\nconst PRIORITY_COUNT_THRESHOLD = 10;\n/**\n * This count is used to log a devMode warning\n * when the count of directive instances with priority=true\n * exceeds the threshold PRIORITY_COUNT_THRESHOLD\n */\nlet IMGS_WITH_PRIORITY_ATTR_COUNT = 0;\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/components/importing) 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 * ```ts\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 * 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 * ```ts\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 * ```ts\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 * ```html\n * <img ngSrc=\"logo.png\" width=\"200\" height=\"100\">\n * ```\n *\n * @publicApi\n */\nlet NgOptimizedImage = /*#__PURE__*/(() => {\n class NgOptimizedImage {\n imageLoader = inject(IMAGE_LOADER);\n config = processConfig(inject(_IMAGE_CONFIG));\n renderer = inject(Renderer2);\n imgElement = inject(ElementRef).nativeElement;\n injector = inject(Injector);\n // An LCP image observer should be injected only in development mode.\n // Do not assign it to `null` to avoid having a redundant property in the production bundle.\n lcpObserver;\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 _renderedSrc = null;\n /**\n * Name of the source image.\n * Image name will be processed by the image loader and the final URL will be applied as the `src`\n * property of the image.\n */\n ngSrc;\n /**\n * A comma separated list of width or density descriptors.\n * The image name will be taken from `ngSrc` and combined with the list of width or density\n * descriptors to generate the final `srcset` property of the image.\n *\n * Example:\n * ```html\n * <img ngSrc=\"hello.jpg\" ngSrcset=\"100w, 200w\" /> =>\n * <img src=\"path/hello.jpg\" srcset=\"path/hello.jpg?w=100 100w, path/hello.jpg?w=200 200w\" />\n * ```\n */\n ngSrcset;\n /**\n * The base `sizes` attribute passed through to the `<img>` element.\n * Providing sizes causes the image to create an automatic responsive srcset.\n */\n sizes;\n /**\n * For responsive images: the intrinsic width of the image in pixels.\n * For fixed size images: the desired rendered width of the image in pixels.\n */\n width;\n /**\n * For responsive images: the intrinsic height of the image in pixels.\n * For fixed size images: the desired rendered height of the image in pixels.\n */\n height;\n /**\n * The desired decoding behavior for the image. Defaults to `auto`\n * if not explicitly set, matching native browser behavior.\n *\n * Use `async` to decode the image off the main thread (non-blocking),\n * `sync` for immediate decoding (blocking), or `auto` to let the\n * browser decide the optimal strategy.\n *\n * [Spec](https://html.spec.whatwg.org/multipage/images.html#image-decoding-hint)\n */\n decoding;\n /**\n * The desired loading behavior (lazy, eager, or auto). Defaults to `lazy`,\n * which is recommended for most images.\n *\n * Warning: Setting images as loading=\"eager\" or loading=\"auto\" marks them\n * as non-priority images and can hurt loading performance. For images which\n * may be the LCP element, use the `priority` attribute instead of `loading`.\n */\n loading;\n /**\n * Indicates whether this image should have a high priority.\n */\n priority = false;\n /**\n * Data to pass through to custom loaders.\n */\n loaderParams;\n /**\n * Disables automatic srcset generation for this image.\n */\n 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 fill = false;\n /**\n * A URL or data URL for an image to be used as a placeholder while this image loads.\n */\n placeholder;\n /**\n * Configuration object for placeholder settings. Options:\n * * blur: Setting this to false disables the automatic CSS blur.\n */\n placeholderConfig;\n /**\n * Value of the `src` attribute if set on the host `<img>` element.\n * This input is exclusively read to assert that `src` is not set in conflict\n * with `ngSrc` and that images don't start to load until a lazy loading strategy is set.\n * @internal\n */\n src;\n /**\n * Value of the `srcset` attribute if set on the host `<img>` element.\n * This input is exclusively read to assert that `srcset` is not set in conflict\n * with `ngSrcset` and that images don't start to load until a lazy loading strategy is set.\n * @internal\n */\n srcset;\n constructor() {\n if (ngDevMode) {\n this.lcpObserver = this.injector.get(LCPImageObserver);\n // Using `DestroyRef` to avoid having an empty `ngOnDestroy` method since this\n // is only run in development mode.\n const destroyRef = inject(DestroyRef);\n destroyRef.onDestroy(() => {\n if (!this.priority && this._renderedSrc !== null) {\n this.lcpObserver.unregisterImage(this._renderedSrc);\n }\n });\n }\n }\n /** @docs-private */\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 assertValidDecodingInput(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 ngZone.runOutsideAngular(() => {\n this.lcpObserver.registerImage(this.getRewrittenSrc(), this.ngSrc, this.priority);\n });\n if (this.priority) {\n const checker = this.injector.get(PreconnectLinkChecker);\n checker.assertPreconnect(this.getRewrittenSrc(), this.ngSrc);\n if (typeof ngServerMode !== 'undefined' && !ngServerMode) {\n const applicationRef = this.injector.get(ApplicationRef);\n assetPriorityCountBelowThreshold(applicationRef);\n }\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 this.setHostAttribute('decoding', this.getDecoding());\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 if (this.getLoadingBehavior() === 'lazy') {\n this.setHostAttribute('sizes', 'auto, ' + this.sizes);\n } else {\n this.setHostAttribute('sizes', this.sizes);\n }\n } else {\n if (this.ngSrcset && VALID_WIDTH_DESCRIPTOR_SRCSET.test(this.ngSrcset) && this.getLoadingBehavior() === 'lazy') {\n this.setHostAttribute('sizes', 'auto, 100vw');\n }\n }\n if (typeof ngServerMode !== 'undefined' && ngServerMode && this.priority) {\n const preloadLinkCreator = this.injector.get(PreloadLinkCreator);\n preloadLinkCreator.createPreloadLinkTag(this.renderer, this.getRewrittenSrc(), rewrittenSrcset, this.sizes);\n }\n }\n /** @docs-private */\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 if (ngDevMode) {\n const newSrc = this._renderedSrc;\n if (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 if (ngDevMode && changes['placeholder']?.currentValue && typeof ngServerMode !== 'undefined' && !ngServerMode) {\n assertPlaceholderDimensions(this, this.imgElement);\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 getDecoding() {\n if (this.priority) {\n // `sync` means the image is decoded immediately when it's loaded,\n // reducing the risk of content shifting later (important for LCP).\n // If we're marking an image as priority, we want it decoded and\n // painted as early as possible.\n return 'sync';\n }\n // Returns the value of the `decoding` attribute, defaulting to `auto`\n // if not explicitly provided. This mimics native browser behavior and\n // avoids breaking changes when no decoding strategy is specified.\n return this.decoding ?? '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') {\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 callOnLoadIfImageIsLoaded(img, callback);\n }\n setHostAttribute(name, value) {\n this.renderer.setAttribute(this.imgElement, name, value);\n }\n static ɵfac = function NgOptimizedImage_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || NgOptimizedImage)();\n };\n static ɵ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: [2, \"ngSrc\", \"ngSrc\", unwrapSafeUrl],\n ngSrcset: \"ngSrcset\",\n sizes: \"sizes\",\n width: [2, \"width\", \"width\", numberAttribute],\n height: [2, \"height\", \"height\", numberAttribute],\n decoding: \"decoding\",\n loading: \"loading\",\n priority: [2, \"priority\", \"priority\", booleanAttribute],\n loaderParams: \"loaderParams\",\n disableOptimizedSrcset: [2, \"disableOptimizedSrcset\", \"disableOptimizedSrcset\", booleanAttribute],\n fill: [2, \"fill\", \"fill\", booleanAttribute],\n placeholder: [2, \"placeholder\", \"placeholder\", booleanOrUrlAttribute],\n placeholderConfig: \"placeholderConfig\",\n src: \"src\",\n srcset: \"srcset\"\n },\n features: [i0.ɵɵNgOnChangesFeature]\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 @if 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 callback = () => {\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 const removeLoadListenerFn = renderer.listen(img, 'load', callback);\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 callOnLoadIfImageIsLoaded(img, callback);\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 callback = () => {\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 const removeLoadListenerFn = renderer.listen(img, 'load', callback);\n // See comments in the `assertNoImageDistortion`.\n const removeErrorListenerFn = renderer.listen(img, 'error', () => {\n removeLoadListenerFn();\n removeErrorListenerFn();\n });\n callOnLoadIfImageIsLoaded(img, callback);\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 * Verifies that the `decoding` attribute is set to a valid input.\n */\nfunction assertValidDecodingInput(dir) {\n const validInputs = ['sync', 'async', 'auto'];\n if (typeof dir.decoding === 'string' && !validInputs.includes(dir.decoding)) {\n throw new _RuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the \\`decoding\\` attribute ` + `has an invalid value (\\`${dir.decoding}\\`). ` + `To fix this, provide a valid value (\"sync\", \"async\", 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}\n/**\n * Warns if the priority attribute is used too often on page load\n */\nfunction assetPriorityCountBelowThreshold(_x) {\n return _assetPriorityCountBelowThreshold.apply(this, arguments);\n}\n/**\n * Warns if placeholder's dimension are over a threshold.\n *\n * This assert function is meant to only run on the browser.\n */\nfunction _assetPriorityCountBelowThreshold() {\n _assetPriorityCountBelowThreshold = _asyncToGenerator(function* (appRef) {\n if (IMGS_WITH_PRIORITY_ATTR_COUNT === 0) {\n IMGS_WITH_PRIORITY_ATTR_COUNT++;\n yield appRef.whenStable();\n if (IMGS_WITH_PRIORITY_ATTR_COUNT > PRIORITY_COUNT_THRESHOLD) {\n console.warn(_formatRuntimeError(2966 /* RuntimeErrorCode.TOO_MANY_PRIORITY_ATTRIBUTES */, `NgOptimizedImage: The \"priority\" attribute is set to true more than ${PRIORITY_COUNT_THRESHOLD} times (${IMGS_WITH_PRIORITY_ATTR_COUNT} times). ` + `Marking too many images as \"high\" priority can hurt your application's LCP (https://web.dev/lcp). ` + `\"Priority\" should only be set on the image expected to be the page's LCP element.`));\n }\n } else {\n IMGS_WITH_PRIORITY_ATTR_COUNT++;\n }\n });\n return _assetPriorityCountBelowThreshold.apply(this, arguments);\n}\nfunction assertPlaceholderDimensions(dir, imgElement) {\n const computedStyle = window.getComputedStyle(imgElement);\n let renderedWidth = parseFloat(computedStyle.getPropertyValue('width'));\n let renderedHeight = parseFloat(computedStyle.getPropertyValue('height'));\n if (renderedWidth > PLACEHOLDER_DIMENSION_LIMIT || renderedHeight > PLACEHOLDER_DIMENSION_LIMIT) {\n console.warn(_formatRuntimeError(2967 /* RuntimeErrorCode.PLACEHOLDER_DIMENSION_LIMIT_EXCEEDED */, `${imgDirectiveDetails(dir.ngSrc)} it uses a placeholder image, but at least one ` + `of the dimensions attribute (height or width) exceeds the limit of ${PLACEHOLDER_DIMENSION_LIMIT}px. ` + `To fix this, use a smaller image as a placeholder.`));\n }\n}\nfunction callOnLoadIfImageIsLoaded(img, callback) {\n // https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-complete\n // The spec defines that `complete` is truthy once its request state is fully available.\n // The image may already be available if it’s loaded from the browser cache.\n // In that case, the `load` event will not fire at all, meaning that all setup\n // callbacks listening for the `load` event will not be invoked.\n // In Safari, there is a known behavior where the `complete` property of an\n // `HTMLImageElement` may sometimes return `true` even when the image is not fully loaded.\n // Checking both `img.complete` and `img.naturalWidth` is the most reliable way to\n // determine if an image has been fully loaded, especially in browsers where the\n // `complete` property may return `true` prematurely.\n if (img.complete && img.naturalWidth) {\n callback();\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 booleanOrUrlAttribute(value) {\n if (typeof value === 'string' && value !== 'true' && value !== 'false' && value !== '') {\n return value;\n }\n return booleanAttribute(value);\n}\nexport { IMAGE_LOADER, NgOptimizedImage, PRECONNECT_CHECK_BLOCKLIST, VERSION, ViewportScroller, isPlatformBrowser, isPlatformServer, provideCloudflareLoader, provideCloudinaryLoader, provideImageKitLoader, provideImgixLoader, provideNetlifyLoader, registerLocaleData, NullViewportScroller as ɵNullViewportScroller, PLATFORM_BROWSER_ID as ɵPLATFORM_BROWSER_ID, PLATFORM_SERVER_ID as ɵPLATFORM_SERVER_ID };\n//# sourceMappingURL=common.mjs.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"/*! ColReorder 2.0.0-dev\n * © SpryMedia Ltd - datatables.net/license\n */\n\nimport jQuery from 'jquery';\nimport DataTable from 'datatables.net';\n\n// Allow reassignment of the $ variable\nlet $ = jQuery;\n(function (factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD\n define(['jquery', 'datatables.net'], function ($) {\n return factory($, window, document);\n });\n } else if (typeof exports === 'object') {\n // CommonJS\n var jq = require('jquery');\n var cjsRequires = function (root, $) {\n if (!$.fn.dataTable) {\n require('datatables.net')(root, $);\n }\n };\n if (typeof window === 'undefined') {\n module.exports = function (root, $) {\n if (!root) {\n // CommonJS environments without a window global must pass a\n // root. This will give an error otherwise\n root = window;\n }\n if (!$) {\n $ = jq(root);\n }\n cjsRequires(root, $);\n return factory($, root, root.document);\n };\n } else {\n cjsRequires(window, jq);\n module.exports = factory(jq, window, window.document);\n }\n } else {\n // Browser\n factory(jQuery, window, document);\n }\n})(function ($, window, document) {\n 'use strict';\n\n var DataTable = $.fn.dataTable;\n\n /**\n * Mutate an array, moving a set of elements into a new index position\n *\n * @param arr Array to modify\n * @param from Start move index\n * @param count Number of elements to move\n * @param to Index where the start element will move to\n */\n function arrayMove(arr, from, count, to) {\n var movers = arr.splice(from, count);\n // Add delete and start to the array, so we can use it for the `apply`\n movers.unshift(0); // splice delete param\n movers.unshift(to < from ? to : to - count + 1); // splice start param\n arr.splice.apply(arr, movers);\n }\n /**\n * Run finishing activities after one or more columns have been reordered.\n *\n * @param dt DataTable being operated on - must be a single table instance\n */\n function finalise(dt) {\n // Cache invalidation. Always read from the data object rather\n // than reading back from the DOM since it could have been\n // changed by a renderer\n dt.rows().invalidate('data');\n // Redraw the header / footer. Its a little bit of a hack this, as DT\n // doesn't expose the header draw as an API method. It calls state\n // saving, so we don't need to here.\n dt.column(0).visible(dt.column(0).visible());\n dt.columns.adjust();\n // Fire an event so other plug-ins can update\n var order = dt.colReorder.order();\n dt.trigger('columns-reordered', [{\n order: order,\n mapping: invertKeyValues(order)\n }]);\n }\n /**\n * Get the original indexes in their current order\n *\n * @param dt DataTable being operated on - must be a single table instance\n * @returns Original indexes in current order\n */\n function getOrder(dt) {\n return dt.settings()[0].aoColumns.map(function (col) {\n return col._crOriginalIdx;\n });\n }\n /**\n * Manipulate a header / footer array in DataTables settings to reorder\n * the columns.\n */\n function headerUpdate(structure, map, from, to) {\n var done = [];\n for (var i = 0; i < structure.length; i++) {\n var headerRow = structure[i];\n arrayMove(headerRow, from[0], from.length, to);\n for (var j = 0; j < headerRow.length; j++) {\n var cell = headerRow[j].cell;\n // Only work on a DOM element once, otherwise we risk remapping a\n // remapped value (etc).\n if (done.includes(cell)) {\n continue;\n }\n var indexes = cell.getAttribute('data-dt-column').split(',');\n var mapped = indexes.map(function (idx) {\n return map[idx];\n }).join(',');\n // Update data attributes for the new column position\n cell.setAttribute('data-dt-column', mapped);\n done.push(cell);\n }\n }\n }\n /**\n * Setup for ColReorder API operations\n *\n * @param dt DataTable(s) being operated on - might have multiple tables!\n */\n function init(api) {\n // Assign the original column index to a parameter that we can lookup.\n // On the first pass (i.e. when the parameter hasn't yet been set), the\n // index order will be the original order, so this is quite a simple\n // assignment.\n api.columns().iterator('column', function (s, idx) {\n var columns = s.aoColumns;\n if (columns[idx]._crOriginalIdx === undefined) {\n columns[idx]._crOriginalIdx = idx;\n }\n });\n }\n /**\n * Switch the key value pairing of an index array to be value key (i.e. the old value is now the\n * key). For example consider [ 2, 0, 1 ] this would be returned as [ 1, 2, 0 ].\n *\n * @param array arr Array to switch around\n */\n function invertKeyValues(arr) {\n var result = [];\n for (var i = 0; i < arr.length; i++) {\n result[arr[i]] = i;\n }\n return result;\n }\n /**\n * Move one or more columns from one index to another.\n *\n * This method has a lot of knowledge about how DataTables works internally.\n * If DataTables changes how it handles cells, columns, etc, then this\n * method would need to be updated accordingly.\n *\n * @param dt DataTable being operated on - must be a single table instance\n * @param from Column indexes to move\n * @param to Destination index (starting if multiple)\n */\n function move(dt, from, to) {\n var i, j;\n var settings = dt.settings()[0];\n var columns = settings.aoColumns;\n var newOrder = columns.map(function (col, idx) {\n return idx;\n });\n // The to column in already inside the from column(s) (might be the same)\n // no change required\n if (from.includes(to)) {\n return;\n }\n // A reverse index array so we can look up new indexes from old\n arrayMove(newOrder, from[0], from.length, to);\n var reverseIndexes = invertKeyValues(newOrder);\n // Main column\n arrayMove(columns, from[0], from.length, to);\n // Per row manipulations\n for (i = 0; i < settings.aoData.length; i++) {\n var data = settings.aoData[i];\n var cells = data.anCells;\n if (cells) {\n // Array of cells\n arrayMove(cells, from[0], from.length, to);\n for (j = 0; j < cells.length; j++) {\n // Reinsert into the document in the new order\n if (data.nTr && cells[j] && columns[j].bVisible) {\n data.nTr.appendChild(cells[j]);\n }\n // Update lookup index\n if (cells[j] && cells[j]._DT_CellIndex) {\n cells[j]._DT_CellIndex.column = j;\n }\n }\n }\n }\n // Per column manipulation\n for (i = 0; i < columns.length; i++) {\n var column = columns[i];\n // Data column sorting\n for (j = 0; j < column.aDataSort.length; j++) {\n column.aDataSort[j] = reverseIndexes[column.aDataSort[j]];\n }\n // Update the column indexes\n column.idx = reverseIndexes[column.idx];\n // Reorder the colgroup > col elements for the new order\n if (column.bVisible) {\n settings.colgroup.append(column.colEl);\n }\n }\n // Header and footer\n headerUpdate(settings.aoHeader, reverseIndexes, from, to);\n headerUpdate(settings.aoFooter, reverseIndexes, from, to);\n // Search - columns\n arrayMove(settings.aoPreSearchCols, from[0], from.length, to);\n // Ordering indexes update - note that the sort listener on the\n // header works out the index to apply on each draw, so it doesn't\n // need to be updated here.\n orderingIndexes(reverseIndexes, settings.aaSorting);\n if (Array.isArray(settings.aaSortingFixed)) {\n orderingIndexes(reverseIndexes, settings.aaSortingFixed);\n } else if (settings.aaSortingFixed.pre) {\n orderingIndexes(reverseIndexes, settings.aaSortingFixed.pre);\n } else if (settings.aaSortingFixed.post) {\n orderingIndexes(reverseIndexes, settings.aaSortingFixed.pre);\n }\n settings.aLastSort.forEach(function (el) {\n el.src = reverseIndexes[el.src];\n });\n // Fire an event so other plug-ins can update\n dt.trigger('column-reorder', [dt.settings()[0], {\n from: from,\n to: to,\n mapping: reverseIndexes\n }]);\n }\n /**\n * Update the indexing for ordering arrays\n *\n * @param map Reverse index map\n * @param order Array to update\n */\n function orderingIndexes(map, order) {\n for (var i = 0; i < order.length; i++) {\n var el = order[i];\n if (typeof el === 'number') {\n // Just a number\n order[i] = map[el];\n } else if ($.isPlainObject(el) && el.idx !== undefined) {\n // New index in an object style\n el.idx = map[el.idx];\n } else if (Array.isArray(el) && typeof el[0] === 'number') {\n // The good old fixes length array\n el[0] = map[el[0]];\n }\n // No need to update if in object + .name style\n }\n }\n /**\n * Take an index array for the current positioned, reordered to what you want\n * them to be.\n *\n * @param dt DataTable being operated on - must be a single table instance\n * @param order Indexes from current order, positioned as you want them to be\n */\n function setOrder(dt, order, original) {\n var changed = false;\n var i;\n if (order.length !== dt.columns().count()) {\n dt.error('ColReorder - column count mismatch');\n return;\n }\n // The order given is based on the original indexes, rather than the\n // existing ones, so we need to translate from the original to current\n // before then doing the order\n if (original) {\n order = transpose(dt, order, 'toCurrent');\n }\n // The API is array index as the desired position, but our algorithm below is\n // for array index as the current position. So we need to invert for it to work.\n var setOrder = invertKeyValues(order);\n // Move columns, one by one with validation disabled!\n for (i = 0; i < setOrder.length; i++) {\n var currentIndex = setOrder.indexOf(i);\n if (i !== currentIndex) {\n // Reorder our switching error\n arrayMove(setOrder, currentIndex, 1, i);\n // Do the reorder\n move(dt, [currentIndex], i);\n changed = true;\n }\n }\n // Reorder complete\n if (changed) {\n finalise(dt);\n }\n }\n /**\n * Convert the DataTables header structure array into a 2D array where each\n * element has a reference to its TH/TD cell (regardless of spanning).\n *\n * @param structure Header / footer structure object\n * @returns 2D array of header cells\n */\n function structureFill(structure) {\n var filledIn = [];\n for (var row = 0; row < structure.length; row++) {\n filledIn.push([]);\n for (var col = 0; col < structure[row].length; col++) {\n var cell = structure[row][col];\n if (cell) {\n for (var rowInner = 0; rowInner < cell.rowspan; rowInner++) {\n for (var colInner = 0; colInner < cell.colspan; colInner++) {\n filledIn[row + rowInner][col + colInner] = cell.cell;\n }\n }\n }\n }\n }\n return filledIn;\n }\n /**\n * Convert the index type\n *\n * @param dt DataTable to work on\n * @param idx Index to transform\n * @param dir Transform direction\n * @returns Converted number(s)\n */\n function transpose(dt, idx, dir) {\n var order = dt.colReorder.order();\n var columns = dt.settings()[0].aoColumns;\n if (dir === 'toCurrent' || dir === 'fromOriginal') {\n // Given an original index, want the current\n return !Array.isArray(idx) ? order.indexOf(idx) : idx.map(function (index) {\n return order.indexOf(index);\n });\n }\n // Given a current index, want the original\n return !Array.isArray(idx) ? columns[idx]._crOriginalIdx : idx.map(function (index) {\n return columns[index]._crOriginalIdx;\n });\n }\n /**\n * Validate that a requested move is okay. This includes bound checking\n * and that it won't split colspan'ed cells.\n *\n * @param table API instance\n * @param from Column indexes to move\n * @param to Destination index (starting if multiple)\n * @returns Validation result\n */\n function validateMove(table, from, to) {\n var columns = table.columns().count();\n // Sanity and bound checking\n if (from[0] < to && to < from[from.length]) {\n return false;\n }\n if (from[0] < 0 && from[from.length - 1] > columns) {\n return false;\n }\n if (to < 0 && to > columns) {\n return false;\n }\n // No change - it's valid\n if (from.includes(to)) {\n return true;\n }\n if (!validateStructureMove(table.table().header.structure(), from, to)) {\n return false;\n }\n if (!validateStructureMove(table.table().footer.structure(), from, to)) {\n return false;\n }\n return true;\n }\n /**\n * For a given structure check that the move is valid.\n * @param structure\n * @param from\n * @param to\n * @returns\n */\n function validateStructureMove(structure, from, to) {\n var header = structureFill(structure);\n var i;\n // Shuffle the header cells around\n for (i = 0; i < header.length; i++) {\n arrayMove(header[i], from[0], from.length, to);\n }\n // Sanity check that the headers are next to each other\n for (i = 0; i < header.length; i++) {\n var seen = [];\n for (var j = 0; j < header[i].length; j++) {\n var cell = header[i][j];\n if (!seen.includes(cell)) {\n // Hasn't been seen before\n seen.push(cell);\n } else if (seen[seen.length - 1] !== cell) {\n // Has been seen before and is not the previous cell - validation failed\n return false;\n }\n }\n }\n return true;\n }\n\n /**\n * This is one possible UI for column reordering in DataTables. In this case\n * columns are reordered by clicking and dragging a column header. It calculates\n * where columns can be dropped based on the column header used to start the drag\n * and then `colReorder.move()` method to alter the DataTable.\n */\n var ColReorder = /** @class */function () {\n function ColReorder(dt, opts) {\n this.dom = {\n drag: null\n };\n this.c = {\n columns: null,\n enable: null,\n order: null\n };\n this.s = {\n dropZones: [],\n mouse: {\n absLeft: -1,\n offset: {\n x: -1,\n y: -1\n },\n start: {\n x: -1,\n y: -1\n },\n target: null,\n targets: []\n },\n scrollInterval: null\n };\n var that = this;\n var ctx = dt.settings()[0];\n // Check if ColReorder already has been initialised on this DataTable - only\n // one can exist.\n if (ctx._colReorder) {\n return;\n }\n dt.settings()[0]._colReorder = this;\n this.dt = dt;\n $.extend(this.c, ColReorder.defaults, opts);\n init(dt);\n dt.on('stateSaveParams', function (e, s, d) {\n d.colReorder = getOrder(dt);\n });\n dt.on('destroy', function () {\n dt.off('.colReorder');\n dt.colReorder.reset();\n });\n // Initial ordering / state restoring\n var loaded = dt.state.loaded();\n var order = this.c.order;\n if (loaded && loaded.colReorder) {\n order = loaded.colReorder;\n }\n if (order) {\n dt.ready(function () {\n setOrder(dt, order, true);\n });\n }\n dt.table().header.structure().forEach(function (row) {\n for (var i = 0; i < row.length; i++) {\n if (row[i] && row[i].cell) {\n that._addListener(row[i].cell);\n }\n }\n });\n }\n ColReorder.prototype.disable = function () {\n this.c.enable = false;\n return this;\n };\n ColReorder.prototype.enable = function (flag) {\n if (flag === void 0) {\n flag = true;\n }\n if (flag === false) {\n return this.disable();\n }\n this.c.enable = true;\n return this;\n };\n /**\n * Attach the mouse down listener to an element to start a column reorder action\n *\n * @param el\n */\n ColReorder.prototype._addListener = function (el) {\n var that = this;\n $(el).on('selectstart.colReorder', function () {\n return false;\n }).on('mousedown.colReorder touchstart.colReorder', function (e) {\n // Ignore middle and right click\n if (e.type === 'mousedown' && e.which !== 1) {\n return;\n }\n // Ignore if disabled\n if (!that.c.enable) {\n return;\n }\n that._mouseDown(e, this);\n });\n };\n /**\n * Create the element that is dragged around the page\n */\n ColReorder.prototype._createDragNode = function () {\n var origCell = this.s.mouse.target;\n var origTr = origCell.parent();\n var origThead = origTr.parent();\n var origTable = origThead.parent();\n var cloneCell = origCell.clone();\n // This is a slightly odd combination of jQuery and DOM, but it is the\n // fastest and least resource intensive way I could think of cloning\n // the table with just a single header cell in it.\n this.dom.drag = $(origTable[0].cloneNode(false)).addClass('dtcr-cloned').append($(origThead[0].cloneNode(false)).append($(origTr[0].cloneNode(false)).append(cloneCell[0])) // Not sure why it doesn't want to append a jQuery node\n ).css({\n position: 'absolute',\n top: 0,\n left: 0,\n width: $(origCell).outerWidth(),\n height: $(origCell).outerHeight()\n }).appendTo('body');\n };\n /**\n * Get cursor position regardless of mouse or touch input\n *\n * @param e Event\n * @param prop Property name to get\n * @returns Value - assuming a number here\n */\n ColReorder.prototype._cursorPosition = function (e, prop) {\n return e.type.indexOf('touch') !== -1 ? e.originalEvent.touches[0][prop] : e[prop];\n };\n /**\n * Cache values at start\n *\n * @param e Triggering event\n * @param cell Cell that the action started on\n * @returns\n */\n ColReorder.prototype._mouseDown = function (e, cell) {\n var _this = this;\n var target = $(e.target).closest('th, td');\n var offset = target.offset();\n var moveableColumns = this.dt.columns(this.c.columns).indexes().toArray();\n var moveColumnIndexes = $(cell).attr('data-dt-column').split(',').map(function (val) {\n return parseInt(val, 10);\n });\n // Don't do anything for columns which are not selected as moveable\n for (var j = 0; j < moveColumnIndexes.length; j++) {\n if (!moveableColumns.includes(moveColumnIndexes[j])) {\n return false;\n }\n }\n this.s.mouse.start.x = this._cursorPosition(e, 'pageX');\n this.s.mouse.start.y = this._cursorPosition(e, 'pageY');\n this.s.mouse.offset.x = this._cursorPosition(e, 'pageX') - offset.left;\n this.s.mouse.offset.y = this._cursorPosition(e, 'pageY') - offset.top;\n this.s.mouse.target = target;\n this.s.mouse.targets = moveColumnIndexes;\n // Classes to highlight the columns being moved\n for (var i = 0; i < moveColumnIndexes.length; i++) {\n var cells = this.dt.cells(null, moveColumnIndexes[i], {\n page: 'current'\n }).nodes().to$();\n var klass = 'dtcr-moving';\n if (i === 0) {\n klass += ' dtcr-moving-first';\n }\n if (i === moveColumnIndexes.length - 1) {\n klass += ' dtcr-moving-last';\n }\n cells.addClass(klass);\n }\n this._regions(moveColumnIndexes);\n this._scrollRegions();\n /* Add event handlers to the document */\n $(document).on('mousemove.colReorder touchmove.colReorder', function (e) {\n _this._mouseMove(e);\n }).on('mouseup.colReorder touchend.colReorder', function (e) {\n _this._mouseUp(e);\n });\n };\n ColReorder.prototype._mouseMove = function (e) {\n if (this.dom.drag === null) {\n // Only create the drag element if the mouse has moved a specific distance from the start\n // point - this allows the user to make small mouse movements when sorting and not have a\n // possibly confusing drag element showing up\n if (Math.pow(Math.pow(this._cursorPosition(e, 'pageX') - this.s.mouse.start.x, 2) + Math.pow(this._cursorPosition(e, 'pageY') - this.s.mouse.start.y, 2), 0.5) < 5) {\n return;\n }\n $(document.body).addClass('dtcr-dragging');\n this._createDragNode();\n }\n // Position the element - we respect where in the element the click occurred\n this.dom.drag.css({\n left: this._cursorPosition(e, 'pageX') - this.s.mouse.offset.x,\n top: this._cursorPosition(e, 'pageY') - this.s.mouse.offset.y\n });\n // Find cursor's left position relative to the table\n var tableOffset = $(this.dt.table().node()).offset().left;\n var cursorMouseLeft = this._cursorPosition(e, 'pageX') - tableOffset;\n var dropZone = this.s.dropZones.find(function (zone) {\n if (zone.left <= cursorMouseLeft && cursorMouseLeft <= zone.left + zone.width) {\n return true;\n }\n return false;\n });\n this.s.mouse.absLeft = this._cursorPosition(e, 'pageX');\n if (!dropZone) {\n return;\n }\n if (!dropZone.self) {\n this._move(dropZone, cursorMouseLeft);\n }\n };\n ColReorder.prototype._mouseUp = function (e) {\n $(document).off('.colReorder');\n $(document.body).removeClass('dtcr-dragging');\n if (this.dom.drag) {\n this.dom.drag.remove();\n this.dom.drag = null;\n }\n if (this.s.scrollInterval) {\n clearInterval(this.s.scrollInterval);\n }\n this.dt.cells('.dtcr-moving').nodes().to$().removeClass('dtcr-moving dtcr-moving-first dtcr-moving-last');\n };\n /**\n * Shift columns around\n *\n * @param dropZone Where to move to\n * @param cursorMouseLeft Cursor position, relative to the left of the table\n */\n ColReorder.prototype._move = function (dropZone, cursorMouseLeft) {\n var that = this;\n this.dt.colReorder.move(this.s.mouse.targets, dropZone.colIdx);\n // Update the targets\n this.s.mouse.targets = $(this.s.mouse.target).attr('data-dt-column').split(',').map(function (val) {\n return parseInt(val, 10);\n });\n this._regions(this.s.mouse.targets);\n // If the column being moved is smaller than the column it is replacing,\n // the drop zones might need a correction to allow for this since, otherwise\n // we might immediately be changing the column order as soon as it was placed.\n // Find the drop zone for the first in the list of targets - is its\n // left greater than the mouse position. If so, it needs correcting\n var dz = this.s.dropZones.find(function (zone) {\n return zone.colIdx === that.s.mouse.targets[0];\n });\n var dzIdx = this.s.dropZones.indexOf(dz);\n if (dz.left > cursorMouseLeft) {\n var previousDiff = dz.left - cursorMouseLeft;\n var previousDz = this.s.dropZones[dzIdx - 1];\n dz.left -= previousDiff;\n dz.width += previousDiff;\n if (previousDz) {\n previousDz.width -= previousDiff;\n }\n }\n // And for the last in the list\n dz = this.s.dropZones.find(function (zone) {\n return zone.colIdx === that.s.mouse.targets[that.s.mouse.targets.length - 1];\n });\n if (dz.left + dz.width < cursorMouseLeft) {\n var nextDiff = cursorMouseLeft - (dz.left + dz.width);\n var nextDz = this.s.dropZones[dzIdx + 1];\n dz.width += nextDiff;\n if (nextDz) {\n nextDz.left += nextDiff;\n nextDz.width -= nextDiff;\n }\n }\n };\n /**\n * Determine the boundaries for where drops can happen and where they would\n * insert into.\n */\n ColReorder.prototype._regions = function (moveColumns) {\n var that = this;\n var dropZones = [];\n var totalWidth = 0;\n var negativeCorrect = 0;\n var allowedColumns = this.dt.columns(this.c.columns).indexes().toArray();\n var widths = this.dt.columns().widths();\n // Each column is a drop zone\n this.dt.columns().every(function (colIdx, tabIdx, i) {\n if (!this.visible()) {\n return;\n }\n var columnWidth = widths[colIdx];\n // Check that we are allowed to move into this column - if not, need\n // to offset the widths\n if (!allowedColumns.includes(colIdx)) {\n totalWidth += columnWidth;\n return;\n }\n var valid = validateMove(that.dt, moveColumns, colIdx);\n if (valid) {\n // New drop zone. Note that it might have it's offset moved\n // by the final condition in this logic set\n dropZones.push({\n colIdx: colIdx,\n left: totalWidth - negativeCorrect,\n self: moveColumns[0] <= colIdx && colIdx <= moveColumns[moveColumns.length - 1],\n width: columnWidth + negativeCorrect\n });\n } else if (colIdx < moveColumns[0]) {\n // Not valid and before the column(s) to be moved - the drop\n // zone for the previous valid drop point is extended\n if (dropZones.length) {\n dropZones[dropZones.length - 1].width += columnWidth;\n }\n } else if (colIdx > moveColumns[moveColumns.length - 1]) {\n // Not valid and after the column(s) to be moved - the next\n // drop zone to be created will be extended\n negativeCorrect += columnWidth;\n }\n totalWidth += columnWidth;\n });\n this.s.dropZones = dropZones;\n // this._drawDropZones();\n };\n /**\n * Check if the table is scrolling or not. It is it the `table` isn't the same for\n * the header and body parents.\n *\n * @returns\n */\n ColReorder.prototype._isScrolling = function () {\n return this.dt.table().body().parentNode !== this.dt.table().header().parentNode;\n };\n /**\n * Set an interval clock that will check to see if the scrolling of the table body should be moved\n * as the mouse moves on the scroll (allowing a drag and drop to columns which aren't yet visible)\n */\n ColReorder.prototype._scrollRegions = function () {\n if (!this._isScrolling()) {\n // Not scrolling - nothing to do\n return;\n }\n var that = this;\n var tableLeft = $(this.dt.table().container()).position().left;\n var tableWidth = $(this.dt.table().container()).outerWidth();\n var mouseBuffer = 75;\n var scrollContainer = this.dt.table().body().parentElement.parentElement;\n this.s.scrollInterval = setInterval(function () {\n var mouseLeft = that.s.mouse.absLeft;\n if (mouseLeft < tableLeft + mouseBuffer && scrollContainer.scrollLeft) {\n scrollContainer.scrollLeft -= 5;\n } else if (mouseLeft > tableLeft + tableWidth - mouseBuffer && scrollContainer.scrollLeft < scrollContainer.scrollWidth) {\n scrollContainer.scrollLeft += 5;\n }\n }, 25);\n };\n // This is handy for debugging where the drop zones actually are!\n // private _drawDropZones () {\n // \tlet dropZones = this.s.dropZones;\n // \t$('div.allan').remove();\n // \tfor (let i=0 ; i<dropZones.length ; i++) {\n // \t\tlet zone = dropZones[i];\n // \t\t$(this.dt.table().container()).append(\n // \t\t\t$('<div>')\n // \t\t\t\t.addClass('allan')\n // \t\t\t\t.css({\n // \t\t\t\t\tposition: 'absolute',\n // \t\t\t\t\ttop: 0,\n // \t\t\t\t\twidth: zone.width - 4,\n // \t\t\t\t\theight: 20,\n // \t\t\t\t\tleft: zone.left + 2,\n // \t\t\t\t\tborder: '1px solid red',\n // \t\t\t\t})\n // \t\t);\n // \t}\n // }\n ColReorder.defaults = {\n columns: '',\n enable: true,\n order: null\n };\n ColReorder.version = '2.0.0-dev';\n return ColReorder;\n }();\n\n /*! ColReorder 2.0.0-dev\n * © SpryMedia Ltd - datatables.net/license\n */\n /**\n * @summary ColReorder\n * @description Provide the ability to reorder columns in a DataTable\n * @version 2.0.0-dev\n * @author SpryMedia Ltd\n * @contact datatables.net\n * @copyright SpryMedia Ltd.\n *\n * This source file is free software, available under the following license:\n * MIT license - http://datatables.net/license/mit\n *\n * This source file is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.\n *\n * For details please refer to: http://www.datatables.net\n */\n // declare var DataTable: any;\n /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n * UI interaction class\n */\n /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n * DataTables API integration\n */\n /** Enable mouse column reordering */\n DataTable.Api.register('colReorder.enable()', function (flag) {\n return this.iterator('table', function (ctx) {\n if (ctx._colReorder) {\n ctx._colReorder.enable(flag);\n }\n });\n });\n /** Disable mouse column reordering */\n DataTable.Api.register('colReorder.disable()', function () {\n return this.iterator('table', function (ctx) {\n if (ctx._colReorder) {\n ctx._colReorder.disable();\n }\n });\n });\n /**\n * Change the ordering of the columns in the DataTable.\n */\n DataTable.Api.register('colReorder.move()', function (from, to) {\n init(this);\n if (!Array.isArray(from)) {\n from = [from];\n }\n if (!validateMove(this, from, to)) {\n this.error('ColReorder - invalid move');\n return this;\n }\n return this.tables().every(function () {\n move(this, from, to);\n finalise(this);\n });\n });\n DataTable.Api.register('colReorder.order()', function (set, original) {\n init(this);\n if (!set) {\n return this.context.length ? getOrder(this) : null;\n }\n return this.tables().every(function () {\n setOrder(this, set, original);\n });\n });\n DataTable.Api.register('colReorder.reset()', function () {\n init(this);\n return this.tables().every(function () {\n var order = this.columns().every(function (i) {\n return i;\n }).flatten().toArray();\n setOrder(this, order, true);\n });\n });\n DataTable.Api.register('colReorder.transpose()', function (idx, dir) {\n init(this);\n if (!dir) {\n dir = 'toCurrent';\n }\n return transpose(this, idx, dir);\n });\n DataTable.ColReorder = ColReorder;\n // Called when DataTables is going to load a state. That might be\n // before the table is ready (state saving) or after (state restoring).\n // Also note that it happens _before_ preInit (below).\n $(document).on('stateLoadInit.dt', function (e, settings, state) {\n if (e.namespace !== 'dt') {\n return;\n }\n var dt = new DataTable.Api(settings);\n if (state.colReorder) {\n if (dt.ready()) {\n // Table is fully loaded - do the column reordering here\n // so that the stored indexes are in the correct place\n // e.g. column visibility\n setOrder(dt, state.colReorder, true);\n } else {\n // If the table is not ready, column reordering is done\n // after it becomes fully ready. That means that saved\n // column indexes need to be updated for where those columns\n // currently are.\n var map = invertKeyValues(state.colReorder);\n // State's ordering indexes\n orderingIndexes(map, state.order);\n // State's columns array - sort by restore index\n for (var i = 0; i < state.columns.length; i++) {\n state.columns[i]._cr_sort = state.colReorder[i];\n }\n state.columns.sort(function (a, b) {\n return a._cr_sort - b._cr_sort;\n });\n }\n }\n });\n $(document).on('preInit.dt', function (e, settings) {\n if (e.namespace !== 'dt') {\n return;\n }\n var init = settings.oInit.colReorder;\n var defaults = DataTable.defaults.colReorder;\n if (init || defaults) {\n var opts = $.extend({}, defaults, init);\n if (init !== false) {\n var dt = new DataTable.Api(settings);\n new ColReorder(dt, opts);\n }\n }\n });\n return DataTable;\n});\nexport default DataTable;","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { merge } from './merge';\nexport function mergeWith(...otherSources) {\n return merge(...otherSources);\n}\n//# sourceMappingURL=mergeWith.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { Subject } from 'rxjs';\nimport * as i0 from \"@angular/core\";\nexport let DemoNgComponent = /*#__PURE__*/(() => {\n class DemoNgComponent {\n constructor() {\n this.emitter = new Subject();\n this.data = {};\n this.actionText = 'Action 1';\n }\n ngOnInit() {}\n onAction1() {\n this.emitter.next({\n cmd: 'action1',\n data: this.data\n });\n }\n ngOnDestroy() {\n this.emitter.unsubscribe();\n }\n static #_ = this.ɵfac = function DemoNgComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || DemoNgComponent)();\n };\n static #_2 = this.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n type: DemoNgComponent,\n selectors: [[\"app-demo-ng-template-ref\"]],\n inputs: {\n data: \"data\",\n actionText: \"actionText\"\n },\n outputs: {\n emitter: \"emitter\"\n },\n standalone: false,\n decls: 3,\n vars: 1,\n consts: [[1, \"btn-group\", \"d-block\", \"text-center\"], [1, \"btn\", \"btn-sm\", \"btn-dark\", 3, \"click\"]],\n template: function DemoNgComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 0)(1, \"button\", 1);\n i0.ɵɵlistener(\"click\", function DemoNgComponent_Template_button_click_1_listener() {\n return ctx.onAction1();\n });\n i0.ɵɵtext(2);\n i0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n i0.ɵɵadvance(2);\n i0.ɵɵtextInterpolate(ctx.actionText);\n }\n },\n encapsulation: 2\n });\n }\n return DemoNgComponent;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { operate } from '../util/lift';\nimport { OperatorSubscriber } from './OperatorSubscriber';\nexport function skipWhile(predicate) {\n return operate((source, subscriber) => {\n let taking = false;\n let index = 0;\n source.subscribe(new OperatorSubscriber(subscriber, value => (taking || (taking = !predicate(value, index++))) && subscriber.next(value)));\n });\n}\n//# sourceMappingURL=skipWhile.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { reduce } from './reduce';\nexport function count(predicate) {\n return reduce((total, value, i) => !predicate || predicate(value, i) ? total + 1 : total, 0);\n}\n//# sourceMappingURL=count.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { Subscriber } from '../Subscriber';\nexport class OperatorSubscriber extends Subscriber {\n constructor(destination, onNext, onComplete, onError, onFinalize) {\n super(destination);\n this.onFinalize = onFinalize;\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 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//# sourceMappingURL=OperatorSubscriber.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"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 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 = this.id || 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 intervalProvider.clearInterval(id);\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//# sourceMappingURL=AsyncAction.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { AnimationFrameAction } from './AnimationFrameAction';\nimport { AnimationFrameScheduler } from './AnimationFrameScheduler';\nexport const animationFrameScheduler = new AnimationFrameScheduler(AnimationFrameAction);\nexport const animationFrame = animationFrameScheduler;\n//# sourceMappingURL=animationFrame.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"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//# sourceMappingURL=pipe.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { EmptyError } from './util/EmptyError';\nimport { SafeSubscriber } from './Subscriber';\nexport function firstValueFrom(source, config) {\n const hasConfig = typeof config === 'object';\n return new Promise((resolve, reject) => {\n const subscriber = new SafeSubscriber({\n next: value => {\n resolve(value);\n subscriber.unsubscribe();\n },\n error: reject,\n complete: () => {\n if (hasConfig) {\n resolve(config.defaultValue);\n } else {\n reject(new EmptyError());\n }\n }\n });\n source.subscribe(subscriber);\n });\n}\n//# sourceMappingURL=firstValueFrom.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { AsapAction } from './AsapAction';\nimport { AsapScheduler } from './AsapScheduler';\nexport const asapScheduler = new AsapScheduler(AsapAction);\nexport const asap = asapScheduler;\n//# sourceMappingURL=asap.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { observeNotification } from '../Notification';\nimport { operate } from '../util/lift';\nimport { OperatorSubscriber } from './OperatorSubscriber';\nexport function dematerialize() {\n return operate((source, subscriber) => {\n source.subscribe(new OperatorSubscriber(subscriber, notification => observeNotification(notification, subscriber)));\n });\n}\n//# sourceMappingURL=dematerialize.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"export function identity(x) {\n return x;\n}\n//# sourceMappingURL=identity.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { concat } from './concat';\nexport function concatWith(...otherSources) {\n return concat(...otherSources);\n}\n//# sourceMappingURL=concatWith.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"export const observable = (() => typeof Symbol === 'function' && Symbol.observable || '@@observable')();\n//# sourceMappingURL=observable.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { Subscription } from '../Subscription';\nimport { operate } from '../util/lift';\nimport { innerFrom } from '../observable/innerFrom';\nimport { OperatorSubscriber } from './OperatorSubscriber';\nimport { noop } from '../util/noop';\nimport { arrRemove } from '../util/arrRemove';\nexport function bufferToggle(openings, closingSelector) {\n return operate((source, subscriber) => {\n const buffers = [];\n innerFrom(openings).subscribe(new OperatorSubscriber(subscriber, openValue => {\n const buffer = [];\n buffers.push(buffer);\n const closingSubscription = new Subscription();\n const emitBuffer = () => {\n arrRemove(buffers, buffer);\n subscriber.next(buffer);\n closingSubscription.unsubscribe();\n };\n closingSubscription.add(innerFrom(closingSelector(openValue)).subscribe(new OperatorSubscriber(subscriber, emitBuffer, noop)));\n }, noop));\n source.subscribe(new OperatorSubscriber(subscriber, value => {\n for (const buffer of buffers) {\n buffer.push(value);\n }\n }, () => {\n while (buffers.length > 0) {\n subscriber.next(buffers.shift());\n }\n subscriber.complete();\n }));\n });\n}\n//# sourceMappingURL=bufferToggle.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"/**\n * @license Angular v20.1.0\n * (c) 2010-2025 Google LLC. https://angular.io/\n * License: MIT\n */\n\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 inject(token, options) {\n const currentInjector = getCurrentInjector();\n if (!currentInjector) {\n throw new Error('Current injector is not set.');\n }\n if (!token.ɵprov) {\n throw new Error('Token is not an injectable');\n }\n return currentInjector.retrieve(token, options);\n}\n\n/**\n * Value returned if the key-value pair couldn't be found in the context\n * hierarchy.\n */\nconst NOT_FOUND = /*#__PURE__*/Symbol('NotFound');\n/**\n * Error thrown when the key-value pair couldn't be found in the context\n * hierarchy. Context can be attached below.\n */\nclass NotFoundError extends Error {\n name = 'ɵNotFound';\n constructor(message) {\n super(message);\n }\n}\n/**\n * Type guard for checking if an unknown value is a NotFound.\n */\nfunction isNotFound(e) {\n return e === NOT_FOUND || e?.name === 'ɵNotFound';\n}\nexport { NOT_FOUND, NotFoundError, getCurrentInjector, inject, isNotFound, setCurrentInjector };\n//# sourceMappingURL=not_found.mjs.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { filter } from './filter';\nexport function skip(count) {\n return filter((_, index) => count <= index);\n}\n//# sourceMappingURL=skip.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { OperatorSubscriber } 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(new OperatorSubscriber(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//# sourceMappingURL=scanInternals.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { observable as Symbol_observable } from '../symbol/observable';\nimport { isFunction } from './isFunction';\nexport function isInteropObservable(input) {\n return isFunction(input[Symbol_observable]);\n}\n//# sourceMappingURL=isInteropObservable.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { argsOrArgArray } from '../util/argsOrArgArray';\nimport { raceWith } from './raceWith';\nexport function race(...args) {\n return raceWith(...argsOrArgArray(args));\n}\n//# sourceMappingURL=race.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { Subject } from '../Subject';\nimport { operate } from '../util/lift';\nimport { OperatorSubscriber } from './OperatorSubscriber';\nexport function repeatWhen(notifier) {\n return operate((source, subscriber) => {\n let innerSub;\n let syncResub = false;\n let completions$;\n let isNotifierComplete = false;\n let isMainComplete = false;\n const checkComplete = () => isMainComplete && isNotifierComplete && (subscriber.complete(), true);\n const getCompletionSubject = () => {\n if (!completions$) {\n completions$ = new Subject();\n notifier(completions$).subscribe(new OperatorSubscriber(subscriber, () => {\n if (innerSub) {\n subscribeForRepeatWhen();\n } else {\n syncResub = true;\n }\n }, () => {\n isNotifierComplete = true;\n checkComplete();\n }));\n }\n return completions$;\n };\n const subscribeForRepeatWhen = () => {\n isMainComplete = false;\n innerSub = source.subscribe(new OperatorSubscriber(subscriber, undefined, () => {\n isMainComplete = true;\n !checkComplete() && getCompletionSubject().next();\n }));\n if (syncResub) {\n innerSub.unsubscribe();\n innerSub = null;\n syncResub = false;\n subscribeForRepeatWhen();\n }\n };\n subscribeForRepeatWhen();\n });\n}\n//# sourceMappingURL=repeatWhen.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { operate } from '../util/lift';\nimport { concatAll } from './concatAll';\nimport { popScheduler } from '../util/args';\nimport { from } from '../observable/from';\nexport function concat(...args) {\n const scheduler = popScheduler(args);\n return operate((source, subscriber) => {\n concatAll()(from([source, ...args], scheduler)).subscribe(subscriber);\n });\n}\n//# sourceMappingURL=concat.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|